Subtheme of barrio
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

317 lines
146 KiB

2 years ago
/**
@license
Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
**/
/**
@license
Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt
**/
/*
*****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
*****************************************************************************/
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(l,k,x){if(x.get||x.set)throw new TypeError("ES3 does not support getters and setters.");l!=Array.prototype&&l!=Object.prototype&&(l[k]=x.value)};$jscomp.getGlobal=function(l){return"undefined"!=typeof window&&window===l?l:"undefined"!=typeof global&&null!=global?global:l};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(l,k,x,B){if(k){x=$jscomp.global;l=l.split(".");for(B=0;B<l.length-1;B++){var q=l[B];q in x||(x[q]={});x=x[q]}l=l[l.length-1];B=x[l];k=k(B);k!=B&&null!=k&&$jscomp.defineProperty(x,l,{configurable:!0,writable:!0,value:k})}};$jscomp.polyfill("Object.setPrototypeOf",function(l){return l?l:"object"!=typeof"".__proto__?null:function(k,l){k.__proto__=l;if(k.__proto__!==l)throw new TypeError(k+" is not extensible");return k}},"es6","es5");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(l){return $jscomp.SYMBOL_PREFIX+(l||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var l=$jscomp.global.Symbol.iterator;l||(l=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[l]&&$jscomp.defineProperty(Array.prototype,l,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(l){var k=0;return $jscomp.iteratorPrototype(function(){return k<l.length?{done:!1,value:l[k++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(l){$jscomp.initSymbolIterator();l={next:l};l[$jscomp.global.Symbol.iterator]=function(){return this};return l};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(l,k){$jscomp.initSymbolIterator();l instanceof String&&(l+="");var x=0,B={next:function(){if(x<l.length){var q=x++;return{value:k(q,l[q]),done:!1}}B.next=function(){return{done:!0,value:void 0}};return B.next()}};B[Symbol.iterator]=function(){return B};return B};
$jscomp.polyfill("Array.prototype.values",function(l){return l?l:function(){return $jscomp.iteratorFromArray(this,function(k,l){return l})}},"es6","es3");$jscomp.polyfill("Array.prototype.keys",function(l){return l?l:function(){return $jscomp.iteratorFromArray(this,function(k){return k})}},"es6-impl","es3");
(function(l,k){"object"===typeof exports&&"undefined"!==typeof module?k(exports):"function"===typeof define&&define.amd?define(["exports"],k):k(l.Rx=l.Rx||{})})(this,function(l){function k(b,a){function c(){this.constructor=b}hd(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}function x(b){return"function"===typeof b}function B(){try{return za.apply(this,arguments)}catch(b){return n.e=b,n}}function q(b){za=b;return B}function Aa(b){return b.reduce(function(a,c){return a.concat(c instanceof
S?c.errors:c)},[])}function id(){}function la(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Ba(b)}function Ba(b){return b?1===b.length?b[0]:function(a){return b.reduce(function(c,a){return a(c)},a)}:id}function Ca(b){var a=b.subject;a.next(b.value);a.complete()}function jd(b){b.subject.error(b.err)}function kd(b){var a=this,c=b.source,e=b.subscriber;b=b.context;var d=c.callbackFunc,f=c.args,h=c.scheduler,g=c.subject;if(!g){var g=c.subject=new P,k=function ld(){for(var c=[],
b=0;b<arguments.length;b++)c[b-0]=arguments[b];var e=ld.source,b=e.selector,e=e.subject,d=c.shift();d?a.add(h.schedule(ma,0,{err:d,subject:e})):b?(c=q(b).apply(this,c),c===n?a.add(h.schedule(ma,0,{err:n.e,subject:e})):a.add(h.schedule(Da,0,{value:c,subject:e}))):a.add(h.schedule(Da,0,{value:1>=c.length?c[0]:c,subject:e}))};k.source=c;q(d).apply(b,f.concat(k))===n&&a.add(h.schedule(ma,0,{err:n.e,subject:g}))}a.add(g.subscribe(e))}function Da(b){var a=b.subject;a.next(b.value);a.complete()}function ma(b){b.subject.error(b.err)}
function A(b){return b&&"function"===typeof b.schedule}function Ea(b){return b&&"function"!==typeof b.subscribe&&"function"===typeof b.then}function r(b,a,c,e){var d=new Fa(b,c,e);if(d.closed)return null;if(a instanceof g)if(a._isScalar)d.next(a.value),d.complete();else return d.syncErrorThrowable=!0,a.subscribe(d);else if(a&&"number"===typeof a.length){b=0;for(c=a.length;b<c&&!d.closed;b++)d.next(a[b]);d.closed||d.complete()}else{if(Ea(a))return a.then(function(c){d.closed||(d.next(c),d.complete())},
function(c){return d.error(c)}).then(null,function(c){p.setTimeout(function(){throw c;})}),d;if(a&&"function"===typeof a[C]){a=a[C]();do{b=a.next();if(b.done){d.complete();break}d.next(b.value);if(d.closed)break}while(1)}else if(a&&"function"===typeof a[J])if(a=a[J](),"function"!==typeof a.subscribe)d.error(new TypeError("Provided object does not correctly implement Symbol.observable"));else return a.subscribe(new Fa(b,c,e));else d.error(new TypeError("You provided "+(null!=a&&"object"===typeof a?
"an invalid object":"'"+a+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}return null}function Ga(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];var c=null;"function"===typeof b[b.length-1]&&(c=b.pop());1===b.length&&E(b[0])&&(b=b[0].slice());return function(a){return a.lift.call(new G([a].concat(b)),new na(c))}}function Ha(b){var a=b.value;b=b.subscriber;b.closed||(b.next(a),b.complete())}function nd(b){var a=b.err;b=b.subscriber;
b.closed||b.error(a)}function Ia(b,a){void 0===a&&(a=0);return function(c){return c.lift(new od(b,a))}}function T(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);return function(e){"number"===typeof a&&(c=a,a=null);return e.lift(new pd(b,a,c))}}function Ja(b){return b}function ba(b){void 0===b&&(b=Number.POSITIVE_INFINITY);return T(Ja,null,b)}function oa(){return ba(1)}function U(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return 1===b.length||2===b.length&&A(b[1])?Ka(b[0]):oa()(La.apply(void 0,
b))}function K(b){return!E(b)&&0<=b-parseFloat(b)+1}function Ma(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];var a=Number.POSITIVE_INFINITY,c=null,e=b[b.length-1];A(e)?(c=b.pop(),1<b.length&&"number"===typeof b[b.length-1]&&(a=b.pop())):"number"===typeof e&&(a=b.pop());return null===c&&1===b.length&&b[0]instanceof g?b[0]:ba(a)(new G(b,c))}function Na(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];if(1===b.length)if(E(b[0]))b=b[0];else return b[0];return(new G(b)).lift(new qd)}
function Oa(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];1===b.length&&E(b[0])&&(b=b[0]);return function(c){return c.lift(new Pa(b))}}function rd(b){var a=b.obj,c=b.keys,e=b.index,d=b.subscriber;e===b.length?d.complete():(c=c[e],d.next([c,a[c]]),b.index=e+1,this.schedule(b))}function ca(b){return b instanceof Date&&!isNaN(+b)}function Qa(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){return c.lift.call(Ra.apply(void 0,[c].concat(b)))}}function Ra(){for(var b=
[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];a=b[b.length-1];"function"===typeof a&&b.pop();return(new G(b)).lift(new Sa(a))}function V(b,a){return function(c){if("function"!==typeof b)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return c.lift(new sd(b,a))}}function td(b,a){void 0===a&&(a=null);return new L({method:"GET",url:b,headers:a})}function ud(b,a,c){return new L({method:"POST",url:b,body:a,headers:c})}function vd(b,a){return new L({method:"DELETE",
url:b,headers:a})}function wd(b,a,c){return new L({method:"PUT",url:b,body:a,headers:c})}function xd(b,a,c){return new L({method:"PATCH",url:b,body:a,headers:c})}function yd(b,a){return zd(new L({method:"GET",url:b,responseType:"json",headers:a}))}function Ta(b,a){switch(b){case "json":return"response"in a?a.responseType?a.response:JSON.parse(a.response||a.responseText||"null"):JSON.parse(a.responseText||"null");case "xml":return a.responseXML;default:return"response"in a?a.response:a.responseText}}
function Ad(b){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];for(var c=a.length,e=0;e<c;e++){var d=a[e],f;for(f in d)d.hasOwnProperty(f)&&(b[f]=d[f])}return b}function Ua(b){return function(a){return a.lift(new Bd(b))}}function Va(b,a){void 0===a&&(a=null);return function(c){return c.lift(new Cd(b,a))}}function Wa(b){var a=arguments.length,c=u;A(arguments[arguments.length-1])&&(c=arguments[arguments.length-1],a--);var e=null;2<=a&&(e=arguments[1]);var d=Number.POSITIVE_INFINITY;3<=a&&
(d=arguments[2]);return function(a){return a.lift(new Dd(b,e,d,c))}}function Xa(b){var a=b.subscriber,c=b.context;c&&a.closeContext(c);a.closed||(b.context=a.openContext(),b.context.closeAction=this.schedule(b,b.bufferTimeSpan))}function Ed(b){var a=b.bufferCreationInterval,c=b.bufferTimeSpan,e=b.subscriber,d=b.scheduler,f=e.openContext();e.closed||(e.add(f.closeAction=d.schedule(Ya,c,{subscriber:e,context:f})),this.schedule(b,a))}function Ya(b){b.subscriber.closeContext(b.context)}function Za(b,
a){return function(c){return c.lift(new Fd(b,a))}}function $a(b){return function(a){return a.lift(new Gd(b))}}function ab(b){return function(a){var c=new Hd(b);a=a.lift(c);return c.caught=a}}function bb(b){return ab(b)(this)}function cb(b){return function(a){return a.lift(new na(b))}}function db(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){return c.lift.call(U.apply(void 0,[c].concat(b)))}}function pa(b,a){return T(b,a,1)}function eb(b,a){return pa(function(){return b},
a)}function fb(b){return function(a){return a.lift(new Id(b,a))}}function gb(){return function(b){return b.lift(new Jd)}}function hb(b){return function(a){return a.lift(new Kd(b))}}function ib(b,a){void 0===a&&(a=u);return function(c){return c.lift(new Ld(b,a))}}function Md(b){b.debouncedNext()}function qa(b){void 0===b&&(b=null);return function(a){return a.lift(new Nd(b))}}function jb(b,a){void 0===a&&(a=u);var c=ca(b)?+b-a.now():Math.abs(b);return function(b){return b.lift(new Od(c,a))}}function kb(b,
a){return a?function(c){return(new Pd(c,a)).lift(new lb(b))}:function(c){return c.lift(new lb(b))}}function Qd(){return function(){function b(){this._values=[]}b.prototype.add=function(a){this.has(a)||this._values.push(a)};b.prototype.has=function(a){return-1!==this._values.indexOf(a)};Object.defineProperty(b.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0});b.prototype.clear=function(){this._values.length=0};return b}()}function mb(b,a){return function(c){return c.lift(new Rd(b,
a))}}function ra(b,a){return function(c){return c.lift(new Sd(b,a))}}function nb(b,a){return ra(function(c,e){return a?a(c[b],e[b]):c[b]===e[b]})}function ob(b,a,c){return function(e){return e.lift(new Td(b,a,c))}}function pb(b,a,c){return ob(b,a,c)(this)}function qb(){return function(b){return b.lift(new Ud)}}function rb(b,a){return function(c){return c.lift(new Vd(b,a))}}function sb(b,a,c){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===c&&(c=void 0);a=1>(a||0)?Number.POSITIVE_INFINITY:a;return function(e){return e.lift(new Wd(b,
a,c))}}function tb(b,a){return function(c){return c.lift(new Xd(b,a))}}function da(b,a){return function(c){return c.lift(new Yd(b,a))}}function ub(b){return function(a){return a.lift(new Zd(b))}}function vb(b){return ub(b)(this)}function wb(b,a){if("function"!==typeof b)throw new TypeError("predicate is not a function");return function(c){return c.lift(new xb(b,c,!1,a))}}function yb(b,a){return function(c){return c.lift(new xb(b,c,!0,a))}}function zb(b,a,c){return function(e){return e.lift(new $d(b,
a,c,e))}}function Ab(b,a,c,e){return function(d){return d.lift(new ae(b,a,c,e))}}function Bb(){return function(b){return b.lift(new be)}}function Cb(){return function(b){return b.lift(new ce)}}function sa(b){return function(a){return a.lift(new de(b))}}function Db(b,a){void 0===a&&(a=u);return sa(function(){return Eb(b,a)})}function Fb(b,a,c){return function(e){return e.lift(new ee(b,a,c,e))}}function Gb(b){return b(this)}function Hb(b,a){return function(c){return c.lift(new fe(b,a,c))}}function Ib(b){return function(a){return a.lift(new ge(b))}}
function Jb(){return function(b){return b.lift(new he)}}function W(b,a){var c=!1;2<=arguments.length&&(c=!0);return function(e){return e.lift(new ie(b,a,c))}}function ea(b){return function(a){return 0===b?new F:a.lift(new je(b))}}function Q(b,a){return 2<=arguments.length?function(c){return la(W(b,a),ea(1),qa(a))(c)}:function(c){return la(W(function(c,a,f){return b(c,a,f+1)}),ea(1))(c)}}function Kb(b){return Q("function"===typeof b?function(a,c){return 0<b(a,c)?a:c}:function(a,c){return a>c?a:c})}
function Lb(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){return c.lift.call(Ma.apply(void 0,[c].concat(b)))}}function Mb(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);return T(b,a,c)(this)}function Nb(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);"number"===typeof a&&(c=a,a=null);return function(e){return e.lift(new ke(b,a,c))}}function Ob(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);return Nb(b,a,c)(this)}function Pb(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);
return function(e){return e.lift(new le(b,a,c))}}function Qb(b){return Q("function"===typeof b?function(a,c){return 0>b(a,c)?a:c}:function(a,c){return a<c?a:c})}function ta(){return function(b){return b.lift(new me(b))}}function H(b,a){return function(c){var e;e="function"===typeof b?b:function(){return b};if("function"===typeof a)return c.lift(new ne(e,a));var d=Object.create(c,oe);d.source=c;d.subjectFactory=e;return d}}function Rb(){return function(b){return b.lift(new pe)}}function qe(b,a){function c(){return!c.pred.apply(c.thisArg,
arguments)}c.pred=b;c.thisArg=a;return c}function Sb(b,a){return function(c){return[da(b,a)(c),da(qe(b,a))(c)]}}function Tb(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];var c=b.length;if(0===c)throw Error("list of properties cannot be empty.");return function(a){return V(re(b,c))(a)}}function re(b,a){return function(c){var e=c;for(c=0;c<a;c++)if(e=e[b[c]],"undefined"===typeof e)return;return e}}function Ub(b){return b?H(function(){return new w},b):H(new w)}function Vb(b){return function(a){return H(new Wb(b))(a)}}
function Xb(b,a,c,e){c&&"function"!==typeof c&&(e=c);var d="function"===typeof c?c:void 0,f=new M(b,a,e);return function(c){return H(function(){return f},d)(c)}}function Yb(){return function(b){return H(new P)(b)}}function Zb(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){1===b.length&&E(b[0])&&(b=b[0]);return c.lift.call(Na.apply(void 0,[c].concat(b)))}}function $b(b){void 0===b&&(b=-1);return function(a){return 0===b?new F:0>b?a.lift(new ac(-1,a)):a.lift(new ac(b-
1,a))}}function bc(b){return function(a){return a.lift(new se(b))}}function cc(b){void 0===b&&(b=-1);return function(a){return a.lift(new te(b,a))}}function dc(b){return function(a){return a.lift(new ue(b,a))}}function ec(b){return function(a){return a.lift(new ve(b))}}function fc(b,a){void 0===a&&(a=u);return function(c){return c.lift(new we(b,a))}}function xe(b){var a=b.period;b.subscriber.notifyNext();this.schedule(b,a)}function gc(b,a){return function(c){return c.lift(new ye(b,a))}}function ze(){return new w}
function hc(){return function(b){return ta()(H(ze)(b))}}function ic(b,a,c){return function(e){return e.lift(Ae(b,a,c))}}function Ae(b,a,c){var e,d=0,f,h=!1,g=!1;return function(k){d++;if(!e||h)h=!1,e=new M(b,a,c),f=k.subscribe({next:function(c){e.next(c)},error:function(c){h=!0;e.error(c)},complete:function(){g=!0;e.complete()}});var z=e.subscribe(this);return function(){d--;z.unsubscribe();f&&0===d&&g&&f.unsubscribe()}}}function jc(b){return function(a){return a.lift(new Be(b,a))}}function kc(b){return function(a){return a.lift(new Ce(b))}}
function lc(b){return function(a){return a.lift(new De(b))}}function mc(b){return function(a){return a.lift(new Ee(b))}}function nc(b){return function(a){return a.lift(new Fe(b))}}function oc(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){var a=b[b.length-1];A(a)?b.pop():a=null;var d=b.length;return 1===d?U(new ua(b[0],a),c):1<d?U(new G(b,a),c):U(new F(a),c)}}function Ge(b,a){void 0===a&&(a=0);return function(c){return c.lift(new He(b,a))}}function va(b,a){return function(c){return c.lift(new Ie(b,
a))}}function pc(){return va(Ja)}function qc(){return pc()(this)}function rc(b,a){return function(c){return c.lift(new Je(b,a))}}function sc(b){return function(a){return 0===b?new F:a.lift(new Ke(b))}}function tc(b){return function(a){return a.lift(new Le(b))}}function uc(b){return function(a){return a.lift(new Me(b))}}function vc(b,a){void 0===a&&(a=fa);return function(c){return c.lift(new Ne(b,a.leading,a.trailing))}}function wc(b,a,c){void 0===a&&(a=u);void 0===c&&(c=fa);return function(e){return e.lift(new Oe(b,
a,c.leading,c.trailing))}}function Pe(b){b.subscriber.clearThrottle()}function xc(b){void 0===b&&(b=u);return function(a){return a.lift(new Qe(b))}}function yc(b,a){void 0===a&&(a=u);var c=ca(b),e=c?+b-a.now():Math.abs(b);return function(b){return b.lift(new Re(e,c,a,new zc))}}function Ac(b,a,c){void 0===c&&(c=u);return function(e){var d=ca(b),f=d?+b-c.now():Math.abs(b);return e.lift(new Se(f,d,a,c))}}function Bc(b){void 0===b&&(b=u);return V(function(a){return new Cc(a,b.now())})}function Te(b,a,
c){if(0===c)return[a];b.push(a);return b}function Dc(){return Q(Te,[])}function Ec(b){return function(a){return a.lift(new Ue(b))}}function Fc(b,a){void 0===a&&(a=0);return function(c){return c.lift(new Ve(b,a))}}function Gc(b,a,c,e){var d=u,f=null,h=Number.POSITIVE_INFINITY;A(e)&&(d=e);A(c)?d=c:K(c)&&(h=c);A(a)?d=a:K(a)&&(f=a);return function(c){return c.lift(new We(b,f,h,d))}}function Xe(b){var a=b.subscriber,c=b.windowTimeSpan,e=b.window;e&&a.closeWindow(e);b.window=a.openWindow();this.schedule(b,
c)}function Ye(b){var a=b.windowTimeSpan,c=b.subscriber,e=b.scheduler,d=b.windowCreationInterval,f=c.openWindow(),h={action:this,subscription:null};h.subscription=e.schedule(Hc,a,{subscriber:c,window:f,context:h});this.add(h.subscription);this.schedule(b,d)}function Hc(b){var a=b.subscriber,c=b.window;(b=b.context)&&b.action&&b.subscription&&b.action.remove(b.subscription);a.closeWindow(c)}function Ic(b,a){return function(c){return c.lift(new Ze(b,a))}}function Jc(b){return function(a){return a.lift(new $e(b))}}
function Kc(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return function(c){var a;"function"===typeof b[b.length-1]&&(a=b.pop());return c.lift(new af(b,a))}}function Lc(b){return function(a){return a.lift(new Sa(b))}}function Mc(b,a){for(var c=0,e=a.length;c<e;c++)for(var d=a[c],f=Object.getOwnPropertyNames(d.prototype),h=0,g=f.length;h<g;h++){var k=f[h];b.prototype[k]=d.prototype[k]}}var hd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,
a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])},bf="undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,cf="undefined"!==typeof global&&global,p="undefined"!==typeof window&&window||cf||bf;if(!p)throw Error("RxJS could not find any global context (window, self, global)");var E=Array.isArray||function(b){return b&&"number"===typeof b.length},n={e:{}},za,S=function(b){function a(c){b.call(this);this.errors=c;c=Error.call(this,c?c.length+" errors occurred during unsubscription:\n "+
c.map(function(c,a){return a+1+") "+c.toString()}).join("\n "):"");this.name=c.name="UnsubscriptionError";this.stack=c.stack;this.message=c.message}k(a,b);return a}(Error),v=function(){function b(a){this.closed=!1;this._subscriptions=this._parents=this._parent=null;a&&(this._unsubscribe=a)}b.prototype.unsubscribe=function(){var a=!1,c;if(!this.closed){var b=this._parent,d=this._parents,f=this._unsubscribe,h=this._subscriptions;this.closed=!0;this._subscriptions=this._parents=this._parent=null;for(var g=
-1,k=d?d.length:0;b;)b.remove(this),b=++g<k&&d[g]||null;x(f)&&(b=q(f).call(this),b===n&&(a=!0,c=c||(n.e instanceof S?Aa(n.e.errors):[n.e])));if(E(h))for(g=-1,k=h.length;++g<k;)b=h[g],null!=b&&"object"===typeof b&&(b=q(b.unsubscribe).call(b),b===n&&(a=!0,c=c||[],b=n.e,b instanceof S?c=c.concat(Aa(b.errors)):c.push(b)));if(a)throw new S(c);}};b.prototype.add=function(a){if(!a||a===b.EMPTY)return b.EMPTY;if(a===this)return this;var c=a;switch(typeof a){case "function":c=new b(a);case "object":if(c.closed||
"function"!==typeof c.unsubscribe)return c;if(this.closed)return c.unsubscribe(),c;"function"!==typeof c._addParent&&(a=c,c=new b,c._subscriptions=[a]);break;default:throw Error("unrecognized teardown "+a+" added to Subscription.");}(this._subscriptions||(this._subscriptions=[])).push(c);c._addParent(this);return c};b.prototype.remove=function(a){var c=this._subscriptions;c&&(a=c.indexOf(a),-1!==a&&c.splice(a,1))};b.prototype._addParent=function(a){var c=this._parent,b=this._parents;c&&c!==a?b?-1===
b.indexOf(a)&&b.push(a):this._parents=[a]:this._parent=a};b.EMPTY=function(a){a.closed=!0;return a}(new b);return b}(),ga={closed:!0,next:function(b){},error:function(b){throw b;},complete:function(){}},wa=p.Symbol,O="function"===typeof wa&&"function"===typeof wa.for?wa.for("rxSubscriber"):"@@rxSubscriber",m=function(b){function a(c,a,d){b.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=ga;break;case 1:if(!c){this.destination=
ga;break}if("object"===typeof c){if(c instanceof m||"syncErrorThrowable"in c&&c[O]){var e=c[O]();this.syncErrorThrowable=e.syncErrorThrowable;this.destination=e;e.add(this)}else this.syncErrorThrowable=!0,this.destination=new Nc(this,c);break}default:this.syncErrorThrowable=!0,this.destination=new Nc(this,c,a,d)}}k(a,b);a.prototype[O]=function(){return this};a.create=function(c,b,d){c=new a(c,b,d);c.syncErrorThrowable=!1;return c};a.prototype.next=function(c){this.isStopped||this._next(c)};a.prototype.error=
function(c){this.isStopped||(this.isStopped=!0,this._error(c))};a.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,b.prototype.unsubscribe.call(this))};a.prototype._next=function(c){this.destination.next(c)};a.prototype._error=function(c){this.destination.error(c);this.unsubscribe()};a.prototype._complete=function(){this.destination.complete();this.unsubscribe()};a.prototype._unsubscribeAndRecycle=
function(){var c=this._parent,a=this._parents;this._parents=this._parent=null;this.unsubscribe();this.isStopped=this.closed=!1;this._parent=c;this._parents=a;return this};return a}(v),Nc=function(b){function a(c,a,d,f){b.call(this);this._parentSubscriber=c;var e;c=this;x(a)?e=a:a&&(e=a.next,d=a.error,f=a.complete,a!==ga&&(c=Object.create(a),x(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this)));this._context=c;this._next=e;this._error=d;this._complete=f}k(a,
b);a.prototype.next=function(c){if(!this.isStopped&&this._next){var a=this._parentSubscriber;a.syncErrorThrowable?this.__tryOrSetError(a,this._next,c)&&this.unsubscribe():this.__tryOrUnsub(this._next,c)}};a.prototype.error=function(c){if(!this.isStopped){var a=this._parentSubscriber;if(this._error)a.syncErrorThrowable?this.__tryOrSetError(a,this._error,c):this.__tryOrUnsub(this._error,c),this.unsubscribe();else if(a.syncErrorThrowable)a.syncErrorValue=c,a.syncErrorThrown=!0,this.unsubscribe();else throw this.unsubscribe(),
c;}};a.prototype.complete=function(){var c=this;if(!this.isStopped){var a=this._parentSubscriber;if(this._complete){var b=function(){return c._complete.call(c._context)};a.syncErrorThrowable?this.__tryOrSetError(a,b):this.__tryOrUnsub(b)}this.unsubscribe()}};a.prototype.__tryOrUnsub=function(c,a){try{c.call(this._context,a)}catch(d){throw this.unsubscribe(),d;}};a.prototype.__tryOrSetError=function(c,a,b){try{a.call(this._context,b)}catch(f){return c.syncErrorValue=f,c.syncErrorThrown=!0}return!1};
a.prototype._unsubscribe=function(){var c=this._parentSubscriber;this._parentSubscriber=this._context=null;c.unsubscribe()};return a}(m),J=function(b){var a=b.Symbol;"function"===typeof a?a.observable?b=a.observable:(b=a("observable"),a.observable=b):b="@@observable";return b}(p),g=function(){function b(a){this._isScalar=!1;a&&(this._subscribe=a)}b.prototype.lift=function(a){var c=new b;c.source=this;c.operator=a;return c};b.prototype.subscribe=function(a,c,b){var e=this.operator;a:{if(a){if(a instanceof
m)break a;if(a[O]){a=a[O]();break a}}a=a||c||b?new m(a,c,b):new m(ga)}e?e.call(a,this.source):a.add(this.source||!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a));if(a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};b.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(c){a.syncErrorThrown=!0,a.syncErrorValue=c,a.error(c)}};b.prototype.forEach=function(a,c){var b=this;c||(p.Rx&&p.Rx.config&&p.Rx.config.Promise?c=p.Rx.config.Promise:
p.Promise&&(c=p.Promise));if(!c)throw Error("no Promise impl found");return new c(function(c,e){var d;d=b.subscribe(function(c){if(d)try{a(c)}catch(D){e(D),d.unsubscribe()}else a(c)},e,c)})};b.prototype._subscribe=function(a){return this.source.subscribe(a)};b.prototype[J]=function(){return this};b.prototype.pipe=function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];return 0===a.length?this:Ba(a)(this)};b.prototype.toPromise=function(a){var c=this;a||(p.Rx&&p.Rx.config&&p.Rx.config.Promise?
a=p.Rx.config.Promise:p.Promise&&(a=p.Promise));if(!a)throw Error("no Promise impl found");return new a(function(a,b){var e;c.subscribe(function(c){return e=c},function(c){return b(c)},function(){return a(e)})})};b.create=function(a){return new b(a)};return b}(),I=function(b){function a(){var c=b.call(this,"object unsubscribed");this.name=c.name="ObjectUnsubscribedError";this.stack=c.stack;this.message=c.message}k(a,b);return a}(Error),Oc=function(b){function a(c,a){b.call(this);this.subject=c;this.subscriber=
a;this.closed=!1}k(a,b);a.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var c=this.subject,a=c.observers;this.subject=null;!a||0===a.length||c.isStopped||c.closed||(c=a.indexOf(this.subscriber),-1!==c&&a.splice(c,1))}};return a}(v),Pc=function(b){function a(c){b.call(this,c);this.destination=c}k(a,b);return a}(m),w=function(b){function a(){b.call(this);this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null}k(a,b);a.prototype[O]=function(){return new Pc(this)};
a.prototype.lift=function(c){var a=new ha(this,this);a.operator=c;return a};a.prototype.next=function(c){if(this.closed)throw new I;if(!this.isStopped)for(var a=this.observers,b=a.length,a=a.slice(),f=0;f<b;f++)a[f].next(c)};a.prototype.error=function(c){if(this.closed)throw new I;this.hasError=!0;this.thrownError=c;this.isStopped=!0;for(var a=this.observers,b=a.length,a=a.slice(),f=0;f<b;f++)a[f].error(c);this.observers.length=0};a.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=
!0;for(var c=this.observers,a=c.length,c=c.slice(),b=0;b<a;b++)c[b].complete();this.observers.length=0};a.prototype.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};a.prototype._trySubscribe=function(c){if(this.closed)throw new I;return b.prototype._trySubscribe.call(this,c)};a.prototype._subscribe=function(c){if(this.closed)throw new I;if(this.hasError)return c.error(this.thrownError),v.EMPTY;if(this.isStopped)return c.complete(),v.EMPTY;this.observers.push(c);return new Oc(this,
c)};a.prototype.asObservable=function(){var c=new g;c.source=this;return c};a.create=function(c,a){return new ha(c,a)};return a}(g),ha=function(b){function a(c,a){b.call(this);this.destination=c;this.source=a}k(a,b);a.prototype.next=function(c){var a=this.destination;a&&a.next&&a.next(c)};a.prototype.error=function(c){var a=this.destination;a&&a.error&&this.destination.error(c)};a.prototype.complete=function(){var c=this.destination;c&&c.complete&&this.destination.complete()};a.prototype._subscribe=
function(c){return this.source?this.source.subscribe(c):v.EMPTY};return a}(w),P=function(b){function a(){b.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1}k(a,b);a.prototype._subscribe=function(c){return this.hasError?(c.error(this.thrownError),v.EMPTY):this.hasCompleted&&this.hasNext?(c.next(this.value),c.complete(),v.EMPTY):b.prototype._subscribe.call(this,c)};a.prototype.next=function(c){this.hasCompleted||(this.value=c,this.hasNext=!0)};a.prototype.error=function(c){this.hasCompleted||
b.prototype.error.call(this,c)};a.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&b.prototype.next.call(this,this.value);b.prototype.complete.call(this)};return a}(w),df=function(b){function a(c,a,d,f,h){b.call(this);this.callbackFunc=c;this.selector=a;this.args=d;this.context=f;this.scheduler=h}k(a,b);a.create=function(c,b,d){void 0===b&&(b=void 0);return function(){for(var e=[],h=0;h<arguments.length;h++)e[h-0]=arguments[h];return new a(c,b,e,this,d)}};a.prototype._subscribe=function(c){var b=
this.callbackFunc,d=this.args,f=this.scheduler,h=this.subject;if(f)return f.schedule(a.dispatch,0,{source:this,subscriber:c,context:this.context});h||(h=this.subject=new P,f=function D(){for(var c=[],a=0;a<arguments.length;a++)c[a-0]=arguments[a];var b=D.source,a=b.selector,b=b.subject;a?(c=q(a).apply(this,c),c===n?b.error(n.e):(b.next(c),b.complete())):(b.next(1>=c.length?c[0]:c),b.complete())},f.source=this,q(b).apply(this.context,d.concat(f))===n&&h.error(n.e));return h.subscribe(c)};a.dispatch=
function(c){var a=this,b=c.source,f=c.subscriber;c=c.context;var h=b.callbackFunc,g=b.args,k=b.scheduler,l=b.subject;if(!l){var l=b.subject=new P,m=function md(){for(var c=[],b=0;b<arguments.length;b++)c[b-0]=arguments[b];var e=md.source,b=e.selector,e=e.subject;b?(c=q(b).apply(this,c),c===n?a.add(k.schedule(jd,0,{err:n.e,subject:e})):a.add(k.schedule(Ca,0,{value:c,subject:e}))):a.add(k.schedule(Ca,0,{value:1>=c.length?c[0]:c,subject:e}))};m.source=b;q(h).apply(c,g.concat(m))===n&&l.error(n.e)}a.add(l.subscribe(f))};
return a}(g).create;g.bindCallback=df;var ef=function(b){function a(c,a,d,f,h){b.call(this);this.callbackFunc=c;this.selector=a;this.args=d;this.context=f;this.scheduler=h}k(a,b);a.create=function(c,b,d){void 0===b&&(b=void 0);return function(){for(var e=[],h=0;h<arguments.length;h++)e[h-0]=arguments[h];return new a(c,b,e,this,d)}};a.prototype._subscribe=function(c){var a=this.callbackFunc,b=this.args,f=this.scheduler,h=this.subject;if(f)return f.schedule(kd,0,{source:this,subscriber:c,context:this.context});
h||(h=this.subject=new P,f=function D(){for(var c=[],a=0;a<arguments.length;a++)c[a-0]=arguments[a];var b=D.source,a=b.selector,b=b.subject,e=c.shift();e?b.error(e):a?(c=q(a).apply(this,c),c===n?b.error(n.e):(b.next(c),b.complete())):(b.next(1>=c.length?c[0]:c),b.complete())},f.source=this,q(a).apply(this.context,b.concat(f))===n&&h.error(n.e));return h.subscribe(c)};return a}(g).create;g.bindNodeCallback=ef;var ua=function(b){function a(c,a){b.call(this);this.value=c;this.scheduler=a;this._isScalar=
!0;a&&(this._isScalar=!1)}k(a,b);a.create=function(c,b){return new a(c,b)};a.dispatch=function(c){var a=c.value,b=c.subscriber;c.done?b.complete():(b.next(a),b.closed||(c.done=!0,this.schedule(c)))};a.prototype._subscribe=function(c){var b=this.value,d=this.scheduler;if(d)return d.schedule(a.dispatch,0,{done:!1,value:b,subscriber:c});c.next(b);c.closed||c.complete()};return a}(g),F=function(b){function a(c){b.call(this);this.scheduler=c}k(a,b);a.create=function(c){return new a(c)};a.dispatch=function(c){c.subscriber.complete()};
a.prototype._subscribe=function(c){var b=this.scheduler;if(b)return b.schedule(a.dispatch,0,{subscriber:c});c.complete()};return a}(g),G=function(b){function a(c,a){b.call(this);this.array=c;this.scheduler=a;a||1!==c.length||(this._isScalar=!0,this.value=c[0])}k(a,b);a.create=function(c,b){return new a(c,b)};a.of=function(){for(var c=[],b=0;b<arguments.length;b++)c[b-0]=arguments[b];b=c[c.length-1];A(b)?c.pop():b=null;var d=c.length;return 1<d?new a(c,b):1===d?new ua(c[0],b):new F(b)};a.dispatch=
function(c){var a=c.array,b=c.index,f=c.subscriber;b>=c.count?f.complete():(f.next(a[b]),f.closed||(c.index=b+1,this.schedule(c)))};a.prototype._subscribe=function(c){var b=this.array,d=b.length,f=this.scheduler;if(f)return f.schedule(a.dispatch,0,{array:b,index:0,count:d,subscriber:c});for(f=0;f<d&&!c.closed;f++)c.next(b[f]);c.complete()};return a}(g),t=function(b){function a(){b.apply(this,arguments)}k(a,b);a.prototype.notifyNext=function(c,a,b,f,h){this.destination.next(a)};a.prototype.notifyError=
function(c,a){this.destination.error(c)};a.prototype.notifyComplete=function(c){this.destination.complete()};return a}(m),C=function(b){var a=b.Symbol;if("function"===typeof a)return a.iterator||(a.iterator=a("iterator polyfill")),a.iterator;if((a=b.Set)&&"function"===typeof(new a)["@@iterator"])return"@@iterator";if(b=b.Map)for(var a=Object.getOwnPropertyNames(b.prototype),c=0;c<a.length;++c){var e=a[c];if("entries"!==e&&"size"!==e&&b.prototype[e]===b.prototype.entries)return e}return"@@iterator"}(p),
Fa=function(b){function a(c,a,d){b.call(this);this.parent=c;this.outerValue=a;this.outerIndex=d;this.index=0}k(a,b);a.prototype._next=function(c){this.parent.notifyNext(this.outerValue,c,this.outerIndex,this.index++,this)};a.prototype._error=function(c){this.parent.notifyError(c,this);this.unsubscribe()};a.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};return a}(m),Qc={},na=function(){function b(a){this.project=a}b.prototype.call=function(a,c){return c.subscribe(new ff(a,
this.project))};return b}(),ff=function(b){function a(c,a){b.call(this,c);this.project=a;this.active=0;this.values=[];this.observables=[]}k(a,b);a.prototype._next=function(c){this.values.push(Qc);this.observables.push(c)};a.prototype._complete=function(){var c=this.observables,a=c.length;if(0===a)this.destination.complete();else{this.toRespond=this.active=a;for(var b=0;b<a;b++){var f=c[b];this.add(r(this,f,f,b))}}};a.prototype.notifyComplete=function(c){0===--this.active&&this.destination.complete()};
a.prototype.notifyNext=function(c,a,b,f,h){c=this.values;f=c[b];f=this.toRespond?f===Qc?--this.toRespond:this.toRespond:0;c[b]=a;0===f&&(this.project?this._tryProject(c):this.destination.next(c.slice()))};a.prototype._tryProject=function(c){var a;try{a=this.project.apply(this,c)}catch(d){this.destination.error(d);return}this.destination.next(a)};return a}(t);g.combineLatest=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];var c=a=null;A(b[b.length-1])&&(c=b.pop());"function"===
typeof b[b.length-1]&&(a=b.pop());1===b.length&&E(b[0])&&(b=b[0]);return(new G(b,c)).lift(new na(a))};var La=G.of,Rc=function(b){function a(c,a){b.call(this);this.promise=c;this.scheduler=a}k(a,b);a.create=function(c,b){return new a(c,b)};a.prototype._subscribe=function(c){var a=this,b=this.promise,f=this.scheduler;if(null==f)this._isScalar?c.closed||(c.next(this.value),c.complete()):b.then(function(b){a.value=b;a._isScalar=!0;c.closed||(c.next(b),c.complete())},function(a){c.closed||c.error(a)}).then(null,
function(c){p.setTimeout(function(){throw c;})});else if(this._isScalar){if(!c.closed)return f.schedule(Ha,0,{value:this.value,subscriber:c})}else b.then(function(b){a.value=b;a._isScalar=!0;c.closed||c.add(f.schedule(Ha,0,{value:b,subscriber:c}))},function(a){c.closed||c.add(f.schedule(nd,0,{err:a,subscriber:c}))}).then(null,function(c){p.setTimeout(function(){throw c;})})};return a}(g),jf=function(b){function a(c,a){b.call(this);this.scheduler=a;if(null==c)throw Error("iterator cannot be null.");
if((a=c[C])||"string"!==typeof c)if(a||void 0===c.length){if(!a)throw new TypeError("object is not iterable");c=c[C]()}else c=new gf(c);else c=new hf(c);this.iterator=c}k(a,b);a.create=function(c,b){return new a(c,b)};a.dispatch=function(c){var a=c.index,b=c.iterator,f=c.subscriber;if(c.hasError)f.error(c.error);else{var h=b.next();h.done?f.complete():(f.next(h.value),c.index=a+1,f.closed?"function"===typeof b.return&&b.return():this.schedule(c))}};a.prototype._subscribe=function(c){var b=this.iterator,
d=this.scheduler;if(d)return d.schedule(a.dispatch,0,{index:0,iterator:b,subscriber:c});do{d=b.next();if(d.done){c.complete();break}else c.next(d.value);if(c.closed){"function"===typeof b.return&&b.return();break}}while(1)};return a}(g),hf=function(){function b(a,c,b){void 0===c&&(c=0);void 0===b&&(b=a.length);this.str=a;this.idx=c;this.len=b}b.prototype[C]=function(){return this};b.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}};
return b}(),gf=function(){function b(a,c,b){void 0===c&&(c=0);if(void 0===b)if(b=+a.length,isNaN(b))b=0;else if(0!==b&&"number"===typeof b&&p.isFinite(b)){var e;e=+b;e=0===e?e:isNaN(e)?e:0>e?-1:1;b=e*Math.floor(Math.abs(b));b=0>=b?0:b>Sc?Sc:b}this.arr=a;this.idx=c;this.len=b}b.prototype[C]=function(){return this};b.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}};return b}(),Sc=Math.pow(2,53)-1,kf=function(b){function a(c,a){b.call(this);
this.arrayLike=c;this.scheduler=a;a||1!==c.length||(this._isScalar=!0,this.value=c[0])}k(a,b);a.create=function(c,b){var e=c.length;return 0===e?new F:1===e?new ua(c[0],b):new a(c,b)};a.dispatch=function(c){var a=c.arrayLike,b=c.index,f=c.subscriber;f.closed||(b>=c.length?f.complete():(f.next(a[b]),c.index=b+1,this.schedule(c)))};a.prototype._subscribe=function(c){var b=this.arrayLike,d=this.scheduler,f=b.length;if(d)return d.schedule(a.dispatch,0,{arrayLike:b,index:0,length:f,subscriber:c});for(d=
0;d<f&&!c.closed;d++)c.next(b[d]);c.complete()};return a}(g),y=function(){function b(a,c,b){this.kind=a;this.value=c;this.error=b;this.hasValue="N"===a}b.prototype.observe=function(a){switch(this.kind){case "N":return a.next&&a.next(this.value);case "E":return a.error&&a.error(this.error);case "C":return a.complete&&a.complete()}};b.prototype.do=function(a,c,b){switch(this.kind){case "N":return a&&a(this.value);case "E":return c&&c(this.error);case "C":return b&&b()}};b.prototype.accept=function(a,
c,b){return a&&"function"===typeof a.next?this.observe(a):this.do(a,c,b)};b.prototype.toObservable=function(){switch(this.kind){case "N":return g.of(this.value);case "E":return g.throw(this.error);case "C":return g.empty()}throw Error("unexpected notification kind value");};b.createNext=function(a){return"undefined"!==typeof a?new b("N",a):b.undefinedValueNotification};b.createError=function(a){return new b("E",void 0,a)};b.createComplete=function(){return b.completeNotification};b.completeNotification=
new b("C");b.undefinedValueNotification=new b("N",void 0);return b}(),od=function(){function b(a,c){void 0===c&&(c=0);this.scheduler=a;this.delay=c}b.prototype.call=function(a,c){return c.subscribe(new xa(a,this.scheduler,this.delay))};return b}(),xa=function(b){function a(c,a,d){void 0===d&&(d=0);b.call(this,c);this.scheduler=a;this.delay=d}k(a,b);a.dispatch=function(c){c.notification.observe(c.destination);this.unsubscribe()};a.prototype.scheduleMessage=function(c){this.add(this.scheduler.schedule(a.dispatch,
this.delay,new lf(c,this.destination)))};a.prototype._next=function(c){this.scheduleMessage(y.createNext(c))};a.prototype._error=function(c){this.scheduleMessage(y.createError(c))};a.prototype._complete=function(){this.scheduleMessage(y.createComplete())};return a}(m),lf=function(){return function(b,a){this.notification=b;this.destination=a}}(),Tc=function(b){function a(c,a){b.call(this,null);this.ish=c;this.scheduler=a}k(a,b);a.create=function(c,b){if(null!=c){if("function"===typeof c[J])return c instanceof
g&&!b?c:new a(c,b);if(E(c))return new G(c,b);if(Ea(c))return new Rc(c,b);if("function"===typeof c[C]||"string"===typeof c)return new jf(c,b);if(c&&"number"===typeof c.length)return new kf(c,b)}throw new TypeError((null!==c&&typeof c||c)+" is not observable");};a.prototype._subscribe=function(c){var a=this.ish,b=this.scheduler;return null==b?a[J]().subscribe(c):a[J]().subscribe(new xa(c,b,0))};return a}(g),Ka=Tc.create,pd=function(){function b(a,c,b){void 0===b&&(b=Number.POSITIVE_INFINITY);this.project=
a;this.resultSelector=c;this.concurrent=b}b.prototype.call=function(a,c){return c.subscribe(new mf(a,this.project,this.resultSelector,this.concurrent))};return b}(),mf=function(b){function a(c,a,d,f){void 0===f&&(f=Number.POSITIVE_INFINITY);b.call(this,c);this.project=a;this.resultSelector=d;this.concurrent=f;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}k(a,b);a.prototype._next=function(c){this.active<this.concurrent?this._tryNext(c):this.buffer.push(c)};a.prototype._tryNext=function(c){var a,
b=this.index++;try{a=this.project(c,b)}catch(f){this.destination.error(f);return}this.active++;this._innerSub(a,c,b)};a.prototype._innerSub=function(c,a,b){this.add(r(this,c,a,b))};a.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};a.prototype.notifyNext=function(c,a,b,f,h){this.resultSelector?this._notifyResultSelector(c,a,b,f):this.destination.next(a)};a.prototype._notifyResultSelector=function(c,a,b,f){var e;try{e=this.resultSelector(c,
a,b,f)}catch(z){this.destination.error(z);return}this.destination.next(e)};a.prototype.notifyComplete=function(c){var a=this.buffer;this.remove(c);this.active--;0<a.length?this._next(a.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return a}(t);g.concat=U;var of=function(b){function a(c){b.call(this);this.observableFactory=c}k(a,b);a.create=function(c){return new a(c)};a.prototype._subscribe=function(c){return new nf(c,this.observableFactory)};return a}(g),nf=function(b){function a(c,
a){b.call(this,c);this.factory=a;this.tryDefer()}k(a,b);a.prototype.tryDefer=function(){try{this._callFactory()}catch(c){this._error(c)}};a.prototype._callFactory=function(){var c=this.factory();c&&this.add(r(this,c))};return a}(t);g.defer=of.create;g.empty=F.create;var qf=function(b){function a(c,a){b.call(this);this.sources=c;this.resultSelector=a}k(a,b);a.create=function(){for(var c=[],b=0;b<arguments.length;b++)c[b-0]=arguments[b];if(null===c||0===arguments.length)return new F;b=null;"function"===
typeof c[c.length-1]&&(b=c.pop());1===c.length&&E(c[0])&&(c=c[0]);return 0===c.length?new F:new a(c,b)};a.prototype._subscribe=function(c){return new pf(c,this.sources,this.resultSelector)};return a}(g),pf=function(b){function a(c,a,d){b.call(this,c);this.sources=a;this.resultSelector=d;this.haveValues=this.completed=0;this.total=c=a.length;this.values=Array(c);for(d=0;d<c;d++){var e=r(this,a[d],null,d);e&&(e.outerIndex=d,this.add(e))}}k(a,b);a.prototype.notifyNext=function(c,a,b,f,h){this.values[b]=
a;h._hasValue||(h._hasValue=!0,this.haveValues++)};a.prototype.notifyComplete=function(c){var a=this.destination,b=this.haveValues,f=this.resultSelector,h=this.values,g=h.length;c._hasValue?(this.completed++,this.completed===g&&(b===g&&(c=f?f.apply(this,h):h,a.next(c)),a.complete())):a.complete()};return a}(t);g.forkJoin=qf.create;g.from=Ka;var Uc=Object.prototype.toString,rf=function(b){function a(c,a,d,f){b.call(this);this.sourceObj=c;this.eventName=a;this.selector=d;this.options=f}k(a,b);a.create=
function(c,b,d,f){x(d)&&(f=d,d=void 0);return new a(c,b,f,d)};a.setupSubscription=function(c,b,d,f,h){var e;if(c&&"[object NodeList]"===Uc.call(c)||c&&"[object HTMLCollection]"===Uc.call(c))for(var g=0,k=c.length;g<k;g++)a.setupSubscription(c[g],b,d,f,h);else if(c&&"function"===typeof c.addEventListener&&"function"===typeof c.removeEventListener)c.addEventListener(b,d,h),e=function(){return c.removeEventListener(b,d,h)};else if(c&&"function"===typeof c.on&&"function"===typeof c.off)c.on(b,d),e=function(){return c.off(b,
d)};else if(c&&"function"===typeof c.addListener&&"function"===typeof c.removeListener)c.addListener(b,d),e=function(){return c.removeListener(b,d)};else throw new TypeError("Invalid event target");f.add(new v(e))};a.prototype._subscribe=function(c){var b=this.selector;a.setupSubscription(this.sourceObj,this.eventName,b?function(){for(var a=[],e=0;e<arguments.length;e++)a[e-0]=arguments[e];a=q(b).apply(void 0,a);a===n?c.error(n.e):c.next(a)}:function(a){return c.next(a)},c,this.options)};return a}(g).create;
g.fromEvent=rf;var sf=function(b){function a(c,a,d){b.call(this);this.addHandler=c;this.removeHandler=a;this.selector=d}k(a,b);a.create=function(c,b,d){return new a(c,b,d)};a.prototype._subscribe=function(c){var a=this,b=this.removeHandler,f=this.selector?function(){for(var b=[],e=0;e<arguments.length;e++)b[e-0]=arguments[e];a._callSelector(c,b)}:function(a){c.next(a)},h=this._callAddHandler(f,c);x(b)&&c.add(new v(function(){b(f,h)}))};a.prototype._callSelector=function(c,a){try{var b=this.selector.apply(this,
a);c.next(b)}catch(f){c.error(f)}};a.prototype._callAddHandler=function(c,a){try{return this.addHandler(c)||null}catch(d){a.error(d)}};return a}(g).create;g.fromEventPattern=sf;g.fromPromise=Rc.create;var Vc=function(b){return b},tf=function(b){function a(c,a,d,f,h){b.call(this);this.initialState=c;this.condition=a;this.iterate=d;this.resultSelector=f;this.scheduler=h}k(a,b);a.create=function(c,b,d,f,h){return 1==arguments.length?new a(c.initialState,c.condition,c.iterate,c.resultSelector||Vc,c.scheduler):
void 0===f||A(f)?new a(c,b,d,Vc,f):new a(c,b,d,f,h)};a.prototype._subscribe=function(c){var b=this.initialState;if(this.scheduler)return this.scheduler.schedule(a.dispatch,0,{subscriber:c,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:b});var d=this.condition,f=this.resultSelector,h=this.iterate;do{if(d){var g=void 0;try{g=d(b)}catch(D){c.error(D);break}if(!g){c.complete();break}}g=void 0;try{g=f(b)}catch(D){c.error(D);break}c.next(g);if(c.closed)break;try{b=
h(b)}catch(D){c.error(D);break}}while(1)};a.dispatch=function(c){var a=c.subscriber,b=c.condition;if(!a.closed){if(c.needIterate)try{c.state=c.iterate(c.state)}catch(z){a.error(z);return}else c.needIterate=!0;if(b){var f=void 0;try{f=b(c.state)}catch(z){a.error(z);return}if(!f){a.complete();return}if(a.closed)return}var h;try{h=c.resultSelector(c.state)}catch(z){a.error(z);return}if(!a.closed&&(a.next(h),!a.closed))return this.schedule(c)}};return a}(g).create;g.generate=tf;var vf=function(b){function a(c,
a,d){b.call(this);this.condition=c;this.thenSource=a;this.elseSource=d}k(a,b);a.create=function(c,b,d){return new a(c,b,d)};a.prototype._subscribe=function(c){return new uf(c,this.condition,this.thenSource,this.elseSource)};return a}(g),uf=function(b){function a(c,a,d,f){b.call(this,c);this.condition=a;this.thenSource=d;this.elseSource=f;this.tryIf()}k(a,b);a.prototype.tryIf=function(){var c=this.condition,a=this.thenSource,b=this.elseSource,f;try{(c=(f=c())?a:b)?this.add(r(this,c)):this._complete()}catch(h){this._error(h)}};
return a}(t);g.if=vf.create;var X=function(b){function a(c,a){b.call(this,c,a);this.scheduler=c;this.pending=!1;this.work=a}k(a,b);a.prototype.schedule=function(c,a){void 0===a&&(a=0);if(this.closed)return this;this.state=c;this.pending=!0;c=this.id;var b=this.scheduler;null!=c&&(this.id=this.recycleAsyncId(b,c,a));this.delay=a;this.id=this.id||this.requestAsyncId(b,this.id,a);return this};a.prototype.requestAsyncId=function(c,a,b){void 0===b&&(b=0);return p.setInterval(c.flush.bind(c,this),b)};a.prototype.recycleAsyncId=
function(c,a,b){void 0===b&&(b=0);return null!==b&&this.delay===b&&!1===this.pending?a:(p.clearInterval(a),void 0)};a.prototype.execute=function(c,a){if(this.closed)return Error("executing a cancelled action");this.pending=!1;if(c=this._execute(c,a))return c;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};a.prototype._execute=function(c,a){a=!1;var b=void 0;try{this.work(c)}catch(f){a=!0,b=!!f&&f||Error(f)}if(a)return this.unsubscribe(),b};a.prototype._unsubscribe=
function(){var c=this.id,a=this.scheduler,b=a.actions,f=b.indexOf(this);this.state=this.work=null;this.pending=!1;this.scheduler=null;-1!==f&&b.splice(f,1);null!=c&&(this.id=this.recycleAsyncId(a,c,null));this.delay=null};return a}(function(b){function a(c,a){b.call(this)}k(a,b);a.prototype.schedule=function(c,a){return this};return a}(v)),Y=function(b){function a(){b.apply(this,arguments);this.actions=[];this.active=!1;this.scheduled=void 0}k(a,b);a.prototype.flush=function(c){var a=this.actions;
if(this.active)a.push(c);else{var b;this.active=!0;do if(b=c.execute(c.state,c.delay))break;while(c=a.shift());this.active=!1;if(b){for(;c=a.shift();)c.unsubscribe();throw b;}}};return a}(function(){function b(a,c){void 0===c&&(c=b.now);this.SchedulerAction=a;this.now=c}b.prototype.schedule=function(a,c,b){void 0===c&&(c=0);return(new this.SchedulerAction(this,a)).schedule(b,c)};b.now=Date.now?Date.now:function(){return+new Date};return b}()),u=new Y(X),wf=function(b){function a(c,a){void 0===c&&
(c=0);void 0===a&&(a=u);b.call(this);this.period=c;this.scheduler=a;if(!K(c)||0>c)this.period=0;a&&"function"===typeof a.schedule||(this.scheduler=u)}k(a,b);a.create=function(c,b){void 0===c&&(c=0);void 0===b&&(b=u);return new a(c,b)};a.dispatch=function(c){var a=c.subscriber,b=c.period;a.next(c.index);a.closed||(c.index+=1,this.schedule(c,b))};a.prototype._subscribe=function(c){var b=this.period;c.add(this.scheduler.schedule(a.dispatch,b,{index:0,subscriber:c,period:b}))};return a}(g).create;g.interval=
wf;g.merge=Ma;var qd=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new xf(a))};return b}(),xf=function(b){function a(c){b.call(this,c);this.hasFirst=!1;this.observables=[];this.subscriptions=[]}k(a,b);a.prototype._next=function(c){this.observables.push(c)};a.prototype._complete=function(){var c=this.observables,a=c.length;if(0===a)this.destination.complete();else{for(var b=0;b<a&&!this.hasFirst;b++){var f=c[b],f=r(this,f,f,b);this.subscriptions&&this.subscriptions.push(f);
this.add(f)}this.observables=null}};a.prototype.notifyNext=function(c,a,b,f,h){if(!this.hasFirst){this.hasFirst=!0;for(c=0;c<this.subscriptions.length;c++)c!==b&&(f=this.subscriptions[c],f.unsubscribe(),this.remove(f));this.subscriptions=null}this.destination.next(a)};return a}(t);g.race=Na;var yf=function(b){function a(){b.call(this)}k(a,b);a.create=function(){return new a};a.prototype._subscribe=function(c){};return a}(g).create;g.never=yf;g.of=La;var Pa=function(){function b(a){this.nextSources=
a}b.prototype.call=function(a,c){return c.subscribe(new zf(a,this.nextSources))};return b}(),zf=function(b){function a(c,a){b.call(this,c);this.destination=c;this.nextSources=a}k(a,b);a.prototype.notifyError=function(c,a){this.subscribeToNextSource()};a.prototype.notifyComplete=function(c){this.subscribeToNextSource()};a.prototype._error=function(c){this.subscribeToNextSource()};a.prototype._complete=function(){this.subscribeToNextSource()};a.prototype.subscribeToNextSource=function(){var c=this.nextSources.shift();
c?this.add(r(this,c)):this.destination.complete()};return a}(t);g.onErrorResumeNext=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];1===b.length&&E(b[0])&&(b=b[0]);a=b.shift();return(new Tc(a,null)).lift(new Pa(b))};var Af=function(b){function a(c,a){b.call(this);this.obj=c;this.scheduler=a;this.keys=Object.keys(c)}k(a,b);a.create=function(c,b){return new a(c,b)};a.prototype._subscribe=function(c){var a=this.keys,b=this.scheduler,f=a.length;if(b)return b.schedule(rd,0,{obj:this.obj,
keys:a,length:f,index:0,subscriber:c});for(b=0;b<f;b++){var h=a[b];c.next([h,this.obj[h]])}c.complete()};return a}(g).create;g.pairs=Af;var Bf=function(b){function a(c,a,d){b.call(this);this.start=c;this._count=a;this.scheduler=d}k(a,b);a.create=function(c,b,d){void 0===c&&(c=0);void 0===b&&(b=0);return new a(c,b,d)};a.dispatch=function(c){var a=c.start,b=c.index,f=c.subscriber;b>=c.count?f.complete():(f.next(a),f.closed||(c.index=b+1,c.start=a+1,this.schedule(c)))};a.prototype._subscribe=function(c){var b=
0,d=this.start,f=this._count,h=this.scheduler;if(h)return h.schedule(a.dispatch,0,{index:b,count:f,start:d,subscriber:c});do{if(b++>=f){c.complete();break}c.next(d++);if(c.closed)break}while(1)};return a}(g).create;g.range=Bf;var Df=function(b){function a(c,a){b.call(this);this.resourceFactory=c;this.observableFactory=a}k(a,b);a.create=function(c,b){return new a(c,b)};a.prototype._subscribe=function(c){var a=this.resourceFactory,b=this.observableFactory,f;try{return f=a(),new Cf(c,f,b)}catch(h){c.error(h)}};
return a}(g),Cf=function(b){function a(c,a,d){b.call(this,c);this.resource=a;this.observableFactory=d;c.add(a);this.tryUse()}k(a,b);a.prototype.tryUse=function(){try{var c=this.observableFactory.call(this,this.resource);c&&this.add(r(this,c))}catch(e){this._error(e)}};return a}(t);g.using=Df.create;var Ef=function(b){function a(c,a){b.call(this);this.error=c;this.scheduler=a}k(a,b);a.create=function(c,b){return new a(c,b)};a.dispatch=function(c){c.subscriber.error(c.error)};a.prototype._subscribe=
function(c){var b=this.error,d=this.scheduler;c.syncErrorThrowable=!0;if(d)return d.schedule(a.dispatch,0,{error:b,subscriber:c});c.error(b)};return a}(g).create;g.throw=Ef;var Eb=function(b){function a(c,a,d){void 0===c&&(c=0);b.call(this);this.period=-1;this.dueTime=0;K(a)?this.period=1>Number(a)&&1||Number(a):A(a)&&(d=a);A(d)||(d=u);this.scheduler=d;this.dueTime=ca(c)?+c-this.scheduler.now():c}k(a,b);a.create=function(c,b,d){void 0===c&&(c=0);return new a(c,b,d)};a.dispatch=function(c){var a=c.index,
b=c.period,f=c.subscriber;f.next(a);if(!f.closed){if(-1===b)return f.complete();c.index=a+1;this.schedule(c,b)}};a.prototype._subscribe=function(c){return this.scheduler.schedule(a.dispatch,this.dueTime,{index:0,period:this.period,subscriber:c})};return a}(g).create;g.timer=Eb;var Sa=function(){function b(a){this.project=a}b.prototype.call=function(a,c){return c.subscribe(new Ff(a,this.project))};return b}(),Ff=function(b){function a(c,a,d){void 0===d&&(d=Object.create(null));b.call(this,c);this.iterators=
[];this.active=0;this.project="function"===typeof a?a:null;this.values=d}k(a,b);a.prototype._next=function(c){var a=this.iterators;E(c)?a.push(new Gf(c)):"function"===typeof c[C]?a.push(new Hf(c[C]())):a.push(new If(this.destination,this,c))};a.prototype._complete=function(){var c=this.iterators,a=c.length;if(0===a)this.destination.complete();else{this.active=a;for(var b=0;b<a;b++){var f=c[b];f.stillUnsubscribed?this.add(f.subscribe(f,b)):this.active--}}};a.prototype.notifyInactive=function(){this.active--;
0===this.active&&this.destination.complete()};a.prototype.checkIterators=function(){for(var c=this.iterators,a=c.length,b=this.destination,f=0;f<a;f++){var h=c[f];if("function"===typeof h.hasValue&&!h.hasValue())return}for(var g=!1,k=[],f=0;f<a;f++){var h=c[f],l=h.next();h.hasCompleted()&&(g=!0);if(l.done){b.complete();return}k.push(l.value)}this.project?this._tryProject(k):b.next(k);g&&b.complete()};a.prototype._tryProject=function(c){var a;try{a=this.project.apply(this,c)}catch(d){this.destination.error(d);
return}this.destination.next(a)};return a}(m),Hf=function(){function b(a){this.iterator=a;this.nextResult=a.next()}b.prototype.hasValue=function(){return!0};b.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};b.prototype.hasCompleted=function(){var a=this.nextResult;return a&&a.done};return b}(),Gf=function(){function b(a){this.array=a;this.length=this.index=0;this.length=a.length}b.prototype[C]=function(){return this};b.prototype.next=function(a){a=this.index++;
var c=this.array;return a<this.length?{value:c[a],done:!1}:{value:null,done:!0}};b.prototype.hasValue=function(){return this.array.length>this.index};b.prototype.hasCompleted=function(){return this.array.length===this.index};return b}(),If=function(b){function a(c,a,d){b.call(this,c);this.parent=a;this.observable=d;this.stillUnsubscribed=!0;this.buffer=[];this.isComplete=!1}k(a,b);a.prototype[C]=function(){return this};a.prototype.next=function(){var c=this.buffer;return 0===c.length&&this.isComplete?
{value:null,done:!0}:{value:c.shift(),done:!1}};a.prototype.hasValue=function(){return 0<this.buffer.length};a.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};a.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()};a.prototype.notifyNext=function(c,a,b,f,h){this.buffer.push(a);this.parent.checkIterators()};a.prototype.subscribe=function(c,a){return r(this,this.observable,this,a)};return a}(t);
g.zip=Ra;var sd=function(){function b(a,c){this.project=a;this.thisArg=c}b.prototype.call=function(a,c){return c.subscribe(new Jf(a,this.project,this.thisArg))};return b}(),Jf=function(b){function a(c,a,d){b.call(this,c);this.project=a;this.count=0;this.thisArg=d||this}k(a,b);a.prototype._next=function(c){var a;try{a=this.project.call(this.thisArg,c,this.count++)}catch(d){this.destination.error(d);return}this.destination.next(a)};return a}(m),zd=V(function(b,a){return b.response}),L=function(b){function a(c){b.call(this);
var a={async:!0,createXHR:function(){var c;if(this.crossDomain)if(p.XMLHttpRequest)c=new p.XMLHttpRequest;else if(p.XDomainRequest)c=new p.XDomainRequest;else throw Error("CORS is not supported by your browser");else if(p.XMLHttpRequest)c=new p.XMLHttpRequest;else{var a=void 0;try{for(var b=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],e=0;3>e;e++)try{a=b[e];new p.ActiveXObject(a);break}catch(N){}c=new p.ActiveXObject(a)}catch(N){throw Error("XMLHttpRequest is not supported by your browser");
}}return c},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"===typeof c)a.url=c;else for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);this.request=a}k(a,b);a.prototype._subscribe=function(c){return new Kf(c,this.request)};a.create=function(){var c=function(c){return new a(c)};c.get=td;c.post=ud;c.delete=vd;c.put=wd;c.patch=xd;c.getJSON=yd;return c}();return a}(g),Kf=function(b){function a(c,a){b.call(this,c);this.request=a;this.done=!1;c=a.headers=
a.headers||{};a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");"Content-Type"in c||p.FormData&&a.body instanceof p.FormData||"undefined"===typeof a.body||(c["Content-Type"]="application/x-www-form-urlencoded; charset\x3dUTF-8");a.body=this.serializeBody(a.body,a.headers["Content-Type"]);this.send()}k(a,b);a.prototype.next=function(c){this.done=!0;var a=this.destination;c=new Wc(c,this.xhr,this.request);a.next(c)};a.prototype.send=function(){var a=this.request,b=this.request,
d=b.user,f=b.method,h=b.url,g=b.async,k=b.password,l=b.headers,b=b.body,m=q(a.createXHR).call(a);if(m===n)this.error(n.e);else{this.xhr=m;this.setupEvents(m,a);d=d?q(m.open).call(m,f,h,g,d,k):q(m.open).call(m,f,h,g);if(d===n)return this.error(n.e),null;g&&(m.timeout=a.timeout,m.responseType=a.responseType);"withCredentials"in m&&(m.withCredentials=!!a.withCredentials);this.setHeaders(m,l);d=b?q(m.send).call(m,b):q(m.send).call(m);if(d===n)return this.error(n.e),null}return m};a.prototype.serializeBody=
function(a,b){if(!a||"string"===typeof a||p.FormData&&a instanceof p.FormData)return a;if(b){var c=b.indexOf(";");-1!==c&&(b=b.substring(0,c))}switch(b){case "application/x-www-form-urlencoded":return Object.keys(a).map(function(c){return encodeURIComponent(c)+"\x3d"+encodeURIComponent(a[c])}).join("\x26");case "application/json":return JSON.stringify(a);default:return a}};a.prototype.setHeaders=function(a,b){for(var c in b)b.hasOwnProperty(c)&&a.setRequestHeader(c,b[c])};a.prototype.setupEvents=
function(a,b){function c(a){var b=c.subscriber,e=c.progressSubscriber,d=c.request;e&&e.error(a);b.error(new Xc(this,d))}function e(a){var c=e.subscriber,b=e.progressSubscriber,d=e.request;if(4===this.readyState){var f=1223===this.status?204:this.status,h="text"===this.responseType?this.response||this.responseText:this.response;0===f&&(f=h?200:0);200<=f&&300>f?(b&&b.complete(),c.next(a),c.complete()):(b&&b.error(a),c.error(new ia("ajax error "+f,this,d)))}}var h=b.progressSubscriber;a.ontimeout=c;
c.request=b;c.subscriber=this;c.progressSubscriber=h;if(a.upload&&"withCredentials"in a){if(h){var g;g=function(a){g.progressSubscriber.next(a)};p.XDomainRequest?a.onprogress=g:a.upload.onprogress=g;g.progressSubscriber=h}var k;k=function(a){var c=k.progressSubscriber,b=k.subscriber,e=k.request;c&&c.error(a);b.error(new ia("ajax error",this,e))};a.onerror=k;k.request=b;k.subscriber=this;k.progressSubscriber=h}a.onreadystatechange=e;e.subscriber=this;e.progressSubscriber=h;e.request=b};a.prototype.unsubscribe=
function(){var a=this.xhr;!this.done&&a&&4!==a.readyState&&"function"===typeof a.abort&&a.abort();b.prototype.unsubscribe.call(this)};return a}(m),Wc=function(){return function(b,a,c){this.originalEvent=b;this.xhr=a;this.request=c;this.status=a.status;this.responseType=a.responseType||c.responseType;this.response=Ta(this.responseType,a)}}(),ia=function(b){function a(a,e,d){b.call(this,a);this.message=a;this.xhr=e;this.request=d;this.status=e.status;this.responseType=e.responseType||d.responseType;
this.response=Ta(this.responseType,e)}k(a,b);return a}(Error),Xc=function(b){function a(a,e){b.call(this,"ajax timeout",a,e)}k(a,b);return a}(ia);g.ajax=L.create;var Lf=function(b){function a(a,e){b.call(this,a,e);this.scheduler=a;this.work=e}k(a,b);a.prototype.schedule=function(a,e){void 0===e&&(e=0);if(0<e)return b.prototype.schedule.call(this,a,e);this.delay=e;this.state=a;this.scheduler.flush(this);return this};a.prototype.execute=function(a,e){return 0<e||this.closed?b.prototype.execute.call(this,
a,e):this._execute(a,e)};a.prototype.requestAsyncId=function(a,e,d){void 0===d&&(d=0);return null!==d&&0<d||null===d&&0<this.delay?b.prototype.requestAsyncId.call(this,a,e,d):a.flush(this)};return a}(X),Yc=new (function(b){function a(){b.apply(this,arguments)}k(a,b);return a}(Y))(Lf),M=function(b){function a(a,e,d){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===e&&(e=Number.POSITIVE_INFINITY);b.call(this);this.scheduler=d;this._events=[];this._bufferSize=1>a?1:a;this._windowTime=1>e?1:e}k(a,b);
a.prototype.next=function(a){var c=this._getNow();this._events.push(new Mf(c,a));this._trimBufferThenGetEvents();b.prototype.next.call(this,a)};a.prototype._subscribe=function(a){var c=this._trimBufferThenGetEvents(),b=this.scheduler,f;if(this.closed)throw new I;this.hasError?f=v.EMPTY:this.isStopped?f=v.EMPTY:(this.observers.push(a),f=new Oc(this,a));b&&a.add(a=new xa(a,b));for(var b=c.length,h=0;h<b&&!a.closed;h++)a.next(c[h].value);this.hasError?a.error(this.thrownError):this.isStopped&&a.complete();
return f};a.prototype._getNow=function(){return(this.scheduler||Yc).now()};a.prototype._trimBufferThenGetEvents=function(){for(var a=this._getNow(),b=this._bufferSize,d=this._windowTime,f=this._events,h=f.length,g=0;g<h&&!(a-f[g].time<d);)g++;h>b&&(g=Math.max(g,h-b));0<g&&f.splice(0,g);return f};return a}(w),Mf=function(){return function(b,a){this.time=b;this.value=a}}(),Nf=p.Object.assign||Ad,Of=function(b){function a(a,e){if(a instanceof g)b.call(this,e,a);else{b.call(this);this.WebSocketCtor=p.WebSocket;
this._output=new w;"string"===typeof a?this.url=a:Nf(this,a);if(!this.WebSocketCtor)throw Error("no WebSocket constructor can be found");this.destination=new M}}k(a,b);a.prototype.resultSelector=function(a){return JSON.parse(a.data)};a.create=function(c){return new a(c)};a.prototype.lift=function(c){var b=new a(this,this.destination);b.operator=c;return b};a.prototype._resetState=function(){this.socket=null;this.source||(this.destination=new M);this._output=new w};a.prototype.multiplex=function(a,
b,d){var c=this;return new g(function(e){var f=q(a)();f===n?e.error(n.e):c.next(f);var h=c.subscribe(function(a){var c=q(d)(a);c===n?e.error(n.e):c&&e.next(a)},function(a){return e.error(a)},function(){return e.complete()});return function(){var a=q(b)();a===n?e.error(n.e):c.next(a);h.unsubscribe()}})};a.prototype._connectSocket=function(){var a=this,b=this.WebSocketCtor,d=this._output,f=null;try{this.socket=f=this.protocol?new b(this.url,this.protocol):new b(this.url),this.binaryType&&(this.socket.binaryType=
this.binaryType)}catch(z){d.error(z);return}var h=new v(function(){a.socket=null;f&&1===f.readyState&&f.close()});f.onopen=function(c){var b=a.openObserver;b&&b.next(c);c=a.destination;a.destination=m.create(function(a){return 1===f.readyState&&f.send(a)},function(c){var b=a.closingObserver;b&&b.next(void 0);c&&c.code?f.close(c.code,c.reason):d.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }"));
a._resetState()},function(){var c=a.closingObserver;c&&c.next(void 0);f.close();a._resetState()});c&&c instanceof M&&h.add(c.subscribe(a.destination))};f.onerror=function(c){a._resetState();d.error(c)};f.onclose=function(c){a._resetState();var b=a.closeObserver;b&&b.next(c);c.wasClean?d.complete():d.error(c)};f.onmessage=function(c){c=q(a.resultSelector)(c);c===n?d.error(n.e):d.next(c)}};a.prototype._subscribe=function(a){var c=this,b=this.source;if(b)return b.subscribe(a);this.socket||this._connectSocket();
b=new v;b.add(this._output.subscribe(a));b.add(function(){var a=c.socket;0===c._output.observers.length&&(a&&1===a.readyState&&a.close(),c._resetState())});return b};a.prototype.unsubscribe=function(){var a=this.source,e=this.socket;e&&1===e.readyState&&(e.close(),this._resetState());b.prototype.unsubscribe.call(this);a||(this.destination=new M)};return a}(ha).create;g.webSocket=Of;var Bd=function(){function b(a){this.closingNotifier=a}b.prototype.call=function(a,c){return c.subscribe(new Pf(a,this.closingNotifier))};
return b}(),Pf=function(b){function a(a,e){b.call(this,a);this.buffer=[];this.add(r(this,e))}k(a,b);a.prototype._next=function(a){this.buffer.push(a)};a.prototype.notifyNext=function(a,b,d,f,h){a=this.buffer;this.buffer=[];this.destination.next(a)};return a}(t);g.prototype.buffer=function(b){return Ua(b)(this)};var Cd=function(){function b(a,c){this.bufferSize=a;this.subscriberClass=(this.startBufferEvery=c)&&a!==c?Qf:Rf}b.prototype.call=function(a,c){return c.subscribe(new this.subscriberClass(a,
this.bufferSize,this.startBufferEvery))};return b}(),Rf=function(b){function a(a,e){b.call(this,a);this.bufferSize=e;this.buffer=[]}k(a,b);a.prototype._next=function(a){var c=this.buffer;c.push(a);c.length==this.bufferSize&&(this.destination.next(c),this.buffer=[])};a.prototype._complete=function(){var a=this.buffer;0<a.length&&this.destination.next(a);b.prototype._complete.call(this)};return a}(m),Qf=function(b){function a(a,e,d){b.call(this,a);this.bufferSize=e;this.startBufferEvery=d;this.buffers=
[];this.count=0}k(a,b);a.prototype._next=function(a){var c=this.bufferSize,b=this.startBufferEvery,f=this.buffers,h=this.count;this.count++;0===h%b&&f.push([]);for(b=f.length;b--;)h=f[b],h.push(a),h.length===c&&(f.splice(b,1),this.destination.next(h))};a.prototype._complete=function(){for(var a=this.buffers,e=this.destination;0<a.length;){var d=a.shift();0<d.length&&e.next(d)}b.prototype._complete.call(this)};return a}(m);g.prototype.bufferCount=function(b,a){void 0===a&&(a=null);return Va(b,a)(this)};
var Dd=function(){function b(a,c,b,d){this.bufferTimeSpan=a;this.bufferCreationInterval=c;this.maxBufferSize=b;this.scheduler=d}b.prototype.call=function(a,c){return c.subscribe(new Sf(a,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return b}(),Tf=function(){return function(){this.buffer=[]}}(),Sf=function(b){function a(a,e,d,f,h){b.call(this,a);this.bufferTimeSpan=e;this.bufferCreationInterval=d;this.maxBufferSize=f;this.scheduler=h;this.contexts=[];a=this.openContext();
(this.timespanOnly=null==d||0>d)?this.add(a.closeAction=h.schedule(Xa,e,{subscriber:this,context:a,bufferTimeSpan:e})):(f={bufferTimeSpan:e,bufferCreationInterval:d,subscriber:this,scheduler:h},this.add(a.closeAction=h.schedule(Ya,e,{subscriber:this,context:a})),this.add(h.schedule(Ed,d,f)))}k(a,b);a.prototype._next=function(a){for(var c=this.contexts,b=c.length,f,h=0;h<b;h++){var g=c[h],k=g.buffer;k.push(a);k.length==this.maxBufferSize&&(f=g)}if(f)this.onBufferFull(f)};a.prototype._error=function(a){this.contexts.length=
0;b.prototype._error.call(this,a)};a.prototype._complete=function(){for(var a=this.contexts,e=this.destination;0<a.length;){var d=a.shift();e.next(d.buffer)}b.prototype._complete.call(this)};a.prototype._unsubscribe=function(){this.contexts=null};a.prototype.onBufferFull=function(a){this.closeContext(a);a=a.closeAction;a.unsubscribe();this.remove(a);if(!this.closed&&this.timespanOnly){a=this.openContext();var c=this.bufferTimeSpan;this.add(a.closeAction=this.scheduler.schedule(Xa,c,{subscriber:this,
context:a,bufferTimeSpan:c}))}};a.prototype.openContext=function(){var a=new Tf;this.contexts.push(a);return a};a.prototype.closeContext=function(a){this.destination.next(a.buffer);var c=this.contexts;0<=(c?c.indexOf(a):-1)&&c.splice(c.indexOf(a),1)};return a}(m);g.prototype.bufferTime=function(b){var a=arguments.length,c=u;A(arguments[arguments.length-1])&&(c=arguments[arguments.length-1],a--);var e=null;2<=a&&(e=arguments[1]);var d=Number.POSITIVE_INFINITY;3<=a&&(d=arguments[2]);return Wa(b,e,d,
c)(this)};var Fd=function(){function b(a,c){this.openings=a;this.closingSelector=c}b.prototype.call=function(a,c){return c.subscribe(new Uf(a,this.openings,this.closingSelector))};return b}(),Uf=function(b){function a(a,e,d){b.call(this,a);this.openings=e;this.closingSelector=d;this.contexts=[];this.add(r(this,e))}k(a,b);a.prototype._next=function(a){for(var c=this.contexts,b=c.length,f=0;f<b;f++)c[f].buffer.push(a)};a.prototype._error=function(a){for(var c=this.contexts;0<c.length;){var d=c.shift();
d.subscription.unsubscribe();d.buffer=null;d.subscription=null}this.contexts=null;b.prototype._error.call(this,a)};a.prototype._complete=function(){for(var a=this.contexts;0<a.length;){var e=a.shift();this.destination.next(e.buffer);e.subscription.unsubscribe();e.buffer=null;e.subscription=null}this.contexts=null;b.prototype._complete.call(this)};a.prototype.notifyNext=function(a,b,d,f,h){a?this.closeBuffer(a):this.openBuffer(b)};a.prototype.notifyComplete=function(a){this.closeBuffer(a.context)};
a.prototype.openBuffer=function(a){try{var c=this.closingSelector.call(this,a);c&&this.trySubscribe(c)}catch(d){this._error(d)}};a.prototype.closeBuffer=function(a){var c=this.contexts;if(c&&a){var b=a.subscription;this.destination.next(a.buffer);c.splice(c.indexOf(a),1);this.remove(b);b.unsubscribe()}};a.prototype.trySubscribe=function(a){var c=this.contexts,b=new v,f={buffer:[],subscription:b};c.push(f);a=r(this,a,f);!a||a.closed?this.closeBuffer(f):(a.context=f,this.add(a),b.add(a))};return a}(t);
g.prototype.bufferToggle=function(b,a){return Za(b,a)(this)};var Gd=function(){function b(a){this.closingSelector=a}b.prototype.call=function(a,c){return c.subscribe(new Vf(a,this.closingSelector))};return b}(),Vf=function(b){function a(a,e){b.call(this,a);this.closingSelector=e;this.subscribing=!1;this.openBuffer()}k(a,b);a.prototype._next=function(a){this.buffer.push(a)};a.prototype._complete=function(){var a=this.buffer;a&&this.destination.next(a);b.prototype._complete.call(this)};a.prototype._unsubscribe=
function(){this.buffer=null;this.subscribing=!1};a.prototype.notifyNext=function(a,b,d,f,h){this.openBuffer()};a.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()};a.prototype.openBuffer=function(){var a=this.closingSubscription;a&&(this.remove(a),a.unsubscribe());(a=this.buffer)&&this.destination.next(a);this.buffer=[];var b=q(this.closingSelector)();b===n?this.error(n.e):(this.closingSubscription=a=new v,this.add(a),this.subscribing=!0,a.add(r(this,b)),this.subscribing=
!1)};return a}(t);g.prototype.bufferWhen=function(b){return $a(b)(this)};var Hd=function(){function b(a){this.selector=a}b.prototype.call=function(a,c){return c.subscribe(new Wf(a,this.selector,this.caught))};return b}(),Wf=function(b){function a(a,e,d){b.call(this,a);this.selector=e;this.caught=d}k(a,b);a.prototype.error=function(a){if(!this.isStopped){var c=void 0;try{c=this.selector(a,this.caught)}catch(d){b.prototype.error.call(this,d);return}this._unsubscribeAndRecycle();this.add(r(this,c))}};
return a}(t);g.prototype.catch=bb;g.prototype._catch=bb;g.prototype.combineAll=function(b){return cb(b)(this)};g.prototype.combineLatest=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Ga.apply(void 0,b)(this)};g.prototype.concat=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return db.apply(void 0,b)(this)};g.prototype.concatAll=function(){return oa()(this)};g.prototype.concatMap=function(b,a){return pa(b,a)(this)};g.prototype.concatMapTo=function(b,
a){return eb(b,a)(this)};var Id=function(){function b(a,c){this.predicate=a;this.source=c}b.prototype.call=function(a,c){return c.subscribe(new Xf(a,this.predicate,this.source))};return b}(),Xf=function(b){function a(a,e,d){b.call(this,a);this.predicate=e;this.source=d;this.index=this.count=0}k(a,b);a.prototype._next=function(a){this.predicate?this._tryPredicate(a):this.count++};a.prototype._tryPredicate=function(a){var c;try{c=this.predicate(a,this.index++,this.source)}catch(d){this.destination.error(d);
return}c&&this.count++};a.prototype._complete=function(){this.destination.next(this.count);this.destination.complete()};return a}(m);g.prototype.count=function(b){return fb(b)(this)};var Jd=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new Yf(a))};return b}(),Yf=function(b){function a(a){b.call(this,a)}k(a,b);a.prototype._next=function(a){a.observe(this.destination)};return a}(m);g.prototype.dematerialize=function(){return gb()(this)};var Kd=function(){function b(a){this.durationSelector=
a}b.prototype.call=function(a,c){return c.subscribe(new Zf(a,this.durationSelector))};return b}(),Zf=function(b){function a(a,e){b.call(this,a);this.durationSelector=e;this.hasValue=!1;this.durationSubscription=null}k(a,b);a.prototype._next=function(a){try{var c=this.durationSelector.call(this,a);c&&this._tryNext(a,c)}catch(d){this.destination.error(d)}};a.prototype._complete=function(){this.emitValue();this.destination.complete()};a.prototype._tryNext=function(a,b){var c=this.durationSubscription;
this.value=a;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));c=r(this,b);c.closed||this.add(this.durationSubscription=c)};a.prototype.notifyNext=function(a,b,d,f,h){this.emitValue()};a.prototype.notifyComplete=function(){this.emitValue()};a.prototype.emitValue=function(){if(this.hasValue){var a=this.value,e=this.durationSubscription;e&&(this.durationSubscription=null,e.unsubscribe(),this.remove(e));this.value=null;this.hasValue=!1;b.prototype._next.call(this,a)}};return a}(t);g.prototype.debounce=
function(b){return hb(b)(this)};var Ld=function(){function b(a,c){this.dueTime=a;this.scheduler=c}b.prototype.call=function(a,c){return c.subscribe(new $f(a,this.dueTime,this.scheduler))};return b}(),$f=function(b){function a(a,e,d){b.call(this,a);this.dueTime=e;this.scheduler=d;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1}k(a,b);a.prototype._next=function(a){this.clearDebounce();this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=this.scheduler.schedule(Md,this.dueTime,
this))};a.prototype._complete=function(){this.debouncedNext();this.destination.complete()};a.prototype.debouncedNext=function(){this.clearDebounce();this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)};a.prototype.clearDebounce=function(){var a=this.debouncedSubscription;null!==a&&(this.remove(a),a.unsubscribe(),this.debouncedSubscription=null)};return a}(m);g.prototype.debounceTime=function(b,a){void 0===a&&(a=u);return ib(b,a)(this)};var Nd=function(){function b(a){this.defaultValue=
a}b.prototype.call=function(a,c){return c.subscribe(new ag(a,this.defaultValue))};return b}(),ag=function(b){function a(a,e){b.call(this,a);this.defaultValue=e;this.isEmpty=!0}k(a,b);a.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};a.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};return a}(m);g.prototype.defaultIfEmpty=function(b){void 0===b&&(b=null);return qa(b)(this)};var Od=function(){function b(a,c){this.delay=
a;this.scheduler=c}b.prototype.call=function(a,c){return c.subscribe(new bg(a,this.delay,this.scheduler))};return b}(),bg=function(b){function a(a,e,d){b.call(this,a);this.delay=e;this.scheduler=d;this.queue=[];this.errored=this.active=!1}k(a,b);a.dispatch=function(a){for(var c=a.source,b=c.queue,f=a.scheduler,h=a.destination;0<b.length&&0>=b[0].time-f.now();)b.shift().notification.observe(h);0<b.length?(c=Math.max(0,b[0].time-f.now()),this.schedule(a,c)):(this.unsubscribe(),c.active=!1)};a.prototype._schedule=
function(c){this.active=!0;this.add(c.schedule(a.dispatch,this.delay,{source:this,destination:this.destination,scheduler:c}))};a.prototype.scheduleNotification=function(a){if(!0!==this.errored){var c=this.scheduler;a=new cg(c.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(c)}};a.prototype._next=function(a){this.scheduleNotification(y.createNext(a))};a.prototype._error=function(a){this.errored=!0;this.queue=[];this.destination.error(a)};a.prototype._complete=function(){this.scheduleNotification(y.createComplete())};
return a}(m),cg=function(){return function(b,a){this.time=b;this.notification=a}}();g.prototype.delay=function(b,a){void 0===a&&(a=u);return jb(b,a)(this)};var lb=function(){function b(a){this.delayDurationSelector=a}b.prototype.call=function(a,c){return c.subscribe(new dg(a,this.delayDurationSelector))};return b}(),dg=function(b){function a(a,e){b.call(this,a);this.delayDurationSelector=e;this.completed=!1;this.delayNotifierSubscriptions=[];this.values=[]}k(a,b);a.prototype.notifyNext=function(a,
b,d,f,h){this.destination.next(a);this.removeSubscription(h);this.tryComplete()};a.prototype.notifyError=function(a,b){this._error(a)};a.prototype.notifyComplete=function(a){(a=this.removeSubscription(a))&&this.destination.next(a);this.tryComplete()};a.prototype._next=function(a){try{var c=this.delayDurationSelector(a);c&&this.tryDelay(c,a)}catch(d){this.destination.error(d)}};a.prototype._complete=function(){this.completed=!0;this.tryComplete()};a.prototype.removeSubscription=function(a){a.unsubscribe();
a=this.delayNotifierSubscriptions.indexOf(a);var c=null;-1!==a&&(c=this.values[a],this.delayNotifierSubscriptions.splice(a,1),this.values.splice(a,1));return c};a.prototype.tryDelay=function(a,b){(a=r(this,a,b))&&!a.closed&&(this.add(a),this.delayNotifierSubscriptions.push(a));this.values.push(b)};a.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()};return a}(t),Pd=function(b){function a(a,e){b.call(this);this.source=a;this.subscriptionDelay=
e}k(a,b);a.prototype._subscribe=function(a){this.subscriptionDelay.subscribe(new eg(a,this.source))};return a}(g),eg=function(b){function a(a,e){b.call(this);this.parent=a;this.source=e;this.sourceSubscribed=!1}k(a,b);a.prototype._next=function(a){this.subscribeToSource()};a.prototype._error=function(a){this.unsubscribe();this.parent.error(a)};a.prototype._complete=function(){this.subscribeToSource()};a.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),
this.source.subscribe(this.parent))};return a}(m);g.prototype.delayWhen=function(b,a){return kb(b,a)(this)};var fg=p.Set||Qd(),Rd=function(){function b(a,c){this.keySelector=a;this.flushes=c}b.prototype.call=function(a,c){return c.subscribe(new gg(a,this.keySelector,this.flushes))};return b}(),gg=function(b){function a(a,e,d){b.call(this,a);this.keySelector=e;this.values=new fg;d&&this.add(r(this,d))}k(a,b);a.prototype.notifyNext=function(a,b,d,f,h){this.values.clear()};a.prototype.notifyError=function(a,
b){this._error(a)};a.prototype._next=function(a){this.keySelector?this._useKeySelector(a):this._finalizeNext(a,a)};a.prototype._useKeySelector=function(a){var c,b=this.destination;try{c=this.keySelector(a)}catch(f){b.error(f);return}this._finalizeNext(c,a)};a.prototype._finalizeNext=function(a,b){var c=this.values;c.has(a)||(c.add(a),this.destination.next(b))};return a}(t);g.prototype.distinct=function(b,a){return mb(b,a)(this)};var Sd=function(){function b(a,c){this.compare=a;this.keySelector=c}
b.prototype.call=function(a,c){return c.subscribe(new hg(a,this.compare,this.keySelector))};return b}(),hg=function(b){function a(a,e,d){b.call(this,a);this.keySelector=d;this.hasKey=!1;"function"===typeof e&&(this.compare=e)}k(a,b);a.prototype.compare=function(a,b){return a===b};a.prototype._next=function(a){var c=a;if(this.keySelector&&(c=q(this.keySelector)(a),c===n))return this.destination.error(n.e);var b=!1;if(this.hasKey){if(b=q(this.compare)(this.key,c),b===n)return this.destination.error(n.e)}else this.hasKey=
!0;!1===!!b&&(this.key=c,this.destination.next(a))};return a}(m);g.prototype.distinctUntilChanged=function(b,a){return ra(b,a)(this)};g.prototype.distinctUntilKeyChanged=function(b,a){return nb(b,a)(this)};var Td=function(){function b(a,c,b){this.nextOrObserver=a;this.error=c;this.complete=b}b.prototype.call=function(a,c){return c.subscribe(new ig(a,this.nextOrObserver,this.error,this.complete))};return b}(),ig=function(b){function a(a,e,d,f){b.call(this,a);a=new m(e,d,f);a.syncErrorThrowable=!0;
this.add(a);this.safeSubscriber=a}k(a,b);a.prototype._next=function(a){var c=this.safeSubscriber;c.next(a);c.syncErrorThrown?this.destination.error(c.syncErrorValue):this.destination.next(a)};a.prototype._error=function(a){var c=this.safeSubscriber;c.error(a);c.syncErrorThrown?this.destination.error(c.syncErrorValue):this.destination.error(a)};a.prototype._complete=function(){var a=this.safeSubscriber;a.complete();a.syncErrorThrown?this.destination.error(a.syncErrorValue):this.destination.complete()};
return a}(m);g.prototype.do=pb;g.prototype._do=pb;var Ud=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new jg(a))};return b}(),jg=function(b){function a(a){b.call(this,a);this.hasSubscription=this.hasCompleted=!1}k(a,b);a.prototype._next=function(a){this.hasSubscription||(this.hasSubscription=!0,this.add(r(this,a)))};a.prototype._complete=function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete()};a.prototype.notifyComplete=function(a){this.remove(a);
this.hasSubscription=!1;this.hasCompleted&&this.destination.complete()};return a}(t);g.prototype.exhaust=function(){return qb()(this)};var Vd=function(){function b(a,c){this.project=a;this.resultSelector=c}b.prototype.call=function(a,c){return c.subscribe(new kg(a,this.project,this.resultSelector))};return b}(),kg=function(b){function a(a,e,d){b.call(this,a);this.project=e;this.resultSelector=d;this.hasCompleted=this.hasSubscription=!1;this.index=0}k(a,b);a.prototype._next=function(a){this.hasSubscription||
this.tryNext(a)};a.prototype.tryNext=function(a){var c=this.index++,b=this.destination;try{var f=this.project(a,c);this.hasSubscription=!0;this.add(r(this,f,a,c))}catch(h){b.error(h)}};a.prototype._complete=function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete()};a.prototype.notifyNext=function(a,b,d,f,h){h=this.destination;this.resultSelector?this.trySelectResult(a,b,d,f):h.next(b)};a.prototype.trySelectResult=function(a,b,d,f){var c=this.resultSelector,e=this.destination;
try{var g=c(a,b,d,f);e.next(g)}catch(N){e.error(N)}};a.prototype.notifyError=function(a){this.destination.error(a)};a.prototype.notifyComplete=function(a){this.remove(a);this.hasSubscription=!1;this.hasCompleted&&this.destination.complete()};return a}(t);g.prototype.exhaustMap=function(b,a){return rb(b,a)(this)};var Wd=function(){function b(a,c,b){this.project=a;this.concurrent=c;this.scheduler=b}b.prototype.call=function(a,c){return c.subscribe(new lg(a,this.project,this.concurrent,this.scheduler))};
return b}(),lg=function(b){function a(a,e,d,f){b.call(this,a);this.project=e;this.concurrent=d;this.scheduler=f;this.active=this.index=0;this.hasCompleted=!1;d<Number.POSITIVE_INFINITY&&(this.buffer=[])}k(a,b);a.dispatch=function(a){a.subscriber.subscribeToProjection(a.result,a.value,a.index)};a.prototype._next=function(c){var b=this.destination;if(b.closed)this._complete();else{var d=this.index++;if(this.active<this.concurrent){b.next(c);var f=q(this.project)(c,d);f===n?b.error(n.e):this.scheduler?
this.add(this.scheduler.schedule(a.dispatch,0,{subscriber:this,result:f,value:c,index:d})):this.subscribeToProjection(f,c,d)}else this.buffer.push(c)}};a.prototype.subscribeToProjection=function(a,b,d){this.active++;this.add(r(this,a,b,d))};a.prototype._complete=function(){(this.hasCompleted=!0,0===this.active)&&this.destination.complete()};a.prototype.notifyNext=function(a,b,d,f,h){this._next(b)};a.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;c&&0<c.length&&
this._next(c.shift());this.hasCompleted&&0===this.active&&this.destination.complete()};return a}(t);g.prototype.expand=function(b,a,c){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===c&&(c=void 0);a=1>(a||0)?Number.POSITIVE_INFINITY:a;return sb(b,a,c)(this)};var R=function(b){function a(){var a=b.call(this,"argument out of range");this.name=a.name="ArgumentOutOfRangeError";this.stack=a.stack;this.message=a.message}k(a,b);return a}(Error),Xd=function(){function b(a,c){this.index=a;this.defaultValue=
c;if(0>a)throw new R;}b.prototype.call=function(a,c){return c.subscribe(new mg(a,this.index,this.defaultValue))};return b}(),mg=function(b){function a(a,e,d){b.call(this,a);this.index=e;this.defaultValue=d}k(a,b);a.prototype._next=function(a){0===this.index--&&(this.destination.next(a),this.destination.complete())};a.prototype._complete=function(){var a=this.destination;0<=this.index&&("undefined"!==typeof this.defaultValue?a.next(this.defaultValue):a.error(new R));a.complete()};return a}(m);g.prototype.elementAt=
function(b,a){return tb(b,a)(this)};var Yd=function(){function b(a,c){this.predicate=a;this.thisArg=c}b.prototype.call=function(a,c){return c.subscribe(new ng(a,this.predicate,this.thisArg))};return b}(),ng=function(b){function a(a,e,d){b.call(this,a);this.predicate=e;this.thisArg=d;this.count=0}k(a,b);a.prototype._next=function(a){var c;try{c=this.predicate.call(this.thisArg,a,this.count++)}catch(d){this.destination.error(d);return}c&&this.destination.next(a)};return a}(m);g.prototype.filter=function(b,
a){return da(b,a)(this)};var Zd=function(){function b(a){this.callback=a}b.prototype.call=function(a,c){return c.subscribe(new og(a,this.callback))};return b}(),og=function(b){function a(a,e){b.call(this,a);this.add(new v(e))}k(a,b);return a}(m);g.prototype.finally=vb;g.prototype._finally=vb;var xb=function(){function b(a,c,b,d){this.predicate=a;this.source=c;this.yieldIndex=b;this.thisArg=d}b.prototype.call=function(a,c){return c.subscribe(new pg(a,this.predicate,this.source,this.yieldIndex,this.thisArg))};
return b}(),pg=function(b){function a(a,e,d,f,h){b.call(this,a);this.predicate=e;this.source=d;this.yieldIndex=f;this.thisArg=h;this.index=0}k(a,b);a.prototype.notifyComplete=function(a){var c=this.destination;c.next(a);c.complete()};a.prototype._next=function(a){var c=this.predicate,b=this.thisArg,f=this.index++;try{c.call(b||this,a,f,this.source)&&this.notifyComplete(this.yieldIndex?f:a)}catch(h){this.destination.error(h)}};a.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:
void 0)};return a}(m);g.prototype.find=function(b,a){return wb(b,a)(this)};g.prototype.findIndex=function(b,a){return yb(b,a)(this)};var ja=function(b){function a(){var a=b.call(this,"no elements in sequence");this.name=a.name="EmptyError";this.stack=a.stack;this.message=a.message}k(a,b);return a}(Error),$d=function(){function b(a,c,b,d){this.predicate=a;this.resultSelector=c;this.defaultValue=b;this.source=d}b.prototype.call=function(a,c){return c.subscribe(new qg(a,this.predicate,this.resultSelector,
this.defaultValue,this.source))};return b}(),qg=function(b){function a(a,e,d,f,h){b.call(this,a);this.predicate=e;this.resultSelector=d;this.defaultValue=f;this.source=h;this.index=0;this._emitted=this.hasCompleted=!1}k(a,b);a.prototype._next=function(a){var c=this.index++;this.predicate?this._tryPredicate(a,c):this._emit(a,c)};a.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(f){this.destination.error(f);return}c&&this._emit(a,b)};a.prototype._emit=function(a,
b){this.resultSelector?this._tryResultSelector(a,b):this._emitFinal(a)};a.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,b)}catch(f){this.destination.error(f);return}this._emitFinal(c)};a.prototype._emitFinal=function(a){var c=this.destination;this._emitted||(this._emitted=!0,c.next(a),c.complete(),this.hasCompleted=!0)};a.prototype._complete=function(){var a=this.destination;this.hasCompleted||"undefined"===typeof this.defaultValue?this.hasCompleted||a.error(new ja):
(a.next(this.defaultValue),a.complete())};return a}(m);g.prototype.first=function(b,a,c){return zb(b,a,c)(this)};var rg=function(){function b(){this.size=0;this._values=[];this._keys=[]}b.prototype.get=function(a){a=this._keys.indexOf(a);return-1===a?void 0:this._values[a]};b.prototype.set=function(a,c){var b=this._keys.indexOf(a);-1===b?(this._keys.push(a),this._values.push(c),this.size++):this._values[b]=c;return this};b.prototype.delete=function(a){a=this._keys.indexOf(a);if(-1===a)return!1;this._values.splice(a,
1);this._keys.splice(a,1);this.size--;return!0};b.prototype.clear=function(){this._keys.length=0;this.size=this._values.length=0};b.prototype.forEach=function(a,c){for(var b=0;b<this.size;b++)a.call(c,this._values[b],this._keys[b])};return b}(),sg=p.Map||rg,tg=function(){function b(){this.values={}}b.prototype.delete=function(a){this.values[a]=null;return!0};b.prototype.set=function(a,c){this.values[a]=c;return this};b.prototype.get=function(a){return this.values[a]};b.prototype.forEach=function(a,
c){var b=this.values,d;for(d in b)b.hasOwnProperty(d)&&null!==b[d]&&a.call(c,b[d],d)};b.prototype.clear=function(){this.values={}};return b}(),ae=function(){function b(a,c,b,d){this.keySelector=a;this.elementSelector=c;this.durationSelector=b;this.subjectSelector=d}b.prototype.call=function(a,c){return c.subscribe(new ug(a,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))};return b}(),ug=function(b){function a(a,e,d,f,h){b.call(this,a);this.keySelector=e;this.elementSelector=
d;this.durationSelector=f;this.subjectSelector=h;this.groups=null;this.attemptedToUnsubscribe=!1;this.count=0}k(a,b);a.prototype._next=function(a){var c;try{c=this.keySelector(a)}catch(d){this.error(d);return}this._group(a,c)};a.prototype._group=function(a,b){var c=this.groups;c||(c=this.groups="string"===typeof b?new tg:new sg);var e=c.get(b),h;if(this.elementSelector)try{h=this.elementSelector(a)}catch(z){this.error(z)}else h=a;if(!e&&(e=this.subjectSelector?this.subjectSelector():new w,c.set(b,
e),a=new Zc(b,e,this),this.destination.next(a),this.durationSelector)){a=void 0;try{a=this.durationSelector(new Zc(b,e))}catch(z){this.error(z);return}this.add(a.subscribe(new vg(b,e,this)))}e.closed||e.next(h)};a.prototype._error=function(a){var c=this.groups;c&&(c.forEach(function(c,b){c.error(a)}),c.clear());this.destination.error(a)};a.prototype._complete=function(){var a=this.groups;a&&(a.forEach(function(a,c){a.complete()}),a.clear());this.destination.complete()};a.prototype.removeGroup=function(a){this.groups.delete(a)};
a.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&b.prototype.unsubscribe.call(this))};return a}(m),vg=function(b){function a(a,e,d){b.call(this,e);this.key=a;this.group=e;this.parent=d}k(a,b);a.prototype._next=function(a){this.complete()};a.prototype._unsubscribe=function(){var a=this.parent,b=this.key;this.key=this.parent=null;a&&a.removeGroup(b)};return a}(m),Zc=function(b){function a(a,e,d){b.call(this);this.key=a;this.groupSubject=e;this.refCountSubscription=
d}k(a,b);a.prototype._subscribe=function(a){var c=new v,b=this.refCountSubscription,f=this.groupSubject;b&&!b.closed&&c.add(new wg(b));c.add(f.subscribe(a));return c};return a}(g),wg=function(b){function a(a){b.call(this);this.parent=a;a.count++}k(a,b);a.prototype.unsubscribe=function(){var a=this.parent;a.closed||this.closed||(b.prototype.unsubscribe.call(this),--a.count,0===a.count&&a.attemptedToUnsubscribe&&a.unsubscribe())};return a}(v);g.prototype.groupBy=function(b,a,c,e){return Ab(b,a,c,e)(this)};
var be=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new xg(a))};return b}(),xg=function(b){function a(){b.apply(this,arguments)}k(a,b);a.prototype._next=function(a){};return a}(m);g.prototype.ignoreElements=function(){return Bb()(this)};var ce=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new yg(a))};return b}(),yg=function(b){function a(a){b.call(this,a)}k(a,b);a.prototype.notifyComplete=function(a){var c=this.destination;c.next(a);c.complete()};
a.prototype._next=function(a){this.notifyComplete(!1)};a.prototype._complete=function(){this.notifyComplete(!0)};return a}(m);g.prototype.isEmpty=function(){return Cb()(this)};var de=function(){function b(a){this.durationSelector=a}b.prototype.call=function(a,c){return c.subscribe(new zg(a,this.durationSelector))};return b}(),zg=function(b){function a(a,e){b.call(this,a);this.durationSelector=e;this.hasValue=!1}k(a,b);a.prototype._next=function(a){this.value=a;this.hasValue=!0;this.throttled||(a=
q(this.durationSelector)(a),a===n?this.destination.error(n.e):(a=r(this,a),a.closed?this.clearThrottle():this.add(this.throttled=a)))};a.prototype.clearThrottle=function(){var a=this.value,b=this.hasValue,d=this.throttled;d&&(this.remove(d),this.throttled=null,d.unsubscribe());b&&(this.value=null,this.hasValue=!1,this.destination.next(a))};a.prototype.notifyNext=function(a,b,d,f){this.clearThrottle()};a.prototype.notifyComplete=function(){this.clearThrottle()};return a}(t);g.prototype.audit=function(b){return sa(b)(this)};
g.prototype.auditTime=function(b,a){void 0===a&&(a=u);return Db(b,a)(this)};var ee=function(){function b(a,c,b,d){this.predicate=a;this.resultSelector=c;this.defaultValue=b;this.source=d}b.prototype.call=function(a,c){return c.subscribe(new Ag(a,this.predicate,this.resultSelector,this.defaultValue,this.source))};return b}(),Ag=function(b){function a(a,e,d,f,h){b.call(this,a);this.predicate=e;this.resultSelector=d;this.defaultValue=f;this.source=h;this.hasValue=!1;this.index=0;"undefined"!==typeof f&&
(this.lastValue=f,this.hasValue=!0)}k(a,b);a.prototype._next=function(a){var c=this.index++;this.predicate?this._tryPredicate(a,c):this.resultSelector?this._tryResultSelector(a,c):(this.lastValue=a,this.hasValue=!0)};a.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(f){this.destination.error(f);return}c&&(this.resultSelector?this._tryResultSelector(a,b):(this.lastValue=a,this.hasValue=!0))};a.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,
b)}catch(f){this.destination.error(f);return}this.lastValue=c;this.hasValue=!0};a.prototype._complete=function(){var a=this.destination;this.hasValue?(a.next(this.lastValue),a.complete()):a.error(new ja)};return a}(m);g.prototype.last=function(b,a,c){return Fb(b,a,c)(this)};g.prototype.let=Gb;g.prototype.letBind=Gb;var fe=function(){function b(a,c,b){this.predicate=a;this.thisArg=c;this.source=b}b.prototype.call=function(a,c){return c.subscribe(new Bg(a,this.predicate,this.thisArg,this.source))};
return b}(),Bg=function(b){function a(a,e,d,f){b.call(this,a);this.predicate=e;this.thisArg=d;this.source=f;this.index=0;this.thisArg=d||this}k(a,b);a.prototype.notifyComplete=function(a){this.destination.next(a);this.destination.complete()};a.prototype._next=function(a){var c=!1;try{c=this.predicate.call(this.thisArg,a,this.index++,this.source)}catch(d){this.destination.error(d);return}c||this.notifyComplete(!1)};a.prototype._complete=function(){this.notifyComplete(!0)};return a}(m);g.prototype.every=
function(b,a){return Hb(b,a)(this)};g.prototype.map=function(b,a){return V(b,a)(this)};var ge=function(){function b(a){this.value=a}b.prototype.call=function(a,c){return c.subscribe(new Cg(a,this.value))};return b}(),Cg=function(b){function a(a,e){b.call(this,a);this.value=e}k(a,b);a.prototype._next=function(a){this.destination.next(this.value)};return a}(m);g.prototype.mapTo=function(b){return Ib(b)(this)};var he=function(){function b(){}b.prototype.call=function(a,c){return c.subscribe(new Dg(a))};
return b}(),Dg=function(b){function a(a){b.call(this,a)}k(a,b);a.prototype._next=function(a){this.destination.next(y.createNext(a))};a.prototype._error=function(a){var c=this.destination;c.next(y.createError(a));c.complete()};a.prototype._complete=function(){var a=this.destination;a.next(y.createComplete());a.complete()};return a}(m);g.prototype.materialize=function(){return Jb()(this)};var ie=function(){function b(a,c,b){void 0===b&&(b=!1);this.accumulator=a;this.seed=c;this.hasSeed=b}b.prototype.call=
function(a,c){return c.subscribe(new Eg(a,this.accumulator,this.seed,this.hasSeed))};return b}(),Eg=function(b){function a(a,e,d,f){b.call(this,a);this.accumulator=e;this._seed=d;this.hasSeed=f;this.index=0}k(a,b);Object.defineProperty(a.prototype,"seed",{get:function(){return this._seed},set:function(a){this.hasSeed=!0;this._seed=a},enumerable:!0,configurable:!0});a.prototype._next=function(a){if(this.hasSeed)return this._tryNext(a);this.seed=a;this.destination.next(a)};a.prototype._tryNext=function(a){var c=
this.index++,b;try{b=this.accumulator(this.seed,a,c)}catch(f){this.destination.error(f)}this.seed=b;this.destination.next(b)};return a}(m),je=function(){function b(a){this.total=a;if(0>this.total)throw new R;}b.prototype.call=function(a,c){return c.subscribe(new Fg(a,this.total))};return b}(),Fg=function(b){function a(a,e){b.call(this,a);this.total=e;this.ring=[];this.count=0}k(a,b);a.prototype._next=function(a){var c=this.ring,b=this.total,f=this.count++;c.length<b?c.push(a):c[f%b]=a};a.prototype._complete=
function(){var a=this.destination,b=this.count;if(0<b)for(var d=this.count>=this.total?this.total:this.count,f=this.ring,h=0;h<d;h++){var g=b++%d;a.next(f[g])}a.complete()};return a}(m);g.prototype.max=function(b){return Kb(b)(this)};g.prototype.merge=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Lb.apply(void 0,b)(this)};g.prototype.mergeAll=function(b){void 0===b&&(b=Number.POSITIVE_INFINITY);return ba(b)(this)};g.prototype.mergeMap=Mb;g.prototype.flatMap=Mb;var ke=
function(){function b(a,c,b){void 0===b&&(b=Number.POSITIVE_INFINITY);this.ish=a;this.resultSelector=c;this.concurrent=b}b.prototype.call=function(a,c){return c.subscribe(new Gg(a,this.ish,this.resultSelector,this.concurrent))};return b}(),Gg=function(b){function a(a,e,d,f){void 0===f&&(f=Number.POSITIVE_INFINITY);b.call(this,a);this.ish=e;this.resultSelector=d;this.concurrent=f;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}k(a,b);a.prototype._next=function(a){if(this.active<this.concurrent){var c=
this.resultSelector,b=this.index++,f=this.ish,h=this.destination;this.active++;this._innerSub(f,h,c,a,b)}else this.buffer.push(a)};a.prototype._innerSub=function(a,b,d,f,h){this.add(r(this,a,f,h))};a.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};a.prototype.notifyNext=function(a,b,d,f,h){h=this.destination;this.resultSelector?this.trySelectResult(a,b,d,f):h.next(b)};a.prototype.trySelectResult=function(a,b,d,f){var c=this.resultSelector,
e=this.destination,g;try{g=c(a,b,d,f)}catch(N){e.error(N);return}e.next(g)};a.prototype.notifyError=function(a){this.destination.error(a)};a.prototype.notifyComplete=function(a){var c=this.buffer;this.remove(a);this.active--;0<c.length?this._next(c.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return a}(t);g.prototype.flatMapTo=Ob;g.prototype.mergeMapTo=Ob;var le=function(){function b(a,c,b){this.accumulator=a;this.seed=c;this.concurrent=b}b.prototype.call=function(a,c){return c.subscribe(new Hg(a,
this.accumulator,this.seed,this.concurrent))};return b}(),Hg=function(b){function a(a,e,d,f){b.call(this,a);this.accumulator=e;this.acc=d;this.concurrent=f;this.hasCompleted=this.hasValue=!1;this.buffer=[];this.index=this.active=0}k(a,b);a.prototype._next=function(a){if(this.active<this.concurrent){var b=this.index++,c=q(this.accumulator)(this.acc,a),f=this.destination;c===n?f.error(n.e):(this.active++,this._innerSub(c,a,b))}else this.buffer.push(a)};a.prototype._innerSub=function(a,b,d){this.add(r(this,
a,b,d))};a.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())};a.prototype.notifyNext=function(a,b,d,f,h){a=this.destination;this.acc=b;this.hasValue=!0;a.next(b)};a.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())};
return a}(t);g.prototype.mergeScan=function(b,a,c){void 0===c&&(c=Number.POSITIVE_INFINITY);return Pb(b,a,c)(this)};g.prototype.min=function(b){return Qb(b)(this)};var me=function(){function b(a){this.connectable=a}b.prototype.call=function(a,b){var c=this.connectable;c._refCount++;a=new Ig(a,c);b=b.subscribe(a);a.closed||(a.connection=c.connect());return b};return b}(),Ig=function(b){function a(a,e){b.call(this,a);this.connectable=e}k(a,b);a.prototype._unsubscribe=function(){var a=this.connectable;
if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};return a}(m),$c=function(b){function a(a,e){b.call(this);this.source=a;this.subjectFactory=e;this._refCount=0;this._isComplete=!1}k(a,b);a.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};a.prototype.getSubject=function(){var a=this._subject;if(!a||
a.isStopped)this._subject=this.subjectFactory();return this._subject};a.prototype.connect=function(){var a=this._connection;a||(this._isComplete=!1,a=this._connection=new v,a.add(this.source.subscribe(new Jg(this.getSubject(),this))),a.closed?(this._connection=null,a=v.EMPTY):this._connection=a);return a};a.prototype.refCount=function(){return ta()(this)};return a}(g),Z=$c.prototype,oe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,
writable:!0},_subscribe:{value:Z._subscribe},_isComplete:{value:Z._isComplete,writable:!0},getSubject:{value:Z.getSubject},connect:{value:Z.connect},refCount:{value:Z.refCount}},Jg=function(b){function a(a,e){b.call(this,a);this.connectable=e}k(a,b);a.prototype._error=function(a){this._unsubscribe();b.prototype._error.call(this,a)};a.prototype._complete=function(){this.connectable._isComplete=!0;this._unsubscribe();b.prototype._complete.call(this)};a.prototype._unsubscribe=function(){var a=this.connectable;
if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};return a}(Pc);(function(b){function a(a,e){b.call(this,a);this.connectable=e}k(a,b);a.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};return a})(m);
var ne=function(){function b(a,b){this.subjectFactory=a;this.selector=b}b.prototype.call=function(a,b){var c=this.selector,d=this.subjectFactory();a=c(d).subscribe(a);a.add(b.subscribe(d));return a};return b}();g.prototype.multicast=function(b,a){return H(b,a)(this)};g.prototype.observeOn=function(b,a){void 0===a&&(a=0);return Ia(b,a)(this)};g.prototype.onErrorResumeNext=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Oa.apply(void 0,b)(this)};var pe=function(){function b(){}
b.prototype.call=function(a,b){return b.subscribe(new Kg(a))};return b}(),Kg=function(b){function a(a){b.call(this,a);this.hasPrev=!1}k(a,b);a.prototype._next=function(a){this.hasPrev?this.destination.next([this.prev,a]):this.hasPrev=!0;this.prev=a};return a}(m);g.prototype.pairwise=function(){return Rb()(this)};g.prototype.partition=function(b,a){return Sb(b,a)(this)};g.prototype.pluck=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Tb.apply(void 0,b)(this)};g.prototype.publish=
function(b){return Ub(b)(this)};var Wb=function(b){function a(a){b.call(this);this._value=a}k(a,b);Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0});a.prototype._subscribe=function(a){var c=b.prototype._subscribe.call(this,a);c&&!c.closed&&a.next(this._value);return c};a.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value};a.prototype.next=function(a){b.prototype.next.call(this,
this._value=a)};return a}(w);g.prototype.publishBehavior=function(b){return Vb(b)(this)};g.prototype.publishReplay=function(b,a,c,e){return Xb(b,a,c,e)(this)};g.prototype.publishLast=function(){return Yb()(this)};g.prototype.race=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Zb.apply(void 0,b)(this)};g.prototype.reduce=function(b,a){return 2<=arguments.length?Q(b,a)(this):Q(b)(this)};var ac=function(){function b(a,b){this.count=a;this.source=b}b.prototype.call=function(a,
b){return b.subscribe(new Lg(a,this.count,this.source))};return b}(),Lg=function(b){function a(a,e,d){b.call(this,a);this.count=e;this.source=d}k(a,b);a.prototype.complete=function(){if(!this.isStopped){var a=this.source,e=this.count;if(0===e)return b.prototype.complete.call(this);-1<e&&(this.count=e-1);a.subscribe(this._unsubscribeAndRecycle())}};return a}(m);g.prototype.repeat=function(b){void 0===b&&(b=-1);return $b(b)(this)};var se=function(){function b(a){this.notifier=a}b.prototype.call=function(a,
b){return b.subscribe(new Mg(a,this.notifier,b))};return b}(),Mg=function(b){function a(a,e,d){b.call(this,a);this.notifier=e;this.source=d;this.sourceIsBeingSubscribedTo=!0}k(a,b);a.prototype.notifyNext=function(a,b,d,f,h){this.sourceIsBeingSubscribedTo=!0;this.source.subscribe(this)};a.prototype.notifyComplete=function(a){if(!1===this.sourceIsBeingSubscribedTo)return b.prototype.complete.call(this)};a.prototype.complete=function(){this.sourceIsBeingSubscribedTo=!1;if(!this.isStopped){this.retries||
this.subscribeToRetries();if(!this.retriesSubscription||this.retriesSubscription.closed)return b.prototype.complete.call(this);this._unsubscribeAndRecycle();this.notifications.next()}};a.prototype._unsubscribe=function(){var a=this.notifications,b=this.retriesSubscription;a&&(a.unsubscribe(),this.notifications=null);b&&(b.unsubscribe(),this.retriesSubscription=null);this.retries=null};a.prototype._unsubscribeAndRecycle=function(){var a=this.notifications,e=this.retries,d=this.retriesSubscription;
this.retriesSubscription=this.retries=this.notifications=null;b.prototype._unsubscribeAndRecycle.call(this);this.notifications=a;this.retries=e;this.retriesSubscription=d;return this};a.prototype.subscribeToRetries=function(){this.notifications=new w;var a=q(this.notifier)(this.notifications);if(a===n)return b.prototype.complete.call(this);this.retries=a;this.retriesSubscription=r(this,a)};return a}(t);g.prototype.repeatWhen=function(b){return bc(b)(this)};var te=function(){function b(a,b){this.count=
a;this.source=b}b.prototype.call=function(a,b){return b.subscribe(new Ng(a,this.count,this.source))};return b}(),Ng=function(b){function a(a,e,d){b.call(this,a);this.count=e;this.source=d}k(a,b);a.prototype.error=function(a){if(!this.isStopped){var c=this.source,d=this.count;if(0===d)return b.prototype.error.call(this,a);-1<d&&(this.count=d-1);c.subscribe(this._unsubscribeAndRecycle())}};return a}(m);g.prototype.retry=function(b){void 0===b&&(b=-1);return cc(b)(this)};var ue=function(){function b(a,
b){this.notifier=a;this.source=b}b.prototype.call=function(a,b){return b.subscribe(new Og(a,this.notifier,this.source))};return b}(),Og=function(b){function a(a,e,d){b.call(this,a);this.notifier=e;this.source=d}k(a,b);a.prototype.error=function(a){if(!this.isStopped){var c=this.errors,d=this.retries,f=this.retriesSubscription;if(d)this.retriesSubscription=this.errors=null;else{c=new w;d=q(this.notifier)(c);if(d===n)return b.prototype.error.call(this,n.e);f=r(this,d)}this._unsubscribeAndRecycle();
this.errors=c;this.retries=d;this.retriesSubscription=f;c.next(a)}};a.prototype._unsubscribe=function(){var a=this.errors,b=this.retriesSubscription;a&&(a.unsubscribe(),this.errors=null);b&&(b.unsubscribe(),this.retriesSubscription=null);this.retries=null};a.prototype.notifyNext=function(a,b,d,f,h){a=this.errors;b=this.retries;d=this.retriesSubscription;this.retriesSubscription=this.retries=this.errors=null;this._unsubscribeAndRecycle();this.errors=a;this.retries=b;this.retriesSubscription=d;this.source.subscribe(this)};
return a}(t);g.prototype.retryWhen=function(b){return dc(b)(this)};var ve=function(){function b(a){this.notifier=a}b.prototype.call=function(a,b){a=new Pg(a);b=b.subscribe(a);b.add(r(a,this.notifier));return b};return b}(),Pg=function(b){function a(){b.apply(this,arguments);this.hasValue=!1}k(a,b);a.prototype._next=function(a){this.value=a;this.hasValue=!0};a.prototype.notifyNext=function(a,b,d,f,h){this.emitValue()};a.prototype.notifyComplete=function(){this.emitValue()};a.prototype.emitValue=function(){this.hasValue&&
(this.hasValue=!1,this.destination.next(this.value))};return a}(t);g.prototype.sample=function(b){return ec(b)(this)};var we=function(){function b(a,b){this.period=a;this.scheduler=b}b.prototype.call=function(a,b){return b.subscribe(new Qg(a,this.period,this.scheduler))};return b}(),Qg=function(b){function a(a,e,d){b.call(this,a);this.period=e;this.scheduler=d;this.hasValue=!1;this.add(d.schedule(xe,e,{subscriber:this,period:e}))}k(a,b);a.prototype._next=function(a){this.lastValue=a;this.hasValue=
!0};a.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))};return a}(m);g.prototype.sampleTime=function(b,a){void 0===a&&(a=u);return fc(b,a)(this)};g.prototype.scan=function(b,a){return 2<=arguments.length?W(b,a)(this):W(b)(this)};var ye=function(){function b(a,b){this.compareTo=a;this.comparor=b}b.prototype.call=function(a,b){return b.subscribe(new Rg(a,this.compareTo,this.comparor))};return b}(),Rg=function(b){function a(a,e,d){b.call(this,a);
this.compareTo=e;this.comparor=d;this._a=[];this._b=[];this._oneComplete=!1;this.add(e.subscribe(new Sg(a,this)))}k(a,b);a.prototype._next=function(a){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(a),this.checkValues())};a.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0};a.prototype.checkValues=function(){for(var a=this._a,b=this._b,d=this.comparor;0<a.length&&0<b.length;){var f=a.shift(),h=b.shift();d?(f=
q(d)(f,h),f===n&&this.destination.error(n.e)):f=f===h;f||this.emit(!1)}};a.prototype.emit=function(a){var b=this.destination;b.next(a);b.complete()};a.prototype.nextB=function(a){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(a),this.checkValues())};return a}(m),Sg=function(b){function a(a,e){b.call(this,a);this.parent=e}k(a,b);a.prototype._next=function(a){this.parent.nextB(a)};a.prototype._error=function(a){this.parent.error(a)};a.prototype._complete=function(){this.parent._complete()};
return a}(m);g.prototype.sequenceEqual=function(b,a){return gc(b,a)(this)};g.prototype.share=function(){return hc()(this)};g.prototype.shareReplay=function(b,a,c){return ic(b,a,c)(this)};var Be=function(){function b(a,b){this.predicate=a;this.source=b}b.prototype.call=function(a,b){return b.subscribe(new Tg(a,this.predicate,this.source))};return b}(),Tg=function(b){function a(a,e,d){b.call(this,a);this.predicate=e;this.source=d;this.seenValue=!1;this.index=0}k(a,b);a.prototype.applySingleValue=function(a){this.seenValue?
this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=a)};a.prototype._next=function(a){var b=this.index++;this.predicate?this.tryNext(a,b):this.applySingleValue(a)};a.prototype.tryNext=function(a,b){try{this.predicate(a,b,this.source)&&this.applySingleValue(a)}catch(d){this.destination.error(d)}};a.prototype._complete=function(){var a=this.destination;0<this.index?(a.next(this.seenValue?this.singleValue:void 0),a.complete()):a.error(new ja)};return a}(m);
g.prototype.single=function(b){return jc(b)(this)};var Ce=function(){function b(a){this.total=a}b.prototype.call=function(a,b){return b.subscribe(new Ug(a,this.total))};return b}(),Ug=function(b){function a(a,e){b.call(this,a);this.total=e;this.count=0}k(a,b);a.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};return a}(m);g.prototype.skip=function(b){return kc(b)(this)};var De=function(){function b(a){this._skipCount=a;if(0>this._skipCount)throw new R;}b.prototype.call=
function(a,b){return 0===this._skipCount?b.subscribe(new m(a)):b.subscribe(new Vg(a,this._skipCount))};return b}(),Vg=function(b){function a(a,e){b.call(this,a);this._skipCount=e;this._count=0;this._ring=Array(e)}k(a,b);a.prototype._next=function(a){var b=this._skipCount,c=this._count++;if(c<b)this._ring[c]=a;else{var b=c%b,c=this._ring,f=c[b];c[b]=a;this.destination.next(f)}};return a}(m);g.prototype.skipLast=function(b){return lc(b)(this)};var Ee=function(){function b(a){this.notifier=a}b.prototype.call=
function(a,b){return b.subscribe(new Wg(a,this.notifier))};return b}(),Wg=function(b){function a(a,e){b.call(this,a);this.isInnerStopped=this.hasValue=!1;this.add(r(this,e))}k(a,b);a.prototype._next=function(a){this.hasValue&&b.prototype._next.call(this,a)};a.prototype._complete=function(){this.isInnerStopped?b.prototype._complete.call(this):this.unsubscribe()};a.prototype.notifyNext=function(a,b,d,f,h){this.hasValue=!0};a.prototype.notifyComplete=function(){this.isInnerStopped=!0;this.isStopped&&
b.prototype._complete.call(this)};return a}(t);g.prototype.skipUntil=function(b){return mc(b)(this)};var Fe=function(){function b(a){this.predicate=a}b.prototype.call=function(a,b){return b.subscribe(new Xg(a,this.predicate))};return b}(),Xg=function(b){function a(a,e){b.call(this,a);this.predicate=e;this.skipping=!0;this.index=0}k(a,b);a.prototype._next=function(a){var b=this.destination;this.skipping&&this.tryCallPredicate(a);this.skipping||b.next(a)};a.prototype.tryCallPredicate=function(a){try{this.skipping=
!!this.predicate(a,this.index++)}catch(e){this.destination.error(e)}};return a}(m);g.prototype.skipWhile=function(b){return nc(b)(this)};g.prototype.startWith=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return oc.apply(void 0,b)(this)};var ad=new (function(){function b(a){this.root=a;a.setImmediate&&"function"===typeof a.setImmediate?(this.setImmediate=a.setImmediate.bind(a),this.clearImmediate=a.clearImmediate.bind(a)):(this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=
!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate(),a=function e(a){delete e.instance.tasksByHandle[a]},a.instance=this,this.clearImmediate=a)}b.prototype.identify=
function(a){return this.root.Object.prototype.toString.call(a)};b.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)};b.prototype.canUseMessageChannel=function(){return!!this.root.MessageChannel};b.prototype.canUseReadyStateChange=function(){var a=this.root.document;return!!(a&&"onreadystatechange"in a.createElement("script"))};b.prototype.canUsePostMessage=function(){var a=this.root;if(a.postMessage&&!a.importScripts){var b=!0,e=a.onmessage;a.onmessage=
function(){b=!1};a.postMessage("","*");a.onmessage=e;return b}return!1};b.prototype.partiallyApplied=function(a){for(var b=[],e=1;e<arguments.length;e++)b[e-1]=arguments[e];e=function f(){var a=f.handler,b=f.args;"function"===typeof a?a.apply(void 0,b):(new Function(""+a))()};e.handler=a;e.args=b;return e};b.prototype.addFromSetImmediateArguments=function(a){this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,a);return this.nextHandle++};b.prototype.createProcessNextTickSetImmediate=
function(){var a=function e(){var a=e.instance,b=a.addFromSetImmediateArguments(arguments);a.root.process.nextTick(a.partiallyApplied(a.runIfPresent,b));return b};a.instance=this;return a};b.prototype.createPostMessageSetImmediate=function(){var a=this.root,b="setImmediate$"+a.Math.random()+"$",e=function f(c){var e=f.instance;c.source===a&&"string"===typeof c.data&&0===c.data.indexOf(b)&&e.runIfPresent(+c.data.slice(b.length))};e.instance=this;a.addEventListener("message",e,!1);e=function h(){var a=
h,b=a.messagePrefix,a=a.instance,c=a.addFromSetImmediateArguments(arguments);a.root.postMessage(b+c,"*");return c};e.instance=this;e.messagePrefix=b;return e};b.prototype.runIfPresent=function(a){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,a),0);else{var b=this.tasksByHandle[a];if(b){this.currentlyRunningATask=!0;try{b()}finally{this.clearImmediate(a),this.currentlyRunningATask=!1}}}};b.prototype.createMessageChannelSetImmediate=function(){var a=this,
b=new this.root.MessageChannel;b.port1.onmessage=function(b){a.runIfPresent(b.data)};var e=function f(){var a=f,b=a.channel,a=a.instance.addFromSetImmediateArguments(arguments);b.port2.postMessage(a);return a};e.channel=b;e.instance=this;return e};b.prototype.createReadyStateChangeSetImmediate=function(){var a=function e(){var a=e.instance,b=a.root.document,h=b.documentElement,g=a.addFromSetImmediateArguments(arguments),k=b.createElement("script");k.onreadystatechange=function(){a.runIfPresent(g);
k.onreadystatechange=null;h.removeChild(k);k=null};h.appendChild(k);return g};a.instance=this;return a};b.prototype.createSetTimeoutSetImmediate=function(){var a=function e(){var a=e.instance,b=a.addFromSetImmediateArguments(arguments);a.root.setTimeout(a.partiallyApplied(a.runIfPresent,b),0);return b};a.instance=this;return a};return b}())(p),Yg=function(b){function a(a,e){b.call(this,a,e);this.scheduler=a;this.work=e}k(a,b);a.prototype.requestAsyncId=function(a,e,d){void 0===d&&(d=0);if(null!==
d&&0<d)return b.prototype.requestAsyncId.call(this,a,e,d);a.actions.push(this);return a.scheduled||(a.scheduled=ad.setImmediate(a.flush.bind(a,null)))};a.prototype.recycleAsyncId=function(a,e,d){void 0===d&&(d=0);if(null!==d&&0<d||null===d&&0<this.delay)return b.prototype.recycleAsyncId.call(this,a,e,d);0===a.actions.length&&(ad.clearImmediate(e),a.scheduled=void 0)};return a}(X),ka=new (function(b){function a(){b.apply(this,arguments)}k(a,b);a.prototype.flush=function(a){this.active=!0;this.scheduled=
void 0;var b=this.actions,c,f=-1,h=b.length;a=a||b.shift();do if(c=a.execute(a.state,a.delay))break;while(++f<h&&(a=b.shift()));this.active=!1;if(c){for(;++f<h&&(a=b.shift());)a.unsubscribe();throw c;}};return a}(Y))(Yg),Zg=function(b){function a(a,e,d){void 0===e&&(e=0);void 0===d&&(d=ka);b.call(this);this.source=a;this.delayTime=e;this.scheduler=d;if(!K(e)||0>e)this.delayTime=0;d&&"function"===typeof d.schedule||(this.scheduler=ka)}k(a,b);a.create=function(b,e,d){void 0===e&&(e=0);void 0===d&&(d=
ka);return new a(b,e,d)};a.dispatch=function(a){return this.add(a.source.subscribe(a.subscriber))};a.prototype._subscribe=function(b){return this.scheduler.schedule(a.dispatch,this.delayTime,{source:this.source,subscriber:b})};return a}(g),He=function(){function b(a,b){this.scheduler=a;this.delay=b}b.prototype.call=function(a,b){return(new Zg(b,this.delay,this.scheduler)).subscribe(a)};return b}();g.prototype.subscribeOn=function(b,a){void 0===a&&(a=0);return Ge(b,a)(this)};var Ie=function(){function b(a,
b){this.project=a;this.resultSelector=b}b.prototype.call=function(a,b){return b.subscribe(new $g(a,this.project,this.resultSelector))};return b}(),$g=function(b){function a(a,e,d){b.call(this,a);this.project=e;this.resultSelector=d;this.index=0}k(a,b);a.prototype._next=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(f){this.destination.error(f);return}this._innerSub(b,a,c)};a.prototype._innerSub=function(a,b,d){var c=this.innerSubscription;c&&c.unsubscribe();this.add(this.innerSubscription=
r(this,a,b,d))};a.prototype._complete=function(){var a=this.innerSubscription;a&&!a.closed||b.prototype._complete.call(this)};a.prototype._unsubscribe=function(){this.innerSubscription=null};a.prototype.notifyComplete=function(a){this.remove(a);this.innerSubscription=null;this.isStopped&&b.prototype._complete.call(this)};a.prototype.notifyNext=function(a,b,d,f,h){this.resultSelector?this._tryNotifyNext(a,b,d,f):this.destination.next(b)};a.prototype._tryNotifyNext=function(a,b,d,f){var c;try{c=this.resultSelector(a,
b,d,f)}catch(z){this.destination.error(z);return}this.destination.next(c)};return a}(t);g.prototype.switch=qc;g.prototype._switch=qc;g.prototype.switchMap=function(b,a){return va(b,a)(this)};var Je=function(){function b(a,b){this.observable=a;this.resultSelector=b}b.prototype.call=function(a,b){return b.subscribe(new ah(a,this.observable,this.resultSelector))};return b}(),ah=function(b){function a(a,e,d){b.call(this,a);this.inner=e;this.resultSelector=d;this.index=0}k(a,b);a.prototype._next=function(a){var b=
this.innerSubscription;b&&b.unsubscribe();this.add(this.innerSubscription=r(this,this.inner,a,this.index++))};a.prototype._complete=function(){var a=this.innerSubscription;a&&!a.closed||b.prototype._complete.call(this)};a.prototype._unsubscribe=function(){this.innerSubscription=null};a.prototype.notifyComplete=function(a){this.remove(a);this.innerSubscription=null;this.isStopped&&b.prototype._complete.call(this)};a.prototype.notifyNext=function(a,b,d,f,h){h=this.destination;this.resultSelector?this.tryResultSelector(a,
b,d,f):h.next(b)};a.prototype.tryResultSelector=function(a,b,d,f){var c=this.resultSelector,e=this.destination,g;try{g=c(a,b,d,f)}catch(N){e.error(N);return}e.next(g)};return a}(t);g.prototype.switchMapTo=function(b,a){return rc(b,a)(this)};var Ke=function(){function b(a){this.total=a;if(0>this.total)throw new R;}b.prototype.call=function(a,b){return b.subscribe(new bh(a,this.total))};return b}(),bh=function(b){function a(a,e){b.call(this,a);this.total=e;this.count=0}k(a,b);a.prototype._next=function(a){var b=
this.total,c=++this.count;c<=b&&(this.destination.next(a),c===b&&(this.destination.complete(),this.unsubscribe()))};return a}(m);g.prototype.take=function(b){return sc(b)(this)};g.prototype.takeLast=function(b){return ea(b)(this)};var Le=function(){function b(a){this.notifier=a}b.prototype.call=function(a,b){return b.subscribe(new ch(a,this.notifier))};return b}(),ch=function(b){function a(a,e){b.call(this,a);this.notifier=e;this.add(r(this,e))}k(a,b);a.prototype.notifyNext=function(a,b,d,f,h){this.complete()};
a.prototype.notifyComplete=function(){};return a}(t);g.prototype.takeUntil=function(b){return tc(b)(this)};var Me=function(){function b(a){this.predicate=a}b.prototype.call=function(a,b){return b.subscribe(new dh(a,this.predicate))};return b}(),dh=function(b){function a(a,e){b.call(this,a);this.predicate=e;this.index=0}k(a,b);a.prototype._next=function(a){var b=this.destination,c;try{c=this.predicate(a,this.index++)}catch(f){b.error(f);return}this.nextOrComplete(a,c)};a.prototype.nextOrComplete=function(a,
b){var c=this.destination;b?c.next(a):c.complete()};return a}(m);g.prototype.takeWhile=function(b){return uc(b)(this)};var fa={leading:!0,trailing:!1},Ne=function(){function b(a,b,e){this.durationSelector=a;this.leading=b;this.trailing=e}b.prototype.call=function(a,b){return b.subscribe(new eh(a,this.durationSelector,this.leading,this.trailing))};return b}(),eh=function(b){function a(a,e,d,f){b.call(this,a);this.destination=a;this.durationSelector=e;this._leading=d;this._trailing=f;this._hasTrailingValue=
!1}k(a,b);a.prototype._next=function(a){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=a);else{var b=this.tryDurationSelector(a);b&&this.add(this.throttled=r(this,b));this._leading&&(this.destination.next(a),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=a))}};a.prototype.tryDurationSelector=function(a){try{return this.durationSelector(a)}catch(e){return this.destination.error(e),null}};a.prototype._unsubscribe=function(){var a=this.throttled;this._trailingValue=
null;this._hasTrailingValue=!1;a&&(this.remove(a),this.throttled=null,a.unsubscribe())};a.prototype._sendTrailing=function(){var a=this.destination,b=this._trailing,d=this._trailingValue,f=this._hasTrailingValue;this.throttled&&b&&f&&(a.next(d),this._trailingValue=null,this._hasTrailingValue=!1)};a.prototype.notifyNext=function(a,b,d,f,h){this._sendTrailing();this._unsubscribe()};a.prototype.notifyComplete=function(){this._sendTrailing();this._unsubscribe()};return a}(t);g.prototype.throttle=function(b,
a){void 0===a&&(a=fa);return vc(b,a)(this)};var Oe=function(){function b(a,b,e,d){this.duration=a;this.scheduler=b;this.leading=e;this.trailing=d}b.prototype.call=function(a,b){return b.subscribe(new fh(a,this.duration,this.scheduler,this.leading,this.trailing))};return b}(),fh=function(b){function a(a,e,d,f,h){b.call(this,a);this.duration=e;this.scheduler=d;this.leading=f;this.trailing=h;this._hasTrailingValue=!1;this._trailingValue=null}k(a,b);a.prototype._next=function(a){this.throttled?this.trailing&&
(this._trailingValue=a,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Pe,this.duration,{subscriber:this})),this.leading&&this.destination.next(a))};a.prototype.clearThrottle=function(){var a=this.throttled;a&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),a.unsubscribe(),this.remove(a),this.throttled=null)};return a}(m);g.prototype.throttleTime=function(b,a,c){void 0===a&&(a=u);void 0===
c&&(c=fa);return wc(b,a,c)(this)};var bd=function(){return function(b,a){this.value=b;this.interval=a}}(),Qe=function(){function b(a){this.scheduler=a}b.prototype.call=function(a,b){return b.subscribe(new gh(a,this.scheduler))};return b}(),gh=function(b){function a(a,e){b.call(this,a);this.scheduler=e;this.lastTime=0;this.lastTime=e.now()}k(a,b);a.prototype._next=function(a){var b=this.scheduler.now(),c=b-this.lastTime;this.lastTime=b;this.destination.next(new bd(a,c))};return a}(m);g.prototype.timeInterval=
function(b){void 0===b&&(b=u);return xc(b)(this)};var zc=function(b){function a(){var a=b.call(this,"Timeout has occurred");this.name=a.name="TimeoutError";this.stack=a.stack;this.message=a.message}k(a,b);return a}(Error),Re=function(){function b(a,b,e,d){this.waitFor=a;this.absoluteTimeout=b;this.scheduler=e;this.errorInstance=d}b.prototype.call=function(a,b){return b.subscribe(new hh(a,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))};return b}(),hh=function(b){function a(a,
e,d,f,h){b.call(this,a);this.absoluteTimeout=e;this.waitFor=d;this.scheduler=f;this.errorInstance=h;this.action=null;this.scheduleTimeout()}k(a,b);a.dispatchTimeout=function(a){a.error(a.errorInstance)};a.prototype.scheduleTimeout=function(){var b=this.action;b?this.action=b.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(a.dispatchTimeout,this.waitFor,this))};a.prototype._next=function(a){this.absoluteTimeout||this.scheduleTimeout();b.prototype._next.call(this,a)};a.prototype._unsubscribe=
function(){this.errorInstance=this.scheduler=this.action=null};return a}(m);g.prototype.timeout=function(b,a){void 0===a&&(a=u);return yc(b,a)(this)};var Se=function(){function b(a,b,e,d){this.waitFor=a;this.absoluteTimeout=b;this.withObservable=e;this.scheduler=d}b.prototype.call=function(a,b){return b.subscribe(new ih(a,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))};return b}(),ih=function(b){function a(a,e,d,f,h){b.call(this,a);this.absoluteTimeout=e;this.waitFor=d;this.withObservable=
f;this.scheduler=h;this.action=null;this.scheduleTimeout()}k(a,b);a.dispatchTimeout=function(a){var b=a.withObservable;a._unsubscribeAndRecycle();a.add(r(a,b))};a.prototype.scheduleTimeout=function(){var b=this.action;b?this.action=b.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(a.dispatchTimeout,this.waitFor,this))};a.prototype._next=function(a){this.absoluteTimeout||this.scheduleTimeout();b.prototype._next.call(this,a)};a.prototype._unsubscribe=function(){this.withObservable=
this.scheduler=this.action=null};return a}(t);g.prototype.timeoutWith=function(b,a,c){void 0===c&&(c=u);return Ac(b,a,c)(this)};var Cc=function(){return function(b,a){this.value=b;this.timestamp=a}}();g.prototype.timestamp=function(b){void 0===b&&(b=u);return Bc(b)(this)};g.prototype.toArray=function(){return Dc()(this)};var Ue=function(){function b(a){this.windowBoundaries=a}b.prototype.call=function(a,b){a=new jh(a);b=b.subscribe(a);b.closed||a.add(r(a,this.windowBoundaries));return b};return b}(),
jh=function(b){function a(a){b.call(this,a);this.window=new w;a.next(this.window)}k(a,b);a.prototype.notifyNext=function(a,b,d,f,h){this.openWindow()};a.prototype.notifyError=function(a,b){this._error(a)};a.prototype.notifyComplete=function(a){this._complete()};a.prototype._next=function(a){this.window.next(a)};a.prototype._error=function(a){this.window.error(a);this.destination.error(a)};a.prototype._complete=function(){this.window.complete();this.destination.complete()};a.prototype._unsubscribe=
function(){this.window=null};a.prototype.openWindow=function(){var a=this.window;a&&a.complete();var a=this.destination,b=this.window=new w;a.next(b)};return a}(t);g.prototype.window=function(b){return Ec(b)(this)};var Ve=function(){function b(a,b){this.windowSize=a;this.startWindowEvery=b}b.prototype.call=function(a,b){return b.subscribe(new kh(a,this.windowSize,this.startWindowEvery))};return b}(),kh=function(b){function a(a,e,d){b.call(this,a);this.destination=a;this.windowSize=e;this.startWindowEvery=
d;this.windows=[new w];this.count=0;a.next(this.windows[0])}k(a,b);a.prototype._next=function(a){for(var b=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,c=this.destination,f=this.windowSize,h=this.windows,g=h.length,k=0;k<g&&!this.closed;k++)h[k].next(a);a=this.count-f+1;0<=a&&0===a%b&&!this.closed&&h.shift().complete();0!==++this.count%b||this.closed||(b=new w,h.push(b),c.next(b))};a.prototype._error=function(a){var b=this.windows;if(b)for(;0<b.length&&!this.closed;)b.shift().error(a);
this.destination.error(a)};a.prototype._complete=function(){var a=this.windows;if(a)for(;0<a.length&&!this.closed;)a.shift().complete();this.destination.complete()};a.prototype._unsubscribe=function(){this.count=0;this.windows=null};return a}(m);g.prototype.windowCount=function(b,a){void 0===a&&(a=0);return Fc(b,a)(this)};var We=function(){function b(a,b,e,d){this.windowTimeSpan=a;this.windowCreationInterval=b;this.maxWindowSize=e;this.scheduler=d}b.prototype.call=function(a,b){return b.subscribe(new lh(a,
this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))};return b}(),mh=function(b){function a(){b.apply(this,arguments);this._numberOfNextedValues=0}k(a,b);a.prototype.next=function(a){this._numberOfNextedValues++;b.prototype.next.call(this,a)};Object.defineProperty(a.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0});return a}(w),lh=function(b){function a(a,e,d,f,h){b.call(this,a);this.destination=a;this.windowTimeSpan=
e;this.windowCreationInterval=d;this.maxWindowSize=f;this.scheduler=h;this.windows=[];a=this.openWindow();null!==d&&0<=d?(f={windowTimeSpan:e,windowCreationInterval:d,subscriber:this,scheduler:h},this.add(h.schedule(Hc,e,{subscriber:this,window:a,context:null})),this.add(h.schedule(Ye,d,f))):this.add(h.schedule(Xe,e,{subscriber:this,window:a,windowTimeSpan:e}))}k(a,b);a.prototype._next=function(a){for(var b=this.windows,c=b.length,f=0;f<c;f++){var h=b[f];h.closed||(h.next(a),h.numberOfNextedValues>=
this.maxWindowSize&&this.closeWindow(h))}};a.prototype._error=function(a){for(var b=this.windows;0<b.length;)b.shift().error(a);this.destination.error(a)};a.prototype._complete=function(){for(var a=this.windows;0<a.length;){var b=a.shift();b.closed||b.complete()}this.destination.complete()};a.prototype.openWindow=function(){var a=new mh;this.windows.push(a);this.destination.next(a);return a};a.prototype.closeWindow=function(a){a.complete();var b=this.windows;b.splice(b.indexOf(a),1)};return a}(m);
g.prototype.windowTime=function(b,a,c,e){var d=u,f=null,h=Number.POSITIVE_INFINITY;A(e)&&(d=e);A(c)?d=c:K(c)&&(h=c);A(a)?d=a:K(a)&&(f=a);return Gc(b,f,h,d)(this)};var Ze=function(){function b(a,b){this.openings=a;this.closingSelector=b}b.prototype.call=function(a,b){return b.subscribe(new nh(a,this.openings,this.closingSelector))};return b}(),nh=function(b){function a(a,e,d){b.call(this,a);this.openings=e;this.closingSelector=d;this.contexts=[];this.add(this.openSubscription=r(this,e,e))}k(a,b);a.prototype._next=
function(a){var b=this.contexts;if(b)for(var c=b.length,f=0;f<c;f++)b[f].window.next(a)};a.prototype._error=function(a){var c=this.contexts;this.contexts=null;if(c)for(var d=c.length,f=-1;++f<d;){var h=c[f];h.window.error(a);h.subscription.unsubscribe()}b.prototype._error.call(this,a)};a.prototype._complete=function(){var a=this.contexts;this.contexts=null;if(a)for(var e=a.length,d=-1;++d<e;){var f=a[d];f.window.complete();f.subscription.unsubscribe()}b.prototype._complete.call(this)};a.prototype._unsubscribe=
function(){var a=this.contexts;this.contexts=null;if(a)for(var b=a.length,d=-1;++d<b;){var f=a[d];f.window.unsubscribe();f.subscription.unsubscribe()}};a.prototype.notifyNext=function(a,b,d,f,h){if(a===this.openings){f=q(this.closingSelector)(b);if(f===n)return this.error(n.e);a=new w;b=new v;d={window:a,subscription:b};this.contexts.push(d);f=r(this,f,d);f.closed?this.closeWindow(this.contexts.length-1):(f.context=d,b.add(f));this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(a))};
a.prototype.notifyError=function(a){this.error(a)};a.prototype.notifyComplete=function(a){a!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(a.context))};a.prototype.closeWindow=function(a){if(-1!==a){var b=this.contexts,c=b[a],f=c.window,c=c.subscription;b.splice(a,1);f.complete();c.unsubscribe()}};return a}(t);g.prototype.windowToggle=function(b,a){return Ic(b,a)(this)};var $e=function(){function b(a){this.closingSelector=a}b.prototype.call=function(a,b){return b.subscribe(new oh(a,
this.closingSelector))};return b}(),oh=function(b){function a(a,e){b.call(this,a);this.destination=a;this.closingSelector=e;this.openWindow()}k(a,b);a.prototype.notifyNext=function(a,b,d,f,h){this.openWindow(h)};a.prototype.notifyError=function(a,b){this._error(a)};a.prototype.notifyComplete=function(a){this.openWindow(a)};a.prototype._next=function(a){this.window.next(a)};a.prototype._error=function(a){this.window.error(a);this.destination.error(a);this.unsubscribeClosingNotification()};a.prototype._complete=
function(){this.window.complete();this.destination.complete();this.unsubscribeClosingNotification()};a.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()};a.prototype.openWindow=function(a){void 0===a&&(a=null);a&&(this.remove(a),a.unsubscribe());(a=this.window)&&a.complete();a=this.window=new w;this.destination.next(a);a=q(this.closingSelector)();a===n?(a=n.e,this.destination.error(a),this.window.error(a)):this.add(this.closingNotification=
r(this,a))};return a}(t);g.prototype.windowWhen=function(b){return Jc(b)(this)};var af=function(){function b(a,b){this.observables=a;this.project=b}b.prototype.call=function(a,b){return b.subscribe(new ph(a,this.observables,this.project))};return b}(),ph=function(b){function a(a,e,d){b.call(this,a);this.observables=e;this.project=d;this.toRespond=[];a=e.length;this.values=Array(a);for(d=0;d<a;d++)this.toRespond.push(d);for(d=0;d<a;d++){var c=e[d];this.add(r(this,c,c,d))}}k(a,b);a.prototype.notifyNext=
function(a,b,d,f,h){this.values[d]=b;a=this.toRespond;0<a.length&&(d=a.indexOf(d),-1!==d&&a.splice(d,1))};a.prototype.notifyComplete=function(){};a.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(this.values),this.project?this._tryProject(a):this.destination.next(a))};a.prototype._tryProject=function(a){var b;try{b=this.project.apply(this,a)}catch(d){this.destination.error(d);return}this.destination.next(b)};return a}(t);g.prototype.withLatestFrom=function(){for(var b=[],a=0;a<
arguments.length;a++)b[a-0]=arguments[a];return Kc.apply(void 0,b)(this)};g.prototype.zip=function(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];return Qa.apply(void 0,b)(this)};g.prototype.zipAll=function(b){return Lc(b)(this)};var aa=function(){return function(b,a){void 0===a&&(a=Number.POSITIVE_INFINITY);this.subscribedFrame=b;this.unsubscribedFrame=a}}(),cd=function(){function b(){this.subscriptions=[]}b.prototype.logSubscribedFrame=function(){this.subscriptions.push(new aa(this.scheduler.now()));
return this.subscriptions.length-1};b.prototype.logUnsubscribedFrame=function(a){var b=this.subscriptions;b[a]=new aa(b[a].subscribedFrame,this.scheduler.now())};return b}(),ya=function(b){function a(a,e){b.call(this,function(a){var b=this,c=b.logSubscribedFrame();a.add(new v(function(){b.logUnsubscribedFrame(c)}));b.scheduleMessages(a);return a});this.messages=a;this.subscriptions=[];this.scheduler=e}k(a,b);a.prototype.scheduleMessages=function(a){for(var b=this.messages.length,c=0;c<b;c++){var f=
this.messages[c];a.add(this.scheduler.schedule(function(a){a.message.notification.observe(a.subscriber)},f.frame,{message:f,subscriber:a}))}};return a}(g);Mc(ya,[cd]);var dd=function(b){function a(a,e){b.call(this);this.messages=a;this.subscriptions=[];this.scheduler=e}k(a,b);a.prototype._subscribe=function(a){var c=this,d=c.logSubscribedFrame();a.add(new v(function(){c.logUnsubscribedFrame(d)}));return b.prototype._subscribe.call(this,a)};a.prototype.setup=function(){for(var a=this,b=a.messages.length,
d=0;d<b;d++)(function(){var b=a.messages[d];a.scheduler.schedule(function(){b.notification.observe(a)},b.frame)})()};return a}(w);Mc(dd,[cd]);var fd=function(b){function a(a,e){var c=this;void 0===a&&(a=ed);void 0===e&&(e=Number.POSITIVE_INFINITY);b.call(this,a,function(){return c.frame});this.maxFrames=e;this.frame=0;this.index=-1}k(a,b);a.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,d,f;(f=a.shift())&&(this.frame=f.delay)<=b&&!(d=f.execute(f.state,f.delay)););if(d){for(;f=
a.shift();)f.unsubscribe();throw d;}};a.frameTimeFactor=10;return a}(Y),ed=function(b){function a(a,e,d){void 0===d&&(d=a.index+=1);b.call(this,a,e);this.scheduler=a;this.work=e;this.index=d;this.active=!0;this.index=a.index=d}k(a,b);a.prototype.schedule=function(c,e){void 0===e&&(e=0);if(!this.id)return b.prototype.schedule.call(this,c,e);this.active=!1;var d=new a(this.scheduler,this.work);this.add(d);return d.schedule(c,e)};a.prototype.requestAsyncId=function(b,e,d){void 0===d&&(d=0);this.delay=
b.frame+d;b=b.actions;b.push(this);b.sort(a.sortActions);return!0};a.prototype.recycleAsyncId=function(a,b,d){};a.prototype._execute=function(a,e){if(!0===this.active)return b.prototype._execute.call(this,a,e)};a.sortActions=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};return a}(X),qh=function(b){function a(a){b.call(this,ed,750);this.assertDeepEqual=a;this.hotObservables=[];this.coldObservables=[];this.flushTests=[]}k(a,b);a.prototype.createTime=
function(b){b=b.indexOf("|");if(-1===b)throw Error('marble diagram for time should have a completion marker "|"');return b*a.frameTimeFactor};a.prototype.createColdObservable=function(b,e,d){if(-1!==b.indexOf("^"))throw Error('cold observable cannot have subscription offset "^"');if(-1!==b.indexOf("!"))throw Error('cold observable cannot have unsubscription marker "!"');b=a.parseMarbles(b,e,d);b=new ya(b,this);this.coldObservables.push(b);return b};a.prototype.createHotObservable=function(b,e,d){if(-1!==
b.indexOf("!"))throw Error('hot observable cannot have unsubscription marker "!"');b=a.parseMarbles(b,e,d);b=new dd(b,this);this.hotObservables.push(b);return b};a.prototype.materializeInnerObservable=function(a,b){var c=this,e=[];a.subscribe(function(a){e.push({frame:c.frame-b,notification:y.createNext(a)})},function(a){e.push({frame:c.frame-b,notification:y.createError(a)})},function(){e.push({frame:c.frame-b,notification:y.createComplete()})});return e};a.prototype.expectObservable=function(b,
e){var c=this;void 0===e&&(e=null);var f=[],h={actual:f,ready:!1};e=a.parseMarblesAsSubscriptions(e).unsubscribedFrame;var k;this.schedule(function(){k=b.subscribe(function(a){var b=a;a instanceof g&&(b=c.materializeInnerObservable(b,c.frame));f.push({frame:c.frame,notification:y.createNext(b)})},function(a){f.push({frame:c.frame,notification:y.createError(a)})},function(){f.push({frame:c.frame,notification:y.createComplete()})})},0);e!==Number.POSITIVE_INFINITY&&this.schedule(function(){return k.unsubscribe()},
e);this.flushTests.push(h);return{toBe:function(b,c,d){h.ready=!0;h.expected=a.parseMarbles(b,c,d,!0)}}};a.prototype.expectSubscriptions=function(b){var c={actual:b,ready:!1};this.flushTests.push(c);return{toBe:function(b){b="string"===typeof b?[b]:b;c.ready=!0;c.expected=b.map(function(b){return a.parseMarblesAsSubscriptions(b)})}}};a.prototype.flush=function(){for(var a=this.hotObservables;0<a.length;)a.shift().setup();b.prototype.flush.call(this);for(a=this.flushTests.filter(function(a){return a.ready});0<
a.length;){var e=a.shift();this.assertDeepEqual(e.actual,e.expected)}};a.parseMarblesAsSubscriptions=function(a){if("string"!==typeof a)return new aa(Number.POSITIVE_INFINITY);for(var b=a.length,c=-1,f=Number.POSITIVE_INFINITY,g=Number.POSITIVE_INFINITY,k=0;k<b;k++){var l=k*this.frameTimeFactor,m=a[k];switch(m){case "-":case " ":break;case "(":c=l;break;case ")":c=-1;break;case "^":if(f!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");
f=-1<c?c:l;break;case "!":if(g!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");g=-1<c?c:l;break;default:throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+m+"'.");}}return 0>g?new aa(f):new aa(f,g)};a.parseMarbles=function(a,b,d,f){void 0===f&&(f=!1);if(-1!==a.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var c=
a.length,e=[],g=a.indexOf("^"),g=-1===g?0:g*-this.frameTimeFactor,k="object"!==typeof b?function(a){return a}:function(a){return f&&b[a]instanceof ya?b[a].messages:b[a]},l=-1,m=0;m<c;m++){var n=m*this.frameTimeFactor+g,p=void 0,q=a[m];switch(q){case "-":case " ":break;case "(":l=n;break;case ")":l=-1;break;case "|":p=y.createComplete();break;case "^":break;case "#":p=y.createError(d||"error");break;default:p=y.createNext(k(q))}p&&e.push({frame:-1<l?l:n,notification:p})}return e};return a}(fd),gd=
new (function(){return function(b){b.requestAnimationFrame?(this.cancelAnimationFrame=b.cancelAnimationFrame.bind(b),this.requestAnimationFrame=b.requestAnimationFrame.bind(b)):b.mozRequestAnimationFrame?(this.cancelAnimationFrame=b.mozCancelAnimationFrame.bind(b),this.requestAnimationFrame=b.mozRequestAnimationFrame.bind(b)):b.webkitRequestAnimationFrame?(this.cancelAnimationFrame=b.webkitCancelAnimationFrame.bind(b),this.requestAnimationFrame=b.webkitRequestAnimationFrame.bind(b)):b.msRequestAnimationFrame?
(this.cancelAnimationFrame=b.msCancelAnimationFrame.bind(b),this.requestAnimationFrame=b.msRequestAnimationFrame.bind(b)):b.oRequestAnimationFrame?(this.cancelAnimationFrame=b.oCancelAnimationFrame.bind(b),this.requestAnimationFrame=b.oRequestAnimationFrame.bind(b)):(this.cancelAnimationFrame=b.clearTimeout.bind(b),this.requestAnimationFrame=function(a){return b.setTimeout(a,1E3/60)})}}())(p),rh=function(b){function a(a,e){b.call(this,a,e);this.scheduler=a;this.work=e}k(a,b);a.prototype.requestAsyncId=
function(a,e,d){void 0===d&&(d=0);if(null!==d&&0<d)return b.prototype.requestAsyncId.call(this,a,e,d);a.actions.push(this);return a.scheduled||(a.scheduled=gd.requestAnimationFrame(a.flush.bind(a,null)))};a.prototype.recycleAsyncId=function(a,e,d){void 0===d&&(d=0);if(null!==d&&0<d||null===d&&0<this.delay)return b.prototype.recycleAsyncId.call(this,a,e,d);0===a.actions.length&&(gd.cancelAnimationFrame(e),a.scheduled=void 0)};return a}(X),sh=new (function(b){function a(){b.apply(this,arguments)}k(a,
b);a.prototype.flush=function(a){this.active=!0;this.scheduled=void 0;var b=this.actions,c,f=-1,g=b.length;a=a||b.shift();do if(c=a.execute(a.state,a.delay))break;while(++f<g&&(a=b.shift()));this.active=!1;if(c){for(;++f<g&&(a=b.shift());)a.unsubscribe();throw c;}};return a}(Y))(rh),th=Object.freeze({audit:sa,auditTime:Db,buffer:Ua,bufferCount:Va,bufferTime:Wa,bufferToggle:Za,bufferWhen:$a,catchError:ab,combineAll:cb,combineLatest:Ga,concat:db,concatAll:oa,concatMap:pa,concatMapTo:eb,count:fb,debounce:hb,
debounceTime:ib,defaultIfEmpty:qa,delay:jb,delayWhen:kb,dematerialize:gb,distinct:mb,distinctUntilChanged:ra,distinctUntilKeyChanged:nb,elementAt:tb,every:Hb,exhaust:qb,exhaustMap:rb,expand:sb,filter:da,finalize:ub,find:wb,findIndex:yb,first:zb,groupBy:Ab,ignoreElements:Bb,isEmpty:Cb,last:Fb,map:V,mapTo:Ib,materialize:Jb,max:Kb,merge:Lb,mergeAll:ba,mergeMap:T,flatMap:T,mergeMapTo:Nb,mergeScan:Pb,min:Qb,multicast:H,observeOn:Ia,onErrorResumeNext:Oa,pairwise:Rb,partition:Sb,pluck:Tb,publish:Ub,publishBehavior:Vb,
publishLast:Yb,publishReplay:Xb,race:Zb,reduce:Q,repeat:$b,repeatWhen:bc,retry:cc,retryWhen:dc,refCount:ta,sample:ec,sampleTime:fc,scan:W,sequenceEqual:gc,share:hc,shareReplay:ic,single:jc,skip:kc,skipLast:lc,skipUntil:mc,skipWhile:nc,startWith:oc,switchAll:pc,switchMap:va,switchMapTo:rc,take:sc,takeLast:ea,takeUntil:tc,takeWhile:uc,tap:ob,throttle:vc,throttleTime:wc,timeInterval:xc,timeout:yc,timeoutWith:Ac,timestamp:Bc,toArray:Dc,window:Ec,windowCount:Fc,windowTime:Gc,windowToggle:Ic,windowWhen:Jc,
withLatestFrom:Kc,zip:Qa,zipAll:Lc}),uh={asap:ka,queue:Yc,animationFrame:sh,async:u},vh={rxSubscriber:O,observable:J,iterator:C};l.operators=th;l.Scheduler=uh;l.Symbol=vh;l.Subject=w;l.AnonymousSubject=ha;l.Observable=g;l.Subscription=v;l.Subscriber=m;l.AsyncSubject=P;l.ReplaySubject=M;l.BehaviorSubject=Wb;l.ConnectableObservable=$c;l.Notification=y;l.EmptyError=ja;l.ArgumentOutOfRangeError=R;l.ObjectUnsubscribedError=I;l.TimeoutError=zc;l.UnsubscriptionError=S;l.TimeInterval=bd;l.Timestamp=Cc;l.TestScheduler=
qh;l.VirtualTimeScheduler=fd;l.AjaxResponse=Wc;l.AjaxError=ia;l.AjaxTimeoutError=Xc;l.pipe=la;Object.defineProperty(l,"__esModule",{value:!0})});