require=functiont(e,n,r){functioni(a,u){if(!n[a]){if(!e[a]){vars="function"==typeofrequire&&require;if(!u&&s)returns(a,!0);if(o)returno(a,!0);varf=newError("Cannot find module '"+a+"'");throwf.code="MODULE_NOT_FOUND",f}varc=n[a]={exports:{}};e[a][0].call(c.exports,function(t){varn=e[a][1][t];returni(n?n:t)},c,c.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("./web3"),r=t("./utils"),i=t("./types"),o=t("./const"),a=t("./formatters"),u=function(t){return"[]"===t.slice(-2)},s=function(t,e){returnu(t)||"string"===t?a.formatInputInt(e.length):""},f=i.inputTypes(),c=function(t,e){{varn="";2*o.ETH_PADDING}returnt.inputs.forEach(function(t,r){n+=s(t.type,e[r])}),t.inputs.forEach(function(r,i){for(varo=!1,a=0;a<f.length&&!o;a++)o=f[a].type(t.inputs[i].type,e[i]);o||console.error("input parser does not support type: "+t.inputs[i].type);vars=f[a-1].format,c="";c=u(t.inputs[i].type)?e[i].reduce(function(t,e){returnt+s(e)},""):s(e[i]),n+=c}),n},l=function(t){returnu(t)||"string"===t?2*o.ETH_PADDING:0},p=i.outputTypes(),h=function(t,e){e=e.slice(2);varn=[],r=2*o.ETH_PADDING,s=t.outputs.reduce(function(t,e){returnt+l(e.type)},0),f=e.slice(0,s);returne=e.slice(s),t.outputs.forEach(function(o,s){for(varc=!1,l=0;l<p.length&&!c;l++)c=p[l].type(t.outputs[s].type);c||console.error("output parser does not support type: "+t.outputs[s].type);varh=p[l-1].format;if(u(t.outputs[s].type)){varm=a.formatOutputUInt(f.slice(0,r));f=f.slice(r);for(vard=[],g=0;m>g;g++)d.push(h(e.slice(0,r))),e=e.slice(r);n.push(d)}elsei.prefixedType("string")(t.outputs[s].type)?(f=f.slice(r),n.push(h(e.slice(0,r))),e=e.slice(r)):(n.push(h(e.slice(0,r))),e=e.slice(r))}),n},m=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),i=r.extractTypeName(t.name),o=function(){vare=Array.prototype.slice.call(arguments);returnc(t,e)};void0===e[n]&&(e[n]=o),e[n][i]=o}),e},d=function(t){vare={};returnt.forEach(function(t){varn=r.extractDisplayName(t.name),i=r.extractTypeName(t.name),o=function(e){returnh(t,e)};void0===e[n]&&(e[n]=o),e[n][i]=o}),e},g=function(t){returnn.sha3(n.fromAscii(t)).slice(0,2+2*o.ETH_SIGNATURE_LENGTH)};e.exports={inputParser:m,outputParser:d,signatureFromAscii:g}},{"./const":2,"./formatters":6,"./types":10,"./utils":11,"./web3":12}],2:[function(t,e){e.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:BigNumber.ROUND_DOWN}}},{}],3:[function(t,e){varn=t("./web3"),r=t("./abi"),i=t("./utils"),o=t("./event"),a=function(t){n._currentContractAbi=t.abi,n._currentContractAddress=t.address,n._currentContractMethodName=t.method,n._currentContractMethodParams=t.params},u=function(t){t.call=function(e){returnt._isTransact=!1,t._options=e,t},t.transact=function(e){returnt._isTransact=!0,t._options=e,t},t._options={},["gas","gasPrice","value","from"].forEach(function(e){t[e]=function(n){returnt._options[e]=n,t}})},s=function(t,e,o){varu=r.inputParser(e),s=r.outputParser(e);i.filterFunctions(e).forEach(function(f){varc=i.extractDisplayName(f.name),l=i.extractTypeName(f.name),p=function(){vari=Array.prototype.slice.call(arguments),p=r.signatureFromAscii(f.name),h=u[c][l].apply(null,i),m=t._options||{};m.to=o,m.data=p+h;vard=t._isTransact===!0||t._isTransact!==!1&&!f.constant,g=m.collapse!==!1;if(t._options={},t._isTransact=null,d)returna({abi:e,address:o,method:f.name,params:i}),voidn.eth.transact(m);varv=n.eth.call(m),y=s[c][l](v);returng&&(1===y.length?y=y[0]:0===y.length&&(y=null)),y};void0===t[c]&&(t[c]=p),t[c][l]=p})},f=function(t,e,n){t.address=n,Object.defineProperty(t,"topic",{get:function(){returni.filterEvents(e).map(function(t){returnr.signatureFromAscii(t.name)})}})},c=function(t,e,a){i.filterEvents(e).forEach(function(e){varu=function(){vart=Array.prototype.slice.call(arguments),i=r.signatureFromAscii(e.name),u=o(a,i,e),s=u.apply(null,t);returnn.eth.watch(s)};u._isEvent=!0;vars=i.extractDisplayName(e.name),f=i.extractTypeName(e.name);void0===