};o.prototype.isValid=function(){returnr.isIBAN(this._iban)},o.prototype.isDirect=function(){return34===this._iban.length},o.prototype.isIndirect=function(){return20===this._iban.length},o.prototype.checksum=function(){returnthis._iban.substr(2,2)},o.prototype.institution=function(){returnthis.isIndirect()?this._iban.substr(7,4):""},o.prototype.client=function(){returnthis.isIndirect()?this._iban.substr(11):""},o.prototype.address=function(){returnthis.isDirect()?this._iban.substr(4):""},e.exports=o},{"../utils/utils":7}],22:[function(t,e,n){varr=function(){returnarguments.callee._singletonInstance?arguments.callee._singletonInstance:(arguments.callee._singletonInstance=this,void(this.messageId=1))};r.getInstance=function(){vart=newr;returnt},r.prototype.toPayload=function(t,e){returnt||console.error("jsonrpc method should be specified!"),{jsonrpc:"2.0",method:t,params:e||[],id:this.messageId++}},r.prototype.isValidResponse=function(t){return!!t&&!t.error&&"2.0"===t.jsonrpc&&"number"==typeoft.id&&void0!==t.result},r.prototype.toBatchPayload=function(t){vare=this;returnt.map(function(t){returne.toPayload(t.method,t.params)})},e.exports=r},{}],23:[function(t,e,n){varr=t("./requestmanager"),o=t("../utils/utils"),i=t("./errors"),a=function(t){this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter};a.prototype.getCall=function(t){returno.isFunction(this.call)?this.call(t):this.call},a.prototype.extractCallback=function(t){returno.isFunction(t[t.length-1])?t.pop():void0},a.prototype.validateArgs=function(t){if(t.length!==this.params)throwi.InvalidNumberOfParams()},a.prototype.formatInput=function(t){returnthis.inputFormatter?this.inputFormatter.map(function(e,n){returne?e(t[n]):t[n]}):t},a.prototype.formatOutput=function(t){returnthis.outputFormatter&&null!==t?this.outputFormatter(t):t},a.prototype.attachToObject=function(t){vare=this.send.bind(this);e.request=this.request.bind(this),e.call=this.call;varn=this.name.split(".");n.length>1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},a.prototype.toPayload=function(t){vare=this.getCall(t),n=this.extractCallback(t),r=this.formatInput(t);returnthis.validateArgs(r),{method:e,params:r,callback:n}},a.prototype.request=function(){vart=this.toPayload(Array.prototype.slice.call(arguments));returnt.format=this.formatOutput.bind(this),t},a.prototype.send=function(){vart=this.toPayload(Array.prototype.slice.call(arguments));if(t.callback){vare=this;returnr.getInstance().sendAsync(t,function(n,r){t.callback(n,e.formatOutput(r))})}returnthis.formatOutput(r.getInstance().send(t))},e.exports=a},{"../utils/utils":7,"./errors":14,"./requestmanager":28}],24:[function(t,e,n){varr=t("./contract"),o="0xc6d9d2cd449a754c494264e1809c50e34d64562b",i=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"o_subRegistrar",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_co