1 line
181 KiB
JavaScript
1 line
181 KiB
JavaScript
(self.webpackChunkPicturePresenter=self.webpackChunkPicturePresenter||[]).push([[179],{289:(Gi,wl,Yt)=>{"use strict";function oe(t){return"function"==typeof t}function Cl(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const qi=Cl(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Ki(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class ht{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(oe(r))try{r()}catch(i){e=i instanceof qi?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Il(i)}catch(s){e=e??[],s instanceof qi?e=[...e,...s.errors]:e.push(s)}}if(e)throw new qi(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Il(e);else{if(e instanceof ht){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Ki(n,e)}remove(e){const{_finalizers:n}=this;n&&Ki(n,e),e instanceof ht&&e._removeParent(this)}}ht.EMPTY=(()=>{const t=new ht;return t.closed=!0,t})();const El=ht.EMPTY;function bl(t){return t instanceof ht||t&&"closed"in t&&oe(t.remove)&&oe(t.add)&&oe(t.unsubscribe)}function Il(t){oe(t)?t():t.unsubscribe()}const Zt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},co={setTimeout(t,e,...n){const{delegate:r}=co;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){const{delegate:e}=co;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Sl(t){co.setTimeout(()=>{const{onUnhandledError:e}=Zt;if(!e)throw t;e(t)})}function Ml(){}const Xm=Xi("C",void 0,void 0);function Xi(t,e,n){return{kind:t,value:e,error:n}}let Jt=null;function lo(t){if(Zt.useDeprecatedSynchronousErrorHandling){const e=!Jt;if(e&&(Jt={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=Jt;if(Jt=null,n)throw r}}else t()}class Yi extends ht{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,bl(e)&&e.add(this)):this.destination=ny}static create(e,n,r){return new cr(e,n,r)}next(e){this.isStopped?Ji(function Zm(t){return Xi("N",t,void 0)}(e),this):this._next(e)}error(e){this.isStopped?Ji(function Ym(t){return Xi("E",void 0,t)}(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ji(Xm,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Qm=Function.prototype.bind;function Zi(t,e){return Qm.call(t,e)}class ey{constructor(e){this.partialObserver=e}next(e){const{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){uo(r)}}error(e){const{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){uo(r)}else uo(e)}complete(){const{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){uo(n)}}}class cr extends Yi{constructor(e,n,r){let o;if(super(),oe(e)||!e)o={next:e??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Zt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Zi(e.next,i),error:e.error&&Zi(e.error,i),complete:e.complete&&Zi(e.complete,i)}):o=e}this.destination=new ey(o)}}function uo(t){Zt.useDeprecatedSynchronousErrorHandling?function Jm(t){Zt.useDeprecatedSynchronousErrorHandling&&Jt&&(Jt.errorThrown=!0,Jt.error=t)}(t):Sl(t)}function Ji(t,e){const{onStoppedNotification:n}=Zt;n&&co.setTimeout(()=>n(t,e))}const ny={closed:!0,next:Ml,error:function ty(t){throw t},complete:Ml},Qi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Tl(t){return t}let Pe=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function oy(t){return t&&t instanceof Yi||function ry(t){return t&&oe(t.next)&&oe(t.error)&&oe(t.complete)}(t)&&bl(t)}(n)?n:new cr(n,r,o);return lo(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Pl(r))((o,i)=>{const s=new cr({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Qi](){return this}pipe(...n){return function Al(t){return 0===t.length?Tl:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Pl(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Pl(t){var e;return null!==(e=t??Zt.Promise)&&void 0!==e?e:Promise}const iy=Cl(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let es=(()=>{class t extends Pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Nl(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iy}next(n){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){lo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?El:(this.currentObservers=null,i.push(n),new ht(()=>{this.currentObservers=null,Ki(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Pe;return n.source=this,n}}return t.create=(e,n)=>new Nl(e,n),t})();class Nl extends es{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:El}}function Dn(t){return e=>{if(function sy(t){return oe(t?.lift)}(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function lr(t,e,n,r,o){return new ay(t,e,n,r,o)}class ay extends Yi{constructor(e,n,r,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}}function ur(t,e){return Dn((n,r)=>{let o=0;n.subscribe(lr(r,i=>{r.next(t.call(e,i,o++))}))})}function Bt(t){return this instanceof Bt?(this.v=t,this):new Bt(t)}function kl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function os(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=t[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=t[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Ol=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Ll(t){return oe(t?.then)}function jl(t){return oe(t[Qi])}function Hl(t){return Symbol.asyncIterator&&oe(t?.[Symbol.asyncIterator])}function Bl(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const $l=function Ay(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vl(t){return oe(t?.[$l])}function Ul(t){return function Fl(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(t,e||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function c(f){f.value instanceof Bt?Promise.resolve(f.value.v).then(l,u):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function l(f){a("next",f)}function u(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:o}=yield Bt(n.read());if(o)return yield Bt(void 0);yield yield Bt(r)}}finally{n.releaseLock()}})}function zl(t){return oe(t?.getReader)}function $t(t){if(t instanceof Pe)return t;if(null!=t){if(jl(t))return function Py(t){return new Pe(e=>{const n=t[Qi]();if(oe(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ol(t))return function Ny(t){return new Pe(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}(t);if(Ll(t))return function xy(t){return new Pe(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Sl)})}(t);if(Hl(t))return Wl(t);if(Vl(t))return function Ry(t){return new Pe(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(zl(t))return function Fy(t){return Wl(Ul(t))}(t)}throw Bl(t)}function Wl(t){return new Pe(e=>{(function ky(t,e){var n,r,o,i;return function xl(t,e,n,r){return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=kl(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function Vt(t,e,n,r=0,o=!1){const i=e.schedule(function(){n(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function fo(t,e,n=1/0){return oe(e)?fo((r,o)=>ur((i,s)=>e(r,i,o,s))($t(t(r,o))),n):("number"==typeof e&&(n=e),Dn((r,o)=>function Oy(t,e,n,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&e.complete()},h=g=>l<r?p(g):c.push(g),p=g=>{i&&e.next(g),l++;let v=!1;$t(n(g,u++)).subscribe(lr(e,D=>{o?.(D),i?h(D):e.next(D)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){const D=c.shift();s?Vt(e,s,()=>p(D)):p(D)}f()}catch(D){e.error(D)}}))};return t.subscribe(lr(e,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,t,n)))}const Gl=new Pe(t=>t.complete());function is(t){return t[t.length-1]}function ql(t){return function Hy(t){return t&&oe(t.schedule)}(is(t))?t.pop():void 0}function Kl(t,e=0){return Dn((n,r)=>{n.subscribe(lr(r,o=>Vt(r,t,()=>r.next(o),e),()=>Vt(r,t,()=>r.complete(),e),o=>Vt(r,t,()=>r.error(o),e)))})}function Xl(t,e=0){return Dn((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function Yl(t,e){if(!t)throw new Error("Iterable cannot be null");return new Pe(n=>{Vt(n,e,()=>{const r=t[Symbol.asyncIterator]();Vt(n,e,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Zl(t,e){return e?function Gy(t,e){if(null!=t){if(jl(t))return function $y(t,e){return $t(t).pipe(Xl(e),Kl(e))}(t,e);if(Ol(t))return function Uy(t,e){return new Pe(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(Ll(t))return function Vy(t,e){return $t(t).pipe(Xl(e),Kl(e))}(t,e);if(Hl(t))return Yl(t,e);if(Vl(t))return function zy(t,e){return new Pe(n=>{let r;return Vt(n,e,()=>{r=t[$l](),Vt(n,e,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>oe(r?.return)&&r.return()})}(t,e);if(zl(t))return function Wy(t,e){return Yl(Ul(t),e)}(t,e)}throw Bl(t)}(t,e):$t(t)}function ss(t,e,...n){if(!0===e)return void t();if(!1===e)return;const r=new cr({next:()=>{r.unsubscribe(),t()}});return $t(e(...n)).subscribe(r)}function X(t){for(let e in t)if(t[e]===X)return e;throw Error("Could not find renamed property on target object.")}function Y(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Y).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function cs(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Xy=X({__forward_ref__:X});function ls(t){return t.__forward_ref__=ls,t.toString=function(){return Y(this())},t}function M(t){return function us(t){return"function"==typeof t&&t.hasOwnProperty(Xy)&&t.__forward_ref__===ls}(t)?t():t}function ds(t){return t&&!!t.\u0275providers}class b extends Error{constructor(e,n){super(ho(e,n)),this.code=e}}function ho(t,e){return`NG0${Math.abs(t)}${e?": "+e.trim():""}`}function N(t){return"string"==typeof t?t:null==t?"":String(t)}function po(t,e){throw new b(-201,!1)}function Xe(t,e){null==t&&function W(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function go(t){return Ql(t,mo)||Ql(t,tu)}function Ql(t,e){return t.hasOwnProperty(e)?t[e]:null}function eu(t){return t&&(t.hasOwnProperty(fs)||t.hasOwnProperty(n_))?t[fs]:null}const mo=X({\u0275prov:X}),fs=X({\u0275inj:X}),tu=X({ngInjectableDef:X}),n_=X({ngInjectorDef:X});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let hs;function Ye(t){const e=hs;return hs=t,e}function nu(t,e,n){const r=go(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&A.Optional?null:void 0!==e?e:void po(Y(t))}const J=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),dr={},ps="__NG_DI_FLAG__",yo="ngTempTokenPath",o_="ngTokenPath",i_=/\n/gm,s_="\u0275",ru="__source";let fr;function vn(t){const e=fr;return fr=t,e}function a_(t,e=A.Default){if(void 0===fr)throw new b(-203,!1);return null===fr?nu(t,void 0,e):fr.get(t,e&A.Optional?null:void 0,e)}function H(t,e=A.Default){return(function r_(){return hs}()||a_)(M(t),e)}function hr(t,e=A.Default){return H(t,_o(e))}function _o(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function gs(t){const e=[];for(let n=0;n<t.length;n++){const r=M(t[n]);if(Array.isArray(r)){if(0===r.length)throw new b(900,!1);let o,i=A.Default;for(let s=0;s<r.length;s++){const a=r[s],c=c_(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}e.push(H(o,i))}else e.push(H(r))}return e}function c_(t){return t[ps]}function St(t){return{toString:t}.toString()}var pt=(()=>((pt=pt||{})[pt.OnPush=0]="OnPush",pt[pt.Default=1]="Default",pt))(),gt=(()=>{return(t=gt||(gt={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",gt;var t})();const Mt={},V=[],Do=X({\u0275cmp:X}),ms=X({\u0275dir:X}),ys=X({\u0275pipe:X}),iu=X({\u0275mod:X}),Tt=X({\u0275fac:X}),gr=X({__NG_ELEMENT_ID__:X});let d_=0;function su(t){return St(()=>{const e=cu(t),n={...e,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c"+d_++,styles:t.styles||V,_:null,schemas:t.schemas||null,tView:null};lu(n);const r=t.dependencies;return n.directiveDefs=vo(r,!1),n.pipeDefs=vo(r,!0),n})}function h_(t){return G(t)||be(t)}function p_(t){return null!==t}function wn(t){return St(()=>({type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function au(t,e){if(null==t)return Mt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}function Ze(t){return St(()=>{const e=cu(t);return lu(e),e})}function G(t){return t[Do]||null}function be(t){return t[ms]||null}function Le(t){return t[ys]||null}function cu(t){const e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:au(t.inputs,e),outputs:au(t.outputs)}}function lu(t){t.features?.forEach(e=>e(t))}function vo(t,e){if(!t)return null;const n=e?Le:h_;return()=>("function"==typeof t?t():t).map(r=>n(r)).filter(p_)}const At=0,E=1,k=2,ie=3,rt=4,en=5,Ie=6,Cn=7,ae=8,wo=9,Co=10,j=11,_s=12,yr=13,uu=14,En=15,Se=16,_r=17,bn=18,mt=19,Dr=20,du=21,Q=22,Ds=1,fu=2,Eo=7,bo=8,In=9,Ne=10;function ze(t){return Array.isArray(t)&&"object"==typeof t[Ds]}function ot(t){return Array.isArray(t)&&!0===t[Ds]}function vs(t){return 0!=(4&t.flags)}function vr(t){return t.componentOffset>-1}function Io(t){return 1==(1&t.flags)}function it(t){return!!t.template}function m_(t){return 0!=(256&t[k])}function tn(t,e){return t.hasOwnProperty(Tt)?t[Tt]:null}class D_{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function gu(t){return t.type.prototype.ngOnChanges&&(t.setInput=w_),v_}function v_(){const t=yu(this),e=t?.current;if(e){const n=t.previous;if(n===Mt)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function w_(t,e,n,r){const o=this.declaredInputs[n],i=yu(t)||function C_(t,e){return t[mu]=e}(t,{previous:Mt,current:null}),s=i.current||(i.current={}),a=i.previous,c=a[o];s[o]=new D_(c&&c.currentValue,e,a===Mt),t[r]=e}const mu="__ngSimpleChanges__";function yu(t){return t[mu]||null}const Je=function(t,e,n){};function we(t){for(;Array.isArray(t);)t=t[At];return t}function Mo(t,e){return we(e[t])}function We(t,e){return we(e[t.index])}function vu(t,e){return t.data[e]}function je(t,e){const n=e[t];return ze(n)?n:n[At]}function To(t){return 64==(64&t[k])}function zt(t,e){return null==e?null:t[e]}function wu(t){t[bn]=0}function Cs(t,e){t[en]+=e;let n=t,r=t[ie];for(;null!==r&&(1===e&&1===n[en]||-1===e&&0===n[en]);)r[en]+=e,n=r,r=r[ie]}const x={lFrame:Nu(null),bindingsEnabled:!0};function Eu(){return x.bindingsEnabled}function _(){return x.lFrame.lView}function $(){return x.lFrame.tView}function Ce(){let t=bu();for(;null!==t&&64===t.type;)t=t.parent;return t}function bu(){return x.lFrame.currentTNode}function yt(t,e){const n=x.lFrame;n.currentTNode=t,n.isParent=e}function Es(){return x.lFrame.isParent}function Mn(){return x.lFrame.bindingIndex++}function L_(t,e){const n=x.lFrame;n.bindingIndex=n.bindingRootIndex=t,Is(e)}function Is(t){x.lFrame.currentDirectiveIndex=t}function Tu(){return x.lFrame.currentQueryIndex}function Ms(t){x.lFrame.currentQueryIndex=t}function H_(t){const e=t[E];return 2===e.type?e.declTNode:1===e.type?t[Ie]:null}function Au(t,e,n){if(n&A.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&A.Host||(o=H_(i),null===o||(i=i[En],10&o.type))););if(null===o)return!1;e=o,t=i}const r=x.lFrame=Pu();return r.currentTNode=e,r.lView=t,!0}function Ts(t){const e=Pu(),n=t[E];x.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Pu(){const t=x.lFrame,e=null===t?null:t.child;return null===e?Nu(t):e}function Nu(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function xu(){const t=x.lFrame;return x.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ru=xu;function As(){const t=xu();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Re(){return x.lFrame.selectedIndex}function nn(t){x.lFrame.selectedIndex=t}function Ao(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const i=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(t.contentHooks??(t.contentHooks=[])).push(-n,s),a&&((t.contentHooks??(t.contentHooks=[])).push(n,a),(t.contentCheckHooks??(t.contentCheckHooks=[])).push(n,a)),c&&(t.viewHooks??(t.viewHooks=[])).push(-n,c),l&&((t.viewHooks??(t.viewHooks=[])).push(n,l),(t.viewCheckHooks??(t.viewCheckHooks=[])).push(n,l)),null!=u&&(t.destroyHooks??(t.destroyHooks=[])).push(n,u)}}function Po(t,e,n){Fu(t,e,3,n)}function No(t,e,n,r){(3&t[k])===n&&Fu(t,e,n,r)}function Ps(t,e){let n=t[k];(3&n)===e&&(n&=2047,n+=1,t[k]=n)}function Fu(t,e,n,r){const i=r??-1,s=e.length-1;let a=0;for(let c=void 0!==r?65535&t[bn]:0;c<s;c++)if("number"==typeof e[c+1]){if(a=e[c],null!=r&&a>=r)break}else e[c]<0&&(t[bn]+=65536),(a<i||-1==i)&&(K_(t,n,e,c),t[bn]=(4294901760&t[bn])+c+2),c++}function K_(t,e,n,r){const o=n[r]<0,i=n[r+1],a=t[o?-n[r]:n[r]];if(o){if(t[k]>>11<t[bn]>>16&&(3&t[k])===e){t[k]+=2048,Je(4,a,i);try{i.call(a)}finally{Je(5,a,i)}}}else{Je(4,a,i);try{i.call(a)}finally{Je(5,a,i)}}}const Tn=-1;class Cr{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function xs(t,e,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,i)}else{const i=o,s=n[++r];Ou(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),r++}}return r}function ku(t){return 3===t||4===t||6===t}function Ou(t){return 64===t.charCodeAt(0)}function Er(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?n=o:0===n||Lu(t,n,o,null,-1===n||2===n?e[++r]:null)}}return t}function Lu(t,e,n,r,o){let i=0,s=t.length;if(-1===e)s=-1;else for(;i<t.length;){const a=t[i++];if("number"==typeof a){if(a===e){s=-1;break}if(a>e){s=i-1;break}}}for(;i<t.length;){const a=t[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(t[i+1]=o));if(r===t[i+1])return void(t[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==o&&t.splice(i++,0,o)}function ju(t){return t!==Tn}function xo(t){return 32767&t}function Ro(t,e){let n=function J_(t){return t>>16}(t),r=e;for(;n>0;)r=r[En],n--;return r}let Rs=!0;function Fo(t){const e=Rs;return Rs=t,e}const Hu=255,Bu=5;let Q_=0;const _t={};function ko(t,e){const n=$u(t,e);if(-1!==n)return n;const r=e[E];r.firstCreatePass&&(t.injectorIndex=e.length,Fs(r.data,t),Fs(e,null),Fs(r.blueprint,null));const o=ks(t,e),i=t.injectorIndex;if(ju(o)){const s=xo(o),a=Ro(o,e),c=a[E].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|c[s+l]}return e[i+8]=o,i}function Fs(t,e){t.push(0,0,0,0,0,0,0,0,e)}function $u(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ks(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){if(r=Ku(o),null===r)return Tn;if(n++,o=o[En],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Tn}function Os(t,e,n){!function eD(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(gr)&&(r=n[gr]),null==r&&(r=n[gr]=Q_++);const o=r&Hu;e.data[t+(o>>Bu)]|=1<<o}(t,e,n)}function Vu(t,e,n){if(n&A.Optional||void 0!==t)return t;po()}function Uu(t,e,n,r){if(n&A.Optional&&void 0===r&&(r=null),!(n&(A.Self|A.Host))){const o=t[wo],i=Ye(void 0);try{return o?o.get(e,r,n&A.Optional):nu(e,r,n&A.Optional)}finally{Ye(i)}}return Vu(r,0,n)}function zu(t,e,n,r=A.Default,o){if(null!==t){if(1024&e[k]){const s=function sD(t,e,n,r,o){let i=t,s=e;for(;null!==i&&null!==s&&1024&s[k]&&!(256&s[k]);){const a=Wu(i,s,n,r|A.Self,_t);if(a!==_t)return a;let c=i.parent;if(!c){const l=s[du];if(l){const u=l.get(n,_t,r);if(u!==_t)return u}c=Ku(s),s=s[En]}i=c}return o}(t,e,n,r,_t);if(s!==_t)return s}const i=Wu(t,e,n,r,_t);if(i!==_t)return i}return Uu(e,n,r,o)}function Wu(t,e,n,r,o){const i=function rD(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(gr)?t[gr]:void 0;return"number"==typeof e?e>=0?e&Hu:oD:e}(n);if("function"==typeof i){if(!Au(e,t,r))return r&A.Host?Vu(o,0,r):Uu(e,n,r,o);try{const s=i(r);if(null!=s||r&A.Optional)return s;po()}finally{Ru()}}else if("number"==typeof i){let s=null,a=$u(t,e),c=Tn,l=r&A.Host?e[Se][Ie]:null;for((-1===a||r&A.SkipSelf)&&(c=-1===a?ks(t,e):e[a+8],c!==Tn&&qu(r,!1)?(s=e[E],a=xo(c),e=Ro(c,e)):a=-1);-1!==a;){const u=e[E];if(Gu(i,a,u.data)){const d=nD(a,e,n,s,r,l);if(d!==_t)return d}c=e[a+8],c!==Tn&&qu(r,e[E].data[a+8]===l)&&Gu(i,a,e)?(s=u,a=xo(c),e=Ro(c,e)):a=-1}}return o}function nD(t,e,n,r,o,i){const s=e[E],a=s.data[t+8],u=Oo(a,s,n,null==r?vr(a)&&Rs:r!=s&&0!=(3&a.type),o&A.Host&&i===a);return null!==u?rn(e,s,u,a):_t}function Oo(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,c=t.directiveStart,u=i>>20,f=o?a+u:t.directiveEnd;for(let h=r?a:a+u;h<f;h++){const p=s[h];if(h<c&&n===p||h>=c&&p.type===n)return h}if(o){const h=s[c];if(h&&it(h)&&h.type===n)return c}return null}function rn(t,e,n,r){let o=t[n];const i=e.data;if(function X_(t){return t instanceof Cr}(o)){const s=o;s.resolving&&function Yy(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,`Circular dependency in DI detected for ${t}${n}`)}(function z(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():N(t)}(i[n]));const a=Fo(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Ye(s.injectImpl):null;Au(t,r,A.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function q_(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=gu(e);(n.preOrderHooks??(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks??(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks??(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks??(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==c&&Ye(c),Fo(a),s.resolving=!1,Ru()}}return o}function Gu(t,e,n){return!!(n[e+(t>>Bu)]&1<<t)}function qu(t,e){return!(t&A.Self||t&A.Host&&e)}class An{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return zu(this._tNode,this._lView,e,_o(r),n)}}function oD(){return new An(Ce(),_())}function Ku(t){const e=t[E],n=e.type;return 2===n?e.declTNode:1===n?t[Ie]:null}class P{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=q({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function on(t,e){t.forEach(n=>Array.isArray(n)?on(n,e):e(n))}function Yu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Lo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ge(t,e,n){let r=Fn(t,e);return r>=0?t[1|r]=n:(r=~r,function uD(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function $s(t,e){const n=Fn(t,e);if(n>=0)return t[1|n]}function Fn(t,e){return function Zu(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<<n];if(e===s)return i<<n;s>e?o=i:r=i+1}return~(o<<n)}(t,e,1)}var He=(()=>((He=He||{})[He.Important=1]="Important",He[He.DashCase=2]="DashCase",He))();const qs=new Map;let xD=0;const Xs="__ngContext__";function Me(t,e){ze(e)?(t[Xs]=e[Dr],function FD(t){qs.set(t[Dr],t)}(e)):t[Xs]=e}let Ys;function Zs(t,e){return Ys(t,e)}function Pr(t){const e=t[ie];return ot(e)?e[ie]:e}function Js(t){return yd(t[yr])}function Qs(t){return yd(t[rt])}function yd(t){for(;null!==t&&!ot(t);)t=t[rt];return t}function On(t,e,n,r,o){if(null!=r){let i,s=!1;ot(r)?i=r:ze(r)&&(s=!0,r=r[At]);const a=we(r);0===t&&null!==n?null==o?Ed(e,n,a):sn(e,n,a,o||null,!0):1===t&&null!==n?sn(e,n,a,o||null,!0):2===t?function sa(t,e,n){const r=Uo(t,e);r&&function ev(t,e,n,r){t.removeChild(e,n,r)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function rv(t,e,n,r,o){const i=n[Eo];i!==we(n)&&On(e,t,r,i,o);for(let a=Ne;a<n.length;a++){const c=n[a];Nr(c[E],c,t,e,r,i)}}(e,t,i,n,o)}}function ta(t,e,n){return t.createElement(e,n)}function Dd(t,e){const n=t[In],r=n.indexOf(e),o=e[ie];512&e[k]&&(e[k]&=-513,Cs(o,-1)),n.splice(r,1)}function na(t,e){if(t.length<=Ne)return;const n=Ne+e,r=t[n];if(r){const o=r[_r];null!==o&&o!==t&&Dd(o,r),e>0&&(t[n-1][rt]=r[rt]);const i=Lo(t,Ne+e);!function GD(t,e){Nr(t,e,e[j],2,null,null),e[At]=null,e[Ie]=null}(r[E],r);const s=i[mt];null!==s&&s.detachView(i[E]),r[ie]=null,r[rt]=null,r[k]&=-65}return r}function vd(t,e){if(!(128&e[k])){const n=e[j];n.destroyNode&&Nr(t,e,n,3,null,null),function XD(t){let e=t[yr];if(!e)return ra(t[E],t);for(;e;){let n=null;if(ze(e))n=e[yr];else{const r=e[Ne];r&&(n=r)}if(!n){for(;e&&!e[rt]&&e!==t;)ze(e)&&ra(e[E],e),e=e[ie];null===e&&(e=t),ze(e)&&ra(e[E],e),n=e&&e[rt]}e=n}}(e)}}function ra(t,e){if(!(128&e[k])){e[k]&=-65,e[k]|=128,function QD(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const o=e[n[r]];if(!(o instanceof Cr)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];Je(4,a,c);try{c.call(a)}finally{Je(5,a,c)}}else{Je(4,o,i);try{i.call(o)}finally{Je(5,o,i)}}}}}(t,e),function JD(t,e){const n=t.cleanup,r=e[Cn];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+3];s>=0?r[o=s]():r[o=-s].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)(0,r[i])();e[Cn]=null}}(t,e),1===e[E].type&&e[j].destroy();const n=e[_r];if(null!==n&&ot(e[ie])){n!==e[ie]&&Dd(n,e);const r=e[mt];null!==r&&r.detachView(t)}!function kD(t){qs.delete(t[Dr])}(e)}}function wd(t,e,n){return function Cd(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[At];{const{componentOffset:o}=r;if(o>-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===gt.None||i===gt.Emulated)return null}return We(r,n)}}(t,e.parent,n)}function sn(t,e,n,r,o){t.insertBefore(e,n,r,o)}function Ed(t,e,n){t.appendChild(e,n)}function bd(t,e,n,r,o){null!==r?sn(t,e,n,r,o):Ed(t,e,n)}function Uo(t,e){return t.parentNode(e)}let oa,la,Md=function Sd(t,e,n){return 40&t.type?We(t,n):null};function zo(t,e,n,r){const o=wd(t,r,e),i=e[j],a=function Id(t,e,n){return Md(t,e,n)}(r.parent||e[Ie],r,e);if(null!=o)if(Array.isArray(n))for(let c=0;c<n.length;c++)bd(i,o,n[c],a,!1);else bd(i,o,n,a,!1);void 0!==oa&&oa(i,r,e,n,o)}function Wo(t,e){if(null!==e){const n=e.type;if(3&n)return We(e,t);if(4&n)return ia(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return Wo(t,r);{const o=t[e.index];return ot(o)?ia(-1,o):we(o)}}if(32&n)return Zs(e,t)()||we(t[e.index]);{const r=Ad(t,e);return null!==r?Array.isArray(r)?r[0]:Wo(Pr(t[Se]),r):Wo(t,e.next)}}return null}function Ad(t,e){return null!==e?t[Se][Ie].projection[e.projection]:null}function ia(t,e){const n=Ne+t+1;if(n<e.length){const r=e[n],o=r[E].firstChild;if(null!==o)return Wo(r,o)}return e[Eo]}function aa(t,e,n,r,o,i,s){for(;null!=n;){const a=r[n.index],c=n.type;if(s&&0===e&&(a&&Me(we(a),r),n.flags|=2),32!=(32&n.flags))if(8&c)aa(t,e,n.child,r,o,i,!1),On(e,t,o,a,i);else if(32&c){const l=Zs(n,r);let u;for(;u=l();)On(e,t,o,u,i);On(e,t,o,a,i)}else 16&c?Pd(t,e,r,n,o,i):On(e,t,o,a,i);n=s?n.projectionNext:n.next}}function Nr(t,e,n,r,o,i){aa(n,r,t.firstChild,e,o,i,!1)}function Pd(t,e,n,r,o,i){const s=n[Se],c=s[Ie].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)On(e,t,o,c[l],i);else aa(t,e,c,s[ie],o,i,!0)}function Nd(t,e,n){""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function xd(t,e,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&xs(t,e,r),null!==o&&Nd(t,e,o),null!==i&&function iv(t,e,n){t.setAttribute(e,"style",n)}(t,e,i)}class Ld{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}const Gd=new P("ENVIRONMENT_INITIALIZER"),qd=new P("INJECTOR",-1),Kd=new P("INJECTOR_DEF_TYPES");class Xd{get(e,n=dr){if(n===dr){const r=new Error(`NullInjectorError: No provider for ${Y(e)}!`);throw r.name="NullInjectorError",r}return n}}function Fv(...t){return{\u0275providers:Yd(0,t),\u0275fromNgModule:!0}}function Yd(t,...e){const n=[],r=new Set;let o;return on(e,i=>{const s=i;ga(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&Zd(o,n),n}function Zd(t,e){for(let n=0;n<t.length;n++){const{providers:o}=t[n];ma(o,i=>{e.push(i)})}}function ga(t,e,n,r){if(!(t=M(t)))return!1;let o=null,i=eu(t);const s=!i&&G(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const c=t.ngModule;if(i=eu(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)ga(l,e,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{on(i.imports,u=>{ga(u,e,n,r)&&(l||(l=[]),l.push(u))})}finally{}void 0!==l&&Zd(l,e)}if(!a){const l=tn(o)||(()=>new o);e.push({provide:o,useFactory:l,deps:V},{provide:Kd,useValue:o,multi:!0},{provide:Gd,useValue:()=>H(o),multi:!0})}const c=i.providers;null==c||a||ma(c,u=>{e.push(u)})}}return o!==t&&void 0!==t.providers}function ma(t,e){for(let n of t)ds(n)&&(n=n.\u0275providers),Array.isArray(n)?ma(n,e):e(n)}const kv=X({provide:String,useValue:X});function ya(t){return null!==t&&"object"==typeof t&&kv in t}function an(t){return"function"==typeof t}const _a=new P("Set Injector scope."),Xo={},Lv={};let Da;function Yo(){return void 0===Da&&(Da=new Xd),Da}class cn{}class ef extends cn{get destroyed(){return this._destroyed}constructor(e,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wa(e,s=>this.processProvider(s)),this.records.set(qd,jn(void 0,this)),o.has("environment")&&this.records.set(cn,jn(void 0,this));const i=this.records.get(_a);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Kd.multi,V,A.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();for(const e of this._onDestroyHooks)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(e){this._onDestroyHooks.push(e)}runInContext(e){this.assertNotDestroyed();const n=vn(this),r=Ye(void 0);try{return e()}finally{vn(n),Ye(r)}}get(e,n=dr,r=A.Default){this.assertNotDestroyed(),r=_o(r);const o=vn(this),i=Ye(void 0);try{if(!(r&A.SkipSelf)){let a=this.records.get(e);if(void 0===a){const c=function Vv(t){return"function"==typeof t||"object"==typeof t&&t instanceof P}(e)&&go(e);a=c&&this.injectableDefInScope(c)?jn(va(e),Xo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&A.Self?Yo():this.parent).get(e,n=r&A.Optional&&n===dr?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[yo]=s[yo]||[]).unshift(Y(e)),o)throw s;return function l_(t,e,n,r){const o=t[yo];throw e[ru]&&o.unshift(e[ru]),t.message=function u_(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&t.charAt(1)==s_?t.slice(2):t;let o=Y(e);if(Array.isArray(e))o=e.map(Y).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Y(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(i_,"\n ")}`}("\n"+t.message,o,n,r),t[o_]=o,t[yo]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{Ye(i),vn(o)}}resolveInjectorInitializers(){const e=vn(this),n=Ye(void 0);try{const r=this.get(Gd.multi,V,A.Self);for(const o of r)o()}finally{vn(e),Ye(n)}}toString(){const e=[],n=this.records;for(const r of n.keys())e.push(Y(r));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){let n=an(e=M(e))?e:M(e&&e.provide);const r=function Hv(t){return ya(t)?jn(void 0,t.useValue):jn(function tf(t,e,n){let r;if(an(t)){const o=M(t);return tn(o)||va(o)}if(ya(t))r=()=>M(t.useValue);else if(function Qd(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...gs(t.deps||[]));else if(function Jd(t){return!(!t||!t.useExisting)}(t))r=()=>H(M(t.useExisting));else{const o=M(t&&(t.useClass||t.provide));if(!function Bv(t){return!!t.deps}(t))return tn(o)||va(o);r=()=>new o(...gs(t.deps))}return r}(t),Xo)}(e);if(an(e)||!0!==e.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=jn(void 0,Xo,!0),o.factory=()=>gs(o.multi),this.records.set(n,o)),n=e,o.multi.push(e)}this.records.set(n,r)}hydrate(e,n){return n.value===Xo&&(n.value=Lv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=M(e.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function va(t){const e=go(t),n=null!==e?e.factory:tn(t);if(null!==n)return n;if(t instanceof P)throw new b(204,!1);if(t instanceof Function)return function jv(t){const e=t.length;if(e>0)throw function Sr(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?"),new b(204,!1);const n=function t_(t){return t&&(t[mo]||t[tu])||null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new b(204,!1)}function jn(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function wa(t,e){for(const n of t)Array.isArray(n)?wa(n,e):n&&ds(n)?wa(n.\u0275providers,e):e(n)}class Uv{}class nf{}class Wv{resolveComponentFactory(e){throw function zv(t){const e=Error(`No component factory found for ${Y(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Zo=(()=>{class t{}return t.NULL=new Wv,t})();function Gv(){return Hn(Ce(),_())}function Hn(t,e){return new Bn(We(t,e))}let Bn=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=Gv,t})();function qv(t){return t instanceof Bn?t.nativeElement:t}class of{}let Ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function Kv(){const t=_(),n=je(Ce().index,t);return(ze(n)?n:t)[j]}(),t})(),Xv=(()=>{class t{}return t.\u0275prov=q({token:t,providedIn:"root",factory:()=>null}),t})();class Ea{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Yv=new Ea("15.2.10"),ba={},Ia="ngOriginalError";function Sa(t){return t[Ia]}class $n{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e);this._console.error("ERROR",e),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Sa(e);for(;n&&Sa(n);)n=Sa(n);return n||null}}function af(t,e,n){let r=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=e.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}n=o+1}}const cf="ng-template";function aw(t,e,n){let r=0,o=!0;for(;r<t.length;){let i=t[r++];if("string"==typeof i&&o){const s=t[r++];if(n&&"class"===i&&-1!==af(s.toLowerCase(),e,0))return!0}else{if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}"number"==typeof i&&(o=!1)}}return!1}function lf(t){return 4===t.type&&t.value!==cf}function cw(t,e,n){return e===(4!==t.type||n?t.value:cf)}function lw(t,e,n){let r=4;const o=t.attrs||[],i=function fw(t){for(let e=0;e<t.length;e++)if(ku(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!cw(t,c,n)||""===c&&1===e.length){if(st(r))return!1;s=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!aw(t.attrs,l,n)){if(st(r))return!1;s=!0}continue}const d=uw(8&r?"class":c,o,lf(t),n);if(-1===d){if(st(r))return!1;s=!0;continue}if(""!==l){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==af(h,l,0)||2&r&&l!==f){if(st(r))return!1;s=!0}}}}else{if(!s&&!st(r)&&!st(c))return!1;if(s&&st(c))continue;s=!1,r=c|1&r}}return st(r)||s}function st(t){return 0==(1&t)}function uw(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o<e.length;){const s=e[o];if(s===t)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=e[++o];for(;"string"==typeof a;)a=e[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function hw(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function uf(t,e,n=!1){for(let r=0;r<e.length;r++)if(lw(t,e[r],n))return!0;return!1}function df(t,e){return t?":not("+e.trim()+")":e}function gw(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const a=t[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!st(s)&&(e+=df(i,o),o=""),r=s,i=i||!st(r);n++}return""!==o&&(e+=df(i,o)),e}const R={};function ln(t){ff($(),_(),Re()+t,!1)}function ff(t,e,n,r){if(!r)if(3==(3&e[k])){const i=t.preOrderCheckHooks;null!==i&&Po(e,i,n)}else{const i=t.preOrderHooks;null!==i&&No(e,i,0,n)}nn(n)}function mf(t,e=null,n=null,r){const o=yf(t,e,n,r);return o.resolveInjectorInitializers(),o}function yf(t,e=null,n=null,r,o=new Set){const i=[n||V,Fv(t)];return r=r||("object"==typeof t?void 0:Y(t)),new ef(i,e||Yo(),r||null,o)}let un=(()=>{class t{static create(n,r){if(Array.isArray(n))return mf({name:""},r,n,"");{const o=n.name??"";return mf({name:o},n.parent,n.providers,o)}}}return t.THROW_IF_NOT_FOUND=dr,t.NULL=new Xd,t.\u0275prov=q({token:t,providedIn:"any",factory:()=>H(qd)}),t.__NG_ELEMENT_ID__=-1,t})();function O(t,e=A.Default){const n=_();return null===n?H(t,e):zu(Ce(),n,M(t),e)}function bf(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r+1];if(-1!==i){const s=t.data[i];Ms(n[r]),s.contentQueries(2,e[i],i)}}}function Qo(t,e,n,r,o,i,s,a,c,l,u){const d=e.blueprint.slice();return d[At]=o,d[k]=76|r,(null!==u||t&&1024&t[k])&&(d[k]|=1024),wu(d),d[ie]=d[En]=t,d[ae]=n,d[Co]=s||t&&t[Co],d[j]=a||t&&t[j],d[_s]=c||t&&t[_s]||null,d[wo]=l||t&&t[wo]||null,d[Ie]=i,d[Dr]=function RD(){return xD++}(),d[du]=u,d[Se]=2==e.type?t[Se]:d,d}function zn(t,e,n,r,o){let i=t.data[e];if(null===i)i=function Na(t,e,n,r,o){const i=bu(),s=Es(),c=t.data[e]=function Vw(t,e,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,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:e,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,n,e,r,o);return null===t.firstChild&&(t.firstChild=c),null!==i&&(s?null==i.child&&null!==c.parent&&(i.child=c):null===i.next&&(i.next=c,c.prev=i)),c}(t,e,n,r,o),function O_(){return x.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function wr(){const t=x.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return yt(i,!0),i}function kr(t,e,n,r){if(0===n)return-1;const o=e.length;for(let i=0;i<n;i++)e.push(r),t.blueprint.push(r),t.data.push(null);return o}function xa(t,e,n){Ts(e);try{const r=t.viewQuery;null!==r&&$a(1,r,n);const o=t.template;null!==o&&If(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&bf(t,e),t.staticViewQueries&&$a(2,t.viewQuery,n);const i=t.components;null!==i&&function Hw(t,e){for(let n=0;n<e.length;n++)cC(t,e[n])}(e,i)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[k]&=-5,As()}}function ei(t,e,n,r){const o=e[k];if(128!=(128&o)){Ts(e);try{wu(e),function Su(t){return x.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&If(t,e,n,2,r);const s=3==(3&o);if(s){const l=t.preOrderCheckHooks;null!==l&&Po(e,l,null)}else{const l=t.preOrderHooks;null!==l&&No(e,l,0,null),Ps(e,0)}if(function sC(t){for(let e=Js(t);null!==e;e=Qs(e)){if(!e[fu])continue;const n=e[In];for(let r=0;r<n.length;r++){const o=n[r];512&o[k]||Cs(o[ie],1),o[k]|=512}}}(e),function iC(t){for(let e=Js(t);null!==e;e=Qs(e))for(let n=Ne;n<e.length;n++){const r=e[n],o=r[E];To(r)&&ei(o,r,o.template,r[ae])}}(e),null!==t.contentQueries&&bf(t,e),s){const l=t.contentCheckHooks;null!==l&&Po(e,l)}else{const l=t.contentHooks;null!==l&&No(e,l,1),Ps(e,1)}!function Lw(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)nn(~o);else{const i=o,s=n[++r],a=n[++r];L_(s,i),a(2,e[i])}}}finally{nn(-1)}}(t,e);const a=t.components;null!==a&&function jw(t,e){for(let n=0;n<e.length;n++)aC(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&$a(2,c,r),s){const l=t.viewCheckHooks;null!==l&&Po(e,l)}else{const l=t.viewHooks;null!==l&&No(e,l,2),Ps(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[k]&=-41,512&e[k]&&(e[k]&=-513,Cs(e[ie],-1))}finally{As()}}}function If(t,e,n,r,o){const i=Re(),s=2&r;try{nn(-1),s&&e.length>Q&&ff(t,e,Q,!1),Je(s?2:0,o),n(r,o)}finally{nn(i),Je(s?3:1,o)}}function Ra(t,e,n){if(vs(e)){const o=e.directiveEnd;for(let i=e.directiveStart;i<o;i++){const s=t.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}function Fa(t,e,n){Eu()&&(function Xw(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;vr(n)&&function nC(t,e,n){const r=We(e,t),o=Sf(n),i=t[Co],s=ti(t,Qo(t,o,null,n.onPush?32:16,r,e,i,i.createRenderer(r,n),null,null,null));t[e.index]=s}(e,n,t.data[o+n.componentOffset]),t.firstCreatePass||ko(n,e),Me(r,e);const s=n.initialInputs;for(let a=o;a<i;a++){const c=t.data[a],l=rn(e,t,a,n);Me(l,e),null!==s&&rC(0,a-o,l,c,0,s),it(c)&&(je(n.index,e)[ae]=rn(e,t,a,n))}}(t,e,n,We(n,e)),64==(64&n.flags)&&Nf(t,e,n))}function ka(t,e,n=We){const r=e.localNames;if(null!==r){let o=e.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}function Sf(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Oa(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Oa(t,e,n,r,o,i,s,a,c,l){const u=Q+r,d=u+o,f=function Bw(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:R);return n}(u,d),h="function"==typeof l?l():l;return f[E]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1}}function Mf(t,e,n,r){const o=function Rf(t){return t[Cn]||(t[Cn]=[])}(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&function Ff(t){return t.cleanup||(t.cleanup=[])}(t).push(r,o.length-1))}function Tf(t,e,n,r){for(let o in t)if(t.hasOwnProperty(o)){n=null===n?{}:n;const i=t[o];null===r?Af(n,e,o,i):r.hasOwnProperty(o)&&Af(n,e,r[o],i)}return n}function Af(t,e,n,r){t.hasOwnProperty(n)?t[n].push(e,r):t[n]=[e,r]}function La(t,e,n,r){if(Eu()){const o=null===r?null:{"":-1},i=function Zw(t,e){const n=t.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(uf(e,s.selectors,!1))if(r||(r=[]),it(s))if(null!==s.findHostDirectiveDefs){const a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),r.unshift(...a,s),ja(t,e,a.length)}else r.unshift(s),ja(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,r,o),r.push(s)}return null===r?null:[r,o]}(t,n);let s,a;null===i?s=a=null:[s,a]=i,null!==s&&Pf(t,e,n,s,o,a),o&&function Jw(t,e,n){if(e){const r=t.localNames=[];for(let o=0;o<e.length;o+=2){const i=n[e[o+1]];if(null==i)throw new b(-301,!1);r.push(e[o],i)}}}(n,r,o)}n.mergedAttrs=Er(n.mergedAttrs,n.attrs)}function Pf(t,e,n,r,o,i){for(let l=0;l<r.length;l++)Os(ko(n,e),t,r[l].type);!function eC(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}(n,t.data.length,r.length);for(let l=0;l<r.length;l++){const u=r[l];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,c=kr(t,e,r.length,null);for(let l=0;l<r.length;l++){const u=r[l];n.mergedAttrs=Er(n.mergedAttrs,u.hostAttrs),tC(t,n,e,c,u),Qw(c,u,o),null!==u.contentQueries&&(n.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(n.flags|=64);const d=u.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??(t.preOrderHooks=[])).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??(t.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function Uw(t,e,n){const o=e.directiveEnd,i=t.data,s=e.attrs,a=[];let c=null,l=null;for(let u=e.directiveStart;u<o;u++){const d=i[u],f=n?n.get(d):null,p=f?f.outputs:null;c=Tf(d.inputs,u,c,f?f.inputs:null),l=Tf(d.outputs,u,l,p);const g=null===c||null===s||lf(e)?null:oC(c,u,s);a.push(g)}null!==c&&(c.hasOwnProperty("class")&&(e.flags|=8),c.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=c,e.outputs=l}(t,n,i)}function Nf(t,e,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function j_(){return x.lFrame.currentDirectiveIndex}();try{nn(i);for(let a=r;a<o;a++){const c=t.data[a],l=e[a];Is(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&Yw(c,l)}}finally{nn(-1),Is(s)}}function Yw(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ja(t,e,n){e.componentOffset=n,(t.components??(t.components=[])).push(e.index)}function Qw(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;it(e)&&(n[""]=t)}}function tC(t,e,n,r,o){t.data[r]=o;const i=o.factory||(o.factory=tn(o.type)),s=new Cr(i,it(o),O);t.blueprint[r]=s,n[r]=s,function qw(t,e,n,r,o){const i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const a=~e.index;(function Kw(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(t,e,r,kr(t,n,o.hostVars,R),o)}function rC(t,e,n,r,o,i){const s=i[e];if(null!==s){const a=r.setInput;for(let c=0;c<s.length;){const l=s[c++],u=s[c++],d=s[c++];null!==a?r.setInput(n,d,l,u):n[u]=d}}}function oC(t,e,n){let r=null,o=0;for(;o<n.length;){const i=n[o];if(0!==i)if(5!==i){if("number"==typeof i)break;if(t.hasOwnProperty(i)){null===r&&(r=[]);const s=t[i];for(let a=0;a<s.length;a+=2)if(s[a]===e){r.push(i,s[a+1],n[o+1]);break}}o+=2}else o+=2;else o+=4}return r}function xf(t,e,n,r){return[t,!0,!1,e,null,0,r,n,null,null]}function aC(t,e){const n=je(e,t);if(To(n)){const r=n[E];48&n[k]?ei(r,n,r.template,n[ae]):n[en]>0&&Ba(n)}}function Ba(t){for(let r=Js(t);null!==r;r=Qs(r))for(let o=Ne;o<r.length;o++){const i=r[o];if(To(i))if(512&i[k]){const s=i[E];ei(s,i,s.template,i[ae])}else i[en]>0&&Ba(i)}const n=t[E].components;if(null!==n)for(let r=0;r<n.length;r++){const o=je(n[r],t);To(o)&&o[en]>0&&Ba(o)}}function cC(t,e){const n=je(e,t),r=n[E];(function lC(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),xa(r,n,n[ae])}function ti(t,e){return t[yr]?t[uu][rt]=e:t[yr]=e,t[uu]=e,e}function ni(t){for(;t;){t[k]|=32;const e=Pr(t);if(m_(t)&&!e)return t;t=e}return null}function ri(t,e,n,r=!0){const o=e[Co];o.begin&&o.begin();try{ei(t,e,t.template,n)}catch(s){throw r&&function Of(t,e){const n=t[wo],r=n?n.get($n,null):null;r&&r.handleError(e)}(e,s),s}finally{o.end&&o.end()}}function $a(t,e,n){Ms(0),e(t,n)}function Va(t,e,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],c=e[s],l=t.data[s];null!==l.setInput?l.setInput(c,o,r,a):c[a]=o}}function oi(t,e,n){let r=n?t.styles:null,o=n?t.classes:null,i=0;if(null!==e)for(let s=0;s<e.length;s++){const a=e[s];"number"==typeof a?i=a:1==i?o=cs(o,a):2==i&&(r=cs(r,a+": "+e[++s]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=o:t.classesWithoutHost=o}function ii(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(we(i)),ot(i))for(let a=Ne;a<i.length;a++){const c=i[a],l=c[E].firstChild;null!==l&&ii(c[E],c,l,r)}const s=n.type;if(8&s)ii(t,e,n.child,r);else if(32&s){const a=Zs(n,e);let c;for(;c=a();)r.push(c)}else if(16&s){const a=Ad(e,n);if(Array.isArray(a))r.push(...a);else{const c=Pr(e[Se]);ii(c[E],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class Or{get rootNodes(){const e=this._lView,n=e[E];return ii(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ae]}set context(e){this._lView[ae]=e}get destroyed(){return 128==(128&this._lView[k])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[ie];if(ot(e)){const n=e[bo],r=n?n.indexOf(this):-1;r>-1&&(na(e,r),Lo(n,r))}this._attachedToViewContainer=!1}vd(this._lView[E],this._lView)}onDestroy(e){Mf(this._lView[E],this._lView,null,e)}markForCheck(){ni(this._cdRefInjectingView||this._lView)}detach(){this._lView[k]&=-65}reattach(){this._lView[k]|=64}detectChanges(){ri(this._lView[E],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function KD(t,e){Nr(t,e,e[j],2,null,null)}(this._lView[E],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e}}class uC extends Or{constructor(e){super(e),this._view=e}detectChanges(){const e=this._view;ri(e[E],e,e[ae],!1)}checkNoChanges(){}get context(){return null}}class Lf extends Zo{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=G(e);return new Lr(n,this.ngModule)}}function jf(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class fC{constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){r=_o(r);const o=this.injector.get(e,ba,r);return o!==ba||n===ba?o:this.parentInjector.get(e,n,r)}}class Lr extends nf{get inputs(){return jf(this.componentDef.inputs)}get outputs(){return jf(this.componentDef.outputs)}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function mw(t){return t.map(gw).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}create(e,n,r,o){let i=(o=o||this.ngModule)instanceof cn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new fC(e,i):e,a=s.get(of,null);if(null===a)throw new b(407,!1);const c=s.get(Xv,null),l=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=r?function $w(t,e,n){return t.selectRootElement(e,n===gt.ShadowDom)}(l,r,this.componentDef.encapsulation):ta(l,u,function dC(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(u)),f=this.componentDef.onPush?288:272,h=Oa(0,null,null,1,0,null,null,null,null,null),p=Qo(null,h,null,f,null,null,a,l,c,s,null);let g,v;Ts(p);try{const D=this.componentDef;let C,y=null;D.findHostDirectiveDefs?(C=[],y=new Map,D.findHostDirectiveDefs(D,C,y),C.push(D)):C=[D];const I=function pC(t,e){const n=t[E],r=Q;return t[r]=e,zn(n,r,2,"#host",null)}(p,d),U=function gC(t,e,n,r,o,i,s,a){const c=o[E];!function mC(t,e,n,r){for(const o of t)e.mergedAttrs=Er(e.mergedAttrs,o.hostAttrs);null!==e.mergedAttrs&&(oi(e,e.mergedAttrs,!0),null!==n&&xd(r,n,e))}(r,t,e,s);const l=i.createRenderer(e,n),u=Qo(o,Sf(n),null,n.onPush?32:16,o[t.index],t,i,l,a||null,null,null);return c.firstCreatePass&&ja(c,t,r.length-1),ti(o,u),o[t.index]=u}(I,d,D,C,p,a,l);v=vu(h,Q),d&&function _C(t,e,n,r){if(r)xs(t,n,["ng-version",Yv.full]);else{const{attrs:o,classes:i}=function yw(t){const e=[],n=[];let r=1,o=2;for(;r<t.length;){let i=t[r];if("string"==typeof i)2===o?""!==i&&e.push(i,t[++r]):8===o&&n.push(i);else{if(!st(o))break;o=i}r++}return{attrs:e,classes:n}}(e.selectors[0]);o&&xs(t,n,o),i&&i.length>0&&Nd(t,n,i.join(" "))}}(l,D,d,r),void 0!==n&&function DC(t,e,n){const r=t.projection=[];for(let o=0;o<e.length;o++){const i=n[o];r.push(null!=i?Array.from(i):null)}}(v,this.ngContentSelectors,n),g=function yC(t,e,n,r,o,i){const s=Ce(),a=o[E],c=We(s,o);Pf(a,o,s,n,null,r);for(let u=0;u<n.length;u++)Me(rn(o,a,s.directiveStart+u,s),o);Nf(a,o,s),c&&Me(c,o);const l=rn(o,a,s.directiveStart+s.componentOffset,s);if(t[ae]=o[ae]=l,null!==i)for(const u of i)u(l,e);return Ra(a,s,t),l}(U,D,C,y,p,[vC]),xa(h,p,null)}finally{As()}return new hC(this.componentType,g,Hn(v,p),p,v)}}class hC extends Uv{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new uC(o),this.componentType=e}setInput(e,n){const r=this._tNode.inputs;let o;if(null!==r&&(o=r[e])){const i=this._rootLView;Va(i[E],i,o,e,n),ni(je(this._tNode.index,i))}}get injector(){return new An(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function vC(){const t=Ce();Ao(_()[E],t)}function Te(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Wa(t,e,n,r,o,i,s,a){const c=_(),l=$(),u=t+Q,d=l.firstCreatePass?function FC(t,e,n,r,o,i,s,a,c){const l=e.consts,u=zn(e,t,4,s||null,zt(l,a));La(e,n,u,zt(l,c)),Ao(e,u);const d=u.tView=Oa(2,u,r,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,l,c,e,n,r,o,i,s):l.data[u];yt(d,!1);const f=c[j].createComment("");zo(l,c,f,d),Me(f,c),ti(c,c[u]=xf(f,c,f,d)),Io(d)&&Fa(l,c,d),null!=s&&ka(c,d,a)}function ci(t,e,n){const r=_();return Te(r,Mn(),e)&&function qe(t,e,n,r,o,i,s,a){const c=We(e,n);let u,l=e.inputs;!a&&null!=l&&(u=l[r])?(Va(t,n,u,r,o),vr(e)&&function Ww(t,e){const n=je(e,t);16&n[k]||(n[k]|=32)}(n,e.index)):3&e.type&&(r=function zw(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,e.value||"",r):o,i.setProperty(c,r,o))}($(),function te(){const t=x.lFrame;return vu(t.tView,t.selectedIndex)}(),r,t,e,r[j],n,!1),ci}function Ga(t,e,n,r,o){const s=o?"class":"style";Va(t,n,e.inputs[s],s,r)}function fn(t,e,n,r){const o=_(),i=$(),s=Q+t,a=o[j],c=i.firstCreatePass?function LC(t,e,n,r,o,i){const s=e.consts,c=zn(e,t,2,r,zt(s,o));return La(e,n,c,zt(s,i)),null!==c.attrs&&oi(c,c.attrs,!1),null!==c.mergedAttrs&&oi(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(s,i,o,e,n,r):i.data[s],l=o[s]=ta(a,e,function G_(){return x.lFrame.currentNamespace}()),u=Io(c);return yt(c,!0),xd(a,l,c),32!=(32&c.flags)&&zo(i,o,l,c),0===function T_(){return x.lFrame.elementDepthCount}()&&Me(l,o),function A_(){x.lFrame.elementDepthCount++}(),u&&(Fa(i,o,c),Ra(i,c,o)),null!==r&&ka(o,c),fn}function hn(){let t=Ce();Es()?function bs(){x.lFrame.isParent=!1}():(t=t.parent,yt(t,!1));const e=t;!function P_(){x.lFrame.elementDepthCount--}();const n=$();return n.firstCreatePass&&(Ao(n,t),vs(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function Y_(t){return 0!=(8&t.flags)}(e)&&Ga(n,e,_(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function Z_(t){return 0!=(16&t.flags)}(e)&&Ga(n,e,_(),e.stylesWithoutHost,!1),hn}function qa(t,e,n,r){return fn(t,e,n,r),hn(),qa}function Ya(t){return!!t&&"function"==typeof t.then}const BC=function th(t){return!!t&&"function"==typeof t.subscribe};function ah(t=1){return function B_(t){return(x.lFrame.contextLView=function $_(t,e){for(;t>0;)e=e[En],t--;return e}(t,x.lFrame.contextLView))[ae]}(t)}function li(t,e){return t<<17|e<<2}function Gt(t){return t>>17&32767}function Ja(t){return 2|t}function pn(t){return(131068&t)>>2}function Qa(t,e){return-131069&t|e<<2}function ec(t){return 1|t}function yh(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?Gt(i):pn(i),c=!1;for(;0!==a&&(!1===c||s);){const u=t[a+1];YC(t[a],e)&&(c=!0,t[a+1]=r?ec(u):Ja(u)),a=r?Gt(u):pn(u)}c&&(t[n+1]=r?Ja(i):ec(i))}function YC(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Fn(t,e)>=0}function Hr(t,e,n){return function at(t,e,n,r){const o=_(),i=$(),s=function Nt(t){const e=x.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function Sh(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[Re()],s=function Ih(t,e){return e>=t.expandoStartIndex}(t,n);(function Ph(t,e){return 0!=(t.flags&(e?8:16))})(i,r)&&null===e&&!s&&(e=!1),e=function iE(t,e,n,r){const o=function Ss(t){const e=x.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Br(n=tc(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=tc(o,t,e,n,r),null===i){let c=function sE(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==pn(r))return t[Gt(r)]}(t,e,r);void 0!==c&&Array.isArray(c)&&(c=tc(null,t,e,c[1],r),c=Br(c,e.attrs,r),function aE(t,e,n,r){t[Gt(n?e.classBindings:e.styleBindings)]=r}(t,e,r,c))}else i=function cE(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++)r=Br(r,t[i].hostAttrs,n);return Br(r,e.attrs,n)}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(o,i,e,r),function KC(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=Gt(s),c=pn(s);t[r]=n;let u,l=!1;if(Array.isArray(n)?(u=n[1],(null===u||Fn(n,u)>0)&&(l=!0)):u=n,o)if(0!==c){const f=Gt(t[a+1]);t[r+1]=li(f,a),0!==f&&(t[f+1]=Qa(t[f+1],r)),t[a+1]=function GC(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=li(a,0),0!==a&&(t[a+1]=Qa(t[a+1],r)),a=r;else t[r+1]=li(c,0),0===a?a=r:t[c+1]=Qa(t[c+1],r),c=r;l&&(t[r+1]=Ja(t[r+1])),yh(t,u,r,!0),yh(t,u,r,!1),function XC(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&Fn(i,e)>=0&&(n[r+1]=ec(n[r+1]))}(e,u,t,r,i),s=li(a,c),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==R&&Te(o,s,e)&&function Th(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const c=t.data,l=c[a+1],u=function qC(t){return 1==(1&t)}(l)?Ah(c,e,n,o,pn(l),s):void 0;ui(u)||(ui(i)||function WC(t){return 2==(2&t)}(l)&&(i=Ah(c,null,n,o,a,s)),function ov(t,e,n,r,o){if(e)o?t.addClass(n,r):t.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:He.DashCase;null==o?t.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=He.Important),t.setStyle(n,r,o,i))}}(r,s,Mo(Re(),n),o,i))}(i,i.data[Re()],o,o[j],t,o[s+1]=function fE(t,e){return null==t||""===t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Y(function Wt(t){return t instanceof Ld?t.changingThisBreaksApplicationSecurity:t}(t)))),t}(e,n),r,s)}(t,e,n,!1),Hr}function tc(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=e[a],r=Br(r,i.hostAttrs,o),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Br(t,e,n){const r=n?1:2;let o=-1;if(null!==e)for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?o=s:o===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Ge(t,s,!!n||e[++i]))}return void 0===t?null:t}function Ah(t,e,n,r,o,i){const s=null===e;let a;for(;o>0;){const c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=n[o+1];f===R&&(f=d?V:void 0);let h=d?$s(f,r):u===r?f:void 0;if(l&&!ui(h)&&(h=$s(c,r)),ui(h)&&(a=h,s))return a;const p=t[o+1];o=s?Gt(p):pn(p)}if(null!==e){let c=i?e.residualClasses:e.residualStyles;null!=c&&(a=$s(c,r))}return a}function ui(t){return void 0!==t}function $r(t,e=""){const n=_(),r=$(),o=t+Q,i=r.firstCreatePass?zn(r,o,1,e,null):r.data[o],s=n[o]=function ea(t,e){return t.createText(e)}(n[j],e);zo(r,n,s,i),yt(i,!1)}function nc(t){return di("",t,""),nc}function di(t,e,n){const r=_(),o=function Gn(t,e,n,r){return Te(t,Mn(),n)?e+N(n)+r:R}(r,t,e,n);return o!==R&&function Ft(t,e,n){const r=Mo(e,t);!function _d(t,e,n){t.setValue(e,n)}(t[j],r,n)}(r,Re(),o),di}const nr="en-US";let Jh=nr;class rr{}class xb{}class bp extends rr{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lf(this);const r=function Ue(t,e){const n=t[iu]||null;if(!n&&!0===e)throw new Error(`Type ${Y(t)} does not have '\u0275mod' property.`);return n}(e);this._bootstrapComponents=function Rt(t){return t instanceof Function?t():t}(r.bootstrap),this._r3Injector=yf(e,n,[{provide:rr,useValue:this},{provide:Zo,useValue:this.componentFactoryResolver}],Y(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class lc extends xb{constructor(e){super(),this.moduleType=e}create(e){return new bp(this.moduleType,e)}}function dc(t){return e=>{setTimeout(t,void 0,e)}}const kt=class cI extends es{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){let o=e,i=n||(()=>null),s=r;if(e&&"object"==typeof e){const c=e;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=dc(i),o&&(o=dc(o)),s&&(s=dc(s)));const a=super.subscribe({next:o,error:i,complete:s});return e instanceof ht&&e.add(a),a}};function lI(){return this._results[Symbol.iterator]()}class fc{get changes(){return this._changes||(this._changes=new kt)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=fc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=lI)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const o=function Qe(t){return t.flat(Number.POSITIVE_INFINITY)}(e);(this._changesDetected=!function cD(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let o=t[r],i=e[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Ot=(()=>{class t{}return t.__NG_ELEMENT_ID__=fI,t})();const uI=Ot,dI=class extends uI{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e,n){const r=this._declarationTContainer.tView,o=Qo(this._declarationLView,r,e,16,null,r.declTNode,null,null,null,null,n||null);o[_r]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[mt];return null!==s&&(o[mt]=s.createEmbeddedView(r)),xa(r,o,e),new Or(o)}};function fI(){return mi(Ce(),_())}function mi(t,e){return 4&t.type?new dI(e,t,Hn(t,e)):null}let Et=(()=>{class t{}return t.__NG_ELEMENT_ID__=hI,t})();function hI(){return Hp(Ce(),_())}const pI=Et,Lp=class extends pI{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Hn(this._hostTNode,this._hostLView)}get injector(){return new An(this._hostTNode,this._hostLView)}get parentInjector(){const e=ks(this._hostTNode,this._hostLView);if(ju(e)){const n=Ro(e,this._hostLView),r=xo(e);return new An(n[E].data[r+8],n)}return new An(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=jp(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-Ne}createEmbeddedView(e,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=e.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(e,n,r,o,i){const s=e&&!function Ir(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const c=s?e:new Lr(G(e)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const f=(s?l:this.parentInjector).get(cn,null);f&&(i=f)}const u=c.create(l,o,void 0,i);return this.insert(u.hostView,a),u}insert(e,n){const r=e._lView,o=r[E];if(function M_(t){return ot(t[ie])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=r[ie],f=new Lp(d,d[Ie],d[ie]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function YD(t,e,n,r){const o=Ne+r,i=n.length;r>0&&(n[o-1][rt]=e),r<i-Ne?(e[rt]=n[o],Yu(n,Ne+r,e)):(n.push(e),e[rt]=null),e[ie]=n;const s=e[_r];null!==s&&n!==s&&function ZD(t,e){const n=t[In];e[Se]!==e[ie][ie][Se]&&(t[fu]=!0),null===n?t[In]=[e]:n.push(e)}(s,e);const a=e[mt];null!==a&&a.insertView(t),e[k]|=64}(o,r,s,i);const a=ia(i,s),c=r[j],l=Uo(c,s[Eo]);return null!==l&&function qD(t,e,n,r,o,i){r[At]=o,r[Ie]=e,Nr(t,r,n,1,o,i)}(o,s[Ie],c,r,l,a),e.attachToViewContainerRef(),Yu(hc(s),i,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=jp(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=na(this._lContainer,n);r&&(Lo(hc(this._lContainer),n),vd(r[E],r))}detach(e){const n=this._adjustIndex(e,-1),r=na(this._lContainer,n);return r&&null!=Lo(hc(this._lContainer),n)?new Or(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function jp(t){return t[bo]}function hc(t){return t[bo]||(t[bo]=[])}function Hp(t,e){let n;const r=e[t.index];if(ot(r))n=r;else{let o;if(8&t.type)o=we(r);else{const i=e[j];o=i.createComment("");const s=We(t,e);sn(i,Uo(i,s),o,function tv(t,e){return t.nextSibling(e)}(i,s),!1)}e[t.index]=n=xf(r,e,o,t),ti(e,n)}return new Lp(n,t,e)}class pc{constructor(e){this.queryList=e,this.matches=null}clone(){return new pc(this.queryList)}setDirty(){this.queryList.setDirty()}}class gc{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){const s=n.getByIndex(i);o.push(this.queries[s.indexInDeclarationView].clone())}return new gc(o)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==zp(e,n).matches&&this.queries[n].setDirty()}}class Bp{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class mc{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const o=null!==n?n.length:0,i=this.getByIndex(r).embeddedTView(e,o);i&&(i.indexInDeclarationView=r,null!==n?n.push(i):n=[i])}return null!==n?new mc(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class yc{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new yc(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const i=r[o];this.matchTNodeWithReadOption(e,n,gI(n,i)),this.matchTNodeWithReadOption(e,n,Oo(n,e,i,!1,!1))}else r===Ot?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Oo(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===Bn||o===Et||o===Ot&&4&n.type)this.addMatch(n.index,-2);else{const i=Oo(n,e,o,!1,!1);null!==i&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function gI(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function yI(t,e,n,r){return-1===n?function mI(t,e){return 11&t.type?Hn(t,e):4&t.type?mi(t,e):null}(e,t):-2===n?function _I(t,e,n){return n===Bn?Hn(e,t):n===Ot?mi(e,t):n===Et?Hp(e,t):void 0}(t,e,r):rn(t,t[E],n,e)}function $p(t,e,n,r){const o=e[mt].queries[r];if(null===o.matches){const i=t.data,s=n.matches,a=[];for(let c=0;c<s.length;c+=2){const l=s[c];a.push(l<0?null:yI(e,i[l],s[c+1],n.metadata.read))}o.matches=a}return o.matches}function _c(t,e,n,r){const o=t.queries.getByIndex(n),i=o.matches;if(null!==i){const s=$p(t,e,o,n);for(let a=0;a<i.length;a+=2){const c=i[a];if(c>0)r.push(s[a/2]);else{const l=i[a+1],u=e[-c];for(let d=Ne;d<u.length;d++){const f=u[d];f[_r]===f[ie]&&_c(f[E],f,l,r)}if(null!==u[In]){const d=u[In];for(let f=0;f<d.length;f++){const h=d[f];_c(h[E],h,l,r)}}}}}return r}function Dc(t){const e=_(),n=$(),r=Tu();Ms(r+1);const o=zp(n,r);if(t.dirty&&function S_(t){return 4==(4&t[k])}(e)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const i=o.crossesNgTemplate?_c(n,e,r,[]):$p(n,e,o,r);t.reset(i,qv),t.notifyOnChanges()}return!0}return!1}function vc(t,e,n){const r=$();r.firstCreatePass&&(function Up(t,e,n){null===t.queries&&(t.queries=new mc),t.queries.track(new yc(e,n))}(r,new Bp(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),function Vp(t,e,n){const r=new fc(4==(4&n));Mf(t,e,r,r.destroy),null===e[mt]&&(e[mt]=new gc),e[mt].queries.push(new pc(r))}(r,_(),e)}function wc(){return function vI(t,e){return t[mt].queries[e].queryList}(_(),Tu())}function zp(t,e){return t.queries.getByIndex(e)}function _i(...t){}const lg=new P("Application Initializer");let Di=(()=>{class t{constructor(n){this.appInits=n,this.resolve=_i,this.reject=_i,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Ya(i))n.push(i);else if(BC(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(H(lg,8))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Yr=new P("AppId",{providedIn:"root",factory:function ug(){return`${Sc()}${Sc()}${Sc()}`}});function Sc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dg=new P("Platform Initializer"),Mc=new P("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Lt=new P("LocaleId",{providedIn:"root",factory:()=>hr(Lt,A.Optional|A.SkipSelf)||function VI(){return typeof $localize<"u"&&$localize.locale||nr}()}),qI=(()=>Promise.resolve(0))();function Tc(t){typeof Zone>"u"?qI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ae{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kt(!1),this.onMicrotaskEmpty=new kt(!1),this.onStable=new kt(!1),this.onError=new kt(!1),typeof Zone>"u")throw new b(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)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function KI(){let t=J.requestAnimationFrame,e=J.cancelAnimationFrame;if(typeof Zone<"u"&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function ZI(t){const e=()=>{!function YI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(J,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Pc(t),t.isCheckStableRunning=!0,Ac(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Pc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return pg(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),gg(t)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return pg(t),n.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&e(),gg(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Pc(t),Ac(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ae.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(Ae.isInAngularZone())throw new b(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,XI,_i,_i);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const XI={};function Ac(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Pc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function pg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function gg(t){t._nesting--,Ac(t)}class JI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kt,this.onMicrotaskEmpty=new kt,this.onStable=new kt,this.onError=new kt}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}const mg=new P(""),vi=new P("");let Rc,Nc=(()=>{class t{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Rc||(function QI(t){Rc=t}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ae.assertNotInAngularZone(),Tc(()=>{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())Tc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(H(Ae),H(xc),H(vi))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})(),xc=(()=>{class t{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Rc?.findTestabilityInTree(this,n,r)??null}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const jt=!1;let qt=null;const yg=new P("AllowMultipleToken"),Fc=new P("PlatformDestroyListeners"),eS=new P("appBootstrapListener");function Dg(t,e,n=[]){const r=`Platform: ${e}`,o=new P(r);return(i=[])=>{let s=kc();if(!s||s.injector.get(yg,!1)){const a=[...n,...i,{provide:o,useValue:!0}];t?t(a):function rS(t){if(qt&&!qt.get(yg,!1))throw new b(400,!1);qt=t;const e=t.get(wg);(function _g(t){const e=t.get(dg,null);e&&e.forEach(n=>n())})(t)}(function vg(t=[],e){return un.create({name:e,providers:[{provide:_a,useValue:"platform"},{provide:Fc,useValue:new Set([()=>qt=null])},...t]})}(a,r))}return function iS(t){const e=kc();if(!e)throw new b(401,!1);return e}()}}function kc(){return qt?.get(wg)??null}let wg=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Eg(t,e){let n;return n="noop"===t?new JI:("zone.js"===t?void 0:t)||new Ae(e),n}(r?.ngZone,function Cg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:Ae,useValue:o}];return o.run(()=>{const s=un.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),c=a.injector.get($n,null);if(!c)throw new b(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:u=>{c.handleError(u)}});a.onDestroy(()=>{wi(this._modules,a),l.unsubscribe()})}),function bg(t,e,n){try{const r=n();return Ya(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(c,o,()=>{const l=a.injector.get(Di);return l.runInitializers(),l.donePromise.then(()=>(function Qh(t){Xe(t,"Expected localeId to be defined"),"string"==typeof t&&(Jh=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Lt,nr)||nr),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=Ig({},r);return function tS(t,e,n){const r=new lc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Oc);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new b(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new b(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Fc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(H(un))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Ig(t,e){return Array.isArray(e)?e.reduce(Ig,t):{...t,...e}}let Oc=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new Pe(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new Pe(a=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ae.assertNotInAngularZone(),Tc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{Ae.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{c.unsubscribe(),l.unsubscribe()}});this.isStable=function qy(...t){const e=ql(t),n=function By(t,e){return"number"==typeof is(t)?t.pop():e}(t,1/0),r=t;return r.length?1===r.length?$t(r[0]):function Ly(t=1/0){return fo(Tl,t)}(n)(Zl(r,e)):Gl}(i,s.pipe(function Ky(t={}){const{connector:e=(()=>new es),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return Dn((g,v)=>{l++,!d&&!u&&f();const D=c=c??e();v.add(()=>{l--,0===l&&!d&&!u&&(a=ss(p,o))}),D.subscribe(v),!s&&l>0&&(s=new cr({next:C=>D.next(C),error:C=>{d=!0,f(),a=ss(h,n,C),D.error(C)},complete:()=>{u=!0,f(),a=ss(h,r),D.complete()}}),$t(g).subscribe(s))})(i)}}()))}bootstrap(n,r){const o=n instanceof nf;if(!this._injector.get(Di).done){!o&&function mr(t){const e=G(t)||be(t)||Le(t);return null!==e&&e.standalone}(n);throw new b(405,jt)}let s;s=o?n:this._injector.get(Zo).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function nS(t){return t.isBoundToModule}(s)?void 0:this._injector.get(rr),l=s.create(un.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(mg,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),wi(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new b(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;wi(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(eS,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>wi(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(n){return new(n||t)(H(Ae),H(cn),H($n))},t.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function wi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const CS=Dg(null,"core",[]);let ES=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(H(Oc))},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({}),t})(),$c=null;function Ii(){return $c}class SS{}const bt=new P("DocumentToken");function Wg(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}let Yg=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new y0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Zg("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Zg("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(O(Et),O(Ot))},t.\u0275dir=Ze({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class y0{constructor(){this.$implicit=null,this.ngIf=null}}function Zg(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Y(e)}'.`)}let V0=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({}),t})();class nm{}class DM extends SS{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ol extends DM{static makeCurrent(){!function IS(t){$c||($c=t)}(new ol)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function vM(){return to=to||document.querySelector("base"),to?to.getAttribute("href"):null}();return null==n?null:function wM(t){Li=Li||document.createElement("a"),Li.setAttribute("href",t);const e=Li.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){to=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Wg(document.cookie,e)}}let Li,to=null;const am=new P("TRANSITION_ID"),EM=[{provide:lg,useFactory:function CM(t,e,n){return()=>{n.get(Di).donePromise.then(()=>{const r=Ii(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[am,bt,un],multi:!0}];let IM=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const ji=new P("EventManagerPlugins");let Hi=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(H(ji),H(Ae))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();class cm{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const o=Ii().getGlobalEventTarget(this._doc,e);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let lm=(()=>{class t{constructor(){this.usageCount=new Map}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)0===this.changeUsageCount(r,-1)&&this.onStyleRemoved(r)}onStyleRemoved(n){}onStyleAdded(n){}getAllStyles(){return this.usageCount.keys()}changeUsageCount(n,r){const o=this.usageCount;let i=o.get(n)??0;return i+=r,i>0?o.set(n,i):o.delete(n),i}ngOnDestroy(){for(const n of this.getAllStyles())this.onStyleRemoved(n);this.usageCount.clear()}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})(),no=(()=>{class t extends lm{constructor(n){super(),this.doc=n,this.styleRef=new Map,this.hostNodes=new Set,this.resetHostNodes()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.forEach(i=>i.remove()),r.delete(n)}ngOnDestroy(){super.ngOnDestroy(),this.styleRef.clear(),this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}addStyleToHost(n,r){const o=this.doc.createElement("style");o.textContent=r,n.appendChild(o);const i=this.styleRef.get(r);i?i.push(o):this.styleRef.set(r,[o])}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const il={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/"},sl=/%COMP%/g,fm=new P("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function hm(t,e){return e.flat(100).map(n=>n.replace(sl,t))}function pm(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let al=(()=>{class t{constructor(n,r,o,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.rendererByCompId=new Map,this.defaultRenderer=new cl(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof ym?o.applyToHost(n):o instanceof ll&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestory;switch(r.encapsulation){case gt.Emulated:i=new ym(s,a,r,this.appId,c);break;case gt.ShadowDom:return new xM(s,a,n,r);default:i=new ll(s,a,r,c)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(H(Hi),H(no),H(Yr),H(fm))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();class cl{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(il[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){(mm(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(mm(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=il[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=il[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(He.DashCase|He.Important)?e.style.setProperty(n,r,o&He.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&He.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,pm(r)):this.eventManager.addEventListener(e,n,pm(r))}}function mm(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class xM extends cl{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=hm(o.id,o.styles);for(const s of i){const a=document.createElement("style");a.textContent=s,this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ll extends cl{constructor(e,n,r,o,i=r.id){super(e),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=hm(i,r.styles)}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class ym extends ll{constructor(e,n,r,o,i){const s=o+"-"+r.id;super(e,n,r,i,s),this.contentAttr=function AM(t){return"_ngcontent-%COMP%".replace(sl,t)}(s),this.hostAttr=function PM(t){return"_nghost-%COMP%".replace(sl,t)}(s)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}let RM=(()=>{class t extends cm{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const _m=["alt","control","meta","shift"],FM={"\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"},kM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let OM=(()=>{class t extends cm{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ii().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_m.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=FM[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),_m.forEach(s=>{s!==o&&(0,kM[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{t.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(H(bt))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const BM=Dg(CS,"browser",[{provide:Mc,useValue:"browser"},{provide:dg,useValue:function LM(){ol.makeCurrent()},multi:!0},{provide:bt,useFactory:function HM(){return function lv(t){la=t}(document),document},deps:[]}]),wm=new P(""),Cm=[{provide:vi,useClass:class bM{addToWindow(e){J.getAngularTestability=(r,o=!0)=>{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},J.getAllAngularTestabilities=()=>e.getAllTestabilities(),J.getAllAngularRootElements=()=>e.getAllRootElements(),J.frameworkStabilizers||(J.frameworkStabilizers=[]),J.frameworkStabilizers.push(r=>{const o=J.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(c){s=s||c,i--,0==i&&r(s)};o.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(e,n,r){return null==n?null:e.getTestability(n)??(r?Ii().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null)}},deps:[]},{provide:mg,useClass:Nc,deps:[Ae,xc,vi]},{provide:Nc,useClass:Nc,deps:[Ae,xc,vi]}],Em=[{provide:_a,useValue:"root"},{provide:$n,useFactory:function jM(){return new $n},deps:[]},{provide:ji,useClass:RM,multi:!0,deps:[bt,Ae,Mc]},{provide:ji,useClass:OM,multi:!0,deps:[bt]},{provide:al,useClass:al,deps:[Hi,no,Yr,fm]},{provide:of,useExisting:al},{provide:lm,useExisting:no},{provide:no,useClass:no,deps:[bt]},{provide:Hi,useClass:Hi,deps:[ji,Ae]},{provide:nm,useClass:IM,deps:[]},[]];let $M=(()=>{class t{constructor(n){}static withServerTransition(n){return{ngModule:t,providers:[{provide:Yr,useValue:n.appId},{provide:am,useExisting:Yr},EM]}}}return t.\u0275fac=function(n){return new(n||t)(H(wm,12))},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({providers:[...Em,...Cm],imports:[V0,ES]}),t})();typeof window<"u"&&window;class Bi{}class fl{}class It{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof It?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new It;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof It?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class JM{encodeKey(e){return Sm(e)}encodeValue(e){return Sm(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const eT=/%(\d[a-f0-9])/gi,tT={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Sm(t){return encodeURIComponent(t).replace(eT,(e,n)=>tT[n]??e)}function $i(t){return`${t}`}class Xt{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new JM,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function QM(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n],o=Array.isArray(r)?r.map($i):[$i(r)];this.map.set(n,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Xt({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push($i(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf($i(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class nT{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function Mm(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Tm(t){return typeof Blob<"u"&&t instanceof Blob}function Am(t){return typeof FormData<"u"&&t instanceof FormData}class ro{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function rT(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new It),this.context||(this.context=new nT),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":a<n.length-1?"&":"")+s}}else this.params=new Xt,this.urlWithParams=n}serializeBody(){return null===this.body?null:Mm(this.body)||Tm(this.body)||Am(this.body)||function oT(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Xt?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Am(this.body)?null:Tm(this.body)?this.body.type||null:Mm(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Xt?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(e={}){const n=e.method||this.method,r=e.url||this.url,o=e.responseType||this.responseType,i=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let c=e.headers||this.headers,l=e.params||this.params;const u=e.context??this.context;return void 0!==e.setHeaders&&(c=Object.keys(e.setHeaders).reduce((d,f)=>d.set(f,e.setHeaders[f]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),l)),new ro(n,r,i,{params:l,headers:c,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var me=(()=>((me=me||{})[me.Sent=0]="Sent",me[me.UploadProgress=1]="UploadProgress",me[me.ResponseHeader=2]="ResponseHeader",me[me.DownloadProgress=3]="DownloadProgress",me[me.Response=4]="Response",me[me.User=5]="User",me))();class hl{constructor(e,n=200,r="OK"){this.headers=e.headers||new It,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class pl extends hl{constructor(e={}){super(e),this.type=me.ResponseHeader}clone(e={}){return new pl({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Vi extends hl{constructor(e={}){super(e),this.type=me.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new Vi({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class Pm extends hl{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function gl(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Nm=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ro)i=n;else{let c,l;c=o.headers instanceof It?o.headers:new It(o.headers),o.params&&(l=o.params instanceof Xt?o.params:new Xt({fromObject:o.params})),i=new ro(n,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=function XM(...t){return Zl(t,ql(t))}(i).pipe(function YM(t,e){return oe(e)?fo(t,e,1):fo(t,1)}(c=>this.handler.handle(c)));if(n instanceof ro||"events"===o.observe)return s;const a=s.pipe(function ZM(t,e){return Dn((n,r)=>{let o=0;n.subscribe(lr(r,i=>t.call(e,i,o++)&&r.next(i)))})}(c=>c instanceof Vi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ur(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(ur(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(ur(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(ur(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Xt).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,gl(o,r))}post(n,r,o={}){return this.request("POST",n,gl(o,r))}put(n,r,o={}){return this.request("PUT",n,gl(o,r))}}return t.\u0275fac=function(n){return new(n||t)(H(Bi))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();function xm(t,e){return e(t)}function iT(t,e){return(n,r)=>e.intercept(n,{handle:o=>t(o,r)})}const aT=new P("HTTP_INTERCEPTORS"),oo=new P("HTTP_INTERCEPTOR_FNS");function cT(){let t=null;return(e,n)=>(null===t&&(t=(hr(aT,{optional:!0})??[]).reduceRight(iT,xm)),t(e,n))}let Rm=(()=>{class t extends Bi{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set(this.injector.get(oo)));this.chain=r.reduceRight((o,i)=>function sT(t,e,n){return(r,o)=>n.runInContext(()=>e(r,i=>t(i,o)))}(o,i,this.injector),xm)}return this.chain(n,r=>this.backend.handle(r))}}return t.\u0275fac=function(n){return new(n||t)(H(fl),H(cn))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const fT=/^\)\]\}',?\n/;let km=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Pe(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new It(o.getAllResponseHeaders()),g=function hT(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new pl({headers:p,status:o.status,statusText:h,url:g}),s},c=()=>{let{headers:h,status:p,statusText:g,url:v}=a(),D=null;204!==p&&(D=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=D?200:0);let C=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const y=D;D=D.replace(fT,"");try{D=""!==D?JSON.parse(D):null}catch(I){D=y,C&&(C=!1,D={error:I,text:D})}}C?(r.next(new Vi({body:D,headers:h,status:p,statusText:g,url:v||void 0})),r.complete()):r.error(new Pm({error:D,headers:h,status:p,statusText:g,url:v||void 0}))},l=h=>{const{url:p}=a(),g=new Pm({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let u=!1;const d=h=>{u||(r.next(a()),u=!0);let p={type:me.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:me.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",c),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:me.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",c),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(H(nm))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();const ml=new P("XSRF_ENABLED"),Om=new P("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lm=new P("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class jm{}let mT=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Wg(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(H(bt),H(Mc),H(Om))},t.\u0275prov=q({token:t,factory:t.\u0275fac}),t})();function yT(t,e){const n=t.url.toLowerCase();if(!hr(ml)||"GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e(t);const r=hr(jm).getToken(),o=hr(Lm);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),e(t)}var ue=(()=>((ue=ue||{})[ue.Interceptors=0]="Interceptors",ue[ue.LegacyInterceptors=1]="LegacyInterceptors",ue[ue.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ue[ue.NoXsrfProtection=3]="NoXsrfProtection",ue[ue.JsonpSupport=4]="JsonpSupport",ue[ue.RequestsMadeViaParent=5]="RequestsMadeViaParent",ue))();function sr(t,e){return{\u0275kind:t,\u0275providers:e}}function _T(...t){const e=[Nm,km,Rm,{provide:Bi,useExisting:Rm},{provide:fl,useExisting:km},{provide:oo,useValue:yT,multi:!0},{provide:ml,useValue:!0},{provide:jm,useClass:mT}];for(const n of t)e.push(...n.\u0275providers);return function Rv(t){return{\u0275providers:t}}(e)}const Hm=new P("LEGACY_INTERCEPTOR_FN");let vT=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=wn({type:t}),t.\u0275inj=Qt({providers:[_T(sr(ue.LegacyInterceptors,[{provide:Hm,useFactory:cT},{provide:oo,useExisting:Hm,multi:!0}]))]}),t})();const wT=[0,2e3,1e4,3e4,null];class Bm{constructor(e){this._retryDelays=void 0!==e?[...e,null]:wT}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}function $m(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(l){return void n(l)}a.done?e(c):Promise.resolve(c).then(r,o)}function K(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function s(c){$m(i,r,o,s,a,"next",c)}function a(c){$m(i,r,o,s,a,"throw",c)}s(void 0)})}}let io=(()=>{class t{}return t.Authorization="Authorization",t.Cookie="Cookie",t})();class Vm{constructor(e,n,r){this.statusCode=e,this.statusText=n,this.content=r}}class Ui{get(e,n){return this.send({...n,method:"GET",url:e})}post(e,n){return this.send({...n,method:"POST",url:e})}delete(e,n){return this.send({...n,method:"DELETE",url:e})}getCookieString(e){return""}}class CT extends Ui{constructor(e,n){super(),this._innerClient=e,this._accessTokenFactory=n}send(e){var n=this;return K(function*(){let r=!0;n._accessTokenFactory&&(!n._accessToken||e.url&&e.url.indexOf("/negotiate?")>0)&&(r=!1,n._accessToken=yield n._accessTokenFactory()),n._setAuthorizationHeader(e);const o=yield n._innerClient.send(e);return r&&401===o.statusCode&&n._accessTokenFactory?(n._accessToken=yield n._accessTokenFactory(),n._setAuthorizationHeader(e),yield n._innerClient.send(e)):o})()}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[io.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[io.Authorization]&&delete e.headers[io.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}class yn extends Error{constructor(e,n){const r=new.target.prototype;super(`${e}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class yl extends Error{constructor(e="A timeout occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class ft extends Error{constructor(e="An abort occurred."){const n=new.target.prototype;super(e),this.__proto__=n}}class ET extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class bT extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class IT extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class Um extends Error{constructor(e){const n=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class ST extends Error{constructor(e,n){const r=new.target.prototype;super(e),this.innerErrors=n,this.__proto__=r}}var m=(()=>{return(t=m||(m={}))[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None",m;var t})();class so{constructor(){}log(e,n){}}so.instance=new so;const MT="8.0.0";class ye{static isRequired(e,n){if(null==e)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(e,n){if(!e||e.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(e,n,r){if(!(e in n))throw new Error(`Unknown ${r} value: ${e}.`)}}class re{static get isBrowser(){return!re.isNode&&"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return!re.isNode&&"object"==typeof self&&"importScripts"in self}static get isReactNative(){return!re.isNode&&"object"==typeof window&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&"node"===process.release.name}}function ao(t,e){let n="";return _n(t)?(n=`Binary data of length ${t.byteLength}`,e&&(n+=`. Content: '${function TT(t){const e=new Uint8Array(t);let n="";return e.forEach(r=>{n+=`0x${r<16?"0":""}${r.toString(16)} `}),n.substr(0,n.length-1)}(t)}'`)):"string"==typeof t&&(n=`String data of length ${t.length}`,e&&(n+=`. Content: '${t}'`)),n}function _n(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function zm(t,e,n,r,o,i){return _l.apply(this,arguments)}function _l(){return(_l=K(function*(t,e,n,r,o,i){const s={},[a,c]=ar();s[a]=c,t.log(m.Trace,`(${e} transport) sending data. ${ao(o,i.logMessageContent)}.`);const l=_n(o)?"arraybuffer":"text",u=yield n.post(r,{content:o,headers:{...s,...i.headers},responseType:l,timeout:i.timeout,withCredentials:i.withCredentials});t.log(m.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)})).apply(this,arguments)}class PT{constructor(e,n){this._subject=e,this._observer=n}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class zi{constructor(e){this._minLevel=e,this.out=console}log(e,n){if(e>=this._minLevel){const r=`[${(new Date).toISOString()}] ${m[e]}: ${n}`;switch(e){case m.Critical:case m.Error:this.out.error(r);break;case m.Warning:this.out.warn(r);break;case m.Information:this.out.info(r);break;default:this.out.log(r)}}}}function ar(){let t="X-SignalR-User-Agent";return re.isNode&&(t="User-Agent"),[t,NT(MT,xT(),re.isNode?"NodeJS":"Browser",RT())]}function NT(t,e,n,r){let o="Microsoft SignalR/";const i=t.split(".");return o+=`${i[0]}.${i[1]}`,o+=` (${t}; `,o+=e&&""!==e?`${e}; `:"Unknown OS; ",o+=`${n}`,o+=r?`; ${r}`:"; Unknown Runtime Version",o+=")",o}function xT(){if(!re.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function RT(){if(re.isNode)return process.versions.node}function Wm(t){return t.stack?t.stack:t.message?t.message:`${t}`}class BT extends Ui{constructor(e){super(),this._logger=e;const n={_fetchType:void 0,_jar:void 0};!function OT(t){return!!(typeof fetch>"u"||re.isNode)&&(t._jar=new(Yt(333).CookieJar),t._fetchType=typeof fetch>"u"?Yt(190):fetch,t._fetchType=Yt(45)(t._fetchType,t._jar),!0)}(n)?this._fetchType=fetch.bind(function kT(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}()):(this._fetchType=n._fetchType,this._jar=n._jar),this._abortControllerType=AbortController;const r={_abortControllerType:this._abortControllerType};(function LT(t){return typeof AbortController>"u"&&(t._abortControllerType=Yt(771),!0)})(r)&&(this._abortControllerType=r._abortControllerType)}send(e){var n=this;return K(function*(){if(e.abortSignal&&e.abortSignal.aborted)throw new ft;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new n._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new ft});let s,i=null;e.timeout&&(i=setTimeout(()=>{r.abort(),n._logger.log(m.Warning,"Timeout from HTTP request."),o=new yl},e.timeout)),""===e.content&&(e.content=void 0),e.content&&(e.headers=e.headers||{},e.headers["Content-Type"]=_n(e.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{s=yield n._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(l){throw o||(n._logger.log(m.Warning,`Error from HTTP request. ${l}.`),l)}finally{i&&clearTimeout(i),e.abortSignal&&(e.abortSignal.onabort=null)}if(!s.ok){const l=yield Gm(s,"text");throw new yn(l||s.statusText,s.status)}const c=yield Gm(s,e.responseType);return new Vm(s.status,s.statusText,c)})()}getCookieString(e){let n="";return re.isNode&&this._jar&&this._jar.getCookies(e,(r,o)=>n=o.join("; ")),n}}function Gm(t,e){let n;switch(e){case"arraybuffer":n=t.arrayBuffer();break;case"text":default:n=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`)}return n}class $T extends Ui{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ft):e.method?e.url?new Promise((n,r)=>{const o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=void 0===e.withCredentials||e.withCredentials,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===e.content&&(e.content=void 0),e.content&&(_n(e.content)?o.setRequestHeader("Content-Type","application/octet-stream"):o.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(s=>{o.setRequestHeader(s,i[s])}),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{o.abort(),r(new ft)}),e.timeout&&(o.timeout=e.timeout),o.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Vm(o.status,o.statusText,o.response||o.responseText)):r(new yn(o.response||o.responseText||o.statusText,o.status))},o.onerror=()=>{this._logger.log(m.Warning,`Error from HTTP request. ${o.status}: ${o.statusText}.`),r(new yn(o.statusText,o.status))},o.ontimeout=()=>{this._logger.log(m.Warning,"Timeout from HTTP request."),r(new yl)},o.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class VT extends Ui{constructor(e){if(super(),typeof fetch<"u"||re.isNode)this._httpClient=new BT(e);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new $T(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ft):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}var de=(()=>{return(t=de||(de={}))[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling",de;var t})(),Ee=(()=>{return(t=Ee||(Ee={}))[t.Text=1]="Text",t[t.Binary=2]="Binary",Ee;var t})();class UT{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class qm{get pollAborted(){return this._pollAbort.aborted}constructor(e,n,r){this._httpClient=e,this._logger=n,this._pollAbort=new UT,this._options=r,this._running=!1,this.onreceive=null,this.onclose=null}connect(e,n){var r=this;return K(function*(){if(ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._url=e,r._logger.log(m.Trace,"(LongPolling transport) Connecting."),n===Ee.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,i]=ar(),s={[o]:i,...r._options.headers},a={abortSignal:r._pollAbort.signal,headers:s,timeout:1e5,withCredentials:r._options.withCredentials};n===Ee.Binary&&(a.responseType="arraybuffer");const c=`${e}&_=${Date.now()}`;r._logger.log(m.Trace,`(LongPolling transport) polling: ${c}.`);const l=yield r._httpClient.get(c,a);200!==l.statusCode?(r._logger.log(m.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),r._closeError=new yn(l.statusText||"",l.statusCode),r._running=!1):r._running=!0,r._receiving=r._poll(r._url,a)})()}_poll(e,n){var r=this;return K(function*(){try{for(;r._running;)try{const o=`${e}&_=${Date.now()}`;r._logger.log(m.Trace,`(LongPolling transport) polling: ${o}.`);const i=yield r._httpClient.get(o,n);204===i.statusCode?(r._logger.log(m.Information,"(LongPolling transport) Poll terminated by server."),r._running=!1):200!==i.statusCode?(r._logger.log(m.Error,`(LongPolling transport) Unexpected response code: ${i.statusCode}.`),r._closeError=new yn(i.statusText||"",i.statusCode),r._running=!1):i.content?(r._logger.log(m.Trace,`(LongPolling transport) data received. ${ao(i.content,r._options.logMessageContent)}.`),r.onreceive&&r.onreceive(i.content)):r._logger.log(m.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){r._running?o instanceof yl?r._logger.log(m.Trace,"(LongPolling transport) Poll timed out, reissuing."):(r._closeError=o,r._running=!1):r._logger.log(m.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{r._logger.log(m.Trace,"(LongPolling transport) Polling complete."),r.pollAborted||r._raiseOnClose()}})()}send(e){var n=this;return K(function*(){return n._running?zm(n._logger,"LongPolling",n._httpClient,n._url,e,n._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var e=this;return K(function*(){e._logger.log(m.Trace,"(LongPolling transport) Stopping polling."),e._running=!1,e._pollAbort.abort();try{yield e._receiving,e._logger.log(m.Trace,`(LongPolling transport) sending DELETE request to ${e._url}.`);const n={},[r,o]=ar();n[r]=o;const i={headers:{...n,...e._options.headers},timeout:e._options.timeout,withCredentials:e._options.withCredentials};let s;try{yield e._httpClient.delete(e._url,i)}catch(a){s=a}s?s instanceof yn&&e._logger.log(m.Trace,404===s.statusCode?"(LongPolling transport) A 404 response was returned from sending a DELETE request.":`(LongPolling transport) Error sending a DELETE request: ${s}`):e._logger.log(m.Trace,"(LongPolling transport) DELETE request accepted.")}finally{e._logger.log(m.Trace,"(LongPolling transport) Stop finished."),e._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(m.Trace,e),this.onclose(this._closeError)}}}class zT{constructor(e,n,r,o){this._httpClient=e,this._accessToken=n,this._logger=r,this._options=o,this.onreceive=null,this.onclose=null}connect(e,n){var r=this;return K(function*(){return ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._logger.log(m.Trace,"(SSE transport) Connecting."),r._url=e,r._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(r._accessToken)}`),new Promise((o,i)=>{let a,s=!1;if(n===Ee.Text){if(re.isBrowser||re.isWebWorker)a=new r._options.EventSource(e,{withCredentials:r._options.withCredentials});else{const c=r._httpClient.getCookieString(e),l={};l.Cookie=c;const[u,d]=ar();l[u]=d,a=new r._options.EventSource(e,{withCredentials:r._options.withCredentials,headers:{...l,...r._options.headers}})}try{a.onmessage=c=>{if(r.onreceive)try{r._logger.log(m.Trace,`(SSE transport) data received. ${ao(c.data,r._options.logMessageContent)}.`),r.onreceive(c.data)}catch(l){return void r._close(l)}},a.onerror=c=>{s?r._close():i(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{r._logger.log(m.Information,`SSE connected to ${r._url}`),r._eventSource=a,s=!0,o()}}catch(c){return void i(c)}}else i(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(e){var n=this;return K(function*(){return n._eventSource?zm(n._logger,"SSE",n._httpClient,n._url,e,n._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class WT{constructor(e,n,r,o,i,s){this._logger=r,this._accessTokenFactory=n,this._logMessageContent=o,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=s}connect(e,n){var r=this;return K(function*(){let o;return ye.isRequired(e,"url"),ye.isRequired(n,"transferFormat"),ye.isIn(n,Ee,"transferFormat"),r._logger.log(m.Trace,"(WebSockets transport) Connecting."),r._accessTokenFactory&&(o=yield r._accessTokenFactory()),new Promise((i,s)=>{let a;e=e.replace(/^http/,"ws");const c=r._httpClient.getCookieString(e);let l=!1;if(re.isNode||re.isReactNative){const u={},[d,f]=ar();u[d]=f,o&&(u[io.Authorization]=`Bearer ${o}`),c&&(u[io.Cookie]=c),a=new r._webSocketConstructor(e,void 0,{headers:{...u,...r._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new r._webSocketConstructor(e)),n===Ee.Binary&&(a.binaryType="arraybuffer"),a.onopen=u=>{r._logger.log(m.Information,`WebSocket connected to ${e}.`),r._webSocket=a,l=!0,i()},a.onerror=u=>{let d=null;d=typeof ErrorEvent<"u"&&u instanceof ErrorEvent?u.error:"There was an error with the transport",r._logger.log(m.Information,`(WebSockets transport) ${d}.`)},a.onmessage=u=>{if(r._logger.log(m.Trace,`(WebSockets transport) data received. ${ao(u.data,r._logMessageContent)}.`),r.onreceive)try{r.onreceive(u.data)}catch(d){return void r._close(d)}},a.onclose=u=>{if(l)r._close(u);else{let d=null;d=typeof ErrorEvent<"u"&&u instanceof ErrorEvent?u.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",s(new Error(d))}}})})()}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(m.Trace,`(WebSockets transport) sending data. ${ao(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(m.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"==typeof e.wasClean&&"number"==typeof e.code}}class GT{constructor(e,n={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,ye.isRequired(e,"url"),this._logger=function AT(t){return void 0===t?new zi(m.Information):null===t?so.instance:void 0!==t.log?t:new zi(t)}(n.logger),this.baseUrl=this._resolveUrl(e),(n=n||{}).logMessageContent=void 0!==n.logMessageContent&&n.logMessageContent,"boolean"!=typeof n.withCredentials&&void 0!==n.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");n.withCredentials=void 0===n.withCredentials||n.withCredentials,n.timeout=void 0===n.timeout?1e5:n.timeout;let r=null,o=null;re.isNode&&(r=function jT(){return Yt(139)}(),o=function HT(){return Yt(22)}()),!re.isNode&&typeof WebSocket<"u"&&!n.WebSocket?n.WebSocket=WebSocket:re.isNode&&!n.WebSocket&&r&&(n.WebSocket=r),!re.isNode&&typeof EventSource<"u"&&!n.EventSource?n.EventSource=EventSource:re.isNode&&!n.EventSource&&typeof o<"u"&&(n.EventSource=o),this._httpClient=new CT(n.httpClient||new VT(this._logger),n.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=n,this.onreceive=null,this.onclose=null}start(e){var n=this;return K(function*(){if(ye.isIn(e=e||Ee.Binary,Ee,"transferFormat"),n._logger.log(m.Debug,`Starting connection with transfer format '${Ee[e]}'.`),"Disconnected"!==n._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(n._connectionState="Connecting",n._startInternalPromise=n._startInternal(e),yield n._startInternalPromise,"Disconnecting"===n._connectionState){const r="Failed to start the HttpConnection before stop() was called.";return n._logger.log(m.Error,r),yield n._stopPromise,Promise.reject(new ft(r))}if("Connected"!==n._connectionState){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return n._logger.log(m.Error,r),Promise.reject(new ft(r))}n._connectionStarted=!0})()}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new Dl(this.transport)),this._sendQueue.send(e))}stop(e){var n=this;return K(function*(){return"Disconnected"===n._connectionState?(n._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===n._connectionState?(n._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),n._stopPromise):(n._connectionState="Disconnecting",n._stopPromise=new Promise(r=>{n._stopPromiseResolver=r}),yield n._stopInternal(e),void(yield n._stopPromise))})()}_stopInternal(e){var n=this;return K(function*(){n._stopError=e;try{yield n._startInternalPromise}catch{}if(n.transport){try{yield n.transport.stop()}catch(r){n._logger.log(m.Error,`HttpConnection.transport.stop() threw error '${r}'.`),n._stopConnection()}n.transport=void 0}else n._logger.log(m.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(e){var n=this;return K(function*(){let r=n.baseUrl;n._accessTokenFactory=n._options.accessTokenFactory,n._httpClient._accessTokenFactory=n._accessTokenFactory;try{if(n._options.skipNegotiation){if(n._options.transport!==de.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");n.transport=n._constructTransport(de.WebSockets),yield n._startTransport(r,e)}else{let o=null,i=0;do{if(o=yield n._getNegotiationResponse(r),"Disconnecting"===n._connectionState||"Disconnected"===n._connectionState)throw new ft("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const s=o.accessToken;n._accessTokenFactory=()=>s,n._httpClient._accessToken=s,n._httpClient._accessTokenFactory=void 0}i++}while(o.url&&i<100);if(100===i&&o.url)throw new Error("Negotiate redirection limit exceeded.");yield n._createTransport(r,n._options.transport,o,e)}n.transport instanceof qm&&(n.features.inherentKeepAlive=!0),"Connecting"===n._connectionState&&(n._logger.log(m.Debug,"The HttpConnection connected successfully."),n._connectionState="Connected")}catch(o){return n._logger.log(m.Error,"Failed to start the connection: "+o),n._connectionState="Disconnected",n.transport=void 0,n._stopPromiseResolver(),Promise.reject(o)}})()}_getNegotiationResponse(e){var n=this;return K(function*(){const r={},[o,i]=ar();r[o]=i;const s=n._resolveNegotiateUrl(e);n._logger.log(m.Debug,`Sending negotiation request: ${s}.`);try{const a=yield n._httpClient.post(s,{content:"",headers:{...r,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials});if(200!==a.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${a.statusCode}'`));const c=JSON.parse(a.content);return(!c.negotiateVersion||c.negotiateVersion<1)&&(c.connectionToken=c.connectionId),c.useStatefulReconnect&&!0!==n._options._useStatefulReconnect?Promise.reject(new Um("Client didn't negotiate Stateful Reconnect but the server did.")):c}catch(a){let c="Failed to complete negotiation with the server: "+a;return a instanceof yn&&404===a.statusCode&&(c+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),n._logger.log(m.Error,c),Promise.reject(new Um(c))}})()}_createConnectUrl(e,n){return n?e+(-1===e.indexOf("?")?"?":"&")+`id=${n}`:e}_createTransport(e,n,r,o){var i=this;return K(function*(){let s=i._createConnectUrl(e,r.connectionToken);if(i._isITransport(n))return i._logger.log(m.Debug,"Connection was provided an instance of ITransport, using that directly."),i.transport=n,yield i._startTransport(s,o),void(i.connectionId=r.connectionId);const a=[],c=r.availableTransports||[];let l=r;for(const u of c){const d=i._resolveTransportOrError(u,n,o,!0===l?.useStatefulReconnect);if(d instanceof Error)a.push(`${u.transport} failed:`),a.push(d);else if(i._isITransport(d)){if(i.transport=d,!l){try{l=yield i._getNegotiationResponse(e)}catch(f){return Promise.reject(f)}s=i._createConnectUrl(e,l.connectionToken)}try{return yield i._startTransport(s,o),void(i.connectionId=l.connectionId)}catch(f){if(i._logger.log(m.Error,`Failed to start the transport '${u.transport}': ${f}`),l=void 0,a.push(new IT(`${u.transport} failed: ${f}`,de[u.transport])),"Connecting"!==i._connectionState){const h="Failed to select transport before stop() was called.";return i._logger.log(m.Debug,h),Promise.reject(new ft(h))}}}}return Promise.reject(a.length>0?new ST(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(e){switch(e){case de.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new WT(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case de.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new zT(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case de.LongPolling:return new qm(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,n){var r=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=this.features.reconnect?function(){var o=K(function*(i){let s=!1;if(r.features.reconnect){try{r.features.disconnected(),yield r.transport.connect(e,n),yield r.features.resend()}catch{s=!0}s&&r._stopConnection(i)}else r._stopConnection(i)});return function(i){return o.apply(this,arguments)}}():o=>this._stopConnection(o),this.transport.connect(e,n)}_resolveTransportOrError(e,n,r,o){const i=de[e.transport];if(null==i)return this._logger.log(m.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!function qT(t,e){return!t||0!=(e&t)}(n,i))return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it was disabled by the client.`),new bT(`'${de[i]}' is disabled by the client.`,i);if(!(e.transferFormats.map(a=>Ee[a]).indexOf(r)>=0))return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it does not support the requested transfer format '${Ee[r]}'.`),new Error(`'${de[i]}' does not support ${Ee[r]}.`);if(i===de.WebSockets&&!this._options.WebSocket||i===de.ServerSentEvents&&!this._options.EventSource)return this._logger.log(m.Debug,`Skipping transport '${de[i]}' because it is not supported in your environment.'`),new ET(`'${de[i]}' is not supported in your environment.`,i);this._logger.log(m.Debug,`Selecting transport '${de[i]}'.`);try{return this.features.reconnect=i===de.WebSockets?o:void 0,this._constructTransport(i)}catch(a){return a}}_isITransport(e){return e&&"object"==typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(m.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(m.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(m.Error,`Connection disconnected with error '${e}'.`):this._logger.log(m.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(n=>{this._logger.log(m.Error,`TransportSendQueue.stop() threw error '${n}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(n){this._logger.log(m.Error,`HttpConnection.onclose(${e}) threw error '${n}'.`)}}}else this._logger.log(m.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!re.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const n=window.document.createElement("a");return n.href=e,this._logger.log(m.Information,`Normalizing '${e}' to '${n.href}'.`),n.href}_resolveNegotiateUrl(e){const n=new URL(e);n.pathname.endsWith("/")?n.pathname+="negotiate":n.pathname+="/negotiate";const r=new URLSearchParams(n.searchParams);return r.has("negotiateVersion")||r.append("negotiateVersion",this._negotiateVersion.toString()),r.has("useStatefulReconnect")?"true"===r.get("useStatefulReconnect")&&(this._options._useStatefulReconnect=!0):!0===this._options._useStatefulReconnect&&r.append("useStatefulReconnect","true"),n.search=r.toString(),n.toString()}}class Dl{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new Wi,this._transportResult=new Wi,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new Wi),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}_sendLoop(){var e=this;return K(function*(){for(;;){if(yield e._sendBufferedData.promise,!e._executing){e._transportResult&&e._transportResult.reject("Connection stopped.");break}e._sendBufferedData=new Wi;const n=e._transportResult;e._transportResult=void 0;const r="string"==typeof e._buffer[0]?e._buffer.join(""):Dl._concatBuffers(e._buffer);e._buffer.length=0;try{yield e._transport.send(r),n.resolve()}catch(o){n.reject(o)}}})()}static _concatBuffers(e){const n=e.map(i=>i.byteLength).reduce((i,s)=>i+s),r=new Uint8Array(n);let o=0;for(const i of e)r.set(new Uint8Array(i),o),o+=i.byteLength;return r.buffer}}class Wi{constructor(){this.promise=new Promise((e,n)=>[this._resolver,this._rejecter]=[e,n])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}class Ke{static write(e){return`${e}${Ke.RecordSeparator}`}static parse(e){if(e[e.length-1]!==Ke.RecordSeparator)throw new Error("Message is incomplete.");const n=e.split(Ke.RecordSeparator);return n.pop(),n}}Ke.RecordSeparatorCode=30,Ke.RecordSeparator=String.fromCharCode(Ke.RecordSeparatorCode);class KT{writeHandshakeRequest(e){return Ke.write(JSON.stringify(e))}parseHandshakeResponse(e){let n,r;if(_n(e)){const a=new Uint8Array(e),c=a.indexOf(Ke.RecordSeparatorCode);if(-1===c)throw new Error("Message is incomplete.");const l=c+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(a.slice(0,l))),r=a.byteLength>l?a.slice(l).buffer:null}else{const a=e,c=a.indexOf(Ke.RecordSeparator);if(-1===c)throw new Error("Message is incomplete.");const l=c+1;n=a.substring(0,l),r=a.length>l?a.substring(l):null}const o=Ke.parse(n),i=JSON.parse(o[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[r,i]}}var F=(()=>{return(t=F||(F={}))[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence",F;var t})();class XT{constructor(){this.observers=[]}next(e){for(const n of this.observers)n.next(e)}error(e){for(const n of this.observers)n.error&&n.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new PT(this,e)}}class YT{constructor(e,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=n,this._bufferSize=r}_send(e){var n=this;return K(function*(){const r=n._protocol.writeMessage(e);let o=Promise.resolve();if(n._isInvocationMessage(e)){n._totalMessageCount++;let i=()=>{},s=()=>{};_n(r)?n._bufferedByteCount+=r.byteLength:n._bufferedByteCount+=r.length,n._bufferedByteCount>=n._bufferSize&&(o=new Promise((a,c)=>{i=a,s=c})),n._messages.push(new ZT(r,n._totalMessageCount,i,s))}try{n._reconnectInProgress||(yield n._connection.send(r))}catch{n._disconnected()}yield o})()}_ack(e){let n=-1;for(let r=0;r<this._messages.length;r++){const o=this._messages[r];if(o._id<=e.sequenceId)n=r,_n(o._message)?this._bufferedByteCount-=o._message.byteLength:this._bufferedByteCount-=o._message.length,o._resolver();else{if(!(this._bufferedByteCount<this._bufferSize))break;o._resolver()}}-1!==n&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(e){if(this._waitForSequenceMessage)return e.type===F.Sequence&&(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(e))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(e){e.sequenceId>this._nextReceivingSequenceId?this._connection.stop(new Error("Sequence ID greater than amount of messages we've received.")):this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}_resend(){var e=this;return K(function*(){const n=0!==e._messages.length?e._messages[0]._id:e._totalMessageCount+1;yield e._connection.send(e._protocol.writeMessage({type:F.Sequence,sequenceId:n}));const r=e._messages;for(const o of r)yield e._connection.send(o._message);e._reconnectInProgress=!1})()}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(e)}_isInvocationMessage(e){switch(e.type){case F.Invocation:case F.StreamItem:case F.Completion:case F.StreamInvocation:case F.CancelInvocation:return!0;case F.Close:case F.Sequence:case F.Ping:case F.Ack:return!1}}_ackTimer(){var e=this;void 0===this._ackTimerHandle&&(this._ackTimerHandle=setTimeout(K(function*(){try{e._reconnectInProgress||(yield e._connection.send(e._protocol.writeMessage({type:F.Ack,sequenceId:e._latestReceivedSequenceId})))}catch{}clearTimeout(e._ackTimerHandle),e._ackTimerHandle=void 0}),1e3))}}class ZT{constructor(e,n,r,o){this._message=e,this._id=n,this._resolver=r,this._rejector=o}}var ee=(()=>{return(t=ee||(ee={})).Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting",ee;var t})();class vl{static create(e,n,r,o,i,s,a){return new vl(e,n,r,o,i,s,a)}constructor(e,n,r,o,i,s,a){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(m.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},ye.isRequired(e,"connection"),ye.isRequired(n,"logger"),ye.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=i??3e4,this.keepAliveIntervalInMilliseconds=s??15e3,this._statefulReconnectBufferSize=a??1e5,this._logger=n,this._protocol=r,this.connection=e,this._reconnectPolicy=o,this._handshakeProtocol=new KT,this.connection.onreceive=c=>this._processIncomingData(c),this.connection.onclose=c=>this._connectionClosed(c),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=ee.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:F.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==ee.Disconnected&&this._connectionState!==ee.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var e=this;return K(function*(){if(e._connectionState!==ee.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));e._connectionState=ee.Connecting,e._logger.log(m.Debug,"Starting HubConnection.");try{yield e._startInternal(),re.isBrowser&&window.document.addEventListener("freeze",e._freezeEventListener),e._connectionState=ee.Connected,e._connectionStarted=!0,e._logger.log(m.Debug,"HubConnection connected successfully.")}catch(n){return e._connectionState=ee.Disconnected,e._logger.log(m.Debug,`HubConnection failed to start successfully because of error '${n}'.`),Promise.reject(n)}})()}_startInternal(){var e=this;return K(function*(){e._stopDuringStartError=void 0,e._receivedHandshakeResponse=!1;const n=new Promise((r,o)=>{e._handshakeResolver=r,e._handshakeRejecter=o});yield e.connection.start(e._protocol.transferFormat);try{let r=e._protocol.version;e.connection.features.reconnect||(r=1);const o={protocol:e._protocol.name,version:r};if(e._logger.log(m.Debug,"Sending handshake request."),yield e._sendMessage(e._handshakeProtocol.writeHandshakeRequest(o)),e._logger.log(m.Information,`Using HubProtocol '${e._protocol.name}'.`),e._cleanupTimeout(),e._resetTimeoutPeriod(),e._resetKeepAliveInterval(),yield n,e._stopDuringStartError)throw e._stopDuringStartError;!!e.connection.features.reconnect&&(e._messageBuffer=new YT(e._protocol,e.connection,e._statefulReconnectBufferSize),e.connection.features.disconnected=e._messageBuffer._disconnected.bind(e._messageBuffer),e.connection.features.resend=()=>{if(e._messageBuffer)return e._messageBuffer._resend()}),e.connection.features.inherentKeepAlive||(yield e._sendMessage(e._cachedPingMessage))}catch(r){throw e._logger.log(m.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),e._cleanupTimeout(),e._cleanupPingTimer(),yield e.connection.stop(r),r}})()}stop(){var e=this;return K(function*(){const n=e._startPromise;e.connection.features.reconnect=!1,e._stopPromise=e._stopInternal(),yield e._stopPromise;try{yield n}catch{}})()}_stopInternal(e){if(this._connectionState===ee.Disconnected)return this._logger.log(m.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===ee.Disconnecting)return this._logger.log(m.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=ee.Disconnecting,this._logger.log(m.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(m.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===ee.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new ft("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}_sendCloseMessage(){var e=this;return K(function*(){try{yield e._sendWithProtocol(e._createCloseMessage())}catch{}})()}stream(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._createStreamInvocation(e,n,o);let s;const a=new XT;return a.cancelCallback=()=>{const c=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],s.then(()=>this._sendWithProtocol(c))},this._callbacks[i.invocationId]=(c,l)=>{l?a.error(l):c&&(c.type===F.Completion?c.error?a.error(new Error(c.error)):a.complete():a.next(c.item))},s=this._sendWithProtocol(i).catch(c=>{a.error(c),delete this._callbacks[i.invocationId]}),this._launchStreams(r,s),a}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._sendWithProtocol(this._createInvocation(e,n,!0,o));return this._launchStreams(r,i),i}invoke(e,...n){const[r,o]=this._replaceStreamingParams(n),i=this._createInvocation(e,n,!1,o);return new Promise((a,c)=>{this._callbacks[i.invocationId]=(u,d)=>{d?c(d):u&&(u.type===F.Completion?u.error?c(new Error(u.error)):a(u.result):c(new Error(`Unexpected message type: ${u.type}`)))};const l=this._sendWithProtocol(i).catch(u=>{c(u),delete this._callbacks[i.invocationId]});this._launchStreams(r,l)})}on(e,n){!e||!n||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(n)&&this._methods[e].push(n))}off(e,n){if(!e)return;e=e.toLowerCase();const r=this._methods[e];if(r)if(n){const o=r.indexOf(n);-1!==o&&(r.splice(o,1),0===r.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const n=this._protocol.parseMessages(e,this._logger);for(const r of n)if(!this._messageBuffer||this._messageBuffer._shouldProcessMessage(r))switch(r.type){case F.Invocation:this._invokeClientMethod(r);break;case F.StreamItem:case F.Completion:{const o=this._callbacks[r.invocationId];if(o){r.type===F.Completion&&delete this._callbacks[r.invocationId];try{o(r)}catch(i){this._logger.log(m.Error,`Stream callback threw error: ${Wm(i)}`)}}break}case F.Ping:break;case F.Close:{this._logger.log(m.Information,"Close message received from server.");const o=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(o):this._stopPromise=this._stopInternal(o);break}case F.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case F.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(m.Warning,`Invalid message type: ${r.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(o){const i="Error parsing handshake response: "+o;this._logger.log(m.Error,i);const s=new Error(i);throw this._handshakeRejecter(s),s}if(n.error){const o="Server returned handshake error: "+n.error;this._logger.log(m.Error,o);const i=new Error(o);throw this._handshakeRejecter(i),i}return this._logger.log(m.Debug,"Server handshake complete."),this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var e=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let n=this._nextKeepAlive-(new Date).getTime();n<0&&(n=0),this._pingServerHandle=setTimeout(K(function*(){if(e._connectionState===ee.Connected)try{yield e._sendMessage(e._cachedPingMessage)}catch{e._cleanupPingTimer()}}),n)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){var n=this;return K(function*(){const r=e.target.toLowerCase(),o=n._methods[r];if(!o)return n._logger.log(m.Warning,`No client method with the name '${r}' found.`),void(e.invocationId&&(n._logger.log(m.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),yield n._sendWithProtocol(n._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null))));const i=o.slice(),s=!!e.invocationId;let a,c,l;for(const u of i)try{const d=a;a=yield u.apply(n,e.arguments),s&&a&&d&&(n._logger.log(m.Error,`Multiple results provided for '${r}'. Sending error to server.`),l=n._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),c=void 0}catch(d){c=d,n._logger.log(m.Error,`A callback for the method '${r}' threw error '${d}'.`)}l?yield n._sendWithProtocol(l):s?(c?l=n._createCompletionMessage(e.invocationId,`${c}`,null):void 0!==a?l=n._createCompletionMessage(e.invocationId,null,a):(n._logger.log(m.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),l=n._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),yield n._sendWithProtocol(l)):a&&n._logger.log(m.Error,`Result given for '${r}' method but server is not expecting a result.`)})()}_connectionClosed(e){this._logger.log(m.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new ft("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===ee.Disconnecting?this._completeClose(e):this._connectionState===ee.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===ee.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=ee.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),re.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[e]))}catch(n){this._logger.log(m.Error,`An onclose callback called with error '${e}' threw error '${n}'.`)}}}_reconnect(e){var n=this;return K(function*(){const r=Date.now();let o=0,i=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),s=n._getNextRetryDelay(o++,0,i);if(null===s)return n._logger.log(m.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void n._completeClose(e);if(n._connectionState=ee.Reconnecting,n._logger.log(m.Information,e?`Connection reconnecting because of error '${e}'.`:"Connection reconnecting."),0!==n._reconnectingCallbacks.length){try{n._reconnectingCallbacks.forEach(a=>a.apply(n,[e]))}catch(a){n._logger.log(m.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(n._connectionState!==ee.Reconnecting)return void n._logger.log(m.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==s;){if(n._logger.log(m.Information,`Reconnect attempt number ${o} will start in ${s} ms.`),yield new Promise(a=>{n._reconnectDelayHandle=setTimeout(a,s)}),n._reconnectDelayHandle=void 0,n._connectionState!==ee.Reconnecting)return void n._logger.log(m.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield n._startInternal(),n._connectionState=ee.Connected,n._logger.log(m.Information,"HubConnection reconnected successfully."),0!==n._reconnectedCallbacks.length)try{n._reconnectedCallbacks.forEach(a=>a.apply(n,[n.connection.connectionId]))}catch(a){n._logger.log(m.Error,`An onreconnected callback called with connectionId '${n.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(n._logger.log(m.Information,`Reconnect attempt failed because of error '${a}'.`),n._connectionState!==ee.Reconnecting)return n._logger.log(m.Debug,`Connection moved to the '${n._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(n._connectionState===ee.Disconnecting&&n._completeClose());i=a instanceof Error?a:new Error(a.toString()),s=n._getNextRetryDelay(o++,Date.now()-r,i)}}n._logger.log(m.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),n._completeClose()})()}_getNextRetryDelay(e,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:e,retryReason:r})}catch(o){return this._logger.log(m.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${n}) threw error '${o}'.`),null}}_cancelCallbacksWithError(e){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const o=n[r];try{o(null,e)}catch(i){this._logger.log(m.Error,`Stream 'error' callback called with '${e}' threw error: ${Wm(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,n,r,o){if(r)return 0!==o.length?{arguments:n,streamIds:o,target:e,type:F.Invocation}:{arguments:n,target:e,type:F.Invocation};{const i=this._invocationId;return this._invocationId++,0!==o.length?{arguments:n,invocationId:i.toString(),streamIds:o,target:e,type:F.Invocation}:{arguments:n,invocationId:i.toString(),target:e,type:F.Invocation}}}_launchStreams(e,n){if(0!==e.length){n||(n=Promise.resolve());for(const r in e)e[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:o=>{let i;i=o instanceof Error?o.message:o&&o.toString?o.toString():"Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,i)))},next:o=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,o)))}})}}_replaceStreamingParams(e){const n=[],r=[];for(let o=0;o<e.length;o++){const i=e[o];if(this._isObservable(i)){const s=this._invocationId;this._invocationId++,n[s]=i,r.push(s.toString()),e.splice(o,1)}}return[n,r]}_isObservable(e){return e&&e.subscribe&&"function"==typeof e.subscribe}_createStreamInvocation(e,n,r){const o=this._invocationId;return this._invocationId++,0!==r.length?{arguments:n,invocationId:o.toString(),streamIds:r,target:e,type:F.StreamInvocation}:{arguments:n,invocationId:o.toString(),target:e,type:F.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:F.CancelInvocation}}_createStreamItemMessage(e,n){return{invocationId:e,item:n,type:F.StreamItem}}_createCompletionMessage(e,n,r){return n?{error:n,invocationId:e,type:F.Completion}:{invocationId:e,result:r,type:F.Completion}}_createCloseMessage(){return{type:F.Close}}}class nA{constructor(){this.name="json",this.version=2,this.transferFormat=Ee.Text}parseMessages(e,n){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===n&&(n=so.instance);const r=Ke.parse(e),o=[];for(const i of r){const s=JSON.parse(i);if("number"!=typeof s.type)throw new Error("Invalid payload.");switch(s.type){case F.Invocation:this._isInvocationMessage(s);break;case F.StreamItem:this._isStreamItemMessage(s);break;case F.Completion:this._isCompletionMessage(s);break;case F.Ping:case F.Close:break;case F.Ack:this._isAckMessage(s);break;case F.Sequence:this._isSequenceMessage(s);break;default:n.log(m.Information,"Unknown message type '"+s.type+"' ignored.");continue}o.push(s)}return o}writeMessage(e){return Ke.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if("number"!=typeof e.sequenceId)throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if("number"!=typeof e.sequenceId)throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,n){if("string"!=typeof e||""===e)throw new Error(n)}}const rA={trace:m.Trace,debug:m.Debug,info:m.Information,information:m.Information,warn:m.Warning,warning:m.Warning,error:m.Error,critical:m.Critical,none:m.None};class iA{configureLogging(e){if(ye.isRequired(e,"logging"),function sA(t){return void 0!==t.log}(e))this.logger=e;else if("string"==typeof e){const n=function oA(t){const e=rA[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}(e);this.logger=new zi(n)}else this.logger=new zi(e);return this}withUrl(e,n){return ye.isRequired(e,"url"),ye.isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions="object"==typeof n?{...this.httpConnectionOptions,...n}:{...this.httpConnectionOptions,transport:n},this}withHubProtocol(e){return ye.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=e?Array.isArray(e)?new Bm(e):e:new Bm,this}withServerTimeout(e){return ye.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return ye.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return void 0===this.httpConnectionOptions&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const n=new GT(this.url,e);return vl.create(n,this.logger||so.instance,this.protocol||new nA,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}const aA=["img1"],cA=["img2"];function lA(t,e){1&t&&(fn(0,"div",8)(1,"h1"),$r(2," Es wurden noch keine Bilder \xfcbertragen. Bitte mach ein Foto mit der Fotobox. "),hn()())}function uA(t,e){if(1&t&&(fn(0,"span",9),$r(1),hn()),2&t){const n=ah();ln(1),nc(n.currentChallenge.name)}}let dA=(()=>{class t{constructor(n,r){this.renderer=n,this.http=r,this.photoList=[],this.currentImageIndex=0,this.nextImageIndex=1,this.photoChallenge=!0,this.eventId="",this.countdown=0,this.eventIdSplitted="",this.photoChallengeList={challenges:[],challengeDuration:30,challengeInterval:180,challengeStartTime:new Date},this.liveimg="img1",this.headers=new It({"Content-Type":"application/json",accept:"*/*"})}ngOnInit(){console.log("Loading data from a url file: "+window.location.protocol+"://"+window.location.hostname+"/api/CurrentEvent"),this.http.get(window.location.protocol+"//"+window.location.hostname+"/api/CurrentEvent",{responseType:"text"}).subscribe(n=>{console.log(n),this.eventId=n,console.log("Loading challenge data from a url file"),this.eventIdSplitted=this.eventId.split("-")[0],this.http.get(window.location.protocol+"//"+window.location.hostname+"/event/"+this.eventIdSplitted+"/challenges.json").subscribe(o=>{console.log(o),this.photoChallengeList=o,localStorage.setItem("challenges",JSON.stringify(o)),this.photoChallengeList.challengeDuration=o.challengeDuration,this.photoChallengeList.challengeInterval=o.challengeInterval;const i=new Date(this.photoChallengeList.challengeStartTime);let s=null;setInterval(()=>{const c=new Date;i<=c?!s||c>=s?(console.log("Setting random challenge"),this.setRandomChallenge(),s=new Date(c.getTime()+1e3*this.photoChallengeList.challengeDuration),console.log("New challenge set. Ends at: "+s.toLocaleString())):console.log("Challenge is active. Ends at: "+s.toLocaleString()):(console.log("Waiting for challenge start time"),console.log("ChallengeStartTime: "+i),console.log("CurrentTime: "+c))},1e3*this.photoChallengeList.challengeInterval),console.log("Loading challenge data from a url file"),this.http.post(window.location.protocol+"//"+window.location.hostname+"/api/Photo",'"C:\\\\Fotobox\\\\Nextcloud\\\\Pictures\\\\'+this.eventId+'"',{headers:this.headers}).subscribe(c=>{})}),setInterval(()=>{this.photoList.length>0&&("img1"===this.liveimg?(console.log("switching to img2"),this.renderer.addClass(this.img1?.nativeElement,"hide"),this.renderer.removeClass(this.img2?.nativeElement,"hide"),this.liveimg="img2"):"img2"===this.liveimg&&(console.log("switching to img1"),this.renderer.addClass(this.img2?.nativeElement,"hide"),this.renderer.removeClass(this.img1?.nativeElement,"hide"),this.liveimg="img1"),setTimeout(()=>{this.updateImageSources()},2e3))},1e4);const r=(new iA).withUrl(window.location.protocol+"//"+window.location.hostname+"/photoPresenterHub",{transport:de.WebSockets,skipNegotiation:!0}).build();r.start().then(()=>{console.log("Connection established")}).catch(o=>{console.error(o)}),r.on("PhotolistInit",o=>{let i=JSON.parse(o);this.photoList=i,this.randomizeImages()}),r.on("PhotolistUpdate",o=>{console.log("list update");let i=JSON.parse(o),s=this.photoList.length;this.photoList=i,0==s&&(this.randomizeImages(),this.updateImageSources())})})}updateImageSources(){"img1"===this.liveimg?this.renderer.setProperty(this.img2?.nativeElement,"src",this.nextImageUrl):"img2"===this.liveimg&&this.renderer.setProperty(this.img1?.nativeElement,"src",this.nextImageUrl),this.randomizeImages()}randomizeImages(){this.currentImageIndex=this.nextImageIndex,this.nextImageIndex=this.getRandomIndex()}getRandomIndex(){let n=this.currentImageIndex;for(;n===this.currentImageIndex;)n=Math.floor(Math.random()*this.photoList.length);return n}get currentImageUrl(){return window.location.protocol+"//"+window.location.hostname+"/pictures"+this.photoList[this.currentImageIndex].localRelUri}get nextImageUrl(){return console.log(this.photoList),console.log(this.nextImageIndex),console.log(this.photoList[this.nextImageIndex]),window.location.protocol+"//"+window.location.hostname+"/pictures"+this.photoList[this.nextImageIndex].localRelUri}setRandomChallenge(){if(console.log(this.photoChallengeList),console.log(this.photoChallengeList.challenges),console.log(this.photoChallengeList.challenges.length),this.photoChallengeList&&this.photoChallengeList.challenges&&this.photoChallengeList.challenges.length>0){let n=this.photoChallengeList.challenges,o=n[Math.floor(Math.random()*n.length)];this.currentChallenge=o,o.done=new Date,localStorage.setItem("challenges",JSON.stringify(this.photoChallengeList)),setTimeout(()=>{this.currentChallenge=void 0},1e3*this.photoChallengeList.challengeDuration),this.countdown=this.photoChallengeList.challengeDuration;let i=setInterval(()=>{this.countdown--,0===this.countdown&&clearInterval(i)},1e3)}else console.warn("No challenges available to set.")}static#e=this.\u0275fac=function(r){return new(r||t)(O(Ca),O(Nm))};static#t=this.\u0275cmp=su({type:t,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&(vc(aA,5),vc(cA,5)),2&r){let i;Dc(i=wc())&&(o.img1=i.first),Dc(i=wc())&&(o.img2=i.first)}},decls:12,vars:9,consts:[[1,"image"],["img2",""],["img1",""],["class","noPics",4,"ngIf"],[1,"photoChallenge"],[1,"header"],["class","challenge",4,"ngIf"],[1,"countdown"],[1,"noPics"],[1,"challenge"]],template:function(r,o){1&r&&(qa(0,"img",0,1)(2,"img",0,2),Wa(4,lA,3,0,"div",3),fn(5,"div",4)(6,"div")(7,"span",5),$r(8,"Fotobox Challenge"),hn(),Wa(9,uA,2,1,"span",6),fn(10,"span",7),$r(11),hn()()()),2&r&&(Hr("visibility",o.currentChallenge?"hidden":"visible"),ln(2),Hr("visibility",o.currentChallenge?"hidden":"visible"),ln(2),ci("ngIf",0==o.photoList.length&&!o.currentChallenge),ln(1),Hr("visibility",o.currentChallenge?"visible":"hidden"),ln(4),ci("ngIf",o.currentChallenge),ln(2),di("noch ",o.countdown," Sekunden"))},dependencies:[Yg],styles:[".image[_ngcontent-%COMP%]{position:absolute;top:0%;left:0%;opacity:1;transition:opacity 2s ease-out;max-width:100vw;max-height:100vh;right:0;margin-left:auto;margin-right:auto}.zIndex1[_ngcontent-%COMP%]{z-index:1}.zIndex2[_ngcontent-%COMP%]{z-index:2}.image.hide[_ngcontent-%COMP%]{opacity:0}.noPics[_ngcontent-%COMP%]{margin-top:45vh;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.photoChallenge[_ngcontent-%COMP%]{color:#fff;position:absolute;top:0;left:0;opacity:1;transition:opacity 2s ease-out;width:100vw;height:100vh;right:0;margin-left:auto;margin-right:auto;display:flex;align-items:center;text-align:center;font-size:5em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif}.photoChallenge[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:1em;margin-bottom:5px;margin-top:5px}.header[_ngcontent-%COMP%]{display:block;width:100vw;color:#f60;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;margin-bottom:40px;text-align:center}.challenge[_ngcontent-%COMP%]{display:block;margin-bottom:40px;width:100vw;text-align:center}.countdown[_ngcontent-%COMP%]{text-align:center;display:block;color:#f60;font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;width:100vw}"]})}return t})(),fA=(()=>{class t{static#e=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275mod=wn({type:t,bootstrap:[dA]});static#n=this.\u0275inj=Qt({imports:[$M,vT]})}return t})();BM().bootstrapModule(fA).catch(t=>console.error(t))},771:()=>{},22:()=>{},45:()=>{},190:()=>{},333:()=>{},139:()=>{}},Gi=>{Gi(Gi.s=289)}]); |