q2-tecton-platform 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,5 +13,5 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),i=n(24),o=n(55),u=n(5),c=n(41),s=n(14),a=n(35);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=function(t){function e(n,r,i){var u=t.call(this)||this;switch(u.syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=o.a;break;case 1:if(!n){u.destination=o.a;break}if("object"===f(n)){n instanceof e?(u.syncErrorThrowable=n.syncErrorThrowable,u.destination=n,n.add(u)):(u.syncErrorThrowable=!0,u.destination=new h(u,n));break}default:u.syncErrorThrowable=!0,u.destination=new h(u,n,r,i)}return u}return r.a(e,t),e.prototype[c.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(u.a),h=function(t){function e(e,n,r,u){var c,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Object(i.a)(n)?c=n:n&&(c=n.next,r=n.error,u=n.complete,n!==o.a&&(a=Object.create(n),Object(i.a)(a.unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=c,s._error=r,s._complete=u,s}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(a.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(a.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw t;Object(a.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(a.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a}));var r=n(0),i=n(1),o=n(3),u=n(34),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),s=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));i.a;function a(t,e){if(!e.closed)return t instanceof o.a?t.subscribe(e):Object(u.a)(t)(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(53),i=n(1),o=n(41),u=n(55);var c=n(21),s=n(39),a=n(14),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,c=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(u.a)}(t,e,n);if(r?c.add(r.call(c,this.source)):c.add(this.source||a.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),a.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[c.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(s.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=a.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(e),n.d(e,"Maybe",(function(){return i}));var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e}var e,n,i;return e=t,i=[{key:"just",value:function(e){if(null==e)throw new TypeError("Value passed to just must exist!");return new t(e)}},{key:"nothing",value:function(){return new t}},{key:"maybe",value:function(e){return null==e?t.nothing():t.just(e)}},{key:"join",value:function(e){return e.withDefault(t.nothing())}},{key:"sequence",value:function(e){return e.reduce((function(t,e){return t.bind((function(t){return e.map((function(e){return t.concat(e)}))}))}),t.just([]))}},{key:"traverse",value:function(e,n){return t.sequence(n).map((function(t){return t.map(e)}))}},{key:"justMap",value:function(t,e){return e.reduce((function(e,n){var r=t(n);return void 0!==r.value?e.concat(r.value):e}),[])}},{key:"filterSomethings",value:function(t){return t.reduce((function(t,e){return e.value&&t.push(e.value),t}),[])}},{key:"lift",value:function(t){return function(e){return e.map(t)}}},{key:"lift2",value:function(e){return function(n,r){return t.sequence([n,r]).map((function(t){return e(t[0],t[1])}))}}},{key:"lift3",value:function(e){return function(n,r,i){return t.sequence([n,r,i]).map((function(t){return e(t[0],t[1],t[2])}))}}},{key:"toPromise",value:function(t){return t.hasSomething?Promise.resolve(t.value):Promise.reject()}}],(n=[{key:"map",value:function(e){return void 0!==this.value?t.maybe(e(this.value)):t.nothing()}},{key:"asyncMap",value:function(t){return void 0!==this.value?t(this.value).then((function(t){if(null==t)throw"Promise Conversion from a Maybe.Nothing";return t})):Promise.reject()}},{key:"alt",value:function(t){return void 0!==this.value?this:t}},{key:"altMap",value:function(t){return void 0!==this.value?this:t()}},{key:"ap",value:function(t){var e=this;return t.bind((function(t){return e.map(t)}))}},{key:"bind",value:function(e){return t.join(this.map(e))}},{key:"withDefault",value:function(t){return void 0!==this.value?this.value:t}},{key:"withDefaultFn",value:function(t){return void 0!==this.value?this.value:t()}},{key:"hasNothing",get:function(){return void 0===this.value}},{key:"hasSomething",get:function(){return!this.hasNothing}},{key:"unsafeElse",value:function(t){this.hasNothing&&t()}}])&&r(e.prototype,n),i&&r(e,i),t}();i.of=i.maybe},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(52),o=n(24),u=n(42);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,c=this._ctorUnsubscribe,s=this._unsubscribe,f=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l){n[l].remove(this)}if(Object(o.a)(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof u.a?a(t.errors):[t]}}if(Object(r.a)(f)){l=-1;for(var h=f.length;++l<h;){var p=f[l];if(Object(i.a)(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof u.a?e=e.concat(a(t.errors)):e.push(t)}}}if(e)throw new u.a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(c(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function a(t){return t.reduce((function(t,e){return t.concat(e instanceof u.a?e.errors:e)}),[])}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(3),o=n(1),u=n(5),c=n(22),s=n(69),a=n(41),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[a.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new c.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new c.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new c.a;return this.hasError?(t.error(this.thrownError),u.a.EMPTY):this.isStopped?(t.complete(),u.a.EMPTY):(this.observers.push(t),new s.a(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.a(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.a.EMPTY},e}(l)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(31),i=new(n(29).a)(r.a),o=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(3),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(34),o=n(68);function u(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(1).a),o=n(34),u=n(3);function c(t,e,n,r,c){if(void 0===c&&(c=new i(t,n,r)),!c.closed)return e instanceof u.a?e.subscribe(c):Object(o.a)(e)(c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(1).a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return c}));var r,i=n(11),o=n(36),u=n(47);r||(r={});var c=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(u.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(9),o=n(12),u=n(2);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new s(t,n))})}var s=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent))},t}(),a=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new u.a(this),n=this.destination;n.add(e);var r=Object(u.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(u.b),f=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t){return void 0===t&&(t=null),function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.defaultValue))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.a(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(70),o=n(54);function u(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(57),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(6),o=n(5),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(5).a))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(36),i=n(63);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(i.a)()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(70),i=n(35),o=n(19),u=n(21),c=n(71),s=n(72),a=n(52),f=function(t){if(t&&"function"==typeof t[u.a])return f=t,function(t){var e=f[u.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(c.a)(t))return Object(r.a)(t);if(Object(s.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(a.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(10),i=n(28),o=n(54);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(25),o=n(1);function u(t){return void 0===t&&(t=a),function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.errorFactory))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.a);function a(){return new i.a}},function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",(function(){return r.a})),n.d(e,"ConnectableObservable",(function(){return i.a})),n.d(e,"GroupedObservable",(function(){return o.a})),n.d(e,"observable",(function(){return u.a})),n.d(e,"Subject",(function(){return c.a})),n.d(e,"BehaviorSubject",(function(){return s.a})),n.d(e,"ReplaySubject",(function(){return a.a})),n.d(e,"AsyncSubject",(function(){return f.a})),n.d(e,"asap",(function(){return l.a})),n.d(e,"asapScheduler",(function(){return l.b})),n.d(e,"async",(function(){return h.a})),n.d(e,"asyncScheduler",(function(){return h.b})),n.d(e,"queue",(function(){return p.a})),n.d(e,"queueScheduler",(function(){return p.b})),n.d(e,"animationFrame",(function(){return g})),n.d(e,"animationFrameScheduler",(function(){return m})),n.d(e,"VirtualTimeScheduler",(function(){return w})),n.d(e,"VirtualAction",(function(){return x})),n.d(e,"Scheduler",(function(){return _.a})),n.d(e,"Subscription",(function(){return S.a})),n.d(e,"Subscriber",(function(){return O.a})),n.d(e,"Notification",(function(){return j.a})),n.d(e,"NotificationKind",(function(){return j.b})),n.d(e,"pipe",(function(){return E.a})),n.d(e,"noop",(function(){return C.a})),n.d(e,"identity",(function(){return P.a})),n.d(e,"isObservable",(function(){return T})),n.d(e,"ArgumentOutOfRangeError",(function(){return N.a})),n.d(e,"EmptyError",(function(){return A.a})),n.d(e,"ObjectUnsubscribedError",(function(){return I.a})),n.d(e,"UnsubscriptionError",(function(){return k.a})),n.d(e,"TimeoutError",(function(){return R.a})),n.d(e,"bindCallback",(function(){return L})),n.d(e,"bindNodeCallback",(function(){return U})),n.d(e,"combineLatest",(function(){return z.b})),n.d(e,"concat",(function(){return Y.a})),n.d(e,"defer",(function(){return G.a})),n.d(e,"empty",(function(){return J.b})),n.d(e,"forkJoin",(function(){return X})),n.d(e,"from",(function(){return Q.a})),n.d(e,"fromEvent",(function(){return tt.a})),n.d(e,"fromEventPattern",(function(){return nt})),n.d(e,"generate",(function(){return rt})),n.d(e,"iif",(function(){return ot})),n.d(e,"interval",(function(){return ct})),n.d(e,"merge",(function(){return at.a})),n.d(e,"never",(function(){return lt})),n.d(e,"of",(function(){return ht.a})),n.d(e,"onErrorResumeNext",(function(){return pt})),n.d(e,"pairs",(function(){return dt})),n.d(e,"partition",(function(){return gt})),n.d(e,"race",(function(){return wt.a})),n.d(e,"range",(function(){return xt})),n.d(e,"throwError",(function(){return St.a})),n.d(e,"timer",(function(){return Ot.a})),n.d(e,"using",(function(){return jt})),n.d(e,"zip",(function(){return Et.b})),n.d(e,"scheduled",(function(){return Ct.a})),n.d(e,"EMPTY",(function(){return J.a})),n.d(e,"NEVER",(function(){return ft})),n.d(e,"config",(function(){return Pt.a}));var r=n(3),i=n(60),o=n(58),u=n(21),c=n(6),s=n(59),a=n(46),f=n(30),l=n(40),h=n(7),p=n(56),d=n(0),b=n(31),v=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return d.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(b.a),y=n(29),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(y.a))(v),g=m,w=function(t){function e(e,n){void 0===e&&(e=x),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return d.a(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.a),x=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return d.a(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(b.a),_=n(57),S=n(5),O=n(1),j=n(18),E=n(39),C=n(20),P=n(15);function T(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var N=n(23),A=n(25),I=n(22),k=n(42),R=n(62),M=n(9),V=n(53),F=n(8),D=n(10);function L(t,e,n){if(e){if(!Object(D.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return L(t,n).apply(void 0,r).pipe(Object(M.a)((function(t){return Object(F.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=this,c={context:u,subject:o,callbackFunc:t,scheduler:n};return new r.a((function(r){if(n){var i={args:e,subscriber:r,params:c};return n.schedule(q,0,i)}if(!o){o=new f.a;try{t.apply(u,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){Object(V.a)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)}))}}function q(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,u=i.context,c=i.scheduler,s=i.subject;if(!s){s=i.subject=new f.a;try{o.apply(u,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(c.schedule(B,0,{value:r,subject:s}))}]))}catch(t){s.error(t)}}this.add(s.subscribe(r))}function B(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function U(t,e,n){if(e){if(!Object(D.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return U(t,n).apply(void 0,r).pipe(Object(M.a)((function(t){return Object(F.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.a((function(r){var i=o.context,u=o.subject;if(n)return n.schedule(W,0,{params:o,subscriber:r,context:i});if(!u){u=o.subject=new f.a;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?u.error(n):(u.next(t.length<=1?t[0]:t),u.complete())}]))}catch(t){Object(V.a)(u)?u.error(t):console.warn(t)}}return u.subscribe(r)}))}}function W(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,u=n.args,c=n.scheduler,s=n.subject;if(!s){s=n.subject=new f.a;try{o.apply(i,u.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(c.schedule($,0,{err:r,subject:s}));else{var i=t.length<=1?t[0]:t;e.add(c.schedule(H,0,{value:i,subject:s}))}}]))}catch(t){this.add(c.schedule($,0,{err:t,subject:s}))}}this.add(s.subscribe(r))}function H(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function $(t){var e=t.err;t.subject.error(e)}var z=n(48),Y=n(33),G=n(50),J=n(11),K=n(52),Q=n(12);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(Object(F.a)(n))return Z(n,null);if(Object(K.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Z(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Z(t=1===t.length&&Object(F.a)(t[0])?t[0]:t,null).pipe(Object(M.a)((function(t){return i.apply(void 0,t)})))}return Z(t,null)}function Z(t,e){return new r.a((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,u=0,c=function(c){var s=Object(Q.a)(t[c]),a=!1;n.add(s.subscribe({next:function(t){a||(a=!0,u++),i[c]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&a||(u===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},s=0;s<r;s++)c(s);else n.complete()}))}var tt=n(75),et=n(24);function nt(t,e,n){return n?nt(t,e).pipe(Object(M.a)((function(t){return Object(F.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(et.a)(e))return function(){return e(i,r)}}))}function rt(t,e,n,i,o){var u,c;if(1==arguments.length){var s=t;c=s.initialState,e=s.condition,n=s.iterate,u=s.resultSelector||P.a,o=s.scheduler}else void 0===i||Object(D.a)(i)?(c=t,u=P.a,o=i):(c=t,u=i);return new r.a((function(t){var r=c;if(o)return o.schedule(it,0,{subscriber:t,iterate:n,condition:e,resultSelector:u,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var s=void 0;try{s=u(r)}catch(e){return void t.error(e)}if(t.next(s),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}}))}function it(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ot(t,e,n){return void 0===e&&(e=J.a),void 0===n&&(n=J.a),Object(G.a)((function(){return t()?e:n}))}var ut=n(32);function ct(t,e){return void 0===t&&(t=0),void 0===e&&(e=h.a),(!Object(ut.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=h.a),new r.a((function(n){return n.add(e.schedule(st,t,{subscriber:n,counter:0,period:t})),n}))}function st(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var at=n(64),ft=new r.a(C.a);function lt(){return ft}var ht=n(36);function pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return J.a;var n=t[0],i=t.slice(1);return 1===t.length&&Object(F.a)(n)?pt.apply(void 0,n):new r.a((function(t){var e=function(){return t.add(pt.apply(void 0,i).subscribe(t))};return Object(Q.a)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function dt(t,e){return e?new r.a((function(n){var r=Object.keys(t),i=new S.a;return i.add(e.schedule(bt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i})):new r.a((function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()}))}function bt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var u=e[n];r.next([u,o[u]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var vt=n(73),yt=n(34),mt=n(16);function gt(t,e,n){return[Object(mt.a)(e,n)(new r.a(Object(yt.a)(t))),Object(mt.a)(Object(vt.a)(e,n))(new r.a(Object(yt.a)(t)))]}var wt=n(65);function xt(t,e,n){return void 0===t&&(t=0),new r.a((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(_t,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function _t(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n(47),Ot=n(66);function jt(t,e){return new r.a((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(Q.a)(i):J.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Et=n(51),Ct=n(68),Pt=n(14)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(15);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=1,o=function(){return Promise.resolve()}(),u={};function c(t){return t in u&&(delete u[t],!0)}var s=function(t){var e=i++;return u[e]=!0,o.then((function(){return c(e)&&t()})),e},a=function(t){c(t)},f=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(a(n),e.scheduled=void 0)},e}(n(31).a),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(29).a))(f),h=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return f})),n.d(e,"buffer",(function(){return l})),n.d(e,"bufferCount",(function(){return b})),n.d(e,"bufferTime",(function(){return w})),n.d(e,"bufferToggle",(function(){return N})),n.d(e,"bufferWhen",(function(){return k})),n.d(e,"catchError",(function(){return V})),n.d(e,"combineAll",(function(){return q})),n.d(e,"combineLatest",(function(){return W})),n.d(e,"concat",(function(){return $})),n.d(e,"concatAll",(function(){return z.a})),n.d(e,"concatMap",(function(){return G})),n.d(e,"concatMapTo",(function(){return J})),n.d(e,"count",(function(){return K})),n.d(e,"debounce",(function(){return Z})),n.d(e,"debounceTime",(function(){return nt.a})),n.d(e,"defaultIfEmpty",(function(){return rt.a})),n.d(e,"delay",(function(){return ut})),n.d(e,"delayWhen",(function(){return lt})),n.d(e,"dematerialize",(function(){return vt})),n.d(e,"distinct",(function(){return gt})),n.d(e,"distinctUntilChanged",(function(){return _t.a})),n.d(e,"distinctUntilKeyChanged",(function(){return St})),n.d(e,"elementAt",(function(){return Pt})),n.d(e,"endWith",(function(){return Nt})),n.d(e,"every",(function(){return At})),n.d(e,"exhaust",(function(){return Rt})),n.d(e,"exhaustMap",(function(){return Dt})),n.d(e,"expand",(function(){return Bt})),n.d(e,"filter",(function(){return jt.a})),n.d(e,"finalize",(function(){return Ht})),n.d(e,"find",(function(){return Yt})),n.d(e,"findIndex",(function(){return Kt})),n.d(e,"first",(function(){return Qt.a})),n.d(e,"groupBy",(function(){return Xt.b})),n.d(e,"ignoreElements",(function(){return Zt})),n.d(e,"isEmpty",(function(){return ne})),n.d(e,"last",(function(){return le})),n.d(e,"map",(function(){return Ft.a})),n.d(e,"mapTo",(function(){return he})),n.d(e,"materialize",(function(){return be})),n.d(e,"max",(function(){return Se})),n.d(e,"merge",(function(){return je})),n.d(e,"mergeAll",(function(){return Ee.a})),n.d(e,"mergeMap",(function(){return Y.b})),n.d(e,"flatMap",(function(){return Y.a})),n.d(e,"mergeMapTo",(function(){return Ce})),n.d(e,"mergeScan",(function(){return Pe})),n.d(e,"min",(function(){return Ae})),n.d(e,"multicast",(function(){return ke})),n.d(e,"observeOn",(function(){return Me.b})),n.d(e,"onErrorResumeNext",(function(){return Ve})),n.d(e,"pairwise",(function(){return Le})),n.d(e,"partition",(function(){return We})),n.d(e,"pluck",(function(){return He})),n.d(e,"publish",(function(){return Ye})),n.d(e,"publishBehavior",(function(){return Je})),n.d(e,"publishLast",(function(){return Qe})),n.d(e,"publishReplay",(function(){return Ze})),n.d(e,"race",(function(){return en})),n.d(e,"reduce",(function(){return _e})),n.d(e,"repeat",(function(){return nn})),n.d(e,"repeatWhen",(function(){return un})),n.d(e,"retry",(function(){return an})),n.d(e,"retryWhen",(function(){return hn})),n.d(e,"refCount",(function(){return bn.a})),n.d(e,"sample",(function(){return vn})),n.d(e,"sampleTime",(function(){return gn})),n.d(e,"scan",(function(){return me})),n.d(e,"sequenceEqual",(function(){return Sn})),n.d(e,"share",(function(){return Pn})),n.d(e,"shareReplay",(function(){return Nn})),n.d(e,"single",(function(){return An})),n.d(e,"skip",(function(){return Rn})),n.d(e,"skipLast",(function(){return Fn})),n.d(e,"skipUntil",(function(){return qn})),n.d(e,"skipWhile",(function(){return Wn})),n.d(e,"startWith",(function(){return zn})),n.d(e,"subscribeOn",(function(){return Kn})),n.d(e,"switchAll",(function(){return er})),n.d(e,"switchMap",(function(){return Xn})),n.d(e,"switchMapTo",(function(){return nr})),n.d(e,"take",(function(){return Ct.a})),n.d(e,"takeLast",(function(){return ce})),n.d(e,"takeUntil",(function(){return rr})),n.d(e,"takeWhile",(function(){return ur})),n.d(e,"tap",(function(){return lr})),n.d(e,"throttle",(function(){return br})),n.d(e,"throttleTime",(function(){return mr})),n.d(e,"throwIfEmpty",(function(){return Et.a})),n.d(e,"timeInterval",(function(){return Sr})),n.d(e,"timeout",(function(){return Nr})),n.d(e,"timeoutWith",(function(){return Er})),n.d(e,"timestamp",(function(){return Ar})),n.d(e,"toArray",(function(){return Rr})),n.d(e,"window",(function(){return Mr})),n.d(e,"windowCount",(function(){return Dr})),n.d(e,"windowTime",(function(){return Br})),n.d(e,"windowToggle",(function(){return Gr})),n.d(e,"windowWhen",(function(){return Qr})),n.d(e,"withLatestFrom",(function(){return ti})),n.d(e,"zip",(function(){return ii})),n.d(e,"zipAll",(function(){return oi}));var r=n(0),i=n(2);function o(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),s=n(7),a=n(66);function f(t,e){return void 0===e&&(e=s.a),o((function(){return Object(a.a)(t,e)}))}function l(t){return function(e){return e.lift(new h(t))}}var h=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),d=n(1);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new v(t,e))}}var v=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(d.a),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var u=r[o];u.push(t),u.length===e&&(r.splice(o,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(d.a),g=n(10);function w(t){var e=arguments.length,n=s.a;Object(g.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new x(t,r,i,n))}}var x=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),_=function(){return function(){this.buffer=[]}}(),S=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.bufferTimeSpan=n,u.bufferCreationInterval=r,u.maxBufferSize=i,u.scheduler=o,u.contexts=[];var c=u.openContext();if(u.timespanOnly=null==r||r<0,u.timespanOnly){var s={subscriber:u,context:c,bufferTimeSpan:n};u.add(c.closeAction=o.schedule(O,n,s))}else{var a={subscriber:u,context:c},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:u,scheduler:o};u.add(c.closeAction=o.schedule(E,n,a)),u.add(o.schedule(j,r,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],u=o.buffer;u.push(t),u.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(O,n,r))}},e.prototype.openContext=function(){var t=new _;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(d.a);function O(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function j(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var C=n(5),P=n(13),T=n(17);function N(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.openings,this.closingSelector))},t}(),I=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(P.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new C.a,r={buffer:[],subscription:n};e.push(r);var i=Object(P.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(T.a);function k(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new M(t,this.closingSelector))},t}(),M=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new C.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function V(t){return function(e){var n=new F(t),r=e.lift(n);return n.caught=r}}var F=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new D(t,this.selector,this.caught))},t}(),D=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),L=n(48);function q(t){return function(e){return e.lift(new L.a(t))}}var B=n(8),U=n(12);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(B.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(U.a)([e].concat(t)),new L.a(n))}}var H=n(33);function $(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(H.a.apply(void 0,[e].concat(t)))}}var z=n(63),Y=n(26);function G(t,e){return Object(Y.b)(t,e,1)}function J(t,e){return G((function(){return t}),e)}function K(t){return function(e){return e.lift(new Q(t,e))}}var Q=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.predicate,this.source))},t}(),X=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(d.a);function Z(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.c)(e,new i.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.b),nt=n(76),rt=n(27);function it(t){return t instanceof Date&&!isNaN(+t)}var ot=n(18);function ut(t,e){void 0===e&&(e=s.a);var n=it(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ct(n,e))}}var ct=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new st(t,this.delay,this.scheduler))},t}(),st=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.a(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new at(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ot.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ot.a.createComplete()),this.unsubscribe()},e}(d.a),at=function(){return function(t,e){this.time=t,this.notification=e}}(),ft=n(3);function lt(t,e){return e?function(n){return new dt(n,e).lift(new ht(t))}:function(e){return e.lift(new ht(t))}}var ht=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.delayDurationSelector))},t}(),pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(P.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(T.a),dt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new bt(t,this.source))},e}(ft.a),bt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(d.a);function vt(){return function(t){return t.lift(new yt)}}var yt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new mt(t))},t}(),mt=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(d.a);function gt(t,e){return function(n){return n.lift(new wt(t,e))}}var wt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new xt(t,this.keySelector,this.flushes))},t}(),xt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.b),_t=n(67);function St(t,e){return Object(_t.a)((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Ot=n(23),jt=n(16),Et=n(37),Ct=n(44);function Pt(t,e){if(t<0)throw new Ot.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(jt.a)((function(e,n){return n===t})),Object(Ct.a)(1),n?Object(rt.a)(e):Object(Et.a)((function(){return new Ot.a})))}}var Tt=n(36);function Nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return Object(H.a)(e,Tt.a.apply(void 0,t))}}function At(t,e){return function(n){return n.lift(new It(t,e,n))}}var It=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.predicate,this.thisArg,this.source))},t}(),kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.a(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.a);function Rt(){return function(t){return t.lift(new Mt)}}var Mt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Vt(t))},t}(),Vt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(i.c)(t,new i.a(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b),Ft=n(9);function Dt(t,e){return e?function(n){return n.pipe(Dt((function(n,r){return Object(U.a)(t(n,r)).pipe(Object(Ft.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Lt(t))}}var Lt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.project))},t}(),qt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b);function Bt(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Ut(t,e,n))}}var Ut=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.project,this.concurrent,this.scheduler))},t}(),Wt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.a(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(Object(i.c)(t,new i.a(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function Ht(t){return function(e){return e.lift(new $t(t))}}var $t=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.callback))},t}(),zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new C.a(n)),r}return r.a(e,t),e}(d.a);function Yt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Gt(t,n,!1,e))}}var Gt=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Jt=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.predicate=n,u.source=r,u.yieldIndex=i,u.thisArg=o,u.index=0,u}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(d.a);function Kt(t,e){return function(n){return n.lift(new Gt(t,n,!0,e))}}var Qt=n(77),Xt=n(58);function Zt(){return function(t){return t.lift(new te)}}var te=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ee(t))},t}(),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(d.a);function ne(){return function(t){return t.lift(new re)}}var re=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ie(t))},t}(),ie=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.a),oe=n(25),ue=n(11);function ce(t){return function(e){return 0===t?Object(ue.b)():e.lift(new se(t))}}var se=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.a}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.total))},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(d.a),fe=n(15);function le(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(jt.a)((function(e,n){return t(e,n,r)})):fe.a,ce(1),n?Object(rt.a)(e):Object(Et.a)((function(){return new oe.a})))}}function he(t){return function(e){return e.lift(new pe(t))}}var pe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.value))},t}(),de=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(d.a);function be(){return function(t){return t.lift(new ve)}}var ve=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ye(t))},t}(),ye=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(ot.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ot.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ot.a.createComplete()),t.complete()},e}(d.a);function me(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new ge(t,e,n))}}var ge=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.accumulator,this.seed,this.hasSeed))},t}(),we=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(d.a),xe=n(39);function _e(t,e){return arguments.length>=2?function(n){return Object(xe.a)(me(t,e),ce(1),Object(rt.a)(e))(n)}:function(e){return Object(xe.a)(me((function(e,n,r){return t(e,n,r+1)})),ce(1))(e)}}function Se(t){return _e("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Oe=n(64);function je(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Oe.a.apply(void 0,[e].concat(t)))}}var Ee=n(49);function Ce(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object(Y.b)((function(){return t}),e,n):("number"==typeof e&&(n=e),Object(Y.b)((function(){return t}),n))}function Pe(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Te(t,e,n))}}var Te=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t,this.accumulator,this.seed,this.concurrent))},t}(),Ne=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.a(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function Ae(t){return _e("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Ie=n(60);function ke(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Re(r,e));var i=Object.create(n,Ie.b);return i.source=n,i.subjectFactory=r,i}}var Re=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Me=n(61);function Ve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),function(e){return e.lift(new Fe(t))}}var Fe=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new De(t,this.nextSources))},t}(),De=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.a(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.b);function Le(){return function(t){return t.lift(new qe)}}var qe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Be(t))},t}(),Be=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.a(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(d.a),Ue=n(73);function We(t,e){return function(n){return[Object(jt.a)(t,e)(n),Object(jt.a)(Object(Ue.a)(t,e))(n)]}}function He(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(Ft.a)($e(t,n))(e)}}function $e(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}var ze=n(6);function Ye(t){return t?ke((function(){return new ze.a}),t):ke(new ze.a)}var Ge=n(59);function Je(t){return function(e){return ke(new Ge.a(t))(e)}}var Ke=n(30);function Qe(){return function(t){return ke(new Ke.a)(t)}}var Xe=n(46);function Ze(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new Xe.a(t,e,r);return function(t){return ke((function(){return o}),i)(t)}}var tn=n(65);function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),e.lift.call(tn.a.apply(void 0,[e].concat(t)))}}function nn(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(ue.b)():t<0?e.lift(new rn(-1,e)):e.lift(new rn(t-1,e))}}var rn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.count,this.source))},t}(),on=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(d.a);function un(t){return function(e){return e.lift(new cn(t))}}var cn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new sn(t,this.notifier,e))},t}(),sn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new ze.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function an(t){return void 0===t&&(t=-1),function(e){return e.lift(new fn(t,e))}}var fn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ln(t,this.count,this.source))},t}(),ln=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(d.a);function hn(t){return function(e){return e.lift(new pn(t,e))}}var pn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new dn(t,this.notifier,this.source))},t}(),dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new ze.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),bn=n(45);function vn(t){return function(e){return e.lift(new yn(t))}}var yn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new mn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),mn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function gn(t,e){return void 0===e&&(e=s.a),function(n){return n.lift(new wn(t,e))}}var wn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.period,this.scheduler))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(_n,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(d.a);function _n(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Sn(t,e){return function(n){return n.lift(new On(t,e))}}var On=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.compareTo,this.comparator))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new En(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(d.a),En=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(d.a);function Cn(){return new ze.a}function Pn(){return function(t){return Object(bn.a)()(ke(Cn)(t))}}function Tn(t){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nn(t,e,n){var r;return r=t&&"object"===Tn(t)?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,c=t.refCount,s=t.scheduler,a=0,f=!1,l=!1;return function(t){var r;a++,!e||f?(f=!1,e=new Xe.a(i,u,s),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,n=void 0,e.complete()}})):r=e.subscribe(this),this.add((function(){a--,r.unsubscribe(),n&&!l&&c&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function An(t){return function(e){return e.lift(new In(t,e))}}var In=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new kn(t,this.predicate,this.source))},t}(),kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new oe.a)},e}(d.a);function Rn(t){return function(e){return e.lift(new Mn(t))}}var Mn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.total))},t}(),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(d.a);function Fn(t){return function(e){return e.lift(new Dn(t))}}var Dn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ot.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new d.a(t)):e.subscribe(new Ln(t,this._skipCount))},t}(),Ln=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(d.a);function qn(t){return function(e){return e.lift(new Bn(t))}}var Bn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.notifier))},t}(),Un=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.a(r);r.add(o),r.innerSubscription=o;var u=Object(i.c)(n,o);return u!==o&&(r.add(u),r.innerSubscription=u),r}return r.a(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.b);function Wn(t){return function(e){return e.lift(new Hn(t))}}var Hn=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new $n(t,this.predicate))},t}(),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(d.a);function zn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(g.a)(n)?(t.pop(),function(e){return Object(H.a)(t,e,n)}):function(e){return Object(H.a)(t,e)}}var Yn=n(40),Gn=n(32),Jn=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Yn.a);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(Gn.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Yn.a),i}return r.a(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Yn.a),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(ft.a);function Kn(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Qn(t,e))}}var Qn=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Jn(e,this.delay,this.scheduler).subscribe(t)},t}();function Xn(t,e){return"function"==typeof e?function(n){return n.pipe(Xn((function(n,r){return Object(U.a)(t(n,r)).pipe(Object(Ft.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new tr(t,this.project))},t}(),tr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.b);function er(){return Xn(fe.a)}function nr(t,e){return e?Xn((function(){return t}),e):Xn((function(){return t}))}function rr(t){return function(e){return e.lift(new ir(t))}}var ir=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new or(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),or=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.a(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.b);function ur(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new cr(t,e))}}var cr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.predicate,this.inclusive))},t}(),sr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(d.a),ar=n(20),fr=n(24);function lr(t,e,n){return function(r){return r.lift(new hr(t,e,n))}}var hr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new pr(t,this.nextOrObserver,this.error,this.complete))},t}(),pr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=ar.a,o._tapError=ar.a,o._tapComplete=ar.a,o._tapError=r||ar.a,o._tapComplete=i||ar.a,Object(fr.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||ar.a,o._tapError=n.error||ar.a,o._tapComplete=n.complete||ar.a),o}return r.a(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(d.a),dr={leading:!0,trailing:!1};function br(t,e){return void 0===e&&(e=dr),function(n){return n.lift(new vr(t,!!e.leading,!!e.trailing))}}var vr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new yr(t,this.durationSelector,this.leading,this.trailing))},t}(),yr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.a(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(i.c)(e,new i.a(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.b);function mr(t,e,n){return void 0===e&&(e=s.a),void 0===n&&(n=dr),function(r){return r.lift(new gr(t,e,n.leading,n.trailing))}}var gr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new wr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),wr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.duration=n,u.scheduler=r,u.leading=i,u.trailing=o,u._hasTrailingValue=!1,u._trailingValue=null,u}return r.a(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(xr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(d.a);function xr(t){t.subscriber.clearThrottle()}var _r=n(50);function Sr(t){return void 0===t&&(t=s.a),function(e){return Object(_r.a)((function(){return e.pipe(me((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),Object(Ft.a)((function(t){var e=t.current,n=t.last,r=t.value;return new Or(r,e-n)})))}))}}var Or=function(){return function(t,e){this.value=t,this.interval=e}}(),jr=n(62);function Er(t,e,n){return void 0===n&&(n=s.a),function(r){var i=it(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Cr(o,i,e,n))}}var Cr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Pr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Pr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.absoluteTimeout=n,u.waitFor=r,u.withObservable=i,u.scheduler=o,u.scheduleTimeout(),u}return r.a(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(i.c)(e,new i.a(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.b),Tr=n(47);function Nr(t,e){return void 0===e&&(e=s.a),Er(t,Object(Tr.a)(new jr.a),e)}function Ar(t){return void 0===t&&(t=s.a),Object(Ft.a)((function(e){return new Ir(e,t.now())}))}var Ir=function(){return function(t,e){this.value=t,this.timestamp=e}}();function kr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Rr(){return _e(kr,[])}function Mr(t){return function(e){return e.lift(new Vr(t))}}var Vr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Fr(t),r=e.subscribe(n);return r.closed||n.add(Object(i.c)(this.windowBoundaries,new i.a(n))),r},t}(),Fr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new ze.a,e.next(n.window),n}return r.a(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new ze.a;e.next(n)},e}(i.b);function Dr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Lr(t,e))}}var Lr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.windowSize,this.startWindowEvery))},t}(),qr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new ze.a],i.count=0,e.next(i.windows[0]),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,u=0;u<o&&!this.closed;u++)i[u].next(t);var c=this.count-r+1;if(c>=0&&c%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var s=new ze.a;i.push(s),n.next(s)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(d.a);function Br(t){var e=s.a,n=null,r=Number.POSITIVE_INFINITY;return Object(g.a)(arguments[3])&&(e=arguments[3]),Object(g.a)(arguments[2])?e=arguments[2]:Object(Gn.a)(arguments[2])&&(r=Number(arguments[2])),Object(g.a)(arguments[1])?e=arguments[1]:Object(Gn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Ur(t,n,r,e))}}var Ur=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Hr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(ze.a),Hr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.destination=e,u.windowTimeSpan=n,u.windowCreationInterval=r,u.maxWindowSize=i,u.scheduler=o,u.windows=[];var c=u.openWindow();if(null!==r&&r>=0){var s={subscriber:u,window:c,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:u,scheduler:o};u.add(o.schedule(Yr,n,s)),u.add(o.schedule(zr,r,a))}else{var f={subscriber:u,window:c,windowTimeSpan:n};u.add(o.schedule($r,n,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Wr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(d.a);function $r(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function zr(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),u={action:this,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(Yr,e,c),this.add(u.subscription),this.schedule(t,i)}function Yr(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function Gr(t,e){return function(n){return n.lift(new Jr(t,e))}}var Jr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Kr(t,this.openings,this.closingSelector))},t}(),Kr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(P.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var u=new ze.a,c=new C.a,s={window:u,subscription:c};this.contexts.push(s);var a=Object(P.a)(this,o,s);a.closed?this.closeWindow(this.contexts.length-1):(a.context=s,c.add(a)),this.destination.next(u)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(T.a);function Qr(t){return function(e){return e.lift(new Xr(t))}}var Xr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Zr(t,this.closingSelector))},t}(),Zr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new ze.a;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=Object(P.a)(this,n))},e}(T.a);function ti(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new ei(r,n))}}var ei=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new ni(t,this.observables,this.project))},t}(),ni=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var u=0;u<o;u++)i.toRespond.push(u);for(u=0;u<o;u++){var c=n[u];i.add(Object(P.a)(i,c,void 0,u))}return i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(T.a),ri=n(51);function ii(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ri.b.apply(void 0,[e].concat(t)))}}function oi(t){return function(e){return e.lift(new ri.a(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),i=n(1),o=n(23),u=n(11);function c(t){return function(e){return 0===t?Object(u.b)():e.lift(new s(t))}}var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.a}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(){return function(t){return t.lift(new u(t))}}var u=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new c(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),i=n(6),o=n(56),u=n(5),c=n(61),s=n(22),a=n(69),f=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new l(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new s.a;if(this.isStopped||this.hasError?e=u.a.EMPTY:(this.observers.push(t),e=new a.a(this,t)),i&&t.add(t=new c.a(t,i)),n)for(var f=0;f<o&&!t.closed;f++)t.next(r[f]);else for(f=0;f<o&&!t.closed;f++)t.next(r[f].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.a).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),l=function(){return function(t,e){this.time=t,this.value=e}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3);function i(t,e){return e?new r.a((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.a((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(10),o=n(8),u=n(17),c=n(13),s=n(28),a={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(s.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.a(e,t),e.prototype._next=function(t){this.values.push(a),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(c.a)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===a?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26),i=n(15);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.b)(i.a,t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(12),o=n(11);function u(t){return new r.a((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(28),o=n(8),u=n(1),c=n(19),s=n(2);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),Object(i.a)(t,void 0).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.resultSelector))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.iterators;Object(o.a)(t)?e.push(new p(t)):"function"==typeof t[c.a]?e.push(new h(t[c.a]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe());else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(u=t[r]).hasValue&&!u.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var u,c=(u=t[r]).next();if(u.hasCompleted()&&(i=!0),c.done)return void n.complete();o.push(c.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a),h=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),p=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[c.a]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[c.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(s.c)(this.observable,new s.a(this))},e}(s.b)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return null!==t&&"object"===r(t)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(5);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14),i=n(35),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return u}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(31).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(29).a))(i),u=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(1),o=n(5),u=n(3),c=n(6);function s(t,e,n,r){return function(i){return i.lift(new a(t,e,n,r))}}var a=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),f=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.keySelector=n,u.elementSelector=r,u.durationSelector=i,u.subjectSelector=o,u.groups=null,u.attemptedToUnsubscribe=!1,u.count=0,u}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new c.a,n.set(e,i);var o=new h(e,i,this);if(this.destination.next(o),this.durationSelector){var u=void 0;try{u=this.durationSelector(new h(e,i))}catch(t){return void this.error(t)}this.add(u.subscribe(new l(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),l=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),h=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new p(n)),e.add(r.subscribe(t)),e},e}(u.a),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(6),o=n(22),u=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return f}));var r=n(0),i=n(6),o=n(3),u=n(1),c=n(5),s=n(45),a=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new c.a).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.a.EMPTY)),t},e.prototype.refCount=function(){return Object(s.a)()(this)},e}(o.a),f=function(){var t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);u.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return s}));var r=n(0),i=n(1),o=n(18);function u(t,e){return void 0===e&&(e=0),function(n){return n.lift(new c(t,e))}}var c=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.scheduler,this.delay))},t}(),s=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),a=function(){return function(t,e){this.notification=t,this.destination=e}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(49);function i(){return Object(r.a)(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(10),o=n(49),u=n(28);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=null,s=t[t.length-1];return Object(i.a)(s)?(c=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(u.a)(t,c))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(8),o=n(28),u=n(17),c=n(13);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(o.a)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new f(t))},t}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.a(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=Object(c.a)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(7),o=n(32),u=n(10);function c(t,e,n){void 0===t&&(t=0);var c=-1;return Object(o.a)(e)?c=Number(e)<1?1:Number(e):Object(u.a)(e)&&(n=e),Object(u.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(s,r,{index:0,period:c,subscriber:e})}))}function s(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(3),i=n(5),o=n(21);var u=n(54),c=n(19);var s=n(72),a=n(71);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var i=t[o.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(s.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(a.a)(t))return Object(u.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[c.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&f(t)||t)+" is not observable")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(5).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",(function(){return r}))},function(t,e,n){(function(t){var r,i,o,u;function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window,u=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==c(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=n(4)},function(t,e){t.exports=n(38)},function(t,e){t.exports=n(43)},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";!function(t){function e(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof t.CustomEvent&&(e.prototype=t.Event.prototype,t.CustomEvent=e)}(window)},function(t,e,n){"use strict";function r(t){return(t.charAt(0)+t.slice(1).replace(/([A-Z])/g,"-$&")).toLowerCase()}n.r(e),n.d(e,"generateCustomElementWrapper",(function(){return d})),n.d(e,"createSetupElement",(function(){return b})),n.d(e,"makeGenericEffectsDriver",(function(){return m}));var i=1e3;function o(){return i++}var u=n(1),c=n(0);function s(t){var e=t.reduce((function(t,e){return t.set(e.name,e),t}),new Map);return{fnHashByName:e,hooks:{init:function(t){t.__innerProps$=new u.BehaviorSubject({})},connectedCallback:function(t){var n,r,i,o,u,s=t.__innerProps$.getValue(),f=Object.assign({},s);t.constructor.observedAttributes.forEach((function(n){null!==t.getAttribute(n)&&a(t,n,t.getAttribute(n),c.Maybe.just(e),f)})),n=s,r=f,i=!0,o=Object.keys(n),u=Object.keys(r),o.length===u.length&&(o.forEach((function(t){r.hasOwnProperty(t)&&n[t]===r[t]||(i=!1)})),i)||t.__innerProps$.next(f)},classSetup:function(e){Object.assign(e,{observedAttributes:t.filter((function(t){return t.reflectAs})).map((function(t){return t.name})).map(r)}),t.forEach((function(t){Object.defineProperty(e.prototype,t.name,{get:function(){return this.__innerProps$.getValue()[t.name]},set:function(n){if(this.__innerProps$.getValue()[t.name]!==n){var i=r(t.name),o=e.observedAttributes.includes(i);o&&(!0===n?this.setAttribute(i,""):n||0===n||""===n?this.setAttribute(i,String(n)):this.removeAttribute(i)),!this.__attached&&o&&!1!==n||(this.__innerProps$.getValue()[t.name]=n,this.__innerProps$.next(this.__innerProps$.getValue()))}}})}))}}}}function a(t,e,n,r,i){var o=e.replace(/-([a-z])/gi,(function(t,e){return e.toUpperCase()}));t[o]=r.map((function(t){var e=t.get(o),r=n;return e&&e.reflectAs&&n&&(r=e.reflectAs(n)),e&&e.reflectAs===Boolean&&(r=""===n),i&&(i[o]=r),r})).withDefault(n)}function f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!!window.HTMLTemplateElement;return e=r?h(n):l(n),function(t){if(t.shadowRoot)return t.shadowRoot.querySelector("div");t.attachShadow?t.attachShadow({mode:"open"}):Object.assign(t,{shadowRoot:t});var i=document.importNode(e,!0);r||(i.querySelector("style").sheet.cssText=n);var o=t.shadowRoot;return o.appendChild(i),o.querySelector("div")}}function l(t){var e=document.createDocumentFragment(),n=document.createElement("style");n.appendChild(document.createTextNode(t));var r=document.createElement("div");return r.className="root",e.appendChild(n),e.appendChild(r),e}function h(t){var e=document.createElement("template");return e.innerHTML="<style>".concat(t,'</style><div class="root"></div>'),e.content}var p=n(2);function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{useShadowDOM:!0},r=n.useShadowDOM?c.Maybe.just(f(t,n.css)):c.Maybe.nothing(),i=Array.isArray(n.props)?c.Maybe.just(s(n.props)):c.Maybe.nothing(),u=function t(){var u=Reflect.construct(HTMLElement,[],t);return n.prototypeExtensions&&Object.keys(n.prototypeExtensions).forEach((function(t){u[t]||(u[t]=n.prototypeExtensions[t])})),u.__onTeardown=[],u.__onAttached=[],u.__guid=o(),i.map((function(t){return(0,t.hooks.init)(u)})),r.map((function(t){return t(u)})).map((function(t){var n=c.Maybe.maybe(u.__innerProps$).map((function(t){return e(u,t)})).withDefaultFn((function(){return e(u)}));v(u,t,n),u.__shadowAppBooted=!0})),u};return y(u),u.prototype=Object.create(HTMLElement.prototype,{component:{writable:!0,enumerable:!0},constructor:{value:u},connectedCallback:{writable:!0,value:function(){var t=this;this.dataset.guid="".concat(this.__guid),n.useShadowDOM&&this.__shadowAppBooted||(r.map((function(e){return e(t)})).alt(c.Maybe.just(this)).map((function(n){var r=c.Maybe.maybe(t.__innerProps$).map((function(n){return e(t,n)})).withDefaultFn((function(){return e(t)}));v(t,n,r)})),this.__shadowAppBooted=!0),i.map((function(e){(0,e.hooks.connectedCallback)(t)})),this.__attached=!0,this.__onAttached.forEach((function(e){return e.call(t)}))}},disconnectedCallback:{writable:!0,value:function(){var t=this;this.__onTeardown.reverse().forEach((function(e){return e.call(t)})),this.__onTeardown=[],this.__onAttached=[],this.__attached=!1,this.__shadowAppBooted=!1}},attributeChangedCallback:{writable:!0,value:function(t,e,n){e!==n&&this.__attached&&a(this,t,n,i.map((function(t){return t.fnHashByName})))}}}),i.map((function(t){return(0,t.hooks.classSetup)(u)})),u}function b(t){return function(e){return function(n){var r=function(){window.customElements.get(n)||window.customElements.define(n,t(n,e))};window.customElements?r():Object(u.interval)(5).pipe(Object(p.filter)((function(){return!!window.customElements})),Object(p.take)(1)).toPromise().then((function(){r()}))}}}function v(t,e,n){var r=document.createElement("div");e.appendChild(r);var i=n.DOM$.subscribe((function(t){e.replaceChild(t,e.firstChild)})),o=n.settled$.subscribe((function(e){t.settled=e,e&&t.dispatchEvent(new CustomEvent("settled"))})),u=n.teardown$.subscribe((function(e){t.__onTeardown.push(e)}));t.__onTeardown.push((function(){[i,o,u].forEach((function(t){return t.unsubscribe()}))}))}function y(t){try{Object.defineProperty(t,"is",{value:name,writable:!1}),Object.defineProperty(t,"localName",{value:name,writable:!1})}catch(t){}}function m(t){return function(e){e.subscribe({next:function(e){e(t)},error:function(){},complete:function(){}})}}n(4)}])},"object"==c(e)&&"object"==c(t)?t.exports=u():(i=[],void 0===(o="function"==typeof(r=u)?r.apply(e,i):r)||(t.exports=o))}).call(this,n(79)(t))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(8),o=n(24),u=n(9);function c(t,e,n,s){return Object(o.a)(n)&&(s=n,n=void 0),s?c(t,e,n).pipe(Object(u.a)((function(t){return Object(i.a)(t)?s.apply(void 0,t):s(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var c=e;e.addEventListener(n,r,o),u=function(){return c.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var s=e;e.on(n,r),u=function(){return s.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(n,r),u=function(){return a.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(u)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(1),o=n(7);function u(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new c(t,e))}}var c=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.a(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function a(t){t.debouncedNext()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(25),i=n(16),o=n(44),u=n(27),c=n(37),s=n(15);function a(t,e){var n=arguments.length>=2;return function(a){return a.pipe(t?Object(i.a)((function(e,n){return t(e,n,a)})):s.a,Object(o.a)(1),n?Object(u.a)(e):Object(c.a)((function(){return new r.a})))}}},function(t,e,n){t.exports=n(82)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var n=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),r=function(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e},i=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function t(n){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var r=e(n);if("undefined"===r);else if("string"===r)""!==n&&this._fromString(n);else if(n instanceof t){var i=this;n.forEach((function(t,e){i.append(e,t)}))}else{if(null===n||"object"!==r)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(n))for(var o=0;o<n.length;o++){var u=n[o];if("[object Array]"!==Object.prototype.toString.call(u)&&2===u.length)throw new TypeError("Expected [string, any] as entry at index "+o+" of URLSearchParams's input");this.append(u[0],u[1])}else for(var c in n)n.hasOwnProperty(c)&&this.append(c,n[c])}},u=o.prototype;u.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},u.delete=function(t){delete this._entries[t]},u.get=function(t){return t in this._entries?this._entries[t][0]:null},u.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},u.has=function(t){return t in this._entries},u.set=function(t,e){this._entries[t]=[String(e)]},u.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)t.call(e,n[i],r,this)}},u.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),r(t)},u.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),r(t)},u.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),r(t)},n&&(u[Symbol.iterator]=u.entries),u.toString=function(){var t=[];return this.forEach((function(e,n){t.push(i(n)+"="+i(e))})),t.join("&")},t.URLSearchParams=o}();var u=t.URLSearchParams.prototype;"function"!=typeof u.sort&&(u.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof u._fromString&&Object.defineProperty(u,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var r,i=document;if(n&&(void 0===t.location||n!==t.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var o=i.createElement("a");o.href=e,r&&(i.body.appendChild(o),o.href=o.href);var u=i.createElement("input");if(u.type="url",u.value=e,":"===o.protocol||!/:/.test(o.href)||!u.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var c=new t.URLSearchParams(this.search),s=!0,a=!0,f=this;["append","delete","set"].forEach((function(t){var e=c[t];c[t]=function(){e.apply(c,arguments),s&&(a=!1,f.search=c.toString(),a=!0)}})),Object.defineProperty(this,"searchParams",{value:c,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,a&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(81))},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"init",(function(){return be}));var i=n(75),o=n(16),u=n(9),c=n(44),s=n(4);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"success",u=window.isTestingTecton?window:t;u.postMessage({tectonic:!0,value:r.withDefault(""),status:o,type:e,protocol:n,guid:i},"*")}function l(t,e){f(window,t,"BROADCAST",e),window.isTestingTecton||Array.prototype.slice.call(document.querySelectorAll("tecton-platform-outlet, tecton-outlet, tecton-tab-pane")).forEach((function(n){var r=n.shadowRoot&&n.shadowRoot.querySelector("iframe");r&&r.contentWindow&&f(r.contentWindow,t,"BROADCAST",e)}))}function h(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e.pipe(Object(o.a)((function(e){return e.data.type===t&&(!r||e.data.guid===r)&&e.data.protocol===n})),Object(u.a)((function(e){return"success"===e.data.status?{status:"success",value:e.data.value&&JSON.parse(e.data.value),sender:e.source,type:t,guid:e.data.guid}:{status:"error",message:e.data.value&&JSON.parse(e.data.value).message,sender:e.source,type:t,guid:e.data.guid}})))}function p(t){if("success"===t.status)return t;throw t}function d(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;f(t,e,"RESPONSE",s.Maybe.maybe(n).map(JSON.stringify),r,i)}function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(u,t);var e,n,r,i=w(u);function u(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=i.call(this)).domains=new Set,n.configSubscription=t.subscribe(n.getConfigDomains.bind(_(n))),n.firehose$=n.firehose$.pipe(Object(o.a)((function(t){return e||n.domains.has(t.origin)}))),n}return e=u,(n=[{key:"teardown",value:function(){this.configSubscription.unsubscribe()}},{key:"getConfigDomains",value:function(t){var e,n=Array(window.location.origin.toString()),r=Object.keys(t.features).map((function(e){var r=t.features[e].additionalDomains;return r&&r.length>0&&(n=n.concat(r)),Object.keys(t.features[e].modules).map((function(n){var r=t.features[e].modules[n].url;try{return new URL(r,window.location.href).origin}catch(t){return""}}))})),i=(e=n).concat.apply(e,v(r));this.domains=function(t){return new Set(t.filter((function(t){return""!==t})))}(i)}}])&&m(e.prototype,n),r&&m(e,r),u}(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messageNum=0,this.firehose$=Object(i.a)(window,"message").pipe(Object(o.a)((function(t){return t.data.tectonic})))}var e,n,r;return e=t,(n=[{key:"onMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MESSAGE",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return h(t,this.firehose$,e,n).pipe(Object(u.a)(p))}},{key:"sendRequest",value:function(t,e,n){var r=this.getNextMessageNumber();f(window.parent,t,"REQUEST",e,r,"success");var i=[];return i.push(this.onMessage(t,"RESPONSE",r).pipe(Object(c.a)(1)).toPromise()),n&&n.timeout&&i.push(new Promise((function(i,o){setTimeout((function(){o({status:"error",message:"The request ".concat(e," has timed out"),sender:window,type:t,guid:r})}),n.timeout)}))),Promise.race(i)}},{key:"sendResponse",value:function(t,e){return this.onMessage(t,"REQUEST").subscribe((function(t){return Promise.resolve().then((function(){if("success"===t.status)return e(t.value,t.sender);throw Error("Don't send Error Message as Request!")})).then((function(e){if(null!==e)return d(t.sender,t.type,e,t.guid,"success")})).catch((function(e){return d(t.sender,t.type,{message:e.message},t.guid,"error")}))}))}},{key:"getNextMessageNumber",value:function(){var t=this.messageNum+1;return this.messageNum=t,t}}])&&a(e.prototype,n),r&&a(e,r),t}());var j=n(59);function E(t,e,n){var r=t.getValue();return s.Maybe.maybe(r.features[e]).map((function(t){var r=Object.keys(t.modules).find((function(e){return t.modules[e].primary})),i=t.modules[n]||t.modules[r],o="".concat(e,".").concat(i.meta.moduleName);return{navigable:!!i.navigable,legacy:!!t.legacy,key:t.legacy?t.legacyRouteName:o}}))}function C(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return{value:t,children:n}}function N(t){return{value:t,children:[]}}var A,I=T("Q2Account",T("Held",T("Deposit",N("Checking"),N("MoneyMarket"),N("Savings"),N("CertificateOfDeposit"),N("Goal"),N("PlanBasedInvestment"),N("IRABasedInvestment"),N("BrokerageBasedInvestment")),T("Loan",N("Installment"),N("Commercial"),N("Mortgage"),N("LineOfCredit"),N("HomeEquity")),T("CreditCard",N("Visa"),N("MasterCard"),N("Discover"),N("AmericanExpress"))),T("External",T("PFM",N("Manual"),N("Aggregated")))),k={};function R(t){var e=t.split("::");if(2!==e.length)return[];var n=e[0];return function t(e,n){var r,i=[],o=C(n);try{for(o.s();!(r=o.n()).done;){var u=r.value;if(e===u.value){i=[u.value];break}if(u.children.length>0){var c=t(e,u.children);if(c.length>0){i=c.concat([u.value]);break}}}}catch(t){o.e(t)}finally{o.f()}return i}(e[1],[k[n]]).map((function(t){return"".concat(n,"::").concat(t)}))}!function(t){t.Account="Account"}(A||(A={})),k[A.Account]=I;var M={Goal:["D","G"]};function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){return(function(t){return!!t.dataType}(e)?function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.split("::"),o=V(i,2),u=o[0],c=o[1],s=q[u][c]||q[u].default,a="string"==typeof s?Promise.resolve(s):s(t);return a.then((function(t){return"".concat(t).concat(n.map((function(t){return"/".concat(t)})).withDefault("")).concat(L(r))}))}(t,e.dataType,s.Maybe.maybe(e.dataId),e.params):Promise.resolve(e.route)).then((function(n){return t.sendRequest(n,e.method,e.body)}))}function L(t){var e=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&");return e&&"?".concat(e)||""}var q={Account:{default:"mobilews/account"},Accounts:{default:"mobilews/accounts"},FormData:{default:"",FundsTransfer:"mobilews/transactionForm/fundsTransfer"},Goals:{Categories:"hq/core/goalsCategoryMapping",CreateGoal:function(t){return function(t,e){var n=V(M[e],2),r=n[0],i=n[1];return U(t,r,i).then((function(t){return"mobilews/account/".concat(t)}))}(t,"Goal")}},FundsTransfer:{Create:"mobilews/transaction/fundsTransfer"},PRIVATE:{systemConfig:"q2Config"}};var B,U=function(t,e,n){return(Array.isArray(B)?Promise.resolve(B):t.sendRequest("hq/core/productAndType","GET").then((function(t){return B=t.response.data}))).then((function(t){return t.find((function(t){return t.hydraProductTypeCode===e&&t.hydraProductCode===n})).productID}))};function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $(t,e,n){return D(t,{dataType:e,dataId:n,method:"GET"}).then((function(t){return function(t,e){var n=W(t.split("::"),1)[0];return z["resolveTypeOf".concat(n)](e)}(e,t.response.data)})).catch((function(){return e}))}var z={resolveTypeOfAccount:function(t){return t.extended?"Account::".concat(Y["".concat(t.extended.hydraProductTypeCode).concat(t.extended.hydraProductCode)]||"Q2Account"):"Account::Q2Account"}},Y={DC:"Checking",DM:"MoneyMarket",DS:"Savings",DT:"CertificateOfDeposit",DG:"Goal",DP:"PlanBasedInvestment",DI:"IRABasedInvestment",DB:"BrokerageBasedInvestment",LL:"LineOfCredit",LI:"Installment",LC:"Commercial",LM:"Mortgage",LH:"HomeEquity",CM:"MasterCard",CV:"Visa",CD:"Discover",CA:"AmericanExpress"};function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).filter((function(e){var n=e.lastIndexOf(".");return e.slice(0,n).startsWith(t)})).reduce((function(t,n){var r=n.lastIndexOf(".");return t[n.substring(r+1)]=e[n],t}),Object.create({}))}function J(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Q(o,r,i,u,c,"next",t)}function c(t){Q(o,r,i,u,c,"throw",t)}u(void 0)}))}}function Z(t,e,n,r,i,o){return function(t,e,n){return s.Maybe.sequence([e,n]).map((function(e){var n=J(e,2),r=n[0],i=n[1];return $(t,r,i).then(s.Maybe.just)})).withDefaultFn((function(){return Promise.resolve(s.Maybe.nothing())}))}(t,r,i).then(function(){var e=X(regeneratorRuntime.mark((function e(n){var r,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tt(t.dynamicConfigFetch,o);case 2:return r=e.sent,i=n.map(R).bind((function(t){return et(r,t)})),u=s.Maybe.maybe(r[0]),e.abrupt("return",n.map((function(){return i})).altMap((function(){return s.Maybe.just(u)})).bind((function(t){return t})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(function(){var t=X(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.map((function(t){var r="".concat(n,".").concat(t.featureName,".").concat(t.moduleName);return{moduleId:r,initialParams:G(r,e.getValue().currentParams),url:t.url,minHeight:t.meta.type.minHeight||"",tabLabelOverride:t.tabLabelOverride,formPostAuth:!!t.formPostAuth,loadingOptions:t.loadingOptions,additionalDomains:t.additionalDomains,allowDirectives:t.allowDirectives}})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}function tt(t,e){return Promise.all(e.map(function(){var e=X(regeneratorRuntime.mark((function e(n){var r,i,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n.featureName);case 2:return r=e.sent,i=r.modules[n.moduleName],o=r.additionalDomains,u=r.allowDirectives,e.abrupt("return",Object.assign(Object.assign(Object.assign({},n),i),{additionalDomains:o,allowDirectives:u}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}function et(t,e){return s.Maybe.maybe(t.find((function(t){return t.meta.type.context===e[0]}))).altMap((function(){return 0===e.length&&s.Maybe.nothing()||et(t,e.slice(1))}))}function nt(t,e){return rt.apply(this,arguments)}function rt(){return(rt=X(regeneratorRuntime.mark((function t(e,n){var r,i,o,u,c,s,a,f,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.length%3==1?"outlet":"module",i=e[0],o=e.length<5,"tectonOverpanel"!==i){t.next=11;break}return u=it({path:e.slice(2),outletModuloVal:2}),t.next=7,n(e[1]);case 7:l=t.sent,c=l.configuredOverpanels[e[2]],t.next=15;break;case 11:return u=it({path:e.slice(3),outletModuloVal:0}),t.next=14,n(e[1],e[2]);case 14:c=t.sent;case 15:if("outlet"!==r){t.next=20;break}return o?(s=c.featureName,a=c.moduleName):(s=e[e.length-3],a=e[e.length-2]),f=e[e.length-1],u=u.slice(0,-2),t.abrupt("return",{pathType:r,featureName:s,moduleName:a,outletName:f,configPath:u,pathOrigin:i,treeFromRoot:c});case 20:return o?(s=c.featureName,a=c.moduleName):(s=e[e.length-2],a=e[e.length-1]),t.abrupt("return",{pathType:r,featureName:s,moduleName:a,configPath:u,pathOrigin:i,treeFromRoot:c});case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(t){var e=t.path,n=t.outletModuloVal,r=n+2;return e.reduce((function(t,e,i){if(i%3===n)return t.concat(["configuredOutlets",e]);if(i%3===r&&2!==i){var o=t[t.length-1];return t[t.length-1]="".concat(o,"-").concat(e),t}return t.concat(e)}),[])}function ot(t,e){return t.reduce((function(t,e){if(Array.isArray(t)){var n=J(e.split("-"),2),r=n[0],i=n[1];return t[0].hasOwnProperty("tabLabel")||t[0].hasOwnProperty("menuItemLabel")?ut(t,ct(r,i)):t.find(ct(r,i))}return t[e]}),e)}function ut(t,e){var n=-1,r=t.find((function(t){return-1!==(n=t.modules.findIndex(e))}));if(r)return r.modules[n]}function ct(t,e){return function(n){return n.featureName===t&&n.moduleName===e}}function st(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function at(t,e,n,r,i){if(n.navigateTo){r.add("navigateTo");var o=t.onMessage("navigateTo").subscribe(function(){var t,r=(t=regeneratorRuntime.mark((function t(r){var i,o,u,c,s,a,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.value,o=i.moduleName,u=i.urlParams,c=i.queryParams,s=i.moduleId,(a=r.value.featureName)||!s){t.next=6;break}return t.next=5,nt(s.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 5:a=t.sent;case 6:(f=E(e,a,o)).map((function(t){if(t.navigable)if(t.legacy)n.navigateTo(!0,t.key,u,c);else{var r=e.getValue().features[a],i="tectonRoute.".concat(t.key);c&&n.updateParams&&n.updateParams(i,c,r.modules[t.key.split(".")[1]].meta.params),n.navigateTo(!1,t.key)}})),f.hasNothing&&n.navigateTo(!0,a,u,c);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){st(o,r,i,u,c,"next",t)}function c(t){st(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return r.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function ft(t,e){if(void 0===t)return!0;if(void 0===e)throw new Error("params for action are not configured, yet ".concat(JSON.stringify(t)," was passed to action"));var n=[];if(Object.keys(t).forEach((function(t){e[t]||n.push(t)})),n.length>0)throw new Error("The following parameter(s) passed to action is/are not configured for the action: [".concat(n.join(", "),"]"));return!0}function lt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function ht(t,e,n,r,i){if(n.showOverpanel){r.add("showOverpanel");var o=t.sendResponse("showOverpanel",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.moduleId.split("."),n.dynamicConfigFetch);case 2:return i=t.sent,t.next=5,n.dynamicConfigFetch(i.featureName).then((function(t){return t.configuredOverpanels[e.overpanelPath]}));case 5:return o=t.sent,u="".concat(i.featureName,".").concat(e.overpanelPath),t.next=9,n.dynamicConfigFetch(o.featureName).then((function(t){return t.modules[o.moduleName].meta.params}));case 9:return c=t.sent,e.params&&n.updateParams&&ft(e.params,c)&&n.updateParams("tectonOverpanel.".concat(u),e.params,c),t.abrupt("return",n.showOverpanel(u,!!(null===(r=e.options)||void 0===r?void 0:r.fullWidth)||!1));case 12:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){lt(o,r,i,u,c,"next",t)}function c(t){lt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function pt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function dt(t,e,n,r,i){if(e.setOverpanelTitle||e.setPageTitle){e.setOverpanelTitle&&r.add("setOverpanelTitle"),e.setPageTitle&&r.add("setPageTitle");var o=t.onMessage("setTitle").subscribe(function(){var t,n=(t=regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(n.value.moduleId.split("."),e.dynamicConfigFetch).then((function(t){return t.pathOrigin}));case 2:"tectonOverpanel"===t.sent&&e.setOverpanelTitle?e.setOverpanelTitle(n.value.title):e.setPageTitle&&e.setPageTitle(n.value.title);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){pt(o,r,i,u,c,"next",t)}function c(t){pt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function bt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function vt(t,e,n,r,i){if(n.updateParams){r.add("setParams");var o=t.onMessage("setParams").subscribe(function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.value,i=r.moduleId,o=r.params,t.next=3,nt(i.split("."),n.dynamicConfigFetch);case 3:return u=t.sent,t.next=6,n.dynamicConfigFetch(u.featureName).then((function(t){return t.modules[u.moduleName].meta.params}));case 6:c=t.sent,n.updateParams(i,o,c);case 8:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){bt(o,r,i,u,c,"next",t)}function c(t){bt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function yt(t,e){return t.reduce((function(t,n){return n in e?Object.assign(Object.assign({},t),function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,e[n])):t}),{})}function mt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function gt(t,e,n,r,i){if(n.logToServer){r.add("logToServer");var o=t.onMessage("logToServer").subscribe(function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.value.moduleId.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:r=t.sent,n.logToServer(r,e.value.message,e.value.level||"info");case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){mt(o,r,i,u,c,"next",t)}function c(t){mt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function wt(t,e,n,r,i){ht(t,0,n,r,i),function(t,e,n,r){if(e.closeOverpanel){n.add("closeOverpanel");var i=t.onMessage("closeOverpanel").pipe(Object(u.a)((function(t){return t.value}))).subscribe(e.closeOverpanel);r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),at(t,e,n,r,i),dt(t,n,0,r,i),vt(t,0,n,r,i),function(t,e,n,r){if(e.clearParams){n.add("clearParams");var i=t.onMessage("clearParams").subscribe((function(t){e.clearParams(t.value.moduleId)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.refetchAccountsNotification&&e.clearCacheByPrefix&&e.clearTransferCache){n.add("refetchAccountsNotification");var i=t.onMessage("refetchAccountsNotification").subscribe((function(){e.clearCacheByPrefix("mobilews/account"),e.clearTransferCache(),e.refetchAccountsNotification()}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){var i=e.getCurrentLanguage(),o=new j.a(i);e.languageChanged&&(n.add("languageChanged"),e.languageChanged((function(t){o.next(t)})));var u=o.subscribe((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US";l("streamLanguage",s.Maybe.just(JSON.stringify({langKey:t})))})),c=t.sendResponse("getCurrentLanguage",(function(){return Promise.resolve({langKey:o.getValue()})}));r.push((function(){[u,c].forEach((function(t){return t.unsubscribe()}))}))}(t,n,r,i),function(t,e,n,r){if(e.sendAlert){n.add("sendAlert");var i=t.onMessage("sendAlert").subscribe((function(t){var n=yt(["msg","message","styleType","closable","durationInMs","onClickNavigation"],t.value);e.sendAlert(n)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.showModal){n.add("sendModal");var i=t.sendResponse("sendModal",(function(t){return e.showModal(t).then((function(t){return{actionName:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.showLoadingModal){n.add("showLoadingModal");var i=t.onMessage("showLoadingModal").subscribe((function(t){e.showLoadingModal(t.value.title)}));r.push((function(){return i.unsubscribe()}))}if(e.clearLoadingModal){n.add("clearLoadingModal");var o=t.onMessage("clearLoadingModal").subscribe((function(){e.clearLoadingModal()}));r.push((function(){return o.unsubscribe()}))}}(t,n,r,i),function(t,e){var n=t.onMessage("printWindow").subscribe((function(){document.body.focus(),window.print()}));e.push((function(){return n.unsubscribe()}))}(t,i),function(t,e,n,r){if(e.keepAlive){n.add("keepAlive");var i=t.onMessage("keepAlive").subscribe(e.keepAlive);r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),gt(t,0,n,r,i),function(t,e,n,r){if(e.openURL){n.add("openURL");var i=t.onMessage("openURL").subscribe((function(t){var n=t.value,r=n.url,i=n.options;e.openURL(r,i)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n){e.add("scrollToTop");var r=t.onMessage("scrollToTop").subscribe((function(){window.scrollTo(0,0)}));n.push((function(){return r.unsubscribe()}))}(t,r,i),function(t,e,n,r){if(e.clearCacheByPrefix){n.add("clearCache"),n.add("cacheCleared");var i=t.sendResponse("clearCache",(function(t){return t.routePrefixes.forEach((function(t){e.clearCacheByPrefix(t),l("cacheCleared",s.Maybe.just(JSON.stringify({cleared:t})))})),Promise.resolve()}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.manageChanges){n.add("manageChanges");var i=t.sendResponse("manageChanges",(function(t){return e.manageChanges(t.verb,t.changes)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("actionRequired");var i=t.onMessage("actionRequired").subscribe((function(t){e.actionRequired(t.value.uuid,t.value.title,t.value.message)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("removeActionRequired");var i=t.onMessage("removeActionRequired").subscribe((function(t){e.removeActionRequired(t.value.uuid)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i)}function xt(t){return function(t){if(Array.isArray(t))return _t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _t(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function St(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Ot(t,e,n,r,i){if(n.getFeatureConfig){r.add("getFeatureConfig");var o=t.sendResponse("getFeatureConfig",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.moduleId,t.next=3,nt(r.split("."),n.dynamicConfigFetch);case 3:return i=t.sent,t.next=6,n.dynamicConfigFetch(i.featureName).then((function(t){return t.configuredSystemVariables||[]}));case 6:if((o=t.sent).length){t.next=9;break}return t.abrupt("return",Promise.resolve({config:{}}));case 9:return t.abrupt("return",n.getFeatureConfig(o).then((function(t){return{config:t}})));case 10:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){St(o,r,i,u,c,"next",t)}function c(t){St(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function jt(){return window.scrollY}function Et(){return window.innerHeight}function Ct(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Pt(t,e,n,r){if(e.promptForMFA){n.add("promptForMFA");var i=t.sendResponse("promptForMFA",function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(n.moduleId.split("."),e.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:return r=t.sent,t.abrupt("return",e.promptForMFA(r,n));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Ct(o,r,i,u,c,"next",t)}function c(t){Ct(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}}function Tt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Nt(t,e,n,r,i){if("function"==typeof n.requestExtensionData){r.add("requestExtensionData");var o=t.sendResponse("requestExtensionData",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.moduleId.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:return r=t.sent,t.abrupt("return",n.requestExtensionData(r,{route:e.route,body:e.body||{}}));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Tt(o,r,i,u,c,"next",t)}function c(t){Tt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function At(t,e){var n=t.subscribe((function(t){var e;(e=Object.assign(Object.assign({},t.changedParams),t.currentParams),Object.keys(e).reduce((function(t,e){var n=e.split(".").slice(0,-1).join(".");return-1===t.indexOf(n)&&t.push(n),t}),[])).forEach((function(e){var n=G(e,t.changedParams),r=G(e,t.currentParams);l("streamParams::"+e,s.Maybe.just(JSON.stringify({changedParams:n,currentParams:r})))}))}));e.push((function(){return n.unsubscribe()}))}function It(t,e,n,r,i,o){!function(t,e,n,r){e.refetchRequired&&(n.add("cacheCleared"),e.refetchRequired((function(t){l("cacheCleared",s.Maybe.just(JSON.stringify({cleared:t})))})))}(0,e,i),function(t,e,n,r){if(e.getCapabilities){n.add("canUser");var i=t.sendResponse("canUser",(function(t){var n=t.capabilities;return Promise.resolve({allowed:Object.values(e.getCapabilities.apply(e,xt(n))).every(Boolean)})}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),Ot(t,0,e,i,o),function(t,e,n,r){if(e.getPendoInfo){n.add("getPendoInfo");var i=t.sendResponse("getPendoInfo",(function(){return Promise.resolve(e.getPendoInfo())}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getPlatformInfo){n.add("platformInfo");var i=t.sendResponse("platformInfo",(function(t){return e.getPlatformInfo(t)}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getVersionInfo){n.add("getPlatformInfo");var i=t.sendResponse("getPlatformInfo",(function(){var t=e.getVersionInfo();return Promise.resolve(Object.assign(Object.assign({},t),{TECTON_PLATFORM_VERSION:"1.4.3"}))}));r.push((function(){i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getAuthToken){n.add("authToken");var i=t.sendResponse("authToken",(function(){return e.getAuthToken()}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getGlobalScripts){n.add("getGlobalScripts");var i=t.sendResponse("getGlobalScripts",(function(){return e.getGlobalScripts()}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r,i){if(n.isUUXPath&&n.navigateTo){r.add("isNavigable");var o=t.sendResponse("isNavigable",(function(t){var r=t.featureName,i=t.moduleName,o=E(e,r,i).map((function(t){return t.navigable})).withDefaultFn((function(){return n.isUUXPath(r)}));return Promise.resolve({navigable:o})}));i.push((function(){return o.unsubscribe()}))}}(t,r,e,i,o),function(t,e,n){function r(){l("platformScrollChanged",s.Maybe.just(JSON.stringify({scrollY:jt(),innerHeight:Et()})))}e.add("platformScrollChanged"),window.addEventListener("scroll",r);var i=t.sendResponse("getPlatformScroll",(function(){return Promise.resolve({scrollY:jt(),innerHeight:Et()})}));n.push((function(){i.unsubscribe(),window.removeEventListener("scroll",r)}))}(t,i,o),Pt(t,e,i,o),function(t,e,n,r){e.refetchRequired&&(n.add("refetchRequired"),e.refetchRequired((function(t){l("refetchRequired::".concat(t),s.Maybe.nothing())})))}(0,e,i),Nt(t,0,e,i,o),function(t,e,n,r){if(e.sendRequest){n.add("requestPlatformData"),n.add("requestPlatformData-v2");var i=t.sendResponse("requestPlatformData",(function(t){return D(e,t).then((function(e){return 200<=e.status&&e.status<300?{data:"GET"===t.method?e.response.data:e.response,status:"success"}:{data:{message:e.statusText},status:"error"}}))})),o=t.sendResponse("requestPlatformData-v2",(function(t){return D(e,t)}));r.push((function(){i.unsubscribe(),o.unsubscribe()}))}}(t,e,i,o),At(n,o),function(t,e,n,r){if(e.takePicture){n.add("takePicture");var i=t.sendResponse("takePicture",(function(t){var n=t.overlayText,r=t.helpText;return e.takePicture({overlayText:n,helpText:r}).then((function(t){return{picture:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o)}var kt=n(74),Rt=n(64),Mt=n(67),Vt=n(77),Ft=n(76);function Dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||qt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(t){return function(t){if(Array.isArray(t))return Bt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||qt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){if(t){if("string"==typeof t)return Bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(t,e):void 0}}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ut=[{name:"name",reflectAs:String},{name:"minHeight",reflectAs:String},{name:"overpanel",reflectAs:Boolean}];var Wt=Object(kt.createSetupElement)((function(t,e){var n=e.messageBus,r=e.props,i=e.moduleId,c=e.tectonOutletAdaptor,s=e.resize;return Object(kt.generateCustomElementWrapper)(t,(function(t,e){var r=new j.a(document.createElement("div")),a=new j.a(!1),f=e.pipe(Object(u.a)((function(t){return t.name})),Object(o.a)((function(t){return!!t})),Object(u.a)((function(t){var e=i?"".concat(i,"."):"";return"".concat(e).concat(t)})),Object(Mt.a)(),Object(Vt.a)()).subscribe((function(i){var o=c(n,i,t,e,s),u=o.DOM$.subscribe(r),f=o.settled$.subscribe(a),h=o.teardown$.subscribe(l),p=o.effect$.subscribe((function(e){t.__attached?e():t.__onAttached.push(e)}));o.teardown$.next((function(){u.unsubscribe(),f.unsubscribe(),h.unsubscribe(),p.unsubscribe()}))})),l=new j.a((function(){f.unsubscribe()}));return{DOM$:r,settled$:a,teardown$:l}}),{useShadowDOM:!0,props:Ut.concat(r),css:"\n .root {\n height: 100%;\n width: 100%;\n }\n .outlet-wrapper.scrollable {\n height: 100%;\n }\n .outlet-wrapper .loading-wrapper {\n height: 44px;\n width: 100%;\n align-items: center;\n justify-content: center;\n }\n .outlet-wrapper .loading-wrapper:not([hidden]) {\n display: flex;\n }\n .outlet-wrapper.scrollable .loading-wrapper,\n .outlet-wrapper.scrollable iframe {\n height: 100%;\n }\n .outlet-wrapper iframe {\n width: 100%;\n height: auto;\n border: none;\n }\n .outlet-wrapper iframe:not([hidden]) {\n display: inline-block;\n }\n "})}));function Ht(t,e,n,r,i,o,u,c,s,a){var f=document.createElement("div");f.className="outlet-wrapper";var l=document.createElement("slot");l.name="loading-wrapper";var h=[],p=document.createElement("iframe");if(c){var d=document.createElement("form");n.forEach((function(t){var e=document.createElement("input");e.name=t.key,e.setAttribute("value",t.value),d.appendChild(e)})),d.hidden=!0,d.method="post",d.action=t,d.target=e,d.enctype="multipart/form-data",p.name=e,f.appendChild(d),h.push((function(){d.submit(),f.removeChild(d)}))}else p.src=t;p.title=r,p.dataset.moduleId=e,p.style.maxHeight=i,p.style.maxWidth=o,p.allow=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["geolocation","camera"],n=arguments.length>2?arguments[2]:void 0,r=new URL(n),i=["'self'","".concat(r.origin)];t&&t.length>0&&(i=[].concat(Lt(i),Lt(t)));return e.reduce((function(t,e){return t+"".concat(e," ").concat(i.join(" "),"; ")}),"")}(s,a,t),f.appendChild(p);return h.push((function(){p.contentWindow&&p.contentWindow.postMessage("".concat("[iFrameSizer]").concat(e,":0:false:false:32:true:true:null:documentElementOffset"),"*")})),p.onload=function(){h.forEach((function(t){t()})),p.onload=function(){}},u?f.classList.add("scrollable"):(p.style.setProperty("overflow-y","hidden"),p.scrolling="no"),p.hidden=!0,f.appendChild(l),f}function $t(t){var e=[];if(t&&t.loaders){for(var n=t.loaders.reduce((function(t,e){return e.row>t?e.row:t}),0),r=0;r<n;r++)e.push([]);var i,o=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=qt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}(t.loaders);try{for(o.s();!(i=o.n()).done;){var u,c=i.value,s=document.createElement("q2-loading");s.setAttribute("shape",c.shape),s.setAttribute("type",c.type),s.className="q2-col",c.classList&&(u=s.classList).add.apply(u,Lt(c.classList)),c.style&&s.setAttribute("style",c.style),c.modifiers&&s.setAttribute("modifiers",c.modifiers),c.counts&&s.setAttribute("counts",c.counts),c.ariaLabel&&s.setAttribute("ariaLabel",c.ariaLabel),e[c.row-1].push(s)}}catch(t){o.e(t)}finally{o.f()}}else{var a=document.createElement("q2-loading");e.push([]),a.classList.add("mrg(a)"),e[0].push(a)}return e}var zt=n(48);function Yt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=Kt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function Gt(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Kt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||Kt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(t,e){if(t){if("string"==typeof t)return Qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(t,e):void 0}}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xt=[{name:"routeName"},{name:"configTree"}];function Zt(t,e,n,r){return function(c,a,l,h){var p,d=document.createElement("div"),b=new j.a(d),v=new j.a(!1),y=new j.a((function(){})),m=function(){return{loaderWrapper:l.shadowRoot.host.querySelector("div[slot='loading-wrapper']"),iframeEl:l.shadowRoot.querySelector("iframe"),minHeight:h.getValue().minHeight}},g=function(){return p},w=function(t,e,n){return t.onMessage("setFetching").pipe(Object(o.a)((function(t){return t.value.moduleId===e()}))).subscribe((function(t){var e=n(),r=e.loaderWrapper,i=e.iframeEl,o=e.minHeight,u=void 0===o?"0px":o;if(r&&i){var c=t.value.fetching;r.hidden=!c,i.hidden=c,r.style.minHeight=c?u:"0px"}}))}(c,g,m),x=function(t,e,n){return t.sendResponse("requestOutletInfo",(function(t){if(t.moduleId!==e())return null;var r=n().iframeEl;return Promise.resolve(r.getBoundingClientRect())}))}(c,g,m),_=new j.a((function(){w.unsubscribe(),x.unsubscribe()})),S=h.pipe(Object(u.a)((function(t){return t.configTree})),Object(o.a)((function(t){return!!t})),Object(Mt.a)()),O=new j.a(!1),E=h.pipe(Object(u.a)((function(t){return t.overpanel})),Object(o.a)((function(t){return"boolean"==typeof t})),Object(Mt.a)()).subscribe(O),C=h.pipe(Object(u.a)((function(t){return t.routeName})),Object(o.a)((function(t){return!!t})),Object(Mt.a)()),P=Object(zt.b)(S,O,C).subscribe((function(d){var w=Jt(d,3),x=w[0],S=w[1],O=w[2];p="".concat(a,".").concat(O);var j,C,T,N,A,I=t.getValue(),k=h.getValue().minHeight,R=I.features[x.featureName],M=I.features[x.featureName].modules[x.moduleName],V=!!R.modules[x.moduleName].formPostAuth,F=R.modules[x.moduleName].url,D=R.additionalDomains,L=R.allowDirectives,q=V&&r?r(F):F,B=(j=q,C=Object.assign(Object.assign({"tct-id":p},G(p,e.getValue().currentParams)),{"tct-maxHeight":l.style.maxHeight,"tct-maxWidth":l.style.maxWidth}),T=new URL(j,window.location.toString()),N=Object.keys(C).map((function(t){return"".concat(t,"=").concat(C[t])})).join("&"),A=T.search?"".concat(T.search,"&").concat(N):"?".concat(N),T.search=A,T.href);if(!S){var U=function(t,e,n,r){var c=Object(i.a)(window,"message").pipe(Object(o.a)((function(t){return"string"==typeof t.data&&t.data.includes("iFrameSizer")})),Object(u.a)((function(t){var e=Dt(t.data.substr("[iFrameSizer]".length).split(":"),2);return{value:{moduleId:e[0],height:e[1]}}}))),s=t.onMessage("resizeIframe");return Object(Rt.a)(c,s).pipe(Object(o.a)((function(t){return t.value.moduleId===e()})),Object(Mt.a)((function(t,e){return t.value.height===e.value.height})),Object(Ft.a)(5)).subscribe((function(t){var e=t.value.height,i=n().iframeEl;i&&(i.style.setProperty("height","".concat(e,"px")),r&&r())}))}(c,g,m);_.next((function(){U.unsubscribe()}))}var W=function(t,e,n){return t.onMessage("setTitle").pipe(Object(o.a)((function(t){return t.value.moduleId===e()}))).subscribe((function(t){n().iframeEl.title=t.value.title}))}(c,g,m);_.next((function(){W.unsubscribe()}));var H=Ht(B,p,n?n():[],"".concat(x.featureName,"-").concat(x.moduleName),l.style.maxHeight,l.style.maxWidth,S,V,D,L),$=document.createElement("div");$.style.minHeight=k||"0px";var z=[];if(M.loadingOptions){if(z=$t(M.loadingOptions),M.loadingOptions.outlet){var Y,J=M.loadingOptions.outlet;J.style&&$.setAttribute("style",J.style),J.classList&&(Y=$.classList).add.apply(Y,Gt(J.classList))}}else z=$t();var K,Q=Yt(z);try{for(Q.s();!(K=Q.n()).done;){var X=K.value,Z=document.createElement("div");Z.className="q2-row";var tt,et=Yt(X);try{for(et.s();!(tt=et.n()).done;){var nt=tt.value;Z.appendChild(nt)}}catch(t){et.e(t)}finally{et.f()}$.appendChild(Z)}}catch(t){Q.e(t)}finally{Q.f()}$.slot="loading-wrapper",$.setAttribute("data-tecton-module",""),b.next(H),y.next((function(){l.firstChild?l.replaceChild($,l.firstChild):l.appendChild($),v.next(!0)})),_.next((function(){var t,e;E.unsubscribe(),P.unsubscribe(),t="clearParams",e=s.Maybe.just(JSON.stringify({moduleId:p})),f(window.parent,t,"MESSAGE",e)}))}));return{DOM$:b,settled$:v,teardown$:_,effect$:y}}}function te(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}var ee="".concat(window.location.origin).concat(window.location.pathname.replace(/\/uux\.aspx/i,""));function ne(t,e,n,r,i){var o,u=t.sendResponse("getCustomerAssetPath",(function(t){var e=t.subPath;return Promise.resolve({path:re(n.getCustomerSpecificAssetPath(e))})}));n.getCustomLanguageURL&&(e.add("getCustomLanguageURL"),o=t.sendResponse("getCustomLanguageURL",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.moduleId,i=e.langKey,t.next=3,nt(r.split("."),n.dynamicConfigFetch);case 3:return o=t.sent,t.abrupt("return",Promise.resolve({path:re(n.getCustomLanguageURL("".concat(i,"_").concat(o.featureName,".json")))}));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){te(o,r,i,u,c,"next",t)}function c(t){te(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}()));var c=t.sendResponse("getBaseAssetPath",(function(t){var e=t.subPath;return Promise.resolve({path:re(n.getBaseAssetPath(e))})})),s=t.sendResponse("getNgamBaseUrl",(function(){return Promise.resolve({ngamBase:ee})}));i.push((function(){u.unsubscribe(),c.unsubscribe(),s.unsubscribe(),o&&o.unsubscribe()}))}function re(t){return/^http/.test(t)?t:"".concat(window.location.origin,"/").concat(t)}function ie(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function oe(t,e,n,r,i){var o=e.sendResponse("resolveTabs",function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var i,o,u,c,a,f,l,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),u=t.dynamicConfigFetch(i.featureName),e.next=7,u;case 7:return c=e.sent,e.next=10,u.then((function(t){return t.modules[i.moduleName]}));case 10:return a=e.sent,f=a.meta.outlets[i.outletName],l="None"===f.context?s.Maybe.nothing():s.Maybe.just(f.context),h=n.contextValue?s.Maybe.just(n.contextValue):s.Maybe.nothing(),p=o.configuredOutlets[i.outletName],e.abrupt("return",ue(t,r,n.outletPath,l,h,p,c.additionalDomains,c.allowDirectives).then((function(t){return{resolvedTabs:t}})));case 16:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function u(t){ie(o,r,i,u,c,"next",t)}function c(t){ie(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}function ue(t,e,n,r,i,o,u,c){return Promise.all(o.map((function(o){return Z(t,e,n,r,i,o.modules||[]).then((function(t){return t.map((function(t){return{tabLabel:o.tabLabel,tab:t}}))})).catch((function(){return s.Maybe.nothing()}))}))).then((function(t){return s.Maybe.filterSomethings(t)})).then((function(t){return t.map((function(t){return{tabLabel:t.tabLabel,tabLabelOverride:t.tab.tabLabelOverride,moduleId:t.tab.moduleId,initialParams:t.tab.initialParams,url:t.tab.url,minHeight:t.tab.minHeight,formPostAuth:t.tab.formPostAuth,loadingOptions:t.tab.loadingOptions,additionalDomains:u,allowDirectives:c}}))}))}function ce(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function se(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){ce(o,r,i,u,c,"next",t)}function c(t){ce(o,r,i,u,c,"throw",t)}u(void 0)}))}}function ae(t,e,n,r,i,o){return Promise.all(o.map((function(o){return Z(t,e,n,r,i,o.modules||[]).then((function(e){return e.asyncMap(function(){var e=se(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.moduleId.split("."),t.dynamicConfigFetch);case 2:return r=e.sent,e.abrupt("return",{itemLabel:o.itemLabel,action:o.action,featureName:r.featureName,moduleName:r.moduleName});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})).then(s.Maybe.just).catch((function(){return s.Maybe.nothing()}))}))).then((function(t){return s.Maybe.filterSomethings(t)}))}function fe(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function le(t,e,n,r){if(e.showOverpanel){n.add("navigateToOverpanel");var i=t.sendResponse("navigateToOverpanel",function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dynamicConfigFetch(n.featureName).then((function(t){return t.modules[n.moduleName].meta.params}));case 2:return i=t.sent,n.params&&e.updateParams&&ft(n.params,i)&&e.updateParams("tectonOverpanel.".concat(n.featureName,".").concat(n.moduleName),n.params,i),t.abrupt("return",e.showOverpanel(n.featureName,n.moduleName,!!(null===(r=n.options)||void 0===r?void 0:r.fullWidth)||!1));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){fe(o,r,i,u,c,"next",t)}function c(t){fe(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}}function he(t,e,n,r,i,o){!function(t,e,n){var r=t.sendResponse("getValueType",(function(t){return $(e,t.baseContext,t.valueId)}));n.push((function(){return r.unsubscribe()}))}(t,e,o),function(t,e,n){var r=t.sendResponse("getInitialParams",(function(t){return Promise.resolve({params:G(t.moduleId,e.getValue().currentParams)})}));n.push((function(){return r.unsubscribe()}))}(t,n,o),ne(t,i,e,0,o),function(t,e,n,r,i){var o=e.sendResponse("resolveFeature",function(){var e=X(regeneratorRuntime.mark((function e(n){var i,o,u,c,a,f,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),e.next=6,t.dynamicConfigFetch(i.featureName);case 6:return u=e.sent,c=u.modules[i.moduleName].meta.outlets[i.outletName],a="None"===c.context?s.Maybe.nothing():s.Maybe.just(c.context),f=n.contextValue?s.Maybe.just(n.contextValue):s.Maybe.nothing(),l=o.configuredOutlets[i.outletName],e.abrupt("return",Z(t,r,n.outletPath,a,f,l).then((function(t){return t.withDefault({moduleId:"",initialParams:{},url:"",minHeight:"",formPostAuth:!1,loadingOptions:{loaders:[{type:"spinner",shape:"half-circle",row:1}]}})})));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}(e,t,0,n,o),oe(e,t,0,n,o),function(t,e,n,r){var i=e.sendResponse("resolveMenu",function(){var e=se(regeneratorRuntime.mark((function e(r){var i,o,u,c,a,f,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(r.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),e.next=6,t.dynamicConfigFetch(i.featureName).then((function(t){return t.modules[i.moduleName]}));case 6:if(u=e.sent,c=u.meta.outlets[i.outletName]){e.next=10;break}throw new Error("".concat(i.outletName," outlet not found in config"));case 10:return a="None"===c.context?s.Maybe.nothing():s.Maybe.just(c.context),f=r.contextValue?s.Maybe.just(r.contextValue):s.Maybe.nothing(),l=o.configuredOutlets[i.outletName],e.abrupt("return",ae(t,n,r.outletPath,a,f,l).then((function(t){return{resolvedMenuItems:t}})));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}(e,t,n,o),le(t,e,i,o),function(t,e,n){var r=t.sendResponse("getPlatformCapabilities",(function(){var t=Array.from(e);return Promise.resolve({capabilities:t})}));n.push((function(){return r.unsubscribe()}))}(t,i,o),function(t,e,n){var r=t.sendResponse("getAuthPayload",(function(){return Promise.resolve(e.getAuthPayload())}));n.push((function(){return r.unsubscribe()}))}(t,e,o),function(t,e,n,r){if(e.cdnOverride){n.add("cdnOverride");var i=t.sendResponse("cdnOverride",(function(){return e.cdnOverride().then((function(t){return{path:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o)}n(80);function pe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function be(t,e){var n,i=new j.a({changedParams:{},currentParams:{}});ve(t),window.isTestingTecton?((n=window.tectonConfig$||new j.a(null)).next(t),window.tectonConfig$=n):n=new j.a(t);var o=new O(n,window.isTestingTecton),u=new Set,c=[o.teardown.bind(o)];return function(t){t.add("resizeIframe"),t.add("requestOutletInfo")}(u),function(t,e,n,r){if(e.setupDynamicPlatformAPI){e.setupDynamicPlatformAPI().forEach((function(t){return n.add(t)}));var i=t.sendResponse("executeDynamicPlatformAPI",(function(t){var n=t.functionName,r=t.args;return e.executeDynamicPlatformAPI(n,r)}));r.push((function(){return i.unsubscribe()}))}}(o,e,u,c),wt(o,n,e,u,c),It(o,e,i,n,u,c),function(t,e,n,r){if(e.getCurrentTheme){n.add("getCurrentTheme");var i=new j.a({path:re(e.getCustomerSpecificAssetPath("".concat(e.getCurrentTheme(),"-props.css")))});e.themeChanged&&(n.add("themeChanged"),e.themeChanged((function(t){i.next({path:re(e.getCustomerSpecificAssetPath("".concat(t,"-props.css")))})})));var o=i.subscribe((function(t){l("themeChanged",s.Maybe.maybe(t).map(JSON.stringify))})),u=t.sendResponse("getCurrentTheme",(function(){return Promise.resolve(i.getValue())}));r.push((function(){o.unsubscribe(),u.unsubscribe()}))}else n.add("ThemesNotSupported")}(o,e,u,c),he(o,e,i,0,u,c),function(t,e,n,r,i){Wt({messageBus:t,moduleId:"",props:Xt,tectonOutletAdaptor:Zt(e,n,r,i)})("tecton-platform-outlet")}(o,n,i,e.getAuthPayload,e.buildIframeURL),{tectonParamsChanged:function(t){i.next(t)},updateConfig:function(t){var e=n.getValue();!function t(e,n){Object.keys(n).forEach((function(i){if(!Array.isArray(n[i])&&!Array.isArray(e[i])&&e.hasOwnProperty(i)&&"object"===r(n[i]))return t(e[i],n[i]);e[i]=n[i]}))}(e,t),ve(e),n.next(e)},replaceConfig:function(t){ve(t),n.next(t)},configLookup:function(t,e){var r=n.getValue();if(!e){var i=r.features[t];if(!i)throw new Error("No FeatureManifest Found");return i}return r.features[t].modules[e].routeConfig||{featureName:t,moduleName:e}},configForRoute:function(t){var e=pe(t.split("."),2),r=e[0],i=e[1];return n.getValue().features[r].modules[i].routeConfig||{featureName:r,moduleName:i}},configForOverpanel:function(n,r){if(r)return e.dynamicConfigFetch(n,r);var i=pe(n.split("."),2),o=i[0],u=i[1];return Promise.resolve(t.features[o].configuredOverpanels[u])},teardown:function(){c.forEach((function(t){return t()}))}}}function ve(t){Object.keys(t.features).forEach((function(e){var n=t.features[e],r=n.configuredOverpanels;r&&Object.keys(r).forEach((function(t){r[t].featureName||(r[t].featureName=e)})),Object.keys(n.modules).forEach((function(t){n.modules[t].routeConfig||(n.modules[t].routeConfig={featureName:e,moduleName:t,configuredOutlets:{}}),Object.assign(n.modules[t].meta,{featureName:e,moduleName:t});var r=n.modules[t].url;r&&(r=(r=r.replace("{featureName}",e)).replace("{moduleName}",t),n.modules[t].url=r)}))}))}}])}));
|
|
16
|
+
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(0),i=n(24),o=n(55),u=n(5),c=n(41),s=n(14),a=n(35);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=function(t){function e(n,r,i){var u=t.call(this)||this;switch(u.syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=o.a;break;case 1:if(!n){u.destination=o.a;break}if("object"===f(n)){n instanceof e?(u.syncErrorThrowable=n.syncErrorThrowable,u.destination=n,n.add(u)):(u.syncErrorThrowable=!0,u.destination=new h(u,n));break}default:u.syncErrorThrowable=!0,u.destination=new h(u,n,r,i)}return u}return r.a(e,t),e.prototype[c.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(u.a),h=function(t){function e(e,n,r,u){var c,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Object(i.a)(n)?c=n:n&&(c=n.next,r=n.error,u=n.complete,n!==o.a&&(a=Object.create(n),Object(i.a)(a.unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=c,s._error=r,s._complete=u,s}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(a.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(a.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw t;Object(a.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(a.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a}));var r=n(0),i=n(1),o=n(3),u=n(34),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),s=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));i.a;function a(t,e){if(!e.closed)return t instanceof o.a?t.subscribe(e):Object(u.a)(t)(e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(53),i=n(1),o=n(41),u=n(55);var c=n(21),s=n(39),a=n(14),f=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,c=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(u.a)}(t,e,n);if(r?c.add(r.call(c,this.source)):c.add(this.source||a.a.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),a.a.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[c.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:Object(s.b)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=a.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}n.r(e),n.d(e,"Maybe",(function(){return i}));var i=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e}var e,n,i;return e=t,i=[{key:"just",value:function(e){if(null==e)throw new TypeError("Value passed to just must exist!");return new t(e)}},{key:"nothing",value:function(){return new t}},{key:"maybe",value:function(e){return null==e?t.nothing():t.just(e)}},{key:"join",value:function(e){return e.withDefault(t.nothing())}},{key:"sequence",value:function(e){return e.reduce((function(t,e){return t.bind((function(t){return e.map((function(e){return t.concat(e)}))}))}),t.just([]))}},{key:"traverse",value:function(e,n){return t.sequence(n).map((function(t){return t.map(e)}))}},{key:"justMap",value:function(t,e){return e.reduce((function(e,n){var r=t(n);return void 0!==r.value?e.concat(r.value):e}),[])}},{key:"filterSomethings",value:function(t){return t.reduce((function(t,e){return e.value&&t.push(e.value),t}),[])}},{key:"lift",value:function(t){return function(e){return e.map(t)}}},{key:"lift2",value:function(e){return function(n,r){return t.sequence([n,r]).map((function(t){return e(t[0],t[1])}))}}},{key:"lift3",value:function(e){return function(n,r,i){return t.sequence([n,r,i]).map((function(t){return e(t[0],t[1],t[2])}))}}},{key:"toPromise",value:function(t){return t.hasSomething?Promise.resolve(t.value):Promise.reject()}}],(n=[{key:"map",value:function(e){return void 0!==this.value?t.maybe(e(this.value)):t.nothing()}},{key:"asyncMap",value:function(t){return void 0!==this.value?t(this.value).then((function(t){if(null==t)throw"Promise Conversion from a Maybe.Nothing";return t})):Promise.reject()}},{key:"alt",value:function(t){return void 0!==this.value?this:t}},{key:"altMap",value:function(t){return void 0!==this.value?this:t()}},{key:"ap",value:function(t){var e=this;return t.bind((function(t){return e.map(t)}))}},{key:"bind",value:function(e){return t.join(this.map(e))}},{key:"withDefault",value:function(t){return void 0!==this.value?this.value:t}},{key:"withDefaultFn",value:function(t){return void 0!==this.value?this.value:t()}},{key:"hasNothing",get:function(){return void 0===this.value}},{key:"hasSomething",get:function(){return!this.hasNothing}},{key:"unsafeElse",value:function(t){this.hasNothing&&t()}}])&&r(e.prototype,n),i&&r(e,i),t}();i.of=i.maybe},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(8),i=n(52),o=n(24),u=n(42);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,c=this._ctorUnsubscribe,s=this._unsubscribe,f=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var l=0;l<n.length;++l){n[l].remove(this)}if(Object(o.a)(s)){c&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof u.a?a(t.errors):[t]}}if(Object(r.a)(f)){l=-1;for(var h=f.length;++l<h;){var p=f[l];if(Object(i.a)(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof u.a?e=e.concat(a(t.errors)):e.push(t)}}}if(e)throw new u.a(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(c(e)){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function a(t){return t.reduce((function(t,e){return t.concat(e instanceof u.a?e.errors:e)}),[])}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(3),o=n(1),u=n(5),c=n(22),s=n(69),a=n(41),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[a.a]=function(){return new f(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new c.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new c.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new c.a;return this.hasError?(t.error(this.thrownError),u.a.EMPTY):this.isStopped?(t.complete(),u.a.EMPTY):(this.observers.push(t),new s.a(this,t))},e.prototype.asObservable=function(){var t=new i.a;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.a),h=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.a(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.a.EMPTY},e}(l)},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(31),i=new(n(29).a)(r.a),o=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.a)},function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(3),i=new r.a((function(t){return t.complete()}));function o(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(34),o=n(68);function u(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(1).a),o=n(34),u=n(3);function c(t,e,n,r,c){if(void 0===c&&(c=new i(t,n,r)),!c.closed)return e instanceof u.a?e.subscribe(c):Object(o.a)(e)(c)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(1).a)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return c}));var r,i=n(11),o=n(36),u=n(47);r||(r={});var c=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Object(o.a)(this.value);case"E":return Object(u.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(9),o=n(12),u=n(2);function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(c((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new s(t,n))})}var s=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.concurrent))},t}(),a=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new u.a(this),n=this.destination;n.add(e);var r=Object(u.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(u.b),f=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t){return void 0===t&&(t=null),function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.defaultValue))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.a(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(70),o=n(54);function u(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(57),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(6),o=n(5),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(5).a))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(36),i=n(63);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(i.a)()(r.a.apply(void 0,t))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(70),i=n(35),o=n(19),u=n(21),c=n(71),s=n(72),a=n(52),f=function(t){if(t&&"function"==typeof t[u.a])return f=t,function(t){var e=f[u.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(c.a)(t))return Object(r.a)(t);if(Object(s.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,f,l=Object(a.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(10),i=n(28),o=n(54);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r.a)(n)?(t.pop(),Object(o.a)(t,n)):Object(i.a)(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(25),o=n(1);function u(t){return void 0===t&&(t=a),function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.errorFactory))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.a);function a(){return new i.a}},function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",(function(){return r.a})),n.d(e,"ConnectableObservable",(function(){return i.a})),n.d(e,"GroupedObservable",(function(){return o.a})),n.d(e,"observable",(function(){return u.a})),n.d(e,"Subject",(function(){return c.a})),n.d(e,"BehaviorSubject",(function(){return s.a})),n.d(e,"ReplaySubject",(function(){return a.a})),n.d(e,"AsyncSubject",(function(){return f.a})),n.d(e,"asap",(function(){return l.a})),n.d(e,"asapScheduler",(function(){return l.b})),n.d(e,"async",(function(){return h.a})),n.d(e,"asyncScheduler",(function(){return h.b})),n.d(e,"queue",(function(){return p.a})),n.d(e,"queueScheduler",(function(){return p.b})),n.d(e,"animationFrame",(function(){return g})),n.d(e,"animationFrameScheduler",(function(){return m})),n.d(e,"VirtualTimeScheduler",(function(){return w})),n.d(e,"VirtualAction",(function(){return x})),n.d(e,"Scheduler",(function(){return _.a})),n.d(e,"Subscription",(function(){return S.a})),n.d(e,"Subscriber",(function(){return O.a})),n.d(e,"Notification",(function(){return j.a})),n.d(e,"NotificationKind",(function(){return j.b})),n.d(e,"pipe",(function(){return E.a})),n.d(e,"noop",(function(){return C.a})),n.d(e,"identity",(function(){return P.a})),n.d(e,"isObservable",(function(){return T})),n.d(e,"ArgumentOutOfRangeError",(function(){return N.a})),n.d(e,"EmptyError",(function(){return A.a})),n.d(e,"ObjectUnsubscribedError",(function(){return I.a})),n.d(e,"UnsubscriptionError",(function(){return k.a})),n.d(e,"TimeoutError",(function(){return R.a})),n.d(e,"bindCallback",(function(){return L})),n.d(e,"bindNodeCallback",(function(){return U})),n.d(e,"combineLatest",(function(){return z.b})),n.d(e,"concat",(function(){return Y.a})),n.d(e,"defer",(function(){return G.a})),n.d(e,"empty",(function(){return J.b})),n.d(e,"forkJoin",(function(){return X})),n.d(e,"from",(function(){return Q.a})),n.d(e,"fromEvent",(function(){return tt.a})),n.d(e,"fromEventPattern",(function(){return nt})),n.d(e,"generate",(function(){return rt})),n.d(e,"iif",(function(){return ot})),n.d(e,"interval",(function(){return ct})),n.d(e,"merge",(function(){return at.a})),n.d(e,"never",(function(){return lt})),n.d(e,"of",(function(){return ht.a})),n.d(e,"onErrorResumeNext",(function(){return pt})),n.d(e,"pairs",(function(){return dt})),n.d(e,"partition",(function(){return gt})),n.d(e,"race",(function(){return wt.a})),n.d(e,"range",(function(){return xt})),n.d(e,"throwError",(function(){return St.a})),n.d(e,"timer",(function(){return Ot.a})),n.d(e,"using",(function(){return jt})),n.d(e,"zip",(function(){return Et.b})),n.d(e,"scheduled",(function(){return Ct.a})),n.d(e,"EMPTY",(function(){return J.a})),n.d(e,"NEVER",(function(){return ft})),n.d(e,"config",(function(){return Pt.a}));var r=n(3),i=n(60),o=n(58),u=n(21),c=n(6),s=n(59),a=n(46),f=n(30),l=n(40),h=n(7),p=n(56),d=n(0),b=n(31),v=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return d.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(b.a),y=n(29),m=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(y.a))(v),g=m,w=function(t){function e(e,n){void 0===e&&(e=x),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return d.a(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.a),x=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return d.a(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(b.a),_=n(57),S=n(5),O=n(1),j=n(18),E=n(39),C=n(20),P=n(15);function T(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var N=n(23),A=n(25),I=n(22),k=n(42),R=n(62),M=n(9),V=n(53),F=n(8),D=n(10);function L(t,e,n){if(e){if(!Object(D.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return L(t,n).apply(void 0,r).pipe(Object(M.a)((function(t){return Object(F.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,u=this,c={context:u,subject:o,callbackFunc:t,scheduler:n};return new r.a((function(r){if(n){var i={args:e,subscriber:r,params:c};return n.schedule(q,0,i)}if(!o){o=new f.a;try{t.apply(u,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){Object(V.a)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)}))}}function q(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,u=i.context,c=i.scheduler,s=i.subject;if(!s){s=i.subject=new f.a;try{o.apply(u,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(c.schedule(B,0,{value:r,subject:s}))}]))}catch(t){s.error(t)}}this.add(s.subscribe(r))}function B(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function U(t,e,n){if(e){if(!Object(D.a)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return U(t,n).apply(void 0,r).pipe(Object(M.a)((function(t){return Object(F.a)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.a((function(r){var i=o.context,u=o.subject;if(n)return n.schedule(W,0,{params:o,subscriber:r,context:i});if(!u){u=o.subject=new f.a;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?u.error(n):(u.next(t.length<=1?t[0]:t),u.complete())}]))}catch(t){Object(V.a)(u)?u.error(t):console.warn(t)}}return u.subscribe(r)}))}}function W(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,u=n.args,c=n.scheduler,s=n.subject;if(!s){s=n.subject=new f.a;try{o.apply(i,u.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(c.schedule($,0,{err:r,subject:s}));else{var i=t.length<=1?t[0]:t;e.add(c.schedule(H,0,{value:i,subject:s}))}}]))}catch(t){this.add(c.schedule($,0,{err:t,subject:s}))}}this.add(s.subscribe(r))}function H(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function $(t){var e=t.err;t.subject.error(e)}var z=n(48),Y=n(33),G=n(50),J=n(11),K=n(52),Q=n(12);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(Object(F.a)(n))return Z(n,null);if(Object(K.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Z(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Z(t=1===t.length&&Object(F.a)(t[0])?t[0]:t,null).pipe(Object(M.a)((function(t){return i.apply(void 0,t)})))}return Z(t,null)}function Z(t,e){return new r.a((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,u=0,c=function(c){var s=Object(Q.a)(t[c]),a=!1;n.add(s.subscribe({next:function(t){a||(a=!0,u++),i[c]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&a||(u===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},s=0;s<r;s++)c(s);else n.complete()}))}var tt=n(75),et=n(24);function nt(t,e,n){return n?nt(t,e).pipe(Object(M.a)((function(t){return Object(F.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){return void n.error(t)}if(Object(et.a)(e))return function(){return e(i,r)}}))}function rt(t,e,n,i,o){var u,c;if(1==arguments.length){var s=t;c=s.initialState,e=s.condition,n=s.iterate,u=s.resultSelector||P.a,o=s.scheduler}else void 0===i||Object(D.a)(i)?(c=t,u=P.a,o=i):(c=t,u=i);return new r.a((function(t){var r=c;if(o)return o.schedule(it,0,{subscriber:t,iterate:n,condition:e,resultSelector:u,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(e){return void t.error(e)}if(!i){t.complete();break}}var s=void 0;try{s=u(r)}catch(e){return void t.error(e)}if(t.next(s),t.closed)break;try{r=n(r)}catch(e){return void t.error(e)}}}))}function it(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ot(t,e,n){return void 0===e&&(e=J.a),void 0===n&&(n=J.a),Object(G.a)((function(){return t()?e:n}))}var ut=n(32);function ct(t,e){return void 0===t&&(t=0),void 0===e&&(e=h.a),(!Object(ut.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=h.a),new r.a((function(n){return n.add(e.schedule(st,t,{subscriber:n,counter:0,period:t})),n}))}function st(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var at=n(64),ft=new r.a(C.a);function lt(){return ft}var ht=n(36);function pt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return J.a;var n=t[0],i=t.slice(1);return 1===t.length&&Object(F.a)(n)?pt.apply(void 0,n):new r.a((function(t){var e=function(){return t.add(pt.apply(void 0,i).subscribe(t))};return Object(Q.a)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function dt(t,e){return e?new r.a((function(n){var r=Object.keys(t),i=new S.a;return i.add(e.schedule(bt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i})):new r.a((function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()}))}function bt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var u=e[n];r.next([u,o[u]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var vt=n(73),yt=n(34),mt=n(16);function gt(t,e,n){return[Object(mt.a)(e,n)(new r.a(Object(yt.a)(t))),Object(mt.a)(Object(vt.a)(e,n))(new r.a(Object(yt.a)(t)))]}var wt=n(65);function xt(t,e,n){return void 0===t&&(t=0),new r.a((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(_t,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function _t(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n(47),Ot=n(66);function jt(t,e){return new r.a((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(Q.a)(i):J.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var Et=n(51),Ct=n(68),Pt=n(14)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(15);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=1,o=function(){return Promise.resolve()}(),u={};function c(t){return t in u&&(delete u[t],!0)}var s=function(t){var e=i++;return u[e]=!0,o.then((function(){return c(e)&&t()})),e},a=function(t){c(t)},f=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=s(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(a(n),e.scheduled=void 0)},e}(n(31).a),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(29).a))(f),h=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return f})),n.d(e,"buffer",(function(){return l})),n.d(e,"bufferCount",(function(){return b})),n.d(e,"bufferTime",(function(){return w})),n.d(e,"bufferToggle",(function(){return N})),n.d(e,"bufferWhen",(function(){return k})),n.d(e,"catchError",(function(){return V})),n.d(e,"combineAll",(function(){return q})),n.d(e,"combineLatest",(function(){return W})),n.d(e,"concat",(function(){return $})),n.d(e,"concatAll",(function(){return z.a})),n.d(e,"concatMap",(function(){return G})),n.d(e,"concatMapTo",(function(){return J})),n.d(e,"count",(function(){return K})),n.d(e,"debounce",(function(){return Z})),n.d(e,"debounceTime",(function(){return nt.a})),n.d(e,"defaultIfEmpty",(function(){return rt.a})),n.d(e,"delay",(function(){return ut})),n.d(e,"delayWhen",(function(){return lt})),n.d(e,"dematerialize",(function(){return vt})),n.d(e,"distinct",(function(){return gt})),n.d(e,"distinctUntilChanged",(function(){return _t.a})),n.d(e,"distinctUntilKeyChanged",(function(){return St})),n.d(e,"elementAt",(function(){return Pt})),n.d(e,"endWith",(function(){return Nt})),n.d(e,"every",(function(){return At})),n.d(e,"exhaust",(function(){return Rt})),n.d(e,"exhaustMap",(function(){return Dt})),n.d(e,"expand",(function(){return Bt})),n.d(e,"filter",(function(){return jt.a})),n.d(e,"finalize",(function(){return Ht})),n.d(e,"find",(function(){return Yt})),n.d(e,"findIndex",(function(){return Kt})),n.d(e,"first",(function(){return Qt.a})),n.d(e,"groupBy",(function(){return Xt.b})),n.d(e,"ignoreElements",(function(){return Zt})),n.d(e,"isEmpty",(function(){return ne})),n.d(e,"last",(function(){return le})),n.d(e,"map",(function(){return Ft.a})),n.d(e,"mapTo",(function(){return he})),n.d(e,"materialize",(function(){return be})),n.d(e,"max",(function(){return Se})),n.d(e,"merge",(function(){return je})),n.d(e,"mergeAll",(function(){return Ee.a})),n.d(e,"mergeMap",(function(){return Y.b})),n.d(e,"flatMap",(function(){return Y.a})),n.d(e,"mergeMapTo",(function(){return Ce})),n.d(e,"mergeScan",(function(){return Pe})),n.d(e,"min",(function(){return Ae})),n.d(e,"multicast",(function(){return ke})),n.d(e,"observeOn",(function(){return Me.b})),n.d(e,"onErrorResumeNext",(function(){return Ve})),n.d(e,"pairwise",(function(){return Le})),n.d(e,"partition",(function(){return We})),n.d(e,"pluck",(function(){return He})),n.d(e,"publish",(function(){return Ye})),n.d(e,"publishBehavior",(function(){return Je})),n.d(e,"publishLast",(function(){return Qe})),n.d(e,"publishReplay",(function(){return Ze})),n.d(e,"race",(function(){return en})),n.d(e,"reduce",(function(){return _e})),n.d(e,"repeat",(function(){return nn})),n.d(e,"repeatWhen",(function(){return un})),n.d(e,"retry",(function(){return an})),n.d(e,"retryWhen",(function(){return hn})),n.d(e,"refCount",(function(){return bn.a})),n.d(e,"sample",(function(){return vn})),n.d(e,"sampleTime",(function(){return gn})),n.d(e,"scan",(function(){return me})),n.d(e,"sequenceEqual",(function(){return Sn})),n.d(e,"share",(function(){return Pn})),n.d(e,"shareReplay",(function(){return Nn})),n.d(e,"single",(function(){return An})),n.d(e,"skip",(function(){return Rn})),n.d(e,"skipLast",(function(){return Fn})),n.d(e,"skipUntil",(function(){return qn})),n.d(e,"skipWhile",(function(){return Wn})),n.d(e,"startWith",(function(){return zn})),n.d(e,"subscribeOn",(function(){return Kn})),n.d(e,"switchAll",(function(){return er})),n.d(e,"switchMap",(function(){return Xn})),n.d(e,"switchMapTo",(function(){return nr})),n.d(e,"take",(function(){return Ct.a})),n.d(e,"takeLast",(function(){return ce})),n.d(e,"takeUntil",(function(){return rr})),n.d(e,"takeWhile",(function(){return ur})),n.d(e,"tap",(function(){return lr})),n.d(e,"throttle",(function(){return br})),n.d(e,"throttleTime",(function(){return mr})),n.d(e,"throwIfEmpty",(function(){return Et.a})),n.d(e,"timeInterval",(function(){return Sr})),n.d(e,"timeout",(function(){return Nr})),n.d(e,"timeoutWith",(function(){return Er})),n.d(e,"timestamp",(function(){return Ar})),n.d(e,"toArray",(function(){return Rr})),n.d(e,"window",(function(){return Mr})),n.d(e,"windowCount",(function(){return Dr})),n.d(e,"windowTime",(function(){return Br})),n.d(e,"windowToggle",(function(){return Gr})),n.d(e,"windowWhen",(function(){return Qr})),n.d(e,"withLatestFrom",(function(){return ti})),n.d(e,"zip",(function(){return ii})),n.d(e,"zipAll",(function(){return oi}));var r=n(0),i=n(2);function o(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),s=n(7),a=n(66);function f(t,e){return void 0===e&&(e=s.a),o((function(){return Object(a.a)(t,e)}))}function l(t){return function(e){return e.lift(new h(t))}}var h=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.closingNotifier))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),d=n(1);function b(t,e){return void 0===e&&(e=null),function(n){return n.lift(new v(t,e))}}var v=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?m:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(d.a),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var u=r[o];u.push(t),u.length===e&&(r.splice(o,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(d.a),g=n(10);function w(t){var e=arguments.length,n=s.a;Object(g.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new x(t,r,i,n))}}var x=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),_=function(){return function(){this.buffer=[]}}(),S=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.bufferTimeSpan=n,u.bufferCreationInterval=r,u.maxBufferSize=i,u.scheduler=o,u.contexts=[];var c=u.openContext();if(u.timespanOnly=null==r||r<0,u.timespanOnly){var s={subscriber:u,context:c,bufferTimeSpan:n};u.add(c.closeAction=o.schedule(O,n,s))}else{var a={subscriber:u,context:c},f={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:u,scheduler:o};u.add(c.closeAction=o.schedule(E,n,a)),u.add(o.schedule(j,r,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],u=o.buffer;u.push(t),u.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(O,n,r))}},e.prototype.openContext=function(){var t=new _;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(d.a);function O(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function j(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var C=n(5),P=n(13),T=n(17);function N(t,e){return function(n){return n.lift(new A(t,e))}}var A=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.openings,this.closingSelector))},t}(),I=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(P.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new C.a,r={buffer:[],subscription:n};e.push(r);var i=Object(P.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(T.a);function k(t){return function(e){return e.lift(new R(t))}}var R=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new M(t,this.closingSelector))},t}(),M=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new C.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function V(t){return function(e){var n=new F(t),r=e.lift(n);return n.caught=r}}var F=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new D(t,this.selector,this.caught))},t}(),D=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),L=n(48);function q(t){return function(e){return e.lift(new L.a(t))}}var B=n(8),U=n(12);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(B.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(U.a)([e].concat(t)),new L.a(n))}}var H=n(33);function $(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(H.a.apply(void 0,[e].concat(t)))}}var z=n(63),Y=n(26);function G(t,e){return Object(Y.b)(t,e,1)}function J(t,e){return G((function(){return t}),e)}function K(t){return function(e){return e.lift(new Q(t,e))}}var Q=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new X(t,this.predicate,this.source))},t}(),X=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(d.a);function Z(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(i.c)(e,new i.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.b),nt=n(76),rt=n(27);function it(t){return t instanceof Date&&!isNaN(+t)}var ot=n(18);function ut(t,e){void 0===e&&(e=s.a);var n=it(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ct(n,e))}}var ct=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new st(t,this.delay,this.scheduler))},t}(),st=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.a(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new at(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ot.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ot.a.createComplete()),this.unsubscribe()},e}(d.a),at=function(){return function(t,e){this.time=t,this.notification=e}}(),ft=n(3);function lt(t,e){return e?function(n){return new dt(n,e).lift(new ht(t))}:function(e){return e.lift(new ht(t))}}var ht=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new pt(t,this.delayDurationSelector))},t}(),pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(P.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(T.a),dt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new bt(t,this.source))},e}(ft.a),bt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(d.a);function vt(){return function(t){return t.lift(new yt)}}var yt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new mt(t))},t}(),mt=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(d.a);function gt(t,e){return function(n){return n.lift(new wt(t,e))}}var wt=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new xt(t,this.keySelector,this.flushes))},t}(),xt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.b),_t=n(67);function St(t,e){return Object(_t.a)((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Ot=n(23),jt=n(16),Et=n(37),Ct=n(44);function Pt(t,e){if(t<0)throw new Ot.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(jt.a)((function(e,n){return n===t})),Object(Ct.a)(1),n?Object(rt.a)(e):Object(Et.a)((function(){return new Ot.a})))}}var Tt=n(36);function Nt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return Object(H.a)(e,Tt.a.apply(void 0,t))}}function At(t,e){return function(n){return n.lift(new It(t,e,n))}}var It=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new kt(t,this.predicate,this.thisArg,this.source))},t}(),kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.a(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.a);function Rt(){return function(t){return t.lift(new Mt)}}var Mt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Vt(t))},t}(),Vt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(i.c)(t,new i.a(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b),Ft=n(9);function Dt(t,e){return e?function(n){return n.pipe(Dt((function(n,r){return Object(U.a)(t(n,r)).pipe(Object(Ft.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Lt(t))}}var Lt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new qt(t,this.project))},t}(),qt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.b);function Bt(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new Ut(t,e,n))}}var Ut=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new Wt(t,this.project,this.concurrent,this.scheduler))},t}(),Wt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.a(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(t){n.error(t)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(Object(i.c)(t,new i.a(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function Ht(t){return function(e){return e.lift(new $t(t))}}var $t=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new zt(t,this.callback))},t}(),zt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new C.a(n)),r}return r.a(e,t),e}(d.a);function Yt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new Gt(t,n,!1,e))}}var Gt=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),Jt=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.predicate=n,u.source=r,u.yieldIndex=i,u.thisArg=o,u.index=0,u}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(d.a);function Kt(t,e){return function(n){return n.lift(new Gt(t,n,!0,e))}}var Qt=n(77),Xt=n(58);function Zt(){return function(t){return t.lift(new te)}}var te=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ee(t))},t}(),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(d.a);function ne(){return function(t){return t.lift(new re)}}var re=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ie(t))},t}(),ie=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(d.a),oe=n(25),ue=n(11);function ce(t){return function(e){return 0===t?Object(ue.b)():e.lift(new se(t))}}var se=function(){function t(t){if(this.total=t,this.total<0)throw new Ot.a}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.total))},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(d.a),fe=n(15);function le(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(jt.a)((function(e,n){return t(e,n,r)})):fe.a,ce(1),n?Object(rt.a)(e):Object(Et.a)((function(){return new oe.a})))}}function he(t){return function(e){return e.lift(new pe(t))}}var pe=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new de(t,this.value))},t}(),de=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(d.a);function be(){return function(t){return t.lift(new ve)}}var ve=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ye(t))},t}(),ye=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(ot.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ot.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ot.a.createComplete()),t.complete()},e}(d.a);function me(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new ge(t,e,n))}}var ge=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new we(t,this.accumulator,this.seed,this.hasSeed))},t}(),we=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(d.a),xe=n(39);function _e(t,e){return arguments.length>=2?function(n){return Object(xe.a)(me(t,e),ce(1),Object(rt.a)(e))(n)}:function(e){return Object(xe.a)(me((function(e,n,r){return t(e,n,r+1)})),ce(1))(e)}}function Se(t){return _e("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Oe=n(64);function je(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Oe.a.apply(void 0,[e].concat(t)))}}var Ee=n(49);function Ce(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object(Y.b)((function(){return t}),e,n):("number"==typeof e&&(n=e),Object(Y.b)((function(){return t}),n))}function Pe(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Te(t,e,n))}}var Te=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new Ne(t,this.accumulator,this.seed,this.concurrent))},t}(),Ne=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.a(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(t){return n.error(t)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function Ae(t){return _e("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Ie=n(60);function ke(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new Re(r,e));var i=Object.create(n,Ie.b);return i.source=n,i.subjectFactory=r,i}}var Re=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Me=n(61);function Ve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),function(e){return e.lift(new Fe(t))}}var Fe=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new De(t,this.nextSources))},t}(),De=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.a(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.a(this),n=this.destination;n.add(e);var r=Object(i.c)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.b);function Le(){return function(t){return t.lift(new qe)}}var qe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Be(t))},t}(),Be=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.a(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(d.a),Ue=n(73);function We(t,e){return function(n){return[Object(jt.a)(t,e)(n),Object(jt.a)(Object(Ue.a)(t,e))(n)]}}function He(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return Object(Ft.a)($e(t,n))(e)}}function $e(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}var ze=n(6);function Ye(t){return t?ke((function(){return new ze.a}),t):ke(new ze.a)}var Ge=n(59);function Je(t){return function(e){return ke(new Ge.a(t))(e)}}var Ke=n(30);function Qe(){return function(t){return ke(new Ke.a)(t)}}var Xe=n(46);function Ze(t,e,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,o=new Xe.a(t,e,r);return function(t){return ke((function(){return o}),i)(t)}}var tn=n(65);function en(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&Object(B.a)(t[0])&&(t=t[0]),e.lift.call(tn.a.apply(void 0,[e].concat(t)))}}function nn(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(ue.b)():t<0?e.lift(new rn(-1,e)):e.lift(new rn(t-1,e))}}var rn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new on(t,this.count,this.source))},t}(),on=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(d.a);function un(t){return function(e){return e.lift(new cn(t))}}var cn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new sn(t,this.notifier,e))},t}(),sn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new ze.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function an(t){return void 0===t&&(t=-1),function(e){return e.lift(new fn(t,e))}}var fn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new ln(t,this.count,this.source))},t}(),ln=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(d.a);function hn(t){return function(e){return e.lift(new pn(t,e))}}var pn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new dn(t,this.notifier,this.source))},t}(),dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new ze.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),bn=n(45);function vn(t){return function(e){return e.lift(new yn(t))}}var yn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new mn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),mn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function gn(t,e){return void 0===e&&(e=s.a),function(n){return n.lift(new wn(t,e))}}var wn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.period,this.scheduler))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(_n,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(d.a);function _n(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Sn(t,e){return function(n){return n.lift(new On(t,e))}}var On=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new jn(t,this.compareTo,this.comparator))},t}(),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new En(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(d.a),En=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(d.a);function Cn(){return new ze.a}function Pn(){return function(t){return Object(bn.a)()(ke(Cn)(t))}}function Tn(t){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nn(t,e,n){var r;return r=t&&"object"===Tn(t)?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,u=void 0===o?Number.POSITIVE_INFINITY:o,c=t.refCount,s=t.scheduler,a=0,f=!1,l=!1;return function(t){var r;a++,!e||f?(f=!1,e=new Xe.a(i,u,s),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){f=!0,e.error(t)},complete:function(){l=!0,n=void 0,e.complete()}})):r=e.subscribe(this),this.add((function(){a--,r.unsubscribe(),n&&!l&&c&&0===a&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function An(t){return function(e){return e.lift(new In(t,e))}}var In=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new kn(t,this.predicate,this.source))},t}(),kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new oe.a)},e}(d.a);function Rn(t){return function(e){return e.lift(new Mn(t))}}var Mn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.total))},t}(),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(d.a);function Fn(t){return function(e){return e.lift(new Dn(t))}}var Dn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Ot.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new d.a(t)):e.subscribe(new Ln(t,this._skipCount))},t}(),Ln=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(d.a);function qn(t){return function(e){return e.lift(new Bn(t))}}var Bn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Un(t,this.notifier))},t}(),Un=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.a(r);r.add(o),r.innerSubscription=o;var u=Object(i.c)(n,o);return u!==o&&(r.add(u),r.innerSubscription=u),r}return r.a(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.b);function Wn(t){return function(e){return e.lift(new Hn(t))}}var Hn=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new $n(t,this.predicate))},t}(),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(d.a);function zn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(g.a)(n)?(t.pop(),function(e){return Object(H.a)(t,e,n)}):function(e){return Object(H.a)(t,e)}}var Yn=n(40),Gn=n(32),Jn=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Yn.a);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!Object(Gn.a)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Yn.a),i}return r.a(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Yn.a),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(ft.a);function Kn(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Qn(t,e))}}var Qn=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new Jn(e,this.delay,this.scheduler).subscribe(t)},t}();function Xn(t,e){return"function"==typeof e?function(n){return n.pipe(Xn((function(n,r){return Object(U.a)(t(n,r)).pipe(Object(Ft.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new tr(t,this.project))},t}(),tr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.a(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.b);function er(){return Xn(fe.a)}function nr(t,e){return e?Xn((function(){return t}),e):Xn((function(){return t}))}function rr(t){return function(e){return e.lift(new ir(t))}}var ir=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new or(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),or=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.a(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.b);function ur(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new cr(t,e))}}var cr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new sr(t,this.predicate,this.inclusive))},t}(),sr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(d.a),ar=n(20),fr=n(24);function lr(t,e,n){return function(r){return r.lift(new hr(t,e,n))}}var hr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new pr(t,this.nextOrObserver,this.error,this.complete))},t}(),pr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=ar.a,o._tapError=ar.a,o._tapComplete=ar.a,o._tapError=r||ar.a,o._tapComplete=i||ar.a,Object(fr.a)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||ar.a,o._tapError=n.error||ar.a,o._tapComplete=n.complete||ar.a),o}return r.a(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(d.a),dr={leading:!0,trailing:!1};function br(t,e){return void 0===e&&(e=dr),function(n){return n.lift(new vr(t,!!e.leading,!!e.trailing))}}var vr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new yr(t,this.durationSelector,this.leading,this.trailing))},t}(),yr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.a(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(i.c)(e,new i.a(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.b);function mr(t,e,n){return void 0===e&&(e=s.a),void 0===n&&(n=dr),function(r){return r.lift(new gr(t,e,n.leading,n.trailing))}}var gr=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new wr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),wr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.duration=n,u.scheduler=r,u.leading=i,u.trailing=o,u._hasTrailingValue=!1,u._trailingValue=null,u}return r.a(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(xr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(d.a);function xr(t){t.subscriber.clearThrottle()}var _r=n(50);function Sr(t){return void 0===t&&(t=s.a),function(e){return Object(_r.a)((function(){return e.pipe(me((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),Object(Ft.a)((function(t){var e=t.current,n=t.last,r=t.value;return new Or(r,e-n)})))}))}}var Or=function(){return function(t,e){this.value=t,this.interval=e}}(),jr=n(62);function Er(t,e,n){return void 0===n&&(n=s.a),function(r){var i=it(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Cr(o,i,e,n))}}var Cr=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Pr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Pr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.absoluteTimeout=n,u.waitFor=r,u.withObservable=i,u.scheduler=o,u.scheduleTimeout(),u}return r.a(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Object(i.c)(e,new i.a(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.b),Tr=n(47);function Nr(t,e){return void 0===e&&(e=s.a),Er(t,Object(Tr.a)(new jr.a),e)}function Ar(t){return void 0===t&&(t=s.a),Object(Ft.a)((function(e){return new Ir(e,t.now())}))}var Ir=function(){return function(t,e){this.value=t,this.timestamp=e}}();function kr(t,e,n){return 0===n?[e]:(t.push(e),t)}function Rr(){return _e(kr,[])}function Mr(t){return function(e){return e.lift(new Vr(t))}}var Vr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Fr(t),r=e.subscribe(n);return r.closed||n.add(Object(i.c)(this.windowBoundaries,new i.a(n))),r},t}(),Fr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new ze.a,e.next(n.window),n}return r.a(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new ze.a;e.next(n)},e}(i.b);function Dr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Lr(t,e))}}var Lr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new qr(t,this.windowSize,this.startWindowEvery))},t}(),qr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new ze.a],i.count=0,e.next(i.windows[0]),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,u=0;u<o&&!this.closed;u++)i[u].next(t);var c=this.count-r+1;if(c>=0&&c%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var s=new ze.a;i.push(s),n.next(s)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(d.a);function Br(t){var e=s.a,n=null,r=Number.POSITIVE_INFINITY;return Object(g.a)(arguments[3])&&(e=arguments[3]),Object(g.a)(arguments[2])?e=arguments[2]:Object(Gn.a)(arguments[2])&&(r=Number(arguments[2])),Object(g.a)(arguments[1])?e=arguments[1]:Object(Gn.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Ur(t,n,r,e))}}var Ur=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Hr(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),Wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(ze.a),Hr=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;u.destination=e,u.windowTimeSpan=n,u.windowCreationInterval=r,u.maxWindowSize=i,u.scheduler=o,u.windows=[];var c=u.openWindow();if(null!==r&&r>=0){var s={subscriber:u,window:c,context:null},a={windowTimeSpan:n,windowCreationInterval:r,subscriber:u,scheduler:o};u.add(o.schedule(Yr,n,s)),u.add(o.schedule(zr,r,a))}else{var f={subscriber:u,window:c,windowTimeSpan:n};u.add(o.schedule($r,n,f))}return u}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Wr;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(d.a);function $r(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function zr(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),u={action:this,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(Yr,e,c),this.add(u.subscription),this.schedule(t,i)}function Yr(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function Gr(t,e){return function(n){return n.lift(new Jr(t,e))}}var Jr=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Kr(t,this.openings,this.closingSelector))},t}(),Kr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(P.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var u=new ze.a,c=new C.a,s={window:u,subscription:c};this.contexts.push(s);var a=Object(P.a)(this,o,s);a.closed?this.closeWindow(this.contexts.length-1):(a.context=s,c.add(a)),this.destination.next(u)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(T.a);function Qr(t){return function(e){return e.lift(new Xr(t))}}var Xr=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Zr(t,this.closingSelector))},t}(),Zr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new ze.a;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=Object(P.a)(this,n))},e}(T.a);function ti(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new ei(r,n))}}var ei=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new ni(t,this.observables,this.project))},t}(),ni=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var u=0;u<o;u++)i.toRespond.push(u);for(u=0;u<o;u++){var c=n[u];i.add(Object(P.a)(i,c,void 0,u))}return i}return r.a(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(T.a),ri=n(51);function ii(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ri.b.apply(void 0,[e].concat(t)))}}function oi(t){return function(e){return e.lift(new ri.a(t))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),i=n(1),o=n(23),u=n(11);function c(t){return function(e){return 0===t?Object(u.b)():e.lift(new s(t))}}var s=function(){function t(t){if(this.total=t,this.total<0)throw new o.a}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(){return function(t){return t.lift(new u(t))}}var u=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new c(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),i=n(6),o=n(56),u=n(5),c=n(61),s=n(22),a=n(69),f=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new l(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new s.a;if(this.isStopped||this.hasError?e=u.a.EMPTY:(this.observers.push(t),e=new a.a(this,t)),i&&t.add(t=new c.a(t,i)),n)for(var f=0;f<o&&!t.closed;f++)t.next(r[f]);else for(f=0;f<o&&!t.closed;f++)t.next(r[f].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.a).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),l=function(){return function(t,e){this.time=t,this.value=e}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(3);function i(t,e){return e?new r.a((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.a((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(10),o=n(8),u=n(17),c=n(13),s=n(28),a={};function f(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(s.a)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.a(e,t),e.prototype._next=function(t){this.values.push(a),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(c.a)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===a?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(26),i=n(15);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.b)(i.a,t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),i=n(12),o=n(11);function u(t){return new r.a((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)}))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return f}));var r=n(0),i=n(28),o=n(8),u=n(1),c=n(19),s=n(2);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),Object(i.a)(t,void 0).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.resultSelector))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.iterators;Object(o.a)(t)?e.push(new p(t)):"function"==typeof t[c.a]?e.push(new h(t[c.a]())):e.push(new d(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe());else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"==typeof(u=t[r]).hasValue&&!u.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var u,c=(u=t[r]).next();if(u.hasCompleted()&&(i=!0),c.done)return void n.complete();o.push(c.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.a),h=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),p=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[c.a]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[c.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(s.c)(this.observable,new s.a(this))},e}(s.b)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return null!==t&&"object"===r(t)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(3),i=n(5);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(14),i=n(35),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return u}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(31).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(29).a))(i),u=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(1),o=n(5),u=n(3),c=n(6);function s(t,e,n,r){return function(i){return i.lift(new a(t,e,n,r))}}var a=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),f=function(t){function e(e,n,r,i,o){var u=t.call(this,e)||this;return u.keySelector=n,u.elementSelector=r,u.durationSelector=i,u.subjectSelector=o,u.groups=null,u.attemptedToUnsubscribe=!1,u.count=0,u}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new c.a,n.set(e,i);var o=new h(e,i,this);if(this.destination.next(o),this.durationSelector){var u=void 0;try{u=this.durationSelector(new h(e,i))}catch(t){return void this.error(t)}this.add(u.subscribe(new l(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),l=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),h=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new p(n)),e.add(r.subscribe(t)),e},e}(u.a),p=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(6),o=n(22),u=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return f}));var r=n(0),i=n(6),o=n(3),u=n(1),c=n(5),s=n(45),a=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new c.a).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.a.EMPTY)),t},e.prototype.refCount=function(){return Object(s.a)()(this)},e}(o.a),f=function(){var t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);u.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return s}));var r=n(0),i=n(1),o=n(18);function u(t,e){return void 0===e&&(e=0),function(n){return n.lift(new c(t,e))}}var c=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.scheduler,this.delay))},t}(),s=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),a=function(){return function(t,e){this.notification=t,this.destination=e}}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(49);function i(){return Object(r.a)(1)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(10),o=n(49),u=n(28);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=null,s=t[t.length-1];return Object(i.a)(s)?(c=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(u.a)(t,c))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),i=n(8),o=n(28),u=n(17),c=n(13);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(o.a)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new f(t))},t}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.a(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=Object(c.a)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(u.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(7),o=n(32),u=n(10);function c(t,e,n){void 0===t&&(t=0);var c=-1;return Object(o.a)(e)?c=Number(e)<1?1:Number(e):Object(u.a)(e)&&(n=e),Object(u.a)(n)||(n=i.a),new r.a((function(e){var r=Object(o.a)(t)?t:+t-n.now();return n.schedule(s,r,{index:0,period:c,subscriber:e})}))}function s(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(1);function o(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(3),i=n(5),o=n(21);var u=n(54),c=n(19);var s=n(72),a=n(71);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){var i=t[o.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Object(s.a)(t))return function(t,e){return new r.a((function(n){var r=new i.a;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Object(a.a)(t))return Object(u.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,o=new i.a;return o.add((function(){r&&"function"==typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[c.a](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&f(t)||t)+" is not observable")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.a(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(5).a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",(function(){return r}))},function(t,e,n){(function(t){var r,i,o,u;function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}window,u=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==c(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=n(4)},function(t,e){t.exports=n(38)},function(t,e){t.exports=n(43)},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";!function(t){function e(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}"function"!=typeof t.CustomEvent&&(e.prototype=t.Event.prototype,t.CustomEvent=e)}(window)},function(t,e,n){"use strict";function r(t){return(t.charAt(0)+t.slice(1).replace(/([A-Z])/g,"-$&")).toLowerCase()}n.r(e),n.d(e,"generateCustomElementWrapper",(function(){return d})),n.d(e,"createSetupElement",(function(){return b})),n.d(e,"makeGenericEffectsDriver",(function(){return m}));var i=1e3;function o(){return i++}var u=n(1),c=n(0);function s(t){var e=t.reduce((function(t,e){return t.set(e.name,e),t}),new Map);return{fnHashByName:e,hooks:{init:function(t){t.__innerProps$=new u.BehaviorSubject({})},connectedCallback:function(t){var n,r,i,o,u,s=t.__innerProps$.getValue(),f=Object.assign({},s);t.constructor.observedAttributes.forEach((function(n){null!==t.getAttribute(n)&&a(t,n,t.getAttribute(n),c.Maybe.just(e),f)})),n=s,r=f,i=!0,o=Object.keys(n),u=Object.keys(r),o.length===u.length&&(o.forEach((function(t){r.hasOwnProperty(t)&&n[t]===r[t]||(i=!1)})),i)||t.__innerProps$.next(f)},classSetup:function(e){Object.assign(e,{observedAttributes:t.filter((function(t){return t.reflectAs})).map((function(t){return t.name})).map(r)}),t.forEach((function(t){Object.defineProperty(e.prototype,t.name,{get:function(){return this.__innerProps$.getValue()[t.name]},set:function(n){if(this.__innerProps$.getValue()[t.name]!==n){var i=r(t.name),o=e.observedAttributes.includes(i);o&&(!0===n?this.setAttribute(i,""):n||0===n||""===n?this.setAttribute(i,String(n)):this.removeAttribute(i)),!this.__attached&&o&&!1!==n||(this.__innerProps$.getValue()[t.name]=n,this.__innerProps$.next(this.__innerProps$.getValue()))}}})}))}}}}function a(t,e,n,r,i){var o=e.replace(/-([a-z])/gi,(function(t,e){return e.toUpperCase()}));t[o]=r.map((function(t){var e=t.get(o),r=n;return e&&e.reflectAs&&n&&(r=e.reflectAs(n)),e&&e.reflectAs===Boolean&&(r=""===n),i&&(i[o]=r),r})).withDefault(n)}function f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!!window.HTMLTemplateElement;return e=r?h(n):l(n),function(t){if(t.shadowRoot)return t.shadowRoot.querySelector("div");t.attachShadow?t.attachShadow({mode:"open"}):Object.assign(t,{shadowRoot:t});var i=document.importNode(e,!0);r||(i.querySelector("style").sheet.cssText=n);var o=t.shadowRoot;return o.appendChild(i),o.querySelector("div")}}function l(t){var e=document.createDocumentFragment(),n=document.createElement("style");n.appendChild(document.createTextNode(t));var r=document.createElement("div");return r.className="root",e.appendChild(n),e.appendChild(r),e}function h(t){var e=document.createElement("template");return e.innerHTML="<style>".concat(t,'</style><div class="root"></div>'),e.content}var p=n(2);function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{useShadowDOM:!0},r=n.useShadowDOM?c.Maybe.just(f(t,n.css)):c.Maybe.nothing(),i=Array.isArray(n.props)?c.Maybe.just(s(n.props)):c.Maybe.nothing(),u=function t(){var u=Reflect.construct(HTMLElement,[],t);return n.prototypeExtensions&&Object.keys(n.prototypeExtensions).forEach((function(t){u[t]||(u[t]=n.prototypeExtensions[t])})),u.__onTeardown=[],u.__onAttached=[],u.__guid=o(),i.map((function(t){return(0,t.hooks.init)(u)})),r.map((function(t){return t(u)})).map((function(t){var n=c.Maybe.maybe(u.__innerProps$).map((function(t){return e(u,t)})).withDefaultFn((function(){return e(u)}));v(u,t,n),u.__shadowAppBooted=!0})),u};return y(u),u.prototype=Object.create(HTMLElement.prototype,{component:{writable:!0,enumerable:!0},constructor:{value:u},connectedCallback:{writable:!0,value:function(){var t=this;this.dataset.guid="".concat(this.__guid),n.useShadowDOM&&this.__shadowAppBooted||(r.map((function(e){return e(t)})).alt(c.Maybe.just(this)).map((function(n){var r=c.Maybe.maybe(t.__innerProps$).map((function(n){return e(t,n)})).withDefaultFn((function(){return e(t)}));v(t,n,r)})),this.__shadowAppBooted=!0),i.map((function(e){(0,e.hooks.connectedCallback)(t)})),this.__attached=!0,this.__onAttached.forEach((function(e){return e.call(t)}))}},disconnectedCallback:{writable:!0,value:function(){var t=this;this.__onTeardown.reverse().forEach((function(e){return e.call(t)})),this.__onTeardown=[],this.__onAttached=[],this.__attached=!1,this.__shadowAppBooted=!1}},attributeChangedCallback:{writable:!0,value:function(t,e,n){e!==n&&this.__attached&&a(this,t,n,i.map((function(t){return t.fnHashByName})))}}}),i.map((function(t){return(0,t.hooks.classSetup)(u)})),u}function b(t){return function(e){return function(n){var r=function(){window.customElements.get(n)||window.customElements.define(n,t(n,e))};window.customElements?r():Object(u.interval)(5).pipe(Object(p.filter)((function(){return!!window.customElements})),Object(p.take)(1)).toPromise().then((function(){r()}))}}}function v(t,e,n){var r=document.createElement("div");e.appendChild(r);var i=n.DOM$.subscribe((function(t){e.replaceChild(t,e.firstChild)})),o=n.settled$.subscribe((function(e){t.settled=e,e&&t.dispatchEvent(new CustomEvent("settled"))})),u=n.teardown$.subscribe((function(e){t.__onTeardown.push(e)}));t.__onTeardown.push((function(){[i,o,u].forEach((function(t){return t.unsubscribe()}))}))}function y(t){try{Object.defineProperty(t,"is",{value:name,writable:!1}),Object.defineProperty(t,"localName",{value:name,writable:!1})}catch(t){}}function m(t){return function(e){e.subscribe({next:function(e){e(t)},error:function(){},complete:function(){}})}}n(4)}])},"object"==c(e)&&"object"==c(t)?t.exports=u():(i=[],void 0===(o="function"==typeof(r=u)?r.apply(e,i):r)||(t.exports=o))}).call(this,n(79)(t))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(3),i=n(8),o=n(24),u=n(9);function c(t,e,n,s){return Object(o.a)(n)&&(s=n,n=void 0),s?c(t,e,n).pipe(Object(u.a)((function(t){return Object(i.a)(t)?s.apply(void 0,t):s(t)}))):new r.a((function(r){!function t(e,n,r,i,o){var u;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var c=e;e.addEventListener(n,r,o),u=function(){return c.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var s=e;e.on(n,r),u=function(){return s.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var a=e;e.addListener(n,r),u=function(){return a.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var f=0,l=e.length;f<l;f++)t(e[f],n,r,i,o)}i.add(u)}(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),i=n(1),o=n(7);function u(t,e){return void 0===e&&(e=o.a),function(n){return n.lift(new c(t,e))}}var c=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.a(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.a);function a(t){t.debouncedNext()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(25),i=n(16),o=n(44),u=n(27),c=n(37),s=n(15);function a(t,e){var n=arguments.length>=2;return function(a){return a.pipe(t?Object(i.a)((function(e,n){return t(e,n,a)})):s.a,Object(o.a)(1),n?Object(u.a)(e):Object(c.a)((function(){return new r.a})))}}},function(t,e,n){t.exports=n(82)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var n=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),r=function(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e},i=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set}catch(t){return!1}})()||function(){var o=function t(n){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var r=e(n);if("undefined"===r);else if("string"===r)""!==n&&this._fromString(n);else if(n instanceof t){var i=this;n.forEach((function(t,e){i.append(e,t)}))}else{if(null===n||"object"!==r)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(n))for(var o=0;o<n.length;o++){var u=n[o];if("[object Array]"!==Object.prototype.toString.call(u)&&2===u.length)throw new TypeError("Expected [string, any] as entry at index "+o+" of URLSearchParams's input");this.append(u[0],u[1])}else for(var c in n)n.hasOwnProperty(c)&&this.append(c,n[c])}},u=o.prototype;u.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},u.delete=function(t){delete this._entries[t]},u.get=function(t){return t in this._entries?this._entries[t][0]:null},u.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},u.has=function(t){return t in this._entries},u.set=function(t,e){this._entries[t]=[String(e)]},u.forEach=function(t,e){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)t.call(e,n[i],r,this)}},u.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),r(t)},u.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),r(t)},u.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),r(t)},n&&(u[Symbol.iterator]=u.entries),u.toString=function(){var t=[];return this.forEach((function(e,n){t.push(i(n)+"="+i(e))})),t.join("&")},t.URLSearchParams=o}();var u=t.URLSearchParams.prototype;"function"!=typeof u.sort&&(u.sort=function(){var t=this,e=[];this.forEach((function(n,r){e.push([r,n]),t._entries||t.delete(r)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var n=0;n<e.length;n++)this.append(e[n][0],e[n][1])}),"function"!=typeof u._fromString&&Object.defineProperty(u,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,n){e.push(n)}));for(var n=0;n<e.length;n++)this.delete(e[n])}var r,i=(t=t.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,n=function(e,n){"string"!=typeof e&&(e=String(e));var r,i=document;if(n&&(void 0===t.location||n!==t.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(t){throw new Error("URL unable to set base "+n+" due to "+t)}}var o=i.createElement("a");o.href=e,r&&(i.body.appendChild(o),o.href=o.href);var u=i.createElement("input");if(u.type="url",u.value=e,":"===o.protocol||!/:/.test(o.href)||!u.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var c=new t.URLSearchParams(this.search),s=!0,a=!0,f=this;["append","delete","set"].forEach((function(t){var e=c[t];c[t]=function(){e.apply(c,arguments),s&&(a=!1,f.search=c.toString(),a=!0)}})),Object.defineProperty(this,"searchParams",{value:c,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,a&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(r,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),n.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},n.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=n}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(n){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(81))},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,"init",(function(){return be}));var i=n(75),o=n(16),u=n(9),c=n(44),s=n(4);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"success",u=window.isTestingTecton?window:t;u.postMessage({tectonic:!0,value:r.withDefault(""),status:o,type:e,protocol:n,guid:i},"*")}function l(t,e){f(window,t,"BROADCAST",e),window.isTestingTecton||Array.prototype.slice.call(document.querySelectorAll("tecton-platform-outlet, tecton-outlet, tecton-tab-pane")).forEach((function(n){var r=n.shadowRoot&&n.shadowRoot.querySelector("iframe");r&&r.contentWindow&&f(r.contentWindow,t,"BROADCAST",e)}))}function h(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e.pipe(Object(o.a)((function(e){return e.data.type===t&&(!r||e.data.guid===r)&&e.data.protocol===n})),Object(u.a)((function(e){return"success"===e.data.status?{status:"success",value:e.data.value&&JSON.parse(e.data.value),sender:e.source,type:t,guid:e.data.guid}:{status:"error",message:e.data.value&&JSON.parse(e.data.value).message,sender:e.source,type:t,guid:e.data.guid}})))}function p(t){if("success"===t.status)return t;throw t}function d(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;f(t,e,"RESPONSE",s.Maybe.maybe(n).map(JSON.stringify),r,i)}function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=S(t);if(e){var i=S(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?_(t):e}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(u,t);var e,n,r,i=w(u);function u(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(n=i.call(this)).domains=new Set,n.configSubscription=t.subscribe(n.getConfigDomains.bind(_(n))),n.firehose$=n.firehose$.pipe(Object(o.a)((function(t){return e||n.domains.has(t.origin)}))),n}return e=u,(n=[{key:"teardown",value:function(){this.configSubscription.unsubscribe()}},{key:"getConfigDomains",value:function(t){var e,n=Array(window.location.origin.toString()),r=Object.keys(t.features).map((function(e){var r=t.features[e].additionalDomains;return r&&r.length>0&&(n=n.concat(r)),Object.keys(t.features[e].modules).map((function(n){var r=t.features[e].modules[n].url;try{return new URL(r,window.location.href).origin}catch(t){return""}}))})),i=(e=n).concat.apply(e,v(r));this.domains=function(t){return new Set(t.filter((function(t){return""!==t})))}(i)}}])&&m(e.prototype,n),r&&m(e,r),u}(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.messageNum=0,this.firehose$=Object(i.a)(window,"message").pipe(Object(o.a)((function(t){return t.data.tectonic})))}var e,n,r;return e=t,(n=[{key:"onMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MESSAGE",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return h(t,this.firehose$,e,n).pipe(Object(u.a)(p))}},{key:"sendRequest",value:function(t,e,n){var r=this.getNextMessageNumber();f(window.parent,t,"REQUEST",e,r,"success");var i=[];return i.push(this.onMessage(t,"RESPONSE",r).pipe(Object(c.a)(1)).toPromise()),n&&n.timeout&&i.push(new Promise((function(i,o){setTimeout((function(){o({status:"error",message:"The request ".concat(e," has timed out"),sender:window,type:t,guid:r})}),n.timeout)}))),Promise.race(i)}},{key:"sendResponse",value:function(t,e){return this.onMessage(t,"REQUEST").subscribe((function(t){return Promise.resolve().then((function(){if("success"===t.status)return e(t.value,t.sender);throw Error("Don't send Error Message as Request!")})).then((function(e){if(null!==e)return d(t.sender,t.type,e,t.guid,"success")})).catch((function(e){return d(t.sender,t.type,{message:e.message},t.guid,"error")}))}))}},{key:"getNextMessageNumber",value:function(){var t=this.messageNum+1;return this.messageNum=t,t}}])&&a(e.prototype,n),r&&a(e,r),t}());var j=n(59);function E(t,e,n){var r=t.getValue();return s.Maybe.maybe(r.features[e]).map((function(t){var r=Object.keys(t.modules).find((function(e){return t.modules[e].primary})),i=t.modules[n]||t.modules[r],o="".concat(e,".").concat(i.meta.moduleName);return{navigable:!!i.navigable,legacy:!!t.legacy,key:t.legacy?t.legacyRouteName:o}}))}function C(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function T(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return{value:t,children:n}}function N(t){return{value:t,children:[]}}var A,I=T("Q2Account",T("Held",T("Deposit",N("Checking"),N("MoneyMarket"),N("Savings"),N("CertificateOfDeposit"),N("Goal"),N("PlanBasedInvestment"),N("IRABasedInvestment"),N("BrokerageBasedInvestment")),T("Loan",N("Installment"),N("Commercial"),N("Mortgage"),N("LineOfCredit"),N("HomeEquity")),T("CreditCard",N("Visa"),N("MasterCard"),N("Discover"),N("AmericanExpress"))),T("External",T("PFM",N("Manual"),N("Aggregated")))),k={};function R(t){var e=t.split("::");if(2!==e.length)return[];var n=e[0];return function t(e,n){var r,i=[],o=C(n);try{for(o.s();!(r=o.n()).done;){var u=r.value;if(e===u.value){i=[u.value];break}if(u.children.length>0){var c=t(e,u.children);if(c.length>0){i=c.concat([u.value]);break}}}}catch(t){o.e(t)}finally{o.f()}return i}(e[1],[k[n]]).map((function(t){return"".concat(n,"::").concat(t)}))}!function(t){t.Account="Account"}(A||(A={})),k[A.Account]=I;var M={Goal:["D","G"]};function V(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return F(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D(t,e){return(function(t){return!!t.dataType}(e)?function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.split("::"),o=V(i,2),u=o[0],c=o[1],s=q[u][c]||q[u].default,a="string"==typeof s?Promise.resolve(s):s(t);return a.then((function(t){return"".concat(t).concat(n.map((function(t){return"/".concat(t)})).withDefault("")).concat(L(r))}))}(t,e.dataType,s.Maybe.maybe(e.dataId),e.params):Promise.resolve(e.route)).then((function(n){return t.sendRequest(n,e.method,e.body)}))}function L(t){var e=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&");return e&&"?".concat(e)||""}var q={Account:{default:"mobilews/account"},Accounts:{default:"mobilews/accounts"},FormData:{default:"",FundsTransfer:"mobilews/transactionForm/fundsTransfer"},Goals:{Categories:"hq/core/goalsCategoryMapping",CreateGoal:function(t){return function(t,e){var n=V(M[e],2),r=n[0],i=n[1];return U(t,r,i).then((function(t){return"mobilews/account/".concat(t)}))}(t,"Goal")}},FundsTransfer:{Create:"mobilews/transaction/fundsTransfer"},PRIVATE:{systemConfig:"q2Config"}};var B,U=function(t,e,n){return(Array.isArray(B)?Promise.resolve(B):t.sendRequest("hq/core/productAndType","GET").then((function(t){return B=t.response.data}))).then((function(t){return t.find((function(t){return t.hydraProductTypeCode===e&&t.hydraProductCode===n})).productID}))};function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $(t,e,n){return D(t,{dataType:e,dataId:n,method:"GET"}).then((function(t){return function(t,e){var n=W(t.split("::"),1)[0];return z["resolveTypeOf".concat(n)](e)}(e,t.response.data)})).catch((function(){return e}))}var z={resolveTypeOfAccount:function(t){return t.extended?"Account::".concat(Y["".concat(t.extended.hydraProductTypeCode).concat(t.extended.hydraProductCode)]||"Q2Account"):"Account::Q2Account"}},Y={DC:"Checking",DM:"MoneyMarket",DS:"Savings",DT:"CertificateOfDeposit",DG:"Goal",DP:"PlanBasedInvestment",DI:"IRABasedInvestment",DB:"BrokerageBasedInvestment",LL:"LineOfCredit",LI:"Installment",LC:"Commercial",LM:"Mortgage",LH:"HomeEquity",CM:"MasterCard",CV:"Visa",CD:"Discover",CA:"AmericanExpress"};function G(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).filter((function(e){var n=e.lastIndexOf(".");return e.slice(0,n).startsWith(t)})).reduce((function(t,n){var r=n.lastIndexOf(".");return t[n.substring(r+1)]=e[n],t}),Object.create({}))}function J(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Q(o,r,i,u,c,"next",t)}function c(t){Q(o,r,i,u,c,"throw",t)}u(void 0)}))}}function Z(t,e,n,r,i,o){return function(t,e,n){return s.Maybe.sequence([e,n]).map((function(e){var n=J(e,2),r=n[0],i=n[1];return $(t,r,i).then(s.Maybe.just)})).withDefaultFn((function(){return Promise.resolve(s.Maybe.nothing())}))}(t,r,i).then(function(){var e=X(regeneratorRuntime.mark((function e(n){var r,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tt(t.dynamicConfigFetch,o);case 2:return r=e.sent,i=n.map(R).bind((function(t){return et(r,t)})),u=s.Maybe.maybe(r[0]),e.abrupt("return",n.map((function(){return i})).altMap((function(){return s.Maybe.just(u)})).bind((function(t){return t})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).then(function(){var t=X(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r.map((function(t){var r="".concat(n,".").concat(t.featureName,".").concat(t.moduleName);return{moduleId:r,initialParams:G(r,e.getValue().currentParams),url:t.url,minHeight:t.meta.type.minHeight||"",tabLabelOverride:t.tabLabelOverride,formPostAuth:!!t.formPostAuth,loadingOptions:t.loadingOptions,additionalDomains:t.additionalDomains,allowDirectives:t.allowDirectives}})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}function tt(t,e){return Promise.all(e.map(function(){var e=X(regeneratorRuntime.mark((function e(n){var r,i,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n.featureName);case 2:return r=e.sent,i=r.modules[n.moduleName],o=r.additionalDomains,u=r.allowDirectives,e.abrupt("return",Object.assign(Object.assign(Object.assign({},n),i),{additionalDomains:o,allowDirectives:u}));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))}function et(t,e){return s.Maybe.maybe(t.find((function(t){return t.meta.type.context===e[0]}))).altMap((function(){return 0===e.length&&s.Maybe.nothing()||et(t,e.slice(1))}))}function nt(t,e){return rt.apply(this,arguments)}function rt(){return(rt=X(regeneratorRuntime.mark((function t(e,n){var r,i,o,u,c,s,a,f,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.length%3==1?"outlet":"module",i=e[0],o=e.length<5,"tectonOverpanel"!==i){t.next=11;break}return u=it({path:e.slice(2),outletModuloVal:2}),t.next=7,n(e[1]);case 7:l=t.sent,c=l.configuredOverpanels[e[2]],t.next=15;break;case 11:return u=it({path:e.slice(3),outletModuloVal:0}),t.next=14,n(e[1],e[2]);case 14:c=t.sent;case 15:if("outlet"!==r){t.next=20;break}return o?(s=c.featureName,a=c.moduleName):(s=e[e.length-3],a=e[e.length-2]),f=e[e.length-1],u=u.slice(0,-2),t.abrupt("return",{pathType:r,featureName:s,moduleName:a,outletName:f,configPath:u,pathOrigin:i,treeFromRoot:c});case 20:return o?(s=c.featureName,a=c.moduleName):(s=e[e.length-2],a=e[e.length-1]),t.abrupt("return",{pathType:r,featureName:s,moduleName:a,configPath:u,pathOrigin:i,treeFromRoot:c});case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function it(t){var e=t.path,n=t.outletModuloVal,r=n+2;return e.reduce((function(t,e,i){if(i%3===n)return t.concat(["configuredOutlets",e]);if(i%3===r&&2!==i){var o=t[t.length-1];return t[t.length-1]="".concat(o,"-").concat(e),t}return t.concat(e)}),[])}function ot(t,e){return t.reduce((function(t,e){if(Array.isArray(t)){var n=J(e.split("-"),2),r=n[0],i=n[1];return t[0].hasOwnProperty("tabLabel")||t[0].hasOwnProperty("menuItemLabel")?ut(t,ct(r,i)):t.find(ct(r,i))}return t[e]}),e)}function ut(t,e){var n=-1,r=t.find((function(t){return-1!==(n=t.modules.findIndex(e))}));if(r)return r.modules[n]}function ct(t,e){return function(n){return n.featureName===t&&n.moduleName===e}}function st(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function at(t,e,n,r,i){if(n.navigateTo){r.add("navigateTo");var o=t.onMessage("navigateTo").subscribe(function(){var t,r=(t=regeneratorRuntime.mark((function t(r){var i,o,u,c,s,a,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=r.value,o=i.moduleName,u=i.urlParams,c=i.queryParams,s=i.moduleId,(a=r.value.featureName)||!s){t.next=6;break}return t.next=5,nt(s.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 5:a=t.sent;case 6:(f=E(e,a,o)).map((function(t){if(t.navigable)if(t.legacy)n.navigateTo(!0,t.key,u,c);else{var r=e.getValue().features[a],i="tectonRoute.".concat(t.key);c&&n.updateParams&&n.updateParams(i,c,r.modules[t.key.split(".")[1]].meta.params),n.navigateTo(!1,t.key)}})),f.hasNothing&&n.navigateTo(!0,a,u,c);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){st(o,r,i,u,c,"next",t)}function c(t){st(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return r.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function ft(t,e){if(void 0===t)return!0;if(void 0===e)throw new Error("params for action are not configured, yet ".concat(JSON.stringify(t)," was passed to action"));var n=[];if(Object.keys(t).forEach((function(t){e[t]||n.push(t)})),n.length>0)throw new Error("The following parameter(s) passed to action is/are not configured for the action: [".concat(n.join(", "),"]"));return!0}function lt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function ht(t,e,n,r,i){if(n.showOverpanel){r.add("showOverpanel");var o=t.sendResponse("showOverpanel",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.moduleId.split("."),n.dynamicConfigFetch);case 2:return i=t.sent,t.next=5,n.dynamicConfigFetch(i.featureName).then((function(t){return t.configuredOverpanels[e.overpanelPath]}));case 5:return o=t.sent,u="".concat(i.featureName,".").concat(e.overpanelPath),t.next=9,n.dynamicConfigFetch(o.featureName).then((function(t){return t.modules[o.moduleName].meta.params}));case 9:return c=t.sent,e.params&&n.updateParams&&ft(e.params,c)&&n.updateParams("tectonOverpanel.".concat(u),e.params,c),t.abrupt("return",n.showOverpanel(u,!!(null===(r=e.options)||void 0===r?void 0:r.fullWidth)||!1));case 12:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){lt(o,r,i,u,c,"next",t)}function c(t){lt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function pt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function dt(t,e,n,r,i){if(e.setOverpanelTitle||e.setPageTitle){e.setOverpanelTitle&&r.add("setOverpanelTitle"),e.setPageTitle&&r.add("setPageTitle");var o=t.onMessage("setTitle").subscribe(function(){var t,n=(t=regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(n.value.moduleId.split("."),e.dynamicConfigFetch).then((function(t){return t.pathOrigin}));case 2:"tectonOverpanel"===t.sent&&e.setOverpanelTitle?e.setOverpanelTitle(n.value.title):e.setPageTitle&&e.setPageTitle(n.value.title);case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){pt(o,r,i,u,c,"next",t)}function c(t){pt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function bt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function vt(t,e,n,r,i){if(n.updateParams){r.add("setParams");var o=t.onMessage("setParams").subscribe(function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o,u,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.value,i=r.moduleId,o=r.params,t.next=3,nt(i.split("."),n.dynamicConfigFetch);case 3:return u=t.sent,t.next=6,n.dynamicConfigFetch(u.featureName).then((function(t){return t.modules[u.moduleName].meta.params}));case 6:c=t.sent,n.updateParams(i,o,c);case 8:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){bt(o,r,i,u,c,"next",t)}function c(t){bt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function yt(t,e){return t.reduce((function(t,n){return n in e?Object.assign(Object.assign({},t),function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,e[n])):t}),{})}function mt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function gt(t,e,n,r,i){if(n.logToServer){r.add("logToServer");var o=t.onMessage("logToServer").subscribe(function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.value.moduleId.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:r=t.sent,n.logToServer(r,e.value.message,e.value.level||"info");case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){mt(o,r,i,u,c,"next",t)}function c(t){mt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function wt(t,e,n,r,i){ht(t,0,n,r,i),function(t,e,n,r){if(e.closeOverpanel){n.add("closeOverpanel");var i=t.onMessage("closeOverpanel").pipe(Object(u.a)((function(t){return t.value}))).subscribe(e.closeOverpanel);r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),at(t,e,n,r,i),dt(t,n,0,r,i),vt(t,0,n,r,i),function(t,e,n,r){if(e.clearParams){n.add("clearParams");var i=t.onMessage("clearParams").subscribe((function(t){e.clearParams(t.value.moduleId)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.refetchAccountsNotification&&e.clearCacheByPrefix&&e.clearTransferCache){n.add("refetchAccountsNotification");var i=t.onMessage("refetchAccountsNotification").subscribe((function(){e.clearCacheByPrefix("mobilews/account"),e.clearTransferCache(),e.refetchAccountsNotification()}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){var i=e.getCurrentLanguage(),o=new j.a(i);e.languageChanged&&(n.add("languageChanged"),e.languageChanged((function(t){o.next(t)})));var u=o.subscribe((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en-US";l("streamLanguage",s.Maybe.just(JSON.stringify({langKey:t})))})),c=t.sendResponse("getCurrentLanguage",(function(){return Promise.resolve({langKey:o.getValue()})}));r.push((function(){[u,c].forEach((function(t){return t.unsubscribe()}))}))}(t,n,r,i),function(t,e,n,r){if(e.sendAlert){n.add("sendAlert");var i=t.onMessage("sendAlert").subscribe((function(t){var n=yt(["msg","message","styleType","closable","durationInMs","onClickNavigation"],t.value);e.sendAlert(n)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.showModal){n.add("sendModal");var i=t.sendResponse("sendModal",(function(t){return e.showModal(t).then((function(t){return{actionName:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.showLoadingModal){n.add("showLoadingModal");var i=t.onMessage("showLoadingModal").subscribe((function(t){e.showLoadingModal(t.value.title)}));r.push((function(){return i.unsubscribe()}))}if(e.clearLoadingModal){n.add("clearLoadingModal");var o=t.onMessage("clearLoadingModal").subscribe((function(){e.clearLoadingModal()}));r.push((function(){return o.unsubscribe()}))}}(t,n,r,i),function(t,e){var n=t.onMessage("printWindow").subscribe((function(){document.body.focus(),window.print()}));e.push((function(){return n.unsubscribe()}))}(t,i),function(t,e,n,r){if(e.keepAlive){n.add("keepAlive");var i=t.onMessage("keepAlive").subscribe(e.keepAlive);r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),gt(t,0,n,r,i),function(t,e,n,r){if(e.openURL){n.add("openURL");var i=t.onMessage("openURL").subscribe((function(t){var n=t.value,r=n.url,i=n.options;e.openURL(r,i)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n){e.add("scrollToTop");var r=t.onMessage("scrollToTop").subscribe((function(){window.scrollTo(0,0)}));n.push((function(){return r.unsubscribe()}))}(t,r,i),function(t,e,n,r){if(e.clearCacheByPrefix){n.add("clearCache"),n.add("cacheCleared");var i=t.sendResponse("clearCache",(function(t){return t.routePrefixes.forEach((function(t){e.clearCacheByPrefix(t),l("cacheCleared",s.Maybe.just(JSON.stringify({cleared:t})))})),Promise.resolve()}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.manageChanges){n.add("manageChanges");var i=t.sendResponse("manageChanges",(function(t){return e.manageChanges(t.verb,t.changes)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("actionRequired");var i=t.onMessage("actionRequired").subscribe((function(t){e.actionRequired(t.value.uuid,t.value.title,t.value.message)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i),function(t,e,n,r){if(e.actionRequired&&e.removeActionRequired){n.add("removeActionRequired");var i=t.onMessage("removeActionRequired").subscribe((function(t){e.removeActionRequired(t.value.uuid)}));r.push((function(){return i.unsubscribe()}))}}(t,n,r,i)}function xt(t){return function(t){if(Array.isArray(t))return _t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _t(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function St(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Ot(t,e,n,r,i){if(n.getFeatureConfig){r.add("getFeatureConfig");var o=t.sendResponse("getFeatureConfig",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.moduleId,t.next=3,nt(r.split("."),n.dynamicConfigFetch);case 3:return i=t.sent,t.next=6,n.dynamicConfigFetch(i.featureName).then((function(t){return t.configuredSystemVariables||[]}));case 6:if((o=t.sent).length){t.next=9;break}return t.abrupt("return",Promise.resolve({config:{}}));case 9:return t.abrupt("return",n.getFeatureConfig(o).then((function(t){return{config:t}})));case 10:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){St(o,r,i,u,c,"next",t)}function c(t){St(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function jt(){return window.scrollY}function Et(){return window.innerHeight}function Ct(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Pt(t,e,n,r){if(e.promptForMFA){n.add("promptForMFA");var i=t.sendResponse("promptForMFA",function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(n.moduleId.split("."),e.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:return r=t.sent,t.abrupt("return",e.promptForMFA(r,n));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Ct(o,r,i,u,c,"next",t)}function c(t){Ct(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}}function Tt(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function Nt(t,e,n,r,i){if("function"==typeof n.requestExtensionData){r.add("requestExtensionData");var o=t.sendResponse("requestExtensionData",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nt(e.moduleId.split("."),n.dynamicConfigFetch).then((function(t){return t.featureName}));case 2:return r=t.sent,t.abrupt("return",n.requestExtensionData(r,{route:e.route,body:e.body||{}}));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){Tt(o,r,i,u,c,"next",t)}function c(t){Tt(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}}function At(t,e){var n=t.subscribe((function(t){var e;(e=Object.assign(Object.assign({},t.changedParams),t.currentParams),Object.keys(e).reduce((function(t,e){var n=e.split(".").slice(0,-1).join(".");return-1===t.indexOf(n)&&t.push(n),t}),[])).forEach((function(e){var n=G(e,t.changedParams),r=G(e,t.currentParams);l("streamParams::"+e,s.Maybe.just(JSON.stringify({changedParams:n,currentParams:r})))}))}));e.push((function(){return n.unsubscribe()}))}function It(t,e,n,r,i,o){!function(t,e,n,r){e.refetchRequired&&(n.add("cacheCleared"),e.refetchRequired((function(t){l("cacheCleared",s.Maybe.just(JSON.stringify({cleared:t})))})))}(0,e,i),function(t,e,n,r){if(e.getCapabilities){n.add("canUser");var i=t.sendResponse("canUser",(function(t){var n=t.capabilities;return Promise.resolve({allowed:Object.values(e.getCapabilities.apply(e,xt(n))).every(Boolean)})}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),Ot(t,0,e,i,o),function(t,e,n,r){if(e.getPendoInfo){n.add("getPendoInfo");var i=t.sendResponse("getPendoInfo",(function(){return Promise.resolve(e.getPendoInfo())}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getPlatformInfo){n.add("platformInfo");var i=t.sendResponse("platformInfo",(function(t){return e.getPlatformInfo(t)}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getVersionInfo){n.add("getPlatformInfo");var i=t.sendResponse("getPlatformInfo",(function(){var t=e.getVersionInfo();return Promise.resolve(Object.assign(Object.assign({},t),{TECTON_PLATFORM_VERSION:"1.4.4"}))}));r.push((function(){i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getAuthToken){n.add("authToken");var i=t.sendResponse("authToken",(function(){return e.getAuthToken()}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r){if(e.getGlobalScripts){n.add("getGlobalScripts");var i=t.sendResponse("getGlobalScripts",(function(){return e.getGlobalScripts()}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o),function(t,e,n,r,i){if(n.isUUXPath&&n.navigateTo){r.add("isNavigable");var o=t.sendResponse("isNavigable",(function(t){var r=t.featureName,i=t.moduleName,o=E(e,r,i).map((function(t){return t.navigable})).withDefaultFn((function(){return n.isUUXPath(r)}));return Promise.resolve({navigable:o})}));i.push((function(){return o.unsubscribe()}))}}(t,r,e,i,o),function(t,e,n){function r(){l("platformScrollChanged",s.Maybe.just(JSON.stringify({scrollY:jt(),innerHeight:Et()})))}e.add("platformScrollChanged"),window.addEventListener("scroll",r);var i=t.sendResponse("getPlatformScroll",(function(){return Promise.resolve({scrollY:jt(),innerHeight:Et()})}));n.push((function(){i.unsubscribe(),window.removeEventListener("scroll",r)}))}(t,i,o),Pt(t,e,i,o),function(t,e,n,r){e.refetchRequired&&(n.add("refetchRequired"),e.refetchRequired((function(t){l("refetchRequired::".concat(t),s.Maybe.nothing())})))}(0,e,i),Nt(t,0,e,i,o),function(t,e,n,r){if(e.sendRequest){n.add("requestPlatformData"),n.add("requestPlatformData-v2");var i=t.sendResponse("requestPlatformData",(function(t){return D(e,t).then((function(e){return 200<=e.status&&e.status<300?{data:"GET"===t.method?e.response.data:e.response,status:"success"}:{data:{message:e.statusText},status:"error"}}))})),o=t.sendResponse("requestPlatformData-v2",(function(t){return D(e,t)}));r.push((function(){i.unsubscribe(),o.unsubscribe()}))}}(t,e,i,o),At(n,o),function(t,e,n,r){if(e.takePicture){n.add("takePicture");var i=t.sendResponse("takePicture",(function(t){var n=t.overlayText,r=t.helpText;return e.takePicture({overlayText:n,helpText:r}).then((function(t){return{picture:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o)}var kt=n(74),Rt=n(64),Mt=n(67),Vt=n(77),Ft=n(76);function Dt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||qt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(t){return function(t){if(Array.isArray(t))return Bt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||qt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){if(t){if("string"==typeof t)return Bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(t,e):void 0}}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ut=[{name:"name",reflectAs:String},{name:"minHeight",reflectAs:String},{name:"overpanel",reflectAs:Boolean}];var Wt=Object(kt.createSetupElement)((function(t,e){var n=e.messageBus,r=e.props,i=e.moduleId,c=e.tectonOutletAdaptor,s=e.resize;return Object(kt.generateCustomElementWrapper)(t,(function(t,e){var r=new j.a(document.createElement("div")),a=new j.a(!1),f=e.pipe(Object(u.a)((function(t){return t.name})),Object(o.a)((function(t){return!!t})),Object(u.a)((function(t){var e=i?"".concat(i,"."):"";return"".concat(e).concat(t)})),Object(Mt.a)(),Object(Vt.a)()).subscribe((function(i){var o=c(n,i,t,e,s),u=o.DOM$.subscribe(r),f=o.settled$.subscribe(a),h=o.teardown$.subscribe(l),p=o.effect$.subscribe((function(e){t.__attached?e():t.__onAttached.push(e)}));o.teardown$.next((function(){u.unsubscribe(),f.unsubscribe(),h.unsubscribe(),p.unsubscribe()}))})),l=new j.a((function(){f.unsubscribe()}));return{DOM$:r,settled$:a,teardown$:l}}),{useShadowDOM:!0,props:Ut.concat(r),css:"\n .root {\n height: 100%;\n width: 100%;\n }\n .outlet-wrapper.scrollable {\n height: 100%;\n }\n .outlet-wrapper .loading-wrapper {\n height: 44px;\n width: 100%;\n align-items: center;\n justify-content: center;\n }\n .outlet-wrapper .loading-wrapper:not([hidden]) {\n display: flex;\n }\n .outlet-wrapper.scrollable .loading-wrapper,\n .outlet-wrapper.scrollable iframe {\n height: 100%;\n }\n .outlet-wrapper iframe {\n width: 100%;\n height: auto;\n border: none;\n }\n .outlet-wrapper iframe:not([hidden]) {\n display: inline-block;\n }\n "})}));function Ht(t,e,n,r,i,o,u,c,s,a){var f=document.createElement("div");f.className="outlet-wrapper";var l=document.createElement("slot");l.name="loading-wrapper";var h=[],p=document.createElement("iframe");if(c){var d=document.createElement("form");n.forEach((function(t){var e=document.createElement("input");e.name=t.key,e.setAttribute("value",t.value),d.appendChild(e)})),d.hidden=!0,d.method="post",d.action=t,d.target=e,d.enctype="multipart/form-data",p.name=e,f.appendChild(d),h.push((function(){d.submit(),f.removeChild(d)}))}else p.src=t;p.title=r,p.dataset.moduleId=e,p.style.maxHeight=i,p.style.maxWidth=o,p.allow=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["geolocation","camera"],n=arguments.length>2?arguments[2]:void 0,r=new URL(n),i=["'self'","".concat(r.origin)];t&&t.length>0&&(i=[].concat(Lt(i),Lt(t)));return e.reduce((function(t,e){return t+"".concat(e," ").concat(i.join(" "),"; ")}),"")}(s,a,t),f.appendChild(p);return h.push((function(){p.contentWindow&&p.contentWindow.postMessage("".concat("[iFrameSizer]").concat(e,":0:false:false:32:true:true:null:documentElementOffset"),"*")})),p.onload=function(){h.forEach((function(t){t()})),p.onload=function(){}},u?f.classList.add("scrollable"):(p.style.setProperty("overflow-y","hidden"),p.scrolling="no"),p.hidden=!0,f.appendChild(l),f}function $t(t){var e=[];if(t&&t.loaders){for(var n=t.loaders.reduce((function(t,e){return e.row>t?e.row:t}),0),r=0;r<n;r++)e.push([]);var i,o=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=qt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}(t.loaders);try{for(o.s();!(i=o.n()).done;){var u,c=i.value,s=document.createElement("q2-loading");s.setAttribute("shape",c.shape),s.setAttribute("type",c.type),s.className="q2-col",c.classList&&(u=s.classList).add.apply(u,Lt(c.classList)),c.style&&s.setAttribute("style",c.style),c.modifiers&&s.setAttribute("modifiers",c.modifiers),c.counts&&s.setAttribute("counts",c.counts),c.ariaLabel&&s.setAttribute("ariaLabel",c.ariaLabel),e[c.row-1].push(s)}}catch(t){o.e(t)}finally{o.f()}}else{var a=document.createElement("q2-loading");e.push([]),a.classList.add("mrg(a)"),e[0].push(a)}return e}var zt=n(48);function Yt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=Kt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function Gt(t){return function(t){if(Array.isArray(t))return Qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Kt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||Kt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kt(t,e){if(t){if("string"==typeof t)return Qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qt(t,e):void 0}}function Qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Xt=[{name:"routeName"},{name:"configTree"}];function Zt(t,e,n,r){return function(c,a,l,h){var p,d=document.createElement("div"),b=new j.a(d),v=new j.a(!1),y=new j.a((function(){})),m=function(){return{loaderWrapper:l.shadowRoot.host.querySelector("div[slot='loading-wrapper']"),iframeEl:l.shadowRoot.querySelector("iframe"),minHeight:h.getValue().minHeight}},g=function(){return p},w=function(t,e,n){return t.onMessage("setFetching").pipe(Object(o.a)((function(t){return t.value.moduleId===e()}))).subscribe((function(t){var e=n(),r=e.loaderWrapper,i=e.iframeEl,o=e.minHeight,u=void 0===o?"0px":o;if(r&&i){var c=t.value.fetching;r.hidden=!c,i.hidden=c,r.style.minHeight=c?u:"0px"}}))}(c,g,m),x=function(t,e,n){return t.sendResponse("requestOutletInfo",(function(t){if(t.moduleId!==e())return null;var r=n().iframeEl;return Promise.resolve(r.getBoundingClientRect())}))}(c,g,m),_=new j.a((function(){w.unsubscribe(),x.unsubscribe()})),S=h.pipe(Object(u.a)((function(t){return t.configTree})),Object(o.a)((function(t){return!!t})),Object(Mt.a)()),O=new j.a(!1),E=h.pipe(Object(u.a)((function(t){return t.overpanel})),Object(o.a)((function(t){return"boolean"==typeof t})),Object(Mt.a)()).subscribe(O),C=h.pipe(Object(u.a)((function(t){return t.routeName})),Object(o.a)((function(t){return!!t})),Object(Mt.a)()),P=Object(zt.b)(S,O,C).subscribe((function(d){var w=Jt(d,3),x=w[0],S=w[1],O=w[2];p="".concat(a,".").concat(O);var j,C,T,N,A,I=t.getValue(),k=h.getValue().minHeight,R=I.features[x.featureName],M=I.features[x.featureName].modules[x.moduleName],V=!!R.modules[x.moduleName].formPostAuth,F=R.modules[x.moduleName].url,D=R.additionalDomains,L=R.allowDirectives,q=V&&r?r(F):F,B=(j=q,C=Object.assign(Object.assign({"tct-id":p},G(p,e.getValue().currentParams)),{"tct-maxHeight":l.style.maxHeight,"tct-maxWidth":l.style.maxWidth}),T=new URL(j,window.location.toString()),N=Object.keys(C).map((function(t){return"".concat(t,"=").concat(C[t])})).join("&"),A=T.search?"".concat(T.search,"&").concat(N):"?".concat(N),T.search=A,T.href);if(!S){var U=function(t,e,n,r){var c=Object(i.a)(window,"message").pipe(Object(o.a)((function(t){return"string"==typeof t.data&&t.data.includes("iFrameSizer")})),Object(u.a)((function(t){var e=Dt(t.data.substr("[iFrameSizer]".length).split(":"),2);return{value:{moduleId:e[0],height:e[1]}}}))),s=t.onMessage("resizeIframe");return Object(Rt.a)(c,s).pipe(Object(o.a)((function(t){return t.value.moduleId===e()})),Object(Mt.a)((function(t,e){return t.value.height===e.value.height})),Object(Ft.a)(5)).subscribe((function(t){var e=t.value.height,i=n().iframeEl;i&&(i.style.setProperty("height","".concat(e,"px")),r&&r())}))}(c,g,m);_.next((function(){U.unsubscribe()}))}var W=function(t,e,n){return t.onMessage("setTitle").pipe(Object(o.a)((function(t){return t.value.moduleId===e()}))).subscribe((function(t){n().iframeEl.title=t.value.title}))}(c,g,m);_.next((function(){W.unsubscribe()}));var H=Ht(B,p,n?n():[],"".concat(x.featureName,"-").concat(x.moduleName),l.style.maxHeight,l.style.maxWidth,S,V,D,L),$=document.createElement("div");$.style.minHeight=k||"0px";var z=[];if(M.loadingOptions){if(z=$t(M.loadingOptions),M.loadingOptions.outlet){var Y,J=M.loadingOptions.outlet;J.style&&$.setAttribute("style",J.style),J.classList&&(Y=$.classList).add.apply(Y,Gt(J.classList))}}else z=$t();var K,Q=Yt(z);try{for(Q.s();!(K=Q.n()).done;){var X=K.value,Z=document.createElement("div");Z.className="q2-row";var tt,et=Yt(X);try{for(et.s();!(tt=et.n()).done;){var nt=tt.value;Z.appendChild(nt)}}catch(t){et.e(t)}finally{et.f()}$.appendChild(Z)}}catch(t){Q.e(t)}finally{Q.f()}$.slot="loading-wrapper",$.setAttribute("data-tecton-module",""),b.next(H),y.next((function(){l.firstChild?l.replaceChild($,l.firstChild):l.appendChild($),v.next(!0)})),_.next((function(){var t,e;E.unsubscribe(),P.unsubscribe(),t="clearParams",e=s.Maybe.just(JSON.stringify({moduleId:p})),f(window.parent,t,"MESSAGE",e)}))}));return{DOM$:b,settled$:v,teardown$:_,effect$:y}}}function te(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}var ee="".concat(window.location.origin).concat(window.location.pathname.replace(/\/uux\.aspx/i,""));function ne(t,e,n,r,i){var o,u=t.sendResponse("getCustomerAssetPath",(function(t){var e=t.subPath;return Promise.resolve({path:re(n.getCustomerSpecificAssetPath(e))})}));n.getCustomLanguageURL&&(e.add("getCustomLanguageURL"),o=t.sendResponse("getCustomLanguageURL",function(){var t,e=(t=regeneratorRuntime.mark((function t(e){var r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.moduleId,i=e.langKey,t.next=3,nt(r.split("."),n.dynamicConfigFetch);case 3:return o=t.sent,t.abrupt("return",Promise.resolve({path:re(n.getCustomLanguageURL("".concat(i,"_").concat(o.featureName,".json")))}));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){te(o,r,i,u,c,"next",t)}function c(t){te(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return e.apply(this,arguments)}}()));var c=t.sendResponse("getBaseAssetPath",(function(t){var e=t.subPath;return Promise.resolve({path:re(n.getBaseAssetPath(e))})})),s=t.sendResponse("getNgamBaseUrl",(function(){return Promise.resolve({ngamBase:ee})}));i.push((function(){u.unsubscribe(),c.unsubscribe(),s.unsubscribe(),o&&o.unsubscribe()}))}function re(t){return/^http/.test(t)?t:"".concat(window.location.origin,"/").concat(t)}function ie(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function oe(t,e,n,r,i){var o=e.sendResponse("resolveTabs",function(){var e,n=(e=regeneratorRuntime.mark((function e(n){var i,o,u,c,a,f,l,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),u=t.dynamicConfigFetch(i.featureName),e.next=7,u;case 7:return c=e.sent,e.next=10,u.then((function(t){return t.modules[i.moduleName]}));case 10:return a=e.sent,f=a.meta.outlets[i.outletName],l="None"===f.context?s.Maybe.nothing():s.Maybe.just(f.context),h=n.contextValue?s.Maybe.just(n.contextValue):s.Maybe.nothing(),p=o.configuredOutlets[i.outletName],e.abrupt("return",ue(t,r,n.outletPath,l,h,p,c.additionalDomains,c.allowDirectives).then((function(t){return{resolvedTabs:t}})));case 16:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function u(t){ie(o,r,i,u,c,"next",t)}function c(t){ie(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}function ue(t,e,n,r,i,o,u,c){return Promise.all(o.map((function(o){return Z(t,e,n,r,i,o.modules||[]).then((function(t){return t.map((function(t){return{tabLabel:o.tabLabel,tab:t}}))})).catch((function(){return s.Maybe.nothing()}))}))).then((function(t){return s.Maybe.filterSomethings(t)})).then((function(t){return t.map((function(t){return{tabLabel:t.tabLabel,tabLabelOverride:t.tab.tabLabelOverride,moduleId:t.tab.moduleId,initialParams:t.tab.initialParams,url:t.tab.url,minHeight:t.tab.minHeight,formPostAuth:t.tab.formPostAuth,loadingOptions:t.tab.loadingOptions,additionalDomains:u,allowDirectives:c}}))}))}function ce(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function se(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){ce(o,r,i,u,c,"next",t)}function c(t){ce(o,r,i,u,c,"throw",t)}u(void 0)}))}}function ae(t,e,n,r,i,o){return Promise.all(o.map((function(o){return Z(t,e,n,r,i,o.modules||[]).then((function(e){return e.asyncMap(function(){var e=se(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.moduleId.split("."),t.dynamicConfigFetch);case 2:return r=e.sent,e.abrupt("return",{itemLabel:o.itemLabel,action:o.action,featureName:r.featureName,moduleName:r.moduleName});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})).then(s.Maybe.just).catch((function(){return s.Maybe.nothing()}))}))).then((function(t){return s.Maybe.filterSomethings(t)}))}function fe(t,e,n,r,i,o,u){try{var c=t[o](u),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,i)}function le(t,e,n,r){if(e.showOverpanel){n.add("navigateToOverpanel");var i=t.sendResponse("navigateToOverpanel",function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dynamicConfigFetch(n.featureName).then((function(t){return t.modules[n.moduleName].meta.params}));case 2:return i=t.sent,n.params&&e.updateParams&&ft(n.params,i)&&e.updateParams("tectonOverpanel.".concat(n.featureName,".").concat(n.moduleName),n.params,i),t.abrupt("return",e.showOverpanel(n.featureName,n.moduleName,!!(null===(r=n.options)||void 0===r?void 0:r.fullWidth)||!1));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function u(t){fe(o,r,i,u,c,"next",t)}function c(t){fe(o,r,i,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}}function he(t,e,n,r,i,o){!function(t,e,n){var r=t.sendResponse("getValueType",(function(t){return $(e,t.baseContext,t.valueId)}));n.push((function(){return r.unsubscribe()}))}(t,e,o),function(t,e,n){var r=t.sendResponse("getInitialParams",(function(t){return Promise.resolve({params:G(t.moduleId,e.getValue().currentParams)})}));n.push((function(){return r.unsubscribe()}))}(t,n,o),ne(t,i,e,0,o),function(t,e,n,r,i){var o=e.sendResponse("resolveFeature",function(){var e=X(regeneratorRuntime.mark((function e(n){var i,o,u,c,a,f,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(n.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),e.next=6,t.dynamicConfigFetch(i.featureName);case 6:return u=e.sent,c=u.modules[i.moduleName].meta.outlets[i.outletName],a="None"===c.context?s.Maybe.nothing():s.Maybe.just(c.context),f=n.contextValue?s.Maybe.just(n.contextValue):s.Maybe.nothing(),l=o.configuredOutlets[i.outletName],e.abrupt("return",Z(t,r,n.outletPath,a,f,l).then((function(t){return t.withDefault({moduleId:"",initialParams:{},url:"",minHeight:"",formPostAuth:!1,loadingOptions:{loaders:[{type:"spinner",shape:"half-circle",row:1}]}})})));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());i.push((function(){return o.unsubscribe()}))}(e,t,0,n,o),oe(e,t,0,n,o),function(t,e,n,r){var i=e.sendResponse("resolveMenu",function(){var e=se(regeneratorRuntime.mark((function e(r){var i,o,u,c,a,f,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nt(r.outletPath.split("."),t.dynamicConfigFetch);case 2:return i=e.sent,o=ot(i.configPath,i.treeFromRoot),e.next=6,t.dynamicConfigFetch(i.featureName).then((function(t){return t.modules[i.moduleName]}));case 6:if(u=e.sent,c=u.meta.outlets[i.outletName]){e.next=10;break}throw new Error("".concat(i.outletName," outlet not found in config"));case 10:return a="None"===c.context?s.Maybe.nothing():s.Maybe.just(c.context),f=r.contextValue?s.Maybe.just(r.contextValue):s.Maybe.nothing(),l=o.configuredOutlets[i.outletName],e.abrupt("return",ae(t,n,r.outletPath,a,f,l).then((function(t){return{resolvedMenuItems:t}})));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());r.push((function(){return i.unsubscribe()}))}(e,t,n,o),le(t,e,i,o),function(t,e,n){var r=t.sendResponse("getPlatformCapabilities",(function(){var t=Array.from(e);return Promise.resolve({capabilities:t})}));n.push((function(){return r.unsubscribe()}))}(t,i,o),function(t,e,n){var r=t.sendResponse("getAuthPayload",(function(){return Promise.resolve(e.getAuthPayload())}));n.push((function(){return r.unsubscribe()}))}(t,e,o),function(t,e,n,r){if(e.cdnOverride){n.add("cdnOverride");var i=t.sendResponse("cdnOverride",(function(){return e.cdnOverride().then((function(t){return{path:t}}))}));r.push((function(){return i.unsubscribe()}))}}(t,e,i,o)}n(80);function pe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function be(t,e){var n,i=new j.a({changedParams:{},currentParams:{}});ve(t),window.isTestingTecton?((n=window.tectonConfig$||new j.a(null)).next(t),window.tectonConfig$=n):n=new j.a(t);var o=new O(n,window.isTestingTecton),u=new Set,c=[o.teardown.bind(o)];return function(t){t.add("resizeIframe"),t.add("requestOutletInfo")}(u),function(t,e,n,r){if(e.setupDynamicPlatformAPI){e.setupDynamicPlatformAPI().forEach((function(t){return n.add(t)}));var i=t.sendResponse("executeDynamicPlatformAPI",(function(t){var n=t.functionName,r=t.args;return e.executeDynamicPlatformAPI(n,r)}));r.push((function(){return i.unsubscribe()}))}}(o,e,u,c),wt(o,n,e,u,c),It(o,e,i,n,u,c),function(t,e,n,r){if(e.getCurrentTheme){n.add("getCurrentTheme");var i=new j.a({path:re(e.getCustomerSpecificAssetPath("".concat(e.getCurrentTheme(),"-props.css")))});e.themeChanged&&(n.add("themeChanged"),e.themeChanged((function(t){i.next({path:re(e.getCustomerSpecificAssetPath("".concat(t,"-props.css")))})})));var o=i.subscribe((function(t){l("themeChanged",s.Maybe.maybe(t).map(JSON.stringify))})),u=t.sendResponse("getCurrentTheme",(function(){return Promise.resolve(i.getValue())}));r.push((function(){o.unsubscribe(),u.unsubscribe()}))}else n.add("ThemesNotSupported")}(o,e,u,c),he(o,e,i,0,u,c),function(t,e,n,r,i){Wt({messageBus:t,moduleId:"",props:Xt,tectonOutletAdaptor:Zt(e,n,r,i)})("tecton-platform-outlet")}(o,n,i,e.getAuthPayload,e.buildIframeURL),{tectonParamsChanged:function(t){i.next(t)},updateConfig:function(t){var e=n.getValue();!function t(e,n){Object.keys(n).forEach((function(i){if(!Array.isArray(n[i])&&!Array.isArray(e[i])&&e.hasOwnProperty(i)&&"object"===r(n[i]))return t(e[i],n[i]);e[i]=n[i]}))}(e,t),ve(e),n.next(e)},replaceConfig:function(t){ve(t),n.next(t)},configLookup:function(t,e){var r=n.getValue();if(!e){var i=r.features[t];if(!i)throw new Error("No FeatureManifest Found");return i}return r.features[t].modules[e].routeConfig||{featureName:t,moduleName:e}},configForRoute:function(t){var e=pe(t.split("."),2),r=e[0],i=e[1];return n.getValue().features[r].modules[i].routeConfig||{featureName:r,moduleName:i}},configForOverpanel:function(n,r){if(r)return e.dynamicConfigFetch(n,r);var i=pe(n.split("."),2),o=i[0],u=i[1];return Promise.resolve(t.features[o].configuredOverpanels[u])},teardown:function(){c.forEach((function(t){return t()}))}}}function ve(t){Object.keys(t.features).forEach((function(e){var n=t.features[e],r=n.configuredOverpanels;r&&Object.keys(r).forEach((function(t){r[t].featureName||(r[t].featureName=e)})),Object.keys(n.modules).forEach((function(t){n.modules[t].routeConfig||(n.modules[t].routeConfig={featureName:e,moduleName:t,configuredOutlets:{}}),Object.assign(n.modules[t].meta,{featureName:e,moduleName:t});var r=n.modules[t].url;r&&(r=(r=r.replace("{featureName}",e)).replace("{moduleName}",t),n.modules[t].url=r)}))}))}}])}));
|
|
17
17
|
//# sourceMappingURL=q2-tecton-platform.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "q2-tecton-platform",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/umd/q2-tecton-platform.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/mocha": "^7.0.2",
|
|
39
39
|
"@types/sinon": "^7.5.2",
|
|
40
40
|
"babel-loader": "^8.0.6",
|
|
41
|
-
"dry-suite": "^1.4.
|
|
41
|
+
"dry-suite": "^1.4.4",
|
|
42
42
|
"html-loader": "^0.5.5",
|
|
43
43
|
"karma": "^4.4.1",
|
|
44
44
|
"karma-chai": "^0.1.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"karma-typescript": "^4.1.1",
|
|
53
53
|
"karma-typescript-es6-transform": "^4.1.1",
|
|
54
54
|
"prettier": "^1.19.1",
|
|
55
|
-
"q2-tecton-common": "^1.4.
|
|
55
|
+
"q2-tecton-common": "^1.4.4",
|
|
56
56
|
"rxjs": "6.6.3",
|
|
57
57
|
"rxjs-tslint": "^0.1.7",
|
|
58
58
|
"sinon": "^9.0.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"tslint-config-prettier": "^1.18.0",
|
|
62
62
|
"url-polyfill": "^1.1.8"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "70953b2f956fe7df166e2a8fef11c51bb728a4d6"
|
|
65
65
|
}
|