(window.webpackJsonp1533216497106=window.webpackJsonp1533216497106||[]).push([[0],{107:function(e,t,n){var r,u,i={},o=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===u&&(u=r.apply(this,arguments)),u}),a=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,s=0,l=[],f=n(550);function addStylesToDom(e,t){for(var n=0;n=0&&l.splice(t,1)}function createStyleElement(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),addAttrs(t,e.attrs),insertStyleElement(e,t),t}function addAttrs(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function addStyle(e,t){var n,r,u,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var o=s++;n=c||(c=createStyleElement(t)),r=applyToSingletonTag.bind(null,n,o,!1),u=applyToSingletonTag.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",addAttrs(t,e.attrs),insertStyleElement(e,t),t}(t),r=function(e,t,n){var r=n.css,u=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&u;(t.convertToAbsoluteUrls||i)&&(r=f(r));u&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */");var o=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}.bind(null,n,t),u=function(){removeStyleElement(n),n.href&&URL.revokeObjectURL(n.href)}):(n=createStyleElement(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),u=function(){removeStyleElement(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else u()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=listToStyles(e,t);return addStylesToDom(n,t),function(e){for(var r=[],u=0;u2&&(t+=", ...");var l=a(this,(CompositeError.__proto__||Object.getPrototypeOf(CompositeError)).call(this,t));l.name="CompositeError",l.errorsRef=e;var f=l;return f.constructor=CompositeError,f.__proto__=CompositeError.prototype,l}return o(CompositeError,e),i(CompositeError,[{key:"errors",value:function(){return this.errorsRef.slice()}}]),CompositeError}(Error),l=function(e){function DummyError(e){u(this,DummyError);var t=a(this,(DummyError.__proto__||Object.getPrototypeOf(DummyError)).call(this,e));t.name="DummyError";var n=t;return n.constructor=DummyError,n.__proto__=DummyError.prototype,t}return o(DummyError,e),DummyError}(Error),f=function(e){function NoSuchElementError(e){u(this,NoSuchElementError);var t=a(this,(NoSuchElementError.__proto__||Object.getPrototypeOf(NoSuchElementError)).call(this,e));t.name="NoSuchElementError";var n=t;return n.constructor=NoSuchElementError,n.__proto__=NoSuchElementError.prototype,t}return o(NoSuchElementError,e),NoSuchElementError}(Error),h=function(e){function IllegalInheritanceError(e){u(this,IllegalInheritanceError);var t=a(this,(IllegalInheritanceError.__proto__||Object.getPrototypeOf(IllegalInheritanceError)).call(this,e));t.name="IllegalInheritanceError";var n=t;return n.constructor=IllegalInheritanceError,n.__proto__=IllegalInheritanceError.prototype,t}return o(IllegalInheritanceError,e),IllegalInheritanceError}(Error),p=function(e){function IllegalStateError(e){u(this,IllegalStateError);var t=a(this,(IllegalStateError.__proto__||Object.getPrototypeOf(IllegalStateError)).call(this,e));t.name="IllegalStateError";var n=t;return n.constructor=IllegalStateError,n.__proto__=IllegalStateError.prototype,t}return o(IllegalStateError,e),IllegalStateError}(Error),y=function(e){function IllegalArgumentError(e){u(this,IllegalArgumentError);var t=a(this,(IllegalArgumentError.__proto__||Object.getPrototypeOf(IllegalArgumentError)).call(this,e));t.name="IllegalArgumentError";var n=t;return n.constructor=IllegalArgumentError,n.__proto__=IllegalArgumentError.prototype,t}return o(IllegalArgumentError,e),IllegalArgumentError}(Error),v=function(e){function NotImplementedError(e){u(this,NotImplementedError);var t=a(this,(NotImplementedError.__proto__||Object.getPrototypeOf(NotImplementedError)).call(this,e));t.name="NotImplementedError";var n=t;return n.constructor=NotImplementedError,n.__proto__=NotImplementedError.prototype,t}return o(NotImplementedError,e),NotImplementedError}(Error),d=function(e){function TimeoutError(e){u(this,TimeoutError);var t=a(this,(TimeoutError.__proto__||Object.getPrototypeOf(TimeoutError)).call(this,e));t.name="TimeoutError";var n=t;return n.constructor=TimeoutError,n.__proto__=TimeoutError.prototype,t}return o(TimeoutError,e),TimeoutError}(Error),m=function(){function Either(e,t,n){u(this,Either),this._isRight=n,n?this._rightRef=t:this._leftRef=e}return i(Either,[{key:"isLeft",value:function(){return!this._isRight}},{key:"isRight",value:function(){return this._isRight}},{key:"contains",value:function(e){return this._isRight&&is(this._rightRef,e)}},{key:"exists",value:function(e){return this._isRight&&e(this._rightRef)}},{key:"filterOrElse",value:function(e,t){return this._isRight?e(this._rightRef)?this:Left(t()):this}},{key:"flatMap",value:function(e){return this._isRight?e(this._rightRef):this}},{key:"fold",value:function(e,t){return this._isRight?t(this._rightRef):e(this._leftRef)}},{key:"forAll",value:function(e){return!this._isRight||e(this._rightRef)}},{key:"get",value:function(){if(this._isRight)return this._rightRef;throw new f("left.get()")}},{key:"getOrElse",value:function(e){return this._isRight?this._rightRef:e}},{key:"getOrElseL",value:function(e){return this._isRight?this._rightRef:e()}},{key:"map",value:function(e){return this._isRight?Right(e(this._rightRef)):this}},{key:"forEach",value:function(e){this._isRight&&e(this._rightRef)}},{key:"swap",value:function(){return this._isRight?Left(this._rightRef):Right(this._leftRef)}},{key:"toOption",value:function(){return this._isRight?_.some(this._rightRef):_.none()}},{key:"equals",value:function(e){return null!=e&&(this._isRight?is(this._rightRef,e._rightRef):is(this._leftRef,e._leftRef))}},{key:"hashCode",value:function(){return this._isRight?hashCode(this._rightRef)<<2:hashCode(this._leftRef)<<3}}],[{key:"left",value:function(e){return Left(e)}},{key:"right",value:function(e){return Right(e)}},{key:"map2",value:function(e,t,n){return e.isLeft()?e:t.isLeft()?t:Right(n(e._rightRef,t._rightRef))}},{key:"map3",value:function(e,t,n,r){return e.isLeft()?e:t.isLeft()?t:n.isLeft()?n:Right(r(e._rightRef,t._rightRef,n._rightRef))}},{key:"map4",value:function(e,t,n,r,u){return e.isLeft()?e:t.isLeft()?t:n.isLeft()?n:r.isLeft()?r:Right(u(e._rightRef,t._rightRef,n._rightRef,r._rightRef))}},{key:"map5",value:function(e,t,n,r,u,i){return e.isLeft()?e:t.isLeft()?t:n.isLeft()?n:r.isLeft()?r:u.isLeft()?u:Right(i(e._rightRef,t._rightRef,n._rightRef,r._rightRef,u._rightRef))}},{key:"map6",value:function(e,t,n,r,u,i,o){return e.isLeft()?e:t.isLeft()?t:n.isLeft()?n:r.isLeft()?r:u.isLeft()?u:i.isLeft()?i:Right(o(e._rightRef,t._rightRef,n._rightRef,r._rightRef,u._rightRef,i._rightRef))}},{key:"tailRecM",value:function(e,t){for(var n=e;;){var r=t(n);if(r.isLeft())return r;var u=r.get();if(u.isRight())return Right(u.get());n=u.swap().get()}}}]),Either}();function Left(e){return new m(e,null,!1)}function Right(e){return new m(null,e,!0)}var _=function(){function Option(e,t){u(this,Option),this._isEmpty=null!=t?t:null===e||void 0===e,this._ref=e}return i(Option,[{key:"get",value:function(){if(this._isEmpty)throw new f("Option.get");return this._ref}},{key:"getOrElse",value:function(e){return this._isEmpty?e:this._ref}},{key:"orNull",value:function(){return this._isEmpty?null:this._ref}},{key:"orUndefined",value:function(){return this._isEmpty?void 0:this._ref}},{key:"getOrElseL",value:function(e){return this._isEmpty?e():this._ref}},{key:"orElse",value:function(e){return this._isEmpty?e:this}},{key:"orElseL",value:function(e){return this._isEmpty?e():this}},{key:"isEmpty",value:function(){return this._isEmpty}},{key:"nonEmpty",value:function(){return!this._isEmpty}},{key:"map",value:function(e){return this._isEmpty?g:Some(e(this._ref))}},{key:"mapN",value:function(e){return this._isEmpty?g:Option.of(e(this._ref))}},{key:"flatMap",value:function(e){return this._isEmpty?g:e(this._ref)}},{key:"chain",value:function(e){return this.flatMap(e)}},{key:"filter",value:function(e){return this._isEmpty||!e(this._ref)?g:this}},{key:"fold",value:function(e,t){return this._isEmpty?e():t(this._ref)}},{key:"contains",value:function(e){return!this._isEmpty&&is(this._ref,e)}},{key:"exists",value:function(e){return!this._isEmpty&&e(this._ref)}},{key:"forAll",value:function(e){return this._isEmpty||e(this._ref)}},{key:"forEach",value:function(e){this._isEmpty||e(this._ref)}},{key:"equals",value:function(e){return null!=e&&(this.nonEmpty()&&e.nonEmpty()?is(this.get(),e.get()):this.isEmpty()&&e.isEmpty())}},{key:"hashCode",value:function(){return this._isEmpty?2433880:null==this._ref?9735524:hashCode(this._ref)<<2}}],[{key:"of",value:function(e){return null!=e?Some(e):g}},{key:"some",value:function(e){return new Option(e,!1)}},{key:"none",value:function(){return g}},{key:"empty",value:function(){return g}},{key:"pure",value:function(e){return Some(e)}},{key:"map2",value:function(e,t,n){return e.nonEmpty()&&t.nonEmpty()?Some(n(e.get(),t.get())):g}},{key:"map3",value:function(e,t,n,r){return e.nonEmpty()&&t.nonEmpty()&&n.nonEmpty()?Some(r(e.get(),t.get(),n.get())):g}},{key:"map4",value:function(e,t,n,r,u){return e.nonEmpty()&&t.nonEmpty()&&n.nonEmpty()&&r.nonEmpty()?Some(u(e.get(),t.get(),n.get(),r.get())):g}},{key:"map5",value:function(e,t,n,r,u,i){return e.nonEmpty()&&t.nonEmpty()&&n.nonEmpty()&&r.nonEmpty()&&u.nonEmpty()?Some(i(e.get(),t.get(),n.get(),r.get(),u.get())):g}},{key:"map6",value:function(e,t,n,r,u,i,o){return e.nonEmpty()&&t.nonEmpty()&&n.nonEmpty()&&r.nonEmpty()&&u.nonEmpty()&&i.nonEmpty()?Some(o(e.get(),t.get(),n.get(),r.get(),u.get(),i.get())):g}},{key:"tailRecM",value:function(e,t){for(var n=e;;){var r=t(n);if(r.isEmpty())return g;var u=r.get();if(u.isRight())return Some(u.get());n=u.swap().get()}}}]),Option}();function Some(e){return new _(e,!1)}var g=new _(null,!0),k=function(){function Try(e,t,n){u(this,Try),this._isSuccess=n,n?this._successRef=e:this._failureRef=t}return i(Try,[{key:"isSuccess",value:function(){return this._isSuccess}},{key:"isFailure",value:function(){return!this._isSuccess}},{key:"get",value:function(){if(!this._isSuccess)throw this._failureRef;return this._successRef}},{key:"getOrElse",value:function(e){return this._isSuccess?this._successRef:e}},{key:"getOrElseL",value:function(e){return this._isSuccess?this._successRef:e()}},{key:"orNull",value:function(){return this._isSuccess?this._successRef:null}},{key:"orUndefined",value:function(){return this._isSuccess?this._successRef:void 0}},{key:"orElse",value:function(e){return this._isSuccess?this:e}},{key:"orElseL",value:function(e){return this._isSuccess?this:e()}},{key:"failed",value:function(){return this._isSuccess?Failure(new f("try.failed()")):Success(this._failureRef)}},{key:"fold",value:function(e,t){return this._isSuccess?t(this._successRef):e(this._failureRef)}},{key:"filter",value:function(e){if(!this._isSuccess)return this;try{return e(this._successRef)?this:Failure(new f("Predicate does not hold for "+this._successRef))}catch(e){return Failure(e)}}},{key:"flatMap",value:function(e){if(!this._isSuccess)return this;try{return e(this._successRef)}catch(e){return Failure(e)}}},{key:"chain",value:function(e){return this.flatMap(e)}},{key:"map",value:function(e){var t=this;return this._isSuccess?Try.of(function(){return e(t._successRef)}):this}},{key:"forEach",value:function(e){this._isSuccess&&e(this._successRef)}},{key:"recover",value:function(e){var t=this;return this._isSuccess?this:Try.of(function(){return e(t._failureRef)})}},{key:"recoverWith",value:function(e){try{return this._isSuccess?this:e(this._failureRef)}catch(e){return Failure(e)}}},{key:"toOption",value:function(){return this._isSuccess?Some(this._successRef):g}},{key:"toEither",value:function(){return this._isSuccess?Right(this._successRef):Left(this._failureRef)}},{key:"equals",value:function(e){return null!=e&&(this._isSuccess?e._isSuccess&&is(this._successRef,e._successRef):!e._isSuccess&&is(this._failureRef,e._failureRef))}},{key:"hashCode",value:function(){return this._isSuccess?hashCode(this._successRef):hashCode(this._failureRef)}}],[{key:"of",value:function(e){try{return Success(e())}catch(e){return Failure(e)}}},{key:"pure",value:function(e){return Try.success(e)}},{key:"unit",value:function(){return b}},{key:"success",value:function(e){return Success(e)}},{key:"failure",value:function(e){return Failure(e)}},{key:"raise",value:function(e){return Failure(e)}},{key:"map2",value:function(e,t,n){if(e.isFailure())return e;if(t.isFailure())return t;try{return Success(n(e._successRef,t._successRef))}catch(e){return Failure(e)}}},{key:"map3",value:function(e,t,n,r){if(e.isFailure())return e;if(t.isFailure())return t;if(n.isFailure())return n;try{return Success(r(e._successRef,t._successRef,n._successRef))}catch(e){return Failure(e)}}},{key:"map4",value:function(e,t,n,r,u){if(e.isFailure())return e;if(t.isFailure())return t;if(n.isFailure())return n;if(r.isFailure())return r;try{return Success(u(e._successRef,t._successRef,n._successRef,r._successRef))}catch(e){return Failure(e)}}},{key:"map5",value:function(e,t,n,r,u,i){if(e.isFailure())return e;if(t.isFailure())return t;if(n.isFailure())return n;if(r.isFailure())return r;if(u.isFailure())return u;try{return Success(i(e._successRef,t._successRef,n._successRef,r._successRef,u._successRef))}catch(e){return Failure(e)}}},{key:"map6",value:function(e,t,n,r,u,i,o){if(e.isFailure())return e;if(t.isFailure())return t;if(n.isFailure())return n;if(r.isFailure())return r;if(u.isFailure())return u;if(i.isFailure())return i;try{return Success(o(e._successRef,t._successRef,n._successRef,r._successRef,u._successRef,i._successRef))}catch(e){return Failure(e)}}},{key:"tailRecM",value:function(e,t){for(var n=e;;)try{var r=t(n);if(r.isFailure())return r;var u=r.get();if(u.isRight())return Success(u.get());n=u.swap().get()}catch(e){return Failure(e)}}}]),Try}();function Success(e){return new k(e,null,!0)}function Failure(e){return new k(null,e,!1)}var b=Success(void 0),w=function(){function Cancelable(){u(this,Cancelable)}return i(Cancelable,null,[{key:"of",value:function(e){return new O(e)}},{key:"empty",value:function(){return M}},{key:"collection",value:function(){for(var e=arguments.length,t=Array(e),n=0;n0?Math.floor(e):Math.ceil(e)};function x(e,t,n){return e>n?G:e<-n?U:e*t}var H=new(function(e){function Nanoseconds(){u(this,Nanoseconds);var e=a(this,(Nanoseconds.__proto__||Object.getPrototypeOf(Nanoseconds)).apply(this,arguments));return e.ord=0,e.label="nanoseconds",e}return o(Nanoseconds,q),i(Nanoseconds,[{key:"convert",value:function(e,t){return t.toNanos(e)}},{key:"toNanos",value:function(e){return e}},{key:"toMicros",value:function(e){return z(e/1e3)}},{key:"toMillis",value:function(e){return z(e/1e6)}},{key:"toSeconds",value:function(e){return z(e/1e9)}},{key:"toMinutes",value:function(e){return z(e/6e10)}},{key:"toHours",value:function(e){return z(e/(B/1))}},{key:"toDays",value:function(e){return z(e/(W/1))}}]),Nanoseconds}()),J=new(function(e){function Microseconds(){u(this,Microseconds);var e=a(this,(Microseconds.__proto__||Object.getPrototypeOf(Microseconds)).apply(this,arguments));return e.ord=1,e.label="microseconds",e}return o(Microseconds,q),i(Microseconds,[{key:"convert",value:function(e,t){return t.toMicros(e)}},{key:"toNanos",value:function(e){return x(e,1e3,z(G/1e3))}},{key:"toMicros",value:function(e){return e}},{key:"toMillis",value:function(e){return z(e/1e3)}},{key:"toSeconds",value:function(e){return z(e/1e6)}},{key:"toMinutes",value:function(e){return z(e/6e7)}},{key:"toHours",value:function(e){return z(e/36e8)}},{key:"toDays",value:function(e){return z(e/864e8)}}]),Microseconds}()),V=new(function(e){function Milliseconds(){u(this,Milliseconds);var e=a(this,(Milliseconds.__proto__||Object.getPrototypeOf(Milliseconds)).apply(this,arguments));return e.ord=2,e.label="milliseconds",e}return o(Milliseconds,q),i(Milliseconds,[{key:"convert",value:function(e,t){return t.toMillis(e)}},{key:"toNanos",value:function(e){return x(e,1e6,z(G/1e6))}},{key:"toMicros",value:function(e){return x(e,1e3,z(G/1e3))}},{key:"toMillis",value:function(e){return e}},{key:"toSeconds",value:function(e){return z(e/1e3)}},{key:"toMinutes",value:function(e){return z(e/6e4)}},{key:"toHours",value:function(e){return z(e/36e5)}},{key:"toDays",value:function(e){return z(e/864e5)}}]),Milliseconds}()),$=new(function(e){function Seconds(){u(this,Seconds);var e=a(this,(Seconds.__proto__||Object.getPrototypeOf(Seconds)).apply(this,arguments));return e.ord=3,e.label="seconds",e}return o(Seconds,q),i(Seconds,[{key:"convert",value:function(e,t){return t.toSeconds(e)}},{key:"toNanos",value:function(e){return x(e,1e9,z(G/1e9))}},{key:"toMicros",value:function(e){return x(e,1e6,z(G/1e6))}},{key:"toMillis",value:function(e){return x(e,1e3,z(G/1e3))}},{key:"toSeconds",value:function(e){return e}},{key:"toMinutes",value:function(e){return z(e/60)}},{key:"toHours",value:function(e){return z(e/3600)}},{key:"toDays",value:function(e){return z(e/86400)}}]),Seconds}()),K=new(function(e){function Minutes(){u(this,Minutes);var e=a(this,(Minutes.__proto__||Object.getPrototypeOf(Minutes)).apply(this,arguments));return e.ord=4,e.label="minutes",e}return o(Minutes,q),i(Minutes,[{key:"convert",value:function(e,t){return t.toMinutes(e)}},{key:"toNanos",value:function(e){return x(e,6e10,z(G/6e10))}},{key:"toMicros",value:function(e){return x(e,6e7,z(G/6e7))}},{key:"toMillis",value:function(e){return x(e,6e4,z(G/6e4))}},{key:"toSeconds",value:function(e){return x(e,60,z(G/60))}},{key:"toMinutes",value:function(e){return e}},{key:"toHours",value:function(e){return z(e/60)}},{key:"toDays",value:function(e){return z(e/1440)}}]),Minutes}()),Y=new(function(e){function Hours(){u(this,Hours);var e=a(this,(Hours.__proto__||Object.getPrototypeOf(Hours)).apply(this,arguments));return e.ord=5,e.label="hours",e}return o(Hours,q),i(Hours,[{key:"convert",value:function(e,t){return t.toHours(e)}},{key:"toNanos",value:function(e){return x(e,B/1,z(G/(B/1)))}},{key:"toMicros",value:function(e){return x(e,36e8,z(G/36e8))}},{key:"toMillis",value:function(e){return x(e,36e5,z(G/36e5))}},{key:"toSeconds",value:function(e){return x(e,3600,z(G/3600))}},{key:"toMinutes",value:function(e){return x(e,60,z(G/60))}},{key:"toHours",value:function(e){return e}},{key:"toDays",value:function(e){return z(e/24)}}]),Hours}()),Q=new(function(e){function Days(){u(this,Days);var e=a(this,(Days.__proto__||Object.getPrototypeOf(Days)).apply(this,arguments));return e.ord=6,e.label="days",e}return o(Days,q),i(Days,[{key:"convert",value:function(e,t){return t.toDays(e)}},{key:"toNanos",value:function(e){return x(e,W/1,z(G/(W/1)))}},{key:"toMicros",value:function(e){return x(e,864e8,z(G/864e8))}},{key:"toMillis",value:function(e){return x(e,864e5,z(G/864e5))}},{key:"toSeconds",value:function(e){return x(e,86400,z(G/86400))}},{key:"toMinutes",value:function(e){return x(e,1440,z(G/1440))}},{key:"toHours",value:function(e){return x(e,24,z(G/24))}},{key:"toDays",value:function(e){return e}}]),Days}()),Z=function(){function Duration(e,t){if(u(this,Duration),isNaN(e))throw new y("NaN is not supported for a Duration");this.duration=z(e),this.unit=t}return i(Duration,[{key:"isFinite",value:function(e){function isFinite(){return e.apply(this,arguments)}return isFinite.toString=function(){return e.toString()},isFinite}(function(){return isFinite(this.duration)})},{key:"toNanos",value:function(){return H.convert(this.duration,this.unit)}},{key:"toMicros",value:function(){return J.convert(this.duration,this.unit)}},{key:"toMillis",value:function(){return V.convert(this.duration,this.unit)}},{key:"toSeconds",value:function(){return $.convert(this.duration,this.unit)}},{key:"toMinutes",value:function(){return K.convert(this.duration,this.unit)}},{key:"toHours",value:function(){return Y.convert(this.duration,this.unit)}},{key:"toDays",value:function(){return Q.convert(this.duration,this.unit)}},{key:"convertTo",value:function(e){return new Duration(e.convert(this.duration,this.unit),e)}},{key:"negate",value:function(){switch(this.duration){case 1/0:return Duration.negInf();case-1/0:return Duration.inf();default:return new Duration(-this.duration,this.unit)}}},{key:"plus",value:function(e){if(!isFinite(this.duration)){if(!isFinite(e.duration)&&this.duration!==e.duration)throw new y("cannot deal with two infinities with different signs, as that would be a NaN");return this}if(0===e.duration)return this;if(0===this.duration)return e;if(!isFinite(e.duration))return e;var t=this,n=e;return n.unit.ord=0?"[end of time]":"[beginning of time]"}}],[{key:"of",value:function(e){return"number"==typeof e?Duration.millis(e):e}},{key:"zero",value:function(){return new Duration(0,Q)}},{key:"inf",value:function(){return new Duration(1/0,Q)}},{key:"negInf",value:function(){return new Duration(-1/0,Q)}},{key:"nanos",value:function(e){return new Duration(e,H)}},{key:"micros",value:function(e){return new Duration(e,J)}},{key:"millis",value:function(e){return new Duration(e,V)}},{key:"seconds",value:function(e){return new Duration(e,$)}},{key:"minutes",value:function(e){return new Duration(e,K)}},{key:"hours",value:function(e){return new Duration(e,Y)}},{key:"days",value:function(e){return new Duration(e,Q)}}]),Duration}(),X=function(){function DynamicRef(e){u(this,DynamicRef),this._previous=[],this.get=e}return i(DynamicRef,[{key:"set",value:function(e){return this.setL(function(){return e})}},{key:"setL",value:function(e){this._previous.push(this.get),this.get=e}},{key:"revert",value:function(){var e=this._previous.pop();e&&(this.get=e)}},{key:"bind",value:function(e,t){return this.bindL(function(){return e},t)}},{key:"bindL",value:function(e,t){var n=this.get,r=this._previous.slice(0);try{return this.get=e,t()}finally{this.get=n,this._previous=r}}}],[{key:"of",value:function(e){return new DynamicRef(e)}}]),DynamicRef}();function arrayBSearchInsertPos(e,t){return function(n){for(var r=0,u=e.length-1;r<=u;){var i=(r+u)/2|0,o=t(e[i]),a=i+1<=u?t(e[i+1]):void 0;if(o<=n&&(void 0===a||n30?30:t&t)}var ne=Object.freeze({arrayBSearchInsertPos:arrayBSearchInsertPos,iterableToArray:iterableToArray,lnOf2:ee,log2:log2,maxPowerOf2:te,nextPowerOf2:nextPowerOf2}),re=function(){function Scheduler(e){var t=this;switch(u(this,Scheduler),this.batchIndex=0,this.executionModel=e,e.type){case"alwaysAsync":this.executeBatched=this.executeAsync;break;case"synchronous":this.executeBatched=this.trampoline;break;case"batched":var n=e.recommendedBatchSize-1;this.executeBatched=function(e){var r=t.batchIndex+1&n;return r?(t.batchIndex=r,t.trampoline(e)):t.executeAsync(e)}}}return i(Scheduler,[{key:"scheduleWithFixedDelay",value:function(e,t,n){return function loop(e,r,u){return r.update(e.scheduleOnce(u,function(){n(),loop(e,r,t)}))}(this,L.empty(),e)}},{key:"scheduleAtFixedRate",value:function(e,t,n){return function loop(e,t,r,u){return t.update(e.scheduleOnce(r,function(){var r=e.currentTimeMillis();n();var i=e.currentTimeMillis()-r,o=Math.max(0,u-i);loop(e,t,u,o)}))}(this,L.empty(),"number"==typeof e?e:e.toMillis(),"number"==typeof t?t:t.toMillis())}}]),Scheduler}();re.global=X.of(function(){return se});var ue=function(){function ExecutionModel(e,t){switch(u(this,ExecutionModel),this.type=e,e){case"synchronous":this.recommendedBatchSize=te;break;case"alwaysAsync":this.recommendedBatchSize=1;break;case"batched":this.recommendedBatchSize=nextPowerOf2(t||128)}}return i(ExecutionModel,[{key:"equals",value:function(e){return this.type===e.type&&this.recommendedBatchSize===e.recommendedBatchSize}},{key:"hashCode",value:function(){return 47*hashCodeOfString(this.type)+this.recommendedBatchSize}}],[{key:"synchronous",value:function(){return new ExecutionModel("synchronous")}},{key:"alwaysAsync",value:function(){return new ExecutionModel("alwaysAsync")}},{key:"batched",value:function(e){return new ExecutionModel("batched",e)}}]),ExecutionModel}();ue.global=X.of(function(){return ue.batched()});var ie=function(){function Trampoline(e){u(this,Trampoline),this._isActive=!1,this._queue=[],this._reporter=e}return i(Trampoline,[{key:"execute",value:function(e){this._isActive?this._queue.push(e):this.runLoop(e)}},{key:"runLoop",value:function(e){this._isActive=!0;try{for(var t=e;t;){try{t()}catch(e){this._reporter(e)}t=this._queue.pop()}}finally{this._isActive=!1}}}]),Trampoline}(),oe=function(e){function GlobalScheduler(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.global.get(),n=arguments[2];u(this,GlobalScheduler);var r=a(this,(GlobalScheduler.__proto__||Object.getPrototypeOf(GlobalScheduler)).call(this,t));return n&&(r.reportFailure=n),r._trampoline=new ie(r.reportFailure),r._useSetImmediate=!!e&&"function"==typeof setImmediate,r.executeAsync=r._useSetImmediate?function(e){return setImmediate(safeRunnable(e,r.reportFailure))}:function(e){return setTimeout(safeRunnable(e,r.reportFailure))},r}return o(GlobalScheduler,re),i(GlobalScheduler,[{key:"executeAsync",value:function(e){throw new v("Constructor of GlobalScheduler wasn't executed")}},{key:"trampoline",value:function(e){return this._trampoline.execute(e)}},{key:"reportFailure",value:function(e){console.error(e)}},{key:"currentTimeMillis",value:function(){return Date.now()}},{key:"scheduleOnce",value:function(e,t){var n=this,r=Math.max(0,Z.of(e).toMillis()),u=setTimeout(function(){n.batchIndex=0;try{t()}catch(e){n.reportFailure(e)}},r);return w.of(function(){return clearTimeout(u)})}},{key:"withExecutionModel",value:function(e){return new GlobalScheduler(this._useSetImmediate,e)}}]),GlobalScheduler}(),ae=function(e){function TestScheduler(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue.synchronous();u(this,TestScheduler);var n=a(this,(TestScheduler.__proto__||Object.getPrototypeOf(TestScheduler)).call(this,t));return n._reporter=e||function(e){},n._trampoline=new ie(n.reportFailure.bind(n)),n}return o(TestScheduler,re),i(TestScheduler,[{key:"_state",value:function(){return this._stateRef||(this._stateRef=new ce,this._stateRef.updateTasks([])),this._stateRef}},{key:"triggeredFailures",value:function(){return this._state().triggeredFailures}},{key:"hasTasksLeft",value:function(){return this._state().tasks.length>0}},{key:"executeAsync",value:function(e){this._state().tasks.push([this._state().clock,e])}},{key:"trampoline",value:function(e){this._trampoline.execute(e)}},{key:"reportFailure",value:function(e){this._state().triggeredFailures.push(e),this._reporter(e)}},{key:"currentTimeMillis",value:function(){return this._state().clock}},{key:"scheduleOnce",value:function(e,t){var n=Math.max(0,Z.of(e).toMillis()),r=this._state(),u=r.clock+n,i=r.tasksSearch(-u),o=[u,t];return r.tasks.splice(i,0,o),w.of(function(){var e=[],t=!0,n=!1,u=void 0;try{for(var i,a=r.tasks[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var c=i.value;c!==o&&e.push(c)}}catch(e){n=!0,u=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw u}}r.updateTasks(e)})}},{key:"withExecutionModel",value:function(e){var t=new TestScheduler(this._reporter,e);return t._stateRef=this._state(),t}},{key:"tick",value:function(e){for(var t=this._state(),n=[],r=Z.of(e||0).toMillis(),u=0;;){var i=t.tasks.length>0?t.tasks[t.tasks.length-1]:void 0;if(i&&i[0]<=t.clock)n.push(t.tasks.pop());else if(n.length>0)for(;n.length>0;){var o=Math.floor(Math.random()*n.length),a=n[o];try{n.splice(o,1),this.batchIndex=0,a[1]()}catch(e){this.reportFailure(e)}finally{u+=1}}else{if(!(r>0))break;var c=i&&i[0]-t.clock||r,s=Math.min(c,r);t.clock+=s,r-=s}}return u}},{key:"tickOne",value:function(){var e=this._state(),t=e.tasks.length>0?e.tasks[e.tasks.length-1]:void 0;if(!t||t[0]>e.clock)return!1;this._state().tasks.pop(),this.batchIndex=0;try{t[1]()}catch(e){this.reportFailure(e)}return!0}}]),TestScheduler}(),ce=function(){function TestSchedulerState(){u(this,TestSchedulerState),this.clock=0,this.triggeredFailures=[],this.updateTasks([])}return i(TestSchedulerState,[{key:"updateTasks",value:function(e){this.tasks=e,this.tasksSearch=arrayBSearchInsertPos(this.tasks,function(e){return-e[0]})}}]),TestSchedulerState}(),se=new oe(!0);function safeRunnable(e,t){return function(){try{e()}catch(e){t(e)}}}var le=function(){function Future(){u(this,Future)}return i(Future,[{key:"transform",value:function(e,t){var n=this;return this.transformWith(function(t){return Future.pure(e(t),n._scheduler)},function(e){return Future.pure(t(e),n._scheduler)})}},{key:"attempt",value:function(){return this.transform(Left,Right)}},{key:"flatMap",value:function(e){return this.transformWith(Future.raise,e)}},{key:"map",value:function(e){var t=this;return this.transformWith(Future.raise,function(n){return Future.pure(e(n),t._scheduler)})}},{key:"recoverWith",value:function(e){return this.transformWith(e,Future.pure)}},{key:"recover",value:function(e){var t=this;return this.transformWith(function(n){return Future.pure(e(n),t._scheduler)},function(e){return Future.pure(e,t._scheduler)})}},{key:"then",value:function(e,t){if(!e&&!t)return this;var n=this._scheduler;return this.transformWith(promiseThen(t,function(e){return Future.raise(e,n)},n),promiseThen(e,function(e){return Future.pure(e,n)},n))}},{key:"toPromise",value:function(){var t=this;return new e(function(e,n){t.onComplete(function(t){return t.fold(n,e)})})}},{key:"delayResult",value:function(e){var t=this;return this.transformWith(function(n){return Future.delayedTick(e,t._scheduler).flatMap(function(e){return Future.raise(n,t._scheduler)})},function(n){return Future.delayedTick(e,t._scheduler).map(function(e){return n})})}},{key:"timeout",value:function(e){var t=Future.raise(new d(Z.of(e).toString()),this._scheduler);return this.timeoutTo(e,function(){return t})}},{key:"timeoutTo",value:function(e,t){var n=[this,Future.delayedTick(e,this._scheduler).flatMap(function(e){return t()})];return Future.firstCompletedOf(n,this._scheduler)}}],[{key:"of",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get(),n=ye.empty(t);return t.executeAsync(function(){return n.tryComplete(k.of(e))}),n.future()}},{key:"pure",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get();return new fe(Success(e),t)}},{key:"raise",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get();return new fe(Failure(e),t)}},{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get(),n=ye.empty(t);try{var r=e(n.complete);return n.future(r||void 0)}catch(e){return Future.raise(e,t)}}},{key:"unit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re.global.get(),t=e,n=t._funCache&&t._funCache.futureUnit;return n||(n=new fe(Success(void 0),e),t._funCache=t._funCache||{},t._funCache.futureUnit=n),n}},{key:"delayedTick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get();return Future.create(function(n){return t.scheduleOnce(e,function(){return n(Success(void 0))})},t)}},{key:"tailRecM",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re.global.get();return t(e).flatMap(function(e){return e.isRight()?Future.pure(e.get(),n):Future.tailRecM(e.swap().get(),t,n)})}},{key:"fromPromise",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get();return e instanceof Future?e.withScheduler(t):Future.create(function(t){e.then(function(e){return t(Success(e))},function(e){return t(Failure(e))})},t)}},{key:"fromTry",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get();return new fe(e,t)}},{key:"firstCompletedOf",value:function(e){return futureFirstCompletedOf(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get())}},{key:"traverse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:re.global.get();return function(r){return futureTraverse(e,r,t,n)}}},{key:"sequence",value:function(e){return futureSequence(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get())}},{key:"map2",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:re.global.get();return Future.sequence([e,t],r).map(function(e){return n(e[0],e[1])})}},{key:"map3",value:function(e,t,n,r){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:re.global.get();return Future.sequence([e,t,n],u).map(function(e){return r(e[0],e[1],e[2])})}},{key:"map4",value:function(e,t,n,r,u){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:re.global.get();return Future.sequence([e,t,n,r],i).map(function(e){return u(e[0],e[1],e[2],e[3])})}},{key:"map5",value:function(e,t,n,r,u,i){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:re.global.get();return Future.sequence([e,t,n,r,u],o).map(function(e){return i(e[0],e[1],e[2],e[3],e[4])})}},{key:"map6",value:function(e,t,n,r,u,i,o){var a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:re.global.get();return Future.sequence([e,t,n,r,u,i],a).map(function(e){return o(e[0],e[1],e[2],e[3],e[4],e[5])})}}]),Future}(),fe=function(t){function PureFuture(e,t){u(this,PureFuture);var n=a(this,(PureFuture.__proto__||Object.getPrototypeOf(PureFuture)).call(this));return n._value=e,n._scheduler=t,n}return o(PureFuture,le),i(PureFuture,[{key:"cancel",value:function(){}},{key:"value",value:function(){return Some(this._value)}},{key:"withScheduler",value:function(e){return this._scheduler===e?this:new PureFuture(this._value,e)}},{key:"onComplete",value:function(e){var t=this;this._scheduler.executeBatched(function(){return e(t._value)})}},{key:"transformWith",value:function(e,t){return genericTransformWith(this,e,t,this._scheduler)}},{key:"toPromise",value:function(){return this._value.fold(function(t){return e.reject(t)},function(t){return e.resolve(t)})}}]),PureFuture}(),he=function(){function AsyncFutureState(){u(this,AsyncFutureState),this.id=null,this.ref=null}return i(AsyncFutureState,[{key:"compressedRoot",value:function(){for(var e=this;"chained"===e.id;)e=e.ref,this.ref=e;return e}},{key:"value",value:function(){switch(this.id){case null:return g;case"complete":return Some(this.ref);case"chained":return this.compressedRoot().value()}}},{key:"tryComplete",value:function(e,t){var n=this,u=function(){switch(n.id){case null:var r=n.ref;if(n.ref=e,n.id="complete",r)for(var u=function(n){t.executeBatched(function(){return r[n](e)})},i=0;i0)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:re.global.get();return new FutureMaker(new he,e)}},{key:"completed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get(),n=new he;return n.id="complete",n.ref=e,new FutureMaker(n,t)}}]),FutureMaker}();function genericTransformWith(e,t,n,r,u){var i=ye.empty(r),o=new N(u);return e.onComplete(function(e){var u=void 0;try{u=e.fold(t,n)}catch(e){u=le.raise(e)}if(u.value().isEmpty()){var a=u._cancelable;a&&a instanceof N?a.chainTo(o):!a||a instanceof S||o.update(a)}else o.clear();u instanceof pe?u._state.chainTo(i._state,r):u.onComplete(i.tryComplete)}),i.future(o)}function promiseThen(e,t,n){return function(r){if("function"!=typeof e)return t(r);var u=e(r);return u?"function"==typeof u.then?le.fromPromise(u,n):le.pure(u,n):le.pure(r,n)}}function futureCancelAll(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[],u=0;u0){var i=!0,o=!1,a=void 0;try{for(var c,s=r[Symbol.iterator]();!(i=(c=s.next()).done);i=!0){var l=c.value;t.reportFailure(l)}}catch(e){o=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}}}function futureIterableToArray(e,t){if(!e)return[];if("[object Array]"===Object.prototype.toString.call(e))return e;var n=[];try{for(var r=e[Symbol.iterator]();;){var u=r.next();if(u.value&&n.push(u.value),u.done)break}return n}catch(e){throw futureCancelAll(n,t),e}}function futureSequence(e,t){return le.create(function(n){try{var u=function(){var r=futureIterableToArray(e,t);if(0===r.length)return{v:n(Success([]))};for(var u=w.of(function(){return futureCancelAll(r,t)}),i=!1,o=0,a=[],c=function(e){var c=e;r[e].onComplete(function(e){o+=1,e.isSuccess()?i||(a[c]=e.get(),(i=o===r.length)&&n(Success(a))):i?t.reportFailure(e.failed().get()):(i=!0,u.cancel(),n(e))})},s=0;s=e.length)return le.pure(i,r);var o=[];var a=0;try{for(;u=e.length?c.map(function(e){return i}):c.flatMap(function(o){return futureTraverseLoop(e,t,n,r,u,i)})}catch(e){return futureCancelAll(o,r),le.raise(e)}}(e,t,n,r,0,[])})}var ve={next:function(){return{done:!0}}};function iteratorOf(e){if(!e)return ve;if("[object Array]"!==Object.prototype.toString.call(e))return e[Symbol.iterator]();var t=e;if(0===t.length)return ve;var n=0;return{next:function(){var e=t[n++];return{done:n>=t.length,value:e}}}}var de=function(){function Eval(){u(this,Eval)}return i(Eval,[{key:"get",value:function(){return function(e){var t=e,n=null,r=null;for(;;)switch(t._funADType){case"now":var u=t,i=_popNextBind(n,r);if(!i)return u.value;n=null,t=i(u.value);break;case"always":case"once":t=new me(t.get());break;case"suspend":t=t.thunk();break;case"flatMap":n&&(r||(r=[]),r.push(n));var o=t;n=o.f,t=o.source}}(this)}},{key:"map",value:function(e){return new we(this,function(t){return Eval.now(e(t))})}},{key:"flatMap",value:function(e){return new we(this,e)}},{key:"chain",value:function(e){return this.flatMap(e)}},{key:"memoize",value:function(){var e=this;switch(this._funADType){case"now":case"once":return this;case"always":return new ge(this.get);default:return new ge(function(){return e.get()})}}},{key:"forEachL",value:function(e){return this.map(e)}},{key:"forEach",value:function(e){this.forEachL(e).get()}}],[{key:"of",value:function(e){return Eval.always(e)}},{key:"pure",value:function(e){return Eval.now(e)}},{key:"now",value:function(e){return new me(e)}},{key:"unit",value:function(){return _e}},{key:"always",value:function(e){return new ke(e)}},{key:"once",value:function(e){return new ge(e)}},{key:"suspend",value:function(e){return new be(e)}},{key:"defer",value:function(e){return Eval.suspend(e)}},{key:"tailRecM",value:function(e,t){return t(e).flatMap(function(e){return e.isRight()?Eval.now(e.get()):Eval.tailRecM(e.swap().get(),t)})}},{key:"sequence",value:function(e){return evalSequence(e)}},{key:"map2",value:function(e,t,n){return Eval.sequence([e,t]).map(function(e){return n(e[0],e[1])})}},{key:"map3",value:function(e,t,n,r){return Eval.sequence([e,t,n]).map(function(e){return r(e[0],e[1],e[2])})}},{key:"map4",value:function(e,t,n,r,u){return Eval.sequence([e,t,n,r]).map(function(e){return u(e[0],e[1],e[2],e[3])})}},{key:"map5",value:function(e,t,n,r,u,i){return Eval.sequence([e,t,n,r,u]).map(function(e){return i(e[0],e[1],e[2],e[3],e[4])})}},{key:"map6",value:function(e,t,n,r,u,i,o){return Eval.sequence([e,t,n,r,u,i]).map(function(e){return o(e[0],e[1],e[2],e[3],e[4],e[5])})}}]),Eval}(),me=function(e){function Now(e){u(this,Now);var t=a(this,(Now.__proto__||Object.getPrototypeOf(Now)).call(this));return t.value=e,t._funADType="now",t}return o(Now,de),i(Now,[{key:"get",value:function(){return this.value}},{key:"toString",value:function(){return"Eval.now("+JSON.stringify(this.value)+")"}}]),Now}(),_e=new me(void 0),ge=function(e){function Once(e){u(this,Once);var t=a(this,(Once.__proto__||Object.getPrototypeOf(Once)).call(this));return t._funADType="once",t._thunk=e,t}return o(Once,de),i(Once,[{key:"get",value:function(){if(this._thunk){try{this._cache=this._thunk(),this._isError=!1}catch(e){this._cache=e,this._isError=!0}delete this._thunk}if(this._isError)throw this._cache;return this._cache}},{key:"toString",value:function(){return"Eval.once([thunk])"}}]),Once}(),ke=function(e){function Always(e){u(this,Always);var t=a(this,(Always.__proto__||Object.getPrototypeOf(Always)).call(this));return t._funADType="always",t.get=e,t}return o(Always,de),i(Always,[{key:"toString",value:function(){return"Eval.always([thunk])"}}]),Always}(),be=function(e){function Suspend(e){u(this,Suspend);var t=a(this,(Suspend.__proto__||Object.getPrototypeOf(Suspend)).call(this));return t.thunk=e,t._funADType="suspend",t}return o(Suspend,de),i(Suspend,[{key:"toString",value:function(){return"Eval.suspend([thunk])"}}]),Suspend}(),we=function(e){function FlatMap(e,t){u(this,FlatMap);var n=a(this,(FlatMap.__proto__||Object.getPrototypeOf(FlatMap)).call(this));return n.source=e,n.f=t,n._funADType="flatMap",n}return o(FlatMap,de),i(FlatMap,[{key:"toString",value:function(){return"Eval#FlatMap("+String(this.source)+", [function])"}}]),FlatMap}();function _popNextBind(e,t){return e||(t&&t.length>0?t.pop():null)}function evalSequence(e){return de.of(function(){return iteratorOf(e)}).flatMap(function(e){return function evalSequenceLoop(e,t){var n=function(){var n=t.next(),r=n.done;if(n.value){var u=n.value;return{v:u.flatMap(function(n){return e.push(n),r?de.pure(e):evalSequenceLoop(e,t)})}}if(r)return{v:de.pure(e)}};for(;;){var u=n();if("object"===(void 0===u?"undefined":r(u)))return u.v}}([],e)})}var Oe=function(){function IO(){u(this,IO)}return i(IO,[{key:"run",value:function(){return function(e,t){var n=e,r=null,u=null,i=t.executionModel.recommendedBatchSize-1,o=t.batchIndex;for(;;)if(n instanceof k){if(n.isSuccess()){var a=_ioPopNextBind(r,u);if(!a)return t.batchIndex=o,le.pure(n.get());try{n=a(n.get())}catch(e){n=new Se(k.failure(e))}}else{var c=n.failed().get(),s=_ioFindErrorHandler(r,u);if(!s)return t.batchIndex=o,le.raise(c);try{n=s(c)}catch(e){n=new Se(k.failure(e))}}r=null;var l=o+1&i;if(!l)return ioToFutureGoAsync(n,t,r,u,!0);o=l}else switch(n._funADType){case"pure":n=n.value;break;case"always":n=k.of(n.thunk);break;case"once":n=n.runTry();break;case"flatMap":var f=n;r&&(u||(u=[]),u.push(r)),r=f.g?[f.f,f.g]:f.f,n=f.source;break;case"async":case"memoize":return ioToFutureGoAsync(n,t,r,u,!1)}}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:re.global.get())}},{key:"runOnComplete",value:function(e){return ioGenericRunLoop(this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:re.global.get(),null,e,null,null,null)||w.empty()}},{key:"attempt",value:function(){return this.transform(function(e){return m.left(e)},m.right)}},{key:"asyncBoundary",value:function(e){return this.flatMap(function(t){return IO.shift(e).map(function(e){return t})})}},{key:"chain",value:function(e){return this.flatMap(e)}},{key:"delayExecution",value:function(e){var t=this;return IO.delayedTick(e).flatMap(function(e){return t})}},{key:"delayResult",value:function(e){return this.transformWith(function(t){return IO.delayedTick(e).flatMap(function(e){return IO.raise(t)})},function(t){return IO.delayedTick(e).map(function(e){return t})})}},{key:"doOnFinish",value:function(e){return this.transformWith(function(t){return e(Some(t)).flatMap(function(e){return IO.raise(t)})},function(t){return e(g).map(function(e){return t})})}},{key:"doOnCancel",value:function(e){var t=this;return IO.asyncUnsafe(function(n,r){var u=n.scheduler;u.trampoline(function(){var i=n.connection;i.push(w.of(function(){return e.run(u)})),IO.unsafeStart(t,n,ioSafeCallback(u,i,r))})})}},{key:"executeForked",value:function(e){return IO.fork(this,e)}},{key:"executeWithModel",value:function(e){var t=this;return IO.asyncUnsafe(function(n,r){var u=n.scheduler.withExecutionModel(e),i=new Re(u,n.connection,n.options);u.trampoline(function(){return IO.unsafeStart(t,i,r)})})}},{key:"executeWithOptions",value:function(e){var t=this;return IO.asyncUnsafe(function(n,r){var u=n.scheduler,i=new Re(u,n.connection,e);u.trampoline(function(){return IO.unsafeStart(t,i,r)})})}},{key:"flatMap",value:function(e){return new Ie(this,e)}},{key:"followedBy",value:function(e){return this.flatMap(function(t){return e})}},{key:"forEach",value:function(e){return this.map(e)}},{key:"forEffect",value:function(e){return this.flatMap(function(t){return e.map(function(e){return t})})}},{key:"map",value:function(e){return new Ie(this,function(t){return IO.now(e(t))})}},{key:"memoize",value:function(){switch(this._funADType){case"pure":return this;case"always":return new Ee(this.thunk,!1);case"memoize":return this.onlySuccess?new Ae(this,!1):this;default:return new Ae(this,!1)}}},{key:"memoizeOnSuccess",value:function(){switch(this._funADType){case"pure":case"once":case"memoize":return this;case"always":return new Ee(this.thunk,!0);default:return new Ae(this,!0)}}},{key:"recover",value:function(e){return this.recoverWith(function(t){return IO.now(e(t))})}},{key:"recoverWith",value:function(e){return this.transformWith(e,IO.now)}},{key:"timeout",value:function(e){var t=IO.raise(new d(Z.of(e).toString()));return this.timeoutTo(e,t)}},{key:"timeoutTo",value:function(e,t){var n=[this,IO.delayedTick(e).flatMap(function(e){return t})];return IO.firstCompletedOf(n)}},{key:"transform",value:function(e,t){return this.transformWith(function(t){return IO.now(e(t))},function(e){return IO.now(t(e))})}},{key:"transformWith",value:function(e,t){return new Ie(this,t,e)}}],[{key:"always",value:function(e){return new Ce(e)}},{key:"async",value:function(e){return IO.asyncUnsafe(function(t,n){var r=t.scheduler,u=t.connection;r.trampoline(function(){var t=ioSafeCallback(r,u,n);try{var i=e(r,t);u.push(i||w.empty())}catch(e){t(Failure(e))}})})}},{key:"asyncUnsafe",value:function(e){return new Fe(e)}},{key:"defer",value:function(e){return IO.unit().flatMap(function(t){return e()})}},{key:"deferAction",value:function(e){return IO.asyncUnsafe(function(t,n){var r=t.scheduler,u=void 0;try{u=e(r)}catch(e){u=IO.raise(e)}r.trampoline(function(){return IO.unsafeStart(u,t,n)})})}},{key:"deferFuture",value:function(e){return IO.suspend(function(){return IO.fromFuture(e())})}},{key:"deferFutureAction",value:function(e){return IO.deferAction(function(t){return IO.fromFuture(e(t))})}},{key:"delayedTick",value:function(e){return IO.asyncUnsafe(function(t,n){var r=t.connection,u=t.scheduler.scheduleOnce(e,function(){r.pop(),n(k.unit())});r.push(u)})}},{key:"firstCompletedOf",value:function(e){return ioListToFutureProcess(e,le.firstCompletedOf)}},{key:"fromFuture",value:function(e){return e.value().isEmpty()?IO.asyncUnsafe(function(t,n){t.connection.push(e),e.onComplete(function(e){t.connection.pop(),n(e)})}):IO.fromTry(e.value().get())}},{key:"fromTry",value:function(e){return new Se(e)}},{key:"fork",value:function(e,t){return IO.shift(t).flatMap(function(t){return e})}},{key:"map2",value:function(e,t,n){return IO.sequence([e,t]).map(function(e){return n(e[0],e[1])})}},{key:"map3",value:function(e,t,n,r){return IO.sequence([e,t,n]).map(function(e){return r(e[0],e[1],e[2])})}},{key:"map4",value:function(e,t,n,r,u){return IO.sequence([e,t,n,r]).map(function(e){return u(e[0],e[1],e[2],e[3])})}},{key:"map5",value:function(e,t,n,r,u,i){return IO.sequence([e,t,n,r,u]).map(function(e){return i(e[0],e[1],e[2],e[3],e[4])})}},{key:"map6",value:function(e,t,n,r,u,i,o){return IO.sequence([e,t,n,r,u,i]).map(function(e){return o(e[0],e[1],e[2],e[3],e[4],e[5])})}},{key:"now",value:function(e){return new Se(Success(e))}},{key:"of",value:function(e){return IO.always(e)}},{key:"once",value:function(e){return new Ee(e,!1)}},{key:"parMap2",value:function(e,t,n){return IO.gather([e,t]).map(function(e){return n(e[0],e[1])})}},{key:"parMap3",value:function(e,t,n,r){return IO.gather([e,t,n]).map(function(e){return r(e[0],e[1],e[2])})}},{key:"parMap4",value:function(e,t,n,r,u){return IO.gather([e,t,n,r]).map(function(e){return u(e[0],e[1],e[2],e[3])})}},{key:"parMap5",value:function(e,t,n,r,u,i){return IO.gather([e,t,n,r,u]).map(function(e){return i(e[0],e[1],e[2],e[3],e[4])})}},{key:"parMap6",value:function(e,t,n,r,u,i,o){return IO.gather([e,t,n,r,u,i]).map(function(e){return o(e[0],e[1],e[2],e[3],e[4],e[5])})}},{key:"pure",value:function(e){return IO.now(e)}},{key:"raise",value:function(e){return new Se(Failure(e))}},{key:"sequence",value:function(e){return ioSequence(e)}},{key:"gather",value:function(e){return ioListToFutureProcess(e,le.sequence)}},{key:"shift",value:function(e){return e?ioShift(e):Te}},{key:"suspend",value:function(e){return IO.unit().flatMap(function(t){return e()})}},{key:"tailRecM",value:function(e,t){try{return t(e).flatMap(function(e){return e.isRight()?IO.now(e.get()):IO.tailRecM(e.swap().get(),t)})}catch(e){return IO.raise(e)}}},{key:"unit",value:function(){return Me}},{key:"unsafeStart",value:function(e,t,n){return ioGenericRunLoop(e,t.scheduler,t,n,null,null,null)}}]),IO}(),Se=function(e){function IOPure(e){u(this,IOPure);var t=a(this,(IOPure.__proto__||Object.getPrototypeOf(IOPure)).call(this));return t.value=e,t._funADType="pure",t}return o(IOPure,Oe),IOPure}(),Me=new Se(k.unit()),Ee=function(e){function IOOnce(e,t){u(this,IOOnce);var n=a(this,(IOOnce.__proto__||Object.getPrototypeOf(IOOnce)).call(this));return n._funADType="once",n._thunk=e,n.onlyOnSuccess=t,n}return o(IOOnce,Oe),i(IOOnce,[{key:"memoize",value:function(){return this.onlyOnSuccess&&this._thunk?new IOOnce(this._thunk,!1):this}},{key:"runTry",value:function(){if(this._thunk){var e=k.of(this._thunk);return!e.isSuccess()&&this.onlyOnSuccess||(delete this._thunk,delete this.onlyOnSuccess,this.cache=e),e}return this.cache}}]),IOOnce}(),Ce=function(e){function IOAlways(e){u(this,IOAlways);var t=a(this,(IOAlways.__proto__||Object.getPrototypeOf(IOAlways)).call(this));return t.thunk=e,t._funADType="always",t}return o(IOAlways,Oe),IOAlways}(),Ie=function(e){function IOFlatMap(e,t,n){u(this,IOFlatMap);var r=a(this,(IOFlatMap.__proto__||Object.getPrototypeOf(IOFlatMap)).call(this));return r.source=e,r.f=t,r.g=n,r._funADType="flatMap",r}return o(IOFlatMap,Oe),IOFlatMap}(),Fe=function(e){function IOAsync(e){u(this,IOAsync);var t=a(this,(IOAsync.__proto__||Object.getPrototypeOf(IOAsync)).call(this));return t.register=e,t._funADType="async",t}return o(IOAsync,Oe),IOAsync}(),Ae=function(e){function IOMemoize(e,t){u(this,IOMemoize);var n=a(this,(IOMemoize.__proto__||Object.getPrototypeOf(IOMemoize)).call(this));return n._funADType="memoize",n.source=e,n.result=null,n.onlySuccess=t,n}return o(IOMemoize,Oe),IOMemoize}(),Re=function(){function IOContext(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new D,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{autoCancelableRunLoops:!1};u(this,IOContext),this.scheduler=e,this.options=n,this.connection=t,n.autoCancelableRunLoops&&(this.shouldCancel=function(){return t.isCanceled()})}return i(IOContext,[{key:"markAsyncBoundary",value:function(){this.scheduler.batchIndex=0}},{key:"shouldCancel",value:function(){return!1}}]),IOContext}();function ioShift(e){return Oe.asyncUnsafe(function(t,n){(e||t.scheduler).executeAsync(function(){return n(k.unit())})})}var Te=ioShift();function _ioPopNextBind(e,t){var n=void 0;return e?n=e:t&&t.length>0&&(n=t.pop()),n?"function"==typeof n?n:n[0]:null}function _ioFindErrorHandler(e,t){var n=e;do{if(n&&"function"!=typeof n)return n[1];n=t?t.pop():null}while(n);return null}var xe=function(){function RestartCallback(e,t){u(this,RestartCallback),this.context=e,this.callback=t,this.canCall=!1,this.bFirst=null,this.bRest=null,this.asFunction=this.signal.bind(this)}return i(RestartCallback,[{key:"prepare",value:function(e,t){this.bFirst=e,this.bRest=t,this.canCall=!0}},{key:"signal",value:function(e){this.canCall?(this.canCall=!1,ioGenericRunLoop(new Se(e),this.context.scheduler,this.context,this.callback,this,this.bFirst,this.bRest)):e.isFailure()&&this.context.scheduler.reportFailure(e.failed().get())}}]),RestartCallback}();function ioExecuteAsync(e,t,n,r,u,i,o){if(!t.shouldCancel()){t.scheduler.batchIndex=o;var a=r||new xe(t,n);a.prepare(u,i),e(t,a.asFunction)}}function ioRestartAsync(e,t,n,r,u,i){t.shouldCancel()||t.scheduler.executeAsync(function(){ioGenericRunLoop(e,t.scheduler,t,n,r,u,i)})}function ioGenericRunLoop(e,t,n,r,u,i,o){for(var a=e,c=i,s=o,l=t.executionModel.recommendedBatchSize-1,f=t.batchIndex;;)if(a instanceof k){if(a.isSuccess()){var h=_ioPopNextBind(c,s);if(!h)return t.batchIndex=f,r(a);try{a=h(a.get())}catch(e){a=k.failure(e)}}else{var p=_ioFindErrorHandler(c,s);if(!p)return t.batchIndex=f,r(a);try{a=p(a.failed().get())}catch(e){a=k.failure(e)}}c=null;var y=f+1&l;if(!y){var v=n||new Re(t);return ioRestartAsync(a instanceof k?new Se(a):a,v,r,u,c,s),v.connection}f=y}else switch(a._funADType){case"pure":a=a.value;break;case"always":a=k.of(a.thunk);break;case"once":a=a.runTry();break;case"flatMap":var d=a;c&&(s||(s=[]),s.push(c)),c=d.g?[d.f,d.g]:d.f,a=d.source;break;case"async":var m=a,_=n||new Re(t);return ioExecuteAsync(m.register,_,r,u,c,s,f),_.connection;case"memoize":return ioStartMemoize(a,t,n,r,c,s,f)}}function ioToFutureGoAsync(e,t,n,r,u){return le.create(function(i){var o=new Re(t);return u?ioRestartAsync(e,o,i,null,n,r):ioGenericRunLoop(e,t,o,i,null,n,r),o.connection})}function ioSafeCallback(e,t,n){var r=!1;return function(u){r?u.isFailure()&&e.reportFailure(u.failed().get()):(r=!0,e.trampoline(function(){t.pop(),n(u)}))}}function ioStartMemoize(e,t,n,r,u,i,o){t.batchIndex=o;var a=void 0;if(e.result)a=e.result;else{var c=ioToFutureGoAsync(e.source,t,null,null,!1);c.value().isEmpty()?(e.result=c,a=c,c.onComplete(function(t){t.isSuccess()||!e.onlySuccess?(e.result=t,delete e.source):e.result=null})):!(a=c.value().get()).isSuccess()&&e.onlySuccess||(e.result=a)}ioGenericRunLoop(a instanceof k?new Se(a):Oe.fromFuture(a),t,n,r,null,u,i)}function ioSequence(e){return Oe.of(function(){return iteratorOf(e)}).flatMap(function(e){return function ioSequenceLoop(e,t){var n=function(){var n=t.next(),r=n.done;if(n.value){var u=n.value;return{v:u.flatMap(function(n){return e.push(n),r?Oe.pure(e):ioSequenceLoop(e,t)})}}if(r)return{v:Oe.pure(e)}};for(;;){var u=n();if("object"===(void 0===u?"undefined":r(u)))return u.v}}([],e)})}function ioListToFutureProcess(e,t){return Oe.asyncUnsafe(function(n,r){n.scheduler.trampoline(function(){var u=!0;try{var i=[],o=iterableToArray(e);u=!1;for(var a=0;a is already defined!")}u[e._funTypeId]=n;var a=!0,c=!1,s=void 0;try{for(var l,f=e._funSupertypeIds[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var h=l.value;u[h]||(u[h]=n)}}catch(e){c=!0,s=e}finally{try{!a&&f.return&&f.return()}finally{if(c)throw s}}}}function getTypeClassInstance(e){return function(t){var n=t,r=(n._funTypes||{})[e._funTypeId];if(r)return r;throw new v(e.name+"<"+n.name+">")}}var je=function(){function Eq(){u(this,Eq)}return i(Eq,null,[{key:"testEq",value:function(e,t){if(!e)return is(e,t);var n=(e.constructor._funTypes||{})[Eq._funTypeId];return n?n.eqv(e,t):is(e,t)}}]),Eq}();je._funTypeId="eq",je._funSupertypeIds=[];var Pe=function(){function EqLaws(){u(this,EqLaws)}return i(EqLaws,[{key:"reflexive",value:function(e){return this.F.eqv(e,e)}},{key:"symmetric",value:function(e,t){return this.F.eqv(e,t)===this.F.eqv(t,e)}},{key:"transitive",value:function(e,t,n){return!(this.F.eqv(e,t)&&this.F.eqv(t,n))||this.F.eqv(e,n)}}]),EqLaws}(),De=getTypeClassInstance(je);function eqLawsOf(e){return new(function(t){function _class(){u(this,_class);var t=a(this,(_class.__proto__||Object.getPrototypeOf(_class)).apply(this,arguments));return t.F=e,t}return o(_class,Pe),_class}())}var Ne=function Functor(){u(this,Functor)};Ne._funTypeId="functor",Ne._funSupertypeIds=[];var qe=function(){function FunctorLaws(){u(this,FunctorLaws)}return i(FunctorLaws,[{key:"covariantIdentity",value:function(e){return Le.of(this.F.map(e,id),e)}},{key:"covariantComposition",value:function(e,t,n){return Le.of(this.F.map(this.F.map(e,t),n),this.F.map(e,function(e){return n(t(e))}))}}]),FunctorLaws}(),Be=getTypeClassInstance(Ne);function functorLawsOf(e){return new(function(t){function _class(){u(this,_class);var t=a(this,(_class.__proto__||Object.getPrototypeOf(_class)).apply(this,arguments));return t.F=e,t}return o(_class,qe),_class}())}var We=function(){function Apply(){u(this,Apply)}return i(Apply,[{key:"map2",value:function(e,t,n){return this.ap(t,this.map(e,function(e){return function(t){return n(e,t)}}))}},{key:"product",value:function(e,t){return this.map2(e,t,function(e,t){return[e,t]})}}]),Apply}();We._funTypeId="apply",We._funSupertypeIds=["functor"],applyMixins(We,[Ne]);var Ue=function(){function ApplyLaws(){u(this,ApplyLaws)}return i(ApplyLaws,[{key:"applyComposition",value:function(e,t,n){var r=this.F;return Le.of(r.ap(r.ap(e,t),n),r.ap(e,r.ap(t,r.map(n,function(e){return function(t){return function(n){return e(t(n))}}}))))}},{key:"applyProductConsistency",value:function(e,t){var n=this.F;return Le.of(n.ap(e,t),n.map(n.product(t,e),function(e){var t=c(e,2);return(0,t[0])(t[1])}))}},{key:"applyMap2Consistency",value:function(e,t){var n=this.F;return Le.of(n.ap(e,t),n.map2(t,e,function(e,t){return e(t)}))}}]),ApplyLaws}();applyMixins(Ue,[qe]);var Ge=getTypeClassInstance(We);function applyLawsOf(e){return new(function(t){function _class(){u(this,_class);var t=a(this,(_class.__proto__||Object.getPrototypeOf(_class)).apply(this,arguments));return t.F=e,t}return o(_class,Ue),_class}())}var ze=function(){function Applicative(){u(this,Applicative)}return i(Applicative,[{key:"unit",value:function(){return this.pure(void 0)}},{key:"map",value:function(e,t){return this.ap(e,this.pure(t))}}]),Applicative}();ze._funTypeId="applicative",ze._funSupertypeIds=["functor","apply"],applyMixins(ze,[We]);var He=function(){function ApplicativeLaws(){u(this,ApplicativeLaws)}return i(ApplicativeLaws,[{key:"applicativeIdentity",value:function(e){var t=this.F;return Le.of(t.ap(e,t.pure(function(e){return e})),e)}},{key:"applicativeHomomorphism",value:function(e,t){var n=this.F;return Le.of(n.ap(n.pure(e),n.pure(t)),n.pure(t(e)))}},{key:"applicativeInterchange",value:function(e,t){var n=this.F;return Le.of(n.ap(n.pure(e),t),n.ap(t,n.pure(function(t){return t(e)})))}},{key:"applicativeMap",value:function(e,t){var n=this.F;return Le.of(n.map(e,t),n.ap(e,n.pure(t)))}},{key:"applicativeComposition",value:function(e,t,n){var r=this.F;return Le.of(r.ap(e,r.ap(t,r.ap(n,r.pure(function(e){return function(t){return function(n){return e(t(n))}}})))),r.ap(r.ap(e,t),n))}},{key:"applicativeUnit",value:function(e){var t=this.F;return Le.of(t.map(t.unit(),function(t){return e}),t.pure(e))}}]),ApplicativeLaws}();applyMixins(He,[Ue]);var Je=getTypeClassInstance(ze);function applicativeLawsOf(e){return new(function(t){function _class2(){u(this,_class2);var t=a(this,(_class2.__proto__||Object.getPrototypeOf(_class2)).apply(this,arguments));return t.F=e,t}return o(_class2,He),_class2}())}var Ve=function(){function ApplicativeError(){u(this,ApplicativeError)}return i(ApplicativeError,[{key:"recover",value:function(e,t){var n=this;return n.recoverWith(e,function(e){return n.pure(t(e))})}},{key:"attempt",value:function(e){return this.recover(this.map(e,function(e){return m.right(e)}),Left)}}]),ApplicativeError}();Ve._funTypeId="applicativeError",Ve._funSupertypeIds=["functor","apply","applicative"],applyMixins(Ve,[ze]);var $e=function(){function ApplicativeErrorLaws(){u(this,ApplicativeErrorLaws)}return i(ApplicativeErrorLaws,[{key:"applicativeErrorRecoverWith",value:function(e,t){var n=this.F;return Le.of(n.recoverWith(n.raise(e),t),t(e))}},{key:"applicativeErrorRecover",value:function(e,t){var n=this.F;return Le.of(n.recover(n.raise(e),t),n.pure(t(e)))}},{key:"recoverWithPure",value:function(e,t){var n=this.F;return Le.of(n.recoverWith(n.pure(e),t),n.pure(e))}},{key:"recoverPure",value:function(e,t){var n=this.F;return Le.of(n.recover(n.pure(e),t),n.pure(e))}},{key:"raiseErrorAttempt",value:function(e){var t=this.F;return Le.of(t.attempt(t.raise(e)),t.pure(Left(e)))}},{key:"pureAttempt",value:function(e){var t=this.F;return Le.of(t.attempt(t.pure(e)),t.pure(Right(e)))}}]),ApplicativeErrorLaws}();applyMixins($e,[He]);var Ke=getTypeClassInstance(Ve);function applicativeErrorLawsOf(e){return new(function(t){function _class3(){u(this,_class3);var t=a(this,(_class3.__proto__||Object.getPrototypeOf(_class3)).apply(this,arguments));return t.F=e,t}return o(_class3,$e),_class3}())}var Ye=function(){function FlatMap(){u(this,FlatMap)}return i(FlatMap,[{key:"followedBy",value:function(e,t){return this.flatMap(e,function(e){return t})}},{key:"followedByL",value:function(e,t){return this.flatMap(e,function(e){return t()})}},{key:"forEffect",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.map(t,function(t){return e})})}},{key:"forEffectL",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.map(t(),function(t){return e})})}},{key:"ap",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.map(t,function(t){return t(e)})})}},{key:"map2",value:function(e,t,n){var r=this;return this.flatMap(e,function(e){return r.map(t,function(t){return n(e,t)})})}},{key:"product",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.map(t,function(t){return[e,t]})})}}]),FlatMap}();Ye._funTypeId="flatMap",Ye._funSupertypeIds=["functor","apply"];var Qe=function(){function FlatMapLaws(){u(this,FlatMapLaws)}return i(FlatMapLaws,[{key:"flatMapAssociativity",value:function(e,t,n){var r=this.F;return Le.of(r.flatMap(r.flatMap(e,t),n),r.flatMap(e,function(e){return r.flatMap(t(e),n)}))}},{key:"flatMapConsistentApply",value:function(e,t){var n=this.F;return Le.of(n.ap(e,t),n.flatMap(t,function(t){return n.map(e,t)}))}},{key:"followedByConsistency",value:function(e,t){var n=this.F;return Le.of(n.followedBy(e,t),n.flatMap(e,function(e){return t}))}},{key:"followedByLConsistency",value:function(e,t){var n=this.F;return Le.of(n.followedByL(e,function(){return t}),n.flatMap(e,function(e){return t}))}},{key:"forEffectConsistency",value:function(e,t){var n=this.F;return Le.of(n.forEffect(e,t),n.flatMap(e,function(e){return n.map(t,function(t){return e})}))}},{key:"forEffectLConsistency",value:function(e,t){var n=this.F;return Le.of(n.forEffectL(e,function(){return t}),n.flatMap(e,function(e){return n.map(t,function(t){return e})}))}},{key:"tailRecMConsistentFlatMap",value:function(e,t){var n=this.F,r=function(r){return n.tailRecM([e,r],function(e){var r=c(e,2),u=r[0],i=r[1];return i>0?n.map(t(u),function(e){return Left([e,i-1])}):n.map(t(u),Right)})};return Le.of(r(1),n.flatMap(r(0),t))}}]),FlatMapLaws}();applyMixins(Qe,[Ue]);var Ze=getTypeClassInstance(Ye);function flatMapLawsOf(e){return new(function(t){function _class(){u(this,_class);var t=a(this,(_class.__proto__||Object.getPrototypeOf(_class)).apply(this,arguments));return t.F=e,t}return o(_class,Qe),_class}())}var Xe=function(){function Monad(){u(this,Monad)}return i(Monad,[{key:"ap",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.map(t,function(t){return t(e)})})}},{key:"map",value:function(e,t){var n=this;return this.flatMap(e,function(e){return n.pure(t(e))})}},{key:"map2",value:function(e,t,n){var r=this;return r.flatMap(e,function(e){return r.map(t,function(t){return n(e,t)})})}},{key:"product",value:function(e,t){var n=this;return n.flatMap(e,function(e){return n.map(t,function(t){return[e,t]})})}}]),Monad}();Xe._funTypeId="monad",Xe._funSupertypeIds=["functor","apply","applicative","flatMap"],applyMixins(Xe,[ze,Ye]);var et=function(){function MonadLaws(){u(this,MonadLaws)}return i(MonadLaws,[{key:"monadLeftIdentity",value:function(e,t){var n=this.F;return Le.of(n.flatMap(n.pure(e),t),t(e))}},{key:"monadRightIdentity",value:function(e){var t=this.F;return Le.of(t.flatMap(e,t.pure),e)}},{key:"mapFlatMapCoherence",value:function(e,t){var n=this.F;return Le.of(n.flatMap(e,function(e){return n.pure(t(e))}),n.map(e,t))}},{key:"tailRecMStackSafety",value:function(){var e=this.F,t=e.tailRecM(0,function(t){return e.pure(t<1e4?Left(t+1):Right(t))});return Le.of(t,e.pure(1e4))}}]),MonadLaws}();applyMixins(et,[He,Qe]);var tt=getTypeClassInstance(Xe);function monadLawsOf(e){return new(function(t){function _class2(){u(this,_class2);var t=a(this,(_class2.__proto__||Object.getPrototypeOf(_class2)).apply(this,arguments));return t.F=e,t}return o(_class2,et),_class2}())}var nt=function MonadError(){u(this,MonadError)};nt._funTypeId="monadError",nt._funSupertypeIds=["functor","apply","applicative","monad","applicativeError"],applyMixins(nt,[Xe,Ve]);var rt=function(){function MonadErrorLaws(){u(this,MonadErrorLaws)}return i(MonadErrorLaws,[{key:"monadErrorLeftZero",value:function(e,t){var n=this.F;return Le.of(n.flatMap(n.raise(e),t),n.raise(e))}}]),MonadErrorLaws}();applyMixins(rt,[et,$e]);var ut=getTypeClassInstance(nt);function monadErrorLawsOf(e){return new(function(t){function _class3(){u(this,_class3);var t=a(this,(_class3.__proto__||Object.getPrototypeOf(_class3)).apply(this,arguments));return t.F=e,t}return o(_class3,rt),_class3}())}var it=function CoflatMap(){u(this,CoflatMap)};it._funTypeId="coflatMap",it._funSupertypeIds=["functor"],applyMixins(it,[Ne]);var ot=function(){function CoflatMapLaws(){u(this,CoflatMapLaws)}return i(CoflatMapLaws,[{key:"coflatMapAssociativity",value:function(e,t,n){var r=this.F;return Le.of(r.coflatMap(r.coflatMap(e,t),n),r.coflatMap(e,function(e){return n(r.coflatMap(e,t))}))}},{key:"coflattenThroughMap",value:function(e){var t=this.F;return Le.of(t.coflatten(t.coflatten(e)),t.map(t.coflatten(e),t.coflatten))}},{key:"coflattenCoherence",value:function(e,t){var n=this.F;return Le.of(n.coflatMap(e,t),n.map(n.coflatten(e),t))}},{key:"coflatMapIdentity",value:function(e){var t=this.F;return Le.of(t.coflatten(e),t.coflatMap(e,id))}}]),CoflatMapLaws}();applyMixins(ot,[qe]);var at=getTypeClassInstance(it);function coflatMapLawsOf(e){return new(function(t){function _class(){u(this,_class);var t=a(this,(_class.__proto__||Object.getPrototypeOf(_class)).apply(this,arguments));return t.F=e,t}return o(_class,ot),_class}())}var ct=function Comonad(){u(this,Comonad)};ct._funTypeId="comonad",ct._funSupertypeIds=["functor","coflatMap"],applyMixins(ct,[it]);var st=function(){function ComonadLaws(){u(this,ComonadLaws)}return i(ComonadLaws,[{key:"extractCoflattenIdentity",value:function(e){var t=this.F;return Le.of(t.extract(t.coflatten(e)),e)}},{key:"mapCoflattenIdentity",value:function(e){var t=this.F;return Le.of(t.map(t.coflatten(e),t.extract),e)}},{key:"mapCoflatMapCoherence",value:function(e,t){var n=this.F;return Le.of(n.map(e,t),n.coflatMap(e,function(e){return t(n.extract(e))}))}},{key:"comonadLeftIdentity",value:function(e){var t=this.F;return Le.of(t.coflatMap(e,t.extract),e)}},{key:"comonadRightIdentity",value:function(e,t){var n=this.F;return Le.of(n.extract(n.coflatMap(e,t)),t(e))}}]),ComonadLaws}();applyMixins(st,[ot]);var lt=getTypeClassInstance(ct);function comonadLawsOf(e){return new(function(t){function _class2(){u(this,_class2);var t=a(this,(_class2.__proto__||Object.getPrototypeOf(_class2)).apply(this,arguments));return t.F=e,t}return o(_class2,st),_class2}())}var ft=function(){function OptionInstances(){u(this,OptionInstances),this.__unit=Some(void 0)}return i(OptionInstances,[{key:"eqv",value:function(e,t){return e===t||(e.isEmpty()?t.isEmpty():!t.isEmpty()&&je.testEq(e.get(),t.get()))}},{key:"pure",value:function(e){return Some(e)}},{key:"unit",value:function(){return this.__unit}},{key:"ap",value:function(e,t){return _.map2(e,t,function(e,t){return t(e)})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"map2",value:function(e,t,n){return _.map2(e,t,n)}},{key:"product",value:function(e,t){return _.map2(e,t,function(e,t){return[e,t]})}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return _.tailRecM(e,t)}},{key:"coflatMap",value:function(e,t){return Some(t(e))}},{key:"coflatten",value:function(e){return Some(e)}}]),OptionInstances}();ft.global=new ft,applyMixins(ft,[Xe]),registerTypeClassInstance(je)(_,ft.global),registerTypeClassInstance(Xe)(_,ft.global),registerTypeClassInstance(it)(_,ft.global);var ht=function(){function TryInstances(){u(this,TryInstances)}return i(TryInstances,[{key:"eqv",value:function(e,t){return e===t||(e.isSuccess()?!t.isFailure()&&je.testEq(e.get(),t.get()):!t.isSuccess()&&je.testEq(e.failed().get(),t.failed().get()))}},{key:"pure",value:function(e){return Success(e)}},{key:"unit",value:function(){return k.unit()}},{key:"ap",value:function(e,t){return k.map2(e,t,function(e,t){return t(e)})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"map2",value:function(e,t,n){return k.map2(e,t,n)}},{key:"product",value:function(e,t){return k.map2(e,t,function(e,t){return[e,t]})}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return k.tailRecM(e,t)}},{key:"raise",value:function(e){return k.failure(e)}},{key:"attempt",value:function(e){return k.success(e.fold(function(e){return m.left(e)},m.right))}},{key:"recoverWith",value:function(e,t){return e.recoverWith(t)}},{key:"recover",value:function(e,t){return e.recover(t)}},{key:"coflatMap",value:function(e,t){return Success(t(e))}},{key:"coflatten",value:function(e){return Success(e)}}]),TryInstances}();ht.global=new ht,applyMixins(ht,[nt]),registerTypeClassInstance(je)(k,ht.global),registerTypeClassInstance(nt)(k,ht.global),registerTypeClassInstance(it)(k,ht.global);var pt=function(){function EitherInstances(){u(this,EitherInstances),this.__unit=Right(void 0)}return i(EitherInstances,[{key:"eqv",value:function(e,t){return e===t||(e.isRight()?!t.isLeft()&&je.testEq(e.get(),t.get()):!t.isRight()&&je.testEq(e.swap().get(),t.swap().get()))}},{key:"pure",value:function(e){return Right(e)}},{key:"unit",value:function(){return this.__unit}},{key:"ap",value:function(e,t){var n=e,r=t;return m.map2(n,r,function(e,t){return t(e)})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"map2",value:function(e,t,n){return m.map2(e,t,n)}},{key:"product",value:function(e,t){return m.map2(e,t,function(e,t){return[e,t]})}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return m.tailRecM(e,t)}},{key:"coflatMap",value:function(e,t){return Right(t(e))}},{key:"coflatten",value:function(e){return Right(e)}}]),EitherInstances}();pt.global=new pt,applyMixins(pt,[Xe]),registerTypeClassInstance(je)(m,pt.global),registerTypeClassInstance(Xe)(m,pt.global),registerTypeClassInstance(it)(m,pt.global);var yt=function(){function EvalInstances(){u(this,EvalInstances)}return i(EvalInstances,[{key:"pure",value:function(e){return de.now(e)}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return de.tailRecM(e,t)}},{key:"ap",value:function(e,t){return e.flatMap(function(e){return t.map(function(t){return t(e)})})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"unit",value:function(){return de.unit()}},{key:"coflatMap",value:function(e,t){return de.now(t(e))}},{key:"coflatten",value:function(e){return de.now(e)}},{key:"extract",value:function(e){return e.get()}}]),EvalInstances}();yt.global=new yt,applyMixins(yt,[Xe,ct]),registerTypeClassInstance(Xe)(de,yt.global),registerTypeClassInstance(ct)(de,yt.global);var vt=function(){function FutureInstances(){u(this,FutureInstances)}return i(FutureInstances,[{key:"pure",value:function(e){return le.pure(e)}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return le.tailRecM(e,t)}},{key:"ap",value:function(e,t){return e.flatMap(function(e){return t.map(function(t){return t(e)})})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"unit",value:function(){return le.unit()}},{key:"raise",value:function(e){return le.raise(e)}},{key:"attempt",value:function(e){return e.attempt()}},{key:"recoverWith",value:function(e,t){return e.recoverWith(t)}},{key:"recover",value:function(e,t){return e.recover(t)}},{key:"map2",value:function(e,t,n){return le.map2(e,t,n)}},{key:"coflatMap",value:function(e,t){return le.pure(t(e))}},{key:"coflatten",value:function(e){return le.pure(e)}}]),FutureInstances}();vt.global=new vt,applyMixins(vt,[nt,it]),registerTypeClassInstance(nt)(le,vt.global),registerTypeClassInstance(it)(le,vt.global);var dt=function(){function IOInstances(){u(this,IOInstances)}return i(IOInstances,[{key:"pure",value:function(e){return Oe.pure(e)}},{key:"flatMap",value:function(e,t){return e.flatMap(t)}},{key:"tailRecM",value:function(e,t){return Oe.tailRecM(e,t)}},{key:"ap",value:function(e,t){return e.flatMap(function(e){return t.map(function(t){return t(e)})})}},{key:"map",value:function(e,t){return e.map(t)}},{key:"unit",value:function(){return Oe.unit()}},{key:"raise",value:function(e){return Oe.raise(e)}},{key:"attempt",value:function(e){return e.attempt()}},{key:"recoverWith",value:function(e,t){return e.recoverWith(t)}},{key:"recover",value:function(e,t){return e.recover(t)}},{key:"map2",value:function(e,t,n){return Oe.map2(e,t,n)}},{key:"followedBy",value:function(e,t){return e.followedBy(t)}},{key:"followedByL",value:function(e,t){return e.followedBy(Oe.suspend(t))}},{key:"forEffect",value:function(e,t){return e.forEffect(t)}},{key:"forEffectL",value:function(e,t){return e.forEffect(Oe.suspend(t))}},{key:"product",value:function(e,t){return Oe.map2(e,t,function(e,t){return[e,t]})}},{key:"coflatMap",value:function(e,t){return Oe.pure(t(e))}},{key:"coflatten",value:function(e){return Oe.pure(e)}}]),IOInstances}();dt.global=new dt,applyMixins(dt,[nt,it]),registerTypeClassInstance(nt)(Oe,dt.global),registerTypeClassInstance(it)(Oe,dt.global)}.call(this,n(34))},162:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},163:function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},164:function(e,t,n){var r=n(12),u=n(36),i=n(35),o=n(25),a=n(577);e.exports=function(e,t){var n=1==e,c=2==e,s=3==e,l=4==e,f=6==e,h=5==e||f,p=t||a;return function(t,a,y){for(var v,d,m=i(t),_=u(m),g=r(a,y,3),k=o(_.length),b=0,w=n?p(t,k):c?p(t,0):void 0;k>b;b++)if((h||b in _)&&(d=g(v=_[b],b,m),e))if(n)w[b]=d;else if(d)switch(e){case 3:return!0;case 5:return v;case 6:return b;case 2:w.push(v)}else if(l)return!1;return f?-1:s||l?l:w}}},200:function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},204:function(e,t){t.f={}.propertyIsEnumerable},266:function(e,t,n){var r=n(39),u=n(28).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,u)}},267:function(e,t,n){var r=n(13);e.exports=Array.isArray||function(e){return"Array"==r(e)}},268:function(e,t){t.f=Object.getOwnPropertySymbols},269:function(e,t,n){t.f=n(0)},477:function(e,t,n){var r;!function(u){"use strict";function safeAdd(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function md5cmn(e,t,n,r,u,i){return safeAdd((o=safeAdd(safeAdd(t,e),safeAdd(r,i)))<<(a=u)|o>>>32-a,n);var o,a}function md5ff(e,t,n,r,u,i,o){return md5cmn(t&n|~t&r,e,t,u,i,o)}function md5gg(e,t,n,r,u,i,o){return md5cmn(t&r|n&~r,e,t,u,i,o)}function md5hh(e,t,n,r,u,i,o){return md5cmn(t^n^r,e,t,u,i,o)}function md5ii(e,t,n,r,u,i,o){return md5cmn(n^(t|~r),e,t,u,i,o)}function binlMD5(e,t){var n,r,u,i,o;e[t>>5]|=128<>>9<<4)]=t;var a=1732584193,c=-271733879,s=-1732584194,l=271733878;for(n=0;n>5]>>>t%32&255);return n}function rstr2binl(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+"0123456789abcdef".charAt(15&t);return r}function str2rstrUTF8(e){return unescape(encodeURIComponent(e))}function rawMD5(e){return function(e){return binl2rstr(binlMD5(rstr2binl(e),8*e.length))}(str2rstrUTF8(e))}function rawHMACMD5(e,t){return function(e,t){var n,r,u=rstr2binl(e),i=[],o=[];for(i[15]=o[15]=void 0,u.length>16&&(u=binlMD5(u,8*e.length)),n=0;n<16;n+=1)i[n]=909522486^u[n],o[n]=1549556828^u[n];return r=binlMD5(i.concat(rstr2binl(t)),512+8*t.length),binl2rstr(binlMD5(o.concat(r),640))}(str2rstrUTF8(e),str2rstrUTF8(t))}function md5(e,t,n){return t?n?rawHMACMD5(t,e):rstr2hex(rawHMACMD5(t,e)):n?rawMD5(e):rstr2hex(rawMD5(e))}void 0===(r=function(){return md5}.call(t,n,t,e))||(e.exports=r)}()},550:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var u,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(u=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(u)+")")})}},575:function(e,t,n){var r=n(11),u=n(35),i=n(36),o=n(25);e.exports=function(e,t,n,a,c){r(t);var s=u(e),l=i(s),f=o(s.length),h=c?f-1:0,p=c?-1:1;if(n<2)for(;;){if(h in l){a=l[h],h+=p;break}if(h+=p,c?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:f>h;h+=p)h in l&&(a=t(a,l[h],h,s));return a}},576:function(e,t,n){var r=n(6),u=n(267),i=n(0)("species");e.exports=function(e){var t;return u(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!u(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},577:function(e,t,n){var r=n(576);e.exports=function(e,t){return new(r(e))(t)}},578:function(e,t,n){var r=n(204),u=n(27),i=n(14),o=n(37),a=n(10),c=n(41),s=Object.getOwnPropertyDescriptor;t.f=n(5)?s:function(e,t){if(e=i(e),t=o(t,!0),c)try{return s(e,t)}catch(e){}if(a(e,t))return u(!r.f.call(e,t),e[t])}},579:function(e,t,n){var r=n(14),u=n(266).f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==i.call(e)?function(e){try{return u(e)}catch(e){return o.slice()}}(e):u(r(e))}},580:function(e,t,n){var r=n(26),u=n(268),i=n(204);e.exports=function(e){var t=r(e),n=u.f;if(n)for(var o,a=n(e),c=i.f,s=0;a.length>s;)c.call(e,o=a[s++])&&t.push(o);return t}},581:function(e,t,n){var r=n(1),u=n(3),i=n(16),o=n(269),a=n(9).f;e.exports=function(e){var t=u.Symbol||(u.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},582:function(e,t,n){var r=n(15)("meta"),u=n(6),i=n(10),o=n(9).f,a=0,c=Object.isExtensible||function(){return!0},s=!n(24)(function(){return c(Object.preventExtensions({}))}),l=function(e){o(e,r,{value:{i:"O"+ ++a,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!u(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&c(e)&&!i(e,r)&&l(e),e}}},583:function(e,t,n){"use strict";var r=n(1),u=n(10),i=n(5),o=n(23),a=n(7),c=n(582).KEY,s=n(24),l=n(29),f=n(17),h=n(15),p=n(0),y=n(269),v=n(581),d=n(580),m=n(267),_=n(2),g=n(6),k=n(14),b=n(37),w=n(27),O=n(40),S=n(579),M=n(578),E=n(9),C=n(26),I=M.f,F=E.f,A=S.f,R=r.Symbol,T=r.JSON,x=T&&T.stringify,L=p("_hidden"),j=p("toPrimitive"),P={}.propertyIsEnumerable,D=l("symbol-registry"),N=l("symbols"),q=l("op-symbols"),B=Object.prototype,W="function"==typeof R,U=r.QObject,G=!U||!U.prototype||!U.prototype.findChild,z=i&&s(function(){return 7!=O(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=I(B,t);r&&delete B[t],F(e,t,n),r&&e!==B&&F(B,t,r)}:F,H=function(e){var t=N[e]=O(R.prototype);return t._k=e,t},J=W&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},V=function(e,t,n){return e===B&&V(q,t,n),_(e),t=b(t,!0),_(n),u(N,t)?(n.enumerable?(u(e,L)&&e[L][t]&&(e[L][t]=!1),n=O(n,{enumerable:w(0,!1)})):(u(e,L)||F(e,L,w(1,{})),e[L][t]=!0),z(e,t,n)):F(e,t,n)},$=function(e,t){_(e);for(var n,r=d(t=k(t)),u=0,i=r.length;i>u;)V(e,n=r[u++],t[n]);return e},K=function(e){var t=P.call(this,e=b(e,!0));return!(this===B&&u(N,e)&&!u(q,e))&&(!(t||!u(this,e)||!u(N,e)||u(this,L)&&this[L][e])||t)},Y=function(e,t){if(e=k(e),t=b(t,!0),e!==B||!u(N,t)||u(q,t)){var n=I(e,t);return!n||!u(N,t)||u(e,L)&&e[L][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=A(k(e)),r=[],i=0;n.length>i;)u(N,t=n[i++])||t==L||t==c||r.push(t);return r},Z=function(e){for(var t,n=e===B,r=A(n?q:k(e)),i=[],o=0;r.length>o;)!u(N,t=r[o++])||n&&!u(B,t)||i.push(N[t]);return i};W||(a((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(q,n),u(this,L)&&u(this[L],e)&&(this[L][e]=!1),z(this,e,w(1,n))};return i&&G&&z(B,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),M.f=Y,E.f=V,n(266).f=S.f=Q,n(204).f=K,n(268).f=Z,i&&!n(16)&&a(B,"propertyIsEnumerable",K,!0),y.f=function(e){return H(p(e))}),o(o.G+o.W+o.F*!W,{Symbol:R});for(var X="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;X.length>ee;)p(X[ee++]);for(var te=C(p.store),ne=0;te.length>ne;)v(te[ne++]);o(o.S+o.F*!W,"Symbol",{for:function(e){return u(D,e+="")?D[e]:D[e]=R(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in D)if(D[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),o(o.S+o.F*!W,"Object",{create:function(e,t){return void 0===t?O(e):$(O(e),t)},defineProperty:V,defineProperties:$,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),T&&o(o.S+o.F*(!W||s(function(){var e=R();return"[null]"!=x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],u=1;arguments.length>u;)r.push(arguments[u++]);if(n=t=r[1],(g(t)||void 0!==e)&&!J(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,x.apply(T,r)}}),R.prototype[j]||n(4)(R.prototype,j,R.prototype.valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},87:function(e,t,n){var r=n(9).f,u=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in u||n(5)&&r(u,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},88:function(e,t,n){"use strict";var r=n(23),u=n(164)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return u(this,e,arguments.length>1?arguments[1]:void 0)}}),n(38)("find")},89:function(e,t,n){"use strict";var r=n(23),u=n(164)(2);r(r.P+r.F*!n(163)([].filter,!0),"Array",{filter:function(e){return u(this,e,arguments[1])}})},90:function(e,t,n){"use strict";var r=n(23),u=n(164)(1);r(r.P+r.F*!n(163)([].map,!0),"Array",{map:function(e){return u(this,e,arguments[1])}})},91:function(e,t,n){"use strict";var r=n(23),u=n(575);r(r.P+r.F*!n(163)([].reduce,!0),"Array",{reduce:function(e){return u(this,e,arguments.length,arguments[1],!1)}})},92:function(e,t,n){"use strict";var r=n(23),u=n(164)(0),i=n(163)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return u(this,e,arguments[1])}})},93:function(e,t,n){n(583),n(42),e.exports=n(3).Symbol},94:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"__extends",function(){return __extends}),n.d(t,"__assign",function(){return u}),n.d(t,"__rest",function(){return __rest}),n.d(t,"__decorate",function(){return __decorate}),n.d(t,"__param",function(){return __param}),n.d(t,"__metadata",function(){return __metadata}),n.d(t,"__awaiter",function(){return __awaiter}),n.d(t,"__generator",function(){return __generator}),n.d(t,"__exportStar",function(){return __exportStar}),n.d(t,"__values",function(){return __values}),n.d(t,"__read",function(){return __read}),n.d(t,"__spread",function(){return __spread}),n.d(t,"__await",function(){return __await}),n.d(t,"__asyncGenerator",function(){return __asyncGenerator}),n.d(t,"__asyncDelegator",function(){return __asyncDelegator}),n.d(t,"__asyncValues",function(){return __asyncValues}),n.d(t,"__makeTemplateObject",function(){return __makeTemplateObject}),n.d(t,"__importStar",function(){return __importStar}),n.d(t,"__importDefault",function(){return __importDefault}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function __extends(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)(u=e[a])&&(o=(i<3?u(o):i>3?u(t,n,o):u(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function __param(e,t){return function(n,r){t(n,r,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(t,n,r,u){return new(r||(r=e))(function(e,i){function fulfilled(e){try{step(u.next(e))}catch(e){i(e)}}function rejected(e){try{step(u.throw(e))}catch(e){i(e)}}function step(t){t.done?e(t.value):new r(function(e){e(t.value)}).then(fulfilled,rejected)}step((u=u.apply(t,n||[])).next())})}function __generator(e,t){var n,r,u,i,o={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(u=2&i[0]?r.return:i[0]?r.throw||((u=r.return)&&u.call(r),0):r.next)&&!(u=u.call(r,i[1])).done)return u;switch(r=0,u&&(i=[2&i[0],u.value]),i[0]){case 0:case 1:u=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(u=(u=o.trys).length>0&&u[u.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!u||i[1]>u[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,u,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){u={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return o}function __spread(){for(var e=[],t=0;t1||resume(t,n)})})}function resume(t,n){try{(r=i[t](n)).value instanceof __await?e.resolve(r.value.v).then(fulfill,reject):settle(o[0][2],r)}catch(e){settle(o[0][3],e)}var r}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){e(t),o.shift(),o.length&&resume(o[0][0],o[0][1])}}function __asyncDelegator(e){var t,n;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(r,u){t[r]=e[r]?function(t){return(n=!n)?{value:__await(e[r](t)),done:"return"===r}:u?u(t):t}:u}}function __asyncValues(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=t[Symbol.asyncIterator];return r?r.call(t):(t=__values(t),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(r){n[r]=t[r]&&function(n){return new e(function(u,i){(function(t,n,r,u){e.resolve(u).then(function(e){t({value:e,done:r})},n)})(u,i,(n=t[r](n)).done,n.value)})}}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}}.call(this,n(34))}}]);