gamebench-ng-toasty
Version:
Angular2 Toasty component shows growl-style alerts and messages for your web app - now with more clicking!
1 lines • 56.8 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define(["@angular/core","@angular/common","@angular/platform-browser"],e):"object"==typeof exports?exports["ng2-toasty"]=e(require("@angular/core"),require("@angular/common"),require("@angular/platform-browser")):t["ng2-toasty"]=e(t["@angular/core"],t["@angular/common"],t["@angular/platform-browser"])}(this,function(n,r,i){return s={},o.m=u=[function(t,e,o){"use strict";o.d(e,"a",function(){return n});var r=o(30),u=o(110),i=o(10),s=o(52),c=o(18),n=function(){function n(t){this._isScalar=!1,t&&(this._subscribe=t)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.i(u.a)(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),o.i(r.a)(e)?e.error(t):console.warn(t)}},n.prototype.forEach=function(r,t){var i=this;return new(t=a(t))(function(t,e){var n;n=i.subscribe(function(t){try{r(t)}catch(t){e(t),n&&n.unsubscribe()}},e,t)})},n.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},n.prototype[i.a]=function(){return this},n.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:o.i(s.a)(t)(this)},n.prototype.toPromise=function(t){var r=this;return new(t=a(t))(function(t,e){var n;r.subscribe(function(t){return n=t},function(t){return e(t)},function(){return t(n)})})},n.create=function(t){return new n(t)},n}();function a(t){if(!(t=t||(c.a.Promise||Promise)))throw new Error("no Promise impl found");return t}},function(t,e,n){"use strict";e.a=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};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(t,e,c){"use strict";c.d(e,"a",function(){return n});var a=c(4),f=c(33),l=c(20),p=c(48),n=function(){function s(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var t;return s.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this._parentOrParents,n=this._unsubscribe,r=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof s)t.remove(this);else if(null!==t)for(var i=0;i<t.length;++i){t[i].remove(this)}if(c.i(l.a)(n))try{n.call(this)}catch(t){e=t instanceof p.a?h(t.errors):[t]}if(c.i(a.a)(r)){i=-1;for(var o=r.length;++i<o;){var u=r[i];if(c.i(f.a)(u))try{u.unsubscribe()}catch(t){e=e||[],t instanceof p.a?e=e.concat(h(t.errors)):e.push(t)}}}if(e)throw new p.a(e)}},s.prototype.add=function(t){var e=t;if(!t)return s.EMPTY;switch(typeof t){case"function":e=new s(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof s)){var n=e;(e=new s)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=e._parentOrParents;if(null===r)e._parentOrParents=this;else if(r instanceof s){if(r===this)return e;e._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return e;r.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e},s.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},s.EMPTY=((t=new s).closed=!0,t),s}();function h(t){return t.reduce(function(t,e){return t.concat(e instanceof p.a?e.errors:e)},[])}},function(t,e,c){"use strict";c.d(e,"a",function(){return s});var n=c(1),a=c(20),f=c(39),r=c(2),u=c(29),i=c(18),o=c(31),s=function(i){function o(t,e,n){var r=i.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=f.a;break;case 1:if(!t){r.destination=f.a;break}if("object"==typeof t){t instanceof o?(r.syncErrorThrowable=t.syncErrorThrowable,(r.destination=t).add(r)):(r.syncErrorThrowable=!0,r.destination=new l(r,t));break}default:r.syncErrorThrowable=!0,r.destination=new l(r,t,e,n)}return r}return n.a(o,i),o.prototype[u.a]=function(){return this},o.create=function(t,e,n){var r=new o(t,e,n);return r.syncErrorThrowable=!1,r},o.prototype.next=function(t){this.isStopped||this._next(t)},o.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this))},o.prototype._next=function(t){this.destination.next(t)},o.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},o.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},o.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},o}(r.a),l=function(s){function t(t,e,n,r){var i,o=s.call(this)||this;o._parentSubscriber=t;var u=o;return c.i(a.a)(e)?i=e:e&&(i=e.next,n=e.error,r=e.complete,e!==f.a&&(u=Object.create(e),c.i(a.a)(u.unsubscribe)&&o.add(u.unsubscribe.bind(u)),u.unsubscribe=o.unsubscribe.bind(o))),o._context=u,o._next=i,o._error=n,o._complete=r,o}return n.a(t,s),t.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;i.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},t.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=i.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):c.i(o.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;c.i(o.a)(t)}}},t.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)};i.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),i.a.useDeprecatedSynchronousErrorHandling)throw t;c.i(o.a)(t)}},t.prototype.__tryOrSetError=function(e,t,n){if(!i.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return i.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0):(c.i(o.a)(t),!0)}return!1},t.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},t}(s)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),e.b=function(t){return t?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(t):i};var r=n(0),i=new r.a(function(t){return t.complete()})},function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return l});var i=n(1),r=n(0),o=n(3),u=n(2),s=n(19),c=n(41),a=n(29),f=function(n){function t(t){var e=n.call(this,t)||this;return e.destination=t,e}return i.a(t,n),t}(o.a),l=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.a(t,e),t.prototype[a.a]=function(){return new f(this)},t.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},t.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},t.prototype.error=function(t){if(this.closed)throw new s.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},t.prototype.complete=function(){if(this.closed)throw new s.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},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),u.a.EMPTY):this.isStopped?(t.complete(),u.a.EMPTY):(this.observers.push(t),new c.a(this,t))},t.prototype.asObservable=function(){var t=new r.a;return t.source=this,t},t.create=function(t,e){return new p(t,e)},t}(r.a),p=function(r){function t(t,e){var n=r.call(this)||this;return n.destination=t,n.source=e,n}return i.a(t,r),t.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},t.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},t.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},t.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.a.EMPTY},t}(l)},function(t,e,n){"use strict";e.a=function(t,e){return e?n.i(o.a)(t,e):t instanceof r.a?t:new r.a(n.i(i.a)(t))};var r=n(0),i=n(35),o=n(46)},function(t,e,n){"use strict";e.a=function(e,n){return function(t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new o(e,n))}};var r=n(1),i=n(3);var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(i){function t(t,e,n){var r=i.call(this,t)||this;return r.project=e,r.count=0,r.thisArg=n||r,r}return r.a(t,i),t.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)},t}(i.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(t,e){t.exports=n},function(t,e,u){"use strict";u.d(e,"a",function(){return c}),u.d(e,"b",function(){return f}),u.d(e,"c",function(){return d}),u.d(e,"d",function(){return p}),u.d(e,"e",function(){return b}),e.f=function(t){return new m(t)},u.d(e,"g",function(){return m});var n=u(11),s=(u.n(n),u(36)),r=u(57),i=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(u=(o<3?i(u):3<o?i(e,n,u):i(e,n))||u);return 3<o&&u&&Object.defineProperty(e,n,u),u},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=a=i([u.i(n.Injectable)()],a);function a(){}var f=l=i([u.i(n.Injectable)()],l);function l(){}var p,h,d=y=i([u.i(n.Injectable)()],y);function y(){this.limit=5,this.showClose=!0,this.position="bottom-right",this.timeout=5e3,this.theme="default"}(h=p=p||{})[h.ADD=0]="ADD",h[h.CLEAR=1]="CLEAR",h[h.CLEAR_ALL=2]="CLEAR_ALL";var b=function(t,e){this.type=t,this.value=e};var v,m=((v=g).prototype.default=function(t){this.add(t,"default")},g.prototype.info=function(t){this.add(t,"info")},g.prototype.success=function(t){this.add(t,"success")},g.prototype.wait=function(t){this.add(t,"wait")},g.prototype.error=function(t){this.add(t,"error")},g.prototype.warning=function(t){this.add(t,"warning")},g.prototype.clearAll=function(){this.emitEvent(new b(p.CLEAR_ALL))},g.prototype.clear=function(t){this.emitEvent(new b(p.CLEAR,t))},g.prototype.add=function(t,e){var n;if(!(n=u.i(s.b)(t)&&""!==t||u.i(s.c)(t)?{title:t.toString()}:t)||!n.title&&!n.msg)throw new Error("ng2-toasty: No toast title or message specified!");e=e||"default",this.uniqueCounter++;var r,i=this._checkConfigItem(this.config,n,"showClose");r=n.theme&&-1<v.THEMES.indexOf(n.theme)?n.theme:this.config.theme;var o={id:this.uniqueCounter,title:n.title,msg:n.msg,showClose:i,type:"toasty-type-"+e,theme:"toasty-theme-"+r,onAdd:n.onAdd&&u.i(s.a)(n.onAdd)?n.onAdd:null,onRemove:n.onRemove&&u.i(s.a)(n.onRemove)?n.onRemove:null,onClick:n.onClick&&u.i(s.a)(n.onClick)?n.onClick:null};o.timeout=n.hasOwnProperty("timeout")?n.timeout:this.config.timeout,this.emitEvent(new b(p.ADD,o)),n.onAdd&&u.i(s.a)(n.onAdd)&&n.onAdd.call(this,o)},g.prototype._checkConfigItem=function(t,e,n){return!1!==e[n]&&(!!e[n]||t[n])},g.prototype.emitEvent=function(t){this.eventSource&&this.eventSource.next(t)},g.THEMES=["default","material","bootstrap"],g=v=i([u.i(n.Injectable)(),o("design:paramtypes",[d])],g));function g(t){this.config=t,this.uniqueCounter=0,this.eventSource=new r.a,this.events=this.eventSource.asObservable()}},function(t,e,n){"use strict";e.a=function(t,e){return e?n.i(o.a)(t,e):new r.a(n.i(i.a)(t))};var r=n(0),i=n(53),o=n(27)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(1),r=function(r){function t(t,e){var n=r.call(this,t,e)||this;return n.scheduler=t,n.work=e,n.pending=!1,n}return i.a(t,r),t.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},t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},t.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},t.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))},t.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},t.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},t}(n(89).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var o=n(1),u=n(40),r=function(r){function i(t,e){void 0===e&&(e=u.a.now);var n=r.call(this,t,function(){return i.delegate&&i.delegate!==n?i.delegate.now():e()})||this;return n.actions=[],n.active=!1,n.scheduled=void 0,n}return o.a(i,r),i.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):r.prototype.schedule.call(this,t,e,n)},i.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}}},i}(u.a)},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";n.d(e,"a",function(){return i});var r=n(1),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(3).a)},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(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},function(t,e,o){"use strict";e.a=function(t,e,n,r,i){void 0===i&&(i=new u.a(t,n,r));if(i.closed)return;if(e instanceof c.a)return e.subscribe(i);return o.i(s.a)(e)(i)};var u=o(37),s=o(35),c=o(0)},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(114),i=(n.n(r),n(11)),o=(n.n(i),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(u=(o<3?i(u):3<o?i(e,n,u):i(e,n))||u);return 3<o&&u&&Object.defineProperty(e,n,u),u}),u=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},s=(c.prototype.transform=function(t){return this.domSanitized.bypassSecurityTrustHtml(t)},c=o([n.i(i.Pipe)({name:"safeHtml"}),u("design:paramtypes",[r.DomSanitizer])],c));function c(t){this.domSanitized=t}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(11),i=(n.n(r),n(12)),o=n(113),u=(n.n(o),this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(u=(o<3?i(u):3<o?i(e,n,u):i(e,n))||u);return 3<o&&u&&Object.defineProperty(e,n,u),u}),s=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=(a.prototype.close=function(t){t.preventDefault(),this.closeToastEvent.next(this.toast)},a.prototype.click=function(t){this.toast.onClick&&n.i(o.isFunction)(this.toast.onClick)&&this.toast.onClick.call(this,t,this.toast)},u([n.i(r.Input)(),s("design:type",i.b)],a.prototype,"toast",void 0),u([n.i(r.Output)("closeToast"),s("design:type",Object)],a.prototype,"closeToastEvent",void 0),a=u([n.i(r.Component)({selector:"ng2-toast",template:'\n <div class="toast" [ngClass]="[toast.type, toast.theme]" (click)="click($event)">\n <div *ngIf="toast.showClose" class="close-button" (click)="close($event)"></div>\n <div *ngIf="toast.title || toast.msg" class="toast-text">\n <span *ngIf="toast.title" class="toast-title" [innerHTML]="toast.title | safeHtml"></span>\n <br *ngIf="toast.title && toast.msg"/>\n <span *ngIf="toast.msg" class="toast-msg" [innerHtml]="toast.msg | safeHtml"></span>\n </div>\n </div>'})],a));function a(){this.closeToastEvent=new r.EventEmitter}},function(t,e,i){"use strict";i.d(e,"a",function(){return a});var r,n=i(11),o=(i.n(n),i(36)),u=i(12),s=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(u=(o<3?i(u):3<o?i(e,n,u):i(e,n))||u);return 3<o&&u&&Object.defineProperty(e,n,u),u},c=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},a=(r=f,Object.defineProperty(f.prototype,"position",{get:function(){return this._position},set:function(t){if(t){for(var e=!0,n=0;n<r.POSITIONS.length;n++)if(r.POSITIONS[n]===t){e=!1;break}e&&(t=this.config.position)}else t=this.config.position;this._position="toasty-position-"+t},enumerable:!0,configurable:!0}),f.prototype.ngOnInit=function(){var r=this;this.toastyService.events.subscribe(function(t){if(t.type===u.d.ADD){var e=t.value;r.add(e)}else if(t.type===u.d.CLEAR){var n=t.value;r.clear(n)}else t.type===u.d.CLEAR_ALL&&r.clearAll()})},f.prototype.closeToast=function(t){this.clear(t.id)},f.prototype.add=function(t){this.toasts.length>=this.config.limit&&this.toasts.shift(),this.toasts.push(t),t.timeout&&this._setTimeout(t)},f.prototype.clear=function(n){var r=this;if(!n)throw new Error("Please provide id of Toast to close");this.toasts.forEach(function(t,e){t.id===n&&(t.onRemove&&i.i(o.a)(t.onRemove)&&t.onRemove.call(r,t),r.toasts.splice(e,1))})},f.prototype.clearAll=function(){var e=this;this.toasts.forEach(function(t){t.onRemove&&i.i(o.a)(t.onRemove)&&t.onRemove.call(e,t)}),this.toasts=[]},f.prototype._setTimeout=function(t){var e=this;window.setTimeout(function(){e.clear(t.id)},t.timeout)},f.POSITIONS=["bottom-right","bottom-left","top-right","top-left","top-center","bottom-center","center-center"],s([i.i(n.Input)(),c("design:type",String),c("design:paramtypes",[String])],f.prototype,"position",null),f=r=s([i.i(n.Component)({selector:"ng2-toasty",template:'\n <div id="toasty" [ngClass]="[position]">\n <ng2-toast *ngFor="let toast of toasts" [toast]="toast" (closeToast)="closeToast(toast)"></ng2-toast>\n </div>'}),c("design:paramtypes",[u.c,u.g])],f));function f(t,e){this.config=t,this.toastyService=e,this._position="",this.toasts=[],this.position=""}},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(1),i=n(7),o=n(2),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.a(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.a.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.a)},function(t,e,r){"use strict";e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return r.i(i.a)(n)?(t.pop(),r.i(u.a)(t,n)):r.i(o.a)(t)};var i=r(6),o=r(13),u=r(27)},function(t,e,n){"use strict";e.a=function(r,i){return new o.a(function(t){var e=new u.a,n=0;return e.add(i.schedule(function(){n!==r.length?(t.next(r[n++]),t.closed||e.add(this.schedule())):t.complete()})),e})};var o=n(0),u=n(2)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(14),i=new(n(15).a)(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},function(t,e,n){"use strict";e.a=function(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof o.a?r:null}return!0};var o=n(3)},function(t,e,n){"use strict";e.a=function(t){setTimeout(function(){throw t},0)}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t){return null!==t&&"object"==typeof t}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(53),i=n(109),o=n(107),u=n(108),s=n(49),c=n(51),a=n(33),f=n(16),l=n(10),p=function(t){if(t&&"function"==typeof t[l.a])return n.i(u.a)(t);if(n.i(s.a)(t))return n.i(r.a)(t);if(n.i(c.a)(t))return n.i(i.a)(t);if(t&&"function"==typeof t[f.a])return n.i(o.a)(t);var e=n.i(a.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(t,e,n){"use strict";e.b=function(t){return"string"==typeof t},e.c=function(t){return"number"==typeof t},e.a=function(t){return"function"==typeof t}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(1),i=function(i){function t(t,e,n){var r=i.call(this)||this;return r.parent=t,r.outerValue=e,r.outerIndex=n,r.index=0,r}return r.a(t,i),t.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},t.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(3).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(5),i=n(26),o=n(44);var u=function(){function e(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return e.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()}},e.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()}},e.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return n.i(i.a)(this.value);case"E":return n.i(o.a)(this.error);case"C":return n.i(r.b)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(18),i=n(31),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;n.i(i.a)(t)},complete:function(){}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function n(t,e){void 0===e&&(e=n.now),this.SchedulerAction=t,this.now=e}return n.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},n.now=function(){return Date.now()},n}()},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(1),r=function(r){function t(t,e){var n=r.call(this)||this;return n.subject=t,n.subscriber=e,n.closed=!1,n}return i.a(t,r),t.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)}}},t}(n(2).a)},function(t,e,r){"use strict";e.a=function(n){return new i.a(function(e){var t;try{t=n()}catch(t){return void e.error(t)}return(t?r.i(o.a)(t):r.i(u.b)()).subscribe(e)})};var i=r(0),o=r(8),u=r(5)},function(t,e,n){"use strict";var r=n(0),i=n(34);i.a},function(t,e,n){"use strict";e.a=function(e,n){return n?new r.a(function(t){return n.schedule(i,0,{error:e,subscriber:t})}):new r.a(function(t){return t.error(e)})};var r=n(0);function i(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){"use strict";e.a=function(t){void 0===t&&(t=Number.POSITIVE_INFINITY);return n.i(r.a)(i.a,t)};var r=n(83),i=n(32)},function(t,e,n){"use strict";e.a=function(t,e){if(null!=t){if(n.i(s.a)(t))return n.i(r.a)(t,e);if(n.i(c.a)(t))return n.i(i.a)(t,e);if(n.i(a.a)(t))return n.i(o.a)(t,e);if(n.i(f.a)(t)||"string"==typeof t)return n.i(u.a)(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")};var r=n(87),i=n(88),o=n(27),u=n(86),s=n(103),c=n(51),a=n(49),f=n(104)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(94),i=new(n(95).a)(r.a)},function(t,e,n){"use strict";function r(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}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},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";e.a=function(t){return!n.i(r.a)(t)&&0<=t-parseFloat(t)+1};var r=n(4)},function(t,e,n){"use strict";e.a=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},function(t,e,n){"use strict";e.a=i;var r=n(34);function i(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)}:r.a}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(r){return function(t){for(var e=0,n=r.length;e<n&&!t.closed;e++)t.next(r[e]);t.complete()}}},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"providers",function(){return l}),n.d(e,"ToastyModule",function(){return p});var r=n(11),i=(n.n(r),n(54)),o=(n.n(i),n(12));n.d(e,"ToastOptions",function(){return o.a}),n.d(e,"ToastData",function(){return o.b}),n.d(e,"ToastyConfig",function(){return o.c}),n.d(e,"ToastyEventType",function(){return o.d}),n.d(e,"ToastyEvent",function(){return o.e}),n.d(e,"toastyServiceFactory",function(){return o.f}),n.d(e,"ToastyService",function(){return o.g});var u=n(24);n.d(e,"ToastyComponent",function(){return u.a});var s=n(23);n.d(e,"ToastComponent",function(){return s.a});var c=n(22);n.d(e,"SafeHtmlPipe",function(){return c.a});var a,f=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,u=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(u=(o<3?i(u):3<o?i(e,n,u):i(e,n))||u);return 3<o&&u&&Object.defineProperty(e,n,u),u},l=[o.c,{provide:o.g,useFactory:o.f,deps:[o.c]}],p=((a=h).forRoot=function(){return{ngModule:a,providers:l}},h=a=f([n.i(r.NgModule)({imports:[i.CommonModule],declarations:[s.a,u.a,c.a],exports:[s.a,u.a],providers:l})],h));function h(){}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var c,a=[],f=!1,l=-1;function p(){f&&c&&(f=!1,c.length?a=c.concat(a):l=-1,a.length&&h())}function h(){if(!f){var t=s(p);f=!0;for(var e=a.length;e;){for(c=a,a=[];++l<e;)c&&c[l].run();l=-1,e=a.length}c=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new d(t,e)),1!==a.length||f||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";n(0),n(60),n(82),n(10);var r=n(7);n.d(e,"a",function(){return r.a});n(58),n(59),n(25),n(98),n(28),n(47),n(97),n(96),n(40),n(2),n(3),n(38),n(52),n(34),n(32),n(105),n(99),n(100),n(19),n(48),n(102),n(61),n(62),n(63),n(64),n(42),n(5),n(65),n(8),n(66),n(67),n(68),n(69),n(70),n(71),n(43),n(26),n(72),n(73),n(74),n(75),n(76),n(44),n(77),n(78),n(79),n(46),n(18)},function(t,e,n){"use strict";var r=n(1),i=n(7),o=n(19);i.a},function(t,e,n){"use strict";var r=n(1),i=n(7),o=n(47),u=n(2),s=n(84),c=n(19),a=n(41),f=(i.a,function(){return function(t,e){this.time=t,this.value=e}}())},function(t,e,n){"use strict";var i=n(1),r=n(7),o=n(0),u=n(3),s=n(2),c=n(85),a=function(r){function t(t,e){var n=r.call(this)||this;return n.source=t,n.subjectFactory=e,n._refCount=0,n._isComplete=!1,n}return i.a(t,r),t.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},t.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new f(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},t.prototype.refCount=function(){return n.i(c.a)()(this)},t}(o.a).prototype,f=(a._subscribe,a._isComplete,a.getSubject,a.connect,a.refCount,function(r){function t(t,e){var n=r.call(this,t)||this;return n.connectable=e,n}return i.a(t,r),t.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},t.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()}},t}(r.b));u.a},function(t,e,n){"use strict";n(0),n(25),n(9),n(30),n(4),n(6)},function(t,e,n){"use strict";n(0),n(25),n(9),n(30),n(6),n(4)},function(t,e,n){"use strict";var r=n(1),i=(n(6),n(4),n(17)),o=n(21),u=(n(13),{});i.a},function(t,e,n){"use strict";n(26),n(80)},function(t,e,n){"use strict";n(0),n(4),n(9),n(33),n(8)},function(t,e,n){"use strict";n(0),n(4),n(20),n(9),Object.prototype.toString},function(t,e,n){"use strict";n(0),n(4),n(20),n(9)},function(t,e,n){"use strict";n(0),n(32),n(6)},function(t,e,n){"use strict";n(42),n(5)},function(t,e,n){"use strict";n(0),n(28),n(50)},function(t,e,n){"use strict";n(0),n(6),n(45),n(13)},function(t,e,n){"use strict";n(0),n(8),n(4),n(5)},function(t,e,n){"use strict";n(0),n(2)},function(t,e,n){"use strict";n(106),n(35),n(81),n(0)},function(t,e,n){"use strict";var r=n(1),i=(n(4),n(13),n(17)),o=n(21);i.a},function(t,e,n){"use strict";n(0)},function(t,e,n){"use strict";n(0),n(28),n(50),n(6)},function(t,e,n){"use strict";n(0),n(8),n(5)},function(t,e,n){"use strict";var r=n(1),i=(n(13),n(4)),o=n(3),u=n(17),s=n(21),c=n(16);o.a;var a=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 t&&t.done},t}(),f=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}(),l=function(i){function t(t,e,n){var r=i.call(this,t)||this;return r.parent=e,r.observable=n,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return r.a(t,i),t.prototype[c.a]=function(){return this},t.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},t.prototype.hasValue=function(){return 0<this.buffer.length},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(t,e){return n.i(s.a)(this,this.observable,this,e)},t}(u.a)},function(t,e,n){"use strict";e.a=function(){return n.i(r.a)(1)};var r=n(45)},function(t,e,n){"use strict";e.a=function(e,n){return function(t){return t.lift(new o(e,n))}};var r=n(1),i=n(3);var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(i){function t(t,e,n){var r=i.call(this,t)||this;return r.predicate=e,r.thisArg=n,r.count=0,r}return r.a(t,i),t.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)},t}(i.a)},function(t,e,n){"use strict";var r=n(1),i=n(3),o=n(2),u=n(0),s=n(7);i.a;var c=function(i){function t(t,e,n){var r=i.call(this,e)||this;return r.key=t,r.group=e,r.parent=n,r}return r.a(t,i),t.prototype._next=function(t){this.complete()},t.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},t}(i.a),a=function(i){function t(t,e,n){var r=i.call(this)||this;return r.key=t,r.groupSubject=e,r.refCountSubscription=n,r}return r.a(t,i),t.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new f(n)),e.add(r.subscribe(t)),e},t}(u.a),f=function(n){function t(t){var e=n.call(this)||this;return(e.parent=t).count++,e}return r.a(t,n),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(n.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(o.a)},function(t,e,u){"use strict";e.a=function e(i,o,n){void 0===n&&(n=Number.POSITIVE_INFINITY);{if("function"==typeof o)return function(t){return t.pipe(e(function(n,r){return u.i(a.a)(i(n,r)).pipe(u.i(c.a)(function(t,e){return o(n,t,r,e)}))},n))};"number"==typeof o&&(n=o)}return function(t){return t.lift(new f(i,n))}};var n=u(1),o=u(21),r=u(17),s=u(37),c=u(9),a=u(8);var f=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 i(t,this.project,this.concurrent))},t}(),i=function(i){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var r=i.call(this,t)||this;return r.project=e,r.concurrent=n,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return n.a(t,i),t.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},t.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,t,n)},t.prototype._innerSub=function(t,e,n){var r=new s.a(this,void 0,void 0);this.destination.add(r),u.i(o.a)(this,t,e,n,r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},t.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,0<e.length?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n(1),i=n(3),o=n(38);var u=function(i){function e(t,e,n){void 0===n&&(n=0);var r=i.call(this,t)||this;return r.scheduler=e,r.delay=n,r}return r.a(e,i),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 s(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),s=function(){return function(t,e){this.notification=t,this.destination=e}}()},function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new o(t))}};var i=n(1),r=n(3);var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(r){function t(t,e){var n=r.call(this,t)||this;return n.connectable=e,n}return i.a(t,r),t.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,1<e)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(r.a)},function(t,e,n){"use strict";e.a=function(e,n){if(e)return new r.a(function(r){var i,t=new o.a;return t.add(function(){i&&"function"==typeof i.return&&i.return()}),t.add(n.schedule(function(){i=e[u.a](),t.add(n.schedule(function(){if(!r.closed){var t,e;try{var n=i.next();t=n.value,e=n.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}}))})),t});throw new Error("Iterable cannot be null")};var r=n(0),o=n(2),u=n(16)},function(t,e,n){"use strict";e.a=function(r,i){return new o.a(function(e){var n=new u.a;return n.add(i.schedule(function(){var t=r[s.a]();n.add(t.subscribe({next:function(t){n.add(i.schedule(function(){return e.next(t)}))},error:function(t){n.add(i.schedule(function(){return e.error(t)}))},complete:function(){n.add(i.schedule(function(){return e.complete()}))}}))})),n})};var o=n(0),u=n(2),s=n(10)},function(t,e,n){"use strict";e.a=function(t,r){return new i.a(function(e){var n=new o.a;return n.add(r.schedule(function(){return t.then(function(t){n.add(r.schedule(function(){e.next(t),n.add(r.schedule(function(){return e.complete()}))}))},function(t){n.add(r.schedule(function(){return e.error(t)}))})})),n})};var i=n(0),o=n(2)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(1),i=function(n){function t(t,e){return n.call(this)||this}return r.a(t,n),t.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},t}(n(2).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(1),r=function(r){function t(t,e){var n=r.call(this,t,e)||this;return n.scheduler=t,n.work=e,n}return i.a(t,r),t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&0<n?r.prototype.requestAsyncId.call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&0<n||null===n&&0<this.delay)return r.prototype.recycleAsyncId.call(this,t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)},t}(n(14).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(1),i=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(15).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(1),o=n(101),r=function(r){function t(t,e){var n=r.call(this,t,e)||this;return n.scheduler=t,n.work=e,n}return i.a(t,r),t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&0<n?r.prototype.requestAsyncId.call(this,t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=o.a.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&0<n||null===n&&0<this.delay)return r.prototype.recycleAsyncId.call(this,t,e,n);0===t.actions.length&&(o.a.clearImmediate(e),t.scheduled=void 0)},t}(n(14).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(1),i=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(15).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(1),r=function(r){function t(t,e){var n=r.call(this,t,e)||this;return n.scheduler=t,n.work=e,n}return i.a(t,r),t.prototype.schedule=function(t,e){return void 0===e&&(e=0),0<e?r.prototype.schedule.call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,e){return 0<e||this.closed?r.prototype.execute.call(this,t,e):this._execute(t,e)},t.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&0<n||null===n&&0<this.delay?r.prototype.requestAsyncId.call(this,t,e,n):t.flush(this)},t}(n(14).a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(15).a)},function(t,e,n){"use strict";var r=n(1),i=n(14),o=(n(15).a,function(i){function o(t,e,n){void 0===n&&(n=t.index+=1);var r=i.call(this,t,e)||this;return r.scheduler=t,r.work=e,r.index=n,r.active=!0,r.index=t.index=n,r}return r.a(o,i),o.prototype.schedule=function(t,e){if(void 0===e&&(e=0),!this.id)return i.prototype.schedule.call(this,t,e);this.active=!1;var n=new o(this.scheduler,this.work);return this.add(n),n.schedule(t,e)},o.prototype.requestAsyncId=function(t,e,n){void 0===n&&(n=0),this.delay=t.frame+n;var r=t.actions;return r.push(this),r.sort(o.sortActions),!0},o.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},o.prototype._execute=function(t,e){if(!0===this.active)return i.prototype._execute.call(this,t,e)},o.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},o}(i.a))},function(t,e,n){"use strict";var r=n(90);r.a},function(t,e,n){"use strict";var r=n(92);r.a},function(t,e,n){"use strict";Error.prototype},function(t,e,n){"use strict";Error.prototype},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=1,i={};var o={setImmediate:function(t){var e=r++;return i[e]=t,Promise.resolve().then(function(){return function(t){var e=i[t];e&&e()}(e)}),e},clearImmediate:function(t){delete i[t]}}},function(t,e,n){"use strict";Error.prototype},function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t[r.a]};var r=n(10)},function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t[r.a]};var r=n(16)},function(t,e,n){"use strict";n(0)},function(t,e,n){"use strict";e.a=function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(16),r=function(r){return function(t){for(var e=r[i.a]();;){var n=e.next();if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof e.return&&t.add(function(){e.return&&e.return()}),t}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(10),i=function(n){return function(t){var e=n[r.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(31),i=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e}}},function(t,e,n){"use strict";e.a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)};var r=n(3),i=n(29),o=n(39)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,A,C){(function(u){var e=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},s=/%[sdj%]/g;A.format=function(t){if(!g(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,o=String(t).replace(s,function(t){if("%%"===t)return"%";if(i<=n)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n<i;u=r[++n])v(u)||!a(u)?o+=" "+u:o+=" "+c(u);return o},A.deprecate=function(t,e){if(void 0!==u&&!0===u.noDeprecation)return t;if(void 0===u)return function(){return A.deprecate(t,e).apply(this,arguments)};var n=!1;return function(){if(!n){if(u.throwDeprecation)throw new Error(e);u.traceDeprecation?console.trace(e):console.error(e),n=!0}return t.apply(this,arguments)}};var t,r={};function c(t,e){var n={seen:[],stylize:o};return 3<=arguments.length&&(n.depth=arguments[2]),4<=arguments.length&&(n.colors=arguments[3]),b(e)?n.showHidden=e:e&&A._extend(n,e),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),p(n,t,n.dept