forked from Reactive-Extensions/RxJS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrx.min.js
More file actions
4 lines (4 loc) · 58.5 KB
/
Copy pathrx.min.js
File metadata and controls
4 lines (4 loc) · 58.5 KB
1
2
3
4
/* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.*/
(function(a){function b(a){for(var b=[],c=0,d=a.length;d>c;c++)b.push(a[c]);return b}function c(a,b){if(fa&&b.stack&&"object"==typeof a&&null!==a&&a.stack&&-1===a.stack.indexOf(ja)){for(var c=[],e=b;e;e=e.source)e.stack&&c.unshift(e.stack);c.unshift(a.stack);var f=c.join("\n"+ja+"\n");a.stack=d(f)}}function d(a){for(var b=a.split("\n"),c=[],d=0,g=b.length;g>d;d++){var h=b[d];e(h)||f(h)||!h||c.push(h)}return c.join("\n")}function e(a){var b=h(a);if(!b)return!1;var c=b[0],d=b[1];return c===ha&&d>=ia&&yc>=d}function f(a){return-1!==a.indexOf("(module.js:")||-1!==a.indexOf("(node.js:")}function g(){if(fa)try{throw new Error}catch(a){var b=a.stack.split("\n"),c=b[0].indexOf("@")>0?b[1]:b[2],d=h(c);if(!d)return;return ha=d[0],d[1]}}function h(a){var b=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(a);if(b)return[b[1],Number(b[2])];var c=/at ([^ ]+):(\d+):(?:\d+)$/.exec(a);if(c)return[c[1],Number(c[2])];var d=/.*@(.+):(\d+)$/.exec(a);return d?[d[1],Number(d[2])]:void 0}function i(a){var b=[];if(!Sa(a))return b;Ra.nonEnumArgs&&a.length&&Ta(a)&&(a=Wa.call(a));var c=Ra.enumPrototypes&&"function"==typeof a,d=Ra.enumErrorProps&&(a===Ma||a instanceof Error);for(var e in a)c&&"prototype"==e||d&&("message"==e||"name"==e)||b.push(e);if(Ra.nonEnumShadows&&a!==Na){var f=a.constructor,g=-1,h=ya;if(a===(f&&f.prototype))var i=a===Oa?Ia:a===Ma?Da:Ja.call(a),j=Qa[i];for(;++g<h;)e=xa[g],j&&j[e]||!Ka.call(a,e)||b.push(e)}return b}function j(a,b,c){for(var d=-1,e=c(a),f=e.length;++d<f;){var g=e[d];if(b(a[g],g,a)===!1)break}return a}function k(a,b){return j(a,b,i)}function l(a){return"function"!=typeof a.toString&&"string"==typeof(a+"")}function m(a,b,c,d){if(a===b)return 0!==a||1/a==1/b;var e=typeof a,f=typeof b;if(a===a&&(null==a||null==b||"function"!=e&&"object"!=e&&"function"!=f&&"object"!=f))return!1;var g=Ja.call(a),h=Ja.call(b);if(g==za&&(g=Ga),h==za&&(h=Ga),g!=h)return!1;switch(g){case Ba:case Ca:return+a==+b;case Fa:return a!=+a?b!=+b:0==a?1/a==1/b:a==+b;case Ha:case Ia:return a==String(b)}var i=g==Aa;if(!i){if(g!=Ga||!Ra.nodeClass&&(l(a)||l(b)))return!1;var j=!Ra.argsObject&&Ta(a)?Object:a.constructor,n=!Ra.argsObject&&Ta(b)?Object:b.constructor;if(!(j==n||Ka.call(a,"constructor")&&Ka.call(b,"constructor")||ea(j)&&j instanceof j&&ea(n)&&n instanceof n||!("constructor"in a&&"constructor"in b)))return!1}c||(c=[]),d||(d=[]);for(var o=c.length;o--;)if(c[o]==a)return d[o]==b;var p=0,q=!0;if(c.push(a),d.push(b),i){if(o=a.length,p=b.length,q=p==o)for(;p--;){var r=b[p];if(!(q=m(a[p],r,c,d)))break}}else k(b,function(b,e,f){return Ka.call(f,e)?(p++,q=Ka.call(a,e)&&m(a[e],b,c,d)):void 0}),q&&k(a,function(a,b,c){return Ka.call(c,b)?q=--p>-1:void 0});return c.pop(),d.pop(),q}function n(a,b){for(var c=new Array(a),d=0;a>d;d++)c[d]=b();return c}function o(){try{return Ua.apply(this,arguments)}catch(a){return $a.e=a,$a}}function p(a){if(!ea(a))throw new TypeError("fn must be a function");return Ua=a,o}function q(a){throw a}function r(a,b){this.id=a,this.value=b}function t(a,b){this.scheduler=a,this.disposable=b,this.isDisposed=!1}function u(a,b){b.isDisposed||(b.isDisposed=!0,b.disposable.dispose())}function v(a){this.observer=a,this.a=[],this.isStopped=!1}function w(){this._s=s}function x(){this._s=s,this._l=s.length,this._i=0}function y(a){this._a=a}function z(a){this._a=a,this._l=D(a),this._i=0}function A(a){return"number"==typeof a&&T.isFinite(a)}function B(b){var c,d=b[ra];if(!d&&"string"==typeof b)return c=new w(b),c[ra]();if(!d&&b.length!==a)return c=new y(b),c[ra]();if(!d)throw new TypeError("Object is not iterable");return b[ra]()}function C(a){var b=+a;return 0===b?b:isNaN(b)?b:0>b?-1:1}function D(a){var b=+a.length;return isNaN(b)?0:0!==b&&A(b)?(b=C(b)*Math.floor(Math.abs(b)),0>=b?0:b>Wb?Wb:b):b}function E(a,b){this.observer=a,this.parent=b}function F(a,b){return ob(a)||(a=sb),new Yb(b,a)}function G(a,b){this.observer=a,this.parent=b}function H(a,b){this.observer=a,this.parent=b}function I(a,b){return new tc(function(c){var d=new ib,e=new jb;return e.setDisposable(d),d.setDisposable(a.subscribe(function(a){c.onNext(a)},function(a){try{var d=b(a)}catch(f){return c.onError(f)}da(d)&&(d=Pb(d));var g=new ib;e.setDisposable(g),g.setDisposable(d.subscribe(c))},function(a){c.onCompleted(a)})),e},a)}function J(a,b){var c=this;return new tc(function(d){var e=0,f=a.length;return c.subscribe(function(c){if(f>e){var g,h=a[e++];try{g=b(c,h)}catch(i){return d.onError(i)}d.onNext(g)}else d.onCompleted()},function(a){d.onError(a)},function(){d.onCompleted()})},c)}function K(){return!1}function L(){return[]}function M(a,b,c){var d=wa(b,c,3);return a.map(function(b,c){var e=d(b,c,a);return da(e)&&(e=Pb(e)),(ua(e)||ta(e))&&(e=Xb(e)),e}).concatAll()}function N(a,b,c){for(var d=0,e=a.length;e>d;d++)if(c(a[d],b))return d;return-1}function O(a){this.comparer=a,this.set=[]}function P(a,b,c){this.observer=a,this.selector=b,this.source=c,this.i=0,this.isStopped=!1}function Q(a,b,c){var d=wa(b,c,3);return a.map(function(b,c){var e=d(b,c,a);return da(e)&&(e=Pb(e)),(ua(e)||ta(e))&&(e=Xb(e)),e}).mergeAll()}function R(a,b,c){this.observer=a,this.predicate=b,this.source=c,this.i=0,this.isStopped=!1}var S={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},T=S[typeof window]&&window||this,U=S[typeof exports]&&exports&&!exports.nodeType&&exports,V=S[typeof module]&&module&&!module.nodeType&&module,W=V&&V.exports===U&&U,X=S[typeof global]&&global;!X||X.global!==X&&X.window!==X||(T=X);var Y={internals:{},config:{Promise:T.Promise},helpers:{}},Z=Y.helpers.noop=function(){},$=(Y.helpers.notDefined=function(a){return"undefined"==typeof a},Y.helpers.identity=function(a){return a}),_=(Y.helpers.pluck=function(a){return function(b){return b[a]}},Y.helpers.just=function(a){return function(){return a}},Y.helpers.defaultNow=Date.now),aa=Y.helpers.defaultComparer=function(a,b){return Va(a,b)},ba=Y.helpers.defaultSubComparer=function(a,b){return a>b?1:b>a?-1:0},ca=(Y.helpers.defaultKeySerializer=function(a){return a.toString()},Y.helpers.defaultError=function(a){throw a}),da=Y.helpers.isPromise=function(a){return!!a&&"function"==typeof a.then},ea=(Y.helpers.asArray=function(){return Array.prototype.slice.call(arguments)},Y.helpers.not=function(a){return!a},Y.helpers.isFunction=function(){var a=function(a){return"function"==typeof a||!1};return a(/x/)&&(a=function(a){return"function"==typeof a&&"[object Function]"==Ja.call(a)}),a}());Y.config.longStackSupport=!1;var fa=!1;try{throw new Error}catch(ga){fa=!!ga.stack}var ha,ia=g(),ja="From previous event:",ka=Y.EmptyError=function(){this.message="Sequence contains no elements.",Error.call(this)};ka.prototype=Error.prototype;var la=Y.ObjectDisposedError=function(){this.message="Object has been disposed",Error.call(this)};la.prototype=Error.prototype;var ma=Y.ArgumentOutOfRangeError=function(){this.message="Argument out of range",Error.call(this)};ma.prototype=Error.prototype;var na=Y.NotSupportedError=function(a){this.message=a||"This operation is not supported",Error.call(this)};na.prototype=Error.prototype;var oa=Y.NotImplementedError=function(a){this.message=a||"This operation is not implemented",Error.call(this)};oa.prototype=Error.prototype;var pa=Y.helpers.notImplemented=function(){throw new oa},qa=Y.helpers.notSupported=function(){throw new na},ra="function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_";T.Set&&"function"==typeof(new T.Set)["@@iterator"]&&(ra="@@iterator");var sa=Y.doneEnumerator={done:!0,value:a},ta=Y.helpers.isIterable=function(b){return b[ra]!==a},ua=Y.helpers.isArrayLike=function(b){return b&&b.length!==a};Y.helpers.iterator=ra;var va,wa=Y.internals.bindCallback=function(a,b,c){if("undefined"==typeof b)return a;switch(c){case 0:return function(){return a.call(b)};case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},xa=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ya=xa.length,za="[object Arguments]",Aa="[object Array]",Ba="[object Boolean]",Ca="[object Date]",Da="[object Error]",Ea="[object Function]",Fa="[object Number]",Ga="[object Object]",Ha="[object RegExp]",Ia="[object String]",Ja=Object.prototype.toString,Ka=Object.prototype.hasOwnProperty,La=Ja.call(arguments)==za,Ma=Error.prototype,Na=Object.prototype,Oa=String.prototype,Pa=Na.propertyIsEnumerable;try{va=!(Ja.call(document)==Ga&&!({toString:0}+""))}catch(ga){va=!0}var Qa={};Qa[Aa]=Qa[Ca]=Qa[Fa]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},Qa[Ba]=Qa[Ia]={constructor:!0,toString:!0,valueOf:!0},Qa[Da]=Qa[Ea]=Qa[Ha]={constructor:!0,toString:!0},Qa[Ga]={constructor:!0};var Ra={};!function(){var a=function(){this.x=1},b=[];a.prototype={valueOf:1,y:1};for(var c in new a)b.push(c);for(c in arguments);Ra.enumErrorProps=Pa.call(Ma,"message")||Pa.call(Ma,"name"),Ra.enumPrototypes=Pa.call(a,"prototype"),Ra.nonEnumArgs=0!=c,Ra.nonEnumShadows=!/valueOf/.test(b)}(1);var Sa=Y.internals.isObject=function(a){var b=typeof a;return a&&("function"==b||"object"==b)||!1},Ta=function(a){return a&&"object"==typeof a?Ja.call(a)==za:!1};La||(Ta=function(a){return a&&"object"==typeof a?Ka.call(a,"callee"):!1});var Ua,Va=Y.internals.isEqual=function(a,b){return m(a,b,[],[])},Wa=({}.hasOwnProperty,Array.prototype.slice),Xa=this.inherits=Y.internals.inherits=function(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c},Ya=Y.internals.addProperties=function(a){for(var b=[],c=1,d=arguments.length;d>c;c++)b.push(arguments[c]);for(var e=0,f=b.length;f>e;e++){var g=b[e];for(var h in g)a[h]=g[h]}},Za=Y.internals.addRef=function(a,b){return new tc(function(c){return new bb(b.getDisposable(),a.subscribe(c))})},$a={e:{}};r.prototype.compareTo=function(a){var b=this.value.compareTo(a.value);return 0===b&&(b=this.id-a.id),b};var _a=Y.internals.PriorityQueue=function(a){this.items=new Array(a),this.length=0},ab=_a.prototype;ab.isHigherPriority=function(a,b){return this.items[a].compareTo(this.items[b])<0},ab.percolate=function(a){if(!(a>=this.length||0>a)){var b=a-1>>1;if(!(0>b||b===a)&&this.isHigherPriority(a,b)){var c=this.items[a];this.items[a]=this.items[b],this.items[b]=c,this.percolate(b)}}},ab.heapify=function(a){if(+a||(a=0),!(a>=this.length||0>a)){var b=2*a+1,c=2*a+2,d=a;if(b<this.length&&this.isHigherPriority(b,d)&&(d=b),c<this.length&&this.isHigherPriority(c,d)&&(d=c),d!==a){var e=this.items[a];this.items[a]=this.items[d],this.items[d]=e,this.heapify(d)}}},ab.peek=function(){return this.items[0].value},ab.removeAt=function(b){this.items[b]=this.items[--this.length],this.items[this.length]=a,this.heapify()},ab.dequeue=function(){var a=this.peek();return this.removeAt(0),a},ab.enqueue=function(a){var b=this.length++;this.items[b]=new r(_a.count++,a),this.percolate(b)},ab.remove=function(a){for(var b=0;b<this.length;b++)if(this.items[b].value===a)return this.removeAt(b),!0;return!1},_a.count=0;var bb=Y.CompositeDisposable=function(){var a,b,c=[];if(Array.isArray(arguments[0]))c=arguments[0],b=c.length;else for(b=arguments.length,c=new Array(b),a=0;b>a;a++)c[a]=arguments[a];for(a=0;b>a;a++)if(!gb(c[a]))throw new TypeError("Not a disposable");this.disposables=c,this.isDisposed=!1,this.length=c.length},cb=bb.prototype;cb.add=function(a){this.isDisposed?a.dispose():(this.disposables.push(a),this.length++)},cb.remove=function(a){var b=!1;if(!this.isDisposed){var c=this.disposables.indexOf(a);-1!==c&&(b=!0,this.disposables.splice(c,1),this.length--,a.dispose())}return b},cb.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var a=this.disposables.length,b=new Array(a),c=0;a>c;c++)b[c]=this.disposables[c];for(this.disposables=[],this.length=0,c=0;a>c;c++)b[c].dispose()}};var db=Y.Disposable=function(a){this.isDisposed=!1,this.action=a||Z};db.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)};var eb=db.create=function(a){return new db(a)},fb=db.empty={dispose:Z},gb=db.isDisposable=function(a){return a&&ea(a.dispose)},hb=db.checkDisposed=function(a){if(a.isDisposed)throw new la},ib=Y.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null};ib.prototype.getDisposable=function(){return this.current},ib.prototype.setDisposable=function(a){if(this.current)throw new Error("Disposable has already been assigned");var b=this.isDisposed;!b&&(this.current=a),b&&a&&a.dispose()},ib.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.current;this.current=null}a&&a.dispose()};var jb=Y.SerialDisposable=function(){this.isDisposed=!1,this.current=null};jb.prototype.getDisposable=function(){return this.current},jb.prototype.setDisposable=function(a){var b=this.isDisposed;if(!b){var c=this.current;this.current=a}c&&c.dispose(),b&&a&&a.dispose()},jb.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var a=this.current;this.current=null}a&&a.dispose()};var kb=Y.RefCountDisposable=function(){function a(a){this.disposable=a,this.disposable.count++,this.isInnerDisposed=!1}function b(a){this.underlyingDisposable=a,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}return a.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},b.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},b.prototype.getDisposable=function(){return this.isDisposed?fb:new a(this)},b}();t.prototype.dispose=function(){this.scheduler.scheduleWithState(this,u)};var lb=Y.internals.ScheduledItem=function(a,b,c,d,e){this.scheduler=a,this.state=b,this.action=c,this.dueTime=d,this.comparer=e||ba,this.disposable=new ib};lb.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},lb.prototype.compareTo=function(a){return this.comparer(this.dueTime,a.dueTime)},lb.prototype.isCancelled=function(){return this.disposable.isDisposed},lb.prototype.invokeCore=function(){return this.action(this.scheduler,this.state)};var mb=Y.Scheduler=function(){function a(a,b,c,d){this.now=a,this._schedule=b,this._scheduleRelative=c,this._scheduleAbsolute=d}function b(a,b){return b(),fb}a.isScheduler=function(b){return b instanceof a};var c=a.prototype;return c.schedule=function(a){return this._schedule(a,b)},c.scheduleWithState=function(a,b){return this._schedule(a,b)},c.scheduleWithRelative=function(a,c){return this._scheduleRelative(c,a,b)},c.scheduleWithRelativeAndState=function(a,b,c){return this._scheduleRelative(a,b,c)},c.scheduleWithAbsolute=function(a,c){return this._scheduleAbsolute(c,a,b)},c.scheduleWithAbsoluteAndState=function(a,b,c){return this._scheduleAbsolute(a,b,c)},a.now=_,a.normalize=function(a){return 0>a&&(a=0),a},a}(),nb=mb.normalize,ob=mb.isScheduler;!function(a){function b(a,b){function c(b){e(b,function(b){var d=!1,e=!1,g=a.scheduleWithState(b,function(a,b){return d?f.remove(g):e=!0,c(b),fb});e||(f.add(g),d=!0)})}var d=b[0],e=b[1],f=new bb;return c(d),f}function c(a,b,c){function d(b){f(b,function(b,e){var f=!1,h=!1,i=a[c](b,e,function(a,b){return f?g.remove(i):h=!0,d(b),fb});h||(g.add(i),f=!0)})}var e=b[0],f=b[1],g=new bb;return d(e),g}function d(a,b){a(function(c){b(a,c)})}a.scheduleRecursive=function(a){return this.scheduleRecursiveWithState(a,function(a,b){a(function(){b(a)})})},a.scheduleRecursiveWithState=function(a,c){return this.scheduleWithState([a,c],b)},a.scheduleRecursiveWithRelative=function(a,b){return this.scheduleRecursiveWithRelativeAndState(b,a,d)},a.scheduleRecursiveWithRelativeAndState=function(a,b,d){return this._scheduleRelative([a,d],b,function(a,b){return c(a,b,"scheduleWithRelativeAndState")})},a.scheduleRecursiveWithAbsolute=function(a,b){return this.scheduleRecursiveWithAbsoluteAndState(b,a,d)},a.scheduleRecursiveWithAbsoluteAndState=function(a,b,d){return this._scheduleAbsolute([a,d],b,function(a,b){return c(a,b,"scheduleWithAbsoluteAndState")})}}(mb.prototype),function(){mb.prototype.schedulePeriodic=function(a,b){return this.schedulePeriodicWithState(null,a,b)},mb.prototype.schedulePeriodicWithState=function(a,b,c){if("undefined"==typeof T.setInterval)throw new na;b=nb(b);var d=a,e=T.setInterval(function(){d=c(d)},b);return eb(function(){T.clearInterval(e)})}}(mb.prototype),function(a){a.catchError=a["catch"]=function(a){return new wb(this,a)}}(mb.prototype);var pb,qb,rb=(Y.internals.SchedulePeriodicRecursive=function(){function a(a,b){b(0,this._period);try{this._state=this._action(this._state)}catch(c){throw this._cancel.dispose(),c}}function b(a,b,c,d){this._scheduler=a,this._state=b,this._period=c,this._action=d}return b.prototype.start=function(){var b=new ib;return this._cancel=b,b.setDisposable(this._scheduler.scheduleRecursiveWithRelativeAndState(0,this._period,a.bind(this))),b},b}(),mb.immediate=function(){function a(a,b){return b(this,a)}return new mb(_,a,qa,qa)}()),sb=mb.currentThread=function(){function a(){for(;c.length>0;){var a=c.dequeue();!a.isCancelled()&&a.invoke()}}function b(b,d){var e=new lb(this,b,d,this.now());if(c)c.enqueue(e);else{c=new _a(4),c.enqueue(e);var f=p(a)();if(c=null,f===$a)return q(f.e)}return e.disposable}var c,d=new mb(_,b,qa,qa);return d.scheduleRequired=function(){return!c},d}(),tb=function(){var a,b=Z;if(T.setTimeout)a=T.setTimeout,b=T.clearTimeout;else{if(!T.WScript)throw new na;a=function(a,b){T.WScript.Sleep(b),a()}}return{setTimeout:a,clearTimeout:b}}(),ub=tb.setTimeout,vb=tb.clearTimeout;!function(){function a(b){if(f)ub(function(){a(b)},0);else{var c=e[b];if(c){f=!0;var d=p(c)();if(qb(b),f=!1,d===$a)return q(d.e)}}}function b(){if(!T.postMessage||T.importScripts)return!1;var a=!1,b=T.onmessage;return T.onmessage=function(){a=!0},T.postMessage("","*"),T.onmessage=b,a}function c(b){"string"==typeof b.data&&b.data.substring(0,i.length)===i&&a(b.data.substring(i.length))}var d=1,e={},f=!1;qb=function(a){delete e[a]};var g=RegExp("^"+String(Ja).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),h="function"==typeof(h=X&&W&&X.setImmediate)&&!g.test(h)&&h;if(ea(h))pb=function(b){var c=d++;return e[c]=b,h(function(){a(c)}),c};else if("undefined"!=typeof process&&"[object process]"==={}.toString.call(process))pb=function(b){var c=d++;return e[c]=b,process.nextTick(function(){a(c)}),c};else if(b()){var i="ms.rx.schedule"+Math.random();T.addEventListener?T.addEventListener("message",c,!1):T.attachEvent?T.attachEvent("onmessage",c):T.onmessage=c,pb=function(a){var b=d++;return e[b]=a,T.postMessage(i+currentId,"*"),b}}else if(T.MessageChannel){var j=new T.MessageChannel;j.port1.onmessage=function(b){a(b.data)},pb=function(a){var b=d++;return e[b]=a,j.port2.postMessage(b),b}}else pb="document"in T&&"onreadystatechange"in T.document.createElement("script")?function(b){var c=T.document.createElement("script"),f=d++;return e[f]=b,c.onreadystatechange=function(){a(f),c.onreadystatechange=null,c.parentNode.removeChild(c),c=null},T.document.documentElement.appendChild(c),f}:function(b){var c=d++;return e[c]=b,ub(function(){a(c)},0),c}}();var wb=(mb.timeout=mb["default"]=function(){function a(a,b){var c=this,d=new ib,e=pb(function(){!d.isDisposed&&d.setDisposable(b(c,a))});return new bb(d,eb(function(){qb(e)}))}function b(a,b,c){var d=this,e=mb.normalize(b),f=new ib;if(0===e)return d.scheduleWithState(a,c);var g=ub(function(){!f.isDisposed&&f.setDisposable(c(d,a))},e);return new bb(f,eb(function(){vb(g)}))}function c(a,b,c){return this.scheduleWithRelativeAndState(a,b-this.now(),c)}return new mb(_,a,b,c)}(),function(a){function b(a,b){return this._scheduler.scheduleWithState(a,this._wrap(b))}function c(a,b,c){return this._scheduler.scheduleWithRelativeAndState(a,b,this._wrap(c))}function d(a,b,c){return this._scheduler.scheduleWithAbsoluteAndState(a,b,this._wrap(c))}function e(e,f){this._scheduler=e,this._handler=f,this._recursiveOriginal=null,this._recursiveWrapper=null,a.call(this,this._scheduler.now.bind(this._scheduler),b,c,d)}return Xa(e,a),e.prototype._clone=function(a){return new e(a,this._handler)},e.prototype._wrap=function(a){var b=this;return function(c,d){try{return a(b._getRecursiveWrapper(c),d)}catch(e){if(!b._handler(e))throw e;return fb}}},e.prototype._getRecursiveWrapper=function(a){if(this._recursiveOriginal!==a){this._recursiveOriginal=a;var b=this._clone(a);b._recursiveOriginal=a,b._recursiveWrapper=b,this._recursiveWrapper=b}return this._recursiveWrapper},e.prototype.schedulePeriodicWithState=function(a,b,c){var d=this,e=!1,f=new ib;return f.setDisposable(this._scheduler.schedulePeriodicWithState(a,b,function(a){if(e)return null;try{return c(a)}catch(b){if(e=!0,!d._handler(b))throw b;return f.dispose(),null}})),f},e}(mb)),xb=Y.Notification=function(){function a(a,b,c,d,e,f){this.kind=a,this.value=b,this.exception=c,this._accept=d,this._acceptObservable=e,this.toString=f}return a.prototype.accept=function(a,b,c){return a&&"object"==typeof a?this._acceptObservable(a):this._accept(a,b,c)},a.prototype.toObservable=function(a){var b=this;return ob(a)||(a=rb),new tc(function(c){return a.scheduleWithState(b,function(a,b){b._acceptObservable(c),"N"===b.kind&&c.onCompleted()})})},a}(),yb=xb.createOnNext=function(){function a(a){return a(this.value)}function b(a){return a.onNext(this.value)}function c(){return"OnNext("+this.value+")"}return function(d){return new xb("N",d,null,a,b,c)}}(),zb=xb.createOnError=function(){function a(a,b){return b(this.exception)}function b(a){return a.onError(this.exception)}function c(){return"OnError("+this.exception+")"}return function(d){return new xb("E",null,d,a,b,c)}}(),Ab=xb.createOnCompleted=function(){function a(a,b,c){return c()}function b(a){return a.onCompleted()}function c(){return"OnCompleted()"}return function(){return new xb("C",null,null,a,b,c)}}(),Bb=Y.internals.Enumerator=function(a){this._next=a};Bb.prototype.next=function(){return this._next()},Bb.prototype[ra]=function(){return this};var Cb=Y.internals.Enumerable=function(a){this._iterator=a};Cb.prototype[ra]=function(){return this._iterator()},Cb.prototype.concat=function(){var a=this;return new tc(function(b){var c,d=a[ra](),e=new jb,f=rb.scheduleRecursive(function(a){if(!c){try{var f=d.next()}catch(g){return b.onError(g)}if(f.done)return b.onCompleted();var h=f.value;da(h)&&(h=Pb(h));var i=new ib;e.setDisposable(i),i.setDisposable(h.subscribe(function(a){b.onNext(a)},function(a){b.onError(a)},a))}});return new bb(e,f,eb(function(){c=!0}))})},Cb.prototype.catchError=function(){var a=this;return new tc(function(b){var c,d=a[ra](),e=new jb,f=rb.scheduleRecursiveWithState(null,function(a,f){if(!c){try{var g=d.next()}catch(h){return observer.onError(h)}if(g.done)return void(null!==a?b.onError(a):b.onCompleted());var i=g.value;da(i)&&(i=Pb(i));var j=new ib;e.setDisposable(j),j.setDisposable(i.subscribe(function(a){b.onNext(a)},f,function(){b.onCompleted()}))}});return new bb(e,f,eb(function(){c=!0}))})},Cb.prototype.catchErrorWhen=function(a){var b=this;return new tc(function(c){var d,e,f=new wc,g=new wc,h=a(f),i=h.subscribe(g),j=b[ra](),k=new jb,l=rb.scheduleRecursive(function(a){if(!d){try{var b=j.next()}catch(h){return c.onError(h)}if(b.done)return void(e?c.onError(e):c.onCompleted());var i=b.value;da(i)&&(i=Pb(i));var l=new ib,m=new ib;k.setDisposable(new bb(m,l)),l.setDisposable(i.subscribe(function(a){c.onNext(a)},function(b){m.setDisposable(g.subscribe(a,function(a){c.onError(a)},function(){c.onCompleted()})),f.onNext(b)},function(){c.onCompleted()}))}});return new bb(i,k,l,eb(function(){d=!0}))})};var Db=Cb.repeat=function(a,b){return null==b&&(b=-1),new Cb(function(){var c=b;return new Bb(function(){return 0===c?sa:(c>0&&c--,{done:!1,value:a})})})},Eb=Cb.of=function(a,b,c){if(b)var d=wa(b,c,3);return new Cb(function(){var c=-1;return new Bb(function(){return++c<a.length?{done:!1,value:b?d(a[c],c,a):a[c]}:sa})})},Fb=Y.Observer=function(){};Fb.prototype.toNotifier=function(){var a=this;return function(b){return b.accept(a)}},Fb.prototype.asObserver=function(){return new Jb(this.onNext.bind(this),this.onError.bind(this),this.onCompleted.bind(this))},Fb.prototype.checked=function(){return new Kb(this)};var Gb=Fb.create=function(a,b,c){return a||(a=Z),b||(b=ca),c||(c=Z),new Jb(a,b,c)};Fb.fromNotifier=function(a,b){return new Jb(function(c){return a.call(b,yb(c))},function(c){return a.call(b,zb(c))},function(){return a.call(b,Ab())})},Fb.prototype.notifyOn=function(a){return new Mb(a,this)},Fb.prototype.makeSafe=function(a){return new AnonymousSafeObserver(this._onNext,this._onError,this._onCompleted,a)};var Hb,Ib=Y.internals.AbstractObserver=function(a){function b(){this.isStopped=!1,a.call(this)}return Xa(b,a),b.prototype.next=pa,b.prototype.error=pa,b.prototype.completed=pa,b.prototype.onNext=function(a){this.isStopped||this.next(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.error(a))},b.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.error(a),!0)},b}(Fb),Jb=Y.AnonymousObserver=function(a){function b(b,c,d){a.call(this),this._onNext=b,this._onError=c,this._onCompleted=d}return Xa(b,a),b.prototype.next=function(a){this._onNext(a)},b.prototype.error=function(a){this._onError(a)},b.prototype.completed=function(){this._onCompleted()},b}(Ib),Kb=function(a){function b(b){a.call(this),this._observer=b,this._state=0}Xa(b,a);var c=b.prototype;return c.onNext=function(a){this.checkAccess();var b=p(this._observer.onNext).call(this._observer,a);this._state=0,b===$a&&q(b.e)},c.onError=function(a){this.checkAccess();var b=p(this._observer.onError).call(this._observer,a);this._state=2,b===$a&&q(b.e)},c.onCompleted=function(){this.checkAccess();var a=p(this._observer.onCompleted).call(this._observer);this._state=2,a===$a&&q(a.e)},c.checkAccess=function(){if(1===this._state)throw new Error("Re-entrancy detected");if(2===this._state)throw new Error("Observer completed");0===this._state&&(this._state=1)},b}(Fb),Lb=Y.internals.ScheduledObserver=function(a){function b(b,c){a.call(this),this.scheduler=b,this.observer=c,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new jb}return Xa(b,a),b.prototype.next=function(a){var b=this;this.queue.push(function(){b.observer.onNext(a)})},b.prototype.error=function(a){var b=this;this.queue.push(function(){b.observer.onError(a)})},b.prototype.completed=function(){var a=this;this.queue.push(function(){a.observer.onCompleted()})},b.prototype.ensureActive=function(){var a=!1,b=this;!this.hasFaulted&&this.queue.length>0&&(a=!this.isAcquired,this.isAcquired=!0),a&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(function(a){var c;if(!(b.queue.length>0))return void(b.isAcquired=!1);c=b.queue.shift();try{c()}catch(d){throw b.queue=[],b.hasFaulted=!0,d}a()}))},b.prototype.dispose=function(){a.prototype.dispose.call(this),this.disposable.dispose()},b}(Ib),Mb=function(a){function b(b,c,d){a.call(this,b,c),this._cancel=d}return Xa(b,a),b.prototype.next=function(b){a.prototype.next.call(this,b),this.ensureActive()},b.prototype.error=function(b){a.prototype.error.call(this,b),this.ensureActive()},b.prototype.completed=function(){a.prototype.completed.call(this),this.ensureActive()},b.prototype.dispose=function(){a.prototype.dispose.call(this),this._cancel&&this._cancel.dispose(),this._cancel=null},b}(Lb),Nb=Y.Observable=function(){function a(a){if(Y.config.longStackSupport&&fa){try{throw new Error}catch(b){this.stack=b.stack.substring(b.stack.indexOf("\n")+1)}var d=this;this._subscribe=function(b){var e=b.onError.bind(b);return b.onError=function(a){c(a,d),e(a)},a.call(d,b)}}else this._subscribe=a}return Hb=a.prototype,Hb.subscribe=Hb.forEach=function(a,b,c){return this._subscribe("object"==typeof a?a:Gb(a,b,c))},Hb.subscribeOnNext=function(a,b){return this._subscribe(Gb("undefined"!=typeof b?function(c){a.call(b,c)}:a))},Hb.subscribeOnError=function(a,b){return this._subscribe(Gb(null,"undefined"!=typeof b?function(c){a.call(b,c)}:a))},Hb.subscribeOnCompleted=function(a,b){return this._subscribe(Gb(null,null,"undefined"!=typeof b?function(){a.call(b)}:a))},a}(),Ob=Y.ObservableBase=function(a){function b(a){return a&&ea(a.dispose)?a:ea(a)?eb(a):fb}function c(a,c){var d=c[0],e=c[1],f=p(e.subscribeCore).call(e,d);return f!==$a||d.fail($a.e)?void d.setDisposable(b(f)):q($a.e)}function d(a){var b=new uc(a),d=[b,this];return sb.scheduleRequired()?sb.scheduleWithState(d,c):c(null,d),b}function e(){a.call(this,d)}return Xa(e,a),e.prototype.subscribeCore=pa,e}(Nb);Hb.observeOn=function(a){var b=this;return new tc(function(c){return b.subscribe(new Mb(a,c))},b)},Hb.subscribeOn=function(a){var b=this;return new tc(function(c){var d=new ib,e=new jb;return e.setDisposable(d),d.setDisposable(a.schedule(function(){e.setDisposable(new t(a,b.subscribe(c)))})),e},b)};var Pb=Nb.fromPromise=function(a){return Rb(function(){var b=new Y.AsyncSubject;return a.then(function(a){b.onNext(a),b.onCompleted()},b.onError.bind(b)),b})};Hb.toPromise=function(a){if(a||(a=Y.config.Promise),!a)throw new na("Promise type not provided nor in Rx.config.Promise");var b=this;return new a(function(a,c){var d,e=!1;b.subscribe(function(a){d=a,e=!0},c,function(){e&&a(d)})})};var Qb=function(a){function b(b){this.source=b,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new v(a))},b}(Ob);v.prototype.onNext=function(a){this.isStopped||this.a.push(a)},v.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.observer.onError(a))},v.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.observer.onNext(this.a),this.observer.onCompleted())},v.prototype.dispose=function(){this.isStopped=!0},v.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)},Hb.toArray=function(){return new Qb(this)},Nb.create=Nb.createWithDisposable=function(a,b){return new tc(a,b)};var Rb=Nb.defer=function(a){return new tc(function(b){var c;try{c=a()}catch(d){return gc(d).subscribe(b)}return da(c)&&(c=Pb(c)),c.subscribe(b)})},Sb=function(a){function b(b){this.scheduler=b,a.call(this)}function c(a,b){this.observer=a,this.parent=b}function d(a,b){b.onCompleted()}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this);return b.run()},c.prototype.run=function(){return this.parent.scheduler.scheduleWithState(this.observer,d)},b}(Ob),Tb=Nb.empty=function(a){return ob(a)||(a=rb),new Sb(a)},Ub=function(a){function b(b,c,d){this.iterable=b,this.mapper=c,this.scheduler=d,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new Vb(a,this);return b.run()},b}(Ob),Vb=function(){function a(a,b){this.observer=a,this.parent=b}return a.prototype.run=function(){function a(a,b){try{var f=c.next()}catch(g){return d.onError(g)}if(f.done)return d.onCompleted();var h=f.value;if(e)try{h=e(h,a)}catch(g){return d.onError(g)}d.onNext(h),b(a+1)}var b=Object(this.parent.iterable),c=B(b),d=this.observer,e=this.parent.mapper;return this.parent.scheduler.scheduleRecursiveWithState(0,a)},a}(),Wb=Math.pow(2,53)-1;w.prototype[ra]=function(){return new x(this._s)},x.prototype[ra]=function(){return this},x.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:sa},y.prototype[ra]=function(){return new z(this._a)},z.prototype[ra]=function(){return this},z.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:sa};var Xb=Nb.from=function(a,b,c,d){if(null==a)throw new Error("iterable cannot be null.");if(b&&!ea(b))throw new Error("mapFn when provided must be a function");if(b)var e=wa(b,c,2);return ob(d)||(d=sb),new Ub(a,e,d)},Yb=function(a){function b(b,c){
this.args=b,this.scheduler=c,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new E(a,this);return b.run()},b}(Ob);E.prototype.run=function(){function a(a,e){d>a?(b.onNext(c[a]),e(a+1)):b.onCompleted()}var b=this.observer,c=this.parent.args,d=c.length;return this.parent.scheduler.scheduleRecursiveWithState(0,a)};var Zb=Nb.fromArray=function(a,b){return ob(b)||(b=sb),new Yb(a,b)};Nb.generate=function(a,b,c,d,e){return ob(e)||(e=sb),new tc(function(f){var g=!0;return e.scheduleRecursiveWithState(a,function(a,e){var h,i;try{g?g=!1:a=c(a),h=b(a),h&&(i=d(a))}catch(j){return f.onError(j)}h?(f.onNext(i),e(a)):f.onCompleted()})})};var $b=function(a){function b(){a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(){return fb},b}(Ob),_b=Nb.never=function(){return new $b};Nb.of=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return new Yb(b,sb)},Nb.ofWithScheduler=function(a){for(var b=arguments.length,c=new Array(b-1),d=1;b>d;d++)c[d-1]=arguments[d];return new Yb(c,a)};var ac=function(a){function b(b,c){this.obj=b,this.keys=Object.keys(b),this.scheduler=c,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new G(a,this);return b.run()},b}(Ob);G.prototype.run=function(){function a(a,f){if(e>a){var g=d[a];b.onNext([g,c[g]]),f(a+1)}else b.onCompleted()}var b=this.observer,c=this.parent.obj,d=this.parent.keys,e=d.length;return this.parent.scheduler.scheduleRecursiveWithState(0,a)},Nb.pairs=function(a,b){return b||(b=sb),new ac(a,b)};var bc=function(a){function b(b,c,d){this.start=b,this.count=c,this.scheduler=d,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new cc(a,this);return b.run()},b}(Ob),cc=function(){function a(a,b){this.observer=a,this.parent=b}return a.prototype.run=function(){function a(a,e){c>a?(d.onNext(b+a),e(a+1)):d.onCompleted()}var b=this.parent.start,c=this.parent.count,d=this.observer;return this.parent.scheduler.scheduleRecursiveWithState(0,a)},a}();Nb.range=function(a,b,c){return ob(c)||(c=sb),new bc(a,b,c)};var dc=function(a){function b(b,c,d){this.value=b,this.repeatCount=null==c?-1:c,this.scheduler=d,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new H(a,this);return b.run()},b}(Ob);H.prototype.run=function(){function a(a,d){return(-1===a||a>0)&&(b.onNext(c),a>0&&a--),0===a?b.onCompleted():void d(a)}var b=this.observer,c=this.parent.value;return this.parent.scheduler.scheduleRecursiveWithState(this.parent.repeatCount,a)},Nb.repeat=function(a,b,c){return ob(c)||(c=sb),new dc(a,b,c)};var ec=function(a){function b(b,c){this.value=b,this.scheduler=c,a.call(this)}function c(a,b){this.observer=a,this.parent=b}function d(a,b){var c=b[0],d=b[1];d.onNext(c),d.onCompleted()}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this);return b.run()},c.prototype.run=function(){return this.parent.scheduler.scheduleWithState([this.parent.value,this.observer],d)},b}(Ob),fc=(Nb["return"]=Nb.just=Nb.returnValue=function(a,b){return ob(b)||(b=rb),new ec(a,b)},function(a){function b(b,c){this.error=b,this.scheduler=c,a.call(this)}function c(a,b){this.observer=a,this.parent=b}function d(a,b){var c=b[0],d=b[1];d.onError(c)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new c(a,this);return b.run()},c.prototype.run=function(){return this.parent.scheduler.scheduleWithState([this.parent.error,this.observer],d)},b}(Ob)),gc=Nb["throw"]=Nb.throwError=Nb.throwException=function(a,b){return ob(b)||(b=rb),new fc(a,b)};Nb.using=function(a,b){return new tc(function(c){var d,e,f=fb;try{d=a(),d&&(f=d),e=b(d)}catch(g){return new bb(gc(g).subscribe(c),f)}return new bb(e.subscribe(c),f)})},Hb.amb=function(a){var b=this;return new tc(function(c){function d(){f||(f=g,j.dispose())}function e(){f||(f=h,i.dispose())}var f,g="L",h="R",i=new ib,j=new ib;return da(a)&&(a=Pb(a)),i.setDisposable(b.subscribe(function(a){d(),f===g&&c.onNext(a)},function(a){d(),f===g&&c.onError(a)},function(){d(),f===g&&c.onCompleted()})),j.setDisposable(a.subscribe(function(a){e(),f===h&&c.onNext(a)},function(a){e(),f===h&&c.onError(a)},function(){e(),f===h&&c.onCompleted()})),new bb(i,j)})},Nb.amb=function(){function a(a,b){return a.amb(b)}var b=_b(),c=[];if(Array.isArray(arguments[0]))c=arguments[0];else for(var d=0,e=arguments.length;e>d;d++)c.push(arguments[d]);for(var d=0,e=c.length;e>d;d++)b=a(b,c[d]);return b},Hb["catch"]=Hb.catchError=Hb.catchException=function(a){return"function"==typeof a?I(this,a):hc([this,a])};var hc=Nb.catchError=Nb["catch"]=Nb.catchException=function(){var a=[];if(Array.isArray(arguments[0]))a=arguments[0];else for(var b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);return Eb(a).catchError()};Hb.combineLatest=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return Array.isArray(b[0])?b[0].unshift(this):b.unshift(this),ic.apply(this,b)};var ic=Nb.combineLatest=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=b.pop();return Array.isArray(b[0])&&(b=b[0]),new tc(function(a){function c(b){if(h[b]=!0,i||(i=h.every($))){try{var c=d.apply(null,k)}catch(e){return a.onError(e)}a.onNext(c)}else j.filter(function(a,c){return c!==b}).every($)&&a.onCompleted()}function e(b){j[b]=!0,j.every($)&&a.onCompleted()}for(var f=b.length,g=function(){return!1},h=n(f,g),i=!1,j=n(f,g),k=new Array(f),l=new Array(f),m=0;f>m;m++)!function(d){var f=b[d],g=new ib;da(f)&&(f=Pb(f)),g.setDisposable(f.subscribe(function(a){k[d]=a,c(d)},function(b){a.onError(b)},function(){e(d)})),l[d]=g}(m);return new bb(l)},this)};Hb.concat=function(){for(var a=[],b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);return a.unshift(this),jc.apply(null,a)};var jc=Nb.concat=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{a=new Array(arguments.length);for(var b=0,c=arguments.length;c>b;b++)a[b]=arguments[b]}return Eb(a).concat()};Hb.concatAll=Hb.concatObservable=function(){return this.merge(1)};var kc=function(a){function b(b,c){this.source=b,this.maxConcurrent=c,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new bb;return b.add(this.source.subscribe(new lc(a,this.maxConcurrent,b))),b},b}(Ob),lc=function(){function a(a,b,c){this.o=a,this.max=b,this.g=c,this.done=!1,this.q=[],this.activeCount=0,this.isStopped=!1}function b(a,b){this.parent=a,this.sad=b,this.isStopped=!1}return a.prototype.handleSubscribe=function(a){var c=new ib;this.g.add(c),da(a)&&(a=Pb(a)),c.setDisposable(a.subscribe(new b(this,c)))},a.prototype.onNext=function(a){this.isStopped||(this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(a)):this.q.push(a))},a.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},a.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,0===this.activeCount&&this.o.onCompleted())},a.prototype.dispose=function(){this.isStopped=!0},a.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b.prototype.onNext=function(a){this.isStopped||this.parent.o.onNext(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.parent.o.onError(a))},b.prototype.onCompleted=function(){if(!this.isStopped){this.isStopped=!0;var a=this.parent;a.g.remove(this.sad),a.q.length>0?a.handleSubscribe(a.q.shift()):(a.activeCount--,a.done&&0===a.activeCount&&a.o.onCompleted())}},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(a),!0)},a}();Hb.merge=function(a){return"number"!=typeof a?mc(this,a):new kc(this,a)};var mc=Nb.merge=function(){var a,b,c=[],d=arguments.length;if(arguments[0])if(ob(arguments[0]))for(a=arguments[0],b=1;d>b;b++)c.push(arguments[b]);else for(a=rb,b=0;d>b;b++)c.push(arguments[b]);else for(a=rb,b=1;d>b;b++)c.push(arguments[b]);return Array.isArray(c[0])&&(c=c[0]),F(a,c).mergeAll()},nc=Y.CompositeError=function(a){this.name="NotImplementedError",this.innerErrors=a,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)};nc.prototype=Error.prototype,Nb.mergeDelayError=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{var b=arguments.length;a=new Array(b);for(var c=0;b>c;c++)a[c]=arguments[c]}var d=F(null,a);return new tc(function(a){function b(){0===g.length?a.onCompleted():a.onError(1===g.length?g[0]:new nc(g))}var c=new bb,e=new ib,f=!1,g=[];return c.add(e),e.setDisposable(d.subscribe(function(d){var e=new ib;c.add(e),da(d)&&(d=Pb(d)),e.setDisposable(d.subscribe(function(b){a.onNext(b)},function(a){g.push(a),c.remove(e),f&&1===c.length&&b()},function(){c.remove(e),f&&1===c.length&&b()}))},function(a){g.push(a),f=!0,1===c.length&&b()},function(){f=!0,1===c.length&&b()})),c})};var oc=function(a){function b(b){this.source=b,a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){var b=new bb,c=new ib;return b.add(c),c.setDisposable(this.source.subscribe(new pc(a,b))),b},b}(Ob),pc=function(){function a(a,b){this.o=a,this.g=b,this.isStopped=!1,this.done=!1}function b(a,b,c){this.parent=a,this.g=b,this.sad=c,this.isStopped=!1}return a.prototype.onNext=function(a){if(!this.isStopped){var c=new ib;this.g.add(c),da(a)&&(a=Pb(a)),c.setDisposable(a.subscribe(new b(this,this.g,c)))}},a.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.o.onError(a))},a.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.done=!0,1===this.g.length&&this.o.onCompleted())},a.prototype.dispose=function(){this.isStopped=!0},a.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.o.onError(a),!0)},b.prototype.onNext=function(a){this.isStopped||this.parent.o.onNext(a)},b.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.parent.o.onError(a))},b.prototype.onCompleted=function(){if(!this.isStopped){var a=this.parent;this.isStopped=!0,a.g.remove(this.sad),a.done&&1===a.g.length&&a.o.onCompleted()}},b.prototype.dispose=function(){this.isStopped=!0},b.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.parent.o.onError(a),!0)},a}();Hb.mergeAll=Hb.mergeObservable=function(){return new oc(this)},Hb.onErrorResumeNext=function(a){if(!a)throw new Error("Second observable is required");return qc([this,a])};var qc=Nb.onErrorResumeNext=function(){var a=[];if(Array.isArray(arguments[0]))a=arguments[0];else for(var b=0,c=arguments.length;c>b;b++)a.push(arguments[b]);return new tc(function(b){var c=0,d=new jb,e=rb.scheduleRecursive(function(e){var f,g;c<a.length?(f=a[c++],da(f)&&(f=Pb(f)),g=new ib,d.setDisposable(g),g.setDisposable(f.subscribe(b.onNext.bind(b),e,e))):b.onCompleted()});return new bb(d,e)})};Hb.skipUntil=function(a){var b=this;return new tc(function(c){var d=!1,e=new bb(b.subscribe(function(a){d&&c.onNext(a)},function(a){c.onError(a)},function(){d&&c.onCompleted()}));da(a)&&(a=Pb(a));var f=new ib;return e.add(f),f.setDisposable(a.subscribe(function(){d=!0,f.dispose()},function(a){c.onError(a)},function(){f.dispose()})),e},b)},Hb["switch"]=Hb.switchLatest=function(){var a=this;return new tc(function(b){var c=!1,d=new jb,e=!1,f=0,g=a.subscribe(function(a){var g=new ib,h=++f;c=!0,d.setDisposable(g),da(a)&&(a=Pb(a)),g.setDisposable(a.subscribe(function(a){f===h&&b.onNext(a)},function(a){f===h&&b.onError(a)},function(){f===h&&(c=!1,e&&b.onCompleted())}))},function(a){b.onError(a)},function(){e=!0,!c&&b.onCompleted()});return new bb(g,d)},a)},Hb.takeUntil=function(a){var b=this;return new tc(function(c){return da(a)&&(a=Pb(a)),new bb(b.subscribe(c),a.subscribe(function(){c.onCompleted()},function(a){c.onError(a)},Z))},b)},Hb.withLatestFrom=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=b.pop(),e=this;if("undefined"==typeof e)throw new Error("Source observable not found for withLatestFrom().");if("function"!=typeof d)throw new Error("withLatestFrom() expects a resultSelector function.");return Array.isArray(b[0])&&(b=b[0]),new tc(function(a){for(var c=function(){return!1},f=b.length,g=n(f,c),h=!1,i=new Array(f),j=new Array(f+1),k=0;f>k;k++)!function(c){var d=b[c],e=new ib;da(d)&&(d=Pb(d)),e.setDisposable(d.subscribe(function(a){i[c]=a,g[c]=!0,h=g.every($)},a.onError.bind(a),function(){})),j[c]=e}(k);var l=new ib;return l.setDisposable(e.subscribe(function(b){var c,e=[b].concat(i);if(h){try{c=d.apply(null,e)}catch(f){return void a.onError(f)}a.onNext(c)}},a.onError.bind(a),function(){a.onCompleted()})),j[f]=l,new bb(j)},this)},Hb.zip=function(){if(Array.isArray(arguments[0]))return J.apply(this,arguments);for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=this,e=b.pop();return b.unshift(d),new tc(function(a){function c(b){var c,f;if(h.every(function(a){return a.length>0})){try{f=h.map(function(a){return a.shift()}),c=e.apply(d,f)}catch(g){return void a.onError(g)}a.onNext(c)}else i.filter(function(a,c){return c!==b}).every($)&&a.onCompleted()}function f(b){i[b]=!0,i.every(function(a){return a})&&a.onCompleted()}for(var g=b.length,h=n(g,L),i=n(g,K),j=new Array(g),k=0;g>k;k++)!function(d){var e=b[d],g=new ib;da(e)&&(e=Pb(e)),g.setDisposable(e.subscribe(function(a){h[d].push(a),c(d)},function(b){a.onError(b)},function(){f(d)})),j[d]=g}(k);return new bb(j)},d)},Nb.zip=function(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=b.shift();return d.zip.apply(d,b)},Nb.zipArray=function(){var a;if(Array.isArray(arguments[0]))a=arguments[0];else{var b=arguments.length;a=new Array(b);for(var c=0;b>c;c++)a[c]=arguments[c]}return new tc(function(b){function c(a){if(f.every(function(a){return a.length>0})){var c=f.map(function(a){return a.shift()});b.onNext(c)}else if(g.filter(function(b,c){return c!==a}).every($))return void b.onCompleted()}function d(a){return g[a]=!0,g.every($)?void b.onCompleted():void 0}for(var e=a.length,f=n(e,function(){return[]}),g=n(e,function(){return!1}),h=new Array(e),i=0;e>i;i++)!function(e){h[e]=new ib,h[e].setDisposable(a[e].subscribe(function(a){f[e].push(a),c(e)},function(a){b.onError(a)},function(){d(e)}))}(i);return new bb(h)})},Hb.asObservable=function(){var a=this;return new tc(function(b){return a.subscribe(b)},this)},Hb.bufferWithCount=function(a,b){return"number"!=typeof b&&(b=a),this.windowWithCount(a,b).selectMany(function(a){return a.toArray()}).where(function(a){return a.length>0})},Hb.dematerialize=function(){var a=this;return new tc(function(b){return a.subscribe(function(a){return a.accept(b)},function(a){b.onError(a)},function(){b.onCompleted()})},this)},Hb.distinctUntilChanged=function(a,b){var c=this;return b||(b=aa),new tc(function(d){var e,f=!1;return c.subscribe(function(c){var g=c;if(a)try{g=a(c)}catch(h){return void d.onError(h)}if(f)try{var i=b(e,g)}catch(h){return void d.onError(h)}f&&i||(f=!0,e=g,d.onNext(c))},function(a){d.onError(a)},function(){d.onCompleted()})},this)},Hb["do"]=Hb.tap=Hb.doAction=function(a,b,c){var d=this;return new tc(function(e){var f=!a||ea(a)?Gb(a||Z,b||Z,c||Z):a;return d.subscribe(function(a){try{f.onNext(a)}catch(b){e.onError(b)}e.onNext(a)},function(a){try{f.onError(a)}catch(b){e.onError(b)}e.onError(a)},function(){try{f.onCompleted()}catch(a){e.onError(a)}e.onCompleted()})},this)},Hb.doOnNext=Hb.tapOnNext=function(a,b){return this.tap("undefined"!=typeof b?function(c){a.call(b,c)}:a)},Hb.doOnError=Hb.tapOnError=function(a,b){return this.tap(Z,"undefined"!=typeof b?function(c){a.call(b,c)}:a)},Hb.doOnCompleted=Hb.tapOnCompleted=function(a,b){return this.tap(Z,null,"undefined"!=typeof b?function(){a.call(b)}:a)},Hb["finally"]=Hb.ensure=function(a){var b=this;return new tc(function(c){var d;try{d=b.subscribe(c)}catch(e){throw a(),e}return eb(function(){try{d.dispose()}catch(b){throw b}finally{a()}})},this)},Hb.finallyAction=function(a){return this.ensure(a)},Hb.ignoreElements=function(){var a=this;return new tc(function(b){return a.subscribe(Z,function(a){b.onError(a)},function(){b.onCompleted()})},a)},Hb.materialize=function(){var a=this;return new tc(function(b){return a.subscribe(function(a){b.onNext(yb(a))},function(a){b.onNext(zb(a)),b.onCompleted()},function(){b.onNext(Ab()),b.onCompleted()})},a)},Hb.repeat=function(a){return Db(this,a).concat()},Hb.retry=function(a){return Db(this,a).catchError()},Hb.retryWhen=function(a){return Db(this).catchErrorWhen(a)},Hb.scan=function(){var a,b,c=!1,d=this;return 2===arguments.length?(c=!0,a=arguments[0],b=arguments[1]):b=arguments[0],new tc(function(e){var f,g,h;return d.subscribe(function(d){!h&&(h=!0);try{f?g=b(g,d):(g=c?b(a,d):d,f=!0)}catch(i){return void e.onError(i)}e.onNext(g)},function(a){e.onError(a)},function(){!h&&c&&e.onNext(a),e.onCompleted()})},d)},Hb.skipLast=function(a){if(0>a)throw new ma;var b=this;return new tc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&c.onNext(d.shift())},function(a){c.onError(a)},function(){c.onCompleted()})},b)},Hb.startWith=function(){var a,b=0;arguments.length&&ob(arguments[0])?(a=arguments[0],b=1):a=rb;for(var c=[],d=b,e=arguments.length;e>d;d++)c.push(arguments[d]);return Eb([Zb(c,a),this]).concat()},Hb.takeLast=function(a){if(0>a)throw new ma;var b=this;return new tc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&d.shift()},function(a){c.onError(a)},function(){for(;d.length>0;)c.onNext(d.shift());c.onCompleted()})},b)},Hb.takeLastBuffer=function(a){var b=this;return new tc(function(c){var d=[];return b.subscribe(function(b){d.push(b),d.length>a&&d.shift()},function(a){c.onError(a)},function(){c.onNext(d),c.onCompleted()})},b)},Hb.windowWithCount=function(a,b){var c=this;if(+a||(a=0),Math.abs(a)===1/0&&(a=0),0>=a)throw new ma;if(null==b&&(b=a),+b||(b=0),Math.abs(b)===1/0&&(b=0),0>=b)throw new ma;return new tc(function(d){function e(){var a=new wc;i.push(a),d.onNext(Za(a,g))}var f=new ib,g=new kb(f),h=0,i=[];return e(),f.setDisposable(c.subscribe(function(c){for(var d=0,f=i.length;f>d;d++)i[d].onNext(c);var g=h-a+1;g>=0&&g%b===0&&i.shift().onCompleted(),++h%b===0&&e()},function(a){for(;i.length>0;)i.shift().onError(a);d.onError(a)},function(){for(;i.length>0;)i.shift().onCompleted();d.onCompleted()})),g},c)},Hb.selectConcat=Hb.concatMap=function(a,b,c){return ea(a)&&ea(b)?this.concatMap(function(c,d){var e=a(c,d);return da(e)&&(e=Pb(e)),(ua(e)||ta(e))&&(e=Xb(e)),e.map(function(a,e){return b(c,a,d,e)})}):ea(a)?M(this,a,c):M(this,function(){return a})},Hb.concatMapObserver=Hb.selectConcatObserver=function(a,b,c,d){var e=this,f=wa(a,d,2),g=wa(b,d,1),h=wa(c,d,0);return new tc(function(a){var b=0;return e.subscribe(function(c){var d;try{d=f(c,b++)}catch(e){return void a.onError(e)}da(d)&&(d=Pb(d)),a.onNext(d)},function(b){var c;try{c=g(b)}catch(d){return void a.onError(d)}da(c)&&(c=Pb(c)),a.onNext(c),a.onCompleted()},function(){var b;try{b=h()}catch(c){return void a.onError(c)}da(b)&&(b=Pb(b)),a.onNext(b),a.onCompleted()})},this).concatAll()},Hb.defaultIfEmpty=function(b){var c=this;return b===a&&(b=null),new tc(function(a){var d=!1;return c.subscribe(function(b){d=!0,a.onNext(b)},function(b){a.onError(b)},function(){!d&&a.onNext(b),a.onCompleted()})},c)},O.prototype.push=function(a){var b=-1===N(this.set,a,this.comparer);return b&&this.set.push(a),b},Hb.distinct=function(a,b){var c=this;return b||(b=aa),new tc(function(d){var e=new O(b);return c.subscribe(function(b){var c=b;if(a)try{c=a(b)}catch(f){return void d.onError(f)}e.push(c)&&d.onNext(b)},function(a){d.onError(a)},function(){d.onCompleted()})},this)};var rc=function(a){function b(b,c,d){this.source=b,this.selector=wa(c,d,3),a.call(this)}return Xa(b,a),b.prototype.internalMap=function(a,c){var d=this;return new b(this.source,function(b,c,e){return a.call(this,d.selector(b,c,e),c,e)},c)},b.prototype.subscribeCore=function(a){return this.source.subscribe(new P(a,this.selector,this))},b}(Ob);P.prototype.onNext=function(a){if(!this.isStopped){var b=p(this.selector).call(this,a,this.i++,this.source);return b===$a?this.observer.onError(b.e):void this.observer.onNext(b)}},P.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.observer.onError(a))},P.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.observer.onCompleted())},P.prototype.dispose=function(){this.isStopped=!0},P.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)},Hb.map=Hb.select=function(a,b){var c="function"==typeof a?a:function(){return a};return this instanceof rc?this.internalMap(c,b):new rc(this,c,b)},Hb.pluck=function(){var b=arguments,c=arguments.length;if(0===c)throw new Error("List of properties cannot be empty.");return this.map(function(d){for(var e=d,f=0;c>f;f++){var g=e[b[f]];if("undefined"==typeof g)return a;e=g}return e})},Hb.flatMapObserver=Hb.selectManyObserver=function(a,b,c,d){var e=this;return new tc(function(f){var g=0;return e.subscribe(function(b){var c;try{c=a.call(d,b,g++)}catch(e){return void f.onError(e)}da(c)&&(c=Pb(c)),f.onNext(c)},function(a){var c;try{c=b.call(d,a)}catch(e){return void f.onError(e)}da(c)&&(c=Pb(c)),f.onNext(c),f.onCompleted()},function(){var a;try{a=c.call(d)}catch(b){return void f.onError(b)}da(a)&&(a=Pb(a)),f.onNext(a),f.onCompleted()})},e).mergeAll()},Hb.selectMany=Hb.flatMap=function(a,b,c){return ea(a)&&ea(b)?this.flatMap(function(c,d){var e=a(c,d);return da(e)&&(e=Pb(e)),(ua(e)||ta(e))&&(e=Xb(e)),e.map(function(a,e){return b(c,a,d,e)})},c):ea(a)?Q(this,a,c):Q(this,function(){return a})},Hb.selectSwitch=Hb.flatMapLatest=Hb.switchMap=function(a,b){return this.select(a,b).switchLatest()},Hb.skip=function(a){if(0>a)throw new ma;var b=this;return new tc(function(c){var d=a;return b.subscribe(function(a){0>=d?c.onNext(a):d--},function(a){c.onError(a)},function(){c.onCompleted()})},b)},Hb.skipWhile=function(a,b){var c=this,d=wa(a,b,3);return new tc(function(a){var b=0,e=!1;return c.subscribe(function(f){if(!e)try{e=!d(f,b++,c)}catch(g){return void a.onError(g)}e&&a.onNext(f)},function(b){a.onError(b)},function(){a.onCompleted()})},c)},Hb.take=function(a,b){if(0>a)throw new ma;if(0===a)return Tb(b);var c=this;return new tc(function(b){var d=a;return c.subscribe(function(a){d-->0&&(b.onNext(a),0===d&&b.onCompleted())},function(a){b.onError(a)},function(){b.onCompleted()})},c)},Hb.takeWhile=function(a,b){var c=this,d=wa(a,b,3);return new tc(function(a){var b=0,e=!0;return c.subscribe(function(f){if(e){try{e=d(f,b++,c)}catch(g){return void a.onError(g)}e?a.onNext(f):a.onCompleted()}},function(b){a.onError(b)},function(){a.onCompleted()})},c)};var sc=function(a){function b(b,c,d){this.source=b,this.predicate=wa(c,d,3),a.call(this)}return Xa(b,a),b.prototype.subscribeCore=function(a){return this.source.subscribe(new R(a,this.predicate,this))},b.prototype.internalFilter=function(a,c){var d=this;return new b(this.source,function(b,c,e){return d.predicate(b,c,e)&&a.call(this,b,c,e)},c)},b}(Ob);R.prototype.onNext=function(a){if(!this.isStopped){var b=p(this.predicate).call(this,a,this.i++,this.source);return b===$a?this.observer.onError(b.e):void(b&&this.observer.onNext(a))}},R.prototype.onError=function(a){this.isStopped||(this.isStopped=!0,this.observer.onError(a))},R.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.observer.onCompleted())},R.prototype.dispose=function(){this.isStopped=!0},R.prototype.fail=function(a){return this.isStopped?!1:(this.isStopped=!0,this.observer.onError(a),!0)},Hb.filter=Hb.where=function(a,b){return this instanceof sc?this.internalFilter(a,b):new sc(this,a,b)},Hb.transduce=function(a){function b(a){return{"@@transducer/init":function(){return a},"@@transducer/step":function(a,b){return a.onNext(b)},"@@transducer/result":function(a){return a.onCompleted()}}}var c=this;return new tc(function(d){var e=a(b(d));return c.subscribe(function(a){try{e["@@transducer/step"](d,a)}catch(b){d.onError(b)}},function(a){d.onError(a)},function(){e["@@transducer/result"](d)})},c)};var tc=Y.AnonymousObservable=function(a){function b(a){return a&&ea(a.dispose)?a:ea(a)?eb(a):fb}function c(a,c){var d=c[0],e=c[1],f=p(e)(d);return f!==$a||d.fail($a.e)?void d.setDisposable(b(f)):q($a.e)}function d(b,d){function e(a){var d=new uc(a),e=[d,b];return sb.scheduleRequired()?sb.scheduleWithState(e,c):c(null,e),d}this.source=d,a.call(this,e)}return Xa(d,a),d}(Nb),uc=function(a){function b(b){a.call(this),this.observer=b,this.m=new ib}Xa(b,a);var c=b.prototype;return c.next=function(a){var b=p(this.observer.onNext).call(this.observer,a);b===$a&&(this.dispose(),q(b.e))},c.error=function(a){var b=p(this.observer.onError).call(this.observer,a);this.dispose(),b===$a&&q(b.e)},c.completed=function(){var a=p(this.observer.onCompleted).call(this.observer);this.dispose(),a===$a&&q(a.e)},c.setDisposable=function(a){this.m.setDisposable(a)},c.getDisposable=function(){return this.m.getDisposable()},c.dispose=function(){a.prototype.dispose.call(this),this.m.dispose()},b}(Ib),vc=function(a,b){this.subject=a,this.observer=b};vc.prototype.dispose=function(){if(!this.subject.isDisposed&&null!==this.observer){var a=this.subject.observers.indexOf(this.observer);this.subject.observers.splice(a,1),this.observer=null}};var wc=Y.Subject=function(a){function c(a){return hb(this),this.isStopped?this.hasError?(a.onError(this.error),fb):(a.onCompleted(),fb):(this.observers.push(a),new vc(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}return Xa(d,a),Ya(d.prototype,Fb.prototype,{hasObservers:function(){return this.observers.length>0},onCompleted:function(){if(hb(this),!this.isStopped){this.isStopped=!0;for(var a=0,c=b(this.observers),d=c.length;d>a;a++)c[a].onCompleted();this.observers.length=0}},onError:function(a){if(hb(this),!this.isStopped){this.isStopped=!0,this.error=a,this.hasError=!0;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){if(hb(this),!this.isStopped)for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onNext(a)},dispose:function(){this.isDisposed=!0,this.observers=null}}),d.create=function(a,b){return new xc(a,b)},d}(Nb),xc=(Y.AsyncSubject=function(a){function c(a){return hb(this),this.isStopped?(this.hasError?a.onError(this.error):this.hasValue?(a.onNext(this.value),a.onCompleted()):a.onCompleted(),fb):(this.observers.push(a),new vc(this,a))}function d(){a.call(this,c),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}return Xa(d,a),Ya(d.prototype,Fb,{hasObservers:function(){return hb(this),this.observers.length>0},onCompleted:function(){var a,c;if(hb(this),!this.isStopped){this.isStopped=!0;var d=b(this.observers),c=d.length;if(this.hasValue)for(a=0;c>a;a++){var e=d[a];e.onNext(this.value),e.onCompleted()}else for(a=0;c>a;a++)d[a].onCompleted();this.observers.length=0}},onError:function(a){if(hb(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=a;for(var c=0,d=b(this.observers),e=d.length;e>c;c++)d[c].onError(a);this.observers.length=0}},onNext:function(a){hb(this),this.isStopped||(this.value=a,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.exception=null,this.value=null}}),d}(Nb),Y.AnonymousSubject=function(a){function b(a){return this.observable.subscribe(a)}function c(c,d){this.observer=c,this.observable=d,a.call(this,b)}return Xa(c,a),Ya(c.prototype,Fb.prototype,{onCompleted:function(){this.observer.onCompleted()},onError:function(a){this.observer.onError(a)},onNext:function(a){this.observer.onNext(a)}}),c}(Nb));"function"==typeof define&&"object"==typeof define.amd&&define.amd?(T.Rx=Y,define(function(){return Y})):U&&V?W?(V.exports=Y).Rx=Y:U.Rx=Y:T.Rx=Y;var yc=g()}).call(this);
//# sourceMappingURL=rx.map