require=functione(t,n,r){functiono(s,a){if(!n[s]){if(!t[s]){varu="function"==typeofrequire&&require;if(!a&&u)returnu(s,!0);if(i)returni(s,!0);varf=newError("Cannot find module '"+s+"'");throwf.code="MODULE_NOT_FOUND",f}varc=n[s]={exports:{}};t[s][0].call(c.exports,function(e){varn=t[s][1][e];returno(n?n:e)},c,c.exports,e,t,n,r)}returnn[s].exports}for(vari="function"==typeofrequire&&require,s=0;s<r.length;s++)o(r[s]);returno}({1:[function(e,t){varn=e("./web3");BigNumber.config({ROUNDING_MODE:BigNumber.ROUND_DOWN});varr=32,o=function(e,t){for(varn=!1,r=0;r<e.length&&!n;r++)n=t(e[r]);returnn?r-1:-1},i=function(e,t){returno(e,function(e){returne.name===t})},s=function(e,t,n){returnnewArray(t-e.length+1).join(n?n:"0")+e},a=function(e){returnfunction(t){return0===t.indexOf(e)}},u=function(e){returnfunction(t){returne===t}},f=function(){vare=function(t){varn=2*r;returntinstanceofBigNumber||"number"==typeoft?("number"==typeoft&&(t=newBigNumber(t)),t=t.round(),t.lessThan(0)&&(t=newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(t).plus(1)),t=t.toString(16)):t=0===t.indexOf("0x")?t.substr(2):"string"==typeoft?e(newBigNumber(t)):(+t).toString(16),s(t,n)},t=function(e){returnn.fromAscii(e,r).substr(2)},o=function(e){return"000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0")};return[{type:a("uint"),format:e},{type:a("int"),format:e},{type:a("hash"),format:e},{type:a("string"),format:t},{type:a("real"),format:e},{type:a("ureal"),format:e},{type:u("address"),format:e},{type:u("bool"),format:o}]},c=f(),l=function(e,t,n){varr="",o=i(e,t);if(-1!==o){for(vars=e[o],a=0;a<s.inputs.length;a++){for(varu=!1,f=0;f<c.length&&!u;f++)u=c[f].type(s.inputs[a].type,n[a]);u||console.error("input parser does not support type: "+s.inputs[a].type);varl=c[f-1].format;r+=l?l(n[a]):n[a]}returnr}},h=function(){vare=function(e){vart=newBigNumber(e.substr(0,1),16).toString(2).substr(0,1);return"1"===t?newBigNumber(e,16).minus(newBigNumber("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):newBigNumber(e,16)},t=function(e){returnnewBigNumber(e,16)},r=function(e){return"0x"+e},o=function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e?!0:!1},i=function(e){returnn.toAscii(e)},s=function(e){return"0x"+e.slice(e.length-40,e.length)};return[{type:a("uint"),format:t},{type:a("int"),format:e},{type:a("hash"),format:r},{type:a("string"),format:i},{type:a("real"),format:e},{type:a("ureal"),format:e},{type:u("address"),format:s},{type:u("bool"),format:o}]},p=h(),d=function(e,t,n){varo=i(e,t);if(-1!==o){n=n.slice(2);for(vars=[],a=e[o],u=2*r,f=0;f<a.outputs.length;f++){for(varc=!1,l=0;l<p.length&&!c;l++)c=p[l].type(a.outputs[f].type);if(c){varh=n.slice(0,u),d=p[l-1].format;s.push(d?d(h):"0x"+h),n=n.slice(u)}elseconsole.error("output parser does not support type: "+a.outputs[f].type)}returns}},v=function(e){vart={};returne.forEach(function(n){t[n.name]=function(){vart=Array.prototype.slice.call(arguments);returnl(e,n.name,t)}}),t},g=function(e){vart={};returne.forEach(function(n){t[n.name]=function(t){returnd(e,n.name,t)}}),t},m=function(e,t){varr=e[i(e,t)],o=t+"(",s=r.inputs.map(function(e){returne.type});returno+=s.join(","),o+=")",n.sha3(n.fromAscii(o))};t.exports={inputParser:v,outputParser:g,methodSignature:m}},{"./web3":8}],2:[function(e,t){varn=function(e){if(!web3.haveProvider()){if(this.sendQueue=[],this.onmessageQueue=[],navigator.qt)returnvoid(this.provider=newweb3.providers.QtProvider);e=e||{};vart={httprpc:e.httprpc||"http://localhost:8080",websockets:e.websockets||"ws://localhost:40404/eth"},n=this,r=function(e){o.close(),e?n.provider=newweb3.providers.WebSocketProvider(t.websockets):(n.provider=newweb3.providers.HttpRpcProvider(t.httprpc),n.poll=n.provider.poll.bind(n.provider)),n.sendQueue.forEach(function(e){n.provider(e)}),n.onmessageQueue.forEach(function(e){n.provider.onmessage=e})},o=newWebSocket(t.websockets);o.onopen=function(){r(!0)},o.onerror=function