{"size": 43694, "ext": "js", "max_stars_repo_path": "node_modules/kefir/dist/kefir.min.js", "max_stars_repo_name": "gmmorris/kafir-stream-from-an-array-of-promises", "max_stars_repo_stars_event_min_datetime": "2016-06-24T09:10:01.000Z", "max_stars_repo_stars_event_max_datetime": "2016-06-24T09:10:01.000Z", "max_issues_repo_path": "node_modules/kefir/dist/kefir.min.js", "max_issues_repo_name": "gmmorris/kafir-stream-from-an-array-of-promises", "max_issues_repo_issues_event_min_datetime": "2016-06-27T15:07:13.000Z", "max_issues_repo_issues_event_max_datetime": "2016-12-10T08:18:15.000Z", "max_forks_repo_path": "addon/vendor/kefir.min.js", "max_forks_repo_name": "wmakeev/moysklad-gmail-chrome-extension", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 7282.3333333333, "max_line_length": 32012, "alphanum_fraction": 0.7379045178}
/*! Kefir.js v3.2.3
 *  https://github.com/rpominov/kefir
 */
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.Kefir=t.Kefir||{})}(this,function(t){"use strict";function n(t,n){return n={exports:{}},t(n,n.exports,rn),n.exports}function i(t){var n=function(){};return n.prototype=t,new n}function e(t){var n=arguments.length,i=void 0,e=void 0;for(i=1;n>i;i++)for(e in arguments[i])t[e]=arguments[i][e];return t}function r(t,n){var r=arguments.length,u=void 0;for(t.prototype=i(n.prototype),t.prototype.constructor=t,u=2;r>u;u++)e(t.prototype,arguments[u]);return t}function u(t,n){var i=void 0,e=void 0,r=void 0,u=void 0;if(0===t.length)return n;if(0===n.length)return t;for(u=0,i=new Array(t.length+n.length),e=t.length,r=0;e>r;r++,u++)i[u]=t[r];for(e=n.length,r=0;e>r;r++,u++)i[u]=n[r];return i}function s(t,n){var i=t.length,e=void 0;for(e=0;i>e;e++)if(t[e]===n)return e;return-1}function o(t,n){var i=t.length,e=void 0;for(e=0;i>e;e++)if(n(t[e]))return e;return-1}function h(t){var n=t.length,i=new Array(n),e=void 0;for(e=0;n>e;e++)i[e]=t[e];return i}function a(t,n){var i=t.length,e=void 0,r=void 0,u=void 0;if(n>=0&&i>n){if(1===i)return[];for(e=new Array(i-1),r=0,u=0;i>r;r++)r!==n&&(e[u]=t[r],u++);return e}return t}function l(t,n){var i=t.length,e=new Array(i),r=void 0;for(r=0;i>r;r++)e[r]=n(t[r]);return e}function _(t,n){var i=t.length,e=void 0;for(e=0;i>e;e++)n(t[e])}function f(t,n){var i=t.length,e=void 0;for(e=0;i>e;e++)t[e]=n}function c(t,n){return-1!==s(t,n)}function d(t,n,i){var e=Math.min(i,t.length+1),r=t.length-e+1,u=new Array(e),s=void 0;for(s=r;e>s;s++)u[s-r]=t[s];return u[e-1]=n,u}function v(t,n,i){t===an?n(i):t===i.type&&(t===on||t===hn?n(i.value):n())}function m(){this._items=[],this._inLoop=0,this._removedItems=null}function p(){this._dispatcher=new m,this._active=!1,this._alive=!0,this._activating=!1,this._logHandlers=null}function y(){p.call(this)}function E(){p.call(this),this._currentEvent=null}function g(){return ln}function b(t){function n(t,n){var i=this;y.call(this),this._wait=t,this._intervalId=null,this._$onTick=function(){return i._onTick()},this._init(n)}return r(n,y,{_init:function(){},_free:function(){},_onTick:function(){},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null)},_clear:function(){y.prototype._clear.call(this),this._$onTick=null,this._free()}},t),n}function A(t,n){return new _n(t,{x:n})}function w(t,n){return new fn(t,{x:n})}function V(t,n){return 0===n.length?g():new cn(t,{xs:n})}function S(t,n){return new dn(t,{fn:n})}function T(t){function n(n){return t._emitValue(n),t._active}function i(n){return t._emitError(n),t._active}function e(){return t._emitEnd(),t._active}function r(n){return t._emit(n.type,n.value),t._active}return{value:n,error:i,end:e,event:r,emit:n,emitEvent:r}}function $(t,n){return new vn(t,{fn:n})}function C(t){y.call(this),this._fn=t,this._unsubscribe=null}function k(t){return new C(t)}function I(t){var n=!1;return k(function(i){n||(t(function(t){i.emit(t),i.end()}),n=!0)}).setName("fromCallback")}function x(t){var n=!1;return k(function(i){n||(t(function(t,n){t?i.error(t):i.emit(n),i.end()}),n=!0)}).setName("fromNodeCallback")}function L(t,n){switch(n){case 0:return function(){return t()};case 1:return function(n){return t(n[0])};case 2:return function(n){return t(n[0],n[1])};case 3:return function(n){return t(n[0],n[1],n[2])};case 4:return function(n){return t(n[0],n[1],n[2],n[3])};default:return function(n){return t.apply(null,n)}}}function O(t,n,i){var e=i?i.length:0;if(null==n)switch(e){case 0:return t();case 1:return t(i[0]);case 2:return t(i[0],i[1]);case 3:return t(i[0],i[1],i[2]);case 4:return t(i[0],i[1],i[2],i[3]);default:return t.apply(null,i)}else switch(e){case 0:return t.call(n);default:return t.apply(n,i)}}function P(t,n,i){return k(function(e){var r=i?function(){e.emit(O(i,this,arguments))}:function(t){e.emit(t)};return t(r),function(){return n(r)}}).setName("fromSubUnsub")}function D(t,n,i){for(var e=void 0,r=void 0,u=0;u<mn.length;u++)if("function"==typeof t[mn[u][0]]&&"function"==typeof t[mn[u][1]]){e=mn[u][0],r=mn[u][1];break}if(void 0===e)throw new Error("target don't support any of addEventListener/removeEventListener, addListener/removeListener, on/off method pair");return P(function(i){return t[e](n,i)},function(i){return t[r](n,i)},i).setName("fromEvents")}function M(t){this._currentEvent={type:"value",value:t,current:!0}}function N(t){return new M(t)}function q(t){this._currentEvent={type:"error",value:t,current:!0}}function W(t){return new q(t)}function B(t,n){return function(i,e){var r=this;t.call(this),this._source=i,this._name=i._name+"."+n,this._init(e),this._$handleAny=function(t){return r._handleAny(t)}}}function H(t){return{_init:function(){},_free:function(){},_handleValue:function(t){this._emitValue(t)},_handleError:function(t){this._emitError(t)},_handleEnd:function(){this._emitEnd()},_handleAny:function(t){switch(t.type){case on:return this._handleValue(t.value);case hn:return this._handleError(t.value);case sn:return this._handleEnd()}},_onActivation:function(){this._source.onAny(this._$handleAny)},_onDeactivation:function(){this._source.offAny(this._$handleAny)},_clear:function(){t.prototype._clear.call(this),this._source=null,this._$handleAny=null,this._free()}}}function U(t,n){var i=B(y,t);return r(i,y,H(y),n),i}function F(t,n){var i=B(E,t);return r(i,E,H(E),n),i}function j(t){var n=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(null!==n&&"function"!=typeof n)throw new Error("You should call toProperty() with a function or no arguments.");return new pn(t,{fn:n})}function Q(t){return new yn(t)}function Y(t){var n=!1,i=k(function(i){if(!n){var e=function(t){i.emit(t),i.end()},r=function(t){i.error(t),i.end()},u=t.then(e,r);u&&"function"==typeof u.done&&u.done(),n=!0}});return j(i,null).setName("fromPromise")}function z(){if("function"==typeof Promise)return Promise;throw new Error("There isn't default Promise, use shim or parameter")}function K(t){var n=arguments.length<=1||void 0===arguments[1]?z():arguments[1],i=null;return new n(function(n,e){t.onAny(function(t){t.type===sn&&null!==i?((i.type===on?n:e)(i.value),i=null):i=t})})}function G(t){var n=t[An]?t[An]():t;return k(function(t){var i=n.subscribe({error:function(n){t.error(n),t.end()},next:function(n){t.emit(n)},complete:function(){t.end()}});return i.unsubscribe?function(){i.unsubscribe()}:i}).setName("fromESObservable")}function J(t){this._observable=t.takeErrors(1)}function R(){return new J(this)}function X(t){var n=arguments.length<=1||void 0===arguments[1]?Tn:arguments[1];return new(t._ofSameType(Vn,Sn))(t,{fn:n})}function Z(t){var n=arguments.length<=1||void 0===arguments[1]?In:arguments[1];return new(t._ofSameType(Cn,kn))(t,{fn:n})}function tt(t,n){return new(t._ofSameType(Ln,On))(t,{n:n})}function nt(t,n){return new(t._ofSameType(Dn,Mn))(t,{n:n})}function it(t){var n=arguments.length<=1||void 0===arguments[1]?Bn:arguments[1];return new(t._ofSameType(qn,Wn))(t,{fn:n})}function et(t){return new(t._ofSameType(Un,Fn))(t)}function rt(t,n){return new(t._ofSameType(Qn,Yn))(t,{n:n})}function ut(t){var n=arguments.length<=1||void 0===arguments[1]?Jn:arguments[1];return new(t._ofSameType(Kn,Gn))(t,{fn:n})}function st(t){var n=arguments.length<=1||void 0===arguments[1]?ti:arguments[1];return new(t._ofSameType(Xn,Zn))(t,{fn:n})}function ot(t,n){return[t,n]}function ht(t,n){var i=arguments.length<=2||void 0===arguments[2]?un:arguments[2];return new(t._ofSameType(ii,ei))(t,{fn:n||ot,seed:i})}function at(t,n){var i=arguments.length<=2||void 0===arguments[2]?un:arguments[2];return new ri(t,{fn:n,seed:i})}function lt(t){var n=arguments.length<=1||void 0===arguments[1]?oi:arguments[1];return new si(t,{fn:n})}function _t(t,n){return new(t._ofSameType(li,_i))(t,{wait:n})}function ft(t,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],e=i.leading,r=void 0===e?!0:e,u=i.trailing,s=void 0===u?!0:u;return new(t._ofSameType(di,vi))(t,{wait:n,leading:r,trailing:s})}function ct(t,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],e=i.immediate,r=void 0===e?!1:e;return new(t._ofSameType(pi,yi))(t,{wait:n,immediate:r})}function dt(t){var n=arguments.length<=1||void 0===arguments[1]?Ai:arguments[1];return new(t._ofSameType(gi,bi))(t,{fn:n})}function vt(t){var n=arguments.length<=1||void 0===arguments[1]?Ti:arguments[1];return new(t._ofSameType(Vi,Si))(t,{fn:n})}function mt(t){return new(t._ofSameType(Ci,ki))(t)}function pt(t){return new(t._ofSameType(xi,Li))(t)}function yt(t){return new(t._ofSameType(Pi,Di))(t)}function Et(t,n){return new(t._ofSameType(Ni,qi))(t,{fn:n})}function gt(t,n){var i=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return new(t._ofSameType(Bi,Hi))(t,{min:i,max:n})}function bt(t,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],e=i.flushOnEnd,r=void 0===e?!0:e;return new(t._ofSameType(Fi,ji))(t,{fn:n||Qi,flushOnEnd:r})}function At(t,n){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],e=i.flushOnEnd,r=void 0===e?!0:e;return new(t._ofSameType(zi,Ki))(t,{count:n,flushOnEnd:r})}function wt(t,n,i){var e=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],r=e.flushOnEnd,u=void 0===r?!0:r;return new(t._ofSameType(Ji,Ri))(t,{wait:n,count:i,flushOnEnd:u})}function Vt(t){return{"@@transducer/step":function(n,i){return t._emitValue(i),null},"@@transducer/result":function(){return t._emitEnd(),null}}}function St(t,n){return new(t._ofSameType(Zi,te))(t,{transducer:n})}function Tt(t,n){return new(t._ofSameType(ie,ee))(t,{fn:n})}function $t(t){for(var n=void 0,i=0;i<t.length;i++)void 0!==t[i]&&(void 0===n||n.index<t[i].index)&&(n=t[i]);return n.error}function Ct(t,n,i){var e=this;y.call(this),this._activeCount=t.length,this._sources=u(t,n),this._combinator=i?L(i,this._sources.length):function(t){return t},this._aliveCount=0,this._latestValues=new Array(this._sources.length),this._latestErrors=new Array(this._sources.length),f(this._latestValues,un),this._emitAfterActivation=!1,this._endAfterActivation=!1,this._latestErrorIndex=0,this._$handlers=[];for(var r=function(t){e._$handlers.push(function(n){return e._handleAny(t,n)})},s=0;s<this._sources.length;s++)r(s)}function kt(t){var n=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],i=arguments[2];return"function"==typeof n&&(i=n,n=[]),0===t.length?g():new Ct(t,n,i)}function It(t,n){var i=this;y.call(this),this._buffers=l(t,function(t){return re(t)?h(t):[]}),this._sources=l(t,function(t){return re(t)?g():t}),this._combinator=n?L(n,this._sources.length):function(t){return t},this._aliveCount=0,this._$handlers=[];for(var e=function(t){i._$handlers.push(function(n){return i._handleAny(t,n)})},r=0;r<this._sources.length;r++)e(r)}function xt(t,n){return 0===t.length?g():new It(t,n)}function Lt(){var t=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],i=n.queueLim,e=void 0===i?0:i,r=n.concurLim,u=void 0===r?-1:r,s=n.drop,o=void 0===s?"new":s;y.call(this),this._queueLim=0>e?-1:e,this._concurLim=0>u?-1:u,this._drop=o,this._queue=[],this._curSources=[],this._$handleSubAny=function(n){return t._handleSubAny(n)},this._$endHandlers=[],this._currentlyAdding=null,0===this._concurLim&&this._emitEnd()}function Ot(t){Lt.call(this),this._addAll(t),this._initialised=!0}function Pt(t){return 0===t.length?g():new Ot(t)}function Dt(t){var n=this;y.call(this),this._generator=t,this._source=null,this._inLoop=!1,this._iteration=0,this._$handleAny=function(t){return n._handleAny(t)}}function Mt(t){return new Dt(t)}function Nt(t){return Mt(function(n){return t.length>n?t[n]:!1}).setName("concat")}function qt(){Lt.call(this)}function Wt(t,n,i){var e=this;Lt.call(this,i),this._source=t,this._fn=n,this._mainEnded=!1,this._lastCurrent=null,this._$handleMain=function(t){return e._handleMain(t)}}function Bt(t,n){Wt.call(this,t,n)}function Ht(t,n){return function(i,e,r){var u=this;t.call(this),this._primary=i,this._secondary=e,this._name=i._name+"."+n,this._lastSecondary=un,this._$handleSecondaryAny=function(t){return u._handleSecondaryAny(t)},this._$handlePrimaryAny=function(t){return u._handlePrimaryAny(t)},this._init(r)}}function Ut(t){return{_init:function(){},_free:function(){},_handlePrimaryValue:function(t){this._emitValue(t)},_handlePrimaryError:function(t){this._emitError(t)},_handlePrimaryEnd:function(){this._emitEnd()},_handleSecondaryValue:function(t){this._lastSecondary=t},_handleSecondaryError:function(t){this._emitError(t)},_handleSecondaryEnd:function(){},_handlePrimaryAny:function(t){switch(t.type){case on:return this._handlePrimaryValue(t.value);case hn:return this._handlePrimaryError(t.value);case sn:return this._handlePrimaryEnd(t.value)}},_handleSecondaryAny:function(t){switch(t.type){case on:return this._handleSecondaryValue(t.value);case hn:return this._handleSecondaryError(t.value);case sn:this._handleSecondaryEnd(t.value),this._removeSecondary()}},_removeSecondary:function(){null!==this._secondary&&(this._secondary.offAny(this._$handleSecondaryAny),this._$handleSecondaryAny=null,this._secondary=null)},_onActivation:function(){null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny),this._active&&this._primary.onAny(this._$handlePrimaryAny)},_onDeactivation:function(){null!==this._secondary&&this._secondary.offAny(this._$handleSecondaryAny),this._primary.offAny(this._$handlePrimaryAny)},_clear:function(){t.prototype._clear.call(this),this._primary=null,this._secondary=null,this._lastSecondary=null,this._$handleSecondaryAny=null,this._$handlePrimaryAny=null,this._free()}}}function Ft(t,n){var i=Ht(y,t);return r(i,y,Ut(y),n),i}function jt(t,n){var i=Ht(E,t);return r(i,E,Ut(E),n),i}function Qt(t,n){return new(t._ofSameType(oe,he))(t,n)}function Yt(t,n,i){var e=i?function(t,n){return i(n,t)}:ae;return kt([n],[t],e).setName(t,"sampledBy")}function zt(t,n){return new(t._ofSameType(_e,fe))(t,n)}function Kt(t,n){return new(t._ofSameType(de,ve))(t,n)}function Gt(t,n,i){return new(t._ofSameType(pe,ye))(t,n,i)}function Jt(t,n,i){return new(t._ofSameType(ge,be))(t,n,i)}function Rt(t,n){var i=Pt([X(t,we),X(n,Ae)]);return i=st(i),i=j(i,Ae),i.setName(t,"awaiting")}function Xt(t){var n=arguments.length<=1||void 0===arguments[1]?$e:arguments[1];return new(t._ofSameType(Se,Te))(t,{fn:n})}function Zt(t){var n=arguments.length<=1||void 0===arguments[1]?xe:arguments[1];return new(t._ofSameType(ke,Ie))(t,{fn:n})}function tn(t){return new(t._ofSameType(Oe,Pe))(t)}function nn(){Me=!1}function en(t){if(Me&&console&&"function"==typeof console.warn){var n="\nHere is an Error object for you containing the call stack:";console.warn(t,n,new Error)}}var rn="undefined"!=typeof window?window:"undefined"!=typeof global?global:this,un=["<nothing>"],sn="end",on="value",hn="error",an="any";e(m.prototype,{add:function(t,n){return this._items=u(this._items,[{type:t,fn:n}]),this._items.length},remove:function(t,n){var i=o(this._items,function(i){return i.type===t&&i.fn===n});return 0!==this._inLoop&&-1!==i&&(null===this._removedItems&&(this._removedItems=[]),this._removedItems.push(this._items[i])),this._items=a(this._items,i),this._items.length},dispatch:function(t){this._inLoop++;for(var n=0,i=this._items;n<i.length&&null!==this._items;n++)null!==this._removedItems&&c(this._removedItems,i[n])||v(i[n].type,i[n].fn,t);this._inLoop--,0===this._inLoop&&(this._removedItems=null)},cleanup:function(){this._items=null}}),e(p.prototype,{_name:"observable",_onActivation:function(){},_onDeactivation:function(){},_setActive:function(t){this._active!==t&&(this._active=t,t?(this._activating=!0,this._onActivation(),this._activating=!1):this._onDeactivation())},_clear:function(){this._setActive(!1),this._dispatcher.cleanup(),this._dispatcher=null,this._logHandlers=null},_emit:function(t,n){switch(t){case on:return this._emitValue(n);case hn:return this._emitError(n);case sn:return this._emitEnd()}},_emitValue:function(t){this._alive&&this._dispatcher.dispatch({type:on,value:t})},_emitError:function(t){this._alive&&this._dispatcher.dispatch({type:hn,value:t})},_emitEnd:function(){this._alive&&(this._alive=!1,this._dispatcher.dispatch({type:sn}),this._clear())},_on:function(t,n){return this._alive?(this._dispatcher.add(t,n),this._setActive(!0)):v(t,n,{type:sn}),this},_off:function(t,n){if(this._alive){var i=this._dispatcher.remove(t,n);0===i&&this._setActive(!1)}return this},onValue:function(t){return this._on(on,t)},onError:function(t){return this._on(hn,t)},onEnd:function(t){return this._on(sn,t)},onAny:function(t){return this._on(an,t)},offValue:function(t){return this._off(on,t)},offError:function(t){return this._off(hn,t)},offEnd:function(t){return this._off(sn,t)},offAny:function(t){return this._off(an,t)},_ofSameType:function(t,n){return t.prototype.getType()===this.getType()?t:n},setName:function(t,n){return this._name=n?t._name+"."+n:t,this},log:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0],n=void 0,i=function(i){var e="<"+i.type+(n?":current":"")+">";i.type===sn?console.log(t,e):console.log(t,e,i.value)};return this._alive&&(this._logHandlers||(this._logHandlers=[]),this._logHandlers.push({name:t,handler:i})),n=!0,this.onAny(i),n=!1,this},offLog:function(){var t=arguments.length<=0||void 0===arguments[0]?this.toString():arguments[0];if(this._logHandlers){var n=o(this._logHandlers,function(n){return n.name===t});-1!==n&&(this.offAny(this._logHandlers[n].handler),this._logHandlers.splice(n,1))}return this}}),p.prototype.toString=function(){return"["+this._name+"]"},r(y,p,{_name:"stream",getType:function(){return"stream"}}),r(E,p,{_name:"property",_emitValue:function(t){this._alive&&(this._currentEvent={type:on,value:t},this._activating||this._dispatcher.dispatch({type:on,value:t}))},_emitError:function(t){this._alive&&(this._currentEvent={type:hn,value:t},this._activating||this._dispatcher.dispatch({type:hn,value:t}))},_emitEnd:function(){this._alive&&(this._alive=!1,this._activating||this._dispatcher.dispatch({type:sn}),this._clear())},_on:function(t,n){return this._alive&&(this._dispatcher.add(t,n),this._setActive(!0)),null!==this._currentEvent&&v(t,n,this._currentEvent),this._alive||v(t,n,{type:sn}),this},getType:function(){return"property"}});var ln=new y;ln._emitEnd(),ln._name="never";var _n=b({_name:"later",_init:function(t){var n=t.x;this._x=n},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x),this._emitEnd()}}),fn=b({_name:"interval",_init:function(t){var n=t.x;this._x=n},_free:function(){this._x=null},_onTick:function(){this._emitValue(this._x)}}),cn=b({_name:"sequentially",_init:function(t){var n=t.xs;this._xs=h(n)},_free:function(){this._xs=null},_onTick:function(){1===this._xs.length?(this._emitValue(this._xs[0]),this._emitEnd()):this._emitValue(this._xs.shift())}}),dn=b({_name:"fromPoll",_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_onTick:function(){var t=this._fn;this._emitValue(t())}}),vn=b({_name:"withInterval",_init:function(t){var n=t.fn;this._fn=n,this._emitter=T(this)},_free:function(){this._fn=null,this._emitter=null},_onTick:function(){var t=this._fn;t(this._emitter)}});r(C,y,{_name:"stream",_onActivation:function(){var t=this._fn,n=t(T(this));this._unsubscribe="function"==typeof n?n:null,this._active||this._callUnsubscribe()},_callUnsubscribe:function(){null!==this._unsubscribe&&(this._unsubscribe(),this._unsubscribe=null)},_onDeactivation:function(){this._callUnsubscribe()},_clear:function(){y.prototype._clear.call(this),this._fn=null}});var mn=[["addEventListener","removeEventListener"],["addListener","removeListener"],["on","off"]];r(M,E,{_name:"constant",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null}),r(q,E,{_name:"constantError",_active:!1,_activating:!1,_alive:!1,_dispatcher:null,_logHandlers:null});var pn=F("toProperty",{_init:function(t){var n=t.fn;this._getInitialCurrent=n},_onActivation:function(){if(null!==this._getInitialCurrent){var t=this._getInitialCurrent;this._emitValue(t())}this._source.onAny(this._$handleAny)}}),yn=U("changes",{_handleValue:function(t){this._activating||this._emitValue(t)},_handleError:function(t){this._activating||this._emitError(t)}}),En=n(function(t){t.exports=function(t){var n,i=t.Symbol;return"function"==typeof i?i.observable?n=i.observable:(n=i("observable"),i.observable=n):n="@@observable",n}}),gn=En&&"object"==typeof En&&"default"in En?En["default"]:En,bn=n(function(t,n,i){t.exports=gn(i||window||rn)}),An=bn&&"object"==typeof bn&&"default"in bn?bn["default"]:bn;e(J.prototype,{subscribe:function(t){var n=this,i=function(n){n.type===on&&t.next?t.next(n.value):n.type===hn&&t.error?t.error(n.value):n.type===sn&&t.complete&&t.complete(n.value)};return this._observable.onAny(i),function(){return n._observable.offAny(i)}}});var wn={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){var n=this._fn;this._emitValue(n(t))}},Vn=U("map",wn),Sn=F("map",wn),Tn=function(t){return t},$n={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){var n=this._fn;n(t)&&this._emitValue(t)}},Cn=U("filter",$n),kn=F("filter",$n),In=function(t){return t},xn={_init:function(t){var n=t.n;this._n=n,0>=n&&this._emitEnd()},_handleValue:function(t){this._n--,this._emitValue(t),0===this._n&&this._emitEnd()}},Ln=U("take",xn),On=F("take",xn),Pn={_init:function(t){var n=t.n;this._n=n,0>=n&&this._emitEnd()},_handleError:function(t){this._n--,this._emitError(t),0===this._n&&this._emitEnd()}},Dn=U("takeErrors",Pn),Mn=F("takeErrors",Pn),Nn={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){var n=this._fn;n(t)?this._emitValue(t):this._emitEnd()}},qn=U("takeWhile",Nn),Wn=F("takeWhile",Nn),Bn=function(t){return t},Hn={_init:function(){this._lastValue=un},_free:function(){this._lastValue=null},_handleValue:function(t){this._lastValue=t},_handleEnd:function(){this._lastValue!==un&&this._emitValue(this._lastValue),this._emitEnd()}},Un=U("last",Hn),Fn=F("last",Hn),jn={_init:function(t){var n=t.n;this._n=Math.max(0,n)},_handleValue:function(t){0===this._n?this._emitValue(t):this._n--}},Qn=U("skip",jn),Yn=F("skip",jn),zn={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){var n=this._fn;null===this._fn||n(t)||(this._fn=null),null===this._fn&&this._emitValue(t)}},Kn=U("skipWhile",zn),Gn=F("skipWhile",zn),Jn=function(t){return t},Rn={_init:function(t){var n=t.fn;this._fn=n,this._prev=un},_free:function(){this._fn=null,this._prev=null},_handleValue:function(t){var n=this._fn;this._prev!==un&&n(this._prev,t)||(this._prev=t,this._emitValue(t))}},Xn=U("skipDuplicates",Rn),Zn=F("skipDuplicates",Rn),ti=function(t,n){return t===n},ni={_init:function(t){var n=t.fn,i=t.seed;this._fn=n,this._prev=i},_free:function(){this._prev=null,this._fn=null},_handleValue:function(t){if(this._prev!==un){var n=this._fn;this._emitValue(n(this._prev,t))}this._prev=t}},ii=U("diff",ni),ei=F("diff",ni),ri=F("scan",{_init:function(t){var n=t.fn,i=t.seed;this._fn=n,this._seed=i,i!==un&&this._emitValue(i)},_free:function(){this._fn=null,this._seed=null},_handleValue:function(t){var n=this._fn;null===this._currentEvent||this._currentEvent.type===hn?this._emitValue(this._seed===un?t:n(this._seed,t)):this._emitValue(n(this._currentEvent.value,t))}}),ui={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){for(var n=this._fn,i=n(t),e=0;e<i.length;e++)this._emitValue(i[e])}},si=U("flatten",ui),oi=function(t){return t},hi={},ai={_init:function(t){var n=this,i=t.wait;this._wait=Math.max(0,i),this._buff=[],this._$shiftBuff=function(){var t=n._buff.shift();t===hi?n._emitEnd():n._emitValue(t)}},_free:function(){this._buff=null,this._$shiftBuff=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._buff.push(t),setTimeout(this._$shiftBuff,this._wait))},_handleEnd:function(){this._activating?this._emitEnd():(this._buff.push(hi),setTimeout(this._$shiftBuff,this._wait))}},li=U("delay",ai),_i=F("delay",ai),fi=Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},ci={_init:function(t){var n=this,i=t.wait,e=t.leading,r=t.trailing;this._wait=Math.max(0,i),this._leading=e,this._trailing=r,this._trailingValue=null,this._timeoutId=null,this._endLater=!1,this._lastCallTime=0,this._$trailingCall=function(){return n._trailingCall()}},_free:function(){this._trailingValue=null,this._$trailingCall=null},_handleValue:function(t){if(this._activating)this._emitValue(t);else{var n=fi();0!==this._lastCallTime||this._leading||(this._lastCallTime=n);var i=this._wait-(n-this._lastCallTime);0>=i?(this._cancelTrailing(),this._lastCallTime=n,this._emitValue(t)):this._trailing&&(this._cancelTrailing(),this._trailingValue=t,this._timeoutId=setTimeout(this._$trailingCall,i))}},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId?this._endLater=!0:this._emitEnd()},_cancelTrailing:function(){null!==this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null)},_trailingCall:function(){this._emitValue(this._trailingValue),this._timeoutId=null,this._trailingValue=null,this._lastCallTime=this._leading?fi():0,this._endLater&&this._emitEnd()}},di=U("throttle",ci),vi=F("throttle",ci),mi={_init:function(t){var n=this,i=t.wait,e=t.immediate;this._wait=Math.max(0,i),this._immediate=e,this._lastAttempt=0,this._timeoutId=null,this._laterValue=null,this._endLater=!1,this._$later=function(){return n._later()}},_free:function(){this._laterValue=null,this._$later=null},_handleValue:function(t){this._activating?this._emitValue(t):(this._lastAttempt=fi(),this._immediate&&!this._timeoutId&&this._emitValue(t),this._timeoutId||(this._timeoutId=setTimeout(this._$later,this._wait)),this._immediate||(this._laterValue=t))},_handleEnd:function(){this._activating?this._emitEnd():this._timeoutId&&!this._immediate?this._endLater=!0:this._emitEnd()},_later:function(){var t=fi()-this._lastAttempt;t<this._wait&&t>=0?this._timeoutId=setTimeout(this._$later,this._wait-t):(this._timeoutId=null,this._immediate||(this._emitValue(this._laterValue),this._laterValue=null),this._endLater&&this._emitEnd())}},pi=U("debounce",mi),yi=F("debounce",mi),Ei={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleError:function(t){var n=this._fn;this._emitError(n(t))}},gi=U("mapErrors",Ei),bi=F("mapErrors",Ei),Ai=function(t){return t},wi={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleError:function(t){var n=this._fn;n(t)&&this._emitError(t)}},Vi=U("filterErrors",wi),Si=F("filterErrors",wi),Ti=function(t){return t},$i={_handleValue:function(){}},Ci=U("ignoreValues",$i),ki=F("ignoreValues",$i),Ii={_handleError:function(){}},xi=U("ignoreErrors",Ii),Li=F("ignoreErrors",Ii),Oi={_handleEnd:function(){}},Pi=U("ignoreEnd",Oi),Di=F("ignoreEnd",Oi),Mi={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleEnd:function(){var t=this._fn;this._emitValue(t()),this._emitEnd()}},Ni=U("beforeEnd",Mi),qi=F("beforeEnd",Mi),Wi={_init:function(t){var n=t.min,i=t.max;this._max=i,this._min=n,this._buff=[]},_free:function(){this._buff=null},_handleValue:function(t){this._buff=d(this._buff,t,this._max),this._buff.length>=this._min&&this._emitValue(this._buff)}},Bi=U("slidingWindow",Wi),Hi=F("slidingWindow",Wi),Ui={_init:function(t){var n=t.fn,i=t.flushOnEnd;this._fn=n,this._flushOnEnd=i,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t);var n=this._fn;n(t)||this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},Fi=U("bufferWhile",Ui),ji=F("bufferWhile",Ui),Qi=function(t){return t},Yi={_init:function(t){var n=t.count,i=t.flushOnEnd;this._count=n,this._flushOnEnd=i,this._buff=[]},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&0!==this._buff.length&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&this._flush()},_handleEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()}},zi=U("bufferWithCount",Yi),Ki=F("bufferWithCount",Yi),Gi={_init:function(t){var n=this,i=t.wait,e=t.count,r=t.flushOnEnd;this._wait=i,this._count=e,this._flushOnEnd=r,this._intervalId=null,this._$onTick=function(){return n._flush()},this._buff=[]},_free:function(){this._$onTick=null,this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handleValue:function(t){this._buff.push(t),this._buff.length>=this._count&&(clearInterval(this._intervalId),this._flush(),this._intervalId=setInterval(this._$onTick,this._wait))},_handleEnd:function(){this._flushOnEnd&&0!==this._buff.length&&this._flush(),this._emitEnd()},_onActivation:function(){this._intervalId=setInterval(this._$onTick,this._wait),this._source.onAny(this._$handleAny)},_onDeactivation:function(){null!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=null),this._source.offAny(this._$handleAny)}},Ji=U("bufferWithTimeOrCount",Gi),Ri=F("bufferWithTimeOrCount",Gi),Xi={_init:function(t){var n=t.transducer;this._xform=n(Vt(this))},_free:function(){this._xform=null},_handleValue:function(t){null!==this._xform["@@transducer/step"](null,t)&&this._xform["@@transducer/result"](null)},_handleEnd:function(){this._xform["@@transducer/result"](null)}},Zi=U("transduce",Xi),te=F("transduce",Xi),ne={_init:function(t){var n=t.fn;this._handler=n,this._emitter=T(this)},_free:function(){this._handler=null,this._emitter=null},_handleAny:function(t){this._handler(this._emitter,t)}},ie=U("withHandler",ne),ee=F("withHandler",ne);r(Ct,y,{_name:"combine",_onActivation:function(){this._aliveCount=this._activeCount;for(var t=this._activeCount;t<this._sources.length;t++)this._sources[t].onAny(this._$handlers[t]);for(var t=0;t<this._activeCount;t++)this._sources[t].onAny(this._$handlers[t]);this._emitAfterActivation&&(this._emitAfterActivation=!1,this._emitIfFull()),this._endAfterActivation&&this._emitEnd()},_onDeactivation:function(){var t=this._sources.length,n=void 0;for(n=0;t>n;n++)this._sources[n].offAny(this._$handlers[n])},_emitIfFull:function(){for(var t=!0,n=!1,i=this._latestValues.length,e=new Array(i),r=new Array(i),u=0;i>u;u++)e[u]=this._latestValues[u],r[u]=this._latestErrors[u],e[u]===un&&(t=!1),void 0!==r[u]&&(n=!0);if(t){var s=this._combinator;this._emitValue(s(e))}n&&this._emitError($t(r))},_handleAny:function(t,n){n.type===on||n.type===hn?(n.type===on&&(this._latestValues[t]=n.value,this._latestErrors[t]=void 0),n.type===hn&&(this._latestValues[t]=un,this._latestErrors[t]={index:this._latestErrorIndex++,error:n.value}),t<this._activeCount&&(this._activating?this._emitAfterActivation=!0:this._emitIfFull())):t<this._activeCount&&(this._aliveCount--,0===this._aliveCount&&(this._activating?this._endAfterActivation=!0:this._emitEnd()))},_clear:function(){y.prototype._clear.call(this),this._sources=null,this._latestValues=null,this._latestErrors=null,this._combinator=null,this._$handlers=null}});var re=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};r(It,y,{_name:"zip",_onActivation:function(){for(;this._isFull();)this._emit();var t=this._sources.length;this._aliveCount=t;for(var n=0;t>n&&this._active;n++)this._sources[n].onAny(this._$handlers[n])},_onDeactivation:function(){for(var t=0;t<this._sources.length;t++)this._sources[t].offAny(this._$handlers[t])},_emit:function(){for(var t=new Array(this._buffers.length),n=0;n<this._buffers.length;n++)t[n]=this._buffers[n].shift();var i=this._combinator;this._emitValue(i(t))},_isFull:function(){for(var t=0;t<this._buffers.length;t++)if(0===this._buffers[t].length)return!1;
return!0},_handleAny:function(t,n){n.type===on&&(this._buffers[t].push(n.value),this._isFull()&&this._emit()),n.type===hn&&this._emitError(n.value),n.type===sn&&(this._aliveCount--,0===this._aliveCount&&this._emitEnd())},_clear:function(){y.prototype._clear.call(this),this._sources=null,this._buffers=null,this._combinator=null,this._$handlers=null}});var ue=function(t){return t};r(Lt,y,{_name:"abstractPool",_add:function(t,n){n=n||ue,-1===this._concurLim||this._curSources.length<this._concurLim?this._addToCur(n(t)):-1===this._queueLim||this._queue.length<this._queueLim?this._addToQueue(n(t)):"old"===this._drop&&(this._removeOldest(),this._add(t,n))},_addAll:function(t){var n=this;_(t,function(t){return n._add(t)})},_remove:function(t){-1===this._removeCur(t)&&this._removeQueue(t)},_addToQueue:function(t){this._queue=u(this._queue,[t])},_addToCur:function(t){if(this._active){if(!t._alive)return void(t._currentEvent&&this._emit(t._currentEvent.type,t._currentEvent.value));this._currentlyAdding=t,t.onAny(this._$handleSubAny),this._currentlyAdding=null,t._alive&&(this._curSources=u(this._curSources,[t]),this._active&&this._subToEnd(t))}else this._curSources=u(this._curSources,[t])},_subToEnd:function(t){var n=this,i=function(){return n._removeCur(t)};this._$endHandlers.push({obs:t,handler:i}),t.onEnd(i)},_subscribe:function(t){t.onAny(this._$handleSubAny),this._active&&this._subToEnd(t)},_unsubscribe:function(t){t.offAny(this._$handleSubAny);var n=o(this._$endHandlers,function(n){return n.obs===t});-1!==n&&(t.offEnd(this._$endHandlers[n].handler),this._$endHandlers.splice(n,1))},_handleSubAny:function(t){t.type===on?this._emitValue(t.value):t.type===hn&&this._emitError(t.value)},_removeQueue:function(t){var n=s(this._queue,t);return this._queue=a(this._queue,n),n},_removeCur:function(t){this._active&&this._unsubscribe(t);var n=s(this._curSources,t);return this._curSources=a(this._curSources,n),-1!==n&&(0!==this._queue.length?this._pullQueue():0===this._curSources.length&&this._onEmpty()),n},_removeOldest:function(){this._removeCur(this._curSources[0])},_pullQueue:function(){0!==this._queue.length&&(this._queue=h(this._queue),this._addToCur(this._queue.shift()))},_onActivation:function(){for(var t=0,n=this._curSources;t<n.length&&this._active;t++)this._subscribe(n[t])},_onDeactivation:function(){for(var t=0,n=this._curSources;t<n.length;t++)this._unsubscribe(n[t]);null!==this._currentlyAdding&&this._unsubscribe(this._currentlyAdding)},_isEmpty:function(){return 0===this._curSources.length},_onEmpty:function(){},_clear:function(){y.prototype._clear.call(this),this._queue=null,this._curSources=null,this._$handleSubAny=null,this._$endHandlers=null}}),r(Ot,Lt,{_name:"merge",_onEmpty:function(){this._initialised&&this._emitEnd()}}),r(Dt,y,{_name:"repeat",_handleAny:function(t){t.type===sn?(this._source=null,this._getSource()):this._emit(t.type,t.value)},_getSource:function(){if(!this._inLoop){this._inLoop=!0;for(var t=this._generator;null===this._source&&this._alive&&this._active;)this._source=t(this._iteration++),this._source?this._source.onAny(this._$handleAny):this._emitEnd();this._inLoop=!1}},_onActivation:function(){this._source?this._source.onAny(this._$handleAny):this._getSource()},_onDeactivation:function(){this._source&&this._source.offAny(this._$handleAny)},_clear:function(){y.prototype._clear.call(this),this._generator=null,this._source=null,this._$handleAny=null}}),r(qt,Lt,{_name:"pool",plug:function(t){return this._add(t),this},unplug:function(t){return this._remove(t),this}}),r(Wt,Lt,{_onActivation:function(){Lt.prototype._onActivation.call(this),this._active&&this._source.onAny(this._$handleMain)},_onDeactivation:function(){Lt.prototype._onDeactivation.call(this),this._source.offAny(this._$handleMain),this._hadNoEvSinceDeact=!0},_handleMain:function(t){if(t.type===on){var n=this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value;n||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1}t.type===hn&&this._emitError(t.value),t.type===sn&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)},_onEmpty:function(){this._mainEnded&&this._emitEnd()},_clear:function(){Lt.prototype._clear.call(this),this._source=null,this._lastCurrent=null,this._$handleMain=null}}),r(Bt,Wt,{_handleMain:function(t){if(t.type===hn){var n=this._activating&&this._hadNoEvSinceDeact&&this._lastCurrent===t.value;n||this._add(t.value,this._fn),this._lastCurrent=t.value,this._hadNoEvSinceDeact=!1}t.type===on&&this._emitValue(t.value),t.type===sn&&(this._isEmpty()?this._emitEnd():this._mainEnded=!0)}});var se={_handlePrimaryValue:function(t){this._lastSecondary!==un&&this._lastSecondary&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary!==un&&this._lastSecondary||this._emitEnd()}},oe=Ft("filterBy",se),he=jt("filterBy",se),ae=function(t,n){return n},le={_handlePrimaryValue:function(t){this._lastSecondary!==un&&this._emitValue(t)},_handleSecondaryEnd:function(){this._lastSecondary===un&&this._emitEnd()}},_e=Ft("skipUntilBy",le),fe=jt("skipUntilBy",le),ce={_handleSecondaryValue:function(){this._emitEnd()}},de=Ft("takeUntilBy",ce),ve=jt("takeUntilBy",ce),me={_init:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.flushOnEnd,i=void 0===n?!0:n;this._buff=[],this._flushOnEnd=i},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_onActivation:function(){this._primary.onAny(this._$handlePrimaryAny),this._alive&&null!==this._secondary&&this._secondary.onAny(this._$handleSecondaryAny)},_handlePrimaryValue:function(t){this._buff.push(t)},_handleSecondaryValue:function(){this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._emitEnd()}},pe=Ft("bufferBy",me),ye=jt("bufferBy",me),Ee={_init:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.flushOnEnd,i=void 0===n?!0:n,e=t.flushOnChange,r=void 0===e?!1:e;this._buff=[],this._flushOnEnd=i,this._flushOnChange=r},_free:function(){this._buff=null},_flush:function(){null!==this._buff&&(this._emitValue(this._buff),this._buff=[])},_handlePrimaryEnd:function(){this._flushOnEnd&&this._flush(),this._emitEnd()},_handlePrimaryValue:function(t){this._buff.push(t),this._lastSecondary===un||this._lastSecondary||this._flush()},_handleSecondaryEnd:function(){this._flushOnEnd||this._lastSecondary!==un&&!this._lastSecondary||this._emitEnd()},_handleSecondaryValue:function(t){this._flushOnChange&&!t&&this._flush(),this._lastSecondary=t}},ge=Ft("bufferWhileBy",Ee),be=jt("bufferWhileBy",Ee),Ae=function(){return!1},we=function(){return!0},Ve={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleValue:function(t){var n=this._fn,i=n(t);i.convert?this._emitError(i.error):this._emitValue(t)}},Se=U("valuesToErrors",Ve),Te=F("valuesToErrors",Ve),$e=function(t){return{convert:!0,error:t}},Ce={_init:function(t){var n=t.fn;this._fn=n},_free:function(){this._fn=null},_handleError:function(t){var n=this._fn,i=n(t);i.convert?this._emitValue(i.value):this._emitError(t)}},ke=U("errorsToValues",Ce),Ie=F("errorsToValues",Ce),xe=function(t){return{convert:!0,value:t}},Le={_handleError:function(t){this._emitError(t),this._emitEnd()}},Oe=U("endOnError",Le),Pe=F("endOnError",Le);p.prototype.toProperty=function(t){return j(this,t)},p.prototype.changes=function(){return Q(this)},p.prototype.toPromise=function(t){return K(this,t)},p.prototype.toESObservable=R,p.prototype[An]=R,p.prototype.map=function(t){return X(this,t)},p.prototype.filter=function(t){return Z(this,t)},p.prototype.take=function(t){return tt(this,t)},p.prototype.takeErrors=function(t){return nt(this,t)},p.prototype.takeWhile=function(t){return it(this,t)},p.prototype.last=function(){return et(this)},p.prototype.skip=function(t){return rt(this,t)},p.prototype.skipWhile=function(t){return ut(this,t)},p.prototype.skipDuplicates=function(t){return st(this,t)},p.prototype.diff=function(t,n){return ht(this,t,n)},p.prototype.scan=function(t,n){return at(this,t,n)},p.prototype.flatten=function(t){return lt(this,t)},p.prototype.delay=function(t){return _t(this,t)},p.prototype.throttle=function(t,n){return ft(this,t,n)},p.prototype.debounce=function(t,n){return ct(this,t,n)},p.prototype.mapErrors=function(t){return dt(this,t)},p.prototype.filterErrors=function(t){return vt(this,t)},p.prototype.ignoreValues=function(){return mt(this)},p.prototype.ignoreErrors=function(){return pt(this)},p.prototype.ignoreEnd=function(){return yt(this)},p.prototype.beforeEnd=function(t){return Et(this,t)},p.prototype.slidingWindow=function(t,n){return gt(this,t,n)},p.prototype.bufferWhile=function(t,n){return bt(this,t,n)},p.prototype.bufferWithCount=function(t,n){return At(this,t,n)},p.prototype.bufferWithTimeOrCount=function(t,n,i){return wt(this,t,n,i)},p.prototype.transduce=function(t){return St(this,t)},p.prototype.withHandler=function(t){return Tt(this,t)},p.prototype.combine=function(t,n){return kt([this,t],n)},p.prototype.zip=function(t,n){return xt([this,t],n)},p.prototype.merge=function(t){return Pt([this,t])},p.prototype.concat=function(t){return Nt([this,t])};var De=function(){return new qt};p.prototype.flatMap=function(t){return new Wt(this,t).setName(this,"flatMap")},p.prototype.flatMapLatest=function(t){return new Wt(this,t,{concurLim:1,drop:"old"}).setName(this,"flatMapLatest")},p.prototype.flatMapFirst=function(t){return new Wt(this,t,{concurLim:1}).setName(this,"flatMapFirst")},p.prototype.flatMapConcat=function(t){return new Wt(this,t,{queueLim:-1,concurLim:1}).setName(this,"flatMapConcat")},p.prototype.flatMapConcurLimit=function(t,n){return new Wt(this,t,{queueLim:-1,concurLim:n}).setName(this,"flatMapConcurLimit")},p.prototype.flatMapErrors=function(t){return new Bt(this,t).setName(this,"flatMapErrors")},p.prototype.filterBy=function(t){return Qt(this,t)},p.prototype.sampledBy=function(t,n){return Yt(this,t,n)},p.prototype.skipUntilBy=function(t){return zt(this,t)},p.prototype.takeUntilBy=function(t){return Kt(this,t)},p.prototype.bufferBy=function(t,n){return Gt(this,t,n)},p.prototype.bufferWhileBy=function(t,n){return Jt(this,t,n)};var Me=!0;p.prototype.awaiting=function(t){return en("You are using deprecated .awaiting() method, see https://github.com/rpominov/kefir/issues/145"),Rt(this,t)},p.prototype.valuesToErrors=function(t){return en("You are using deprecated .valuesToErrors() method, see https://github.com/rpominov/kefir/issues/149"),Xt(this,t)},p.prototype.errorsToValues=function(t){return en("You are using deprecated .errorsToValues() method, see https://github.com/rpominov/kefir/issues/149"),Zt(this,t)},p.prototype.endOnError=function(){return en("You are using deprecated .endOnError() method, see https://github.com/rpominov/kefir/issues/150"),tn(this)};var Ne={Observable:p,Stream:y,Property:E,never:g,later:A,interval:w,sequentially:V,fromPoll:S,withInterval:$,fromCallback:I,fromNodeCallback:x,fromEvents:D,stream:k,constant:N,constantError:W,fromPromise:Y,fromESObservable:G,combine:kt,zip:xt,merge:Pt,concat:Nt,Pool:qt,pool:De,repeat:Mt};Ne.Kefir=Ne,t.dissableDeprecationWarnings=nn,t.Kefir=Ne,t.Observable=p,t.Stream=y,t.Property=E,t.never=g,t.later=A,t.interval=w,t.sequentially=V,t.fromPoll=S,t.withInterval=$,t.fromCallback=I,t.fromNodeCallback=x,t.fromEvents=D,t.stream=k,t.constant=N,t.constantError=W,t.fromPromise=Y,t.fromESObservable=G,t.combine=kt,t.zip=xt,t.merge=Pt,t.concat=Nt,t.Pool=qt,t.pool=De,t.repeat=Mt,t["default"]=Ne});
//# sourceMappingURL=kefir.min.js.map