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":6,"../utils/utils":7,"./formatters":2,"./types":3}],2:[function(t,e){varn=t("bignumber.js"),r=t("../utils/utils"),i=t("../utils/config"),o=function(t){vare=2*i.ETH_PADDING;returnn.config(i.ETH_BIGNUMBER_ROUNDING_MODE),r.padLeft(r.toTwosComplement(t).round().toString(16),e)},a=function(t){returnr.fromAscii(t,i.ETH_PADDING).substr(2)},s=function(t){return"000000000000000000000000000000000000000000000000000000000000000"+(t?"1":"0")},u=function(t){returno(newn(t).times(newn(2).pow(128)))},c=function(t){return"1"===newn(t.substr(0,1),16).toString(2).substr(0,1)},l=function(t){returnt=t||"0",c(t)?newn(t,16).minus(newn("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newn(t,16)},f=function(t){returnt=t||"0",newn(t,16)},p=function(t){returnl(t).dividedBy(newn(2).pow(128))},m=function(t){returnf(t).dividedBy(newn(2).pow(128))},h=function(t){return"0x"+t},g=function(t){return"0000000000000000000000000000000000000000000000000000000000000001"===t?!0:!1},d=function(t){returnr.toAscii(t)},v=function(t){return"0x"+t.slice(t.length-40,t.length)};e.exports={formatInputInt:o,formatInputString:a,formatInputBool:s,formatInputReal:u,formatOutputInt:l,formatOutputUInt:f,formatOutputReal:p,formatOutputUReal:m,formatOutputHash:h,formatOutputBool:g,formatOutputString:d,formatOutputAddress:v}},{"../utils/config":6,"../utils/utils":7,"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("bool"),format:n.formatInputBool}]},a=function(){return[{type
if(0==o?(f.length=c,s=1,c--):(f.length=c+1,s=p[B-o],f[c]=a>0?_(u/p[i-a]%p[a])*s:0),r)for(;;){if(0==c){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(t.e++,f[0]==E&&(f[0]=1));break}if(f[c]+=s,f[c]!=E)break;f[c--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}t.e>b?t.c=t.e=null:t.e<v&&(t.c=[t.e=0])}returnt}varl,f=1e9,p=1e6,m=20,h=4,g=-7,d=21,v=-f,b=f,y=!0,w=parseInt,x={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0},F=n.prototype,N="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",I=0,_=Math.floor,O=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,T=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},E=1e14,B=14,A=1e7,D=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],S=newn(1);n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.config=function(){vart,e,n=0,r={},i=arguments,o=i[0],a="config",s=function(t,e,n){return!((l=e>t||t>n)||w(t)!=t&&0!==t)},c=o&&"object"==typeofo?function(){returno.hasOwnProperty(e)?null!=(t=o[e]):void0}:function(){returni.length>n?null!=(t=i[n++]):void0};if(c(e="DECIMAL_PLACES")&&(s(t,0,f)?m=0|t:u(t,e,a)),r[e]=m,c(e="ROUNDING_MODE")&&(s(t,0,8)?h=0|t:u(t,e,a)),r[e]=h,c(e="EXPONENTIAL_AT")&&(s(t,-f,f)?g=-(d=~~(0>t?-t:+t)):!l&&t&&s(t[0],-f,0)&&s(t[1],0,f)?(g=~~t[0],d=~~t[1]):u(t,e,a,1)),r[e]=[g,d],c(e="RANGE")&&(s(t,-f,f)&&~~t?v=-(b=~~(0>t?-t:+t)):!l&&t&&s(t[0],-f,-1)&&s(t[1],1,f)?(v=~~t[0],b=~~t[1]):u(t,e,a,1,1)),r[e]=[v,b],c(e="ERRORS")&&(t===!!t||1===t||0===t?(l=I=0,w=(y=!!t)?parseInt:parseFloat):u(t,e,a,0,0,1)),r[e]=y,c(e="FORMAT"))if("object"==typeoft)x=t;elseif(y)throwr=newError(a+"() "+e+" not an object: "+t),r.name="BigNumber Error",r;returnr[e]=x,r};vark=function(){functiont(t,e,n){varr,i,o,a,s=0,u=t.length,c=e%A,l=e/A|0;for(t=t.slice();u--;)o=t[u]%A,a=t[u]/A|0,r=l*o+a*c,i=c*o+r%A*A+s,s=(i/n|0)+(r/A|0)+l*a,t[u]=i%n;returns&&t.unshift(s),t}functione(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(i,o,a,s,u){varl,f,p,m,h,g,d,v,b,y,w,x,F,N,I,O,T,A=i.s==o.s?1:-1,D=i.c,S=o.c;if(!(D&&D[0]&&S&&S[0]))returnnewn(i.s&&o.s&&(D?!S||D[0]!=S[0]:S)?D&&0==D[0]||!S?0*A:A/0:0/0);for(v=newn(A),b=v.c=[],f=i.e-o.e,A=a+f+1,u||(u=E,N=i.e/B,p=0|N,f=(N>0||N===p?p:p-1)-(O=o.e/B,p=0|O,O>0||O===p?p:p-1),A=A/B|0),p=0;S[p]==(D[p]||0);p++);if(S[p]>(D[p]||0)&&f--,0>A)b.push(1),m=!0;else{for(N=D.length,O=S.length,p=0,A+=2,h=_(u/(S[0]+1)),h>1&&(S=t(S,h,u),D=t(D,h,u),O=S.length,N=D.length),F=O,y=D.slice(0,O),w=y.length;O>w;y[w++]=0);T=S.slice(),T.unshift(0),I=S[0],S[1]>=u/2&&I++;doh=0,l=e(S,y,O,w),0>l?(x=y[0],O!=w&&(x=x*u+(y[1]||0)),h=_(x/I),h>1?(h>=u&&(h=u-1),g=t(S,h,u),d=g.length,w=y.length,l=e(g,y,d,w),1==l&&(h--,r(g,d>O?T:S,d,u))):(0==h&&(l=h=1),g=S.slice()),d=g.length,w>d&&g.unshift(0),r(y,g,w,u),-1==l&&(w=y.length,l=e(S,y,O,w),1>l&&(h++,r(y,w>O?T:S,w,u))),w=y.length):0===l&&(h++,y=[0]),b[p++]=h,l&&y[0]?y[w++]=D[F]||0:(y=[D[F]],w=1);while((F++<N||null!=y[0])&&A--);m=null!=y[0],b[0]||b.shift()}if(u==E){for(p=1,A=b[0];A>=10;A/=10,p++);c(v,a+(v.e=p+f*B-1)+1,s,m)}elsev.e=f,v.r=+m;returnv}}();F.absoluteValue=F.abs=function(){vart=newn(this);returnt.s<0&&(t.s=1),t},F.ceil=function(){returnc(newn(this),this.e+1,2)},F.comparedTo=F.cmp=function(t,e){varr,i=this,o=i.c,a=(I=-I,t=newn(t,e)).c,s=i.s,u=t.s,c=i.e,l=t.e;if(!s||!u)returnnull;if(r=o&&!o[0],e=a&&!a[0],r||e)returnr?e?0:-u:s;if(s!=u)returns;if(r=0>s,e=c==l,!o||!a)returne?0:!o^r?1:-1;if(!e)returnc>l^r?1:-1;for(s=-1,u=(c=o.length)<(l=a.length)?c:l;++s<u;)if(o[s]!=a[s])returno[s]>a[s]^r?1:-1;returnc==l?0:c>l^r?1:-1},F.decimalPlaces=F.dp=function(){vart,e,n=this.c;if(!n)returnnull;if(t=((e=n.length-1)-_(this.e/B))*B,e=n[e])for(;e%10==0;e/=10,t--);return0>t&&(t=0),t},F.dividedBy=F.div=function(t,e){returnI=2,k(thi