@mxtommy/kip
Version:
An advanced and versatile marine instrumentation package to display Signal K data.
7 lines • 423 kB
JavaScript
var Bb=Object.create;var gc=Object.defineProperty,Hb=Object.defineProperties,Ub=Object.getOwnPropertyDescriptor,$b=Object.getOwnPropertyDescriptors,zb=Object.getOwnPropertyNames,si=Object.getOwnPropertySymbols,Wb=Object.getPrototypeOf,vc=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable;var xf=(e,t,n)=>t in e?gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||={})vc.call(t,n)&&xf(e,n,t[n]);if(si)for(var n of si(t))Tf.call(t,n)&&xf(e,n,t[n]);return e},z=(e,t)=>Hb(e,$b(t));var Gb=(e,t)=>{var n={};for(var r in e)vc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&si)for(var r of si(e))t.indexOf(r)<0&&Tf.call(e,r)&&(n[r]=e[r]);return n};var oS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var qb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zb(t))!vc.call(e,o)&&o!==n&&gc(e,o,{get:()=>t[o],enumerable:!(r=Ub(t,o))||r.enumerable});return e};var iS=(e,t,n)=>(n=e!=null?Bb(Wb(e)):{},qb(t||!e||!e.__esModule?gc(n,"default",{value:e,enumerable:!0}):n,e));var $n=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function C(e){return typeof e=="function"}function jt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ai=jt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function an(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var V=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(C(r))try{r()}catch(i){t=i instanceof ai?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Sf(i)}catch(s){t=t??[],s instanceof ai?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ai(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Sf(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&an(n,t)}remove(t){let{_finalizers:n}=this;n&&an(n,t),t instanceof e&&t._removeParent(this)}};V.EMPTY=(()=>{let e=new V;return e.closed=!0,e})();var yc=V.EMPTY;function ci(e){return e instanceof V||e&&"closed"in e&&C(e.remove)&&C(e.add)&&C(e.unsubscribe)}function Sf(e){C(e)?e():e.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zn={setTimeout(e,t,...n){let{delegate:r}=zn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=zn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function li(e){zn.setTimeout(()=>{let{onUnhandledError:t}=ot;if(t)t(e);else throw e})}function Ue(){}var Af=bc("C",void 0,void 0);function Nf(e){return bc("E",void 0,e)}function Rf(e){return bc("N",e,void 0)}function bc(e,t,n){return{kind:e,value:t,error:n}}var cn=null;function Wn(e){if(ot.useDeprecatedSynchronousErrorHandling){let t=!cn;if(t&&(cn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=cn;if(cn=null,n)throw r}}else e()}function Of(e){ot.useDeprecatedSynchronousErrorHandling&&cn&&(cn.errorThrown=!0,cn.error=e)}var ln=class extends V{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ci(t)&&t.add(this)):this.destination=Kb}static create(t,n,r){return new It(t,n,r)}next(t){this.isStopped?Dc(Rf(t),this):this._next(t)}error(t){this.isStopped?Dc(Nf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Dc(Af,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Zb=Function.prototype.bind;function _c(e,t){return Zb.call(e,t)}var wc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ui(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ui(r)}else ui(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ui(n)}}},It=class extends ln{constructor(t,n,r){super();let o;if(C(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ot.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&_c(t.next,i),error:t.error&&_c(t.error,i),complete:t.complete&&_c(t.complete,i)}):o=t}this.destination=new wc(o)}};function ui(e){ot.useDeprecatedSynchronousErrorHandling?Of(e):li(e)}function Yb(e){throw e}function Dc(e,t){let{onStoppedNotification:n}=ot;n&&zn.setTimeout(()=>n(e,t))}var Kb={closed:!0,next:Ue,error:Yb,complete:Ue};var Gn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function de(e){return e}function Xb(...e){return Ec(e)}function Ec(e){return e.length===0?de:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Jb(n)?n:new It(n,r,o);return Wn(()=>{let{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 r=kf(r),new r((o,i)=>{let s=new It({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Gn](){return this}pipe(...n){return Ec(n)(this)}toPromise(n){return n=kf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function kf(e){var t;return(t=e??ot.Promise)!==null&&t!==void 0?t:Promise}function Qb(e){return e&&C(e.next)&&C(e.error)&&C(e.complete)}function Jb(e){return e&&e instanceof ln||Qb(e)&&ci(e)}var Ff=jt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var A=(()=>{class e extends R{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new di(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ff}next(n){Wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Wn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{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((n=this.observers)===null||n===void 0?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){let{hasError:r,isStopped:o,observers:i}=this;return r||o?yc:(this.currentObservers=null,i.push(n),new V(()=>{this.currentObservers=null,an(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new R;return n.source=this,n}}return e.create=(t,n)=>new di(t,n),e})(),di=class extends A{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:yc}};function Cc(e){return C(e?.lift)}function _(e){return t=>{if(Cc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function b(e,t,n,r,o){return new Ic(e,t,n,r,o)}var Ic=class extends ln{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ee(e,t){return _((n,r)=>{let o=0;n.subscribe(b(r,i=>{r.next(e.call(t,i,o++))}))})}var fi=class extends V{constructor(t,n){super()}schedule(t,n=0){return this}};var Zr={setInterval(e,t,...n){let{delegate:r}=Zr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Zr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var qn=class extends fi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Zr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Zr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,an(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Yr={now(){return(Yr.delegate||Date).now()},delegate:void 0};var Zn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Zn.now=Yr.now;var Yn=class extends Zn{constructor(t,n=Zn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ae=new Yn(qn),Pf=Ae;function Bt(e,t=Ae){return _((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(b(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Vf(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}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):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Lf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function un(e){return this instanceof un?(this.v=e,this):new un(e)}function jf(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(m){return Promise.resolve(m).then(h,d)}}function a(h,m){r[h]&&(o[h]=function(g){return new Promise(function(D,N){i.push([h,g,D,N])>1||c(h,g)})},m&&(o[h]=m(o[h])))}function c(h,m){try{l(r[h](m))}catch(g){p(i[0][3],g)}}function l(h){h.value instanceof un?Promise.resolve(h.value.v).then(u,d):p(i[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function p(h,m){h(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Bf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Lf=="function"?Lf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Kn=e=>e&&typeof e.length=="number"&&typeof e!="function";function hi(e){return C(e?.then)}function pi(e){return C(e[Gn])}function mi(e){return Symbol.asyncIterator&&C(e?.[Symbol.asyncIterator])}function gi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function e_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vi=e_();function yi(e){return C(e?.[vi])}function bi(e){return jf(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield un(n.read());if(o)return yield un(void 0);yield yield un(r)}}finally{n.releaseLock()}})}function _i(e){return C(e?.getReader)}function T(e){if(e instanceof R)return e;if(e!=null){if(pi(e))return t_(e);if(Kn(e))return n_(e);if(hi(e))return r_(e);if(mi(e))return Hf(e);if(yi(e))return o_(e);if(_i(e))return i_(e)}throw gi(e)}function t_(e){return new R(t=>{let n=e[Gn]();if(C(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function n_(e){return new R(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function r_(e){return new R(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,li)})}function o_(e){return new R(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Hf(e){return new R(t=>{s_(e,t).catch(n=>t.error(n))})}function i_(e){return Hf(bi(e))}function s_(e,t){var n,r,o,i;return Vf(this,void 0,void 0,function*(){try{for(n=Bf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.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}}t.complete()})}function Uf(e,t){return _((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,l=!1,u=()=>{c?.unsubscribe(),c=null,i&&(h(),l&&r.complete())},d=()=>{c=null,l&&r.complete()},p=m=>c=T(e(m)).subscribe(b(r,u,d)),h=()=>{if(s){s=!1;let m=a;a=null,r.next(m),!l&&p(m)}};n.subscribe(b(r,m=>{s=!0,a=m,!(c&&!c.closed)&&(o?h():p(m))},()=>{l=!0,!(i&&s&&c&&!c.closed)&&r.complete()}))})}function Di(e){return e&&C(e.schedule)}function wi(e){return e instanceof Date&&!isNaN(e)}function it(e=0,t,n=Pf){let r=-1;return t!=null&&(Di(t)?n=t:r=t),new R(o=>{let i=wi(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function a_(e,t=Ae,n){let r=it(e,t);return Uf(()=>r,n)}function Mc(){return _((e,t)=>{let n=null;e._refCount++;let r=b(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Kr=class extends R{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Cc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new V;let n=this.getSubject();t.add(this.source.subscribe(b(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=V.EMPTY)}return t}refCount(){return Mc()(this)}};var Xn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Xn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new V(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Xn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Xn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var dn=class extends A{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Xr=class extends A{constructor(t=1/0,n=1/0,r=Yr){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Ei=class extends qn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Xn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Xn.cancelAnimationFrame(n),t._scheduled=void 0)}};var Ci=class extends Yn{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var $f=new Ci(Ei);var fn=new R(e=>e.complete());function xc(e){return e[e.length-1]}function Qn(e){return C(xc(e))?e.pop():void 0}function pt(e){return Di(xc(e))?e.pop():void 0}function zf(e,t){return typeof xc(e)=="number"?e.pop():t}function De(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ii(e,t=0){return _((n,r)=>{n.subscribe(b(r,o=>De(r,e,()=>r.next(o),t),()=>De(r,e,()=>r.complete(),t),o=>De(r,e,()=>r.error(o),t)))})}function Mi(e,t=0){return _((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wf(e,t){return T(e).pipe(Mi(t),Ii(t))}function Gf(e,t){return T(e).pipe(Mi(t),Ii(t))}function qf(e,t){return new R(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Zf(e,t){return new R(n=>{let r;return De(n,t,()=>{r=e[vi](),De(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>C(r?.return)&&r.return()})}function xi(e,t){if(!e)throw new Error("Iterable cannot be null");return new R(n=>{De(n,t,()=>{let r=e[Symbol.asyncIterator]();De(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Yf(e,t){return xi(bi(e),t)}function Kf(e,t){if(e!=null){if(pi(e))return Wf(e,t);if(Kn(e))return qf(e,t);if(hi(e))return Gf(e,t);if(mi(e))return xi(e,t);if(yi(e))return Zf(e,t);if(_i(e))return Yf(e,t)}throw gi(e)}function Pe(e,t){return t?Kf(e,t):T(e)}function Ht(...e){let t=pt(e);return Pe(e,t)}function c_(e,t){let n=C(e)?e:()=>e,r=o=>o.error(n());return new R(t?o=>t.schedule(r,0,o):r)}function Xf(e){return!!e&&(e instanceof R||C(e.lift)&&C(e.subscribe))}var Mt=jt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function l_(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):n?r(t.defaultValue):o(new Mt)}})})}var u_=jt(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function d_(e,t){let{first:n,each:r,with:o=f_,scheduler:i=t??Ae,meta:s=null}=wi(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return _((a,c)=>{let l,u,d=null,p=0,h=m=>{u=De(c,i,()=>{try{l.unsubscribe(),T(o({meta:s,lastValue:d,seen:p})).subscribe(c)}catch(g){c.error(g)}},m)};l=a.subscribe(b(c,m=>{u?.unsubscribe(),p++,c.next(d=m),r>0&&h(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null})),!p&&h(n!=null?typeof n=="number"?n:+n-i.now():r)})}function f_(e){throw new u_(e)}var{isArray:h_}=Array;function p_(e,t){return h_(t)?e(...t):e(t)}function Jn(e){return ee(t=>p_(e,t))}var{isArray:m_}=Array,{getPrototypeOf:g_,prototype:v_,keys:y_}=Object;function Ti(e){if(e.length===1){let t=e[0];if(m_(t))return{args:t,keys:null};if(b_(t)){let n=y_(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function b_(e){return e&&typeof e=="object"&&g_(e)===v_}function Si(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Tc(...e){let t=pt(e),n=Qn(e),{args:r,keys:o}=Ti(e);if(r.length===0)return Pe([],t);let i=new R(__(r,t,o?s=>Si(o,s):de));return n?i.pipe(Jn(n)):i}function __(e,t,n=de){return r=>{Qf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Qf(t,()=>{let l=Pe(e[c],t),u=!1;l.subscribe(b(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Qf(e,t,n){e?De(n,e,t):t()}function Jf(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},h=g=>l<r?m(g):c.push(g),m=g=>{i&&t.next(g),l++;let D=!1;T(n(g,u++)).subscribe(b(t,N=>{o?.(N),i?h(N):t.next(N)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;c.length&&l<r;){let N=c.shift();s?De(t,s,()=>m(N)):m(N)}p()}catch(N){t.error(N)}}))};return e.subscribe(b(t,h,()=>{d=!0,p()})),()=>{a?.()}}function st(e,t,n=1/0){return C(t)?st((r,o)=>ee((i,s)=>t(r,i,o,s))(T(e(r,o))),n):(typeof t=="number"&&(n=t),_((r,o)=>Jf(r,o,e,n)))}function Qr(e=1/0){return st(de,e)}function eh(){return Qr(1)}function Ut(...e){return eh()(Pe(e,pt(e)))}function D_(e){return new R(t=>{T(e()).subscribe(t)})}function Sc(...e){let t=Qn(e),{args:n,keys:r}=Ti(e),o=new R(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;T(n[u]).subscribe(b(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Si(r,a):a),i.complete())}))}});return t?o.pipe(Jn(t)):o}var w_=["addListener","removeListener"],E_=["addEventListener","removeEventListener"],C_=["on","off"];function Ac(e,t,n,r){if(C(n)&&(r=n,n=void 0),r)return Ac(e,t,n).pipe(Jn(r));let[o,i]=x_(e)?E_.map(s=>a=>e[s](t,a,n)):I_(e)?w_.map(th(e,t)):M_(e)?C_.map(th(e,t)):[];if(!o&&Kn(e))return st(s=>Ac(s,t,n))(T(e));if(!o)throw new TypeError("Invalid event target");return new R(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function th(e,t){return n=>r=>e[n](t,r)}function I_(e){return C(e.addListener)&&C(e.removeListener)}function M_(e){return C(e.on)&&C(e.off)}function x_(e){return C(e.addEventListener)&&C(e.removeEventListener)}function Nc(e=0,t=Ae){return e<0&&(e=0),it(e,e,t)}function Rc(...e){let t=pt(e),n=zf(e,1/0),r=e;return r.length?r.length===1?T(r[0]):Qr(n)(Pe(r,t)):fn}function ge(e,t){return _((n,r)=>{let o=0;n.subscribe(b(r,i=>e.call(t,i,o++)&&r.next(i)))})}function nh(e){return _((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(b(n,l=>{r=!0,o=l,i||T(e(l)).subscribe(i=b(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function Ai(e,t=Ae){return nh(()=>it(e,t))}function Oc(e){return _((t,n)=>{let r=null,o=!1,i;r=t.subscribe(b(n,void 0,void 0,s=>{i=T(e(s,Oc(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function rh(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(b(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Ni(e,t){return C(t)?st(e,t,1):st(e,1)}function T_(e){return _((t,n)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,n.next(a)}};t.subscribe(b(n,a=>{i?.unsubscribe(),r=!0,o=a,i=b(n,s,Ue),T(e(a)).subscribe(i)},()=>{s(),n.complete()},void 0,()=>{o=i=null}))})}function Jr(e){return _((t,n)=>{let r=!1;t.subscribe(b(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function $t(e){return e<=0?()=>fn:_((t,n)=>{let r=0;t.subscribe(b(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function oh(){return _((e,t)=>{e.subscribe(b(t,Ue))})}function kc(e){return ee(()=>e)}function Ri(e,t){return t?n=>Ut(t.pipe($t(1),oh()),n.pipe(Ri(e))):st((n,r)=>T(e(n,r)).pipe($t(1),kc(n)))}function ih(e,t=Ae){let n=it(e,t);return Ri(()=>n)}function Oi(e,t=de){return e=e??S_,_((n,r)=>{let o,i=!0;n.subscribe(b(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function S_(e,t){return e===t}function ki(e=A_){return _((t,n)=>{let r=!1;t.subscribe(b(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function A_(){return new Mt}function Fi(e){return _((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function N_(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ge((o,i)=>e(o,i,r)):de,$t(1),n?Jr(t):ki(()=>new Mt))}function Fc(e){return e<=0?()=>fn:_((t,n)=>{let r=[];t.subscribe(b(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function R_(e,t){let n=arguments.length>=2;return r=>r.pipe(e?ge((o,i)=>e(o,i,r)):de,Fc(1),n?Jr(t):ki(()=>new Mt))}function sh(){return _((e,t)=>{let n,r=!1;e.subscribe(b(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function O_(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=!1}=t;return n<=0?de:_((i,s)=>{let a=0,c,l=()=>{let u=!1;c=i.subscribe(b(s,d=>{o&&(a=0),s.next(d)},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,l()):u=!0};if(r!=null){let h=typeof r=="number"?it(r):T(r(d,a)),m=b(s,()=>{m.unsubscribe(),p()},()=>{s.complete()});h.subscribe(m)}else p()}else s.error(d)})),u&&(c.unsubscribe(),c=null,l())};l()})}function k_(e){return _((t,n)=>{let r,o=!1,i,s=()=>{r=t.subscribe(b(n,void 0,void 0,a=>{i||(i=new A,T(e(i)).subscribe(b(n,()=>r?s():o=!0))),i&&i.next(a)})),o&&(r.unsubscribe(),r=null,o=!1,s())};s()})}function ah(e){return _((t,n)=>{let r=!1,o=null;t.subscribe(b(n,i=>{r=!0,o=i})),T(e).subscribe(b(n,()=>{if(r){r=!1;let i=o;o=null,n.next(i)}},Ue))})}function F_(e,t=Ae){return ah(Nc(e,t))}function P_(e,t){return _(rh(e,t,arguments.length>=2,!0))}function Lc(e={}){let{connector:t=()=>new A,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},h=()=>{p(),s=c=void 0,u=d=!1},m=()=>{let g=s;h(),g?.unsubscribe()};return _((g,D)=>{l++,!d&&!u&&p();let N=c=c??t();D.add(()=>{l--,l===0&&!d&&!u&&(a=Pc(m,o))}),N.subscribe(D),!s&&l>0&&(s=new It({next:me=>N.next(me),error:me=>{d=!0,p(),a=Pc(h,n,me),N.error(me)},complete:()=>{u=!0,p(),a=Pc(h,r),N.complete()}}),T(g).subscribe(s))})(i)}}function Pc(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new It({next:()=>{r.unsubscribe(),e()}});return T(t(...n)).subscribe(r)}function ch(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Lc({connector:()=>new Xr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function eo(e){return ge((t,n)=>e<=n)}function to(...e){let t=pt(e);return _((n,r)=>{(t?Ut(e,n,t):Ut(e,n)).subscribe(r)})}function Pi(e,t){return _((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(b(r,c=>{o?.unsubscribe();let l=0,u=i++;T(e(c,u)).subscribe(o=b(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function zt(e){return _((t,n)=>{T(e).subscribe(b(n,()=>n.complete(),Ue)),!n.closed&&t.subscribe(n)})}function Vc(e,t=!1){return _((n,r)=>{let o=0;n.subscribe(b(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function Li(e,t,n){let r=C(e)||t||n?{next:e,error:t,complete:n}:e;return r?_((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(b(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):de}function L_(...e){let t=Qn(e);return _((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)T(e[c]).subscribe(b(r,l=>{i[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(de))&&(s=null))},Ue));n.subscribe(b(r,c=>{if(a){let l=[c,...i];r.next(t?t(...l):l)}}))})}function ji(e,t){return Object.is(e,t)}var fe=null,Vi=!1,jc=1,ve=Symbol("SIGNAL");function k(e){let t=fe;return fe=e,t}function Bc(){return fe}var pn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function mn(e){if(Vi)throw new Error("");if(fe===null)return;fe.consumerOnSignalRead(e);let t=fe.nextProducerIndex++;if(Ui(fe),t<fe.producerNode.length&&fe.producerNode[t]!==e&&ro(fe)){let n=fe.producerNode[t];Hi(n,fe.producerIndexOfThis[t])}fe.producerNode[t]!==e&&(fe.producerNode[t]=e,fe.producerIndexOfThis[t]=ro(fe)?uh(e,fe,t):0),fe.producerLastReadVersion[t]=e.version}function lh(){jc++}function tr(e){if(!(ro(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===jc)){if(!e.producerMustRecompute(e)&&!Bi(e)){no(e);return}e.producerRecomputeValue(e),no(e)}}function Hc(e){if(e.liveConsumerNode===void 0)return;let t=Vi;Vi=!0;try{for(let n of e.liveConsumerNode)n.dirty||V_(n)}finally{Vi=t}}function Uc(){return fe?.consumerAllowSignalWrites!==!1}function V_(e){e.dirty=!0,Hc(e),e.consumerMarkedDirty?.(e)}function no(e){e.dirty=!1,e.lastCleanEpoch=jc}function nr(e){return e&&(e.nextProducerIndex=0),k(e)}function oo(e,t){if(k(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(ro(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Hi(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Bi(e){Ui(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(tr(n),r!==n.version))return!0}return!1}function io(e){if(Ui(e),ro(e))for(let t=0;t<e.producerNode.length;t++)Hi(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function uh(e,t,n){if(dh(e),e.liveConsumerNode.length===0&&fh(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=uh(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Hi(e,t){if(dh(e),e.liveConsumerNode.length===1&&fh(e))for(let r=0;r<e.producerNode.length;r++)Hi(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];Ui(o),o.producerIndexOfThis[r]=t}}function ro(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ui(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function dh(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function fh(e){return e.producerNode!==void 0}function $i(e,t){let n=Object.create(j_);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(tr(n),mn(n),n.value===Wt)throw n.error;return n.value};return r[ve]=n,r}var hn=Symbol("UNSET"),er=Symbol("COMPUTING"),Wt=Symbol("ERRORED"),j_=z(M({},pn),{value:hn,dirty:!0,error:null,equal:ji,kind:"computed",producerMustRecompute(e){return e.value===hn||e.value===er},producerRecomputeValue(e){if(e.value===er)throw new Error("Detected cycle in computations.");let t=e.value;e.value=er;let n=nr(e),r,o=!1;try{r=e.computation(),k(null),o=t!==hn&&t!==Wt&&r!==Wt&&e.equal(t,r)}catch(i){r=Wt,e.error=i}finally{oo(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function B_(){throw new Error}var hh=B_;function ph(e){hh(e)}function $c(e){hh=e}var H_=null;function zc(e,t){let n=Object.create(Wi);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(mn(n),n.value);return r[ve]=n,r}function gn(e,t){Uc()||ph(e),e.equal(e.value,t)||(e.value=t,U_(e))}function zi(e,t){Uc()||ph(e),gn(e,t(e.value))}var Wi=z(M({},pn),{equal:ji,value:void 0,kind:"signal"});function U_(e){e.version++,lh(),Hc(e),H_?.()}function Gi(e,t,n){let r=Object.create($_);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(tr(r),mn(r),r.value===Wt)throw r.error;return r.value};return i[ve]=r,i}function Wc(e,t){tr(e),gn(e,t),no(e)}function Gc(e,t){tr(e),zi(e,t),no(e)}var $_=z(M({},pn),{value:hn,dirty:!0,error:null,equal:ji,kind:"linkedSignal",producerMustRecompute(e){return e.value===hn||e.value===er},producerRecomputeValue(e){if(e.value===er)throw new Error("Detected cycle in computations.");let t=e.value;e.value=er;let n=nr(e),r;try{let o=e.source(),i=t===hn||t===Wt?void 0:{source:e.sourceValue,value:t};r=e.computation(o,i),e.sourceValue=o}catch(o){r=Wt,e.error=o}finally{oo(e,n)}if(t!==hn&&r!==Wt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function qc(e){let t=k(null);try{return e()}finally{k(t)}}var Zc;function so(){return Zc}function xt(e){let t=Zc;return Zc=e,t}var qi=Symbol("NotFound");var vp="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",w=class extends Error{code;constructor(t,n){super(Cu(t,n)),this.code=t}};function z_(e){return`NG0${Math.abs(e)}`}function Cu(e,t){return`${z_(e)}${t?": "+t:""}`}var Fs=Symbol("InputSignalNode#UNSET"),yp=z(M({},Wi),{transformFn:void 0,applyValueToInputSignal(e,t){gn(e,t)}});function bp(e,t){let n=Object.create(yp);n.value=e,n.transformFn=t?.transform;function r(){if(mn(n),n.value===Fs){let o=null;throw new w(-950,o)}return n.value}return r[ve]=n,r}function Do(e){return{toString:e}.toString()}var Zi="__parameters__";function W_(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function _p(e,t,n){return Do(()=>{let r=W_(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Zi)?c[Zi]:Object.defineProperty(c,Zi,{value:[]})[Zi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Gt=globalThis;function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function G_(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ve(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Ve).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
`);return r>=0?n.slice(0,r):n}function ul(e,t){return e?t?`${e} ${t}`:e:t||""}var q_=q({__forward_ref__:q});function be(e){return e.__forward_ref__=be,e.toString=function(){return Ve(this())},e}function ye(e){return Dp(e)?e():e}function Dp(e){return typeof e=="function"&&e.hasOwnProperty(q_)&&e.__forward_ref__===be}function v(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Z(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ps(e){return mh(e,wp)||mh(e,Ep)}function CL(e){return Ps(e)!==null}function mh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Z_(e){let t=e&&(e[wp]||e[Ep]);return t||null}function gh(e){return e&&(e.hasOwnProperty(vh)||e.hasOwnProperty(Y_))?e[vh]:null}var wp=q({\u0275prov:q}),vh=q({\u0275inj:q}),Ep=q({ngInjectableDef:q}),Y_=q({ngInjectorDef:q}),y=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=v({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Cp(e){return e&&!!e.\u0275providers}var K_=q({\u0275cmp:q}),X_=q({\u0275dir:q}),Q_=q({\u0275pipe:q}),J_=q({\u0275mod:q}),is=q({\u0275fac:q}),uo=q({__NG_ELEMENT_ID__:q}),yh=q({__NG_ENV_ID__:q});function gt(e){return typeof e=="string"?e:e==null?"":String(e)}function eD(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():gt(e)}function Ip(e,t){throw new w(-200,e)}function Iu(e,t){throw new w(-201,!1)}var L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(L||{}),dl;function Mp(){return dl}function Le(e){let t=dl;return dl=e,t}function xp(e,t,n){let r=Ps(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&L.Optional)return null;if(t!==void 0)return t;Iu(e,"Injector")}var tD={},yn=tD,fl="__NG_DI_FLAG__",ss=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?qi:yn,r)}},as="ngTempTokenPath",nD="ngTokenPath",rD=/\n/gm,oD="\u0275",bh="__source";function iD(e,t=L.Default){if(so()===void 0)throw new w(-203,!1);if(so()===null)return xp(e,void 0,t);{let n=so(),r;return n instanceof ss?r=n.injector:r=n,r.get(e,t&L.Optional?null:void 0,t)}}function H(e,t=L.Default){return(Mp()||iD)(ye(e),t)}function f(e,t=L.Default){return H(e,Ls(t))}function Ls(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hl(e){let t=[];for(let n=0;n<e.length;n++){let r=ye(e[n]);if(Array.isArray(r)){if(r.length===0)throw new w(900,!1);let o,i=L.Default;for(let s=0;s<r.length;s++){let a=r[s],c=sD(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(H(o,i))}else t.push(H(r))}return t}function Tp(e,t){return e[fl]=t,e.prototype[fl]=t,e}function sD(e){return e[fl]}function aD(e,t,n,r){let o=e[as];throw t[bh]&&o.unshift(t[bh]),e.message=cD(`
`+e.message,o,n,r),e[nD]=o,e[as]=null,e}function cD(e,t,n,r=null){e=e&&e.charAt(0)===`
`&&e.charAt(1)==oD?e.slice(2):e;let o=Ve(t);if(Array.isArray(t))o=t.map(Ve).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ve(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(rD,`
`)}`}var Mu=Tp(_p("Optional"),8);var Sp=Tp(_p("SkipSelf"),4);function _n(e,t){let n=e.hasOwnProperty(is);return n?e[is]:null}function lD(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function uD(e){return e.flat(Number.POSITIVE_INFINITY)}function xu(e,t){e.forEach(n=>Array.isArray(n)?xu(n,t):t(n))}function Ap(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function cs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function dD(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function fD(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function wo(e,t,n){let r=Eo(e,t);return r>=0?e[r|1]=n:(r=~r,fD(e,r,t,n)),r}function Yc(e,t){let n=Eo(e,t);if(n>=0)return e[n|1]}function Eo(e,t){return hD(e,t,1)}function hD(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var yt={},Ne=[],ls=new y(""),Np=new y("",-1),Rp=new y(""),us=class{get(t,n=yn){if(n===yn){let r=new Error(`NullInjectorError: No provider for ${Ve(t)}!`);throw r.name="NullInjectorError",r}return n}};function Op(e,t){let n=e[J_]||null;if(!n&&t===!0)throw new Error(`Type ${Ve(e)} does not have '\u0275mod' property.`);return n}function Yt(e){return e[K_]||null}function kp(e){return e[X_]||null}function pD(e){return e[Q_]||null}function Tu(e){return{\u0275providers:e}}function mD(...e){return{\u0275providers:Fp(!0,e),\u0275fromNgModule:!0}}function Fp(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return xu(t,s=>{let a=s;pl(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Pp(o,i),n}function Pp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Su(o,i=>{t(i,r)})}}function pl(e,t,n,r){if(e=ye(e),!e)return!1;let o=null,i=gh(e),s=!i&&Yt(e);if(!i&&!s){let c=e.ngModule;if(i=gh(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)pl(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{xu(i.imports,u=>{pl(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Pp(l,t)}if(!a){let l=_n(o)||(()=>new o);t({provide:o,useFactory:l,deps:Ne},o),t({provide:Rp,useValue:o,multi:!0},o),t({provide:ls,useValue:()=>H(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Su(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Su(e,t){for(let n of e)Cp(n)&&(n=n.\u0275providers),Array.isArray(n)?Su(n,t):t(n)}var gD=q({provide:String,useValue:q});function Lp(e){return e!==null&&typeof e=="object"&&gD in e}function vD(e){return!!(e&&e.useExisting)}function yD(e){return!!(e&&e.useFactory)}function lr(e){return typeof e=="function"}function bD(e){return!!e.useClass}var Vp=new y(""),Ji={},_h={},Kc;function Vs(){return Kc===void 0&&(Kc=new us),Kc}var Ee=class{},fo=class extends Ee{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,gl(t,s=>this.processProvider(s)),this.records.set(Np,rr(void 0,this)),o.has("environment")&&this.records.set(Ee,rr(void 0,this));let i=this.records.get(Vp);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Rp,Ne,L.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?qi:yn,r)}destroy(){co(this),this._destroyed=!0;let t=k(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),k(t)}}onDestroy(t){return co(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){co(this);let n=xt(this),r=Le(void 0),o;try{return t()}finally{xt(n),Le(r)}}get(t,n=yn,r=L.Default){if(co(this),t.hasOwnProperty(yh))return t[yh](this);r=Ls(r);let o,i=xt(this),s=Le(void 0);try{if(!(r&L.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=CD(t)&&Ps(t);l&&this.injectableDefInScope(l)?c=rr(ml(t),Ji):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&L.Self?Vs():this.parent;return n=r&L.Optional&&n===yn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[as]=a[as]||[]).unshift(Ve(t)),i)throw a;return aD(a,t,"R3InjectorError",this.source)}else throw a}finally{Le(s),xt(i)}}resolveInjectorInitializers(){let t=k(null),n=xt(this),r=Le(void 0),o;try{let i=this.get(ls,Ne,L.Self);for(let s of i)s()}finally{xt(n),Le(r),k(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ve(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ye(t);let n=lr(t)?t:ye(t&&t.provide),r=DD(t);if(!lr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=rr(void 0,Ji,!0),o.factory=()=>hl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=k(null);try{return n.value===_h?Ip(Ve(t)):n.value===Ji&&(n.value=_h,n.value=n.factory()),typeof n.value=="object"&&n.value&&ED(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{k(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ye(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ml(e){let t=Ps(e),n=t!==null?t.factory:_n(e);if(n!==null)return n;if(e instanceof y)throw new w(204,!1);if(e instanceof Function)return _D(e);throw new w(204,!1)}function _D(e){if(e.length>0)throw new w(204,!1);let n=Z_(e);return n!==null?()=>n.factory(e):()=>new e}function DD(e){if(Lp(e))return rr(void 0,e.useValue);{let t=jp(e);return rr(t,Ji)}}function jp(e,t,n){let r;if(lr(e)){let o=ye(e);return _n(o)||ml(o)}else if(Lp(e))r=()=>ye(e.useValue);else if(yD(e))r=()=>e.useFactory(...hl(e.deps||[]));else if(vD(e))r=()=>H(ye(e.useExisting));else{let o=ye(e&&(e.useClass||e.provide));if(wD(e))r=()=>new o(...hl(e.deps));else return _n(o)||ml(o)}return r}function co(e){if(e.destroyed)throw new w(205,!1)}function rr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wD(e){return!!e.deps}function ED(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function CD(e){return typeof e=="function"||typeof e=="object"&&e instanceof y}function gl(e,t){for(let n of e)Array.isArray(n)?gl(n,t):n&&Cp(n)?gl(n.\u0275providers,t):t(n)}function js(e,t){let n;e instanceof fo?(co(e),n=e):n=new ss(e);let r,o=xt(n),i=Le(void 0);try{return t()}finally{xt(o),Le(i)}}function Bp(){return Mp()!==void 0||so()!=null}function Bs(e){if(!Bp())throw new w(-203,!1)}function ID(e){return typeof e=="function"}var Nt=0,O=1,x=2,Ce=3,ct=4,je=5,ur=6,ds=7,pe=8,Dn=9,Tt=10,re=11,ho=12,Dh=13,yr=14,$e=15,wn=16,or=17,St=18,Hs=19,Hp=20,qt=21,Xc=22,En=23,Ye=24,ar=25,oe=26,Up=1;var Cn=7,fs=8,dr=9,we=10;function Zt(e){return Array.isArray(e)&&typeof e[Up]=="object"}function Rt(e){return Array.isArray(e)&&e[Up]===!0}function Au(e){return(e.flags&4)!==0}function br(e){return e.componentOffset>-1}function Us(e){return(e.flags&1)===1}function bt(e){return!!e.template}function hs(e){return(e[x]&512)!==0}function _r(e){return(e[x]&256)===256}var vl=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function $p(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ge=(()=>{let e=()=>zp;return e.ngInherit=!0,e})();function zp(e){return e.type.prototype.ngOnChanges&&(e.setInput=xD),MD}function MD(){let e=Gp(this),t=e?.current;if(t){let n=e.previous;if(n===yt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function xD(e,t,n,r,o){let i=this.declaredInputs[r],s=Gp(e)||TD(e,{previous:yt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new vl(l&&l.currentValue,n,c===yt),$p(e,t,o,n)}var Wp="__ngSimpleChanges__";function Gp(e){return e[Wp]||null}function TD(e,t){return e[Wp]=t}var wh=null;var W=function(e,t=null,n){wh?.(e,t,n)},qp="svg",SD="math";function _t(e){for(;Array.isArray(e);)e=e[Nt];return e}function Zp(e,t){return _t(t[e])}function Ct(e,t){return _t(t[e.index])}function Nu(e,t){return e.data[t]}function Co(e,t){return e[t]}function Dt(e,t){let n=t[e];return Zt(n)?n:n[Nt]}function AD(e){return(e[x]&4)===4}function Ru(e){return(e[x]&128)===128}function ND(e){return Rt(e[Ce])}function Kt(e,t){return t==null?null:e[t]}function Yp(e){e[or]=0}function Kp(e){e[x]&1024||(e[x]|=1024,Ru(e)&&Dr(e))}function RD(e,t){for(;e>0;)t=t[yr],e--;return t}function $s(e){return!!(e[x]&9216||e[Ye]?.dirty)}function yl(e){e[Tt].changeDetectionScheduler?.notify(8),e[x]&64&&(e[x]|=1024),$s(e)&&Dr(e)}function Dr(e){e[Tt].changeDetectionScheduler?.notify(0);let t=In(e);for(;t!==null&&!(t[x]&8192||(t[x]|=8192,!Ru(t)));)t=In(t)}f