nestjs-logitron
Version:
Powerful logger module for Nodejs/ Nestjs, seamlessly integrating Pino and Winston for flexible logging with easy configuration.
3 lines • 153 kB
JavaScript
"use strict";var gf=Object.create;var Ir=Object.defineProperty;var Fo=Object.getOwnPropertyDescriptor;var Of=Object.getOwnPropertyNames;var qf=Object.getPrototypeOf,Sf=Object.prototype.hasOwnProperty;var l=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Pf=(r,t)=>{for(var e in t)Ir(r,e,{get:t[e],enumerable:!0})},To=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Of(t))!Sf.call(r,i)&&i!==e&&Ir(r,i,{get:()=>t[i],enumerable:!(n=Fo(t,i))||n.enumerable});return r};var xr=(r,t,e)=>(e=r!=null?gf(qf(r)):{},To(t||!r||!r.__esModule?Ir(e,"default",{value:r,enumerable:!0}):e,r)),wf=r=>To(Ir({},"__esModule",{value:!0}),r),B=(r,t,e,n)=>{for(var i=n>1?void 0:n?Fo(t,e):t,u=r.length-1,o;u>=0;u--)(o=r[u])&&(i=(n?o(t,e,i):o(i))||i);return n&&i&&Ir(t,e,i),i},Lo=(r,t)=>(e,n)=>t(e,n,r);var P=l(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isFunction=void 0;function Ff(r){return typeof r=="function"}et.isFunction=Ff});var ae=l(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.createErrorClass=void 0;function Tf(r){var t=function(n){Error.call(n),n.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}rt.createErrorClass=Tf});var du=l(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.UnsubscriptionError=void 0;var Lf=ae();tt.UnsubscriptionError=Lf.createErrorClass(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
`+e.map(function(n,i){return i+1+") "+n.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=e}})});var X=l(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.arrRemove=void 0;function Cf(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}nt.arrRemove=Cf});var C=l(x=>{"use strict";var Do=x&&x.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yo=x&&x.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Bo=x&&x.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(x,"__esModule",{value:!0});x.isSubscription=x.EMPTY_SUBSCRIPTION=x.Subscription=void 0;var Lr=P(),pu=du(),Go=X(),bu=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,n,i,u;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=Do(o),f=c.next();!f.done;f=c.next()){var s=f.value;s.remove(this)}}catch(m){t={error:m}}finally{try{f&&!f.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else o.remove(this);var v=this.initialTeardown;if(Lr.isFunction(v))try{v()}catch(m){u=m instanceof pu.UnsubscriptionError?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=Do(d),_=p.next();!_.done;_=p.next()){var b=_.value;try{Ko(b)}catch(m){u=u??[],m instanceof pu.UnsubscriptionError?u=Bo(Bo([],Yo(u)),Yo(m.errors)):u.push(m)}}}catch(m){n={error:m}}finally{try{_&&!_.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(u)throw new pu.UnsubscriptionError(u)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Ko(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Go.arrRemove(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&Go.arrRemove(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();x.Subscription=bu;x.EMPTY_SUBSCRIPTION=bu.EMPTY;function kf(r){return r instanceof bu||r&&"closed"in r&&Lr.isFunction(r.remove)&&Lr.isFunction(r.add)&&Lr.isFunction(r.unsubscribe)}x.isSubscription=kf;function Ko(r){Lr.isFunction(r)?r():r.unsubscribe()}});var De=l(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.config=void 0;it.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var mu=l(G=>{"use strict";var $o=G&&G.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Qo=G&&G.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(G,"__esModule",{value:!0});G.timeoutProvider=void 0;G.timeoutProvider={setTimeout:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=G.timeoutProvider.delegate;return i?.setTimeout?i.setTimeout.apply(i,Qo([r,t],$o(e))):setTimeout.apply(void 0,Qo([r,t],$o(e)))},clearTimeout:function(r){var t=G.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(r)},delegate:void 0}});var hu=l(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.reportUnhandledError=void 0;var Nf=De(),Rf=mu();function Wf(r){Rf.timeoutProvider.setTimeout(function(){var t=Nf.config.onUnhandledError;if(t)t(r);else throw r})}ut.reportUnhandledError=Wf});var A=l(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.noop=void 0;function Uf(){}ot.noop=Uf});var Jo=l(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.createNotification=K.nextNotification=K.errorNotification=K.COMPLETE_NOTIFICATION=void 0;K.COMPLETE_NOTIFICATION=function(){return at("C",void 0,void 0)}();function Vf(r){return at("E",void 0,r)}K.errorNotification=Vf;function zf(r){return at("N",r,void 0)}K.nextNotification=zf;function at(r,t,e){return{kind:r,value:t,error:e}}K.createNotification=at});var ct=l(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.captureError=Ye.errorContext=void 0;var Ho=De(),Ie=null;function Df(r){if(Ho.config.useDeprecatedSynchronousErrorHandling){var t=!Ie;if(t&&(Ie={errorThrown:!1,error:null}),r(),t){var e=Ie,n=e.errorThrown,i=e.error;if(Ie=null,n)throw i}}else r()}Ye.errorContext=Df;function Yf(r){Ho.config.useDeprecatedSynchronousErrorHandling&&Ie&&(Ie.errorThrown=!0,Ie.error=r)}Ye.captureError=Yf});var Be=l(V=>{"use strict";var ea=V&&V.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(V,"__esModule",{value:!0});V.EMPTY_OBSERVER=V.SafeSubscriber=V.Subscriber=void 0;var Bf=P(),Zo=C(),Ou=De(),Gf=hu(),Xo=A(),_u=Jo(),Kf=mu(),$f=ct(),ra=function(r){ea(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Zo.isSubscription(e)&&e.add(n)):n.destination=V.EMPTY_OBSERVER,n}return t.create=function(e,n,i){return new ta(e,n,i)},t.prototype.next=function(e){this.isStopped?gu(_u.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?gu(_u.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?gu(_u.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Zo.Subscription);V.Subscriber=ra;var Qf=Function.prototype.bind;function yu(r,t){return Qf.call(r,t)}var Jf=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){st(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){st(n)}else st(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){st(e)}},r}(),ta=function(r){ea(t,r);function t(e,n,i){var u=r.call(this)||this,o;if(Bf.isFunction(e)||!e)o={next:e??void 0,error:n??void 0,complete:i??void 0};else{var c;u&&Ou.config.useDeprecatedNextContext?(c=Object.create(e),c.unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&yu(e.next,c),error:e.error&&yu(e.error,c),complete:e.complete&&yu(e.complete,c)}):o=e}return u.destination=new Jf(o),u}return t}(ra);V.SafeSubscriber=ta;function st(r){Ou.config.useDeprecatedSynchronousErrorHandling?$f.captureError(r):Gf.reportUnhandledError(r)}function Hf(r){throw r}function gu(r,t){var e=Ou.config.onStoppedNotification;e&&Kf.timeoutProvider.setTimeout(function(){return e(r,t)})}V.EMPTY_OBSERVER={closed:!0,next:Xo.noop,error:Hf,complete:Xo.noop}});var Cr=l(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.observable=void 0;lt.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var E=l(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.identity=void 0;function Zf(r){return r}ft.identity=Zf});var kr=l(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.pipeFromArray=Ge.pipe=void 0;var Xf=E();function ev(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return na(r)}Ge.pipe=ev;function na(r){return r.length===0?Xf.identity:r.length===1?r[0]:function(e){return r.reduce(function(n,i){return i(n)},e)}}Ge.pipeFromArray=na});var w=l(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.Observable=void 0;var Su=Be(),rv=C(),tv=Cr(),nv=kr(),iv=De(),qu=P(),uv=ct(),ov=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var i=this,u=cv(t)?t:new Su.SafeSubscriber(t,e,n);return uv.errorContext(function(){var o=i,c=o.operator,f=o.source;u.add(c?c.call(u,f):f?i._subscribe(u):i._trySubscribe(u))}),u},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=ia(e),new e(function(i,u){var o=new Su.SafeSubscriber({next:function(c){try{t(c)}catch(f){u(f),o.unsubscribe()}},error:u,complete:i});n.subscribe(o)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[tv.observable]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nv.pipeFromArray(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=ia(t),new t(function(n,i){var u;e.subscribe(function(o){return u=o},function(o){return i(o)},function(){return n(u)})})},r.create=function(t){return new r(t)},r}();vt.Observable=ov;function ia(r){var t;return(t=r??iv.config.Promise)!==null&&t!==void 0?t:Promise}function av(r){return r&&qu.isFunction(r.next)&&qu.isFunction(r.error)&&qu.isFunction(r.complete)}function cv(r){return r&&r instanceof Su.Subscriber||av(r)&&rv.isSubscription(r)}});var h=l(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.operate=Ke.hasLift=void 0;var sv=P();function ua(r){return sv.isFunction(r?.lift)}Ke.hasLift=ua;function lv(r){return function(t){if(ua(t))return t.lift(function(e){try{return r(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}Ke.operate=lv});var g=l(ce=>{"use strict";var fv=ce&&ce.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.OperatorSubscriber=ce.createOperatorSubscriber=void 0;var vv=Be();function dv(r,t,e,n,i){return new oa(r,t,e,n,i)}ce.createOperatorSubscriber=dv;var oa=function(r){fv(t,r);function t(e,n,i,u,o,c){var f=r.call(this,e)||this;return f.onFinalize=o,f.shouldUnsubscribe=c,f._next=n?function(s){try{n(s)}catch(v){e.error(v)}}:r.prototype._next,f._error=u?function(s){try{u(s)}catch(v){e.error(v)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=i?function(){try{i()}catch(s){e.error(s)}finally{this.unsubscribe()}}:r.prototype._complete,f}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(vv.Subscriber);ce.OperatorSubscriber=oa});var Pu=l(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.refCount=void 0;var pv=h(),bv=g();function mv(){return pv.operate(function(r,t){var e=null;r._refCount++;var n=bv.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){e=null;return}var i=r._connection,u=e;e=null,i&&(!u||i===u)&&i.unsubscribe(),t.unsubscribe()});r.subscribe(n),n.closed||(e=r.connect())})}dt.refCount=mv});var Nr=l($e=>{"use strict";var hv=$e&&$e.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty($e,"__esModule",{value:!0});$e.ConnectableObservable=void 0;var _v=w(),aa=C(),yv=Pu(),gv=g(),Ov=h(),qv=function(r){hv(t,r);function t(e,n){var i=r.call(this)||this;return i.source=e,i.subjectFactory=n,i._subject=null,i._refCount=0,i._connection=null,Ov.hasLift(e)&&(i.lift=e.lift),i}return t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e?.unsubscribe()},t.prototype.connect=function(){var e=this,n=this._connection;if(!n){n=this._connection=new aa.Subscription;var i=this.getSubject();n.add(this.source.subscribe(gv.createOperatorSubscriber(i,void 0,function(){e._teardown(),i.complete()},function(u){e._teardown(),i.error(u)},function(){return e._teardown()}))),n.closed&&(this._connection=null,n=aa.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return yv.refCount()(this)},t}(_v.Observable);$e.ConnectableObservable=qv});var ca=l(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.performanceTimestampProvider=void 0;Rr.performanceTimestampProvider={now:function(){return(Rr.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var wu=l(z=>{"use strict";var sa=z&&z.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},la=z&&z.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(z,"__esModule",{value:!0});z.animationFrameProvider=void 0;var Sv=C();z.animationFrameProvider={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=z.animationFrameProvider.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var i=t(function(u){e=void 0,r(u)});return new Sv.Subscription(function(){return e?.(i)})},requestAnimationFrame:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=z.animationFrameProvider.delegate;return(e?.requestAnimationFrame||requestAnimationFrame).apply(void 0,la([],sa(r)))},cancelAnimationFrame:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=z.animationFrameProvider.delegate;return(e?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,la([],sa(r)))},delegate:void 0}});var da=l(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.animationFrames=void 0;var Pv=w(),wv=ca(),fa=wu();function jv(r){return r?va(r):Av}pt.animationFrames=jv;function va(r){return new Pv.Observable(function(t){var e=r||wv.performanceTimestampProvider,n=e.now(),i=0,u=function(){t.closed||(i=fa.animationFrameProvider.requestAnimationFrame(function(o){i=0;var c=e.now();t.next({timestamp:r?c:o,elapsed:c-n}),u()}))};return u(),function(){i&&fa.animationFrameProvider.cancelAnimationFrame(i)}})}var Av=va()});var ju=l(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.ObjectUnsubscribedError=void 0;var Ev=ae();bt.ObjectUnsubscribedError=Ev.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var M=l($=>{"use strict";var ba=$&&$.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mv=$&&$.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty($,"__esModule",{value:!0});$.AnonymousSubject=$.Subject=void 0;var pa=w(),Eu=C(),Iv=ju(),xv=X(),Au=ct(),ma=function(r){ba(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new Mu(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Iv.ObjectUnsubscribedError},t.prototype.next=function(e){var n=this;Au.errorContext(function(){var i,u;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=Mv(n.currentObservers),c=o.next();!c.done;c=o.next()){var f=c.value;f.next(e)}}catch(s){i={error:s}}finally{try{c&&!c.done&&(u=o.return)&&u.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var n=this;Au.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var i=n.observers;i.length;)i.shift().error(e)}})},t.prototype.complete=function(){var e=this;Au.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,i=this,u=i.hasError,o=i.isStopped,c=i.observers;return u||o?Eu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new Eu.Subscription(function(){n.currentObservers=null,xv.arrRemove(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n.thrownError,o=n.isStopped;i?e.error(u):o&&e.complete()},t.prototype.asObservable=function(){var e=new pa.Observable;return e.source=this,e},t.create=function(e,n){return new Mu(e,n)},t}(pa.Observable);$.Subject=ma;var Mu=function(r){ba(t,r);function t(e,n){var i=r.call(this)||this;return i.destination=e,i.source=n,i}return t.prototype.next=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,e)},t.prototype.error=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&i!==void 0?i:Eu.EMPTY_SUBSCRIPTION},t}(ma);$.AnonymousSubject=Mu});var Iu=l(Qe=>{"use strict";var Fv=Qe&&Qe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.BehaviorSubject=void 0;var Tv=M(),Lv=function(r){Fv(t,r);function t(e){var n=r.call(this)||this;return n._value=e,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var n=r.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},t.prototype.getValue=function(){var e=this,n=e.hasError,i=e.thrownError,u=e._value;if(n)throw i;return this._throwIfClosed(),u},t.prototype.next=function(e){r.prototype.next.call(this,this._value=e)},t}(Tv.Subject);Qe.BehaviorSubject=Lv});var mt=l(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.dateTimestampProvider=void 0;Wr.dateTimestampProvider={now:function(){return(Wr.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var ht=l(Je=>{"use strict";var Cv=Je&&Je.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Je,"__esModule",{value:!0});Je.ReplaySubject=void 0;var kv=M(),Nv=mt(),Rv=function(r){Cv(t,r);function t(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nv.dateTimestampProvider);var u=r.call(this)||this;return u._bufferSize=e,u._windowTime=n,u._timestampProvider=i,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=n===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,n),u}return t.prototype.next=function(e){var n=this,i=n.isStopped,u=n._buffer,o=n._infiniteTimeWindow,c=n._timestampProvider,f=n._windowTime;i||(u.push(e),!o&&u.push(c.now()+f)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),i=this,u=i._infiniteTimeWindow,o=i._buffer,c=o.slice(),f=0;f<c.length&&!e.closed;f+=u?1:2)e.next(c[f]);return this._checkFinalizedStatuses(e),n},t.prototype._trimBuffer=function(){var e=this,n=e._bufferSize,i=e._timestampProvider,u=e._buffer,o=e._infiniteTimeWindow,c=(o?1:2)*n;if(n<1/0&&c<u.length&&u.splice(0,u.length-c),!o){for(var f=i.now(),s=0,v=1;v<u.length&&u[v]<=f;v+=2)s=v;s&&u.splice(0,s+1)}},t}(kv.Subject);Je.ReplaySubject=Rv});var _t=l(He=>{"use strict";var Wv=He&&He.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(He,"__esModule",{value:!0});He.AsyncSubject=void 0;var Uv=M(),Vv=function(r){Wv(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n._hasValue,o=n._value,c=n.thrownError,f=n.isStopped,s=n._isComplete;i?e.error(c):(f||s)&&(u&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var e=this,n=e._hasValue,i=e._value,u=e._isComplete;u||(this._isComplete=!0,n&&r.prototype.next.call(this,i),r.prototype.complete.call(this))},t}(Uv.Subject);He.AsyncSubject=Vv});var ha=l(Ze=>{"use strict";var zv=Ze&&Ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.Action=void 0;var Dv=C(),Yv=function(r){zv(t,r);function t(e,n){return r.call(this)||this}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),this},t}(Dv.Subscription);Ze.Action=Yv});var ga=l(Q=>{"use strict";var _a=Q&&Q.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},ya=Q&&Q.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(Q,"__esModule",{value:!0});Q.intervalProvider=void 0;Q.intervalProvider={setInterval:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=Q.intervalProvider.delegate;return i?.setInterval?i.setInterval.apply(i,ya([r,t],_a(e))):setInterval.apply(void 0,ya([r,t],_a(e)))},clearInterval:function(r){var t=Q.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(r)},delegate:void 0}});var er=l(Xe=>{"use strict";var Bv=Xe&&Xe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AsyncAction=void 0;var Gv=ha(),Oa=ga(),Kv=X(),$v=function(r){Bv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(e,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=e;var u=this.id,o=this.scheduler;return u!=null&&(this.id=this.recycleAsyncId(o,u,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,n),this},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),Oa.intervalProvider.setInterval(e.flush.bind(e,this),i)},t.prototype.recycleAsyncId=function(e,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Oa.intervalProvider.clearInterval(n)},t.prototype.execute=function(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,n){var i=!1,u;try{this.work(e)}catch(o){i=!0,u=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),u},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,n=e.id,i=e.scheduler,u=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Kv.arrRemove(u,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(Gv.Action);Xe.AsyncAction=$v});var Sa=l(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.TestTools=rr.Immediate=void 0;var Qv=1,xu,yt={};function qa(r){return r in yt?(delete yt[r],!0):!1}rr.Immediate={setImmediate:function(r){var t=Qv++;return yt[t]=!0,xu||(xu=Promise.resolve()),xu.then(function(){return qa(t)&&r()}),t},clearImmediate:function(r){qa(r)}};rr.TestTools={pending:function(){return Object.keys(yt).length}}});var wa=l(J=>{"use strict";var Jv=J&&J.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Hv=J&&J.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(J,"__esModule",{value:!0});J.immediateProvider=void 0;var Pa=Sa(),Zv=Pa.Immediate.setImmediate,Xv=Pa.Immediate.clearImmediate;J.immediateProvider={setImmediate:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=J.immediateProvider.delegate;return(e?.setImmediate||Zv).apply(void 0,Hv([],Jv(r)))},clearImmediate:function(r){var t=J.immediateProvider.delegate;return(t?.clearImmediate||Xv)(r)},delegate:void 0}});var Aa=l(tr=>{"use strict";var ed=tr&&tr.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(tr,"__esModule",{value:!0});tr.AsapAction=void 0;var rd=er(),ja=wa(),td=function(r){ed(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=ja.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&(ja.immediateProvider.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},t}(rd.AsyncAction);tr.AsapAction=td});var Fu=l(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.Scheduler=void 0;var nd=mt(),id=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,n){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},r.now=nd.dateTimestampProvider.now,r}();gt.Scheduler=id});var ir=l(nr=>{"use strict";var ud=nr&&nr.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.AsyncScheduler=void 0;var Ea=Fu(),od=function(r){ud(t,r);function t(e,n){n===void 0&&(n=Ea.Scheduler.now);var i=r.call(this,e,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(e){var n=this.actions;if(this._active){n.push(e);return}var i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}},t}(Ea.Scheduler);nr.AsyncScheduler=od});var Ma=l(ur=>{"use strict";var ad=ur&&ur.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ur,"__esModule",{value:!0});ur.AsapScheduler=void 0;var cd=ir(),sd=function(r){ad(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(cd.AsyncScheduler);ur.AsapScheduler=sd});var Ia=l(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.asap=xe.asapScheduler=void 0;var ld=Aa(),fd=Ma();xe.asapScheduler=new fd.AsapScheduler(ld.AsapAction);xe.asap=xe.asapScheduler});var F=l(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.async=Fe.asyncScheduler=void 0;var vd=er(),dd=ir();Fe.asyncScheduler=new dd.AsyncScheduler(vd.AsyncAction);Fe.async=Fe.asyncScheduler});var xa=l(or=>{"use strict";var pd=or&&or.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(or,"__esModule",{value:!0});or.QueueAction=void 0;var bd=er(),md=function(r){pd(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,n){return n>0||this.closed?r.prototype.execute.call(this,e,n):this._execute(e,n)},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.flush(this),0)},t}(bd.AsyncAction);or.QueueAction=md});var Fa=l(ar=>{"use strict";var hd=ar&&ar.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ar,"__esModule",{value:!0});ar.QueueScheduler=void 0;var _d=ir(),yd=function(r){hd(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(_d.AsyncScheduler);ar.QueueScheduler=yd});var Ta=l(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.queue=Te.queueScheduler=void 0;var gd=xa(),Od=Fa();Te.queueScheduler=new Od.QueueScheduler(gd.QueueAction);Te.queue=Te.queueScheduler});var Ca=l(cr=>{"use strict";var qd=cr&&cr.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(cr,"__esModule",{value:!0});cr.AnimationFrameAction=void 0;var Sd=er(),La=wu(),Pd=function(r){qd(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=La.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&n===e._scheduled&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&(La.animationFrameProvider.cancelAnimationFrame(n),e._scheduled=void 0)},t}(Sd.AsyncAction);cr.AnimationFrameAction=Pd});var ka=l(sr=>{"use strict";var wd=sr&&sr.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(sr,"__esModule",{value:!0});sr.AnimationFrameScheduler=void 0;var jd=ir(),Ad=function(r){wd(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n;e?n=e.id:(n=this._scheduled,this._scheduled=void 0);var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(jd.AsyncScheduler);sr.AnimationFrameScheduler=Ad});var Na=l(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.animationFrame=Le.animationFrameScheduler=void 0;var Ed=Ca(),Md=ka();Le.animationFrameScheduler=new Md.AnimationFrameScheduler(Ed.AnimationFrameAction);Le.animationFrame=Le.animationFrameScheduler});var Ua=l(se=>{"use strict";var Ra=se&&se.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(se,"__esModule",{value:!0});se.VirtualAction=se.VirtualTimeScheduler=void 0;var Id=er(),xd=C(),Fd=ir(),Td=function(r){Ra(t,r);function t(e,n){e===void 0&&(e=Wa),n===void 0&&(n=1/0);var i=r.call(this,e,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var e=this,n=e.actions,i=e.maxFrames,u,o;(o=n[0])&&o.delay<=i&&(n.shift(),this.frame=o.delay,!(u=o.execute(o.state,o.delay))););if(u){for(;o=n.shift();)o.unsubscribe();throw u}},t.frameTimeFactor=10,t}(Fd.AsyncScheduler);se.VirtualTimeScheduler=Td;var Wa=function(r){Ra(t,r);function t(e,n,i){i===void 0&&(i=e.index+=1);var u=r.call(this,e,n)||this;return u.scheduler=e,u.work=n,u.index=i,u.active=!0,u.index=e.index=i,u}return t.prototype.schedule=function(e,n){if(n===void 0&&(n=0),Number.isFinite(n)){if(!this.id)return r.prototype.schedule.call(this,e,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,n)}else return xd.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,i){i===void 0&&(i=0),this.delay=e.frame+i;var u=e.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,n,i){i===void 0&&(i=0)},t.prototype._execute=function(e,n){if(this.active===!0)return r.prototype._execute.call(this,e,n)},t.sortActions=function(e,n){return e.delay===n.delay?e.index===n.index?0:e.index>n.index?1:-1:e.delay>n.delay?1:-1},t}(Id.AsyncAction);se.VirtualAction=Wa});var D=l(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.empty=Ce.EMPTY=void 0;var Va=w();Ce.EMPTY=new Va.Observable(function(r){return r.complete()});function Ld(r){return r?Cd(r):Ce.EMPTY}Ce.empty=Ld;function Cd(r){return new Va.Observable(function(t){return r.schedule(function(){return t.complete()})})}});var Ur=l(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.isScheduler=void 0;var kd=P();function Nd(r){return r&&kd.isFunction(r.schedule)}Ot.isScheduler=Nd});var T=l(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.popNumber=le.popScheduler=le.popResultSelector=void 0;var Rd=P(),Wd=Ur();function Tu(r){return r[r.length-1]}function Ud(r){return Rd.isFunction(Tu(r))?r.pop():void 0}le.popResultSelector=Ud;function Vd(r){return Wd.isScheduler(Tu(r))?r.pop():void 0}le.popScheduler=Vd;function zd(r,t){return typeof Tu(r)=="number"?r.pop():t}le.popNumber=zd});var St=l(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.isArrayLike=void 0;qt.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var Lu=l(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.isPromise=void 0;var Dd=P();function Yd(r){return Dd.isFunction(r?.then)}Pt.isPromise=Yd});var Cu=l(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.isInteropObservable=void 0;var Bd=Cr(),Gd=P();function Kd(r){return Gd.isFunction(r[Bd.observable])}wt.isInteropObservable=Kd});var ku=l(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.isAsyncIterable=void 0;var $d=P();function Qd(r){return Symbol.asyncIterator&&$d.isFunction(r?.[Symbol.asyncIterator])}jt.isAsyncIterable=Qd});var Nu=l(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.createInvalidObservableTypeError=void 0;function Jd(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}At.createInvalidObservableTypeError=Jd});var Ru=l(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});lr.iterator=lr.getSymbolIterator=void 0;function za(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}lr.getSymbolIterator=za;lr.iterator=za()});var Wu=l(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.isIterable=void 0;var Hd=Ru(),Zd=P();function Xd(r){return Zd.isFunction(r?.[Hd.iterator])}Et.isIterable=Xd});var Mt=l(W=>{"use strict";var ep=W&&W.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(s){return function(v){return f([s,v])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=s[0]&2?i.return:s[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,s[1])).done)return u;switch(i=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,i=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){e.label=s[1];break}if(s[0]===6&&e.label<u[1]){e.label=u[1],u=s;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(s);break}u[2]&&e.ops.pop(),e.trys.pop();continue}s=t.call(r,e)}catch(v){s=[6,v],i=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},fr=W&&W.__await||function(r){return this instanceof fr?(this.v=r,this):new fr(r)},rp=W&&W.__asyncGenerator||function(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,u=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(p){n[p]&&(i[p]=function(_){return new Promise(function(b,m){u.push([p,_,b,m])>1||c(p,_)})})}function c(p,_){try{f(n[p](_))}catch(b){d(u[0][3],b)}}function f(p){p.value instanceof fr?Promise.resolve(p.value.v).then(s,v):d(u[0][2],p)}function s(p){c("next",p)}function v(p){c("throw",p)}function d(p,_){p(_),u.shift(),u.length&&c(u[0][0],u[0][1])}};Object.defineProperty(W,"__esModule",{value:!0});W.isReadableStreamLike=W.readableStreamLikeToAsyncGenerator=void 0;var tp=P();function np(r){return rp(this,arguments,function(){var e,n,i,u;return ep(this,function(o){switch(o.label){case 0:e=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,fr(e.read())];case 3:return n=o.sent(),i=n.value,u=n.done,u?[4,fr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,fr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}W.readableStreamLikeToAsyncGenerator=np;function ip(r){return tp.isFunction(r?.getReader)}W.isReadableStreamLike=ip});var q=l(j=>{"use strict";var up=j&&j.__awaiter||function(r,t,e,n){function i(u){return u instanceof e?u:new e(function(o){o(u)})}return new(e||(e=Promise))(function(u,o){function c(v){try{s(n.next(v))}catch(d){o(d)}}function f(v){try{s(n.throw(v))}catch(d){o(d)}}function s(v){v.done?u(v.value):i(v.value).then(c,f)}s((n=n.apply(r,t||[])).next())})},op=j&&j.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(s){return function(v){return f([s,v])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=s[0]&2?i.return:s[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,s[1])).done)return u;switch(i=0,u&&(s=[s[0]&2,u.value]),s[0]){case 0:case 1:u=s;break;case 4:return e.label++,{value:s[1],done:!1};case 5:e.label++,i=s[1],s=[0];continue;case 7:s=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){e=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){e.label=s[1];break}if(s[0]===6&&e.label<u[1]){e.label=u[1],u=s;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(s);break}u[2]&&e.ops.pop(),e.trys.pop();continue}s=t.call(r,e)}catch(v){s=[6,v],i=0}finally{n=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},ap=j&&j.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof Uu=="function"?Uu(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(u){e[u]=r[u]&&function(o){return new Promise(function(c,f){o=r[u](o),i(c,f,o.done,o.value)})}}function i(u,o,c,f){Promise.resolve(f).then(function(s){u({value:s,done:c})},o)}},Uu=j&&j.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(j,"__esModule",{value:!0});j.fromReadableStreamLike=j.fromAsyncIterable=j.fromIterable=j.fromPromise=j.fromArrayLike=j.fromInteropObservable=j.innerFrom=void 0;var cp=St(),sp=Lu(),vr=w(),