2 lines
43 KiB
JavaScript
2 lines
43 KiB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.most={})}(this,function(t){"use strict";function e(t){this.source=t}function n(t,e){if(t<0)throw new TypeError("n must be >= 0");var n=e.length;return 0===t||0===n?e:t>=n?[]:function(t,e,n){for(var i=new Array(n),r=0;r<n;++r)i[r]=e[t+r];return i}(t,e,n-t)}function i(t){return n(1,t)}function r(t,e){for(var n=e.length,i=new Array(n),r=0;r<n;++r)i[r]=t(e[r]);return i}function o(t,e,n){if(e<0)throw new TypeError("i must be >= 0");for(var i=n.length,r=new Array(i),o=0;o<i;++o)r[o]=e===o?t:n[o];return r}function s(t,e){if(t<0)throw new TypeError("i must be >= 0");var n=e.length;return 0===n||t>=n?e:1===n?[]:function(t,e,n){var i,r=new Array(n);for(i=0;i<t;++i)r[i]=e[i];for(i=t;i<n;++i)r[i]=e[i+1];return r}(t,e,n-1)}function u(t,e){for(var n=0,i=e.length;n<i;++n)if(t===e[n])return n;return-1}function h(t,e){this._dispose=t,this._data=e}function p(){this.disposable=void 0,this.disposed=!1,this._resolve=void 0;var t=this;this.result=new Promise(function(e){t._resolve=e})}function c(t,e,n){var i=y(e);return function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}(i)?i.catch(function(e){n.error(t,e)}):i}function f(t,e){return w(new h(t,e))}function a(){return new h(Qn,void 0)}function d(t){return f(l,t)}function l(t){return Promise.all(Kn(y,t))}function y(t){try{return t.dispose()}catch(t){return Promise.reject(t)}}function v(){return new p}function w(t){return new h(k,function(t){return{disposed:!1,disposable:t,value:void 0}}(t))}function k(t){return t.disposed||(t.disposed=!0,t.value=y(t.disposable),t.disposable=void 0),t.value}function m(t){setTimeout(function(){throw t},0)}function _(t,e,n){this._run=t,this.value=e,this.sink=n,this.active=!0}function b(t,e,n){n.error(t,e)}function g(t,e,n){n.event(t,e)}function x(t,e,n){n.end(t,e)}function E(t){return new e(new A(t))}function A(t){this.value=t}function T(t,e,n){n.event(t,e),n.end(t,void 0)}function P(){return Xn}function M(){}function R(t){return t.dispose()}function I(){}function W(t){this.array=t}function L(t,e,n){for(var i=0,r=e.length;i<r&&this.active;++i)n.event(t,e[i]);this.active&&n.end(t)}function C(t){this.iterable=t}function N(t,e,n){for(var i=e.next();!i.done&&this.active;)n.event(t,i.value),i=e.next();n.end(t,i.value)}function S(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function q(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function B(t){this.observable=t}function j(t,e){this.sink=t,this.scheduler=e}function D(t){return t.unsubscribe()}function V(t){if(t instanceof e)return t;var n=function(t){var e=null;if(t){var n=t[ti];if("function"==typeof n&&(!(e=n.call(t))||"function"!=typeof e.subscribe))throw new TypeError("invalid observable "+e)}return e}(t);if(null!=n)return function(t){return new e(new B(t))}(n);if(Array.isArray(t)||function(t){return null!=t&&"number"==typeof t.length&&"function"!=typeof t}(t))return function(t){return new e(new W(t))}(t);if(function(t){return"function"==typeof t[Zn]}(t))return function(t){return new e(new C(t))}(t);throw new TypeError("from(x) must be observable, iterable, or array-like: "+t)}function U(t,e){this.period=t,this.value=e}function z(t,e,n,i){this.time=t,this.period=e,this.task=n,this.scheduler=i,this.active=!0}function O(t){return Promise.resolve(t).then(F)}function F(t){try{return t.run()}catch(e){return t.error(e)}}function G(t,e){this.timer=t,this.timeline=e,this._timer=null,this._nextArrival=1/0;var n=this;this._runReadyTasksBound=function(){n._runReadyTasks(n.now())}}function H(){}function J(t){this.f=t,this.active=!0}function K(){this.tasks=[]}function Q(t,e){var n=e.length;if(0!==n){var i=Y(t.time,e);i>=n?e.push(Z(t.time,[t])):t.time===e[i].time?e[i].events.push(t):e.splice(i,0,Z(t.time,[t]))}else e.push(Z(t.time,[t]))}function X(t,e){e.events=function(t,e){for(var n=e.length,i=new Array(n),r=0,o=void 0,s=0;s<n;++s)t(o=e[s])||(i[r]=o,++r);return i.length=r,i}(t,e.events)}function Y(t,e){for(var n,i,r=0,o=e.length;r<o;){if(n=Math.floor((r+o)/2),i=e[n],t===i.time)return n;t<i.time?o=n:r=n+1}return o}function Z(t,e){return{time:t,events:e}}function $(t,e,n){this.fatalError=t,this.subscriber=e,this.disposable=n}function tt(t){this.disposable=t}function et(t,e,n){if("function"==typeof e.error)try{e.error(t)}catch(t){n(t)}else n(t)}function nt(t,e,n){this.event=t,this.source=e,this.capture=n}function it(t){var e=t.target;e.source.removeEventListener(e.event,t.addEvent,e.capture)}function rt(t){this.sink=t,this.events=[],this.active=!0}function ot(t,e,n){this.sink=t,this.events=n,this.time=e}function st(t,e,n){this.time=t,this.value=e,this.sink=n}function ut(t,e,n){this.time=t,this.value=e,this.sink=n}function ht(t,e){this.event=t,this.source=e}function pt(t){var e=t.target;e.source.removeListener(e.event,t.addEvent)}function ct(t){return function(t,e){return new Promise(function(n,i){!function(t,e,n,i){var r=v(),o=new ft(n,i,r);r.setDisposable(t.run(o,e))}(t,e,n,i)})}(t,ei)}function ft(t,e,n){this._end=t,this._error=e,this._disposable=n,this.active=!0}function at(t,e,n,i){Promise.resolve(n.dispose()).then(function(){t(i)},e)}function dt(t){this.sink=t}function lt(t,e){this.p=t,this.source=e}function yt(t,e){this.p=t,this.sink=e}function vt(t,e,n){this.p=t,this.f=e,this.source=n}function wt(t,e,n){this.p=t,this.f=e,this.sink=n}function kt(t,e){this.f=t,this.source=e}function mt(t,e){this.f=t,this.sink=e}function _t(t,n){return new e(kt.create(t,n.source))}function bt(t,e){return _t(function(){return t},e)}function gt(t,n){return new e(new xt(t,n.source))}function xt(t,e){this.source=e,this.f=t}function Et(t,e){this.sink=e,this.f=t}function At(t,e){return Tt(gt(t,e))}function Tt(t){return ct(t.source)}function Pt(t,n,i){return new e(new Mt(t,n,i.source))}function Mt(t,e,n){this.step=t,this.seed=e,this.source=n}function Rt(t,e,n){this.step=t,this.seed=e,this.sink=n}function It(t,n,i){return new e(new Wt(t,n,i.source))}function Wt(t,e,n){this.source=n,this.f=t,this.value=e}function Lt(t,e,n){this.f=t,this.value=e,this.sink=n}function Ct(t,e,n){return ct(new Nt(t,e,n.source))}function Nt(t,e,n){this.source=n,this.f=t,this.value=e}function St(t,e,n){this.f=t,this.value=e,this.sink=n}function qt(t,e){this.f=t,this.value=e}function Bt(t,e,n,i){this.f=t,this.sink=n,this.scheduler=i,this.active=!0;var r=this;Promise.resolve(this).then(function(t){return jt(t,e)}).catch(function(t){r.sink.error(r.scheduler.now(),t)})}function jt(t,e){var n=t.f;return Promise.resolve(n(e)).then(function(e){return function(t,e){if(e.done)return t.sink.end(t.scheduler.now(),e.value),e.value;if(t.sink.event(t.scheduler.now(),e.value),!t.active)return e.value;return jt(t,e.seed)}(t,e)})}function Dt(t,e){this.f=t,this.value=e}function Vt(t,e,n,i){this.f=t,this.sink=n,this.scheduler=i,this.active=!0;var r=e,o=this;Promise.resolve(this).then(function(t){return Ut(t,r)}).catch(function(t){o.sink.error(o.scheduler.now(),t)})}function Ut(t,e){if(t.sink.event(t.scheduler.now(),e),!t.active)return e;var n=t.f;return Promise.resolve(n(e)).then(function(e){return function(t,e){return t.active?Ut(t,e):t.value}(t,e)})}function zt(t,e){this.f=t,this.args=e}function Ot(t,e,n){this.iterator=t,this.sink=e,this.scheduler=n,this.active=!0;var i=this;Promise.resolve(this).then(Ft).catch(function(t){i.sink.error(i.scheduler.now(),t)})}function Ft(t,e){return t.active?Gt(t,t.iterator.next(e)):e}function Gt(t,e){return e.done?t.sink.end(t.scheduler.now(),e.value):Promise.resolve(e.value).then(function(e){return function(t,e){return t.sink.event(t.scheduler.now(),e),Ft(t,e)}(t,e)},function(e){return function(t,e){return Gt(t,t.iterator.throw(e))}(t,e)})}function Ht(t,n){return new e(new Jt(t,n.source))}function Jt(t,e){this.f=t,this.source=e}function Kt(t,e,n,i){this.f=t,this.sink=n,this.scheduler=i,this.active=!0,this.disposable=w(e.run(this,i))}function Qt(t,e){return Xt(E(t),e)}function Xt(t,e){return Ht(function(){return e},t)}function Yt(t,e){this.sink=e,this.index=t,this.active=!0,this.value=void 0}function Zt(t,e){switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);case 4:return t(e[0],e[1],e[2],e[3]);case 5:return t(e[0],e[1],e[2],e[3],e[4]);default:return t.apply(void 0,e)}}function $t(t){return te(t,ii(arguments))}function te(t,n){var i=n.length;return 0===i?P():1===i?_t(t,n[0]):new e(function(t,e){return new ne(t,ni(ee,e))}(t,n))}function ee(t){return t.source}function ne(t,e){this.f=t,this.sources=e}function ie(t,e,n,i){this.sink=n,this.disposables=t,this.sinks=e,this.f=i;var r=e.length;this.awaiting=r,this.values=new Array(r),this.hasValue=new Array(r);for(var o=0;o<r;++o)this.hasValue[o]=!1;this.activeCount=e.length}function re(t,e){return $t(Jn,t,e)}function oe(t,n){return new e(new se(t,n.source))}function se(t,e){this.transducer=t,this.source=e}function ue(t,e){this.xf=t,this.sink=e}function he(t){this.time=-1/0,this.sink=t}function pe(t){this.tx=t}function ce(t){this.tx=t}function fe(){this.head=null,this.length=0}function ae(t,e){return de(Hn,t,e)}function de(t,n,i){return new e(new le(t,n,i.source))}function le(t,e,n){this.f=t,this.concurrency=e,this.source=n}function ye(t,e,n,i,r){this.f=t,this.concurrency=e,this.sink=i,this.scheduler=r,this.pending=[],this.current=new fe,this.disposable=w(n.run(this,r)),this.active=!0}function ve(t,e,n){this.prev=this.next=null,this.time=t,this.outer=e,this.sink=n,this.disposable=void 0}function we(t,e){return de(t,1/0,e)}function ke(t){return ae(1/0,t)}function me(t,e){return de(t,1,e)}function _e(t){var n=t.length;return 0===n?P():1===n?t[0]:new e(function(t){return new ge(oi(be,[],t))}(t))}function be(t,e){var n=e.source;return n instanceof ge?t.concat(n.sources):t.concat(n)}function ge(t){this.sources=t}function xe(t,e,n){this.sink=n,this.disposables=t,this.activeCount=e.length}function Ee(t,n){return new e(new Pe(Hn,t.source,[n.source]))}function Ae(t,n,i){return new e(new Pe(t,n.source,r(Te,i)))}function Te(t){return t.source}function Pe(t,e,n){this.f=t,this.sampler=e,this.sources=n}function Me(t){this.sink=t,this.hasValue=!1}function Re(t,e,n){this.f=t,this.sinks=e,this.sink=n,this.active=!1}function Ie(t){return t.hasValue}function We(t){return t.value}function Le(t){this._capacity=t||32,this._length=0,this._head=0}function Ce(t,n){return 0===n.length?P():1===n.length?_t(t,n[0]):new e(new Se(t,si(Ne,n)))}function Ne(t){return t.source}function Se(t,e){this.f=t,this.sources=e}function qe(t,e,n,i){this.f=t,this.sinks=n,this.sink=i,this.buffers=e}function Be(t){return t.shift()}function je(t){return new e(new De(t.source))}function De(t){this.source=t}function Ve(t,e){this.sink=t,this.scheduler=e,this.current=null,this.ended=!1}function Ue(t,e,n,i){this.min=t,this.max=e,this.outer=n,this.sink=i,this.disposable=a()}function ze(t,n){return new e(lt.create(t,n.source))}function Oe(t){return Fe(Je,t)}function Fe(t,n){return new e(new Ge(t,n.source))}function Ge(t,e){this.equals=t,this.source=e}function He(t,e){this.equals=t,this.sink=e,this.value=void 0,this.init=!0}function Je(t,e){return t===e}function Ke(t,e){return Xe(0,t,e)}function Qe(t,e){return Xe(t,1/0,e)}function Xe(t,n,i){return n<=t?P():new e(Ye(t,n,i.source))}function Ye(t,e,n){return n instanceof kt?function(t,e,n){return kt.create(n.f,Ye(t,e,n.source))}(t,e,n):n instanceof Ze?function(t,e,n){return t+=n.min,e=Math.min(e+n.min,n.max),new Ze(t,e,n.source)}(t,e,n):new Ze(t,e,n)}function Ze(t,e,n){this.source=n,this.min=t,this.max=e}function $e(t,e,n,i){this.sink=n,this.skip=t,this.take=e,this.disposable=i}function tn(t,n){return new e(new en(t,n.source))}function en(t,e){this.p=t,this.source=e}function nn(t,e,n){this.p=t,this.sink=e,this.active=!0,this.disposable=n}function rn(t,n){return new e(new on(t,n.source))}function on(t,e){this.p=t,this.source=e}function sn(t,e){this.p=t,this.sink=e,this.skipping=!0}function un(t,n){return new e(new hn(t,n.source))}function hn(t,e){this.p=t,this.source=e}function pn(t,e){this.p=t,this.sink=e,this.skipping=!1}function cn(t,n){return new e(new dn(t.source,n.source))}function fn(t,n){return new e(new ln(t.source,n.source))}function an(t,e){return cn(ke(t),fn(t,e))}function dn(t,e){this.maxSignal=t,this.source=e}function ln(t,e){this.minSignal=t,this.source=e}function yn(t,e){this.value=t,this.sink=e}function vn(t,e,n){this.min=t,this.max=e,this.sink=n}function wn(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function kn(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function mn(){}function _n(t,n){return t<=0?n:new e(new bn(t,n.source))}function bn(t,e){this.dt=t,this.source=e}function gn(t,e,n){this.dt=t,this.sink=e,this.scheduler=n}function xn(t){return new e(new En(t.source))}function En(t){this.source=t}function An(t){this.sink=t}function Tn(t,n){return new e(Pn(t,n.source))}function Pn(t,e){return e instanceof kt?function(t,e){return kt.create(e.f,Pn(t,e.source))}(t,e):e instanceof Mn?function(t,e){return new Mn(Math.max(t,e.period),e.source)}(t,e):new Mn(t,e)}function Mn(t,e){this.period=t,this.source=e}function Rn(t,e){this.time=0,this.period=t,this.sink=e}function In(t,n){return new e(new Wn(t,n.source))}function Wn(t,e){this.dt=t,this.source=e}function Ln(t,e,n,i){this.dt=t,this.sink=n,this.scheduler=i,this.value=void 0,this.timer=null,this.disposable=e.run(this,i)}function Cn(t,e){this.debounce=t,this.value=e}function Nn(t){return new e(new Sn(t.source))}function Sn(t){this.source=t}function qn(t,e,n){this.sink=e,this.scheduler=n,this.queue=Promise.resolve(),this.disposable=t.run(this,n),this.active=!0;var i=this;this._eventBound=function(t){i.active&&i.sink.event(i.scheduler.now(),t)},this._endBound=function(t){i.active&&i.sink.end(i.scheduler.now(),t)},this._errorBound=function(t){i.sink.error(i.scheduler.now(),t)}}function Bn(t){this.sink=t,this.active=!0}function jn(t,n){return new e(new Un(t,n.source))}function Dn(t){this.value=t}function Vn(t,e,n){n.error(t,e)}function Un(t,e){this.f=t,this.source=e}function zn(t,e,n,i){this.f=t,this.sink=new Bn(n),this.scheduler=i,this.disposable=e.run(this,i)}function On(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function Fn(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function Gn(t){var e=t.source;return e instanceof ai?t:new t.constructor(new ai(e))}e.prototype.run=function(t,e){return this.source.run(t,e)};var Hn=function(t){return t},Jn=function(t,e){return t(e)};h.prototype.dispose=function(){return this._dispose(this._data)},p.prototype.setDisposable=function(t){if(void 0!==this.disposable)throw new Error("setDisposable called more than once");this.disposable=t,this.disposed&&this._resolve(t.dispose())},p.prototype.dispose=function(){return this.disposed?this.result:(this.disposed=!0,void 0!==this.disposable&&(this.result=this.disposable.dispose()),this.result)};var Kn=r,Qn=Hn;_.event=function(t,e){return new _(g,t,e)},_.end=function(t,e){return new _(x,t,e)},_.error=function(t,e){return new _(b,t,e)},_.prototype.dispose=function(){this.active=!1},_.prototype.run=function(t){this.active&&this._run(t,this.value,this.sink)},_.prototype.error=function(t,e){if(!this.active)return m(e);this.sink.error(t,e)},A.prototype.run=function(t,e){return e.asap(new _(T,this.value,t))},M.prototype.run=function(t,e){var n=_.end(void 0,t);return e.asap(n),f(R,n)};var Xn=new e(new M);I.prototype.run=function(){return a()};var Yn=new e(new I);W.prototype.run=function(t,e){return e.asap(new _(L,this.array,t))};var Zn;Zn="function"==typeof Set&&"function"==typeof(new Set)["@@iterator"]?"@@iterator":"function"==typeof Symbol?Symbol.iterator:"_es6shim_iterator_",C.prototype.run=function(t,e){return e.asap(new _(N,function(t){return t[Zn]()}(this.iterable),t))};var $n,ti=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}($n="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());B.prototype.run=function(t,e){var n=this.observable.subscribe(new j(t,e));if("function"==typeof n)return f(n);if(n&&"function"==typeof n.unsubscribe)return f(D,n);throw new TypeError("Observable returned invalid subscription "+String(n))},j.prototype.next=function(t){S(this.scheduler.now(),t,this.sink)},j.prototype.complete=function(t){q(this.scheduler.now(),t,this.sink)},j.prototype.error=function(t){this.sink.error(this.scheduler.now(),t)},U.prototype.run=function(t,e){return e.periodic(this.period,_.event(this.value,t))},z.prototype.run=function(){return this.task.run(this.time)},z.prototype.error=function(t){return this.task.error(this.time,t)},z.prototype.dispose=function(){return this.scheduler.cancel(this),this.task.dispose()},G.prototype.now=function(){return this.timer.now()},G.prototype.asap=function(t){return this.schedule(0,-1,t)},G.prototype.delay=function(t,e){return this.schedule(t,-1,e)},G.prototype.periodic=function(t,e){return this.schedule(0,t,e)},G.prototype.schedule=function(t,e,n){var i=this.now(),r=new z(i+Math.max(0,t),e,n,this);return this.timeline.add(r),this._scheduleNextRun(i),r},G.prototype.cancel=function(t){t.active=!1,this.timeline.remove(t)&&this._reschedule()},G.prototype.cancelAll=function(t){this.timeline.removeAll(t),this._reschedule()},G.prototype._reschedule=function(){this.timeline.isEmpty()?this._unschedule():this._scheduleNextRun(this.now())},G.prototype._unschedule=function(){this.timer.clearTimer(this._timer),this._timer=null},G.prototype._scheduleNextRun=function(t){if(!this.timeline.isEmpty()){var e=this.timeline.nextArrival();null===this._timer?this._scheduleNextArrival(e,t):e<this._nextArrival&&(this._unschedule(),this._scheduleNextArrival(e,t))}},G.prototype._scheduleNextArrival=function(t,e){this._nextArrival=t;var n=Math.max(0,t-e);this._timer=this.timer.setTimer(this._runReadyTasksBound,n)},G.prototype._runReadyTasks=function(t){this._timer=null,this.timeline.runTasks(t,F),this._scheduleNextRun(this.now())},H.prototype.now=Date.now,H.prototype.setTimer=function(t,e){return e<=0?function(t){var e=new J(t);return O(e),e}(t):setTimeout(t,e)},H.prototype.clearTimer=function(t){return t instanceof J?t.cancel():clearTimeout(t)},J.prototype.run=function(){return this.active&&this.f()},J.prototype.error=function(t){throw t},J.prototype.cancel=function(){this.active=!1},K.prototype.nextArrival=function(){return this.isEmpty()?1/0:this.tasks[0].time},K.prototype.isEmpty=function(){return 0===this.tasks.length},K.prototype.add=function(t){Q(t,this.tasks)},K.prototype.remove=function(t){var e=Y(t.time,this.tasks);if(e>=0&&e<this.tasks.length){var n=u(t,this.tasks[e].events);if(n>=0)return this.tasks[e].events.splice(n,1),!0}return!1},K.prototype.removeAll=function(t){for(var e=0,n=this.tasks.length;e<n;++e)X(t,this.tasks[e])},K.prototype.runTasks=function(t,e){for(var n=this.tasks,i=n.length,r=0;r<i&&n[r].time<=t;)++r;this.tasks=n.slice(r);for(var o=0;o<r;++o)this.tasks=function(t,e,n){for(var i=e.events,r=0;r<i.length;++r){var o=i[r];o.active&&(t(o),o.period>=0&&o.active&&(o.time=o.time+o.period,Q(o,n)))}return n}(e,n[o],this.tasks)};var ei=new G(new H,new K);$.prototype.event=function(t,e){this.disposable.disposed||"function"!=typeof this.subscriber.next||this.subscriber.next(e)},$.prototype.end=function(t,e){if(!this.disposable.disposed){var n=this.subscriber,i=this.fatalError;Promise.resolve(this.disposable.dispose()).then(function(){"function"==typeof n.complete&&n.complete(e)}).catch(function(t){et(t,n,i)})}},$.prototype.error=function(t,e){var n=this.subscriber,i=this.fatalError;Promise.resolve(this.disposable.dispose()).then(function(){et(e,n,i)})},tt.prototype.unsubscribe=function(){this.disposable.dispose()},nt.prototype.run=function(t,e){function n(n){S(e.now(),n,t)}return this.source.addEventListener(this.event,n,this.capture),f(it,{target:this,addEvent:n})},rt.prototype.event=function(t,e){this.active&&(0===this.events.length&&O(new ot(this.sink,t,this.events)),this.events.push({time:t,value:e}))},rt.prototype.end=function(t,e){this.active&&this._end(new st(t,e,this.sink))},rt.prototype.error=function(t,e){this._end(new ut(t,e,this.sink))},rt.prototype._end=function(t){this.active=!1,O(t)},ot.prototype.run=function(){for(var t,e=this.events,n=this.sink,i=0,r=e.length;i<r;++i)t=e[i],this.time=t.time,n.event(t.time,t.value);e.length=0},ot.prototype.error=function(t){this.sink.error(this.time,t)},st.prototype.run=function(){this.sink.end(this.time,this.value)},st.prototype.error=function(t){this.sink.error(this.time,t)},ut.prototype.run=function(){this.sink.error(this.time,this.value)},ut.prototype.error=function(t){throw t},ht.prototype.run=function(t,e){function n(t){var n=arguments,r=arguments.length;if(r>1){for(var o=new Array(r),s=0;s<r;++s)o[s]=n[s];S(e.now(),o,i)}else S(e.now(),t,i)}var i=new rt(t);return this.source.addListener(this.event,n),f(pt,{target:this,addEvent:n})},ft.prototype.event=function(t,e){},ft.prototype.end=function(t,e){this.active&&(this.active=!1,at(this._end,this._error,this._disposable,e))},ft.prototype.error=function(t,e){this.active=!1,at(this._error,this._error,this._disposable,e)},dt.prototype.event=function(t,e){return this.sink.event(t,e)},dt.prototype.end=function(t,e){return this.sink.end(t,e)},dt.prototype.error=function(t,e){return this.sink.error(t,e)},lt.create=function(t,e){return e instanceof lt?new lt(function(t,e){return function(n){return t(n)&&e(n)}}(e.p,t),e.source):new lt(t,e)},lt.prototype.run=function(t,e){return this.source.run(new yt(this.p,t),e)},yt.prototype.end=dt.prototype.end,yt.prototype.error=dt.prototype.error,yt.prototype.event=function(t,e){(0,this.p)(e)&&this.sink.event(t,e)},vt.prototype.run=function(t,e){return this.source.run(new wt(this.p,this.f,t),e)},wt.prototype.event=function(t,e){var n=this.f;(0,this.p)(e)&&this.sink.event(t,n(e))},wt.prototype.end=dt.prototype.end,wt.prototype.error=dt.prototype.error,kt.create=function(t,e){return e instanceof kt?new kt(function(t,e){return function(n){return t(e(n))}}(t,e.f),e.source):e instanceof lt?new vt(e.p,t,e.source):new kt(t,e)},kt.prototype.run=function(t,e){return this.source.run(new mt(this.f,t),e)},mt.prototype.end=dt.prototype.end,mt.prototype.error=dt.prototype.error,mt.prototype.event=function(t,e){var n=this.f;this.sink.event(t,n(e))},xt.prototype.run=function(t,e){return this.source.run(new Et(this.f,t),e)},Et.prototype.end=dt.prototype.end,Et.prototype.error=dt.prototype.error,Et.prototype.event=function(t,e){(0,this.f)(e),this.sink.event(t,e)},Mt.prototype.run=function(t,e){return this.source.run(new Rt(this.step,this.seed,t),e)},Rt.prototype.error=dt.prototype.error,Rt.prototype.event=function(t,e){var n=this.step(this.seed,e);this.seed=n.seed,this.sink.event(t,n.value)},Rt.prototype.end=function(t){this.sink.end(t,this.seed)},Wt.prototype.run=function(t,e){return d([e.asap(_.event(this.value,t)),this.source.run(new Lt(this.f,this.value,t),e)])},Lt.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},Lt.prototype.error=dt.prototype.error,Lt.prototype.end=dt.prototype.end,Nt.prototype.run=function(t,e){return this.source.run(new St(this.f,this.value,t),e)},St.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},St.prototype.error=dt.prototype.error,St.prototype.end=function(t){this.sink.end(t,this.value)},qt.prototype.run=function(t,e){return new Bt(this.f,this.value,t,e)},Bt.prototype.dispose=function(){this.active=!1},Dt.prototype.run=function(t,e){return new Vt(this.f,this.value,t,e)},Vt.prototype.dispose=function(){this.active=!1},zt.prototype.run=function(t,e){return new Ot(this.f.apply(void 0,this.args),t,e)},Ot.prototype.dispose=function(){this.active=!1},Jt.prototype.run=function(t,e){return new Kt(this.f,this.source,t,e)},Kt.prototype.error=dt.prototype.error,Kt.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},Kt.prototype.end=function(t,e){this.active&&(c(t,this.disposable,this.sink),this._startNext(t,e,this.sink))},Kt.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},Kt.prototype._continue=function(t,e,n){return t(e).source.run(n,this.scheduler)},Kt.prototype.dispose=function(){return this.active=!1,this.disposable.dispose()},Yt.prototype.event=function(t,e){this.active&&(this.value=e,this.sink.event(t,this))},Yt.prototype.end=function(t,e){this.active&&(this.active=!1,this.sink.end(t,{index:this.index,value:e}))},Yt.prototype.error=dt.prototype.error;var ni=r,ii=i;ne.prototype.run=function(t,e){for(var n,i=this.sources.length,r=new Array(i),o=new Array(i),s=new ie(r,o,t,this.f),u=0;u<i;++u)n=o[u]=new Yt(u,s),r[u]=this.sources[u].run(n,e);return d(r)},ie.prototype.error=dt.prototype.error,ie.prototype.event=function(t,e){var n=e.index,i=this._updateReady(n);this.values[n]=e.value,0===i&&this.sink.event(t,Zt(this.f,this.values))},ie.prototype._updateReady=function(t){return this.awaiting>0&&(this.hasValue[t]||(this.hasValue[t]=!0,this.awaiting-=1)),this.awaiting},ie.prototype.end=function(t,e){c(t,this.disposables[e.index],this.sink),0==--this.activeCount&&this.sink.end(t,e.value)},se.prototype.run=function(t,e){var n=this.transducer(new he(t));return this.source.run(new ue(function(t){return"function"==typeof t["@@transducer/step"]?new pe(t):new ce(t)}(n),t),e)},ue.prototype.event=function(t,e){var n=this.xf.step(t,e);return this.xf.isReduced(n)?this.sink.end(t,this.xf.getResult(n)):n},ue.prototype.end=function(t,e){return this.xf.result(e)},ue.prototype.error=function(t,e){return this.sink.error(t,e)},he.prototype["@@transducer/init"]=he.prototype.init=function(){},he.prototype["@@transducer/step"]=he.prototype.step=function(t,e){return isNaN(t)||(this.time=Math.max(t,this.time)),this.sink.event(this.time,e)},he.prototype["@@transducer/result"]=he.prototype.result=function(t){return this.sink.end(this.time,t)},pe.prototype.step=function(t,e){return this.tx["@@transducer/step"](t,e)},pe.prototype.result=function(t){return this.tx["@@transducer/result"](t)},pe.prototype.isReduced=function(t){return null!=t&&t["@@transducer/reduced"]},pe.prototype.getResult=function(t){return t["@@transducer/value"]},ce.prototype.step=function(t,e){return this.tx.step(t,e)},ce.prototype.result=function(t){return this.tx.result(t)},ce.prototype.isReduced=function(t){return null!=t&&t.__transducers_reduced__},ce.prototype.getResult=function(t){return t.value},fe.prototype.add=function(t){null!==this.head&&(this.head.prev=t,t.next=this.head),this.head=t,++this.length},fe.prototype.remove=function(t){--this.length,t===this.head&&(this.head=this.head.next),null!==t.next&&(t.next.prev=t.prev,t.next=null),null!==t.prev&&(t.prev.next=t.next,t.prev=null)},fe.prototype.isEmpty=function(){return 0===this.length},fe.prototype.dispose=function(){if(this.isEmpty())return Promise.resolve();var t=[],e=this.head;for(this.head=null,this.length=0;null!==e;)t.push(e.dispose()),e=e.next;return Promise.all(t)},le.prototype.run=function(t,e){return new ye(this.f,this.concurrency,this.source,t,e)},ye.prototype.event=function(t,e){this._addInner(t,e)},ye.prototype._addInner=function(t,e){this.current.length<this.concurrency?this._startInner(t,e):this.pending.push(e)},ye.prototype._startInner=function(t,e){try{this._initInner(t,e)}catch(e){this.error(t,e)}},ye.prototype._initInner=function(t,e){var n=new ve(t,this,this.sink);n.disposable=function(t,e,n,i){return t(e).source.run(n,i)}(this.f,e,n,this.scheduler),this.current.add(n)},ye.prototype.end=function(t,e){this.active=!1,c(t,this.disposable,this.sink),this._checkEnd(t,e)},ye.prototype.error=function(t,e){this.active=!1,this.sink.error(t,e)},ye.prototype.dispose=function(){return this.active=!1,this.pending.length=0,Promise.all([this.disposable.dispose(),this.current.dispose()])},ye.prototype._endInner=function(t,e,n){this.current.remove(n),c(t,n,this),0===this.pending.length?this._checkEnd(t,e):this._startInner(t,this.pending.shift())},ye.prototype._checkEnd=function(t,e){!this.active&&this.current.isEmpty()&&this.sink.end(t,e)},ve.prototype.event=function(t,e){this.sink.event(Math.max(t,this.time),e)},ve.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.time),e,this)},ve.prototype.error=function(t,e){this.outer.error(Math.max(t,this.time),e)},ve.prototype.dispose=function(){return this.disposable.dispose()};var ri=function(t){for(var e=t.length,n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n},oi=function(t,e,n){for(var i=e,r=0,o=n.length;r<o;++r)i=t(i,n[r],r);return i};ge.prototype.run=function(t,e){for(var n,i=this.sources.length,r=new Array(i),o=new Array(i),s=new xe(r,o,t),u=0;u<i;++u)n=o[u]=new Yt(u,s),r[u]=this.sources[u].run(n,e);return d(r)},xe.prototype.error=dt.prototype.error,xe.prototype.event=function(t,e){this.sink.event(t,e.value)},xe.prototype.end=function(t,e){c(t,this.disposables[e.index],this.sink),0==--this.activeCount&&this.sink.end(t,e.value)},Pe.prototype.run=function(t,e){for(var n,i=this.sources.length,r=new Array(i+1),o=new Array(i),s=new Re(this.f,o,t),u=0;u<i;++u)n=o[u]=new Me(s),r[u]=this.sources[u].run(n,e);return r[u]=this.sampler.run(s,e),d(r)},Me.prototype.event=function(t,e){this.value=e,this.hasValue=!0,this.sink._notify(this)},Me.prototype.end=function(){},Me.prototype.error=dt.prototype.error,Re.prototype._notify=function(){this.active||(this.active=this.sinks.every(Ie))},Re.prototype.event=function(t){this.active&&this.sink.event(t,Zt(this.f,r(We,this.sinks)))},Re.prototype.end=dt.prototype.end,Re.prototype.error=dt.prototype.error,Le.prototype.push=function(t){var e=this._length;this._checkCapacity(e+1);this[this._head+e&this._capacity-1]=t,this._length=e+1},Le.prototype.shift=function(){var t=this._head,e=this[t];return this[t]=void 0,this._head=t+1&this._capacity-1,this._length--,e},Le.prototype.isEmpty=function(){return 0===this._length},Le.prototype.length=function(){return this._length},Le.prototype._checkCapacity=function(t){this._capacity<t&&this._ensureCapacity(this._capacity<<1)},Le.prototype._ensureCapacity=function(t){var e=this._capacity;this._capacity=t;var n=this._head+this._length;n>e&&function(t,e,n,i,r){for(var o=0;o<r;++o)n[o+i]=t[o+e],t[o+e]=void 0}(this,0,this,e,n&e-1)};var si=r,ui=i;Se.prototype.run=function(t,e){for(var n,i=this.sources.length,r=new Array(i),o=new Array(i),s=new Array(i),u=new qe(this.f,s,o,t),h=0;h<i;++h)s[h]=new Le,n=o[h]=new Yt(h,u),r[h]=this.sources[h].run(n,e);return d(r)},qe.prototype.event=function(t,e){var n=this.buffers,i=n[e.index];if(i.push(e.value),1===i.length()){if(!function(t){for(var e=0,n=t.length;e<n;++e)if(t[e].isEmpty())return!1;return!0}(this.buffers))return;!function(t,e,n,i){i.event(e,Zt(t,si(Be,n)))}(this.f,t,n,this.sink),function(t,e){for(var n=0,i=t.length;n<i;++n)if(t[n].isEmpty()&&!e[n].active)return!0;return!1}(this.buffers,this.sinks)&&this.sink.end(t,void 0)}},qe.prototype.end=function(t,e){this.buffers[e.index].isEmpty()&&this.sink.end(t,e.value)},qe.prototype.error=dt.prototype.error,De.prototype.run=function(t,e){var n=new Ve(t,e);return d([n,this.source.run(n,e)])},Ve.prototype.event=function(t,e){this._disposeCurrent(t),this.current=new Ue(t,1/0,this,this.sink),this.current.disposable=e.source.run(this.current,this.scheduler)},Ve.prototype.end=function(t,e){this.ended=!0,this._checkEnd(t,e)},Ve.prototype.error=function(t,e){this.ended=!0,this.sink.error(t,e)},Ve.prototype.dispose=function(){return this._disposeCurrent(this.scheduler.now())},Ve.prototype._disposeCurrent=function(t){if(null!==this.current)return this.current._dispose(t)},Ve.prototype._disposeInner=function(t,e){e._dispose(t),e===this.current&&(this.current=null)},Ve.prototype._checkEnd=function(t,e){this.ended&&null===this.current&&this.sink.end(t,e)},Ve.prototype._endInner=function(t,e,n){this._disposeInner(t,n),this._checkEnd(t,e)},Ve.prototype._errorInner=function(t,e,n){this._disposeInner(t,n),this.sink.error(t,e)},Ue.prototype.event=function(t,e){t<this.max&&this.sink.event(Math.max(t,this.min),e)},Ue.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.min),e,this)},Ue.prototype.error=function(t,e){this.outer._errorInner(Math.max(t,this.min),e,this)},Ue.prototype._dispose=function(t){this.max=t,c(t,this.disposable,this.sink)},Ge.prototype.run=function(t,e){return this.source.run(new He(this.equals,t),e)},He.prototype.end=dt.prototype.end,He.prototype.error=dt.prototype.error,He.prototype.event=function(t,e){this.init?(this.init=!1,this.value=e,this.sink.event(t,e)):this.equals(this.value,e)||(this.value=e,this.sink.event(t,e))},Ze.prototype.run=function(t,e){var n=v(),i=new $e(this.min,this.max-this.min,t,n);return n.setDisposable(this.source.run(i,e)),n},$e.prototype.end=dt.prototype.end,$e.prototype.error=dt.prototype.error,$e.prototype.event=function(t,e){this.skip>0?this.skip-=1:0!==this.take&&(this.take-=1,this.sink.event(t,e),0===this.take&&(this.disposable.dispose(),this.sink.end(t,e)))},en.prototype.run=function(t,e){var n=v(),i=new nn(this.p,t,n);return n.setDisposable(this.source.run(i,e)),n},nn.prototype.end=dt.prototype.end,nn.prototype.error=dt.prototype.error,nn.prototype.event=function(t,e){if(this.active){var n=this.p;this.active=n(e),this.active?this.sink.event(t,e):(this.disposable.dispose(),this.sink.end(t,e))}},on.prototype.run=function(t,e){return this.source.run(new sn(this.p,t),e)},sn.prototype.end=dt.prototype.end,sn.prototype.error=dt.prototype.error,sn.prototype.event=function(t,e){if(this.skipping){var n=this.p;if(this.skipping=n(e),this.skipping)return}this.sink.event(t,e)},hn.prototype.run=function(t,e){return this.source.run(new pn(this.p,t),e)},pn.prototype.event=function(t,e){if(!this.skipping){var n=this.p;this.skipping=n(e),this.sink.event(t,e),this.skipping&&this.sink.end(t,e)}},pn.prototype.end=dt.prototype.end,pn.prototype.error=dt.prototype.error,dn.prototype.run=function(t,e){var n=new yn(-1/0,t),i=new kn(this.maxSignal,t,e);return d([n,i,this.source.run(new vn(n,i,t),e)])},ln.prototype.run=function(t,e){var n=new wn(this.minSignal,t,e),i=new yn(1/0,t);return d([n,i,this.source.run(new vn(n,i,t),e)])},yn.prototype.error=dt.prototype.error,yn.prototype.event=mn,yn.prototype.end=mn,yn.prototype.dispose=mn,vn.prototype.event=function(t,e){t>=this.min.value&&t<this.max.value&&this.sink.event(t,e)},vn.prototype.error=dt.prototype.error,vn.prototype.end=dt.prototype.end,wn.prototype.event=function(t){t<this.value&&(this.value=t)},wn.prototype.end=mn,wn.prototype.error=dt.prototype.error,wn.prototype.dispose=function(){return this.disposable.dispose()},kn.prototype.event=function(t,e){t<this.value&&(this.value=t,this.sink.end(t,e))},kn.prototype.end=mn,kn.prototype.error=dt.prototype.error,kn.prototype.dispose=function(){return this.disposable.dispose()},bn.prototype.run=function(t,e){var n=new gn(this.dt,t,e);return d([n,this.source.run(n,e)])},gn.prototype.dispose=function(){var t=this;this.scheduler.cancelAll(function(e){return e.task.sink===t.sink})},gn.prototype.event=function(t,e){this.scheduler.delay(this.dt,_.event(e,this.sink))},gn.prototype.end=function(t,e){this.scheduler.delay(this.dt,_.end(e,this.sink))},gn.prototype.error=dt.prototype.error,En.prototype.run=function(t,e){return this.source.run(new An(t),e)},An.prototype.end=dt.prototype.end,An.prototype.error=dt.prototype.error,An.prototype.event=function(t,e){this.sink.event(t,{time:t,value:e})},Mn.prototype.run=function(t,e){return this.source.run(new Rn(this.period,t),e)},Rn.prototype.event=function(t,e){t>=this.time&&(this.time=t+this.period,this.sink.event(t,e))},Rn.prototype.end=dt.prototype.end,Rn.prototype.error=dt.prototype.error,Wn.prototype.run=function(t,e){return new Ln(this.dt,this.source,t,e)},Ln.prototype.event=function(t,e){this._clearTimer(),this.value=e,this.timer=this.scheduler.delay(this.dt,new Cn(this,e))},Ln.prototype._event=function(t,e){this._clearTimer(),this.sink.event(t,e)},Ln.prototype.end=function(t,e){this._clearTimer()&&(this.sink.event(t,this.value),this.value=void 0),this.sink.end(t,e)},Ln.prototype.error=function(t,e){this._clearTimer(),this.sink.error(t,e)},Ln.prototype.dispose=function(){return this._clearTimer(),this.disposable.dispose()},Ln.prototype._clearTimer=function(){return null!==this.timer&&(this.timer.dispose(),this.timer=null,!0)},Cn.prototype.run=function(t){this.debounce._event(t,this.value)},Cn.prototype.error=function(t,e){this.debounce.error(t,e)},Cn.prototype.dispose=function(){},Sn.prototype.run=function(t,e){return new qn(this.source,t,e)},qn.prototype.dispose=function(){return this.active=!1,this.disposable.dispose()},qn.prototype.event=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._event(e)}).catch(this._errorBound)},qn.prototype.end=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._end(e)}).catch(this._errorBound)},qn.prototype.error=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._errorBound(e)}).catch(m)},qn.prototype._event=function(t){return t.then(this._eventBound)},qn.prototype._end=function(t){return Promise.resolve(t).then(this._endBound)},Bn.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},Bn.prototype.end=function(t,e){this.active&&(this.disable(),this.sink.end(t,e))},Bn.prototype.error=function(t,e){this.disable(),this.sink.error(t,e)},Bn.prototype.disable=function(){return this.active=!1,this.sink};var hi=jn;Dn.prototype.run=function(t,e){return e.asap(new _(Vn,this.value,t))},Un.prototype.run=function(t,e){return new zn(this.f,this.source,t,e)},zn.prototype.event=function(t,e){S(t,e,this.sink)},zn.prototype.end=function(t,e){q(t,e,this.sink)},zn.prototype.error=function(t,e){var n=this.sink.disable();c(t,this.disposable,this.sink),this._startNext(t,e,n)},zn.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},zn.prototype._continue=function(t,e,n){return t(e).source.run(n,this.scheduler)},zn.prototype.dispose=function(){return this.disposable.dispose()};var pi=function(t,e){this.source=t,this.sink=e,this.disposed=!1};pi.prototype.dispose=function(){if(!this.disposed){this.disposed=!0;return 0===this.source.remove(this.sink)&&this.source._dispose()}};var ci=function(t){return t.dispose()},fi={dispose:function(){}},ai=function(t){this.source=t,this.sinks=[],this._disposable=fi};ai.prototype.run=function(t,e){return 1===this.add(t)&&(this._disposable=this.source.run(this,e)),new pi(this,t)},ai.prototype._dispose=function(){var t=this._disposable;return this._disposable=fi,Promise.resolve(t).then(ci)},ai.prototype.add=function(t){return this.sinks=function(t,e){for(var n=e.length,i=new Array(n+1),r=0;r<n;++r)i[r]=e[r];return i[n]=t,i}(t,this.sinks),this.sinks.length},ai.prototype.remove=function(t){var e=u(t,this.sinks);return e>=0&&(this.sinks=s(e,this.sinks)),this.sinks.length},ai.prototype.event=function(t,e){var n=this.sinks;if(1===n.length)return n[0].event(t,e);for(var i=0;i<n.length;++i)On(t,e,n[i])},ai.prototype.end=function(t,e){for(var n=this.sinks,i=0;i<n.length;++i)Fn(t,e,n[i])},ai.prototype.error=function(t,e){for(var n=this.sinks,i=0;i<n.length;++i)n[i].error(t,e)},e.of=E,e.empty=P,e.from=V,e.prototype.subscribe=function(t){return function(t,e){if(Object(t)!==t)throw new TypeError("subscriber must be an object");var n=v(),i=new $(m,t,n);return n.setDisposable(e.source.run(i,ei)),new tt(n)}(t,this)},e.prototype[ti]=function(){return this},e.prototype.thru=function(t){return function(t,e){return t(e)}(t,this)},e.prototype.observe=e.prototype.forEach=function(t){return At(t,this)},e.prototype.drain=function(){return Tt(this)},e.prototype.loop=function(t,e){return Pt(t,e,this)},e.prototype.scan=function(t,e){return It(t,e,this)},e.prototype.reduce=function(t,e){return Ct(t,e,this)},e.prototype.concat=function(t){return Xt(this,t)},e.prototype.startWith=function(t){return Qt(t,this)},e.prototype.map=function(t){return _t(t,this)},e.prototype.ap=function(t){return re(this,t)},e.prototype.constant=function(t){return bt(t,this)},e.prototype.tap=function(t){return gt(t,this)},e.prototype.transduce=function(t){return oe(t,this)},e.prototype.chain=function(t){return we(t,this)},e.prototype.flatMap=e.prototype.chain,e.prototype.join=function(){return ke(this)},e.prototype.continueWith=function(t){return Ht(t,this)},e.prototype.flatMapEnd=e.prototype.continueWith,e.prototype.concatMap=function(t){return me(t,this)},e.prototype.mergeConcurrently=function(t){return ae(t,this)},e.prototype.merge=function(){return _e(function(t,e){var n=e.length,i=new Array(n+1);i[0]=t;for(var r=0;r<n;++r)i[r+1]=e[r];return i}(this,arguments))},e.prototype.combine=function(t){return te(t,o(this,0,arguments))},e.prototype.sampleWith=function(t){return Ee(t,this)},e.prototype.sample=function(t){return Ae(t,this,i(arguments))},e.prototype.zip=function(t){return Ce(t,o(this,0,arguments))},e.prototype.switchLatest=function(){return je(this)},e.prototype.switch=e.prototype.switchLatest,e.prototype.filter=function(t){return ze(t,this)},e.prototype.skipRepeats=function(){return Oe(this)},e.prototype.skipRepeatsWith=function(t){return Fe(t,this)},e.prototype.take=function(t){return Ke(t,this)},e.prototype.skip=function(t){return Qe(t,this)},e.prototype.slice=function(t,e){return Xe(t,e,this)},e.prototype.takeWhile=function(t){return tn(t,this)},e.prototype.skipWhile=function(t){return rn(t,this)},e.prototype.skipAfter=function(t){return un(t,this)},e.prototype.until=function(t){return cn(t,this)},e.prototype.takeUntil=e.prototype.until,e.prototype.since=function(t){return fn(t,this)},e.prototype.skipUntil=e.prototype.since,e.prototype.during=function(t){return an(t,this)},e.prototype.delay=function(t){return _n(t,this)},e.prototype.timestamp=function(){return xn(this)},e.prototype.throttle=function(t){return Tn(t,this)},e.prototype.debounce=function(t){return In(t,this)},e.prototype.awaitPromises=function(){return Nn(this)},e.prototype.await=e.prototype.awaitPromises,e.prototype.recoverWith=function(t){return hi(t,this)},e.prototype.flatMapError=e.prototype.recoverWith,e.prototype.multicast=function(){return Gn(this)},t.Stream=e,t.of=E,t.just=E,t.empty=P,t.never=function(){return Yn},t.from=V,t.periodic=function(t,n){return new e(new U(t,n))},t.observe=At,t.forEach=At,t.drain=Tt,t.loop=Pt,t.scan=It,t.reduce=Ct,t.concat=Xt,t.startWith=Qt,t.map=_t,t.constant=bt,t.tap=gt,t.ap=re,t.transduce=oe,t.flatMap=we,t.chain=we,t.join=ke,t.continueWith=Ht,t.flatMapEnd=Ht,t.concatMap=me,t.mergeConcurrently=ae,t.merge=function(){return _e(ri(arguments))},t.mergeArray=_e,t.combine=$t,t.combineArray=te,t.sample=function(t,e){return Ae(t,e,n(2,arguments))},t.sampleArray=Ae,t.sampleWith=Ee,t.zip=function(t){return Ce(t,ui(arguments))},t.zipArray=Ce,t.switchLatest=je,t.switch=je,t.filter=ze,t.skipRepeats=Oe,t.distinct=Oe,t.skipRepeatsWith=Fe,t.distinctBy=Fe,t.take=Ke,t.skip=Qe,t.slice=Xe,t.takeWhile=tn,t.skipWhile=rn,t.skipAfter=un,t.takeUntil=cn,t.until=cn,t.skipUntil=fn,t.since=fn,t.during=an,t.delay=_n,t.timestamp=xn,t.throttle=Tn,t.debounce=In,t.fromPromise=function(t){return Nn(E(t))},t.awaitPromises=Nn,t.await=Nn,t.recoverWith=jn,t.flatMapError=hi,t.throwError=function(t){return new e(new Dn(t))},t.multicast=Gn,t.defaultScheduler=ei,t.PropagateTask=_,t.fromEvent=function(t,n,i){var r;if("function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener)arguments.length<3&&(i=!1),r=new nt(t,n,i);else{if("function"!=typeof n.addListener||"function"!=typeof n.removeListener)throw new Error("source must support addEventListener/removeEventListener or addListener/removeListener");r=new ht(t,n)}return new e(r)},t.unfold=function(t,n){return new e(new qt(t,n))},t.iterate=function(t,n){return new e(new Dt(t,n))},t.generate=function(t){return new e(new zt(t,i(arguments)))},Object.defineProperty(t,"__esModule",{value:!0})});
|