diff --git a/docs/index.html b/docs/index.html index b73b40e..83d5b40 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,5 +12,5 @@ - + diff --git a/docs/main.fe0fb92ea31fcac3.js b/docs/main.df3a3bcfe6939e17.js similarity index 64% rename from docs/main.fe0fb92ea31fcac3.js rename to docs/main.df3a3bcfe6939e17.js index f545035..2459501 100644 --- a/docs/main.fe0fb92ea31fcac3.js +++ b/docs/main.df3a3bcfe6939e17.js @@ -1 +1 @@ -(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[179],{8333:(Z,N,E)=>{"use strict";function p(e){return"function"==typeof e}function f(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const g=f(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function m(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class b{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 i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(p(r))try{r()}catch(i){n=i instanceof g?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{h(i)}catch(s){n=n??[],s instanceof g?n=[...n,...s.errors]:n.push(s)}}if(n)throw new g(n)}}add(n){var t;if(n&&n!==this)if(this.closed)h(n);else{if(n instanceof b){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)&&m(t,n)}remove(n){const{_finalizers:t}=this;t&&m(t,n),n instanceof b&&n._removeParent(this)}}b.EMPTY=(()=>{const e=new b;return e.closed=!0,e})();const y=b.EMPTY;function F(e){return e instanceof b||e&&"closed"in e&&p(e.remove)&&p(e.add)&&p(e.unsubscribe)}function h(e){p(e)?e():e.unsubscribe()}const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},T={setTimeout(e,n,...t){const{delegate:r}=T;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=T;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function _(e){T.setTimeout(()=>{const{onUnhandledError:n}=C;if(!n)throw e;n(e)})}function M(){}const x=L("C",void 0,void 0);function L(e,n,t){return{kind:e,value:n,error:t}}let R=null;function D(e){if(C.useDeprecatedSynchronousErrorHandling){const n=!R;if(n&&(R={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=R;if(R=null,t)throw r}}else e()}class O extends b{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,F(n)&&n.add(this)):this.destination=V}static create(n,t,r){return new q(n,t,r)}next(n){this.isStopped?J(function S(e){return L("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?J(function I(e){return L("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?J(x,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 k=Function.prototype.bind;function H(e,n){return k.call(e,n)}class P{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){j(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){j(r)}else j(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){j(t)}}}class q extends O{constructor(n,t,r){let o;if(super(),p(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&C.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&H(n.next,i),error:n.error&&H(n.error,i),complete:n.complete&&H(n.complete,i)}):o=n}this.destination=new P(o)}}function j(e){C.useDeprecatedSynchronousErrorHandling?function w(e){C.useDeprecatedSynchronousErrorHandling&&R&&(R.errorThrown=!0,R.error=e)}(e):_(e)}function J(e,n){const{onStoppedNotification:t}=C;t&&T.setTimeout(()=>t(e,n))}const V={closed:!0,next:M,error:function U(e){throw e},complete:M},$="function"==typeof Symbol&&Symbol.observable||"@@observable";function Q(e){return e}function de(e){return 0===e.length?Q:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let se=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Y(e){return e&&e instanceof O||function Fe(e){return e&&p(e.next)&&p(e.error)&&p(e.complete)}(e)&&F(e)}(t)?t:new q(t,r,o);return D(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Ee(r))((o,i)=>{const s=new q({next:a=>{try{t(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[$](){return this}pipe(...t){return de(t)(this)}toPromise(t){return new(t=Ee(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Ee(e){var n;return null!==(n=e??C.Promise)&&void 0!==n?n:Promise}const re=f(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let K=(()=>{class e extends se{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new te(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new re}next(t){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){D(()=>{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:r,isStopped:o,observers:i}=this;return r||o?y:(this.currentObservers=null,i.push(t),new b(()=>{this.currentObservers=null,m(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new se;return t.source=this,t}}return e.create=(n,t)=>new te(n,t),e})();class te extends K{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:y}}function Ve(e){return p(e?.lift)}function ge(e){return n=>{if(Ve(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(e,n,t,r,o){return new Me(e,n,t,r,o)}class Me extends O{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(u){n.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}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 me(e,n){return ge((t,r)=>{let o=0;t.subscribe(Te(r,i=>{r.next(e.call(n,i,o++))}))})}function In(e){return this instanceof In?(this.v=e,this):new In(e)}function ya(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 Eo(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Pi=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Bi(e){return p(e?.then)}function wa(e){return p(e[$])}function ba(e){return Symbol.asyncIterator&&p(e?.[Symbol.asyncIterator])}function ki(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 Li=function nl(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function St(e){return p(e?.[Li])}function Fn(e){return function rr(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(v){r[v]&&(o[v]=function(A){return new Promise(function(B,z){i.push([v,A,B,z])>1||a(v,A)})})}function a(v,A){try{!function u(v){v.value instanceof In?Promise.resolve(v.value.v).then(c,l):d(i[0][2],v)}(r[v](A))}catch(B){d(i[0][3],B)}}function c(v){a("next",v)}function l(v){a("throw",v)}function d(v,A){v(A),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield In(t.read());if(o)return yield In(void 0);yield yield In(r)}}finally{t.releaseLock()}})}function Vi(e){return p(e?.getReader)}function mt(e){if(e instanceof se)return e;if(null!=e){if(wa(e))return function GE(e){return new se(n=>{const t=e[$]();if(p(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pi(e))return function WE(e){return new se(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,_)})}(e);if(ba(e))return T0(e);if(St(e))return function QE(e){return new se(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Vi(e))return function ZE(e){return T0(Fn(e))}(e)}throw ki(e)}function T0(e){return new se(n=>{(function YE(e,n){var t,r,o,i;return function Gt(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(l.value).then(a,u)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=ya(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function or(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ft(e,n,t=1/0){return p(n)?ft((r,o)=>me((i,s)=>n(r,i,o,s))(mt(e(r,o))),t):("number"==typeof n&&(t=n),ge((r,o)=>function KE(e,n,t,r,o,i,s,a){const u=[];let c=0,l=0,d=!1;const v=()=>{d&&!u.length&&!c&&n.complete()},A=z=>c{i&&n.next(z),c++;let X=!1;mt(t(z,l++)).subscribe(Te(n,ie=>{o?.(ie),i?A(ie):n.next(ie)},()=>{X=!0},void 0,()=>{if(X)try{for(c--;u.length&&cB(ie)):B(ie)}v()}catch(ie){n.error(ie)}}))};return e.subscribe(Te(n,A,()=>{d=!0,v()})),()=>{a?.()}}(r,o,e,t)))}function _o(e=1/0){return ft(Q,e)}const jn=new se(e=>e.complete());function N0(e){return e&&p(e.schedule)}function rl(e){return e[e.length-1]}function R0(e){return p(rl(e))?e.pop():void 0}function Hi(e){return N0(rl(e))?e.pop():void 0}function O0(e,n=0){return ge((t,r)=>{t.subscribe(Te(r,o=>or(r,e,()=>r.next(o),n),()=>or(r,e,()=>r.complete(),n),o=>or(r,e,()=>r.error(o),n)))})}function P0(e,n=0){return ge((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function B0(e,n){if(!e)throw new Error("Iterable cannot be null");return new se(t=>{or(t,n,()=>{const r=e[Symbol.asyncIterator]();or(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function vt(e,n){return n?function i_(e,n){if(null!=e){if(wa(e))return function e_(e,n){return mt(e).pipe(P0(n),O0(n))}(e,n);if(Pi(e))return function n_(e,n){return new se(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Bi(e))return function t_(e,n){return mt(e).pipe(P0(n),O0(n))}(e,n);if(ba(e))return B0(e,n);if(St(e))return function r_(e,n){return new se(t=>{let r;return or(t,n,()=>{r=e[Li](),or(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>p(r?.return)&&r.return()})}(e,n);if(Vi(e))return function o_(e,n){return B0(Fn(e),n)}(e,n)}throw ki(e)}(e,n):mt(e)}function ol(...e){const n=Hi(e),t=function JE(e,n){return"number"==typeof rl(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?mt(r[0]):_o(t)(vt(r,n)):jn}class xn extends K{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:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function ve(...e){return vt(e,Hi(e))}function k0(e={}){const{connector:n=(()=>new K),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1;const v=()=>{a?.unsubscribe(),a=void 0},A=()=>{v(),s=u=void 0,l=d=!1},B=()=>{const z=s;A(),z?.unsubscribe()};return ge((z,X)=>{c++,!d&&!l&&v();const ie=u=u??n();X.add(()=>{c--,0===c&&!d&&!l&&(a=il(B,o))}),ie.subscribe(X),!s&&c>0&&(s=new q({next:G=>ie.next(G),error:G=>{d=!0,v(),a=il(A,t,G),ie.error(G)},complete:()=>{l=!0,v(),a=il(A,r),ie.complete()}}),mt(z).subscribe(s))})(i)}}function il(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new q({next:()=>{r.unsubscribe(),e()}});return mt(n(...t)).subscribe(r)}function qt(e,n){return ge((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(Te(r,u=>{o?.unsubscribe();let c=0;const l=i++;mt(e(u,l)).subscribe(o=Te(r,d=>r.next(n?n(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function a_(e,n){return e===n}function Ue(e){for(let n in e)if(e[n]===Ue)return n;throw Error("Could not find renamed property on target object.")}function Aa(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function ht(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ht).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 sl(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const u_=Ue({__forward_ref__:Ue});function Qe(e){return e.__forward_ref__=Qe,e.toString=function(){return ht(this())},e}function De(e){return al(e)?e():e}function al(e){return"function"==typeof e&&e.hasOwnProperty(u_)&&e.__forward_ref__===Qe}function ul(e){return e&&!!e.\u0275providers}const L0="https://g.co/ng/security#xss";class oe extends Error{constructor(n,t){super(function Ma(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function cl(e,n){throw new oe(-201,!1)}function Dn(e,n){null==e&&function ye(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Sa(e){return V0(e,Fa)||V0(e,H0)}function V0(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ia(e){return e&&(e.hasOwnProperty(ll)||e.hasOwnProperty(m_))?e[ll]:null}const Fa=Ue({\u0275prov:Ue}),ll=Ue({\u0275inj:Ue}),H0=Ue({ngInjectableDef:Ue}),m_=Ue({ngInjectorDef:Ue});var Oe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Oe||{});let dl;function Qt(e){const n=dl;return dl=e,n}function $0(e,n,t){const r=Sa(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Oe.Optional?null:void 0!==n?n:void cl(ht(e))}const Ze=globalThis;class ce{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=fe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ji={},ml="__NG_DI_FLAG__",Ta="ngTempTokenPath",x_=/\n/gm,z0="__source";let wo;function wr(e){const n=wo;return wo=e,n}function E_(e,n=Oe.Default){if(void 0===wo)throw new oe(-203,!1);return null===wo?$0(e,void 0,n):wo.get(e,n&Oe.Optional?null:void 0,n)}function pe(e,n=Oe.Default){return(function j0(){return dl}()||E_)(De(e),n)}function ue(e,n=Oe.Default){return pe(e,Na(n))}function Na(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function vl(e){const n=[];for(let t=0;tn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const A=8&r?v:null;if(A&&-1!==Q0(A,c,0)||2&r&&c!==v){if(Nn(r))return!1;s=!0}}}}else{if(!s&&!Nn(r)&&!Nn(u))return!1;if(s&&Nn(u))continue;s=!1,r=u|1&r}}return Nn(r)||s}function Nn(e){return 0==(1&e)}function I_(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Nn(s)&&(n+=tp(i,o),o=""),r=s,i=i||!Nn(r);t++}return""!==o&&(n+=tp(i,o)),n}function br(e){return ir(()=>{const n=rp(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ra.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Tn.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""};op(t);const r=e.dependencies;return t.directiveDefs=Pa(r,!1),t.pipeDefs=Pa(r,!0),t.id=function $_(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function L_(e){return Be(e)||Et(e)}function V_(e){return null!==e}function Ct(e){return ir(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function np(e,n){if(null==e)return $n;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function Ce(e){return ir(()=>{const n=rp(e);return op(n),n})}function Be(e){return e[Oa]||null}function Et(e){return e[yl]||null}function Pt(e){return e[xl]||null}function dn(e,n){const t=e[W0]||null;if(!t&&!0===n)throw new Error(`Type ${ht(e)} does not have '\u0275mod' property.`);return t}function rp(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||$n,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:np(e.inputs,n),outputs:np(e.outputs)}}function op(e){e.features?.forEach(n=>n(e))}function Pa(e,n){if(!e)return null;const t=n?Pt:L_;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(V_)}const ot=0,ae=1,Se=2,Je=3,Rn=4,Gi=5,It=6,Ao=7,at=8,Ar=9,Mo=10,we=11,Wi=12,ip=13,So=14,ut=15,qi=16,Io=17,Un=18,Qi=19,sp=20,Mr=21,ar=22,Zi=23,Yi=24,Pe=25,Cl=1,ap=2,zn=7,Fo=9,_t=11;function Yt(e){return Array.isArray(e)&&"object"==typeof e[Cl]}function Bt(e){return Array.isArray(e)&&!0===e[Cl]}function El(e){return 0!=(4&e.flags)}function Yr(e){return e.componentOffset>-1}function ka(e){return 1==(1&e.flags)}function On(e){return!!e.template}function _l(e){return 0!=(512&e[Se])}function Kr(e,n){return e.hasOwnProperty(sr)?e[sr]:null}let wt=null,La=!1;function Cn(e){const n=wt;return wt=e,n}const lp={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function fp(e){if(!Xi(e)||e.dirty){if(!e.producerMustRecompute(e)&&!gp(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function pp(e){e.dirty=!0,function hp(e){if(void 0===e.liveConsumerNode)return;const n=La;La=!0;try{for(const t of e.liveConsumerNode)t.dirty||pp(t)}finally{La=n}}(e),e.consumerMarkedDirty?.(e)}function bl(e){return e&&(e.nextProducerIndex=0),Cn(e)}function Al(e,n){if(Cn(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Xi(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function gp(e){To(e);for(let n=0;n0}function To(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let xp=null;const _p=()=>{},tw=(()=>({...lp,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:_p}))();class nw{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function En(){return wp}function wp(e){return e.type.prototype.ngOnChanges&&(e.setInput=ow),rw}function rw(){const e=Ap(this),n=e?.current;if(n){const t=e.previous;if(t===$n)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function ow(e,n,t,r){const o=this.declaredInputs[t],i=Ap(e)||function iw(e,n){return e[bp]=n}(e,{previous:$n,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new nw(u&&u.currentValue,n,a===$n),e[r]=n}En.ngInherit=!0;const bp="__ngSimpleChanges__";function Ap(e){return e[bp]||null}const Gn=function(e,n,t){},Mp="svg";function Ye(e){for(;Array.isArray(e);)e=e[ot];return e}function Kt(e,n){return Ye(n[e.index])}function Ip(e,n){return e.data[n]}function fn(e,n){const t=n[e];return Yt(t)?t:t[ot]}function Ir(e,n){return null==n?null:e[n]}function Fp(e){e[Io]=0}function dw(e){1024&e[Se]||(e[Se]|=1024,Np(e,1))}function Tp(e){1024&e[Se]&&(e[Se]&=-1025,Np(e,-1))}function Np(e,n){let t=e[Je];if(null===t)return;t[Gi]+=n;let r=t;for(t=t[Je];null!==t&&(1===n&&1===r[Gi]||-1===n&&0===r[Gi]);)t[Gi]+=n,r=t,t=t[Je]}const xe={lFrame:Gp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pp(){return xe.bindingsEnabled}function ee(){return xe.lFrame.lView}function ke(){return xe.lFrame.tView}function bt(){let e=Lp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Lp(){return xe.lFrame.currentTNode}function Wn(e,n){const t=xe.lFrame;t.currentTNode=e,t.isParent=n}function Tl(){return xe.lFrame.isParent}function Oo(){return xe.lFrame.bindingIndex++}function _w(e,n){const t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Rl(n)}function Rl(e){xe.lFrame.currentDirectiveIndex=e}function $p(){return xe.lFrame.currentQueryIndex}function Pl(e){xe.lFrame.currentQueryIndex=e}function bw(e){const n=e[ae];return 2===n.type?n.declTNode:1===n.type?e[It]:null}function Up(e,n,t){if(t&Oe.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&Oe.Host||(o=bw(i),null===o||(i=i[So],10&o.type))););if(null===o)return!1;n=o,e=i}const r=xe.lFrame=zp();return r.currentTNode=n,r.lView=e,!0}function Bl(e){const n=zp(),t=e[ae];xe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function zp(){const e=xe.lFrame,n=null===e?null:e.child;return null===n?Gp(e):n}function Gp(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 Wp(){const e=xe.lFrame;return xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const qp=Wp;function kl(){const e=Wp();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 Lt(){return xe.lFrame.selectedIndex}function Xr(e){xe.lFrame.selectedIndex=e}function tt(){const e=xe.lFrame;return Ip(e.tView,e.selectedIndex)}function Vt(){xe.lFrame.currentNamespace=Mp}function lr(){!function Iw(){xe.lFrame.currentNamespace=null}()}let Zp=!0;function ja(){return Zp}function Fr(e){Zp=e}function $a(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[u]<0&&(e[Io]+=65536),(a>13>16&&(3&e[Se])===n&&(e[Se]+=8192,Kp(a,i)):Kp(a,i)}const Po=-1;class es{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Hl(e){return e!==Po}function ts(e){return 32767&e}function ns(e,n){let t=function Pw(e){return e>>16}(e),r=n;for(;t>0;)r=r[So],t--;return r}let jl=!0;function Ga(e){const n=jl;return jl=e,n}const Xp=255,Jp=5;let Bw=0;const qn={};function Wa(e,n){const t=eg(e,n);if(-1!==t)return t;const r=n[ae];r.firstCreatePass&&(e.injectorIndex=n.length,$l(r.data,e),$l(n,null),$l(r.blueprint,null));const o=qa(e,n),i=e.injectorIndex;if(Hl(o)){const s=ts(o),a=ns(o,n),u=a[ae].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|u[s+c]}return n[i+8]=o,i}function $l(e,n){e.push(0,0,0,0,0,0,0,0,n)}function eg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function qa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=ag(o),null===r)return Po;if(t++,o=o[So],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Po}function Ul(e,n,t){!function kw(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ui)&&(r=t[Ui]),null==r&&(r=t[Ui]=Bw++);const o=r&Xp;n.data[e+(o>>Jp)]|=1<=0?n&Xp:$w:n}(t);if("function"==typeof i){if(!Up(n,e,r))return r&Oe.Host?tg(o,0,r):ng(n,t,r,o);try{let s;if(s=i(r),null!=s||r&Oe.Optional)return s;cl()}finally{qp()}}else if("number"==typeof i){let s=null,a=eg(e,n),u=Po,c=r&Oe.Host?n[ut][It]:null;for((-1===a||r&Oe.SkipSelf)&&(u=-1===a?qa(e,n):n[a+8],u!==Po&&sg(r,!1)?(s=n[ae],a=ts(u),n=ns(u,n)):a=-1);-1!==a;){const l=n[ae];if(ig(i,a,l.data)){const d=Vw(a,n,t,s,r,c);if(d!==qn)return d}u=n[a+8],u!==Po&&sg(r,n[ae].data[a+8]===c)&&ig(i,a,n)?(s=l,a=ts(u),n=ns(u,n)):a=-1}}return o}function Vw(e,n,t,r,o,i){const s=n[ae],a=s.data[e+8],l=Qa(a,s,t,null==r?Yr(a)&&jl:r!=s&&0!=(3&a.type),o&Oe.Host&&i===a);return null!==l?Jr(n,s,l,a):qn}function Qa(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,u=e.directiveStart,l=i>>20,v=o?a+l:e.directiveEnd;for(let A=r?a:a+l;A=u&&B.type===t)return A}if(o){const A=s[u];if(A&&On(A)&&A.type===t)return u}return null}function Jr(e,n,t,r){let o=e[t];const i=n.data;if(function Nw(e){return e instanceof es}(o)){const s=o;s.resolving&&function c_(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new oe(-200,`Circular dependency in DI detected for ${e}${t}`)}(function $e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}(i[t]));const a=Ga(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Qt(s.injectImpl):null;Up(e,r,Oe.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Fw(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=wp(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==c&&Qt(c),Ga(a),s.resolving=!1,qp()}}return o}function ig(e,n,t){return!!(t[n+(e>>Jp)]&1<{const n=e.prototype.constructor,t=n[sr]||zl(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[sr]||zl(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function zl(e){return al(e)?()=>{const n=zl(De(e));return n&&n()}:Kr(e)}function ag(e){const n=e[ae],t=n.type;return 2===t?n.declTNode:1===t?e[It]:null}const ko="__parameters__";function Vo(e,n,t){return ir(()=>{const r=function Gl(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,c,l){const d=u.hasOwnProperty(ko)?u[ko]:Object.defineProperty(u,ko,{value:[]})[ko];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jo(e,n){e.forEach(t=>Array.isArray(t)?jo(t,n):n(t))}function cg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ya(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function hn(e,n,t){let r=$o(e,n);return r>=0?e[1|r]=t:(r=~r,function Yw(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Wl(e,n){const t=$o(e,n);if(t>=0)return e[1|t]}function $o(e,n){return function lg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<0&&(e[t-1][Rn]=r[Rn]);const i=Ya(e,_t+n);!function R2(e,n){ls(e,n,n[we],2,null,null),n[ot]=null,n[It]=null}(r[ae],r);const s=i[Un];null!==s&&s.detachView(i[ae]),r[Je]=null,r[Rn]=null,r[Se]&=-129}return r}function rd(e,n){if(!(256&n[Se])){const t=n[we];n[Zi]&&mp(n[Zi]),n[Yi]&&mp(n[Yi]),t.destroyNode&&ls(e,n,t,3,null,null),function B2(e){let n=e[Wi];if(!n)return od(e[ae],e);for(;n;){let t=null;if(Yt(n))t=n[Wi];else{const r=n[_t];r&&(t=r)}if(!t){for(;n&&!n[Rn]&&n!==e;)Yt(n)&&od(n[ae],n),n=n[Je];null===n&&(n=e),Yt(n)&&od(n[ae],n),t=n&&n[Rn]}n=t}}(n)}}function od(e,n){if(!(256&n[Se])){n[Se]&=-129,n[Se]|=256,function H2(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[Ao]=null);const o=n[Mr];if(null!==o){n[Mr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Tn.None||i===Tn.Emulated)return null}return Kt(r,t)}}(e,n.parent,t)}function eo(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Bg(e,n,t){e.appendChild(n,t)}function kg(e,n,t,r,o){null!==r?eo(e,n,t,r,o):Bg(e,n,t)}function cu(e,n){return e.parentNode(n)}let sd,ld,hu,Hg=function Vg(e,n,t){return 40&e.type?Kt(e,t):null};function lu(e,n,t,r){const o=id(e,r,n),i=n[we],a=function Lg(e,n,t){return Hg(e,n,t)}(r.parent||n[It],r,n);if(null!=o)if(Array.isArray(t))for(let u=0;ue,createScript:e=>e,createScriptURL:e=>e})}catch{}return hu}()?.createScriptURL(e)||e}class Yg{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${L0})`}}function Nr(e){return e instanceof Yg?e.changingThisBreaksApplicationSecurity:e}function ds(e,n){const t=function nb(e){return e instanceof Yg&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${L0})`)}return t===n}const sb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Qo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Qo||{});function md(e){const n=hs();return n?n.sanitize(Qo.URL,e)||"":ds(e,"URL")?Nr(e):function fd(e){return(e=String(e)).match(sb)?e:"unsafe:"+e}(_e(e))}function rm(e){const n=hs();if(n)return Zg(n.sanitize(Qo.RESOURCE_URL,e)||"");if(ds(e,"ResourceURL"))return Zg(Nr(e));throw new oe(904,!1)}function hs(){const e=ee();return e&&e[Mo].sanitizer}const ps=new ce("ENVIRONMENT_INITIALIZER"),im=new ce("INJECTOR",-1),sm=new ce("INJECTOR_DEF_TYPES");class vd{get(n,t=ji){if(t===ji){const r=new Error(`NullInjectorError: No provider for ${ht(n)}!`);throw r.name="NullInjectorError",r}return t}}function xb(...e){return{\u0275providers:am(0,e),\u0275fromNgModule:!0}}function am(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return jo(n,s=>{const a=s;gu(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&um(o,i),t}function um(e,n){for(let t=0;t{n(i,r)})}}function gu(e,n,t,r){if(!(e=De(e)))return!1;let o=null,i=Ia(e);const s=!i&&Be(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ia(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of u)gu(c,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{jo(i.imports,l=>{gu(l,n,t,r)&&(c||=[],c.push(l))})}finally{}void 0!==c&&um(c,n)}if(!a){const c=Kr(o)||(()=>new o);n({provide:o,useFactory:c,deps:Le},o),n({provide:sm,useValue:o,multi:!0},o),n({provide:ps,useValue:()=>pe(o),multi:!0},o)}const u=i.providers;if(null!=u&&!a){const c=e;xd(u,l=>{n(l,c)})}}}return o!==e&&void 0!==e.providers}function xd(e,n){for(let t of e)ul(t)&&(t=t.\u0275providers),Array.isArray(t)?xd(t,n):n(t)}const Db=Ue({provide:String,useValue:Ue});function Dd(e){return null!==e&&"object"==typeof e&&Db in e}function to(e){return"function"==typeof e}const Cd=new ce("Set Injector scope."),mu={},Eb={};let Ed;function vu(){return void 0===Ed&&(Ed=new vd),Ed}class wn{}class Zo extends wn{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(n,s=>this.processProvider(s)),this.records.set(im,Yo(void 0,this)),o.has("environment")&&this.records.set(wn,Yo(void 0,this));const i=this.records.get(Cd);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(sm.multi,Le,Oe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=wr(this),r=Qt(void 0);try{return n()}finally{wr(t),Qt(r)}}get(n,t=ji,r=Oe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(q0))return n[q0](this);r=Na(r);const i=wr(this),s=Qt(void 0);try{if(!(r&Oe.SkipSelf)){let u=this.records.get(n);if(void 0===u){const c=function Mb(e){return"function"==typeof e||"object"==typeof e&&e instanceof ce}(n)&&Sa(n);u=c&&this.injectableDefInScope(c)?Yo(_d(n),mu):null,this.records.set(n,u)}if(null!=u)return this.hydrate(n,u)}return(r&Oe.Self?vu():this.parent).get(n,t=r&Oe.Optional&&t===ji?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Ta]=a[Ta]||[]).unshift(ht(n)),i)throw a;return function w_(e,n,t,r){const o=e[Ta];throw n[z0]&&o.unshift(n[z0]),e.message=function b_(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ht(n);if(Array.isArray(n))o=n.map(ht).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ht(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(x_,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Ta]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Qt(s),wr(i)}}resolveInjectorInitializers(){const n=wr(this),t=Qt(void 0);try{const o=this.get(ps.multi,Le,Oe.Self);for(const i of o)i()}finally{wr(n),Qt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(ht(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new oe(205,!1)}processProvider(n){let t=to(n=De(n))?n:De(n&&n.provide);const r=function wb(e){return Dd(e)?Yo(void 0,e.useValue):Yo(dm(e),mu)}(n);if(to(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=Yo(void 0,mu,!0),o.factory=()=>vl(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===mu&&(t.value=Eb,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Ab(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=De(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function _d(e){const n=Sa(e),t=null!==n?n.factory:Kr(e);if(null!==t)return t;if(e instanceof ce)throw new oe(204,!1);if(e instanceof Function)return function _b(e){const n=e.length;if(n>0)throw function is(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new oe(204,!1)}function dm(e,n,t){let r;if(to(e)){const o=De(e);return Kr(o)||_d(o)}if(Dd(e))r=()=>De(e.useValue);else if(function lm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...vl(e.deps||[]));else if(function cm(e){return!(!e||!e.useExisting)}(e))r=()=>pe(De(e.useExisting));else{const o=De(e&&(e.useClass||e.provide));if(!function bb(e){return!!e.deps}(e))return Kr(o)||_d(o);r=()=>new o(...vl(e.deps))}return r}function Yo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function wd(e,n){for(const t of e)Array.isArray(t)?wd(t,n):t&&ul(t)?wd(t.\u0275providers,n):n(t)}const yu=new ce("AppId",{providedIn:"root",factory:()=>Sb}),Sb="ng",fm=new ce("Platform Initializer"),Rr=new ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),hm=new ce("CSP nonce",{providedIn:"root",factory:()=>function qo(){if(void 0!==ld)return ld;if(typeof document<"u")return document;throw new oe(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pm=(e,n,t)=>null;function Nd(e,n,t=!1){return pm(e,n,t)}class Lb{}class vm{}class Hb{resolveComponentFactory(n){throw function Vb(e){const n=Error(`No component factory found for ${ht(e)}.`);return n.ngComponent=e,n}(n)}}let wu=(()=>{class e{static#e=this.NULL=new Hb}return e})();function jb(){return Jo(bt(),ee())}function Jo(e,n){return new Jt(Kt(e,n))}let Jt=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=jb}return e})();function $b(e){return e instanceof Jt?e.nativeElement:e}class xm{}let fr=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Ub(){const e=ee(),t=fn(bt().index,e);return(Yt(t)?t:e)[we]}()}return e})(),zb=(()=>{class e{static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>null})}return e})();class vs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Gb=new vs("16.2.11"),Pd={};function _m(e,n=null,t=null,r){const o=wm(e,n,t,r);return o.resolveInjectorInitializers(),o}function wm(e,n=null,t=null,r,o=new Set){const i=[t||Le,xb(e)];return r=r||("object"==typeof e?void 0:ht(e)),new Zo(i,n||vu(),r||null,o)}let en=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ji;static#t=this.NULL=new vd;static create(t,r){if(Array.isArray(t))return _m({name:""},r,t,"");{const o=t.name??"";return _m({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=fe({token:e,providedIn:"any",factory:()=>pe(im)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function kd(e){return e.ngOriginalError}class hr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&kd(n);for(;t&&kd(t);)t=kd(t);return t||null}}function Vd(e){return n=>{setTimeout(e,void 0,n)}}const it=class Xb extends K{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const u=n;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Vd(i),o&&(o=Vd(o)),s&&(s=Vd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof b&&n.add(a),a}};function Am(...e){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new oe(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Jb(){const e="function"==typeof Ze.requestAnimationFrame;let n=Ze[e?"requestAnimationFrame":"setTimeout"],t=Ze[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function nA(e){const n=()=>{!function tA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ze,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jd(e),e.isCheckStableRunning=!0,Hd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function oA(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return Mm(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),Sm(e)}},onInvoke:(t,r,o,i,s,a,u)=>{try{return Mm(e),t.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&n(),Sm(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,jd(e),Hd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new oe(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new oe(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,eA,Am,Am);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const eA={};function Hd(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 jd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sm(e){e._nesting--,Hd(e)}class rA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new it,this.onMicrotaskEmpty=new it,this.onStable=new it,this.onError=new it}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Im=new ce("",{providedIn:"root",factory:Fm});function Fm(){const e=ue(We);let n=!0;return ol(new se(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),new se(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{We.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(k0()))}function pr(e){return e instanceof Function?e():e}let $d=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})();function ys(e){for(;e;){e[Se]|=64;const n=us(e);if(_l(e)&&!n)return e;e=n}return null}const Pm=new ce("",{providedIn:"root",factory:()=>!1});let Au=null;function Vm(e,n){return e[n]??$m()}function Hm(e,n){const t=$m();t.producerNode?.length&&(e[n]=Au,t.lView=e,Au=jm())}const pA={...lp,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ys(e.lView)},lView:null};function jm(){return Object.create(pA)}function $m(){return Au??=jm(),Au}const Ae={};function tn(e){Um(ke(),ee(),Lt()+e,!1)}function Um(e,n,t,r){if(!r)if(3==(3&n[Se])){const i=e.preOrderCheckHooks;null!==i&&Ua(n,i,t)}else{const i=e.preOrderHooks;null!==i&&za(n,i,0,t)}Xr(t)}function ne(e,n=Oe.Default){const t=ee();return null===t?pe(e,n):rg(bt(),t,De(e),n)}function Mu(e,n,t,r,o,i,s,a,u,c,l){const d=n.blueprint.slice();return d[ot]=o,d[Se]=140|r,(null!==c||e&&2048&e[Se])&&(d[Se]|=2048),Fp(d),d[Je]=d[So]=e,d[at]=t,d[Mo]=s||e&&e[Mo],d[we]=a||e&&e[we],d[Ar]=u||e&&e[Ar]||null,d[It]=i,d[Qi]=function C2(){return D2++}(),d[ar]=l,d[sp]=c,d[ut]=2==n.type?e[ut]:d,d}function ni(e,n,t,r,o){let i=e.data[n];if(null===i)i=function Ud(e,n,t,r,o){const i=Lp(),s=Tl(),u=e.data[n]=function EA(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return function Ro(){return null!==xe.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,n,t,r,o),function Ew(){return xe.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const s=function Ji(){const e=xe.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Wn(i,!0),i}function xs(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;iPe&&Um(e,n,Pe,!1),Gn(a?2:0,o);const c=a?i:null,l=bl(c);try{null!==c&&(c.dirty=!1),t(r,o)}finally{Al(c,l)}}finally{a&&null===n[Zi]&&Hm(n,Zi),Xr(s),Gn(a?3:1,o)}}function zd(e,n,t){if(El(n)){const r=Cn(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function Qm(e,n,t,r){for(let o in e)if(e.hasOwnProperty(o)){t=null===t?{}:t;const i=e[o];null===r?Zm(t,n,o,i):r.hasOwnProperty(o)&&Zm(t,n,r[o],i)}return t}function Zm(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function Qd(e,n,t,r){if(Pp()){const o=null===r?null:{"":-1},i=function TA(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,xs(e,t,o.hostVars,Ae),o)}function Qn(e,n,t,r,o,i){const s=Kt(e,n);!function Yd(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?_e(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[we],s,i,e.value,t,r,o)}function kA(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,o){const i=typeof Zone>"u"?null:Zone.current,s=function ew(e,n,t){const r=Object.create(tw);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const o=s=>{r.cleanupFn=s};return r.ref={notify:()=>pp(r),run:()=>{if(r.dirty=!1,r.hasRun&&!gp(r))return;r.hasRun=!0;const s=bl(r);try{r.cleanupFn(),r.cleanupFn=_p,r.fn(o)}finally{Al(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})();function Iu(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0){uv(e,1);const o=t.components;null!==o&&lv(e,o,1)}}function lv(e,n,t){for(let r=0;r-1&&(uu(n,r),Ya(t,r))}this._attachedToViewContainer=!1}rd(this._lView[ae],this._lView)}onDestroy(n){!function Rp(e,n){if(256==(256&e[Se]))throw new oe(911,!1);null===e[Mr]&&(e[Mr]=[]),e[Mr].push(n)}(this._lView,n)}markForCheck(){ys(this._cdRefInjectingView||this._lView)}detach(){this._lView[Se]&=-129}reattach(){this._lView[Se]|=128}detectChanges(){Fu(this._lView[ae],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new oe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function P2(e,n){ls(e,n,n[we],2,null,null)}(this._lView[ae],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new oe(902,!1);this._appRef=n}}class WA extends Cs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Fu(n[ae],n,n[at],!1)}checkNoChanges(){}get context(){return null}}class dv extends wu{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Be(n);return new Es(t,this.ngModule)}}function fv(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class QA{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Na(r);const o=this.injector.get(n,Pd,r);return o!==Pd||t===Pd?o:this.parentInjector.get(n,t,r)}}class Es extends vm{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=fv(n.inputs);if(null!==t)for(const o of r)t.hasOwnProperty(o.propName)&&(o.transform=t[o.propName]);return r}get outputs(){return fv(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function P_(e){return e.map(O_).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof wn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new QA(n,i):n,a=s.get(xm,null);if(null===a)throw new oe(407,!1);const d={rendererFactory:a,sanitizer:s.get(zb,null),effectManager:s.get(iv,null),afterRenderEventManager:s.get($d,null)},v=a.createRenderer(null,this.componentDef),A=this.componentDef.selectors[0][0]||"div",B=r?function vA(e,n,t,r){const i=r.get(Pm,!1)||t===Tn.ShadowDom,s=e.selectRootElement(n,i);return function yA(e){qm(e)}(s),s}(v,r,this.componentDef.encapsulation,s):au(v,A,function qA(e){const n=e.toLowerCase();return"svg"===n?Mp:"math"===n?"math":null}(A)),ie=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let G=null;null!==B&&(G=Nd(B,s,!0));const le=qd(0,null,null,1,0,null,null,null,null,null,null),he=Mu(null,le,null,ie,null,null,d,v,s,null,G);let be,an;Bl(he);try{const _r=this.componentDef;let Ri,I0=null;_r.findHostDirectiveDefs?(Ri=[],I0=new Map,_r.findHostDirectiveDefs(_r,Ri,I0),Ri.push(_r)):Ri=[_r];const ZP=function YA(e,n){const t=e[ae],r=Pe;return e[r]=n,ni(t,r,2,"#host",null)}(he,B),YP=function KA(e,n,t,r,o,i,s){const a=o[ae];!function XA(e,n,t,r){for(const o of e)n.mergedAttrs=zi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(Iu(n,n.mergedAttrs,!0),null!==t&&Wg(r,t,n))}(r,e,n,s);let u=null;null!==n&&(u=Nd(n,o[Ar]));const c=i.rendererFactory.createRenderer(n,t);let l=16;t.signals?l=4096:t.onPush&&(l=64);const d=Mu(o,Wm(t),null,l,o[e.index],e,i,c,null,null,u);return a.firstCreatePass&&Zd(a,e,r.length-1),Su(o,d),o[e.index]=d}(ZP,B,_r,Ri,he,d,v);an=Ip(le,Pe),B&&function eM(e,n,t,r){if(r)Dl(e,t,["ng-version",Gb.full]);else{const{attrs:o,classes:i}=function B_(e){const n=[],t=[];let r=1,o=2;for(;r0&&Gg(e,t,i.join(" "))}}(v,_r,B,r),void 0!==t&&function tM(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=zi(o.hostAttrs,t=zi(t,o.hostAttrs))}}(r)}function Tu(e){return e===$n?{}:e===Le?[]:e}function oM(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function iM(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function sM(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function vv(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];Array.isArray(o)&&o[2]&&(t[r]=o[2])}e.inputTransforms=t}function Tt(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Yn(e,n,t,r){const o=ee();return Tt(o,Oo(),n)&&(ke(),Qn(tt(),o,e,n,t,r)),Yn}function fi(e,n,t,r,o,i,s,a){const u=ee(),c=ke(),l=e+Pe,d=c.firstCreatePass?function TM(e,n,t,r,o,i,s,a,u){const c=n.consts,l=ni(n,e,4,s||null,Ir(c,a));Qd(n,t,l,Ir(c,u)),$a(n,l);const d=l.tView=qd(2,l,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,l),d.queries=n.queries.embeddedTView(l)),l}(l,c,u,n,t,r,o,i,s):c.data[l];Wn(d,!1);const v=Fv(c,u,d,e);ja()&&lu(c,u,v,d),Ft(v,u),Su(u,u[l]=Jm(v,u,v,d)),ka(d)&&Gd(c,u,d),null!=s&&Wd(u,d,a)}let Fv=function Tv(e,n,t,r){return Fr(!0),n[we].createComment("")};function uf(e){return function No(e,n){return e[n]}(function Cw(){return xe.lFrame.contextLView}(),Pe+e)}function gn(e,n,t){const r=ee();return Tt(r,Oo(),n)&&function pn(e,n,t,r,o,i,s,a){const u=Kt(n,t);let l,c=n.inputs;!a&&null!=c&&(l=c[r])?(Xd(e,t,l,r,o),Yr(n)&&function bA(e,n){const t=fn(n,e);16&t[Se]||(t[Se]|=64)}(t,n.index)):3&n.type&&(r=function wA(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(u,r,o))}(ke(),tt(),r,e,n,r[we],t,!1),gn}function cf(e,n,t,r,o){const s=o?"class":"style";Xd(e,t,n.inputs[s],s,r)}function Ne(e,n,t,r){const o=ee(),i=ke(),s=Pe+e,a=o[we],u=i.firstCreatePass?function PM(e,n,t,r,o,i){const s=n.consts,u=ni(n,e,2,r,Ir(s,o));return Qd(n,t,u,Ir(s,i)),null!==u.attrs&&Iu(u,u.attrs,!1),null!==u.mergedAttrs&&Iu(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(s,i,o,n,t,r):i.data[s],c=Nv(i,o,u,a,n,e);o[s]=c;const l=ka(u);return Wn(u,!0),Wg(a,c,u),32!=(32&u.flags)&&ja()&&lu(i,o,c,u),0===function hw(){return xe.lFrame.elementDepthCount}()&&Ft(c,o),function pw(){xe.lFrame.elementDepthCount++}(),l&&(Gd(i,o,u),zd(i,u,o)),null!==r&&Wd(o,u),Ne}function Re(){let e=bt();Tl()?function Nl(){xe.lFrame.isParent=!1}():(e=e.parent,Wn(e,!1));const n=e;(function mw(e){return xe.skipHydrationRootTNode===e})(n)&&function Dw(){xe.skipHydrationRootTNode=null}(),function gw(){xe.lFrame.elementDepthCount--}();const t=ke();return t.firstCreatePass&&($a(t,e),El(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Rw(e){return 0!=(8&e.flags)}(n)&&cf(t,n,ee(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ow(e){return 0!=(16&e.flags)}(n)&&cf(t,n,ee(),n.stylesWithoutHost,!1),Re}function nt(e,n,t,r){return Ne(e,n,t,r),Re(),nt}let Nv=(e,n,t,r,o,i)=>(Fr(!0),au(r,o,function Qp(){return xe.lFrame.currentNamespace}()));function Ms(e){return!!e&&"function"==typeof e.then}function Bv(e){return!!e&&"function"==typeof e.subscribe}function xt(e,n,t,r){const o=ee(),i=ke(),s=bt();return function Lv(e,n,t,r,o,i,s){const a=ka(r),c=e.firstCreatePass&&nv(e),l=n[at],d=tv(n);let v=!0;if(3&r.type||s){const z=Kt(r,n),X=s?s(z):z,ie=d.length,G=s?he=>s(Ye(he[r.index])):r.index;let le=null;if(!s&&a&&(le=function jM(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==le)(le.__ngLastListenerFn__||le).__ngNextListenerFn__=i,le.__ngLastListenerFn__=i,v=!1;else{i=Hv(r,n,l,i,!1);const he=t.listen(X,o,i);d.push(i,he),c&&c.push(o,G,ie,ie+1)}}else i=Hv(r,n,l,i,!1);const A=r.outputs;let B;if(v&&null!==A&&(B=A[o])){const z=B.length;if(z)for(let X=0;X-1?fn(e.index,n):n);let u=Vv(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)u=Vv(n,t,c,s)&&u,c=c.__ngNextListenerFn__;return o&&!1===u&&s.preventDefault(),u}}function jv(e=1){return function Aw(e){return(xe.lFrame.contextLView=function Mw(e,n){for(;e>0;)n=n[So],e--;return n}(e,xe.lFrame.contextLView))[at]}(e)}function ku(e,n){return e<<17|n<<2}function Or(e){return e>>17&32767}function hf(e){return 2|e}function ro(e){return(131068&e)>>2}function pf(e,n){return-131069&e|n<<2}function gf(e){return 1|e}function Kv(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?Or(i):ro(i),u=!1;for(;0!==a&&(!1===u||s);){const l=e[a+1];YM(e[a],n)&&(u=!0,e[a+1]=r?gf(l):hf(l)),a=r?Or(l):ro(l)}u&&(e[t+1]=r?hf(i):gf(i))}function YM(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&$o(e,n)>=0}function pi(e,n){return function Pn(e,n,t,r){const o=ee(),i=ke(),s=function cr(e){const n=xe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}(2);i.firstUpdatePass&&function sy(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Lt()],s=function iy(e,n){return n>=e.expandoStartIndex}(e,t);(function ly(e,n){return 0!=(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function iS(e,n,t,r){const o=function Ol(e){const n=xe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Ss(t=mf(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=mf(o,e,n,t,r),null===i){let u=function sS(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ro(r))return e[Or(r)]}(e,n,r);void 0!==u&&Array.isArray(u)&&(u=mf(null,e,n,u[1],r),u=Ss(u,n.attrs,r),function aS(e,n,t,r){e[Or(t?n.classBindings:n.styleBindings)]=r}(e,n,r,u))}else i=function uS(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):l=t,o)if(0!==u){const v=Or(e[a+1]);e[r+1]=ku(v,a),0!==v&&(e[v+1]=pf(e[v+1],r)),e[a+1]=function WM(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ku(a,0),0!==a&&(e[a+1]=pf(e[a+1],r)),a=r;else e[r+1]=ku(u,0),0===a?a=r:e[u+1]=pf(e[u+1],r),u=r;c&&(e[r+1]=hf(e[r+1])),Kv(e,l,r,!0),Kv(e,l,r,!1),function ZM(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&$o(i,n)>=0&&(t[r+1]=gf(t[r+1]))}(n,l,e,r,i),s=ku(a,u),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==Ae&&Tt(o,s,n)&&function uy(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const u=e.data,c=u[a+1],l=function qM(e){return 1==(1&e)}(c)?cy(u,n,t,o,ro(c),s):void 0;Lu(l)||(Lu(i)||function GM(e){return 2==(2&e)}(c)&&(i=cy(u,null,t,o,a,s)),function G2(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:Tr.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tr.Important),e.setStyle(t,r,o,i))}}(r,s,function Ha(e,n){return Ye(n[e])}(Lt(),t),o,i))}(i,i.data[Lt()],o,o[we],e,o[s+1]=function fS(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=ht(Nr(e)))),e}(n,t),r,s)}(e,n,null,!0),pi}function mf(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=null===l;let v=t[o+1];v===Ae&&(v=d?Le:void 0);let A=d?Wl(v,r):l===r?v:void 0;if(c&&!Lu(A)&&(A=Wl(u,r)),Lu(A)&&(a=A,s))return a;const B=e[o+1];o=s?Or(B):ro(B)}if(null!==n){let u=i?n.residualClasses:n.residualStyles;null!=u&&(a=Wl(u,r))}return a}function Lu(e){return void 0!==e}function Dt(e,n=""){const t=ee(),r=ke(),o=e+Pe,i=r.firstCreatePass?ni(r,o,1,n,null):r.data[o],s=dy(r,t,i,n,e);t[o]=s,ja()&&lu(r,t,s,i),Wn(i,!1)}let dy=(e,n,t,r,o)=>(Fr(!0),function su(e,n){return e.createText(n)}(n[we],r));const mi="en-US";let Oy=mi;function Df(e,n,t,r,o){if(e=De(e),Array.isArray(e))for(let i=0;i>20;if(to(e)||!e.multi){const A=new es(c,o,ne),B=Ef(u,n,o?l:l+v,d);-1===B?(Ul(Wa(a,s),i,u),Cf(i,e,n.length),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(A),s.push(A)):(t[B]=A,s[B]=A)}else{const A=Ef(u,n,l+v,d),B=Ef(u,n,l,l+v),X=B>=0&&t[B];if(o&&!X||!o&&!(A>=0&&t[A])){Ul(Wa(a,s),i,u);const ie=function RI(e,n,t,r,o){const i=new es(e,t,ne);return i.multi=[],i.index=n,i.componentProviders=0,i1(i,o,r&&!t),i}(o?NI:TI,t.length,o,r,c);!o&&X&&(t[B].providerFactory=ie),Cf(i,e,n.length,0),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(ie),s.push(ie)}else Cf(i,e,A>-1?A:B,i1(t[o?B:A],c,!o&&r));!o&&r&&X&&t[B].componentProviders++}}}function Cf(e,n,t,r){const o=to(n),i=function Cb(e){return!!e.useClass}(n);if(o||i){const u=(i?De(n.useClass):n).prototype.ngOnDestroy;if(u){const c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const l=c.indexOf(t);-1===l?c.push(t,[r,u]):c[l+1].push(r,u)}else c.push(t,u)}}}function i1(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Ef(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function FI(e,n,t){const r=ke();if(r.firstCreatePass){const o=On(e);Df(t,r.data,r.blueprint,o,!0),Df(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class io{}class s1{}class wf extends io{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new dv(this);const o=dn(n);this._bootstrapComponents=pr(o.bootstrap),this._r3Injector=wm(n,t,[{provide:io,useValue:this},{provide:wu,useValue:this.componentFactoryResolver},...r],ht(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class bf extends s1{constructor(n){super(),this.moduleType=n}create(n){return new wf(this.moduleType,n,[])}}class a1 extends io{constructor(n){super(),this.componentFactoryResolver=new dv(this),this.instance=null;const t=new Zo([...n.providers,{provide:io,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],n.parent||vu(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Af(e,n,t=null){return new a1({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let BI=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=am(0,t.type),o=r.length>0?Af([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=fe({token:e,providedIn:"environment",factory:()=>new e(pe(wn))})}return e})();function u1(e){e.getStandaloneInjector=n=>n.get(BI).getOrCreateStandaloneInjector(e)}function Uu(e,n,t){const r=function kt(){const e=xe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}()+e,o=ee();return o[r]===Ae?function Zn(e,n,t){return e[n]=t}(o,r,t?n.call(t):n()):function _s(e,n){return e[n]}(o,r)}function aF(){return this._results[Symbol.iterator]()}class Sf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new it)}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=Sf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=aF)}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 r=this;r.dirty=!1;const o=function _n(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Qw(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[o-1][Rn]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=fF}return e})();const lF=mr,dF=class extends lF{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function uF(e,n,t,r){const o=n.tView,a=Mu(e,o,t,4096&e[Se]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[qi]=e[n.index];const c=e[Un];return null!==c&&(a[Un]=c.createEmbeddedView(o)),Jd(o,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new Cs(o)}};function fF(){return zu(bt(),ee())}function zu(e,n){return 4&e.type?new dF(n,e,Jo(e,n)):null}let kn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=yF}return e})();function yF(){return A1(bt(),ee())}const xF=kn,w1=class extends xF{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Jo(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){const n=qa(this._hostTNode,this._hostLView);if(Hl(n)){const t=ns(n,this._hostLView),r=ts(n);return new Ht(t[ae].data[r+8],t)}return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=b1(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-_t}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,t,r,o,i){const s=n&&!function os(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const z=t||{};a=z.index,r=z.injector,o=z.projectableNodes,i=z.environmentInjector||z.ngModuleRef}const u=s?n:new Es(Be(n)),c=r||this.parentInjector;if(!i&&null==u.ngModule){const X=(s?c:this.parentInjector).get(wn,null);X&&(i=X)}Be(u.componentType??{});const A=u.create(c,o,null,i);return this.insertImpl(A.hostView,a,false),A}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const o=n._lView;if(function lw(e){return Bt(e[Je])}(o)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=o[Je],l=new w1(c,c[It],c[Je]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return cF(a,o,s,!r),n.attachToViewContainerRef(),cg(If(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=b1(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=uu(this._lContainer,t);r&&(Ya(If(this._lContainer),t),rd(r[ae],r))}detach(n){const t=this._adjustIndex(n,-1),r=uu(this._lContainer,t);return r&&null!=Ya(If(this._lContainer),t)?new Cs(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function b1(e){return e[8]}function If(e){return e[8]||(e[8]=[])}function A1(e,n){let t;const r=n[e.index];return Bt(r)?t=r:(t=Jm(r,n,null,e),n[e.index]=t,Su(n,t)),M1(t,n,e,r),new w1(t,e,n)}let M1=function S1(e,n,t,r){if(e[zn])return;let o;o=8&t.type?Ye(r):function DF(e,n){const t=e[we],r=t.createComment(""),o=Kt(n,e);return eo(t,cu(t,o),r,function $2(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[zn]=o};class Ff{constructor(n){this.queryList=n,this.matches=null}clone(){return new Ff(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{const c=i[a+1],l=n[-u];for(let d=_t;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=ue(qu,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(Ms(i))t.push(i);else if(Bv(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X1=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const vr=new ce("LocaleId",{providedIn:"root",factory:()=>ue(vr,Oe.Optional|Oe.SkipSelf)||function YF(){return typeof $localize<"u"&&$localize.locale||mi}()});let J1=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xn(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class JF{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let ex=(()=>{class e{compileModuleSync(t){return new bf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=pr(dn(t).declarations).reduce((s,a)=>{const u=Be(a);return u&&s.push(new Es(u)),s},[]);return new JF(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ox=new ce(""),Zu=new ce("");let qf,Gf=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,qf||(function CT(e){qf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!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,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(pe(We),pe(Wf),pe(Zu))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),Wf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return qf?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Pr=null;const ix=new ce("AllowMultipleToken"),Qf=new ce("PlatformDestroyListeners"),Zf=new ce("appBootstrapListener");class ax{constructor(n,t){this.name=n,this.token=t}}function cx(e,n,t=[]){const r=`Platform: ${n}`,o=new ce(r);return(i=[])=>{let s=Yf();if(!s||s.injector.get(ix,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function wT(e){if(Pr&&!Pr.get(ix,!1))throw new oe(400,!1);(function sx(){!function Z_(e){xp=e}(()=>{throw new oe(600,!1)})})(),Pr=e;const n=e.get(dx);(function ux(e){e.get(fm,null)?.forEach(t=>t())})(e)}(function lx(e=[],n){return en.create({name:n,providers:[{provide:Cd,useValue:"platform"},{provide:Qf,useValue:new Set([()=>Pr=null])},...e]})}(a,r))}return function AT(e){const n=Yf();if(!n)throw new oe(401,!1);return n}()}}function Yf(){return Pr?.get(dx)??null}let dx=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function MT(e="zone.js",n){return"noop"===e?new rA:"zone.js"===e?new We(n):e}(r?.ngZone,function fx(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function PI(e,n,t){return new wf(e,n,t)}(t.moduleType,this.injector,function vx(e){return[{provide:We,useFactory:e},{provide:ps,multi:!0,useFactory:()=>{const n=ue(IT,{optional:!0});return()=>n.initialize()}},{provide:mx,useFactory:ST},{provide:Im,useFactory:Fm}]}(()=>o)),s=i.injector.get(hr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{Yu(this._modules,i),a.unsubscribe()})}),function hx(e,n,t){try{const r=t();return Ms(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get($f);return a.runInitializers(),a.donePromise.then(()=>(function Py(e){Dn(e,"Expected localeId to be defined"),"string"==typeof e&&(Oy=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(vr,mi)||mi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=px({},r);return function ET(e,n,t){const r=new bf(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(so);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new oe(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new oe(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Qf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(pe(en))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function px(e,n){return Array.isArray(n)?n.reduce(px,e):{...e,...n}}let so=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ue(mx),this.zoneIsStable=ue(Im),this.componentTypes=[],this.components=[],this.isStable=ue(J1).hasPendingTasks.pipe(qt(t=>t?ve(!1):this.zoneIsStable),function s_(e,n=Q){return e=e??a_,ge((t,r)=>{let o,i=!0;t.subscribe(Te(r,s=>{const a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),k0()),this._injector=ue(wn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof vm;if(!this._injector.get($f).done)throw!o&&function bo(e){const n=Be(e)||Et(e)||Pt(e);return null!==n&&n.standalone}(t),new oe(405,!1);let s;s=o?t:this._injector.get(wu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function _T(e){return e.isBoundToModule}(s)?void 0:this._injector.get(io),c=s.create(en.NULL,[],r||s.selector,a),l=c.location.nativeElement,d=c.injector.get(ox,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Yu(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new oe(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Yu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Zf,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Yu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new oe(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const mx=new ce("",{providedIn:"root",factory:()=>ue(hr).handleError.bind(void 0)});function ST(){const e=ue(We),n=ue(hr);return t=>e.runOutsideAngular(()=>n.handleError(t))}let IT=(()=>{class e{constructor(){this.zone=ue(We),this.applicationRef=ue(so)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Ku=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=NT}return e})();function NT(e){return function RT(e,n,t){if(Yr(e)&&!t){const r=fn(e.index,n);return new Cs(r,r)}return 47&e.type?new Cs(n[ut],n):null}(bt(),ee(),16==(16&e))}const WT=cx(null,"core",[]);let qT=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(pe(so))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();function xi(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let nh=null;function Br(){return nh}class a4{}const An=new ce("DocumentToken");let rh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(c4)},providedIn:"platform"})}return e})();const u4=new ce("Location Initialized");let c4=(()=>{class e extends rh{constructor(){super(),this._doc=ue(An),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Br().getBaseHref(this._doc)}onPopState(t){const r=Br().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Br().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function oh(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 Px(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 yr(e){return e&&"?"!==e[0]?"?"+e:e}let uo=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(kx)},providedIn:"root"})}return e})();const Bx=new ce("appBaseHref");let kx=(()=>{class e extends uo{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ue(An).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return oh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+yr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+yr(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+yr(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(rh),pe(Bx,8))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),l4=(()=>{class e extends uo{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=oh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+yr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+yr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(rh),pe(Bx,8))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),ih=(()=>{class e{constructor(t){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function h4(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Px(Lx(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+yr(r))}normalize(t){return e.stripTrailingSlash(function f4(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Lx(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yr(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static#e=this.normalizeQueryParams=yr;static#t=this.joinWithSlash=oh;static#n=this.stripTrailingSlash=Px;static#r=this.\u0275fac=function(r){return new(r||e)(pe(uo))};static#o=this.\u0275prov=fe({token:e,factory:function(){return function d4(){return new ih(pe(uo))}()},providedIn:"root"})}return e})();function Lx(e){return e.replace(/\/index.html$/,"")}let fc=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new n8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Yx("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Yx("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,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(ne(kn),ne(mr))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class n8{constructor(){this.$implicit=null,this.ngIf=null}}function Yx(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ht(n)}'.`)}let co=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();const Jx="browser";function eD(e){return e===Jx}function tD(e){return"server"===e}let F8=(()=>{class e{static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new T8(pe(An),window)})}return e})();class T8{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 N8(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class nN extends a4{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Eh extends nN{static makeCurrent(){!function s4(e){nh||(nh=e)}(new Eh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}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 rN(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}();return null==t?null:function oN(e){gc=gc||document.createElement("a"),gc.setAttribute("href",e);const n=gc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function K4(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}(document.cookie,n)}}let gc,$s=null,sN=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const _h=new ce("EventManagerPlugins");let sD=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new oe(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(pe(_h),pe(We))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();class aD{constructor(n){this._doc=n}}const wh="ng-app-id";let uD=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=tD(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${wh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(wh),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(wh,this.appId),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r);t.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An),pe(yu),pe(hm,8),pe(Rr))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const bh={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/"},Ah=/%COMP%/g,lN=new ce("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function lD(e,n){return n.map(t=>t.replace(Ah,e))}let dD=(()=>{class e{constructor(t,r,o,i,s,a,u,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=tD(a),this.defaultRenderer=new Mh(t,s,u,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Tn.ShadowDom&&(r={...r,encapsulation:Tn.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof hD?o.applyToHost(t):o instanceof Sh&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Tn.Emulated:i=new hD(u,c,r,this.appId,l,s,a,d);break;case Tn.ShadowDom:return new pN(u,c,t,r,s,a,this.nonce,d);default:i=new Sh(u,c,r,l,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(pe(sD),pe(uD),pe(yu),pe(lN),pe(An),pe(Rr),pe(We),pe(hm))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();class Mh{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(bh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(fD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(fD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new oe(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=bh[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=bh[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Tr.DashCase|Tr.Important)?n.style.setProperty(t,r,o&Tr.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Tr.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Br().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function fD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class pN extends Mh{constructor(n,t,r,o,i,s,a,u){super(n,i,s,u),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=lD(o.id,o.styles);for(const l of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sh extends Mh{constructor(n,t,r,o,i,s,a,u){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=u?lD(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class hD extends Sh{constructor(n,t,r,o,i,s,a,u){const c=o+"-"+r.id;super(n,t,r,i,s,a,u,c),this.contentAttr=function dN(e){return"_ngcontent-%COMP%".replace(Ah,e)}(c),this.hostAttr=function fN(e){return"_nghost-%COMP%".replace(Ah,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let gN=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const pD=["alt","control","meta","shift"],mN={"\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"},vN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yN=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Br().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pD.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,r){let o=mN[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),pD.forEach(s=>{s!==o&&(0,vN[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const EN=cx(WT,"browser",[{provide:Rr,useValue:Jx},{provide:fm,useValue:function xN(){Eh.makeCurrent()},multi:!0},{provide:An,useFactory:function CN(){return function Y2(e){ld=e}(document),document},deps:[]}]),_N=new ce(""),vD=[{provide:Zu,useClass:class iN{addToWindow(n){Ze.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new oe(5103,!1);return i},Ze.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ze.getAllAngularRootElements=()=>n.getAllRootElements(),Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(r=>{const o=Ze.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(u=>{u.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Br().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:ox,useClass:Gf,deps:[We,Wf,Zu]},{provide:Gf,useClass:Gf,deps:[We,Wf,Zu]}],yD=[{provide:Cd,useValue:"root"},{provide:hr,useFactory:function DN(){return new hr},deps:[]},{provide:_h,useClass:gN,multi:!0,deps:[An,We,Rr]},{provide:_h,useClass:yN,multi:!0,deps:[An]},dD,uD,sD,{provide:xm,useExisting:dD},{provide:class R8{},useClass:sN,deps:[]},[]];let wN=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:yu,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(pe(_N,12))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[...yD,...vD],imports:[co,qT]})}return e})(),xD=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:function(r){let o=null;return o=r?new r:function AN(){return new xD(pe(An))}(),o},providedIn:"root"})}return e})();typeof window<"u"&&window;const{isArray:NN}=Array,{getPrototypeOf:RN,prototype:ON,keys:PN}=Object;function _D(e){if(1===e.length){const n=e[0];if(NN(n))return{args:n,keys:null};if(function BN(e){return e&&"object"==typeof e&&RN(e)===ON}(n)){const t=PN(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:kN}=Array;function Fh(e){return me(n=>function LN(e,n){return kN(n)?e(...n):e(n)}(e,n))}function wD(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function Th(...e){const n=Hi(e),t=R0(e),{args:r,keys:o}=_D(e);if(0===r.length)return vt([],n);const i=new se(function VN(e,n,t=Q){return r=>{bD(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const c=vt(e[u],n);let l=!1;c.subscribe(Te(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>wD(o,s):Q));return t?i.pipe(Fh(t)):i}function bD(e,n,t){e?or(t,e,n):n()}const mc=f(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Us(...e){return function HN(){return _o(1)}()(vt(e,Hi(e)))}function vc(e){return new se(n=>{mt(e()).subscribe(n)})}function Ci(e,n){const t=p(e)?e:()=>e,r=o=>o.error(t());return new se(n?o=>n.schedule(r,0,o):r)}function Nh(){return ge((e,n)=>{let t=null;e._refCount++;const r=Te(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class Rh extends se{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ve(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new b;const t=this.getSubject();n.add(this.source.subscribe(Te(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=b.EMPTY)}return n}refCount(){return Nh()(this)}}function on(e){return e<=0?()=>jn:ge((n,t)=>{let r=0;n.subscribe(Te(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function sn(e,n){return ge((t,r)=>{let o=0;t.subscribe(Te(r,i=>e.call(n,i,o++)&&r.next(i)))})}function yc(e){return ge((n,t)=>{let r=!1;n.subscribe(Te(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function AD(e=$N){return ge((n,t)=>{let r=!1;n.subscribe(Te(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function $N(){return new mc}function lo(e,n){const t=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Q,on(1),t?yc(n):AD(()=>new mc))}function zs(e,n){return p(n)?ft(e,n,1):ft(e,1)}function Mt(e,n,t){const r=p(e)||n||t?{next:e,error:n,complete:t}:e;return r?ge((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(i,u=>{var c;null===(c=r.next)||void 0===c||c.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,u),i.error(u)},()=>{var u,c;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Q}function fo(e){return ge((n,t)=>{let i,r=null,o=!1;r=n.subscribe(Te(t,void 0,void 0,s=>{i=mt(e(s,fo(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function Oh(e){return e<=0?()=>jn:ge((n,t)=>{let r=[];n.subscribe(Te(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function MD(e){return me(()=>e)}function Ph(e){return ge((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Ie="primary",Gs=Symbol("RouteTitle");class qN{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 Ei(e){return new qN(e)}function QN(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function ID(e){return e.length>0?e[e.length-1]:null}function Lr(e){return function TN(e){return!!e&&(e instanceof se||p(e.lift)&&p(e.subscribe))}(e)?e:Ms(e)?vt(Promise.resolve(e)):ve(e)}const YN={exact:function ND(e,n,t){if(!ho(e.segments,n.segments)||!xc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!ND(e.children[r],n.children[r],t))return!1;return!0},subset:RD},FD={exact:function KN(e,n){return Jn(e,n)},subset:function XN(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>SD(e[t],n[t]))},ignored:()=>!0};function TD(e,n,t){return YN[t.paths](e.root,n.root,t.matrixParams)&&FD[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function RD(e,n,t){return OD(e,n,n.segments,t)}function OD(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!ho(o,t)||n.hasChildren()||!xc(o,t,r))}if(e.segments.length===t.length){if(!ho(e.segments,t)||!xc(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!RD(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(ho(e.segments,o)&&xc(e.segments,o,r)&&e.children[Ie])&&OD(e.children[Ie],n,i,r)}}function xc(e,n,t){return n.every((r,o)=>FD[t](e[o].parameters,r.parameters))}class _i{constructor(n=new Ge([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return tR.serialize(this)}}class Ge{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dc(this)}}class Ws{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ei(this.parameters)),this._parameterMap}toString(){return kD(this)}}function ho(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let qs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return new Bh},providedIn:"root"})}return e})();class Bh{parse(n){const t=new fR(n);return new _i(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Qs(n.root,!0)}`,r=function oR(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Cc(t)}=${Cc(o)}`).join("&"):`${Cc(t)}=${Cc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function nR(e){return encodeURI(e)}(n.fragment)}`:""}`}}const tR=new Bh;function Dc(e){return e.segments.map(n=>kD(n)).join("/")}function Qs(e,n){if(!e.hasChildren())return Dc(e);if(n){const t=e.children[Ie]?Qs(e.children[Ie],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==Ie&&r.push(`${o}:${Qs(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function eR(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===Ie&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==Ie&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===Ie?[Qs(e.children[Ie],!1)]:[`${o}:${Qs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ie]?`${Dc(e)}/${t[0]}`:`${Dc(e)}/(${t.join("//")})`}}function PD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(e){return PD(e).replace(/%3B/gi,";")}function kh(e){return PD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ec(e){return decodeURIComponent(e)}function BD(e){return Ec(e.replace(/\+/g,"%20"))}function kD(e){return`${kh(e.path)}${function rR(e){return Object.keys(e).map(n=>`;${kh(n)}=${kh(e[n])}`).join("")}(e.parameters)}`}const iR=/^[^\/()?;#]+/;function Lh(e){const n=e.match(iR);return n?n[0]:""}const sR=/^[^\/()?;=#]+/,uR=/^[^=?&#]+/,lR=/^[^&#]+/;class fR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Ie]=new Ge(n,t)),r}parseSegment(){const n=Lh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new oe(4009,!1);return this.capture(n),new Ws(Ec(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function aR(e){const n=e.match(sR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Lh(this.remaining);o&&(r=o,this.capture(r))}n[Ec(t)]=Ec(r)}parseQueryParam(n){const t=function cR(e){const n=e.match(uR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function dR(e){const n=e.match(lR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=BD(t),i=BD(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Lh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new oe(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=Ie);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Ie]:new Ge([],s),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 oe(4011,!1)}}function LD(e){return e.segments.length>0?new Ge([],{[Ie]:e}):e}function VD(e){const n={};for(const r of Object.keys(e.children)){const i=VD(e.children[r]);if(r===Ie&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function hR(e){if(1===e.numberOfChildren&&e.children[Ie]){const n=e.children[Ie];return new Ge(e.segments.concat(n.segments),n.children)}return e}(new Ge(e.segments,n))}function po(e){return e instanceof _i}function HD(e){let n;const o=LD(function t(i){const s={};for(const u of i.children){const c=t(u);s[u.outlet]=c}const a=new Ge(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function jD(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return Vh(o,o,o,t,r);const i=function gR(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new UD(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new UD(t,n,r)}(n);if(i.toRoot())return Vh(o,o,new Ge([],{}),t,r);const s=function mR(e,n,t){if(e.isAbsolute)return new wc(n,!0,0);if(!t)return new wc(n,!1,NaN);if(null===t.parent)return new wc(t,!0,0);const r=_c(e.commands[0])?0:1;return function vR(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new oe(4005,!1);o=r.segments.length}return new wc(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Ys(s.segmentGroup,s.index,i.commands):zD(s.segmentGroup,s.index,i.commands);return Vh(o,s.segmentGroup,a,t,r)}function _c(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Zs(e){return"object"==typeof e&&null!=e&&e.outlets}function Vh(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`}),s=e===n?t:$D(e,n,t);const a=LD(VD(s));return new _i(a,i,o)}function $D(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:$D(i,n,t)}),new Ge(e.segments,r)}class UD{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&_c(r[0]))throw new oe(4003,!1);const o=r.find(Zs);if(o&&o!==ID(r))throw new oe(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wc{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function zD(e,n,t){if(e||(e=new Ge([],{})),0===e.segments.length&&e.hasChildren())return Ys(e,n,t);const r=function xR(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(Zs(a))break;const u=`${a}`,c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!WD(u,c,s))return i;r+=2}else{if(!WD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndexi!==Ie)&&e.children[Ie]&&1===e.numberOfChildren&&0===e.children[Ie].segments.length){const i=Ys(e.children[Ie],n,t);return new Ge(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=zD(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Ge(e.segments,o)}}function Hh(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Hh(new Ge([],{}),0,r))}),n}function GD(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function WD(e,n,t){return e==t.path&&Jn(n,t.parameters)}const Ks="imperative";class er{constructor(n,t){this.id=n,this.url=t}}class bc extends er{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vr extends er{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xs extends er{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class wi extends er{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class Ac extends er{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qD extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CR extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ER extends er{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _R extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wR extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class AR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class MR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class IR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class QD{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jh{}class $h{constructor(n){this.url=n}}class TR{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Js,this.attachRef=null}}let Js=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new TR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class ZD{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=Uh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Uh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=zh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return zh(n,this._root).map(t=>t.value)}}function Uh(e,n){if(e===n.value)return n;for(const t of n.children){const r=Uh(e,t);if(r)return r}return null}function zh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=zh(e,t);if(r.length)return r.unshift(n),r}return[]}class Cr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function bi(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class YD extends ZD{constructor(n,t){super(n),this.snapshot=t,Gh(this,n)}toString(){return this.snapshot.toString()}}function KD(e,n){const t=function NR(e,n){const s=new Mc([],{},{},"",{},Ie,n,null,{});return new JD("",new Cr(s,[]))}(0,n),r=new xn([new Ws("",{})]),o=new xn({}),i=new xn({}),s=new xn({}),a=new xn(""),u=new Ai(r,o,s,a,i,Ie,n,t.root);return u.snapshot=t.root,new YD(new Cr(u,[]),t)}class Ai{constructor(n,t,r,o,i,s,a,u){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(me(c=>c[Gs]))??ve(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}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(me(n=>Ei(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(me(n=>Ei(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function XD(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function RR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Mc{get title(){return this.data?.[Gs]}constructor(n,t,r,o,i,s,a,u,c){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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=Ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class JD extends ZD{constructor(n,t){super(t),this.url=n,Gh(this,t)}toString(){return eC(this._root)}}function Gh(e,n){n.value._routerState=e,n.children.forEach(t=>Gh(e,t))}function eC(e){const n=e.children.length>0?` { ${e.children.map(eC).join(", ")} } `:"";return`${e.value}${n}`}function Wh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Jn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Jn(n.params,t.params)||e.paramsSubject.next(t.params),function ZN(e,n){if(e.length!==n.length)return!1;for(let t=0;tJn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||qh(e.parent,n.parent))}let Qh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ie,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=ue(Js),this.location=ue(kn),this.changeDetector=ue(Ku),this.environmentInjector=ue(wn),this.inputBinder=ue(Sc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new oe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new oe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new oe(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new oe(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new OR(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[En]})}return e})();class OR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Ai?this.route:n===Js?this.childContexts:this.parent.get(n,t)}}const Sc=new ce("");let tC=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=Th([r.queryParams,r.params,r.data]).pipe(qt(([i,s,a],u)=>(a={...i,...s,...a},0===u?ve(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function i4(e){const n=Be(e);if(!n)return null;const t=new Es(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();function ea(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function BR(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ea(e,r,o);return ea(e,r)})}(e,n,t);return new Cr(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ea(e,a)),s}}const r=function kR(e){return new Ai(new xn(e.url),new xn(e.params),new xn(e.queryParams),new xn(e.fragment),new xn(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>ea(e,i));return new Cr(r,o)}}const Zh="ngNavigationCancelingError";function nC(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=po(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=rC(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function rC(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[Zh]=!0,r.cancellationCode=n,t&&(r.url=t),r}function oC(e){return e&&e[Zh]}let iC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["ng-component"]],standalone:!0,features:[u1],decls:1,vars:0,template:function(r,o){1&r&&nt(0,"router-outlet")},dependencies:[Qh],encapsulation:2})}return e})();function Yh(e){const n=e.children&&e.children.map(Yh),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Ie&&(t.component=iC),t}function Hn(e){return e.outlet||Ie}function ta(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class GR{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Wh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=bi(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=bi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=bi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=bi(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new FR(i.value.snapshot))}),n.children.length&&this.forwardEvent(new SR(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(Wh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ta(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class sC{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ic{constructor(n,t){this.component=n,this.route=t}}function WR(e,n,t){const r=e._root;return na(r,n?n._root:null,t,[r.value])}function Mi(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function p_(e){return null!==Sa(e)}(e)?n.get(e):e:r}function na(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=bi(n);return e.children.forEach(s=>{(function QR(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function ZR(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!ho(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ho(e.url,n.url)||!Jn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qh(e,n)||!Jn(e.queryParams,n.queryParams);default:return!qh(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new sC(r)):(i.data=s.data,i._resolvedData=s._resolvedData),na(e,n,i.component?a?a.children:null:t,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ic(a.outlet.component,s))}else s&&ra(n,a,o),o.canActivateChecks.push(new sC(r)),na(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ra(a,t.getContext(s),o)),o}function ra(e,n,t){const r=bi(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ra(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Ic(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function oa(e){return"function"==typeof e}function aC(e){return e instanceof mc||"EmptyError"===e?.name}const Fc=Symbol("INITIAL_VALUE");function Si(){return qt(e=>Th(e.map(n=>n.pipe(on(1),function jN(...e){const n=Hi(e);return ge((t,r)=>{(n?Us(e,t,n):Us(e,t)).subscribe(r)})}(Fc)))).pipe(me(n=>{for(const t of n)if(!0!==t){if(t===Fc)return Fc;if(!1===t||t instanceof _i)return t}return!0}),sn(n=>n!==Fc),on(1)))}function uC(e){return function W(...e){return de(e)}(Mt(n=>{if(po(n))throw nC(0,n)}),me(n=>!0===n))}class Tc{constructor(n){this.segmentGroup=n||null}}class cC{constructor(n){this.urlTree=n}}function Ii(e){return Ci(new Tc(e))}function lC(e){return Ci(new cC(e))}class gO{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new oe(4002,!1)}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ve(r);if(o.numberOfChildren>1||!o.children[Ie])return Ci(new oe(4e3,!1));o=o.children[Ie]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new _i(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,o)}),new Ge(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new oe(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const Kh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mO(e,n,t,r,o){const i=Xh(e,n,t);return i.matched?(r=function VR(e,n){return e.providers&&!e._injector&&(e._injector=Af(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function fO(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?ve(o.map(s=>{const a=Mi(s,e);return Lr(function tO(e){return e&&oa(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Si(),uC()):ve(!0)}(r,n,t).pipe(me(s=>!0===s?i:{...Kh}))):ve(i)}function Xh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Kh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||QN)(t,e,n);if(!o)return{...Kh};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function dC(e,n,t,r){return t.length>0&&function xO(e,n,t){return t.some(r=>Nc(e,n,r)&&Hn(r)!==Ie)}(e,t,r)?{segmentGroup:new Ge(n,yO(r,new Ge(t,e.children))),slicedSegments:[]}:0===t.length&&function DO(e,n,t){return t.some(r=>Nc(e,n,r))}(e,t,r)?{segmentGroup:new Ge(e.segments,vO(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new Ge(e.segments,e.children),slicedSegments:t}}function vO(e,n,t,r,o){const i={};for(const s of r)if(Nc(e,t,s)&&!o[Hn(s)]){const a=new Ge([],{});i[Hn(s)]=a}return{...o,...i}}function yO(e,n){const t={};t[Ie]=n;for(const r of e)if(""===r.path&&Hn(r)!==Ie){const o=new Ge([],{});t[Hn(r)]=o}return t}function Nc(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class wO{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new gO(this.urlSerializer,this.urlTree)}noMatchError(n){return new oe(4002,!1)}recognize(){const n=dC(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ie).pipe(fo(t=>{if(t instanceof cC)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Tc?this.noMatchError(t):t}),me(t=>{const r=new Mc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ie,this.rootComponentType,null,{}),o=new Cr(r,t),i=new JD("",o),s=function pR(e,n,t=null,r=null){return jD(HD(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Ie).pipe(fo(r=>{throw r instanceof Tc?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=XD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0)}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return vt(o).pipe(zs(i=>{const s=r.children[i],a=function UR(e,n){const t=e.filter(r=>Hn(r)===n);return t.push(...e.filter(r=>Hn(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function zN(e,n){return ge(function UN(e,n,t,r,o){return(i,s)=>{let a=t,u=n,c=0;i.subscribe(Te(s,l=>{const d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),yc(null),function GN(e,n){const t=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Q,Oh(1),t?yc(n):AD(()=>new mc))}(),ft(i=>{if(null===i)return Ii(r);const s=fC(i);return function bO(e){e.sort((n,t)=>n.value.outlet===Ie?-1:t.value.outlet===Ie?1:n.value.outlet.localeCompare(t.value.outlet))}(s),ve(s)}))}processSegment(n,t,r,o,i,s){return vt(t).pipe(zs(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(fo(u=>{if(u instanceof Tc)return ve(null);throw u}))),lo(a=>!!a),fo(a=>{if(aC(a))return function EO(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?ve([]):Ii(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function CO(e,n,t,r){return!!(Hn(e)===r||r!==Ie&&Nc(n,t,e))&&("**"===e.path||Xh(n,e,t).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Ii(o):Ii(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?lC(i):this.applyRedirects.lineralizeSegments(r,i).pipe(ft(s=>{const a=new Ge(s,{});return this.processSegment(n,t,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:c,positionalParamSegments:l}=Xh(t,o,i);if(!a)return Ii(t);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,l);return o.redirectTo.startsWith("/")?lC(d):this.applyRedirects.lineralizeSegments(o,d).pipe(ft(v=>this.processSegment(n,r,t,v.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?ID(o).parameters:{};a=ve({snapshot:new Mc(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hC(r),Hn(r),r.component??r._loadedComponent??null,r,pC(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=mO(t,r,o,n).pipe(me(({matched:u,consumedSegments:c,remainingSegments:l,parameters:d})=>u?{snapshot:new Mc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hC(r),Hn(r),r.component??r._loadedComponent??null,r,pC(r)),consumedSegments:c,remainingSegments:l}:null));return a.pipe(qt(u=>null===u?Ii(t):this.getChildConfig(n=r._injector??n,r,o).pipe(qt(({routes:c})=>{const l=r._loadedInjector??n,{snapshot:d,consumedSegments:v,remainingSegments:A}=u,{segmentGroup:B,slicedSegments:z}=dC(t,v,A,c);if(0===z.length&&B.hasChildren())return this.processChildren(l,c,B).pipe(me(ie=>null===ie?null:[new Cr(d,ie)]));if(0===c.length&&0===z.length)return ve([new Cr(d,[])]);const X=Hn(r)===i;return this.processSegment(l,c,B,z,X?Ie:i,!0).pipe(me(ie=>[new Cr(d,ie)]))}))))}getChildConfig(n,t,r){return t.children?ve({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ve({routes:t._loadedRoutes,injector:t._loadedInjector}):function dO(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?ve(!0):ve(o.map(s=>{const a=Mi(s,e);return Lr(function KR(e){return e&&oa(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Si(),uC())}(n,t,r).pipe(ft(o=>o?this.configLoader.loadChildren(n,t).pipe(Mt(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function pO(e){return Ci(rC(!1,3))}())):ve({routes:[],injector:n})}}function AO(e){const n=e.value.routeConfig;return n&&""===n.path}function fC(e){const n=[],t=new Set;for(const r of e){if(!AO(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=fC(r.children);n.push(new Cr(r.value,o))}return n.filter(r=>!t.has(r))}function hC(e){return e.data||{}}function pC(e){return e.resolve||{}}function gC(e){return"string"==typeof e.title||null===e.title}function Jh(e){return qt(n=>{const t=e(n);return t?vt(t).pipe(me(()=>n)):ve(n)})}const Fi=new ce("ROUTES");let e0=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ue(ex)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ve(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Lr(t.loadComponent()).pipe(me(mC),Mt(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Ph(()=>{this.componentLoaders.delete(t)})),o=new Rh(r,()=>new K).pipe(Nh());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function RO(e,n,t,r){return Lr(e.loadChildren()).pipe(me(mC),ft(o=>o instanceof s1||Array.isArray(o)?ve(o):vt(n.compileModuleAsync(o))),me(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(Fi,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yh),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Ph(()=>{this.childrenLoaders.delete(r)})),s=new Rh(i,()=>new K).pipe(Nh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mC(e){return function OO(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Rc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=ue(e0),this.environmentInjector=ue(wn),this.urlSerializer=ue(qs),this.rootContexts=ue(Js),this.inputBindingEnabled=null!==ue(Sc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ve(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new AR(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new bR(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new xn({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ks,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(sn(i=>0!==i.id),me(i=>({...i,extractedUrl:t.urlHandlingStrategy.extract(i.rawUrl)})),qt(i=>{this.currentTransition=i;let s=!1,a=!1;return ve(i).pipe(Mt(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),qt(u=>{const c=u.currentBrowserUrl.toString(),l=!t.navigated||u.extractedUrl.toString()!==c||c!==u.currentUrlTree.toString();if(!l&&"reload"!==(u.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const v="";return this.events.next(new wi(u.id,this.urlSerializer.serialize(u.rawUrl),v,0)),u.resolve(null),jn}if(t.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ve(u).pipe(qt(v=>{const A=this.transitions?.getValue();return this.events.next(new bc(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),A!==this.transitions?.getValue()?jn:Promise.resolve(v)}),function MO(e,n,t,r,o,i){return ft(s=>function _O(e,n,t,r,o,i,s="emptyOnly"){return new wO(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(me(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Mt(v=>{i.targetSnapshot=v.targetSnapshot,i.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:v.urlAfterRedirects};const A=new qD(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(A)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:v,extractedUrl:A,source:B,restoredState:z,extras:X}=u,ie=new bc(v,this.urlSerializer.serialize(A),B,z);this.events.next(ie);const G=KD(0,this.rootComponentType).snapshot;return this.currentTransition=i={...u,targetSnapshot:G,urlAfterRedirects:A,extras:{...X,skipLocationChange:!1,replaceUrl:!1}},ve(i)}{const v="";return this.events.next(new wi(u.id,this.urlSerializer.serialize(u.extractedUrl),v,1)),u.resolve(null),jn}}),Mt(u=>{const c=new CR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),me(u=>(this.currentTransition=i={...u,guards:WR(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},i)),function rO(e,n){return ft(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?ve({...t,guardsResult:!0}):function oO(e,n,t,r){return vt(e).pipe(ft(o=>function lO(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ve(i.map(a=>{const u=ta(n)??o,c=Mi(a,u);return Lr(function eO(e){return e&&oa(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):u.runInContext(()=>c(e,n,t,r))).pipe(lo())})).pipe(Si()):ve(!0)}(o.component,o.route,t,n,r)),lo(o=>!0!==o,!0))}(s,r,o,e).pipe(ft(a=>a&&function YR(e){return"boolean"==typeof e}(a)?function iO(e,n,t,r){return vt(n).pipe(zs(o=>Us(function aO(e,n){return null!==e&&n&&n(new MR(e)),ve(!0)}(o.route.parent,r),function sO(e,n){return null!==e&&n&&n(new IR(e)),ve(!0)}(o.route,r),function cO(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function qR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>vc(()=>ve(s.guards.map(u=>{const c=ta(s.node)??t,l=Mi(u,c);return Lr(function JR(e){return e&&oa(e.canActivateChild)}(l)?l.canActivateChild(r,e):c.runInContext(()=>l(r,e))).pipe(lo())})).pipe(Si())));return ve(i).pipe(Si())}(e,o.path,t),function uO(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ve(!0);const o=r.map(i=>vc(()=>{const s=ta(n)??t,a=Mi(i,s);return Lr(function XR(e){return e&&oa(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(lo())}));return ve(o).pipe(Si())}(e,o.route,t))),lo(o=>!0!==o,!0))}(r,i,e,n):ve(a)),me(a=>({...t,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),Mt(u=>{if(i.guardsResult=u.guardsResult,po(u.guardsResult))throw nC(0,u.guardsResult);const c=new ER(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),sn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),Jh(u=>{if(u.guards.canActivateChecks.length)return ve(u).pipe(Mt(c=>{const l=new _R(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),qt(c=>{let l=!1;return ve(c).pipe(function SO(e,n){return ft(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return ve(t);let i=0;return vt(o).pipe(zs(s=>function IO(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!gC(o)&&(i[Gs]=o.title),function FO(e,n,t,r){const o=function TO(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return ve({});const i={};return vt(o).pipe(ft(s=>function NO(e,n,t,r){const o=ta(n)??r,i=Mi(e,o);return Lr(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(lo(),Mt(a=>{i[s]=a}))),Oh(1),MD(i),fo(s=>aC(s)?jn:Ci(s)))}(i,e,n,r).pipe(me(s=>(e._resolvedData=s,e.data=XD(e,t).resolve,o&&gC(o)&&(e.data[Gs]=o.title),null)))}(s.route,r,e,n)),Mt(()=>i++),Oh(1),ft(s=>i===o.length?ve(t):jn))})}(t.paramsInheritanceStrategy,this.environmentInjector),Mt({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",2)}}))}),Mt(c=>{const l=new wR(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Jh(u=>{const c=l=>{const d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Mt(v=>{l.component=v}),me(()=>{})));for(const v of l.children)d.push(...c(v));return d};return Th(c(u.targetSnapshot.root)).pipe(yc(),on(1))}),Jh(()=>this.afterPreactivation()),me(u=>{const c=function PR(e,n,t){const r=ea(e,n._root,t?t._root:void 0);return new YD(r,n)}(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=i={...u,targetRouterState:c},i}),Mt(()=>{this.events.next(new jh)}),((e,n,t,r)=>me(o=>(new GR(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),on(1),Mt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),t.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),function WN(e){return ge((n,t)=>{mt(e).subscribe(Te(t,()=>t.complete(),M)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(Mt(u=>{throw u}))),Ph(()=>{s||a||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),fo(u=>{if(a=!0,oC(u))this.events.next(new Xs(i.id,this.urlSerializer.serialize(i.extractedUrl),u.message,u.cancellationCode)),function LR(e){return oC(e)&&po(e.url)}(u)?this.events.next(new $h(u.url)):i.resolve(!1);else{this.events.next(new Ac(i.id,this.urlSerializer.serialize(i.extractedUrl),u,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(u))}catch(c){i.reject(c)}}return jn}))}))}cancelNavigationTransition(t,r,o){const i=new Xs(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vC(e){return e!==Ks}let yC=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===Ie);return r}getResolvedTitleForRoute(t){return t.data[Gs]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(PO)},providedIn:"root"})}return e})(),PO=(()=>{class e extends yC{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(xD))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),BO=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(LO)},providedIn:"root"})}return e})();class kO{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let LO=(()=>{class e extends kO{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=At(e)))(o||e)}}();static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Oc=new ce("",{providedIn:"root",factory:()=>({})});let VO=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(HO)},providedIn:"root"})}return e})(),HO=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ia=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ia||{});function xC(e,n){e.events.pipe(sn(t=>t instanceof Vr||t instanceof Xs||t instanceof Ac||t instanceof wi),me(t=>t instanceof Vr||t instanceof wi?ia.COMPLETE:t instanceof Xs&&(0===t.code||1===t.code)?ia.REDIRECTING:ia.FAILED),sn(t=>t!==ia.REDIRECTING),on(1)).subscribe(()=>{n()})}function jO(e){throw e}function $O(e,n,t){return n.parse("/")}const UO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ue(X1),this.isNgZoneEnabled=!1,this._events=new K,this.options=ue(Oc,{optional:!0})||{},this.pendingTasks=ue(J1),this.errorHandler=this.options.errorHandler||jO,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||$O,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ue(VO),this.routeReuseStrategy=ue(BO),this.titleStrategy=ue(yC),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=ue(Fi,{optional:!0})?.flat()??[],this.navigationTransitions=ue(Rc),this.urlSerializer=ue(qs),this.location=ue(ih),this.componentInputBindingEnabled=!!ue(Sc,{optional:!0}),this.eventsSubscription=new b,this.isNgZoneEnabled=ue(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new _i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=KD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(DC(r)&&this._events.next(r));if(r instanceof bc)vC(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof wi)this.rawUrlTree=o.rawUrl;else if(r instanceof qD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(i,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof jh)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof Xs)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof $h){const i=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),s={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vC(o.source)};this.scheduleNavigation(i,Ks,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof Ac&&this.restoreHistory(o,!0),r instanceof Vr&&(this.navigated=!0),DC(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ks,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Yh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s;let d,l=null;switch(a){case"merge":l={...this.currentUrlTree.queryParams,...i};break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}null!==l&&(l=this.removeEmptyProps(l));try{d=HD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return jD(d,t,l,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=po(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ks,null,r)}navigate(t,r={skipLocationChange:!1}){return function GO(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,v)=>{a=d,u=v});const l=this.pendingTasks.add();return xC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:i,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&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))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DC(e){return!(e instanceof jh||e instanceof $h)}let Hr=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new K,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof Vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function om(e,n,t){return function yb(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?rm:md}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt),ne(Ai),function Za(e){return function Lw(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(sn(t=>t instanceof Vr),zs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Af(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return vt(o).pipe(_o())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):ve(null);const i=o.pipe(ft(s=>null===s?ve(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?vt([i,this.loader.loadComponent(r)]).pipe(_o()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Nt),pe(ex),pe(wn),pe(CC),pe(e0))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const t0=new ce("");let EC=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Vr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof wi&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof QD&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new QD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function zm(){throw new Error("invalid")}()};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();function Er(e,n){return{\u0275kind:e,\u0275providers:n}}function wC(){const e=ue(en);return n=>{const t=e.get(so);if(n!==t.components[0])return;const r=e.get(Nt),o=e.get(bC);1===e.get(n0)&&r.initialNavigation(),e.get(AC,null,Oe.Optional)?.setUpPreloading(),e.get(t0,null,Oe.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const bC=new ce("",{factory:()=>new K}),n0=new ce("",{providedIn:"root",factory:()=>1}),AC=new ce("");function XO(e){return Er(0,[{provide:AC,useExisting:QO},{provide:CC,useExisting:e}])}const MC=new ce("ROUTER_FORROOT_GUARD"),e3=[ih,{provide:qs,useClass:Bh},Nt,Js,{provide:Ai,useFactory:function _C(e){return e.routerState.root},deps:[Nt]},e0,[]];function t3(){return new ax("Router",Nt)}let go=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[e3,[],{provide:Fi,multi:!0,useValue:t},{provide:MC,useFactory:i3,deps:[[Nt,new Xa,new Ja]]},{provide:Oc,useValue:r||{}},r?.useHash?{provide:uo,useClass:l4}:{provide:uo,useClass:kx},{provide:t0,useFactory:()=>{const e=ue(F8),n=ue(We),t=ue(Oc),r=ue(Rc),o=ue(qs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new EC(o,r,e,n,t)}},r?.preloadingStrategy?XO(r.preloadingStrategy).\u0275providers:[],{provide:ax,multi:!0,useFactory:t3},r?.initialNavigation?s3(r):[],r?.bindToComponentInputs?Er(8,[tC,{provide:Sc,useExisting:tC}]).\u0275providers:[],[{provide:SC,useFactory:wC},{provide:Zf,multi:!0,useExisting:SC}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Fi,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(pe(MC,8))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();function i3(e){return"guarded"}function s3(e){return["disabled"===e.initialNavigation?Er(3,[{provide:qu,multi:!0,useFactory:()=>{const n=ue(Nt);return()=>{n.setUpLocationChangeListener()}}},{provide:n0,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Er(2,[{provide:n0,useValue:0},{provide:qu,multi:!0,deps:[en],useFactory:n=>{const t=n.get(u4,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(Nt),i=n.get(bC);xC(o,()=>{r(!0)}),n.get(Rc).afterPreactivation=()=>(r(!0),i.closed?ve(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const SC=new ce("");let IC=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(fr),ne(Jt))};static#t=this.\u0275dir=Ce({type:e})}return e})(),mo=(()=>{class e extends IC{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=At(e)))(o||e)}}();static#t=this.\u0275dir=Ce({type:e,features:[ze]})}return e})();const tr=new ce("NgValueAccessor"),l3={provide:tr,useExisting:Qe(()=>sa),multi:!0},f3=new ce("CompositionEventMode");let sa=(()=>{class e extends IC{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function d3(){const e=Br()?Br().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(fr),ne(Jt),ne(f3,8))};static#t=this.\u0275dir=Ce({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(r,o){1&r&&xt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[et([l3]),ze]})}return e})();function jr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function TC(e){return null!=e&&"number"==typeof e.length}const Rt=new ce("NgValidators"),$r=new ce("NgAsyncValidators"),h3=/^(?=.{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])?)*$/;class r0{static min(n){return function NC(e){return n=>{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function OC(e){return jr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function PC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function BC(e){return jr(e.value)||h3.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function kC(e){return n=>jr(n.value)||!TC(n.value)?null:n.value.lengthTC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function VC(e){if(!e)return Pc;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(jr(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return GC(n)}static composeAsync(n){return WC(n)}}function Pc(e){return null}function HC(e){return null!=e}function jC(e){return Ms(e)?vt(e):e}function $C(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function UC(e,n){return n.map(t=>t(e))}function zC(e){return e.map(n=>function p3(e){return!e.validate}(n)?n:t=>n.validate(t))}function GC(e){if(!e)return null;const n=e.filter(HC);return 0==n.length?null:function(t){return $C(UC(t,n))}}function o0(e){return null!=e?GC(zC(e)):null}function WC(e){if(!e)return null;const n=e.filter(HC);return 0==n.length?null:function(t){return function u3(...e){const n=R0(e),{args:t,keys:r}=_D(e),o=new se(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=v},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?wD(r,a):a),i.complete())}))}});return n?o.pipe(Fh(n)):o}(UC(t,n).map(jC)).pipe(me($C))}}function s0(e){return null!=e?WC(zC(e)):null}function qC(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function QC(e){return e._rawValidators}function ZC(e){return e._rawAsyncValidators}function a0(e){return e?Array.isArray(e)?e:[e]:[]}function Bc(e,n){return Array.isArray(e)?e.includes(n):e===n}function YC(e,n){const t=a0(n);return a0(e).forEach(o=>{Bc(t,o)||t.push(o)}),t}function KC(e,n){return a0(n).filter(t=>!Bc(e,t))}class XC{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=o0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=s0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class zt extends XC{get formDirective(){return null}get path(){return null}}class Ur extends XC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class JC{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let u0=(()=>{class e extends JC{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Ur,2))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&pi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ze]})}return e})(),c0=(()=>{class e extends JC{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(zt,10))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&pi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ze]})}return e})();const aa="VALID",Lc="INVALID",Ti="PENDING",ua="DISABLED";function f0(e){return(Vc(e)?e.validators:e)||null}function h0(e,n){return(Vc(n)?n.asyncValidators:e)||null}function Vc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function tE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new oe(1e3,"");if(!r[t])throw new oe(1001,"")}function nE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new oe(1002,"")})}class Hc{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===aa}get invalid(){return this.status===Lc}get pending(){return this.status==Ti}get disabled(){return this.status===ua}get enabled(){return this.status!==ua}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(YC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(YC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(KC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(KC(n,this._rawAsyncValidators))}hasValidator(n){return Bc(this._rawValidators,n)}hasAsyncValidator(n){return Bc(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=Ti,!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=ua,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=aa,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===aa||this.status===Ti)&&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()?ua:aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ti,this._hasOwnPendingAsyncValidator=!0;const t=jC(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.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 it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?ua:this.errors?Lc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ti)?Ti:this._anyControlsHaveStatus(Lc)?Lc:aa}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Vc(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function y3(e){return Array.isArray(e)?o0(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function x3(e){return Array.isArray(e)?s0(e):e||null}(this._rawAsyncValidators)}}class ca extends Hc{constructor(n,t,r){super(f0(t),h0(r,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,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.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,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){nE(this,0,n),Object.keys(n).forEach(r=>{tE(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_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}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class rE extends ca{}const Ni=new ce("CallSetDisabledState",{providedIn:"root",factory:()=>jc}),jc="always";function la(e,n,t=jc){p0(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function C3(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&oE(e,n)})}(e,n),function _3(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function E3(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&oE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function D3(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Uc(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Gc(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function zc(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function p0(e,n){const t=QC(e);null!==n.validator?e.setValidators(qC(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=ZC(e);null!==n.asyncValidator?e.setAsyncValidators(qC(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();zc(n._rawValidators,o),zc(n._rawAsyncValidators,o)}function Gc(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=QC(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){const o=ZC(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}const r=()=>{};return zc(n._rawValidators,r),zc(n._rawAsyncValidators,r),t}function oE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function aE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function uE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const fa=class extends Hc{constructor(n=null,t,r){super(f0(t),h0(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vc(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=uE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(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){aE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){aE(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){uE(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}};let x0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),pE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();const D0=new ce("NgModelWithFormControlWarning"),k3={provide:zt,useExisting:Qe(()=>ha)};let ha=(()=>{class e extends zt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new it,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Gc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return la(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Uc(t.control||null,t,!1),function M3(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function sE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(Uc(r||null,t),(e=>e instanceof fa)(o)&&(la(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function iE(e,n){p0(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function w3(e,n){return Gc(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){p0(this.form,this),this._oldForm&&Gc(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Rt,10),ne($r,10),ne(Ni,8))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&xt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[et([k3]),ze,En]})}return e})();const H3={provide:Ur,useExisting:Qe(()=>Wc)};let Wc=(()=>{class e extends Ur{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new it,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function v0(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===sa?t=i:function A3(e){return Object.getPrototypeOf(e.constructor)===mo}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){this._added||this._setUpControl(),function m0(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function $c(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(ne(zt,13),ne(Rt,10),ne($r,10),ne(tr,10),ne(D0,8))};static#n=this.\u0275dir=Ce({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[et([H3]),ze,En]})}return e})(),tP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[pE]})}return e})();class FE extends Hc{constructor(n,t,r){super(f0(t),h0(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){nE(this,0,n),n.forEach((r,o)=>{tE(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_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)}_find(n){return this.at(n)??null}}function TE(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let NE=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const o=this._reduceControls(t);let i={};return TE(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new ca(o,i)}record(t,r=null){const o=this._reduceControls(t);return new rE(o,r)}control(t,r,o){let i={};return this.useNonNullable?(TE(r)?i=r:(i.validators=r,i.asyncValidators=o),new fa(t,{...i,nonNullable:!0})):new fa(t,r,o)}array(t,r,o){const i=t.map(s=>this._createControl(s));return new FE(i,r,o)}_reduceControls(t){const r={};return Object.keys(t).forEach(o=>{r[o]=this._createControl(t[o])}),r}_createControl(t){return t instanceof fa||t instanceof Hc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RE=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:D0,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ni,useValue:t.callSetDisabledState??jc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[tP]})}return e})();var zr=E(7874);let A0=(()=>{class e{constructor(){this.mode=zr.mode.CBC,this.padding=zr.pad.Pkcs7}encrypt(t,r){const o=zr.enc.Hex.parse(zr.lib.WordArray.random(16).toString());return`encrypted:aes?iv=${o};`+zr.AES.encrypt(t,String(r),{iv:o,mode:this.mode,padding:this.padding})}decrypt(t,r){const o=this.parseEncryptedQrcode(t);if(o.encrypted&&"aes"===o.type){const i=zr.AES.decrypt(t,r,{iv:o.iv,mode:this.mode,padding:this.padding});return zr.enc.Utf8.stringify(i)}return o.content}parseEncryptedQrcode(t){if(/^encrypted:aes/.test(t)){const r=t.replace(/(^.*iv=|;.*$)/g,""),o=t.replace(/^.*;/,"");return{encrypted:!0,type:"aes",iv:zr.enc.Hex.parse(r),content:o}}return{encrypted:!1,content:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nP(e,n){1&e&&(Ne(0,"span",24),Dt(1,"*This field is required!"),Re())}function rP(e,n){1&e&&(Ne(0,"span",24),Dt(1,"*This field is required!"),Re())}let oP=(()=>{class e{constructor(t,r,o){this.router=t,this.fb=r,this.cryptService=o,this.submitted=!1}ngOnInit(){this.initForm()}initForm(){const t=history.state.opened,r=t?String(t):"";this.form=this.fb.group({title:[""],content:[r,[r0.required.bind(this)]],key:["",[r0.required.bind(this)]]})}getErrorFromField(t,r="required"){if(!this.submitted)return!1;const o=this.form.controls[t];return!!(o&&o.errors&&o.errors[r])}onSubmit(){if(this.submitted=!0,this.form.valid){const t=this.form.getRawValue(),r=this.cryptService.encrypt(t.content||"",t.key||"");this.router.navigate(["/share"],{state:{encrypted:r,title:t.title}})}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt),ne(NE),ne(A0))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-generate-qrcode"]],decls:31,vars:5,consts:[["id","generaQRCodeForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","title","name","title","placeholder","insert a title (optional)","type","text","autocomplete","off"],["formControlName","content","name","content","placeholder","content to encrypt"],["class","error-msg",4,"ngIf"],["formControlName","key","name","key","placeholder","insert a key","type","password","autocomplete","off",1,"field-key"],["key",""],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["form","generaQRCodeForm","type","submit",1,"btn","btn-primary"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"error-msg"]],template:function(r,o){if(1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"form",0),xt("submit",function(){return o.onSubmit()}),nt(3,"input",1)(4,"textarea",2),fi(5,nP,2,0,"span",3),nt(6,"input",4,5),fi(8,rP,2,0,"span",3),Re(),Ne(9,"div",6)(10,"button",7),Vt(),Ne(11,"svg",8),nt(12,"path",9)(13,"path",10),Re(),Dt(14," Back "),Re(),lr(),Ne(15,"button",11),Vt(),Ne(16,"svg",8),nt(17,"path",9)(18,"path",12)(19,"path",13)(20,"path",14)(21,"path",15)(22,"path",16)(23,"path",17)(24,"path",18)(25,"path",19)(26,"path",20)(27,"path",21)(28,"path",22)(29,"path",23),Re(),Dt(30," Generate "),Re()()),2&r){const i=uf(7);tn(2),gn("formGroup",o.form),tn(3),gn("ngIf",o.getErrorFromField("content")),tn(1),pi("has-value",!!i.value),tn(2),gn("ngIf",o.getErrorFromField("key"))}},dependencies:[fc,Hr,x0,sa,u0,c0,ha,Wc],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1 1 0px;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 0px;margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:1rem}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{flex:0 0 20px;display:flex;justify-content:space-between;margin-top:1rem}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:.25rem}"]})}return e})();function OE(e,n,t,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void t(c)}a.done?n(u):Promise.resolve(u).then(r,o)}function rt(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(u){OE(i,r,o,s,a,"next",u)}function a(u){OE(i,r,o,s,a,"throw",u)}s(void 0)})}}const M0=(()=>{class e{constructor(t,r,o,i,s){this._legacyCanvasSize=e.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=t,this.$canvas=document.createElement("canvas"),o&&"object"==typeof o?this._onDecode=r:(console.warn(o||i||s?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=r),this._onDecodeError=(r="object"==typeof o?o:{}).onDecodeError||("function"==typeof o?o:this._onDecodeError),this._calculateScanRegion=r.calculateScanRegion||("function"==typeof i?i:this._calculateScanRegion),this._preferredCamera=r.preferredCamera||s||this._preferredCamera,this._legacyCanvasSize="number"==typeof o?o:"number"==typeof i?i:this._legacyCanvasSize,this._maxScansPerSecond=r.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),t.disablePictureInPicture=!0,t.playsInline=!0,t.muted=!0;let a=!1;if(t.hidden&&(t.hidden=!1,a=!0),document.body.contains(t)||(document.body.appendChild(t),a=!0),o=t.parentElement,r.highlightScanRegion||r.highlightCodeOutline){if(i=!!r.overlay,this.$overlay=r.overlay||document.createElement("div"),(s=this.$overlay.style).position="absolute",s.display="none",s.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!i&&r.highlightScanRegion){this.$overlay.innerHTML='';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}o.insertBefore(this.$overlay,this.$video.nextSibling)}r.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",''),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(t),requestAnimationFrame(()=>{let u=window.getComputedStyle(t);"none"===u.display&&(t.style.setProperty("display","block","important"),a=!0),"visible"!==u.visibility&&(t.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),t.style.opacity="0",t.style.width="0",t.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),t.addEventListener("play",this._onPlay),t.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=e.createQrEngine()}static set WORKER_PATH(t){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static hasCamera(){return rt(function*(){try{return!!(yield e.listCameras(!1)).length}catch{return!1}})()}static listCameras(t=!1){return rt(function*(){if(!navigator.mediaDevices)return[];let o,r=function(){var i=rt(function*(){return(yield navigator.mediaDevices.enumerateDevices()).filter(s=>"videoinput"===s.kind)});return function(){return i.apply(this,arguments)}}();try{t&&(yield r()).every(i=>!i.label)&&(o=yield navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(yield r()).map((i,s)=>({id:i.deviceId,label:i.label||(0===s?"Default Camera":`Camera ${s+1}`)}))}finally{o&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),e._stopVideoStream(o))}})()}hasFlash(){var t=this;return rt(function*(){let r;try{if(t.$video.srcObject){if(!(t.$video.srcObject instanceof MediaStream))return!1;r=t.$video.srcObject}else r=(yield t._getCameraStream()).stream;return"torch"in r.getVideoTracks()[0].getSettings()}catch{return!1}finally{r&&r!==t.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e._stopVideoStream(r))}})()}isFlashOn(){return this._flashOn}toggleFlash(){var t=this;return rt(function*(){t._flashOn?yield t.turnFlashOff():yield t.turnFlashOn()})()}turnFlashOn(){var t=this;return rt(function*(){if(!t._flashOn&&!t._destroyed&&(t._flashOn=!0,t._active&&!t._paused))try{if(!(yield t.hasFlash()))throw"No flash available";yield t.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(r){throw t._flashOn=!1,r}})()}turnFlashOff(){var t=this;return rt(function*(){t._flashOn&&(t._flashOn=!1,yield t._restartVideoStream())})()}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),e._postWorkerMessage(this._qrEnginePromise,"close")}start(){var t=this;return rt(function*(){if(t._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!t._active||t._paused)&&("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),t._active=!0,!document.hidden))if(t._paused=!1,t.$video.srcObject)yield t.$video.play();else try{let{stream:r,facingMode:o}=yield t._getCameraStream();!t._active||t._paused?e._stopVideoStream(r):(t._setVideoMirror(o),t.$video.srcObject=r,yield t.$video.play(),t._flashOn&&(t._flashOn=!1,t.turnFlashOn().catch(()=>{})))}catch(r){if(!t._paused)throw t._active=!1,r}})()}stop(){this.pause(),this._active=!1}pause(t=!1){var r=this;return rt(function*(){if(r._paused=!0,!r._active)return!0;r.$video.pause(),r.$overlay&&(r.$overlay.style.display="none");let o=()=>{r.$video.srcObject instanceof MediaStream&&(e._stopVideoStream(r.$video.srcObject),r.$video.srcObject=null)};return t?(o(),!0):(yield new Promise(i=>setTimeout(i,300)),!!r._paused&&(o(),!0))})()}setCamera(t){var r=this;return rt(function*(){t!==r._preferredCamera&&(r._preferredCamera=t,yield r._restartVideoStream())})()}static scanImage(t,r,o,i,s=!1,a=!1){return rt(function*(){let u,c=!1;r&&("scanRegion"in r||"qrEngine"in r||"canvas"in r||"disallowCanvasResizing"in r||"alsoTryWithoutScanRegion"in r||"returnDetailedScanResult"in r)?(u=r.scanRegion,o=r.qrEngine,i=r.canvas,s=r.disallowCanvasResizing||!1,a=r.alsoTryWithoutScanRegion||!1,c=!0):console.warn(r||o||i||s||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),r=!!o;try{let l,d,v;if([o,l]=yield Promise.all([o||e.createQrEngine(),e._loadImage(t)]),[i,d]=e._drawToCanvas(l,u,i,s),o instanceof Worker){let A=o;r||e._postWorkerMessageSync(A,"inversionMode","both"),v=yield new Promise((B,z)=>{let X,ie,G,le=-1;ie=be=>{be.data.id===le&&(A.removeEventListener("message",ie),A.removeEventListener("error",G),clearTimeout(X),null!==be.data.data?B({data:be.data.data,cornerPoints:e._convertPoints(be.data.cornerPoints,u)}):z(e.NO_QR_CODE_FOUND))},G=be=>{A.removeEventListener("message",ie),A.removeEventListener("error",G),clearTimeout(X),z("Scanner error: "+(be?be.message||be:"Unknown Error"))},A.addEventListener("message",ie),A.addEventListener("error",G),X=setTimeout(()=>G("timeout"),1e4);let he=d.getImageData(0,0,i.width,i.height);le=e._postWorkerMessageSync(A,"decode",he,[he.data.buffer])})}else v=yield Promise.race([new Promise((A,B)=>window.setTimeout(()=>B("Scanner error: timeout"),1e4)),rt(function*(){try{var[A]=yield o.detect(i);if(!A)throw e.NO_QR_CODE_FOUND;return{data:A.rawValue,cornerPoints:e._convertPoints(A.cornerPoints,u)}}catch(B){if(/not implemented|service unavailable/.test(A=B.message||B))return e._disableBarcodeDetector=!0,e.scanImage(t,{scanRegion:u,canvas:i,disallowCanvasResizing:s,alsoTryWithoutScanRegion:a});throw`Scanner error: ${A}`}})()]);return c?v:v.data}catch(l){if(!u||!a)throw l;let d=yield e.scanImage(t,{qrEngine:o,canvas:i,disallowCanvasResizing:s});return c?d:d.data}finally{r||e._postWorkerMessage(o,"close")}})()}setGrayscaleWeights(t,r,o,i=!0){e._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:t,green:r,blue:o,useIntegerApproximation:i})}setInversionMode(t){e._postWorkerMessage(this._qrEnginePromise,"inversionMode",t)}static createQrEngine(t){return rt(function*(){if(t&&console.warn("Specifying a worker path is not required and not supported anymore."),t=()=>E.e(663).then(E.bind(E,3663)).then(o=>o.createWorker()),e._disableBarcodeDetector||!("BarcodeDetector"in window)||!BarcodeDetector.getSupportedFormats||!(yield BarcodeDetector.getSupportedFormats()).includes("qr_code"))return t();let r=navigator.userAgentData;return r&&r.brands.some(({brand:o})=>/Chromium/i.test(o))&&/mac ?OS/i.test(r.platform)&&(yield r.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:o,platformVersion:i})=>/arm/i.test(o||"arm")&&13<=parseInt(i||"13")).catch(()=>!0))?t():new BarcodeDetector({formats:["qr_code"]})})()}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(t){let r=Math.round(.6666666666666666*Math.min(t.videoWidth,t.videoHeight));return{x:Math.round((t.videoWidth-r)/2),y:Math.round((t.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var t=this.$video,r=t.videoWidth,o=t.videoHeight,i=t.offsetWidth,s=t.offsetHeight,a=t.offsetLeft,u=t.offsetTop,c=window.getComputedStyle(t),l=c.objectFit,d=r/o,v=i/s;switch(l){case"none":var A=r,B=o;break;case"fill":A=i,B=s;break;default:("cover"===l?d>v:d{const he=parseFloat(G);return G.endsWith("%")?(le?s-B:i-A)*he/100:he});v=this._scanRegion.height||o,l=this._scanRegion.x||0;var ie=this._scanRegion.y||0;(d=this.$overlay.style).width=(c=this._scanRegion.width||r)/r*A+"px",d.height=v/o*B+"px",d.top=`${u+X+ie/o*B}px`,o=/scaleX\(-1\)/.test(t.style.transform),d.left=`${a+(o?i-z-A:z)+(o?r-l-c:l)/r*A}px`,d.transform=t.style.transform}})}static _convertPoints(t,r){if(!r)return t;let o=r.x||0,i=r.y||0,s=r.width&&r.downScaledWidth?r.width/r.downScaledWidth:1;r=r.height&&r.downScaledHeight?r.height/r.downScaledHeight:1;for(let a of t)a.x=a.x*s+o,a.y=a.y*r+i;return t}_scanFrame(){var t=this;!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(rt(function*(){if(!(1>=t.$video.readyState)){var r=Date.now()-t._lastScanTimestamp,o=1e3/t._maxScansPerSecond;rsetTimeout(s,o-r))),t._lastScanTimestamp=Date.now();try{var i=yield e.scanImage(t.$video,{scanRegion:t._scanRegion,qrEngine:t._qrEnginePromise,canvas:t.$canvas})}catch(s){if(!t._active)return;t._onDecodeError(s)}!e._disableBarcodeDetector||(yield t._qrEnginePromise)instanceof Worker||(t._qrEnginePromise=e.createQrEngine()),i?(t._onDecode?t._onDecode(i):t._legacyOnDecode&&t._legacyOnDecode(i.data),t.$codeOutlineHighlight&&(clearTimeout(t._codeOutlineHighlightRemovalTimeout),t._codeOutlineHighlightRemovalTimeout=void 0,t.$codeOutlineHighlight.setAttribute("viewBox",`${t._scanRegion.x||0} ${t._scanRegion.y||0} ${t._scanRegion.width||t.$video.videoWidth} ${t._scanRegion.height||t.$video.videoHeight}`),t.$codeOutlineHighlight.firstElementChild.setAttribute("points",i.cornerPoints.map(({x:s,y:a})=>`${s},${a}`).join(" ")),t.$codeOutlineHighlight.style.display="")):t.$codeOutlineHighlight&&!t._codeOutlineHighlightRemovalTimeout&&(t._codeOutlineHighlightRemovalTimeout=setTimeout(()=>t.$codeOutlineHighlight.style.display="none",100))}t._scanFrame()}))}_onDecodeError(t){t!==e.NO_QR_CODE_FOUND&&console.log(t)}_getCameraStream(){var t=this;return rt(function*(){if(!navigator.mediaDevices)throw"Camera not found.";let r=/^(environment|user)$/.test(t._preferredCamera)?"facingMode":"deviceId",o=[{width:{min:1024}},{width:{min:768}},{}],i=o.map(s=>Object.assign({},s,{[r]:{exact:t._preferredCamera}}));for(let s of[...i,...o])try{let a=yield navigator.mediaDevices.getUserMedia({video:s,audio:!1});return{stream:a,facingMode:t._getFacingMode(a)||(s.facingMode?t._preferredCamera:"environment"===t._preferredCamera?"user":"environment")}}catch{}throw"Camera not found."})()}_restartVideoStream(){var t=this;return rt(function*(){let r=t._paused;(yield t.pause(!0))&&!r&&t._active&&(yield t.start())})()}static _stopVideoStream(t){for(let r of t.getTracks())r.stop(),t.removeTrack(r)}_setVideoMirror(t){this.$video.style.transform="scaleX("+("user"===t?-1:1)+")"}_getFacingMode(t){return(t=t.getVideoTracks()[0])?/rear|back|environment/i.test(t.label)?"environment":/front|user|face/i.test(t.label)?"user":null:null}static _drawToCanvas(t,r,o,i=!1){o=o||document.createElement("canvas");let s=r&&r.x?r.x:0,a=r&&r.y?r.y:0,u=r&&r.width?r.width:t.videoWidth||t.width,c=r&&r.height?r.height:t.videoHeight||t.height;return i||(i=r&&r.downScaledWidth?r.downScaledWidth:u,r=r&&r.downScaledHeight?r.downScaledHeight:c,o.width!==i&&(o.width=i),o.height!==r&&(o.height=r)),(r=o.getContext("2d",{alpha:!1})).imageSmoothingEnabled=!1,r.drawImage(t,s,a,u,c,0,0,o.width,o.height),[o,r]}static _loadImage(t){return rt(function*(){if(t instanceof Image)return yield e._awaitImageLoad(t),t;if(t instanceof HTMLVideoElement||t instanceof HTMLCanvasElement||t instanceof SVGImageElement||"OffscreenCanvas"in window&&t instanceof OffscreenCanvas||"ImageBitmap"in window&&t instanceof ImageBitmap)return t;if(!(t instanceof File||t instanceof Blob||t instanceof URL||"string"==typeof t))throw"Unsupported image type.";{let r=new Image;r.src=t instanceof File||t instanceof Blob?URL.createObjectURL(t):t.toString();try{return yield e._awaitImageLoad(r),r}finally{(t instanceof File||t instanceof Blob)&&URL.revokeObjectURL(r.src)}}})()}static _awaitImageLoad(t){return rt(function*(){t.complete&&0!==t.naturalWidth||(yield new Promise((r,o)=>{let i=s=>{t.removeEventListener("load",i),t.removeEventListener("error",i),s instanceof ErrorEvent?o("Image load error"):r()};t.addEventListener("load",i),t.addEventListener("error",i)}))})()}static _postWorkerMessage(t,r,o,i){return rt(function*(){return e._postWorkerMessageSync(yield t,r,o,i)})()}static _postWorkerMessageSync(t,r,o,i){if(!(t instanceof Worker))return-1;let s=e._workerMessageId++;return t.postMessage({id:s,type:r,data:o},i),s}}return e.DEFAULT_CANVAS_SIZE=400,e.NO_QR_CODE_FOUND="No QR code found",e._disableBarcodeDetector=!1,e._workerMessageId=0,e})(),iP=["video"];let sP=(()=>{class e{constructor(t){this.router=t}ngAfterViewInit(){this.videoEl&&this.videoEl.nativeElement&&this.readQRCode(this.videoEl.nativeElement)}ngOnDestroy(){this.videoEl&&this.videoEl.nativeElement&&this.stopStreaming(this.videoEl.nativeElement),this.stopScanning()}readQRCode(t){var r=this;return rt(function*(){const o=new M0(t,s=>{r.router.navigate(["open"],{state:{encrypted:s.data}})},{}),i=yield M0.listCameras();return yield o.setCamera(r.chooseCam(i).id),yield o.start(),Promise.resolve()})()}chooseCam(t){return 1===t.length?t[0]:t.find(r=>/back/.test(r.label))||t[0]}stopScanning(){this.scanning&&(this.scanning.stop(),this.scanning.destroy())}stopStreaming(t){if(t){const r=t.srcObject;r instanceof MediaStream&&r.getTracks().forEach(o=>o.stop())}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-scan-qrcode"]],viewQuery:function(r,o){if(1&r&&T1(iP,5,Jt),2&r){let i;Pf(i=function Bf(){return function MF(e,n){return e[Un].queries[n].queryList}(ee(),$p())}())&&(o.videoEl=i.first)}},decls:7,vars:0,consts:[["routerLink","/home","title","close","type","button",1,"circle-button","close-button"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M18 6l-12 12"],["d","M6 6l12 12"],["autoplay",""],["video",""]],template:function(r,o){1&r&&(Ne(0,"button",0),Vt(),Ne(1,"svg",1),nt(2,"path",2)(3,"path",3)(4,"path",4),Re()(),lr(),nt(5,"video",5,6))},dependencies:[Hr],styles:["video[_ngcontent-%COMP%]{background-color:#000;position:fixed;inset:0;z-index:49;height:100vh;width:100%}.close-button[_ngcontent-%COMP%]{position:fixed;top:5px;right:5px;z-index:50}"]})}return e})();function aP(e,n){1&e&&(Vt(),Ne(0,"svg",8),nt(1,"path",9)(2,"path",15),Re())}function uP(e,n){1&e&&(Ne(0,"span",16),Dt(1,"Invalid key"),Re())}let cP=(()=>{class e{constructor(t,r,o){this.fb=t,this.router=r,this.cryptService=o,this.invalidKey=!1}ngOnInit(){this.getEncryptedFromHistoryState(),this.initForm()}getEncryptedFromHistoryState(){this.encrypted=history.state.encrypted}initForm(){this.invalidKey=!1,this.form=this.fb.group({key:["",[r0.required.bind(this)]]})}unlock(){if(this.form.valid&&this.encrypted)try{const t=this.form.getRawValue(),r=this.cryptService.decrypt(this.encrypted,t.key);this.router.navigate(["/generate"],{state:{opened:r}}).catch(o=>console.error(o))}catch{this.invalidKey=!0}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(NE),ne(Nt),ne(A0))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-decrypt-qrcode"]],decls:21,vars:5,consts:[[1,"main-icon"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",4,"ngIf"],["id","decryptForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","key","name","key","placeholder","insert the key","type","password","autocomplete","off",1,"field-key"],["key",""],["class","error-msg",4,"ngIf"],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","submit","form","decryptForm",1,"btn","btn-primary",3,"click"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"error-msg"]],template:function(r,o){if(1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"div",0),fi(3,aP,3,0,"svg",1),Re(),Ne(4,"form",2),xt("submit",function(){return o.unlock()}),nt(5,"input",3,4),fi(7,uP,2,0,"span",5),Re(),Ne(8,"div",6)(9,"button",7),Vt(),Ne(10,"svg",8),nt(11,"path",9)(12,"path",10),Re(),Dt(13," Back "),Re(),lr(),Ne(14,"button",11),xt("click",function(){return o.unlock()}),Vt(),Ne(15,"svg",8),nt(16,"path",9)(17,"path",12)(18,"path",13)(19,"path",14),Re(),Dt(20," Unlock "),Re()()),2&r){const i=uf(6);tn(3),gn("ngIf",o.encrypted),tn(1),gn("formGroup",o.form),tn(1),pi("has-value",!!i.value),tn(2),gn("ngIf",o.invalidKey)}},dependencies:[fc,x0,sa,u0,c0,ha,Wc,Hr],styles:["[_nghost-%COMP%]{margin-top:2rem;display:flex;flex-direction:column;height:100%}.main-icon[_ngcontent-%COMP%]{flex:1 1 0px}.main-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:300px}.buttons[_ngcontent-%COMP%]{display:flex;margin:1rem 0;justify-content:space-between}"]})}return e})();const lP=function(){return["/scan"]},dP=function(){return["/generate"]};let fP=(()=>{class e{constructor(t){this.router=t}uploadPicture(){const t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","image/*"),t.click(),t.addEventListener("change",r=>{const o=t.files&&t.files[0]||null;o&&M0.scanImage(o).then(i=>this.router.navigate(["/open"],{state:{encrypted:i}})).catch(i=>console.error(i))})}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-home"]],decls:38,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"space-between"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["d","M15 8h.01"],["d","M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5"],["d","M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5"],["d","M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526"],["d","M19 22v-6"],["d","M22 19l-3 -3l-3 3"],["type","button",1,"btn","btn-primary",3,"routerLink"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"]],template:function(r,o){1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Vt(),Ne(2,"svg",0),nt(3,"path",1)(4,"path",2),Re(),lr(),nt(5,"div",3),Ne(6,"button",4),xt("click",function(){return o.uploadPicture()}),Vt(),Ne(7,"svg",5),nt(8,"path",1)(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10)(14,"path",11),Re(),Dt(15," Load QRCode\n"),Re(),lr(),Ne(16,"button",12),Vt(),Ne(17,"svg",5),nt(18,"path",1)(19,"path",13)(20,"path",14),Re(),Dt(21," Scan QRCode\n"),Re(),lr(),Ne(22,"button",12),Vt(),Ne(23,"svg",5),nt(24,"path",1)(25,"path",15)(26,"path",16)(27,"path",17)(28,"path",18)(29,"path",19)(30,"path",20)(31,"path",21)(32,"path",22)(33,"path",23)(34,"path",24)(35,"path",25)(36,"path",26),Re(),Dt(37," Generate QRCode\n"),Re()),2&r&&(tn(16),gn("routerLink",Uu(2,lP)),tn(6),gn("routerLink",Uu(3,dP)))},dependencies:[Hr],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;padding:1rem;flex-direction:column;box-sizing:border-box}[_nghost-%COMP%] .main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1 1 0px}"]})}return e})();var hP=E(8251);function pP(e,n){if(1&e){const t=function Pv(){return ee()}();Vt(),lr(),Ne(0,"button",8),xt("click",function(){return function Bp(e){return xe.lFrame.contextLView=e,e[at]}(t),function kp(e){return xe.lFrame.contextLView=null,e}(jv().share())}),Vt(),Ne(1,"svg",5),nt(2,"path",6)(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18),Re(),Dt(8," Share "),Re()}}const gP=function(){return["/home"]},mP=[{path:"home",component:fP},{path:"generate",component:oP},{path:"scan",component:sP},{path:"open",component:cP},{path:"share",component:(()=>{class e{constructor(){this.sharable=!!navigator.share}ngOnInit(){const t=history.state.encrypted,r=history.state.title,o=t?String(t):"",i=document.createElement("canvas");r?(i.setAttribute("height","750px"),i.setAttribute("width","500px")):(i.setAttribute("height","500px"),i.setAttribute("width","500px")),(0,hP.rT)(i,o,{margin:5},s=>{if(s)return void console.error(s);const a=i.getContext("2d");a&&r&&(a.fillStyle="#000",a.font='15px "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif',a.fillText(r,17,10)),setTimeout(()=>this.src=i.toDataURL("image/png"))})}getQrcodeAsBlob(){var t=this;return rt(function*(){return t.src?fetch(t.src).then(r=>r.blob()):Promise.resolve(null)})()}save(){var t=this;return rt(function*(){const r=yield t.getQrcodeAsBlob();if(!r)return Promise.resolve();const o=URL.createObjectURL(r),i=document.createElement("a");document.body.appendChild(i),i.href=o,i.download="private-qrcode.png",i.click(),URL.revokeObjectURL(o)})()}share(){var t=this;return rt(function*(){const r=yield t.getQrcodeAsBlob();return r?navigator.share({files:[new File([r],"image.png",{type:r.type})],title:"private qrcode"}):Promise.resolve()})()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["app-share-qrcode"]],decls:19,vars:4,consts:[[1,"space-between"],[3,"src"],["qrcode",""],[1,"buttons"],["type","button",1,"btn",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"icon","icon-tabler","icon-tabler-device-floppy"],["d","M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"],["d","M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"],["d","M14 4l0 4l-6 0l0 -4"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["d","M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M8.7 10.7l6.6 -3.4"],["d","M8.7 13.3l6.6 3.4"]],template:function(r,o){1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"div",0),nt(3,"img",1,2),Re(),Ne(5,"div",3)(6,"button",4),Vt(),Ne(7,"svg",5),nt(8,"path",6)(9,"path",7),Re(),Dt(10," Back "),Re(),lr(),Ne(11,"button",8),xt("click",function(){return o.save()}),Vt(),Ne(12,"svg",9),nt(13,"path",6)(14,"path",10)(15,"path",11)(16,"path",12),Re(),Dt(17," Save "),Re(),fi(18,pP,9,0,"button",13),Re()),2&r&&(tn(3),gn("src",o.src,md),tn(3),gn("routerLink",Uu(3,gP)),tn(12),gn("ngIf",o.sharable))},dependencies:[fc,Hr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.space-between[_ngcontent-%COMP%]{flex:1 1 0}img[_ngcontent-%COMP%]{margin:3rem auto;display:block;background-color:#000;width:100%;max-width:450px}"]})}return e})()},{path:"",redirectTo:"home",pathMatch:"full"}];let vP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[go.forRoot(mP,{useHash:!0}),go]})}return e})(),yP=(()=>{class e{constructor(){this.title="private-qrcode"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){1&r&&nt(0,"router-outlet")},dependencies:[Qh]})}return e})(),xP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,RE,go]})}return e})(),DP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go,RE]})}return e})(),CP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})(),EP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})(),_P=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[A0],imports:[co]})}return e})(),wP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})();const bP=["addListener","removeListener"],AP=["addEventListener","removeEventListener"],MP=["on","off"];function qc(e,n,t,r){if(p(t)&&(r=t,t=void 0),r)return qc(e,n,t).pipe(Fh(r));const[o,i]=function FP(e){return p(e.addEventListener)&&p(e.removeEventListener)}(e)?AP.map(s=>a=>e[s](n,a,t)):function SP(e){return p(e.addListener)&&p(e.removeListener)}(e)?bP.map(PE(e,n)):function IP(e){return p(e.on)&&p(e.off)}(e)?MP.map(PE(e,n)):[];if(!o&&Pi(e))return ft(s=>qc(s,n,t))(mt(e));if(!o)throw new TypeError("Invalid event target");return new se(s=>{const a=(...u)=>s.next(1i(a)})}function PE(e,n){return t=>r=>e[t](n,r)}const Gr=new se(M),NP={connector:()=>new K};function BE(e,n=NP){const{connector:t}=n;return ge((r,o)=>{const i=t();mt(e(function TP(e){return new se(n=>e.subscribe(n))}(i))).subscribe(o),o.add(r.subscribe(i))})}class PP extends b{constructor(n,t){super()}schedule(n,t=0){return this}}const Qc={setInterval(e,n,...t){const{delegate:r}=Qc;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Qc;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},kE={now:()=>(kE.delegate||Date).now(),delegate:void 0};class pa{constructor(n,t=pa.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}pa.now=kE.now;const LE=new class kP extends pa{constructor(n,t=pa.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class BP extends PP{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Qc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Qc.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),LP=LE;function VE(e,n){return n?t=>Us(n.pipe(on(1),function VP(){return ge((e,n)=>{e.subscribe(Te(n,M))})}()),t.pipe(VE(e))):ft((t,r)=>mt(e(t,r)).pipe(on(1),MD(t)))}const ga="Service workers are disabled or not supported by this browser";class Zc{constructor(n){if(this.serviceWorker=n,n){const r=qc(n,"controllerchange").pipe(me(()=>n.controller)),i=Us(vc(()=>ve(n.controller)),r);this.worker=i.pipe(sn(l=>!!l)),this.registration=this.worker.pipe(qt(()=>n.getRegistration()));const c=qc(n,"message").pipe(me(l=>l.data)).pipe(sn(l=>l&&l.type)).pipe(function OP(e){return e?n=>BE(e)(n):n=>function RP(e,n){const t=p(e)?e:()=>e;return p(n)?BE(n,{connector:t}):r=>new Rh(r,t)}(new K)(n)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function UP(e){return vc(()=>Ci(new Error(e)))}(ga)}postMessage(n,t){return this.worker.pipe(on(1),Mt(r=>{r.postMessage({action:n,...t})})).toPromise().then(()=>{})}postMessageWithOperation(n,t,r){const o=this.waitForOperationCompleted(r),i=this.postMessage(n,t);return Promise.all([i,o]).then(([,s])=>s)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(n){let t;return t="string"==typeof n?r=>r.type===n:r=>n.includes(r.type),this.events.pipe(sn(t))}nextEventOfType(n){return this.eventsOfType(n).pipe(on(1))}waitForOperationCompleted(n){return this.eventsOfType("OPERATION_COMPLETED").pipe(sn(t=>t.nonce===n),on(1),me(t=>{if(void 0!==t.result)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let HE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new K,!t.isEnabled)return this.messages=Gr,this.notificationClicks=Gr,void(this.subscription=Gr);this.messages=this.sw.eventsOfType("PUSH").pipe(me(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(me(o=>o.data)),this.pushManager=this.sw.registration.pipe(me(o=>o.pushManager));const r=this.pushManager.pipe(qt(o=>o.getSubscription()));this.subscription=ol(r,this.subscriptionChanges)}requestSubscription(t){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ga));const r={userVisibleOnly:!0};let o=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(o.length));for(let s=0;ss.subscribe(r)),on(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(on(1),qt(r=>{if(null===r)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ga))}decodeBase64(t){return atob(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Zc))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),jE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,!t.isEnabled)return this.versionUpdates=Gr,this.available=Gr,this.activated=Gr,void(this.unrecoverable=Gr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe(sn(r=>"VERSION_READY"===r.type),me(r=>({type:"UPDATE_AVAILABLE",current:r.currentVersion,available:r.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ga));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ga));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Zc))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const $E=new ce("NGSW_REGISTER_SCRIPT");function zP(e,n,t,r){return()=>{if(!eD(r)||!("serviceWorker"in navigator)||!1===t.enabled)return;let o;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof t.registrationStrategy)o=t.registrationStrategy();else{const[s,...a]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":o=ve(null);break;case"registerWithDelay":o=UE(+a[0]||0);break;case"registerWhenStable":o=a[0]?ol(zE(e),UE(+a[0])):zE(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}e.get(We).runOutsideAngular(()=>o.pipe(on(1)).subscribe(()=>navigator.serviceWorker.register(n,{scope:t.scope}).catch(s=>console.error("Service worker registration failed with:",s))))}}function UE(e){return ve(null).pipe(function $P(e,n=LE){const t=function jP(e=0,n,t=LP){let r=-1;return null!=n&&(N0(n)?t=n:r=n),new se(o=>{let i=function HP(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(e,n);return VE(()=>t)}(e))}function zE(e){return e.get(so).isStable.pipe(sn(t=>t))}function GP(e,n){return new Zc(eD(n)&&!1!==e.enabled?navigator.serviceWorker:void 0)}class S0{}function WP(e,n={}){return function yd(e){return{\u0275providers:e}}([HE,jE,{provide:$E,useValue:e},{provide:S0,useValue:n},{provide:Zc,useFactory:GP,deps:[S0,Rr]},{provide:qu,useFactory:zP,deps:[en,$E,S0,Rr],multi:!0}])}let qP=(()=>{class e{static register(t,r={}){return{ngModule:e,providers:[WP(t,r)]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[HE,jE]})}return e})(),QP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e,bootstrap:[yP]});static#n=this.\u0275inj=yt({imports:[wN,vP,CP,xP,DP,wP,EP,_P,qP.register("ngsw-worker.js",{enabled:!0,registrationStrategy:"registerWhenStable:30000"})]})}return e})();EN().bootstrapModule(QP).catch(e=>console.error(e))},8042:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.BlockCipher,b=f.algo,y=[],F=[],h=[],C=[],T=[],_=[],M=[],x=[],I=[],S=[];!function(){for(var D=[],w=0;w<256;w++)D[w]=w<128?w<<1:w<<1^283;var O=0,k=0;for(w=0;w<256;w++){var H=k^k<<1^k<<2^k<<3^k<<4;y[O]=H=H>>>8^255&H^99,F[H]=O;var U,P=D[O],q=D[P],j=D[q];h[O]=(U=257*D[H]^16843008*H)<<24|U>>>8,C[O]=U<<16|U>>>16,T[O]=U<<8|U>>>24,_[O]=U,M[H]=(U=16843009*j^65537*q^257*P^16843008*O)<<24|U>>>8,x[H]=U<<16|U>>>16,I[H]=U<<8|U>>>24,S[H]=U,O?(O=P^D[D[D[j^P]]],k^=D[D[k]]):O=k=1}}();var L=[0,1,2,4,8,16,32,64,128,27,54],R=b.AES=m.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var w=this._keyPriorReset=this._key,O=w.words,k=w.sigBytes/4,P=4*((this._nRounds=k+6)+1),q=this._keySchedule=[],j=0;j6&&j%k==4&&(D=y[D>>>24]<<24|y[D>>>16&255]<<16|y[D>>>8&255]<<8|y[255&D]):(D=y[(D=D<<8|D>>>24)>>>24]<<24|y[D>>>16&255]<<16|y[D>>>8&255]<<8|y[255&D],D^=L[j/k|0]<<24),q[j]=q[j-k]^D);for(var U=this._invKeySchedule=[],J=0;J>>24]]^x[y[D>>>16&255]]^I[y[D>>>8&255]]^S[y[255&D]]}}},encryptBlock:function(D,w){this._doCryptBlock(D,w,this._keySchedule,h,C,T,_,y)},decryptBlock:function(D,w){var O=D[w+1];D[w+1]=D[w+3],D[w+3]=O,this._doCryptBlock(D,w,this._invKeySchedule,M,x,I,S,F),O=D[w+1],D[w+1]=D[w+3],D[w+3]=O},_doCryptBlock:function(D,w,O,k,H,P,q,j){for(var U=this._nRounds,J=D[w]^O[0],V=D[w+1]^O[1],$=D[w+2]^O[2],Q=D[w+3]^O[3],W=4,de=1;de>>24]^H[V>>>16&255]^P[$>>>8&255]^q[255&Q]^O[W++],Ee=k[V>>>24]^H[$>>>16&255]^P[Q>>>8&255]^q[255&J]^O[W++],Fe=k[$>>>24]^H[Q>>>16&255]^P[J>>>8&255]^q[255&V]^O[W++],Y=k[Q>>>24]^H[J>>>16&255]^P[V>>>8&255]^q[255&$]^O[W++];J=se,V=Ee,$=Fe,Q=Y}se=(j[J>>>24]<<24|j[V>>>16&255]<<16|j[$>>>8&255]<<8|j[255&Q])^O[W++],Ee=(j[V>>>24]<<24|j[$>>>16&255]<<16|j[Q>>>8&255]<<8|j[255&J])^O[W++],Fe=(j[$>>>24]<<24|j[Q>>>16&255]<<16|j[J>>>8&255]<<8|j[255&V])^O[W++],Y=(j[Q>>>24]<<24|j[J>>>16&255]<<16|j[V>>>8&255]<<8|j[255&$])^O[W++],D[w]=se,D[w+1]=Ee,D[w+2]=Fe,D[w+3]=Y},keySize:8});f.AES=m._createHelper(R)}(),p.AES)},9172:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.BlockCipher;const y=16,F=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],h=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var C={pbox:[],sbox:[]};function T(S,L){let k=S.sbox[0][L>>24&255]+S.sbox[1][L>>16&255];return k^=S.sbox[2][L>>8&255],k+=S.sbox[3][255&L],k}function _(S,L,R){let O,D=L,w=R;for(let k=0;k=R&&(D=0);let w=0,O=0,k=0;for(let H=0;H1;--k)D^=S.pbox[k],w=T(S,D)^w,O=D,D=w,w=O;return O=D,D=w,w=O,w^=S.pbox[1],D^=S.pbox[0],{left:D,right:w}}(C,S[L],S[L+1]);S[L]=R.left,S[L+1]=R.right},blockSize:2,keySize:4,ivSize:2});f.Blowfish=m._createHelper(I)}(),p.Blowfish)},3270:function(Z,N,E){var g,m,b,y,F,h,T,M,x,S,L,R,w,k,P,q,U,J,p;Z.exports=(p=E(12),E(2066),void(p.lib.Cipher||(g=p,m=g.lib,b=m.Base,y=m.WordArray,F=m.BufferedBlockAlgorithm,h=g.enc,T=h.Base64,M=g.algo.EvpKDF,x=m.Cipher=F.extend({cfg:b.extend(),createEncryptor:function(V,$){return this.create(this._ENC_XFORM_MODE,V,$)},createDecryptor:function(V,$){return this.create(this._DEC_XFORM_MODE,V,$)},init:function(V,$,Q){this.cfg=this.cfg.extend(Q),this._xformMode=V,this._key=$,this.reset()},reset:function(){F.reset.call(this),this._doReset()},process:function(V){return this._append(V),this._process()},finalize:function(V){return V&&this._append(V),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function V($){return"string"==typeof $?J:q}return function($){return{encrypt:function(Q,W,de){return V(W).encrypt($,Q,W,de)},decrypt:function(Q,W,de){return V(W).decrypt($,Q,W,de)}}}}()}),m.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),S=g.mode={},L=m.BlockCipherMode=b.extend({createEncryptor:function(V,$){return this.Encryptor.create(V,$)},createDecryptor:function(V,$){return this.Decryptor.create(V,$)},init:function(V,$){this._cipher=V,this._iv=$}}),R=S.CBC=function(){var V=L.extend();function $(Q,W,de){var se,Ee=this._iv;Ee?(se=Ee,this._iv=undefined):se=this._prevBlock;for(var Fe=0;Fe>>2]}},m.BlockCipher=x.extend({cfg:x.cfg.extend({mode:R,padding:w}),reset:function(){var V;x.reset.call(this);var $=this.cfg,Q=$.iv,W=$.mode;this._xformMode==this._ENC_XFORM_MODE?V=W.createEncryptor:(V=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==V?this._mode.init(this,Q&&Q.words):(this._mode=V.call(W,this,Q&&Q.words),this._mode.__creator=V)},_doProcessBlock:function(V,$){this._mode.processBlock(V,$)},_doFinalize:function(){var V,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),V=this._process(!0)):(V=this._process(!0),$.unpad(V)),V},blockSize:4}),k=m.CipherParams=b.extend({init:function(V){this.mixIn(V)},toString:function(V){return(V||this.formatter).stringify(this)}}),P=(g.format={}).OpenSSL={stringify:function(V){var Q=V.ciphertext,W=V.salt;return(W?y.create([1398893684,1701076831]).concat(W).concat(Q):Q).toString(T)},parse:function(V){var $,Q=T.parse(V),W=Q.words;return 1398893684==W[0]&&1701076831==W[1]&&($=y.create(W.slice(2,4)),W.splice(0,4),Q.sigBytes-=16),k.create({ciphertext:Q,salt:$})}},q=m.SerializableCipher=b.extend({cfg:b.extend({format:P}),encrypt:function(V,$,Q,W){W=this.cfg.extend(W);var de=V.createEncryptor(Q,W),se=de.finalize($),Ee=de.cfg;return k.create({ciphertext:se,key:Q,iv:Ee.iv,algorithm:V,mode:Ee.mode,padding:Ee.padding,blockSize:V.blockSize,formatter:W.format})},decrypt:function(V,$,Q,W){return W=this.cfg.extend(W),$=this._parse($,W.format),V.createDecryptor(Q,W).finalize($.ciphertext)},_parse:function(V,$){return"string"==typeof V?$.parse(V,this):V}}),U=(g.kdf={}).OpenSSL={execute:function(V,$,Q,W,de){if(W||(W=y.random(8)),de)var se=M.create({keySize:$+Q,hasher:de}).compute(V,W);else se=M.create({keySize:$+Q}).compute(V,W);var Ee=y.create(se.words.slice($),4*Q);return se.sigBytes=4*$,k.create({key:se,iv:Ee,salt:W})}},J=m.PasswordBasedCipher=q.extend({cfg:q.cfg.extend({kdf:U}),encrypt:function(V,$,Q,W){var de=(W=this.cfg.extend(W)).kdf.execute(Q,V.keySize,V.ivSize,W.salt,W.hasher);W.iv=de.iv;var se=q.encrypt.call(this,V,$,de.key,W);return se.mixIn(de),se},decrypt:function(V,$,Q,W){W=this.cfg.extend(W),$=this._parse($,W.format);var de=W.kdf.execute(Q,V.keySize,V.ivSize,$.salt,W.hasher);return W.iv=de.iv,q.decrypt.call(this,V,$,de.key,W)}}))))},12:function(Z,N,E){var p;Z.exports=(p=p||function(f,g){var m;if(typeof window<"u"&&window.crypto&&(m=window.crypto),typeof self<"u"&&self.crypto&&(m=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window<"u"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof global<"u"&&global.crypto&&(m=global.crypto),!m)try{m=E(2480)}catch{}var b=function(){if(m){if("function"==typeof m.getRandomValues)try{return m.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof m.randomBytes)try{return m.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},y=Object.create||function(){function D(){}return function(w){var O;return D.prototype=w,O=new D,D.prototype=null,O}}(),F={},h=F.lib={},C=h.Base={extend:function(D){var w=y(this);return D&&w.mixIn(D),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var D=this.extend();return D.init.apply(D,arguments),D},init:function(){},mixIn:function(D){for(var w in D)D.hasOwnProperty(w)&&(this[w]=D[w]);D.hasOwnProperty("toString")&&(this.toString=D.toString)},clone:function(){return this.init.prototype.extend(this)}},T=h.WordArray=C.extend({init:function(D,w){D=this.words=D||[],this.sigBytes=null!=w?w:4*D.length},toString:function(D){return(D||M).stringify(this)},concat:function(D){var w=this.words,O=D.words,k=this.sigBytes,H=D.sigBytes;if(this.clamp(),k%4)for(var P=0;P>>2]|=(O[P>>>2]>>>24-P%4*8&255)<<24-(k+P)%4*8;else for(var j=0;j>>2]=O[j>>>2];return this.sigBytes+=H,this},clamp:function(){var D=this.words,w=this.sigBytes;D[w>>>2]&=4294967295<<32-w%4*8,D.length=f.ceil(w/4)},clone:function(){var D=C.clone.call(this);return D.words=this.words.slice(0),D},random:function(D){for(var w=[],O=0;O>>2]>>>24-H%4*8&255;k.push((P>>>4).toString(16)),k.push((15&P).toString(16))}return k.join("")},parse:function(D){for(var w=D.length,O=[],k=0;k>>3]|=parseInt(D.substr(k,2),16)<<24-k%8*4;return new T.init(O,w/2)}},x=_.Latin1={stringify:function(D){for(var w=D.words,O=D.sigBytes,k=[],H=0;H>>2]>>>24-H%4*8&255));return k.join("")},parse:function(D){for(var w=D.length,O=[],k=0;k>>2]|=(255&D.charCodeAt(k))<<24-k%4*8;return new T.init(O,w)}},I=_.Utf8={stringify:function(D){try{return decodeURIComponent(escape(x.stringify(D)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(D){return x.parse(unescape(encodeURIComponent(D)))}},S=h.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new T.init,this._nDataBytes=0},_append:function(D){"string"==typeof D&&(D=I.parse(D)),this._data.concat(D),this._nDataBytes+=D.sigBytes},_process:function(D){var w,O=this._data,k=O.words,H=O.sigBytes,P=this.blockSize,j=H/(4*P),U=(j=D?f.ceil(j):f.max((0|j)-this._minBufferSize,0))*P,J=f.min(4*U,H);if(U){for(var V=0;V>>2]>>>24-x%4*8&255)<<16|(C[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|C[x+2>>>2]>>>24-(x+2)%4*8&255,D=0;D<4&&x+.75*D>>6*(3-D)&63));var w=_.charAt(64);if(w)for(;M.length%4;)M.push(w);return M.join("")},parse:function(h){var C=h.length,T=this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var M=0;M>>6-x%4*2;_[M>>>2]|=(I|S)<<24-M%4*8,M++}return m.create(_,M)}(h,C,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},p.enc.Base64)},7523:function(Z,N,E){var p,m;Z.exports=(p=E(12),m=p.lib.WordArray,p.enc.Base64url={stringify:function(h,C){void 0===C&&(C=!0);var T=h.words,_=h.sigBytes,M=C?this._safe_map:this._map;h.clamp();for(var x=[],I=0;I<_;I+=3)for(var D=(T[I>>>2]>>>24-I%4*8&255)<<16|(T[I+1>>>2]>>>24-(I+1)%4*8&255)<<8|T[I+2>>>2]>>>24-(I+2)%4*8&255,w=0;w<4&&I+.75*w<_;w++)x.push(M.charAt(D>>>6*(3-w)&63));var O=M.charAt(64);if(O)for(;x.length%4;)x.push(O);return x.join("")},parse:function(h,C){void 0===C&&(C=!0);var T=h.length,_=C?this._safe_map:this._map,M=this._reverseMap;if(!M){M=this._reverseMap=[];for(var x=0;x<_.length;x++)M[_.charCodeAt(x)]=x}var I=_.charAt(64);if(I){var S=h.indexOf(I);-1!==S&&(T=S)}return function F(h,C,T){for(var _=[],M=0,x=0;x>>6-x%4*2;_[M>>>2]|=(I|S)<<24-M%4*8,M++}return m.create(_,M)}(h,T,M)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},p.enc.Base64url)},2454:function(Z,N,E){var p;Z.exports=(p=E(12),function(){var m=p.lib.WordArray,b=p.enc;function F(h){return h<<8&4278255360|h>>>8&16711935}b.Utf16=b.Utf16BE={stringify:function(h){for(var C=h.words,T=h.sigBytes,_=[],M=0;M>>2]>>>16-M%4*8&65535));return _.join("")},parse:function(h){for(var C=h.length,T=[],_=0;_>>1]|=h.charCodeAt(_)<<16-_%2*16;return m.create(T,2*C)}},b.Utf16LE={stringify:function(h){for(var C=h.words,T=h.sigBytes,_=[],M=0;M>>2]>>>16-M%4*8&65535);_.push(String.fromCharCode(x))}return _.join("")},parse:function(h){for(var C=h.length,T=[],_=0;_>>1]|=F(h.charCodeAt(_)<<16-_%2*16);return m.create(T,2*C)}}}(),p.enc.Utf16)},2066:function(Z,N,E){var f,g,m,b,y,h,p;Z.exports=(p=E(12),E(4446),E(990),b=(g=(f=p).lib).WordArray,h=(y=f.algo).EvpKDF=(m=g.Base).extend({cfg:m.extend({keySize:4,hasher:y.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,T){for(var _,M=this.cfg,x=M.hasher.create(),I=b.create(),S=I.words,L=M.keySize,R=M.iterations;S.lengthM&&(T=C.finalize(T)),T.clamp();for(var x=this._oKey=T.clone(),I=this._iKey=T.clone(),S=x.words,L=I.words,R=0;R<_;R++)S[R]^=1549556828,L[R]^=909522486;x.sigBytes=I.sigBytes=M,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var T=this._hasher,_=T.finalize(C);return T.reset(),T.finalize(this._oKey.clone().concat(_))}})))},7874:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),E(4037),E(2454),E(5506),E(7523),E(2873),E(4446),E(2078),E(9811),E(4870),E(2913),E(6545),E(5558),E(990),E(3538),E(2066),E(3270),E(5228),E(3392),E(3584),E(2015),E(5594),E(7237),E(8501),E(4004),E(3297),E(2738),E(2826),E(8042),E(5769),E(1195),E(4969),E(7848),E(9172),p)},4037:function(Z,N,E){var p;Z.exports=(p=E(12),function(){if("function"==typeof ArrayBuffer){var m=p.lib.WordArray,b=m.init,y=m.init=function(F){if(F instanceof ArrayBuffer&&(F=new Uint8Array(F)),(F instanceof Int8Array||typeof Uint8ClampedArray<"u"&&F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array)&&(F=new Uint8Array(F.buffer,F.byteOffset,F.byteLength)),F instanceof Uint8Array){for(var h=F.byteLength,C=[],T=0;T>>2]|=F[T]<<24-T%4*8;b.call(this,C,h)}else b.apply(this,arguments)};y.prototype=m}}(),p.lib.WordArray)},2873:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=[];!function(){for(var I=0;I<64;I++)h[I]=4294967296*f.abs(f.sin(I+1))|0}();var C=F.MD5=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(I,S){for(var L=0;L<16;L++){var R=S+L,D=I[R];I[R]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}var w=this._hash.words,O=I[S+0],k=I[S+1],H=I[S+2],P=I[S+3],q=I[S+4],j=I[S+5],U=I[S+6],J=I[S+7],V=I[S+8],$=I[S+9],Q=I[S+10],W=I[S+11],de=I[S+12],se=I[S+13],Ee=I[S+14],Fe=I[S+15],Y=w[0],re=w[1],K=w[2],te=w[3];Y=T(Y,re,K,te,O,7,h[0]),te=T(te,Y,re,K,k,12,h[1]),K=T(K,te,Y,re,H,17,h[2]),re=T(re,K,te,Y,P,22,h[3]),Y=T(Y,re,K,te,q,7,h[4]),te=T(te,Y,re,K,j,12,h[5]),K=T(K,te,Y,re,U,17,h[6]),re=T(re,K,te,Y,J,22,h[7]),Y=T(Y,re,K,te,V,7,h[8]),te=T(te,Y,re,K,$,12,h[9]),K=T(K,te,Y,re,Q,17,h[10]),re=T(re,K,te,Y,W,22,h[11]),Y=T(Y,re,K,te,de,7,h[12]),te=T(te,Y,re,K,se,12,h[13]),K=T(K,te,Y,re,Ee,17,h[14]),Y=_(Y,re=T(re,K,te,Y,Fe,22,h[15]),K,te,k,5,h[16]),te=_(te,Y,re,K,U,9,h[17]),K=_(K,te,Y,re,W,14,h[18]),re=_(re,K,te,Y,O,20,h[19]),Y=_(Y,re,K,te,j,5,h[20]),te=_(te,Y,re,K,Q,9,h[21]),K=_(K,te,Y,re,Fe,14,h[22]),re=_(re,K,te,Y,q,20,h[23]),Y=_(Y,re,K,te,$,5,h[24]),te=_(te,Y,re,K,Ee,9,h[25]),K=_(K,te,Y,re,P,14,h[26]),re=_(re,K,te,Y,V,20,h[27]),Y=_(Y,re,K,te,se,5,h[28]),te=_(te,Y,re,K,H,9,h[29]),K=_(K,te,Y,re,J,14,h[30]),Y=M(Y,re=_(re,K,te,Y,de,20,h[31]),K,te,j,4,h[32]),te=M(te,Y,re,K,V,11,h[33]),K=M(K,te,Y,re,W,16,h[34]),re=M(re,K,te,Y,Ee,23,h[35]),Y=M(Y,re,K,te,k,4,h[36]),te=M(te,Y,re,K,q,11,h[37]),K=M(K,te,Y,re,J,16,h[38]),re=M(re,K,te,Y,Q,23,h[39]),Y=M(Y,re,K,te,se,4,h[40]),te=M(te,Y,re,K,O,11,h[41]),K=M(K,te,Y,re,P,16,h[42]),re=M(re,K,te,Y,U,23,h[43]),Y=M(Y,re,K,te,$,4,h[44]),te=M(te,Y,re,K,de,11,h[45]),K=M(K,te,Y,re,Fe,16,h[46]),Y=x(Y,re=M(re,K,te,Y,H,23,h[47]),K,te,O,6,h[48]),te=x(te,Y,re,K,J,10,h[49]),K=x(K,te,Y,re,Ee,15,h[50]),re=x(re,K,te,Y,j,21,h[51]),Y=x(Y,re,K,te,de,6,h[52]),te=x(te,Y,re,K,P,10,h[53]),K=x(K,te,Y,re,Q,15,h[54]),re=x(re,K,te,Y,k,21,h[55]),Y=x(Y,re,K,te,V,6,h[56]),te=x(te,Y,re,K,Fe,10,h[57]),K=x(K,te,Y,re,U,15,h[58]),re=x(re,K,te,Y,se,21,h[59]),Y=x(Y,re,K,te,q,6,h[60]),te=x(te,Y,re,K,W,10,h[61]),K=x(K,te,Y,re,H,15,h[62]),re=x(re,K,te,Y,$,21,h[63]),w[0]=w[0]+Y|0,w[1]=w[1]+re|0,w[2]=w[2]+K|0,w[3]=w[3]+te|0},_doFinalize:function(){var I=this._data,S=I.words,L=8*this._nDataBytes,R=8*I.sigBytes;S[R>>>5]|=128<<24-R%32;var D=f.floor(L/4294967296),w=L;S[15+(R+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),S[14+(R+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),I.sigBytes=4*(S.length+1),this._process();for(var O=this._hash,k=O.words,H=0;H<4;H++){var P=k[H];k[H]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}return O},clone:function(){var I=y.clone.call(this);return I._hash=this._hash.clone(),I}});function T(I,S,L,R,D,w,O){var k=I+(S&L|~S&R)+D+O;return(k<>>32-w)+S}function _(I,S,L,R,D,w,O){var k=I+(S&R|L&~R)+D+O;return(k<>>32-w)+S}function M(I,S,L,R,D,w,O){var k=I+(S^L^R)+D+O;return(k<>>32-w)+S}function x(I,S,L,R,D,w,O){var k=I+(L^(S|~R))+D+O;return(k<>>32-w)+S}g.MD5=y._createHelper(C),g.HmacMD5=y._createHmacHelper(C)}(Math),p.MD5)},5228:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.mode.CFB=function(){var f=p.lib.BlockCipherMode.extend();function g(m,b,y,F){var h,C=this._iv;C?(h=C.slice(0),this._iv=void 0):h=this._prevBlock,F.encryptBlock(h,0);for(var T=0;T>24&255)){var F=y>>16&255,h=y>>8&255,C=255&y;255===F?(F=0,255===h?(h=0,255===C?C=0:++C):++h):++F,y=0,y+=F<<16,y+=h<<8,y+=C}else y+=1<<24;return y}var b=f.Encryptor=f.extend({processBlock:function(y,F){var h=this._cipher,C=h.blockSize,T=this._iv,_=this._counter;T&&(_=this._counter=T.slice(0),this._iv=void 0),function m(y){return 0===(y[0]=g(y[0]))&&(y[1]=g(y[1])),y}(_);var M=_.slice(0);h.encryptBlock(M,0);for(var x=0;x>>2]|=y<<24-F%4*8,f.sigBytes+=y},unpad:function(f){f.sigBytes-=255&f.words[f.sigBytes-1>>>2]}},p.pad.Ansix923)},8501:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.Iso10126={pad:function(f,g){var m=4*g,b=m-f.sigBytes%m;f.concat(p.lib.WordArray.random(b-1)).concat(p.lib.WordArray.create([b<<24],1))},unpad:function(f){f.sigBytes-=255&f.words[f.sigBytes-1>>>2]}},p.pad.Iso10126)},4004:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.Iso97971={pad:function(f,g){f.concat(p.lib.WordArray.create([2147483648],1)),p.pad.ZeroPadding.pad(f,g)},unpad:function(f){p.pad.ZeroPadding.unpad(f),f.sigBytes--}},p.pad.Iso97971)},2738:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.NoPadding={pad:function(){},unpad:function(){}},p.pad.NoPadding)},3297:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.ZeroPadding={pad:function(f,g){var m=4*g;f.clamp(),f.sigBytes+=m-(f.sigBytes%m||m)},unpad:function(f){var g=f.words,m=f.sigBytes-1;for(m=f.sigBytes-1;m>=0;m--)if(g[m>>>2]>>>24-m%4*8&255){f.sigBytes=m+1;break}}},p.pad.ZeroPadding)},3538:function(Z,N,E){var f,g,m,b,y,h,C,p;Z.exports=(p=E(12),E(2078),E(990),b=(g=(f=p).lib).WordArray,h=(y=f.algo).HMAC,C=y.PBKDF2=(m=g.Base).extend({cfg:m.extend({keySize:4,hasher:y.SHA256,iterations:25e4}),init:function(T){this.cfg=this.cfg.extend(T)},compute:function(T,_){for(var M=this.cfg,x=h.create(M.hasher,T),I=b.create(),S=b.create([1]),L=I.words,R=S.words,D=M.keySize,w=M.iterations;L.length>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],I=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];this._b=0;for(var S=0;S<4;S++)T.call(this);for(S=0;S<8;S++)I[S]^=x[S+4&7];if(M){var L=M.words,R=L[0],D=L[1],w=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),O=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),k=w>>>16|4294901760&O,H=O<<16|65535&w;for(I[0]^=w,I[1]^=k,I[2]^=O,I[3]^=H,I[4]^=w,I[5]^=k,I[6]^=O,I[7]^=H,S=0;S<4;S++)T.call(this)}},_doProcessBlock:function(_,M){var x=this._X;T.call(this),y[0]=x[0]^x[5]>>>16^x[3]<<16,y[1]=x[2]^x[7]>>>16^x[5]<<16,y[2]=x[4]^x[1]>>>16^x[7]<<16,y[3]=x[6]^x[3]>>>16^x[1]<<16;for(var I=0;I<4;I++)y[I]=16711935&(y[I]<<8|y[I]>>>24)|4278255360&(y[I]<<24|y[I]>>>8),_[M+I]^=y[I]},blockSize:4,ivSize:2});function T(){for(var _=this._X,M=this._C,x=0;x<8;x++)F[x]=M[x];for(M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0>>0?1:0)|0,this._b=M[7]>>>0>>0?1:0,x=0;x<8;x++){var I=_[x]+M[x],S=65535&I,L=I>>>16;h[x]=((S*S>>>17)+S*L>>>15)+L*L^((4294901760&I)*I|0)+((65535&I)*I|0)}_[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,_[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,_[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,_[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,_[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,_[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,_[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,_[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}f.RabbitLegacy=m._createHelper(C)}(),p.RabbitLegacy)},4969:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.StreamCipher,y=[],F=[],h=[],C=f.algo.Rabbit=m.extend({_doReset:function(){for(var _=this._key.words,M=this.cfg.iv,x=0;x<4;x++)_[x]=16711935&(_[x]<<8|_[x]>>>24)|4278255360&(_[x]<<24|_[x]>>>8);var I=this._X=[_[0],_[3]<<16|_[2]>>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],S=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];for(this._b=0,x=0;x<4;x++)T.call(this);for(x=0;x<8;x++)S[x]^=I[x+4&7];if(M){var L=M.words,R=L[0],D=L[1],w=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),O=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),k=w>>>16|4294901760&O,H=O<<16|65535&w;for(S[0]^=w,S[1]^=k,S[2]^=O,S[3]^=H,S[4]^=w,S[5]^=k,S[6]^=O,S[7]^=H,x=0;x<4;x++)T.call(this)}},_doProcessBlock:function(_,M){var x=this._X;T.call(this),y[0]=x[0]^x[5]>>>16^x[3]<<16,y[1]=x[2]^x[7]>>>16^x[5]<<16,y[2]=x[4]^x[1]>>>16^x[7]<<16,y[3]=x[6]^x[3]>>>16^x[1]<<16;for(var I=0;I<4;I++)y[I]=16711935&(y[I]<<8|y[I]>>>24)|4278255360&(y[I]<<24|y[I]>>>8),_[M+I]^=y[I]},blockSize:4,ivSize:2});function T(){for(var _=this._X,M=this._C,x=0;x<8;x++)F[x]=M[x];for(M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0>>0?1:0)|0,this._b=M[7]>>>0>>0?1:0,x=0;x<8;x++){var I=_[x]+M[x],S=65535&I,L=I>>>16;h[x]=((S*S>>>17)+S*L>>>15)+L*L^((4294901760&I)*I|0)+((65535&I)*I|0)}_[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,_[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,_[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,_[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,_[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,_[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,_[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,_[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}f.Rabbit=m._createHelper(C)}(),p.Rabbit)},1195:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.StreamCipher,b=f.algo,y=b.RC4=m.extend({_doReset:function(){for(var C=this._key,T=C.words,_=C.sigBytes,M=this._S=[],x=0;x<256;x++)M[x]=x;x=0;for(var I=0;x<256;x++){var S=x%_,R=M[x];M[x]=M[I=(I+M[x]+(T[S>>>2]>>>24-S%4*8&255))%256],M[I]=R}this._i=this._j=0},_doProcessBlock:function(C,T){C[T]^=F.call(this)},keySize:8,ivSize:0});function F(){for(var C=this._S,T=this._i,_=this._j,M=0,x=0;x<4;x++){var I=C[T=(T+1)%256];C[T]=C[_=(_+C[T])%256],C[_]=I,M|=C[(C[T]+C[_])%256]<<24-8*x}return this._i=T,this._j=_,M}f.RC4=m._createHelper(y);var h=b.RC4Drop=y.extend({cfg:y.cfg.extend({drop:192}),_doReset:function(){y._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)F.call(this)}});f.RC4Drop=m._createHelper(h)}(),p.RC4)},5558:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=b.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),C=b.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),T=b.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=b.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),M=b.create([0,1518500249,1859775393,2400959708,2840853838]),x=b.create([1352829926,1548603684,1836072691,2053994217,0]),I=F.RIPEMD160=y.extend({_doReset:function(){this._hash=b.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,H){for(var P=0;P<16;P++){var q=H+P,j=k[q];k[q]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}var se,Ee,Fe,Y,re,K,te,Ve,ge,Te,Me,U=this._hash.words,J=M.words,V=x.words,$=h.words,Q=C.words,W=T.words,de=_.words;for(K=se=U[0],te=Ee=U[1],Ve=Fe=U[2],ge=Y=U[3],Te=re=U[4],P=0;P<80;P+=1)Me=se+k[H+$[P]]|0,Me+=P<16?S(Ee,Fe,Y)+J[0]:P<32?L(Ee,Fe,Y)+J[1]:P<48?R(Ee,Fe,Y)+J[2]:P<64?D(Ee,Fe,Y)+J[3]:w(Ee,Fe,Y)+J[4],Me=(Me=O(Me|=0,W[P]))+re|0,se=re,re=Y,Y=O(Fe,10),Fe=Ee,Ee=Me,Me=K+k[H+Q[P]]|0,Me+=P<16?w(te,Ve,ge)+V[0]:P<32?D(te,Ve,ge)+V[1]:P<48?R(te,Ve,ge)+V[2]:P<64?L(te,Ve,ge)+V[3]:S(te,Ve,ge)+V[4],Me=(Me=O(Me|=0,de[P]))+Te|0,K=Te,Te=ge,ge=O(Ve,10),Ve=te,te=Me;Me=U[1]+Fe+ge|0,U[1]=U[2]+Y+Te|0,U[2]=U[3]+re+K|0,U[3]=U[4]+se+te|0,U[4]=U[0]+Ee+Ve|0,U[0]=Me},_doFinalize:function(){var k=this._data,H=k.words,P=8*this._nDataBytes,q=8*k.sigBytes;H[q>>>5]|=128<<24-q%32,H[14+(q+64>>>9<<4)]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),k.sigBytes=4*(H.length+1),this._process();for(var j=this._hash,U=j.words,J=0;J<5;J++){var V=U[J];U[J]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8)}return j},clone:function(){var k=y.clone.call(this);return k._hash=this._hash.clone(),k}});function S(k,H,P){return k^H^P}function L(k,H,P){return k&H|~k&P}function R(k,H,P){return(k|~H)^P}function D(k,H,P){return k&P|H&~P}function w(k,H,P){return k^(H|~P)}function O(k,H){return k<>>32-H}g.RIPEMD160=y._createHelper(I),g.HmacRIPEMD160=y._createHmacHelper(I)}(Math),p.RIPEMD160)},4446:function(Z,N,E){var f,g,m,b,F,h,p;Z.exports=(p=E(12),m=(g=(f=p).lib).WordArray,F=[],h=f.algo.SHA1=(b=g.Hasher).extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,T){for(var _=this._hash.words,M=_[0],x=_[1],I=_[2],S=_[3],L=_[4],R=0;R<80;R++){if(R<16)F[R]=0|C[T+R];else{var D=F[R-3]^F[R-8]^F[R-14]^F[R-16];F[R]=D<<1|D>>>31}var w=(M<<5|M>>>27)+L+F[R];w+=R<20?1518500249+(x&I|~x&S):R<40?1859775393+(x^I^S):R<60?(x&I|x&S|I&S)-1894007588:(x^I^S)-899497514,L=S,S=I,I=x<<30|x>>>2,x=M,M=w}_[0]=_[0]+M|0,_[1]=_[1]+x|0,_[2]=_[2]+I|0,_[3]=_[3]+S|0,_[4]=_[4]+L|0},_doFinalize:function(){var C=this._data,T=C.words,_=8*this._nDataBytes,M=8*C.sigBytes;return T[M>>>5]|=128<<24-M%32,T[14+(M+64>>>9<<4)]=Math.floor(_/4294967296),T[15+(M+64>>>9<<4)]=_,C.sigBytes=4*T.length,this._process(),this._hash},clone:function(){var C=b.clone.call(this);return C._hash=this._hash.clone(),C}}),f.SHA1=b._createHelper(h),f.HmacSHA1=b._createHmacHelper(h),p.SHA1)},9811:function(Z,N,E){var f,m,b,y,F,p;Z.exports=(p=E(12),E(2078),m=(f=p).lib.WordArray,F=(b=f.algo).SHA224=(y=b.SHA256).extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var h=y._doFinalize.call(this);return h.sigBytes-=4,h}}),f.SHA224=y._createHelper(F),f.HmacSHA224=y._createHmacHelper(F),p.SHA224)},2078:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=[],C=[];!function(){function M(L){for(var R=f.sqrt(L),D=2;D<=R;D++)if(!(L%D))return!1;return!0}function x(L){return 4294967296*(L-(0|L))|0}for(var I=2,S=0;S<64;)M(I)&&(S<8&&(h[S]=x(f.pow(I,.5))),C[S]=x(f.pow(I,1/3)),S++),I++}();var T=[],_=F.SHA256=y.extend({_doReset:function(){this._hash=new b.init(h.slice(0))},_doProcessBlock:function(M,x){for(var I=this._hash.words,S=I[0],L=I[1],R=I[2],D=I[3],w=I[4],O=I[5],k=I[6],H=I[7],P=0;P<64;P++){if(P<16)T[P]=0|M[x+P];else{var q=T[P-15],U=T[P-2];T[P]=((q<<25|q>>>7)^(q<<14|q>>>18)^q>>>3)+T[P-7]+((U<<15|U>>>17)^(U<<13|U>>>19)^U>>>10)+T[P-16]}var $=S&L^S&R^L&R,de=H+((w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25))+(w&O^~w&k)+C[P]+T[P];H=k,k=O,O=w,w=D+de|0,D=R,R=L,L=S,S=de+(((S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22))+$)|0}I[0]=I[0]+S|0,I[1]=I[1]+L|0,I[2]=I[2]+R|0,I[3]=I[3]+D|0,I[4]=I[4]+w|0,I[5]=I[5]+O|0,I[6]=I[6]+k|0,I[7]=I[7]+H|0},_doFinalize:function(){var M=this._data,x=M.words,I=8*this._nDataBytes,S=8*M.sigBytes;return x[S>>>5]|=128<<24-S%32,x[14+(S+64>>>9<<4)]=f.floor(I/4294967296),x[15+(S+64>>>9<<4)]=I,M.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var M=y.clone.call(this);return M._hash=this._hash.clone(),M}});g.SHA256=y._createHelper(_),g.HmacSHA256=y._createHmacHelper(_)}(Math),p.SHA256)},6545:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,h=g.x64.Word,C=g.algo,T=[],_=[],M=[];!function(){for(var S=1,L=0,R=0;R<24;R++){T[S+5*L]=(R+1)*(R+2)/2%64;var w=(2*S+3*L)%5;S=L%5,L=w}for(S=0;S<5;S++)for(L=0;L<5;L++)_[S+5*L]=L+(2*S+3*L)%5*5;for(var O=1,k=0;k<24;k++){for(var H=0,P=0,q=0;q<7;q++){if(1&O){var j=(1<>>24)|4278255360&(O<<24|O>>>8),(H=R[w]).high^=k=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8),H.low^=O}for(var P=0;P<24;P++){for(var q=0;q<5;q++){for(var j=0,U=0,J=0;J<5;J++)j^=(H=R[q+5*J]).high,U^=H.low;var V=x[q];V.high=j,V.low=U}for(q=0;q<5;q++){var $=x[(q+4)%5],Q=x[(q+1)%5],W=Q.high,de=Q.low;for(j=$.high^(W<<1|de>>>31),U=$.low^(de<<1|W>>>31),J=0;J<5;J++)(H=R[q+5*J]).high^=j,H.low^=U}for(var se=1;se<25;se++){var Ee=(H=R[se]).high,Fe=H.low,Y=T[se];Y<32?(j=Ee<>>32-Y,U=Fe<>>32-Y):(j=Fe<>>64-Y,U=Ee<>>64-Y);var re=x[_[se]];re.high=j,re.low=U}var K=x[0],te=R[0];for(K.high=te.high,K.low=te.low,q=0;q<5;q++)for(J=0;J<5;J++){var Ve=x[se=q+5*J],ge=x[(q+1)%5+5*J],Te=x[(q+2)%5+5*J];(H=R[se]).high=Ve.high^~ge.high&Te.high,H.low=Ve.low^~ge.low&Te.low}var H,Me=M[P];(H=R[0]).high^=Me.high,H.low^=Me.low}},_doFinalize:function(){var S=this._data,L=S.words,D=8*S.sigBytes,w=32*this.blockSize;L[D>>>5]|=1<<24-D%32,L[(f.ceil((D+1)/w)*w>>>5)-1]|=128,S.sigBytes=4*L.length,this._process();for(var O=this._state,k=this.cfg.outputLength/8,H=k/8,P=[],q=0;q>>24)|4278255360&(U<<24|U>>>8),P.push(J=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8)),P.push(U)}return new b.init(P,k)},clone:function(){for(var S=y.clone.call(this),L=S._state=this._state.slice(0),R=0;R<25;R++)L[R]=L[R].clone();return S}});g.SHA3=y._createHelper(I),g.HmacSHA3=y._createHmacHelper(I)}(Math),p.SHA3)},2913:function(Z,N,E){var f,g,m,b,y,F,h,p;Z.exports=(p=E(12),E(1802),E(4870),m=(g=(f=p).x64).Word,b=g.WordArray,h=(y=f.algo).SHA384=(F=y.SHA512).extend({_doReset:function(){this._hash=new b.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var C=F._doFinalize.call(this);return C.sigBytes-=16,C}}),f.SHA384=F._createHelper(h),f.HmacSHA384=F._createHmacHelper(h),p.SHA384)},4870:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),function(){var f=p,m=f.lib.Hasher,b=f.x64,y=b.Word,F=b.WordArray,h=f.algo;function C(){return y.create.apply(y,arguments)}var T=[C(1116352408,3609767458),C(1899447441,602891725),C(3049323471,3964484399),C(3921009573,2173295548),C(961987163,4081628472),C(1508970993,3053834265),C(2453635748,2937671579),C(2870763221,3664609560),C(3624381080,2734883394),C(310598401,1164996542),C(607225278,1323610764),C(1426881987,3590304994),C(1925078388,4068182383),C(2162078206,991336113),C(2614888103,633803317),C(3248222580,3479774868),C(3835390401,2666613458),C(4022224774,944711139),C(264347078,2341262773),C(604807628,2007800933),C(770255983,1495990901),C(1249150122,1856431235),C(1555081692,3175218132),C(1996064986,2198950837),C(2554220882,3999719339),C(2821834349,766784016),C(2952996808,2566594879),C(3210313671,3203337956),C(3336571891,1034457026),C(3584528711,2466948901),C(113926993,3758326383),C(338241895,168717936),C(666307205,1188179964),C(773529912,1546045734),C(1294757372,1522805485),C(1396182291,2643833823),C(1695183700,2343527390),C(1986661051,1014477480),C(2177026350,1206759142),C(2456956037,344077627),C(2730485921,1290863460),C(2820302411,3158454273),C(3259730800,3505952657),C(3345764771,106217008),C(3516065817,3606008344),C(3600352804,1432725776),C(4094571909,1467031594),C(275423344,851169720),C(430227734,3100823752),C(506948616,1363258195),C(659060556,3750685593),C(883997877,3785050280),C(958139571,3318307427),C(1322822218,3812723403),C(1537002063,2003034995),C(1747873779,3602036899),C(1955562222,1575990012),C(2024104815,1125592928),C(2227730452,2716904306),C(2361852424,442776044),C(2428436474,593698344),C(2756734187,3733110249),C(3204031479,2999351573),C(3329325298,3815920427),C(3391569614,3928383900),C(3515267271,566280711),C(3940187606,3454069534),C(4118630271,4000239992),C(116418474,1914138554),C(174292421,2731055270),C(289380356,3203993006),C(460393269,320620315),C(685471733,587496836),C(852142971,1086792851),C(1017036298,365543100),C(1126000580,2618297676),C(1288033470,3409855158),C(1501505948,4234509866),C(1607167915,987167468),C(1816402316,1246189591)],_=[];!function(){for(var x=0;x<80;x++)_[x]=C()}();var M=h.SHA512=m.extend({_doReset:function(){this._hash=new F.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(x,I){for(var S=this._hash.words,L=S[0],R=S[1],D=S[2],w=S[3],O=S[4],k=S[5],H=S[6],P=S[7],q=L.high,j=L.low,U=R.high,J=R.low,V=D.high,$=D.low,Q=w.high,W=w.low,de=O.high,se=O.low,Ee=k.high,Fe=k.low,Y=H.high,re=H.low,K=P.high,te=P.low,Ve=q,ge=j,Te=U,Me=J,me=V,lt=$,vn=Q,un=W,cn=de,Ot=se,yo=Ee,xo=Fe,Oi=Y,Do=re,ma=K,Wr=te,Gt=0;Gt<80;Gt++){var Wt,yn,Co=_[Gt];if(Gt<16)yn=Co.high=0|x[I+2*Gt],Wt=Co.low=0|x[I+2*Gt+1];else{var Eo=_[Gt-15],nr=Eo.high,qr=Eo.low,va=(qr>>>1|nr<<31)^(qr>>>8|nr<<24)^(qr>>>7|nr<<25),In=_[Gt-2],rr=In.high,Qr=In.low,xa=(Qr>>>19|rr<<13)^(Qr<<3|rr>>>29)^(Qr>>>6|rr<<26),Da=_[Gt-7],Ca=_[Gt-16],Ea=Ca.low;Co.high=yn=(yn=(yn=((nr>>>1|qr<<31)^(nr>>>8|qr<<24)^nr>>>7)+Da.high+((Wt=va+Da.low)>>>0>>0?1:0))+((rr>>>19|Qr<<13)^(rr<<3|Qr>>>29)^rr>>>6)+((Wt+=xa)>>>0>>0?1:0))+Ca.high+((Wt+=Ea)>>>0>>0?1:0),Co.low=Wt}var St,el=cn&yo^~cn&Oi,_a=Ot&xo^~Ot&Do,tl=Ve&Te^Ve&me^Te&me,Bi=(ge>>>28|Ve<<4)^(ge<<30|Ve>>>2)^(ge<<25|Ve>>>7),ki=T[Gt],Li=ki.low,Fn=ma+((cn>>>14|Ot<<18)^(cn>>>18|Ot<<14)^(cn<<23|Ot>>>9))+((St=Wr+((Ot>>>14|cn<<18)^(Ot>>>18|cn<<14)^(Ot<<23|cn>>>9)))>>>0>>0?1:0),Vi=Bi+(ge&Me^ge<^Me<);ma=Oi,Wr=Do,Oi=yo,Do=xo,yo=cn,xo=Ot,cn=vn+(Fn=(Fn=(Fn=Fn+el+((St+=_a)>>>0<_a>>>0?1:0))+ki.high+((St+=Li)>>>0
  • >>0?1:0))+yn+((St+=Wt)>>>0>>0?1:0))+((Ot=un+St|0)>>>0>>0?1:0)|0,vn=me,un=lt,me=Te,lt=Me,Te=Ve,Me=ge,Ve=Fn+(((Ve>>>28|ge<<4)^(Ve<<30|ge>>>2)^(Ve<<25|ge>>>7))+tl+(Vi>>>0>>0?1:0))+((ge=St+Vi|0)>>>0>>0?1:0)|0}j=L.low=j+ge,L.high=q+Ve+(j>>>0>>0?1:0),J=R.low=J+Me,R.high=U+Te+(J>>>0>>0?1:0),$=D.low=$+lt,D.high=V+me+($>>>0>>0?1:0),W=w.low=W+un,w.high=Q+vn+(W>>>0>>0?1:0),se=O.low=se+Ot,O.high=de+cn+(se>>>0>>0?1:0),Fe=k.low=Fe+xo,k.high=Ee+yo+(Fe>>>0>>0?1:0),re=H.low=re+Do,H.high=Y+Oi+(re>>>0>>0?1:0),te=P.low=te+Wr,P.high=K+ma+(te>>>0>>0?1:0)},_doFinalize:function(){var x=this._data,I=x.words,S=8*this._nDataBytes,L=8*x.sigBytes;return I[L>>>5]|=128<<24-L%32,I[30+(L+128>>>10<<5)]=Math.floor(S/4294967296),I[31+(L+128>>>10<<5)]=S,x.sigBytes=4*I.length,this._process(),this._hash.toX32()},clone:function(){var x=m.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});f.SHA512=m._createHelper(M),f.HmacSHA512=m._createHmacHelper(M)}(),p.SHA512)},5769:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,g=f.lib,m=g.WordArray,b=g.BlockCipher,y=f.algo,F=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],C=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],T=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],_=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],M=y.DES=b.extend({_doReset:function(){for(var R=this._key.words,D=[],w=0;w<56;w++){var O=F[w]-1;D[w]=R[O>>>5]>>>31-O%32&1}for(var k=this._subKeys=[],H=0;H<16;H++){var P=k[H]=[],q=C[H];for(w=0;w<24;w++)P[w/6|0]|=D[(h[w]-1+q)%28]<<31-w%6,P[4+(w/6|0)]|=D[28+(h[w+24]-1+q)%28]<<31-w%6;for(P[0]=P[0]<<1|P[0]>>>31,w=1;w<7;w++)P[w]=P[w]>>>4*(w-1)+3;P[7]=P[7]<<5|P[7]>>>27}var j=this._invSubKeys=[];for(w=0;w<16;w++)j[w]=k[15-w]},encryptBlock:function(L,R){this._doCryptBlock(L,R,this._subKeys)},decryptBlock:function(L,R){this._doCryptBlock(L,R,this._invSubKeys)},_doCryptBlock:function(L,R,D){this._lBlock=L[R],this._rBlock=L[R+1],x.call(this,4,252645135),x.call(this,16,65535),I.call(this,2,858993459),I.call(this,8,16711935),x.call(this,1,1431655765);for(var w=0;w<16;w++){for(var O=D[w],k=this._lBlock,H=this._rBlock,P=0,q=0;q<8;q++)P|=T[q][((H^O[q])&_[q])>>>0];this._lBlock=H,this._rBlock=k^P}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,x.call(this,1,1431655765),I.call(this,8,16711935),I.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),L[R]=this._lBlock,L[R+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x(L,R){var D=(this._lBlock>>>L^this._rBlock)&R;this._rBlock^=D,this._lBlock^=D<>>L^this._lBlock)&R;this._lBlock^=D,this._rBlock^=D<192.");var D=R.slice(0,2),w=R.length<4?R.slice(0,2):R.slice(2,4),O=R.length<6?R.slice(0,2):R.slice(4,6);this._des1=M.createEncryptor(m.create(D)),this._des2=M.createEncryptor(m.create(w)),this._des3=M.createEncryptor(m.create(O))},encryptBlock:function(L,R){this._des1.encryptBlock(L,R),this._des2.decryptBlock(L,R),this._des3.encryptBlock(L,R)},decryptBlock:function(L,R){this._des3.decryptBlock(L,R),this._des2.encryptBlock(L,R),this._des1.decryptBlock(L,R)},keySize:6,ivSize:2,blockSize:2});f.TripleDES=b._createHelper(S)}(),p.TripleDES)},1802:function(Z,N,E){var m,b,y,F,p;Z.exports=(p=E(12),b=(m=p.lib).Base,y=m.WordArray,(F=p.x64={}).Word=b.extend({init:function(T,_){this.high=T,this.low=_}}),F.WordArray=b.extend({init:function(T,_){T=this.words=T||[],this.sigBytes=null!=_?_:8*T.length},toX32:function(){for(var T=this.words,_=T.length,M=[],x=0;x<_;x++){var I=T[x];M.push(I.high),M.push(I.low)}return y.create(M,this.sigBytes)},clone:function(){for(var T=b.clone.call(this),_=T.words=this.words.slice(0),M=_.length,x=0;x{"use strict";var N={single_source_shortest_paths:function(E,p,f){var g={},m={};m[p]=0;var y,F,h,C,T,M,b=N.PriorityQueue.make();for(b.push(p,0);!b.empty();)for(h in C=(y=b.pop()).cost,T=E[F=y.value]||{})T.hasOwnProperty(h)&&(M=C+T[h],(typeof m[h]>"u"||m[h]>M)&&(m[h]=M,b.push(h,M),g[h]=F));if(typeof f<"u"&&typeof m[f]>"u"){var S=["Could not find a path from ",p," to ",f,"."].join("");throw new Error(S)}return g},extract_shortest_path_from_predecessor_list:function(E,p){for(var f=[],g=p;g;)f.push(g),g=E[g];return f.reverse(),f},find_path:function(E,p,f){var g=N.single_source_shortest_paths(E,p,f);return N.extract_shortest_path_from_predecessor_list(g,f)},PriorityQueue:{make:function(E){var g,p=N.PriorityQueue,f={};for(g in E=E||{},p)p.hasOwnProperty(g)&&(f[g]=p[g]);return f.queue=[],f.sorter=E.sorter||p.default_sorter,f},default_sorter:function(E,p){return E.cost-p.cost},push:function(E,p){this.queue.push({value:E,cost:p}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Z.exports=N},6119:Z=>{"use strict";Z.exports=function(E){for(var p=[],f=E.length,g=0;g=55296&&m<=56319&&f>g+1){var b=E.charCodeAt(g+1);b>=56320&&b<=57343&&(m=1024*(m-55296)+b-56320+65536,g+=1)}m<128?p.push(m):m<2048?(p.push(m>>6|192),p.push(63&m|128)):m<55296||m>=57344&&m<65536?(p.push(m>>12|224),p.push(m>>6&63|128),p.push(63&m|128)):m>=65536&&m<=1114111?(p.push(m>>18|240),p.push(m>>12&63|128),p.push(m>>6&63|128),p.push(63&m|128)):p.push(239,191,189)}return new Uint8Array(p).buffer}},8251:(Z,N,E)=>{const f=E(8310),g=E(6208),m=E(6422),b=E(7772);function y(F,h,C,T,_){const M=[].slice.call(arguments,1),x=M.length,I="function"==typeof M[x-1];if(!I&&!f())throw new Error("Callback required as last argument");if(!I){if(x<1)throw new Error("Too few arguments provided");return 1===x?(C=h,h=T=void 0):2===x&&!h.getContext&&(T=C,C=h,h=void 0),new Promise(function(S,L){try{const R=g.create(C,T);S(F(R,h,T))}catch(R){L(R)}})}if(x<2)throw new Error("Too few arguments provided");2===x?(_=C,C=h,h=T=void 0):3===x&&(h.getContext&&typeof _>"u"?(_=T,T=void 0):(_=T,T=C,C=h,h=void 0));try{const S=g.create(C,T);_(null,F(S,h,T))}catch(S){_(S)}}N.rT=y.bind(null,m.render),y.bind(null,m.renderToDataURL),y.bind(null,function(F,h,C){return b.render(F,C)})},8310:Z=>{Z.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},5281:(Z,N,E)=>{const p=E(2562).getSymbolSize;N.getRowColCoords=function(g){if(1===g)return[];const m=Math.floor(g/7)+2,b=p(g),y=145===b?26:2*Math.ceil((b-13)/(2*m-2)),F=[b-7];for(let h=1;h{const p=E(1239),f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function g(m){this.mode=p.ALPHANUMERIC,this.data=m}g.getBitsLength=function(b){return 11*Math.floor(b/2)+b%2*6},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(b){let y;for(y=0;y+2<=this.data.length;y+=2){let F=45*f.indexOf(this.data[y]);F+=f.indexOf(this.data[y+1]),b.put(F,11)}this.data.length%2&&b.put(f.indexOf(this.data[y]),6)},Z.exports=g},6509:Z=>{function N(){this.buffer=[],this.length=0}N.prototype={get:function(E){const p=Math.floor(E/8);return 1==(this.buffer[p]>>>7-E%8&1)},put:function(E,p){for(let f=0;f>>p-f-1&1))},getLengthInBits:function(){return this.length},putBit:function(E){const p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),E&&(this.buffer[p]|=128>>>this.length%8),this.length++}},Z.exports=N},5147:Z=>{function N(E){if(!E||E<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=E,this.data=new Uint8Array(E*E),this.reservedBit=new Uint8Array(E*E)}N.prototype.set=function(E,p,f,g){const m=E*this.size+p;this.data[m]=f,g&&(this.reservedBit[m]=!0)},N.prototype.get=function(E,p){return this.data[E*this.size+p]},N.prototype.xor=function(E,p,f){this.data[E*this.size+p]^=f},N.prototype.isReserved=function(E,p){return this.reservedBit[E*this.size+p]},Z.exports=N},277:(Z,N,E)=>{const p=E(6119),f=E(1239);function g(m){this.mode=f.BYTE,"string"==typeof m&&(m=p(m)),this.data=new Uint8Array(m)}g.getBitsLength=function(b){return 8*b},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(m){for(let b=0,y=this.data.length;b{const p=E(4505),f=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],g=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];N.getBlocksCount=function(b,y){switch(y){case p.L:return f[4*(b-1)+0];case p.M:return f[4*(b-1)+1];case p.Q:return f[4*(b-1)+2];case p.H:return f[4*(b-1)+3];default:return}},N.getTotalCodewordsCount=function(b,y){switch(y){case p.L:return g[4*(b-1)+0];case p.M:return g[4*(b-1)+1];case p.Q:return g[4*(b-1)+2];case p.H:return g[4*(b-1)+3];default:return}}},4505:(Z,N)=>{N.L={bit:1},N.M={bit:0},N.Q={bit:3},N.H={bit:2},N.isValid=function(f){return f&&typeof f.bit<"u"&&f.bit>=0&&f.bit<4},N.from=function(f,g){if(N.isValid(f))return f;try{return function E(p){if("string"!=typeof p)throw new Error("Param is not a string");switch(p.toLowerCase()){case"l":case"low":return N.L;case"m":case"medium":return N.M;case"q":case"quartile":return N.Q;case"h":case"high":return N.H;default:throw new Error("Unknown EC Level: "+p)}}(f)}catch{return g}}},5232:(Z,N,E)=>{const p=E(2562).getSymbolSize;N.getPositions=function(m){const b=p(m);return[[0,0],[b-7,0],[0,b-7]]}},8508:(Z,N,E)=>{const p=E(2562),m=p.getBCHDigit(1335);N.getEncodedBits=function(y,F){const h=y.bit<<3|F;let C=h<<10;for(;p.getBCHDigit(C)-m>=0;)C^=1335<{const E=new Uint8Array(512),p=new Uint8Array(256);(function(){let g=1;for(let m=0;m<255;m++)E[m]=g,p[g]=m,g<<=1,256&g&&(g^=285);for(let m=255;m<512;m++)E[m]=E[m-255]})(),N.log=function(g){if(g<1)throw new Error("log("+g+")");return p[g]},N.exp=function(g){return E[g]},N.mul=function(g,m){return 0===g||0===m?0:E[p[g]+p[m]]}},9995:(Z,N,E)=>{const p=E(1239),f=E(2562);function g(m){this.mode=p.KANJI,this.data=m}g.getBitsLength=function(b){return 13*b},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(m){let b;for(b=0;b=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[b]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),m.put(y,13)}},Z.exports=g},9023:(Z,N)=>{N.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function p(f,g,m){switch(f){case N.Patterns.PATTERN000:return(g+m)%2==0;case N.Patterns.PATTERN001:return g%2==0;case N.Patterns.PATTERN010:return m%3==0;case N.Patterns.PATTERN011:return(g+m)%3==0;case N.Patterns.PATTERN100:return(Math.floor(g/2)+Math.floor(m/3))%2==0;case N.Patterns.PATTERN101:return g*m%2+g*m%3==0;case N.Patterns.PATTERN110:return(g*m%2+g*m%3)%2==0;case N.Patterns.PATTERN111:return(g*m%3+(g+m)%2)%2==0;default:throw new Error("bad maskPattern:"+f)}}N.isValid=function(g){return null!=g&&""!==g&&!isNaN(g)&&g>=0&&g<=7},N.from=function(g){return N.isValid(g)?parseInt(g,10):void 0},N.getPenaltyN1=function(g){const m=g.size;let b=0,y=0,F=0,h=null,C=null;for(let T=0;T=5&&(b+=y-5+3),h=M,y=1),M=g.get(_,T),M===C?F++:(F>=5&&(b+=F-5+3),C=M,F=1)}y>=5&&(b+=y-5+3),F>=5&&(b+=F-5+3)}return b},N.getPenaltyN2=function(g){const m=g.size;let b=0;for(let y=0;y=10&&(1488===y||93===y)&&b++,F=F<<1&2047|g.get(C,h),C>=10&&(1488===F||93===F)&&b++}return 40*b},N.getPenaltyN4=function(g){let m=0;const b=g.data.length;for(let F=0;F{const p=E(6161),f=E(2427);N.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},N.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},N.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},N.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},N.MIXED={bit:-1},N.getCharCountIndicator=function(b,y){if(!b.ccBits)throw new Error("Invalid mode: "+b);if(!p.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?b.ccBits[0]:y<27?b.ccBits[1]:b.ccBits[2]},N.getBestModeForData=function(b){return f.testNumeric(b)?N.NUMERIC:f.testAlphanumeric(b)?N.ALPHANUMERIC:f.testKanji(b)?N.KANJI:N.BYTE},N.toString=function(b){if(b&&b.id)return b.id;throw new Error("Invalid mode")},N.isValid=function(b){return b&&b.bit&&b.ccBits},N.from=function(b,y){if(N.isValid(b))return b;try{return function g(m){if("string"!=typeof m)throw new Error("Param is not a string");switch(m.toLowerCase()){case"numeric":return N.NUMERIC;case"alphanumeric":return N.ALPHANUMERIC;case"kanji":return N.KANJI;case"byte":return N.BYTE;default:throw new Error("Unknown mode: "+m)}}(b)}catch{return y}}},8722:(Z,N,E)=>{const p=E(1239);function f(g){this.mode=p.NUMERIC,this.data=g.toString()}f.getBitsLength=function(m){return 10*Math.floor(m/3)+(m%3?m%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(m){let b,y,F;for(b=0;b+3<=this.data.length;b+=3)y=this.data.substr(b,3),F=parseInt(y,10),m.put(F,10);const h=this.data.length-b;h>0&&(y=this.data.substr(b),F=parseInt(y,10),m.put(F,3*h+1))},Z.exports=f},2376:(Z,N,E)=>{const p=E(1674);N.mul=function(g,m){const b=new Uint8Array(g.length+m.length-1);for(let y=0;y=0;){const y=b[0];for(let h=0;h{const p=E(2562),f=E(4505),g=E(6509),m=E(5147),b=E(5281),y=E(5232),F=E(9023),h=E(7191),C=E(1297),T=E(9467),_=E(8508),M=E(1239),x=E(1799);function D(P,q,j){const U=P.size,J=_.getEncodedBits(q,j);let V,$;for(V=0;V<15;V++)$=1==(J>>V&1),P.set(V<6?V:V<8?V+1:U-15+V,8,$,!0),P.set(8,V<8?U-V-1:V<9?15-V-1+1:15-V-1,$,!0);P.set(U-8,8,1,!0)}function H(P,q,j,U){let J;if(Array.isArray(P))J=x.fromArray(P);else{if("string"!=typeof P)throw new Error("Invalid data");{let de=q;if(!de){const se=x.rawSplit(P);de=T.getBestVersionForData(se,j)}J=x.fromString(P,de||40)}}const V=T.getBestVersionForData(J,j);if(!V)throw new Error("The amount of data is too big to be stored in a QR Code");if(q){if(q=0&&Q<=6&&(0===W||6===W)||W>=0&&W<=6&&(0===Q||6===Q)||Q>=2&&Q<=4&&W>=2&&W<=4,!0)}}(W,q),function S(P){const q=P.size;for(let j=8;j=7&&function R(P,q){const j=P.size,U=T.getEncodedBits(q);let J,V,$;for(let Q=0;Q<18;Q++)J=Math.floor(Q/3),V=Q%3+j-8-3,$=1==(U>>Q&1),P.set(J,V,$,!0),P.set(V,J,$,!0)}(W,q),function w(P,q){const j=P.size;let U=-1,J=j-1,V=7,$=0;for(let Q=j-1;Q>0;Q-=2)for(6===Q&&Q--;;){for(let W=0;W<2;W++)if(!P.isReserved(J,Q-W)){let de=!1;$>>V&1)),P.set(J,Q-W,de),V--,-1===V&&($++,V=7)}if(J+=U,J<0||j<=J){J-=U,U=-U;break}}}(W,$),isNaN(U)&&(U=F.getBestMask(W,D.bind(null,W,j))),F.applyMask(U,W),D(W,j,U),{modules:W,version:q,errorCorrectionLevel:j,maskPattern:U,segments:J}}N.create=function(q,j){if(typeof q>"u"||""===q)throw new Error("No input text");let J,V,U=f.M;return typeof j<"u"&&(U=f.from(j.errorCorrectionLevel,f.M),J=T.from(j.version),V=F.from(j.maskPattern),j.toSJISFunc&&p.setToSJISFunction(j.toSJISFunc)),H(q,J,U,V)}},1297:(Z,N,E)=>{const p=E(2376);function f(g){this.genPoly=void 0,this.degree=g,this.degree&&this.initialize(this.degree)}f.prototype.initialize=function(m){this.degree=m,this.genPoly=p.generateECPolynomial(this.degree)},f.prototype.encode=function(m){if(!this.genPoly)throw new Error("Encoder not initialized");const b=new Uint8Array(m.length+this.degree);b.set(m);const y=p.mod(b,this.genPoly),F=this.degree-y.length;if(F>0){const h=new Uint8Array(this.degree);return h.set(y,F),h}return y},Z.exports=f},2427:(Z,N)=>{const E="[0-9]+";let f="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";f=f.replace(/u/g,"\\u");const g="(?:(?![A-Z0-9 $%*+\\-./:]|"+f+")(?:.|[\r\n]))+";N.KANJI=new RegExp(f,"g"),N.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),N.BYTE=new RegExp(g,"g"),N.NUMERIC=new RegExp(E,"g"),N.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const m=new RegExp("^"+f+"$"),b=new RegExp("^"+E+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");N.testKanji=function(h){return m.test(h)},N.testNumeric=function(h){return b.test(h)},N.testAlphanumeric=function(h){return y.test(h)}},1799:(Z,N,E)=>{const p=E(1239),f=E(8722),g=E(120),m=E(277),b=E(9995),y=E(2427),F=E(2562),h=E(7206);function C(R){return unescape(encodeURIComponent(R)).length}function T(R,D,w){const O=[];let k;for(;null!==(k=R.exec(w));)O.push({data:k[0],index:k.index,mode:D,length:k[0].length});return O}function _(R){const D=T(y.NUMERIC,p.NUMERIC,R),w=T(y.ALPHANUMERIC,p.ALPHANUMERIC,R);let O,k;return F.isKanjiModeEnabled()?(O=T(y.BYTE,p.BYTE,R),k=T(y.KANJI,p.KANJI,R)):(O=T(y.BYTE_KANJI,p.BYTE,R),k=[]),D.concat(w,O,k).sort(function(P,q){return P.index-q.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function M(R,D){switch(D){case p.NUMERIC:return f.getBitsLength(R);case p.ALPHANUMERIC:return g.getBitsLength(R);case p.KANJI:return b.getBitsLength(R);case p.BYTE:return m.getBitsLength(R)}}function L(R,D){let w;const O=p.getBestModeForData(R);if(w=p.from(D,O),w!==p.BYTE&&w.bit=0?D[D.length-1]:null;return O&&O.mode===w.mode?(D[D.length-1].data+=w.data,D):(D.push(w),D)},[])}(q))},N.rawSplit=function(D){return N.fromArray(_(D,F.isKanjiModeEnabled()))}},2562:(Z,N)=>{let E;const p=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(g){if(!g)throw new Error('"version" cannot be null or undefined');if(g<1||g>40)throw new Error('"version" should be in range from 1 to 40');return 4*g+17},N.getSymbolTotalCodewords=function(g){return p[g]},N.getBCHDigit=function(f){let g=0;for(;0!==f;)g++,f>>>=1;return g},N.setToSJISFunction=function(g){if("function"!=typeof g)throw new Error('"toSJISFunc" is not a valid function.');E=g},N.isKanjiModeEnabled=function(){return typeof E<"u"},N.toSJIS=function(g){return E(g)}},6161:(Z,N)=>{N.isValid=function(p){return!isNaN(p)&&p>=1&&p<=40}},9467:(Z,N,E)=>{const p=E(2562),f=E(7191),g=E(4505),m=E(1239),b=E(6161),F=p.getBCHDigit(7973);function C(M,x){return m.getCharCountIndicator(M,x)+4}function T(M,x){let I=0;return M.forEach(function(S){const L=C(S.mode,x);I+=L+S.getBitsLength()}),I}N.from=function(x,I){return b.isValid(x)?parseInt(x,10):I},N.getCapacity=function(x,I,S){if(!b.isValid(x))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=m.BYTE);const D=8*(p.getSymbolTotalCodewords(x)-f.getTotalCodewordsCount(x,I));if(S===m.MIXED)return D;const w=D-C(S,x);switch(S){case m.NUMERIC:return Math.floor(w/10*3);case m.ALPHANUMERIC:return Math.floor(w/11*2);case m.KANJI:return Math.floor(w/13);default:return Math.floor(w/8)}},N.getBestVersionForData=function(x,I){let S;const L=g.from(I,g.M);if(Array.isArray(x)){if(x.length>1)return function _(M,x){for(let I=1;I<=40;I++)if(T(M,I)<=N.getCapacity(I,x,m.MIXED))return I}(x,L);if(0===x.length)return 1;S=x[0]}else S=x;return function h(M,x,I){for(let S=1;S<=40;S++)if(x<=N.getCapacity(S,I,M))return S}(S.mode,S.getLength(),L)},N.getEncodedBits=function(x){if(!b.isValid(x)||x<7)throw new Error("Invalid QR Code version");let I=x<<12;for(;p.getBCHDigit(I)-F>=0;)I^=7973<{const p=E(1101);N.render=function(b,y,F){let h=F,C=y;typeof h>"u"&&(!y||!y.getContext)&&(h=y,y=void 0),y||(C=function g(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=p.getOptions(h);const T=p.getImageWidth(b.modules.size,h),_=C.getContext("2d"),M=_.createImageData(T,T);return p.qrToImageData(M.data,b,h),function f(m,b,y){m.clearRect(0,0,b.width,b.height),b.style||(b.style={}),b.height=y,b.width=y,b.style.height=y+"px",b.style.width=y+"px"}(_,C,T),_.putImageData(M,0,0),C},N.renderToDataURL=function(b,y,F){let h=F;return typeof h>"u"&&(!y||!y.getContext)&&(h=y,y=void 0),h||(h={}),N.render(b,y,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},7772:(Z,N,E)=>{const p=E(1101);function f(b,y){const F=b.a/255,h=y+'="'+b.hex+'"';return F<1?h+" "+y+'-opacity="'+F.toFixed(2).slice(1)+'"':h}function g(b,y,F){let h=b+y;return typeof F<"u"&&(h+=" "+F),h}N.render=function(y,F,h){const C=p.getOptions(F),T=y.modules.size,_=y.modules.data,M=T+2*C.margin,x=C.color.light.a?"':"",I="0&&x>0&&b[M-1]||(h+=T?g("M",x+F,.5+I+F):g("m",C,0),C=0,T=!1),x+1',R=''+x+I+"\n";return"function"==typeof h&&h(null,R),R}},1101:(Z,N)=>{function E(p){if("number"==typeof p&&(p=p.toString()),"string"!=typeof p)throw new Error("Color should be defined as hex string");let f=p.slice().replace("#","").split("");if(f.length<3||5===f.length||f.length>8)throw new Error("Invalid hex color: "+p);(3===f.length||4===f.length)&&(f=Array.prototype.concat.apply([],f.map(function(m){return[m,m]}))),6===f.length&&f.push("F","F");const g=parseInt(f.join(""),16);return{r:g>>24&255,g:g>>16&255,b:g>>8&255,a:255&g,hex:"#"+f.slice(0,6).join("")}}N.getOptions=function(f){f||(f={}),f.color||(f.color={});const m=f.width&&f.width>=21?f.width:void 0;return{width:m,scale:m?4:f.scale||4,margin:typeof f.margin>"u"||null===f.margin||f.margin<0?4:f.margin,color:{dark:E(f.color.dark||"#000000ff"),light:E(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},N.getScale=function(f,g){return g.width&&g.width>=f+2*g.margin?g.width/(f+2*g.margin):g.scale},N.getImageWidth=function(f,g){const m=N.getScale(f,g);return Math.floor((f+2*g.margin)*m)},N.qrToImageData=function(f,g,m){const b=g.modules.size,y=g.modules.data,F=N.getScale(b,m),h=Math.floor((b+2*m.margin)*F),C=m.margin*F,T=[m.color.light,m.color.dark];for(let _=0;_=C&&M>=C&&_{}},Z=>{Z(Z.s=8333)}]); \ No newline at end of file +(self.webpackChunkprivate_qrcode=self.webpackChunkprivate_qrcode||[]).push([[179],{8333:(Z,N,E)=>{"use strict";function p(e){return"function"==typeof e}function f(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const g=f(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function m(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class b{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 i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(p(r))try{r()}catch(i){n=i instanceof g?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{h(i)}catch(s){n=n??[],s instanceof g?n=[...n,...s.errors]:n.push(s)}}if(n)throw new g(n)}}add(n){var t;if(n&&n!==this)if(this.closed)h(n);else{if(n instanceof b){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)&&m(t,n)}remove(n){const{_finalizers:t}=this;t&&m(t,n),n instanceof b&&n._removeParent(this)}}b.EMPTY=(()=>{const e=new b;return e.closed=!0,e})();const y=b.EMPTY;function F(e){return e instanceof b||e&&"closed"in e&&p(e.remove)&&p(e.add)&&p(e.unsubscribe)}function h(e){p(e)?e():e.unsubscribe()}const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},T={setTimeout(e,n,...t){const{delegate:r}=T;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=T;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function _(e){T.setTimeout(()=>{const{onUnhandledError:n}=C;if(!n)throw e;n(e)})}function M(){}const x=L("C",void 0,void 0);function L(e,n,t){return{kind:e,value:n,error:t}}let R=null;function D(e){if(C.useDeprecatedSynchronousErrorHandling){const n=!R;if(n&&(R={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=R;if(R=null,t)throw r}}else e()}class O extends b{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,F(n)&&n.add(this)):this.destination=V}static create(n,t,r){return new q(n,t,r)}next(n){this.isStopped?J(function S(e){return L("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?J(function I(e){return L("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?J(x,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 k=Function.prototype.bind;function H(e,n){return k.call(e,n)}class P{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){j(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){j(r)}else j(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){j(t)}}}class q extends O{constructor(n,t,r){let o;if(super(),p(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&C.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&H(n.next,i),error:n.error&&H(n.error,i),complete:n.complete&&H(n.complete,i)}):o=n}this.destination=new P(o)}}function j(e){C.useDeprecatedSynchronousErrorHandling?function w(e){C.useDeprecatedSynchronousErrorHandling&&R&&(R.errorThrown=!0,R.error=e)}(e):_(e)}function J(e,n){const{onStoppedNotification:t}=C;t&&T.setTimeout(()=>t(e,n))}const V={closed:!0,next:M,error:function U(e){throw e},complete:M},$="function"==typeof Symbol&&Symbol.observable||"@@observable";function Q(e){return e}function de(e){return 0===e.length?Q:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let se=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Y(e){return e&&e instanceof O||function Fe(e){return e&&p(e.next)&&p(e.error)&&p(e.complete)}(e)&&F(e)}(t)?t:new q(t,r,o);return D(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Ee(r))((o,i)=>{const s=new q({next:a=>{try{t(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[$](){return this}pipe(...t){return de(t)(this)}toPromise(t){return new(t=Ee(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Ee(e){var n;return null!==(n=e??C.Promise)&&void 0!==n?n:Promise}const re=f(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let K=(()=>{class e extends se{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new te(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new re}next(t){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){D(()=>{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:r,isStopped:o,observers:i}=this;return r||o?y:(this.currentObservers=null,i.push(t),new b(()=>{this.currentObservers=null,m(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new se;return t.source=this,t}}return e.create=(n,t)=>new te(n,t),e})();class te extends K{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.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,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:y}}function Ve(e){return p(e?.lift)}function ge(e){return n=>{if(Ve(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(e,n,t,r,o){return new Me(e,n,t,r,o)}class Me extends O{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(u){n.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}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 me(e,n){return ge((t,r)=>{let o=0;t.subscribe(Te(r,i=>{r.next(e.call(n,i,o++))}))})}function In(e){return this instanceof In?(this.v=e,this):new In(e)}function ya(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 Eo(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Pi=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Bi(e){return p(e?.then)}function wa(e){return p(e[$])}function ba(e){return Symbol.asyncIterator&&p(e?.[Symbol.asyncIterator])}function ki(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 Li=function nl(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function St(e){return p(e?.[Li])}function Fn(e){return function rr(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(v){r[v]&&(o[v]=function(A){return new Promise(function(B,z){i.push([v,A,B,z])>1||a(v,A)})})}function a(v,A){try{!function u(v){v.value instanceof In?Promise.resolve(v.value.v).then(c,l):d(i[0][2],v)}(r[v](A))}catch(B){d(i[0][3],B)}}function c(v){a("next",v)}function l(v){a("throw",v)}function d(v,A){v(A),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield In(t.read());if(o)return yield In(void 0);yield yield In(r)}}finally{t.releaseLock()}})}function Vi(e){return p(e?.getReader)}function mt(e){if(e instanceof se)return e;if(null!=e){if(wa(e))return function GE(e){return new se(n=>{const t=e[$]();if(p(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Pi(e))return function WE(e){return new se(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,_)})}(e);if(ba(e))return T0(e);if(St(e))return function QE(e){return new se(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Vi(e))return function ZE(e){return T0(Fn(e))}(e)}throw ki(e)}function T0(e){return new se(n=>{(function YE(e,n){var t,r,o,i;return function Gt(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(l.value).then(a,u)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=ya(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function or(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ft(e,n,t=1/0){return p(n)?ft((r,o)=>me((i,s)=>n(r,i,o,s))(mt(e(r,o))),t):("number"==typeof n&&(t=n),ge((r,o)=>function KE(e,n,t,r,o,i,s,a){const u=[];let c=0,l=0,d=!1;const v=()=>{d&&!u.length&&!c&&n.complete()},A=z=>c{i&&n.next(z),c++;let X=!1;mt(t(z,l++)).subscribe(Te(n,ie=>{o?.(ie),i?A(ie):n.next(ie)},()=>{X=!0},void 0,()=>{if(X)try{for(c--;u.length&&cB(ie)):B(ie)}v()}catch(ie){n.error(ie)}}))};return e.subscribe(Te(n,A,()=>{d=!0,v()})),()=>{a?.()}}(r,o,e,t)))}function _o(e=1/0){return ft(Q,e)}const jn=new se(e=>e.complete());function N0(e){return e&&p(e.schedule)}function rl(e){return e[e.length-1]}function R0(e){return p(rl(e))?e.pop():void 0}function Hi(e){return N0(rl(e))?e.pop():void 0}function O0(e,n=0){return ge((t,r)=>{t.subscribe(Te(r,o=>or(r,e,()=>r.next(o),n),()=>or(r,e,()=>r.complete(),n),o=>or(r,e,()=>r.error(o),n)))})}function P0(e,n=0){return ge((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function B0(e,n){if(!e)throw new Error("Iterable cannot be null");return new se(t=>{or(t,n,()=>{const r=e[Symbol.asyncIterator]();or(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function vt(e,n){return n?function i_(e,n){if(null!=e){if(wa(e))return function e_(e,n){return mt(e).pipe(P0(n),O0(n))}(e,n);if(Pi(e))return function n_(e,n){return new se(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Bi(e))return function t_(e,n){return mt(e).pipe(P0(n),O0(n))}(e,n);if(ba(e))return B0(e,n);if(St(e))return function r_(e,n){return new se(t=>{let r;return or(t,n,()=>{r=e[Li](),or(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>p(r?.return)&&r.return()})}(e,n);if(Vi(e))return function o_(e,n){return B0(Fn(e),n)}(e,n)}throw ki(e)}(e,n):mt(e)}function ol(...e){const n=Hi(e),t=function JE(e,n){return"number"==typeof rl(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?mt(r[0]):_o(t)(vt(r,n)):jn}class xn extends K{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:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function ve(...e){return vt(e,Hi(e))}function k0(e={}){const{connector:n=(()=>new K),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1;const v=()=>{a?.unsubscribe(),a=void 0},A=()=>{v(),s=u=void 0,l=d=!1},B=()=>{const z=s;A(),z?.unsubscribe()};return ge((z,X)=>{c++,!d&&!l&&v();const ie=u=u??n();X.add(()=>{c--,0===c&&!d&&!l&&(a=il(B,o))}),ie.subscribe(X),!s&&c>0&&(s=new q({next:G=>ie.next(G),error:G=>{d=!0,v(),a=il(A,t,G),ie.error(G)},complete:()=>{l=!0,v(),a=il(A,r),ie.complete()}}),mt(z).subscribe(s))})(i)}}function il(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new q({next:()=>{r.unsubscribe(),e()}});return mt(n(...t)).subscribe(r)}function qt(e,n){return ge((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(Te(r,u=>{o?.unsubscribe();let c=0;const l=i++;mt(e(u,l)).subscribe(o=Te(r,d=>r.next(n?n(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function a_(e,n){return e===n}function Ue(e){for(let n in e)if(e[n]===Ue)return n;throw Error("Could not find renamed property on target object.")}function Aa(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function ht(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ht).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 sl(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const u_=Ue({__forward_ref__:Ue});function Qe(e){return e.__forward_ref__=Qe,e.toString=function(){return ht(this())},e}function De(e){return al(e)?e():e}function al(e){return"function"==typeof e&&e.hasOwnProperty(u_)&&e.__forward_ref__===Qe}function ul(e){return e&&!!e.\u0275providers}const L0="https://g.co/ng/security#xss";class oe extends Error{constructor(n,t){super(function Ma(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function cl(e,n){throw new oe(-201,!1)}function Dn(e,n){null==e&&function ye(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function yt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Sa(e){return V0(e,Fa)||V0(e,H0)}function V0(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ia(e){return e&&(e.hasOwnProperty(ll)||e.hasOwnProperty(m_))?e[ll]:null}const Fa=Ue({\u0275prov:Ue}),ll=Ue({\u0275inj:Ue}),H0=Ue({ngInjectableDef:Ue}),m_=Ue({ngInjectorDef:Ue});var Oe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Oe||{});let dl;function Qt(e){const n=dl;return dl=e,n}function $0(e,n,t){const r=Sa(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Oe.Optional?null:void 0!==n?n:void cl(ht(e))}const Ze=globalThis;class ce{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=fe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ji={},ml="__NG_DI_FLAG__",Ta="ngTempTokenPath",x_=/\n/gm,z0="__source";let wo;function wr(e){const n=wo;return wo=e,n}function E_(e,n=Oe.Default){if(void 0===wo)throw new oe(-203,!1);return null===wo?$0(e,void 0,n):wo.get(e,n&Oe.Optional?null:void 0,n)}function pe(e,n=Oe.Default){return(function j0(){return dl}()||E_)(De(e),n)}function ue(e,n=Oe.Default){return pe(e,Na(n))}function Na(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function vl(e){const n=[];for(let t=0;tn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const A=8&r?v:null;if(A&&-1!==Q0(A,c,0)||2&r&&c!==v){if(Nn(r))return!1;s=!0}}}}else{if(!s&&!Nn(r)&&!Nn(u))return!1;if(s&&Nn(u))continue;s=!1,r=u|1&r}}return Nn(r)||s}function Nn(e){return 0==(1&e)}function I_(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Nn(s)&&(n+=tp(i,o),o=""),r=s,i=i||!Nn(r);t++}return""!==o&&(n+=tp(i,o)),n}function br(e){return ir(()=>{const n=rp(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ra.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Tn.Emulated,styles:e.styles||Le,_:null,schemas:e.schemas||null,tView:null,id:""};op(t);const r=e.dependencies;return t.directiveDefs=Pa(r,!1),t.pipeDefs=Pa(r,!0),t.id=function $_(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function L_(e){return Be(e)||Et(e)}function V_(e){return null!==e}function Ct(e){return ir(()=>({type:e.type,bootstrap:e.bootstrap||Le,declarations:e.declarations||Le,imports:e.imports||Le,exports:e.exports||Le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function np(e,n){if(null==e)return $n;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function Ce(e){return ir(()=>{const n=rp(e);return op(n),n})}function Be(e){return e[Oa]||null}function Et(e){return e[yl]||null}function Pt(e){return e[xl]||null}function dn(e,n){const t=e[W0]||null;if(!t&&!0===n)throw new Error(`Type ${ht(e)} does not have '\u0275mod' property.`);return t}function rp(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||$n,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:np(e.inputs,n),outputs:np(e.outputs)}}function op(e){e.features?.forEach(n=>n(e))}function Pa(e,n){if(!e)return null;const t=n?Pt:L_;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(V_)}const ot=0,ae=1,Se=2,Je=3,Rn=4,Gi=5,It=6,Ao=7,at=8,Ar=9,Mo=10,we=11,Wi=12,ip=13,So=14,ut=15,qi=16,Io=17,Un=18,Qi=19,sp=20,Mr=21,ar=22,Zi=23,Yi=24,Pe=25,Cl=1,ap=2,zn=7,Fo=9,_t=11;function Yt(e){return Array.isArray(e)&&"object"==typeof e[Cl]}function Bt(e){return Array.isArray(e)&&!0===e[Cl]}function El(e){return 0!=(4&e.flags)}function Yr(e){return e.componentOffset>-1}function ka(e){return 1==(1&e.flags)}function On(e){return!!e.template}function _l(e){return 0!=(512&e[Se])}function Kr(e,n){return e.hasOwnProperty(sr)?e[sr]:null}let wt=null,La=!1;function Cn(e){const n=wt;return wt=e,n}const lp={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function fp(e){if(!Xi(e)||e.dirty){if(!e.producerMustRecompute(e)&&!gp(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function pp(e){e.dirty=!0,function hp(e){if(void 0===e.liveConsumerNode)return;const n=La;La=!0;try{for(const t of e.liveConsumerNode)t.dirty||pp(t)}finally{La=n}}(e),e.consumerMarkedDirty?.(e)}function bl(e){return e&&(e.nextProducerIndex=0),Cn(e)}function Al(e,n){if(Cn(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Xi(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function gp(e){To(e);for(let n=0;n0}function To(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let xp=null;const _p=()=>{},tw=(()=>({...lp,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:_p}))();class nw{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function En(){return wp}function wp(e){return e.type.prototype.ngOnChanges&&(e.setInput=ow),rw}function rw(){const e=Ap(this),n=e?.current;if(n){const t=e.previous;if(t===$n)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function ow(e,n,t,r){const o=this.declaredInputs[t],i=Ap(e)||function iw(e,n){return e[bp]=n}(e,{previous:$n,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new nw(u&&u.currentValue,n,a===$n),e[r]=n}En.ngInherit=!0;const bp="__ngSimpleChanges__";function Ap(e){return e[bp]||null}const Gn=function(e,n,t){},Mp="svg";function Ye(e){for(;Array.isArray(e);)e=e[ot];return e}function Kt(e,n){return Ye(n[e.index])}function Ip(e,n){return e.data[n]}function fn(e,n){const t=n[e];return Yt(t)?t:t[ot]}function Ir(e,n){return null==n?null:e[n]}function Fp(e){e[Io]=0}function dw(e){1024&e[Se]||(e[Se]|=1024,Np(e,1))}function Tp(e){1024&e[Se]&&(e[Se]&=-1025,Np(e,-1))}function Np(e,n){let t=e[Je];if(null===t)return;t[Gi]+=n;let r=t;for(t=t[Je];null!==t&&(1===n&&1===r[Gi]||-1===n&&0===r[Gi]);)t[Gi]+=n,r=t,t=t[Je]}const xe={lFrame:Gp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pp(){return xe.bindingsEnabled}function ee(){return xe.lFrame.lView}function ke(){return xe.lFrame.tView}function bt(){let e=Lp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Lp(){return xe.lFrame.currentTNode}function Wn(e,n){const t=xe.lFrame;t.currentTNode=e,t.isParent=n}function Tl(){return xe.lFrame.isParent}function Oo(){return xe.lFrame.bindingIndex++}function _w(e,n){const t=xe.lFrame;t.bindingIndex=t.bindingRootIndex=e,Rl(n)}function Rl(e){xe.lFrame.currentDirectiveIndex=e}function $p(){return xe.lFrame.currentQueryIndex}function Pl(e){xe.lFrame.currentQueryIndex=e}function bw(e){const n=e[ae];return 2===n.type?n.declTNode:1===n.type?e[It]:null}function Up(e,n,t){if(t&Oe.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&Oe.Host||(o=bw(i),null===o||(i=i[So],10&o.type))););if(null===o)return!1;n=o,e=i}const r=xe.lFrame=zp();return r.currentTNode=n,r.lView=e,!0}function Bl(e){const n=zp(),t=e[ae];xe.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function zp(){const e=xe.lFrame,n=null===e?null:e.child;return null===n?Gp(e):n}function Gp(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 Wp(){const e=xe.lFrame;return xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const qp=Wp;function kl(){const e=Wp();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 Lt(){return xe.lFrame.selectedIndex}function Xr(e){xe.lFrame.selectedIndex=e}function tt(){const e=xe.lFrame;return Ip(e.tView,e.selectedIndex)}function Vt(){xe.lFrame.currentNamespace=Mp}function lr(){!function Iw(){xe.lFrame.currentNamespace=null}()}let Zp=!0;function ja(){return Zp}function Fr(e){Zp=e}function $a(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[u]<0&&(e[Io]+=65536),(a>13>16&&(3&e[Se])===n&&(e[Se]+=8192,Kp(a,i)):Kp(a,i)}const Po=-1;class es{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Hl(e){return e!==Po}function ts(e){return 32767&e}function ns(e,n){let t=function Pw(e){return e>>16}(e),r=n;for(;t>0;)r=r[So],t--;return r}let jl=!0;function Ga(e){const n=jl;return jl=e,n}const Xp=255,Jp=5;let Bw=0;const qn={};function Wa(e,n){const t=eg(e,n);if(-1!==t)return t;const r=n[ae];r.firstCreatePass&&(e.injectorIndex=n.length,$l(r.data,e),$l(n,null),$l(r.blueprint,null));const o=qa(e,n),i=e.injectorIndex;if(Hl(o)){const s=ts(o),a=ns(o,n),u=a[ae].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|u[s+c]}return n[i+8]=o,i}function $l(e,n){e.push(0,0,0,0,0,0,0,0,n)}function eg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function qa(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=ag(o),null===r)return Po;if(t++,o=o[So],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Po}function Ul(e,n,t){!function kw(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ui)&&(r=t[Ui]),null==r&&(r=t[Ui]=Bw++);const o=r&Xp;n.data[e+(o>>Jp)]|=1<=0?n&Xp:$w:n}(t);if("function"==typeof i){if(!Up(n,e,r))return r&Oe.Host?tg(o,0,r):ng(n,t,r,o);try{let s;if(s=i(r),null!=s||r&Oe.Optional)return s;cl()}finally{qp()}}else if("number"==typeof i){let s=null,a=eg(e,n),u=Po,c=r&Oe.Host?n[ut][It]:null;for((-1===a||r&Oe.SkipSelf)&&(u=-1===a?qa(e,n):n[a+8],u!==Po&&sg(r,!1)?(s=n[ae],a=ts(u),n=ns(u,n)):a=-1);-1!==a;){const l=n[ae];if(ig(i,a,l.data)){const d=Vw(a,n,t,s,r,c);if(d!==qn)return d}u=n[a+8],u!==Po&&sg(r,n[ae].data[a+8]===c)&&ig(i,a,n)?(s=l,a=ts(u),n=ns(u,n)):a=-1}}return o}function Vw(e,n,t,r,o,i){const s=n[ae],a=s.data[e+8],l=Qa(a,s,t,null==r?Yr(a)&&jl:r!=s&&0!=(3&a.type),o&Oe.Host&&i===a);return null!==l?Jr(n,s,l,a):qn}function Qa(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,u=e.directiveStart,l=i>>20,v=o?a+l:e.directiveEnd;for(let A=r?a:a+l;A=u&&B.type===t)return A}if(o){const A=s[u];if(A&&On(A)&&A.type===t)return u}return null}function Jr(e,n,t,r){let o=e[t];const i=n.data;if(function Nw(e){return e instanceof es}(o)){const s=o;s.resolving&&function c_(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new oe(-200,`Circular dependency in DI detected for ${e}${t}`)}(function $e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}(i[t]));const a=Ga(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Qt(s.injectImpl):null;Up(e,r,Oe.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function Fw(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=wp(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==c&&Qt(c),Ga(a),s.resolving=!1,qp()}}return o}function ig(e,n,t){return!!(t[n+(e>>Jp)]&1<{const n=e.prototype.constructor,t=n[sr]||zl(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[sr]||zl(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function zl(e){return al(e)?()=>{const n=zl(De(e));return n&&n()}:Kr(e)}function ag(e){const n=e[ae],t=n.type;return 2===t?n.declTNode:1===t?e[It]:null}const ko="__parameters__";function Vo(e,n,t){return ir(()=>{const r=function Gl(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,c,l){const d=u.hasOwnProperty(ko)?u[ko]:Object.defineProperty(u,ko,{value:[]})[ko];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jo(e,n){e.forEach(t=>Array.isArray(t)?jo(t,n):n(t))}function cg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Ya(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function hn(e,n,t){let r=$o(e,n);return r>=0?e[1|r]=t:(r=~r,function Yw(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Wl(e,n){const t=$o(e,n);if(t>=0)return e[1|t]}function $o(e,n){return function lg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<0&&(e[t-1][Rn]=r[Rn]);const i=Ya(e,_t+n);!function R2(e,n){ls(e,n,n[we],2,null,null),n[ot]=null,n[It]=null}(r[ae],r);const s=i[Un];null!==s&&s.detachView(i[ae]),r[Je]=null,r[Rn]=null,r[Se]&=-129}return r}function rd(e,n){if(!(256&n[Se])){const t=n[we];n[Zi]&&mp(n[Zi]),n[Yi]&&mp(n[Yi]),t.destroyNode&&ls(e,n,t,3,null,null),function B2(e){let n=e[Wi];if(!n)return od(e[ae],e);for(;n;){let t=null;if(Yt(n))t=n[Wi];else{const r=n[_t];r&&(t=r)}if(!t){for(;n&&!n[Rn]&&n!==e;)Yt(n)&&od(n[ae],n),n=n[Je];null===n&&(n=e),Yt(n)&&od(n[ae],n),t=n&&n[Rn]}n=t}}(n)}}function od(e,n){if(!(256&n[Se])){n[Se]&=-129,n[Se]|=256,function H2(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[Ao]=null);const o=n[Mr];if(null!==o){n[Mr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Tn.None||i===Tn.Emulated)return null}return Kt(r,t)}}(e,n.parent,t)}function eo(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Bg(e,n,t){e.appendChild(n,t)}function kg(e,n,t,r,o){null!==r?eo(e,n,t,r,o):Bg(e,n,t)}function cu(e,n){return e.parentNode(n)}let sd,ld,hu,Hg=function Vg(e,n,t){return 40&e.type?Kt(e,t):null};function lu(e,n,t,r){const o=id(e,r,n),i=n[we],a=function Lg(e,n,t){return Hg(e,n,t)}(r.parent||n[It],r,n);if(null!=o)if(Array.isArray(t))for(let u=0;ue,createScript:e=>e,createScriptURL:e=>e})}catch{}return hu}()?.createScriptURL(e)||e}class Yg{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${L0})`}}function Nr(e){return e instanceof Yg?e.changingThisBreaksApplicationSecurity:e}function ds(e,n){const t=function nb(e){return e instanceof Yg&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${L0})`)}return t===n}const sb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Qo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Qo||{});function md(e){const n=hs();return n?n.sanitize(Qo.URL,e)||"":ds(e,"URL")?Nr(e):function fd(e){return(e=String(e)).match(sb)?e:"unsafe:"+e}(_e(e))}function rm(e){const n=hs();if(n)return Zg(n.sanitize(Qo.RESOURCE_URL,e)||"");if(ds(e,"ResourceURL"))return Zg(Nr(e));throw new oe(904,!1)}function hs(){const e=ee();return e&&e[Mo].sanitizer}const ps=new ce("ENVIRONMENT_INITIALIZER"),im=new ce("INJECTOR",-1),sm=new ce("INJECTOR_DEF_TYPES");class vd{get(n,t=ji){if(t===ji){const r=new Error(`NullInjectorError: No provider for ${ht(n)}!`);throw r.name="NullInjectorError",r}return t}}function xb(...e){return{\u0275providers:am(0,e),\u0275fromNgModule:!0}}function am(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return jo(n,s=>{const a=s;gu(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&um(o,i),t}function um(e,n){for(let t=0;t{n(i,r)})}}function gu(e,n,t,r){if(!(e=De(e)))return!1;let o=null,i=Ia(e);const s=!i&&Be(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ia(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of u)gu(c,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{jo(i.imports,l=>{gu(l,n,t,r)&&(c||=[],c.push(l))})}finally{}void 0!==c&&um(c,n)}if(!a){const c=Kr(o)||(()=>new o);n({provide:o,useFactory:c,deps:Le},o),n({provide:sm,useValue:o,multi:!0},o),n({provide:ps,useValue:()=>pe(o),multi:!0},o)}const u=i.providers;if(null!=u&&!a){const c=e;xd(u,l=>{n(l,c)})}}}return o!==e&&void 0!==e.providers}function xd(e,n){for(let t of e)ul(t)&&(t=t.\u0275providers),Array.isArray(t)?xd(t,n):n(t)}const Db=Ue({provide:String,useValue:Ue});function Dd(e){return null!==e&&"object"==typeof e&&Db in e}function to(e){return"function"==typeof e}const Cd=new ce("Set Injector scope."),mu={},Eb={};let Ed;function vu(){return void 0===Ed&&(Ed=new vd),Ed}class wn{}class Zo extends wn{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(n,s=>this.processProvider(s)),this.records.set(im,Yo(void 0,this)),o.has("environment")&&this.records.set(wn,Yo(void 0,this));const i=this.records.get(Cd);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(sm.multi,Le,Oe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=wr(this),r=Qt(void 0);try{return n()}finally{wr(t),Qt(r)}}get(n,t=ji,r=Oe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(q0))return n[q0](this);r=Na(r);const i=wr(this),s=Qt(void 0);try{if(!(r&Oe.SkipSelf)){let u=this.records.get(n);if(void 0===u){const c=function Mb(e){return"function"==typeof e||"object"==typeof e&&e instanceof ce}(n)&&Sa(n);u=c&&this.injectableDefInScope(c)?Yo(_d(n),mu):null,this.records.set(n,u)}if(null!=u)return this.hydrate(n,u)}return(r&Oe.Self?vu():this.parent).get(n,t=r&Oe.Optional&&t===ji?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Ta]=a[Ta]||[]).unshift(ht(n)),i)throw a;return function w_(e,n,t,r){const o=e[Ta];throw n[z0]&&o.unshift(n[z0]),e.message=function b_(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ht(n);if(Array.isArray(n))o=n.map(ht).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ht(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(x_,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Ta]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Qt(s),wr(i)}}resolveInjectorInitializers(){const n=wr(this),t=Qt(void 0);try{const o=this.get(ps.multi,Le,Oe.Self);for(const i of o)i()}finally{wr(n),Qt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(ht(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new oe(205,!1)}processProvider(n){let t=to(n=De(n))?n:De(n&&n.provide);const r=function wb(e){return Dd(e)?Yo(void 0,e.useValue):Yo(dm(e),mu)}(n);if(to(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=Yo(void 0,mu,!0),o.factory=()=>vl(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===mu&&(t.value=Eb,t.value=t.factory()),"object"==typeof t.value&&t.value&&function Ab(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=De(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function _d(e){const n=Sa(e),t=null!==n?n.factory:Kr(e);if(null!==t)return t;if(e instanceof ce)throw new oe(204,!1);if(e instanceof Function)return function _b(e){const n=e.length;if(n>0)throw function is(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new oe(204,!1)}function dm(e,n,t){let r;if(to(e)){const o=De(e);return Kr(o)||_d(o)}if(Dd(e))r=()=>De(e.useValue);else if(function lm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...vl(e.deps||[]));else if(function cm(e){return!(!e||!e.useExisting)}(e))r=()=>pe(De(e.useExisting));else{const o=De(e&&(e.useClass||e.provide));if(!function bb(e){return!!e.deps}(e))return Kr(o)||_d(o);r=()=>new o(...vl(e.deps))}return r}function Yo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function wd(e,n){for(const t of e)Array.isArray(t)?wd(t,n):t&&ul(t)?wd(t.\u0275providers,n):n(t)}const yu=new ce("AppId",{providedIn:"root",factory:()=>Sb}),Sb="ng",fm=new ce("Platform Initializer"),Rr=new ce("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),hm=new ce("CSP nonce",{providedIn:"root",factory:()=>function qo(){if(void 0!==ld)return ld;if(typeof document<"u")return document;throw new oe(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pm=(e,n,t)=>null;function Nd(e,n,t=!1){return pm(e,n,t)}class Lb{}class vm{}class Hb{resolveComponentFactory(n){throw function Vb(e){const n=Error(`No component factory found for ${ht(e)}.`);return n.ngComponent=e,n}(n)}}let wu=(()=>{class e{static#e=this.NULL=new Hb}return e})();function jb(){return Jo(bt(),ee())}function Jo(e,n){return new Jt(Kt(e,n))}let Jt=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=jb}return e})();function $b(e){return e instanceof Jt?e.nativeElement:e}class xm{}let fr=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Ub(){const e=ee(),t=fn(bt().index,e);return(Yt(t)?t:e)[we]}()}return e})(),zb=(()=>{class e{static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>null})}return e})();class vs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Gb=new vs("16.2.11"),Pd={};function _m(e,n=null,t=null,r){const o=wm(e,n,t,r);return o.resolveInjectorInitializers(),o}function wm(e,n=null,t=null,r,o=new Set){const i=[t||Le,xb(e)];return r=r||("object"==typeof e?void 0:ht(e)),new Zo(i,n||vu(),r||null,o)}let en=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ji;static#t=this.NULL=new vd;static create(t,r){if(Array.isArray(t))return _m({name:""},r,t,"");{const o=t.name??"";return _m({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=fe({token:e,providedIn:"any",factory:()=>pe(im)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function kd(e){return e.ngOriginalError}class hr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&kd(n);for(;t&&kd(t);)t=kd(t);return t||null}}function Vd(e){return n=>{setTimeout(e,void 0,n)}}const it=class Xb extends K{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const u=n;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=Vd(i),o&&(o=Vd(o)),s&&(s=Vd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof b&&n.add(a),a}};function Am(...e){}class We{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new it(!1),this.onMicrotaskEmpty=new it(!1),this.onStable=new it(!1),this.onError=new it(!1),typeof Zone>"u")throw new oe(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Jb(){const e="function"==typeof Ze.requestAnimationFrame;let n=Ze[e?"requestAnimationFrame":"setTimeout"],t=Ze[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function nA(e){const n=()=>{!function tA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ze,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jd(e),e.isCheckStableRunning=!0,Hd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function oA(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return Mm(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),Sm(e)}},onInvoke:(t,r,o,i,s,a,u)=>{try{return Mm(e),t.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&n(),Sm(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,jd(e),Hd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!We.isInAngularZone())throw new oe(909,!1)}static assertNotInAngularZone(){if(We.isInAngularZone())throw new oe(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,eA,Am,Am);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const eA={};function Hd(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 jd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Mm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Sm(e){e._nesting--,Hd(e)}class rA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new it,this.onMicrotaskEmpty=new it,this.onStable=new it,this.onError=new it}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Im=new ce("",{providedIn:"root",factory:Fm});function Fm(){const e=ue(We);let n=!0;return ol(new se(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),new se(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{We.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(k0()))}function pr(e){return e instanceof Function?e():e}let $d=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})();function ys(e){for(;e;){e[Se]|=64;const n=us(e);if(_l(e)&&!n)return e;e=n}return null}const Pm=new ce("",{providedIn:"root",factory:()=>!1});let Au=null;function Vm(e,n){return e[n]??$m()}function Hm(e,n){const t=$m();t.producerNode?.length&&(e[n]=Au,t.lView=e,Au=jm())}const pA={...lp,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ys(e.lView)},lView:null};function jm(){return Object.create(pA)}function $m(){return Au??=jm(),Au}const Ae={};function tn(e){Um(ke(),ee(),Lt()+e,!1)}function Um(e,n,t,r){if(!r)if(3==(3&n[Se])){const i=e.preOrderCheckHooks;null!==i&&Ua(n,i,t)}else{const i=e.preOrderHooks;null!==i&&za(n,i,0,t)}Xr(t)}function ne(e,n=Oe.Default){const t=ee();return null===t?pe(e,n):rg(bt(),t,De(e),n)}function Mu(e,n,t,r,o,i,s,a,u,c,l){const d=n.blueprint.slice();return d[ot]=o,d[Se]=140|r,(null!==c||e&&2048&e[Se])&&(d[Se]|=2048),Fp(d),d[Je]=d[So]=e,d[at]=t,d[Mo]=s||e&&e[Mo],d[we]=a||e&&e[we],d[Ar]=u||e&&e[Ar]||null,d[It]=i,d[Qi]=function C2(){return D2++}(),d[ar]=l,d[sp]=c,d[ut]=2==n.type?e[ut]:d,d}function ni(e,n,t,r,o){let i=e.data[n];if(null===i)i=function Ud(e,n,t,r,o){const i=Lp(),s=Tl(),u=e.data[n]=function EA(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return function Ro(){return null!==xe.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,n,t,r,o),function Ew(){return xe.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const s=function Ji(){const e=xe.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Wn(i,!0),i}function xs(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;iPe&&Um(e,n,Pe,!1),Gn(a?2:0,o);const c=a?i:null,l=bl(c);try{null!==c&&(c.dirty=!1),t(r,o)}finally{Al(c,l)}}finally{a&&null===n[Zi]&&Hm(n,Zi),Xr(s),Gn(a?3:1,o)}}function zd(e,n,t){if(El(n)){const r=Cn(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function Qm(e,n,t,r){for(let o in e)if(e.hasOwnProperty(o)){t=null===t?{}:t;const i=e[o];null===r?Zm(t,n,o,i):r.hasOwnProperty(o)&&Zm(t,n,r[o],i)}return t}function Zm(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function Qd(e,n,t,r){if(Pp()){const o=null===r?null:{"":-1},i=function TA(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,xs(e,t,o.hostVars,Ae),o)}function Qn(e,n,t,r,o,i){const s=Kt(e,n);!function Yd(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?_e(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[we],s,i,e.value,t,r,o)}function kA(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,o){const i=typeof Zone>"u"?null:Zone.current,s=function ew(e,n,t){const r=Object.create(tw);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const o=s=>{r.cleanupFn=s};return r.ref={notify:()=>pp(r),run:()=>{if(r.dirty=!1,r.hasRun&&!gp(r))return;r.hasRun=!0;const s=bl(r);try{r.cleanupFn(),r.cleanupFn=_p,r.fn(o)}finally{Al(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new e})}return e})();function Iu(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0){uv(e,1);const o=t.components;null!==o&&lv(e,o,1)}}function lv(e,n,t){for(let r=0;r-1&&(uu(n,r),Ya(t,r))}this._attachedToViewContainer=!1}rd(this._lView[ae],this._lView)}onDestroy(n){!function Rp(e,n){if(256==(256&e[Se]))throw new oe(911,!1);null===e[Mr]&&(e[Mr]=[]),e[Mr].push(n)}(this._lView,n)}markForCheck(){ys(this._cdRefInjectingView||this._lView)}detach(){this._lView[Se]&=-129}reattach(){this._lView[Se]|=128}detectChanges(){Fu(this._lView[ae],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new oe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function P2(e,n){ls(e,n,n[we],2,null,null)}(this._lView[ae],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new oe(902,!1);this._appRef=n}}class WA extends Cs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Fu(n[ae],n,n[at],!1)}checkNoChanges(){}get context(){return null}}class dv extends wu{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=Be(n);return new Es(t,this.ngModule)}}function fv(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class QA{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Na(r);const o=this.injector.get(n,Pd,r);return o!==Pd||t===Pd?o:this.parentInjector.get(n,t,r)}}class Es extends vm{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=fv(n.inputs);if(null!==t)for(const o of r)t.hasOwnProperty(o.propName)&&(o.transform=t[o.propName]);return r}get outputs(){return fv(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function P_(e){return e.map(O_).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof wn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new QA(n,i):n,a=s.get(xm,null);if(null===a)throw new oe(407,!1);const d={rendererFactory:a,sanitizer:s.get(zb,null),effectManager:s.get(iv,null),afterRenderEventManager:s.get($d,null)},v=a.createRenderer(null,this.componentDef),A=this.componentDef.selectors[0][0]||"div",B=r?function vA(e,n,t,r){const i=r.get(Pm,!1)||t===Tn.ShadowDom,s=e.selectRootElement(n,i);return function yA(e){qm(e)}(s),s}(v,r,this.componentDef.encapsulation,s):au(v,A,function qA(e){const n=e.toLowerCase();return"svg"===n?Mp:"math"===n?"math":null}(A)),ie=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let G=null;null!==B&&(G=Nd(B,s,!0));const le=qd(0,null,null,1,0,null,null,null,null,null,null),he=Mu(null,le,null,ie,null,null,d,v,s,null,G);let be,an;Bl(he);try{const _r=this.componentDef;let Ri,I0=null;_r.findHostDirectiveDefs?(Ri=[],I0=new Map,_r.findHostDirectiveDefs(_r,Ri,I0),Ri.push(_r)):Ri=[_r];const ZP=function YA(e,n){const t=e[ae],r=Pe;return e[r]=n,ni(t,r,2,"#host",null)}(he,B),YP=function KA(e,n,t,r,o,i,s){const a=o[ae];!function XA(e,n,t,r){for(const o of e)n.mergedAttrs=zi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(Iu(n,n.mergedAttrs,!0),null!==t&&Wg(r,t,n))}(r,e,n,s);let u=null;null!==n&&(u=Nd(n,o[Ar]));const c=i.rendererFactory.createRenderer(n,t);let l=16;t.signals?l=4096:t.onPush&&(l=64);const d=Mu(o,Wm(t),null,l,o[e.index],e,i,c,null,null,u);return a.firstCreatePass&&Zd(a,e,r.length-1),Su(o,d),o[e.index]=d}(ZP,B,_r,Ri,he,d,v);an=Ip(le,Pe),B&&function eM(e,n,t,r){if(r)Dl(e,t,["ng-version",Gb.full]);else{const{attrs:o,classes:i}=function B_(e){const n=[],t=[];let r=1,o=2;for(;r0&&Gg(e,t,i.join(" "))}}(v,_r,B,r),void 0!==t&&function tM(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=zi(o.hostAttrs,t=zi(t,o.hostAttrs))}}(r)}function Tu(e){return e===$n?{}:e===Le?[]:e}function oM(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function iM(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function sM(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function vv(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];Array.isArray(o)&&o[2]&&(t[r]=o[2])}e.inputTransforms=t}function Tt(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Yn(e,n,t,r){const o=ee();return Tt(o,Oo(),n)&&(ke(),Qn(tt(),o,e,n,t,r)),Yn}function fi(e,n,t,r,o,i,s,a){const u=ee(),c=ke(),l=e+Pe,d=c.firstCreatePass?function TM(e,n,t,r,o,i,s,a,u){const c=n.consts,l=ni(n,e,4,s||null,Ir(c,a));Qd(n,t,l,Ir(c,u)),$a(n,l);const d=l.tView=qd(2,l,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,l),d.queries=n.queries.embeddedTView(l)),l}(l,c,u,n,t,r,o,i,s):c.data[l];Wn(d,!1);const v=Fv(c,u,d,e);ja()&&lu(c,u,v,d),Ft(v,u),Su(u,u[l]=Jm(v,u,v,d)),ka(d)&&Gd(c,u,d),null!=s&&Wd(u,d,a)}let Fv=function Tv(e,n,t,r){return Fr(!0),n[we].createComment("")};function uf(e){return function No(e,n){return e[n]}(function Cw(){return xe.lFrame.contextLView}(),Pe+e)}function gn(e,n,t){const r=ee();return Tt(r,Oo(),n)&&function pn(e,n,t,r,o,i,s,a){const u=Kt(n,t);let l,c=n.inputs;!a&&null!=c&&(l=c[r])?(Xd(e,t,l,r,o),Yr(n)&&function bA(e,n){const t=fn(n,e);16&t[Se]||(t[Se]|=64)}(t,n.index)):3&n.type&&(r=function wA(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(u,r,o))}(ke(),tt(),r,e,n,r[we],t,!1),gn}function cf(e,n,t,r,o){const s=o?"class":"style";Xd(e,t,n.inputs[s],s,r)}function Ne(e,n,t,r){const o=ee(),i=ke(),s=Pe+e,a=o[we],u=i.firstCreatePass?function PM(e,n,t,r,o,i){const s=n.consts,u=ni(n,e,2,r,Ir(s,o));return Qd(n,t,u,Ir(s,i)),null!==u.attrs&&Iu(u,u.attrs,!1),null!==u.mergedAttrs&&Iu(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(s,i,o,n,t,r):i.data[s],c=Nv(i,o,u,a,n,e);o[s]=c;const l=ka(u);return Wn(u,!0),Wg(a,c,u),32!=(32&u.flags)&&ja()&&lu(i,o,c,u),0===function hw(){return xe.lFrame.elementDepthCount}()&&Ft(c,o),function pw(){xe.lFrame.elementDepthCount++}(),l&&(Gd(i,o,u),zd(i,u,o)),null!==r&&Wd(o,u),Ne}function Re(){let e=bt();Tl()?function Nl(){xe.lFrame.isParent=!1}():(e=e.parent,Wn(e,!1));const n=e;(function mw(e){return xe.skipHydrationRootTNode===e})(n)&&function Dw(){xe.skipHydrationRootTNode=null}(),function gw(){xe.lFrame.elementDepthCount--}();const t=ke();return t.firstCreatePass&&($a(t,e),El(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function Rw(e){return 0!=(8&e.flags)}(n)&&cf(t,n,ee(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Ow(e){return 0!=(16&e.flags)}(n)&&cf(t,n,ee(),n.stylesWithoutHost,!1),Re}function nt(e,n,t,r){return Ne(e,n,t,r),Re(),nt}let Nv=(e,n,t,r,o,i)=>(Fr(!0),au(r,o,function Qp(){return xe.lFrame.currentNamespace}()));function Ms(e){return!!e&&"function"==typeof e.then}function Bv(e){return!!e&&"function"==typeof e.subscribe}function xt(e,n,t,r){const o=ee(),i=ke(),s=bt();return function Lv(e,n,t,r,o,i,s){const a=ka(r),c=e.firstCreatePass&&nv(e),l=n[at],d=tv(n);let v=!0;if(3&r.type||s){const z=Kt(r,n),X=s?s(z):z,ie=d.length,G=s?he=>s(Ye(he[r.index])):r.index;let le=null;if(!s&&a&&(le=function jM(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==le)(le.__ngLastListenerFn__||le).__ngNextListenerFn__=i,le.__ngLastListenerFn__=i,v=!1;else{i=Hv(r,n,l,i,!1);const he=t.listen(X,o,i);d.push(i,he),c&&c.push(o,G,ie,ie+1)}}else i=Hv(r,n,l,i,!1);const A=r.outputs;let B;if(v&&null!==A&&(B=A[o])){const z=B.length;if(z)for(let X=0;X-1?fn(e.index,n):n);let u=Vv(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)u=Vv(n,t,c,s)&&u,c=c.__ngNextListenerFn__;return o&&!1===u&&s.preventDefault(),u}}function jv(e=1){return function Aw(e){return(xe.lFrame.contextLView=function Mw(e,n){for(;e>0;)n=n[So],e--;return n}(e,xe.lFrame.contextLView))[at]}(e)}function ku(e,n){return e<<17|n<<2}function Or(e){return e>>17&32767}function hf(e){return 2|e}function ro(e){return(131068&e)>>2}function pf(e,n){return-131069&e|n<<2}function gf(e){return 1|e}function Kv(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?Or(i):ro(i),u=!1;for(;0!==a&&(!1===u||s);){const l=e[a+1];YM(e[a],n)&&(u=!0,e[a+1]=r?gf(l):hf(l)),a=r?Or(l):ro(l)}u&&(e[t+1]=r?hf(i):gf(i))}function YM(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&$o(e,n)>=0}function pi(e,n){return function Pn(e,n,t,r){const o=ee(),i=ke(),s=function cr(e){const n=xe.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}(2);i.firstUpdatePass&&function sy(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Lt()],s=function iy(e,n){return n>=e.expandoStartIndex}(e,t);(function ly(e,n){return 0!=(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function iS(e,n,t,r){const o=function Ol(e){const n=xe.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Ss(t=mf(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=mf(o,e,n,t,r),null===i){let u=function sS(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ro(r))return e[Or(r)]}(e,n,r);void 0!==u&&Array.isArray(u)&&(u=mf(null,e,n,u[1],r),u=Ss(u,n.attrs,r),function aS(e,n,t,r){e[Or(t?n.classBindings:n.styleBindings)]=r}(e,n,r,u))}else i=function uS(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):l=t,o)if(0!==u){const v=Or(e[a+1]);e[r+1]=ku(v,a),0!==v&&(e[v+1]=pf(e[v+1],r)),e[a+1]=function WM(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ku(a,0),0!==a&&(e[a+1]=pf(e[a+1],r)),a=r;else e[r+1]=ku(u,0),0===a?a=r:e[u+1]=pf(e[u+1],r),u=r;c&&(e[r+1]=hf(e[r+1])),Kv(e,l,r,!0),Kv(e,l,r,!1),function ZM(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&$o(i,n)>=0&&(t[r+1]=gf(t[r+1]))}(n,l,e,r,i),s=ku(a,u),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==Ae&&Tt(o,s,n)&&function uy(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const u=e.data,c=u[a+1],l=function qM(e){return 1==(1&e)}(c)?cy(u,n,t,o,ro(c),s):void 0;Lu(l)||(Lu(i)||function GM(e){return 2==(2&e)}(c)&&(i=cy(u,null,t,o,a,s)),function G2(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:Tr.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Tr.Important),e.setStyle(t,r,o,i))}}(r,s,function Ha(e,n){return Ye(n[e])}(Lt(),t),o,i))}(i,i.data[Lt()],o,o[we],e,o[s+1]=function fS(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=ht(Nr(e)))),e}(n,t),r,s)}(e,n,null,!0),pi}function mf(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=null===l;let v=t[o+1];v===Ae&&(v=d?Le:void 0);let A=d?Wl(v,r):l===r?v:void 0;if(c&&!Lu(A)&&(A=Wl(u,r)),Lu(A)&&(a=A,s))return a;const B=e[o+1];o=s?Or(B):ro(B)}if(null!==n){let u=i?n.residualClasses:n.residualStyles;null!=u&&(a=Wl(u,r))}return a}function Lu(e){return void 0!==e}function Dt(e,n=""){const t=ee(),r=ke(),o=e+Pe,i=r.firstCreatePass?ni(r,o,1,n,null):r.data[o],s=dy(r,t,i,n,e);t[o]=s,ja()&&lu(r,t,s,i),Wn(i,!1)}let dy=(e,n,t,r,o)=>(Fr(!0),function su(e,n){return e.createText(n)}(n[we],r));const mi="en-US";let Oy=mi;function Df(e,n,t,r,o){if(e=De(e),Array.isArray(e))for(let i=0;i>20;if(to(e)||!e.multi){const A=new es(c,o,ne),B=Ef(u,n,o?l:l+v,d);-1===B?(Ul(Wa(a,s),i,u),Cf(i,e,n.length),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(A),s.push(A)):(t[B]=A,s[B]=A)}else{const A=Ef(u,n,l+v,d),B=Ef(u,n,l,l+v),X=B>=0&&t[B];if(o&&!X||!o&&!(A>=0&&t[A])){Ul(Wa(a,s),i,u);const ie=function RI(e,n,t,r,o){const i=new es(e,t,ne);return i.multi=[],i.index=n,i.componentProviders=0,i1(i,o,r&&!t),i}(o?NI:TI,t.length,o,r,c);!o&&X&&(t[B].providerFactory=ie),Cf(i,e,n.length,0),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(ie),s.push(ie)}else Cf(i,e,A>-1?A:B,i1(t[o?B:A],c,!o&&r));!o&&r&&X&&t[B].componentProviders++}}}function Cf(e,n,t,r){const o=to(n),i=function Cb(e){return!!e.useClass}(n);if(o||i){const u=(i?De(n.useClass):n).prototype.ngOnDestroy;if(u){const c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const l=c.indexOf(t);-1===l?c.push(t,[r,u]):c[l+1].push(r,u)}else c.push(t,u)}}}function i1(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Ef(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function FI(e,n,t){const r=ke();if(r.firstCreatePass){const o=On(e);Df(t,r.data,r.blueprint,o,!0),Df(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class io{}class s1{}class wf extends io{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new dv(this);const o=dn(n);this._bootstrapComponents=pr(o.bootstrap),this._r3Injector=wm(n,t,[{provide:io,useValue:this},{provide:wu,useValue:this.componentFactoryResolver},...r],ht(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class bf extends s1{constructor(n){super(),this.moduleType=n}create(n){return new wf(this.moduleType,n,[])}}class a1 extends io{constructor(n){super(),this.componentFactoryResolver=new dv(this),this.instance=null;const t=new Zo([...n.providers,{provide:io,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],n.parent||vu(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Af(e,n,t=null){return new a1({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let BI=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=am(0,t.type),o=r.length>0?Af([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=fe({token:e,providedIn:"environment",factory:()=>new e(pe(wn))})}return e})();function u1(e){e.getStandaloneInjector=n=>n.get(BI).getOrCreateStandaloneInjector(e)}function Uu(e,n,t){const r=function kt(){const e=xe.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}()+e,o=ee();return o[r]===Ae?function Zn(e,n,t){return e[n]=t}(o,r,t?n.call(t):n()):function _s(e,n){return e[n]}(o,r)}function aF(){return this._results[Symbol.iterator]()}class Sf{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new it)}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=Sf.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=aF)}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 r=this;r.dirty=!1;const o=function _n(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Qw(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[o-1][Rn]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=fF}return e})();const lF=mr,dF=class extends lF{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function uF(e,n,t,r){const o=n.tView,a=Mu(e,o,t,4096&e[Se]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[qi]=e[n.index];const c=e[Un];return null!==c&&(a[Un]=c.createEmbeddedView(o)),Jd(o,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new Cs(o)}};function fF(){return zu(bt(),ee())}function zu(e,n){return 4&e.type?new dF(n,e,Jo(e,n)):null}let kn=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=yF}return e})();function yF(){return A1(bt(),ee())}const xF=kn,w1=class extends xF{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Jo(this._hostTNode,this._hostLView)}get injector(){return new Ht(this._hostTNode,this._hostLView)}get parentInjector(){const n=qa(this._hostTNode,this._hostLView);if(Hl(n)){const t=ns(n,this._hostLView),r=ts(n);return new Ht(t[ae].data[r+8],t)}return new Ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=b1(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-_t}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,t,r,o,i){const s=n&&!function os(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const z=t||{};a=z.index,r=z.injector,o=z.projectableNodes,i=z.environmentInjector||z.ngModuleRef}const u=s?n:new Es(Be(n)),c=r||this.parentInjector;if(!i&&null==u.ngModule){const X=(s?c:this.parentInjector).get(wn,null);X&&(i=X)}Be(u.componentType??{});const A=u.create(c,o,null,i);return this.insertImpl(A.hostView,a,false),A}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const o=n._lView;if(function lw(e){return Bt(e[Je])}(o)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=o[Je],l=new w1(c,c[It],c[Je]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return cF(a,o,s,!r),n.attachToViewContainerRef(),cg(If(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=b1(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=uu(this._lContainer,t);r&&(Ya(If(this._lContainer),t),rd(r[ae],r))}detach(n){const t=this._adjustIndex(n,-1),r=uu(this._lContainer,t);return r&&null!=Ya(If(this._lContainer),t)?new Cs(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function b1(e){return e[8]}function If(e){return e[8]||(e[8]=[])}function A1(e,n){let t;const r=n[e.index];return Bt(r)?t=r:(t=Jm(r,n,null,e),n[e.index]=t,Su(n,t)),M1(t,n,e,r),new w1(t,e,n)}let M1=function S1(e,n,t,r){if(e[zn])return;let o;o=8&t.type?Ye(r):function DF(e,n){const t=e[we],r=t.createComment(""),o=Kt(n,e);return eo(t,cu(t,o),r,function $2(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[zn]=o};class Ff{constructor(n){this.queryList=n,this.matches=null}clone(){return new Ff(this.queryList)}setDirty(){this.queryList.setDirty()}}class Tf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{const c=i[a+1],l=n[-u];for(let d=_t;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=ue(qu,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(Ms(i))t.push(i);else if(Bv(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),X1=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const vr=new ce("LocaleId",{providedIn:"root",factory:()=>ue(vr,Oe.Optional|Oe.SkipSelf)||function YF(){return typeof $localize<"u"&&$localize.locale||mi}()});let J1=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new xn(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class JF{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let ex=(()=>{class e{compileModuleSync(t){return new bf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=pr(dn(t).declarations).reduce((s,a)=>{const u=Be(a);return u&&s.push(new Es(u)),s},[]);return new JF(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ox=new ce(""),Zu=new ce("");let qf,Gf=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,qf||(function CT(e){qf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{We.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.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,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!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,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(pe(We),pe(Wf),pe(Zu))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),Wf=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}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,r=!0){return qf?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Pr=null;const ix=new ce("AllowMultipleToken"),Qf=new ce("PlatformDestroyListeners"),Zf=new ce("appBootstrapListener");class ax{constructor(n,t){this.name=n,this.token=t}}function cx(e,n,t=[]){const r=`Platform: ${n}`,o=new ce(r);return(i=[])=>{let s=Yf();if(!s||s.injector.get(ix,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function wT(e){if(Pr&&!Pr.get(ix,!1))throw new oe(400,!1);(function sx(){!function Z_(e){xp=e}(()=>{throw new oe(600,!1)})})(),Pr=e;const n=e.get(dx);(function ux(e){e.get(fm,null)?.forEach(t=>t())})(e)}(function lx(e=[],n){return en.create({name:n,providers:[{provide:Cd,useValue:"platform"},{provide:Qf,useValue:new Set([()=>Pr=null])},...e]})}(a,r))}return function AT(e){const n=Yf();if(!n)throw new oe(401,!1);return n}()}}function Yf(){return Pr?.get(dx)??null}let dx=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function MT(e="zone.js",n){return"noop"===e?new rA:"zone.js"===e?new We(n):e}(r?.ngZone,function fx(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function PI(e,n,t){return new wf(e,n,t)}(t.moduleType,this.injector,function vx(e){return[{provide:We,useFactory:e},{provide:ps,multi:!0,useFactory:()=>{const n=ue(IT,{optional:!0});return()=>n.initialize()}},{provide:mx,useFactory:ST},{provide:Im,useFactory:Fm}]}(()=>o)),s=i.injector.get(hr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{Yu(this._modules,i),a.unsubscribe()})}),function hx(e,n,t){try{const r=t();return Ms(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get($f);return a.runInitializers(),a.donePromise.then(()=>(function Py(e){Dn(e,"Expected localeId to be defined"),"string"==typeof e&&(Oy=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(vr,mi)||mi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=px({},r);return function ET(e,n,t){const r=new bf(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(so);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new oe(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new oe(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(Qf,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(pe(en))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function px(e,n){return Array.isArray(n)?n.reduce(px,e):{...e,...n}}let so=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ue(mx),this.zoneIsStable=ue(Im),this.componentTypes=[],this.components=[],this.isStable=ue(J1).hasPendingTasks.pipe(qt(t=>t?ve(!1):this.zoneIsStable),function s_(e,n=Q){return e=e??a_,ge((t,r)=>{let o,i=!0;t.subscribe(Te(r,s=>{const a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}(),k0()),this._injector=ue(wn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof vm;if(!this._injector.get($f).done)throw!o&&function bo(e){const n=Be(e)||Et(e)||Pt(e);return null!==n&&n.standalone}(t),new oe(405,!1);let s;s=o?t:this._injector.get(wu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function _T(e){return e.isBoundToModule}(s)?void 0:this._injector.get(io),c=s.create(en.NULL,[],r||s.selector,a),l=c.location.nativeElement,d=c.injector.get(ox,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Yu(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new oe(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Yu(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Zf,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Yu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new oe(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yu(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const mx=new ce("",{providedIn:"root",factory:()=>ue(hr).handleError.bind(void 0)});function ST(){const e=ue(We),n=ue(hr);return t=>e.runOutsideAngular(()=>n.handleError(t))}let IT=(()=>{class e{constructor(){this.zone=ue(We),this.applicationRef=ue(so)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Ku=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=NT}return e})();function NT(e){return function RT(e,n,t){if(Yr(e)&&!t){const r=fn(e.index,n);return new Cs(r,r)}return 47&e.type?new Cs(n[ut],n):null}(bt(),ee(),16==(16&e))}const WT=cx(null,"core",[]);let qT=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(pe(so))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();function xi(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let nh=null;function Br(){return nh}class a4{}const An=new ce("DocumentToken");let rh=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(c4)},providedIn:"platform"})}return e})();const u4=new ce("Location Initialized");let c4=(()=>{class e extends rh{constructor(){super(),this._doc=ue(An),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Br().getBaseHref(this._doc)}onPopState(t){const r=Br().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Br().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.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,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function oh(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 Px(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 yr(e){return e&&"?"!==e[0]?"?"+e:e}let uo=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(kx)},providedIn:"root"})}return e})();const Bx=new ce("appBaseHref");let kx=(()=>{class e extends uo{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??ue(An).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return oh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+yr(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+yr(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+yr(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(rh),pe(Bx,8))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),l4=(()=>{class e extends uo{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}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 r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=oh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+yr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+yr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(rh),pe(Bx,8))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),ih=(()=>{class e{constructor(t){this._subject=new it,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function h4(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(Px(Lx(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+yr(r))}normalize(t){return e.stripTrailingSlash(function f4(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Lx(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yr(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static#e=this.normalizeQueryParams=yr;static#t=this.joinWithSlash=oh;static#n=this.stripTrailingSlash=Px;static#r=this.\u0275fac=function(r){return new(r||e)(pe(uo))};static#o=this.\u0275prov=fe({token:e,factory:function(){return function d4(){return new ih(pe(uo))}()},providedIn:"root"})}return e})();function Lx(e){return e.replace(/\/index.html$/,"")}let fc=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new n8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Yx("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Yx("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,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(ne(kn),ne(mr))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class n8{constructor(){this.$implicit=null,this.ngIf=null}}function Yx(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ht(n)}'.`)}let co=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();const Jx="browser";function eD(e){return e===Jx}function tD(e){return"server"===e}let F8=(()=>{class e{static#e=this.\u0275prov=fe({token:e,providedIn:"root",factory:()=>new T8(pe(An),window)})}return e})();class T8{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 N8(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class nN extends a4{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Eh extends nN{static makeCurrent(){!function s4(e){nh||(nh=e)}(new Eh)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}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 rN(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}();return null==t?null:function oN(e){gc=gc||document.createElement("a"),gc.setAttribute("href",e);const n=gc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return function K4(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}(document.cookie,n)}}let gc,$s=null,sN=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const _h=new ce("EventManagerPlugins");let sD=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new oe(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(pe(_h),pe(We))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();class aD{constructor(n){this._doc=n}}const wh="ng-app-id";let uD=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=tD(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${wh}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(wh),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(wh,this.appId),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r);t.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An),pe(yu),pe(hm,8),pe(Rr))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const bh={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/"},Ah=/%COMP%/g,lN=new ce("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function lD(e,n){return n.map(t=>t.replace(Ah,e))}let dD=(()=>{class e{constructor(t,r,o,i,s,a,u,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=tD(a),this.defaultRenderer=new Mh(t,s,u,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Tn.ShadowDom&&(r={...r,encapsulation:Tn.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof hD?o.applyToHost(t):o instanceof Sh&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Tn.Emulated:i=new hD(u,c,r,this.appId,l,s,a,d);break;case Tn.ShadowDom:return new pN(u,c,t,r,s,a,this.nonce,d);default:i=new Sh(u,c,r,l,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(pe(sD),pe(uD),pe(yu),pe(lN),pe(An),pe(Rr),pe(We),pe(hm))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();class Mh{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(bh[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(fD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(fD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new oe(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=bh[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=bh[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Tr.DashCase|Tr.Important)?n.style.setProperty(t,r,o&Tr.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Tr.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Br().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function fD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class pN extends Mh{constructor(n,t,r,o,i,s,a,u){super(n,i,s,u),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=lD(o.id,o.styles);for(const l of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Sh extends Mh{constructor(n,t,r,o,i,s,a,u){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=u?lD(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class hD extends Sh{constructor(n,t,r,o,i,s,a,u){const c=o+"-"+r.id;super(n,t,r,i,s,a,u,c),this.contentAttr=function dN(e){return"_ngcontent-%COMP%".replace(Ah,e)}(c),this.hostAttr=function fN(e){return"_nghost-%COMP%".replace(Ah,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let gN=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const pD=["alt","control","meta","shift"],mN={"\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"},vN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let yN=(()=>{class e extends aD{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Br().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),pD.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,r){let o=mN[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),pD.forEach(s=>{s!==o&&(0,vN[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const EN=cx(WT,"browser",[{provide:Rr,useValue:Jx},{provide:fm,useValue:function xN(){Eh.makeCurrent()},multi:!0},{provide:An,useFactory:function CN(){return function Y2(e){ld=e}(document),document},deps:[]}]),_N=new ce(""),vD=[{provide:Zu,useClass:class iN{addToWindow(n){Ze.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new oe(5103,!1);return i},Ze.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ze.getAllAngularRootElements=()=>n.getAllRootElements(),Ze.frameworkStabilizers||(Ze.frameworkStabilizers=[]),Ze.frameworkStabilizers.push(r=>{const o=Ze.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(u=>{u.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Br().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:ox,useClass:Gf,deps:[We,Wf,Zu]},{provide:Gf,useClass:Gf,deps:[We,Wf,Zu]}],yD=[{provide:Cd,useValue:"root"},{provide:hr,useFactory:function DN(){return new hr},deps:[]},{provide:_h,useClass:gN,multi:!0,deps:[An,We,Rr]},{provide:_h,useClass:yN,multi:!0,deps:[An]},dD,uD,sD,{provide:xm,useExisting:dD},{provide:class R8{},useClass:sN,deps:[]},[]];let wN=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:yu,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(pe(_N,12))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[...yD,...vD],imports:[co,qT]})}return e})(),xD=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(pe(An))};static#t=this.\u0275prov=fe({token:e,factory:function(r){let o=null;return o=r?new r:function AN(){return new xD(pe(An))}(),o},providedIn:"root"})}return e})();typeof window<"u"&&window;const{isArray:NN}=Array,{getPrototypeOf:RN,prototype:ON,keys:PN}=Object;function _D(e){if(1===e.length){const n=e[0];if(NN(n))return{args:n,keys:null};if(function BN(e){return e&&"object"==typeof e&&RN(e)===ON}(n)){const t=PN(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:kN}=Array;function Fh(e){return me(n=>function LN(e,n){return kN(n)?e(...n):e(n)}(e,n))}function wD(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function Th(...e){const n=Hi(e),t=R0(e),{args:r,keys:o}=_D(e);if(0===r.length)return vt([],n);const i=new se(function VN(e,n,t=Q){return r=>{bD(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const c=vt(e[u],n);let l=!1;c.subscribe(Te(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>wD(o,s):Q));return t?i.pipe(Fh(t)):i}function bD(e,n,t){e?or(t,e,n):n()}const mc=f(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Us(...e){return function HN(){return _o(1)}()(vt(e,Hi(e)))}function vc(e){return new se(n=>{mt(e()).subscribe(n)})}function Ci(e,n){const t=p(e)?e:()=>e,r=o=>o.error(t());return new se(n?o=>n.schedule(r,0,o):r)}function Nh(){return ge((e,n)=>{let t=null;e._refCount++;const r=Te(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class Rh extends se{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ve(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new b;const t=this.getSubject();n.add(this.source.subscribe(Te(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=b.EMPTY)}return n}refCount(){return Nh()(this)}}function on(e){return e<=0?()=>jn:ge((n,t)=>{let r=0;n.subscribe(Te(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function sn(e,n){return ge((t,r)=>{let o=0;t.subscribe(Te(r,i=>e.call(n,i,o++)&&r.next(i)))})}function yc(e){return ge((n,t)=>{let r=!1;n.subscribe(Te(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function AD(e=$N){return ge((n,t)=>{let r=!1;n.subscribe(Te(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function $N(){return new mc}function lo(e,n){const t=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Q,on(1),t?yc(n):AD(()=>new mc))}function zs(e,n){return p(n)?ft(e,n,1):ft(e,1)}function Mt(e,n,t){const r=p(e)||n||t?{next:e,error:n,complete:t}:e;return r?ge((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Te(i,u=>{var c;null===(c=r.next)||void 0===c||c.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,u),i.error(u)},()=>{var u,c;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Q}function fo(e){return ge((n,t)=>{let i,r=null,o=!1;r=n.subscribe(Te(t,void 0,void 0,s=>{i=mt(e(s,fo(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function Oh(e){return e<=0?()=>jn:ge((n,t)=>{let r=[];n.subscribe(Te(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function MD(e){return me(()=>e)}function Ph(e){return ge((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Ie="primary",Gs=Symbol("RouteTitle");class qN{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 Ei(e){return new qN(e)}function QN(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function ID(e){return e.length>0?e[e.length-1]:null}function Lr(e){return function TN(e){return!!e&&(e instanceof se||p(e.lift)&&p(e.subscribe))}(e)?e:Ms(e)?vt(Promise.resolve(e)):ve(e)}const YN={exact:function ND(e,n,t){if(!ho(e.segments,n.segments)||!xc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!ND(e.children[r],n.children[r],t))return!1;return!0},subset:RD},FD={exact:function KN(e,n){return Jn(e,n)},subset:function XN(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>SD(e[t],n[t]))},ignored:()=>!0};function TD(e,n,t){return YN[t.paths](e.root,n.root,t.matrixParams)&&FD[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function RD(e,n,t){return OD(e,n,n.segments,t)}function OD(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!ho(o,t)||n.hasChildren()||!xc(o,t,r))}if(e.segments.length===t.length){if(!ho(e.segments,t)||!xc(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!RD(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(ho(e.segments,o)&&xc(e.segments,o,r)&&e.children[Ie])&&OD(e.children[Ie],n,i,r)}}function xc(e,n,t){return n.every((r,o)=>FD[t](e[o].parameters,r.parameters))}class _i{constructor(n=new Ge([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return tR.serialize(this)}}class Ge{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dc(this)}}class Ws{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ei(this.parameters)),this._parameterMap}toString(){return kD(this)}}function ho(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let qs=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return new Bh},providedIn:"root"})}return e})();class Bh{parse(n){const t=new fR(n);return new _i(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Qs(n.root,!0)}`,r=function oR(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Cc(t)}=${Cc(o)}`).join("&"):`${Cc(t)}=${Cc(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function nR(e){return encodeURI(e)}(n.fragment)}`:""}`}}const tR=new Bh;function Dc(e){return e.segments.map(n=>kD(n)).join("/")}function Qs(e,n){if(!e.hasChildren())return Dc(e);if(n){const t=e.children[Ie]?Qs(e.children[Ie],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==Ie&&r.push(`${o}:${Qs(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function eR(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===Ie&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==Ie&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===Ie?[Qs(e.children[Ie],!1)]:[`${o}:${Qs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Ie]?`${Dc(e)}/${t[0]}`:`${Dc(e)}/(${t.join("//")})`}}function PD(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(e){return PD(e).replace(/%3B/gi,";")}function kh(e){return PD(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ec(e){return decodeURIComponent(e)}function BD(e){return Ec(e.replace(/\+/g,"%20"))}function kD(e){return`${kh(e.path)}${function rR(e){return Object.keys(e).map(n=>`;${kh(n)}=${kh(e[n])}`).join("")}(e.parameters)}`}const iR=/^[^\/()?;#]+/;function Lh(e){const n=e.match(iR);return n?n[0]:""}const sR=/^[^\/()?;=#]+/,uR=/^[^=?&#]+/,lR=/^[^&#]+/;class fR{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ge([],{}):new Ge([],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 r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Ie]=new Ge(n,t)),r}parseSegment(){const n=Lh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new oe(4009,!1);return this.capture(n),new Ws(Ec(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function aR(e){const n=e.match(sR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Lh(this.remaining);o&&(r=o,this.capture(r))}n[Ec(t)]=Ec(r)}parseQueryParam(n){const t=function cR(e){const n=e.match(uR);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function dR(e){const n=e.match(lR);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=BD(t),i=BD(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Lh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new oe(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=Ie);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Ie]:new Ge([],s),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 oe(4011,!1)}}function LD(e){return e.segments.length>0?new Ge([],{[Ie]:e}):e}function VD(e){const n={};for(const r of Object.keys(e.children)){const i=VD(e.children[r]);if(r===Ie&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function hR(e){if(1===e.numberOfChildren&&e.children[Ie]){const n=e.children[Ie];return new Ge(e.segments.concat(n.segments),n.children)}return e}(new Ge(e.segments,n))}function po(e){return e instanceof _i}function HD(e){let n;const o=LD(function t(i){const s={};for(const u of i.children){const c=t(u);s[u.outlet]=c}const a=new Ge(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function jD(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return Vh(o,o,o,t,r);const i=function gR(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new UD(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new UD(t,n,r)}(n);if(i.toRoot())return Vh(o,o,new Ge([],{}),t,r);const s=function mR(e,n,t){if(e.isAbsolute)return new wc(n,!0,0);if(!t)return new wc(n,!1,NaN);if(null===t.parent)return new wc(t,!0,0);const r=_c(e.commands[0])?0:1;return function vR(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new oe(4005,!1);o=r.segments.length}return new wc(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Ys(s.segmentGroup,s.index,i.commands):zD(s.segmentGroup,s.index,i.commands);return Vh(o,s.segmentGroup,a,t,r)}function _c(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Zs(e){return"object"==typeof e&&null!=e&&e.outlets}function Vh(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`}),s=e===n?t:$D(e,n,t);const a=LD(VD(s));return new _i(a,i,o)}function $D(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:$D(i,n,t)}),new Ge(e.segments,r)}class UD{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&_c(r[0]))throw new oe(4003,!1);const o=r.find(Zs);if(o&&o!==ID(r))throw new oe(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wc{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function zD(e,n,t){if(e||(e=new Ge([],{})),0===e.segments.length&&e.hasChildren())return Ys(e,n,t);const r=function xR(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(Zs(a))break;const u=`${a}`,c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!WD(u,c,s))return i;r+=2}else{if(!WD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndexi!==Ie)&&e.children[Ie]&&1===e.numberOfChildren&&0===e.children[Ie].segments.length){const i=Ys(e.children[Ie],n,t);return new Ge(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=zD(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Ge(e.segments,o)}}function Hh(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Hh(new Ge([],{}),0,r))}),n}function GD(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function WD(e,n,t){return e==t.path&&Jn(n,t.parameters)}const Ks="imperative";class er{constructor(n,t){this.id=n,this.url=t}}class bc extends er{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vr extends er{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Xs extends er{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class wi extends er{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class Ac extends er{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qD extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CR extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ER extends er{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _R extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wR extends er{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bR{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class AR{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class MR{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SR{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class IR{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FR{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class QD{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jh{}class $h{constructor(n){this.url=n}}class TR{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Js,this.attachRef=null}}let Js=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new TR,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class ZD{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=Uh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Uh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=zh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return zh(n,this._root).map(t=>t.value)}}function Uh(e,n){if(e===n.value)return n;for(const t of n.children){const r=Uh(e,t);if(r)return r}return null}function zh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=zh(e,t);if(r.length)return r.unshift(n),r}return[]}class Cr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function bi(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class YD extends ZD{constructor(n,t){super(n),this.snapshot=t,Gh(this,n)}toString(){return this.snapshot.toString()}}function KD(e,n){const t=function NR(e,n){const s=new Mc([],{},{},"",{},Ie,n,null,{});return new JD("",new Cr(s,[]))}(0,n),r=new xn([new Ws("",{})]),o=new xn({}),i=new xn({}),s=new xn({}),a=new xn(""),u=new Ai(r,o,s,a,i,Ie,n,t.root);return u.snapshot=t.root,new YD(new Cr(u,[]),t)}class Ai{constructor(n,t,r,o,i,s,a,u){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(me(c=>c[Gs]))??ve(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}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(me(n=>Ei(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(me(n=>Ei(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function XD(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function RR(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Mc{get title(){return this.data?.[Gs]}constructor(n,t,r,o,i,s,a,u,c){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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=Ei(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ei(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class JD extends ZD{constructor(n,t){super(t),this.url=n,Gh(this,t)}toString(){return eC(this._root)}}function Gh(e,n){n.value._routerState=e,n.children.forEach(t=>Gh(e,t))}function eC(e){const n=e.children.length>0?` { ${e.children.map(eC).join(", ")} } `:"";return`${e.value}${n}`}function Wh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Jn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Jn(n.params,t.params)||e.paramsSubject.next(t.params),function ZN(e,n){if(e.length!==n.length)return!1;for(let t=0;tJn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||qh(e.parent,n.parent))}let Qh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ie,this.activateEvents=new it,this.deactivateEvents=new it,this.attachEvents=new it,this.detachEvents=new it,this.parentContexts=ue(Js),this.location=ue(kn),this.changeDetector=ue(Ku),this.environmentInjector=ue(wn),this.inputBinder=ue(Sc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new oe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new oe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new oe(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new oe(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new OR(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ce({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[En]})}return e})();class OR{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Ai?this.route:n===Js?this.childContexts:this.parent.get(n,t)}}const Sc=new ce("");let tC=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=Th([r.queryParams,r.params,r.data]).pipe(qt(([i,s,a],u)=>(a={...i,...s,...a},0===u?ve(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function i4(e){const n=Be(e);if(!n)return null;const t=new Es(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();function ea(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function BR(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ea(e,r,o);return ea(e,r)})}(e,n,t);return new Cr(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ea(e,a)),s}}const r=function kR(e){return new Ai(new xn(e.url),new xn(e.params),new xn(e.queryParams),new xn(e.fragment),new xn(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>ea(e,i));return new Cr(r,o)}}const Zh="ngNavigationCancelingError";function nC(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=po(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=rC(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function rC(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[Zh]=!0,r.cancellationCode=n,t&&(r.url=t),r}function oC(e){return e&&e[Zh]}let iC=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["ng-component"]],standalone:!0,features:[u1],decls:1,vars:0,template:function(r,o){1&r&&nt(0,"router-outlet")},dependencies:[Qh],encapsulation:2})}return e})();function Yh(e){const n=e.children&&e.children.map(Yh),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Ie&&(t.component=iC),t}function Hn(e){return e.outlet||Ie}function ta(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class GR{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Wh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=bi(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=bi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=bi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=bi(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new FR(i.value.snapshot))}),n.children.length&&this.forwardEvent(new SR(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(Wh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ta(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class sC{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ic{constructor(n,t){this.component=n,this.route=t}}function WR(e,n,t){const r=e._root;return na(r,n?n._root:null,t,[r.value])}function Mi(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function p_(e){return null!==Sa(e)}(e)?n.get(e):e:r}function na(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=bi(n);return e.children.forEach(s=>{(function QR(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function ZR(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!ho(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ho(e.url,n.url)||!Jn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qh(e,n)||!Jn(e.queryParams,n.queryParams);default:return!qh(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new sC(r)):(i.data=s.data,i._resolvedData=s._resolvedData),na(e,n,i.component?a?a.children:null:t,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ic(a.outlet.component,s))}else s&&ra(n,a,o),o.canActivateChecks.push(new sC(r)),na(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ra(a,t.getContext(s),o)),o}function ra(e,n,t){const r=bi(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ra(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Ic(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function oa(e){return"function"==typeof e}function aC(e){return e instanceof mc||"EmptyError"===e?.name}const Fc=Symbol("INITIAL_VALUE");function Si(){return qt(e=>Th(e.map(n=>n.pipe(on(1),function jN(...e){const n=Hi(e);return ge((t,r)=>{(n?Us(e,t,n):Us(e,t)).subscribe(r)})}(Fc)))).pipe(me(n=>{for(const t of n)if(!0!==t){if(t===Fc)return Fc;if(!1===t||t instanceof _i)return t}return!0}),sn(n=>n!==Fc),on(1)))}function uC(e){return function W(...e){return de(e)}(Mt(n=>{if(po(n))throw nC(0,n)}),me(n=>!0===n))}class Tc{constructor(n){this.segmentGroup=n||null}}class cC{constructor(n){this.urlTree=n}}function Ii(e){return Ci(new Tc(e))}function lC(e){return Ci(new cC(e))}class gO{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new oe(4002,!1)}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ve(r);if(o.numberOfChildren>1||!o.children[Ie])return Ci(new oe(4e3,!1));o=o.children[Ie]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new _i(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,o)}),new Ge(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new oe(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const Kh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function mO(e,n,t,r,o){const i=Xh(e,n,t);return i.matched?(r=function VR(e,n){return e.providers&&!e._injector&&(e._injector=Af(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function fO(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?ve(o.map(s=>{const a=Mi(s,e);return Lr(function tO(e){return e&&oa(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Si(),uC()):ve(!0)}(r,n,t).pipe(me(s=>!0===s?i:{...Kh}))):ve(i)}function Xh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Kh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||QN)(t,e,n);if(!o)return{...Kh};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function dC(e,n,t,r){return t.length>0&&function xO(e,n,t){return t.some(r=>Nc(e,n,r)&&Hn(r)!==Ie)}(e,t,r)?{segmentGroup:new Ge(n,yO(r,new Ge(t,e.children))),slicedSegments:[]}:0===t.length&&function DO(e,n,t){return t.some(r=>Nc(e,n,r))}(e,t,r)?{segmentGroup:new Ge(e.segments,vO(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new Ge(e.segments,e.children),slicedSegments:t}}function vO(e,n,t,r,o){const i={};for(const s of r)if(Nc(e,t,s)&&!o[Hn(s)]){const a=new Ge([],{});i[Hn(s)]=a}return{...o,...i}}function yO(e,n){const t={};t[Ie]=n;for(const r of e)if(""===r.path&&Hn(r)!==Ie){const o=new Ge([],{});t[Hn(r)]=o}return t}function Nc(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class wO{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new gO(this.urlSerializer,this.urlTree)}noMatchError(n){return new oe(4002,!1)}recognize(){const n=dC(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ie).pipe(fo(t=>{if(t instanceof cC)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Tc?this.noMatchError(t):t}),me(t=>{const r=new Mc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ie,this.rootComponentType,null,{}),o=new Cr(r,t),i=new JD("",o),s=function pR(e,n,t=null,r=null){return jD(HD(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Ie).pipe(fo(r=>{throw r instanceof Tc?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=XD(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0)}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return vt(o).pipe(zs(i=>{const s=r.children[i],a=function UR(e,n){const t=e.filter(r=>Hn(r)===n);return t.push(...e.filter(r=>Hn(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function zN(e,n){return ge(function UN(e,n,t,r,o){return(i,s)=>{let a=t,u=n,c=0;i.subscribe(Te(s,l=>{const d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),yc(null),function GN(e,n){const t=arguments.length>=2;return r=>r.pipe(e?sn((o,i)=>e(o,i,r)):Q,Oh(1),t?yc(n):AD(()=>new mc))}(),ft(i=>{if(null===i)return Ii(r);const s=fC(i);return function bO(e){e.sort((n,t)=>n.value.outlet===Ie?-1:t.value.outlet===Ie?1:n.value.outlet.localeCompare(t.value.outlet))}(s),ve(s)}))}processSegment(n,t,r,o,i,s){return vt(t).pipe(zs(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(fo(u=>{if(u instanceof Tc)return ve(null);throw u}))),lo(a=>!!a),fo(a=>{if(aC(a))return function EO(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?ve([]):Ii(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function CO(e,n,t,r){return!!(Hn(e)===r||r!==Ie&&Nc(n,t,e))&&("**"===e.path||Xh(n,e,t).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Ii(o):Ii(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?lC(i):this.applyRedirects.lineralizeSegments(r,i).pipe(ft(s=>{const a=new Ge(s,{});return this.processSegment(n,t,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:c,positionalParamSegments:l}=Xh(t,o,i);if(!a)return Ii(t);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,l);return o.redirectTo.startsWith("/")?lC(d):this.applyRedirects.lineralizeSegments(o,d).pipe(ft(v=>this.processSegment(n,r,t,v.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?ID(o).parameters:{};a=ve({snapshot:new Mc(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hC(r),Hn(r),r.component??r._loadedComponent??null,r,pC(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=mO(t,r,o,n).pipe(me(({matched:u,consumedSegments:c,remainingSegments:l,parameters:d})=>u?{snapshot:new Mc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hC(r),Hn(r),r.component??r._loadedComponent??null,r,pC(r)),consumedSegments:c,remainingSegments:l}:null));return a.pipe(qt(u=>null===u?Ii(t):this.getChildConfig(n=r._injector??n,r,o).pipe(qt(({routes:c})=>{const l=r._loadedInjector??n,{snapshot:d,consumedSegments:v,remainingSegments:A}=u,{segmentGroup:B,slicedSegments:z}=dC(t,v,A,c);if(0===z.length&&B.hasChildren())return this.processChildren(l,c,B).pipe(me(ie=>null===ie?null:[new Cr(d,ie)]));if(0===c.length&&0===z.length)return ve([new Cr(d,[])]);const X=Hn(r)===i;return this.processSegment(l,c,B,z,X?Ie:i,!0).pipe(me(ie=>[new Cr(d,ie)]))}))))}getChildConfig(n,t,r){return t.children?ve({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?ve({routes:t._loadedRoutes,injector:t._loadedInjector}):function dO(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?ve(!0):ve(o.map(s=>{const a=Mi(s,e);return Lr(function KR(e){return e&&oa(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Si(),uC())}(n,t,r).pipe(ft(o=>o?this.configLoader.loadChildren(n,t).pipe(Mt(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function pO(e){return Ci(rC(!1,3))}())):ve({routes:[],injector:n})}}function AO(e){const n=e.value.routeConfig;return n&&""===n.path}function fC(e){const n=[],t=new Set;for(const r of e){if(!AO(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=fC(r.children);n.push(new Cr(r.value,o))}return n.filter(r=>!t.has(r))}function hC(e){return e.data||{}}function pC(e){return e.resolve||{}}function gC(e){return"string"==typeof e.title||null===e.title}function Jh(e){return qt(n=>{const t=e(n);return t?vt(t).pipe(me(()=>n)):ve(n)})}const Fi=new ce("ROUTES");let e0=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=ue(ex)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return ve(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Lr(t.loadComponent()).pipe(me(mC),Mt(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Ph(()=>{this.componentLoaders.delete(t)})),o=new Rh(r,()=>new K).pipe(Nh());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function RO(e,n,t,r){return Lr(e.loadChildren()).pipe(me(mC),ft(o=>o instanceof s1||Array.isArray(o)?ve(o):vt(n.compileModuleAsync(o))),me(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(Fi,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yh),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Ph(()=>{this.childrenLoaders.delete(r)})),s=new Rh(i,()=>new K).pipe(Nh());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mC(e){return function OO(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Rc=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new K,this.transitionAbortSubject=new K,this.configLoader=ue(e0),this.environmentInjector=ue(wn),this.urlSerializer=ue(qs),this.rootContexts=ue(Js),this.inputBindingEnabled=null!==ue(Sc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ve(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new AR(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new bR(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new xn({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ks,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(sn(i=>0!==i.id),me(i=>({...i,extractedUrl:t.urlHandlingStrategy.extract(i.rawUrl)})),qt(i=>{this.currentTransition=i;let s=!1,a=!1;return ve(i).pipe(Mt(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),qt(u=>{const c=u.currentBrowserUrl.toString(),l=!t.navigated||u.extractedUrl.toString()!==c||c!==u.currentUrlTree.toString();if(!l&&"reload"!==(u.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const v="";return this.events.next(new wi(u.id,this.urlSerializer.serialize(u.rawUrl),v,0)),u.resolve(null),jn}if(t.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ve(u).pipe(qt(v=>{const A=this.transitions?.getValue();return this.events.next(new bc(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),A!==this.transitions?.getValue()?jn:Promise.resolve(v)}),function MO(e,n,t,r,o,i){return ft(s=>function _O(e,n,t,r,o,i,s="emptyOnly"){return new wO(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(me(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Mt(v=>{i.targetSnapshot=v.targetSnapshot,i.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:v.urlAfterRedirects};const A=new qD(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(A)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:v,extractedUrl:A,source:B,restoredState:z,extras:X}=u,ie=new bc(v,this.urlSerializer.serialize(A),B,z);this.events.next(ie);const G=KD(0,this.rootComponentType).snapshot;return this.currentTransition=i={...u,targetSnapshot:G,urlAfterRedirects:A,extras:{...X,skipLocationChange:!1,replaceUrl:!1}},ve(i)}{const v="";return this.events.next(new wi(u.id,this.urlSerializer.serialize(u.extractedUrl),v,1)),u.resolve(null),jn}}),Mt(u=>{const c=new CR(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),me(u=>(this.currentTransition=i={...u,guards:WR(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},i)),function rO(e,n){return ft(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?ve({...t,guardsResult:!0}):function oO(e,n,t,r){return vt(e).pipe(ft(o=>function lO(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ve(i.map(a=>{const u=ta(n)??o,c=Mi(a,u);return Lr(function eO(e){return e&&oa(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):u.runInContext(()=>c(e,n,t,r))).pipe(lo())})).pipe(Si()):ve(!0)}(o.component,o.route,t,n,r)),lo(o=>!0!==o,!0))}(s,r,o,e).pipe(ft(a=>a&&function YR(e){return"boolean"==typeof e}(a)?function iO(e,n,t,r){return vt(n).pipe(zs(o=>Us(function aO(e,n){return null!==e&&n&&n(new MR(e)),ve(!0)}(o.route.parent,r),function sO(e,n){return null!==e&&n&&n(new IR(e)),ve(!0)}(o.route,r),function cO(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function qR(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>vc(()=>ve(s.guards.map(u=>{const c=ta(s.node)??t,l=Mi(u,c);return Lr(function JR(e){return e&&oa(e.canActivateChild)}(l)?l.canActivateChild(r,e):c.runInContext(()=>l(r,e))).pipe(lo())})).pipe(Si())));return ve(i).pipe(Si())}(e,o.path,t),function uO(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ve(!0);const o=r.map(i=>vc(()=>{const s=ta(n)??t,a=Mi(i,s);return Lr(function XR(e){return e&&oa(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(lo())}));return ve(o).pipe(Si())}(e,o.route,t))),lo(o=>!0!==o,!0))}(r,i,e,n):ve(a)),me(a=>({...t,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),Mt(u=>{if(i.guardsResult=u.guardsResult,po(u.guardsResult))throw nC(0,u.guardsResult);const c=new ER(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),sn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),Jh(u=>{if(u.guards.canActivateChecks.length)return ve(u).pipe(Mt(c=>{const l=new _R(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),qt(c=>{let l=!1;return ve(c).pipe(function SO(e,n){return ft(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return ve(t);let i=0;return vt(o).pipe(zs(s=>function IO(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!gC(o)&&(i[Gs]=o.title),function FO(e,n,t,r){const o=function TO(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return ve({});const i={};return vt(o).pipe(ft(s=>function NO(e,n,t,r){const o=ta(n)??r,i=Mi(e,o);return Lr(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(lo(),Mt(a=>{i[s]=a}))),Oh(1),MD(i),fo(s=>aC(s)?jn:Ci(s)))}(i,e,n,r).pipe(me(s=>(e._resolvedData=s,e.data=XD(e,t).resolve,o&&gC(o)&&(e.data[Gs]=o.title),null)))}(s.route,r,e,n)),Mt(()=>i++),Oh(1),ft(s=>i===o.length?ve(t):jn))})}(t.paramsInheritanceStrategy,this.environmentInjector),Mt({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",2)}}))}),Mt(c=>{const l=new wR(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Jh(u=>{const c=l=>{const d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Mt(v=>{l.component=v}),me(()=>{})));for(const v of l.children)d.push(...c(v));return d};return Th(c(u.targetSnapshot.root)).pipe(yc(),on(1))}),Jh(()=>this.afterPreactivation()),me(u=>{const c=function PR(e,n,t){const r=ea(e,n._root,t?t._root:void 0);return new YD(r,n)}(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=i={...u,targetRouterState:c},i}),Mt(()=>{this.events.next(new jh)}),((e,n,t,r)=>me(o=>(new GR(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),on(1),Mt({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Vr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),t.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),function WN(e){return ge((n,t)=>{mt(e).subscribe(Te(t,()=>t.complete(),M)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(Mt(u=>{throw u}))),Ph(()=>{s||a||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),fo(u=>{if(a=!0,oC(u))this.events.next(new Xs(i.id,this.urlSerializer.serialize(i.extractedUrl),u.message,u.cancellationCode)),function LR(e){return oC(e)&&po(e.url)}(u)?this.events.next(new $h(u.url)):i.resolve(!1);else{this.events.next(new Ac(i.id,this.urlSerializer.serialize(i.extractedUrl),u,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(u))}catch(c){i.reject(c)}}return jn}))}))}cancelNavigationTransition(t,r,o){const i=new Xs(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vC(e){return e!==Ks}let yC=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===Ie);return r}getResolvedTitleForRoute(t){return t.data[Gs]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(PO)},providedIn:"root"})}return e})(),PO=(()=>{class e extends yC{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(xD))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),BO=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(LO)},providedIn:"root"})}return e})();class kO{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let LO=(()=>{class e extends kO{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=At(e)))(o||e)}}();static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Oc=new ce("",{providedIn:"root",factory:()=>({})});let VO=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:function(){return ue(HO)},providedIn:"root"})}return e})(),HO=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ia=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ia||{});function xC(e,n){e.events.pipe(sn(t=>t instanceof Vr||t instanceof Xs||t instanceof Ac||t instanceof wi),me(t=>t instanceof Vr||t instanceof wi?ia.COMPLETE:t instanceof Xs&&(0===t.code||1===t.code)?ia.REDIRECTING:ia.FAILED),sn(t=>t!==ia.REDIRECTING),on(1)).subscribe(()=>{n()})}function jO(e){throw e}function $O(e,n,t){return n.parse("/")}const UO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},zO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nt=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ue(X1),this.isNgZoneEnabled=!1,this._events=new K,this.options=ue(Oc,{optional:!0})||{},this.pendingTasks=ue(J1),this.errorHandler=this.options.errorHandler||jO,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||$O,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ue(VO),this.routeReuseStrategy=ue(BO),this.titleStrategy=ue(yC),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=ue(Fi,{optional:!0})?.flat()??[],this.navigationTransitions=ue(Rc),this.urlSerializer=ue(qs),this.location=ue(ih),this.componentInputBindingEnabled=!!ue(Sc,{optional:!0}),this.eventsSubscription=new b,this.isNgZoneEnabled=ue(We)instanceof We&&We.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new _i,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=KD(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(DC(r)&&this._events.next(r));if(r instanceof bc)vC(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof wi)this.rawUrlTree=o.rawUrl;else if(r instanceof qD){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(i,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof jh)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof Xs)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof $h){const i=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),s={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||vC(o.source)};this.scheduleNavigation(i,Ks,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof Ac&&this.restoreHistory(o,!0),r instanceof Vr&&(this.navigated=!0),DC(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ks,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Yh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s;let d,l=null;switch(a){case"merge":l={...this.currentUrlTree.queryParams,...i};break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}null!==l&&(l=this.removeEmptyProps(l));try{d=HD(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return jD(d,t,l,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=po(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ks,null,r)}navigate(t,r={skipLocationChange:!1}){return function GO(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,v)=>{a=d,u=v});const l=this.pendingTasks.add();return xC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:i,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&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))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function DC(e){return!(e instanceof jh||e instanceof $h)}let Hr=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new K,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof Vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function om(e,n,t){return function yb(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?rm:md}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt),ne(Ai),function Za(e){return function Lw(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(sn(t=>t instanceof Vr),zs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Af(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return vt(o).pipe(_o())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):ve(null);const i=o.pipe(ft(s=>null===s?ve(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?vt([i,this.loader.loadComponent(r)]).pipe(_o()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Nt),pe(ex),pe(wn),pe(CC),pe(e0))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const t0=new ce("");let EC=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof bc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Vr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof wi&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof QD&&(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,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new QD(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function zm(){throw new Error("invalid")}()};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();function Er(e,n){return{\u0275kind:e,\u0275providers:n}}function wC(){const e=ue(en);return n=>{const t=e.get(so);if(n!==t.components[0])return;const r=e.get(Nt),o=e.get(bC);1===e.get(n0)&&r.initialNavigation(),e.get(AC,null,Oe.Optional)?.setUpPreloading(),e.get(t0,null,Oe.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const bC=new ce("",{factory:()=>new K}),n0=new ce("",{providedIn:"root",factory:()=>1}),AC=new ce("");function XO(e){return Er(0,[{provide:AC,useExisting:QO},{provide:CC,useExisting:e}])}const MC=new ce("ROUTER_FORROOT_GUARD"),e3=[ih,{provide:qs,useClass:Bh},Nt,Js,{provide:Ai,useFactory:function _C(e){return e.routerState.root},deps:[Nt]},e0,[]];function t3(){return new ax("Router",Nt)}let go=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[e3,[],{provide:Fi,multi:!0,useValue:t},{provide:MC,useFactory:i3,deps:[[Nt,new Xa,new Ja]]},{provide:Oc,useValue:r||{}},r?.useHash?{provide:uo,useClass:l4}:{provide:uo,useClass:kx},{provide:t0,useFactory:()=>{const e=ue(F8),n=ue(We),t=ue(Oc),r=ue(Rc),o=ue(qs);return t.scrollOffset&&e.setOffset(t.scrollOffset),new EC(o,r,e,n,t)}},r?.preloadingStrategy?XO(r.preloadingStrategy).\u0275providers:[],{provide:ax,multi:!0,useFactory:t3},r?.initialNavigation?s3(r):[],r?.bindToComponentInputs?Er(8,[tC,{provide:Sc,useExisting:tC}]).\u0275providers:[],[{provide:SC,useFactory:wC},{provide:Zf,multi:!0,useExisting:SC}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Fi,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(pe(MC,8))};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();function i3(e){return"guarded"}function s3(e){return["disabled"===e.initialNavigation?Er(3,[{provide:qu,multi:!0,useFactory:()=>{const n=ue(Nt);return()=>{n.setUpLocationChangeListener()}}},{provide:n0,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Er(2,[{provide:n0,useValue:0},{provide:qu,multi:!0,deps:[en],useFactory:n=>{const t=n.get(u4,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(Nt),i=n.get(bC);xC(o,()=>{r(!0)}),n.get(Rc).afterPreactivation=()=>(r(!0),i.closed?ve(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const SC=new ce("");let IC=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(fr),ne(Jt))};static#t=this.\u0275dir=Ce({type:e})}return e})(),mo=(()=>{class e extends IC{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=At(e)))(o||e)}}();static#t=this.\u0275dir=Ce({type:e,features:[ze]})}return e})();const tr=new ce("NgValueAccessor"),l3={provide:tr,useExisting:Qe(()=>sa),multi:!0},f3=new ce("CompositionEventMode");let sa=(()=>{class e extends IC{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function d3(){const e=Br()?Br().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(fr),ne(Jt),ne(f3,8))};static#t=this.\u0275dir=Ce({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(r,o){1&r&&xt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[et([l3]),ze]})}return e})();function jr(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function TC(e){return null!=e&&"number"==typeof e.length}const Rt=new ce("NgValidators"),$r=new ce("NgAsyncValidators"),h3=/^(?=.{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])?)*$/;class r0{static min(n){return function NC(e){return n=>{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(jr(n.value)||jr(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function OC(e){return jr(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function PC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function BC(e){return jr(e.value)||h3.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function kC(e){return n=>jr(n.value)||!TC(n.value)?null:n.value.lengthTC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function VC(e){if(!e)return Pc;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(jr(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return GC(n)}static composeAsync(n){return WC(n)}}function Pc(e){return null}function HC(e){return null!=e}function jC(e){return Ms(e)?vt(e):e}function $C(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function UC(e,n){return n.map(t=>t(e))}function zC(e){return e.map(n=>function p3(e){return!e.validate}(n)?n:t=>n.validate(t))}function GC(e){if(!e)return null;const n=e.filter(HC);return 0==n.length?null:function(t){return $C(UC(t,n))}}function o0(e){return null!=e?GC(zC(e)):null}function WC(e){if(!e)return null;const n=e.filter(HC);return 0==n.length?null:function(t){return function u3(...e){const n=R0(e),{args:t,keys:r}=_D(e),o=new se(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=v},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?wD(r,a):a),i.complete())}))}});return n?o.pipe(Fh(n)):o}(UC(t,n).map(jC)).pipe(me($C))}}function s0(e){return null!=e?WC(zC(e)):null}function qC(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function QC(e){return e._rawValidators}function ZC(e){return e._rawAsyncValidators}function a0(e){return e?Array.isArray(e)?e:[e]:[]}function Bc(e,n){return Array.isArray(e)?e.includes(n):e===n}function YC(e,n){const t=a0(n);return a0(e).forEach(o=>{Bc(t,o)||t.push(o)}),t}function KC(e,n){return a0(n).filter(t=>!Bc(e,t))}class XC{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=o0(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=s0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class zt extends XC{get formDirective(){return null}get path(){return null}}class Ur extends XC{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class JC{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let u0=(()=>{class e extends JC{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Ur,2))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&pi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ze]})}return e})(),c0=(()=>{class e extends JC{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(ne(zt,10))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&pi("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ze]})}return e})();const aa="VALID",Lc="INVALID",Ti="PENDING",ua="DISABLED";function f0(e){return(Vc(e)?e.validators:e)||null}function h0(e,n){return(Vc(n)?n.asyncValidators:e)||null}function Vc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function tE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new oe(1e3,"");if(!r[t])throw new oe(1001,"")}function nE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new oe(1002,"")})}class Hc{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===aa}get invalid(){return this.status===Lc}get pending(){return this.status==Ti}get disabled(){return this.status===ua}get enabled(){return this.status!==ua}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(YC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(YC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(KC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(KC(n,this._rawAsyncValidators))}hasValidator(n){return Bc(this._rawValidators,n)}hasAsyncValidator(n){return Bc(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=Ti,!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=ua,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=aa,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===aa||this.status===Ti)&&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()?ua:aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ti,this._hasOwnPendingAsyncValidator=!0;const t=jC(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.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 it,this.statusChanges=new it}_calculateStatus(){return this._allControlsDisabled()?ua:this.errors?Lc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ti)?Ti:this._anyControlsHaveStatus(Lc)?Lc:aa}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Vc(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function y3(e){return Array.isArray(e)?o0(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function x3(e){return Array.isArray(e)?s0(e):e||null}(this._rawAsyncValidators)}}class ca extends Hc{constructor(n,t,r){super(f0(t),h0(r,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,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.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,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){nE(this,0,n),Object.keys(n).forEach(r=>{tE(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_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}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class rE extends ca{}const Ni=new ce("CallSetDisabledState",{providedIn:"root",factory:()=>jc}),jc="always";function la(e,n,t=jc){p0(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function C3(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&oE(e,n)})}(e,n),function _3(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function E3(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&oE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function D3(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Uc(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Gc(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function zc(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function p0(e,n){const t=QC(e);null!==n.validator?e.setValidators(qC(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=ZC(e);null!==n.asyncValidator?e.setAsyncValidators(qC(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();zc(n._rawValidators,o),zc(n._rawAsyncValidators,o)}function Gc(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=QC(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){const o=ZC(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}const r=()=>{};return zc(n._rawValidators,r),zc(n._rawAsyncValidators,r),t}function oE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function aE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function uE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const fa=class extends Hc{constructor(n=null,t,r){super(f0(t),h0(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vc(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=uE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(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){aE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){aE(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){uE(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}};let x0=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=Ce({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),pE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({})}return e})();const D0=new ce("NgModelWithFormControlWarning"),k3={provide:zt,useExisting:Qe(()=>ha)};let ha=(()=>{class e extends zt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new it,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Gc(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return la(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Uc(t.control||null,t,!1),function M3(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function sE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(Uc(r||null,t),(e=>e instanceof fa)(o)&&(la(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function iE(e,n){p0(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function w3(e,n){return Gc(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){p0(this.form,this),this._oldForm&&Gc(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Rt,10),ne($r,10),ne(Ni,8))};static#t=this.\u0275dir=Ce({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&xt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[et([k3]),ze,En]})}return e})();const H3={provide:Ur,useExisting:Qe(()=>Wc)};let Wc=(()=>{class e extends Ur{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new it,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function v0(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===sa?t=i:function A3(e){return Object.getPrototypeOf(e.constructor)===mo}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){this._added||this._setUpControl(),function m0(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return function $c(e,n){return[...n.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(ne(zt,13),ne(Rt,10),ne($r,10),ne(tr,10),ne(D0,8))};static#n=this.\u0275dir=Ce({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[et([H3]),ze,En]})}return e})(),tP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[pE]})}return e})();class FE extends Hc{constructor(n,t,r){super(f0(t),h0(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){nE(this,0,n),n.forEach((r,o)=>{tE(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_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)}_find(n){return this.at(n)??null}}function TE(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let NE=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,r=null){const o=this._reduceControls(t);let i={};return TE(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new ca(o,i)}record(t,r=null){const o=this._reduceControls(t);return new rE(o,r)}control(t,r,o){let i={};return this.useNonNullable?(TE(r)?i=r:(i.validators=r,i.asyncValidators=o),new fa(t,{...i,nonNullable:!0})):new fa(t,r,o)}array(t,r,o){const i=t.map(s=>this._createControl(s));return new FE(i,r,o)}_reduceControls(t){const r={};return Object.keys(t).forEach(o=>{r[o]=this._createControl(t[o])}),r}_createControl(t){return t instanceof fa||t instanceof Hc?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RE=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:D0,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ni,useValue:t.callSetDisabledState??jc}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[tP]})}return e})();var zr=E(7874);let A0=(()=>{class e{constructor(){this.mode=zr.mode.CBC,this.padding=zr.pad.Pkcs7}encrypt(t,r){const o=zr.enc.Hex.parse(zr.lib.WordArray.random(16).toString());return`encrypted:aes?iv=${o};`+zr.AES.encrypt(t,String(r),{iv:o,mode:this.mode,padding:this.padding})}decrypt(t,r){const o=this.parseEncryptedQrcode(t);if(o.encrypted&&"aes"===o.type){const i=zr.AES.decrypt(o.content,r,{iv:o.iv,mode:this.mode,padding:this.padding});return zr.enc.Utf8.stringify(i)}return o.content}parseEncryptedQrcode(t){if(/^encrypted:aes/.test(t)){const r=t.replace(/(^.*iv=|;.*$)/g,""),o=t.replace(/^.*;/,"");return{encrypted:!0,type:"aes",iv:zr.enc.Hex.parse(r),content:o}}return{encrypted:!1,content:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nP(e,n){1&e&&(Ne(0,"span",24),Dt(1,"*This field is required!"),Re())}function rP(e,n){1&e&&(Ne(0,"span",24),Dt(1,"*This field is required!"),Re())}let oP=(()=>{class e{constructor(t,r,o){this.router=t,this.fb=r,this.cryptService=o,this.submitted=!1}ngOnInit(){this.initForm()}initForm(){const t=history.state.opened,r=t?String(t):"";this.form=this.fb.group({title:[""],content:[r,[r0.required.bind(this)]],key:["",[r0.required.bind(this)]]})}getErrorFromField(t,r="required"){if(!this.submitted)return!1;const o=this.form.controls[t];return!!(o&&o.errors&&o.errors[r])}onSubmit(){if(this.submitted=!0,this.form.valid){const t=this.form.getRawValue(),r=this.cryptService.encrypt(t.content||"",t.key||"");this.router.navigate(["/share"],{state:{encrypted:r,title:t.title}})}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt),ne(NE),ne(A0))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-generate-qrcode"]],decls:31,vars:5,consts:[["id","generaQRCodeForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","title","name","title","placeholder","insert a title (optional)","type","text","autocomplete","off"],["formControlName","content","name","content","placeholder","content to encrypt"],["class","error-msg",4,"ngIf"],["formControlName","key","name","key","placeholder","insert a key","type","password","autocomplete","off",1,"field-key"],["key",""],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["form","generaQRCodeForm","type","submit",1,"btn","btn-primary"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"],[1,"error-msg"]],template:function(r,o){if(1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"form",0),xt("submit",function(){return o.onSubmit()}),nt(3,"input",1)(4,"textarea",2),fi(5,nP,2,0,"span",3),nt(6,"input",4,5),fi(8,rP,2,0,"span",3),Re(),Ne(9,"div",6)(10,"button",7),Vt(),Ne(11,"svg",8),nt(12,"path",9)(13,"path",10),Re(),Dt(14," Back "),Re(),lr(),Ne(15,"button",11),Vt(),Ne(16,"svg",8),nt(17,"path",9)(18,"path",12)(19,"path",13)(20,"path",14)(21,"path",15)(22,"path",16)(23,"path",17)(24,"path",18)(25,"path",19)(26,"path",20)(27,"path",21)(28,"path",22)(29,"path",23),Re(),Dt(30," Generate "),Re()()),2&r){const i=uf(7);tn(2),gn("formGroup",o.form),tn(3),gn("ngIf",o.getErrorFromField("content")),tn(1),pi("has-value",!!i.value),tn(2),gn("ngIf",o.getErrorFromField("key"))}},dependencies:[fc,Hr,x0,sa,u0,c0,ha,Wc],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex:1 1 0px;display:flex;flex-direction:column}[_nghost-%COMP%] form[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{flex:1 1 0px;margin-top:1rem}[_nghost-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:1rem}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{flex:0 0 20px;display:flex;justify-content:space-between;margin-top:1rem}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin:.25rem}"]})}return e})();function OE(e,n,t,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void t(c)}a.done?n(u):Promise.resolve(u).then(r,o)}function rt(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(u){OE(i,r,o,s,a,"next",u)}function a(u){OE(i,r,o,s,a,"throw",u)}s(void 0)})}}const M0=(()=>{class e{constructor(t,r,o,i,s){this._legacyCanvasSize=e.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=t,this.$canvas=document.createElement("canvas"),o&&"object"==typeof o?this._onDecode=r:(console.warn(o||i||s?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=r),this._onDecodeError=(r="object"==typeof o?o:{}).onDecodeError||("function"==typeof o?o:this._onDecodeError),this._calculateScanRegion=r.calculateScanRegion||("function"==typeof i?i:this._calculateScanRegion),this._preferredCamera=r.preferredCamera||s||this._preferredCamera,this._legacyCanvasSize="number"==typeof o?o:"number"==typeof i?i:this._legacyCanvasSize,this._maxScansPerSecond=r.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),t.disablePictureInPicture=!0,t.playsInline=!0,t.muted=!0;let a=!1;if(t.hidden&&(t.hidden=!1,a=!0),document.body.contains(t)||(document.body.appendChild(t),a=!0),o=t.parentElement,r.highlightScanRegion||r.highlightCodeOutline){if(i=!!r.overlay,this.$overlay=r.overlay||document.createElement("div"),(s=this.$overlay.style).position="absolute",s.display="none",s.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!i&&r.highlightScanRegion){this.$overlay.innerHTML='';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}o.insertBefore(this.$overlay,this.$video.nextSibling)}r.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",''),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(t),requestAnimationFrame(()=>{let u=window.getComputedStyle(t);"none"===u.display&&(t.style.setProperty("display","block","important"),a=!0),"visible"!==u.visibility&&(t.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),t.style.opacity="0",t.style.width="0",t.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),t.addEventListener("play",this._onPlay),t.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=e.createQrEngine()}static set WORKER_PATH(t){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static hasCamera(){return rt(function*(){try{return!!(yield e.listCameras(!1)).length}catch{return!1}})()}static listCameras(t=!1){return rt(function*(){if(!navigator.mediaDevices)return[];let o,r=function(){var i=rt(function*(){return(yield navigator.mediaDevices.enumerateDevices()).filter(s=>"videoinput"===s.kind)});return function(){return i.apply(this,arguments)}}();try{t&&(yield r()).every(i=>!i.label)&&(o=yield navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(yield r()).map((i,s)=>({id:i.deviceId,label:i.label||(0===s?"Default Camera":`Camera ${s+1}`)}))}finally{o&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),e._stopVideoStream(o))}})()}hasFlash(){var t=this;return rt(function*(){let r;try{if(t.$video.srcObject){if(!(t.$video.srcObject instanceof MediaStream))return!1;r=t.$video.srcObject}else r=(yield t._getCameraStream()).stream;return"torch"in r.getVideoTracks()[0].getSettings()}catch{return!1}finally{r&&r!==t.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),e._stopVideoStream(r))}})()}isFlashOn(){return this._flashOn}toggleFlash(){var t=this;return rt(function*(){t._flashOn?yield t.turnFlashOff():yield t.turnFlashOn()})()}turnFlashOn(){var t=this;return rt(function*(){if(!t._flashOn&&!t._destroyed&&(t._flashOn=!0,t._active&&!t._paused))try{if(!(yield t.hasFlash()))throw"No flash available";yield t.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(r){throw t._flashOn=!1,r}})()}turnFlashOff(){var t=this;return rt(function*(){t._flashOn&&(t._flashOn=!1,yield t._restartVideoStream())})()}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),e._postWorkerMessage(this._qrEnginePromise,"close")}start(){var t=this;return rt(function*(){if(t._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!t._active||t._paused)&&("https:"!==window.location.protocol&&console.warn("The camera stream is only accessible if the page is transferred via https."),t._active=!0,!document.hidden))if(t._paused=!1,t.$video.srcObject)yield t.$video.play();else try{let{stream:r,facingMode:o}=yield t._getCameraStream();!t._active||t._paused?e._stopVideoStream(r):(t._setVideoMirror(o),t.$video.srcObject=r,yield t.$video.play(),t._flashOn&&(t._flashOn=!1,t.turnFlashOn().catch(()=>{})))}catch(r){if(!t._paused)throw t._active=!1,r}})()}stop(){this.pause(),this._active=!1}pause(t=!1){var r=this;return rt(function*(){if(r._paused=!0,!r._active)return!0;r.$video.pause(),r.$overlay&&(r.$overlay.style.display="none");let o=()=>{r.$video.srcObject instanceof MediaStream&&(e._stopVideoStream(r.$video.srcObject),r.$video.srcObject=null)};return t?(o(),!0):(yield new Promise(i=>setTimeout(i,300)),!!r._paused&&(o(),!0))})()}setCamera(t){var r=this;return rt(function*(){t!==r._preferredCamera&&(r._preferredCamera=t,yield r._restartVideoStream())})()}static scanImage(t,r,o,i,s=!1,a=!1){return rt(function*(){let u,c=!1;r&&("scanRegion"in r||"qrEngine"in r||"canvas"in r||"disallowCanvasResizing"in r||"alsoTryWithoutScanRegion"in r||"returnDetailedScanResult"in r)?(u=r.scanRegion,o=r.qrEngine,i=r.canvas,s=r.disallowCanvasResizing||!1,a=r.alsoTryWithoutScanRegion||!1,c=!0):console.warn(r||o||i||s||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),r=!!o;try{let l,d,v;if([o,l]=yield Promise.all([o||e.createQrEngine(),e._loadImage(t)]),[i,d]=e._drawToCanvas(l,u,i,s),o instanceof Worker){let A=o;r||e._postWorkerMessageSync(A,"inversionMode","both"),v=yield new Promise((B,z)=>{let X,ie,G,le=-1;ie=be=>{be.data.id===le&&(A.removeEventListener("message",ie),A.removeEventListener("error",G),clearTimeout(X),null!==be.data.data?B({data:be.data.data,cornerPoints:e._convertPoints(be.data.cornerPoints,u)}):z(e.NO_QR_CODE_FOUND))},G=be=>{A.removeEventListener("message",ie),A.removeEventListener("error",G),clearTimeout(X),z("Scanner error: "+(be?be.message||be:"Unknown Error"))},A.addEventListener("message",ie),A.addEventListener("error",G),X=setTimeout(()=>G("timeout"),1e4);let he=d.getImageData(0,0,i.width,i.height);le=e._postWorkerMessageSync(A,"decode",he,[he.data.buffer])})}else v=yield Promise.race([new Promise((A,B)=>window.setTimeout(()=>B("Scanner error: timeout"),1e4)),rt(function*(){try{var[A]=yield o.detect(i);if(!A)throw e.NO_QR_CODE_FOUND;return{data:A.rawValue,cornerPoints:e._convertPoints(A.cornerPoints,u)}}catch(B){if(/not implemented|service unavailable/.test(A=B.message||B))return e._disableBarcodeDetector=!0,e.scanImage(t,{scanRegion:u,canvas:i,disallowCanvasResizing:s,alsoTryWithoutScanRegion:a});throw`Scanner error: ${A}`}})()]);return c?v:v.data}catch(l){if(!u||!a)throw l;let d=yield e.scanImage(t,{qrEngine:o,canvas:i,disallowCanvasResizing:s});return c?d:d.data}finally{r||e._postWorkerMessage(o,"close")}})()}setGrayscaleWeights(t,r,o,i=!0){e._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:t,green:r,blue:o,useIntegerApproximation:i})}setInversionMode(t){e._postWorkerMessage(this._qrEnginePromise,"inversionMode",t)}static createQrEngine(t){return rt(function*(){if(t&&console.warn("Specifying a worker path is not required and not supported anymore."),t=()=>E.e(663).then(E.bind(E,3663)).then(o=>o.createWorker()),e._disableBarcodeDetector||!("BarcodeDetector"in window)||!BarcodeDetector.getSupportedFormats||!(yield BarcodeDetector.getSupportedFormats()).includes("qr_code"))return t();let r=navigator.userAgentData;return r&&r.brands.some(({brand:o})=>/Chromium/i.test(o))&&/mac ?OS/i.test(r.platform)&&(yield r.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:o,platformVersion:i})=>/arm/i.test(o||"arm")&&13<=parseInt(i||"13")).catch(()=>!0))?t():new BarcodeDetector({formats:["qr_code"]})})()}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(t){let r=Math.round(.6666666666666666*Math.min(t.videoWidth,t.videoHeight));return{x:Math.round((t.videoWidth-r)/2),y:Math.round((t.videoHeight-r)/2),width:r,height:r,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var t=this.$video,r=t.videoWidth,o=t.videoHeight,i=t.offsetWidth,s=t.offsetHeight,a=t.offsetLeft,u=t.offsetTop,c=window.getComputedStyle(t),l=c.objectFit,d=r/o,v=i/s;switch(l){case"none":var A=r,B=o;break;case"fill":A=i,B=s;break;default:("cover"===l?d>v:d{const he=parseFloat(G);return G.endsWith("%")?(le?s-B:i-A)*he/100:he});v=this._scanRegion.height||o,l=this._scanRegion.x||0;var ie=this._scanRegion.y||0;(d=this.$overlay.style).width=(c=this._scanRegion.width||r)/r*A+"px",d.height=v/o*B+"px",d.top=`${u+X+ie/o*B}px`,o=/scaleX\(-1\)/.test(t.style.transform),d.left=`${a+(o?i-z-A:z)+(o?r-l-c:l)/r*A}px`,d.transform=t.style.transform}})}static _convertPoints(t,r){if(!r)return t;let o=r.x||0,i=r.y||0,s=r.width&&r.downScaledWidth?r.width/r.downScaledWidth:1;r=r.height&&r.downScaledHeight?r.height/r.downScaledHeight:1;for(let a of t)a.x=a.x*s+o,a.y=a.y*r+i;return t}_scanFrame(){var t=this;!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(rt(function*(){if(!(1>=t.$video.readyState)){var r=Date.now()-t._lastScanTimestamp,o=1e3/t._maxScansPerSecond;rsetTimeout(s,o-r))),t._lastScanTimestamp=Date.now();try{var i=yield e.scanImage(t.$video,{scanRegion:t._scanRegion,qrEngine:t._qrEnginePromise,canvas:t.$canvas})}catch(s){if(!t._active)return;t._onDecodeError(s)}!e._disableBarcodeDetector||(yield t._qrEnginePromise)instanceof Worker||(t._qrEnginePromise=e.createQrEngine()),i?(t._onDecode?t._onDecode(i):t._legacyOnDecode&&t._legacyOnDecode(i.data),t.$codeOutlineHighlight&&(clearTimeout(t._codeOutlineHighlightRemovalTimeout),t._codeOutlineHighlightRemovalTimeout=void 0,t.$codeOutlineHighlight.setAttribute("viewBox",`${t._scanRegion.x||0} ${t._scanRegion.y||0} ${t._scanRegion.width||t.$video.videoWidth} ${t._scanRegion.height||t.$video.videoHeight}`),t.$codeOutlineHighlight.firstElementChild.setAttribute("points",i.cornerPoints.map(({x:s,y:a})=>`${s},${a}`).join(" ")),t.$codeOutlineHighlight.style.display="")):t.$codeOutlineHighlight&&!t._codeOutlineHighlightRemovalTimeout&&(t._codeOutlineHighlightRemovalTimeout=setTimeout(()=>t.$codeOutlineHighlight.style.display="none",100))}t._scanFrame()}))}_onDecodeError(t){t!==e.NO_QR_CODE_FOUND&&console.log(t)}_getCameraStream(){var t=this;return rt(function*(){if(!navigator.mediaDevices)throw"Camera not found.";let r=/^(environment|user)$/.test(t._preferredCamera)?"facingMode":"deviceId",o=[{width:{min:1024}},{width:{min:768}},{}],i=o.map(s=>Object.assign({},s,{[r]:{exact:t._preferredCamera}}));for(let s of[...i,...o])try{let a=yield navigator.mediaDevices.getUserMedia({video:s,audio:!1});return{stream:a,facingMode:t._getFacingMode(a)||(s.facingMode?t._preferredCamera:"environment"===t._preferredCamera?"user":"environment")}}catch{}throw"Camera not found."})()}_restartVideoStream(){var t=this;return rt(function*(){let r=t._paused;(yield t.pause(!0))&&!r&&t._active&&(yield t.start())})()}static _stopVideoStream(t){for(let r of t.getTracks())r.stop(),t.removeTrack(r)}_setVideoMirror(t){this.$video.style.transform="scaleX("+("user"===t?-1:1)+")"}_getFacingMode(t){return(t=t.getVideoTracks()[0])?/rear|back|environment/i.test(t.label)?"environment":/front|user|face/i.test(t.label)?"user":null:null}static _drawToCanvas(t,r,o,i=!1){o=o||document.createElement("canvas");let s=r&&r.x?r.x:0,a=r&&r.y?r.y:0,u=r&&r.width?r.width:t.videoWidth||t.width,c=r&&r.height?r.height:t.videoHeight||t.height;return i||(i=r&&r.downScaledWidth?r.downScaledWidth:u,r=r&&r.downScaledHeight?r.downScaledHeight:c,o.width!==i&&(o.width=i),o.height!==r&&(o.height=r)),(r=o.getContext("2d",{alpha:!1})).imageSmoothingEnabled=!1,r.drawImage(t,s,a,u,c,0,0,o.width,o.height),[o,r]}static _loadImage(t){return rt(function*(){if(t instanceof Image)return yield e._awaitImageLoad(t),t;if(t instanceof HTMLVideoElement||t instanceof HTMLCanvasElement||t instanceof SVGImageElement||"OffscreenCanvas"in window&&t instanceof OffscreenCanvas||"ImageBitmap"in window&&t instanceof ImageBitmap)return t;if(!(t instanceof File||t instanceof Blob||t instanceof URL||"string"==typeof t))throw"Unsupported image type.";{let r=new Image;r.src=t instanceof File||t instanceof Blob?URL.createObjectURL(t):t.toString();try{return yield e._awaitImageLoad(r),r}finally{(t instanceof File||t instanceof Blob)&&URL.revokeObjectURL(r.src)}}})()}static _awaitImageLoad(t){return rt(function*(){t.complete&&0!==t.naturalWidth||(yield new Promise((r,o)=>{let i=s=>{t.removeEventListener("load",i),t.removeEventListener("error",i),s instanceof ErrorEvent?o("Image load error"):r()};t.addEventListener("load",i),t.addEventListener("error",i)}))})()}static _postWorkerMessage(t,r,o,i){return rt(function*(){return e._postWorkerMessageSync(yield t,r,o,i)})()}static _postWorkerMessageSync(t,r,o,i){if(!(t instanceof Worker))return-1;let s=e._workerMessageId++;return t.postMessage({id:s,type:r,data:o},i),s}}return e.DEFAULT_CANVAS_SIZE=400,e.NO_QR_CODE_FOUND="No QR code found",e._disableBarcodeDetector=!1,e._workerMessageId=0,e})(),iP=["video"];let sP=(()=>{class e{constructor(t){this.router=t}ngAfterViewInit(){this.videoEl&&this.videoEl.nativeElement&&this.readQRCode(this.videoEl.nativeElement)}ngOnDestroy(){this.videoEl&&this.videoEl.nativeElement&&this.stopStreaming(this.videoEl.nativeElement),this.stopScanning()}readQRCode(t){var r=this;return rt(function*(){const o=new M0(t,s=>{r.router.navigate(["open"],{state:{encrypted:s.data}})},{}),i=yield M0.listCameras();return yield o.setCamera(r.chooseCam(i).id),yield o.start(),Promise.resolve()})()}chooseCam(t){return 1===t.length?t[0]:t.find(r=>/back/.test(r.label))||t[0]}stopScanning(){this.scanning&&(this.scanning.stop(),this.scanning.destroy())}stopStreaming(t){if(t){const r=t.srcObject;r instanceof MediaStream&&r.getTracks().forEach(o=>o.stop())}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-scan-qrcode"]],viewQuery:function(r,o){if(1&r&&T1(iP,5,Jt),2&r){let i;Pf(i=function Bf(){return function MF(e,n){return e[Un].queries[n].queryList}(ee(),$p())}())&&(o.videoEl=i.first)}},decls:7,vars:0,consts:[["routerLink","/home","title","close","type","button",1,"circle-button","close-button"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M18 6l-12 12"],["d","M6 6l12 12"],["autoplay",""],["video",""]],template:function(r,o){1&r&&(Ne(0,"button",0),Vt(),Ne(1,"svg",1),nt(2,"path",2)(3,"path",3)(4,"path",4),Re()(),lr(),nt(5,"video",5,6))},dependencies:[Hr],styles:["video[_ngcontent-%COMP%]{background-color:#000;position:fixed;inset:0;z-index:49;height:100vh;width:100%}.close-button[_ngcontent-%COMP%]{position:fixed;top:5px;right:5px;z-index:50}"]})}return e})();function aP(e,n){1&e&&(Vt(),Ne(0,"svg",8),nt(1,"path",9)(2,"path",15),Re())}function uP(e,n){1&e&&(Ne(0,"span",16),Dt(1,"Invalid key"),Re())}let cP=(()=>{class e{constructor(t,r,o){this.fb=t,this.router=r,this.cryptService=o,this.invalidKey=!1}ngOnInit(){this.getEncryptedFromHistoryState(),this.initForm()}getEncryptedFromHistoryState(){this.encrypted=history.state.encrypted}initForm(){this.invalidKey=!1,this.form=this.fb.group({key:["",[r0.required.bind(this)]]})}unlock(){if(this.form.valid&&this.encrypted)try{const t=this.form.getRawValue(),r=this.cryptService.decrypt(this.encrypted,t.key);this.router.navigate(["/generate"],{state:{opened:r}}).catch(o=>console.error(o))}catch{this.invalidKey=!0}}static#e=this.\u0275fac=function(r){return new(r||e)(ne(NE),ne(Nt),ne(A0))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-decrypt-qrcode"]],decls:21,vars:5,consts:[[1,"main-icon"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",4,"ngIf"],["id","decryptForm","novalidate","","autocomplete","off",3,"formGroup","submit"],["formControlName","key","name","key","placeholder","insert the key","type","password","autocomplete","off",1,"field-key"],["key",""],["class","error-msg",4,"ngIf"],[1,"buttons"],["routerLink","/home","type","button",1,"btn"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","submit","form","decryptForm",1,"btn","btn-primary",3,"click"],["d","M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z"],["d","M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"],["d","M8 11v-5a4 4 0 0 1 8 0"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"error-msg"]],template:function(r,o){if(1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"div",0),fi(3,aP,3,0,"svg",1),Re(),Ne(4,"form",2),xt("submit",function(){return o.unlock()}),nt(5,"input",3,4),fi(7,uP,2,0,"span",5),Re(),Ne(8,"div",6)(9,"button",7),Vt(),Ne(10,"svg",8),nt(11,"path",9)(12,"path",10),Re(),Dt(13," Back "),Re(),lr(),Ne(14,"button",11),xt("click",function(){return o.unlock()}),Vt(),Ne(15,"svg",8),nt(16,"path",9)(17,"path",12)(18,"path",13)(19,"path",14),Re(),Dt(20," Unlock "),Re()()),2&r){const i=uf(6);tn(3),gn("ngIf",o.encrypted),tn(1),gn("formGroup",o.form),tn(1),pi("has-value",!!i.value),tn(2),gn("ngIf",o.invalidKey)}},dependencies:[fc,x0,sa,u0,c0,ha,Wc,Hr],styles:["[_nghost-%COMP%]{margin-top:2rem;display:flex;flex-direction:column;height:100%}.main-icon[_ngcontent-%COMP%]{flex:1 1 0px}.main-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:300px}.buttons[_ngcontent-%COMP%]{display:flex;margin:1rem 0;justify-content:space-between}"]})}return e})();const lP=function(){return["/scan"]},dP=function(){return["/generate"]};let fP=(()=>{class e{constructor(t){this.router=t}uploadPicture(){const t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","image/*"),t.click(),t.addEventListener("change",r=>{const o=t.files&&t.files[0]||null;o&&M0.scanImage(o).then(i=>this.router.navigate(["/open"],{state:{encrypted:i}})).catch(i=>console.error(i))})}static#e=this.\u0275fac=function(r){return new(r||e)(ne(Nt))};static#t=this.\u0275cmp=br({type:e,selectors:[["app-home"]],decls:38,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"main-icon"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M12 2c-.218 0 -.432 .002 -.642 .005l-.616 .017l-.299 .013l-.579 .034l-.553 .046c-4.785 .464 -6.732 2.411 -7.196 7.196l-.046 .553l-.034 .579c-.005 .098 -.01 .198 -.013 .299l-.017 .616l-.004 .318l-.001 .324c0 .218 .002 .432 .005 .642l.017 .616l.013 .299l.034 .579l.046 .553c.464 4.785 2.411 6.732 7.196 7.196l.553 .046l.579 .034c.098 .005 .198 .01 .299 .013l.616 .017l.642 .005l.642 -.005l.616 -.017l.299 -.013l.579 -.034l.553 -.046c4.785 -.464 6.732 -2.411 7.196 -7.196l.046 -.553l.034 -.579c.005 -.098 .01 -.198 .013 -.299l.017 -.616l.005 -.642l-.005 -.642l-.017 -.616l-.013 -.299l-.034 -.579l-.046 -.553c-.464 -4.785 -2.411 -6.732 -7.196 -7.196l-.553 -.046l-.579 -.034a28.058 28.058 0 0 0 -.299 -.013l-.616 -.017l-.318 -.004l-.324 -.001zm0 4a3 3 0 0 1 2.995 2.824l.005 .176v1a2 2 0 0 1 1.995 1.85l.005 .15v3a2 2 0 0 1 -1.85 1.995l-.15 .005h-6a2 2 0 0 1 -1.995 -1.85l-.005 -.15v-3a2 2 0 0 1 1.85 -1.995l.15 -.005v-1a3 3 0 0 1 3 -3zm3 6h-6v3h6v-3zm-3 -4a1 1 0 0 0 -.993 .883l-.007 .117v1h2v-1a1 1 0 0 0 -1 -1z","fill","currentColor","stroke-width","0"],[1,"space-between"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["d","M15 8h.01"],["d","M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5"],["d","M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5"],["d","M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526"],["d","M19 22v-6"],["d","M22 19l-3 -3l-3 3"],["type","button",1,"btn","btn-primary",3,"routerLink"],["d","M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"],["d","M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0"],["d","M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 17l0 .01"],["d","M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M7 7l0 .01"],["d","M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"],["d","M17 7l0 .01"],["d","M14 14l3 0"],["d","M20 14l0 .01"],["d","M14 14l0 3"],["d","M14 20l3 0"],["d","M17 17l3 0"],["d","M20 17l0 3"]],template:function(r,o){1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Vt(),Ne(2,"svg",0),nt(3,"path",1)(4,"path",2),Re(),lr(),nt(5,"div",3),Ne(6,"button",4),xt("click",function(){return o.uploadPicture()}),Vt(),Ne(7,"svg",5),nt(8,"path",1)(9,"path",6)(10,"path",7)(11,"path",8)(12,"path",9)(13,"path",10)(14,"path",11),Re(),Dt(15," Load QRCode\n"),Re(),lr(),Ne(16,"button",12),Vt(),Ne(17,"svg",5),nt(18,"path",1)(19,"path",13)(20,"path",14),Re(),Dt(21," Scan QRCode\n"),Re(),lr(),Ne(22,"button",12),Vt(),Ne(23,"svg",5),nt(24,"path",1)(25,"path",15)(26,"path",16)(27,"path",17)(28,"path",18)(29,"path",19)(30,"path",20)(31,"path",21)(32,"path",22)(33,"path",23)(34,"path",24)(35,"path",25)(36,"path",26),Re(),Dt(37," Generate QRCode\n"),Re()),2&r&&(tn(16),gn("routerLink",Uu(2,lP)),tn(6),gn("routerLink",Uu(3,dP)))},dependencies:[Hr],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;padding:1rem;flex-direction:column;box-sizing:border-box}[_nghost-%COMP%] .main-icon[_ngcontent-%COMP%]{width:100%;margin-top:1rem;height:200px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] button[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{margin-right:1rem}[_nghost-%COMP%] .space-between[_ngcontent-%COMP%]{flex:1 1 0px}"]})}return e})();var hP=E(8251);function pP(e,n){if(1&e){const t=function Pv(){return ee()}();Vt(),lr(),Ne(0,"button",8),xt("click",function(){return function Bp(e){return xe.lFrame.contextLView=e,e[at]}(t),function kp(e){return xe.lFrame.contextLView=null,e}(jv().share())}),Vt(),Ne(1,"svg",5),nt(2,"path",6)(3,"path",14)(4,"path",15)(5,"path",16)(6,"path",17)(7,"path",18),Re(),Dt(8," Share "),Re()}}const gP=function(){return["/home"]},mP=[{path:"home",component:fP},{path:"generate",component:oP},{path:"scan",component:sP},{path:"open",component:cP},{path:"share",component:(()=>{class e{constructor(){this.sharable=!!navigator.share}ngOnInit(){const t=history.state.encrypted,r=history.state.title,o=t?String(t):"",i=document.createElement("canvas");r?(i.setAttribute("height","750px"),i.setAttribute("width","500px")):(i.setAttribute("height","500px"),i.setAttribute("width","500px")),(0,hP.rT)(i,o,{margin:5},s=>{if(s)return void console.error(s);const a=i.getContext("2d");a&&r&&(a.fillStyle="#000",a.font='15px "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif',a.fillText(r,17,10)),setTimeout(()=>this.src=i.toDataURL("image/png"))})}getQrcodeAsBlob(){var t=this;return rt(function*(){return t.src?fetch(t.src).then(r=>r.blob()):Promise.resolve(null)})()}save(){var t=this;return rt(function*(){const r=yield t.getQrcodeAsBlob();if(!r)return Promise.resolve();const o=URL.createObjectURL(r),i=document.createElement("a");document.body.appendChild(i),i.href=o,i.download="private-qrcode.png",i.click(),URL.revokeObjectURL(o)})()}share(){var t=this;return rt(function*(){const r=yield t.getQrcodeAsBlob();return r?navigator.share({files:[new File([r],"image.png",{type:r.type})],title:"private qrcode"}):Promise.resolve()})()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["app-share-qrcode"]],decls:19,vars:4,consts:[[1,"space-between"],[3,"src"],["qrcode",""],[1,"buttons"],["type","button",1,"btn",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round"],["stroke","none","d","M0 0h24v24H0z","fill","none"],["d","M9 11l-4 4l4 4m-4 -4h11a4 4 0 0 0 0 -8h-1"],["type","button",1,"btn","btn-primary",3,"click"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor","fill","none","stroke-linecap","round","stroke-linejoin","round",1,"icon","icon-tabler","icon-tabler-device-floppy"],["d","M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"],["d","M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"],["d","M14 4l0 4l-6 0l0 -4"],["class","btn btn-primary","type","button",3,"click",4,"ngIf"],["d","M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"],["d","M8.7 10.7l6.6 -3.4"],["d","M8.7 13.3l6.6 3.4"]],template:function(r,o){1&r&&(Ne(0,"h1"),Dt(1,"Private QRCode"),Re(),Ne(2,"div",0),nt(3,"img",1,2),Re(),Ne(5,"div",3)(6,"button",4),Vt(),Ne(7,"svg",5),nt(8,"path",6)(9,"path",7),Re(),Dt(10," Back "),Re(),lr(),Ne(11,"button",8),xt("click",function(){return o.save()}),Vt(),Ne(12,"svg",9),nt(13,"path",6)(14,"path",10)(15,"path",11)(16,"path",12),Re(),Dt(17," Save "),Re(),fi(18,pP,9,0,"button",13),Re()),2&r&&(tn(3),gn("src",o.src,md),tn(3),gn("routerLink",Uu(3,gP)),tn(12),gn("ngIf",o.sharable))},dependencies:[fc,Hr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around}.space-between[_ngcontent-%COMP%]{flex:1 1 0}img[_ngcontent-%COMP%]{margin:3rem auto;display:block;background-color:#000;width:100%;max-width:450px}"]})}return e})()},{path:"",redirectTo:"home",pathMatch:"full"}];let vP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[go.forRoot(mP,{useHash:!0}),go]})}return e})(),yP=(()=>{class e{constructor(){this.title="private-qrcode"}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=br({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(r,o){1&r&&nt(0,"router-outlet")},dependencies:[Qh]})}return e})(),xP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,RE,go]})}return e})(),DP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go,RE]})}return e})(),CP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})(),EP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})(),_P=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[A0],imports:[co]})}return e})(),wP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({imports:[co,go]})}return e})();const bP=["addListener","removeListener"],AP=["addEventListener","removeEventListener"],MP=["on","off"];function qc(e,n,t,r){if(p(t)&&(r=t,t=void 0),r)return qc(e,n,t).pipe(Fh(r));const[o,i]=function FP(e){return p(e.addEventListener)&&p(e.removeEventListener)}(e)?AP.map(s=>a=>e[s](n,a,t)):function SP(e){return p(e.addListener)&&p(e.removeListener)}(e)?bP.map(PE(e,n)):function IP(e){return p(e.on)&&p(e.off)}(e)?MP.map(PE(e,n)):[];if(!o&&Pi(e))return ft(s=>qc(s,n,t))(mt(e));if(!o)throw new TypeError("Invalid event target");return new se(s=>{const a=(...u)=>s.next(1i(a)})}function PE(e,n){return t=>r=>e[t](n,r)}const Gr=new se(M),NP={connector:()=>new K};function BE(e,n=NP){const{connector:t}=n;return ge((r,o)=>{const i=t();mt(e(function TP(e){return new se(n=>e.subscribe(n))}(i))).subscribe(o),o.add(r.subscribe(i))})}class PP extends b{constructor(n,t){super()}schedule(n,t=0){return this}}const Qc={setInterval(e,n,...t){const{delegate:r}=Qc;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Qc;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},kE={now:()=>(kE.delegate||Date).now(),delegate:void 0};class pa{constructor(n,t=pa.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}pa.now=kE.now;const LE=new class kP extends pa{constructor(n,t=pa.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class BP extends PP{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Qc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Qc.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}),LP=LE;function VE(e,n){return n?t=>Us(n.pipe(on(1),function VP(){return ge((e,n)=>{e.subscribe(Te(n,M))})}()),t.pipe(VE(e))):ft((t,r)=>mt(e(t,r)).pipe(on(1),MD(t)))}const ga="Service workers are disabled or not supported by this browser";class Zc{constructor(n){if(this.serviceWorker=n,n){const r=qc(n,"controllerchange").pipe(me(()=>n.controller)),i=Us(vc(()=>ve(n.controller)),r);this.worker=i.pipe(sn(l=>!!l)),this.registration=this.worker.pipe(qt(()=>n.getRegistration()));const c=qc(n,"message").pipe(me(l=>l.data)).pipe(sn(l=>l&&l.type)).pipe(function OP(e){return e?n=>BE(e)(n):n=>function RP(e,n){const t=p(e)?e:()=>e;return p(n)?BE(n,{connector:t}):r=>new Rh(r,t)}(new K)(n)}());c.connect(),this.events=c}else this.worker=this.events=this.registration=function UP(e){return vc(()=>Ci(new Error(e)))}(ga)}postMessage(n,t){return this.worker.pipe(on(1),Mt(r=>{r.postMessage({action:n,...t})})).toPromise().then(()=>{})}postMessageWithOperation(n,t,r){const o=this.waitForOperationCompleted(r),i=this.postMessage(n,t);return Promise.all([i,o]).then(([,s])=>s)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(n){let t;return t="string"==typeof n?r=>r.type===n:r=>n.includes(r.type),this.events.pipe(sn(t))}nextEventOfType(n){return this.eventsOfType(n).pipe(on(1))}waitForOperationCompleted(n){return this.eventsOfType("OPERATION_COMPLETED").pipe(sn(t=>t.nonce===n),on(1),me(t=>{if(void 0!==t.result)return t.result;throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let HE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,this.pushManager=null,this.subscriptionChanges=new K,!t.isEnabled)return this.messages=Gr,this.notificationClicks=Gr,void(this.subscription=Gr);this.messages=this.sw.eventsOfType("PUSH").pipe(me(o=>o.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(me(o=>o.data)),this.pushManager=this.sw.registration.pipe(me(o=>o.pushManager));const r=this.pushManager.pipe(qt(o=>o.getSubscription()));this.subscription=ol(r,this.subscriptionChanges)}requestSubscription(t){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(ga));const r={userVisibleOnly:!0};let o=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(o.length));for(let s=0;ss.subscribe(r)),on(1)).toPromise().then(s=>(this.subscriptionChanges.next(s),s))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(on(1),qt(r=>{if(null===r)throw new Error("Not subscribed to push notifications.");return r.unsubscribe().then(o=>{if(!o)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(ga))}decodeBase64(t){return atob(t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Zc))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})(),jE=(()=>{class e{get isEnabled(){return this.sw.isEnabled}constructor(t){if(this.sw=t,!t.isEnabled)return this.versionUpdates=Gr,this.available=Gr,this.activated=Gr,void(this.unrecoverable=Gr);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe(sn(r=>"VERSION_READY"===r.type),me(r=>({type:"UPDATE_AVAILABLE",current:r.currentVersion,available:r.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ga));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(ga));const t=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:t},t)}static#e=this.\u0275fac=function(r){return new(r||e)(pe(Zc))};static#t=this.\u0275prov=fe({token:e,factory:e.\u0275fac})}return e})();const $E=new ce("NGSW_REGISTER_SCRIPT");function zP(e,n,t,r){return()=>{if(!eD(r)||!("serviceWorker"in navigator)||!1===t.enabled)return;let o;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof t.registrationStrategy)o=t.registrationStrategy();else{const[s,...a]=(t.registrationStrategy||"registerWhenStable:30000").split(":");switch(s){case"registerImmediately":o=ve(null);break;case"registerWithDelay":o=UE(+a[0]||0);break;case"registerWhenStable":o=a[0]?ol(zE(e),UE(+a[0])):zE(e);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${t.registrationStrategy}`)}}e.get(We).runOutsideAngular(()=>o.pipe(on(1)).subscribe(()=>navigator.serviceWorker.register(n,{scope:t.scope}).catch(s=>console.error("Service worker registration failed with:",s))))}}function UE(e){return ve(null).pipe(function $P(e,n=LE){const t=function jP(e=0,n,t=LP){let r=-1;return null!=n&&(N0(n)?t=n:r=n),new se(o=>{let i=function HP(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(e,n);return VE(()=>t)}(e))}function zE(e){return e.get(so).isStable.pipe(sn(t=>t))}function GP(e,n){return new Zc(eD(n)&&!1!==e.enabled?navigator.serviceWorker:void 0)}class S0{}function WP(e,n={}){return function yd(e){return{\u0275providers:e}}([HE,jE,{provide:$E,useValue:e},{provide:S0,useValue:n},{provide:Zc,useFactory:GP,deps:[S0,Rr]},{provide:qu,useFactory:zP,deps:[en,$E,S0,Rr],multi:!0}])}let qP=(()=>{class e{static register(t,r={}){return{ngModule:e,providers:[WP(t,r)]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e});static#n=this.\u0275inj=yt({providers:[HE,jE]})}return e})(),QP=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=Ct({type:e,bootstrap:[yP]});static#n=this.\u0275inj=yt({imports:[wN,vP,CP,xP,DP,wP,EP,_P,qP.register("ngsw-worker.js",{enabled:!0,registrationStrategy:"registerWhenStable:30000"})]})}return e})();EN().bootstrapModule(QP).catch(e=>console.error(e))},8042:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.BlockCipher,b=f.algo,y=[],F=[],h=[],C=[],T=[],_=[],M=[],x=[],I=[],S=[];!function(){for(var D=[],w=0;w<256;w++)D[w]=w<128?w<<1:w<<1^283;var O=0,k=0;for(w=0;w<256;w++){var H=k^k<<1^k<<2^k<<3^k<<4;y[O]=H=H>>>8^255&H^99,F[H]=O;var U,P=D[O],q=D[P],j=D[q];h[O]=(U=257*D[H]^16843008*H)<<24|U>>>8,C[O]=U<<16|U>>>16,T[O]=U<<8|U>>>24,_[O]=U,M[H]=(U=16843009*j^65537*q^257*P^16843008*O)<<24|U>>>8,x[H]=U<<16|U>>>16,I[H]=U<<8|U>>>24,S[H]=U,O?(O=P^D[D[D[j^P]]],k^=D[D[k]]):O=k=1}}();var L=[0,1,2,4,8,16,32,64,128,27,54],R=b.AES=m.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var w=this._keyPriorReset=this._key,O=w.words,k=w.sigBytes/4,P=4*((this._nRounds=k+6)+1),q=this._keySchedule=[],j=0;j6&&j%k==4&&(D=y[D>>>24]<<24|y[D>>>16&255]<<16|y[D>>>8&255]<<8|y[255&D]):(D=y[(D=D<<8|D>>>24)>>>24]<<24|y[D>>>16&255]<<16|y[D>>>8&255]<<8|y[255&D],D^=L[j/k|0]<<24),q[j]=q[j-k]^D);for(var U=this._invKeySchedule=[],J=0;J>>24]]^x[y[D>>>16&255]]^I[y[D>>>8&255]]^S[y[255&D]]}}},encryptBlock:function(D,w){this._doCryptBlock(D,w,this._keySchedule,h,C,T,_,y)},decryptBlock:function(D,w){var O=D[w+1];D[w+1]=D[w+3],D[w+3]=O,this._doCryptBlock(D,w,this._invKeySchedule,M,x,I,S,F),O=D[w+1],D[w+1]=D[w+3],D[w+3]=O},_doCryptBlock:function(D,w,O,k,H,P,q,j){for(var U=this._nRounds,J=D[w]^O[0],V=D[w+1]^O[1],$=D[w+2]^O[2],Q=D[w+3]^O[3],W=4,de=1;de>>24]^H[V>>>16&255]^P[$>>>8&255]^q[255&Q]^O[W++],Ee=k[V>>>24]^H[$>>>16&255]^P[Q>>>8&255]^q[255&J]^O[W++],Fe=k[$>>>24]^H[Q>>>16&255]^P[J>>>8&255]^q[255&V]^O[W++],Y=k[Q>>>24]^H[J>>>16&255]^P[V>>>8&255]^q[255&$]^O[W++];J=se,V=Ee,$=Fe,Q=Y}se=(j[J>>>24]<<24|j[V>>>16&255]<<16|j[$>>>8&255]<<8|j[255&Q])^O[W++],Ee=(j[V>>>24]<<24|j[$>>>16&255]<<16|j[Q>>>8&255]<<8|j[255&J])^O[W++],Fe=(j[$>>>24]<<24|j[Q>>>16&255]<<16|j[J>>>8&255]<<8|j[255&V])^O[W++],Y=(j[Q>>>24]<<24|j[J>>>16&255]<<16|j[V>>>8&255]<<8|j[255&$])^O[W++],D[w]=se,D[w+1]=Ee,D[w+2]=Fe,D[w+3]=Y},keySize:8});f.AES=m._createHelper(R)}(),p.AES)},9172:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.BlockCipher;const y=16,F=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],h=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var C={pbox:[],sbox:[]};function T(S,L){let k=S.sbox[0][L>>24&255]+S.sbox[1][L>>16&255];return k^=S.sbox[2][L>>8&255],k+=S.sbox[3][255&L],k}function _(S,L,R){let O,D=L,w=R;for(let k=0;k=R&&(D=0);let w=0,O=0,k=0;for(let H=0;H1;--k)D^=S.pbox[k],w=T(S,D)^w,O=D,D=w,w=O;return O=D,D=w,w=O,w^=S.pbox[1],D^=S.pbox[0],{left:D,right:w}}(C,S[L],S[L+1]);S[L]=R.left,S[L+1]=R.right},blockSize:2,keySize:4,ivSize:2});f.Blowfish=m._createHelper(I)}(),p.Blowfish)},3270:function(Z,N,E){var g,m,b,y,F,h,T,M,x,S,L,R,w,k,P,q,U,J,p;Z.exports=(p=E(12),E(2066),void(p.lib.Cipher||(g=p,m=g.lib,b=m.Base,y=m.WordArray,F=m.BufferedBlockAlgorithm,h=g.enc,T=h.Base64,M=g.algo.EvpKDF,x=m.Cipher=F.extend({cfg:b.extend(),createEncryptor:function(V,$){return this.create(this._ENC_XFORM_MODE,V,$)},createDecryptor:function(V,$){return this.create(this._DEC_XFORM_MODE,V,$)},init:function(V,$,Q){this.cfg=this.cfg.extend(Q),this._xformMode=V,this._key=$,this.reset()},reset:function(){F.reset.call(this),this._doReset()},process:function(V){return this._append(V),this._process()},finalize:function(V){return V&&this._append(V),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function V($){return"string"==typeof $?J:q}return function($){return{encrypt:function(Q,W,de){return V(W).encrypt($,Q,W,de)},decrypt:function(Q,W,de){return V(W).decrypt($,Q,W,de)}}}}()}),m.StreamCipher=x.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),S=g.mode={},L=m.BlockCipherMode=b.extend({createEncryptor:function(V,$){return this.Encryptor.create(V,$)},createDecryptor:function(V,$){return this.Decryptor.create(V,$)},init:function(V,$){this._cipher=V,this._iv=$}}),R=S.CBC=function(){var V=L.extend();function $(Q,W,de){var se,Ee=this._iv;Ee?(se=Ee,this._iv=undefined):se=this._prevBlock;for(var Fe=0;Fe>>2]}},m.BlockCipher=x.extend({cfg:x.cfg.extend({mode:R,padding:w}),reset:function(){var V;x.reset.call(this);var $=this.cfg,Q=$.iv,W=$.mode;this._xformMode==this._ENC_XFORM_MODE?V=W.createEncryptor:(V=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==V?this._mode.init(this,Q&&Q.words):(this._mode=V.call(W,this,Q&&Q.words),this._mode.__creator=V)},_doProcessBlock:function(V,$){this._mode.processBlock(V,$)},_doFinalize:function(){var V,$=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?($.pad(this._data,this.blockSize),V=this._process(!0)):(V=this._process(!0),$.unpad(V)),V},blockSize:4}),k=m.CipherParams=b.extend({init:function(V){this.mixIn(V)},toString:function(V){return(V||this.formatter).stringify(this)}}),P=(g.format={}).OpenSSL={stringify:function(V){var Q=V.ciphertext,W=V.salt;return(W?y.create([1398893684,1701076831]).concat(W).concat(Q):Q).toString(T)},parse:function(V){var $,Q=T.parse(V),W=Q.words;return 1398893684==W[0]&&1701076831==W[1]&&($=y.create(W.slice(2,4)),W.splice(0,4),Q.sigBytes-=16),k.create({ciphertext:Q,salt:$})}},q=m.SerializableCipher=b.extend({cfg:b.extend({format:P}),encrypt:function(V,$,Q,W){W=this.cfg.extend(W);var de=V.createEncryptor(Q,W),se=de.finalize($),Ee=de.cfg;return k.create({ciphertext:se,key:Q,iv:Ee.iv,algorithm:V,mode:Ee.mode,padding:Ee.padding,blockSize:V.blockSize,formatter:W.format})},decrypt:function(V,$,Q,W){return W=this.cfg.extend(W),$=this._parse($,W.format),V.createDecryptor(Q,W).finalize($.ciphertext)},_parse:function(V,$){return"string"==typeof V?$.parse(V,this):V}}),U=(g.kdf={}).OpenSSL={execute:function(V,$,Q,W,de){if(W||(W=y.random(8)),de)var se=M.create({keySize:$+Q,hasher:de}).compute(V,W);else se=M.create({keySize:$+Q}).compute(V,W);var Ee=y.create(se.words.slice($),4*Q);return se.sigBytes=4*$,k.create({key:se,iv:Ee,salt:W})}},J=m.PasswordBasedCipher=q.extend({cfg:q.cfg.extend({kdf:U}),encrypt:function(V,$,Q,W){var de=(W=this.cfg.extend(W)).kdf.execute(Q,V.keySize,V.ivSize,W.salt,W.hasher);W.iv=de.iv;var se=q.encrypt.call(this,V,$,de.key,W);return se.mixIn(de),se},decrypt:function(V,$,Q,W){W=this.cfg.extend(W),$=this._parse($,W.format);var de=W.kdf.execute(Q,V.keySize,V.ivSize,$.salt,W.hasher);return W.iv=de.iv,q.decrypt.call(this,V,$,de.key,W)}}))))},12:function(Z,N,E){var p;Z.exports=(p=p||function(f,g){var m;if(typeof window<"u"&&window.crypto&&(m=window.crypto),typeof self<"u"&&self.crypto&&(m=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window<"u"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof global<"u"&&global.crypto&&(m=global.crypto),!m)try{m=E(2480)}catch{}var b=function(){if(m){if("function"==typeof m.getRandomValues)try{return m.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof m.randomBytes)try{return m.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},y=Object.create||function(){function D(){}return function(w){var O;return D.prototype=w,O=new D,D.prototype=null,O}}(),F={},h=F.lib={},C=h.Base={extend:function(D){var w=y(this);return D&&w.mixIn(D),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var D=this.extend();return D.init.apply(D,arguments),D},init:function(){},mixIn:function(D){for(var w in D)D.hasOwnProperty(w)&&(this[w]=D[w]);D.hasOwnProperty("toString")&&(this.toString=D.toString)},clone:function(){return this.init.prototype.extend(this)}},T=h.WordArray=C.extend({init:function(D,w){D=this.words=D||[],this.sigBytes=null!=w?w:4*D.length},toString:function(D){return(D||M).stringify(this)},concat:function(D){var w=this.words,O=D.words,k=this.sigBytes,H=D.sigBytes;if(this.clamp(),k%4)for(var P=0;P>>2]|=(O[P>>>2]>>>24-P%4*8&255)<<24-(k+P)%4*8;else for(var j=0;j>>2]=O[j>>>2];return this.sigBytes+=H,this},clamp:function(){var D=this.words,w=this.sigBytes;D[w>>>2]&=4294967295<<32-w%4*8,D.length=f.ceil(w/4)},clone:function(){var D=C.clone.call(this);return D.words=this.words.slice(0),D},random:function(D){for(var w=[],O=0;O>>2]>>>24-H%4*8&255;k.push((P>>>4).toString(16)),k.push((15&P).toString(16))}return k.join("")},parse:function(D){for(var w=D.length,O=[],k=0;k>>3]|=parseInt(D.substr(k,2),16)<<24-k%8*4;return new T.init(O,w/2)}},x=_.Latin1={stringify:function(D){for(var w=D.words,O=D.sigBytes,k=[],H=0;H>>2]>>>24-H%4*8&255));return k.join("")},parse:function(D){for(var w=D.length,O=[],k=0;k>>2]|=(255&D.charCodeAt(k))<<24-k%4*8;return new T.init(O,w)}},I=_.Utf8={stringify:function(D){try{return decodeURIComponent(escape(x.stringify(D)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(D){return x.parse(unescape(encodeURIComponent(D)))}},S=h.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new T.init,this._nDataBytes=0},_append:function(D){"string"==typeof D&&(D=I.parse(D)),this._data.concat(D),this._nDataBytes+=D.sigBytes},_process:function(D){var w,O=this._data,k=O.words,H=O.sigBytes,P=this.blockSize,j=H/(4*P),U=(j=D?f.ceil(j):f.max((0|j)-this._minBufferSize,0))*P,J=f.min(4*U,H);if(U){for(var V=0;V>>2]>>>24-x%4*8&255)<<16|(C[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|C[x+2>>>2]>>>24-(x+2)%4*8&255,D=0;D<4&&x+.75*D>>6*(3-D)&63));var w=_.charAt(64);if(w)for(;M.length%4;)M.push(w);return M.join("")},parse:function(h){var C=h.length,T=this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var M=0;M>>6-x%4*2;_[M>>>2]|=(I|S)<<24-M%4*8,M++}return m.create(_,M)}(h,C,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},p.enc.Base64)},7523:function(Z,N,E){var p,m;Z.exports=(p=E(12),m=p.lib.WordArray,p.enc.Base64url={stringify:function(h,C){void 0===C&&(C=!0);var T=h.words,_=h.sigBytes,M=C?this._safe_map:this._map;h.clamp();for(var x=[],I=0;I<_;I+=3)for(var D=(T[I>>>2]>>>24-I%4*8&255)<<16|(T[I+1>>>2]>>>24-(I+1)%4*8&255)<<8|T[I+2>>>2]>>>24-(I+2)%4*8&255,w=0;w<4&&I+.75*w<_;w++)x.push(M.charAt(D>>>6*(3-w)&63));var O=M.charAt(64);if(O)for(;x.length%4;)x.push(O);return x.join("")},parse:function(h,C){void 0===C&&(C=!0);var T=h.length,_=C?this._safe_map:this._map,M=this._reverseMap;if(!M){M=this._reverseMap=[];for(var x=0;x<_.length;x++)M[_.charCodeAt(x)]=x}var I=_.charAt(64);if(I){var S=h.indexOf(I);-1!==S&&(T=S)}return function F(h,C,T){for(var _=[],M=0,x=0;x>>6-x%4*2;_[M>>>2]|=(I|S)<<24-M%4*8,M++}return m.create(_,M)}(h,T,M)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},p.enc.Base64url)},2454:function(Z,N,E){var p;Z.exports=(p=E(12),function(){var m=p.lib.WordArray,b=p.enc;function F(h){return h<<8&4278255360|h>>>8&16711935}b.Utf16=b.Utf16BE={stringify:function(h){for(var C=h.words,T=h.sigBytes,_=[],M=0;M>>2]>>>16-M%4*8&65535));return _.join("")},parse:function(h){for(var C=h.length,T=[],_=0;_>>1]|=h.charCodeAt(_)<<16-_%2*16;return m.create(T,2*C)}},b.Utf16LE={stringify:function(h){for(var C=h.words,T=h.sigBytes,_=[],M=0;M>>2]>>>16-M%4*8&65535);_.push(String.fromCharCode(x))}return _.join("")},parse:function(h){for(var C=h.length,T=[],_=0;_>>1]|=F(h.charCodeAt(_)<<16-_%2*16);return m.create(T,2*C)}}}(),p.enc.Utf16)},2066:function(Z,N,E){var f,g,m,b,y,h,p;Z.exports=(p=E(12),E(4446),E(990),b=(g=(f=p).lib).WordArray,h=(y=f.algo).EvpKDF=(m=g.Base).extend({cfg:m.extend({keySize:4,hasher:y.MD5,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,T){for(var _,M=this.cfg,x=M.hasher.create(),I=b.create(),S=I.words,L=M.keySize,R=M.iterations;S.lengthM&&(T=C.finalize(T)),T.clamp();for(var x=this._oKey=T.clone(),I=this._iKey=T.clone(),S=x.words,L=I.words,R=0;R<_;R++)S[R]^=1549556828,L[R]^=909522486;x.sigBytes=I.sigBytes=M,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var T=this._hasher,_=T.finalize(C);return T.reset(),T.finalize(this._oKey.clone().concat(_))}})))},7874:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),E(4037),E(2454),E(5506),E(7523),E(2873),E(4446),E(2078),E(9811),E(4870),E(2913),E(6545),E(5558),E(990),E(3538),E(2066),E(3270),E(5228),E(3392),E(3584),E(2015),E(5594),E(7237),E(8501),E(4004),E(3297),E(2738),E(2826),E(8042),E(5769),E(1195),E(4969),E(7848),E(9172),p)},4037:function(Z,N,E){var p;Z.exports=(p=E(12),function(){if("function"==typeof ArrayBuffer){var m=p.lib.WordArray,b=m.init,y=m.init=function(F){if(F instanceof ArrayBuffer&&(F=new Uint8Array(F)),(F instanceof Int8Array||typeof Uint8ClampedArray<"u"&&F instanceof Uint8ClampedArray||F instanceof Int16Array||F instanceof Uint16Array||F instanceof Int32Array||F instanceof Uint32Array||F instanceof Float32Array||F instanceof Float64Array)&&(F=new Uint8Array(F.buffer,F.byteOffset,F.byteLength)),F instanceof Uint8Array){for(var h=F.byteLength,C=[],T=0;T>>2]|=F[T]<<24-T%4*8;b.call(this,C,h)}else b.apply(this,arguments)};y.prototype=m}}(),p.lib.WordArray)},2873:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=[];!function(){for(var I=0;I<64;I++)h[I]=4294967296*f.abs(f.sin(I+1))|0}();var C=F.MD5=y.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(I,S){for(var L=0;L<16;L++){var R=S+L,D=I[R];I[R]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}var w=this._hash.words,O=I[S+0],k=I[S+1],H=I[S+2],P=I[S+3],q=I[S+4],j=I[S+5],U=I[S+6],J=I[S+7],V=I[S+8],$=I[S+9],Q=I[S+10],W=I[S+11],de=I[S+12],se=I[S+13],Ee=I[S+14],Fe=I[S+15],Y=w[0],re=w[1],K=w[2],te=w[3];Y=T(Y,re,K,te,O,7,h[0]),te=T(te,Y,re,K,k,12,h[1]),K=T(K,te,Y,re,H,17,h[2]),re=T(re,K,te,Y,P,22,h[3]),Y=T(Y,re,K,te,q,7,h[4]),te=T(te,Y,re,K,j,12,h[5]),K=T(K,te,Y,re,U,17,h[6]),re=T(re,K,te,Y,J,22,h[7]),Y=T(Y,re,K,te,V,7,h[8]),te=T(te,Y,re,K,$,12,h[9]),K=T(K,te,Y,re,Q,17,h[10]),re=T(re,K,te,Y,W,22,h[11]),Y=T(Y,re,K,te,de,7,h[12]),te=T(te,Y,re,K,se,12,h[13]),K=T(K,te,Y,re,Ee,17,h[14]),Y=_(Y,re=T(re,K,te,Y,Fe,22,h[15]),K,te,k,5,h[16]),te=_(te,Y,re,K,U,9,h[17]),K=_(K,te,Y,re,W,14,h[18]),re=_(re,K,te,Y,O,20,h[19]),Y=_(Y,re,K,te,j,5,h[20]),te=_(te,Y,re,K,Q,9,h[21]),K=_(K,te,Y,re,Fe,14,h[22]),re=_(re,K,te,Y,q,20,h[23]),Y=_(Y,re,K,te,$,5,h[24]),te=_(te,Y,re,K,Ee,9,h[25]),K=_(K,te,Y,re,P,14,h[26]),re=_(re,K,te,Y,V,20,h[27]),Y=_(Y,re,K,te,se,5,h[28]),te=_(te,Y,re,K,H,9,h[29]),K=_(K,te,Y,re,J,14,h[30]),Y=M(Y,re=_(re,K,te,Y,de,20,h[31]),K,te,j,4,h[32]),te=M(te,Y,re,K,V,11,h[33]),K=M(K,te,Y,re,W,16,h[34]),re=M(re,K,te,Y,Ee,23,h[35]),Y=M(Y,re,K,te,k,4,h[36]),te=M(te,Y,re,K,q,11,h[37]),K=M(K,te,Y,re,J,16,h[38]),re=M(re,K,te,Y,Q,23,h[39]),Y=M(Y,re,K,te,se,4,h[40]),te=M(te,Y,re,K,O,11,h[41]),K=M(K,te,Y,re,P,16,h[42]),re=M(re,K,te,Y,U,23,h[43]),Y=M(Y,re,K,te,$,4,h[44]),te=M(te,Y,re,K,de,11,h[45]),K=M(K,te,Y,re,Fe,16,h[46]),Y=x(Y,re=M(re,K,te,Y,H,23,h[47]),K,te,O,6,h[48]),te=x(te,Y,re,K,J,10,h[49]),K=x(K,te,Y,re,Ee,15,h[50]),re=x(re,K,te,Y,j,21,h[51]),Y=x(Y,re,K,te,de,6,h[52]),te=x(te,Y,re,K,P,10,h[53]),K=x(K,te,Y,re,Q,15,h[54]),re=x(re,K,te,Y,k,21,h[55]),Y=x(Y,re,K,te,V,6,h[56]),te=x(te,Y,re,K,Fe,10,h[57]),K=x(K,te,Y,re,U,15,h[58]),re=x(re,K,te,Y,se,21,h[59]),Y=x(Y,re,K,te,q,6,h[60]),te=x(te,Y,re,K,W,10,h[61]),K=x(K,te,Y,re,H,15,h[62]),re=x(re,K,te,Y,$,21,h[63]),w[0]=w[0]+Y|0,w[1]=w[1]+re|0,w[2]=w[2]+K|0,w[3]=w[3]+te|0},_doFinalize:function(){var I=this._data,S=I.words,L=8*this._nDataBytes,R=8*I.sigBytes;S[R>>>5]|=128<<24-R%32;var D=f.floor(L/4294967296),w=L;S[15+(R+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),S[14+(R+64>>>9<<4)]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8),I.sigBytes=4*(S.length+1),this._process();for(var O=this._hash,k=O.words,H=0;H<4;H++){var P=k[H];k[H]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8)}return O},clone:function(){var I=y.clone.call(this);return I._hash=this._hash.clone(),I}});function T(I,S,L,R,D,w,O){var k=I+(S&L|~S&R)+D+O;return(k<>>32-w)+S}function _(I,S,L,R,D,w,O){var k=I+(S&R|L&~R)+D+O;return(k<>>32-w)+S}function M(I,S,L,R,D,w,O){var k=I+(S^L^R)+D+O;return(k<>>32-w)+S}function x(I,S,L,R,D,w,O){var k=I+(L^(S|~R))+D+O;return(k<>>32-w)+S}g.MD5=y._createHelper(C),g.HmacMD5=y._createHmacHelper(C)}(Math),p.MD5)},5228:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.mode.CFB=function(){var f=p.lib.BlockCipherMode.extend();function g(m,b,y,F){var h,C=this._iv;C?(h=C.slice(0),this._iv=void 0):h=this._prevBlock,F.encryptBlock(h,0);for(var T=0;T>24&255)){var F=y>>16&255,h=y>>8&255,C=255&y;255===F?(F=0,255===h?(h=0,255===C?C=0:++C):++h):++F,y=0,y+=F<<16,y+=h<<8,y+=C}else y+=1<<24;return y}var b=f.Encryptor=f.extend({processBlock:function(y,F){var h=this._cipher,C=h.blockSize,T=this._iv,_=this._counter;T&&(_=this._counter=T.slice(0),this._iv=void 0),function m(y){return 0===(y[0]=g(y[0]))&&(y[1]=g(y[1])),y}(_);var M=_.slice(0);h.encryptBlock(M,0);for(var x=0;x>>2]|=y<<24-F%4*8,f.sigBytes+=y},unpad:function(f){f.sigBytes-=255&f.words[f.sigBytes-1>>>2]}},p.pad.Ansix923)},8501:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.Iso10126={pad:function(f,g){var m=4*g,b=m-f.sigBytes%m;f.concat(p.lib.WordArray.random(b-1)).concat(p.lib.WordArray.create([b<<24],1))},unpad:function(f){f.sigBytes-=255&f.words[f.sigBytes-1>>>2]}},p.pad.Iso10126)},4004:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.Iso97971={pad:function(f,g){f.concat(p.lib.WordArray.create([2147483648],1)),p.pad.ZeroPadding.pad(f,g)},unpad:function(f){p.pad.ZeroPadding.unpad(f),f.sigBytes--}},p.pad.Iso97971)},2738:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.NoPadding={pad:function(){},unpad:function(){}},p.pad.NoPadding)},3297:function(Z,N,E){var p;Z.exports=(p=E(12),E(3270),p.pad.ZeroPadding={pad:function(f,g){var m=4*g;f.clamp(),f.sigBytes+=m-(f.sigBytes%m||m)},unpad:function(f){var g=f.words,m=f.sigBytes-1;for(m=f.sigBytes-1;m>=0;m--)if(g[m>>>2]>>>24-m%4*8&255){f.sigBytes=m+1;break}}},p.pad.ZeroPadding)},3538:function(Z,N,E){var f,g,m,b,y,h,C,p;Z.exports=(p=E(12),E(2078),E(990),b=(g=(f=p).lib).WordArray,h=(y=f.algo).HMAC,C=y.PBKDF2=(m=g.Base).extend({cfg:m.extend({keySize:4,hasher:y.SHA256,iterations:25e4}),init:function(T){this.cfg=this.cfg.extend(T)},compute:function(T,_){for(var M=this.cfg,x=h.create(M.hasher,T),I=b.create(),S=b.create([1]),L=I.words,R=S.words,D=M.keySize,w=M.iterations;L.length>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],I=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];this._b=0;for(var S=0;S<4;S++)T.call(this);for(S=0;S<8;S++)I[S]^=x[S+4&7];if(M){var L=M.words,R=L[0],D=L[1],w=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),O=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),k=w>>>16|4294901760&O,H=O<<16|65535&w;for(I[0]^=w,I[1]^=k,I[2]^=O,I[3]^=H,I[4]^=w,I[5]^=k,I[6]^=O,I[7]^=H,S=0;S<4;S++)T.call(this)}},_doProcessBlock:function(_,M){var x=this._X;T.call(this),y[0]=x[0]^x[5]>>>16^x[3]<<16,y[1]=x[2]^x[7]>>>16^x[5]<<16,y[2]=x[4]^x[1]>>>16^x[7]<<16,y[3]=x[6]^x[3]>>>16^x[1]<<16;for(var I=0;I<4;I++)y[I]=16711935&(y[I]<<8|y[I]>>>24)|4278255360&(y[I]<<24|y[I]>>>8),_[M+I]^=y[I]},blockSize:4,ivSize:2});function T(){for(var _=this._X,M=this._C,x=0;x<8;x++)F[x]=M[x];for(M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0>>0?1:0)|0,this._b=M[7]>>>0>>0?1:0,x=0;x<8;x++){var I=_[x]+M[x],S=65535&I,L=I>>>16;h[x]=((S*S>>>17)+S*L>>>15)+L*L^((4294901760&I)*I|0)+((65535&I)*I|0)}_[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,_[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,_[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,_[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,_[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,_[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,_[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,_[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}f.RabbitLegacy=m._createHelper(C)}(),p.RabbitLegacy)},4969:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.StreamCipher,y=[],F=[],h=[],C=f.algo.Rabbit=m.extend({_doReset:function(){for(var _=this._key.words,M=this.cfg.iv,x=0;x<4;x++)_[x]=16711935&(_[x]<<8|_[x]>>>24)|4278255360&(_[x]<<24|_[x]>>>8);var I=this._X=[_[0],_[3]<<16|_[2]>>>16,_[1],_[0]<<16|_[3]>>>16,_[2],_[1]<<16|_[0]>>>16,_[3],_[2]<<16|_[1]>>>16],S=this._C=[_[2]<<16|_[2]>>>16,4294901760&_[0]|65535&_[1],_[3]<<16|_[3]>>>16,4294901760&_[1]|65535&_[2],_[0]<<16|_[0]>>>16,4294901760&_[2]|65535&_[3],_[1]<<16|_[1]>>>16,4294901760&_[3]|65535&_[0]];for(this._b=0,x=0;x<4;x++)T.call(this);for(x=0;x<8;x++)S[x]^=I[x+4&7];if(M){var L=M.words,R=L[0],D=L[1],w=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),O=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),k=w>>>16|4294901760&O,H=O<<16|65535&w;for(S[0]^=w,S[1]^=k,S[2]^=O,S[3]^=H,S[4]^=w,S[5]^=k,S[6]^=O,S[7]^=H,x=0;x<4;x++)T.call(this)}},_doProcessBlock:function(_,M){var x=this._X;T.call(this),y[0]=x[0]^x[5]>>>16^x[3]<<16,y[1]=x[2]^x[7]>>>16^x[5]<<16,y[2]=x[4]^x[1]>>>16^x[7]<<16,y[3]=x[6]^x[3]>>>16^x[1]<<16;for(var I=0;I<4;I++)y[I]=16711935&(y[I]<<8|y[I]>>>24)|4278255360&(y[I]<<24|y[I]>>>8),_[M+I]^=y[I]},blockSize:4,ivSize:2});function T(){for(var _=this._X,M=this._C,x=0;x<8;x++)F[x]=M[x];for(M[0]=M[0]+1295307597+this._b|0,M[1]=M[1]+3545052371+(M[0]>>>0>>0?1:0)|0,M[2]=M[2]+886263092+(M[1]>>>0>>0?1:0)|0,M[3]=M[3]+1295307597+(M[2]>>>0>>0?1:0)|0,M[4]=M[4]+3545052371+(M[3]>>>0>>0?1:0)|0,M[5]=M[5]+886263092+(M[4]>>>0>>0?1:0)|0,M[6]=M[6]+1295307597+(M[5]>>>0>>0?1:0)|0,M[7]=M[7]+3545052371+(M[6]>>>0>>0?1:0)|0,this._b=M[7]>>>0>>0?1:0,x=0;x<8;x++){var I=_[x]+M[x],S=65535&I,L=I>>>16;h[x]=((S*S>>>17)+S*L>>>15)+L*L^((4294901760&I)*I|0)+((65535&I)*I|0)}_[0]=h[0]+(h[7]<<16|h[7]>>>16)+(h[6]<<16|h[6]>>>16)|0,_[1]=h[1]+(h[0]<<8|h[0]>>>24)+h[7]|0,_[2]=h[2]+(h[1]<<16|h[1]>>>16)+(h[0]<<16|h[0]>>>16)|0,_[3]=h[3]+(h[2]<<8|h[2]>>>24)+h[1]|0,_[4]=h[4]+(h[3]<<16|h[3]>>>16)+(h[2]<<16|h[2]>>>16)|0,_[5]=h[5]+(h[4]<<8|h[4]>>>24)+h[3]|0,_[6]=h[6]+(h[5]<<16|h[5]>>>16)+(h[4]<<16|h[4]>>>16)|0,_[7]=h[7]+(h[6]<<8|h[6]>>>24)+h[5]|0}f.Rabbit=m._createHelper(C)}(),p.Rabbit)},1195:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,m=f.lib.StreamCipher,b=f.algo,y=b.RC4=m.extend({_doReset:function(){for(var C=this._key,T=C.words,_=C.sigBytes,M=this._S=[],x=0;x<256;x++)M[x]=x;x=0;for(var I=0;x<256;x++){var S=x%_,R=M[x];M[x]=M[I=(I+M[x]+(T[S>>>2]>>>24-S%4*8&255))%256],M[I]=R}this._i=this._j=0},_doProcessBlock:function(C,T){C[T]^=F.call(this)},keySize:8,ivSize:0});function F(){for(var C=this._S,T=this._i,_=this._j,M=0,x=0;x<4;x++){var I=C[T=(T+1)%256];C[T]=C[_=(_+C[T])%256],C[_]=I,M|=C[(C[T]+C[_])%256]<<24-8*x}return this._i=T,this._j=_,M}f.RC4=m._createHelper(y);var h=b.RC4Drop=y.extend({cfg:y.cfg.extend({drop:192}),_doReset:function(){y._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)F.call(this)}});f.RC4Drop=m._createHelper(h)}(),p.RC4)},5558:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=b.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),C=b.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),T=b.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),_=b.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),M=b.create([0,1518500249,1859775393,2400959708,2840853838]),x=b.create([1352829926,1548603684,1836072691,2053994217,0]),I=F.RIPEMD160=y.extend({_doReset:function(){this._hash=b.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(k,H){for(var P=0;P<16;P++){var q=H+P,j=k[q];k[q]=16711935&(j<<8|j>>>24)|4278255360&(j<<24|j>>>8)}var se,Ee,Fe,Y,re,K,te,Ve,ge,Te,Me,U=this._hash.words,J=M.words,V=x.words,$=h.words,Q=C.words,W=T.words,de=_.words;for(K=se=U[0],te=Ee=U[1],Ve=Fe=U[2],ge=Y=U[3],Te=re=U[4],P=0;P<80;P+=1)Me=se+k[H+$[P]]|0,Me+=P<16?S(Ee,Fe,Y)+J[0]:P<32?L(Ee,Fe,Y)+J[1]:P<48?R(Ee,Fe,Y)+J[2]:P<64?D(Ee,Fe,Y)+J[3]:w(Ee,Fe,Y)+J[4],Me=(Me=O(Me|=0,W[P]))+re|0,se=re,re=Y,Y=O(Fe,10),Fe=Ee,Ee=Me,Me=K+k[H+Q[P]]|0,Me+=P<16?w(te,Ve,ge)+V[0]:P<32?D(te,Ve,ge)+V[1]:P<48?R(te,Ve,ge)+V[2]:P<64?L(te,Ve,ge)+V[3]:S(te,Ve,ge)+V[4],Me=(Me=O(Me|=0,de[P]))+Te|0,K=Te,Te=ge,ge=O(Ve,10),Ve=te,te=Me;Me=U[1]+Fe+ge|0,U[1]=U[2]+Y+Te|0,U[2]=U[3]+re+K|0,U[3]=U[4]+se+te|0,U[4]=U[0]+Ee+Ve|0,U[0]=Me},_doFinalize:function(){var k=this._data,H=k.words,P=8*this._nDataBytes,q=8*k.sigBytes;H[q>>>5]|=128<<24-q%32,H[14+(q+64>>>9<<4)]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),k.sigBytes=4*(H.length+1),this._process();for(var j=this._hash,U=j.words,J=0;J<5;J++){var V=U[J];U[J]=16711935&(V<<8|V>>>24)|4278255360&(V<<24|V>>>8)}return j},clone:function(){var k=y.clone.call(this);return k._hash=this._hash.clone(),k}});function S(k,H,P){return k^H^P}function L(k,H,P){return k&H|~k&P}function R(k,H,P){return(k|~H)^P}function D(k,H,P){return k&P|H&~P}function w(k,H,P){return k^(H|~P)}function O(k,H){return k<>>32-H}g.RIPEMD160=y._createHelper(I),g.HmacRIPEMD160=y._createHmacHelper(I)}(Math),p.RIPEMD160)},4446:function(Z,N,E){var f,g,m,b,F,h,p;Z.exports=(p=E(12),m=(g=(f=p).lib).WordArray,F=[],h=f.algo.SHA1=(b=g.Hasher).extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,T){for(var _=this._hash.words,M=_[0],x=_[1],I=_[2],S=_[3],L=_[4],R=0;R<80;R++){if(R<16)F[R]=0|C[T+R];else{var D=F[R-3]^F[R-8]^F[R-14]^F[R-16];F[R]=D<<1|D>>>31}var w=(M<<5|M>>>27)+L+F[R];w+=R<20?1518500249+(x&I|~x&S):R<40?1859775393+(x^I^S):R<60?(x&I|x&S|I&S)-1894007588:(x^I^S)-899497514,L=S,S=I,I=x<<30|x>>>2,x=M,M=w}_[0]=_[0]+M|0,_[1]=_[1]+x|0,_[2]=_[2]+I|0,_[3]=_[3]+S|0,_[4]=_[4]+L|0},_doFinalize:function(){var C=this._data,T=C.words,_=8*this._nDataBytes,M=8*C.sigBytes;return T[M>>>5]|=128<<24-M%32,T[14+(M+64>>>9<<4)]=Math.floor(_/4294967296),T[15+(M+64>>>9<<4)]=_,C.sigBytes=4*T.length,this._process(),this._hash},clone:function(){var C=b.clone.call(this);return C._hash=this._hash.clone(),C}}),f.SHA1=b._createHelper(h),f.HmacSHA1=b._createHmacHelper(h),p.SHA1)},9811:function(Z,N,E){var f,m,b,y,F,p;Z.exports=(p=E(12),E(2078),m=(f=p).lib.WordArray,F=(b=f.algo).SHA224=(y=b.SHA256).extend({_doReset:function(){this._hash=new m.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var h=y._doFinalize.call(this);return h.sigBytes-=4,h}}),f.SHA224=y._createHelper(F),f.HmacSHA224=y._createHmacHelper(F),p.SHA224)},2078:function(Z,N,E){var p;Z.exports=(p=E(12),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,F=g.algo,h=[],C=[];!function(){function M(L){for(var R=f.sqrt(L),D=2;D<=R;D++)if(!(L%D))return!1;return!0}function x(L){return 4294967296*(L-(0|L))|0}for(var I=2,S=0;S<64;)M(I)&&(S<8&&(h[S]=x(f.pow(I,.5))),C[S]=x(f.pow(I,1/3)),S++),I++}();var T=[],_=F.SHA256=y.extend({_doReset:function(){this._hash=new b.init(h.slice(0))},_doProcessBlock:function(M,x){for(var I=this._hash.words,S=I[0],L=I[1],R=I[2],D=I[3],w=I[4],O=I[5],k=I[6],H=I[7],P=0;P<64;P++){if(P<16)T[P]=0|M[x+P];else{var q=T[P-15],U=T[P-2];T[P]=((q<<25|q>>>7)^(q<<14|q>>>18)^q>>>3)+T[P-7]+((U<<15|U>>>17)^(U<<13|U>>>19)^U>>>10)+T[P-16]}var $=S&L^S&R^L&R,de=H+((w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25))+(w&O^~w&k)+C[P]+T[P];H=k,k=O,O=w,w=D+de|0,D=R,R=L,L=S,S=de+(((S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22))+$)|0}I[0]=I[0]+S|0,I[1]=I[1]+L|0,I[2]=I[2]+R|0,I[3]=I[3]+D|0,I[4]=I[4]+w|0,I[5]=I[5]+O|0,I[6]=I[6]+k|0,I[7]=I[7]+H|0},_doFinalize:function(){var M=this._data,x=M.words,I=8*this._nDataBytes,S=8*M.sigBytes;return x[S>>>5]|=128<<24-S%32,x[14+(S+64>>>9<<4)]=f.floor(I/4294967296),x[15+(S+64>>>9<<4)]=I,M.sigBytes=4*x.length,this._process(),this._hash},clone:function(){var M=y.clone.call(this);return M._hash=this._hash.clone(),M}});g.SHA256=y._createHelper(_),g.HmacSHA256=y._createHmacHelper(_)}(Math),p.SHA256)},6545:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),function(f){var g=p,m=g.lib,b=m.WordArray,y=m.Hasher,h=g.x64.Word,C=g.algo,T=[],_=[],M=[];!function(){for(var S=1,L=0,R=0;R<24;R++){T[S+5*L]=(R+1)*(R+2)/2%64;var w=(2*S+3*L)%5;S=L%5,L=w}for(S=0;S<5;S++)for(L=0;L<5;L++)_[S+5*L]=L+(2*S+3*L)%5*5;for(var O=1,k=0;k<24;k++){for(var H=0,P=0,q=0;q<7;q++){if(1&O){var j=(1<>>24)|4278255360&(O<<24|O>>>8),(H=R[w]).high^=k=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8),H.low^=O}for(var P=0;P<24;P++){for(var q=0;q<5;q++){for(var j=0,U=0,J=0;J<5;J++)j^=(H=R[q+5*J]).high,U^=H.low;var V=x[q];V.high=j,V.low=U}for(q=0;q<5;q++){var $=x[(q+4)%5],Q=x[(q+1)%5],W=Q.high,de=Q.low;for(j=$.high^(W<<1|de>>>31),U=$.low^(de<<1|W>>>31),J=0;J<5;J++)(H=R[q+5*J]).high^=j,H.low^=U}for(var se=1;se<25;se++){var Ee=(H=R[se]).high,Fe=H.low,Y=T[se];Y<32?(j=Ee<>>32-Y,U=Fe<>>32-Y):(j=Fe<>>64-Y,U=Ee<>>64-Y);var re=x[_[se]];re.high=j,re.low=U}var K=x[0],te=R[0];for(K.high=te.high,K.low=te.low,q=0;q<5;q++)for(J=0;J<5;J++){var Ve=x[se=q+5*J],ge=x[(q+1)%5+5*J],Te=x[(q+2)%5+5*J];(H=R[se]).high=Ve.high^~ge.high&Te.high,H.low=Ve.low^~ge.low&Te.low}var H,Me=M[P];(H=R[0]).high^=Me.high,H.low^=Me.low}},_doFinalize:function(){var S=this._data,L=S.words,D=8*S.sigBytes,w=32*this.blockSize;L[D>>>5]|=1<<24-D%32,L[(f.ceil((D+1)/w)*w>>>5)-1]|=128,S.sigBytes=4*L.length,this._process();for(var O=this._state,k=this.cfg.outputLength/8,H=k/8,P=[],q=0;q>>24)|4278255360&(U<<24|U>>>8),P.push(J=16711935&(J<<8|J>>>24)|4278255360&(J<<24|J>>>8)),P.push(U)}return new b.init(P,k)},clone:function(){for(var S=y.clone.call(this),L=S._state=this._state.slice(0),R=0;R<25;R++)L[R]=L[R].clone();return S}});g.SHA3=y._createHelper(I),g.HmacSHA3=y._createHmacHelper(I)}(Math),p.SHA3)},2913:function(Z,N,E){var f,g,m,b,y,F,h,p;Z.exports=(p=E(12),E(1802),E(4870),m=(g=(f=p).x64).Word,b=g.WordArray,h=(y=f.algo).SHA384=(F=y.SHA512).extend({_doReset:function(){this._hash=new b.init([new m.init(3418070365,3238371032),new m.init(1654270250,914150663),new m.init(2438529370,812702999),new m.init(355462360,4144912697),new m.init(1731405415,4290775857),new m.init(2394180231,1750603025),new m.init(3675008525,1694076839),new m.init(1203062813,3204075428)])},_doFinalize:function(){var C=F._doFinalize.call(this);return C.sigBytes-=16,C}}),f.SHA384=F._createHelper(h),f.HmacSHA384=F._createHmacHelper(h),p.SHA384)},4870:function(Z,N,E){var p;Z.exports=(p=E(12),E(1802),function(){var f=p,m=f.lib.Hasher,b=f.x64,y=b.Word,F=b.WordArray,h=f.algo;function C(){return y.create.apply(y,arguments)}var T=[C(1116352408,3609767458),C(1899447441,602891725),C(3049323471,3964484399),C(3921009573,2173295548),C(961987163,4081628472),C(1508970993,3053834265),C(2453635748,2937671579),C(2870763221,3664609560),C(3624381080,2734883394),C(310598401,1164996542),C(607225278,1323610764),C(1426881987,3590304994),C(1925078388,4068182383),C(2162078206,991336113),C(2614888103,633803317),C(3248222580,3479774868),C(3835390401,2666613458),C(4022224774,944711139),C(264347078,2341262773),C(604807628,2007800933),C(770255983,1495990901),C(1249150122,1856431235),C(1555081692,3175218132),C(1996064986,2198950837),C(2554220882,3999719339),C(2821834349,766784016),C(2952996808,2566594879),C(3210313671,3203337956),C(3336571891,1034457026),C(3584528711,2466948901),C(113926993,3758326383),C(338241895,168717936),C(666307205,1188179964),C(773529912,1546045734),C(1294757372,1522805485),C(1396182291,2643833823),C(1695183700,2343527390),C(1986661051,1014477480),C(2177026350,1206759142),C(2456956037,344077627),C(2730485921,1290863460),C(2820302411,3158454273),C(3259730800,3505952657),C(3345764771,106217008),C(3516065817,3606008344),C(3600352804,1432725776),C(4094571909,1467031594),C(275423344,851169720),C(430227734,3100823752),C(506948616,1363258195),C(659060556,3750685593),C(883997877,3785050280),C(958139571,3318307427),C(1322822218,3812723403),C(1537002063,2003034995),C(1747873779,3602036899),C(1955562222,1575990012),C(2024104815,1125592928),C(2227730452,2716904306),C(2361852424,442776044),C(2428436474,593698344),C(2756734187,3733110249),C(3204031479,2999351573),C(3329325298,3815920427),C(3391569614,3928383900),C(3515267271,566280711),C(3940187606,3454069534),C(4118630271,4000239992),C(116418474,1914138554),C(174292421,2731055270),C(289380356,3203993006),C(460393269,320620315),C(685471733,587496836),C(852142971,1086792851),C(1017036298,365543100),C(1126000580,2618297676),C(1288033470,3409855158),C(1501505948,4234509866),C(1607167915,987167468),C(1816402316,1246189591)],_=[];!function(){for(var x=0;x<80;x++)_[x]=C()}();var M=h.SHA512=m.extend({_doReset:function(){this._hash=new F.init([new y.init(1779033703,4089235720),new y.init(3144134277,2227873595),new y.init(1013904242,4271175723),new y.init(2773480762,1595750129),new y.init(1359893119,2917565137),new y.init(2600822924,725511199),new y.init(528734635,4215389547),new y.init(1541459225,327033209)])},_doProcessBlock:function(x,I){for(var S=this._hash.words,L=S[0],R=S[1],D=S[2],w=S[3],O=S[4],k=S[5],H=S[6],P=S[7],q=L.high,j=L.low,U=R.high,J=R.low,V=D.high,$=D.low,Q=w.high,W=w.low,de=O.high,se=O.low,Ee=k.high,Fe=k.low,Y=H.high,re=H.low,K=P.high,te=P.low,Ve=q,ge=j,Te=U,Me=J,me=V,lt=$,vn=Q,un=W,cn=de,Ot=se,yo=Ee,xo=Fe,Oi=Y,Do=re,ma=K,Wr=te,Gt=0;Gt<80;Gt++){var Wt,yn,Co=_[Gt];if(Gt<16)yn=Co.high=0|x[I+2*Gt],Wt=Co.low=0|x[I+2*Gt+1];else{var Eo=_[Gt-15],nr=Eo.high,qr=Eo.low,va=(qr>>>1|nr<<31)^(qr>>>8|nr<<24)^(qr>>>7|nr<<25),In=_[Gt-2],rr=In.high,Qr=In.low,xa=(Qr>>>19|rr<<13)^(Qr<<3|rr>>>29)^(Qr>>>6|rr<<26),Da=_[Gt-7],Ca=_[Gt-16],Ea=Ca.low;Co.high=yn=(yn=(yn=((nr>>>1|qr<<31)^(nr>>>8|qr<<24)^nr>>>7)+Da.high+((Wt=va+Da.low)>>>0>>0?1:0))+((rr>>>19|Qr<<13)^(rr<<3|Qr>>>29)^rr>>>6)+((Wt+=xa)>>>0>>0?1:0))+Ca.high+((Wt+=Ea)>>>0>>0?1:0),Co.low=Wt}var St,el=cn&yo^~cn&Oi,_a=Ot&xo^~Ot&Do,tl=Ve&Te^Ve&me^Te&me,Bi=(ge>>>28|Ve<<4)^(ge<<30|Ve>>>2)^(ge<<25|Ve>>>7),ki=T[Gt],Li=ki.low,Fn=ma+((cn>>>14|Ot<<18)^(cn>>>18|Ot<<14)^(cn<<23|Ot>>>9))+((St=Wr+((Ot>>>14|cn<<18)^(Ot>>>18|cn<<14)^(Ot<<23|cn>>>9)))>>>0>>0?1:0),Vi=Bi+(ge&Me^ge<^Me<);ma=Oi,Wr=Do,Oi=yo,Do=xo,yo=cn,xo=Ot,cn=vn+(Fn=(Fn=(Fn=Fn+el+((St+=_a)>>>0<_a>>>0?1:0))+ki.high+((St+=Li)>>>0
  • >>0?1:0))+yn+((St+=Wt)>>>0>>0?1:0))+((Ot=un+St|0)>>>0>>0?1:0)|0,vn=me,un=lt,me=Te,lt=Me,Te=Ve,Me=ge,Ve=Fn+(((Ve>>>28|ge<<4)^(Ve<<30|ge>>>2)^(Ve<<25|ge>>>7))+tl+(Vi>>>0>>0?1:0))+((ge=St+Vi|0)>>>0>>0?1:0)|0}j=L.low=j+ge,L.high=q+Ve+(j>>>0>>0?1:0),J=R.low=J+Me,R.high=U+Te+(J>>>0>>0?1:0),$=D.low=$+lt,D.high=V+me+($>>>0>>0?1:0),W=w.low=W+un,w.high=Q+vn+(W>>>0>>0?1:0),se=O.low=se+Ot,O.high=de+cn+(se>>>0>>0?1:0),Fe=k.low=Fe+xo,k.high=Ee+yo+(Fe>>>0>>0?1:0),re=H.low=re+Do,H.high=Y+Oi+(re>>>0>>0?1:0),te=P.low=te+Wr,P.high=K+ma+(te>>>0>>0?1:0)},_doFinalize:function(){var x=this._data,I=x.words,S=8*this._nDataBytes,L=8*x.sigBytes;return I[L>>>5]|=128<<24-L%32,I[30+(L+128>>>10<<5)]=Math.floor(S/4294967296),I[31+(L+128>>>10<<5)]=S,x.sigBytes=4*I.length,this._process(),this._hash.toX32()},clone:function(){var x=m.clone.call(this);return x._hash=this._hash.clone(),x},blockSize:32});f.SHA512=m._createHelper(M),f.HmacSHA512=m._createHmacHelper(M)}(),p.SHA512)},5769:function(Z,N,E){var p;Z.exports=(p=E(12),E(5506),E(2873),E(2066),E(3270),function(){var f=p,g=f.lib,m=g.WordArray,b=g.BlockCipher,y=f.algo,F=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],C=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],T=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],_=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],M=y.DES=b.extend({_doReset:function(){for(var R=this._key.words,D=[],w=0;w<56;w++){var O=F[w]-1;D[w]=R[O>>>5]>>>31-O%32&1}for(var k=this._subKeys=[],H=0;H<16;H++){var P=k[H]=[],q=C[H];for(w=0;w<24;w++)P[w/6|0]|=D[(h[w]-1+q)%28]<<31-w%6,P[4+(w/6|0)]|=D[28+(h[w+24]-1+q)%28]<<31-w%6;for(P[0]=P[0]<<1|P[0]>>>31,w=1;w<7;w++)P[w]=P[w]>>>4*(w-1)+3;P[7]=P[7]<<5|P[7]>>>27}var j=this._invSubKeys=[];for(w=0;w<16;w++)j[w]=k[15-w]},encryptBlock:function(L,R){this._doCryptBlock(L,R,this._subKeys)},decryptBlock:function(L,R){this._doCryptBlock(L,R,this._invSubKeys)},_doCryptBlock:function(L,R,D){this._lBlock=L[R],this._rBlock=L[R+1],x.call(this,4,252645135),x.call(this,16,65535),I.call(this,2,858993459),I.call(this,8,16711935),x.call(this,1,1431655765);for(var w=0;w<16;w++){for(var O=D[w],k=this._lBlock,H=this._rBlock,P=0,q=0;q<8;q++)P|=T[q][((H^O[q])&_[q])>>>0];this._lBlock=H,this._rBlock=k^P}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,x.call(this,1,1431655765),I.call(this,8,16711935),I.call(this,2,858993459),x.call(this,16,65535),x.call(this,4,252645135),L[R]=this._lBlock,L[R+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function x(L,R){var D=(this._lBlock>>>L^this._rBlock)&R;this._rBlock^=D,this._lBlock^=D<>>L^this._lBlock)&R;this._lBlock^=D,this._rBlock^=D<192.");var D=R.slice(0,2),w=R.length<4?R.slice(0,2):R.slice(2,4),O=R.length<6?R.slice(0,2):R.slice(4,6);this._des1=M.createEncryptor(m.create(D)),this._des2=M.createEncryptor(m.create(w)),this._des3=M.createEncryptor(m.create(O))},encryptBlock:function(L,R){this._des1.encryptBlock(L,R),this._des2.decryptBlock(L,R),this._des3.encryptBlock(L,R)},decryptBlock:function(L,R){this._des3.decryptBlock(L,R),this._des2.encryptBlock(L,R),this._des1.decryptBlock(L,R)},keySize:6,ivSize:2,blockSize:2});f.TripleDES=b._createHelper(S)}(),p.TripleDES)},1802:function(Z,N,E){var m,b,y,F,p;Z.exports=(p=E(12),b=(m=p.lib).Base,y=m.WordArray,(F=p.x64={}).Word=b.extend({init:function(T,_){this.high=T,this.low=_}}),F.WordArray=b.extend({init:function(T,_){T=this.words=T||[],this.sigBytes=null!=_?_:8*T.length},toX32:function(){for(var T=this.words,_=T.length,M=[],x=0;x<_;x++){var I=T[x];M.push(I.high),M.push(I.low)}return y.create(M,this.sigBytes)},clone:function(){for(var T=b.clone.call(this),_=T.words=this.words.slice(0),M=_.length,x=0;x{"use strict";var N={single_source_shortest_paths:function(E,p,f){var g={},m={};m[p]=0;var y,F,h,C,T,M,b=N.PriorityQueue.make();for(b.push(p,0);!b.empty();)for(h in C=(y=b.pop()).cost,T=E[F=y.value]||{})T.hasOwnProperty(h)&&(M=C+T[h],(typeof m[h]>"u"||m[h]>M)&&(m[h]=M,b.push(h,M),g[h]=F));if(typeof f<"u"&&typeof m[f]>"u"){var S=["Could not find a path from ",p," to ",f,"."].join("");throw new Error(S)}return g},extract_shortest_path_from_predecessor_list:function(E,p){for(var f=[],g=p;g;)f.push(g),g=E[g];return f.reverse(),f},find_path:function(E,p,f){var g=N.single_source_shortest_paths(E,p,f);return N.extract_shortest_path_from_predecessor_list(g,f)},PriorityQueue:{make:function(E){var g,p=N.PriorityQueue,f={};for(g in E=E||{},p)p.hasOwnProperty(g)&&(f[g]=p[g]);return f.queue=[],f.sorter=E.sorter||p.default_sorter,f},default_sorter:function(E,p){return E.cost-p.cost},push:function(E,p){this.queue.push({value:E,cost:p}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Z.exports=N},6119:Z=>{"use strict";Z.exports=function(E){for(var p=[],f=E.length,g=0;g=55296&&m<=56319&&f>g+1){var b=E.charCodeAt(g+1);b>=56320&&b<=57343&&(m=1024*(m-55296)+b-56320+65536,g+=1)}m<128?p.push(m):m<2048?(p.push(m>>6|192),p.push(63&m|128)):m<55296||m>=57344&&m<65536?(p.push(m>>12|224),p.push(m>>6&63|128),p.push(63&m|128)):m>=65536&&m<=1114111?(p.push(m>>18|240),p.push(m>>12&63|128),p.push(m>>6&63|128),p.push(63&m|128)):p.push(239,191,189)}return new Uint8Array(p).buffer}},8251:(Z,N,E)=>{const f=E(8310),g=E(6208),m=E(6422),b=E(7772);function y(F,h,C,T,_){const M=[].slice.call(arguments,1),x=M.length,I="function"==typeof M[x-1];if(!I&&!f())throw new Error("Callback required as last argument");if(!I){if(x<1)throw new Error("Too few arguments provided");return 1===x?(C=h,h=T=void 0):2===x&&!h.getContext&&(T=C,C=h,h=void 0),new Promise(function(S,L){try{const R=g.create(C,T);S(F(R,h,T))}catch(R){L(R)}})}if(x<2)throw new Error("Too few arguments provided");2===x?(_=C,C=h,h=T=void 0):3===x&&(h.getContext&&typeof _>"u"?(_=T,T=void 0):(_=T,T=C,C=h,h=void 0));try{const S=g.create(C,T);_(null,F(S,h,T))}catch(S){_(S)}}N.rT=y.bind(null,m.render),y.bind(null,m.renderToDataURL),y.bind(null,function(F,h,C){return b.render(F,C)})},8310:Z=>{Z.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},5281:(Z,N,E)=>{const p=E(2562).getSymbolSize;N.getRowColCoords=function(g){if(1===g)return[];const m=Math.floor(g/7)+2,b=p(g),y=145===b?26:2*Math.ceil((b-13)/(2*m-2)),F=[b-7];for(let h=1;h{const p=E(1239),f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function g(m){this.mode=p.ALPHANUMERIC,this.data=m}g.getBitsLength=function(b){return 11*Math.floor(b/2)+b%2*6},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(b){let y;for(y=0;y+2<=this.data.length;y+=2){let F=45*f.indexOf(this.data[y]);F+=f.indexOf(this.data[y+1]),b.put(F,11)}this.data.length%2&&b.put(f.indexOf(this.data[y]),6)},Z.exports=g},6509:Z=>{function N(){this.buffer=[],this.length=0}N.prototype={get:function(E){const p=Math.floor(E/8);return 1==(this.buffer[p]>>>7-E%8&1)},put:function(E,p){for(let f=0;f>>p-f-1&1))},getLengthInBits:function(){return this.length},putBit:function(E){const p=Math.floor(this.length/8);this.buffer.length<=p&&this.buffer.push(0),E&&(this.buffer[p]|=128>>>this.length%8),this.length++}},Z.exports=N},5147:Z=>{function N(E){if(!E||E<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=E,this.data=new Uint8Array(E*E),this.reservedBit=new Uint8Array(E*E)}N.prototype.set=function(E,p,f,g){const m=E*this.size+p;this.data[m]=f,g&&(this.reservedBit[m]=!0)},N.prototype.get=function(E,p){return this.data[E*this.size+p]},N.prototype.xor=function(E,p,f){this.data[E*this.size+p]^=f},N.prototype.isReserved=function(E,p){return this.reservedBit[E*this.size+p]},Z.exports=N},277:(Z,N,E)=>{const p=E(6119),f=E(1239);function g(m){this.mode=f.BYTE,"string"==typeof m&&(m=p(m)),this.data=new Uint8Array(m)}g.getBitsLength=function(b){return 8*b},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(m){for(let b=0,y=this.data.length;b{const p=E(4505),f=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],g=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];N.getBlocksCount=function(b,y){switch(y){case p.L:return f[4*(b-1)+0];case p.M:return f[4*(b-1)+1];case p.Q:return f[4*(b-1)+2];case p.H:return f[4*(b-1)+3];default:return}},N.getTotalCodewordsCount=function(b,y){switch(y){case p.L:return g[4*(b-1)+0];case p.M:return g[4*(b-1)+1];case p.Q:return g[4*(b-1)+2];case p.H:return g[4*(b-1)+3];default:return}}},4505:(Z,N)=>{N.L={bit:1},N.M={bit:0},N.Q={bit:3},N.H={bit:2},N.isValid=function(f){return f&&typeof f.bit<"u"&&f.bit>=0&&f.bit<4},N.from=function(f,g){if(N.isValid(f))return f;try{return function E(p){if("string"!=typeof p)throw new Error("Param is not a string");switch(p.toLowerCase()){case"l":case"low":return N.L;case"m":case"medium":return N.M;case"q":case"quartile":return N.Q;case"h":case"high":return N.H;default:throw new Error("Unknown EC Level: "+p)}}(f)}catch{return g}}},5232:(Z,N,E)=>{const p=E(2562).getSymbolSize;N.getPositions=function(m){const b=p(m);return[[0,0],[b-7,0],[0,b-7]]}},8508:(Z,N,E)=>{const p=E(2562),m=p.getBCHDigit(1335);N.getEncodedBits=function(y,F){const h=y.bit<<3|F;let C=h<<10;for(;p.getBCHDigit(C)-m>=0;)C^=1335<{const E=new Uint8Array(512),p=new Uint8Array(256);(function(){let g=1;for(let m=0;m<255;m++)E[m]=g,p[g]=m,g<<=1,256&g&&(g^=285);for(let m=255;m<512;m++)E[m]=E[m-255]})(),N.log=function(g){if(g<1)throw new Error("log("+g+")");return p[g]},N.exp=function(g){return E[g]},N.mul=function(g,m){return 0===g||0===m?0:E[p[g]+p[m]]}},9995:(Z,N,E)=>{const p=E(1239),f=E(2562);function g(m){this.mode=p.KANJI,this.data=m}g.getBitsLength=function(b){return 13*b},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(m){let b;for(b=0;b=33088&&y<=40956)y-=33088;else{if(!(y>=57408&&y<=60351))throw new Error("Invalid SJIS character: "+this.data[b]+"\nMake sure your charset is UTF-8");y-=49472}y=192*(y>>>8&255)+(255&y),m.put(y,13)}},Z.exports=g},9023:(Z,N)=>{N.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function p(f,g,m){switch(f){case N.Patterns.PATTERN000:return(g+m)%2==0;case N.Patterns.PATTERN001:return g%2==0;case N.Patterns.PATTERN010:return m%3==0;case N.Patterns.PATTERN011:return(g+m)%3==0;case N.Patterns.PATTERN100:return(Math.floor(g/2)+Math.floor(m/3))%2==0;case N.Patterns.PATTERN101:return g*m%2+g*m%3==0;case N.Patterns.PATTERN110:return(g*m%2+g*m%3)%2==0;case N.Patterns.PATTERN111:return(g*m%3+(g+m)%2)%2==0;default:throw new Error("bad maskPattern:"+f)}}N.isValid=function(g){return null!=g&&""!==g&&!isNaN(g)&&g>=0&&g<=7},N.from=function(g){return N.isValid(g)?parseInt(g,10):void 0},N.getPenaltyN1=function(g){const m=g.size;let b=0,y=0,F=0,h=null,C=null;for(let T=0;T=5&&(b+=y-5+3),h=M,y=1),M=g.get(_,T),M===C?F++:(F>=5&&(b+=F-5+3),C=M,F=1)}y>=5&&(b+=y-5+3),F>=5&&(b+=F-5+3)}return b},N.getPenaltyN2=function(g){const m=g.size;let b=0;for(let y=0;y=10&&(1488===y||93===y)&&b++,F=F<<1&2047|g.get(C,h),C>=10&&(1488===F||93===F)&&b++}return 40*b},N.getPenaltyN4=function(g){let m=0;const b=g.data.length;for(let F=0;F{const p=E(6161),f=E(2427);N.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},N.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},N.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},N.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},N.MIXED={bit:-1},N.getCharCountIndicator=function(b,y){if(!b.ccBits)throw new Error("Invalid mode: "+b);if(!p.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?b.ccBits[0]:y<27?b.ccBits[1]:b.ccBits[2]},N.getBestModeForData=function(b){return f.testNumeric(b)?N.NUMERIC:f.testAlphanumeric(b)?N.ALPHANUMERIC:f.testKanji(b)?N.KANJI:N.BYTE},N.toString=function(b){if(b&&b.id)return b.id;throw new Error("Invalid mode")},N.isValid=function(b){return b&&b.bit&&b.ccBits},N.from=function(b,y){if(N.isValid(b))return b;try{return function g(m){if("string"!=typeof m)throw new Error("Param is not a string");switch(m.toLowerCase()){case"numeric":return N.NUMERIC;case"alphanumeric":return N.ALPHANUMERIC;case"kanji":return N.KANJI;case"byte":return N.BYTE;default:throw new Error("Unknown mode: "+m)}}(b)}catch{return y}}},8722:(Z,N,E)=>{const p=E(1239);function f(g){this.mode=p.NUMERIC,this.data=g.toString()}f.getBitsLength=function(m){return 10*Math.floor(m/3)+(m%3?m%3*3+1:0)},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(m){let b,y,F;for(b=0;b+3<=this.data.length;b+=3)y=this.data.substr(b,3),F=parseInt(y,10),m.put(F,10);const h=this.data.length-b;h>0&&(y=this.data.substr(b),F=parseInt(y,10),m.put(F,3*h+1))},Z.exports=f},2376:(Z,N,E)=>{const p=E(1674);N.mul=function(g,m){const b=new Uint8Array(g.length+m.length-1);for(let y=0;y=0;){const y=b[0];for(let h=0;h{const p=E(2562),f=E(4505),g=E(6509),m=E(5147),b=E(5281),y=E(5232),F=E(9023),h=E(7191),C=E(1297),T=E(9467),_=E(8508),M=E(1239),x=E(1799);function D(P,q,j){const U=P.size,J=_.getEncodedBits(q,j);let V,$;for(V=0;V<15;V++)$=1==(J>>V&1),P.set(V<6?V:V<8?V+1:U-15+V,8,$,!0),P.set(8,V<8?U-V-1:V<9?15-V-1+1:15-V-1,$,!0);P.set(U-8,8,1,!0)}function H(P,q,j,U){let J;if(Array.isArray(P))J=x.fromArray(P);else{if("string"!=typeof P)throw new Error("Invalid data");{let de=q;if(!de){const se=x.rawSplit(P);de=T.getBestVersionForData(se,j)}J=x.fromString(P,de||40)}}const V=T.getBestVersionForData(J,j);if(!V)throw new Error("The amount of data is too big to be stored in a QR Code");if(q){if(q=0&&Q<=6&&(0===W||6===W)||W>=0&&W<=6&&(0===Q||6===Q)||Q>=2&&Q<=4&&W>=2&&W<=4,!0)}}(W,q),function S(P){const q=P.size;for(let j=8;j=7&&function R(P,q){const j=P.size,U=T.getEncodedBits(q);let J,V,$;for(let Q=0;Q<18;Q++)J=Math.floor(Q/3),V=Q%3+j-8-3,$=1==(U>>Q&1),P.set(J,V,$,!0),P.set(V,J,$,!0)}(W,q),function w(P,q){const j=P.size;let U=-1,J=j-1,V=7,$=0;for(let Q=j-1;Q>0;Q-=2)for(6===Q&&Q--;;){for(let W=0;W<2;W++)if(!P.isReserved(J,Q-W)){let de=!1;$>>V&1)),P.set(J,Q-W,de),V--,-1===V&&($++,V=7)}if(J+=U,J<0||j<=J){J-=U,U=-U;break}}}(W,$),isNaN(U)&&(U=F.getBestMask(W,D.bind(null,W,j))),F.applyMask(U,W),D(W,j,U),{modules:W,version:q,errorCorrectionLevel:j,maskPattern:U,segments:J}}N.create=function(q,j){if(typeof q>"u"||""===q)throw new Error("No input text");let J,V,U=f.M;return typeof j<"u"&&(U=f.from(j.errorCorrectionLevel,f.M),J=T.from(j.version),V=F.from(j.maskPattern),j.toSJISFunc&&p.setToSJISFunction(j.toSJISFunc)),H(q,J,U,V)}},1297:(Z,N,E)=>{const p=E(2376);function f(g){this.genPoly=void 0,this.degree=g,this.degree&&this.initialize(this.degree)}f.prototype.initialize=function(m){this.degree=m,this.genPoly=p.generateECPolynomial(this.degree)},f.prototype.encode=function(m){if(!this.genPoly)throw new Error("Encoder not initialized");const b=new Uint8Array(m.length+this.degree);b.set(m);const y=p.mod(b,this.genPoly),F=this.degree-y.length;if(F>0){const h=new Uint8Array(this.degree);return h.set(y,F),h}return y},Z.exports=f},2427:(Z,N)=>{const E="[0-9]+";let f="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";f=f.replace(/u/g,"\\u");const g="(?:(?![A-Z0-9 $%*+\\-./:]|"+f+")(?:.|[\r\n]))+";N.KANJI=new RegExp(f,"g"),N.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),N.BYTE=new RegExp(g,"g"),N.NUMERIC=new RegExp(E,"g"),N.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const m=new RegExp("^"+f+"$"),b=new RegExp("^"+E+"$"),y=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");N.testKanji=function(h){return m.test(h)},N.testNumeric=function(h){return b.test(h)},N.testAlphanumeric=function(h){return y.test(h)}},1799:(Z,N,E)=>{const p=E(1239),f=E(8722),g=E(120),m=E(277),b=E(9995),y=E(2427),F=E(2562),h=E(7206);function C(R){return unescape(encodeURIComponent(R)).length}function T(R,D,w){const O=[];let k;for(;null!==(k=R.exec(w));)O.push({data:k[0],index:k.index,mode:D,length:k[0].length});return O}function _(R){const D=T(y.NUMERIC,p.NUMERIC,R),w=T(y.ALPHANUMERIC,p.ALPHANUMERIC,R);let O,k;return F.isKanjiModeEnabled()?(O=T(y.BYTE,p.BYTE,R),k=T(y.KANJI,p.KANJI,R)):(O=T(y.BYTE_KANJI,p.BYTE,R),k=[]),D.concat(w,O,k).sort(function(P,q){return P.index-q.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function M(R,D){switch(D){case p.NUMERIC:return f.getBitsLength(R);case p.ALPHANUMERIC:return g.getBitsLength(R);case p.KANJI:return b.getBitsLength(R);case p.BYTE:return m.getBitsLength(R)}}function L(R,D){let w;const O=p.getBestModeForData(R);if(w=p.from(D,O),w!==p.BYTE&&w.bit=0?D[D.length-1]:null;return O&&O.mode===w.mode?(D[D.length-1].data+=w.data,D):(D.push(w),D)},[])}(q))},N.rawSplit=function(D){return N.fromArray(_(D,F.isKanjiModeEnabled()))}},2562:(Z,N)=>{let E;const p=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(g){if(!g)throw new Error('"version" cannot be null or undefined');if(g<1||g>40)throw new Error('"version" should be in range from 1 to 40');return 4*g+17},N.getSymbolTotalCodewords=function(g){return p[g]},N.getBCHDigit=function(f){let g=0;for(;0!==f;)g++,f>>>=1;return g},N.setToSJISFunction=function(g){if("function"!=typeof g)throw new Error('"toSJISFunc" is not a valid function.');E=g},N.isKanjiModeEnabled=function(){return typeof E<"u"},N.toSJIS=function(g){return E(g)}},6161:(Z,N)=>{N.isValid=function(p){return!isNaN(p)&&p>=1&&p<=40}},9467:(Z,N,E)=>{const p=E(2562),f=E(7191),g=E(4505),m=E(1239),b=E(6161),F=p.getBCHDigit(7973);function C(M,x){return m.getCharCountIndicator(M,x)+4}function T(M,x){let I=0;return M.forEach(function(S){const L=C(S.mode,x);I+=L+S.getBitsLength()}),I}N.from=function(x,I){return b.isValid(x)?parseInt(x,10):I},N.getCapacity=function(x,I,S){if(!b.isValid(x))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=m.BYTE);const D=8*(p.getSymbolTotalCodewords(x)-f.getTotalCodewordsCount(x,I));if(S===m.MIXED)return D;const w=D-C(S,x);switch(S){case m.NUMERIC:return Math.floor(w/10*3);case m.ALPHANUMERIC:return Math.floor(w/11*2);case m.KANJI:return Math.floor(w/13);default:return Math.floor(w/8)}},N.getBestVersionForData=function(x,I){let S;const L=g.from(I,g.M);if(Array.isArray(x)){if(x.length>1)return function _(M,x){for(let I=1;I<=40;I++)if(T(M,I)<=N.getCapacity(I,x,m.MIXED))return I}(x,L);if(0===x.length)return 1;S=x[0]}else S=x;return function h(M,x,I){for(let S=1;S<=40;S++)if(x<=N.getCapacity(S,I,M))return S}(S.mode,S.getLength(),L)},N.getEncodedBits=function(x){if(!b.isValid(x)||x<7)throw new Error("Invalid QR Code version");let I=x<<12;for(;p.getBCHDigit(I)-F>=0;)I^=7973<{const p=E(1101);N.render=function(b,y,F){let h=F,C=y;typeof h>"u"&&(!y||!y.getContext)&&(h=y,y=void 0),y||(C=function g(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=p.getOptions(h);const T=p.getImageWidth(b.modules.size,h),_=C.getContext("2d"),M=_.createImageData(T,T);return p.qrToImageData(M.data,b,h),function f(m,b,y){m.clearRect(0,0,b.width,b.height),b.style||(b.style={}),b.height=y,b.width=y,b.style.height=y+"px",b.style.width=y+"px"}(_,C,T),_.putImageData(M,0,0),C},N.renderToDataURL=function(b,y,F){let h=F;return typeof h>"u"&&(!y||!y.getContext)&&(h=y,y=void 0),h||(h={}),N.render(b,y,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},7772:(Z,N,E)=>{const p=E(1101);function f(b,y){const F=b.a/255,h=y+'="'+b.hex+'"';return F<1?h+" "+y+'-opacity="'+F.toFixed(2).slice(1)+'"':h}function g(b,y,F){let h=b+y;return typeof F<"u"&&(h+=" "+F),h}N.render=function(y,F,h){const C=p.getOptions(F),T=y.modules.size,_=y.modules.data,M=T+2*C.margin,x=C.color.light.a?"':"",I="0&&x>0&&b[M-1]||(h+=T?g("M",x+F,.5+I+F):g("m",C,0),C=0,T=!1),x+1',R=''+x+I+"\n";return"function"==typeof h&&h(null,R),R}},1101:(Z,N)=>{function E(p){if("number"==typeof p&&(p=p.toString()),"string"!=typeof p)throw new Error("Color should be defined as hex string");let f=p.slice().replace("#","").split("");if(f.length<3||5===f.length||f.length>8)throw new Error("Invalid hex color: "+p);(3===f.length||4===f.length)&&(f=Array.prototype.concat.apply([],f.map(function(m){return[m,m]}))),6===f.length&&f.push("F","F");const g=parseInt(f.join(""),16);return{r:g>>24&255,g:g>>16&255,b:g>>8&255,a:255&g,hex:"#"+f.slice(0,6).join("")}}N.getOptions=function(f){f||(f={}),f.color||(f.color={});const m=f.width&&f.width>=21?f.width:void 0;return{width:m,scale:m?4:f.scale||4,margin:typeof f.margin>"u"||null===f.margin||f.margin<0?4:f.margin,color:{dark:E(f.color.dark||"#000000ff"),light:E(f.color.light||"#ffffffff")},type:f.type,rendererOpts:f.rendererOpts||{}}},N.getScale=function(f,g){return g.width&&g.width>=f+2*g.margin?g.width/(f+2*g.margin):g.scale},N.getImageWidth=function(f,g){const m=N.getScale(f,g);return Math.floor((f+2*g.margin)*m)},N.qrToImageData=function(f,g,m){const b=g.modules.size,y=g.modules.data,F=N.getScale(b,m),h=Math.floor((b+2*m.margin)*F),C=m.margin*F,T=[m.color.light,m.color.dark];for(let _=0;_=C&&M>=C&&_{}},Z=>{Z(Z.s=8333)}]); \ No newline at end of file diff --git a/docs/ngsw.json b/docs/ngsw.json index ae8c2ff..c9d0b17 100644 --- a/docs/ngsw.json +++ b/docs/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1701012095775, + "timestamp": 1701012297401, "index": "/private-qrcode/index.html", "assetGroups": [ { @@ -14,7 +14,7 @@ "/private-qrcode/663.afc5bce5c886c103.js", "/private-qrcode/favicon.ico", "/private-qrcode/index.html", - "/private-qrcode/main.fe0fb92ea31fcac3.js", + "/private-qrcode/main.df3a3bcfe6939e17.js", "/private-qrcode/manifest.webmanifest", "/private-qrcode/polyfills.b6fa7d2fe293cdc4.js", "/private-qrcode/runtime.90abdc54f7679079.js", @@ -54,8 +54,8 @@ "/private-qrcode/assets/icons/icon-72x72.png": "e0bb5b9b2a6b20712140469242c60060863ecdb0", "/private-qrcode/assets/icons/icon-96x96.png": "bebc52063cc5e7440f17b76560156d419bc5ef66", "/private-qrcode/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/private-qrcode/index.html": "18b6f1fc9a6d8f431f8f122b2b8852589eb0c21d", - "/private-qrcode/main.fe0fb92ea31fcac3.js": "128f21505bee4f5748da5fa9efcffac5f897ae09", + "/private-qrcode/index.html": "7a49d69ee335b152ff7739dd3bb7a7032017149a", + "/private-qrcode/main.df3a3bcfe6939e17.js": "cd5365a448b1b385f4e9aaa2c73909669a0b4530", "/private-qrcode/manifest.webmanifest": "ddfa638a22dd55d15f28c4c9776a3d19ab2ef543", "/private-qrcode/polyfills.b6fa7d2fe293cdc4.js": "a6ad13a7fb74aa6dd2e79aaa9814bb8cfa0fb7b8", "/private-qrcode/runtime.90abdc54f7679079.js": "15043fefa96744aa249f7bb6ad7be1ec26027bcb", diff --git a/src/app/shared/crypt/crypt.service.ts b/src/app/shared/crypt/crypt.service.ts index c98af1d..04e2dd6 100755 --- a/src/app/shared/crypt/crypt.service.ts +++ b/src/app/shared/crypt/crypt.service.ts @@ -24,7 +24,7 @@ export class CryptService { decrypt(encrypted: string, key: string): string { const parsed = this.parseEncryptedQrcode(encrypted); if (parsed.encrypted && parsed.type === 'aes') { - const decrypted = CryptoJS.AES.decrypt(encrypted, key, { + const decrypted = CryptoJS.AES.decrypt(parsed.content, key, { iv: parsed.iv, mode: this.mode, padding: this.padding