Comparing version 0.2.2 to 5.0.0
@@ -1,2 +0,2 @@ | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pilota",[],r):"object"==typeof exports?exports.pilota=r():t.pilota=r()}(this,function(){return function(t){function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}var e={};return r.m=t,r.c=e,r.i=function(t){return t},r.d=function(t,r,e){Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=39)}([function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(9),o=e(3),s=e(16),c=e(5),u=function(t){function r(e,n,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!e){this.destination=s.empty;break}if("object"==typeof e){e instanceof r?(this.destination=e,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new h(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,e,n,i)}}return n(r,t),r.prototype[c.$$rxSubscriber]=function(){return this},r.create=function(t,e,n){var i=new r(t,e,n);return i.syncErrorThrowable=!1,i},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r}(o.Subscription);r.Subscriber=u;var h=function(t){function r(r,e,n,o){t.call(this),this._parent=r;var s,c=this;i.isFunction(e)?s=e:e&&(c=e,s=e.next,n=e.error,o=e.complete,i.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this)),this._context=c,this._next=s,this._error=n,this._complete=o}return n(r,t),r.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parent;r.syncErrorThrowable?this.__tryOrSetError(r,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var r=this._parent;if(this._error)r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!r.syncErrorThrowable)throw this.unsubscribe(),t;r.syncErrorValue=t,r.syncErrorThrown=!0,this.unsubscribe()}}},r.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(t){throw this.unsubscribe(),t}},r.prototype.__tryOrSetError=function(t,r,e){try{r.call(this._context,e)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},r.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},r}(u)},function(t,r,e){"use strict";(function(t){var e={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1};r.root=e[typeof self]&&self||e[typeof window]&&window;var n=e[typeof t]&&t;!n||n.global!==n&&n.window!==n||(r.root=n)}).call(r,e(10))},function(t,r,e){"use strict";var n=e(1),i=e(37),o=e(6),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(t,r,e){var n=this.operator,o=i.toSubscriber(t,r,e);if(n?n.call(o,this):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype.forEach=function(t,r){var e=this;if(r||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?r=n.root.Rx.config.Promise:n.root.Promise&&(r=n.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(r,n){var i=e.subscribe(function(r){if(i)try{t(r)}catch(t){n(t),i.unsubscribe()}else t(r)},n,r)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(r){return new t(r)},t}();r.Observable=s},function(t,r,e){"use strict";var n=e(8),i=e(34),o=e(9),s=e(38),c=e(7),u=e(33),h=function(){function t(t){this.closed=!1,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,r=!1;if(!this.closed){this.closed=!0;var e=this,h=e._unsubscribe,a=e._subscriptions;if(this._subscriptions=null,o.isFunction(h)){var p=s.tryCatch(h).call(this);p===c.errorObject&&(r=!0,(t=t||[]).push(c.errorObject.e))}if(n.isArray(a))for(var f=-1,l=a.length;++f<l;){var b=a[f];if(i.isObject(b)){var p=s.tryCatch(b.unsubscribe).call(b);if(p===c.errorObject){r=!0,t=t||[];var d=c.errorObject.e;d instanceof u.UnsubscriptionError?t=t.concat(d.errors):t.push(d)}}}if(r)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(r){if(!r||r===t.EMPTY)return t.EMPTY;if(r===this)return this;var e=r;switch(typeof r){case"function":e=new t(r);case"object":if(e.closed||"function"!=typeof e.unsubscribe)break;this.closed?e.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(e);break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}return e},t.prototype.remove=function(r){if(null!=r&&r!==this&&r!==t.EMPTY){var e=this._subscriptions;if(e){var n=e.indexOf(r);n!==-1&&e.splice(n,1)}}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=h},function(t,r,e){"use strict";(function(t){function e(t,r){if(!t)throw r}function n(t){return"function"==typeof t}function i(r,e){r.subscribe(function(r){t.console.log(e+".next:",r)},function(r){t.console.log(e+".error:",r)},function(r){t.console.log(e+".complete:",r)})}Object.defineProperty(r,"__esModule",{value:!0}),r.precondition=e,r.isFunction=n,r.subscribeLog=i}).call(r,e(10))},function(t,r,e){"use strict";var n=e(1),i=n.root.Symbol;r.$$rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber"},function(t,r,e){"use strict";function n(t){var r,e=t.Symbol;return"function"==typeof e?e.observable?r=e.observable:(r=e("observable"),e.observable=r):r="@@observable",r}var i=e(1);r.getSymbolObservable=n,r.$$observable=n(i.root)},function(t,r){"use strict";r.errorObject={e:{}}},function(t,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,r){"use strict";function e(t){return"function"==typeof t}r.isFunction=e},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";function n(t,r){var e=new o.Subject(s.async);if((0,c.isFunction)(r))e.dispatch=r;else{var n=(0,u.newObjectResolver)(r);e.dispatch=(0,h.newDispatcher)(n),e.addHandler=n.addHandler,e.on=e.addHandler}return e.map(function(t){return"string"==typeof t?{name:t}:t}).withLatestFrom(t,function(t,r){return e.dispatch(r,t)}).filter(function(t){return void 0!==t}).subscribe(t),e}function i(t){(0,c.subscribeLog)(t,"cmdBus$")}Object.defineProperty(r,"__esModule",{value:!0}),r.newCmdBus$=n,r.logCmdBus=i;var o=e(19);e(22),e(21),e(23);var s=e(30),c=e(4),u=e(14),h=e(13)},function(t,r){"use strict";function e(t,r){return"undefined"!=typeof r?function(e){for(var n=Object.assign({},e),i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return n[t]=r.apply(void 0,[e[t]].concat(o)),n}:(r=t,function(t){return e(t,r)})}Object.defineProperty(r,"__esModule",{value:!0}),r.submodelCmd=e},function(t,r,e){"use strict";function n(t){(0,i.precondition)(t,"resolver is required for a dispatcher"),(0,i.precondition)((0,i.isFunction)(t),"resolver must be a function");var r=function(r,e){var n=t(e.name);return n?n.call(e,r,e):void 0};return r.addHandler=t.addHandler,r}Object.defineProperty(r,"__esModule",{value:!0}),r.newDispatcher=n;var i=e(4)},function(t,r,e){"use strict";function n(t){var r=Object.assign({},t),e=function(t){return r[t]||r["*"]};return e.addHandler=function(t,e){(0,i.precondition)(t,"requires a command name"),(0,i.precondition)((0,i.isFunction)(e),"requires a projection function"),r[t]=e},e}Object.defineProperty(r,"__esModule",{value:!0}),r.newObjectResolver=n;var i=e(4)},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(0),o=function(t){function r(r,e,n){t.call(this),this.parent=r,this.outerValue=e,this.outerIndex=n,this.index=0}return n(r,t),r.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},r.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},r.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},r}(i.Subscriber);r.InnerSubscriber=o},function(t,r){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(0),o=function(t){function r(){t.apply(this,arguments)}return n(r,t),r.prototype.notifyNext=function(t,r,e,n,i){this.destination.next(r)},r.prototype.notifyError=function(t,r){this.destination.error(t)},r.prototype.notifyComplete=function(t){this.destination.complete()},r}(i.Subscriber);r.OuterSubscriber=o},function(t,r){"use strict";var e=function(){function t(r,e){void 0===e&&(e=t.now),this.SchedulerAction=r,this.now=e}return t.prototype.schedule=function(t,r,e){return void 0===r&&(r=0),new this.SchedulerAction(this,t).schedule(e,r)},t.now=Date.now?Date.now:function(){return+new Date},t}();r.Scheduler=e},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(2),o=e(0),s=e(3),c=e(32),u=e(20),h=e(5),a=function(t){function r(r){t.call(this,r),this.destination=r}return n(r,t),r}(o.Subscriber);r.SubjectSubscriber=a;var p=function(t){function r(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(r,t),r.prototype[h.$$rxSubscriber]=function(){return new a(this)},r.prototype.lift=function(t){var r=new f(this,this);return r.operator=t,r},r.prototype.next=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;if(!this.isStopped)for(var r=this.observers,e=r.length,n=r.slice(),i=0;i<e;i++)n[i].next(t)},r.prototype.error=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,e=r.length,n=r.slice(),i=0;i<e;i++)n[i].error(t);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,r=t.length,e=t.slice(),n=0;n<r;n++)e[n].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._subscribe=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},r.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},r.create=function(t,r){return new f(t,r)},r}(i.Observable);r.Subject=p;var f=function(t){function r(r,e){t.call(this),this.destination=r,this.source=e}return n(r,t),r.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},r.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},r.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},r.prototype._subscribe=function(t){var r=this.source;return r?this.source.subscribe(t):s.Subscription.EMPTY},r}(p);r.AnonymousSubject=f},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(3),o=function(t){function r(r,e){t.call(this),this.subject=r,this.subscriber=e,this.closed=!1}return n(r,t),r.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,r&&0!==r.length&&!t.isStopped&&!t.closed){var e=r.indexOf(this.subscriber);e!==-1&&r.splice(e,1)}}},r}(i.Subscription);r.SubjectSubscription=o},function(t,r,e){"use strict";var n=e(2),i=e(24);n.Observable.prototype.filter=i.filter},function(t,r,e){"use strict";var n=e(2),i=e(25);n.Observable.prototype.map=i.map},function(t,r,e){"use strict";var n=e(2),i=e(26);n.Observable.prototype.withLatestFrom=i.withLatestFrom},function(t,r,e){"use strict";function n(t,r){return this.lift(new s(t,r))}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(0);r.filter=n;var s=function(){function t(t,r){this.predicate=t,this.thisArg=r}return t.prototype.call=function(t,r){return r._subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function r(r,e,n){t.call(this,r),this.predicate=e,this.thisArg=n,this.count=0,this.predicate=e}return i(r,t),r.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}r&&this.destination.next(t)},r}(o.Subscriber)},function(t,r,e){"use strict";function n(t,r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,r))}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(0);r.map=n;var s=function(){function t(t,r){this.project=t,this.thisArg=r}return t.prototype.call=function(t,r){return r._subscribe(new c(t,this.project,this.thisArg))},t}();r.MapOperator=s;var c=function(t){function r(r,e,n){t.call(this,r),this.project=e,this.count=0,this.thisArg=n||this}return i(r,t),r.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(o.Subscriber)},function(t,r,e){"use strict";function n(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var e;"function"==typeof t[t.length-1]&&(e=t.pop());var n=t;return this.lift(new c(n,e))}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(17),s=e(36);r.withLatestFrom=n;var c=function(){function t(t,r){this.observables=t,this.project=r}return t.prototype.call=function(t,r){return r._subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function r(r,e,n){t.call(this,r),this.observables=e,this.project=n,this.toRespond=[];var i=e.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var c=e[o];this.add(s.subscribeToResult(this,c,c,o))}}return i(r,t),r.prototype.notifyNext=function(t,r,e,n,i){this.values[e]=r;var o=this.toRespond;if(o.length>0){var s=o.indexOf(e);s!==-1&&o.splice(s,1)}},r.prototype.notifyComplete=function(){},r.prototype._next=function(t){if(0===this.toRespond.length){var r=[t].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},r.prototype._tryProject=function(t){var r;try{r=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(o.OuterSubscriber)},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(3),o=function(t){function r(r,e){t.call(this)}return n(r,t),r.prototype.schedule=function(t,r){return void 0===r&&(r=0),this},r}(i.Subscription);r.Action=o},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(1),o=e(27),s=function(t){function r(r,e){t.call(this,r,e),this.scheduler=r,this.work=e,this.pending=!1}return n(r,t),r.prototype.schedule=function(t,r){if(void 0===r&&(r=0),this.closed)return this;this.state=t,this.pending=!0;var e=this.id,n=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(n,e,r)),this.delay=r,this.id=this.id||this.requestAsyncId(n,this.id,r),this},r.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),i.root.setInterval(t.flush.bind(t,this),e)},r.prototype.recycleAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&this.delay===e?r:i.root.clearInterval(r)&&void 0||void 0},r.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,r);return e?e:void(this.pending===!1&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null)))},r.prototype._execute=function(t,r){var e=!1,n=void 0;try{this.work(t)}catch(t){e=!0,n=!!t&&t||new Error(t)}if(e)return this.unsubscribe(),n},r.prototype._unsubscribe=function(){var t=this.id,r=this.scheduler,e=r.actions,n=e.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,n!==-1&&e.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(r,t,null))},r}(o.Action);r.AsyncAction=s},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(18),o=function(t){function r(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(r,t),r.prototype.flush=function(t){var r=this.actions;if(this.active)return void r.push(t);var e;this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},r}(i.Scheduler);r.AsyncScheduler=o},function(t,r,e){"use strict";var n=e(28),i=e(29);r.async=new i.AsyncScheduler(n.AsyncAction)},function(t,r,e){"use strict";var n=e(1),i=n.root.Symbol;if("function"==typeof i)i.iterator?r.$$iterator=i.iterator:"function"==typeof i.for&&(r.$$iterator=i.for("iterator"));else if(n.root.Set&&"function"==typeof(new n.root.Set)["@@iterator"])r.$$iterator="@@iterator";else if(n.root.Map)for(var o=Object.getOwnPropertyNames(n.root.Map.prototype),s=0;s<o.length;++s){var c=o[s];if("entries"!==c&&"size"!==c&&n.root.Map.prototype[c]===n.root.Map.prototype.entries){r.$$iterator=c;break}}else r.$$iterator="@@iterator"},function(t,r){"use strict";var e=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},n=function(t){function r(){var r=t.call(this,"object unsubscribed");this.name=r.name="ObjectUnsubscribedError",this.stack=r.stack,this.message=r.message}return e(r,t),r}(Error);r.ObjectUnsubscribedError=n},function(t,r){"use strict";var e=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},n=function(t){function r(r){t.call(this),this.errors=r;var e=Error.call(this,r?r.length+" errors occurred during unsubscription:\n "+r.map(function(t,r){return r+1+") "+t.toString()}).join("\n "):"");this.name=e.name="UnsubscriptionError",this.stack=e.stack,this.message=e.message}return e(r,t),r}(Error);r.UnsubscriptionError=n},function(t,r){"use strict";function e(t){return null!=t&&"object"==typeof t}r.isObject=e},function(t,r){"use strict";function e(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.isPromise=e},function(t,r,e){"use strict";function n(t,r,e,n){var p=new h.InnerSubscriber(t,e,n);if(p.closed)return null;if(r instanceof c.Observable)return r._isScalar?(p.next(r.value),p.complete(),null):r.subscribe(p);if(o.isArray(r)){for(var f=0,l=r.length;f<l&&!p.closed;f++)p.next(r[f]);p.closed||p.complete()}else{if(s.isPromise(r))return r.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),p;if("function"==typeof r[u.$$iterator])for(var b=r[u.$$iterator]();;){var d=b.next();if(d.done){p.complete();break}if(p.next(d.value),p.closed)break}else if("function"==typeof r[a.$$observable]){var y=r[a.$$observable]();if("function"==typeof y.subscribe)return y.subscribe(new h.InnerSubscriber(t,e,n));p.error(new Error("invalid observable"))}else p.error(new TypeError("unknown type returned"))}return null}var i=e(1),o=e(8),s=e(35),c=e(2),u=e(31),h=e(15),a=e(6);r.subscribeToResult=n},function(t,r,e){"use strict";function n(t,r,e){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||r||e?new i.Subscriber(t,r,e):new i.Subscriber}var i=e(0),o=e(5);r.toSubscriber=n},function(t,r,e){"use strict";function n(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,n}var o,s=e(7);r.tryCatch=i},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(11),i=e(12);r.default={newCmdBus$:n.newCmdBus$,logCmdBus:n.logCmdBus,submodelCmd:i.submodelCmd},t.exports=r.default}])}); | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("pilota",[],r):"object"==typeof exports?exports.pilota=r():t.pilota=r()}(this,function(){return function(t){function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}var e={};return r.m=t,r.c=e,r.i=function(t){return t},r.d=function(t,r,e){Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=45)}([function(t,r,e){"use strict";function n(t){return t instanceof a||"syncErrorThrowable"in t&&t[u.rxSubscriber]}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(9),s=e(3),c=e(6),u=e(5),a=function(t){function r(r,e,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=c.empty;break;case 1:if(!r){this.destination=c.empty;break}if("object"==typeof r){if(n(r)){var o=r[u.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new h(this,r);break}default:this.syncErrorThrowable=!0,this.destination=new h(this,r,e,i)}}return i(r,t),r.prototype[u.rxSubscriber]=function(){return this},r.create=function(t,e,n){var i=new r(t,e,n);return i.syncErrorThrowable=!1,i},r.prototype.next=function(t){this.isStopped||this._next(t)},r.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var t=this,r=t._parent,e=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=r,this._parents=e,this},r}(s.Subscription);r.Subscriber=a;var h=function(t){function r(r,e,n,i){t.call(this),this._parentSubscriber=r;var s,u=this;o.isFunction(e)?s=e:e&&(s=e.next,n=e.error,i=e.complete,e!==c.empty&&(u=Object.create(e),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=n,this._complete=i}return i(r,t),r.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;r.syncErrorThrowable?this.__tryOrSetError(r,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},r.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber;if(this._error)r.syncErrorThrowable?(this.__tryOrSetError(r,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!r.syncErrorThrowable)throw this.unsubscribe(),t;r.syncErrorValue=t,r.syncErrorThrown=!0,this.unsubscribe()}}},r.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var e=function(){return t._complete.call(t._context)};r.syncErrorThrowable?(this.__tryOrSetError(r,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(t){throw this.unsubscribe(),t}},r.prototype.__tryOrSetError=function(t,r,e){try{r.call(this._context,e)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},r.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},r}(a)},function(t,r,e){"use strict";(function(t){var e="undefined"!=typeof window&&window,n="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i="undefined"!=typeof t&&t,o=e||i||n;r.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(r,e(11))},function(t,r,e){"use strict";var n=e(1),i=e(43),o=e(7),s=e(41),c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(r){var e=new t;return e.source=this,e.operator=r,e},t.prototype.subscribe=function(t,r,e){var n=this.operator,o=i.toSubscriber(t,r,e);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.syncErrorThrown=!0,t.syncErrorValue=r,t.error(r)}},t.prototype.forEach=function(t,r){var e=this;if(r||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?r=n.root.Rx.config.Promise:n.root.Promise&&(r=n.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(r,n){var i;i=e.subscribe(function(r){if(i)try{t(r)}catch(t){n(t),i.unsubscribe()}else t(r)},n,r)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},t.create=function(r){return new t(r)},t}();r.Observable=c},function(t,r,e){"use strict";function n(t){return t.reduce(function(t,r){return t.concat(r instanceof a.UnsubscriptionError?r.errors:r)},[])}var i=e(37),o=e(10),s=e(9),c=e(44),u=e(8),a=e(36),h=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,r=!1;if(!this.closed){var e=this,h=e._parent,p=e._parents,f=e._unsubscribe,l=e._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var b=-1,d=p?p.length:0;h;)h.remove(this),h=++b<d&&p[b]||null;if(s.isFunction(f)){var y=c.tryCatch(f).call(this);y===u.errorObject&&(r=!0,t=t||(u.errorObject.e instanceof a.UnsubscriptionError?n(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(l))for(b=-1,d=l.length;++b<d;){var v=l[b];if(o.isObject(v)){var y=c.tryCatch(v.unsubscribe).call(v);if(y===u.errorObject){r=!0,t=t||[];var w=u.errorObject.e;w instanceof a.UnsubscriptionError?t=t.concat(n(w.errors)):t.push(w)}}}if(r)throw new a.UnsubscriptionError(t)}},t.prototype.add=function(r){if(!r||r===t.EMPTY)return t.EMPTY;if(r===this)return this;var e=r;switch(typeof r){case"function":e=new t(r);case"object":if(e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if("function"!=typeof e._addParent){var n=e;e=new t,e._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+r+" added to Subscription.")}var i=this._subscriptions||(this._subscriptions=[]);return i.push(e),e._addParent(this),e},t.prototype.remove=function(t){var r=this._subscriptions;if(r){var e=r.indexOf(t);e!==-1&&r.splice(e,1)}},t.prototype._addParent=function(t){var r=this,e=r._parent,n=r._parents;e&&e!==t?n?n.indexOf(t)===-1&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();r.Subscription=h},function(t,r,e){"use strict";(function(t){function e(t,r){if(!t)throw r}function n(t){return"function"==typeof t}function i(r,e){r.subscribe(function(r){t.console.log(e+".next:",r)},function(r){t.console.log(e+".error:",r)},function(r){t.console.log(e+".complete:",r)})}Object.defineProperty(r,"__esModule",{value:!0}),r.precondition=e,r.isFunction=n,r.subscribeLog=i}).call(r,e(11))},function(t,r,e){"use strict";var n=e(1),i=n.root.Symbol;r.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",r.$$rxSubscriber=r.rxSubscriber},function(t,r){"use strict";r.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},function(t,r,e){"use strict";function n(t){var r,e=t.Symbol;return"function"==typeof e?e.observable?r=e.observable:(r=e("observable"),e.observable=r):r="@@observable",r}var i=e(1);r.getSymbolObservable=n,r.observable=n(i.root),r.$$observable=r.observable},function(t,r){"use strict";r.errorObject={e:{}}},function(t,r){"use strict";function e(t){return"function"==typeof t}r.isFunction=e},function(t,r){"use strict";function e(t){return null!=t&&"object"==typeof t}r.isObject=e},function(t,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,r,e){"use strict";function n(t,r){var e=new o.Subject(s.async);if((0,c.isFunction)(r))e.dispatch=r;else{var n=(0,u.newObjectResolver)(r);e.dispatch=(0,a.newDispatcher)(n),e.addHandler=n.addHandler,e.on=e.addHandler}return e.map(function(t){return"string"==typeof t?{name:t}:t}).withLatestFrom(t,function(t,r){return e.dispatch(r,t)}).filter(function(t){return void 0!==t}).subscribe(t),e}function i(t){(0,c.subscribeLog)(t,"cmdBus$")}Object.defineProperty(r,"__esModule",{value:!0}),r.newCmdBus$=n,r.logCmdBus=i;var o=e(19);e(22),e(21),e(23);var s=e(33),c=e(4),u=e(15),a=e(14)},function(t,r){"use strict";function e(t,r){return"undefined"!=typeof r?function(e){for(var n=Object.assign({},e),i=arguments.length,o=Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return n[t]=r.apply(void 0,[e[t]].concat(o)),n}:(r=t,function(t){return e(t,r)})}Object.defineProperty(r,"__esModule",{value:!0}),r.submodelCmd=e},function(t,r,e){"use strict";function n(t){(0,i.precondition)(t,"resolver is required for a dispatcher"),(0,i.precondition)((0,i.isFunction)(t),"resolver must be a function");var r=function(r,e){var n=t(e.name);return n?n.call(e,r,e):void 0};return r.addHandler=t.addHandler,r}Object.defineProperty(r,"__esModule",{value:!0}),r.newDispatcher=n;var i=e(4)},function(t,r,e){"use strict";function n(t){var r=Object.assign({},t),e=function(t){return r[t]||r["*"]};return e.addHandler=function(t,e){(0,i.precondition)(t,"requires a command name"),(0,i.precondition)((0,i.isFunction)(e),"requires a projection function"),r[t]=e},e}Object.defineProperty(r,"__esModule",{value:!0}),r.newObjectResolver=n;var i=e(4)},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(0),o=function(t){function r(r,e,n){t.call(this),this.parent=r,this.outerValue=e,this.outerIndex=n,this.index=0}return n(r,t),r.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},r.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},r.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},r}(i.Subscriber);r.InnerSubscriber=o},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(0),o=function(t){function r(){t.apply(this,arguments)}return n(r,t),r.prototype.notifyNext=function(t,r,e,n,i){this.destination.next(r)},r.prototype.notifyError=function(t,r){this.destination.error(t)},r.prototype.notifyComplete=function(t){this.destination.complete()},r}(i.Subscriber);r.OuterSubscriber=o},function(t,r){"use strict";var e=function(){function t(r,e){void 0===e&&(e=t.now),this.SchedulerAction=r,this.now=e}return t.prototype.schedule=function(t,r,e){return void 0===r&&(r=0),new this.SchedulerAction(this,t).schedule(e,r)},t.now=Date.now?Date.now:function(){return+new Date},t}();r.Scheduler=e},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(2),o=e(0),s=e(3),c=e(35),u=e(20),a=e(5),h=function(t){function r(r){t.call(this,r),this.destination=r}return n(r,t),r}(o.Subscriber);r.SubjectSubscriber=h;var p=function(t){function r(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(r,t),r.prototype[a.rxSubscriber]=function(){return new h(this)},r.prototype.lift=function(t){var r=new f(this,this);return r.operator=t,r},r.prototype.next=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;if(!this.isStopped)for(var r=this.observers,e=r.length,n=r.slice(),i=0;i<e;i++)n[i].next(t)},r.prototype.error=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,e=r.length,n=r.slice(),i=0;i<e;i++)n[i].error(t);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,r=t.length,e=t.slice(),n=0;n<r;n++)e[n].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(r){if(this.closed)throw new c.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,r)},r.prototype._subscribe=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},r.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},r.create=function(t,r){return new f(t,r)},r}(i.Observable);r.Subject=p;var f=function(t){function r(r,e){t.call(this),this.destination=r,this.source=e}return n(r,t),r.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},r.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},r.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},r.prototype._subscribe=function(t){var r=this.source;return r?this.source.subscribe(t):s.Subscription.EMPTY},r}(p);r.AnonymousSubject=f},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(3),o=function(t){function r(r,e){t.call(this),this.subject=r,this.subscriber=e,this.closed=!1}return n(r,t),r.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,r&&0!==r.length&&!t.isStopped&&!t.closed){var e=r.indexOf(this.subscriber);e!==-1&&r.splice(e,1)}}},r}(i.Subscription);r.SubjectSubscription=o},function(t,r,e){"use strict";var n=e(2),i=e(24);n.Observable.prototype.filter=i.filter},function(t,r,e){"use strict";var n=e(2),i=e(25);n.Observable.prototype.map=i.map},function(t,r,e){"use strict";var n=e(2),i=e(26);n.Observable.prototype.withLatestFrom=i.withLatestFrom},function(t,r,e){"use strict";function n(t,r){return i.filter(t,r)(this)}var i=e(27);r.filter=n},function(t,r,e){"use strict";function n(t,r){return i.map(t,r)(this)}var i=e(28);r.map=n},function(t,r,e){"use strict";function n(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return i.withLatestFrom.apply(void 0,t)(this)}var i=e(29);r.withLatestFrom=n},function(t,r,e){"use strict";function n(t,r){return function(e){return e.lift(new s(t,r))}}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(0);r.filter=n;var s=function(){function t(t,r){this.predicate=t,this.thisArg=r}return t.prototype.call=function(t,r){return r.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function r(r,e,n){t.call(this,r),this.predicate=e,this.thisArg=n,this.count=0}return i(r,t),r.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}r&&this.destination.next(t)},r}(o.Subscriber)},function(t,r,e){"use strict";function n(t,r){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new s(t,r))}}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(0);r.map=n;var s=function(){function t(t,r){this.project=t,this.thisArg=r}return t.prototype.call=function(t,r){return r.subscribe(new c(t,this.project,this.thisArg))},t}();r.MapOperator=s;var c=function(t){function r(r,e,n){t.call(this,r),this.project=e,this.count=0,this.thisArg=n||this}return i(r,t),r.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(o.Subscriber)},function(t,r,e){"use strict";function n(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return function(r){var e;"function"==typeof t[t.length-1]&&(e=t.pop());var n=t;return r.lift(new c(n,e))}}var i=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},o=e(17),s=e(42);r.withLatestFrom=n;var c=function(){function t(t,r){this.observables=t,this.project=r}return t.prototype.call=function(t,r){return r.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function r(r,e,n){t.call(this,r),this.observables=e,this.project=n,this.toRespond=[];var i=e.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var c=e[o];this.add(s.subscribeToResult(this,c,c,o))}}return i(r,t),r.prototype.notifyNext=function(t,r,e,n,i){this.values[e]=r;var o=this.toRespond;if(o.length>0){var s=o.indexOf(e);s!==-1&&o.splice(s,1)}},r.prototype.notifyComplete=function(){},r.prototype._next=function(t){if(0===this.toRespond.length){var r=[t].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},r.prototype._tryProject=function(t){var r;try{r=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(r)},r}(o.OuterSubscriber)},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(3),o=function(t){function r(r,e){t.call(this)}return n(r,t),r.prototype.schedule=function(t,r){return void 0===r&&(r=0),this},r}(i.Subscription);r.Action=o},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(1),o=e(30),s=function(t){function r(r,e){t.call(this,r,e),this.scheduler=r,this.pending=!1,this.work=e}return n(r,t),r.prototype.schedule=function(t,r){if(void 0===r&&(r=0),this.closed)return this;this.state=t,this.pending=!0;var e=this.id,n=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(n,e,r)),this.delay=r,this.id=this.id||this.requestAsyncId(n,this.id,r),this},r.prototype.requestAsyncId=function(t,r,e){return void 0===e&&(e=0),i.root.setInterval(t.flush.bind(t,this),e)},r.prototype.recycleAsyncId=function(t,r,e){return void 0===e&&(e=0),null!==e&&this.delay===e&&this.pending===!1?r:i.root.clearInterval(r)&&void 0||void 0},r.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,r);return e?e:void(this.pending===!1&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null)))},r.prototype._execute=function(t,r){var e=!1,n=void 0;try{this.work(t)}catch(t){e=!0,n=!!t&&t||new Error(t)}if(e)return this.unsubscribe(),n},r.prototype._unsubscribe=function(){var t=this.id,r=this.scheduler,e=r.actions,n=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,n!==-1&&e.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null},r}(o.Action);r.AsyncAction=s},function(t,r,e){"use strict";var n=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},i=e(18),o=function(t){function r(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(r,t),r.prototype.flush=function(t){var r=this.actions;if(this.active)return void r.push(t);var e;this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},r}(i.Scheduler);r.AsyncScheduler=o},function(t,r,e){"use strict";var n=e(31),i=e(32);r.async=new i.AsyncScheduler(n.AsyncAction)},function(t,r,e){"use strict";function n(t){var r=t.Symbol;if("function"==typeof r)return r.iterator||(r.iterator=r("iterator polyfill")),r.iterator;var e=t.Set;if(e&&"function"==typeof(new e)["@@iterator"])return"@@iterator";var n=t.Map;if(n)for(var i=Object.getOwnPropertyNames(n.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&n.prototype[s]===n.prototype.entries)return s}return"@@iterator"}var i=e(1);r.symbolIteratorPonyfill=n,r.iterator=n(i.root),r.$$iterator=r.iterator},function(t,r){"use strict";var e=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},n=function(t){function r(){var r=t.call(this,"object unsubscribed");this.name=r.name="ObjectUnsubscribedError",this.stack=r.stack,this.message=r.message}return e(r,t),r}(Error);r.ObjectUnsubscribedError=n},function(t,r){"use strict";var e=this&&this.__extends||function(t,r){function e(){this.constructor=t}for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)},n=function(t){function r(r){t.call(this),this.errors=r;var e=Error.call(this,r?r.length+" errors occurred during unsubscription:\n "+r.map(function(t,r){return r+1+") "+t.toString()}).join("\n "):"");this.name=e.name="UnsubscriptionError",this.stack=e.stack,this.message=e.message}return e(r,t),r}(Error);r.UnsubscriptionError=n},function(t,r){"use strict";r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,r){"use strict";r.isArrayLike=function(t){return t&&"number"==typeof t.length}},function(t,r){"use strict";function e(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.isPromise=e},function(t,r){"use strict";function e(){}r.noop=e},function(t,r,e){"use strict";function n(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return i(t)}function i(t){return t?1===t.length?t[0]:function(r){return t.reduce(function(t,r){return r(t)},r)}:o.noop}var o=e(40);r.pipe=n,r.pipeFromArray=i},function(t,r,e){"use strict";function n(t,r,e,n){var f=new h.InnerSubscriber(t,e,n);if(f.closed)return null;if(r instanceof u.Observable)return r._isScalar?(f.next(r.value),f.complete(),null):(f.syncErrorThrowable=!0,r.subscribe(f));if(o.isArrayLike(r)){for(var l=0,b=r.length;l<b&&!f.closed;l++)f.next(r[l]);f.closed||f.complete()}else{if(s.isPromise(r))return r.then(function(t){f.closed||(f.next(t),f.complete())},function(t){return f.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),f;if(r&&"function"==typeof r[a.iterator])for(var d=r[a.iterator]();;){var y=d.next();if(y.done){f.complete();break}if(f.next(y.value),f.closed)break}else if(r&&"function"==typeof r[p.observable]){var v=r[p.observable]();if("function"==typeof v.subscribe)return v.subscribe(new h.InnerSubscriber(t,e,n));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var w=c.isObject(r)?"an invalid object":"'"+r+"'",_="You provided "+w+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(_))}}return null}var i=e(1),o=e(38),s=e(39),c=e(10),u=e(2),a=e(34),h=e(16),p=e(7);r.subscribeToResult=n},function(t,r,e){"use strict";function n(t,r,e){if(t){if(t instanceof i.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||r||e?new i.Subscriber(t,r,e):new i.Subscriber(s.empty)}var i=e(0),o=e(5),s=e(6);r.toSubscriber=n},function(t,r,e){"use strict";function n(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,n}var o,s=e(8);r.tryCatch=i},function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e(12),i=e(13);r.default={newCmdBus$:n.newCmdBus$,logCmdBus:n.logCmdBus,submodelCmd:i.submodelCmd},t.exports=r.default}])}); | ||
//# sourceMappingURL=pilota.js.map |
{ | ||
"name": "pilota", | ||
"version": "0.2.2", | ||
"version": "5.0.0", | ||
"description": "Command bus for RxJS", | ||
@@ -21,3 +21,5 @@ "scripts": { | ||
"keywords": [ | ||
"testing", | ||
"rxjs", | ||
"event bus", | ||
"reducer", | ||
"factory" | ||
@@ -32,3 +34,3 @@ ], | ||
"dependencies": { | ||
"rxjs": "^5.0.0-beta.12" | ||
"rxjs": "^5" | ||
}, | ||
@@ -35,0 +37,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
276775
98
0
0
Updatedrxjs@^5