-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9-es5.7e2ec18d7c39480af559.js
More file actions
1 lines (1 loc) · 342 KB
/
9-es5.7e2ec18d7c39480af559.js
File metadata and controls
1 lines (1 loc) · 342 KB
1
function asyncGeneratorStep(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,s,"next",e)}function s(e){asyncGeneratorStep(o,n,i,a,s,"throw",e)}a(void 0)}))}}function _get(e,t,r){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=_superPropBase(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _classCallCheck3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _createSuper(e){return function(){var t,r=_getPrototypeOf(e);if(_isNativeReflectConstruct()){var n=_getPrototypeOf(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"/nCE":function(e,t,r){"use strict";var n=r("OZ/i"),i=r("QSG8"),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),this.recoveryParam=void 0===e.recoveryParam?null:e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(c(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=c(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var u=c(e,r);if(e.length!==u+r.place)return!1;var f=e.slice(r.place,u+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===f[0]&&128&f[1]&&(f=f.slice(1)),this.r=new n(a),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},"/pHA":function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.setupMultiplex=void 0;var i=n(r("dv6X")),o=n(r("b1mx"));t.setupMultiplex=function(e){var t=new i.default;return t.getStream=function(e){return this._substreams[e]?this._substreams[e]:this.createStream(e)},(0,o.default)(e,t,e,(function(e){e&&console.error(e)})),t}},"/pSh":function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.getTorusUrl=t.get=t.getPreopenInstanceId=t.makeThenable=t.logStreamDisconnectWarning=t.createErrorMiddleware=t.validatePaymentProvider=void 0;var i=n(r("o0o1")),o=n(r("yXPU")),a=n(r("lSNA")),s=n(r("q1ed")),c=r("z8+S"),u=n(r("+qE3")),f=n(r("XH0y")),d=n(r("y2lW")),l=r("rE/g"),h=n(r("YGzH"));function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=h.default.paymentProviders;t.validatePaymentProvider=function(e,t){var r={};if(!m[e])return r.provider="Invalid Provider",{errors:r,isValid:0===Object.keys(r).length};var n=m[e],i=t||{};if(i.fiatValue){var o=+parseFloat(i.fiatValue)||0;o<n.minOrderValue&&(r.fiatValue="Requested amount is lower than supported"),o>n.maxOrderValue&&(r.fiatValue="Requested amount is higher than supported")}return i.selectedCurrency&&!n.validCurrencies.includes(i.selectedCurrency)&&(r.selectedCurrency="Unsupported currency"),i.selectedCryptoCurrency&&!n.validCryptoCurrencies.includes(i.selectedCryptoCurrency)&&(r.selectedCryptoCurrency="Unsupported cryptoCurrency"),{errors:r,isValid:0===Object.keys(r).length}},t.createErrorMiddleware=function(){return function(e,t,r){r((function(e){var r=t.error;return r?((0,c.serializeError)(r),f.default.error("MetaMask - RPC Error: ".concat(r.message),r),e()):e()}))}},t.logStreamDisconnectWarning=function(e,t){var r="MetamaskInpageProvider - lost connection to ".concat(e);t&&(r+="\n".concat(t.stack)),f.default.warn(r),(void 0 instanceof u.default||void 0 instanceof d.default)&&(void 0).listenerCount("error")>0&&(void 0).emit("error",r)},t.makeThenable=function(e,t){if(e instanceof Promise)return e;var r={configurable:!0,writable:!0,enumerable:!1};return Object.defineProperty(e,"then",b({},r,{value:function(r,n){return Promise.resolve().then((function(){return r(e[t])}),n)}})),Object.defineProperty(e,"catch",b({},r,{value:Promise.prototype.catch})),Object.defineProperty(e,"finally",b({},r,{value:Promise.prototype.finally})),e},t.getPreopenInstanceId=function(){return(0,s.default)()};var v,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={mode:"cors",cache:"no-cache"},n=b({},r,{},t,{},{method:"GET"});return fetch(e,n).then((function(e){if(e.ok)return e.json();throw e}))};t.get=y,t.getTorusUrl=(v=(0,o.default)(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=r.version||l.version,e.prev=1,"staging"!==t&&"production"!==t||r.check){e.next=7;break}return e.next=5,y("".concat(h.default.api,"/latestversion?name=").concat(l.name,"&version=").concat(r.version||l.version));case 5:a=e.sent.data;case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),f.default.error(e.t0,"unable to fetch latest version");case 12:f.default.info("version used: ",a),e.t1=t,e.next="staging"===e.t1?16:"testing"===e.t1?19:"development"===e.t1?22:25;break;case 16:return n="https://staging.tor.us/v".concat(a),o="info",e.abrupt("break",28);case 19:return n="https://testing.tor.us",o="debug",e.abrupt("break",28);case 22:return n="https://localhost:3000",o="debug",e.abrupt("break",28);case 25:return n="https://app.tor.us/v".concat(a),o="error",e.abrupt("break",28);case 28:return e.abrupt("return",{torusUrl:n,logLevel:o});case 29:case"end":return e.stop()}}),e,null,[[1,9]])}))),function(e,t){return v.apply(this,arguments)})},"0ZoM":function(e,t,r){"use strict";var n=r("OZ/i"),i=r("P7XM"),o=r("cSfw"),a=r("QSG8");function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},10:function(e,t){},"1jOq":function(e,t){e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},"1uat":function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("MlIO"),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var f=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],f=r[5],d=r[6],l=r[7],h=n.high,p=n.low,b=i.high,m=i.low,v=o.high,y=o.low,g=a.high,w=a.low,_=s.high,M=s.low,k=f.high,S=f.low,x=d.high,A=d.low,I=l.high,O=l.low,P=h,E=p,C=b,B=m,j=v,R=y,T=g,L=w,F=_,N=M,D=k,q=S,z=x,H=A,U=I,W=O,V=0;V<80;V++){var K=u[V];if(V<16)var G=K.high=0|e[t+2*V],J=K.low=0|e[t+2*V+1];else{var X=u[V-15],Y=X.high,Z=X.low,Q=(Z>>>1|Y<<31)^(Z>>>8|Y<<24)^(Z>>>7|Y<<25),$=u[V-2],ee=$.high,te=$.low,re=(te>>>19|ee<<13)^(te<<3|ee>>>29)^(te>>>6|ee<<26),ne=u[V-7],ie=u[V-16],oe=ie.low;K.high=G=(G=(G=((Y>>>1|Z<<31)^(Y>>>8|Z<<24)^Y>>>7)+ne.high+((J=Q+ne.low)>>>0<Q>>>0?1:0))+((ee>>>19|te<<13)^(ee<<3|te>>>29)^ee>>>6)+((J+=re)>>>0<re>>>0?1:0))+ie.high+((J+=oe)>>>0<oe>>>0?1:0),K.low=J}var ae,se=F&D^~F&z,ce=N&q^~N&H,ue=P&C^P&j^C&j,fe=(E>>>28|P<<4)^(E<<30|P>>>2)^(E<<25|P>>>7),de=c[V],le=de.low,he=U+((F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9))+((ae=W+((N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9)))>>>0<W>>>0?1:0),pe=fe+(E&B^E&R^B&R);U=z,W=H,z=D,H=q,D=F,q=N,F=T+(he=(he=(he=he+se+((ae+=ce)>>>0<ce>>>0?1:0))+de.high+((ae+=le)>>>0<le>>>0?1:0))+G+((ae+=J)>>>0<J>>>0?1:0))+((N=L+ae|0)>>>0<L>>>0?1:0)|0,T=j,L=R,j=C,R=B,C=P,B=E,P=he+(((P>>>28|E<<4)^(P<<30|E>>>2)^(P<<25|E>>>7))+ue+(pe>>>0<fe>>>0?1:0))+((E=ae+pe|0)>>>0<ae>>>0?1:0)|0}p=n.low=p+E,n.high=h+P+(p>>>0<E>>>0?1:0),m=i.low=m+B,i.high=b+C+(m>>>0<B>>>0?1:0),y=o.low=y+R,o.high=v+j+(y>>>0<R>>>0?1:0),w=a.low=w+L,a.high=g+T+(w>>>0<L>>>0?1:0),M=s.low=M+N,s.high=_+F+(M>>>0<N>>>0?1:0),S=f.low=S+q,f.high=k+D+(S>>>0<q>>>0?1:0),A=d.low=A+H,d.high=x+z+(A>>>0<H>>>0?1:0),O=l.low=O+W,l.high=I+U+(O>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(f),e.HmacSHA512=t._createHmacHelper(f)}(),n.SHA512)},"2PeK":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyAssign=t.keyLookup=t.thresholdSame=t.kCombinations=void 0;var n,i=(n=r("rE/H"))&&n.__esModule?n:{default:n},o=r("Y4E4"),a=r("VQkn");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}t.kCombinations=function e(t,r){var n=t;if("number"==typeof n&&(n=Array.from({length:n},(function(e,t){return t}))),r>n.length||r<=0)return[];if(r===n.length)return[n];if(1===r)return n.reduce((function(e,t){return[].concat(u(e),[[t]])}),[]);for(var i=[],o=[],a=0;a<=n.length-r+1;a++){o=e(n.slice(a+1),r-1);for(var s=0;s<o.length;s++)i.push([n[a]].concat(u(o[s])))}return i};var f=function(e,t){for(var r={},n=0;n<e.length;n++){var o=(0,i.default)(e[n]);if(r[o]=r[o]?r[o]+1:1,r[o]===t)return e[n]}};t.thresholdSame=f,t.keyLookup=function(e,t,r){var n=e.map((function(e){return(0,o.post)(e,(0,o.generateJsonRPCObject)("VerifierLookupRequest",{verifier:t,verifier_id:r.toString().toLowerCase()})).catch((function(e){}))}));return(0,a.Some)(n,(function(t){var r=t.filter((function(e){return e})),n=f(r.map((function(e){return e&&e.error})),1+~~(e.length/2)),i=f(r.map((function(e){return e&&e.result})),1+~~(e.length/2));return i||n?Promise.resolve({keyResult:i,errorResult:n}):Promise.reject(new Error("invalid"))})).catch((function(e){}))},t.keyAssign=function e(t,r,n,i,a,u){var f,d;if(void 0===n?(f=Math.floor(Math.random()*t.length),d=f):f=n%t.length,f===i)throw new Error("Looped through all");void 0!==i&&(d=i);var l=(0,o.generateJsonRPCObject)("KeyAssign",{verifier:a,verifier_id:u.toString().toLowerCase()});return(0,o.post)("https://signer.tor.us/api/sign",l,{headers:{pubKeyX:r[f].X,pubKeyY:r[f].Y}}).then((function(n){return(0,o.post)(t[f],function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},l,{},n),{headers:{"Content-Type":"application/json; charset=utf-8"}}).catch((function(n){return e(t,r,f+1,d,a,u)}))}))}},"3JDT":function(e,t,r){"use strict";var n=t;n.version=r("P1VG").version,n.utils=r("QSG8"),n.rand=r("/ayr"),n.curve=r("xTFU"),n.curves=r("nHqQ"),n.ec=r("GY8m"),n.eddsa=r("6yv0")},"3QEE":function(e,t,r){var n;!function(i){"use strict";var o,a,s=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,c=Math.ceil,u=Math.floor,f=" not a boolean or binary digit",d="number type has more than 15 significant digits",l="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function p(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],(r=i&&!i[0])||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(s=(c=i.length)<(u=o.length)?c:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function v(e,t,r){return(e=M(e))>=t&&e<=r}function y(e){return"[object Array]"==Object.prototype.toString.call(e)}function g(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;o[i]*=t);for(o[n=0]+=l.indexOf(e.charAt(a++));n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function w(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function M(e){return(e=parseFloat(e))<0?c(e):u(e)}o=function e(t){var r,n,i,o,k,S,x,A=0,I=z.prototype,O=new z(1),P=20,E=4,C=-7,B=21,j=-1e7,R=1e7,T=!0,L=V,F=!1,N=1,D=100,q={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"\xa0",fractionGroupSize:0};function z(e,t){var r,n,i,o,c,u,f=this;if(!(f instanceof z))return T&&G(26,"constructor call without new",e),new z(e,t);if(null!=t&&L(t,2,64,A,"base")){if(u=e+"",10==(t|=0))return J(f=new z(e instanceof z?e:u),P+f.e+1,E);if((o="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+l.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(u))return a(f,u,o,t);o?(f.s=1/e<0?(u=u.slice(1),-1):1,T&&u.replace(/^0\.0*|\./,"").length>15&&G(A,d,e),o=!1):f.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1,u=H(u,10,t,f.s)}else{if(e instanceof z)return f.s=e.s,f.e=e.e,f.c=(e=e.c)?e.slice():e,void(A=0);if((o="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(n=0,i=e;i>=10;i/=10,n++);return f.e=n,f.c=[e],void(A=0)}u=e+""}else{if(!s.test(u=e+""))return a(f,u,o);f.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1}}for((n=u.indexOf("."))>-1&&(u=u.replace(".","")),(i=u.search(/e/i))>0?(n<0&&(n=i),n+=+u.slice(i+1),u=u.substring(0,i)):n<0&&(n=u.length),i=0;48===u.charCodeAt(i);i++);for(c=u.length;48===u.charCodeAt(--c););if(u=u.slice(i,c+1))if(c=u.length,o&&T&&c>15&&G(A,d,f.s*e),(n=n-i-1)>R)f.c=f.e=null;else if(n<j)f.c=[f.e=0];else{if(f.e=n,f.c=[],i=(n+1)%14,n<0&&(i+=14),i<c){for(i&&f.c.push(+u.slice(0,i)),c-=14;i<c;)f.c.push(+u.slice(i,i+=14));i=14-(u=u.slice(i)).length}else i-=c;for(;i--;u+="0");f.c.push(+u)}else f.c=[f.e=0];A=0}function H(e,t,n,i){var o,a,s,c,u,f,d,h=e.indexOf("."),p=P,m=E;for(n<37&&(e=e.toLowerCase()),h>=0&&(s=D,D=0,e=e.replace(".",""),u=(d=new z(n)).pow(e.length-h),D=s,d.c=g(_(b(u.c),u.e),10,t),d.e=d.c.length),a=s=(f=g(e,n,t)).length;0==f[--s];f.pop());if(!f[0])return"0";if(h<0?--a:(u.c=f,u.e=a,u.s=i,f=(u=r(u,d,p,m,t)).c,c=u.r,a=u.e),h=f[o=a+p+1],s=t/2,c=c||o<0||null!=f[o+1],c=m<4?(null!=h||c)&&(0==m||m==(u.s<0?3:2)):h>s||h==s&&(4==m||c||6==m&&1&f[o-1]||m==(u.s<0?8:7)),o<1||!f[0])e=c?_("1",-p):"0";else{if(f.length=o,c)for(--t;++f[--o]>t;)f[o]=0,o||(++a,f.unshift(1));for(s=f.length;!f[--s];);for(h=0,e="";h<=s;e+=l.charAt(f[h++]));e=_(e,a)}return e}function U(e,t,r,n){var i,o,a,s,c;if(r=null!=r&&L(r,0,8,n,"rounding mode")?0|r:E,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=b(e.c),c=19==n||24==n&&a<=C?w(c,a):_(c,a);else if(o=(e=J(new z(e),t,r)).e,s=(c=b(e.c)).length,19==n||24==n&&(t<=o||o<=C)){for(;s<t;c+="0",s++);c=w(c,o)}else if(t-=a,c=_(c,o),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function W(e,t){var r,n,i=0;for(y(e[0])&&(e=e[0]),r=new z(e[0]);++i<e.length;){if(!(n=new z(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function V(e,t,r,n,i){return(e<t||e>r||e!=M(e))&&G(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function K(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>R?e.c=e.e=null:r<j?e.c=[e.e=0]:(e.e=r,e.c=t),e}function G(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",A=0,n}function J(e,t,r,n){var i,o,a,s,f,d,l,p=e.c,b=h;if(p){e:{for(i=1,s=p[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,l=(f=p[d=0])/b[i-(a=t)-1]%10|0;else if((d=c((o+1)/14))>=p.length){if(!n)break e;for(;p.length<=d;p.push(0));f=l=0,i=1,a=(o%=14)-14+1}else{for(f=s=p[d],i=1;s>=10;s/=10,i++);l=(a=(o%=14)-14+i)<0?0:f/b[i-a-1]%10|0}if(n=n||t<0||null!=p[d+1]||(a<0?f:f%b[i-a-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?f/b[i-a]:0:p[d-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(p[0]=b[(t-=e.e+1)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==o?(p.length=d,s=1,d--):(p.length=d+1,s=b[14-o],p[d]=a>0?u(f/b[i-a]%b[a])*s:0),n)for(;;){if(0==d){for(o=1,a=p[0];a>=10;a/=10,o++);for(a=p[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[d]+=s,1e14!=p[d])break;p[d--]=0,s=1}for(o=p.length;0===p[--o];p.pop());}e.e>R?e.c=e.e=null:e.e<j&&(e.c=[e.e=0])}return e}return z.another=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=function(){var e,t,r=0,n={},i=arguments,o=i[0],a=o&&"object"==typeof o?function(){if(o.hasOwnProperty(t))return null!=(e=o[t])}:function(){if(i.length>r)return null!=(e=i[r++])};return a(t="DECIMAL_PLACES")&&L(e,0,1e9,2,t)&&(P=0|e),n[t]=P,a(t="ROUNDING_MODE")&&L(e,0,8,2,t)&&(E=0|e),n[t]=E,a(t="EXPONENTIAL_AT")&&(y(e)?L(e[0],-1e9,0,2,t)&&L(e[1],0,1e9,2,t)&&(C=0|e[0],B=0|e[1]):L(e,-1e9,1e9,2,t)&&(C=-(B=0|(e<0?-e:e)))),n[t]=[C,B],a(t="RANGE")&&(y(e)?L(e[0],-1e9,-1,2,t)&&L(e[1],1,1e9,2,t)&&(j=0|e[0],R=0|e[1]):L(e,-1e9,1e9,2,t)&&(0|e?j=-(R=0|(e<0?-e:e)):T&&G(2,t+" cannot be zero",e))),n[t]=[j,R],a(t="ERRORS")&&(e===!!e||1===e||0===e?(A=0,L=(T=!!e)?V:v):T&&G(2,t+f,e)),n[t]=T,a(t="CRYPTO")&&(e===!!e||1===e||0===e?(F=!1,e&&!F&&T&&G(2,"crypto unavailable",void 0)):T&&G(2,t+f,e)),n[t]=F,a(t="MODULO_MODE")&&L(e,0,9,2,t)&&(N=0|e),n[t]=N,a(t="POW_PRECISION")&&L(e,0,1e9,2,t)&&(D=0|e),n[t]=D,a(t="FORMAT")&&("object"==typeof e?q=e:T&&G(2,t+" not an object",e)),n[t]=q,n},z.max=function(){return W(arguments,I.lt)},z.min=function(){return W(arguments,I.gt)},z.random=(n=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,i,o=0,a=[],s=new z(O);if(e=null!=e&&L(e,0,1e9,14)?0|e:P,r=c(e/14),F&&T&&G(14,"crypto unavailable",void 0),!o)for(;o<r;)(i=n())<9e15&&(a[o++]=i%1e14);for(e%=14,(r=a[--o])&&e&&(a[o]=u(r/(i=h[14-e]))*i);0===a[o];a.pop(),o--);if(o<0)a=[t=0];else{for(t=-1;0===a[0];a.shift(),t-=14);for(o=1,i=a[0];i>=10;i/=10,o++);o<14&&(t-=14-o)}return s.e=t,s.c=a,s}),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%1e7,f=t/1e7|0;for(e=e.slice();c--;)s=((i=u*(o=e[c]%1e7)+(n=f*o+(a=e[c]/1e7|0)*u)%1e7*1e7+s)/r|0)+(n/1e7|0)+f*a,e[c]=i%r;return s&&e.unshift(s),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,e[r]=(i=e[r]<t[r]?1:0)*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.shift());}return function(n,i,o,a,s){var c,f,d,l,h,b,m,v,y,g,w,_,M,k,S,x,A,I=n.s==i.s?1:-1,O=n.c,P=i.c;if(!(O&&O[0]&&P&&P[0]))return new z(n.s&&i.s&&(O?!P||O[0]!=P[0]:P)?O&&0==O[0]||!P?0*I:I/0:NaN);for(y=(v=new z(I)).c=[],I=o+(f=n.e-i.e)+1,s||(s=1e14,f=p(n.e/14)-p(i.e/14),I=I/14|0),d=0;P[d]==(O[d]||0);d++);if(P[d]>(O[d]||0)&&f--,I<0)y.push(1),l=!0;else{for(k=O.length,x=P.length,d=0,I+=2,(h=u(s/(P[0]+1)))>1&&(P=e(P,h,s),O=e(O,h,s),x=P.length,k=O.length),M=x,w=(g=O.slice(0,x)).length;w<x;g[w++]=0);(A=P.slice()).unshift(0),S=P[0],P[1]>=s/2&&S++;do{if(h=0,(c=t(P,g,x,w))<0){if(_=g[0],x!=w&&(_=_*s+(g[1]||0)),(h=u(_/S))>1)for(h>=s&&(h=s-1),m=(b=e(P,h,s)).length,w=g.length;1==t(b,g,m,w);)h--,r(b,x<m?A:P,m,s),m=b.length,c=1;else 0==h&&(c=h=1),m=(b=P.slice()).length;if(m<w&&b.unshift(0),r(g,b,w,s),w=g.length,-1==c)for(;t(P,g,x,w)<1;)h++,r(g,x<w?A:P,w,s),w=g.length}else 0===c&&(h++,g=[0]);y[d++]=h,g[0]?g[w++]=O[M]||0:(g=[O[M]],w=1)}while((M++<k||null!=g[0])&&I--);l=null!=g[0],y[0]||y.shift()}if(1e14==s){for(d=1,I=y[0];I>=10;I/=10,d++);J(v,o+(v.e=d+14*f-1)+1,a,l)}else v.e=f,v.r=+l;return v}}(),i=/^(-?)0([xbo])/i,o=/^([^.]+)\.$/,k=/^\.([^.]+)$/,S=/^-?(Infinity|NaN)$/,x=/^\s*\+|^\s+|\s+$/g,a=function(e,t,r,n){var a,s=r?t:t.replace(x,"");if(S.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!r&&(s=s.replace(i,(function(e,t,r){return a="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=a?e:t})),n&&(a=n,s=s.replace(o,"$1").replace(k,"0.$1")),t!=s))return new z(s,a);T&&G(A,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,A=0},I.absoluteValue=I.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},I.ceil=function(){return J(new z(this),this.e+1,2)},I.comparedTo=I.cmp=function(e,t){return A=1,m(this,new z(e,t))},I.decimalPlaces=I.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=14*((t=r.length-1)-p(this.e/14)),t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},I.dividedBy=I.div=function(e,t){return A=3,r(this,new z(e,t),P,E)},I.dividedToIntegerBy=I.divToInt=function(e,t){return A=4,r(this,new z(e,t),0,1)},I.equals=I.eq=function(e,t){return A=5,0===m(this,new z(e,t))},I.floor=function(){return J(new z(this),this.e+1,3)},I.greaterThan=I.gt=function(e,t){return A=6,m(this,new z(e,t))>0},I.greaterThanOrEqualTo=I.gte=function(e,t){return A=7,1===(t=m(this,new z(e,t)))||0===t},I.isFinite=function(){return!!this.c},I.isInteger=I.isInt=function(){return!!this.c&&p(this.e/14)>this.c.length-2},I.isNaN=function(){return!this.s},I.isNegative=I.isNeg=function(){return this.s<0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.lessThan=I.lt=function(e,t){return A=8,m(this,new z(e,t))<0},I.lessThanOrEqualTo=I.lte=function(e,t){return A=9,-1===(t=m(this,new z(e,t)))||0===t},I.minus=I.sub=function(e,t){var r,n,i,o,a=this,s=a.s;if(A=10,t=(e=new z(e,t)).s,!s||!t)return new z(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/14,u=e.e/14,f=a.c,d=e.c;if(!c||!u){if(!f||!d)return f?(e.s=-t,e):new z(d?a:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new z(f[0]?a:3==E?-0:0)}if(c=p(c),u=p(u),f=f.slice(),s=c-u){for((o=s<0)?(s=-s,i=f):(u=c,i=d),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=f.length)<(t=d.length))?s:t,s=t=0;t<n;t++)if(f[t]!=d[t]){o=f[t]<d[t];break}if(o&&(i=f,f=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=1e14-1;n>s;){if(f[--n]<d[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=1e14}f[n]-=d[n]}for(;0==f[0];f.shift(),--u);return f[0]?K(e,f,u):(e.s=3==E?-1:1,e.c=[e.e=0],e)},I.modulo=I.mod=function(e,t){var n,i,o=this;return A=11,e=new z(e,t),!o.c||!e.s||e.c&&!e.c[0]?new z(NaN):!e.c||o.c&&!o.c[0]?new z(o):(9==N?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,N),o.minus(n.times(e)))},I.negated=I.neg=function(){var e=new z(this);return e.s=-e.s||null,e},I.plus=I.add=function(e,t){var r,n=this,i=n.s;if(A=12,t=(e=new z(e,t)).s,!i||!t)return new z(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/14,a=e.e/14,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new z(i/0);if(!s[0]||!c[0])return c[0]?e:new z(s[0]?n:0*i)}if(o=p(o),a=p(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/1e14|0,s[t]%=1e14;return i&&(s.unshift(i),++a),K(e,s,a)},I.precision=I.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(T&&G(13,"argument"+f,e),e!=!!e&&(e=null)),!i)return null;if(t=14*(r=i.length-1)+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},I.round=function(e,t){var r=new z(this);return(null==e||L(e,0,1e9,15))&&J(r,~~e+this.e+1,null!=t&&L(t,0,8,15,"rounding mode")?0|t:E),r},I.shift=function(e){var t=this;return L(e,-9007199254740991,9007199254740991,16,"argument")?t.times("1e"+M(e)):new z(t.c&&t.c[0]&&(e<-9007199254740991||e>9007199254740991)?t.s*(e<0?0:1/0):t)},I.squareRoot=I.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,u=a.e,f=P+4,d=new z("0.5");if(1!==c||!s||!s[0])return new z(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+a))||c==1/0?(((t=b(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=p((u+1)/2)-(u<0||u%2),n=new z(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new z(c+""),n.c[0])for((c=(u=n.e)+f)<3&&(c=0);;)if(n=d.times((o=n).plus(r(a,o,f,1))),b(o.c).slice(0,c)===(t=b(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(J(n,n.e+P+2,1),e=!n.times(n).eq(a));break}if(!i&&(J(o,o.e+P+2,0),o.times(o).eq(a))){n=o;break}f+=4,c+=4,i=1}return J(n,n.e+P+1,E,e)},I.times=I.mul=function(e,t){var r,n,i,o,a,s,c,u,f,d,l,h,b,m=this,v=m.c,y=(A=17,e=new z(e,t)).c;if(!(v&&y&&v[0]&&y[0]))return!m.s||!e.s||v&&!v[0]&&!y||y&&!y[0]&&!v?e.c=e.e=e.s=null:(e.s*=m.s,v&&y?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=p(m.e/14)+p(e.e/14),e.s*=m.s,(c=v.length)<(d=y.length)&&(b=v,v=y,y=b,i=c,c=d,d=i),i=c+d,b=[];i--;b.push(0));for(i=d;--i>=0;){for(r=0,l=y[i]%1e7,h=y[i]/1e7|0,o=i+(a=c);o>i;)r=((u=l*(u=v[--a]%1e7)+(s=h*u+(f=v[a]/1e7|0)*l)%1e7*1e7+b[o]+r)/1e14|0)+(s/1e7|0)+h*f,b[o--]=u%1e14;b[o]=r}return r?++n:b.shift(),K(e,b,n)},I.toDigits=function(e,t){var r=new z(this);return e=null!=e&&L(e,1,1e9,18,"precision")?0|e:null,t=null!=t&&L(t,0,8,18,"rounding mode")?0|t:E,e?J(r,e,t):r},I.toExponential=function(e,t){return U(this,null!=e&&L(e,0,1e9,19)?1+~~e:null,t,19)},I.toFixed=function(e,t){return U(this,null!=e&&L(e,0,1e9,20)?~~e+this.e+1:null,t,20)},I.toFormat=function(e,t){var r=U(this,null!=e&&L(e,0,1e9,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+q.groupSize,a=+q.secondaryGroupSize,s=q.groupSeparator,c=i[0],u=i[1],f=this.s<0,d=f?c.slice(1):c,l=d.length;if(a&&(n=o,o=a,a=n,l-=n),o>0&&l>0){for(c=d.substr(0,n=l%o||o);n<l;n+=o)c+=s+d.substr(n,o);a>0&&(c+=s+d.slice(n)),f&&(c="-"+c)}r=u?c+q.decimalSeparator+((a=+q.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+q.fractionGroupSeparator):u):c}return r},I.toFraction=function(e){var t,n,i,o,a,s,c,u,f,d=T,l=this,p=l.c,m=new z(O),v=n=new z(O),y=c=new z(O);if(null!=e&&(T=!1,s=new z(e),T=d,(d=s.isInt())&&!s.lt(O)||(T&&G(22,"max denominator "+(d?"out of range":"not an integer"),e),e=!d&&s.c&&J(s,s.e+1,1).gte(O)?s:null)),!p)return l.toString();for(f=b(p),o=m.e=f.length-l.e-1,m.c[0]=h[(a=o%14)<0?14+a:a],e=!e||s.cmp(m)>0?o>0?m:v:s,a=R,R=1/0,s=new z(f),c.c[0]=0;u=r(s,m,0,1),1!=(i=n.plus(u.times(y))).cmp(e);)n=y,y=i,v=c.plus(u.times(i=v)),c=i,m=s.minus(u.times(i=m)),s=i;return i=r(e.minus(n),y,0,1),c=c.plus(i.times(v)),n=n.plus(i.times(y)),c.s=v.s=l.s,t=r(v,y,o*=2,E).minus(l).abs().cmp(r(c,n,o,E).minus(l).abs())<1?[v.toString(),y.toString()]:[c.toString(),n.toString()],R=a,t},I.toNumber=function(){var e=this;return+e||(e.s?0*e.s:NaN)},I.toPower=I.pow=function(e){var t,r,n=u(e<0?-e:+e),i=this;if(!L(e,-9007199254740991,9007199254740991,23,"exponent")&&(!isFinite(e)||n>9007199254740991&&(e/=0)||parseFloat(e)!=e&&!(e=NaN)))return new z(Math.pow(+i,e));for(t=D?c(D/14+2):0,r=new z(O);;){if(n%2){if(!(r=r.times(i)).c)break;t&&r.c.length>t&&(r.c.length=t)}if(!(n=u(n/2)))break;i=i.times(i),t&&i.c&&i.c.length>t&&(i.c.length=t)}return e<0&&(r=O.div(r)),t?J(r,D,E):r},I.toPrecision=function(e,t){return U(this,null!=e&&L(e,1,1e9,24,"precision")?0|e:null,t,24)},I.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=b(r.c),t=null!=e&&L(e,2,64,25,"base")?H(_(t,i),0|e,10,n):i<=C||i>=B?w(t,i):_(t,i),n<0&&r.c[0]&&(t="-"+t)),t},I.truncated=I.trunc=function(){return J(new z(this),this.e+1,1)},I.valueOf=I.toJSON=function(){return this.toString()},null!=t&&z.config(t),z}(),void 0===(n=(function(){return o}).call(t,r,t,e))||(e.exports=n)}()},"3V0z":function(e,t,r){var n=r("NFKh"),i=r("5hvy");e.exports=function(e,t){return t&&"hex"===t.encoding&&(e.length>2&&"0x"===e.substr(0,2)&&(e=e.substr(2)),e=n.enc.Hex.parse(e)),i(e,{outputLength:256}).toString()}},"3y9D":function(e,t,r){var n,i,o,a,s,c,u;e.exports=(u=r("Ib8C"),o=(i=(n=u).lib).WordArray,s=[],c=n.algo.SHA1=(a=i.Hasher).extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],c=r[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var f=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=f<<1|f>>>31}var d=(n<<5|n>>>27)+c+s[u];d+=u<20?1518500249+(i&o|~i&a):u<40?1859775393+(i^o^a):u<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,c=a,a=o,o=i<<30|i>>>2,i=n,n=d}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c),u.SHA1)},"4AyE":function(e,t,r){var n=r("OyGj"),i=r("bKmz");e.exports=function(e){this._requestManager=e._requestManager;var t=this;[new i({name:"listening",getter:"net_listening"}),new i({name:"peerCount",getter:"net_peerCount",outputFormatter:n.toDecimal})].forEach((function(r){r.attachToObject(t),r.setRequestManager(e._requestManager)}))}},"4RI0":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("MzeL"),i=d(r("QnMN")),o=r("ETH1"),a=d(r("MXov")),s=d(r("XH0y")),c=r("Y4E4"),u=r("VQkn"),f=r("2PeK");function d(e){return e&&e.__esModule?e:{default:e}}function l(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.default=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.enableLogging,i=void 0!==r&&r;m(this,t),this.ec=(0,n.ec)("secp256k1"),s.default.setDefaultLevel("DEBUG"),i||s.default.disableAll()}var r;return(r=[{key:"retrieveShares",value:function(t,r,n,d,h){var b=this;return new Promise((function(m,v){for(var y=[],g=i.default.generatePrivate(),w=i.default.getPublic(g).toString("hex"),_=w.slice(2,66),M=w.slice(66),k=(0,o.keccak256)(h),S=0;S<t.length;S++){var x=(0,c.post)(t[S],(0,c.generateJsonRPCObject)("CommitmentRequest",{messageprefix:"mug00",tokencommitment:k.slice(2),temppubx:_,temppuby:M,timestamp:(Date.now()-2e3).toString().slice(0,10),verifieridentifier:n})).catch((function(e){return s.default.debug("commitment",e)}));y.push(x)}(0,u.Some)(y,(function(e){return e.filter((function(e){return e})).length>=3*~~(t.length/4)+1?Promise.resolve(e):Promise.reject(new Error("invalid"))})).then((function(o){for(var m=[],v=[],y=0;y<o.length;y++)o[y]&&v.push(o[y].result);for(var w=0;w<t.length;w++){var _=(0,c.post)(t[w],(0,c.generateJsonRPCObject)("ShareRequest",{encrypted:"yes",item:[p({},d,{idtoken:h,nodesignatures:v,verifieridentifier:n})]})).catch((function(e){return s.default.debug("share req",e)}));m.push(_)}return(0,u.Some)(m,(M=regeneratorRuntime.mark((function n(o){var c,u,d,l,h,m,v,y,w,_,M,k;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=o.filter((function(e){return e})),u=(0,f.thresholdSame)(o.map((function(e){return e&&e.result&&e.result.keys[0].PublicKey})),1+~~(t.length/2)),!(c.length>=1+~~(t.length/2)&&u)){n.next=24;break}for(d=[],l=[],h=0;h<o.length;h++)o[h]&&o[h].result&&o[h].result.keys&&o[h].result.keys.length>0?(o[h].result.keys.sort((function(e,t){return new a.default(e.Index,16).cmp(new a.default(t.Index,16))})),o[h].result.keys[0].Metadata?(m={ephemPublicKey:e.from(o[h].result.keys[0].Metadata.ephemPublicKey,"hex"),iv:e.from(o[h].result.keys[0].Metadata.iv,"hex"),mac:e.from(o[h].result.keys[0].Metadata.mac,"hex"),mode:e.from(o[h].result.keys[0].Metadata.mode,"hex")},d.push(i.default.decrypt(g,p({},m,{ciphertext:e.from(atob(o[h].result.keys[0].Share).padStart(64,"0"),"hex")})).catch((function(e){return s.default.debug("share decryption",e)})))):d.push(Promise.resolve(e.from(o[h].result.keys[0].Share.padStart(64,"0"),"hex")))):d.push(Promise.resolve(void 0)),l.push(new a.default(r[h],16));return n.next=8,Promise.all(d);case 8:v=n.sent.reduce((function(e,t,r){return t&&e.push({index:l[r],value:new a.default(t)}),e}),[]),y=(0,f.kCombinations)(v.length,1+~~(t.length/2)),_=function(t){var r=y[t],n=v.filter((function(e,t){return r.includes(t)})),o=n.map((function(e){return e.value})),s=n.map((function(e){return e.index})),c=b.lagrangeInterpolation(o,s),f=i.default.getPublic(e.from(c.toString(16,64),"hex")).toString("hex"),d=f.slice(2,66),l=f.slice(66);if(0===new a.default(d,16).cmp(new a.default(u.X,16))&&0===new a.default(l,16).cmp(new a.default(u.Y,16)))return w=c,"break"},M=0;case 13:if(!(M<y.length)){n.next=20;break}if("break"!==_(M)){n.next=17;break}return n.abrupt("break",20);case 17:M++,n.next=13;break;case 20:if(void 0!==w){n.next=22;break}throw new Error("could not derive private key");case 22:return k=b.generateAddressFromPrivKey(w),n.abrupt("return",{ethAddress:k,privKey:w.toString("hex",64)});case 24:throw new Error("invalid");case 25:case"end":return n.stop()}}),n)})),k=function(){var e=this,t=arguments;return new Promise((function(r,n){var i=M.apply(e,t);function o(e){l(i,r,n,o,a,"next",e)}function a(e){l(i,r,n,o,a,"throw",e)}o(void 0)}))},function(e){return k.apply(this,arguments)}));var M,k})).then((function(e){m(e)})).catch((function(e){v(e)}))}))}},{key:"lagrangeInterpolation",value:function(e,t){if(e.length!==t.length)return null;for(var r=new a.default(0),n=0;n<e.length;n++){for(var i=new a.default(1),o=new a.default(1),s=0;s<e.length;s++)if(n!==s){i=(i=i.mul(t[s].neg())).umod(this.ec.curve.n);var c=t[n].sub(t[s]);c=c.umod(this.ec.curve.n),o=o.mul(c).umod(this.ec.curve.n)}var u=i.mul(o.invm(this.ec.curve.n)).umod(this.ec.curve.n);u=u.mul(e[n]).umod(this.ec.curve.n),r=r.add(u)}return r.umod(this.ec.curve.n)}},{key:"generateAddressFromPrivKey",value:function(t){var r=this.ec.keyFromPrivate(t.toString("hex",64),"hex").getPublic().encode("hex").slice(2),n="0x"+(0,o.keccak256)(e.from(r,"hex")).slice(26);return(0,o.toChecksumAddress)(n)}},{key:"getPublicAddress",value:function(e,t,r){var n=r.verifier,i=r.verifierId,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise((function(r,a){(0,f.keyLookup)(e,n,i).then((function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.keyResult,s=r.errorResult;return s?(0,f.keyAssign)(e,t,void 0,void 0,n,i).then((function(t){return(0,f.keyLookup)(e,n,i)})):o?Promise.resolve({keyResult:o}):a(new Error("node results do not match"))})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.keyResult;if(t){var n=t.keys[0],i=n.address,s=n.pub_key_X,c=n.pub_key_Y;r(o?{address:i,X:s,Y:c}:i)}else a(new Error("node results do not match"))})).catch((function(e){return a(e)}))}))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}()}).call(this,r("tjlA").Buffer)},"59Eh":function(e){e.exports=JSON.parse('[{"constant":false,"inputs":[{"name":"from","type":"bytes32"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"from","type":"bytes32"},{"name":"to","type":"address"},{"name":"indirectId","type":"bytes32"},{"name":"value","type":"uint256"}],"name":"icapTransfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"to","type":"bytes32"}],"name":"deposit","outputs":[],"payable":true,"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"AnonymousDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"bytes32"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"bytes32"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"indirectId","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"}],"name":"IcapTransfer","type":"event"}]')},"5Gy/":function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputString,this._outputFormatter=n.formatOutputString};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^string(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},e.exports=o},"5JNJ":function(e,t,r){e.exports={generate:r("LUTF")}},"5hvy":function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("MlIO"),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.x64.Word,s=t.algo,c=[],u=[],f=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,l=0;l<7;l++){if(1&i){var h=(1<<l)-1;h<32?d^=1<<h:s^=1<<h-32}128&i?i=i<<1^113:i<<=1}f[o]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var l=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(C=r[i]).high^=a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),C.low^=o}for(var s=0;s<24;s++){for(var l=0;l<5;l++){for(var h=0,p=0,b=0;b<5;b++)h^=(C=r[l+5*b]).high,p^=C.low;var m=d[l];m.high=h,m.low=p}for(l=0;l<5;l++){var v=d[(l+4)%5],y=d[(l+1)%5],g=y.high,w=y.low;for(h=v.high^(g<<1|w>>>31),p=v.low^(w<<1|g>>>31),b=0;b<5;b++)(C=r[l+5*b]).high^=h,C.low^=p}for(var _=1;_<25;_++){var M=(C=r[_]).high,k=C.low,S=c[_];S<32?(h=M<<S|k>>>32-S,p=k<<S|M>>>32-S):(h=k<<S-32|M>>>64-S,p=M<<S-32|k>>>64-S);var x=d[u[_]];x.high=h,x.low=p}var A=d[0],I=r[0];for(A.high=I.high,A.low=I.low,l=0;l<5;l++)for(b=0;b<5;b++){var O=d[_=l+5*b],P=d[(l+1)%5+5*b],E=d[(l+2)%5+5*b];(C=r[_]).high=O.high^~P.high&E.high,C.low=O.low^~P.low&E.low}var C,B=f[s];(C=r[0]).high^=B.high,C.low^=B.low}},_doFinalize:function(){var t=this._data,r=t.words,n=8*t.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],f=0;f<c;f++){var d=a[f],l=d.high,h=d.low;l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u.push(h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)),u.push(l)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});t.SHA3=o._createHelper(l),t.HmacSHA3=o._createHmacHelper(l)}(Math),n.SHA3)},"5iuF":function(e,t){var r=Math.floor(4294967295*Math.random());e.exports=function(){return r=(r+1)%4294967295}},"6yv0":function(e,t,r){"use strict";var n=r("fZJM"),i=r("nHqQ"),o=r("QSG8"),a=o.assert,s=o.parseBytes,c=r("gC7+"),u=r("xNMM");function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);this.curve=e=i[e].curve,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},"7J7F":function(e,t){var r={messageId:0,toPayload:function(e,t){return e||console.error("jsonrpc method should be specified!"),r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!!e&&!e.error&&"2.0"===e.jsonrpc&&"number"==typeof e.id&&void 0!==e.result}},toBatchPayload:function(e){return e.map((function(e){return r.toPayload(e.method,e.params)}))}};e.exports=r},"7W2i":function(e,t,r){var n=r("SksO");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},"8Yzn":function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputReal,this._outputFormatter=n.formatOutputReal};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/real([0-9]*)?(\[([0-9]*)\])?/)},e.exports=o},9:function(e,t){},"9MVe":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleStream=t.handleEvent=t.transformEthAddress=t.htmlToElement=t.runOnComplete=t.runOnLoad=void 0,t.runOnLoad=function(e){return new Promise((function(t,r){null!=window.document.body?Promise.resolve(e()).then(t).catch(r):window.document.addEventListener("DOMContentLoaded",(function(){Promise.resolve(e()).then(t).catch(r)}))}))},t.runOnComplete=function(e){var t=window.setInterval((function(){"complete"===window.document.readyState&&(window.clearInterval(t),e())}),300)},t.htmlToElement=function(e){var t=window.document.createElement("template"),r=e.trim();return t.innerHTML=r,t.content.firstChild},t.transformEthAddress=function(e){if(Array.isArray(e))return e.map((function(e){return"string"==typeof e?e.toLowerCase():e}));if("string"==typeof e)return e.toLowerCase();throw new Error("Unexpected Ethereum address format")},t.handleEvent=function(e,t,r,n){e.addEventListener(t,(function i(){r.apply(void 0,n),e.removeEventListener(t,i)}))},t.handleStream=function(e,t,r){e.on(t,(function n(i){r(i),e.removeListener(t,n)}))}},"9OqN":function(e,t,r){var n,i,o;e.exports=(o=r("Ib8C"),r("OLod"),o.mode.CTR=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),n.Decryptor=i,n),o.mode.CTR)},ALsQ:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.mode.CFB=function(){var e=n.lib.BlockCipherMode.extend();function t(e,t,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i,n),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);t.call(this,e,r,i,n),this._prevBlock=o}}),e}(),n.mode.CFB)},BlRs:function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},CuW0:function(e,t,r){var n=r("7J7F"),i=r("P5y9"),o=function(e){this.requestManager=e._requestManager,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,(function(t,r){r=r||[],e.map((function(e,t){return r[t]||{}})).forEach((function(t,r){if(e[r].callback){if(!n.isValidResponse(t))return e[r].callback(i.InvalidResponse(t));e[r].callback(null,e[r].format?e[r].format(t.result):t.result)}}))}))},e.exports=o},D0j3:function(e,t,r){"use strict";(function(e){var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(r("o0o1")),a=n(r("yXPU")),s=n(r("lwsE")),c=n(r("W8MJ")),u=n(r("lSNA")),f=n(r("lyUO")),d=n(r("r8we")),l=n(r("XH0y")),h=n(r("nlKk")),p=n(r("5JNJ")),b=n(r("UWFI")),m=r("rE/g"),v=n(r("YGzH")),y=r("9MVe"),g=n(r("NZAZ")),w=n(r("sk/A")),_=r("Slf6"),M=r("/pHA"),k=r("/pSh");function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){(0,u.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A,I=v.default.enums,O=I.GOOGLE,P=I.FACEBOOK,E=I.REDDIT,C=I.TWITCH,B=I.DISCORD,j=((0,u.default)(i={},O,!0),(0,u.default)(i,P,!0),(0,u.default)(i,E,!0),(0,u.default)(i,C,!0),(0,u.default)(i,B,!0),i);!function(){try{A=e.define,e.define=void 0}catch(t){l.default.warn("Torus - global.define could not be deleted.")}}();var R="sha384-QvJkAhlHBB4wBV3Pu+fxpxcZ/RKZkEtgTd9UtNTngoZb9wNnsDtGnQRr6+ilf+ev";!function(){try{e.define=A}catch(t){l.default.warn("Torus - global.define could not be overwritten.")}}();var T=!0;window.addEventListener("message",(function e(t){"torus:3PCunsupported"===t.data?(l.default.info("unsupported 3rd party cookies"),T=!1,window.removeEventListener("message",e)):"torus:3PCsupported"===t.data&&(l.default.info("supported 3rd party cookies"),T=!0,window.removeEventListener("message",e))}),!1),t.default=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.buttonPosition,n=void 0===r?"bottom-left":r;(0,s.default)(this,e),(0,u.default)(this,"paymentProviders",v.default.paymentProviders),this.buttonPosition=n,this.torusWidget={},this.torusMenuBtn={},this.torusLogin={},this.torusLoadingBtn={},this.torusUrl="",this.torusIframe={},this.torusLoginModal={},this.torusSpeedDial={},this.keyBtn={},this.styleLink={},this.isRehydrated=!1,this.isLoggedIn=!1,this.isInitalized=!1,this.torusButtonVisibility=!0,this.requestedVerifier="",this.currentVerifier="",this.enabledVerifiers={},this.Web3=b.default,this.torusAlert={},this.nodeDetailManager=new f.default,this.torusJs=new d.default}var t,r;return(0,c.default)(e,[{key:"init",value:(r=(0,a.default)(o.default.mark((function e(){var t,r,n,i,s,c,u,f,d,h,b,v,g,w,_,M,S,A,I,O,P,E=this,C=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0===(r=(t=C.length>0&&void 0!==C[0]?C[0]:{}).buildEnv)?"production":r,s=void 0!==(i=t.enableLogging)&&i,u=void 0===(c=t.enabledVerifiers)?j:c,d=void 0===(f=t.network)?{host:"mainnet",chainId:1,networkName:"mainnet"}:f,b=void 0===(h=t.showTorusButton)||h,g=void 0===(v=t.integrity)?{check:!1,hash:R,version:m.version}:v,!this.isInitalized){e.next=3;break}return e.abrupt("return",Promise.reject(new Error("Already initialized")));case 3:return e.next=5,(0,k.getTorusUrl)(n,g);case 5:if(M=(w=e.sent).logLevel,l.default.info(_=w.torusUrl,"url loaded"),this.torusUrl=_,this.enabledVerifiers=x({},j,{},u),l.default.setDefaultLevel(M),s?l.default.enableAll():l.default.disableAll(),this.torusButtonVisibility=b,this._createWidget(_),S=function(){window.document.body.appendChild(E.torusIframe)},A=function(){var e=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.runOnLoad)(S.bind(E));case 2:return e.next=4,(0,y.runOnLoad)((function(){return E._setupWeb3()}));case 4:return e.next=6,(0,y.runOnLoad)((0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,E._setProvider(d);case 3:return E.isInitalized=!0,e.abrupt("return",Promise.resolve());case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),"production"!==n||!g.check){e.next=44;break}return I="".concat(_,"/popup"),e.next=21,fetch(I,{cache:"reload"});case 21:if("max-age=3600"===(O=e.sent).headers.get("Cache-Control")){e.next=24;break}throw new Error("Unexpected Cache-Control headers, got ".concat(O.headers.get("Cache-Control")));case 24:return e.next=26,O.text();case 26:if(P=p.default.generate({algorithms:["sha384"]},e.sent),l.default.info(P,"integrity"),P!==g.hash){e.next=34;break}return e.next=32,A();case 32:e.next=42;break;case 34:e.prev=34,this._cleanUp(),e.next=41;break;case 38:return e.prev=38,e.t0=e.catch(34),e.abrupt("return",Promise.reject(e.t0));case 41:return e.abrupt("return",Promise.reject(new Error("Integrity check failed")));case 42:e.next=46;break;case 44:return e.next=46,A();case 46:return e.abrupt("return",void 0);case 47:case"end":return e.stop()}}),e,this,[[34,38]])}))),function(){return r.apply(this,arguments)})},{key:"_checkThirdPartyCookies",value:function(){if(!T)throw this._createAlert('<div id="torusAlert" class="torus-alert"><h1>Cookies Required</h1><p>Please enable cookies in your browser preferences to access Torus.</p><p>For more info, <a href="https://docs.tor.us/faq/users#cookies" target="_blank" rel="noreferrer noopener">click here</a></p></div>'),new Error("Third party cookies not supported")}},{key:"login",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.verifier;if(!this.isInitalized)throw new Error("Call init() first");if(this.isLoggedIn)throw new Error("User has already logged in");if(t&&!this.enabledVerifiers[t])throw new Error("Given verifier is not enabled");if(!t)return this.requestedVerifier="",this.ethereum.enable();if(v.default.verifierList.includes(t))return this.requestedVerifier=t,this.ethereum.enable();throw new Error("Unsupported verifier")}},{key:"logout",value:function(){var e=this;return new Promise((function(t,r){if(e.isLoggedIn){e.communicationMux.getStream("logout").write({name:"logOut"});var n=e.communicationMux.getStream("status");(0,y.handleStream)(n,"data",(function(n){n.loggedIn?r(new Error("Some Error Occured")):(e.isLoggedIn=!1,e.isRehydrated=!1,e.currentVerifier="",e.requestedVerifier="",t())}))}else r(new Error("User has not logged in yet"))}))}},{key:"cleanUp",value:(t=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.isLoggedIn){e.next=4;break}return e.next=4,this.logout();case 4:return this._cleanUp(),e.abrupt("return",Promise.resolve());case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return t.apply(this,arguments)})},{key:"_cleanUp",value:function(){function e(e){return e instanceof Element||e instanceof HTMLDocument}e(this.styleLink)&&window.document.body.contains(this.styleLink)&&(this.styleLink.remove(),this.styleLink={}),e(this.torusWidget)&&window.document.body.contains(this.torusWidget)&&(this.torusWidget.remove(),this.torusWidget={},this.torusLogin={},this.torusMenuBtn={},this.torusLoadingBtn={},this.torusLoginModal={}),e(this.torusIframe)&&window.document.body.contains(this.torusIframe)&&(this.torusIframe.remove(),this.torusIframe={}),e(this.torusAlert)&&window.document.body.contains(this.torusAlert)&&(this.torusAlert.remove(),this.torusAlert={}),this.isInitalized=!1}},{key:"_createAlert",value:function(e){var t=this;this.torusAlert=(0,y.htmlToElement)(e);var r=(0,y.htmlToElement)('<span id="torusAlert__close">x<span>');this.torusAlert.appendChild(r),(0,y.runOnLoad)((function(){window.document.body.appendChild(t.torusAlert)}).bind(this)),(0,y.runOnLoad)((function(){r.addEventListener("click",(function(){t.torusAlert.remove()}))}).bind(this))}},{key:"_createPopupBlockAlert",value:function(e){var t=this,r=(0,y.htmlToElement)('<div id="torusAlert"><h1 id="torusAlert__title">Action Required</h1><p id="torusAlert__desc">You have a pending action that needs to be completed in a pop-up window </p></div>'),n=(0,y.htmlToElement)('<div><button id="torusAlert__btn">Confirm</button></div>');r.appendChild(n),(0,y.runOnLoad)((function(){window.document.body.appendChild(r)}).bind(this)),(0,y.runOnLoad)((function(){n.addEventListener("click",(function(){t._handleWindow(e,{target:"_blank",features:"directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=660,width=500"}),r.remove()}))}).bind(this))}},{key:"_createWidget",value:function(e){var t=this,r=window.document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href","".concat(e,"/css/widget.css")),this.styleLink=r,this.torusWidget=(0,y.htmlToElement)('<div id="torusWidget" class="widget"></div>');var n=(0,y.htmlToElement)('<div id="torusSpinner"><div class="torusSpinner__beat beat-odd"></div><div class="torusSpinner__beat beat-even"></div><div class="torusSpinner__beat beat-odd"></div></div>');this.torusLoadingBtn=(0,y.htmlToElement)('<button disabled class="torus-btn torus-btn--loading"></button>'),this.torusButtonVisibility||(this.torusLoadingBtn.style.display="none"),this.torusLoadingBtn.appendChild(n),this.torusWidget.appendChild(this.torusLoadingBtn),this.torusLogin=(0,y.htmlToElement)('<button id="torusLogin" class="torus-btn torus-btn--login"></button>'),this.torusButtonVisibility||(this.torusLogin.style.display="none"),this.torusWidget.appendChild(this.torusLogin),this.torusMenuBtn=(0,y.htmlToElement)('<button id="torusMenuBtn" class="torus-btn torus-btn--main" />'),this.torusButtonVisibility||(this.torusMenuBtn.style.display="none"),this.torusWidget.appendChild(this.torusMenuBtn),this.torusSpeedDial=(0,y.htmlToElement)('<ul id="torusWidget__speed-dial-list" style="transition-delay: 0.05s;display: none">'),this.torusSpeedDial.style.opacity="0";var i=(0,y.htmlToElement)('<li><button class="torus-btn torus-btn--home" title="Wallet Home Page"></button></li>'),o=(0,y.htmlToElement)('<div class="torus-tooltip-text torus-tooltip-note">Copy public address to clipboard</div>'),a=(0,y.htmlToElement)('<div class="torus-tooltip-text torus-tooltip-copied">Copied!</div>');this.keyBtn=(0,y.htmlToElement)('<button class="torus-btn torus-btn--text">0xe5..</button>');var s=(0,y.htmlToElement)('<li class="torus-tooltip"></li>');s.appendChild(this.keyBtn),s.appendChild(o),s.appendChild(a);var c=(0,y.htmlToElement)('<li><button class="torus-btn torus-btn--transfer" title="Wallet Transfer Page"></button></li>');this.torusSpeedDial.appendChild(i),this.torusSpeedDial.appendChild(s),this.torusSpeedDial.appendChild(c),this.torusWidget.prepend(this.torusSpeedDial),this.torusLoginModal=(0,y.htmlToElement)('<div id="torus-login-modal"></div>'),this.torusLoginModal.style.display="none";var u=(0,y.htmlToElement)('<div id="torus-login-modal__modal-container"><div id="torus-login-modal__close-container"><span id="torus-login-modal__close">×</span></div></div>'),f=(0,y.htmlToElement)("".concat('<div id="torus-login-modal__modal-content"><div id="torus-login-modal__header-container"><img src="').concat(e,"/images/torus-logo-blue.svg")+'"><div id="torus-login-modal__login-header">Login</div></div></div>'),d=(0,y.htmlToElement)('<div id="torus-login-modal__form-container"><p id="torus-login-modal__login-subtitle">You are just one step away from your digital wallet</p></div>');this.googleLogin=(0,y.htmlToElement)('<button id="torus-login-modal__login-google"><img src="'.concat(e,'/img/icons/google.svg">Sign in with Google</button>'));var l=(0,y.htmlToElement)('<ul id="torus-login-modal__login-list"></ul>');this.facebookLogin=(0,y.htmlToElement)("".concat('<li><button id="torus-login-modal__login-btn--facebook" title="Login with Facebook"><img src="').concat(e,'/img/icons/facebook.svg"></button></li>')),this.twitchLogin=(0,y.htmlToElement)('<li><button id="torus-login-modal__login-btn--twitch" title="Login with Twitch"><img src="'.concat(e,"/img/icons/twitch.svg")+'"></button></li>'),this.redditLogin=(0,y.htmlToElement)('<li><button id="torus-login-modal__login-btn--reddit" title="Login with Reddit"><img src="'.concat(e,"/img/icons/reddit.svg")+'"></button></li>'),this.discordLogin=(0,y.htmlToElement)('<li><button id="torus-login-modal__login-btn--discord" title="Login with Discord"><img src="'.concat(e,"/img/icons/discord.svg")+'"></button></li>'),this.enabledVerifiers[P]&&l.appendChild(this.facebookLogin),this.enabledVerifiers[E]&&l.appendChild(this.redditLogin),this.enabledVerifiers[C]&&l.appendChild(this.twitchLogin),this.enabledVerifiers[B]&&l.appendChild(this.discordLogin),this.enabledVerifiers[O]&&d.appendChild(this.googleLogin),d.appendChild(l);var h=(0,y.htmlToElement)('<div id="torus-login-modal__login-note">By logging in, you accept Torus\' <a href="https://docs.tor.us/legal/terms-and-conditions" target="_blank">Terms and Conditions</a></div>');switch(d.appendChild(h),f.appendChild(d),u.appendChild(f),this.torusLoginModal.appendChild(u),this.torusWidget.appendChild(this.torusLoginModal),this.torusIframe=(0,y.htmlToElement)('<iframe id="torusIframe" frameBorder="0" src="'.concat(e,'/popup"></iframe>')),(0,y.runOnLoad)((function(){window.document.head.appendChild(r),window.document.body.appendChild(t.torusWidget)}).bind(this)),(0,y.runOnLoad)((function(){t.torusLogin.addEventListener("click",(function(){t._showLoginPopup(!1)})),i.addEventListener("click",(function(){t.showWallet(),t._toggleSpeedDial()})),c.addEventListener("click",(function(){t.showWallet("transfer"),t._toggleSpeedDial()})),t.keyBtn.addEventListener("click",(function(){var e=(0,y.htmlToElement)('<input type="text" value="'.concat(t.ethereum.selectedAddress,'">'));t.torusWidget.prepend(e),e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),t.torusWidget.removeChild(e),a.classList.add("active"),o.classList.add("active"),setTimeout((function(){a.classList.remove("active"),o.classList.remove("active"),t._toggleSpeedDial()}),1e3)})),t.torusMenuBtn.addEventListener("click",(function(){t._toggleSpeedDial()})),u.querySelector("#torus-login-modal__close").addEventListener("click",(function(){t.torusLoginModal.style.display="none",t.modalCloseHandler&&t.modalCloseHandler(),delete t.modalCloseHandler}))}).bind(this)),this.buttonPosition){case"top-left":this.torusWidget.style.top="34px",this.torusWidget.style.left="34px";break;case"top-right":this.torusWidget.style.top="34px",this.torusWidget.style.right="34px";break;case"bottom-right":this.torusWidget.style.bottom="34px",this.torusWidget.style.right="34px";break;case"bottom-left":default:this.torusWidget.style.bottom="34px",this.torusWidget.style.left="34px"}}},{key:"_updateKeyBtnAddress",value:function(e){this.keyBtn.innerText=e&&"".concat(e.slice(0,4),"..")}},{key:"_showLoggedOut",value:function(){this.torusMenuBtn.style.display="none",this.torusLogin.style.display=this.torusButtonVisibility?"block":"none",this.torusLoadingBtn.style.display="none",this.torusLoginModal.style.display="none",this.torusSpeedDial.style.display="none",this.torusSpeedDial.style.opacity="0"}},{key:"_showLoggingIn",value:function(){this.torusMenuBtn.style.display="none",this.torusLogin.style.display="none",this.torusLoadingBtn.style.display=this.torusButtonVisibility?"block":"none",this.torusLoginModal.style.display=""===this.requestedVerifier?"block":"none"}},{key:"_showLoggedIn",value:function(){this.torusMenuBtn.style.display=this.torusButtonVisibility?"block":"none",this.torusLogin.style.display="none",this.torusLoadingBtn.style.display="none",this.torusLoginModal.style.display="none"}},{key:"hideTorusButton",value:function(){this.torusButtonVisibility=!1,this.torusMenuBtn.style.display="none",this.torusLogin.style.display="none",this.torusLoadingBtn.style.display="none",this.torusSpeedDial.style.display="none",this.torusSpeedDial.style.opacity="0"}},{key:"showTorusButton",value:function(){this.torusButtonVisibility=!0,this.isLoggedIn?this._showLoggedIn():this._showLoggedOut()}},{key:"_setupWeb3",value:function(){var e=this;l.default.info("setupWeb3 running"),this.metamaskStream=new h.default({name:"embed_metamask",target:"iframe_metamask",targetWindow:this.torusIframe.contentWindow}),this.metamaskStream.setMaxListeners(100),this.communicationStream=new h.default({name:"embed_comm",target:"iframe_comm",targetWindow:this.torusIframe.contentWindow}),this.communicationStream.setMaxListeners(100);var t=new g.default(this.metamaskStream),r=function(r){var n=t[r],i=e;t[r]=function(e){if(e&&"eth_requestAccounts"===e)return i.ethereum.enable();for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return n.apply(this,[e].concat(r))}};r("send"),r("sendAsync"),t.setMaxListeners(100),t.enable=function(){return e._checkThirdPartyCookies(),e._showLoggingIn(),new Promise((function(r,n){t.sendAsync({method:"eth_requestAccounts",params:[]},(function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.result,a=e;if(t)setTimeout((function(){a._showLoggedOut(),n(t)}),50);else if(Array.isArray(o)&&o.length>0){var s=function(){if(e.isLoggedIn=!0,""!==e.requestedVerifier&&e.currentVerifier!==e.requestedVerifier){var t=e.requestedVerifier;e.logout().then((function(i){e.requestedVerifier=t,e._showLoginPopup(!0,r,n)})).catch((function(e){return n(e)}))}else a._showLoggedIn(),r(o)};e.isRehydrated?s():e.isRehydratedCallback=s}else e._showLoginPopup(!0,r,n)}))}))};var n=new Proxy(t,{deleteProperty:function(){return!0}});this.ethereum=n;var i=(0,M.setupMultiplex)(this.communicationStream);i.setMaxListeners(20),this.communicationMux=i,i.getStream("window").on("data",(function(t){"create_window"===t.name&&e._createPopupBlockAlert(t.data.preopenInstanceId)})),i.getStream("status").on("data",(function(t){t.rehydrate&&t.loggedIn?(e.isRehydrated=t.rehydrate,e.currentVerifier=t.verifier,e.isRehydratedCallback&&(e.isRehydratedCallback(),delete e.isRehydratedCallback)):t.loggedIn?(e.isLoggedIn=t.loggedIn,e.currentVerifier=t.verifier,e._showLoggedIn()):e._showLoggedOut()})),this.provider=t,this.web3=new b.default(t),this.web3.setProvider=function(){l.default.debug("Torus - overrode web3.setProvider")},this.web3.currentProvider.isTorus=!0,t.on("accountsChanged",(function(t){e._updateKeyBtnAddress(t&&t[0]||"")})),(0,_.sendSiteMetadata)(this.provider._rpcEngine),l.default.debug("Torus - injected web3")}},{key:"_showLoginPopup",value:function(e,t,r){var n=this;if(this._showLoggingIn(),void 0===this.requestedVerifier||""===this.requestedVerifier){this.modalCloseHandler=function(){n._showLoggedOut(),r&&r(new Error("Modal has been closed"))};var i=function(i){n.requestedVerifier=i,n._showLoginPopup(e,t,r)};Object.keys(this.enabledVerifiers).forEach((function(e){n.enabledVerifiers[e]&&(0,y.handleEvent)(n["".concat(e,"Login")],"click",i,[e])}))}else{var o=this.communicationMux.getStream("oauth"),a=this;(0,y.handleStream)(o,"data",(function(e){var n=e.err,i=e.selectedAddress;n?(l.default.error(n),a._showLoggedOut(),r&&r(n)):(t&&t([(0,y.transformEthAddress)(i)]),a._showLoggedIn())}));var s=(0,k.getPreopenInstanceId)();this._handleWindow(s),o.write({name:"oauth",data:{calledFromEmbed:e,verifier:this.requestedVerifier,preopenInstanceId:s}})}}},{key:"setProvider",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.host,n=void 0===r?"mainnet":r,i=t.chainId,o=void 0===i?1:i,a=t.networkName,s=void 0===a?"mainnet":a;return new Promise((function(t,r){var i=e.communicationMux.getStream("provider_change");(0,y.handleStream)(i,"data",(function(e){var n=e.data,i=n.err,o=n.success;l.default.info(e),i?r(i):o?t():r(new Error("some error occured"))}));var a=(0,k.getPreopenInstanceId)();e._handleWindow(a,{target:"_blank",features:"directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=600,width=500"}),i.write({name:"show_provider_change",data:{network:{host:n,chainId:o,networkName:s},type:v.default.networkList.includes(n)?void 0:"rpc",preopenInstanceId:a,override:!1}})}))}},{key:"_setProvider",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.host,n=void 0===r?"mainnet":r,i=t.chainId,o=void 0===i?1:i,a=t.networkName,s=void 0===a?"mainnet":a;return new Promise((function(t,r){if(e.isInitalized)r(new Error("Already initialized"));else{var i=e.communicationMux.getStream("provider_change");(0,y.handleStream)(i,"data",(function(e){l.default.info(e);var n=e.data,i=n.err,o=n.success;i?r(i):o?t():r(new Error("some error occured"))})),i.write({name:"show_provider_change",data:{network:{host:n,chainId:o,networkName:s},type:v.default.networkList.includes(n)?void 0:"rpc",override:!0}})}}))}},{key:"showWallet",value:function(e){var t=this,r=this.communicationMux.getStream("show_wallet"),n=e?"/".concat(e):"";r.write({name:"show_wallet",data:{path:n}}),(0,y.handleStream)(r,"data",(function(e){if("show_wallet_instance"===e.name){var r=e.data.instanceId,i="".concat(t.torusUrl,"/wallet").concat(n,"?integrity=true&instanceId=").concat(r);new w.default({url:i}).open()}}))}},{key:"_toggleSpeedDial",value:function(){this.torusMenuBtn.classList.toggle("active");var e=this.torusMenuBtn.classList.contains("active"),t=this.torusSpeedDial;e&&(t.style.display="block"),t.style.opacity="0"===t.style.opacity?"1":"0",t.classList.toggle("active"),t.style.transitionDelay="".concat(e?.05:1.2,"s"),setTimeout((function(){var r=e?.05:.15;Object.values(t.children).forEach((function(t){t.style.transitionDelay="".concat(r,"s"),r+=e?.05:-.05})),e||(t.style.display="none")}),500)}},{key:"getPublicAddress",value:function(e){var t=this,r=e.verifier,n=e.verifierId,i=e.isExtended,o=void 0!==i&&i;return new Promise((function(e,i){return v.default.supportedVerifierList.includes(r)?t.nodeDetailManager.getNodeDetails().then((function(e){return t.torusJs.getPublicAddress(e.torusNodeEndpoints,e.torusNodePub,{verifier:r,verifierId:n},o)})).then((function(t){return e(t)})).catch((function(e){return i(e)})):i(new Error("Unsupported verifier"))}))}},{key:"getUserInfo",value:function(e){var t=this;return new Promise((function(r,n){if(t.isLoggedIn){var i=t.communicationMux.getStream("user_info_access");i.write({name:"user_info_access_request"}),(0,y.handleStream)(i,"data",(function(i){var o=i.data,a=o.rejected,s=o.newRequest;if("user_info_access_response"===i.name)if(o.approved)r(o.payload);else if(a)n(new Error("User rejected the request"));else if(s){var c=t.communicationMux.getStream("user_info");(0,y.handleStream)(c,"data",(function(e){"user_info_response"===e.name&&(e.data.approved?r(e.data.payload):n(new Error("User rejected the request")))}));var u=(0,k.getPreopenInstanceId)();t._handleWindow(u,{target:"_blank",features:"directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=600,width=500"}),c.write({name:"user_info_request",data:{message:e,preopenInstanceId:u}})}}))}else n(new Error("User has not logged in yet"))}))}},{key:"_handleWindow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.target,n=t.features;if(e){var i=this.communicationMux.getStream("window"),o="".concat(this.torusUrl,"/redirect?preopenInstanceId=").concat(e),a=new w.default({url:o,target:r,features:n});if(a.open(),!a.window)return void this._createPopupBlockAlert(e);i.write({name:"opened_window",data:{preopenInstanceId:e}});var s=function t(r){r.preopenInstanceId===e&&r.close&&(a.close(),i.removeListener("data",t))};i.on("data",s),a.once("close",(function(){i.write({data:{preopenInstanceId:e,closed:!0}})}))}}},{key:"initiateTopup",value:function(e,t){var r=this;return new Promise((function(n,i){if(r.isInitalized){var o=(0,k.validatePaymentProvider)(e,t);if(!o.isValid)return void i(new Error(JSON.stringify(o.errors)));var a=r.communicationMux.getStream("topup");(0,y.handleStream)(a,"data",(function(e){"topup_response"===e.name&&(e.data.success?n(e.data.success):i(new Error(e.data.error)))}));var s=(0,k.getPreopenInstanceId)();r._handleWindow(s),a.write({name:"topup_request",data:{provider:e,params:t,preopenInstanceId:s}})}else i(new Error("User has not logged in yet"))}))}}]),e}()}).call(this,r("yLpj"))},D6mP:function(e,t,r){"use strict";var n=r("OyGj"),i=r("RIjb"),o=r("neAl"),a=function(e){if(void 0!==e)return function(e){return"latest"===e||"pending"===e||"earliest"===e}(e)?e:n.toHex(e)},s=function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.nonce=n.toDecimal(e.nonce),e.gas=n.toDecimal(e.gas),e.gasPrice=n.toBigNumber(e.gasPrice),e.value=n.toBigNumber(e.value),e},c=function(e){return e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.logIndex&&(e.logIndex=n.toDecimal(e.logIndex)),e},u=function(e){var t=new o(e);if(t.isValid()&&t.isDirect())return"0x"+t.address();if(n.isStrictAddress(e))return e;if(n.isAddress(e))return"0x"+e;throw new Error("invalid address")};e.exports={inputDefaultBlockNumberFormatter:function(e){return void 0===e?i.defaultBlock:a(e)},inputBlockNumberFormatter:a,inputCallFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from&&(e.from=u(e.from)),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputTransactionFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from=u(e.from),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputAddressFormatter:u,inputPostFormatter:function(e){return e.ttl=n.fromDecimal(e.ttl),e.workToProve=n.fromDecimal(e.workToProve),e.priority=n.fromDecimal(e.priority),n.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:n.fromUtf8(e)})),e},outputBigNumberFormatter:function(e){return n.toBigNumber(e)},outputTransactionFormatter:s,outputTransactionReceiptFormatter:function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.cumulativeGasUsed=n.toDecimal(e.cumulativeGasUsed),e.gasUsed=n.toDecimal(e.gasUsed),n.isArray(e.logs)&&(e.logs=e.logs.map((function(e){return c(e)}))),e},outputBlockFormatter:function(e){return e.gasLimit=n.toDecimal(e.gasLimit),e.gasUsed=n.toDecimal(e.gasUsed),e.size=n.toDecimal(e.size),e.timestamp=n.toDecimal(e.timestamp),null!==e.number&&(e.number=n.toDecimal(e.number)),e.difficulty=n.toBigNumber(e.difficulty),e.totalDifficulty=n.toBigNumber(e.totalDifficulty),n.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!n.isString(e))return s(e)})),e},outputLogFormatter:c,outputPostFormatter:function(e){return e.expiry=n.toDecimal(e.expiry),e.sent=n.toDecimal(e.sent),e.ttl=n.toDecimal(e.ttl),e.workProved=n.toDecimal(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return n.toAscii(e)})),e},outputSyncingFormatter:function(e){return e?(e.startingBlock=n.toDecimal(e.startingBlock),e.currentBlock=n.toDecimal(e.currentBlock),e.highestBlock=n.toDecimal(e.highestBlock),e.knownStates&&(e.knownStates=n.toDecimal(e.knownStates),e.pulledStates=n.toDecimal(e.pulledStates)),e):e}}},DNE7:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"name","outputs":[{"name":"o_name","type":"bytes32"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"content","outputs":[{"name":"","type":"bytes32"}],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"addr","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"}],"name":"reserve","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"subRegistrar","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_newOwner","type":"address"}],"name":"transfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_registrar","type":"address"}],"name":"setSubRegistrar","outputs":[],"type":"function"},{"constant":false,"inputs":[],"name":"Registrar","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_a","type":"address"},{"name":"_primary","type":"bool"}],"name":"setAddress","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_content","type":"bytes32"}],"name":"setContent","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"}],"name":"disown","outputs":[],"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_name","type":"bytes32"},{"indexed":false,"name":"_winner","type":"address"}],"name":"AuctionEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_name","type":"bytes32"},{"indexed":false,"name":"_bidder","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"NewBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"name","type":"bytes32"}],"name":"Changed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"name","type":"bytes32"},{"indexed":true,"name":"addr","type":"address"}],"name":"PrimaryChanged","type":"event"}]')},DVkF:function(e,t,r){var n=r("y2lW"),i=r("43KI").Duplex;e.exports=function(){var e={},t=new i({objectMode:!0,read:function(){return!1},write:function(t,n,i){var o;try{t.id?function(t){var r=e[t.id];if(!r)throw new Error("StreamMiddleware - Unknown response id ".concat(t.id));delete e[t.id],Object.assign(r.res,t),setTimeout(r.end)}(t):function(e){r.emit("notification",e)}(t)}catch(a){o=a}i(o)}}),r=new n;return{events:r,middleware:function(r,n,i,o){t.push(r),e[r.id]={req:r,res:n,next:i,end:o}},stream:t}}},E4JC:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"),function(){var e=n,t=e.lib.StreamCipher,r=[],i=[],o=[],a=e.algo.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)s.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],c=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),d=u>>>16|4294901760&f,l=f<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=f,i[3]^=l,i[4]^=u,i[5]^=d,i[6]^=f,i[7]^=l,r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16;o[r]=((a*a>>>17)+a*s>>>15)+s*s^((4294901760&n)*n|0)+((65535&n)*n|0)}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(a)}(),n.Rabbit)},EJoY:function(e,t,r){var n=r("OyGj"),i=r("ZP+F"),o=r("D6mP"),a=r("3V0z"),s=r("pliG"),c=r("XVcj"),u=function(e,t,r){this._requestManager=e,this._params=t.inputs,this._name=n.transformToFullName(t),this._address=r,this._anonymous=t.anonymous};u.prototype.types=function(e){return this._params.filter((function(t){return t.indexed===e})).map((function(e){return e.type}))},u.prototype.displayName=function(){return n.extractDisplayName(this._name)},u.prototype.typeName=function(){return n.extractTypeName(this._name)},u.prototype.signature=function(){return a(this._name)},u.prototype.encode=function(e,t){e=e||{},t=t||{};var r={};["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){r[e]=o.inputBlockNumberFormatter(t[e])})),r.topics=[],r.address=this._address,this._anonymous||r.topics.push("0x"+this.signature());var a=this._params.filter((function(e){return!0===e.indexed})).map((function(t){var r=e[t.name];return null==r?null:n.isArray(r)?r.map((function(e){return"0x"+i.encodeParam(t.type,e)})):"0x"+i.encodeParam(t.type,r)}));return r.topics=r.topics.concat(a),r},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=(this._anonymous?e.topics:e.topics.slice(1)).map((function(e){return e.slice(2)})).join(""),r=i.decodeParams(this.types(!0),t),n=e.data.slice(2),a=i.decodeParams(this.types(!1),n),s=o.outputLogFormatter(e);return s.event=this.displayName(),s.address=e.address,s.args=this._params.reduce((function(e,t){return e[t.name]=t.indexed?r.shift():a.shift(),e}),{}),delete s.data,delete s.topics,s},u.prototype.execute=function(e,t,r){n.isFunction(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],2===arguments.length&&(t=null),1===arguments.length&&(t=null,e={}));var i=this.encode(e,t),o=this.decode.bind(this);return new s(i,"eth",this._requestManager,c.eth(),o,r)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this),r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=this.execute.bind(this,e)},e.exports=u},ELcG:function(e,t,r){var n;e.exports=(n=r("Ib8C"),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),l=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,w,_,M,k,S,x,A,I,O=this._hash.words,P=d.words,E=l.words,C=s.words,B=c.words,j=u.words,R=f.words;for(M=o=O[0],k=a=O[1],S=h=O[2],x=w=O[3],A=_=O[4],r=0;r<80;r+=1)I=o+e[t+C[r]]|0,I+=r<16?p(a,h,w)+P[0]:r<32?b(a,h,w)+P[1]:r<48?m(a,h,w)+P[2]:r<64?v(a,h,w)+P[3]:y(a,h,w)+P[4],I=(I=g(I|=0,j[r]))+_|0,o=_,_=w,w=g(h,10),h=a,a=I,I=M+e[t+B[r]]|0,I+=r<16?y(k,S,x)+E[0]:r<32?v(k,S,x)+E[1]:r<48?m(k,S,x)+E[2]:r<64?b(k,S,x)+E[3]:p(k,S,x)+E[4],I=(I=g(I|=0,R[r]))+A|0,M=A,A=x,x=g(S,10),S=k,k=I;I=O[1]+h+x|0,O[1]=O[2]+w+A|0,O[2]=O[3]+_+M|0,O[3]=O[4]+o+k|0,O[4]=O[0]+a+S|0,O[0]=I},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function b(e,t,r){return e&t|~e&r}function m(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function y(e,t,r){return e^(t|~r)}function g(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(h),t.HmacRIPEMD160=o._createHmacHelper(h)}(Math),n.RIPEMD160)},ETIr:function(e,t,r){var n,i;e.exports=(i=r("Ib8C"),n=i.lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,c=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|c)<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},"F+F2":function(e,t,r){var n;e.exports=(n=r("Ib8C"),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],i=0;i<r;i++)n[i>>>2]|=e[i]<<24-i%4*8;t.call(this,n,r)}else t.apply(this,arguments)}).prototype=e}}(),n.lib.WordArray)},"FJY/":function(e,t,r){var n=r("D0j3");e.exports=n},G6Tn:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputDynamicBytes,this._outputFormatter=n.formatOutputDynamicBytes};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},e.exports=o},G814:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputBytes,this._outputFormatter=n.formatOutputBytes};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},e.exports=o},GRuw:function(e,t,r){var n,i,o,a,s,c;e.exports=(c=r("Ib8C"),r("lPiR"),i=(n=c).lib.WordArray,s=(o=n.algo).SHA224=(a=o.SHA256).extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),n.SHA224=a._createHelper(s),n.HmacSHA224=a._createHmacHelper(s),c.SHA224)},GY8m:function(e,t,r){"use strict";var n=r("OZ/i"),i=r("aqI/"),o=r("QSG8"),a=r("nHqQ"),s=r("/ayr"),c=o.assert,u=r("czk8"),f=r("/nCE");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),l=0;;l++){var h=o.k?o.k(l):new n(u.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(d)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var v=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),y^=1),new f({r:m,s:v,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new f(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),d)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,d=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=this.curve.pointFromX(l?s.add(this.curve.n):s,d);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),b=u.mul(h).umod(o);return this.g.mulAdd(p,s,b)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},Ib8C:function(e,t,r){var n;e.exports=n=n||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++)t[n+o>>>2]|=(r[o>>>2]>>>24-o%4*8&255)<<24-(n+o)%4*8;else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++)n.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},f=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var f=0;f<c;f+=o)this._doProcessBlock(n,f);var d=n.splice(0,c);r.sigBytes-=u}return new a.init(d,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),l=(i.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new l.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math)},JVQM:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_refund","type":"address"}],"name":"disown","outputs":[],"type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"bytes32"}],"name":"addr","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"}],"name":"reserve","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_newOwner","type":"address"}],"name":"transfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"_a","type":"address"}],"name":"setAddr","outputs":[],"type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"name","type":"bytes32"}],"name":"Changed","type":"event"}]')},JxHF:function(e,t,r){var n=r("K0/n");e.exports=function(e){this._requestManager=e._requestManager;var t=this;[new n({name:"putString",call:"db_putString",params:3}),new n({name:"getString",call:"db_getString",params:2}),new n({name:"putHex",call:"db_putHex",params:3}),new n({name:"getHex",call:"db_getHex",params:2})].forEach((function(r){r.attachToObject(t),r.setRequestManager(e._requestManager)}))}},"K0/n":function(e,t,r){var n=r("OyGj"),i=r("P5y9"),o=function(e){this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(e){this.requestManager=e},o.prototype.getCall=function(e){return n.isFunction(this.call)?this.call(e):this.call},o.prototype.extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},o.prototype.validateArgs=function(e){if(e.length!==this.params)throw i.InvalidNumberOfRPCParams()},o.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter.map((function(t,r){return t?t(e[r]):e[r]})):e},o.prototype.formatOutput=function(e){return this.outputFormatter&&e?this.outputFormatter(e):e},o.prototype.toPayload=function(e){var t=this.getCall(e),r=this.extractCallback(e),n=this.formatInput(e);return this.validateArgs(n),{method:t,params:n,callback:r}},o.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},o.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,(function(r,n){t.callback(r,e.formatOutput(n))})):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},o.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=o},K3mO:function(e,t,r){var n,i,o,a,s,c,u;e.exports=(u=r("Ib8C"),r("3y9D"),r("WYAk"),a=(i=(n=u).lib).WordArray,c=(s=n.algo).EvpKDF=(o=i.Base).extend({cfg:o.extend({keySize:4,hasher:s.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),i=a.create(),o=i.words,s=r.keySize,c=r.iterations;o.length<s;){u&&n.update(u);var u=n.update(e).finalize(t);n.reset();for(var f=1;f<c;f++)u=n.finalize(u),n.reset();i.concat(u)}return i.sigBytes=4*s,i}}),n.EvpKDF=function(e,t,r){return c.create(r).compute(e,t)},u.EvpKDF)},KmYQ:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},n.pad.ZeroPadding)},KmuT:function(e,t,r){var n=r("D6mP"),i=r("OyGj"),o=1,a=function(e,t){return this.requestManager=e,this.pollId="syncPoll_"+o++,this.callbacks=[],this.addCallback(t),this.lastSyncState=!1,function(e){e.requestManager.startPolling({method:"eth_syncing",params:[]},e.pollId,(function(t,r){if(t)return e.callbacks.forEach((function(e){e(t)}));i.isObject(r)&&r.startingBlock&&(r=n.outputSyncingFormatter(r)),e.callbacks.forEach((function(t){e.lastSyncState!==r&&(!e.lastSyncState&&i.isObject(r)&&t(null,!0),setTimeout((function(){t(null,r)}),0),e.lastSyncState=r)}))}),e.stopWatching.bind(e))}(this),this};a.prototype.addCallback=function(e){return e&&this.callbacks.push(e),this},a.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},e.exports=a},LUTF:function(e,t,r){"use strict";var n=r("HEbw"),i=(r("CxY0"),function(e,t){var r={};return e.algorithms.forEach((function(e){r[e]=function(e,t){return n.createHash(e).update(t,"utf8").digest("base64")}(e,t)})),r});e.exports=function(e,t){e=function(e){return{algorithms:e.algorithms||["sha256"],delimiter:e.delimiter||" ",full:e.full||!1}}(e);var r={hashes:i(e,t),integrity:void 0};return r.integrity=function(e,t){return""+Object.keys(t.hashes).map((function(e){return e+"-"+t.hashes[e]})).join(e.delimiter)}(e,r),e.full?r:r.integrity}},MXov:function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(9).Buffer}catch(I){}function s(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s<o;s++){var c,u=e.charCodeAt(s)-48;i<<=4,i|=c=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,a|=c}return n(!(240&a),"Invalid character in "+e),i}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c<s;c++){var u=e.charCodeAt(c)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)this.words[o]|=(a=e[i]|e[i-1]<<8|e[i-2]<<16)<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)this.words[o]|=(a=e[i]|e[i+1]<<8|e[i+2]<<16)<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f:o.prototype.inspect=f;var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=a/67108864|0;r.words[0]=67108863&a;for(var c=1;c<n;c++){for(var u=s>>>26,f=67108863&s,d=Math.min(c,t.length-1),l=Math.max(0,c-e.length+1);l<=d;l++)u+=(a=(i=0|e.words[c-l|0])*(o=0|t.words[l])+f)/67108864|0,f=67108863&a;r.words[c]=0|f,s=0|u}return 0!==s?r.words[c]=0|s:r.length--,r._strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?d[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=l[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modrn(f).toString(e);r=(p=p.idivn(f)).isZero()?b+r:d[u-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},o.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)this.words[o]=67108863&(t=(0|r.words[o])+(0|n.words[o])+i),i=t>>>26;for(;0!==i&&o<r.length;o++)this.words[o]=67108863&(t=(0|r.words[o])+i),i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,t,r){var n,i,o,a=e.words,s=t.words,c=r.words,u=0,f=0|a[0],d=8191&f,l=f>>>13,h=0|a[1],p=8191&h,b=h>>>13,m=0|a[2],v=8191&m,y=m>>>13,g=0|a[3],w=8191&g,_=g>>>13,M=0|a[4],k=8191&M,S=M>>>13,x=0|a[5],A=8191&x,I=x>>>13,O=0|a[6],P=8191&O,E=O>>>13,C=0|a[7],B=8191&C,j=C>>>13,R=0|a[8],T=8191&R,L=R>>>13,F=0|a[9],N=8191&F,D=F>>>13,q=0|s[0],z=8191&q,H=q>>>13,U=0|s[1],W=8191&U,V=U>>>13,K=0|s[2],G=8191&K,J=K>>>13,X=0|s[3],Y=8191&X,Z=X>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,he=0|s[9],pe=8191&he,be=he>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(u+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(l,z)|0))<<13)|0;u=((o=Math.imul(l,H))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(b,z)|0,o=Math.imul(b,H);var ve=(u+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(l,W)|0))<<13)|0;u=((o=o+Math.imul(l,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,H))+Math.imul(y,z)|0,o=Math.imul(y,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0;var ye=(u+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(l,G)|0))<<13)|0;u=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,J)|0;var ge=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Z)|0)+Math.imul(l,Y)|0))<<13)|0;u=((o=o+Math.imul(l,Z)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(S,z)|0,o=Math.imul(S,H),n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,J)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0;var we=(u+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((o=o+Math.imul(l,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,G)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,ee)|0;var _e=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(l,re)|0))<<13)|0;u=((o=o+Math.imul(l,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(P,z),i=(i=Math.imul(P,H))+Math.imul(E,z)|0,o=Math.imul(E,H),n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,Z)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0;var Me=(u+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,ae)|0)+Math.imul(l,oe)|0))<<13)|0;u=((o=o+Math.imul(l,ae)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(j,z)|0,o=Math.imul(j,H),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(I,G)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0;var ke=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((o=o+Math.imul(l,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(L,z)|0,o=Math.imul(L,H),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,J)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0;var Se=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((o=o+Math.imul(l,le)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,H))+Math.imul(D,z)|0,o=Math.imul(D,H),n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(B,G)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(E,Y)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(y,ce)|0,o=o+Math.imul(y,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(b,de)|0,o=o+Math.imul(b,le)|0;var xe=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,be)|0)+Math.imul(l,pe)|0))<<13)|0;u=((o=o+Math.imul(l,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,W),i=(i=Math.imul(N,V))+Math.imul(D,W)|0,o=Math.imul(D,V),n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,Z)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,ue)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,le)|0;var Ae=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,be)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(N,G),i=(i=Math.imul(N,J))+Math.imul(D,G)|0,o=Math.imul(D,J),n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(L,Y)|0,o=o+Math.imul(L,Z)|0,n=n+Math.imul(B,$)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(j,$)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,n=n+Math.imul(w,de)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,de)|0,o=o+Math.imul(_,le)|0;var Ie=(u+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,be)|0)+Math.imul(y,pe)|0))<<13)|0;u=((o=o+Math.imul(y,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(N,Y),i=(i=Math.imul(N,Z))+Math.imul(D,Y)|0,o=Math.imul(D,Z),n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(k,de)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(S,de)|0,o=o+Math.imul(S,le)|0;var Oe=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,be)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(N,$),i=(i=Math.imul(N,ee))+Math.imul(D,$)|0,o=Math.imul(D,ee),n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(E,ce)|0,o=o+Math.imul(E,ue)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(I,de)|0,o=o+Math.imul(I,le)|0;var Pe=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(D,re)|0,o=Math.imul(D,ne),n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,le)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,le)|0;var Ee=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,be)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,be)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(N,oe),i=(i=Math.imul(N,ae))+Math.imul(D,oe)|0,o=Math.imul(D,ae),n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,n=n+Math.imul(B,de)|0,i=(i=i+Math.imul(B,le)|0)+Math.imul(j,de)|0,o=o+Math.imul(j,le)|0;var Ce=(u+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,be)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,ce),i=(i=Math.imul(N,ue))+Math.imul(D,ce)|0,o=Math.imul(D,ue),n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,le)|0;var Be=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,be)|0)+Math.imul(j,pe)|0))<<13)|0;u=((o=o+Math.imul(j,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(N,de),i=(i=Math.imul(N,le))+Math.imul(D,de)|0,o=Math.imul(D,le);var je=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,be)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var Re=(u+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(D,pe)|0))<<13)|0;return u=((o=Math.imul(D,be))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=me,c[1]=ve,c[2]=ye,c[3]=ge,c[4]=we,c[5]=_e,c[6]=Me,c[7]=ke,c[8]=Se,c[9]=xe,c[10]=Ae,c[11]=Ie,c[12]=Oe,c[13]=Pe,c[14]=Ee,c[15]=Ce,c[16]=Be,c[17]=je,c[18]=Re,0!==u&&(c[19]=u,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var f=(0|e.words[o-u])*(0|t.words[u]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return m(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?m(this,e,t):v(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var d=c,l=u,h=0;h<a;h++){var p=r[f+h],b=n[f+h],m=r[f+h+a],v=n[f+h+a],y=d*m-l*v;v=d*v+l*m,r[f+h]=p+(m=y),n[f+h]=b+v,r[f+h+a]=p-m,n[f+h+a]=b-v,h!==s&&(y=c*d-u*l,l=c*l+u*d,d=y)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)r[2*a]=8191&(o+=0|e[a]),r[2*a+1]=8191&(o>>>=13),o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),d=new Array(n),l=r.words;l.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,c,n,i),this.transform(u,o,f,d,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-c[h]*d[h];c[h]=s[h]*d[h]+c[h]*f[h],s[h]=p}return this.conjugate(s,c,n),this.transform(s,c,l,o,n,i),this.conjugate(l,o,n),this.normalize13b(l,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),v(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++)t[r]=e.words[r/26|0]>>>r%26&1;return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o;this.words[t]=(0|this.words[t])-s<<r|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=r;if(i-=a,i=Math.max(0,i),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var f=0;for(u=this.length-1;u>=0&&(0!==f||u>=i);u--){var d=0|this.words[u];this.words[u]=f<<26-o|d>>>o,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r||!(this.words[r]&1<<t))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o;this._expand(e.length+r);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var s=(0|e.words[i])*t;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r,n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var f=n.clone()._ishlnsubmul(i,1,c);0===f.negative&&(n=f,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var l=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=l)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var f=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;0==(t.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,b=1;0==(r.words[0]&b)&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,l=1;0==(r.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,this.words[a]=s&=67108863}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}e.words[n-10]=i>>>=22,e.length-=0===i&&e.length>10?10:9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];e.words[r]=67108863&(t+=977*n),t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(M,w),i(k,w),i(S,w),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return g[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,i),l=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var b=h,m=0;0!==b.cmp(s);m++)b=b.redSqr();n(m<p);var v=this.pow(d,new o(1).iushln(p-m-1));l=l.redMul(v),d=v.redSqr(),h=h.redMul(d),p=m}return l},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],f=c-1;f>=0;f--){var d=u>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==a?(a<<=1,a|=d,(4==++s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new A(e)},i(A,x),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r("YuTi")(e))},MlIO:function(e,t,r){var n,i,o,a,s;e.exports=(s=r("Ib8C"),i=(n=s.lib).Base,o=n.WordArray,(a=s.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}}),s)},NFKh:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("MlIO"),r("F+F2"),r("qM6L"),r("ETIr"),r("cv67"),r("3y9D"),r("lPiR"),r("GRuw"),r("1uat"),r("uGsb"),r("5hvy"),r("ELcG"),r("WYAk"),r("e7zE"),r("K3mO"),r("OLod"),r("ALsQ"),r("9OqN"),r("qu8F"),r("S6kV"),r("gb/T"),r("qBft"),r("oRuE"),r("jO9C"),r("KmYQ"),r("uGxW"),r("bQjk"),r("wZgz"),r("pA7S"),r("w7YG"),r("E4JC"),r("PVpz"),n)},NZAZ:function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("cDf5")),o=n(r("lwsE")),a=n(r("W8MJ")),s=n(r("a1gu")),c=n(r("Nsbk")),u=n(r("PJYZ")),f=n(r("7W2i")),d=n(r("lSNA")),l=r("z8+S"),h=n(r("cQO8")),p=n(r("yEi+")),b=n(r("eDh5")),m=n(r("DVkF")),v=n(r("XH0y")),y=n(r("dv6X")),g=n(r("yJfQ")),w=n(r("xhl4")),_=n(r("b1mx")),M=n(r("y2lW")),k=n(r("ggS5")),S=r("/pSh");t.default=function(e){function t(e){var r;(0,o.default)(this,t),r=(0,s.default)(this,(0,c.default)(t).call(this)),(0,d.default)((0,u.default)(r),"isMetaMask",!0),r._state={sentWarnings:{isConnected:!1,sendAsync:!1,sendSync:!1},isConnected:void 0,accounts:void 0,isUnlocked:void 0},r.selectedAddress=null,r.networkVersion=void 0,r.chainId=void 0;var n=new y.default;r.mux=n,(0,_.default)(e,n,e,r._handleDisconnect.bind((0,u.default)(r),"MetaMask")),r._publicConfigStore=new g.default({storageKey:"MetaMask-Config"}),r._publicConfigStore.subscribe((function(e){var t=JSON.parse(e);if("isUnlocked"in t&&t.isUnlocked!==r._state.isUnlocked)if(r._state.isUnlocked=t.isUnlocked,r._state.isUnlocked)try{r._sendAsync({method:"eth_accounts",params:[]},(function(){}),!0)}catch(n){}else r._handleAccountsChanged([]);if("selectedAddress"in t&&r.selectedAddress!==t.selectedAddress)try{r._sendAsync({method:"eth_accounts",params:[]},(function(){}),!0)}catch(n){}"chainId"in t&&t.chainId!==r.chainId&&(r.chainId=t.chainId,r.emit("chainChanged",r.chainId)),"networkVersion"in t&&t.networkVersion!==r.networkVersion&&(r.networkVersion=t.networkVersion,r.emit("networkChanged",r.networkVersion))})),(0,_.default)(n.createStream("publicConfig"),(0,w.default)(r._publicConfigStore),S.logStreamDisconnectWarning.bind((0,u.default)(r),"MetaMask PublicConfigStore")),n.ignoreStream("phishing"),r.on("connect",(function(){r._state.isConnected=!0}));var i=(0,m.default)();(0,_.default)(i.stream,n.createStream("provider"),i.stream,r._handleDisconnect.bind((0,u.default)(r),"MetaMask RpcProvider"));var a=new p.default;return a.push((0,b.default)()),a.push((0,S.createErrorMiddleware)()),a.push(i.middleware),r._rpcEngine=a,i.events.on("notification",(function(e){"wallet_accountsChanged"===e.method?r._handleAccountsChanged(e.result):"eth_subscription"===e.method&&r.emit("notification",e.params.result),r.emit("data",null,e)})),setTimeout((function(){return r.emit("connect")})),r}return(0,f.default)(t,e),(0,a.default)(t,[{key:"send",value:function(e,t){var r,n=this,o=t,a=t;if("object"!==(0,i.default)(e)||Array.isArray(e))"string"==typeof e&&"function"!=typeof a&&(void 0===a?a=[]:Array.isArray(a)||(a=[a]),r={method:e,params:a});else{if("function"==typeof a)return this._sendAsync(e,a);if(r=e,!a&&["eth_accounts","eth_coinbase","eth_uninstallFilter","net_version"].includes(r.method))return this._sendSync(r)}if(Array.isArray(r)||"function"==typeof a||"object"!==(0,i.default)(r)||"string"!=typeof r.method)throw l.ethErrors.rpc.invalidRequest({message:k.default.errors.invalidParams(),data:[e,o]});return new Promise((function(e,t){try{n._sendAsync(r,function(e,t){return function(r,n){return r||n.error?t(r||n.error):Array.isArray(n)?e(n):e(n.result)}}(e,t))}catch(i){t(i)}}))}},{key:"sendAsync",value:function(e,t){this._sendAsync(e,t)}},{key:"_sendSync",value:function(e){var t;switch(e.method){case"eth_accounts":t=this.selectedAddress?[this.selectedAddress]:[];break;case"eth_coinbase":t=this.selectedAddress||null;break;case"eth_uninstallFilter":this._sendAsync(e,(function(){})),t=!0;break;case"net_version":t=this.networkVersion||null;break;default:throw new Error(k.default.errors.unsupportedSync(e.method))}return(0,S.makeThenable)({id:e.id,jsonrpc:e.jsonrpc,result:t},"result")}},{key:"_sendAsync",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t;Array.isArray(e)||(e.jsonrpc||(e.jsonrpc="2.0"),"eth_accounts"!==e.method&&"eth_requestAccounts"!==e.method||(i=function(i,o){r._handleAccountsChanged(o.result||[],"eth_accounts"===e.method,n),t(i,o)})),this._rpcEngine.handle(e,i)}},{key:"_handleDisconnect",value:function(e,t){S.logStreamDisconnectWarning.bind(this)(e,t),this._state.isConnected&&this.emit("close",{code:1011,reason:"MetaMask background communication error."}),this._state.isConnected=!1}},{key:"_handleAccountsChanged",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e;Array.isArray(n)||(v.default.error("MetaMask: Received non-array accounts parameter. Please report this bug.",n),n=[]),(0,h.default)(this._state.accounts,n)||(t&&!r&&v.default.error('MetaMask: "eth_accounts" unexpectedly updated accounts. Please report this bug.',n),this.emit("accountsChanged",n),this._state.accounts=n),this.selectedAddress!==n[0]&&(this.selectedAddress=n[0]||null)}}]),t}(M.default)},OLod:function(e,t,r){var n,i,o,a,s,c,u,f,d,l,h,p,b,m,v,y,g,w,_;e.exports=(n=r("Ib8C"),r("K3mO"),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc,f=u.Base64,d=i.algo.EvpKDF,l=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:g}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),o.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=i.mode={},p=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),b=h.CBC=function(){var e=p.extend();function t(e,t,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),m=(i.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var c=s.create(o,n);e.concat(c)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},o.BlockCipher=l.extend({cfg:l.cfg.extend({mode:b,padding:m}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else n=r.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(r,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),v=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=s.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(f)},parse:function(e){var t=f.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=s.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:n})}},g=o.SerializableCipher=a.extend({cfg:a.extend({format:y}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=s.random(8));var i=d.create({keySize:t+r}).compute(e,n),o=s.create(i.words.slice(t),4*r);return i.sigBytes=4*t,v.create({key:i,iv:o,salt:n})}},_=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:w}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}}))))},Ob1r:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputInt};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=o},OyGj:function(e,t,r){var n=r("3QEE"),i=r("3V0z"),o=r("te+y"),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},s=function(e,t,r){return new Array(t-e.length+1).join(r||"0")+e},c=function(e,t){e=o.encode(e);for(var r="",n=0;n<e.length;n++){var i=e.charCodeAt(n);if(0===i){if(!t)break;r+="00"}else{var a=i.toString(16);r+=a.length<2?"0"+a:a}}return"0x"+r},u=function(e){var t=l(e),r=t.toString(16);return t.lessThan(0)?"-0x"+r.substr(1):"0x"+r},f=function(e){if(v(e))return u(+e);if(b(e))return u(e);if("object"==typeof e)return c(JSON.stringify(e));if(m(e)){if(0===e.indexOf("-0x"))return u(e);if(0===e.indexOf("0x"))return e;if(!isFinite(e))return c(e,1)}return u(e)},d=function(e){e=e?e.toLowerCase():"ether";var t=a[e];if(void 0===t)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(a,null,2));return new n(t,10)},l=function(e){return b(e=e||0)?e:!m(e)||0!==e.indexOf("0x")&&0!==e.indexOf("-0x")?new n(e.toString(10),10):new n(e.replace("0x",""),16)},h=function(e){return/^0x[0-9a-f]{40}$/i.test(e)},p=function(e){e=e.replace("0x","");for(var t=i(e.toLowerCase()),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},b=function(e){return e instanceof n||e&&e.constructor&&"BigNumber"===e.constructor.name},m=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},v=function(e){return"boolean"==typeof e};e.exports={padLeft:s,padRight:function(e,t,r){return e+new Array(t-e.length+1).join(r||"0")},toHex:f,toDecimal:function(e){return l(e).toNumber()},fromDecimal:u,toUtf8:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);if(0===i)break;t+=String.fromCharCode(i)}return o.decode(t)},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},fromUtf8:c,fromAscii:function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charCodeAt(n).toString(16);r+=i.length<2?"0"+i:i}return"0x"+r.padEnd(t,"0")},transformToFullName:function(e){if(-1!==e.name.indexOf("("))return e.name;var t=e.inputs.map((function(e){return e.type})).join();return e.name+"("+t+")"},extractDisplayName:function(e){var t=e.indexOf("("),r=e.indexOf(")");return-1!==t&&-1!==r?e.substr(0,t):e},extractTypeName:function(e){var t=e.indexOf("("),r=e.indexOf(")");return-1!==t&&-1!==r?e.substr(t+1,r-t-1).replace(" ",""):""},toWei:function(e,t){var r=l(e).times(d(t));return b(e)?r:r.toString(10)},fromWei:function(e,t){var r=l(e).dividedBy(d(t));return b(e)?r:r.toString(10)},toBigNumber:l,toTwosComplement:function(e){var t=l(e).round();return t.lessThan(0)?new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(t).plus(1):t},toAddress:function(e){return h(e)?e:/^[0-9a-f]{40}$/.test(e)?"0x"+e:"0x"+s(f(e).substr(2),40)},isBigNumber:b,isStrictAddress:h,isAddress:function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||p(e))},isChecksumAddress:p,toChecksumAddress:function(e){if(void 0===e)return"";e=e.toLowerCase().replace("0x","");for(var t=i(e),r="0x",n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return r},isFunction:function(e){return"function"==typeof e},isString:m,isObject:function(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e},isBoolean:v,isArray:function(e){return Array.isArray(e)},isJson:function(e){try{return!!JSON.parse(e)}catch(t){return!1}},isBloom:function(e){return!(!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},isTopic:function(e){return!(!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}}},P1VG:function(e){e.exports=JSON.parse('{"_from":"elliptic@6.5.1","_id":"elliptic@6.5.1","_inBundle":false,"_integrity":"sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==","_location":"/eccrypto/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.1","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.1","saveSpec":null,"fetchSpec":"6.5.1"},"_requiredBy":["/eccrypto","/eccrypto/secp256k1"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz","_shasum":"c380f5f909bf1b9b4428d028cd18d3b0efd6b52b","_spec":"elliptic@6.5.1","_where":"/home/zefram/projects/ng88mph-frontend/node_modules/eccrypto","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":false,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"deprecated":false,"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.4","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.6.0","mocha":"^6.1.4"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.1"}')},P5y9:function(e,t){e.exports={InvalidNumberOfSolidityArgs:function(){return new Error("Invalid number of arguments to Solidity function")},InvalidNumberOfRPCParams:function(){return new Error("Invalid number of input parameters to RPC method")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")}}},PCco:function(e,t,r){"use strict";var n=r("K0/n"),i=r("bKmz");e.exports=function(e){this._requestManager=e._requestManager;var t=this;[new n({name:"blockNetworkRead",call:"bzz_blockNetworkRead",params:1,inputFormatter:[null]}),new n({name:"syncEnabled",call:"bzz_syncEnabled",params:1,inputFormatter:[null]}),new n({name:"swapEnabled",call:"bzz_swapEnabled",params:1,inputFormatter:[null]}),new n({name:"download",call:"bzz_download",params:2,inputFormatter:[null,null]}),new n({name:"upload",call:"bzz_upload",params:2,inputFormatter:[null,null]}),new n({name:"retrieve",call:"bzz_retrieve",params:1,inputFormatter:[null]}),new n({name:"store",call:"bzz_store",params:2,inputFormatter:[null,null]}),new n({name:"get",call:"bzz_get",params:1,inputFormatter:[null]}),new n({name:"put",call:"bzz_put",params:2,inputFormatter:[null,null]}),new n({name:"modify",call:"bzz_modify",params:4,inputFormatter:[null,null,null,null]})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),[new i({name:"hive",getter:"bzz_hive"}),new i({name:"info",getter:"bzz_info"})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))}},PVpz:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"),function(){var e=n,t=e.lib.StreamCipher,r=[],i=[],o=[],a=e.algo.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],c=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),d=u>>>16|4294901760&f,l=f<<16|65535&u;for(n[0]^=u,n[1]^=d,n[2]^=f,n[3]^=l,n[4]^=u,n[5]^=d,n[6]^=f,n[7]^=l,i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,r=0;r<8;r++)i[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],a=65535&n,s=n>>>16;o[r]=((a*a>>>17)+a*s>>>15)+s*s^((4294901760&n)*n|0)+((65535&n)*n|0)}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=t._createHelper(a)}(),n.RabbitLegacy)},QSG8:function(e,t,r){"use strict";var n=t,i=r("OZ/i"),o=r("2j6C"),a=r("dlgc");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var a=i.andln(n-1);i.isubn(o=a>(n>>1)-1?(n>>1)-a:a)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,c=1;c<s;c++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},QnMN:function(e,t,r){"use strict";(function(e,n){var i=new(0,r("3JDT").ec)("secp256k1"),o=e.crypto||e.msCrypto||{},a=o.subtle||o.webkitSubtle,s=r("HEbw"),c=n.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),u=n.alloc(32,0);function f(e,t){if(!e)throw new Error(t||"Assertion failed")}function d(e){return!(!n.isBuffer(t=e)||32!==t.length)&&e.compare(u)>0&&e.compare(c)<0;var t}function l(e){var t=new Uint8Array(e);return void 0===o.getRandomValues?n.from(s.randomBytes(e)):(o.getRandomValues(t),n.from(t))}function h(e){return new Promise((function(t){var r=s.createHash("sha512").update(e).digest();t(new Uint8Array(r))}))}function p(e){return function(t,r,i){return new Promise((function(o){if(a)return a.importKey("raw",r,{name:"AES-CBC"},!1,[e]).then((function(r){return a[e]({name:"AES-CBC",iv:t},r,i)})).then((function(e){o(n.from(new Uint8Array(e)))}));if("encrypt"===e){var c=s.createCipheriv("aes-256-cbc",r,t);c.update(i),o(c.final())}else if("decrypt"===e){var u=s.createDecipheriv("aes-256-cbc",r,t);u.update(i),o(u.final())}}))}}var b=p("encrypt"),m=p("decrypt");t.generatePrivate=function(){for(var e=l(32);!d(e);)e=l(32);return e};var v=t.getPublic=function(e){return f(32===e.length,"Bad private key"),f(d(e),"Bad private key"),n.from(i.keyFromPrivate(e).getPublic("arr"))};t.getPublicCompressed=function(e){return f(32===e.length,"Bad private key"),f(d(e),"Bad private key"),n.from(i.keyFromPrivate(e).getPublic(!0,"arr"))},t.sign=function(e,t){return new Promise((function(r){f(32===e.length,"Bad private key"),f(d(e),"Bad private key"),f(t.length>0,"Message should not be empty"),f(t.length<=32,"Message is too long"),r(n.from(i.sign(t,e,{canonical:!0}).toDER()))}))},t.verify=function(e,t,r){return new Promise((function(n,o){f(65===e.length||33===e.length,"Bad public key"),65===e.length&&f(4===e[0],"Bad public key"),33===e.length&&f(2===e[0]||3===e[0],"Bad public key"),f(t.length>0,"Message should not be empty"),f(t.length<=32,"Message is too long"),i.verify(t,r,e)?n(null):o(new Error("Bad signature"))}))};var y=t.derive=function(e,t){return new Promise((function(r){f(n.isBuffer(e),"Bad private key"),f(n.isBuffer(t),"Bad public key"),f(32===e.length,"Bad private key"),f(d(e),"Bad private key"),f(65===t.length||33===t.length,"Bad public key"),65===t.length&&f(4===t[0],"Bad public key"),33===t.length&&f(2===t[0]||3===t[0],"Bad public key");var o=i.keyFromPrivate(e),a=i.keyFromPublic(t),s=o.derive(a.getPublic());r(n.from(s.toArray()))}))};t.encrypt=function(e,t,r){var i,o,a,c;return r=r||{},new Promise((function(t){for(var n=r.ephemPrivateKey||l(32);!d(n);)n=r.ephemPrivateKey||l(32);o=v(n),t(y(n,e))})).then((function(e){return h(e)})).then((function(e){i=r.iv||l(16);var n=e.slice(0,32);return c=e.slice(32),b(i,n,t)})).then((function(e){var t=n.concat([i,o,a=e]);return function(e,t){return new Promise((function(r){var i=s.createHmac("sha256",n.from(e));i.update(t),r(i.digest())}))}(c,t)})).then((function(e){return{iv:i,ephemPublicKey:o,ciphertext:a,mac:e}}))},t.decrypt=function(e,t){var r;return y(e,t.ephemPublicKey).then((function(e){return h(e)})).then((function(e){r=e.slice(0,32);var i,o,a,c=e.slice(32),u=n.concat([t.iv,t.ephemPublicKey,t.ciphertext]);return i=c,o=u,a=t.mac,new Promise((function(e){var t=s.createHmac("sha256",n.from(i));t.update(o),e(function(e,t){if(e.length!==t.length)return!1;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r}(t.digest(),a))}))})).then((function(e){return f(e,"Bad MAC"),m(t.iv,r,t.ciphertext)})).then((function(e){return n.from(new Uint8Array(e))}))}}).call(this,r("yLpj"),r("tjlA").Buffer)},RIjb:function(e,t,r){var n=r("3QEE");e.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_UNITS:["wei","kwei","Mwei","Gwei","szabo","finney","femtoether","picoether","nanoether","microether","milliether","nano","micro","milli","ether","grand","Mether","Gether","Tether","Pether","Eether","Zether","Yether","Nether","Dether","Vether","Uether"],ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:n.ROUND_DOWN},ETH_POLLING_TIMEOUT:500,defaultBlock:"latest",defaultAccount:void 0}},S6kV:function(e,t,r){var n,i,o;e.exports=(o=r("Ib8C"),r("OLod"),o.mode.OFB=(i=(n=o.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),n.Decryptor=i,n),o.mode.OFB)},Slf6:function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.sendSiteMetadata=void 0;var i,o,a,s=n(r("o0o1")),c=n(r("yXPU")),u=n(r("XH0y")),f=n(r("ggS5")).default.errors,d=function(e){return fetch(e,{method:"HEAD",mode:"same-origin"}).then((function(e){return 200===e.status})).catch((function(e){return!1}))},l=function(e){var t=e.document,r=t.querySelector('head > meta[property="og:site_name"]');if(r)return r.content;var n=t.querySelector('head > meta[name="title"]');return n?n.content:t.title&&t.title.length>0?t.title:e.location.hostname},h=(o=(0,c.default)(s.default.mark((function e(t){var r,n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(r=t.document).querySelector('head > link[rel="shortcut icon"]'),e.t0=n,!e.t0){e.next=7;break}return e.next=6,d(n.href);case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=9;break}return e.abrupt("return",n.href);case 9:if(n=Array.from(r.querySelectorAll('head > link[rel="icon"]')).find((function(e){return Boolean(e.href)})),e.t1=n,!e.t1){e.next=15;break}return e.next=14,d(n.href);case 14:e.t1=e.sent;case 15:if(!e.t1){e.next=17;break}return e.abrupt("return",n.href);case 17:return e.abrupt("return",null);case 18:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)}),p=(i=(0,c.default)(s.default.mark((function e(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=l(window),e.next=3,h(window);case 3:return e.t1=e.sent,e.abrupt("return",{name:e.t0,icon:e.t1});case 5:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)});t.sendSiteMetadata=(a=(0,c.default)(s.default.mark((function e(t){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p();case 3:t.handle({method:"wallet_sendDomainMetadata",domainMetadata:e.sent},(function(){})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),u.default.error({message:f.sendSiteMetadata(),originalError:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),function(e){return a.apply(this,arguments)})},U0lj:function(e,t,r){"use strict";var n=r("QSG8"),i=r("OZ/i"),o=r("P7XM"),a=r("cSfw"),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),f=i.redMul(s),d=a.redMul(o);return this.curve.point(c,u,d,f)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(c),t=a.redMul(u.redSub(o)),r=a.redMul(c)}}else{var u=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s),e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(o)),r=u.redMul(c)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),f=s.redMul(c),d=o.redMul(c),l=a.redMul(s);return this.curve.point(u,f,l,d)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(c).redMul(f);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},UE4b:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputReal,this._outputFormatter=n.formatOutputUReal};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=o},UWFI:function(e,t,r){var n=r("uudB");"undefined"!=typeof window&&void 0===window.Web3&&(window.Web3=n),e.exports=n},VQkn:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Some=void 0,t.Some=function(e,t){return new Promise((function(r,n){var i=0,o=!1,a=new Array(e.length).fill(void 0);e.forEach((function(s,c){s.then((function(e){a[c]=e})).catch((function(e){})).finally((function(){o||t(a.slice(0)).then((function(e){o=!0,r(e)})).catch((function(e){})).finally((function(t){++i===e.length&&n(new Error("Unable to resolve enough promises, responses: "+JSON.stringify(a)))}))}))}))}))}},VmuJ:function(e,t,r){var n=r("1jOq");function i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},W8MJ:function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},WYAk:function(e,t,r){var n,i;e.exports=(n=r("Ib8C"),i=n.enc.Utf8,void(n.algo.HMAC=n.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})))},Wkyl:function(e){e.exports=JSON.parse('{"version":"0.20.7"}')},XH0y:function(e,t,r){var n,i;!function(o,a){"use strict";void 0===(i="function"==typeof(n=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function n(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(n){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(r){return"debug"===r&&(r="log"),"undefined"!=typeof console&&("trace"===r&&t?i:void 0!==console[r]?n(console,r):void 0!==console.log?n(console,"log"):e)}function a(t,n){for(var i=0;i<r.length;i++){var o=r[i];this[o]=i<t?e:this.methodFactory(o,t,n)}this.log=this.debug}function s(e,t,r){return function(){"undefined"!=typeof console&&(a.call(this,t,r),this[e].apply(this,arguments))}}function c(e,t,r){return o(e)||s.apply(this,arguments)}function u(e,t,n){var i,o=this,s="loglevel";function u(){var e;if("undefined"!=typeof window){try{e=window.localStorage[s]}catch(n){}if(void 0===e)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(s)+"=");-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(n){}return void 0===o.levels[e]&&(e=void 0),e}}e&&(s+=":"+e),o.name=e,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=n||c,o.getLevel=function(){return i},o.setLevel=function(t,n){if("string"==typeof t&&void 0!==o.levels[t.toUpperCase()]&&(t=o.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(i=t,!1!==n&&function(e){var t=(r[e]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[s]=t)}catch(n){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(n){}}}(t),a.call(o,t,e),"undefined"==typeof console&&t<o.levels.SILENT)return"No console available for logging"},o.setDefaultLevel=function(e){u()||o.setLevel(e,!1)},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)};var f=u();null==f&&(f=null==t?"WARN":t),o.setLevel(f,!1)}var f=new u,d={};f.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=d[e];return t||(t=d[e]=new u(e,f.getLevel(),f.methodFactory)),t};var l="undefined"!=typeof window?window.log:void 0;return f.noConflict=function(){return"undefined"!=typeof window&&window.log===f&&(window.log=l),f},f.getLoggers=function(){return d},f})?n.call(t,r,t,e):n)||(e.exports=i)}()},XVcj:function(e,t,r){var n=r("K0/n");e.exports={eth:function(){return[new n({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new n({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new n({name:"getLogs",call:"eth_getFilterLogs",params:1}),new n({name:"poll",call:"eth_getFilterChanges",params:1})]},shh:function(){return[new n({name:"newFilter",call:"shh_newMessageFilter",params:1}),new n({name:"uninstallFilter",call:"shh_deleteMessageFilter",params:1}),new n({name:"getLogs",call:"shh_getFilterMessages",params:1}),new n({name:"poll",call:"shh_getFilterMessages",params:1})]}}},XqDa:function(e,t,r){var n=r("K0/n"),i=r("pliG"),o=r("XVcj"),a=function(e){this._requestManager=e._requestManager;var t=this;s().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};a.prototype.newMessageFilter=function(e,t,r){return new i(e,"shh",this._requestManager,o.shh(),null,t,r)};var s=function(){return[new n({name:"version",call:"shh_version",params:0}),new n({name:"info",call:"shh_info",params:0}),new n({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new n({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new n({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new n({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new n({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new n({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new n({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new n({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new n({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new n({name:"newSymKey",call:"shh_newSymKey",params:0}),new n({name:"addSymKey",call:"shh_addSymKey",params:1}),new n({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new n({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new n({name:"getSymKey",call:"shh_getSymKey",params:1}),new n({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new n({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};e.exports=a},"Y+VP":function(e,t,r){"use strict";var n=r("OyGj"),i=r("P5y9"),o=function(e,t){var r=this;this.responseCallbacks={},this.path=e,this.connection=t.connect({path:this.path}),this.connection.on("error",(function(e){console.error("IPC Connection Error",e),r._timeout()})),this.connection.on("end",(function(){r._timeout()})),this.connection.on("data",(function(e){r._parseResponse(e.toString()).forEach((function(e){var t=null;n.isArray(e)?e.forEach((function(e){r.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,r.responseCallbacks[t]&&(r.responseCallbacks[t](null,e),delete r.responseCallbacks[t])}))}))};o.prototype._parseResponse=function(e){var t=this,r=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var n=null;try{n=JSON.parse(e)}catch(o){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),i.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,n&&r.push(n)})),r},o.prototype._addResponseCallback=function(e,t){var r=e.id||e[0].id,n=e.method||e[0].method;this.responseCallbacks[r]=t,this.responseCallbacks[r].method=n},o.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](i.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},o.prototype.isConnected=function(){return this.connection.writable||this.connection.connect({path:this.path}),!!this.connection.writable},o.prototype.send=function(e){if(this.connection.writeSync){var t;this.connection.writable||this.connection.connect({path:this.path});var r=this.connection.writeSync(JSON.stringify(e));try{t=JSON.parse(r)}catch(n){throw i.InvalidResponse(r)}return t}throw new Error('You tried to send "'+e.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},o.prototype.sendAsync=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},e.exports=o},Y4E4:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.generateJsonRPCObject=t.post=t.promiseTimeout=void 0;var a=function(e,t){var r=new Promise((function(t,r){var n=setTimeout((function(){clearTimeout(n),r(new Error("Timed out in "+e+"ms"))}),e)}));return Promise.race([t,r])};t.promiseTimeout=a,t.post=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(t)},o=i({},n,{},r,{},{method:"POST"});return a(12e3,fetch(e,o).then((function(e){if(e.ok)return e.json();throw new Error("Could not connect",e)})))},t.generateJsonRPCObject=function(e,t){return{jsonrpc:"2.0",method:e,id:10,params:t}}},YGzH:function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(r("lSNA")),a={GOOGLE:"google",FACEBOOK:"facebook",TWITCH:"twitch",REDDIT:"reddit",DISCORD:"discord",MOONPAY:"moonpay",WYRE:"wyre",RAMPNETWORK:"rampnetwork"},s=Object.values(a),c=((0,o.default)(i={},a.RAMPNETWORK,{line1:"Bank transfer",line2:"0% - 2.5%",line3:"10,000\u20ac/purchase, 10,000\u20ac/mo",supportPage:"https://instant.ramp.network/",minOrderValue:1,maxOrderValue:1e4,validCurrencies:["GBP","EUR"],validCryptoCurrencies:["ETH","DAI","USDC"],includeFees:!0}),(0,o.default)(i,a.MOONPAY,{line1:"Credit / Debit Card / Apple Pay",line2:"4.5% or 5 USD",line3:"2,000\u20ac/day, 10,000\u20ac/mo",supportPage:"https://help.moonpay.io/en/",minOrderValue:24.99,maxOrderValue:2e3,validCurrencies:["USD","EUR","GBP"],validCryptoCurrencies:["ETH","DAI","TUSD","USDC","USDT"],includeFees:!0}),(0,o.default)(i,a.WYRE,{line1:"Apple Pay/Debit Card",line2:"1.5% + 30\xa2",line3:"$250/day",supportPage:"https://support.sendwyre.com/en/",minOrderValue:20,maxOrderValue:250,validCurrencies:["USD"],validCryptoCurrencies:["ETH","DAI","USDC"],includeFees:!1}),i);t.default={networkList:["mainnet","rinkeby","ropsten","kovan","goerli","localhost","matic"],enums:a,verifierList:s,supportedVerifierList:[a.GOOGLE,a.REDDIT,a.DISCORD],paymentProviders:c,api:"https://api.tor.us"}},YbVe:function(e,t,r){var n=r("ktN0"),i=r("hkhR"),o=function(e){this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter};o.prototype.isType=function(e){throw"this method should be overrwritten for type "+e},o.prototype.staticPartLength=function(e){return(this.nestedTypes(e)||["[1]"]).map((function(e){return parseInt(e.slice(1,-1),10)||1})).reduce((function(e,t){return e*t}),32)},o.prototype.isDynamicArray=function(e){var t=this.nestedTypes(e);return!!t&&!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.isStaticArray=function(e){var t=this.nestedTypes(e);return!!t&&!!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.staticArrayLength=function(e){var t=this.nestedTypes(e);return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1},o.prototype.nestedName=function(e){var t=this.nestedTypes(e);return t?e.substr(0,e.length-t[t.length-1].length):e},o.prototype.isDynamicType=function(){return!1},o.prototype.nestedTypes=function(e){return e.match(/(\[[0-9]*\])/g)},o.prototype.encode=function(e,t){var r,i,o,a=this;return this.isDynamicArray(t)?(r=e.length,i=a.nestedName(t),(o=[]).push(n.formatInputInt(r).encode()),e.forEach((function(e){o.push(a.encode(e,i))})),o):this.isStaticArray(t)?function(){for(var r=a.staticArrayLength(t),n=a.nestedName(t),i=[],o=0;o<r;o++)i.push(a.encode(e[o],n));return i}():this._inputFormatter(e,t).encode()},o.prototype.decode=function(e,t,r){var n=this;if(this.isDynamicArray(r))return function(){for(var i=parseInt("0x"+e.substr(2*t,64)),o=parseInt("0x"+e.substr(2*i,64)),a=i+32,s=n.nestedName(r),c=n.staticPartLength(s),u=32*Math.floor((c+31)/32),f=[],d=0;d<o*u;d+=u)f.push(n.decode(e,a+d,s));return f}();if(this.isStaticArray(r))return function(){for(var i=n.staticArrayLength(r),o=t,a=n.nestedName(r),s=n.staticPartLength(a),c=32*Math.floor((s+31)/32),u=[],f=0;f<i*c;f+=c)u.push(n.decode(e,o+f,a));return u}();if(this.isDynamicType(r))return function(){var o=parseInt("0x"+e.substr(2*t,64)),a=parseInt("0x"+e.substr(2*o,64)),s=Math.floor((a+31)/32),c=new i(e.substr(2*o,64*(1+s)),0);return n._outputFormatter(c,r)}();var o=this.staticPartLength(r),a=new i(e.substr(2*t,2*o));return this._outputFormatter(a,r)},e.exports=o},"ZP+F":function(e,t,r){var n=r("ktN0"),i=r("ukW+"),o=r("mDbE"),a=r("Ob1r"),s=r("sT9c"),c=r("G6Tn"),u=r("5Gy/"),f=r("8Yzn"),d=r("UE4b"),l=r("G814"),h=function(e,t){return e.isDynamicType(t)||e.isDynamicArray(t)},p=function(e){this._types=e};p.prototype._requireType=function(e){var t=this._types.filter((function(t){return t.isType(e)}))[0];if(!t)throw Error("invalid solidity type!: "+e);return t},p.prototype.encodeParam=function(e,t){return this.encodeParams([e],[t])},p.prototype.encodeParams=function(e,t){var r=this.getSolidityTypes(e),n=r.map((function(r,n){return r.encode(t[n],e[n])})),i=r.reduce((function(t,n,i){var o=n.staticPartLength(e[i]),a=32*Math.floor((o+31)/32);return t+(h(r[i],e[i])?32:a)}),0);return this.encodeMultiWithOffset(e,r,n,i)},p.prototype.encodeMultiWithOffset=function(e,t,r,i){var o="",a=this;return e.forEach((function(s,c){if(h(t[c],e[c])){o+=n.formatInputInt(i).encode();var u=a.encodeWithOffset(e[c],t[c],r[c],i);i+=u.length/2}else o+=a.encodeWithOffset(e[c],t[c],r[c],i)})),e.forEach((function(n,s){if(h(t[s],e[s])){var c=a.encodeWithOffset(e[s],t[s],r[s],i);i+=c.length/2,o+=c}})),o},p.prototype.encodeWithOffset=function(e,t,r,i){var o=t.isDynamicArray(e)?1:t.isStaticArray(e)?2:3;if(3!==o){var a=t.nestedName(e),s=t.staticPartLength(a),c=1===o?r[0]:"";if(t.isDynamicArray(a))for(var u=1===o?2:0,f=0;f<r.length;f++)1===o?u+=+r[f-1][0]||0:2===o&&(u+=+(r[f-1]||[])[0]||0),c+=n.formatInputInt(i+f*s+32*u).encode();for(var d=1===o?r.length-1:r.length,l=0;l<d;l++){var h=c/2;1===o?c+=this.encodeWithOffset(a,t,r[l+1],i+h):2===o&&(c+=this.encodeWithOffset(a,t,r[l],i+h))}return c}return r},p.prototype.decodeParam=function(e,t){return this.decodeParams([e],t)[0]},p.prototype.decodeParams=function(e,t){var r=this.getSolidityTypes(e),n=this.getOffsets(e,r);return r.map((function(r,i){return r.decode(t,n[i],e[i],i)}))},p.prototype.getOffsets=function(e,t){for(var r=t.map((function(t,r){return t.staticPartLength(e[r])})),n=1;n<r.length;n++)r[n]+=r[n-1];return r.map((function(r,n){return r-t[n].staticPartLength(e[n])}))},p.prototype.getSolidityTypes=function(e){var t=this;return e.map((function(e){return t._requireType(e)}))};var b=new p([new i,new o,new a,new s,new c,new l,new u,new f,new d]);e.exports=b},a1gu:function(e,t,r){var n=r("cDf5"),i=r("PJYZ");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?i(e):t}},b1mx:function(e,t,r){(function(t){var n=r("VmuJ"),i=r("q1Jy"),o=r(10),a=function(){},s=/^v?\.0/.test(t.version),c=function(e){return"function"==typeof e},u=function(e,t,r,u){u=n(u);var f=!1;e.on("close",(function(){f=!0})),i(e,{readable:t,writable:r},(function(e){if(e)return u(e);f=!0,u()}));var d=!1;return function(t){if(!f&&!d)return d=!0,function(e){return!!s&&!!o&&(e instanceof(o.ReadStream||a)||e instanceof(o.WriteStream||a))&&c(e.close)}(e)?e.close(a):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void u(t||new Error("stream was destroyed"))}},f=function(e){e()},d=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n=t.map((function(i,o){var a=o<t.length-1;return u(i,a,o>0,(function(t){e||(e=t),t&&n.forEach(f),a||(n.forEach(f),r(e))}))}));return t.reduce(d)}}).call(this,r("8oxB"))},bKmz:function(e,t,r){var n=r("OyGj"),i=function(e){this.name=e.name,this.getter=e.getter,this.setter=e.setter,this.outputFormatter=e.outputFormatter,this.inputFormatter=e.inputFormatter,this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter(e):e},i.prototype.formatOutput=function(e){return this.outputFormatter&&null!=e?this.outputFormatter(e):e},i.prototype.extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},i.prototype.attachToObject=function(e){var t={get:this.buildGet(),enumerable:!0},r=this.name.split("."),n=r[0];r.length>1&&(e[r[0]]=e[r[0]]||{},e=e[r[0]],n=r[1]),Object.defineProperty(e,n,t),e[o(n)]=this.buildAsyncGet()};var o=function(e){return"get"+e.charAt(0).toUpperCase()+e.slice(1)};i.prototype.buildGet=function(){var e=this;return function(){return e.formatOutput(e.requestManager.send({method:e.getter}))}},i.prototype.buildAsyncGet=function(){var e=this,t=function(t){e.requestManager.sendAsync({method:e.getter},(function(r,n){t(r,e.formatOutput(n))}))};return t.request=this.request.bind(this),t},i.prototype.request=function(){var e={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return e.format=this.formatOutput.bind(this),e},e.exports=i},bQjk:function(e,t,r){var n,i,o;e.exports=(o=r("Ib8C"),r("OLod"),n=o.lib.CipherParams,i=o.enc.Hex,o.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return n.create({ciphertext:t})}},o.format.Hex)},byXq:function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("lwsE")),o=n(r("W8MJ")),a=n(r("lSNA")),s=n(r("0QDG")),c=r("ETH1"),u=r("pc79");t.default=function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=r.network,o=void 0===n?"mainnet":n,c=r.proxyAddress,f=void 0===c?"0x638646503746d5456209e33a2ff5e3226d698bea":c;(0,i.default)(this,e),(0,a.default)(this,"_currentEpoch","13"),(0,a.default)(this,"_torusNodeEndpoints",["https://binance-main-13.torusnode.com/jrpc","https://waseda-main-13.torusnode.com/jrpc","https://vgr-main-13.torusnode.com/jrpc","https://torus-main-13.torusnode.com/jrpc","https://etc-main-13.torusnode.com/jrpc"]),(0,a.default)(this,"_torusNodePub",[{X:"801e99d5c6befe4286de6f22b086508c02ae5730afabf15f316242238fa8c832",Y:"a4791de3ebd17197d09d7a52d417994e7fdab17f8de002fc139c90dfdebfe7e1"},{X:"f4034ed9b11a3573d496b09823f69efed1213bc903f0b520652cb1b80f72e5c3",Y:"c1619b0d594db4bb289b2ec18c029e777b1e04aa0493f7318d14a68e89ff0005"},{X:"10aeb138801ef2e189e21a016e913fc2c2d40463e90e09687c6cef011e64048d",Y:"1dbc9e567db833376cac16ad07b402d44458befb26125e98446270d41e759a99"},{X:"1a864642b3e612615c0db4999cc89e123b7ab6bafe58b1692d46b64ba27508f6",Y:"92919c5269b22818a9e62d246df282b7847782e46f94d775d8d20fe967fb5cab"},{X:"9b64f7f8db105bb5a9301ac7ab20958e6d71f4a231f0d29b431712dd61d767a7",Y:"ee7de7de555aea2e586c9b40e68fab778742c0a8871e8b8f88a97063822764b4"}]),(0,a.default)(this,"_torusIndexes",[1,2,3,4,5]);try{var d=new URL(o);t=d.href}catch(l){t="https://api.infura.io/v1/jsonrpc/".concat(o)}try{s.default.setProvider(t),this.nodeListContract=new s.default(u.abi,f),this.nodeListAddress=f,this.updated=!1}catch(h){throw new Error(h)}}return(0,o.default)(e,[{key:"getCurrentEpoch",value:function(){return this.nodeListContract.methods.currentEpoch().call()}},{key:"getEpochInfo",value:function(e){return this.nodeListContract.methods.getEpochInfo(e).call()}},{key:"getNodeEndpoint",value:function(e){return this.nodeListContract.methods.getNodeDetails(e).call()}},{key:"getNodeDetails",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(r,n){return t?r(e._nodeDetails):e.updated?r(e._nodeDetails):void e.getCurrentEpoch().then((function(t){return e._currentEpoch=t,e.getEpochInfo(t)})).then((function(t){var r=[],n=t.nodeList.map((function(e,t){return t+1}));return e._torusIndexes=n,t.nodeList.map((function(t){r.push(e.getNodeEndpoint(t).catch((function(e){})))})),Promise.all(r)})).then((function(t){for(var n=[],i=[],o=0;o<t.length;o++){var a=t[o],s="https://".concat(a.declaredIp.split(":")[0],"/jrpc");n.push(s),i.push({X:(0,c.toHex)(a.pubKx).replace("0x",""),Y:(0,c.toHex)(a.pubKy).replace("0x","")})}e._torusNodeEndpoints=n,e._torusNodePub=i,e.updated=!0,r(e._nodeDetails)})).catch((function(t){return r(e._nodeDetails)}))}))}},{key:"_nodeDetails",get:function(){return{currentEpoch:this._currentEpoch,nodeListAddress:this.nodeListAddress,torusNodeEndpoints:this._torusNodeEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}}]),e}()},cQO8:function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!=t&&r!=r}},cSfw:function(e,t,r){"use strict";var n=r("OZ/i"),i=r("QSG8"),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],c=0;c<n.length;c+=r.step){var u=0;for(t=c+r.step-1;t>=c;t--)u=(u<<1)+n[t];a.push(u)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),l=i;l>0;l--){for(c=0;c<a.length;c++)(u=a[c])===l?d=d.mixedAdd(r.points[c]):u===-l&&(d=d.mixedAdd(r.points[c].neg()));f=f.add(d)}return f.toP()},c.prototype._wnafMul=function(e,t){for(var r=4,n=e._getNAFPoints(r),i=n.points,a=o(t,r=n.wnd),c=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var f=a[u];s(0!==f),c="affine"===e.type?c.mixedAdd(f>0?i[f-1>>1]:i[-f-1>>1].neg()):c.add(f>0?i[f-1>>1]:i[-f-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,f=0,d=0;d<n;d++){var l=(k=t[d])._getNAFPoints(e);s[d]=l.wnd,c[d]=l.points}for(d=n-1;d>=1;d-=2){var h=d-1,p=d;if(1===s[h]&&1===s[p]){var b=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(b[1]=t[h].add(t[p]),b[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(b[1]=t[h].toJ().mixedAdd(t[p]),b[2]=t[h].add(t[p].neg())):(b[1]=t[h].toJ().mixedAdd(t[p]),b[2]=t[h].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=a(r[h],r[p]);f=Math.max(v[0].length,f),u[h]=new Array(f),u[p]=new Array(f);for(var y=0;y<f;y++)u[h][y]=m[3*(1+(0|v[0][y]))+(1+(0|v[1][y]))],u[p][y]=0,c[h]=b}else u[h]=o(r[h],s[h]),u[p]=o(r[p],s[p]),f=Math.max(u[h].length,f),f=Math.max(u[p].length,f)}var g=this.jpoint(null,null,null),w=this._wnafT4;for(d=f;d>=0;d--){for(var _=0;d>=0;){var M=!0;for(y=0;y<n;y++)w[y]=0|u[y][d],0!==w[y]&&(M=!1);if(!M)break;_++,d--}if(d>=0&&_++,g=g.dblp(_),d<0)break;for(y=0;y<n;y++){var k,S=w[y];0!==S&&(S>0?k=c[y][S-1>>1]:S<0&&(k=c[y][-S-1>>1].neg()),g="affine"===k.type?g.mixedAdd(k):g.add(k))}}for(d=0;d<n;d++)c[d]=null;return i?g:g.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},cfFl:function(e,t,r){(function(e,r,n,i){!function(t){"use strict";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i<r;i++)n[i]=e[t+i];return n}var a=function(e){var t=o(arguments,1);return function(){var r=o(arguments);return e.apply(null,t.concat(r))}},s=function(e){return function(){var t=o(arguments),r=t.pop();e.call(this,t,r)}};function c(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var u="function"==typeof e&&e,f="object"==typeof r&&"function"==typeof r.nextTick;function d(e){setTimeout(e,0)}function l(e){return function(t){var r=o(arguments,1);e((function(){t.apply(null,r)}))}}var h=l(u?e:f?r.nextTick:d);function p(e){return s((function(t,r){var n;try{n=e.apply(this,t)}catch(i){return r(i)}c(n)&&"function"==typeof n.then?n.then((function(e){b(r,null,e)}),(function(e){b(r,e.message?e:new Error(e))})):r(null,n)}))}function b(e,t,r){try{e(t,r)}catch(n){h(m,n)}}function m(e){throw e}var v="function"==typeof Symbol;function y(e){return v&&"AsyncFunction"===e[Symbol.toStringTag]}function g(e){return y(e)?p(e):e}function w(e){return function(t){var r=o(arguments,1),n=s((function(r,n){var i=this;return e(t,(function(e,t){g(e).apply(i,r.concat(t))}),n)}));return r.length?n.apply(this,r):n}}var _="object"==typeof n&&n&&n.Object===Object&&n,M="object"==typeof self&&self&&self.Object===Object&&self,k=_||M||Function("return this")(),S=k.Symbol,x=Object.prototype,A=x.hasOwnProperty,I=x.toString,O=S?S.toStringTag:void 0,P=Object.prototype.toString,E=S?S.toStringTag:void 0;function C(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?function(e){var t=A.call(e,O),r=e[O];try{e[O]=void 0;var n=!0}catch(o){}var i=I.call(e);return n&&(t?e[O]=r:delete e[O]),i}(e):function(e){return P.call(e)}(e)}function B(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function j(e){return null!=e&&B(e.length)&&!function(e){if(!c(e))return!1;var t=C(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}var R={};function T(){}function L(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var F="function"==typeof Symbol&&Symbol.iterator;function N(e){return null!=e&&"object"==typeof e}function D(e){return N(e)&&"[object Arguments]"==C(e)}var q=Object.prototype,z=q.hasOwnProperty,H=q.propertyIsEnumerable,U=D(function(){return arguments}())?D:function(e){return N(e)&&z.call(e,"callee")&&!H.call(e,"callee")},W=Array.isArray,V="object"==typeof t&&t&&!t.nodeType&&t,K=V&&"object"==typeof i&&i&&!i.nodeType&&i,G=K&&K.exports===V?k.Buffer:void 0,J=(G?G.isBuffer:void 0)||function(){return!1},X=/^(?:0|[1-9]\d*)$/;function Y(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&X.test(e))&&e>-1&&e%1==0&&e<t}var Z={};Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Arguments]"]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object Boolean]"]=Z["[object DataView]"]=Z["[object Date]"]=Z["[object Error]"]=Z["[object Function]"]=Z["[object Map]"]=Z["[object Number]"]=Z["[object Object]"]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object WeakMap]"]=!1;var Q,$="object"==typeof t&&t&&!t.nodeType&&t,ee=$&&"object"==typeof i&&i&&!i.nodeType&&i,te=ee&&ee.exports===$&&_.process,re=function(){try{return ee&&ee.require&&ee.require("util").types||te&&te.binding&&te.binding("util")}catch(e){}}(),ne=re&&re.isTypedArray,ie=ne?(Q=ne,function(e){return Q(e)}):function(e){return N(e)&&B(e.length)&&!!Z[C(e)]},oe=Object.prototype.hasOwnProperty,ae=Object.prototype,se=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),ce=Object.prototype.hasOwnProperty;function ue(e){return j(e)?function(e,t){var r=W(e),n=!r&&U(e),i=!r&&!n&&J(e),o=!r&&!n&&!i&&ie(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!oe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Y(u,c))||s.push(u);return s}(e):function(e){if((t=e)!==("function"==typeof(r=t&&t.constructor)&&r.prototype||ae))return se(e);var t,r,n=[];for(var i in Object(e))ce.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function fe(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function de(e){return function(t,r,n){if(n=L(n||T),e<=0||!t)return n(null);var i=function(e){if(j(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t,r,n,i,o=function(e){return F&&e[F]&&e[F]()}(e);return o?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(o):(r=ue(t=e),n=-1,i=r.length,function(){var e=r[++n];return n<i?{value:t[e],key:e}:null})}(t),o=!1,a=0,s=!1;function c(e,t){if(a-=1,e)o=!0,n(e);else{if(t===R||o&&a<=0)return o=!0,n(null);s||u()}}function u(){for(s=!0;a<e&&!o;){var t=i();if(null===t)return o=!0,void(a<=0&&n(null));a+=1,r(t.value,t.key,fe(c))}s=!1}u()}}function le(e,t,r,n){de(t)(e,g(r),n)}function he(e,t){return function(r,n,i){return e(r,t,n,i)}}function pe(e,t,r){r=L(r||T);var n=0,i=0,o=e.length;function a(e,t){e?r(e):++i!==o&&t!==R||r(null)}for(0===o&&r(null);n<o;n++)t(e[n],n,fe(a))}var be=he(le,1/0),me=function(e,t,r){(j(e)?pe:be)(e,g(t),r)};function ve(e){return function(t,r,n){return e(me,t,g(r),n)}}function ye(e,t,r,n){n=n||T,t=t||[];var i=[],o=0,a=g(r);e(t,(function(e,t,r){var n=o++;a(e,(function(e,t){i[n]=t,r(e)}))}),(function(e){n(e,i)}))}var ge=ve(ye),we=w(ge);function _e(e){return function(t,r,n,i){return e(de(r),t,g(n),i)}}var Me=_e(ye),ke=he(Me,1),Se=w(ke);function xe(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ae(e,t){return e&&function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e}(e,t,ue)}function Ie(e){return e!=e}function Oe(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var i=e.length,o=r+-1;++o<i;)if(t(e[o],o,e))return o;return-1}(e,Ie,r)}var Pe=function(e,t,r){"function"==typeof t&&(r=t,t=null),r=L(r||T);var n=ue(e).length;if(!n)return r(null);t||(t=n);var i={},a=0,s=!1,c=Object.create(null),u=[],f=[],d={};function l(e,t){u.push((function(){!function(e,t){if(!s){var n=fe((function(t,n){if(a--,arguments.length>2&&(n=o(arguments,1)),t){var u={};Ae(i,(function(e,t){u[t]=e})),u[e]=n,s=!0,c=Object.create(null),r(t,u)}else i[e]=n,p(e)}));a++;var u=g(t[t.length-1]);t.length>1?u(i,n):u(n)}}(e,t)}))}function h(){if(0===u.length&&0===a)return r(null,i);for(;u.length&&a<t;)u.shift()()}function p(e){xe(c[e]||[],(function(e){e()})),h()}function b(t){var r=[];return Ae(e,(function(e,n){W(e)&&Oe(e,t,0)>=0&&r.push(n)})),r}Ae(e,(function(t,r){if(!W(t))return l(r,[t]),void f.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return l(r,t),void f.push(r);d[r]=i,xe(n,(function(o){if(!e[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));var a,s,u;s=function(){0==--i&&l(r,t)},(u=c[a=o])||(u=c[a]=[]),u.push(s)}))})),function(){for(var e=0;f.length;)e++,xe(b(f.pop()),(function(e){0==--d[e]&&f.push(e)}));if(e!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function Ee(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ce=S?S.prototype:void 0,Be=Ce?Ce.toString:void 0;function je(e){if("string"==typeof e)return e;if(W(e))return Ee(e,je)+"";if(function(e){return"symbol"==typeof e||N(e)&&"[object Symbol]"==C(e)}(e))return Be?Be.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Re=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Te="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Le="\\ud83c[\\udffb-\\udfff]",Fe="[^\\ud800-\\udfff]",Ne="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="(?:"+Te+"|"+Le+")?",ze="[\\ufe0e\\ufe0f]?"+qe+"(?:\\u200d(?:"+[Fe,Ne,De].join("|")+")[\\ufe0e\\ufe0f]?"+qe+")*",He="(?:"+[Fe+Te+"?",Te,Ne,De,"[\\ud800-\\udfff]"].join("|")+")",Ue=RegExp(Le+"(?="+Le+")|"+He+ze,"g");function We(e){return function(e){return Re.test(e)}(e)?function(e){return e.match(Ue)||[]}(e):function(e){return e.split("")}(e)}var Ve=/^\s+|\s+$/g,Ke=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Ge=/,/,Je=/(=.+)?(\s*)$/,Xe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function Ye(e,t){var r={};Ae(e,(function(e,t){var n,i=y(e),o=!i&&1===e.length||i&&0===e.length;if(W(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return(e=(e=(e=e.toString().replace(Xe,"")).match(Ke)[2].replace(" ",""))?e.split(Ge):[]).map((function(e){return function(e,t,r){var n;if((e=null==(n=e)?"":je(n))&&void 0===t)return e.replace(Ve,"");if(!e||!(t=je(t)))return e;var i=We(e),o=We(t);return function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}(e,t,r)}(i,function(e,t){for(var r=-1,n=e.length;++r<n&&Oe(t,e[r],0)>-1;);return r}(i,o),function(e,t){for(var r=e.length;r--&&Oe(t,e[r],0)>-1;);return r}(i,o)+1).join("")}(e.replace(Je,""))}))}(e),0===e.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=Ee(n,(function(e){return t[e]}));i.push(r),g(e).apply(null,i)}})),Pe(r,t)}function Ze(){this.head=this.tail=null,this.length=0}function Qe(e,t){e.length=1,e.head=e.tail=t}function $e(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=g(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(f.started=!0,W(e)||(e=[e]),0===e.length&&f.idle())return h((function(){f.drain()}));for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:r||T};t?f._tasks.unshift(o):f._tasks.push(o)}a||(a=!0,h((function(){a=!1,f.process()})))}function c(e){return function(t){i-=1;for(var r=0,n=e.length;r<n;r++){var a=e[r],s=Oe(o,a,0);0===s?o.shift():s>0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&f.error(t,a.data)}i<=f.concurrency-f.buffer&&f.unsaturated(),f.idle()&&f.drain(),f.process()}}var u=!1,f={_tasks:new Ze,concurrency:t,payload:r,saturated:T,unsaturated:T,buffer:t/4,empty:T,drain:T,error:T,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){f.drain=T,f._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){f._tasks.remove(e)},process:function(){if(!u){for(u=!0;!f.paused&&i<f.concurrency&&f._tasks.length;){var e=[],t=[],r=f._tasks.length;f.payload&&(r=Math.min(r,f.payload));for(var a=0;a<r;a++){var s=f._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===f._tasks.length&&f.empty(),i===f.concurrency&&f.saturated();var d=fe(c(e));n(t,d)}u=!1}},length:function(){return f._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return f._tasks.length+i===0},pause:function(){f.paused=!0},resume:function(){!1!==f.paused&&(f.paused=!1,h(f.process))}};return f}function et(e,t){return $e(e,1,t)}Ze.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},Ze.prototype.empty=function(){for(;this.head;)this.shift();return this},Ze.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},Ze.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},Ze.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):Qe(this,e)},Ze.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):Qe(this,e)},Ze.prototype.shift=function(){return this.head&&this.removeLink(this.head)},Ze.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},Ze.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,r=0;r<this.length;r++)e[r]=t.data,t=t.next;return e},Ze.prototype.remove=function(e){for(var t=this.head;t;){var r=t.next;e(t)&&this.removeLink(t),t=r}return this};var tt=he(le,1);function rt(e,t,r,n){n=L(n||T);var i=g(r);tt(e,(function(e,r,n){i(t,e,(function(e,r){t=r,n(e)}))}),(function(e){n(e,t)}))}function nt(){var e=Ee(arguments,g);return function(){var t=o(arguments),r=this,n=t[t.length-1];"function"==typeof n?t.pop():n=T,rt(e,t,(function(e,t,n){t.apply(r,e.concat((function(e){var t=o(arguments,1);n(e,t)})))}),(function(e,t){n.apply(r,[e].concat(t))}))}}var it=function(){return nt.apply(null,o(arguments).reverse())},ot=Array.prototype.concat,at=function(e,t,r,n){n=n||T;var i=g(r);Me(e,t,(function(e,t){i(e,(function(e){return e?t(e):t(null,o(arguments,1))}))}),(function(e,t){for(var r=[],i=0;i<t.length;i++)t[i]&&(r=ot.apply(r,t[i]));return n(e,r)}))},st=he(at,1/0),ct=he(at,1),ut=function(){var e=o(arguments),t=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,t)}};function ft(e){return e}function dt(e,t){return function(r,n,i,o){o=o||T;var a,s=!1;r(n,(function(r,n,o){i(r,(function(n,i){n?o(n):e(i)&&!a?(s=!0,a=t(!0,r),o(null,R)):o()}))}),(function(e){e?o(e):o(null,s?a:t(!1))}))}}function lt(e,t){return t}var ht=ve(dt(ft,lt)),pt=_e(dt(ft,lt)),bt=he(pt,1);function mt(e){return function(t){var r=o(arguments,1);r.push((function(t){var r=o(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&xe(r,(function(t){console[e](t)})))})),g(t).apply(null,r)}}var vt=mt("dir");function yt(e,t,r){r=fe(r||T);var n=g(e),i=g(t);function a(e){if(e)return r(e);var t=o(arguments,1);t.push(s),i.apply(this,t)}function s(e,t){return e?r(e):t?void n(a):r(null)}s(null,!0)}function gt(e,t,r){r=fe(r||T);var n=g(e);n((function e(i){if(i)return r(i);var a=o(arguments,1);if(t.apply(this,a))return n(e);r.apply(null,[null].concat(a))}))}function wt(e,t,r){gt(e,(function(){return!t.apply(this,arguments)}),r)}function _t(e,t,r){r=fe(r||T);var n=g(t),i=g(e);function o(e){if(e)return r(e);i(a)}function a(e,t){return e?r(e):t?void n(o):r(null)}i(a)}function Mt(e){return function(t,r,n){return e(t,n)}}function kt(e,t,r){me(e,Mt(g(t)),r)}function St(e,t,r,n){de(t)(e,Mt(g(r)),n)}var xt=he(St,1);function At(e){return y(e)?e:s((function(t,r){var n=!0;t.push((function(){var e=arguments;n?h((function(){r.apply(null,e)})):r.apply(null,e)})),e.apply(this,t),n=!1}))}function It(e){return!e}var Ot=ve(dt(It,It)),Pt=_e(dt(It,It)),Et=he(Pt,1);function Ct(e){return function(t){return null==t?void 0:t[e]}}function Bt(e,t,r,n){var i=new Array(t.length);e(t,(function(e,t,n){r(e,(function(e,r){i[t]=!!r,n(e)}))}),(function(e){if(e)return n(e);for(var r=[],o=0;o<t.length;o++)i[o]&&r.push(t[o]);n(null,r)}))}function jt(e,t,r,n){var i=[];e(t,(function(e,t,n){r(e,(function(r,o){r?n(r):(o&&i.push({index:t,value:e}),n())}))}),(function(e){e?n(e):n(null,Ee(i.sort((function(e,t){return e.index-t.index})),Ct("value")))}))}function Rt(e,t,r,n){(j(t)?Bt:jt)(e,t,g(r),n||T)}var Tt=ve(Rt),Lt=_e(Rt),Ft=he(Lt,1);function Nt(e,t){var r=fe(t||T),n=g(At(e));!function e(t){if(t)return r(t);n(e)}()}var Dt=function(e,t,r,n){n=n||T;var i=g(r);Me(e,t,(function(e,t){i(e,(function(r,n){return r?t(r):t(null,{key:n,val:e})}))}),(function(e,t){for(var r={},i=Object.prototype.hasOwnProperty,o=0;o<t.length;o++)if(t[o]){var a=t[o].key,s=t[o].val;i.call(r,a)?r[a].push(s):r[a]=[s]}return n(e,r)}))},qt=he(Dt,1/0),zt=he(Dt,1),Ht=mt("log");function Ut(e,t,r,n){n=L(n||T);var i={},o=g(r);le(e,t,(function(e,t,r){o(e,t,(function(e,n){if(e)return r(e);i[t]=n,r()}))}),(function(e){n(e,i)}))}var Wt=he(Ut,1/0),Vt=he(Ut,1);function Kt(e,t){return t in e}function Gt(e,t){var r=Object.create(null),n=Object.create(null);t=t||ft;var i=g(e),a=s((function(e,a){var s=t.apply(null,e);Kt(r,s)?h((function(){a.apply(null,r[s])})):Kt(n,s)?n[s].push(a):(n[s]=[a],i.apply(null,e.concat((function(){var e=o(arguments);r[s]=e;var t=n[s];delete n[s];for(var i=0,a=t.length;i<a;i++)t[i].apply(null,e)}))))}));return a.memo=r,a.unmemoized=e,a}var Jt=l(f?r.nextTick:u?e:d);function Xt(e,t,r){r=r||T;var n=j(t)?[]:{};e(t,(function(e,t,r){g(e)((function(e,i){arguments.length>2&&(i=o(arguments,1)),n[t]=i,r(e)}))}),(function(e){r(e,n)}))}function Yt(e,t){Xt(me,e,t)}function Zt(e,t,r){Xt(de(t),e,r)}var Qt=function(e,t){var r=g(e);return $e((function(e,t){r(e[0],t)}),t,1)},$t=function(e,t){var r=Qt(e,t);return r.push=function(e,t,n){if(null==n&&(n=T),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,W(e)||(e=[e]),0===e.length)return h((function(){r.drain()}));t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;o<a;o++){var s={data:e[o],priority:t,callback:n};i?r._tasks.insertBefore(i,s):r._tasks.push(s)}h(r.process)},delete r.unshift,r};function er(e,t){if(t=L(t||T),!W(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++)g(e[r])(t)}function tr(e,t,r,n){rt(o(e).reverse(),t,r,n)}function rr(e){var t=g(e);return s((function(e,r){return e.push((function(e,t){var n;e?r(null,{error:e}):(n=arguments.length<=2?t:o(arguments,1),r(null,{value:n}))})),t.apply(this,e)}))}function nr(e){var t;return W(e)?t=Ee(e,rr):(t={},Ae(e,(function(e,r){t[r]=rr.call(this,e)}))),t}function ir(e,t,r,n){Rt(e,t,(function(e,t){r(e,(function(e,r){t(e,!r)}))}),n)}var or=ve(ir),ar=_e(ir),sr=he(ar,1);function cr(e){return function(){return e}}function ur(e,t,r){var n=5,i=0,o={times:n,intervalFunc:cr(i)};function a(e,t){if("object"==typeof t)e.times=+t.times||n,e.intervalFunc="function"==typeof t.interval?t.interval:cr(+t.interval||i),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||n}}if(arguments.length<3&&"function"==typeof e?(r=t||T,t=e):(a(o,e),r=r||T),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var s=g(t),c=1;function u(){s((function(e){e&&c++<o.times&&("function"!=typeof o.errorFilter||o.errorFilter(e))?setTimeout(u,o.intervalFunc(c)):r.apply(null,arguments)}))}u()}var fr=function(e,t){t||(t=e,e=null);var r=g(t);return s((function(t,n){function i(e){r.apply(null,t.concat(e))}e?ur(e,i,n):ur(i,n)}))};function dr(e,t){Xt(tt,e,t)}var lr=ve(dt(Boolean,ft)),hr=_e(dt(Boolean,ft)),pr=he(hr,1);function br(e,t,r){var n=g(t);function i(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}ge(e,(function(e,t){n(e,(function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})}))}),(function(e,t){if(e)return r(e);r(null,Ee(t.sort(i),Ct("value")))}))}function mr(e,t,r){var n=g(e);return s((function(i,o){var a,s=!1;i.push((function(){s||(o.apply(null,arguments),clearTimeout(a))})),a=setTimeout((function(){var t=new Error('Callback function "'+(e.name||"anonymous")+'" timed out.');t.code="ETIMEDOUT",r&&(t.info=r),s=!0,o(t)}),t),n.apply(null,i)}))}var vr=Math.ceil,yr=Math.max;function gr(e,t,r,n){var i=g(r);Me(function(e,t,r,n){for(var i=-1,o=yr(vr((t-e)/1),0),a=Array(o);o--;)a[++i]=e,e+=1;return a}(0,e),t,i,n)}var wr=he(gr,1/0),_r=he(gr,1);function Mr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=W(e)?[]:{}),n=L(n||T);var i=g(r);me(e,(function(e,r,n){i(t,e,r,n)}),(function(e){n(e,t)}))}function kr(e,t){var r,n=null;t=t||T,xt(e,(function(e,t){g(e)((function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)}))}),(function(){t(n,r)}))}function Sr(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function xr(e,t,r){r=fe(r||T);var n=g(t);if(!e())return r(null);n((function t(i){if(i)return r(i);if(e())return n(t);var a=o(arguments,1);r.apply(null,[null].concat(a))}))}function Ar(e,t,r){xr((function(){return!e.apply(this,arguments)}),t,r)}var Ir=function(e,t){if(t=L(t||T),!W(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){var n=g(e[r++]);t.push(fe(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])};t.default={apply:a,applyEach:we,applyEachSeries:Se,asyncify:p,auto:Pe,autoInject:Ye,cargo:et,compose:it,concat:st,concatLimit:at,concatSeries:ct,constant:ut,detect:ht,detectLimit:pt,detectSeries:bt,dir:vt,doDuring:yt,doUntil:wt,doWhilst:gt,during:_t,each:kt,eachLimit:St,eachOf:me,eachOfLimit:le,eachOfSeries:tt,eachSeries:xt,ensureAsync:At,every:Ot,everyLimit:Pt,everySeries:Et,filter:Tt,filterLimit:Lt,filterSeries:Ft,forever:Nt,groupBy:qt,groupByLimit:Dt,groupBySeries:zt,log:Ht,map:ge,mapLimit:Me,mapSeries:ke,mapValues:Wt,mapValuesLimit:Ut,mapValuesSeries:Vt,memoize:Gt,nextTick:Jt,parallel:Yt,parallelLimit:Zt,priorityQueue:$t,queue:Qt,race:er,reduce:rt,reduceRight:tr,reflect:rr,reflectAll:nr,reject:or,rejectLimit:ar,rejectSeries:sr,retry:ur,retryable:fr,seq:nt,series:dr,setImmediate:h,some:lr,someLimit:hr,someSeries:pr,sortBy:br,timeout:mr,times:wr,timesLimit:gr,timesSeries:_r,transform:Mr,tryEach:kr,unmemoize:Sr,until:Ar,waterfall:Ir,whilst:xr,all:Ot,allLimit:Pt,allSeries:Et,any:lr,anyLimit:hr,anySeries:pr,find:ht,findLimit:pt,findSeries:bt,forEach:kt,forEachSeries:xt,forEachLimit:St,forEachOf:me,forEachOfSeries:tt,forEachOfLimit:le,inject:rt,foldl:rt,foldr:tr,select:Tt,selectLimit:Lt,selectSeries:Ft,wrapSync:p},t.apply=a,t.applyEach=we,t.applyEachSeries=Se,t.asyncify=p,t.auto=Pe,t.autoInject=Ye,t.cargo=et,t.compose=it,t.concat=st,t.concatLimit=at,t.concatSeries=ct,t.constant=ut,t.detect=ht,t.detectLimit=pt,t.detectSeries=bt,t.dir=vt,t.doDuring=yt,t.doUntil=wt,t.doWhilst=gt,t.during=_t,t.each=kt,t.eachLimit=St,t.eachOf=me,t.eachOfLimit=le,t.eachOfSeries=tt,t.eachSeries=xt,t.ensureAsync=At,t.every=Ot,t.everyLimit=Pt,t.everySeries=Et,t.filter=Tt,t.filterLimit=Lt,t.filterSeries=Ft,t.forever=Nt,t.groupBy=qt,t.groupByLimit=Dt,t.groupBySeries=zt,t.log=Ht,t.map=ge,t.mapLimit=Me,t.mapSeries=ke,t.mapValues=Wt,t.mapValuesLimit=Ut,t.mapValuesSeries=Vt,t.memoize=Gt,t.nextTick=Jt,t.parallel=Yt,t.parallelLimit=Zt,t.priorityQueue=$t,t.queue=Qt,t.race=er,t.reduce=rt,t.reduceRight=tr,t.reflect=rr,t.reflectAll=nr,t.reject=or,t.rejectLimit=ar,t.rejectSeries=sr,t.retry=ur,t.retryable=fr,t.seq=nt,t.series=dr,t.setImmediate=h,t.some=lr,t.someLimit=hr,t.someSeries=pr,t.sortBy=br,t.timeout=mr,t.times=wr,t.timesLimit=gr,t.timesSeries=_r,t.transform=Mr,t.tryEach=kr,t.unmemoize=Sr,t.until=Ar,t.waterfall=Ir,t.whilst=xr,t.all=Ot,t.allLimit=Pt,t.allSeries=Et,t.any=lr,t.anyLimit=hr,t.anySeries=pr,t.find=ht,t.findLimit=pt,t.findSeries=bt,t.forEach=kt,t.forEachSeries=xt,t.forEachLimit=St,t.forEachOf=me,t.forEachOfSeries=tt,t.forEachOfLimit=le,t.inject=rt,t.foldl=rt,t.foldr=tr,t.select=Tt,t.selectLimit=Lt,t.selectSeries=Ft,t.wrapSync=p,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r("URgk").setImmediate,r("8oxB"),r("yLpj"),r("YuTi")(e))},cv67:function(e,t,r){var n;e.exports=(n=r("Ib8C"),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],b=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],g=e[t+8],w=e[t+9],_=e[t+10],M=e[t+11],k=e[t+12],S=e[t+13],x=e[t+14],A=e[t+15],I=o[0],O=o[1],P=o[2],E=o[3];I=u(I,O,P,E,a,7,s[0]),E=u(E,I,O,P,c,12,s[1]),P=u(P,E,I,O,h,17,s[2]),O=u(O,P,E,I,p,22,s[3]),I=u(I,O,P,E,b,7,s[4]),E=u(E,I,O,P,m,12,s[5]),P=u(P,E,I,O,v,17,s[6]),O=u(O,P,E,I,y,22,s[7]),I=u(I,O,P,E,g,7,s[8]),E=u(E,I,O,P,w,12,s[9]),P=u(P,E,I,O,_,17,s[10]),O=u(O,P,E,I,M,22,s[11]),I=u(I,O,P,E,k,7,s[12]),E=u(E,I,O,P,S,12,s[13]),P=u(P,E,I,O,x,17,s[14]),I=f(I,O=u(O,P,E,I,A,22,s[15]),P,E,c,5,s[16]),E=f(E,I,O,P,v,9,s[17]),P=f(P,E,I,O,M,14,s[18]),O=f(O,P,E,I,a,20,s[19]),I=f(I,O,P,E,m,5,s[20]),E=f(E,I,O,P,_,9,s[21]),P=f(P,E,I,O,A,14,s[22]),O=f(O,P,E,I,b,20,s[23]),I=f(I,O,P,E,w,5,s[24]),E=f(E,I,O,P,x,9,s[25]),P=f(P,E,I,O,p,14,s[26]),O=f(O,P,E,I,g,20,s[27]),I=f(I,O,P,E,S,5,s[28]),E=f(E,I,O,P,h,9,s[29]),P=f(P,E,I,O,y,14,s[30]),I=d(I,O=f(O,P,E,I,k,20,s[31]),P,E,m,4,s[32]),E=d(E,I,O,P,g,11,s[33]),P=d(P,E,I,O,M,16,s[34]),O=d(O,P,E,I,x,23,s[35]),I=d(I,O,P,E,c,4,s[36]),E=d(E,I,O,P,b,11,s[37]),P=d(P,E,I,O,y,16,s[38]),O=d(O,P,E,I,_,23,s[39]),I=d(I,O,P,E,S,4,s[40]),E=d(E,I,O,P,a,11,s[41]),P=d(P,E,I,O,p,16,s[42]),O=d(O,P,E,I,v,23,s[43]),I=d(I,O,P,E,w,4,s[44]),E=d(E,I,O,P,k,11,s[45]),P=d(P,E,I,O,A,16,s[46]),I=l(I,O=d(O,P,E,I,h,23,s[47]),P,E,a,6,s[48]),E=l(E,I,O,P,y,10,s[49]),P=l(P,E,I,O,x,15,s[50]),O=l(O,P,E,I,m,21,s[51]),I=l(I,O,P,E,k,6,s[52]),E=l(E,I,O,P,p,10,s[53]),P=l(P,E,I,O,_,15,s[54]),O=l(O,P,E,I,c,21,s[55]),I=l(I,O,P,E,g,6,s[56]),E=l(E,I,O,P,A,10,s[57]),P=l(P,E,I,O,v,15,s[58]),O=l(O,P,E,I,S,21,s[59]),I=l(I,O,P,E,b,6,s[60]),E=l(E,I,O,P,M,10,s[61]),P=l(P,E,I,O,h,15,s[62]),O=l(O,P,E,I,w,21,s[63]),o[0]=o[0]+I|0,o[1]=o[1]+O|0,o[2]=o[2]+P|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)},czk8:function(e,t,r){"use strict";var n=r("OZ/i"),i=r("QSG8").assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},dv6X:function(e,t,r){var n=r("43KI").Duplex,i=r("q1Jy"),o=r("VmuJ"),a={},s=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var n,i=e.parent,o=e.name;return _classCallCheck3(this,r),(n=t.call(this,{objectMode:!0}))._parent=i,n._name=o,n}return _createClass(r,[{key:"_read",value:function(){}},{key:"_write",value:function(e,t,r){this._parent.push({name:this._name,data:e}),r()}}]),r}(n);e.exports=function(e){_inherits(r,e);var t=_createSuper(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck3(this,r),(e=t.call(this,Object.assign({},n,{objectMode:!0})))._substreams={},e}return _createClass(r,[{key:"createStream",value:function(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');var t,r,n=new s({parent:this,name:e});return this._substreams[e]=n,t=this,r=o((function(e){n.destroy(e)})),i(t,{readable:!1},r),i(t,{writable:!1},r),n}},{key:"ignoreStream",value:function(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');this._substreams[e]=a}},{key:"_read",value:function(){}},{key:"_write",value:function(e,t,r){var n=e.name,i=e.data;if(!n)return console.warn('ObjectMultiplex - malformed chunk without name "'.concat(e,'"')),r();var o=this._substreams[n];if(!o)return console.warn('ObjectMultiplex - orphaned data for stream "'.concat(n,'"')),r();o!==a&&o.push(i),r()}}]),r}(n)},e7zE:function(e,t,r){var n,i,o,a,s,c,u,f;e.exports=(f=r("Ib8C"),r("3y9D"),r("WYAk"),a=(i=(n=f).lib).WordArray,c=(s=n.algo).HMAC,u=s.PBKDF2=(o=i.Base).extend({cfg:o.extend({keySize:4,hasher:s.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=c.create(r.hasher,e),i=a.create(),o=a.create([1]),s=i.words,u=o.words,f=r.keySize,d=r.iterations;s.length<f;){var l=n.update(t).finalize(o);n.reset();for(var h=l.words,p=h.length,b=l,m=1;m<d;m++){b=n.finalize(b),n.reset();for(var v=b.words,y=0;y<p;y++)h[y]^=v[y]}i.concat(l),u[0]++}return i.sigBytes=4*f,i}}),n.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)},f.PBKDF2)},eDh5:function(e,t,r){var n=r("5iuF");e.exports=function(){return function(e,t,r,i){var o=e.id,a=n();e.id=a,t.id=a,r((function(r){e.id=o,t.id=o,r()}))}}},f6la:function(e,t,r){"use strict";var n=r("D6mP"),i=r("OyGj"),o=r("K0/n"),a=r("bKmz"),s=r("RIjb"),c=r("r7D0"),u=r("XVcj"),f=r("pliG"),d=r("KmuT"),l=r("qhQv"),h=r("neAl"),p=r("y7Fo"),b=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},m=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},v=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},y=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},g=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};function w(e){this._requestManager=e._requestManager;var t=this;_().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),M().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),this.iban=h,this.sendIBANTransaction=p.bind(null,this)}Object.defineProperty(w.prototype,"defaultBlock",{get:function(){return s.defaultBlock},set:function(e){return s.defaultBlock=e,e}}),Object.defineProperty(w.prototype,"defaultAccount",{get:function(){return s.defaultAccount},set:function(e){return s.defaultAccount=e,e}});var _=function(){var e=new o({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter],outputFormatter:n.outputBigNumberFormatter}),t=new o({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,i.toHex,n.inputDefaultBlockNumberFormatter]}),r=new o({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter]}),a=new o({name:"getBlock",call:b,params:2,inputFormatter:[n.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:n.outputBlockFormatter}),s=new o({name:"getUncle",call:v,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputBlockFormatter}),c=new o({name:"getCompilers",call:"eth_getCompilers",params:0}),u=new o({name:"getBlockTransactionCount",call:y,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),f=new o({name:"getBlockUncleCount",call:g,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),d=new o({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:n.outputTransactionFormatter}),l=new o({name:"getTransactionFromBlock",call:m,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputTransactionFormatter}),h=new o({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:n.outputTransactionReceiptFormatter}),p=new o({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,n.inputDefaultBlockNumberFormatter],outputFormatter:i.toDecimal}),w=new o({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),_=new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),M=new o({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),k=new o({name:"sign",call:"eth_sign",params:2,inputFormatter:[n.inputAddressFormatter,null]});return[e,t,r,a,s,c,u,f,d,l,h,p,new o({name:"call",call:"eth_call",params:2,inputFormatter:[n.inputCallFormatter,n.inputDefaultBlockNumberFormatter]}),new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[n.inputCallFormatter],outputFormatter:i.toDecimal}),w,M,_,k,new o({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new o({name:"compile.lll",call:"eth_compileLLL",params:1}),new o({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new o({name:"submitWork",call:"eth_submitWork",params:3}),new o({name:"getWork",call:"eth_getWork",params:0})]},M=function(){return[new a({name:"coinbase",getter:"eth_coinbase"}),new a({name:"mining",getter:"eth_mining"}),new a({name:"hashrate",getter:"eth_hashrate",outputFormatter:i.toDecimal}),new a({name:"syncing",getter:"eth_syncing",outputFormatter:n.outputSyncingFormatter}),new a({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:n.outputBigNumberFormatter}),new a({name:"accounts",getter:"eth_accounts"}),new a({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:i.toDecimal}),new a({name:"protocolVersion",getter:"eth_protocolVersion"})]};w.prototype.contract=function(e){return new c(this,e)},w.prototype.filter=function(e,t,r){return new f(e,"eth",this._requestManager,u.eth(),n.outputLogFormatter,t,r)},w.prototype.namereg=function(){return this.contract(l.global.abi).at(l.global.address)},w.prototype.icapNamereg=function(){return this.contract(l.icap.abi).at(l.icap.address)},w.prototype.isSyncing=function(e){return new d(this._requestManager,e)},e.exports=w},"gC7+":function(e,t,r){"use strict";var n=r("QSG8"),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},"gb/T":function(e,t,r){var n,i;e.exports=(i=r("Ib8C"),r("OLod"),i.mode.ECB=((n=i.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),n.Decryptor=n.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),n),i.mode.ECB)},ggS5:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={errors:{invalidParams:function(){return"MetaMask: Invalid request parameters. Please use ethereum.send(method: string, params: Array<any>). For more details, see: https://eips.ethereum.org/EIPS/eip-1193"},sendSiteMetadata:function(){return"MetaMask: Failed to send site metadata. This is an internal error, please report this bug."},unsupportedSync:function(e){return"MetaMask: The MetaMask Web3 object does not support synchronous methods like ".concat(e," without a callback parameter.")}},warnings:{sendSyncDeprecation:'MetaMask: "ethereum.send(...)" will return result-resolving Promises for all methods starting in Q1 2020. For more information, see: https://medium.com/metamask/deprecating-synchronous-provider-methods-82f0edbc874b',enableDeprecation:'MetaMask: \'"ethereum.enable()" is deprecated and may be removed in the future. Please use "ethereum.send(\'eth_requestAccounts\')" instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1102',isConnectedDeprecation:'MetaMask: "ethereum.isConnected()" is deprecated and may be removed in the future. Please listen for the relevant events instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1193',sendAsyncDeprecation:'MetaMask: "ethereum.sendAsync(...)" is deprecated and may be removed in the future. Please use "ethereum.send(method: string, params: Array<any>)" instead. For more information, see: https://eips.ethereum.org/EIPS/eip-1193',experimentalMethods:'MetaMask: "ethereum._metamask" exposes non-standard, experimental methods. They may be removed or changed without warning.'}}},gj5E:function(e,t,r){"use strict";var n=r("K0/n"),i=r("bKmz"),o=r("D6mP");e.exports=function(e){this._requestManager=e._requestManager;var t,r,a,s,c=this;(t=new n({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),r=new n({name:"importRawKey",call:"personal_importRawKey",params:2}),a=new n({name:"sign",call:"personal_sign",params:3,inputFormatter:[null,o.inputAddressFormatter,null]}),s=new n({name:"ecRecover",call:"personal_ecRecover",params:2}),[t,r,new n({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[o.inputAddressFormatter,null,null]}),s,a,new n({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[o.inputTransactionFormatter,null]}),new n({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[o.inputAddressFormatter]})]).forEach((function(e){e.attachToObject(c),e.setRequestManager(c._requestManager)})),[new i({name:"listAccounts",getter:"personal_listAccounts"})].forEach((function(e){e.attachToObject(c),e.setRequestManager(c._requestManager)}))}},hkhR:function(e,t,r){var n=r("OyGj"),i=function(e,t){this.value=e||"",this.offset=t};i.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},i.prototype.withOffset=function(e){return new i(this.value,e)},i.prototype.combine=function(e){return new i(this.value+e.value)},i.prototype.isDynamic=function(){return void 0!==this.offset},i.prototype.offsetAsBytes=function(){return this.isDynamic()?n.padLeft(n.toTwosComplement(this.offset).toString(16),64):""},i.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},i.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},i.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},i.encodeList=function(e){var t=32*e.length,r=e.map((function(e){if(!e.isDynamic())return e;var r=t;return t+=e.dynamicPartLength(),e.withOffset(r)}));return r.reduce((function(e,t){return e+t.dynamicPart()}),r.reduce((function(e,t){return e+t.staticPart()}),""))},e.exports=i},jO9C:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.pad.Iso97971={pad:function(e,t){e.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(e,t)},unpad:function(e){n.pad.ZeroPadding.unpad(e),e.sigBytes--}},n.pad.Iso97971)},ktN0:function(e,t,r){var n=r("3QEE"),i=r("OyGj"),o=r("RIjb"),a=r("hkhR"),s=function(e){n.config(o.ETH_BIGNUMBER_ROUNDING_MODE);var t=i.padLeft(i.toTwosComplement(e).toString(16),64);return new a(t)},c=function(e){var t=e.staticPart()||"0";return function(e){return"1"===new n(e.substr(0,1),16).toString(2).substr(0,1)}(t)?new n(t,16).minus(new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):new n(t,16)},u=function(e){var t=e.staticPart()||"0";return new n(t,16)};e.exports={formatInputInt:s,formatInputBytes:function(e){var t=i.toHex(e).substr(2),r=Math.floor((t.length+63)/64);return t=i.padRight(t,64*r),new a(t)},formatInputDynamicBytes:function(e){var t=i.toHex(e).substr(2),r=t.length/2,n=Math.floor((t.length+63)/64);return t=i.padRight(t,64*n),new a(s(r).value+t)},formatInputString:function(e){var t=i.fromUtf8(e).substr(2),r=t.length/2,n=Math.floor((t.length+63)/64);return t=i.padRight(t,64*n),new a(s(r).value+t)},formatInputBool:function(e){return new a("000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0"))},formatInputReal:function(e){return s(new n(e).times(new n(2).pow(128)))},formatOutputInt:c,formatOutputUInt:u,formatOutputReal:function(e){return c(e).dividedBy(new n(2).pow(128))},formatOutputUReal:function(e){return u(e).dividedBy(new n(2).pow(128))},formatOutputBool:function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e.staticPart()},formatOutputBytes:function(e,t){var r=t.match(/^bytes([0-9]*)/),n=parseInt(r[1]);return"0x"+e.staticPart().slice(0,2*n)},formatOutputDynamicBytes:function(e){var t=2*new n(e.dynamicPart().slice(0,64),16).toNumber();return"0x"+e.dynamicPart().substr(64,t)},formatOutputString:function(e){var t=2*new n(e.dynamicPart().slice(0,64),16).toNumber();return i.toUtf8(e.dynamicPart().substr(64,t))},formatOutputAddress:function(e){var t=e.staticPart();return"0x"+t.slice(t.length-40,t.length)}}},lPiR:function(e,t,r){var n;e.exports=(n=r("Ib8C"),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),c[i]=r(e.pow(n,1/3)),i++),n++}();var u=[],f=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],f=r[5],d=r[6],l=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],b=u[h-2];u[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+u[h-7]+((b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10)+u[h-16]}var m=n&i^n&o^i&o,v=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&f^~s&d)+c[h]+u[h];l=d,d=f,f=s,s=a+v|0,a=o,o=i,i=n,n=v+(((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+f|0,r[6]=r[6]+d|0,r[7]=r[7]+l|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(f),t.HmacSHA256=o._createHmacHelper(f)}(Math),n.SHA256)},lwsE:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},lyUO:function(e,t,r){var n=r("byXq");e.exports=n},mDbE:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputBool,this._outputFormatter=n.formatOutputBool};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bool(\[([0-9]*)\])*$/)},e.exports=o},nHqQ:function(e,t,r){"use strict";var n,i=t,o=r("fZJM"),a=r("xTFU"),s=r("QSG8").assert;function c(e){this.curve="short"===e.type?new a.short(e):"edwards"===e.type?new a.edwards(e):new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r("BlRs")}catch(f){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},nPoS:function(e,t,r){"use strict";var n=r("QSG8"),i=r("OZ/i"),o=r("P7XM"),a=r("cSfw"),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:s(0===this.g.mul(r=o[1]).x.cmp(this.g.x.redMul(t)))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,f,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new i(1),b=new i(0),m=new i(0),v=new i(1),y=0;0!==l.cmpn(0);){var g=h.div(l);u=h.sub(g.mul(l)),f=m.sub(g.mul(p));var w=v.sub(g.mul(b));if(!n&&u.cmp(d)<0)t=c.neg(),r=p,n=u.neg(),o=f;else if(n&&2==++y)break;c=u,h=l,l=u,m=p,p=f,v=b,b=w}a=u.neg(),s=f;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return u},o(u,a.BasePoint),c.prototype.point=function(e,t,r){return new u(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(f,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=n.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),h=c.redMul(d.redISub(l)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(d,l,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(r=0;r<e;r++){var f=o.redSqr(),d=u.redSqr(),l=d.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(c)),p=o.redMul(d),b=h.redSqr().redISub(p.redAdd(p)),m=p.redISub(b),v=h.redMul(m);v=v.redIAdd(v).redISub(l);var y=u.redMul(s);r+1<e&&(c=c.redMul(l)),o=b,s=y,u=v}return this.curve.jpoint(o,u.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),d=this.y.redSqr(),l=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(f).redISub(l);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),m=l.redIAdd(l);m=(m=m.redIAdd(m)).redIAdd(m),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),d=this.y.redSqr(),l=this.x.redMul(d),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(f);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=h.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),f=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(f),l=a.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=s.redMul(d).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),f=t.redMul(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.x.redMul(s).redISub(f);d=(d=d.redIAdd(d)).redIAdd(d);var l=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,l,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},nYwK:function(e,t,r){(function(t){var n=r("P5y9");"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=r("zVEQ").XMLHttpRequest;var i=r("hgLn").XMLHttpRequest,o=function(e,t,r,n,i){this.host=e||"http://localhost:8545",this.timeout=t||0,this.user=r,this.password=n,this.headers=i};o.prototype.prepareRequest=function(e){var r;if(e?(r=new i).timeout=this.timeout:r=new XMLHttpRequest,r.withCredentials=!0,r.open("POST",this.host,e),this.user&&this.password){var n="Basic "+new t(this.user+":"+this.password).toString("base64");r.setRequestHeader("Authorization",n)}return r.setRequestHeader("Content-Type","application/json"),this.headers&&this.headers.forEach((function(e){r.setRequestHeader(e.name,e.value)})),r},o.prototype.send=function(e){var t=this.prepareRequest(!1);try{t.send(JSON.stringify(e))}catch(i){throw n.InvalidConnection(this.host)}var r=t.responseText;try{r=JSON.parse(r)}catch(o){throw n.InvalidResponse(t.responseText)}return r},o.prototype.sendAsync=function(e,t){var r=this.prepareRequest(!0);r.onreadystatechange=function(){if(4===r.readyState&&1!==r.timeout){var e=r.responseText,i=null;try{e=JSON.parse(e)}catch(o){i=n.InvalidResponse(r.responseText)}t(i,e)}},r.ontimeout=function(){t(n.ConnectionTimeout(this.timeout))};try{r.send(JSON.stringify(e))}catch(i){t(n.InvalidConnection(this.host))}},o.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(e){return!1}},e.exports=o}).call(this,r("tjlA").Buffer)},ndEa:function(e,t,r){var n=r("ZP+F"),i=r("OyGj"),o=r("P5y9"),a=r("D6mP"),s=r("3V0z"),c=function(e,t,r){this._eth=e,this._inputTypes=t.inputs.map((function(e){return e.type})),this._outputTypes=t.outputs.map((function(e){return e.type})),this._constant="view"===t.stateMutability||"pure"===t.stateMutability||t.constant,this._payable="payable"===t.stateMutability||t.payable,this._name=i.transformToFullName(t),this._address=r};c.prototype.extractCallback=function(e){if(i.isFunction(e[e.length-1]))return e.pop()},c.prototype.extractDefaultBlock=function(e){if(e.length>this._inputTypes.length&&!i.isObject(e[e.length-1]))return a.inputDefaultBlockNumberFormatter(e.pop())},c.prototype.validateArgs=function(e){if(e.filter((function(e){return!(!0===i.isObject(e)&&!1===i.isArray(e)&&!1===i.isBigNumber(e))})).length!==this._inputTypes.length)throw o.InvalidNumberOfSolidityArgs()},c.prototype.toPayload=function(e){var t={};return e.length>this._inputTypes.length&&i.isObject(e[e.length-1])&&(t=e[e.length-1]),this.validateArgs(e),t.to=this._address,t.data="0x"+this.signature()+n.encodeParams(this._inputTypes,e),t},c.prototype.signature=function(){return s(this._name).slice(0,8)},c.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var t=n.decodeParams(this._outputTypes,e);return 1===t.length?t[0]:t}},c.prototype.call=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.extractDefaultBlock(e),n=this.toPayload(e);if(!t){var i=this._eth.call(n,r);return this.unpackOutput(i)}var o=this;this._eth.call(n,r,(function(e,r){if(e)return t(e,null);var n=null;try{n=o.unpackOutput(r)}catch(i){e=i}t(e,n)}))},c.prototype.sendTransaction=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.toPayload(e);if(r.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!t)return this._eth.sendTransaction(r);this._eth.sendTransaction(r,t)},c.prototype.estimateGas=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e);if(!t)return this._eth.estimateGas(r);this._eth.estimateGas(r,t)},c.prototype.getData=function(){var e=Array.prototype.slice.call(arguments),t=this.toPayload(e);return t.data},c.prototype.displayName=function(){return i.extractDisplayName(this._name)},c.prototype.typeName=function(){return i.extractTypeName(this._name)},c.prototype.request=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e),n=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:t,params:[r],format:n}},c.prototype.execute=function(){var e=!this._constant;return e?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},c.prototype.attachToContract=function(e){var t=this.execute.bind(this);t.request=this.request.bind(this),t.call=this.call.bind(this),t.sendTransaction=this.sendTransaction.bind(this),t.estimateGas=this.estimateGas.bind(this),t.getData=this.getData.bind(this);var r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=t},e.exports=c},neAl:function(e,t,r){var n=r("3QEE"),i=function(e,t){for(var r=e;r.length<2*t;)r="0"+r;return r},o=function(e){var t="A".charCodeAt(0),r="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).substr(4)+e.substr(0,4)).split("").map((function(e){var n=e.charCodeAt(0);return n>=t&&n<=r?n-t+10:e})).join("")},a=function(e){for(var t,r=e;r.length>2;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},s=function(e){this._iban=e};s.fromAddress=function(e){var t=new n(e,16).toString(36),r=i(t,15);return s.fromBban(r.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-a(o("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.address=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new n(e,36);return i(t.toString(16),20)}return""},s.prototype.toString=function(){return this._iban},e.exports=s},nlKk:function(e,t,r){var n=r("43KI").Duplex,i=r("MCLT").inherits;function o(e){n.call(this,{objectMode:!0}),this._name=e.name,this._target=e.target,this._targetWindow=e.targetWindow||window,this._origin=e.targetWindow?"*":location.origin,this._init=!1,this._haveSyn=!1,window.addEventListener("message",this._onMessage.bind(this),!1),this._write("SYN",null,a),this.cork()}function a(){}e.exports=o,i(o,n),o.prototype._onMessage=function(e){var t=e.data;if(("*"===this._origin||e.origin===this._origin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data)if(this._init)try{this.push(t.data)}catch(r){this.emit("error",r)}else"SYN"===t.data?(this._haveSyn=!0,this._write("ACK",null,a)):"ACK"===t.data&&(this._init=!0,this._haveSyn||this._write("ACK",null,a),this.uncork())},o.prototype._read=a,o.prototype._write=function(e,t,r){this._targetWindow.postMessage({target:this._target,data:e},this._origin),r()}},nyHi:function(e,t,r){var n=r("7J7F"),i=r("OyGj"),o=r("RIjb"),a=r("P5y9"),s=function(e){this.provider=e,this.polls={},this.timeout=null};s.prototype.send=function(e){if(!this.provider)return console.error(a.InvalidProvider()),null;var t=n.toPayload(e.method,e.params),r=this.provider.send(t);if(!n.isValidResponse(r))throw a.InvalidResponse(r);return r.result},s.prototype.sendAsync=function(e,t){if(!this.provider)return t(a.InvalidProvider());var r=n.toPayload(e.method,e.params);this.provider.sendAsync(r,(function(e,r){return e?t(e):n.isValidResponse(r)?void t(null,r.result):t(a.InvalidResponse(r))}))},s.prototype.sendBatch=function(e,t){if(!this.provider)return t(a.InvalidProvider());var r=n.toBatchPayload(e);this.provider.sendAsync(r,(function(e,r){return e?t(e):i.isArray(r)?void t(e,r):t(a.InvalidResponse(r))}))},s.prototype.setProvider=function(e){this.provider=e},s.prototype.startPolling=function(e,t,r,n){this.polls[t]={data:e,id:t,callback:r,uninstall:n},this.timeout||this.poll()},s.prototype.stopPolling=function(e){delete this.polls[e],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.reset=function(e){for(var t in this.polls)e&&-1!==t.indexOf("syncPoll_")||(this.polls[t].uninstall(),delete this.polls[t]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),o.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length)if(this.provider){var e=[],t=[];for(var r in this.polls)e.push(this.polls[r].data),t.push(r);if(0!==e.length){var s=n.toBatchPayload(e),c={};s.forEach((function(e,r){c[e.id]=t[r]}));var u=this;this.provider.sendAsync(s,(function(e,t){if(!e){if(!i.isArray(t))throw a.InvalidResponse(t);t.map((function(e){var t=c[e.id];return!!u.polls[t]&&(e.callback=u.polls[t].callback,e)})).filter((function(e){return!!e})).filter((function(e){var t=n.isValidResponse(e);return t||e.callback(a.InvalidResponse(e)),t})).forEach((function(e){e.callback(null,e.result)}))}}))}}else console.error(a.InvalidProvider())},e.exports=s},oRuE:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.pad.Iso10126={pad:function(e,t){var r=4*t,i=r-e.sigBytes%r;e.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.pad.Iso10126)},pA7S:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"),function(){var e=n,t=e.lib,r=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],f=c[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+f)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+f)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],l.call(this,4,252645135),l.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),l.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^i[c])&f[c])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,l.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),l.call(this,16,65535),l.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function l(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}e.DES=i._createHelper(d);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=d.createEncryptor(r.create(e.slice(0,2))),this._des2=d.createEncryptor(r.create(e.slice(2,4))),this._des3=d.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),n.TripleDES)},pQm2:function(e,t,r){var n=r("D6mP"),i=r("OyGj"),o=r("K0/n"),a=r("bKmz");e.exports=function(e){var t=function(t){var r;t.property?(e[t.property]||(e[t.property]={}),r=e[t.property]):r=e,t.methods&&t.methods.forEach((function(t){t.attachToObject(r),t.setRequestManager(e._requestManager)})),t.properties&&t.properties.forEach((function(t){t.attachToObject(r),t.setRequestManager(e._requestManager)}))};return t.formatters=n,t.utils=i,t.Method=o,t.Property=a,t}},pc79:function(e){e.exports=JSON.parse('{"abi":[{"constant":true,"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"getEpochInfo","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"k","type":"uint256"},{"internalType":"uint256","name":"t","type":"uint256"},{"internalType":"address[]","name":"nodeList","type":"address[]"},{"internalType":"uint256","name":"prevEpoch","type":"uint256"},{"internalType":"uint256","name":"nextEpoch","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"getNodeDetails","outputs":[{"internalType":"string","name":"declaredIp","type":"string"},{"internalType":"uint256","name":"position","type":"uint256"},{"internalType":"uint256","name":"pubKx","type":"uint256"},{"internalType":"uint256","name":"pubKy","type":"uint256"},{"internalType":"string","name":"tmP2PListenAddress","type":"string"},{"internalType":"string","name":"p2pListenAddress","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]}')},pliG:function(e,t,r){var n=r("D6mP"),i=r("OyGj"),o=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)},a=function(e,t){i.isString(e.options)||e.get((function(e,r){e&&t(e),i.isArray(r)&&r.forEach((function(e){t(null,e)}))}))},s=function(e){e.requestManager.startPolling({method:e.implementation.poll.call,params:[e.filterId]},e.filterId,(function(t,r){if(t)return e.callbacks.forEach((function(e){e(t)}));i.isArray(r)&&r.forEach((function(t){t=e.formatter?e.formatter(t):t,e.callbacks.forEach((function(e){e(null,t)}))}))}),e.stopWatching.bind(e))},c=function(e,t,r,c,u,f,d){var l=this,h={};return c.forEach((function(e){e.setRequestManager(r),e.attachToObject(h)})),this.requestManager=r,this.options=function(e,t){if(i.isString(e))return e;switch(e=e||{},t){case"eth":return e.topics=e.topics||[],e.topics=e.topics.map((function(e){return i.isArray(e)?e.map(o):o(e)})),{topics:e.topics,from:e.from,to:e.to,address:e.address,fromBlock:n.inputBlockNumberFormatter(e.fromBlock),toBlock:n.inputBlockNumberFormatter(e.toBlock)};case"shh":return e}}(e,t),this.implementation=h,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=u,this.implementation.newFilter(this.options,(function(e,t){if(e)l.callbacks.forEach((function(t){t(e)})),"function"==typeof d&&d(e);else if(l.filterId=t,l.getLogsCallbacks.forEach((function(e){l.get(e)})),l.getLogsCallbacks=[],l.callbacks.forEach((function(e){a(l,e)})),l.callbacks.length>0&&s(l),"function"==typeof f)return l.watch(f)})),this};c.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(a(this,e),s(this)),this},c.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},c.prototype.get=function(e){var t=this;if(!i.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map((function(e){return t.formatter?t.formatter(e):e}))}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,(function(r,n){r?e(r):e(null,n.map((function(e){return t.formatter?t.formatter(e):e})))})),this},e.exports=c},q1Jy:function(e,t,r){(function(t){var n=r("VmuJ"),i=function(){};e.exports=function e(r,o,a){if("function"==typeof o)return e(r,null,o);o||(o={}),a=n(a||i);var s=r._writableState,c=r._readableState,u=o.readable||!1!==o.readable&&r.readable,f=o.writable||!1!==o.writable&&r.writable,d=!1,l=function(){r.writable||h()},h=function(){f=!1,u||a.call(r)},p=function(){u=!1,f||a.call(r)},b=function(e){a.call(r,e?new Error("exited with error code: "+e):null)},m=function(e){a.call(r,e)},v=function(){t.nextTick(y)},y=function(){if(!d)return(!u||c&&c.ended&&!c.destroyed)&&(!f||s&&s.ended&&!s.destroyed)?void 0:a.call(r,new Error("premature close"))},g=function(){r.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(r)?(r.on("complete",h),r.on("abort",v),r.req?g():r.on("request",g)):f&&!s&&(r.on("end",l),r.on("close",l)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(r)&&r.on("exit",b),r.on("end",p),r.on("finish",h),!1!==o.error&&r.on("error",m),r.on("close",v),function(){d=!0,r.removeListener("complete",h),r.removeListener("abort",v),r.removeListener("request",g),r.req&&r.req.removeListener("finish",h),r.removeListener("end",l),r.removeListener("close",l),r.removeListener("finish",h),r.removeListener("exit",b),r.removeListener("end",p),r.removeListener("error",m),r.removeListener("close",v)}}}).call(this,r("8oxB"))},q1ed:function(e,t){e.exports=function(e,t){e||(e=30),t||(t="aA0");var r="";t.split("").forEach((function(e){isNaN(parseInt(e))?/[a-z]/.test(e)?r+="abcdefghijklmnopqrstuvwxyz":/[A-Z]/.test(e)?r+="ABCDEFGHIJKLMNOPQRSTUVWXYZ":r+="~!@#$%^&()_+-={}[];',":r+="0123456789"}));for(var n="",i=0;i<e;i++)n+=r.charAt(Math.floor(Math.random()*r.length));return n}},qBft:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.pad.Ansix923)},qM6L:function(e,t,r){var n;e.exports=(n=r("Ib8C"),function(){var e=n.lib.WordArray,t=n.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2)n.push(String.fromCharCode(t[i>>>2]>>>16-i%4*8&65535));return n.join("")},parse:function(t){for(var r=t.length,n=[],i=0;i<r;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(n,2*r)}},t.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var a=r(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),n.enc.Utf16)},qhQv:function(e,t,r){var n=r("DNE7"),i=r("JVQM");e.exports={global:{abi:n,address:"0xc6d9d2cd449a754c494264e1809c50e34d64562b"},icap:{abi:i,address:"0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00"}}},qu8F:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.mode.CTRGladman=function(){var e=n.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var r=e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[r+c]^=s[c]}});return e.Decryptor=r,e}(),n.mode.CTRGladman)},r7D0:function(e,t,r){var n=r("OyGj"),i=r("ZP+F"),o=r("EJoY"),a=r("ndEa"),s=r("xbdc"),c=function(e,t){return e.filter((function(e){return"constructor"===e.type&&e.inputs.length===t.length})).map((function(e){return e.inputs.map((function(e){return e.type}))})).map((function(e){return i.encodeParams(e,t)}))[0]||""},u=function(e){e.abi.filter((function(e){return"function"===e.type})).map((function(t){return new a(e._eth,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},f=function(e){var t=e.abi.filter((function(e){return"event"===e.type}));new s(e._eth._requestManager,t,e.address).attachToContract(e),t.map((function(t){return new o(e._eth._requestManager,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},d=function(e,t){var r=0,n=!1,i=e._eth.filter("latest",(function(o){if(!o&&!n)if(++r>50){if(i.stopWatching((function(){})),n=!0,!t)throw new Error("Contract transaction couldn't be found after 50 blocks");t(new Error("Contract transaction couldn't be found after 50 blocks"))}else e._eth.getTransactionReceipt(e.transactionHash,(function(r,o){o&&o.blockHash&&!n&&e._eth.getCode(o.contractAddress,(function(r,a){if(!n&&a)if(i.stopWatching((function(){})),n=!0,a.length>3)e.address=o.contractAddress,u(e),f(e),t&&t(null,e);else{if(!t)throw new Error("The contract code couldn't be stored, please check your gas amount.");t(new Error("The contract code couldn't be stored, please check your gas amount."))}}))}))}))},l=function(e,t){this.eth=e,this.abi=t,this.new=function(){var e,r=new h(this.eth,this.abi),i={},o=Array.prototype.slice.call(arguments);n.isFunction(o[o.length-1])&&(e=o.pop());var a=o[o.length-1];if(n.isObject(a)&&!n.isArray(a)&&(i=o.pop()),i.value>0){var s=t.filter((function(e){return"constructor"===e.type&&e.inputs.length===o.length}))[0]||{};if(!s.payable)throw new Error("Cannot send value to non-payable constructor")}var u=c(this.abi,o);if(i.data+=u,e)this.eth.sendTransaction(i,(function(t,n){t?e(t):(r.transactionHash=n,e(null,r),d(r,e))}));else{var f=this.eth.sendTransaction(i);r.transactionHash=f,d(r)}return r},this.new.getData=this.getData.bind(this)};l.prototype.at=function(e,t){var r=new h(this.eth,this.abi,e);return u(r),f(r),t&&t(null,r),r},l.prototype.getData=function(){var e={},t=Array.prototype.slice.call(arguments),r=t[t.length-1];n.isObject(r)&&!n.isArray(r)&&(e=t.pop());var i=c(this.abi,t);return e.data+=i,e.data};var h=function(e,t,r){this._eth=e,this.transactionHash=null,this.address=r,this.abi=t};e.exports=l},r8we:function(e,t,r){var n=r("4RI0");e.exports=n},"rE/g":function(e){e.exports=JSON.parse('{"_from":"@toruslabs/torus-embed@^1.1.1","_id":"@toruslabs/torus-embed@1.2.1","_inBundle":false,"_integrity":"sha512-KwIYFkSSo8m0sQtjYZ/qalWqhDLifeztklee9/ieoRBtm8utUWKjNGxrLbzqbvubTM4KWUID9nTHDL2l8Z3tiw==","_location":"/@toruslabs/torus-embed","_phantomChildren":{"crypto-js":"3.3.0","inherits":"2.0.4","string_decoder":"1.1.1","util-deprecate":"1.0.2","xhr2-cookies":"1.1.0","xmlhttprequest":"1.8.0"},"_requested":{"type":"range","registry":true,"raw":"@toruslabs/torus-embed@^1.1.1","name":"@toruslabs/torus-embed","escapedName":"@toruslabs%2ftorus-embed","scope":"@toruslabs","rawSpec":"^1.1.1","saveSpec":null,"fetchSpec":"^1.1.1"},"_requiredBy":["/bnc-onboard"],"_resolved":"https://registry.npmjs.org/@toruslabs/torus-embed/-/torus-embed-1.2.1.tgz","_shasum":"2083ec8a73527d793826b32b35da05346f87be6a","_spec":"@toruslabs/torus-embed@^1.1.1","_where":"/home/zefram/projects/ng88mph-frontend/node_modules/bnc-onboard","author":{"name":"Torus Labs"},"browserslist":["> 1%","last 2 versions","not ie <= 8"],"bugs":{"url":"https://github.com/torusresearch/torus-embed/issues"},"bundleDependencies":false,"dependencies":{"@chaitanyapotti/random-id":"^1.0.3","@toruslabs/fetch-node-details":"^2.0.2","@toruslabs/torus.js":"^1.0.7","eth-json-rpc-errors":"^2.0.2","fast-deep-equal":"^3.1.1","json-rpc-engine":"^5.1.8","json-rpc-middleware-stream":"^2.1.1","loglevel":"^1.6.7","obj-multiplex":"^1.0.0","obs-store":"^4.0.3","post-message-stream":"^3.0.0","pump":"^3.0.0","readable-stream":"^3.6.0","safe-event-emitter":"^1.0.1","sri-toolbox":"^0.2.0","through2":"^3.0.1","web3":"^0.20.7"},"deprecated":false,"description":"Embed script for Torus","devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.8.7","@babel/plugin-proposal-class-properties":"^7.8.3","@babel/plugin-proposal-object-rest-spread":"^7.8.3","@babel/plugin-transform-runtime":"^7.8.3","@babel/preset-env":"^7.8.7","assert":"^2.0.0","babel-eslint":"^10.1.0","browserify":"^16.5.0","cross-env":"^7.0.2","discify":"^1.6.3","envify":"^4.1.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.10.0","eslint-config-standard":"^14.1.0","eslint-plugin-babel":"^5.3.0","eslint-plugin-flowtype":"^4.6.0","eslint-plugin-import":"^2.20.1","eslint-plugin-mocha":"^6.3.0","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.2","eslint-plugin-promise":"^4.2.1","eslint-plugin-simple-import-sort":"^5.0.2","eslint-plugin-standard":"^4.0.1","express":"^4.17.1","husky":"^4.2.3","lint-staged":"^10.0.8","mocha":"^7.1.0","mocha-eslint":"^6.0.0","prettier":"^1.19.1","puppeteer":"^2.1.1","rimraf":"^3.0.2","uglifyify":"^5.0.2"},"directories":{"test":"test"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/torusresearch/torus-embed#readme","husky":{"hooks":{"pre-commit":"lint-staged"}},"keywords":["torus","wallet","ERC20","Ethereum","embed","login","OAuth","crypto"],"license":"MIT","lint-staged":{"*.js":["npm run lint:js --","prettier --write **/*.js"],"*.{json}":["prettier --write **/*.json","prettier --write **/*.css"]},"main":"index.js","mocha":{"timeout":0},"name":"@toruslabs/torus-embed","repository":{"type":"git","url":"git+https://github.com/torusresearch/torus-embed.git"},"scripts":{"build":"rimraf ./dist && npm run build:babel && npm run build-embed && npm run post-build","build-embed":"cross-env TORUS_BUILD_ENV=production node ./scripts/createEmbed.js","build-embed:alpha5":"cross-env TORUS_BUILD_ENV=alpha5 node ./scripts/createEmbed.js","build-embed:dev":"cross-env TORUS_BUILD_ENV=development node ./scripts/createEmbed.js","build-embed:staging":"cross-env TORUS_BUILD_ENV=staging node ./scripts/createEmbed.js","build-embed:testing":"cross-env TORUS_BUILD_ENV=testing node ./scripts/createEmbed.js","build:alpha5":"rimraf ./dist && npm run build:babel && npm run build-embed:alpha5 && npm run post-build","build:babel":"babel ./src --out-dir dist/ && cp ./src/embed.d.ts ./dist/embed.d.ts","build:dev":"rimraf ./dist && npm run build:babel && npm run build-embed:dev && npm run post-build","build:staging":"rimraf ./dist && npm run build:babel && npm run build-embed:staging && npm run post-build","build:testing":"rimraf ./dist && npm run build:babel && npm run build-embed:testing && npm run post-build","lint:js":"eslint --fix src/**/*.js","post-build":". ./scripts/calculateIntegrity.sh","prepack":"npm run build","test:build-embed":"mocha --exit ./test/compile/Web3Test.js","test:e2e":"node ./test/e2e/puppeteer.js","test:e2e:headful":"node ./test/e2e/puppeteer.js false","update:gist":". ./scripts/updateGistIntegrity.sh"},"types":"index.d.ts","version":"1.2.1"}')},sT9c:function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputUInt};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},e.exports=o},"sk/A":function(e,t,r){"use strict";var n=r("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("lwsE")),o=n(r("W8MJ")),a=n(r("a1gu")),s=n(r("Nsbk")),c=n(r("7W2i")),u=r("+qE3");t.default=function(e){function t(e){var r,n=e.url,o=e.target,c=e.features;return(0,i.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this))).url=n,r.target=o||"_blank",r.features=c||"directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200",r.window=void 0,r.windowTimer={},r.iClosedWindow=!1,r._setupTimer(),r}return(0,c.default)(t,e),(0,o.default)(t,[{key:"_setupTimer",value:function(){var e=this;this.windowTimer=setInterval((function(){e.window&&e.window.closed&&(clearInterval(e.windowTimer),e.iClosedWindow||e.emit("close"),e.iClosedWindow=!1,e.window=void 0),void 0===e.window&&clearInterval(e.windowTimer)}),500)}},{key:"open",value:function(){this.window=window.open(this.url,this.target,this.features)}},{key:"close",value:function(){this.iClosedWindow=!0,this.window&&this.window.close()}}]),t}(u.EventEmitter)},"te+y":function(e,t,r){(function(e,n){var i;!function(n){var o,a,s,c=String.fromCharCode;function u(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function f(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function d(e,t){return c(e>>t&63|128)}function l(e){if(0==(4294967168&e))return c(e);var t="";return 0==(4294965248&e)?t=c(e>>6&31|192):0==(4294901760&e)?(f(e),t=c(e>>12&15|224),t+=d(e,6)):0==(4292870144&e)&&(t=c(e>>18&7|240),t+=d(e,12),t+=d(e,6)),t+c(63&e|128)}function h(){if(s>=a)throw Error("Invalid byte index");var e=255&o[s];if(s++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function p(){var e,t;if(s>a)throw Error("Invalid byte index");if(s==a)return!1;if(e=255&o[s],s++,0==(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|h())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|h()<<6|h())>=2048)return f(t),t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(7&e)<<18|h()<<12|h()<<6|h())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}var b={version:"2.1.2",encode:function(e){for(var t=u(e),r=t.length,n=-1,i="";++n<r;)i+=l(t[n]);return i},decode:function(e){o=u(e),a=o.length,s=0;for(var t,r=[];!1!==(t=p());)r.push(t);return function(e){for(var t,r=e.length,n=-1,i="";++n<r;)(t=e[n])>65535&&(i+=c((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=c(t);return i}(r)}};void 0===(i=(function(){return b}).call(t,r,t,e))||(e.exports=i)}()}).call(this,r("YuTi")(e),r("yLpj"))},uGsb:function(e,t,r){var n,i,o,a,s,c,u,f;e.exports=(f=r("Ib8C"),r("MlIO"),r("1uat"),o=(i=(n=f).x64).Word,a=i.WordArray,u=(s=n.algo).SHA384=(c=s.SHA512).extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),n.SHA384=c._createHelper(u),n.HmacSHA384=c._createHmacHelper(u),f.SHA384)},uGxW:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("OLod"),n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)},"ukW+":function(e,t,r){var n=r("ktN0"),i=r("YbVe"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputAddress};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/address(\[([0-9]*)\])?/)},e.exports=o},uudB:function(e,t,r){var n=r("nyHi"),i=r("neAl"),o=r("f6la"),a=r("JxHF"),s=r("XqDa"),c=r("4AyE"),u=r("gj5E"),f=r("PCco"),d=r("vPG2"),l=r("Wkyl"),h=r("OyGj"),p=r("3V0z"),b=r("pQm2"),m=r("CuW0"),v=r("bKmz"),y=r("nYwK"),g=r("Y+VP"),w=r("3QEE");function _(e){this._requestManager=new n(e),this.currentProvider=e,this.eth=new o(this),this.db=new a(this),this.shh=new s(this),this.net=new c(this),this.personal=new u(this),this.bzz=new f(this),this.settings=new d,this.version={api:l.version},this.providers={HttpProvider:y,IpcProvider:g},this._extend=b(this),this._extend({properties:M()})}_.providers={HttpProvider:y,IpcProvider:g},_.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},_.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new d},_.prototype.BigNumber=w,_.prototype.toHex=h.toHex,_.prototype.toAscii=h.toAscii,_.prototype.toUtf8=h.toUtf8,_.prototype.fromAscii=h.fromAscii,_.prototype.fromUtf8=h.fromUtf8,_.prototype.toDecimal=h.toDecimal,_.prototype.fromDecimal=h.fromDecimal,_.prototype.toBigNumber=h.toBigNumber,_.prototype.toWei=h.toWei,_.prototype.fromWei=h.fromWei,_.prototype.isAddress=h.isAddress,_.prototype.isChecksumAddress=h.isChecksumAddress,_.prototype.toChecksumAddress=h.toChecksumAddress,_.prototype.isIBAN=h.isIBAN,_.prototype.padLeft=h.padLeft,_.prototype.padRight=h.padRight,_.prototype.sha3=function(e,t){return"0x"+p(e,t)},_.prototype.fromICAP=function(e){return new i(e).address()};var M=function(){return[new v({name:"version.node",getter:"web3_clientVersion"}),new v({name:"version.network",getter:"net_version",inputFormatter:h.toDecimal}),new v({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:h.toDecimal}),new v({name:"version.whisper",getter:"shh_version",inputFormatter:h.toDecimal})]};_.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},_.prototype.createBatch=function(){return new m(this)},e.exports=_},vPG2:function(e,t){e.exports=function(){this.defaultBlock="latest",this.defaultAccount=void 0}},w7YG:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"),function(){var e=n,t=e.lib.StreamCipher,r=e.algo,i=r.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=n[i];n[i]=n[o=(o+n[i]+(t[a>>>2]>>>24-a%4*8&255))%256],n[o]=s}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){var o=e[t=(t+1)%256];e[t]=e[r=(r+e[t])%256],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}e.RC4=t._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),n.RC4)},wZgz:function(e,t,r){var n;e.exports=(n=r("Ib8C"),r("ETIr"),r("cv67"),r("K3mO"),r("OLod"),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],a=[],s=[],c=[],u=[],f=[],d=[],l=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;i[r]=p=p>>>8^255&p^99,o[p]=r;var b,m=e[r],v=e[m],y=e[v];a[r]=(b=257*e[p]^16843008*p)<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,u[r]=b,f[p]=(b=16843009*y^65537*v^257*m^16843008*r)<<24|b>>>8,d[p]=b<<16|b>>>16,l[p]=b<<8|b>>>24,h[p]=b,r?(r=m^e[e[e[y^m]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],b=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=t[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var c=this._invKeySchedule=[],u=0;u<n;u++)a=n-u,s=u%4?o[a]:o[a-4],c[u]=u<4||a<=4?s:f[i[s>>>24]]^d[i[s>>>16&255]]^l[i[s>>>8&255]]^h[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,f,d,l,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],f=e[t+1]^r[1],d=e[t+2]^r[2],l=e[t+3]^r[3],h=4,p=1;p<c;p++){var b=n[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&l]^r[h++],m=n[f>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[255&u]^r[h++],v=n[d>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^r[h++],y=n[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^r[h++];u=b,f=m,d=v,l=y}b=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^r[h++],m=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^r[h++],v=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^r[h++],y=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],e[t]=b,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(b)}(),n.AES)},xNMM:function(e,t,r){"use strict";var n=r("OZ/i"),i=r("QSG8"),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},xTFU:function(e,t,r){"use strict";var n=t;n.base=r("cSfw"),n.short=r("nPoS"),n.mont=r("0ZoM"),n.edwards=r("U0lj")},xbdc:function(e,t,r){var n=r("3V0z"),i=r("EJoY"),o=r("D6mP"),a=r("OyGj"),s=r("pliG"),c=r("XVcj"),u=function(e,t,r){this._requestManager=e,this._json=t,this._address=r};u.prototype.encode=function(e){e=e||{};var t={};return["fromBlock","toBlock"].filter((function(t){return void 0!==e[t]})).forEach((function(r){t[r]=o.inputBlockNumberFormatter(e[r])})),t.address=this._address,t},u.prototype.decode=function(e){e.data=e.data||"";var t=a.isArray(e.topics)&&a.isString(e.topics[0])?e.topics[0].slice(2):"",r=this._json.filter((function(e){return t===n(a.transformToFullName(e))}))[0];return r?new i(this._requestManager,r,this._address).decode(e):o.outputLogFormatter(e)},u.prototype.execute=function(e,t){a.isFunction(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],1===arguments.length&&(e=null));var r=this.encode(e),n=this.decode.bind(this);return new s(r,"eth",this._requestManager,c.eth(),n,t)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this);e.allEvents=t},e.exports=u},xhl4:function(e,t,r){var n=r("1IWx").Duplex;e.exports=function(e){return new i(e)};var i=function(e){_inherits(r,e);var t=_createSuper(r);function r(e){var n;return _classCallCheck3(this,r),(n=t.call(this,{objectMode:!0})).resume(),n.handler=function(e){return n.push(e)},n.obsStore=e,n.obsStore.subscribe(n.handler),n}return _createClass(r,[{key:"pipe",value:function(e,t){var r=n.prototype.pipe.call(this,e,t);return e.write(this.obsStore.getState()),r}},{key:"_write",value:function(e,t,r){this.obsStore.putState(e),r()}},{key:"_read",value:function(e){}},{key:"_destroy",value:function(e,t){this.obsStore.unsubscribe(this.handler),_get(_getPrototypeOf(r.prototype),"_destroy",this).call(this,e,t)}}]),r}(n)},y7Fo:function(e,t,r){var n=r("neAl"),i=r("59Eh"),o=function(e,t,r,n,o,a){return e.contract(i).at(r).deposit(o,{from:t,value:n},a)};e.exports=function(e,t,r,i,a){var s=new n(r);if(!s.isValid())throw new Error("invalid iban address");if(s.isDirect())return function(e,t,r,n,i){return e.sendTransaction({address:r,from:t,value:n},i)}(e,t,s.address(),i,a);if(!a){var c=e.icapNamereg().addr(s.institution());return o(e,t,c,i,s.client())}e.icapNamereg().addr(s.institution(),(function(r,n){return o(e,t,n,i,s.client(),a)}))}},"yEi+":function(e,t,r){"use strict";var n=r("cfFl"),i=r("y2lW"),o=r("z8+S"),a=o.serializeError,s=o.EthereumRpcError,c=o.ERROR_CODES;e.exports=function(e){_inherits(i,e);var t,r=_createSuper(i);function i(){var e;return _classCallCheck3(this,i),(e=r.call(this))._middleware=[],e}return _createClass(i,[{key:"push",value:function(e){this._middleware.push(e)}},{key:"handle",value:function(e,t){Array.isArray(e)?this._handleBatch(e,t):this._handle(e,t)}},{key:"_handleBatch",value:(t=_asyncToGenerator(regeneratorRuntime.mark((function e(t,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=r,e.next=4,Promise.all(t.map(this._promiseHandle.bind(this)));case 4:e.t1=e.sent,(0,e.t0)(null,e.t1),e.next=11;break;case 8:e.prev=8,e.t2=e.catch(0),r(e.t2);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e,r){return t.apply(this,arguments)})},{key:"_promiseHandle",value:function(e){var t=this;return new Promise((function(r,n){t._handle(e,(function(e,t){t?r(t):n(e||new s(c.rpc.internal,"JsonRpcEngine: Request handler returned neither error nor response."))}))}))}},{key:"_handle",value:function(e,t){var r=Object.assign({},e),n={id:r.id,jsonrpc:r.jsonrpc};this._runMiddleware(r,n,(function(e){var r=n._originalError;if(delete n._originalError,r)return delete n.result,t(r,n);t(e,n)}))}},{key:"_runMiddleware",value:function(e,t,r){var i=this;n.waterfall([function(r){return i._runMiddlewareDown(e,t,r)},function(r,n){var i=r.isComplete,o=r.returnHandlers;if(!("result"in t||"error"in t)){var a=JSON.stringify(e,null,2);return n(new s(c.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+a,e))}if(!i){var u=JSON.stringify(e,null,2);return n(new s(c.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+u,e))}return n(null,o)},function(e,t){return i._runReturnHandlersUp(e,t)}],r)}},{key:"_runMiddlewareDown",value:function(e,t,r){var i=[],o=!1;n.mapSeries(this._middleware,(function(r,n){if(o)return n();function s(e){var r=e||t&&t.error;r&&(t.error=a(r),t._originalError=r),o=!0,n()}r(e,t,(function(e){t.error?s(t.error):(i.push(e),n())}),s)}),(function(e){if(e)return t.error=a(e),delete t.result,r(e,t);var n=i.filter(Boolean).reverse();r(null,{isComplete:o,returnHandlers:n})}))}},{key:"_runReturnHandlersUp",value:function(e,t){n.eachSeries(e,(function(e,t){return e(t)}),t)}}]),i}(i)},yJfQ:function(e,t,r){"use strict";r("U6jy");var n=r("y2lW");e.exports=function(e){_inherits(r,e);var t=_createSuper(r);function r(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck3(this,r),(e=t.call(this))._state=n,e}return _createClass(r,[{key:"getState",value:function(){return this._getState()}},{key:"putState",value:function(e){this._putState(e),this.emit("update",e)}},{key:"updateState",value:function(e){if(e&&"object"==typeof e){var t=this.getState(),r=Object.assign({},t,e);this.putState(r)}else this.putState(e)}},{key:"subscribe",value:function(e){this.on("update",e)}},{key:"unsubscribe",value:function(e){this.removeListener("update",e)}},{key:"_getState",value:function(){return this._state}},{key:"_putState",value:function(e){this._state=e}}]),r}(n)},zVEQ:function(e,t,r){"use strict";t.XMLHttpRequest="undefined"==typeof XMLHttpRequest?{}:XMLHttpRequest}}]);