require=functiont(e,n,r){functioni(a,s){if(!n[a]){if(!e[a]){varu="function"==typeofrequire&&require;if(!s&&u)returnu(a,!0);if(o)returno(a,!0);varc=newError("Cannot find module '"+a+"'");throwc.code="MODULE_NOT_FOUND",c}varl=n[a]={exports:{}};e[a][0].call(l.exports,function(t){varn=e[a][1][t];returni(n?n:t)},l,l.exports,t,e,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(t,e){varn=t("../utils/utils"),r=t("../utils/config"),i=t("./types"),o=t("./formatters"),a=function(t){thrownewError("parser does not support type: "+t)},s=function(t){return"[]"===t.slice(-2)},u=function(t,e){returns(t)||"bytes"===t?o.formatInputInt(e.length):""},c=i.inputTypes(),l=function(t,e){varn="",r="",i="";returnt.forEach(function(t,r){n+=u(t.type,e[r])}),t.forEach(function(n,o){for(varu=!1,l=0;l<c.length&&!u;l++)u=c[l].type(t[o].type,e[o]);u||a(t[o].type);varf=c[l-1].format;s(t[o].type)?i+=e[o].reduce(function(t,e){returnt+f(e)},""):"bytes"===t[o].type?i+=f(e[o]):r+=f(e[o])}),n+=r+i},f=function(t){returns(t)||"bytes"===t?2*r.ETH_PADDING:0},p=i.outputTypes(),m=function(t,e){e=e.slice(2);varn=[],u=2*r.ETH_PADDING,c=t.reduce(function(t,e){returnt+f(e.type)},0),l=e.slice(0,c);returne=e.slice(c),t.forEach(function(r,c){for(varf=!1,m=0;m<p.length&&!f;m++)f=p[m].type(t[c].type);f||a(t[c].type);varh=p[m-1].format;if(s(t[c].type)){varg=o.formatOutputUInt(l.slice(0,u));l=l.slice(u);for(vard=[],v=0;g>v;v++)d.push(h(e.slice(0,u))),e=e.slice(u);n.push(d)}elsei.prefixedType("bytes")(t[c].type)?(l=l.slice(u),n.push(h(e.slice(0,u))),e=e.slice(u)):(n.push(h(e.slice(0,u))),e=e.slice(u))}),n},h=function(t){vare={};returnt.forEach(function(t){varr=n.extractDisplayName(t.name),i=n.extractTypeName(t.name),o=function(){vare=Array.prototype.slice.call(arguments);returnl(t.inputs,e)};void0===e[r]&&(e[r]=o),e[r][i]=o}),e},g=function(t){vare={};returnt.forEach(function(t){varr=n.extractDisplayName(t.name),i=n.extractTypeName(t.name),o=function(e){returnm(t.outputs,e)};void0===e[r]&&(e[r]=o),e[r][i]=o}),e};e.exports={inputParser:h,outputParser:g,formatInput:l,formatOutput:m}},{"../utils/config":5,"../utils/utils":6,"./formatters":2,"./types":3}],2:[function(t,e){varn=t("bignumber.js"),r=t("../utils/utils"),i=t("../utils/config"),o=function(t,e,n){returnnewArray(e-t.length+1).join(n?n:"0")+t},a=function(t){vare=2*i.ETH_PADDING;returnn.config(i.ETH_BIGNUMBER_ROUNDING_MODE),o(r.toTwosComplement(t).round().toString(16),e)},s=function(t){returnr.fromAscii(t,i.ETH_PADDING).substr(2)},u=function(t){return"000000000000000000000000000000000000000000000000000000000000000"+(t?"1":"0")},c=function(t){returna(newn(t).times(newn(2).pow(128)))},l=function(t){return"1"===newn(t.substr(0,1),16).toString(2).substr(0,1)},f=function(t){returnt=t||"0",l(t)?newn(t,16).minus(newn("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newn(t,16)},p=function(t){returnt=t||"0",newn(t,16)},m=function(t){returnf(t).dividedBy(newn(2).pow(128))},h=function(t){returnp(t).dividedBy(newn(2).pow(128))},g=function(t){return"0x"+t},d=function(t){return"0000000000000000000000000000000000000000000000000000000000000001"===t?!0:!1},v=function(t){returnr.toAscii(t)},b=function(t){return"0x"+t.slice(t.length-40,t.length)};e.exports={formatInputInt:a,formatInputString:s,formatInputBool:u,formatInputReal:c,formatOutputInt:f,formatOutputUInt:p,formatOutputReal:m,formatOutputUReal:h,formatOutputHash:g,formatOutputBool:d,formatOutputString:v,formatOutputAddress:b}},{"../utils/config":5,"../utils/utils":6,"bignumber.js":"bignumber.js"}],3:[function(t,e){varn=t("./formatters"),r=function(t){returnfunction(e){return0===e.indexOf(t)}},i=function(t){returnfunction(e){returnt===e}},o=function(){return[{type:r("uint"),format:n.formatInputInt},{type:r("int"),format:n.formatInputInt},{type:r("bytes"),format:n.formatInputString},{type:r("real"),format:n.formatInputReal},{type:r("ureal"),format:n.formatInputReal},{type:i("address"),format:n.formatInputInt},{type:i("bo
}returnt}vark,H=0,R=e.prototype,C=newe(1),L=20,U=4,j=-7,M=21,q=-1e7,G=1e7,J=!0,W=A,z=!1,V=1,$=100,K={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0};returne.another=r,e.ROUND_UP=0,e.ROUND_DOWN=1,e.ROUND_CEIL=2,e.ROUND_FLOOR=3,e.ROUND_HALF_UP=4,e.ROUND_HALF_DOWN=5,e.ROUND_HALF_EVEN=6,e.ROUND_HALF_CEIL=7,e.ROUND_HALF_FLOOR=8,e.EUCLID=9,e.config=function(){vart,e,n=0,r={},i=arguments,o=i[0],a=o&&"object"==typeofo?function(){returno.hasOwnProperty(e)?null!=(t=o[e]):void0}:function(){returni.length>n?null!=(t=i[n++]):void0};returna(e="DECIMAL_PLACES")&&W(t,0,E,2,e)&&(L=0|t),r[e]=L,a(e="ROUNDING_MODE")&&W(t,0,8,2,e)&&(U=0|t),r[e]=U,a(e="EXPONENTIAL_AT")&&(u(t)?W(t[0],-E,0,2,e)&&W(t[1],0,E,2,e)&&(j=0|t[0],M=0|t[1]):W(t,-E,E,2,e)&&(j=-(M=0|(0>t?-t:t)))),r[e]=[j,M],a(e="RANGE")&&(u(t)?W(t[0],-E,-1,2,e)&&W(t[1],1,E,2,e)&&(q=0|t[0],G=0|t[1]):W(t,-E,E,2,e)&&(0|t?q=-(G=0|(0>t?-t:t)):J&&S(2,e+" cannot be zero",t))),r[e]=[q,G],a(e="ERRORS")&&(t===!!t||1===t||0===t?(H=0,W=(J=!!t)?A:s):J&&S(2,e+y,t)),r[e]=J,a(e="CRYPTO")&&(t===!!t||1===t||0===t?(z=!(!t||!h||"object"!=typeofh),t&&!z&&J&&S(2,"crypto unavailable",h)):J&&S(2,e+y,t)),r[e]=z,a(e="MODULO_MODE")&&W(t,0,9,2,e)&&(V=0|t),r[e]=V,a(e="POW_PRECISION")&&W(t,0,E,2,e)&&($=0|t),r[e]=$,a(e="FORMAT")&&("object"==typeoft?K=t:J&&S(2,e+" not an object",t)),r[e]=K,r},e.max=function(){returnD(arguments,R.lt)},e.min=function(){returnD(arguments,R.gt)},e.random=function(){vart=9007199254740992,n=Math.random()*t&2097151?function(){returnb(Math.random()*t)}:function(){return8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};returnfunction(t){varr,i,o,a,s,u=0,c=[],l=newe(C);if(t=null!=t&&W(t,0,E,14)?0|t:L,a=v(t/_),z)if(h&&h.getRandomValues){for(r=h.getRandomValues(newUint32Array(a*=2));a>u;)s=131072*r[u]+(r[u+1]>>>11),s>=9e15?(i=h.getRandomValues(newUint32Array(2)),r[u]=i[0],r[u+1]=i[1]):(c.push(s%1e14),u+=2);u=a/2}elseif(h&&h.randomBytes){for(r=h.randomBytes(a*=7);a>u;)s=281474976710656*(31&r[u])+1099511627776*r[u+1]+4294967296*r[u+2]+16777216*r[u+3]+(r[u+4]<<16)+(r[u+5]<<8)+r[u+6],s>=9e15?h.randomBytes(7).copy(r,u):(c.push(s%1e14),u+=7);u=a/7}elseJ&&S(14,"crypto unavailable",h);if(!u)for(;a>u;)s=n(),9e15>s&&(c[u++]=s%1e14);for(a=c[--u],t%=_,a&&t&&(s=N[_-t],c[u]=b(a/s)*s);0===c[u];c.pop(),u--);if(0>u)c=[o=0];else{for(o=-1;0===c[0];c.shift(),o-=_);for(u=1,s=c[0];s>=10;s/=10,u++);_>u&&(o-=_-u)}returnl.e=o,l.c=c,l}}(),k=function(){functiont(t,e,n){varr,i,o,a,s=0,u=t.length,c=e%T,l=e/T|0;for(t=t.slice();u--;)o=t[u]%T,a=t[u]/T|0,r=l*o+a*c,i=c*o+r%T*T+s,s=(i/n|0)+(r/T|0)+l*a,t[u]=i%n;returns&&t.unshift(s),t}functionn(t,e,n,r){vari,o;if(n!=r)o=n>r?1:-1;elsefor(i=o=0;n>i;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}returno}functionr(t,e,n,r){for(vari=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;t.shift());}returnfunction(o,a,s,u,c){varl,f,p,m,h,g,d,v,y,w,x,I,F,N,T,E,D,A=o.s==a.s?1:-1,B=o.c,S=a.c;if(!(B&&B[0]&&S&&S[0]))returnnewe(o.s&&a.s&&(B?!S||B[0]!=S[0]:S)?B&&0==B[0]||!S?0*A:A/0:0/0);for(v=newe(A),y=v.c=[],f=o.e-a.e,A=s+f+1,c||(c=O,f=i(o.e/_)-i(a.e/_),A=A/_|0),p=0;S[p]==(B[p]||0);p++);if(S[p]>(B[p]||0)&&f--,0>A)y.push(1),m=!0;else{for(N=B.length,E=S.length,p=0,A+=2,h=b(c/(S[0]+1)),h>1&&(S=t(S,h,c),B=t(B,h,c),E=S.length,N=B.length),F=E,w=B.slice(0,E),x=w.length;E>x;w[x++]=0);D=S.slice(),D.unshift(0),T=S[0],S[1]>=c/2&&T++;doh=0,l=n(S,w,E,x),0>l?(I=w[0],E!=x&&(I=I*c+(w[1]||0)),h=b(I/T),h>1?(h>=c&&(h=c-1),g=t(S,h,c),d=g.length,x=w.length,l=n(g,w,d,x),1==l&&(h--,r(g,d>E?D:S,d,c))):(0==h&&(l=h=1),g=S.slice()),d=g.length,x>d&&g.unshift(0),r(w,g,x,c),-1==l&&(x=w.length,l=n(S,w,E,x),1>l&&(h++,r(w,x>E?D:S,x,c))),x=w.length):0===l&&(h++,w=[0]),y[p++]=h,l&&w[0]?w[x++]=B[F]||0:(w=[B[F]],x=1);while((F++<N||null!=w[0])&&A--);m=null!=w[0],y[0]||y.shift()}if(c==O){for(p=1,A=y[0];A>=10;A/=10,p++);P(v,s+(v.e=p+f*_-1)+1,u,m)}elsev.e=f,v.r=+m;returnv}}(),g=function(){vart=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,r=/^\.([^.]+)$/,i=/^-?(Infinity|NaN)$/,o=/^\s*\+(?=[\w