UNPKG

@mxtommy/kip

Version:

An advanced and versatile marine instrumentation package to display Signal K data.

4 lines 447 kB
var tE=Object.create;var vl=Object.defineProperty,nE=Object.defineProperties,rE=Object.getOwnPropertyDescriptor,oE=Object.getOwnPropertyDescriptors,iE=Object.getOwnPropertyNames,fs=Object.getOwnPropertySymbols,sE=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable;var lh=(e,n,t)=>n in e?vl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,R=(e,n)=>{for(var t in n||={})yl.call(n,t)&&lh(e,t,n[t]);if(fs)for(var t of fs(n))uh.call(n,t)&&lh(e,t,n[t]);return e},J=(e,n)=>nE(e,oE(n));var dh=(e,n)=>{var t={};for(var r in e)yl.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&fs)for(var r of fs(e))n.indexOf(r)<0&&uh.call(e,r)&&(t[r]=e[r]);return t};var PN=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var aE=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of iE(n))!yl.call(e,o)&&o!==t&&vl(e,o,{get:()=>n[o],enumerable:!(r=rE(n,o))||r.enumerable});return e};var LN=(e,n,t)=>(t=e!=null?tE(sE(e)):{},aE(n||!e||!e.__esModule?vl(t,"default",{value:e,enumerable:!0}):t,e));var Un=(e,n,t)=>new Promise((r,o)=>{var i=c=>{try{a(t.next(c))}catch(l){o(l)}},s=c=>{try{a(t.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,n)).next())});function M(e){return typeof e=="function"}function pn(e){let t=e(r=>{Error.call(r),r.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ps=pn(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription: ${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=t});function $n(e,n){if(e){let t=e.indexOf(n);0<=t&&e.splice(t,1)}}var j=class e{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:r}=this;if(M(r))try{r()}catch(i){n=i instanceof ps?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{fh(i)}catch(s){n=n??[],s instanceof ps?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ps(n)}}add(n){var t;if(n&&n!==this)if(this.closed)fh(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}_hasParent(n){let{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){let{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&$n(t,n)}remove(n){let{_finalizers:t}=this;t&&$n(t,n),n instanceof e&&n._removeParent(this)}};j.EMPTY=(()=>{let e=new j;return e.closed=!0,e})();var bl=j.EMPTY;function hs(e){return e instanceof j||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function fh(e){M(e)?e():e.unsubscribe()}var pt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var kr={setTimeout(e,n,...t){let{delegate:r}=kr;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){let{delegate:n}=kr;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ms(e){kr.setTimeout(()=>{let{onUnhandledError:n}=pt;if(n)n(e);else throw e})}function Ye(){}var ph=_l("C",void 0,void 0);function hh(e){return _l("E",void 0,e)}function mh(e){return _l("N",e,void 0)}function _l(e,n,t){return{kind:e,value:n,error:t}}var zn=null;function Fr(e){if(pt.useDeprecatedSynchronousErrorHandling){let n=!zn;if(n&&(zn={errorThrown:!1,error:null}),e(),n){let{errorThrown:t,error:r}=zn;if(zn=null,t)throw r}}else e()}function gh(e){pt.useDeprecatedSynchronousErrorHandling&&zn&&(zn.errorThrown=!0,zn.error=e)}var Wn=class extends j{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,hs(n)&&n.add(this)):this.destination=uE}static create(n,t,r){return new ht(n,t,r)}next(n){this.isStopped?El(mh(n),this):this._next(n)}error(n){this.isStopped?El(hh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?El(ph,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},cE=Function.prototype.bind;function Dl(e,n){return cE.call(e,n)}var wl=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){gs(r)}}error(n){let{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){gs(r)}else gs(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){gs(t)}}},ht=class extends Wn{constructor(n,t,r){super();let o;if(M(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&pt.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Dl(n.next,i),error:n.error&&Dl(n.error,i),complete:n.complete&&Dl(n.complete,i)}):o=n}this.destination=new wl(o)}};function gs(e){pt.useDeprecatedSynchronousErrorHandling?gh(e):ms(e)}function lE(e){throw e}function El(e,n){let{onStoppedNotification:t}=pt;t&&kr.setTimeout(()=>t(e,n))}var uE={closed:!0,next:Ye,error:lE,complete:Ye};var Pr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Oe(e){return e}function dE(...e){return Il(e)}function Il(e){return e.length===0?Oe:e.length===1?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}var A=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){let i=pE(t)?t:new ht(t,r,o);return Fr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return r=vh(r),new r((o,i)=>{let s=new ht({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)}[Pr](){return this}pipe(...t){return Il(t)(this)}toPromise(t){return t=vh(t),new t((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function vh(e){var n;return(n=e??pt.Promise)!==null&&n!==void 0?n:Promise}function fE(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function pE(e){return e&&e instanceof Wn||fE(e)&&hs(e)}var yh=pn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var F=(()=>{class e extends A{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let r=new vs(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new yh}next(t){Fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(t)}})}error(t){Fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bl:(this.currentObservers=null,i.push(t),new j(()=>{this.currentObservers=null,$n(i,t)}))}_checkFinalizedStatuses(t){let{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){let t=new A;return t.source=this,t}}return e.create=(n,t)=>new vs(n,t),e})(),vs=class extends F{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0||r.call(t,n)}error(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0||r.call(t,n)}complete(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)}_subscribe(n){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&r!==void 0?r:bl}};function Cl(e){return M(e?.lift)}function I(e){return n=>{if(Cl(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function D(e,n,t,r,o){return new Sl(e,n,t,r,o)}var Sl=class extends Wn{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function q(e,n){return I((t,r)=>{let o=0;t.subscribe(D(r,i=>{r.next(e.call(n,i,o++))}))})}var ys=class extends j{constructor(n,t){super()}schedule(n,t=0){return this}};var Ao={setInterval(e,n,...t){let{delegate:r}=Ao;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){let{delegate:n}=Ao;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};var hn=class extends ys{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Ao.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&Ao.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(n,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r=!1,o;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,$n(r,this),n!=null&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}};var No={now(){return(No.delegate||Date).now()},delegate:void 0};var Lr=class e{constructor(n,t=e.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}};Lr.now=No.now;var mn=class extends Lr{constructor(n,t=Lr.now){super(n,t),this.actions=[],this._active=!1}flush(n){let{actions:t}=this;if(this._active){t.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}};var ke=new mn(hn),bh=ke;function gn(e,n=ke){return I((t,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=n.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}t.subscribe(D(r,l=>{i=l,s=n.now(),o||(o=n.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function _h(){return I((e,n)=>{let t=null;e._refCount++;let r=D(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){t=null;return}let o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}var Ro=class extends A{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Cl(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new j;let t=this.getSubject();n.add(this.source.subscribe(D(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=j.EMPTY)}return n}refCount(){return _h()(this)}};var jr={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame,{delegate:r}=jr;r&&(n=r.requestAnimationFrame,t=r.cancelAnimationFrame);let o=n(i=>{t=void 0,e(i)});return new j(()=>t?.(o))},requestAnimationFrame(...e){let{delegate:n}=jr;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:n}=jr;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Gn=class extends F{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){let{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Br=class extends F{constructor(n=1/0,t=1/0,r=No){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){let{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!n.closed;s+=r?1:2)n.next(i[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){let{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=t.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var hE=1,Tl,Ml={};function Dh(e){return e in Ml?(delete Ml[e],!0):!1}var Eh={setImmediate(e){let n=hE++;return Ml[n]=!0,Tl||(Tl=Promise.resolve()),Tl.then(()=>Dh(n)&&e()),n},clearImmediate(e){Dh(e)}};var{setImmediate:mE,clearImmediate:gE}=Eh,Oo={setImmediate(...e){let{delegate:n}=Oo;return(n?.setImmediate||mE)(...e)},clearImmediate(e){let{delegate:n}=Oo;return(n?.clearImmediate||gE)(e)},delegate:void 0};var bs=class extends hn{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=Oo.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(Oo.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}};var _s=class extends mn{flush(n){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var wh=new _s(bs);var Ds=class extends hn{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=jr.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&t===n._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(jr.cancelAnimationFrame(t),n._scheduled=void 0)}};var Es=class extends mn{flush(n){this._active=!0;let t;n?t=n.id:(t=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var Ih=new Es(Ds);var qn=new A(e=>e.complete());function ws(e){return e&&M(e.schedule)}function xl(e){return e[e.length-1]}function Vr(e){return M(xl(e))?e.pop():void 0}function kt(e){return ws(xl(e))?e.pop():void 0}function Ch(e,n){return typeof xl(e)=="number"?e.pop():n}function Th(e,n,t,r){function o(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=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,n||[])).next())})}function Sh(e){var n=typeof Symbol=="function"&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.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(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yn(e){return this instanceof Yn?(this.v=e,this):new Yn(e)}function Mh(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(e,n||[]),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(f){return function(m){return Promise.resolve(m).then(f,d)}}function a(f,m){r[f]&&(o[f]=function(y){return new Promise(function(v,E){i.push([f,y,v,E])>1||c(f,y)})},m&&(o[f]=m(o[f])))}function c(f,m){try{l(r[f](m))}catch(y){h(i[0][3],y)}}function l(f){f.value instanceof Yn?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,m){f(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function xh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e[Symbol.asyncIterator],t;return n?n.call(e):(e=typeof Sh=="function"?Sh(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,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 Hr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Is(e){return M(e?.then)}function Cs(e){return M(e[Pr])}function Ss(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Ts(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 vE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ms=vE();function xs(e){return M(e?.[Ms])}function As(e){return Mh(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:r,done:o}=yield Yn(t.read());if(o)return yield Yn(void 0);yield yield Yn(r)}}finally{t.releaseLock()}})}function Ns(e){return M(e?.getReader)}function k(e){if(e instanceof A)return e;if(e!=null){if(Cs(e))return yE(e);if(Hr(e))return bE(e);if(Is(e))return _E(e);if(Ss(e))return Ah(e);if(xs(e))return DE(e);if(Ns(e))return EE(e)}throw Ts(e)}function yE(e){return new A(n=>{let t=e[Pr]();if(M(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function bE(e){return new A(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function _E(e){return new A(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,ms)})}function DE(e){return new A(n=>{for(let t of e)if(n.next(t),n.closed)return;n.complete()})}function Ah(e){return new A(n=>{wE(e,n).catch(t=>n.error(t))})}function EE(e){return Ah(As(e))}function wE(e,n){var t,r,o,i;return Th(this,void 0,void 0,function*(){try{for(t=xh(e);r=yield t.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})}function Ie(e,n,t,r=0,o=!1){let i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Rs(e,n=0){return I((t,r)=>{t.subscribe(D(r,o=>Ie(r,e,()=>r.next(o),n),()=>Ie(r,e,()=>r.complete(),n),o=>Ie(r,e,()=>r.error(o),n)))})}function Os(e,n=0){return I((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Nh(e,n){return k(e).pipe(Os(n),Rs(n))}function Rh(e,n){return k(e).pipe(Os(n),Rs(n))}function Oh(e,n){return new A(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function kh(e,n){return new A(t=>{let r;return Ie(t,n,()=>{r=e[Ms](),Ie(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){t.error(s);return}i?t.complete():t.next(o)},0,!0)}),()=>M(r?.return)&&r.return()})}function ks(e,n){if(!e)throw new Error("Iterable cannot be null");return new A(t=>{Ie(t,n,()=>{let r=e[Symbol.asyncIterator]();Ie(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function Fh(e,n){return ks(As(e),n)}function Ph(e,n){if(e!=null){if(Cs(e))return Nh(e,n);if(Hr(e))return Oh(e,n);if(Is(e))return Rh(e,n);if(Ss(e))return ks(e,n);if(xs(e))return kh(e,n);if(Ns(e))return Fh(e,n)}throw Ts(e)}function Ft(e,n){return n?Ph(e,n):k(e)}function He(...e){let n=kt(e);return Ft(e,n)}function Al(e,n){let t=M(e)?e:()=>e,r=o=>o.error(t());return new A(n?o=>n.schedule(r,0,o):r)}function Lh(e){return!!e&&(e instanceof A||M(e.lift)&&M(e.subscribe))}var Zt=pn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function IE(e,n){let t=typeof n=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):t?r(n.defaultValue):o(new Zt)}})})}function CE(e,n){let t=typeof n=="object";return new Promise((r,o)=>{let i=new ht({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{t?r(n.defaultValue):o(new Zt)}});e.subscribe(i)})}function Fs(e){return e instanceof Date&&!isNaN(e)}var SE=pn(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function TE(e,n){let{first:t,each:r,with:o=ME,scheduler:i=n??ke,meta:s=null}=Fs(e)?{first:e}:typeof e=="number"?{each:e}:e;if(t==null&&r==null)throw new TypeError("No timeout provided.");return I((a,c)=>{let l,u,d=null,h=0,f=m=>{u=Ie(c,i,()=>{try{l.unsubscribe(),k(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(y){c.error(y)}},m)};l=a.subscribe(D(c,m=>{u?.unsubscribe(),h++,c.next(d=m),r>0&&f(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null})),!h&&f(t!=null?typeof t=="number"?t:+t-i.now():r)})}function ME(e){throw new SE(e)}var{isArray:xE}=Array;function AE(e,n){return xE(n)?e(...n):e(n)}function Ur(e){return q(n=>AE(e,n))}var{isArray:NE}=Array,{getPrototypeOf:RE,prototype:OE,keys:kE}=Object;function Ps(e){if(e.length===1){let n=e[0];if(NE(n))return{args:n,keys:null};if(FE(n)){let t=kE(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function FE(e){return e&&typeof e=="object"&&RE(e)===OE}function Ls(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function Nl(...e){let n=kt(e),t=Vr(e),{args:r,keys:o}=Ps(e);if(r.length===0)return Ft([],n);let i=new A(PE(r,n,o?s=>Ls(o,s):Oe));return t?i.pipe(Ur(t)):i}function PE(e,n,t=Oe){return r=>{jh(n,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)jh(n,()=>{let l=Ft(e[c],n),u=!1;l.subscribe(D(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function jh(e,n,t){e?Ie(t,e,n):n()}function Bh(e,n,t,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&n.complete()},f=y=>l<r?m(y):c.push(y),m=y=>{i&&n.next(y),l++;let v=!1;k(t(y,u++)).subscribe(D(n,E=>{o?.(E),i?f(E):n.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&l<r;){let E=c.shift();s?Ie(n,s,()=>m(E)):m(E)}h()}catch(E){n.error(E)}}))};return e.subscribe(D(n,f,()=>{d=!0,h()})),()=>{a?.()}}function mt(e,n,t=1/0){return M(n)?mt((r,o)=>q((i,s)=>n(r,i,o,s))(k(e(r,o))),t):(typeof n=="number"&&(t=n),I((r,o)=>Bh(r,o,e,t)))}function ko(e=1/0){return mt(Oe,e)}function Vh(){return ko(1)}function vn(...e){return Vh()(Ft(e,kt(e)))}function LE(e){return new A(n=>{k(e()).subscribe(n)})}function Rl(...e){let n=Vr(e),{args:t,keys:r}=Ps(e),o=new A(i=>{let{length:s}=t;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;k(t[u]).subscribe(D(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Ls(r,a):a),i.complete())}))}});return n?o.pipe(Ur(n)):o}var jE=["addListener","removeListener"],BE=["addEventListener","removeEventListener"],VE=["on","off"];function Ol(e,n,t,r){if(M(t)&&(r=t,t=void 0),r)return Ol(e,n,t).pipe(Ur(r));let[o,i]=$E(e)?BE.map(s=>a=>e[s](n,a,t)):HE(e)?jE.map(Hh(e,n)):UE(e)?VE.map(Hh(e,n)):[];if(!o&&Hr(e))return mt(s=>Ol(s,n,t))(k(e));if(!o)throw new TypeError("Invalid event target");return new A(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Hh(e,n){return t=>r=>e[t](n,r)}function HE(e){return M(e.addListener)&&M(e.removeListener)}function UE(e){return M(e.on)&&M(e.off)}function $E(e){return M(e.addEventListener)&&M(e.removeEventListener)}function Kt(e=0,n,t=bh){let r=-1;return n!=null&&(ws(n)?t=n:r=n),new A(o=>{let i=Fs(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function kl(e=0,n=ke){return e<0&&(e=0),Kt(e,e,n)}function zE(...e){let n=kt(e),t=Ch(e,1/0),r=e;return r.length?r.length===1?k(r[0]):ko(t)(Ft(r,n)):qn}function Ce(e,n){return I((t,r)=>{let o=0;t.subscribe(D(r,i=>e.call(n,i,o++)&&r.next(i)))})}function Uh(e){return I((n,t)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,t.next(l)}s&&t.complete()},c=()=>{i=null,s&&t.complete()};n.subscribe(D(t,l=>{r=!0,o=l,i||k(e(l)).subscribe(i=D(t,a,c))},()=>{s=!0,(!r||!i||i.closed)&&t.complete()}))})}function js(e,n=ke){return Uh(()=>Kt(e,n))}function Fo(e){return I((n,t)=>{let r=null,o=!1,i;r=n.subscribe(D(t,void 0,void 0,s=>{i=k(e(s,Fo(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function Bs(e,n){return M(n)?mt(e,n,1):mt(e,1)}function WE(e){return I((n,t)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,t.next(a)}};n.subscribe(D(t,a=>{i?.unsubscribe(),r=!0,o=a,i=D(t,s,Ye),k(e(a)).subscribe(i)},()=>{s(),t.complete()},void 0,()=>{o=i=null}))})}function $h(e){return I((n,t)=>{let r=!1;n.subscribe(D(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function gt(e){return e<=0?()=>qn:I((n,t)=>{let r=0;n.subscribe(D(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function zh(){return I((e,n)=>{e.subscribe(D(n,Ye))})}function Fl(e){return q(()=>e)}function Vs(e,n){return n?t=>vn(n.pipe(gt(1),zh()),t.pipe(Vs(e))):mt((t,r)=>k(e(t,r)).pipe(gt(1),Fl(t)))}function GE(e,n=ke){let t=Kt(e,n);return Vs(()=>t)}function Po(e,n=Oe){return e=e??qE,I((t,r)=>{let o,i=!0;t.subscribe(D(r,s=>{let a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function qE(e,n){return e===n}function Wh(e=YE){return I((n,t)=>{let r=!1;n.subscribe(D(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function YE(){return new Zt}function Zn(e){return I((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function ZE(e,n){let t=arguments.length>=2;return r=>r.pipe(e?Ce((o,i)=>e(o,i,r)):Oe,gt(1),t?$h(n):Wh(()=>new Zt))}function KE(e){return e<=0?()=>qn:I((n,t)=>{let r=[];n.subscribe(D(t,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function Gh(){return I((e,n)=>{let t,r=!1;e.subscribe(D(n,o=>{let i=t;t=o,r&&n.next([i,o]),r=!0}))})}function XE(e){return I((n,t)=>{let r,o=!1,i,s=()=>{r=n.subscribe(D(t,void 0,void 0,a=>{i||(i=new F,k(e(i)).subscribe(D(t,()=>r?s():o=!0))),i&&i.next(a)})),o&&(r.unsubscribe(),r=null,o=!1,s())};s()})}function qh(e){return I((n,t)=>{let r=!1,o=null;n.subscribe(D(t,i=>{r=!0,o=i})),k(e).subscribe(D(t,()=>{if(r){r=!1;let i=o;o=null,t.next(i)}},Ye))})}function QE(e,n=ke){return qh(kl(e,n))}function Lo(e={}){let{connector:n=()=>new F,resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,u=d=!1},m=()=>{let y=s;f(),y?.unsubscribe()};return I((y,v)=>{l++,!d&&!u&&h();let E=c=c??n();v.add(()=>{l--,l===0&&!d&&!u&&(a=Pl(m,o))}),E.subscribe(v),!s&&l>0&&(s=new ht({next:V=>E.next(V),error:V=>{d=!0,h(),a=Pl(f,t,V),E.error(V)},complete:()=>{u=!0,h(),a=Pl(f,r),E.complete()}}),k(y).subscribe(s))})(i)}}function Pl(e,n,...t){if(n===!0){e();return}if(n===!1)return;let r=new ht({next:()=>{r.unsubscribe(),e()}});return k(n(...t)).subscribe(r)}function Ll(e,n,t){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:t}=e:r=e??1/0,Lo({connector:()=>new Br(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function $r(e){return Ce((n,t)=>e<=t)}function JE(e){return I((n,t)=>{let r=!1,o=0;n.subscribe(D(t,i=>(r||(r=!e(i,o++)))&&t.next(i)))})}function jo(...e){let n=kt(e);return I((t,r)=>{(n?vn(e,t,n):vn(e,t)).subscribe(r)})}function Hs(e,n){return I((t,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();t.subscribe(D(r,c=>{o?.unsubscribe();let l=0,u=i++;k(e(c,u)).subscribe(o=D(r,d=>r.next(n?n(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Xt(e){return I((n,t)=>{k(e).subscribe(D(t,()=>t.complete(),Ye)),!t.closed&&n.subscribe(t)})}function jl(e,n=!1){return I((t,r)=>{let o=0;t.subscribe(D(r,i=>{let s=e(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}function yn(e,n,t){let r=M(e)||n||t?{next:e,error:n,complete:t}:e;return r?I((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(D(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)}))}):Oe}function Yh(e,n){return I((t,r)=>{let{leading:o=!0,trailing:i=!1}=n??{},s=!1,a=null,c=null,l=!1,u=()=>{c?.unsubscribe(),c=null,i&&(f(),l&&r.complete())},d=()=>{c=null,l&&r.complete()},h=m=>c=k(e(m)).subscribe(D(r,u,d)),f=()=>{if(s){s=!1;let m=a;a=null,r.next(m),!l&&h(m)}};t.subscribe(D(r,m=>{s=!0,a=m,!(c&&!c.closed)&&(o?f():h(m))},()=>{l=!0,!(i&&s&&c&&!c.closed)&&r.complete()}))})}function ew(e,n=ke,t){let r=Kt(e,n);return Yh(()=>r,t)}function tw(...e){let n=Vr(e);return I((t,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)k(e[c]).subscribe(D(r,l=>{i[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(Oe))&&(s=null))},Ye));t.subscribe(D(r,c=>{if(a){let l=[c,...i];r.next(n?n(...l):l)}}))})}var Se=null,Us=!1,Bl=1,nw=null,re=Symbol("SIGNAL");function S(e){let n=Se;return Se=e,n}function $s(){return Se}var bn={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qt(e){if(Us)throw new Error("");if(Se===null)return;Se.consumerOnSignalRead(e);let n=Se.producersTail;if(n!==void 0&&n.producer===e)return;let t,r=Se.recomputing;if(r&&(t=n!==void 0?n.nextProducer:Se.producers,t!==void 0&&t.producer===e)){Se.producersTail=t,t.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Se&&(!r||ow(o,Se)))return;let i=Gr(Se),s={producer:e,consumer:Se,nextProducer:t,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Se.producersTail=s,n!==void 0?n.nextProducer=s:Se.producers=s,i&&Qh(e,s)}function Zh(){Bl++}function Qn(e){if(!(Gr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Bl)){if(!e.producerMustRecompute(e)&&!Wr(e)){zr(e);return}e.producerRecomputeValue(e),zr(e)}}function Vl(e){if(e.consumers===void 0)return;let n=Us;Us=!0;try{for(let t=e.consumers;t!==void 0;t=t.nextConsumer){let r=t.consumer;r.dirty||rw(r)}}finally{Us=n}}function Hl(){return Se?.consumerAllowSignalWrites!==!1}function rw(e){e.dirty=!0,Vl(e),e.consumerMarkedDirty?.(e)}function zr(e){e.dirty=!1,e.lastCleanEpoch=Bl}function Jt(e){return e&&Kh(e),S(e)}function Kh(e){e.producersTail=void 0,e.recomputing=!0}function _n(e,n){S(n),e&&Xh(e)}function Xh(e){e.recomputing=!1;let n=e.producersTail,t=n!==void 0?n.nextProducer:e.producers;if(t!==void 0){if(Gr(e))do t=Ul(t);while(t!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function Wr(e){for(let n=e.producers;n!==void 0;n=n.nextProducer){let t=n.producer,r=n.lastReadVersion;if(r!==t.version||(Qn(t),r!==t.version))return!0}return!1}function Dn(e){if(Gr(e)){let n=e.producers;for(;n!==void 0;)n=Ul(n)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Qh(e,n){let t=e.consumersTail,r=Gr(e);if(t!==void 0?(n.nextConsumer=t.nextConsumer,t.nextConsumer=n):(n.nextConsumer=void 0,e.consumers=n),n.prevConsumer=t,e.consumersTail=n,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Qh(o.producer,o)}function Ul(e){let n=e.producer,t=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:n.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(n.consumers=r,!Gr(n)){let i=n.producers;for(;i!==void 0;)i=Ul(i)}return t}function Gr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Bo(e){nw?.(e)}function ow(e,n){let t=n.producersTail;if(t!==void 0){let r=n.producers;do{if(r===e)return!0;if(r===t)break;r=r.nextProducer}while(r!==void 0)}return!1}function Vo(e,n){return Object.is(e,n)}function Ho(e,n){let t=Object.create(iw);t.computation=e,n!==void 0&&(t.equal=n);let r=()=>{if(Qn(t),Qt(t),t.value===Pt)throw t.error;return t.value};return r[re]=t,Bo(t),r}var Kn=Symbol("UNSET"),Xn=Symbol("COMPUTING"),Pt=Symbol("ERRORED"),iw=J(R({},bn),{value:Kn,dirty:!0,error:null,equal:Vo,kind:"computed",producerMustRecompute(e){return e.value===Kn||e.value===Xn},producerRecomputeValue(e){if(e.value===Xn)throw new Error("");let n=e.value;e.value=Xn;let t=Jt(e),r,o=!1;try{r=e.computation(),S(null),o=n!==Kn&&n!==Pt&&r!==Pt&&e.equal(n,r)}catch(i){r=Pt,e.error=i}finally{_n(e,t)}if(o){e.value=n;return}e.value=r,e.version++}});function sw(){throw new Error}var Jh=sw;function em(e){Jh(e)}function $l(e){Jh=e}var aw=null;function zl(e,n){let t=Object.create(Uo);t.value=e,n!==void 0&&(t.equal=n);let r=()=>tm(t);return r[re]=t,Bo(t),[r,s=>En(t,s),s=>zs(t,s)]}function tm(e){return Qt(e),e.value}function En(e,n){Hl()||em(e),e.equal(e.value,n)||(e.value=n,cw(e))}function zs(e,n){Hl()||em(e),En(e,n(e.value))}var Uo=J(R({},bn),{equal:Vo,value:void 0,kind:"signal"});function cw(e){e.version++,Zh(),Vl(e),aw?.(e)}var Wl=J(R({},bn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Gl(e){if(e.dirty=!1,e.version>0&&!Wr(e))return;e.version++;let n=Jt(e);try{e.cleanup(),e.fn()}finally{_n(e,n)}}var ql;function Ws(){return ql}function Lt(e){let n=ql;return ql=e,n}var nm=Symbol("NotFound");function qr(e){return e===nm||e?.name==="\u0275NotFound"}function Yl(e,n,t){let r=Object.create(lw);r.source=e,r.computation=n,t!=null&&(r.equal=t);let i=()=>{if(Qn(r),Qt(r),r.value===Pt)throw r.error;return r.value};return i[re]=r,Bo(r),i}function rm(e,n){Qn(e),En(e,n),zr(e)}function om(e,n){if(Qn(e),e.value===Pt)throw e.error;zs(e,n),zr(e)}var lw=J(R({},bn),{value:Kn,dirty:!0,error:null,equal:Vo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Kn||e.value===Xn},producerRecomputeValue(e){if(e.value===Xn)throw new Error("");let n=e.value;e.value=Xn;let t=Jt(e),r,o=!1;try{let i=e.source(),s=n!==Kn&&n!==Pt,a=s?{source:e.sourceValue,value:n}:void 0;r=e.computation(i,a),e.sourceValue=i,S(null),o=s&&r!==Pt&&e.equal(n,r)}catch(i){r=Pt,e.error=i}finally{_n(e,t)}if(o){e.value=n;return}e.value=r,e.version++}});function im(e){let n=S(null);try{return e()}finally{S(n)}}var Qs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",_=class extends Error{code;constructor(n,t){super(vt(n,t)),this.code=n}};function uw(e){return`NG0${Math.abs(e)}`}function vt(e,n){return`${uw(e)}${n?": "+n:""}`}var ve=globalThis;function $(e){for(let n in e)if(e[n]===$)return n;throw Error("")}function um(e,n){for(let t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Zo(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Zo).join(", ")}]`;if(e==null)return""+e;let n=e.overriddenName||e.name;if(n)return`${n}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(` `);return r>=0?t.slice(0,r):t}function Js(e,n){return e?n?`${e} ${n}`:e:n||""}var dw=$({__forward_ref__:$});function Ko(e){return e.__forward_ref__=Ko,e}function me(e){return au(e)?e():e}function au(e){return typeof e=="function"&&e.hasOwnProperty(dw)&&e.__forward_ref__===Ko}function g(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Y(e){return{providers:e.providers||[],imports:e.imports||[]}}function Xo(e){return pw(e,ea)}function fw(e){return Xo(e)!==null}function pw(e,n){return e.hasOwnProperty(n)&&e[n]||null}function hw(e){let n=e?.[ea]??null;return n||null}function Kl(e){return e&&e.hasOwnProperty(qs)?e[qs]:null}var ea=$({\u0275prov:$}),qs=$({\u0275inj:$}),b=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=g({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function cu(e){return e&&!!e.\u0275providers}var lu=$({\u0275cmp:$}),uu=$({\u0275dir:$}),du=$({\u0275pipe:$}),fu=$({\u0275mod:$}),zo=$({\u0275fac:$}),rr=$({__NG_ELEMENT_ID__:$}),sm=$({__NG_ENV_ID__:$});function pu(e){return na(e,"@NgModule"),e[fu]||null}function Bt(e){return na(e,"@Component"),e[lu]||null}function ta(e){return na(e,"@Directive"),e[uu]||null}function dm(e){return na(e,"@Pipe"),e[du]||null}function na(e,n){if(e==null)throw new _(-919,!1)}function Pe(e){return typeof e=="string"?e:e==null?"":String(e)}var fm=$({ngErrorCode:$}),mw=$({ngErrorMessage:$}),gw=$({ngTokenPath:$});function hu(e,n){return pm("",-200,n)}function ra(e,n){throw new _(-201,!1)}function pm(e,n,t){let r=new _(n,e);return r[fm]=n,r[mw]=e,t&&(r[gw]=t),r}function vw(e){return e[fm]}var Xl;function hm(){return Xl}function Fe(e){let n=Xl;return Xl=e,n}function mu(e,n,t){let r=Xo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(t&8)return null;if(n!==void 0)return n;ra(e,"")}var yw={},Jn=yw,bw="__NG_DI_FLAG__",Ql=class{injector;constructor(n){this.injector=n}retrieve(n,t){let r=er(t)||0;try{return this.injector.get(n,r&8?null:Jn,r)}catch(o){if(qr(o))return o;throw o}}};function _w(e,n=0){let t=Ws();if(t===void 0)throw new _(-203,!1);if(t===null)return mu(e,void 0,n);{let r=Dw(n),o=t.retrieve(e,r);if(qr(o)){if(r.optional)return null;throw o}return o}}function C(e,n=0){return(hm()||_w)(me(e),n)}function p(e,n){return C(e,er(n))}function er(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Dw(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Jl(e){let n=[];for(let t=0;t<e.length;t++){let r=me(e[t]);if(Array.isArray(r)){if(r.length===0)throw new _(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Ew(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}n.push(C(o,i))}else n.push(C(r))}return n}function Ew(e){return e[bw]}function wn(e,n){let t=e.hasOwnProperty(zo);return t?e[zo]:null}function mm(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=n[r];if(t&&(o=t(o),i=t(i)),i!==o)return!1}return!0}function gm(e){return e.flat(Number.POSITIVE_INFINITY)}function oa(e,n){e.forEach(t=>Array.isArray(t)?oa(t,n):n(t))}function gu(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Qo(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function vm(e,n){let t=[];for(let r=0;r<e;r++)t.push(n);return t}function ym(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(o===1)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;){let i=o-2;e[o]=e[i],o--}e[n]=t,e[n+1]=r}}function Jo(e,n,t){let r=Zr(e,n);return r>=0?e[r|1]=t:(r=~r,ym(e,r,n,t)),r}function ia(e,n){let t=Zr(e,n);if(t>=0)return e[t|1]}function Zr(e,n){return ww(e,n,1)}function ww(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<t];if(n===s)return i<<t;s>n?o=i:r=i+1}return~(o<<t)}var yt={},Te=[],Kr=new b(""),vu=new b("",-1),yu=new b(""),Wo=class{get(n,t=Jn){if(t===Jn){let o=pm("",-201);throw o.name="\u0275NotFound",o}return t}};function Sn(e){return{\u0275providers:e}}function bm(...e){return{\u0275providers:bu(!0,e),\u0275fromNgModule:!0}}function bu(e,...n){let t=[],r=new Set,o,i=s=>{t.push(s)};return oa(n,s=>{let a=s;Ys(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&_m(o,i),t}function _m(e,n){for(let t=0;t<e.length;t++){let{ngModule:r,providers:o}=e[t];_u(o,i=>{n(i,r)})}}function Ys(e,n,t,r){if(e=me(e),!e)return!1;let o=null,i=Kl(e),s=!i&&Bt(e);if(!i&&!s){let c=e.ngModule;if(i=Kl(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)Ys(l,n,t,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;oa(i.imports,u=>{Ys(u,n,t,r)&&(l||=[],l.push(u))}),l!==void 0&&_m(l,n)}if(!a){let l=wn(o)||(()=>new o);n({provide:o,useFactory:l,deps:Te},o),n({provide:yu,useValue:o,multi:!0},o),n({provide:Kr,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;_u(c,u=>{n(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function _u(e,n){for(let t of e)cu(t)&&(t=t.\u0275providers),Array.isArray(t)?_u(t,n):n(t)}var Iw=$({provide:String,useValue:$});function Dm(e){return e!==null&&typeof e=="object"&&Iw in e}function Cw(e){return!!(e&&e.useExisting)}function Sw(e){return!!(e&&e.useFactory)}function tr(e){return typeof e=="function"}function Em(e){return!!e.useClass}var ei=new b(""),Gs={},am={},Zl;function Xr(){return Zl===void 0&&(Zl=new Wo),Zl}var ce=class{},nr=class extends ce{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,tu(n,s=>this.processProvider(s)),this.records.set(vu,Yr(void 0,this)),o.has("environment")&&this.records.set(ce,Yr(void 0,this));let i=this.records.get(ei);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(yu,Te,{self:!0}))}retrieve(n,t){let r=er(t)||0;try{return this.get(n,Jn,r)}catch(o){if(qr(o))return o;throw o}}destroy(){$o(this),this._destroyed=!0;let n=S(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),S(n)}}onDestroy(n){return $o(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){$o(this);let t=Lt(this),r=Fe(void 0),o;try{return n()}finally{Lt(t),Fe(r)}}get(n,t=Jn,r){if($o(this),n.hasOwnProperty(sm))return n[sm](this);let o=er(r),i,s=Lt(this),a=Fe(void 0);try{if(!(o&4)){let l=this.records.get(n);if(l===void 0){let u=Nw(n)&&Xo(n);u&&this.injectableDefInScope(u)?l=Yr(eu(n),Gs):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l,o)}let c=o&2?Xr():this.parent;return t=o&8&&t===Jn?null:t,c.get(n,t)}catch(c){let l=vw(c);throw l===-200||l===-201?new _(l,null):c}finally{Fe(a),Lt(s)}}resolveInjectorInitializers(){let n=S(null),t=Lt(this),r=Fe(void 0),o;try{let i=this.get(Kr,Te,{self:!0});for(let s of i)s()}finally{Lt(t),Fe(r),S(n)}}toString(){return"R3Injector[...]"}processProvider(n){n=me(n);let t=tr(n)?n:me(n&&n.provide),r=Mw(n);if(!tr(n)&&n.multi===!0){let o=this.records.get(t);o||(o=Yr(void 0,Gs,!0),o.factory=()=>Jl(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t,r){let o=S(null);try{if(t.value===am)throw hu("");return t.value===Gs&&(t.value=am,t.value=t.factory(void 0,r)),typeof t.value=="object"&&t.value&&Aw(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{S(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;let t=me(n.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){let t=this._onDestroyHooks.indexOf(n);t!==-1&&this._onDestroyHooks.splice(t,1)}};function eu(e){let n=Xo(e),t=n!==null?n.factory:wn(e);if(t!==null)return t;if(e instanceof b)throw new _(-204,!1);if(e instanceof Function)return Tw(e);throw new _(-204,!1)}function Tw(e){if(e.length>0)throw new _(-204,!1);let t=hw(e);return t!==null?()=>t.factory(e):()=>new e}function Mw(e){if(Dm(e))return Yr(void 0,e.useValue);{let n=Du(e);return Yr(n,Gs)}}function Du(e,n,t){let r;if(tr(e)){let o=me(e);return wn(o)||eu(o)}else if(Dm(e))r=()=>me(e.useValue);else if(Sw(e))r=()=>e.useFactory(...Jl(e.deps||[]));else if(Cw(e))r=(o,i)=>C(me(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=me(e&&(e.useClass||e.provide));if(xw(e))r=()=>new o(...Jl(e.deps));else return wn(o)||eu(o)}return r}function $o(e){if(e.destroyed)throw new _(-205,!1)}function Yr(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function xw(e){return!!e.deps}function Aw(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Nw(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function tu(e,n){for(let t of e)Array.isArray(t)?tu(t,n):t&&cu(t)?tu(t.\u0275providers,n):n(t)}function Qr(e,n){let t;e instanceof nr?($o(e),t=e):t=new Ql(e);let r,o=Lt(t),i=Fe(void 0);try{return n()}finally{Lt(o),Fe(i)}}function Eu(){return hm()!==void 0||Ws()!=null}var bt=0,T=1,N=2,ge=3,rt=4,Le=5,or=6,Jr=7,le=8,Ze=9,_t=10,H=11,eo=12,wu=13,ir=14,je=15,Tn=16,sr=17,Vt=18,tn=19,Iu=20,en=21,sa=22,In=23,Ke=24,ar=25,nn=26,K=27,wm=1,Cu=6,Mn=7,ti=8,cr=9,oe=10;function rn(e){return Array.isArray(e)&&typeof e[wm]=="object"}function Dt(e){return Array.isArray(e)&&e[wm]===!0}function Su(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function to(e){return(e.flags&1)===1}function Et(e){return!!e.template}function no(e){return(e[N]&512)!==0}function lr(e){return(e[N]&256)===256}var Tu="svg",Im="math";function ot(e){for(;Array.isArray(e);)e=e[bt];return e}function Mu(e,n){return ot(n[e])}function Xe(e,n){return ot(n[e.index])}function aa(e,n){return e.data[n]}function ni(e,n){return e[n]}function ri(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function Qe(e,n){let t=n[e];return rn(t)?t:t[bt]}function Cm(e){return(e[N]&4)===4}function ca(e){return(e[N]&128)===128}function Sm(e){return Dt(e[ge])}function Je(e,n){return n==null?null:e[n]}function xu(e){e[sr]=0}function Au(e){e[N]&1024||(e[N]|=1024,ca(e)&&ur(e))}function Tm(e,n){for(;e>0;)n=n[ir],e--;return n}function oi(e){return!!(e[N]&9216||e[Ke]?.dirty)}function la(e){e[_t].changeDetectionScheduler?.notify(8),e[N]&64&&(e[N]|=1024),oi(e)&&ur(e)}function ur(e){e[_t].changeDetectionScheduler?.notify(0);let n=Cn(e);for(;n!==null&&!(n[N]&8192||(n[N]|=8192,!ca(n)));)n=Cn(n)}function Nu(e,n){if(lr(e))throw new _(911,!1);e[en]===null&&(e[en]=[]),e[en].push(n)}function Mm(e,n){if(e[en]===null)return;let t=e[en].indexOf(n);t!==-1&&e[en].splice(t,1)}function Cn(e){let n=e[ge];return Dt(n)?n[ge]:n}function Ru(e){return e[Jr]??=[]}function Ou(e){return e.cleanup??=[]}function xm(e,n,t,r){let o=Ru(n);o.push(t),e.firstCreatePass&&Ou(e).push(r,o.length-1)}var P={lFrame:Hm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var nu=!1;function Am(){return P.lFrame.elementDepthCount}function Nm(){P.lFrame.elementDepthCount++}function ku(){P.lFrame.elementDepthCount--}function ua(){return P.bindingsEnabled}function Fu(){return P.skipHydrationRootTNode!==null}function Pu(e){return P.skipHydrationRootTNode===e}function Lu(){P.skipHydrationRootTNode=null}function w(){return P.lFrame.lView}function U(){return P.lFrame.tView}function Rm(e){return P.lFrame.contextLView=e,e[le]}function Om(e){return P.lFrame.contextLView=null,e}function ue(){let e=ju();for(;e!==null&&e.type===64;)e=e.parent;return e}function ju(){return P.lFrame.currentTNode}function km(){let e=P.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function dr(e,n){let t=P.lFrame;t.currentTNode=e,t.isParent=n}function Bu(){return P.lFrame.isParent}function Vu(){P.lFrame.isParent=!1}function Hu(){return P.lFrame.contextLView}function Uu(){return nu}function Go(e){let n=nu;return nu=e,n}function ii(){let e=P.lFrame,n=e.bindingRootIndex;return n===-1&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function da(){return P.lFrame.bindingIndex}function Fm(e){return P.lFrame.bindingIndex=e}function wt(){return P.lFrame.bindingIndex++}function ro(e){let n=P.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function Pm(){return P.lFrame.inI18n}function Lm(e,n){let t=P.lFrame;t.bindingIndex=t.bindingRootIndex=e,fa(n)}function jm(){return P.lFrame.currentDirectiveIndex}function fa(e){P.lFrame.currentDirectiveIndex=e}function Bm(e){let n=P.