UNPKG

grid-engine

Version:

Phaser3 plugin for grid based movement on a 2D game board.

3 lines 356 kB
var pA=Object.create;var Ia=Object.defineProperty;var dA=Object.getOwnPropertyDescriptor;var vA=Object.getOwnPropertyNames;var mA=Object.getPrototypeOf,gA=Object.prototype.hasOwnProperty;var b=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),yA=(n,e)=>{for(var r in e)Ia(n,r,{get:e[r],enumerable:!0})},Cg=(n,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of vA(e))!gA.call(n,a)&&a!==r&&Ia(n,a,{get:()=>e[a],enumerable:!(t=dA(e,a))||t.enumerable});return n};var Ie=(n,e,r)=>(r=n!=null?pA(mA(n)):{},Cg(e||!n||!n.__esModule?Ia(r,"default",{value:n,enumerable:!0}):r,n)),bA=n=>Cg(Ia({},"__esModule",{value:!0}),n);var se=b(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.isFunction=void 0;function TA(n){return typeof n=="function"}Da.isFunction=TA});var bt=b(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.createErrorClass=void 0;function wA(n){var e=function(t){Error.call(t),t.stack=new Error().stack},r=n(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}ka.createErrorClass=wA});var th=b(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.UnsubscriptionError=void 0;var SA=bt();Ra.UnsubscriptionError=SA.createErrorClass(function(n){return function(r){n(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(t,a){return a+1+") "+t.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=r}})});var Jr=b(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.arrRemove=void 0;function CA(n,e){if(n){var r=n.indexOf(e);0<=r&&n.splice(r,1)}}Va.arrRemove=CA});var ir=b(ze=>{"use strict";var Lg=ze&&ze.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&n[e],t=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Mg=ze&&ze.__read||function(n,e){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var t=r.call(n),a,s=[],c;try{for(;(e===void 0||e-- >0)&&!(a=t.next()).done;)s.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return s},qg=ze&&ze.__spreadArray||function(n,e){for(var r=0,t=e.length,a=n.length;r<t;r++,a++)n[a]=e[r];return n};Object.defineProperty(ze,"__esModule",{value:!0});ze.isSubscription=ze.EMPTY_SUBSCRIPTION=ze.Subscription=void 0;var ho=se(),ih=th(),xg=Jr(),nh=(function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,r,t,a,s;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=Lg(c),p=f.next();!p.done;p=f.next()){var m=p.value;m.remove(this)}}catch(F){e={error:F}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(e)throw e.error}}else c.remove(this);var O=this.initialTeardown;if(ho.isFunction(O))try{O()}catch(F){s=F instanceof ih.UnsubscriptionError?F.errors:[F]}var A=this._finalizers;if(A){this._finalizers=null;try{for(var q=Lg(A),j=q.next();!j.done;j=q.next()){var I=j.value;try{jg(I)}catch(F){s=s??[],F instanceof ih.UnsubscriptionError?s=qg(qg([],Mg(s)),Mg(F.errors)):s.push(F)}}}catch(F){t={error:F}}finally{try{j&&!j.done&&(a=q.return)&&a.call(q)}finally{if(t)throw t.error}}}if(s)throw new ih.UnsubscriptionError(s)}},n.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)jg(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},n.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},n.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},n.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&xg.arrRemove(r,e)},n.prototype.remove=function(e){var r=this._finalizers;r&&xg.arrRemove(r,e),e instanceof n&&e._removeParent(this)},n.EMPTY=(function(){var e=new n;return e.closed=!0,e})(),n})();ze.Subscription=nh;ze.EMPTY_SUBSCRIPTION=nh.EMPTY;function AA(n){return n instanceof nh||n&&"closed"in n&&ho.isFunction(n.remove)&&ho.isFunction(n.add)&&ho.isFunction(n.unsubscribe)}ze.isSubscription=AA;function jg(n){ho.isFunction(n)?n():n.unsubscribe()}});var Di=b(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.config=void 0;Na.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var oh=b(Mr=>{"use strict";var Ig=Mr&&Mr.__read||function(n,e){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var t=r.call(n),a,s=[],c;try{for(;(e===void 0||e-- >0)&&!(a=t.next()).done;)s.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return s},Fg=Mr&&Mr.__spreadArray||function(n,e){for(var r=0,t=e.length,a=n.length;r<t;r++,a++)n[a]=e[r];return n};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.timeoutProvider=void 0;Mr.timeoutProvider={setTimeout:function(n,e){for(var r=[],t=2;t<arguments.length;t++)r[t-2]=arguments[t];var a=Mr.timeoutProvider.delegate;return a?.setTimeout?a.setTimeout.apply(a,Fg([n,e],Ig(r))):setTimeout.apply(void 0,Fg([n,e],Ig(r)))},clearTimeout:function(n){var e=Mr.timeoutProvider.delegate;return(e?.clearTimeout||clearTimeout)(n)},delegate:void 0}});var ah=b(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.reportUnhandledError=void 0;var EA=Di(),LA=oh();function MA(n){LA.timeoutProvider.setTimeout(function(){var e=EA.config.onUnhandledError;if(e)e(n);else throw n})}Wa.reportUnhandledError=MA});var Le=b(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.noop=void 0;function qA(){}Ua.noop=qA});var Dg=b(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.createNotification=qr.nextNotification=qr.errorNotification=qr.COMPLETE_NOTIFICATION=void 0;qr.COMPLETE_NOTIFICATION=(function(){return Ga("C",void 0,void 0)})();function xA(n){return Ga("E",void 0,n)}qr.errorNotification=xA;function jA(n){return Ga("N",n,void 0)}qr.nextNotification=jA;function Ga(n,e,r){return{kind:n,value:e,error:r}}qr.createNotification=Ga});var Ba=b(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.captureError=ki.errorContext=void 0;var kg=Di(),oi=null;function IA(n){if(kg.config.useDeprecatedSynchronousErrorHandling){var e=!oi;if(e&&(oi={errorThrown:!1,error:null}),n(),e){var r=oi,t=r.errorThrown,a=r.error;if(oi=null,t)throw a}}else n()}ki.errorContext=IA;function FA(n){kg.config.useDeprecatedSynchronousErrorHandling&&oi&&(oi.errorThrown=!0,oi.error=n)}ki.captureError=FA});var Ri=b(_r=>{"use strict";var Ng=_r&&_r.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(_r,"__esModule",{value:!0});_r.EMPTY_OBSERVER=_r.SafeSubscriber=_r.Subscriber=void 0;var DA=se(),Rg=ir(),lh=Di(),kA=ah(),Vg=Le(),sh=Dg(),RA=oh(),VA=Ba(),Wg=(function(n){Ng(e,n);function e(r){var t=n.call(this)||this;return t.isStopped=!1,r?(t.destination=r,Rg.isSubscription(r)&&r.add(t)):t.destination=_r.EMPTY_OBSERVER,t}return e.create=function(r,t,a){return new Ug(r,t,a)},e.prototype.next=function(r){this.isStopped?ch(sh.nextNotification(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ch(sh.errorNotification(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ch(sh.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(Rg.Subscription);_r.Subscriber=Wg;var NA=Function.prototype.bind;function uh(n,e){return NA.call(n,e)}var WA=(function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(t){Ha(t)}},n.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(t){Ha(t)}else Ha(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Ha(r)}},n})(),Ug=(function(n){Ng(e,n);function e(r,t,a){var s=n.call(this)||this,c;if(DA.isFunction(r)||!r)c={next:r??void 0,error:t??void 0,complete:a??void 0};else{var f;s&&lh.config.useDeprecatedNextContext?(f=Object.create(r),f.unsubscribe=function(){return s.unsubscribe()},c={next:r.next&&uh(r.next,f),error:r.error&&uh(r.error,f),complete:r.complete&&uh(r.complete,f)}):c=r}return s.destination=new WA(c),s}return e})(Wg);_r.SafeSubscriber=Ug;function Ha(n){lh.config.useDeprecatedSynchronousErrorHandling?VA.captureError(n):kA.reportUnhandledError(n)}function UA(n){throw n}function ch(n,e){var r=lh.config.onStoppedNotification;r&&RA.timeoutProvider.setTimeout(function(){return r(n,e)})}_r.EMPTY_OBSERVER={closed:!0,next:Vg.noop,error:UA,complete:Vg.noop}});var po=b(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.observable=void 0;za.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});var Me=b($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.identity=void 0;function GA(n){return n}$a.identity=GA});var vo=b(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.pipeFromArray=Vi.pipe=void 0;var BA=Me();function HA(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Gg(n)}Vi.pipe=HA;function Gg(n){return n.length===0?BA.identity:n.length===1?n[0]:function(r){return n.reduce(function(t,a){return a(t)},r)}}Vi.pipeFromArray=Gg});var ce=b(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.Observable=void 0;var hh=Ri(),zA=ir(),$A=po(),YA=vo(),QA=Di(),fh=se(),XA=Ba(),KA=(function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var r=new n;return r.source=this,r.operator=e,r},n.prototype.subscribe=function(e,r,t){var a=this,s=ZA(e)?e:new hh.SafeSubscriber(e,r,t);return XA.errorContext(function(){var c=a,f=c.operator,p=c.source;s.add(f?f.call(s,p):p?a._subscribe(s):a._trySubscribe(s))}),s},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},n.prototype.forEach=function(e,r){var t=this;return r=Bg(r),new r(function(a,s){var c=new hh.SafeSubscriber({next:function(f){try{e(f)}catch(p){s(p),c.unsubscribe()}},error:s,complete:a});t.subscribe(c)})},n.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},n.prototype[$A.observable]=function(){return this},n.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return YA.pipeFromArray(e)(this)},n.prototype.toPromise=function(e){var r=this;return e=Bg(e),new e(function(t,a){var s;r.subscribe(function(c){return s=c},function(c){return a(c)},function(){return t(s)})})},n.create=function(e){return new n(e)},n})();Ya.Observable=KA;function Bg(n){var e;return(e=n??QA.config.Promise)!==null&&e!==void 0?e:Promise}function JA(n){return n&&fh.isFunction(n.next)&&fh.isFunction(n.error)&&fh.isFunction(n.complete)}function ZA(n){return n&&n instanceof hh.Subscriber||JA(n)&&zA.isSubscription(n)}});var R=b(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.operate=Ni.hasLift=void 0;var eE=se();function Hg(n){return eE.isFunction(n?.lift)}Ni.hasLift=Hg;function rE(n){return function(e){if(Hg(e))return e.lift(function(r){try{return n(r,this)}catch(t){this.error(t)}});throw new TypeError("Unable to lift unknown Observable type")}}Ni.operate=rE});var W=b(_t=>{"use strict";var tE=_t&&_t.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(_t,"__esModule",{value:!0});_t.OperatorSubscriber=_t.createOperatorSubscriber=void 0;var iE=Ri();function nE(n,e,r,t,a){return new zg(n,e,r,t,a)}_t.createOperatorSubscriber=nE;var zg=(function(n){tE(e,n);function e(r,t,a,s,c,f){var p=n.call(this,r)||this;return p.onFinalize=c,p.shouldUnsubscribe=f,p._next=t?function(m){try{t(m)}catch(O){r.error(O)}}:n.prototype._next,p._error=s?function(m){try{s(m)}catch(O){r.error(O)}finally{this.unsubscribe()}}:n.prototype._error,p._complete=a?function(){try{a()}catch(m){r.error(m)}finally{this.unsubscribe()}}:n.prototype._complete,p}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var t=this.closed;n.prototype.unsubscribe.call(this),!t&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e})(iE.Subscriber);_t.OperatorSubscriber=zg});var Xa=b(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.refCount=void 0;var oE=R(),aE=W();function sE(){return oE.operate(function(n,e){var r=null;n._refCount++;var t=aE.createOperatorSubscriber(e,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){r=null;return}var a=n._connection,s=r;r=null,a&&(!s||a===s)&&a.unsubscribe(),e.unsubscribe()});n.subscribe(t),t.closed||(r=n.connect())})}Qa.refCount=sE});var mo=b(Wi=>{"use strict";var uE=Wi&&Wi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Wi,"__esModule",{value:!0});Wi.ConnectableObservable=void 0;var cE=ce(),$g=ir(),lE=Xa(),fE=W(),hE=R(),pE=(function(n){uE(e,n);function e(r,t){var a=n.call(this)||this;return a.source=r,a.subjectFactory=t,a._subject=null,a._refCount=0,a._connection=null,hE.hasLift(r)&&(a.lift=r.lift),a}return e.prototype._subscribe=function(r){return this.getSubject().subscribe(r)},e.prototype.getSubject=function(){var r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var r=this._connection;this._subject=this._connection=null,r?.unsubscribe()},e.prototype.connect=function(){var r=this,t=this._connection;if(!t){t=this._connection=new $g.Subscription;var a=this.getSubject();t.add(this.source.subscribe(fE.createOperatorSubscriber(a,void 0,function(){r._teardown(),a.complete()},function(s){r._teardown(),a.error(s)},function(){return r._teardown()}))),t.closed&&(this._connection=null,t=$g.Subscription.EMPTY)}return t},e.prototype.refCount=function(){return lE.refCount()(this)},e})(cE.Observable);Wi.ConnectableObservable=pE});var Yg=b(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.performanceTimestampProvider=void 0;go.performanceTimestampProvider={now:function(){return(go.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var ph=b(Pr=>{"use strict";var Qg=Pr&&Pr.__read||function(n,e){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var t=r.call(n),a,s=[],c;try{for(;(e===void 0||e-- >0)&&!(a=t.next()).done;)s.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return s},Xg=Pr&&Pr.__spreadArray||function(n,e){for(var r=0,t=e.length,a=n.length;r<t;r++,a++)n[a]=e[r];return n};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.animationFrameProvider=void 0;var dE=ir();Pr.animationFrameProvider={schedule:function(n){var e=requestAnimationFrame,r=cancelAnimationFrame,t=Pr.animationFrameProvider.delegate;t&&(e=t.requestAnimationFrame,r=t.cancelAnimationFrame);var a=e(function(s){r=void 0,n(s)});return new dE.Subscription(function(){return r?.(a)})},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=Pr.animationFrameProvider.delegate;return(r?.requestAnimationFrame||requestAnimationFrame).apply(void 0,Xg([],Qg(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=Pr.animationFrameProvider.delegate;return(r?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,Xg([],Qg(n)))},delegate:void 0}});var Zg=b(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.animationFrames=void 0;var vE=ce(),mE=Yg(),Kg=ph();function gE(n){return n?Jg(n):yE}Ka.animationFrames=gE;function Jg(n){return new vE.Observable(function(e){var r=n||mE.performanceTimestampProvider,t=r.now(),a=0,s=function(){e.closed||(a=Kg.animationFrameProvider.requestAnimationFrame(function(c){a=0;var f=r.now();e.next({timestamp:n?f:c,elapsed:f-t}),s()}))};return s(),function(){a&&Kg.animationFrameProvider.cancelAnimationFrame(a)}})}var yE=Jg()});var dh=b(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.ObjectUnsubscribedError=void 0;var bE=bt();Ja.ObjectUnsubscribedError=bE.createErrorClass(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var qe=b(xr=>{"use strict";var ry=xr&&xr.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})(),_E=xr&&xr.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&n[e],t=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(xr,"__esModule",{value:!0});xr.AnonymousSubject=xr.Subject=void 0;var ey=ce(),mh=ir(),PE=dh(),OE=Jr(),vh=Ba(),ty=(function(n){ry(e,n);function e(){var r=n.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var t=new gh(this,this);return t.operator=r,t},e.prototype._throwIfClosed=function(){if(this.closed)throw new PE.ObjectUnsubscribedError},e.prototype.next=function(r){var t=this;vh.errorContext(function(){var a,s;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var c=_E(t.currentObservers),f=c.next();!f.done;f=c.next()){var p=f.value;p.next(r)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}}})},e.prototype.error=function(r){var t=this;vh.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=r;for(var a=t.observers;a.length;)a.shift().error(r)}})},e.prototype.complete=function(){var r=this;vh.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var t=r.observers;t.length;)t.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var t=this,a=this,s=a.hasError,c=a.isStopped,f=a.observers;return s||c?mh.EMPTY_SUBSCRIPTION:(this.currentObservers=null,f.push(r),new mh.Subscription(function(){t.currentObservers=null,OE.arrRemove(f,r)}))},e.prototype._checkFinalizedStatuses=function(r){var t=this,a=t.hasError,s=t.thrownError,c=t.isStopped;a?r.error(s):c&&r.complete()},e.prototype.asObservable=function(){var r=new ey.Observable;return r.source=this,r},e.create=function(r,t){return new gh(r,t)},e})(ey.Observable);xr.Subject=ty;var gh=(function(n){ry(e,n);function e(r,t){var a=n.call(this)||this;return a.destination=r,a.source=t,a}return e.prototype.next=function(r){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.next)===null||a===void 0||a.call(t,r)},e.prototype.error=function(r){var t,a;(a=(t=this.destination)===null||t===void 0?void 0:t.error)===null||a===void 0||a.call(t,r)},e.prototype.complete=function(){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||t===void 0||t.call(r)},e.prototype._subscribe=function(r){var t,a;return(a=(t=this.source)===null||t===void 0?void 0:t.subscribe(r))!==null&&a!==void 0?a:mh.EMPTY_SUBSCRIPTION},e})(ty);xr.AnonymousSubject=gh});var yh=b(Ui=>{"use strict";var TE=Ui&&Ui.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.BehaviorSubject=void 0;var wE=qe(),SE=(function(n){TE(e,n);function e(r){var t=n.call(this)||this;return t._value=r,t}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var t=n.prototype._subscribe.call(this,r);return!t.closed&&r.next(this._value),t},e.prototype.getValue=function(){var r=this,t=r.hasError,a=r.thrownError,s=r._value;if(t)throw a;return this._throwIfClosed(),s},e.prototype.next=function(r){n.prototype.next.call(this,this._value=r)},e})(wE.Subject);Ui.BehaviorSubject=SE});var Za=b(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.dateTimestampProvider=void 0;yo.dateTimestampProvider={now:function(){return(yo.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var es=b(Gi=>{"use strict";var CE=Gi&&Gi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.ReplaySubject=void 0;var AE=qe(),EE=Za(),LE=(function(n){CE(e,n);function e(r,t,a){r===void 0&&(r=1/0),t===void 0&&(t=1/0),a===void 0&&(a=EE.dateTimestampProvider);var s=n.call(this)||this;return s._bufferSize=r,s._windowTime=t,s._timestampProvider=a,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=t===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,t),s}return e.prototype.next=function(r){var t=this,a=t.isStopped,s=t._buffer,c=t._infiniteTimeWindow,f=t._timestampProvider,p=t._windowTime;a||(s.push(r),!c&&s.push(f.now()+p)),this._trimBuffer(),n.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(r),a=this,s=a._infiniteTimeWindow,c=a._buffer,f=c.slice(),p=0;p<f.length&&!r.closed;p+=s?1:2)r.next(f[p]);return this._checkFinalizedStatuses(r),t},e.prototype._trimBuffer=function(){var r=this,t=r._bufferSize,a=r._timestampProvider,s=r._buffer,c=r._infiniteTimeWindow,f=(c?1:2)*t;if(t<1/0&&f<s.length&&s.splice(0,s.length-f),!c){for(var p=a.now(),m=0,O=1;O<s.length&&s[O]<=p;O+=2)m=O;m&&s.splice(0,m+1)}},e})(AE.Subject);Gi.ReplaySubject=LE});var rs=b(Bi=>{"use strict";var ME=Bi&&Bi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.AsyncSubject=void 0;var qE=qe(),xE=(function(n){ME(e,n);function e(){var r=n!==null&&n.apply(this,arguments)||this;return r._value=null,r._hasValue=!1,r._isComplete=!1,r}return e.prototype._checkFinalizedStatuses=function(r){var t=this,a=t.hasError,s=t._hasValue,c=t._value,f=t.thrownError,p=t.isStopped,m=t._isComplete;a?r.error(f):(p||m)&&(s&&r.next(c),r.complete())},e.prototype.next=function(r){this.isStopped||(this._value=r,this._hasValue=!0)},e.prototype.complete=function(){var r=this,t=r._hasValue,a=r._value,s=r._isComplete;s||(this._isComplete=!0,t&&n.prototype.next.call(this,a),n.prototype.complete.call(this))},e})(qE.Subject);Bi.AsyncSubject=xE});var iy=b(Hi=>{"use strict";var jE=Hi&&Hi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Action=void 0;var IE=ir(),FE=(function(n){jE(e,n);function e(r,t){return n.call(this)||this}return e.prototype.schedule=function(r,t){return t===void 0&&(t=0),this},e})(IE.Subscription);Hi.Action=FE});var ay=b(jr=>{"use strict";var ny=jr&&jr.__read||function(n,e){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var t=r.call(n),a,s=[],c;try{for(;(e===void 0||e-- >0)&&!(a=t.next()).done;)s.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return s},oy=jr&&jr.__spreadArray||function(n,e){for(var r=0,t=e.length,a=n.length;r<t;r++,a++)n[a]=e[r];return n};Object.defineProperty(jr,"__esModule",{value:!0});jr.intervalProvider=void 0;jr.intervalProvider={setInterval:function(n,e){for(var r=[],t=2;t<arguments.length;t++)r[t-2]=arguments[t];var a=jr.intervalProvider.delegate;return a?.setInterval?a.setInterval.apply(a,oy([n,e],ny(r))):setInterval.apply(void 0,oy([n,e],ny(r)))},clearInterval:function(n){var e=jr.intervalProvider.delegate;return(e?.clearInterval||clearInterval)(n)},delegate:void 0}});var $i=b(zi=>{"use strict";var DE=zi&&zi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(zi,"__esModule",{value:!0});zi.AsyncAction=void 0;var kE=iy(),sy=ay(),RE=Jr(),VE=(function(n){DE(e,n);function e(r,t){var a=n.call(this,r,t)||this;return a.scheduler=r,a.work=t,a.pending=!1,a}return e.prototype.schedule=function(r,t){var a;if(t===void 0&&(t=0),this.closed)return this;this.state=r;var s=this.id,c=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(c,s,t)),this.pending=!0,this.delay=t,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(c,this.id,t),this},e.prototype.requestAsyncId=function(r,t,a){return a===void 0&&(a=0),sy.intervalProvider.setInterval(r.flush.bind(r,this),a)},e.prototype.recycleAsyncId=function(r,t,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return t;t!=null&&sy.intervalProvider.clearInterval(t)},e.prototype.execute=function(r,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(r,t);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,t){var a=!1,s;try{this.work(r)}catch(c){a=!0,s=c||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,t=r.id,a=r.scheduler,s=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,RE.arrRemove(s,this),t!=null&&(this.id=this.recycleAsyncId(a,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e})(kE.Action);zi.AsyncAction=VE});var cy=b(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.TestTools=Yi.Immediate=void 0;var NE=1,bh,ts={};function uy(n){return n in ts?(delete ts[n],!0):!1}Yi.Immediate={setImmediate:function(n){var e=NE++;return ts[e]=!0,bh||(bh=Promise.resolve()),bh.then(function(){return uy(e)&&n()}),e},clearImmediate:function(n){uy(n)}};Yi.TestTools={pending:function(){return Object.keys(ts).length}}});var fy=b(Ir=>{"use strict";var WE=Ir&&Ir.__read||function(n,e){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var t=r.call(n),a,s=[],c;try{for(;(e===void 0||e-- >0)&&!(a=t.next()).done;)s.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(r=t.return)&&r.call(t)}finally{if(c)throw c.error}}return s},UE=Ir&&Ir.__spreadArray||function(n,e){for(var r=0,t=e.length,a=n.length;r<t;r++,a++)n[a]=e[r];return n};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.immediateProvider=void 0;var ly=cy(),GE=ly.Immediate.setImmediate,BE=ly.Immediate.clearImmediate;Ir.immediateProvider={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var r=Ir.immediateProvider.delegate;return(r?.setImmediate||GE).apply(void 0,UE([],WE(n)))},clearImmediate:function(n){var e=Ir.immediateProvider.delegate;return(e?.clearImmediate||BE)(n)},delegate:void 0}});var py=b(Qi=>{"use strict";var HE=Qi&&Qi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.AsapAction=void 0;var zE=$i(),hy=fy(),$E=(function(n){HE(e,n);function e(r,t){var a=n.call(this,r,t)||this;return a.scheduler=r,a.work=t,a}return e.prototype.requestAsyncId=function(r,t,a){return a===void 0&&(a=0),a!==null&&a>0?n.prototype.requestAsyncId.call(this,r,t,a):(r.actions.push(this),r._scheduled||(r._scheduled=hy.immediateProvider.setImmediate(r.flush.bind(r,void 0))))},e.prototype.recycleAsyncId=function(r,t,a){var s;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,r,t,a);var c=r.actions;t!=null&&((s=c[c.length-1])===null||s===void 0?void 0:s.id)!==t&&(hy.immediateProvider.clearImmediate(t),r._scheduled===t&&(r._scheduled=void 0))},e})(zE.AsyncAction);Qi.AsapAction=$E});var _h=b(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.Scheduler=void 0;var YE=Za(),QE=(function(){function n(e,r){r===void 0&&(r=n.now),this.schedulerActionCtor=e,this.now=r}return n.prototype.schedule=function(e,r,t){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(t,r)},n.now=YE.dateTimestampProvider.now,n})();is.Scheduler=QE});var Ki=b(Xi=>{"use strict";var XE=Xi&&Xi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.AsyncScheduler=void 0;var dy=_h(),KE=(function(n){XE(e,n);function e(r,t){t===void 0&&(t=dy.Scheduler.now);var a=n.call(this,r,t)||this;return a.actions=[],a._active=!1,a}return e.prototype.flush=function(r){var t=this.actions;if(this._active){t.push(r);return}var a;this._active=!0;do if(a=r.execute(r.state,r.delay))break;while(r=t.shift());if(this._active=!1,a){for(;r=t.shift();)r.unsubscribe();throw a}},e})(dy.Scheduler);Xi.AsyncScheduler=KE});var vy=b(Ji=>{"use strict";var JE=Ji&&Ji.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Ji,"__esModule",{value:!0});Ji.AsapScheduler=void 0;var ZE=Ki(),eL=(function(n){JE(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(r){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var a=this.actions,s;r=r||a.shift();do if(s=r.execute(r.state,r.delay))break;while((r=a[0])&&r.id===t&&a.shift());if(this._active=!1,s){for(;(r=a[0])&&r.id===t&&a.shift();)r.unsubscribe();throw s}},e})(ZE.AsyncScheduler);Ji.AsapScheduler=eL});var my=b(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.asap=ai.asapScheduler=void 0;var rL=py(),tL=vy();ai.asapScheduler=new tL.AsapScheduler(rL.AsapAction);ai.asap=ai.asapScheduler});var $e=b(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.async=si.asyncScheduler=void 0;var iL=$i(),nL=Ki();si.asyncScheduler=new nL.AsyncScheduler(iL.AsyncAction);si.async=si.asyncScheduler});var gy=b(Zi=>{"use strict";var oL=Zi&&Zi.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Zi,"__esModule",{value:!0});Zi.QueueAction=void 0;var aL=$i(),sL=(function(n){oL(e,n);function e(r,t){var a=n.call(this,r,t)||this;return a.scheduler=r,a.work=t,a}return e.prototype.schedule=function(r,t){return t===void 0&&(t=0),t>0?n.prototype.schedule.call(this,r,t):(this.delay=t,this.state=r,this.scheduler.flush(this),this)},e.prototype.execute=function(r,t){return t>0||this.closed?n.prototype.execute.call(this,r,t):this._execute(r,t)},e.prototype.requestAsyncId=function(r,t,a){return a===void 0&&(a=0),a!=null&&a>0||a==null&&this.delay>0?n.prototype.requestAsyncId.call(this,r,t,a):(r.flush(this),0)},e})(aL.AsyncAction);Zi.QueueAction=sL});var yy=b(en=>{"use strict";var uL=en&&en.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(en,"__esModule",{value:!0});en.QueueScheduler=void 0;var cL=Ki(),lL=(function(n){uL(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e})(cL.AsyncScheduler);en.QueueScheduler=lL});var by=b(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.queue=ui.queueScheduler=void 0;var fL=gy(),hL=yy();ui.queueScheduler=new hL.QueueScheduler(fL.QueueAction);ui.queue=ui.queueScheduler});var Py=b(rn=>{"use strict";var pL=rn&&rn.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(rn,"__esModule",{value:!0});rn.AnimationFrameAction=void 0;var dL=$i(),_y=ph(),vL=(function(n){pL(e,n);function e(r,t){var a=n.call(this,r,t)||this;return a.scheduler=r,a.work=t,a}return e.prototype.requestAsyncId=function(r,t,a){return a===void 0&&(a=0),a!==null&&a>0?n.prototype.requestAsyncId.call(this,r,t,a):(r.actions.push(this),r._scheduled||(r._scheduled=_y.animationFrameProvider.requestAnimationFrame(function(){return r.flush(void 0)})))},e.prototype.recycleAsyncId=function(r,t,a){var s;if(a===void 0&&(a=0),a!=null?a>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,r,t,a);var c=r.actions;t!=null&&t===r._scheduled&&((s=c[c.length-1])===null||s===void 0?void 0:s.id)!==t&&(_y.animationFrameProvider.cancelAnimationFrame(t),r._scheduled=void 0)},e})(dL.AsyncAction);rn.AnimationFrameAction=vL});var Oy=b(tn=>{"use strict";var mL=tn&&tn.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(tn,"__esModule",{value:!0});tn.AnimationFrameScheduler=void 0;var gL=Ki(),yL=(function(n){mL(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(r){this._active=!0;var t;r?t=r.id:(t=this._scheduled,this._scheduled=void 0);var a=this.actions,s;r=r||a.shift();do if(s=r.execute(r.state,r.delay))break;while((r=a[0])&&r.id===t&&a.shift());if(this._active=!1,s){for(;(r=a[0])&&r.id===t&&a.shift();)r.unsubscribe();throw s}},e})(gL.AsyncScheduler);tn.AnimationFrameScheduler=yL});var Ty=b(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.animationFrame=ci.animationFrameScheduler=void 0;var bL=Py(),_L=Oy();ci.animationFrameScheduler=new _L.AnimationFrameScheduler(bL.AnimationFrameAction);ci.animationFrame=ci.animationFrameScheduler});var Cy=b(Pt=>{"use strict";var wy=Pt&&Pt.__extends||(function(){var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])},n(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}})();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.VirtualAction=Pt.VirtualTimeScheduler=void 0;var PL=$i(),OL=ir(),TL=Ki(),wL=(function(n){wy(e,n);function e(r,t){r===void 0&&(r=Sy),t===void 0&&(t=1/0);var a=n.call(this,r,function(){return a.frame})||this;return a.maxFrames=t,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var r=this,t=r.actions,a=r.maxFrames,s,c;(c=t[0])&&c.delay<=a&&(t.shift(),this.frame=c.delay,!(s=c.execute(c.state,c.delay))););if(s){for(;c=t.shift();)c.unsubscribe();throw s}},e.frameTimeFactor=10,e})(TL.AsyncScheduler);Pt.VirtualTimeScheduler=wL;var Sy=(function(n){wy(e,n);function e(r,t,a){a===void 0&&(a=r.index+=1);var s=n.call(this,r,t)||this;return s.scheduler=r,s.work=t,s.index=a,s.active=!0,s.index=r.index=a,s}return e.prototype.schedule=function(r,t){if(t===void 0&&(t=0),Number.isFinite(t)){if(!this.id)return n.prototype.schedule.call(this,r,t);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(r,t)}else return OL.Subscription.EMPTY},e.prototype.requestAsyncId=function(r,t,a){a===void 0&&(a=0),this.delay=r.frame+a;var s=r.actions;return s.push(this),s.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(r,t,a){a===void 0&&(a=0)},e.prototype._execute=function(r,t){if(this.active===!0)return n.prototype._execute.call(this,r,t)},e.sortActions=function(r,t){return r.delay===t.delay?r.index===t.index?0:r.index>t.index?1:-1:r.delay>t.delay?1:-1},e})(PL.AsyncAction);Pt.VirtualAction=Sy});var Or=b(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.empty=li.EMPTY=void 0;var Ay=ce();li.EMPTY=new Ay.Observable(function(n){return n.complete()});function SL(n){return n?CL(n):li.EMPTY}li.empty=SL;function CL(n){return new Ay.Observable(function(e){return n.schedule(function(){return e.complete()})})}});var bo=b(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.isScheduler=void 0;var AL=se();function EL(n){return n&&AL.isFunction(n.schedule)}ns.isScheduler=EL});var Ye=b(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.popNumber=Ot.popScheduler=Ot.popResultSelector=void 0;var LL=se(),ML=bo();function Ph(n){return n[n.length-1]}function qL(n){return LL.isFunction(Ph(n))?n.pop():void 0}Ot.popResultSelector=qL;function xL(n){return ML.isScheduler(Ph(n))?n.pop():void 0}Ot.popScheduler=xL;function jL(n,e){return typeof Ph(n)=="number"?n.pop():e}Ot.popNumber=jL});var as=b(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.isArrayLike=void 0;os.isArrayLike=(function(n){return n&&typeof n.length=="number"&&typeof n!="function"})});var Oh=b(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.isPromise=void 0;var IL=se();function FL(n){return IL.isFunction(n?.then)}ss.isPromise=FL});var Th=b(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.isInteropObservable=void 0;var DL=po(),kL=se();function RL(n){return kL.isFunction(n[DL.observable])}us.isInteropObservable=RL});var wh=b(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.isAsyncIterable=void 0;var VL=se();function NL(n){return Symbol.asyncIterator&&VL.isFunction(n?.[Symbol.asyncIterator])}cs.isAsyncIterable=NL});var Sh=b(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.createInvalidObservableTypeError=void 0;function WL(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}ls.createInvalidObservableTypeError=WL});var Ch=b(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.iterator=nn.getSymbolIterator=void 0;function Ey(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}nn.getSymbolIterator=Ey;nn.iterator=Ey()});var Ah=b(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.isIterable=void 0;var UL=Ch(),GL=se();function BL(n){return GL.isFunction(n?.[UL.iterator])}fs.isIterable=BL});var hs=b(hr=>{"use strict";var HL=hr&&hr.__generator||function(n,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},t,a,s,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(m){return function(O){return p([m,O])}}function p(m){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(s=m[0]&2?a.return:m[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,m[1])).done)return s;switch(a=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){r.label=m[1];break}if(m[0]===6&&r.label<s[1]){r.label=s[1],s=m;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(m);break}s[2]&&r.ops.pop(),r.trys.pop();continue}m=e.call(n,r)}catch(O){m=[6,O],a=0}finally{t=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},on=hr&&hr.__await||function(n){return this instanceof on?(this.v=n,this):new on(n)},zL=hr&&hr.__asyncGenerator||function(n,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r.apply(n,e||[]),a,s=[];return a={},c("next"),c("throw"),c("return"),a[Symbol.asyncIterator]=function(){return this},a;function c(q){t[q]&&(a[q]=function(j){return new Promise(function(I,F){s.push([q,j,I,F])>1||f(q,j)})})}function f(q,j){try{p(t[q](j))}catch(I){A(s[0][3],I)}}function p(q){q.value instanceof on?Promise.resolve(q.value.v).then(m,O):A(s[0][2],q)}function m(q){f("next",q)}function O(q){f("throw",q)}function A(q,j){q(j),s.shift(),s.length&&f(s[0][0],s[0][1])}};Object.defineProperty(hr,"__esModule",{value:!0});hr.isReadableStreamLike=hr.readableStreamLikeToAsyncGenerator=void 0;var $L=se();function YL(n){return zL(this,arguments,function(){var r,t,a,s;return HL(this,function(c){switch(c.label){case 0:r=n.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,on(r.read())];case 3:return t=c.sent(),a=t.value,s=t.done,s?[4,on(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,on(a)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}hr.readableStreamLikeToAsyncGenerator=YL;function QL(n){return $L.isFunction(n?.getReader)}hr.isReadableStreamLike=QL});var Q=b(ve=>{"use strict";var XL=ve&&ve.__awaiter||function(n,e,r,t){function a(s){return s instanceof r?s:new r(function(c){c(s)})}return new(r||(r=Promise))(function(s,c){function f(O){try{m(t.next(O))}catch(A){c(A)}}function p(O){try{m(t.throw(O))}catch(A){c(A)}}function m(O){O.done?s(O.value):a(O.value).then(f,p)}m((t=t.apply(n,e||[])).next())})},KL=ve&&ve.__generator||function(n,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},t,a,s,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(m){return function(O){return p([m,O])}}function p(m){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(s=m[0]&2?a.return:m[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,m[1])).done)return s;switch(a=0,s&&(m=[m[0]&2,s.value]),m[0]){case 0:case 1:s=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!s||m[1]>s[0]&&m[1]<s[3])){r.label=m[1];break}if(m[0]===6&&r.label<s[1]){r.label=s[1],s=m;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(m);break}s[2]&&r.ops.pop(),r.trys.pop();continue}m=e.call(n,r)}catch(O){m=[6,O],a=0}finally{t=s=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},JL=ve&&ve.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],r;return e?e.call(n):(n=typeof Eh=="function"?Eh(n):n[Symbol.iterator](),r={},t("next"),t("throw"),t("return"),r[Symbol.asyncIterator]=function(){return this},r);function t(s){r[s]=n[s]&&function(c){return new Promise(function(f,p){c=n[s](c),a(f,p,c.done,c.value)})}}function a(s,c,f,p){Promise.resolve(p).then(function(m){s({value:m,done:f})},c)}},Eh=ve&&ve.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&n[e],t=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ve,"__esModule",{value:!0});ve.fromReadableStreamLike=ve.fromAsyncIterable=ve.fromIterable=ve.fromPromise=ve.fromArrayLik