/**
 * Bundled by jsDelivr using Rollup v2.79.2 and Terser v5.39.0.
 * Original file: /npm/rxjs@7.8.0/dist/esm5/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import{__values as n,__spreadArray as t,__read as r,__extends as e,__asyncGenerator as u,__generator as i,__await as o,__awaiter as c,__asyncValues as s}from"/npm/tslib@2.4.1/+esm";function f(n){return"function"==typeof n}function l(n){var t=n((function(n){Error.call(n),n.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var a=l((function(n){return function(t){n(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(n,t){return t+1+") "+n.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}));function v(n,t){if(n){var r=n.indexOf(t);0<=r&&n.splice(r,1)}}var h=function(){function e(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,u,i,o,c;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=n(s),v=l.next();!v.done;v=l.next()){v.value.remove(this)}}catch(n){e={error:n}}finally{try{v&&!v.done&&(u=l.return)&&u.call(l)}finally{if(e)throw e.error}}else s.remove(this);var h=this.initialTeardown;if(f(h))try{h()}catch(n){c=n instanceof a?n.errors:[n]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=n(d),y=p.next();!y.done;y=p.next()){var m=y.value;try{b(m)}catch(n){c=null!=c?c:[],n instanceof a?c=t(t([],r(c)),r(n.errors)):c.push(n)}}}catch(n){i={error:n}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}if(c)throw new a(c)}},e.prototype.add=function(n){var t;if(n&&n!==this)if(this.closed)b(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}},e.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},e.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},e.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&v(t,n)},e.prototype.remove=function(n){var t=this._finalizers;t&&v(t,n),n instanceof e&&n._removeParent(this)},e.EMPTY=function(){var n=new e;return n.closed=!0,n}(),e}(),d=h.EMPTY;function p(n){return n instanceof h||n&&"closed"in n&&f(n.remove)&&f(n.add)&&f(n.unsubscribe)}function b(n){f(n)?n():n.unsubscribe()}var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},m=function(n,e){for(var u=[],i=2;i<arguments.length;i++)u[i-2]=arguments[i];return setTimeout.apply(void 0,t([n,e],r(u)))};function w(n){m((function(){var t=y.onUnhandledError;if(!t)throw n;t(n)}))}function x(){}var g=_("C",void 0,void 0);function _(n,t,r){return{kind:n,value:t,error:r}}var E=null;function S(n){if(y.useDeprecatedSynchronousErrorHandling){var t=!E;if(t&&(E={errorThrown:!1,error:null}),n(),t){var r=E,e=r.errorThrown,u=r.error;if(E=null,e)throw u}}else n()}var A=function(n){function t(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,p(t)&&t.add(r)):r.destination=P,r}return e(t,n),t.create=function(n,t,r){return new T(n,t,r)},t.prototype.next=function(n){this.isStopped?j(function(n){return _("N",n,void 0)}(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?j(_("E",void 0,n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?j(g,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(h),O=Function.prototype.bind;function I(n,t){return O.call(n,t)}var C=function(){function n(n){this.partialObserver=n}return n.prototype.next=function(n){var t=this.partialObserver;if(t.next)try{t.next(n)}catch(n){k(n)}},n.prototype.error=function(n){var t=this.partialObserver;if(t.error)try{t.error(n)}catch(n){k(n)}else k(n)},n.prototype.complete=function(){var n=this.partialObserver;if(n.complete)try{n.complete()}catch(n){k(n)}},n}(),T=function(n){function t(t,r,e){var u,i,o=n.call(this)||this;f(t)||!t?u={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=e?e:void 0}:o&&y.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return o.unsubscribe()},u={next:t.next&&I(t.next,i),error:t.error&&I(t.error,i),complete:t.complete&&I(t.complete,i)}):u=t;return o.destination=new C(u),o}return e(t,n),t}(A);function k(n){var t;y.useDeprecatedSynchronousErrorHandling?(t=n,y.useDeprecatedSynchronousErrorHandling&&E&&(E.errorThrown=!0,E.error=t)):w(n)}function j(n,t){var r=y.onStoppedNotification;r&&m((function(){return r(n,t)}))}var P={closed:!0,next:x,error:function(n){throw n},complete:x},F="function"==typeof Symbol&&Symbol.observable||"@@observable";function N(n){return n}function z(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return q(n)}function q(n){return 0===n.length?N:1===n.length?n[0]:function(t){return n.reduce((function(n,t){return t(n)}),t)}}var L=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var r=new n;return r.source=this,r.operator=t,r},n.prototype.subscribe=function(n,t,r){var e,u=this,i=(e=n)&&e instanceof A||function(n){return n&&f(n.next)&&f(n.error)&&f(n.complete)}(e)&&p(e)?n:new T(n,t,r);return S((function(){var n=u,t=n.operator,r=n.source;i.add(t?t.call(i,r):r?u._subscribe(i):u._trySubscribe(i))})),i},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var r=this;return new(t=D(t))((function(t,e){var u=new T({next:function(t){try{n(t)}catch(n){e(n),u.unsubscribe()}},error:e,complete:t});r.subscribe(u)}))},n.prototype._subscribe=function(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)},n.prototype[F]=function(){return this},n.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return q(n)(this)},n.prototype.toPromise=function(n){var t=this;return new(n=D(n))((function(n,r){var e;t.subscribe((function(n){return e=n}),(function(n){return r(n)}),(function(){return n(e)}))}))},n.create=function(t){return new n(t)},n}();function D(n){var t;return null!==(t=null!=n?n:y.Promise)&&void 0!==t?t:Promise}function V(n){return f(null==n?void 0:n.lift)}function R(n){return function(t){if(V(t))return t.lift((function(t){try{return n(t,this)}catch(n){this.error(n)}}));throw new TypeError("Unable to lift unknown Observable type")}}function U(n,t,r,e,u){return new M(n,t,r,e,u)}var M=function(n){function t(t,r,e,u,i,o){var c=n.call(this,t)||this;return c.onFinalize=i,c.shouldUnsubscribe=o,c._next=r?function(n){try{r(n)}catch(n){t.error(n)}}:n.prototype._next,c._error=u?function(n){try{u(n)}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._error,c._complete=e?function(){try{e()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,c}return e(t,n),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(A);function Y(){return R((function(n,t){var r=null;n._refCount++;var e=U(t,void 0,void 0,void 0,(function(){if(!n||n._refCount<=0||0<--n._refCount)r=null;else{var e=n._connection,u=r;r=null,!e||u&&e!==u||e.unsubscribe(),t.unsubscribe()}}));n.subscribe(e),e.closed||(r=n.connect())}))}var W=function(n){function t(t,r){var e=n.call(this)||this;return e.source=t,e.subjectFactory=r,e._subject=null,e._refCount=0,e._connection=null,V(t)&&(e.lift=t.lift),e}return e(t,n),t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return n&&!n.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,null==n||n.unsubscribe()},t.prototype.connect=function(){var n=this,t=this._connection;if(!t){t=this._connection=new h;var r=this.getSubject();t.add(this.source.subscribe(U(r,void 0,(function(){n._teardown(),r.complete()}),(function(t){n._teardown(),r.error(t)}),(function(){return n._teardown()})))),t.closed&&(this._connection=null,t=h.EMPTY)}return t},t.prototype.refCount=function(){return Y()(this)},t}(L),H={now:function(){return(H.delegate||performance).now()},delegate:void 0},B={schedule:function(n){var t=requestAnimationFrame,r=cancelAnimationFrame,e=t((function(t){r=void 0,n(t)}));return new h((function(){return null==r?void 0:r(e)}))},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=B.delegate;return((null==u?void 0:u.requestAnimationFrame)||requestAnimationFrame).apply(void 0,t([],r(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return cancelAnimationFrame.apply(void 0,t([],r(n)))},delegate:void 0};function Z(n){return n?X(n):J}function X(n){return new L((function(t){var r=n||H,e=r.now(),u=0,i=function(){t.closed||(u=B.requestAnimationFrame((function(o){u=0;var c=r.now();t.next({timestamp:n?c:o,elapsed:c-e}),i()})))};return i(),function(){u&&B.cancelAnimationFrame(u)}}))}var G,J=X(),K=l((function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Q=function(t){function r(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e(r,t),r.prototype.lift=function(n){var t=new $(this,this);return t.operator=n,t},r.prototype._throwIfClosed=function(){if(this.closed)throw new K},r.prototype.next=function(t){var r=this;S((function(){var e,u;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var i=n(r.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(e)throw e.error}}}}))},r.prototype.error=function(n){var t=this;S((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=n;for(var r=t.observers;r.length;)r.shift().error(n)}}))},r.prototype.complete=function(){var n=this;S((function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var t=n.observers;t.length;)t.shift().complete()}}))},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var t=this,r=this,e=r.hasError,u=r.isStopped,i=r.observers;return e||u?d:(this.currentObservers=null,i.push(n),new h((function(){t.currentObservers=null,v(i,n)})))},r.prototype._checkFinalizedStatuses=function(n){var t=this,r=t.hasError,e=t.thrownError,u=t.isStopped;r?n.error(e):u&&n.complete()},r.prototype.asObservable=function(){var n=new L;return n.source=this,n},r.create=function(n,t){return new $(n,t)},r}(L),$=function(n){function t(t,r){var e=n.call(this)||this;return e.destination=t,e.source=r,e}return e(t,n),t.prototype.next=function(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)},t.prototype.error=function(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)},t.prototype.complete=function(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)},t.prototype._subscribe=function(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:d},t}(Q),nn=function(n){function t(t){var r=n.call(this)||this;return r._value=t,r}return e(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var n=this,t=n.hasError,r=n.thrownError,e=n._value;if(t)throw r;return this._throwIfClosed(),e},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(Q),tn={now:function(){return(tn.delegate||Date).now()},delegate:void 0},rn=function(n){function t(t,r,e){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===e&&(e=tn);var u=n.call(this)||this;return u._bufferSize=t,u._windowTime=r,u._timestampProvider=e,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=r===1/0,u._bufferSize=Math.max(1,t),u._windowTime=Math.max(1,r),u}return e(t,n),t.prototype.next=function(t){var r=this,e=r.isStopped,u=r._buffer,i=r._infiniteTimeWindow,o=r._timestampProvider,c=r._windowTime;e||(u.push(t),!i&&u.push(o.now()+c)),this._trimBuffer(),n.prototype.next.call(this,t)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(n),r=this._infiniteTimeWindow,e=this._buffer.slice(),u=0;u<e.length&&!n.closed;u+=r?1:2)n.next(e[u]);return this._checkFinalizedStatuses(n),t},t.prototype._trimBuffer=function(){var n=this,t=n._bufferSize,r=n._timestampProvider,e=n._buffer,u=n._infiniteTimeWindow,i=(u?1:2)*t;if(t<1/0&&i<e.length&&e.splice(0,e.length-i),!u){for(var o=r.now(),c=0,s=1;s<e.length&&e[s]<=o;s+=2)c=s;c&&e.splice(0,c+1)}},t}(Q),en=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return e(t,n),t.prototype._checkFinalizedStatuses=function(n){var t=this,r=t.hasError,e=t._hasValue,u=t._value,i=t.thrownError,o=t.isStopped,c=t._isComplete;r?n.error(i):(o||c)&&(e&&n.next(u),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,e=t._value;t._isComplete||(this._isComplete=!0,r&&n.prototype.next.call(this,e),n.prototype.complete.call(this))},t}(Q),un=function(n){function t(t,r){return n.call(this)||this}return e(t,n),t.prototype.schedule=function(n,t){return this},t}(h),on=function(n,e){for(var u=[],i=2;i<arguments.length;i++)u[i-2]=arguments[i];return setInterval.apply(void 0,t([n,e],r(u)))},cn=function(n){return clearInterval(n)},sn=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e.pending=!1,e}return e(t,n),t.prototype.schedule=function(n,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=n;var e=this.id,u=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(u,e,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(u,this.id,t),this},t.prototype.requestAsyncId=function(n,t,r){return void 0===r&&(r=0),on(n.flush.bind(n,this),r)},t.prototype.recycleAsyncId=function(n,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&cn(t)},t.prototype.execute=function(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,t){var r,e=!1;try{this.work(n)}catch(n){e=!0,r=n||new Error("Scheduled action threw falsy error")}if(e)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,e=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v(e,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},t}(un),fn=1,ln={};function an(n){return n in ln&&(delete ln[n],!0)}var vn=function(n){var t=fn++;return ln[t]=!0,G||(G=Promise.resolve()),G.then((function(){return an(t)&&n()})),t},hn=function(n){an(n)},dn={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=dn.delegate;return((null==u?void 0:u.setImmediate)||vn).apply(void 0,t([],r(n)))},clearImmediate:function(n){return hn(n)},delegate:void 0},pn=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return e(t,n),t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&e>0?n.prototype.requestAsyncId.call(this,t,r,e):(t.actions.push(this),t._scheduled||(t._scheduled=dn.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,e){var u;if(void 0===e&&(e=0),null!=e?e>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,e);var i=t.actions;null!=r&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==r&&(dn.clearImmediate(r),t._scheduled=void 0)},t}(sn),bn=function(){function n(t,r){void 0===r&&(r=n.now),this.schedulerActionCtor=t,this.now=r}return n.prototype.schedule=function(n,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,n).schedule(r,t)},n.now=tn.now,n}(),yn=function(n){function t(t,r){void 0===r&&(r=bn.now);var e=n.call(this,t,r)||this;return e.actions=[],e._active=!1,e}return e(t,n),t.prototype.flush=function(n){var t=this.actions;if(this._active)t.push(n);else{var r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}},t}(bn),mn=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.flush=function(n){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,e=this.actions;n=n||e.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=e[0])&&n.id===t&&e.shift());if(this._active=!1,r){for(;(n=e[0])&&n.id===t&&e.shift();)n.unsubscribe();throw r}},t}(yn))(pn),wn=mn,xn=new yn(sn),gn=xn,_n=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return e(t,n),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?n.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?n.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!=e&&e>0||null==e&&this.delay>0?n.prototype.requestAsyncId.call(this,t,r,e):(t.flush(this),0)},t}(sn),En=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t}(yn))(_n),Sn=En,An=function(n){function t(t,r){var e=n.call(this,t,r)||this;return e.scheduler=t,e.work=r,e}return e(t,n),t.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&e>0?n.prototype.requestAsyncId.call(this,t,r,e):(t.actions.push(this),t._scheduled||(t._scheduled=B.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,e){var u;if(void 0===e&&(e=0),null!=e?e>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,e);var i=t.actions;null!=r&&(null===(u=i[i.length-1])||void 0===u?void 0:u.id)!==r&&(B.cancelAnimationFrame(r),t._scheduled=void 0)},t}(sn),On=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.flush=function(n){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,e=this.actions;n=n||e.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=e[0])&&n.id===t&&e.shift());if(this._active=!1,r){for(;(n=e[0])&&n.id===t&&e.shift();)n.unsubscribe();throw r}},t}(yn))(An),In=On,Cn=function(n){function t(t,r){void 0===t&&(t=Tn),void 0===r&&(r=1/0);var e=n.call(this,t,(function(){return e.frame}))||this;return e.maxFrames=r,e.frame=0,e.index=-1,e}return e(t,n),t.prototype.flush=function(){for(var n,t,r=this.actions,e=this.maxFrames;(t=r[0])&&t.delay<=e&&(r.shift(),this.frame=t.delay,!(n=t.execute(t.state,t.delay))););if(n){for(;t=r.shift();)t.unsubscribe();throw n}},t.frameTimeFactor=10,t}(yn),Tn=function(n){function t(t,r,e){void 0===e&&(e=t.index+=1);var u=n.call(this,t,r)||this;return u.scheduler=t,u.work=r,u.index=e,u.active=!0,u.index=t.index=e,u}return e(t,n),t.prototype.schedule=function(r,e){if(void 0===e&&(e=0),Number.isFinite(e)){if(!this.id)return n.prototype.schedule.call(this,r,e);this.active=!1;var u=new t(this.scheduler,this.work);return this.add(u),u.schedule(r,e)}return h.EMPTY},t.prototype.requestAsyncId=function(n,r,e){void 0===e&&(e=0),this.delay=n.frame+e;var u=n.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return n.prototype._execute.call(this,t,r)},t.sortActions=function(n,t){return n.delay===t.delay?n.index===t.index?0:n.index>t.index?1:-1:n.delay>t.delay?1:-1},t}(sn),kn=new L((function(n){return n.complete()}));function jn(n){return n?function(n){return new L((function(t){return n.schedule((function(){return t.complete()}))}))}(n):kn}function Pn(n){return n&&f(n.schedule)}function Fn(n){return n[n.length-1]}function Nn(n){return f(Fn(n))?n.pop():void 0}function zn(n){return Pn(Fn(n))?n.pop():void 0}function qn(n,t){return"number"==typeof Fn(n)?n.pop():t}var Ln=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Dn(n){return f(null==n?void 0:n.then)}function Vn(n){return f(n[F])}function Rn(n){return Symbol.asyncIterator&&f(null==n?void 0:n[Symbol.asyncIterator])}function Un(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Mn,Yn="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Wn(n){return f(null==n?void 0:n[Yn])}function Hn(n){return u(this,arguments,(function(){var t,r,e;return i(this,(function(u){switch(u.label){case 0:t=n.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,o(t.read())];case 3:return r=u.sent(),e=r.value,r.done?[4,o(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,o(e)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function Bn(n){return f(null==n?void 0:n.getReader)}function Zn(t){if(t instanceof L)return t;if(null!=t){if(Vn(t))return i=t,new L((function(n){var t=i[F]();if(f(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Ln(t))return u=t,new L((function(n){for(var t=0;t<u.length&&!n.closed;t++)n.next(u[t]);n.complete()}));if(Dn(t))return e=t,new L((function(n){e.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,w)}));if(Rn(t))return Xn(t);if(Wn(t))return r=t,new L((function(t){var e,u;try{for(var i=n(r),o=i.next();!o.done;o=i.next()){var c=o.value;if(t.next(c),t.closed)return}}catch(n){e={error:n}}finally{try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(e)throw e.error}}t.complete()}));if(Bn(t))return Xn(Hn(t))}var r,e,u,i;throw Un(t)}function Xn(n){return new L((function(t){(function(n,t){var r,e,u,o;return c(this,void 0,void 0,(function(){var c,f;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=s(n),i.label=1;case 1:return[4,r.next()];case 2:if((e=i.sent()).done)return[3,4];if(c=e.value,t.next(c),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return f=i.sent(),u={error:f},[3,11];case 6:return i.trys.push([6,,9,10]),e&&!e.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(n,t).catch((function(n){return t.error(n)}))}))}function Gn(n,t,r,e,u){void 0===e&&(e=0),void 0===u&&(u=!1);var i=t.schedule((function(){r(),u?n.add(this.schedule(null,e)):this.unsubscribe()}),e);if(n.add(i),!u)return i}function Jn(n,t){return void 0===t&&(t=0),R((function(r,e){r.subscribe(U(e,(function(r){return Gn(e,n,(function(){return e.next(r)}),t)}),(function(){return Gn(e,n,(function(){return e.complete()}),t)}),(function(r){return Gn(e,n,(function(){return e.error(r)}),t)})))}))}function Kn(n,t){return void 0===t&&(t=0),R((function(r,e){e.add(n.schedule((function(){return r.subscribe(e)}),t))}))}function Qn(n,t){return new L((function(r){var e;return Gn(r,t,(function(){e=n[Yn](),Gn(r,t,(function(){var n,t,u;try{t=(n=e.next()).value,u=n.done}catch(n){return void r.error(n)}u?r.complete():r.next(t)}),0,!0)})),function(){return f(null==e?void 0:e.return)&&e.return()}}))}function $n(n,t){if(!n)throw new Error("Iterable cannot be null");return new L((function(r){Gn(r,t,(function(){var e=n[Symbol.asyncIterator]();Gn(r,t,(function(){e.next().then((function(n){n.done?r.complete():r.next(n.value)}))}),0,!0)}))}))}function nt(n,t){if(null!=n){if(Vn(n))return function(n,t){return Zn(n).pipe(Kn(t),Jn(t))}(n,t);if(Ln(n))return function(n,t){return new L((function(r){var e=0;return t.schedule((function(){e===n.length?r.complete():(r.next(n[e++]),r.closed||this.schedule())}))}))}(n,t);if(Dn(n))return function(n,t){return Zn(n).pipe(Kn(t),Jn(t))}(n,t);if(Rn(n))return $n(n,t);if(Wn(n))return Qn(n,t);if(Bn(n))return function(n,t){return $n(Hn(n),t)}(n,t)}throw Un(n)}function tt(n,t){return t?nt(n,t):Zn(n)}function rt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return tt(n,zn(n))}function et(n,t){var r=f(n)?n:function(){return n},e=function(n){return n.error(r())};return new L(t?function(n){return t.schedule(e,0,n)}:e)}!function(n){n.NEXT="N",n.ERROR="E",n.COMPLETE="C"}(Mn||(Mn={}));var ut=function(){function n(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue="N"===n}return n.prototype.observe=function(n){return it(this,n)},n.prototype.do=function(n,t,r){var e=this,u=e.kind,i=e.value,o=e.error;return"N"===u?null==n?void 0:n(i):"E"===u?null==t?void 0:t(o):null==r?void 0:r()},n.prototype.accept=function(n,t,r){var e;return f(null===(e=n)||void 0===e?void 0:e.next)?this.observe(n):this.do(n,t,r)},n.prototype.toObservable=function(){var n=this,t=n.kind,r=n.value,e=n.error,u="N"===t?rt(r):"E"===t?et((function(){return e})):"C"===t?kn:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},n.createNext=function(t){return new n("N",t)},n.createError=function(t){return new n("E",void 0,t)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}();function it(n,t){var r,e,u,i=n,o=i.kind,c=i.value,s=i.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,c):"E"===o?null===(e=t.error)||void 0===e||e.call(t,s):null===(u=t.complete)||void 0===u||u.call(t)}function ot(n){return!!n&&(n instanceof L||f(n.lift)&&f(n.subscribe))}var ct=l((function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}}));function st(n,t){var r="object"==typeof t;return new Promise((function(e,u){var i,o=!1;n.subscribe({next:function(n){i=n,o=!0},error:u,complete:function(){o?e(i):r?e(t.defaultValue):u(new ct)}})}))}function ft(n,t){var r="object"==typeof t;return new Promise((function(e,u){var i=new T({next:function(n){e(n),i.unsubscribe()},error:u,complete:function(){r?e(t.defaultValue):u(new ct)}});n.subscribe(i)}))}var lt=l((function(n){return function(){n(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),at=l((function(n){return function(t){n(this),this.name="NotFoundError",this.message=t}})),vt=l((function(n){return function(t){n(this),this.name="SequenceError",this.message=t}}));function ht(n){return n instanceof Date&&!isNaN(n)}var dt=l((function(n){return function(t){void 0===t&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function pt(n,t){var r=ht(n)?{first:n}:"number"==typeof n?{each:n}:n,e=r.first,u=r.each,i=r.with,o=void 0===i?bt:i,c=r.scheduler,s=void 0===c?null!=t?t:xn:c,f=r.meta,l=void 0===f?null:f;if(null==e&&null==u)throw new TypeError("No timeout provided.");return R((function(n,t){var r,i,c=null,f=0,a=function(n){i=Gn(t,s,(function(){try{r.unsubscribe(),Zn(o({meta:l,lastValue:c,seen:f})).subscribe(t)}catch(n){t.error(n)}}),n)};r=n.subscribe(U(t,(function(n){null==i||i.unsubscribe(),f++,t.next(c=n),u>0&&a(u)}),void 0,void 0,(function(){(null==i?void 0:i.closed)||null==i||i.unsubscribe(),c=null}))),!f&&a(null!=e?"number"==typeof e?e:+e-s.now():u)}))}function bt(n){throw new dt(n)}function yt(n,t){return R((function(r,e){var u=0;r.subscribe(U(e,(function(r){e.next(n.call(t,r,u++))})))}))}var mt=Array.isArray;function wt(n){return yt((function(e){return function(n,e){return mt(e)?n.apply(void 0,t([],r(e))):n(e)}(n,e)}))}function xt(n,e,u,i){if(u){if(!Pn(u))return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xt(n,e,i).apply(this,t).pipe(wt(u))};i=u}return i?function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return xt(n,e).apply(this,t).pipe(Kn(i),Jn(i))}:function(){for(var u=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var c=new en,s=!0;return new L((function(o){var f=c.subscribe(o);if(s){s=!1;var l=!1,a=!1;e.apply(u,t(t([],r(i)),[function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(n){var e=t.shift();if(null!=e)return void c.error(e)}c.next(1<t.length?t:t[0]),a=!0,l&&c.complete()}])),a&&c.complete(),l=!0}return f}))}}function gt(n,t,r){return xt(!1,n,t,r)}function _t(n,t,r){return xt(!0,n,t,r)}var Et=Array.isArray,St=Object.getPrototypeOf,At=Object.prototype,Ot=Object.keys;function It(n){if(1===n.length){var t=n[0];if(Et(t))return{args:t,keys:null};if((e=t)&&"object"==typeof e&&St(e)===At){var r=Ot(t);return{args:r.map((function(n){return t[n]})),keys:r}}}var e;return{args:n,keys:null}}function Ct(n,t){return n.reduce((function(n,r,e){return n[r]=t[e],n}),{})}function Tt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=zn(n),e=Nn(n),u=It(n),i=u.args,o=u.keys;if(0===i.length)return tt([],r);var c=new L(kt(i,r,o?function(n){return Ct(o,n)}:N));return e?c.pipe(wt(e)):c}function kt(n,t,r){return void 0===r&&(r=N),function(e){jt(t,(function(){for(var u=n.length,i=new Array(u),o=u,c=u,s=function(u){jt(t,(function(){var s=tt(n[u],t),f=!1;s.subscribe(U(e,(function(n){i[u]=n,f||(f=!0,c--),c||e.next(r(i.slice()))}),(function(){--o||e.complete()})))}),e)},f=0;f<u;f++)s(f)}),e)}}function jt(n,t,r){n?Gn(r,n,t):t()}function Pt(n,t,r,e,u,i,o,c){var s=[],f=0,l=0,a=!1,v=function(){!a||s.length||f||t.complete()},h=function(n){return f<e?d(n):s.push(n)},d=function(n){i&&t.next(n),f++;var c=!1;Zn(r(n,l++)).subscribe(U(t,(function(n){null==u||u(n),i?h(n):t.next(n)}),(function(){c=!0}),void 0,(function(){if(c)try{f--;for(var n=function(){var n=s.shift();o?Gn(t,o,(function(){return d(n)})):d(n)};s.length&&f<e;)n();v()}catch(n){t.error(n)}})))};return n.subscribe(U(t,h,(function(){a=!0,v()}))),function(){null==c||c()}}function Ft(n,t,r){return void 0===r&&(r=1/0),f(t)?Ft((function(r,e){return yt((function(n,u){return t(r,n,e,u)}))(Zn(n(r,e)))}),r):("number"==typeof t&&(r=t),R((function(t,e){return Pt(t,e,n,r)})))}function Nt(n){return void 0===n&&(n=1/0),Ft(N,n)}function zt(){return Nt(1)}function qt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return zt()(tt(n,zn(n)))}function Lt(n){return new L((function(t){Zn(n()).subscribe(t)}))}var Dt={connector:function(){return new Q},resetOnDisconnect:!0};function Vt(n,t){void 0===t&&(t=Dt);var r=null,e=t.connector,u=t.resetOnDisconnect,i=void 0===u||u,o=e(),c=new L((function(n){return o.subscribe(n)}));return c.connect=function(){return r&&!r.closed||(r=Lt((function(){return n})).subscribe(o),i&&r.add((function(){return o=e()}))),r},c}function Rt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=Nn(n),e=It(n),u=e.args,i=e.keys,o=new L((function(n){var t=u.length;if(t)for(var r=new Array(t),e=t,o=t,c=function(t){var c=!1;Zn(u[t]).subscribe(U(n,(function(n){c||(c=!0,o--),r[t]=n}),(function(){return e--}),void 0,(function(){e&&c||(o||n.next(i?Ct(i,r):r),n.complete())})))},s=0;s<t;s++)c(s);else n.complete()}));return r?o.pipe(wt(r)):o}var Ut=["addListener","removeListener"],Mt=["addEventListener","removeEventListener"],Yt=["on","off"];function Wt(n,t,e,u){if(f(e)&&(u=e,e=void 0),u)return Wt(n,t,e).pipe(wt(u));var i=r(function(n){return f(n.addEventListener)&&f(n.removeEventListener)}(n)?Mt.map((function(r){return function(u){return n[r](t,u,e)}})):function(n){return f(n.addListener)&&f(n.removeListener)}(n)?Ut.map(Ht(n,t)):function(n){return f(n.on)&&f(n.off)}(n)?Yt.map(Ht(n,t)):[],2),o=i[0],c=i[1];if(!o&&Ln(n))return Ft((function(n){return Wt(n,t,e)}))(Zn(n));if(!o)throw new TypeError("Invalid event target");return new L((function(n){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.next(1<t.length?t:t[0])};return o(t),function(){return c(t)}}))}function Ht(n,t){return function(r){return function(e){return n[r](t,e)}}}function Bt(n,t,r){return r?Bt(n,t).pipe(wt(r)):new L((function(r){var e=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return r.next(1===n.length?n[0]:n)},u=n(e);return f(t)?function(){return t(e,u)}:void 0}))}function Zt(n,t,r,e,u){var o,c,s,f;function l(){var n;return i(this,(function(e){switch(e.label){case 0:n=f,e.label=1;case 1:return t&&!t(n)?[3,4]:[4,s(n)];case 2:e.sent(),e.label=3;case 3:return n=r(n),[3,1];case 4:return[2]}}))}return 1===arguments.length?(f=(o=n).initialState,t=o.condition,r=o.iterate,c=o.resultSelector,s=void 0===c?N:c,u=o.scheduler):(f=n,!e||Pn(e)?(s=N,u=e):s=e),Lt(u?function(){return Qn(l(),u)}:l)}function Xt(n,t,r){return Lt((function(){return n()?t:r}))}function Gt(n,t,r){void 0===n&&(n=0),void 0===r&&(r=gn);var e=-1;return null!=t&&(Pn(t)?r=t:e=t),new L((function(t){var u=ht(n)?+n-r.now():n;u<0&&(u=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=e?this.schedule(void 0,e):t.complete())}),u)}))}function Jt(n,t){return void 0===n&&(n=0),void 0===t&&(t=xn),n<0&&(n=0),Gt(n,n,t)}function Kt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=zn(n),e=qn(n,1/0),u=n;return u.length?1===u.length?Zn(u[0]):Nt(e)(tt(u,r)):kn}var Qt=new L(x);function $t(){return Qt}var nr=Array.isArray;function tr(n){return 1===n.length&&nr(n[0])?n[0]:n}function rr(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=tr(n);return new L((function(n){var t=0,e=function(){if(t<r.length){var u=void 0;try{u=Zn(r[t++])}catch(n){return void e()}var i=new M(n,void 0,x,x);u.subscribe(i),i.add(e)}else n.complete()};e()}))}function er(n,t){return tt(Object.entries(n),t)}function ur(n,t){return function(r,e){return!n.call(t,r,e)}}function ir(n,t){return R((function(r,e){var u=0;r.subscribe(U(e,(function(r){return n.call(t,r,u++)&&e.next(r)})))}))}function or(n,t,r){return[ir(t,r)(Zn(n)),ir(ur(t,r))(Zn(n))]}function cr(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===(n=tr(n)).length?Zn(n[0]):new L(sr(n))}function sr(n){return function(t){for(var r=[],e=function(e){r.push(Zn(n[e]).subscribe(U(t,(function(n){if(r){for(var u=0;u<r.length;u++)u!==e&&r[u].unsubscribe();r=null}t.next(n)}))))},u=0;r&&!t.closed&&u<n.length;u++)e(u)}}function fr(n,t,r){if(null==t&&(t=n,n=0),t<=0)return kn;var e=t+n;return new L(r?function(t){var u=n;return r.schedule((function(){u<e?(t.next(u++),this.schedule()):t.complete()}))}:function(t){for(var r=n;r<e&&!t.closed;)t.next(r++);t.complete()})}function lr(n,t){return new L((function(r){var e=n(),u=t(e);return(u?Zn(u):kn).subscribe(r),function(){e&&e.unsubscribe()}}))}function ar(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=Nn(n),i=tr(n);return i.length?new L((function(n){var e=i.map((function(){return[]})),o=i.map((function(){return!1}));n.add((function(){e=o=null}));for(var c=function(c){Zn(i[c]).subscribe(U(n,(function(i){if(e[c].push(i),e.every((function(n){return n.length}))){var s=e.map((function(n){return n.shift()}));n.next(u?u.apply(void 0,t([],r(s))):s),e.some((function(n,t){return!n.length&&o[t]}))&&n.complete()}}),(function(){o[c]=!0,!e[c].length&&n.complete()})))},s=0;!n.closed&&s<i.length;s++)c(s);return function(){e=o=null}})):kn}function vr(n){return R((function(t,r){var e=!1,u=null,i=null,o=!1,c=function(){if(null==i||i.unsubscribe(),i=null,e){e=!1;var n=u;u=null,r.next(n)}o&&r.complete()},s=function(){i=null,o&&r.complete()};t.subscribe(U(r,(function(t){e=!0,u=t,i||Zn(n(t)).subscribe(i=U(r,c,s))}),(function(){o=!0,(!e||!i||i.closed)&&r.complete()})))}))}function hr(n,t){return void 0===t&&(t=xn),vr((function(){return Gt(n,t)}))}function dr(n){return R((function(t,r){var e=[];return t.subscribe(U(r,(function(n){return e.push(n)}),(function(){r.next(e),r.complete()}))),Zn(n).subscribe(U(r,(function(){var n=e;e=[],r.next(n)}),x)),function(){e=null}}))}function pr(t,r){return void 0===r&&(r=null),r=null!=r?r:t,R((function(e,u){var i=[],o=0;e.subscribe(U(u,(function(e){var c,s,f,l,a=null;o++%r==0&&i.push([]);try{for(var h=n(i),d=h.next();!d.done;d=h.next()){(y=d.value).push(e),t<=y.length&&(a=null!=a?a:[]).push(y)}}catch(n){c={error:n}}finally{try{d&&!d.done&&(s=h.return)&&s.call(h)}finally{if(c)throw c.error}}if(a)try{for(var p=n(a),b=p.next();!b.done;b=p.next()){var y=b.value;v(i,y),u.next(y)}}catch(n){f={error:n}}finally{try{b&&!b.done&&(l=p.return)&&l.call(p)}finally{if(f)throw f.error}}}),(function(){var t,r;try{for(var e=n(i),o=e.next();!o.done;o=e.next()){var c=o.value;u.next(c)}}catch(n){t={error:n}}finally{try{o&&!o.done&&(r=e.return)&&r.call(e)}finally{if(t)throw t.error}}u.complete()}),void 0,(function(){i=null})))}))}function br(t){for(var r,e,u=[],i=1;i<arguments.length;i++)u[i-1]=arguments[i];var o=null!==(r=zn(u))&&void 0!==r?r:xn,c=null!==(e=u[0])&&void 0!==e?e:null,s=u[1]||1/0;return R((function(r,e){var u=[],i=!1,f=function(n){var t=n.buffer;n.subs.unsubscribe(),v(u,n),e.next(t),i&&l()},l=function(){if(u){var n=new h;e.add(n);var r={buffer:[],subs:n};u.push(r),Gn(n,o,(function(){return f(r)}),t)}};null!==c&&c>=0?Gn(e,o,l,c,!0):i=!0,l();var a=U(e,(function(t){var r,e,i=u.slice();try{for(var o=n(i),c=o.next();!c.done;c=o.next()){var l=c.value,a=l.buffer;a.push(t),s<=a.length&&f(l)}}catch(n){r={error:n}}finally{try{c&&!c.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}}),(function(){for(;null==u?void 0:u.length;)e.next(u.shift().buffer);null==a||a.unsubscribe(),e.complete(),e.unsubscribe()}),void 0,(function(){return u=null}));r.subscribe(a)}))}function yr(t,r){return R((function(e,u){var i=[];Zn(t).subscribe(U(u,(function(n){var t=[];i.push(t);var e=new h;e.add(Zn(r(n)).subscribe(U(u,(function(){v(i,t),u.next(t),e.unsubscribe()}),x)))}),x)),e.subscribe(U(u,(function(t){var r,e;try{for(var u=n(i),o=u.next();!o.done;o=u.next()){o.value.push(t)}}catch(n){r={error:n}}finally{try{o&&!o.done&&(e=u.return)&&e.call(u)}finally{if(r)throw r.error}}}),(function(){for(;i.length>0;)u.next(i.shift());u.complete()})))}))}function mr(n){return R((function(t,r){var e=null,u=null,i=function(){null==u||u.unsubscribe();var t=e;e=[],t&&r.next(t),Zn(n()).subscribe(u=U(r,i,x))};i(),t.subscribe(U(r,(function(n){return null==e?void 0:e.push(n)}),(function(){e&&r.next(e),r.complete()}),void 0,(function(){return e=u=null})))}))}function wr(n){return R((function(t,r){var e,u=null,i=!1;u=t.subscribe(U(r,void 0,void 0,(function(o){e=Zn(n(o,wr(n)(t))),u?(u.unsubscribe(),u=null,e.subscribe(r)):i=!0}))),i&&(u.unsubscribe(),u=null,e.subscribe(r))}))}function xr(n,t,r,e,u){return function(i,o){var c=r,s=t,f=0;i.subscribe(U(o,(function(t){var r=f++;s=c?n(s,t,r):(c=!0,t),e&&o.next(s)}),u&&function(){c&&o.next(s),o.complete()}))}}function gr(n,t){return R(xr(n,t,arguments.length>=2,!1,!0))}var _r=function(n,t){return n.push(t),n};function Er(){return R((function(n,t){gr(_r,[])(n).subscribe(t)}))}function Sr(n,t){return z(Er(),Ft((function(t){return n(t)})),t?wt(t):N)}function Ar(n){return Sr(Tt,n)}var Or=Ar;function Ir(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=Nn(n);return u?z(Ir.apply(void 0,t([],r(n))),wt(u)):R((function(e,u){kt(t([e],r(tr(n))))(u)}))}function Cr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Ir.apply(void 0,t([],r(n)))}function Tr(n,t){return f(t)?Ft(n,t,1):Ft(n,1)}function kr(n,t){return f(t)?Tr((function(){return n}),t):Tr((function(){return n}))}function jr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=zn(n);return R((function(e,i){zt()(tt(t([e],r(n)),u)).subscribe(i)}))}function Pr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return jr.apply(void 0,t([],r(n)))}var Fr={connector:function(){return new Q}};function Nr(n,t){void 0===t&&(t=Fr);var r=t.connector;return R((function(t,e){var u,i=r();Zn(n((u=i,new L((function(n){return u.subscribe(n)}))))).subscribe(e),e.add(t.subscribe(i))}))}function zr(n){return gr((function(t,r,e){return!n||n(r,e)?t+1:t}),0)}function qr(n){return R((function(t,r){var e=!1,u=null,i=null,o=function(){if(null==i||i.unsubscribe(),i=null,e){e=!1;var n=u;u=null,r.next(n)}};t.subscribe(U(r,(function(t){null==i||i.unsubscribe(),e=!0,u=t,i=U(r,o,x),Zn(n(t)).subscribe(i)}),(function(){o(),r.complete()}),void 0,(function(){u=i=null})))}))}function Lr(n,t){return void 0===t&&(t=xn),R((function(r,e){var u=null,i=null,o=null,c=function(){if(u){u.unsubscribe(),u=null;var n=i;i=null,e.next(n)}};function s(){var r=o+n,i=t.now();if(i<r)return u=this.schedule(void 0,r-i),void e.add(u);c()}r.subscribe(U(e,(function(r){i=r,o=t.now(),u||(u=t.schedule(s,n),e.add(u))}),(function(){c(),e.complete()}),void 0,(function(){i=u=null})))}))}function Dr(n){return R((function(t,r){var e=!1;t.subscribe(U(r,(function(n){e=!0,r.next(n)}),(function(){e||r.next(n),r.complete()})))}))}function Vr(n){return n<=0?function(){return kn}:R((function(t,r){var e=0;t.subscribe(U(r,(function(t){++e<=n&&(r.next(t),n<=e&&r.complete())})))}))}function Rr(){return R((function(n,t){n.subscribe(U(t,x))}))}function Ur(n){return yt((function(){return n}))}function Mr(n,t){return t?function(r){return qt(t.pipe(Vr(1),Rr()),r.pipe(Mr(n)))}:Ft((function(t,r){return Zn(n(t,r)).pipe(Vr(1),Ur(t))}))}function Yr(n,t){void 0===t&&(t=xn);var r=Gt(n,t);return Mr((function(){return r}))}function Wr(){return R((function(n,t){n.subscribe(U(t,(function(n){return it(n,t)})))}))}function Hr(n,t){return R((function(r,e){var u=new Set;r.subscribe(U(e,(function(t){var r=n?n(t):t;u.has(r)||(u.add(r),e.next(t))}))),t&&Zn(t).subscribe(U(e,(function(){return u.clear()}),x))}))}function Br(n,t){return void 0===t&&(t=N),n=null!=n?n:Zr,R((function(r,e){var u,i=!0;r.subscribe(U(e,(function(r){var o=t(r);!i&&n(u,o)||(i=!1,u=o,e.next(r))})))}))}function Zr(n,t){return n===t}function Xr(n,t){return Br((function(r,e){return t?t(r[n],e[n]):r[n]===e[n]}))}function Gr(n){return void 0===n&&(n=Jr),R((function(t,r){var e=!1;t.subscribe(U(r,(function(n){e=!0,r.next(n)}),(function(){return e?r.complete():r.error(n())})))}))}function Jr(){return new ct}function Kr(n,t){if(n<0)throw new lt;var r=arguments.length>=2;return function(e){return e.pipe(ir((function(t,r){return r===n})),Vr(1),r?Dr(t):Gr((function(){return new lt})))}}function Qr(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(e){return qt(e,rt.apply(void 0,t([],r(n))))}}function $r(n,t){return R((function(r,e){var u=0;r.subscribe(U(e,(function(i){n.call(t,i,u++,r)||(e.next(!1),e.complete())}),(function(){e.next(!0),e.complete()})))}))}function ne(n,t){return t?function(r){return r.pipe(ne((function(r,e){return Zn(n(r,e)).pipe(yt((function(n,u){return t(r,n,e,u)})))})))}:R((function(t,r){var e=0,u=null,i=!1;t.subscribe(U(r,(function(t){u||(u=U(r,void 0,(function(){u=null,i&&r.complete()})),Zn(n(t,e++)).subscribe(u))}),(function(){i=!0,!u&&r.complete()})))}))}function te(){return ne(N)}var re=te;function ee(n,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,R((function(e,u){return Pt(e,u,n,t,void 0,!0,r)}))}function ue(n){return R((function(t,r){try{t.subscribe(r)}finally{r.add(n)}}))}function ie(n,t){return R(oe(n,t,"value"))}function oe(n,t,r){var e="index"===r;return function(r,u){var i=0;r.subscribe(U(u,(function(o){var c=i++;n.call(t,o,c,r)&&(u.next(e?c:o),u.complete())}),(function(){u.next(e?-1:void 0),u.complete()})))}}function ce(n,t){return R(oe(n,t,"index"))}function se(n,t){var r=arguments.length>=2;return function(e){return e.pipe(n?ir((function(t,r){return n(t,r,e)})):N,Vr(1),r?Dr(t):Gr((function(){return new ct})))}}function fe(n,t,r,e){return R((function(u,i){var o;t&&"function"!=typeof t?(r=t.duration,o=t.element,e=t.connector):o=t;var c=new Map,s=function(n){c.forEach(n),n(i)},f=function(n){return s((function(t){return t.error(n)}))},l=0,a=!1,v=new M(i,(function(t){try{var u=n(t),s=c.get(u);if(!s){c.set(u,s=e?e():new Q);var h=(p=u,b=s,(y=new L((function(n){l++;var t=b.subscribe(n);return function(){t.unsubscribe(),0==--l&&a&&v.unsubscribe()}}))).key=p,y);if(i.next(h),r){var d=U(s,(function(){s.complete(),null==d||d.unsubscribe()}),void 0,void 0,(function(){return c.delete(u)}));v.add(Zn(r(h)).subscribe(d))}}s.next(o?o(t):t)}catch(n){f(n)}var p,b,y}),(function(){return s((function(n){return n.complete()}))}),f,(function(){return c.clear()}),(function(){return a=!0,0===l}));u.subscribe(v)}))}function le(){return R((function(n,t){n.subscribe(U(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}function ae(t){return t<=0?function(){return kn}:R((function(r,e){var u=[];r.subscribe(U(e,(function(n){u.push(n),t<u.length&&u.shift()}),(function(){var t,r;try{for(var i=n(u),o=i.next();!o.done;o=i.next()){var c=o.value;e.next(c)}}catch(n){t={error:n}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}e.complete()}),void 0,(function(){u=null})))}))}function ve(n,t){var r=arguments.length>=2;return function(e){return e.pipe(n?ir((function(t,r){return n(t,r,e)})):N,ae(1),r?Dr(t):Gr((function(){return new ct})))}}function he(){return R((function(n,t){n.subscribe(U(t,(function(n){t.next(ut.createNext(n))}),(function(){t.next(ut.createComplete()),t.complete()}),(function(n){t.next(ut.createError(n)),t.complete()})))}))}function de(n){return gr(f(n)?function(t,r){return n(t,r)>0?t:r}:function(n,t){return n>t?n:t})}var pe=Ft;function be(n,t,r){return void 0===r&&(r=1/0),f(t)?Ft((function(){return n}),t,r):("number"==typeof t&&(r=t),Ft((function(){return n}),r))}function ye(n,t,r){return void 0===r&&(r=1/0),R((function(e,u){var i=t;return Pt(e,u,(function(t,r){return n(i,t,r)}),r,(function(n){i=n}),!1,void 0,(function(){return i=null}))}))}function me(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=zn(n),i=qn(n,1/0);return n=tr(n),R((function(e,o){Nt(i)(tt(t([e],r(n)),u)).subscribe(o)}))}function we(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return me.apply(void 0,t([],r(n)))}function xe(n){return gr(f(n)?function(t,r){return n(t,r)<0?t:r}:function(n,t){return n<t?n:t})}function ge(n,t){var r=f(n)?n:function(){return n};return f(t)?Nr(t,{connector:r}):function(n){return new W(n,r)}}function _e(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=tr(n);return function(n){return rr.apply(void 0,t([n],r(u)))}}function Ee(){return R((function(n,t){var r,e=!1;n.subscribe(U(t,(function(n){var u=r;r=n,e&&t.next([u,n]),e=!0})))}))}function Se(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=n.length;if(0===r)throw new Error("list of properties cannot be empty.");return yt((function(t){for(var e=t,u=0;u<r;u++){var i=null==e?void 0:e[n[u]];if(void 0===i)return;e=i}return e}))}function Ae(n){return n?function(t){return Nr(n)(t)}:function(n){return ge(new Q)(n)}}function Oe(n){return function(t){var r=new nn(n);return new W(t,(function(){return r}))}}function Ie(){return function(n){var t=new en;return new W(n,(function(){return t}))}}function Ce(n,t,r,e){r&&!f(r)&&(e=r);var u=f(r)?r:void 0;return function(r){return ge(new rn(n,t,e),u)(r)}}function Te(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.length?R((function(e,u){sr(t([e],r(n)))(u)})):N}function ke(n){var t,r,e=1/0;return null!=n&&("object"==typeof n?(t=n.count,e=void 0===t?1/0:t,r=n.delay):e=n),e<=0?function(){return kn}:R((function(n,t){var u,i=0,o=function(){if(null==u||u.unsubscribe(),u=null,null!=r){var n="number"==typeof r?Gt(r):Zn(r(i)),e=U(t,(function(){e.unsubscribe(),c()}));n.subscribe(e)}else c()},c=function(){var r=!1;u=n.subscribe(U(t,void 0,(function(){++i<e?u?o():r=!0:t.complete()}))),r&&o()};c()}))}function je(n){return R((function(t,r){var e,u,i=!1,o=!1,c=!1,s=function(){return c&&o&&(r.complete(),!0)},f=function(){c=!1,e=t.subscribe(U(r,void 0,(function(){c=!0,!s()&&(u||(u=new Q,Zn(n(u)).subscribe(U(r,(function(){e?f():i=!0}),(function(){o=!0,s()})))),u).next()}))),i&&(e.unsubscribe(),e=null,i=!1,f())};f()}))}function Pe(n){var t;void 0===n&&(n=1/0);var r=(t=n&&"object"==typeof n?n:{count:n}).count,e=void 0===r?1/0:r,u=t.delay,i=t.resetOnSuccess,o=void 0!==i&&i;return e<=0?N:R((function(n,t){var r,i=0,c=function(){var s=!1;r=n.subscribe(U(t,(function(n){o&&(i=0),t.next(n)}),void 0,(function(n){if(i++<e){var o=function(){r?(r.unsubscribe(),r=null,c()):s=!0};if(null!=u){var f="number"==typeof u?Gt(u):Zn(u(n,i)),l=U(t,(function(){l.unsubscribe(),o()}),(function(){t.complete()}));f.subscribe(l)}else o()}else t.error(n)}))),s&&(r.unsubscribe(),r=null,c())};c()}))}function Fe(n){return R((function(t,r){var e,u,i=!1,o=function(){e=t.subscribe(U(r,void 0,void 0,(function(t){u||(u=new Q,Zn(n(u)).subscribe(U(r,(function(){return e?o():i=!0})))),u&&u.next(t)}))),i&&(e.unsubscribe(),e=null,i=!1,o())};o()}))}function Ne(n){return R((function(t,r){var e=!1,u=null;t.subscribe(U(r,(function(n){e=!0,u=n}))),Zn(n).subscribe(U(r,(function(){if(e){e=!1;var n=u;u=null,r.next(n)}}),x))}))}function ze(n,t){return void 0===t&&(t=xn),Ne(Jt(n,t))}function qe(n,t){return R(xr(n,t,arguments.length>=2,!0))}function Le(n,t){return void 0===t&&(t=function(n,t){return n===t}),R((function(r,e){var u={buffer:[],complete:!1},i={buffer:[],complete:!1},o=function(n){e.next(n),e.complete()},c=function(n,r){var u=U(e,(function(e){var u=r.buffer,i=r.complete;0===u.length?i?o(!1):n.buffer.push(e):!t(e,u.shift())&&o(!1)}),(function(){n.complete=!0;var t=r.complete,e=r.buffer;t&&o(0===e.length),null==u||u.unsubscribe()}));return u};r.subscribe(c(u,i)),Zn(n).subscribe(c(i,u))}))}function De(n){void 0===n&&(n={});var t=n.connector,r=void 0===t?function(){return new Q}:t,e=n.resetOnError,u=void 0===e||e,i=n.resetOnComplete,o=void 0===i||i,c=n.resetOnRefCountZero,s=void 0===c||c;return function(n){var t,e,i,c=0,f=!1,l=!1,a=function(){null==e||e.unsubscribe(),e=void 0},v=function(){a(),t=i=void 0,f=l=!1},h=function(){var n=t;v(),null==n||n.unsubscribe()};return R((function(n,d){c++,l||f||a();var p=i=null!=i?i:r();d.add((function(){0!==--c||l||f||(e=Ve(h,s))})),p.subscribe(d),!t&&c>0&&(t=new T({next:function(n){return p.next(n)},error:function(n){l=!0,a(),e=Ve(v,u,n),p.error(n)},complete:function(){f=!0,a(),e=Ve(v,o),p.complete()}}),Zn(n).subscribe(t))}))(n)}}function Ve(n,e){for(var u=[],i=2;i<arguments.length;i++)u[i-2]=arguments[i];if(!0!==e){if(!1!==e){var o=new T({next:function(){o.unsubscribe(),n()}});return Zn(e.apply(void 0,t([],r(u)))).subscribe(o)}}else n()}function Re(n,t,r){var e,u,i,o,c=!1;return n&&"object"==typeof n?(e=n.bufferSize,o=void 0===e?1/0:e,u=n.windowTime,t=void 0===u?1/0:u,c=void 0!==(i=n.refCount)&&i,r=n.scheduler):o=null!=n?n:1/0,De({connector:function(){return new rn(o,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:c})}function Ue(n){return R((function(t,r){var e,u=!1,i=!1,o=0;t.subscribe(U(r,(function(c){i=!0,n&&!n(c,o++,t)||(u&&r.error(new vt("Too many matching values")),u=!0,e=c)}),(function(){u?(r.next(e),r.complete()):r.error(i?new at("No matching values"):new ct)})))}))}function Me(n){return ir((function(t,r){return n<=r}))}function Ye(n){return n<=0?N:R((function(t,r){var e=new Array(n),u=0;return t.subscribe(U(r,(function(t){var i=u++;if(i<n)e[i]=t;else{var o=i%n,c=e[o];e[o]=t,r.next(c)}}))),function(){e=null}}))}function We(n){return R((function(t,r){var e=!1,u=U(r,(function(){null==u||u.unsubscribe(),e=!0}),x);Zn(n).subscribe(u),t.subscribe(U(r,(function(n){return e&&r.next(n)})))}))}function He(n){return R((function(t,r){var e=!1,u=0;t.subscribe(U(r,(function(t){return(e||(e=!n(t,u++)))&&r.next(t)})))}))}function Be(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=zn(n);return R((function(t,e){(r?qt(n,t,r):qt(n,t)).subscribe(e)}))}function Ze(n,t){return R((function(r,e){var u=null,i=0,o=!1,c=function(){return o&&!u&&e.complete()};r.subscribe(U(e,(function(r){null==u||u.unsubscribe();var o=0,s=i++;Zn(n(r,s)).subscribe(u=U(e,(function(n){return e.next(t?t(r,n,s,o++):n)}),(function(){u=null,c()})))}),(function(){o=!0,c()})))}))}function Xe(){return Ze(N)}function Ge(n,t){return f(t)?Ze((function(){return n}),t):Ze((function(){return n}))}function Je(n,t){return R((function(r,e){var u=t;return Ze((function(t,r){return n(u,t,r)}),(function(n,t){return u=t,t}))(r).subscribe(e),function(){u=null}}))}function Ke(n){return R((function(t,r){Zn(n).subscribe(U(r,(function(){return r.complete()}),x)),!r.closed&&t.subscribe(r)}))}function Qe(n,t){return void 0===t&&(t=!1),R((function(r,e){var u=0;r.subscribe(U(e,(function(r){var i=n(r,u++);(i||t)&&e.next(r),!i&&e.complete()})))}))}function $e(n,t,r){var e=f(n)||t||r?{next:n,error:t,complete:r}:n;return e?R((function(n,t){var r;null===(r=e.subscribe)||void 0===r||r.call(e);var u=!0;n.subscribe(U(t,(function(n){var r;null===(r=e.next)||void 0===r||r.call(e,n),t.next(n)}),(function(){var n;u=!1,null===(n=e.complete)||void 0===n||n.call(e),t.complete()}),(function(n){var r;u=!1,null===(r=e.error)||void 0===r||r.call(e,n),t.error(n)}),(function(){var n,t;u&&(null===(n=e.unsubscribe)||void 0===n||n.call(e)),null===(t=e.finalize)||void 0===t||t.call(e)})))})):N}var nu={leading:!0,trailing:!1};function tu(n,t){return void 0===t&&(t=nu),R((function(r,e){var u=t.leading,i=t.trailing,o=!1,c=null,s=null,f=!1,l=function(){null==s||s.unsubscribe(),s=null,i&&(h(),f&&e.complete())},a=function(){s=null,f&&e.complete()},v=function(t){return s=Zn(n(t)).subscribe(U(e,l,a))},h=function(){if(o){o=!1;var n=c;c=null,e.next(n),!f&&v(n)}};r.subscribe(U(e,(function(n){o=!0,c=n,(!s||s.closed)&&(u?h():v(n))}),(function(){f=!0,(!(i&&o&&s)||s.closed)&&e.complete()})))}))}function ru(n,t,r){void 0===t&&(t=xn),void 0===r&&(r=nu);var e=Gt(n,t);return tu((function(){return e}),r)}function eu(n){return void 0===n&&(n=xn),R((function(t,r){var e=n.now();t.subscribe(U(r,(function(t){var u=n.now(),i=u-e;e=u,r.next(new uu(t,i))})))}))}var uu=function(n,t){this.value=n,this.interval=t};function iu(n,t,r){var e,u,i;if(r=null!=r?r:gn,ht(n)?e=n:"number"==typeof n&&(u=n),!t)throw new TypeError("No observable provided to switch to");if(i=function(){return t},null==e&&null==u)throw new TypeError("No timeout provided.");return pt({first:e,each:u,scheduler:r,with:i})}function ou(n){return void 0===n&&(n=tn),yt((function(t){return{value:t,timestamp:n.now()}}))}function cu(n){return R((function(t,r){var e=new Q;r.next(e.asObservable());var u=function(n){e.error(n),r.error(n)};return t.subscribe(U(r,(function(n){return null==e?void 0:e.next(n)}),(function(){e.complete(),r.complete()}),u)),Zn(n).subscribe(U(r,(function(){e.complete(),r.next(e=new Q)}),x,u)),function(){null==e||e.unsubscribe(),e=null}}))}function su(t,r){void 0===r&&(r=0);var e=r>0?r:t;return R((function(r,u){var i=[new Q],o=0;u.next(i[0].asObservable()),r.subscribe(U(u,(function(r){var c,s;try{for(var f=n(i),l=f.next();!l.done;l=f.next()){l.value.next(r)}}catch(n){c={error:n}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}var a=o-t+1;if(a>=0&&a%e==0&&i.shift().complete(),++o%e==0){var v=new Q;i.push(v),u.next(v.asObservable())}}),(function(){for(;i.length>0;)i.shift().complete();u.complete()}),(function(n){for(;i.length>0;)i.shift().error(n);u.error(n)}),(function(){i=null})))}))}function fu(n){for(var t,r,e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];var i=null!==(t=zn(e))&&void 0!==t?t:xn,o=null!==(r=e[0])&&void 0!==r?r:null,c=e[1]||1/0;return R((function(t,r){var e=[],u=!1,s=function(n){var t=n.window,r=n.subs;t.complete(),r.unsubscribe(),v(e,n),u&&f()},f=function(){if(e){var t=new h;r.add(t);var u=new Q,o={window:u,subs:t,seen:0};e.push(o),r.next(u.asObservable()),Gn(t,i,(function(){return s(o)}),n)}};null!==o&&o>=0?Gn(r,i,f,o,!0):u=!0,f();var l=function(n){return e.slice().forEach(n)},a=function(n){l((function(t){var r=t.window;return n(r)})),n(r),r.unsubscribe()};return t.subscribe(U(r,(function(n){l((function(t){t.window.next(n),c<=++t.seen&&s(t)}))}),(function(){return a((function(n){return n.complete()}))}),(function(n){return a((function(t){return t.error(n)}))}))),function(){e=null}}))}function lu(t,r){return R((function(e,u){var i=[],o=function(n){for(;0<i.length;)i.shift().error(n);u.error(n)};Zn(t).subscribe(U(u,(function(n){var t=new Q;i.push(t);var e,c=new h;try{e=Zn(r(n))}catch(n){return void o(n)}u.next(t.asObservable()),c.add(e.subscribe(U(u,(function(){v(i,t),t.complete(),c.unsubscribe()}),x,o)))}),x)),e.subscribe(U(u,(function(t){var r,e,u=i.slice();try{for(var o=n(u),c=o.next();!c.done;c=o.next()){c.value.next(t)}}catch(n){r={error:n}}finally{try{c&&!c.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}}),(function(){for(;0<i.length;)i.shift().complete();u.complete()}),o,(function(){for(;0<i.length;)i.shift().unsubscribe()})))}))}function au(n){return R((function(t,r){var e,u,i=function(n){e.error(n),r.error(n)},o=function(){var t;null==u||u.unsubscribe(),null==e||e.complete(),e=new Q,r.next(e.asObservable());try{t=Zn(n())}catch(n){return void i(n)}t.subscribe(u=U(r,o,o,i))};o(),t.subscribe(U(r,(function(n){return e.next(n)}),(function(){e.complete(),r.complete()}),i,(function(){null==u||u.unsubscribe(),e=null})))}))}function vu(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var u=Nn(n);return R((function(e,i){for(var o=n.length,c=new Array(o),s=n.map((function(){return!1})),f=!1,l=function(t){Zn(n[t]).subscribe(U(i,(function(n){c[t]=n,f||s[t]||(s[t]=!0,(f=s.every(N))&&(s=null))}),x))},a=0;a<o;a++)l(a);e.subscribe(U(i,(function(n){if(f){var e=t([n],r(c));i.next(u?u.apply(void 0,t([],r(e))):e)}})))}))}function hu(n){return Sr(ar,n)}function du(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return R((function(e,u){ar.apply(void 0,t([e],r(n))).subscribe(u)}))}function pu(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return du.apply(void 0,t([],r(n)))}export{lt as ArgumentOutOfRangeError,en as AsyncSubject,nn as BehaviorSubject,W as ConnectableObservable,kn as EMPTY,ct as EmptyError,Qt as NEVER,at as NotFoundError,ut as Notification,Mn as NotificationKind,K as ObjectUnsubscribedError,L as Observable,rn as ReplaySubject,bn as Scheduler,vt as SequenceError,Q as Subject,A as Subscriber,h as Subscription,dt as TimeoutError,a as UnsubscriptionError,Tn as VirtualAction,Cn as VirtualTimeScheduler,In as animationFrame,On as animationFrameScheduler,Z as animationFrames,wn as asap,mn as asapScheduler,gn as async,xn as asyncScheduler,vr as audit,hr as auditTime,gt as bindCallback,_t as bindNodeCallback,dr as buffer,pr as bufferCount,br as bufferTime,yr as bufferToggle,mr as bufferWhen,wr as catchError,Or as combineAll,Tt as combineLatest,Ar as combineLatestAll,Cr as combineLatestWith,qt as concat,zt as concatAll,Tr as concatMap,kr as concatMapTo,Pr as concatWith,y as config,Nr as connect,Vt as connectable,zr as count,qr as debounce,Lr as debounceTime,Dr as defaultIfEmpty,Lt as defer,Yr as delay,Mr as delayWhen,Wr as dematerialize,Hr as distinct,Br as distinctUntilChanged,Xr as distinctUntilKeyChanged,Kr as elementAt,jn as empty,Qr as endWith,$r as every,re as exhaust,te as exhaustAll,ne as exhaustMap,ee as expand,ir as filter,ue as finalize,ie as find,ce as findIndex,se as first,ft as firstValueFrom,pe as flatMap,Rt as forkJoin,tt as from,Wt as fromEvent,Bt as fromEventPattern,Zt as generate,fe as groupBy,N as identity,Rr as ignoreElements,Xt as iif,Jt as interval,le as isEmpty,ot as isObservable,ve as last,st as lastValueFrom,yt as map,Ur as mapTo,he as materialize,de as max,Kt as merge,Nt as mergeAll,Ft as mergeMap,be as mergeMapTo,ye as mergeScan,we as mergeWith,xe as min,ge as multicast,$t as never,x as noop,F as observable,Jn as observeOn,rt as of,rr as onErrorResumeNext,_e as onErrorResumeNextWith,er as pairs,Ee as pairwise,or as partition,z as pipe,Se as pluck,Ae as publish,Oe as publishBehavior,Ie as publishLast,Ce as publishReplay,Sn as queue,En as queueScheduler,cr as race,Te as raceWith,fr as range,gr as reduce,Y as refCount,ke as repeat,je as repeatWhen,Pe as retry,Fe as retryWhen,Ne as sample,ze as sampleTime,qe as scan,nt as scheduled,Le as sequenceEqual,De as share,Re as shareReplay,Ue as single,Me as skip,Ye as skipLast,We as skipUntil,He as skipWhile,Be as startWith,Kn as subscribeOn,Xe as switchAll,Ze as switchMap,Ge as switchMapTo,Je as switchScan,Vr as take,ae as takeLast,Ke as takeUntil,Qe as takeWhile,$e as tap,tu as throttle,ru as throttleTime,et as throwError,Gr as throwIfEmpty,eu as timeInterval,pt as timeout,iu as timeoutWith,Gt as timer,ou as timestamp,Er as toArray,lr as using,cu as window,su as windowCount,fu as windowTime,lu as windowToggle,au as windowWhen,vu as withLatestFrom,ar as zip,hu as zipAll,pu as zipWith};export default null;
//# sourceMappingURL=/sm/77d0846da38918464a857968fa5a812e7cb7b845e88814887acac5e9e6c1ee91.map