text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).bitshares_js=e()}}(function(){return function n(o,a,f){function u(t,e){if(!a[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(h)return h(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var s=a[t]={exports:{}};o[t][0].call(s.exports,function(e){return u(o[t][1][e]||e)},s,s.exports,n,o,a,f)}return a[t].exports}for(var h="function"==typeof require&&require,e=0;e<f.length;e++)u(f[e]);return u}({"/home/sigve/Dev/Bitshares/bitsharesjs/dist/browser.js":[function(e,t,r){"use strict";t.exports={PrivateKey:e("./ecc/src/PrivateKey"),PublicKey:e("./ecc/src/PublicKey"),Signature:e("./ecc/src/signature"),key:e("./ecc/src/KeyUtils"),TransactionBuilder:e("./chain/src/TransactionBuilder"),Login:e("./chain/src/AccountLogin"),bitshares_ws:e("bitsharesjs-ws")}},{"./chain/src/AccountLogin":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/AccountLogin.js","./chain/src/TransactionBuilder":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/TransactionBuilder.js","./ecc/src/KeyUtils":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/KeyUtils.js","./ecc/src/PrivateKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PrivateKey.js","./ecc/src/PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","./ecc/src/signature":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/signature.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/AccountLogin.js":[function(e,t,r){"use strict";r.__esModule=!0;var f=s(e("../../ecc/src/PrivateKey")),u=s(e("../../ecc/src/KeyUtils")),i=e("./state");function s(e){return e&&e.__esModule?e:{default:e}}var h={},c={},n=new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e={loggedIn:!1,roles:["active","owner","memo"]};this.get=(0,i.get)(e),this.set=(0,i.set)(e),this.subs={}}return t.prototype.addSubscription=function(e){this.subs[e]=e},t.prototype.setRoles=function(e){this.set("roles",e)},t.prototype.generateKeys=function(i,s,e,n){(new Date).getTime();if(!i||!s)throw new Error("Account name or password required");if(s.length<12)throw new Error("Password must have at least 12 characters");var o={},a={};return(e||this.get("roles")).forEach(function(e){var t=i+e+s,r=h[t]?h[t]:f.default.fromSeed(u.default.normalize_brainKey(t));h[t]=r,o[e]=r,a[e]=c[t]?c[t]:r.toPublicKey().toString(n),c[t]=a[e]}),{privKeys:o,pubKeys:a}},t.prototype.checkKeys=function(e){var s=this,n=e.accountName,o=e.password,a=e.auths;if(!n||!o||!a)throw new Error("checkKeys: Missing inputs");var f=!1,t=function(t){var e=s.generateKeys(n,o,[t]),r=e.privKeys,i=e.pubKeys;a[t].forEach(function(e){e[0]===i[t]&&(f=!0,s.set(t,{priv:r[t],pub:i[t]}))})};for(var r in a)t(r);return f&&this.set("name",n),this.set("loggedIn",f),f},t.prototype.signTransaction=function(r){var i=this,s=!1;if(this.get("roles").forEach(function(e){var t=i.get(e);t&&(s=!0,console.log("adding signer:",t.pub),r.add_signer(t.priv,t.pub))}),!s)throw new Error("You do not have any private keys to sign this transaction")},t}());r.default=n,t.exports=r.default},{"../../ecc/src/KeyUtils":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/KeyUtils.js","../../ecc/src/PrivateKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PrivateKey.js","./state":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/state.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ChainTypes.js":[function(e,t,r){"use strict";r.__esModule=!0;var i={reserved_spaces:{relative_protocol_ids:0,protocol_ids:1,implementation_ids:2},object_type:{null:0,base:1,account:2,asset:3,force_settlement:4,committee_member:5,witness:6,limit_order:7,call_order:8,custom:9,proposal:10,operation_history:11,withdraw_permission:12,vesting_balance:13,worker:14,balance:15},impl_object_type:{global_property:0,dynamic_global_property:1,index_meta:2,asset_dynamic_data:3,asset_bitasset_data:4,account_balance:5,account_statistics:6,transaction:7,block_summary:8,account_transaction_history:9,blinded_balance:10,chain_property:11,witness_schedule:12,budget_record:13},vote_type:{committee:0,witness:1,worker:2},operations:{transfer:0,limit_order_create:1,limit_order_cancel:2,call_order_update:3,fill_order:4,account_create:5,account_update:6,account_whitelist:7,account_upgrade:8,account_transfer:9,asset_create:10,asset_update:11,asset_update_bitasset:12,asset_update_feed_producers:13,asset_issue:14,asset_reserve:15,asset_fund_fee_pool:16,asset_settle:17,asset_global_settle:18,asset_publish_feed:19,witness_create:20,witness_update:21,proposal_create:22,proposal_update:23,proposal_delete:24,withdraw_permission_create:25,withdraw_permission_update:26,withdraw_permission_claim:27,withdraw_permission_delete:28,committee_member_create:29,committee_member_update:30,committee_member_update_global_parameters:31,vesting_balance_create:32,vesting_balance_withdraw:33,worker_create:34,custom:35,assert:36,balance_claim:37,override_transfer:38,transfer_to_blind:39,blind_transfer:40,transfer_from_blind:41,asset_settle_cancel:42,asset_claim_fees:43,fba_distribute:44,bid_collateral:45,execute_bid:46,asset_claim_pool:47,asset_update_issuer:48}};r.default=i,t.exports=r.default},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ObjectId.js":[function(e,t,r){"use strict";r.__esModule=!0;var i,s=e("bytebuffer"),n=e("../../serializer/src/SerializerValidation"),o=(i=n)&&i.__esModule?i:{default:i};var a=s.Long.fromNumber(Math.pow(2,48)-1),f=function(){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.space=e,this.type=t,this.instance=r;var i=this.instance.toString(),s=this.space+"."+this.type+"."+i;if(!o.default.is_digits(i))throw new("Invalid object id "+s)}return n.fromString=function(e){if(void 0!==e.space&&void 0!==e.type&&void 0!==e.instance)return e;var t=o.default.require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,o.default.required(e,"ObjectId"),"ObjectId");return new n(parseInt(t[1]),parseInt(t[2]),s.Long.fromString(t[3]))},n.fromLong=function(e){return new n(e.shiftRight(56).toInt(),255&e.shiftRight(48).toInt(),e.and(a))},n.fromByteBuffer=function(e){return n.fromLong(e.readUint64())},n.prototype.toLong=function(){return s.Long.fromNumber(this.space).shiftLeft(56).or(s.Long.fromNumber(this.type).shiftLeft(48).or(this.instance))},n.prototype.appendByteBuffer=function(e){return e.writeUint64(this.toLong())},n.prototype.toString=function(){return this.space+"."+this.type+"."+this.instance.toString()},n}();r.default=f,t.exports=r.default},{"../../serializer/src/SerializerValidation":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/SerializerValidation.js",bytebuffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bytebuffer/dist/bytebuffer.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/TransactionBuilder.js":[function(e,t,r){"use strict";r.__esModule=!0;var a=i(e("assert")),f=e("../../ecc"),E=e("../../serializer"),l=e("bitsharesjs-ws"),o=i(e("./ChainTypes"));function i(e){return e&&e.__esModule?e:{default:e}}var n,u,h=e("safe-buffer").Buffer,s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ref_block_num=0,this.ref_block_prefix=0,this.expiration=0,this.operations=[],this.signatures=[],this.signer_private_keys=[],this._broadcast=function(e){var s=this;return new Promise(function(t,r){if(s.signed||s.sign(),!s.tr_buffer)throw new Error("not finalized");if(!s.signatures.length)throw new Error("not signed");if(!s.operations.length)throw new Error("no operations");var i=E.ops.signed_transaction.toObject(s);l.Apis.instance().network_api().exec("broadcast_transaction_with_callback",[function(e){return t(e)},i]).then(function(){e&&e()}).catch(function(e){console.log(e);var t=e.message;t||(t=""),r(new Error(t+"\nbitshares-crypto  digest "+f.hash.sha256(s.tr_buffer).toString("hex")+" transaction "+s.tr_buffer.toString("hex")+" "+JSON.stringify(i)))})})}.bind(this)}return e.prototype.add_type_operation=function(e,t){this.add_operation(this.get_type_operation(e,t))},e.prototype.process_transaction=function(f){var u=this,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=2<arguments.length&&void 0!==arguments[2]&&arguments[2],e=f.wallet.wallet_object;return l.Apis.instance().chain_id!==e.get("chain_id")?Promise.reject("Mismatched chain_id; expecting "+e.get("chain_id")+", but got "+l.Apis.instance().chain_id):this.set_required_fees().then(function(){var a={};if(h){var e=f.getPubkeys_having_PrivateKey(h);if(!e.length)throw new Error("Missing signing key");var t=e,r=Array.isArray(t),i=0;for(t=r?t:t[Symbol.iterator]();;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if((i=t.next()).done)break;s=i.value}var n=s,o=f.getPrivateKey(n);u.add_signer(o,n),a[n]=!0}}return u.get_potential_signatures().then(function(e){var t=e.pubkeys,r=e.addys,i=f.getPubkeys_having_PrivateKey(t,r);return u.get_required_signatures(i).then(function(e){var t=e,r=Array.isArray(t),i=0;for(t=r?t:t[Symbol.iterator]();;){var s;if(r){if(i>=t.length)break;s=t[i++]}else{if((i=t.next()).done)break;s=i.value}var n=s;if(!a[n]){var o=f.getPrivateKey(n);if(!o)throw new Error("Missing signing key for "+n);u.add_signer(o,n)}}})}).then(function(){return c?u.broadcast():u.serialize()})})},e.prototype.finalize=function(){var s=this;return new Promise(function(e,t){if(s.tr_buffer)throw new Error("already finalized");e(l.Apis.instance().db_api().exec("get_objects",[["2.1.0"]]).then(function(e){n=e[0].time,0===s.expiration&&(s.expiration=c()+l.ChainConfig.expire_in_secs),s.ref_block_num=65535&e[0].head_block_number,s.ref_block_prefix=new h(e[0].head_block_id,"hex").readUInt32LE(4);for(var t,r=s.operations,i=0;i<r.length;i++)(t=r[i])[1].finalize&&t[1].finalize();s.tr_buffer=E.ops.transaction.toBuffer(s)}))})},e.prototype.id=function(){if(!this.tr_buffer)throw new Error("not finalized");return f.hash.sha256(this.tr_buffer).toString("hex").substring(0,40)},e.prototype.add_operation=function(e){if(this.tr_buffer)throw new Error("already finalized");if((0,a.default)(e,"operation"),!Array.isArray(e))throw new Error("Expecting array [operation_id, operation]");this.operations.push(e)},e.prototype.get_type_operation=function(e,t){if(this.tr_buffer)throw new Error("already finalized");(0,a.default)(e,"name"),(0,a.default)(t,"operation");var r=E.ops[e];(0,a.default)(r,"Unknown operation "+e);var i=o.default.operations[r.operation_name];if(void 0===i)throw new Error("unknown operation: "+r.operation_name);if(t.fee||(t.fee={amount:0,asset_id:0}),"proposal_create"===e){var s=!1,n=0;t.proposed_ops.forEach(function(e){var t=void 0;switch(e.op[0]){case 0:t="from";break;case 6:case 17:t="account";break;case 10:case 11:case 12:case 13:case 14:case 18:case 43:t="issuer";break;case 15:t="payer";break;case 16:t="from_account";break;case 22:case 23:case 24:t="fee_paying_account";break;case 31:s=!0,n=1123200}t in e.op[1]&&0===e.op[1][t]&&(s=!0)}),t.expiration_time||(t.expiration_time=c()+l.ChainConfig.expire_in_secs_proposal),s&&(t.review_period_seconds=n+Math.max(u,86400),t.expiration_time+=3600+n)}return[i,r.fromObject(t)]},e.prototype.update_head_block=function(){return Promise.all([l.Apis.instance().db_api().exec("get_objects",[["2.0.0"]]),l.Apis.instance().db_api().exec("get_objects",[["2.1.0"]])]).then(function(e){var t=e[0],r=e[1];n=r[0].time,u=t[0].parameters.committee_proposal_review_period})},e.prototype.set_expire_seconds=function(e){if(this.tr_buffer)throw new Error("already finalized");return this.expiration=c()+e},e.prototype.propose=function(e){if(this.tr_buffer)throw new Error("already finalized");if(!this.operations.length)throw new Error("add operation first");(0,a.default)(e,"proposal_create_options"),(0,a.default)(e.fee_paying_account,"proposal_create_options.fee_paying_account");var t=this.operations.map(function(e){return{op:e}});return this.operations=[],this.signatures=[],this.signer_private_keys=[],e.proposed_ops=t,this.add_type_operation("proposal_create",e),this},e.prototype.has_proposed_operation=function(){for(var e=!1,t=0;t<this.operations.length;t++)if("proposed_ops"in this.operations[t][1]){e=!0;break}return e},e.prototype.set_required_fees=function(e,v){var b=this;if(this.tr_buffer)throw new Error("already finalized");if(!this.operations.length)throw new Error("add operations first");function y(e){return 22===e[0]}var w=[],t=[],r=[],i=[],j={};function B(e){var t=null;switch(e[0]){case 0:var r=new Array(e[1].memo.message.length+1).join("a");t=e[0]+"_"+e[1].amount.asset_id+"_"+r}return t}for(var s,n=0;n<this.operations.length;n++){s=this.operations[n];var o=E.ops.operation.toObject(s),a=!1;if(v){var f=B(o);f&&(j[f]?(j[f].duplicates.push(n),a=!0):j[f]={original:n,duplicates:[]})}y(s)&&s[1].proposed_ops.forEach(function(e){t.push(e),-1===i.indexOf(e.op[1].fee.asset_id)&&i.push("1.3."+e.op[1].fee.asset_id)}),a||(w.push(o),-1===r.indexOf(w[n][1].fee.asset_id)&&r.push(w[n][1].fee.asset_id))}if(!e){var u=w[0][1].fee;e=u&&null!==u.asset_id?u.asset_id:"1.3.0"}var h=[];if(h.push(Promise.all(r.map(function(e){return l.Apis.instance().db_api().exec("get_required_fees",[w,e])})).catch(function(e){console.error("get_required_fees API error: ",e.message)})),i.length&&i.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),1<r.length||"1.3.0"!==r[0]){var c=r.map(function(e){return e.replace(/^1\./,"2.")});h.push(l.Apis.instance().db_api().exec("get_required_fees",[w,"1.3.0"])),h.push(l.Apis.instance().db_api().exec("get_objects",[c]))}return Promise.all(h).then(function(e){var t=e[0],n=e[1],r=e[2];void 0===t&&(t=n),n||(n=t[0]);var o={},a={};t.forEach(function(e){var t=e.map(function(e){return Array.isArray(e)?(a[e[1][0].asset_id]=e[1],e[0]):e}),r=t[0].asset_id;o[r]=t},{});var f=r?r.reduce(function(e,t){return e[t.id.replace(/^2\./,"1.")]=t,e},{}):{},s={},u={};function h(e,t,r,i){return e[t]||(e[t]={total:0,ops:[]}),e[t].propIdx?e[t].propIdx.push(r):e[t].ops.push(r),"1.3.0"!==t&&(e[t].total+=i.length?i[r].amount:i.amount),e}for(var i=function(i){var e=w[i],t=e[1].fee.asset_id;y(e)?(s=h(s,t,i,n[i][0]),e[1].proposed_ops.forEach(function(e,t){var r=e.op[1].fee.asset_id;u[i]||(u[i]={}),u[i][r]||(u[i][r]={total:0,ops:[i],propIdx:[]}),u[i]=h(u[i],r,t,n[i][1])})):s=h(s,t,i,n[i])},c=0;c<w.length;c++)i(c);function l(i){if(!Object.keys(i).length)return[];var s=[],e=function(r){var e=f[r]?parseInt(f[r].fee_pool,10):0;i[r].total>e?i[r].ops.forEach(function(t){2===n[t].length&&"propIdx"in i[r]?i[r].propIdx.forEach(function(e){s[e]=n[t][1][e]}):2===n[t].length?s[t]=n[t][0]:s[t]=n[t]}):i[r].ops.forEach(function(e){2===n[e].length&&"propIdx"in i[r]?i[r].propIdx.forEach(function(e){s[e]=a[r][e]}):s[e]=o[r][e]})};for(var t in i)e(t);return s}var d=l(s),p={};for(var _ in u)p[_]=l(u[_]);for(var g=function(e,t){if(!e.fee||0===e.fee.amount||e.fee.amount.toString&&"0"===e.fee.amount.toString())if(v){var r=function(e,t){var r=B(e),i=j[r];if(i){if(i.original===t)return t;if(-1!==i.duplicates.indexOf(t))return i.original}}(E.ops.operation.toObject(b.operations[t]),t);e.fee=0<=r?d[r]:d[t]}else e.fee=d[t];if(e.proposed_ops){for(var i=0;i<e.proposed_ops.length;i++)e.proposed_ops[i].op[1].fee.asset_id=p[t][i].asset_id;return[]}},m=0;m<b.operations.length;m++)g(b.operations[m][1],m)})},e.prototype.get_potential_signatures=function(){var e=E.ops.signed_transaction.toObject(this);return Promise.all([l.Apis.instance().db_api().exec("get_potential_signatures",[e]),l.Apis.instance().db_api().exec("get_potential_address_signatures",[e])]).then(function(e){return{pubkeys:e[0],addys:e[1]}})},e.prototype.get_required_signatures=function(e){if(!e.length)return Promise.resolve([]);var t=E.ops.signed_transaction.toObject(this);return l.Apis.instance().db_api().exec("get_required_signatures",[t,e]).then(function(e){return e})},e.prototype.add_signer=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.toPublicKey();if((0,a.default)(e.d,"required PrivateKey object"),this.signed)throw new Error("already signed");t.Q||(t=f.PublicKey.fromPublicKeyString(t));var r=e.toHex(),i=this.signer_private_keys,s=Array.isArray(i),n=0;for(i=s?i:i[Symbol.iterator]();;){var o;if(s){if(n>=i.length)break;o=i[n++]}else{if((n=i.next()).done)break;o=n.value}if(o[0].toHex()===r)return}this.signer_private_keys.push([e,t])},e.prototype.sign=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:l.Apis.instance().chain_id;if(!this.tr_buffer)throw new Error("not finalized");if(this.signed)throw new Error("already signed");if(!this.signer_private_keys.length)throw new Error("Transaction was not signed. Do you have a private key? [no_signers]");for(var t=this.signer_private_keys.length,r=0;0<t?r<t:t<r;r++){var i=this.signer_private_keys[r],s=i[0],n=i[1],o=f.Signature.signBuffer(h.concat([new h(e,"hex"),this.tr_buffer]),s,n);this.signatures.push(o.toBuffer())}this.signer_private_keys=[],this.signed=!0},e.prototype.serialize=function(){return E.ops.signed_transaction.toObject(this)},e.prototype.toObject=function(){return E.ops.signed_transaction.toObject(this)},e.prototype.broadcast=function(e){var t=this;return this.tr_buffer?this._broadcast(e):this.finalize().then(function(){return t._broadcast(e)})},e}(),c=function(){var e=Math.ceil(function(e){return e?(/Z$/.test(e)||(e+="Z"),new Date(e)):new Date("1970-01-01T00:00:00.000Z")}(n).getTime()/1e3),t=Math.ceil(Date.now()/1e3);return 30<t-e?e:Math.max(t,e)};r.default=s,t.exports=r.default},{"../../ecc":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/index.js","../../serializer":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/index.js","./ChainTypes":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ChainTypes.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/state.js":[function(e,t,r){"use strict";r.__esModule=!0,r.get=function(t){return function(e){return t[e]||""}},r.set=function(r){return function(e,t){return r[e]=t,this}}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/index.js":[function(e,t,r){"use strict";r.__esModule=!0,r.key=r.hash=r.brainKey=r.Signature=r.PublicKey=r.PrivateKey=r.Aes=r.Address=void 0;var i=c(e("./src/address")),s=c(e("./src/aes")),n=c(e("./src/PrivateKey")),o=c(e("./src/PublicKey")),a=c(e("./src/signature")),f=c(e("./src/BrainKey")),u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./src/hash")),h=c(e("./src/KeyUtils"));function c(e){return e&&e.__esModule?e:{default:e}}r.Address=i.default,r.Aes=s.default,r.PrivateKey=n.default,r.PublicKey=o.default,r.Signature=a.default,r.brainKey=f.default,r.hash=u,r.key=h.default},{"./src/BrainKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/BrainKey.js","./src/KeyUtils":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/KeyUtils.js","./src/PrivateKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PrivateKey.js","./src/PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","./src/address":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/address.js","./src/aes":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/aes.js","./src/hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js","./src/signature":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/signature.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/BrainKey.js":[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){if("string"!=typeof e)throw new Error("string required for brainKey");return(e=e.trim()).split(/[\t\n\v\f\r ]+/).join(" ")},t.exports=r.default},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/KeyUtils.js":[function(e,t,r){"use strict";r.__esModule=!0;var i=h(e("./PrivateKey")),s=h(e("./PublicKey")),n=h(e("./address")),f=h(e("./aes")),u=e("./hash"),a=h(e("secure-random")),o=e("bitsharesjs-ws");function h(e){return e&&e.__esModule?e:{default:e}}var c=e("safe-buffer").Buffer,l={aes_checksum:function(e){if("string"!=typeof e)throw new"password string required";for(var t=a.default.randomBuffer(4).toString("hex"),r=0,i=t+e,s=Date.now();Date.now()-s<250;)i=(0,u.sha256)(i),r+=1;var n=(0,u.sha256)(i),o=[r,t.toString("hex"),n.slice(0,4).toString("hex")].join(",");return{aes_private:f.default.fromSeed(i),checksum:o}},aes_private:function(e,t){for(var r=t.split(","),i=r[0],s=r[1],n=r[2],o=s+e,a=0;0<i?a<i:i<a;a++)o=(0,u.sha256)(o);if((0,u.sha256)(o).slice(0,4).toString("hex")!==n)throw new Error("wrong password");return f.default.fromSeed(o)},random32ByteBuffer:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.browserEntropy();if("string"!=typeof e)throw new Error("string required for entropy");if(e.length<32)throw new Error("expecting at least 32 bytes of entropy");for(var t=Date.now();Date.now()-t<250;)e=(0,u.sha256)(e);var r=[];return r.push(e),r.push(a.default.randomBuffer(32)),(0,u.sha256)(c.concat(r))},suggest_brain_key:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:",",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.browserEntropy(),r=this.random32ByteBuffer(t),i=e.split(",");if(49744!==i.length)throw new Error("expecting 49744 but got "+i.length+" dictionary words");for(var s=[],n=0;n<32;n+=2){var o=((r[n]<<8)+r[n+1])/Math.pow(2,16),a=Math.round(i.length*o);s.push(i[a])}return this.normalize_brainKey(s.join(" "))},get_random_key:function(e){return i.default.fromBuffer(this.random32ByteBuffer(e))},get_brainPrivateKey:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;if(t<0)throw new Error("invalid sequence");return e=l.normalize_brainKey(e),i.default.fromBuffer((0,u.sha256)((0,u.sha512)(e+" "+t)))},normalize_brainKey:function(e){if("string"!=typeof e)throw new Error("string required for brainKey");return(e=e.trim()).split(/[\t\n\v\f\r ]+/).join(" ")},browserEntropy:function(){var t="";try{t=(new Date).toString()+" "+window.screen.height+" "+window.screen.width+" "+window.screen.colorDepth+"  "+window.screen.availHeight+" "+window.screen.availWidth+" "+window.screen.pixelDepth+navigator.language+" "+window.location+" "+window.history.length;for(var e,r=0;r<navigator.mimeTypes.length;r++)t+=(e=navigator.mimeTypes[r]).description+" "+e.type+" "+e.suffixes+" ";console.log("INFO\tbrowserEntropy gathered")}catch(e){t=(0,u.sha256)((new Date).toString())}return t+=c.from(t).toString("binary")+" "+(new Date).toString()},addresses:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:o.ChainConfig.address_prefix,r=s.default.fromPublicKeyString(e,t);return[n.default.fromPublic(r,!1,0).toString(t),n.default.fromPublic(r,!0,0).toString(t),n.default.fromPublic(r,!1,56).toString(t),n.default.fromPublic(r,!0,56).toString(t),r.toAddressString(t)]}};r.default=l,t.exports=r.default},{"./PrivateKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PrivateKey.js","./PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","./address":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/address.js","./aes":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/aes.js","./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js","secure-random":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/secure-random/lib/secure-random.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PrivateKey.js":[function(e,t,r){"use strict";r.__esModule=!0;var a=e("ecurve"),f=s(e("bigi")),u=e("bs58"),h=e("./hash"),i=s(e("./PublicKey")),c=s(e("deep-equal")),l=s(e("assert"));function s(e){return e&&e.__esModule?e:{default:e}}var d=(0,a.getCurveByName)("secp256k1"),n=d.n,p=e("safe-buffer").Buffer,o=function(){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.d=e}return o.fromBuffer=function(e){if(!p.isBuffer(e))throw new Error("Expecting paramter to be a Buffer type");if(32!==e.length&&console.log("WARN: Expecting 32 bytes, instead got "+e.length+", stack trace:",(new Error).stack),0===e.length)throw new Error("Empty buffer");return new o(f.default.fromBuffer(e))},o.fromSeed=function(e){if("string"!=typeof e)throw new Error("seed must be of type string");return o.fromBuffer((0,h.sha256)(e))},o.fromWif=function(e){var t=p.from((0,u.decode)(e)),r=t.readUInt8(0);l.default.equal(128,r,"Expected version 128, instead got "+r);var i=t.slice(0,-4),s=t.slice(-4),n=(0,h.sha256)(i);if(n=(n=(0,h.sha256)(n)).slice(0,4),!(0,c.default)(s,n))throw new Error("Checksum did not match");return i=i.slice(1),o.fromBuffer(i)},o.prototype.toWif=function(){var e=this.toBuffer();e=p.concat([p.from([128]),e]);var t=(0,h.sha256)(e);t=(t=(0,h.sha256)(t)).slice(0,4);var r=p.concat([e,t]);return(0,u.encode)(r)},o.prototype.toPublicKeyPoint=function(){return d.G.multiply(this.d)},o.prototype.toPublicKey=function(){return this.public_key?this.public_key:this.public_key=i.default.fromPoint(this.toPublicKeyPoint())},o.prototype.toBuffer=function(){return this.d.toBuffer(32)},o.prototype.get_shared_secret=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=(e=_(e)).toUncompressed().toBuffer(),i=a.Point.fromAffine(d,f.default.fromBuffer(r.slice(1,33)),f.default.fromBuffer(r.slice(33,65))),s=this.toBuffer(),n=i.multiply(f.default.fromBuffer(s)).affineX.toBuffer({size:32});if(!t&&n.length<32){var o=p.alloc(32-n.length).fill(0);n=p.concat([o,n])}return(0,h.sha512)(n)},o.prototype.child=function(e){e=p.concat([this.toPublicKey().toBuffer(),e]),e=(0,h.sha256)(e);var t=f.default.fromBuffer(e);if(0<=t.compareTo(n))throw new Error("Child offset went out of bounds, try again");var r=this.d.add(t);if(0===r.signum())throw new Error("Child offset derived to an invalid key, try again");return new o(r)},o.prototype.toByteBuffer=function(){var e=new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY,ByteBuffer.LITTLE_ENDIAN);return this.appendByteBuffer(e),e.copy(0,e.offset)},o.fromHex=function(e){return o.fromBuffer(new p(e,"hex"))},o.prototype.toHex=function(){return this.toBuffer().toString("hex")},o}();r.default=o;var _=function(e){return null==e?e:e.Q?e:i.default.fromStringOrThrow(e)};t.exports=r.default},{"./PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js",bs58:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bs58/index.js","deep-equal":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/index.js",ecurve:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js":[function(e,t,r){"use strict";r.__esModule=!0;var s=n(e("bigi")),i=e("ecurve"),o=e("bs58"),a=e("./hash"),f=e("bitsharesjs-ws"),u=n(e("assert")),h=n(e("deep-equal"));function n(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.getCurveByName)("secp256k1"),l=e("safe-buffer").Buffer,d=c.G,p=c.n,_=function(){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.Q=e}return n.fromBinary=function(e){return n.fromBuffer(l.from(e,"binary"))},n.fromBuffer=function(e){return"000000000000000000000000000000000000000000000000000000000000000000"===e.toString("hex")?new n(null):new n(i.Point.decodeFrom(c,e))},n.prototype.toBuffer=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.Q?this.Q.compressed:null;return null===this.Q?l.from("000000000000000000000000000000000000000000000000000000000000000000","hex"):this.Q.getEncoded(e)},n.fromPoint=function(e){return new n(e)},n.prototype.toUncompressed=function(){var e=this.Q.getEncoded(!1),t=i.Point.decodeFrom(c,e);return n.fromPoint(t)},n.prototype.toBlockchainAddress=function(){var e=this.toBuffer(),t=(0,a.sha512)(e);return(0,a.ripemd160)(t)},n.prototype.toString=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.ChainConfig.address_prefix;return this.toPublicKeyString(e)},n.prototype.toPublicKeyString=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.ChainConfig.address_prefix,t=this.toBuffer(),r=(0,a.ripemd160)(t),i=l.concat([t,r.slice(0,4)]);return e+(0,o.encode)(i)},n.fromPublicKeyString=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.ChainConfig.address_prefix;try{return n.fromStringOrThrow(e,t)}catch(e){return null}},n.fromStringOrThrow=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:f.ChainConfig.address_prefix;null===e.Q&&(e=t+"1111111111111111111111111111111114T1Anm");var r=e.slice(0,t.length);u.default.equal(t,r,"Expecting key to begin with "+t+", instead got "+r),e=e.slice(t.length);var i=(e=l.from((0,o.decode)(e),"binary")).slice(-4);e=e.slice(0,-4);var s=(0,a.ripemd160)(e);if(s=s.slice(0,4),!(0,h.default)(i,s))throw new Error("Checksum did not match");return n.fromBuffer(e)},n.prototype.toAddressString=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.ChainConfig.address_prefix,t=this.toBuffer(),r=(0,a.sha512)(t),i=(0,a.ripemd160)(r),s=(0,a.ripemd160)(i);return i=l.concat([i,s.slice(0,4)]),e+(0,o.encode)(i)},n.prototype.toPtsAddy=function(){var e=this.toBuffer(),t=(0,a.sha256)(e),r=(0,a.ripemd160)(t);r=l.concat([l.from([56]),r]);var i=(0,a.sha256)(r);return i=(0,a.sha256)(i),r=l.concat([r,i.slice(0,4)]),(0,o.encode)(r)},n.prototype.child=function(e){(0,u.default)(l.isBuffer(e),"Buffer required: offset"),u.default.equal(e.length,32,"offset length"),e=l.concat([this.toBuffer(),e]),e=(0,a.sha256)(e);var t=s.default.fromBuffer(e);if(0<=t.compareTo(p))throw new Error("Child offset went out of bounds, try again");var r=d.multiply(t),i=this.Q.add(r);if(c.isInfinity(i))throw new Error("Child offset derived to an invalid key, try again");return n.fromPoint(i)},n.prototype.toByteBuffer=function(){var e=new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY,ByteBuffer.LITTLE_ENDIAN);return this.appendByteBuffer(e),e.copy(0,e.offset)},n.fromHex=function(e){return n.fromBuffer(l.from(e,"hex"))},n.prototype.toHex=function(){return this.toBuffer().toString("hex")},n.fromPublicKeyStringHex=function(e){return n.fromPublicKeyString(l.from(e,"hex"))},n}();r.default=_,t.exports=r.default},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js",bs58:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bs58/index.js","deep-equal":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/index.js",ecurve:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/address.js":[function(e,t,r){"use strict";r.__esModule=!0;var o=i(e("assert")),a=e("bitsharesjs-ws"),h=e("./hash"),f=e("bs58"),c=i(e("deep-equal"));function i(e){return e&&e.__esModule?e:{default:e}}var l=e("safe-buffer").Buffer,s=function(){function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.addy=e}return u.fromBuffer=function(e){var t=(0,h.sha512)(e);return new u((0,h.ripemd160)(t))},u.fromString=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a.ChainConfig.address_prefix,r=e.slice(0,t.length);o.default.equal(t,r,"Expecting key to begin with "+t+", instead got "+r);var i=e.slice(t.length),s=(i=new l((0,f.decode)(i),"binary")).slice(-4);i=i.slice(0,-4);var n=(0,h.ripemd160)(i);if(n=n.slice(0,4),!(0,c.default)(s,n))throw new Error("Checksum did not match");return new u(i)},u.fromPublic=function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:56,i=(0,h.sha256)(e.toBuffer(t)),s=(0,h.ripemd160)(i),n=l.alloc(1);n.writeUInt8(255&r,0);var o=l.concat([n,s]),a=(0,h.sha256)(o);a=(0,h.sha256)(a);var f=l.concat([o,a.slice(0,4)]);return new u((0,h.ripemd160)(f))},u.prototype.toBuffer=function(){return this.addy},u.prototype.toString=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:a.ChainConfig.address_prefix,t=(0,h.ripemd160)(this.addy),r=l.concat([this.addy,t.slice(0,4)]);return e+(0,f.encode)(r)},u}();r.default=s,t.exports=r.default},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js",bs58:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bs58/index.js","deep-equal":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/aes.js":[function(e,t,r){"use strict";r.__esModule=!0;var i=a(e("crypto-js/aes")),s=a(e("crypto-js/enc-hex")),n=a(e("crypto-js/enc-base64")),o=a(e("assert")),c=e("./hash");function a(e){return e&&e.__esModule?e:{default:e}}var l=e("safe-buffer").Buffer,f=function(){function h(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),this.iv=e,this.key=t}return h.prototype.clear=function(){return this.iv=this.key=void 0},h.fromSeed=function(e){if(void 0===e)throw new Error("seed is required");var t=(0,c.sha512)(e);return t=t.toString("hex"),h.fromSha512(t)},h.fromSha512=function(e){return o.default.equal(e.length,128,"A Sha512 in HEX should be 128 characters long, instead got "+e.length),new h(s.default.parse(e.substring(64,96)),s.default.parse(e.substring(0,64)))},h.fromBuffer=function(e){return(0,o.default)(l.isBuffer(e),"Expecting Buffer"),o.default.equal(e.length,64,"A Sha512 Buffer should be 64 characters long, instead got "+e.length),h.fromSha512(e.toString("hex"))},h.decrypt_with_checksum=function(e,t,r,i){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4];null==r&&(r=""),l.isBuffer(i)||(i=new l(i,"hex"));var n=e.get_shared_secret(t,s),o=h.fromSeed(l.concat([l.from(""+r),l.from(n.toString("hex"))])).decrypt(i);if(!(4<=o.length))throw new Error("Invalid key, could not decrypt message(1)");var a=o.slice(0,4),f=o.slice(4),u=(0,c.sha256)(f);if(u=(u=u.slice(0,4)).toString("hex"),a.toString("hex")!==u)throw new Error("Invalid key, could not decrypt message(2)");return f},h.encrypt_with_checksum=function(e,t,r,i){null==r&&(r=""),l.isBuffer(i)||(i=new l(i,"binary"));var s=e.get_shared_secret(t),n=h.fromSeed(l.concat([l.from(""+r),l.from(s.toString("hex"))])),o=(0,c.sha256)(i).slice(0,4),a=l.concat([o,i]);return n.encrypt(a)},h.prototype._decrypt_word_array=function(e){return i.default.decrypt({ciphertext:e,salt:null},this.key,{iv:this.iv})},h.prototype._encrypt_word_array=function(e){var t=i.default.encrypt(e,this.key,{iv:this.iv});return n.default.parse(t.toString())},h.prototype.decrypt=function(e){if("string"==typeof e&&(e=new l(e,"binary")),!l.isBuffer(e))throw new Error("buffer required");(0,o.default)(e,"Missing cipher text");var t=this.decryptHex(e.toString("hex"));return new l(t,"hex")},h.prototype.encrypt=function(e){if("string"==typeof e&&(e=new l(e,"binary")),!l.isBuffer(e))throw new Error("buffer required");var t=this.encryptHex(e.toString("hex"));return new l(t,"hex")},h.prototype.encryptToHex=function(e){if("string"==typeof e&&(e=new l(e,"binary")),!l.isBuffer(e))throw new Error("buffer required");return this.encryptHex(e.toString("hex"))},h.prototype.decryptHex=function(e){(0,o.default)(e,"Missing cipher text");var t=s.default.parse(e),r=this._decrypt_word_array(t);return s.default.stringify(r)},h.prototype.decryptHexToBuffer=function(e){(0,o.default)(e,"Missing cipher text");var t=s.default.parse(e),r=this._decrypt_word_array(t),i=s.default.stringify(r);return new l(i,"hex")},h.prototype.decryptHexToText=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"binary";return this.decryptHexToBuffer(e).toString(t)},h.prototype.encryptHex=function(e){var t=s.default.parse(e),r=this._encrypt_word_array(t);return s.default.stringify(r)},h}();r.default=f,t.exports=r.default},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js","crypto-js/aes":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/aes.js","crypto-js/enc-base64":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/enc-base64.js","crypto-js/enc-hex":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/enc-hex.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/ecdsa.js":[function(e,t,r){"use strict";r.__esModule=!0,r.verifyRaw=r.verify=r.sign=r.recoverPubKey=r.deterministicGenerateK=r.calcPubKeyRecoveryParam=void 0;var _=i(e("assert")),u=e("./hash"),h=i(e("./enforce_types")),c=i(e("bigi")),l=i(e("./ecsignature"));function i(e){return e&&e.__esModule?e:{default:e}}var d=e("safe-buffer").Buffer;function p(e,t,r,i,s){(0,h.default)("Buffer",t),(0,h.default)(c.default,r),s&&(t=(0,u.sha256)(d.concat([t,d.alloc(s)]))),_.default.equal(t.length,32,"Hash must be 256 bit");var n=r.toBuffer(32),o=d.alloc(32),a=d.alloc(32);a.fill(1),o.fill(0),o=(0,u.HmacSHA256)(d.concat([a,new d([0]),n,t]),o),a=(0,u.HmacSHA256)(a,o),o=(0,u.HmacSHA256)(d.concat([a,new d([1]),n,t]),o),a=(0,u.HmacSHA256)(a,o),a=(0,u.HmacSHA256)(a,o);for(var f=c.default.fromBuffer(a);f.signum()<=0||0<=f.compareTo(e.n)||!i(f);)o=(0,u.HmacSHA256)(d.concat([a,new d([0])]),o),a=(0,u.HmacSHA256)(a,o),a=(0,u.HmacSHA256)(a,o),f=c.default.fromBuffer(a);return f}function s(e,t,r,i){var s=e.n,n=e.G,o=r.r,a=r.s;if(o.signum()<=0||0<=o.compareTo(s))return!1;if(a.signum()<=0||0<=a.compareTo(s))return!1;var f=a.modInverse(s),u=t.multiply(f).mod(s),h=o.multiply(f).mod(s),c=n.multiplyTwo(u,i,h);return!e.isInfinity(c)&&c.affineX.mod(s).equals(o)}function n(e,t,r,i){_.default.strictEqual(3&i,i,"Recovery param is more than two bits");var s=e.n,n=e.G,o=r.r,a=r.s;(0,_.default)(0<o.signum()&&o.compareTo(s)<0,"Invalid r value"),(0,_.default)(0<a.signum()&&a.compareTo(s)<0,"Invalid s value");var f=1&i,u=i>>1?o.add(s):o,h=e.pointFromX(f,u),c=h.multiply(s);(0,_.default)(e.isInfinity(c),"nR is not a valid curve point");var l=t.negate().mod(s),d=o.modInverse(s),p=h.multiplyTwo(a,n,l).multiply(d);return e.validate(p),p}r.calcPubKeyRecoveryParam=function(e,t,r,i){for(var s=0;s<4;s++)if(n(e,t,r,s).equals(i))return s;throw new Error("Unable to find valid recovery factor")},r.deterministicGenerateK=p,r.recoverPubKey=n,r.sign=function(r,e,i,t){var s=c.default.fromBuffer(e),n=r.n,o=r.G,a=void 0,f=void 0;p(r,e,i,function(e){var t=o.multiply(e);return!r.isInfinity(t)&&0!==(a=t.affineX.mod(n)).signum()&&0!==(f=e.modInverse(n).multiply(s.add(i.multiply(a))).mod(n)).signum()},t);var u=n.shiftRight(1);return 0<f.compareTo(u)&&(f=n.subtract(f)),new l.default(a,f)},r.verify=function(e,t,r,i){return s(e,c.default.fromBuffer(t),r,i)},r.verifyRaw=s},{"./ecsignature":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/ecsignature.js","./enforce_types":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/enforce_types.js","./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/ecsignature.js":[function(e,t,r){"use strict";r.__esModule=!0;var f=s(e("assert")),i=s(e("./enforce_types")),u=s(e("bigi"));function s(e){return e&&e.__esModule?e:{default:e}}var n=e("safe-buffer").Buffer;function h(e,t){(0,i.default)(u.default,e),(0,i.default)(u.default,t),this.r=e,this.s=t}h.parseCompact=function(e){f.default.equal(e.length,65,"Invalid signature length");var t=e.readUInt8(0)-27;return f.default.equal(t,7&t,"Invalid signature parameter"),{compressed:!!(4&t),i:t&=3,signature:new h(u.default.fromBuffer(e.slice(1,33)),u.default.fromBuffer(e.slice(33)))}},h.fromDER=function(e){f.default.equal(e.readUInt8(0),48,"Not a DER sequence"),f.default.equal(e.readUInt8(1),e.length-2,"Invalid sequence length"),f.default.equal(e.readUInt8(2),2,"Expected a DER integer");var t=e.readUInt8(3);(0,f.default)(0<t,"R length is zero");var r=4+t;f.default.equal(e.readUInt8(r),2,"Expected a DER integer (2)");var i=e.readUInt8(r+1);(0,f.default)(0<i,"S length is zero");var s=e.slice(4,r),n=e.slice(r+2);r+=2+i,1<t&&0===s.readUInt8(0)&&(0,f.default)(128&s.readUInt8(1),"R value excessively padded"),1<i&&0===n.readUInt8(0)&&(0,f.default)(128&n.readUInt8(1),"S value excessively padded"),f.default.equal(r,e.length,"Invalid DER encoding");var o=u.default.fromDERInteger(s),a=u.default.fromDERInteger(n);return(0,f.default)(0<=o.signum(),"R value is negative"),(0,f.default)(0<=a.signum(),"S value is negative"),new h(o,a)},h.parseScriptSignature=function(e){var t=e.readUInt8(e.length-1),r=-129&t;return(0,f.default)(0<r&&r<4,"Invalid hashType"),{signature:h.fromDER(e.slice(0,-1)),hashType:t}},h.prototype.toCompact=function(e,t){t&&(e+=4),e+=27;var r=n.alloc(65);return r.writeUInt8(e,0),this.r.toBuffer(32).copy(r,1),this.s.toBuffer(32).copy(r,33),r},h.prototype.toDER=function(){var e=this.r.toDERInteger(),t=this.s.toDERInteger(),r=[];return r.push(2,e.length),(r=r.concat(e)).push(2,t.length),(r=r.concat(t)).unshift(48,r.length),n.from(r)},h.prototype.toScriptSignature=function(e){var t=n.alloc(1);return t.writeUInt8(e,0),n.concat([this.toDER(),t])},r.default=h,t.exports=r.default},{"./enforce_types":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/enforce_types.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/enforce_types.js":[function(e,t,s){(function(r){"use strict";function i(e){var t=e.toString().match(/function (.*?)\(/);return t?t[1]:null}s.__esModule=!0,s.default=function(e,t){switch(e){case"Array":if(Array.isArray(t))return;break;case"Boolean":if("boolean"==typeof t)return;break;case"Buffer":if(r.isBuffer(t))return;break;case"Number":if("number"==typeof t)return;break;case"String":if("string"==typeof t)return;break;default:if(i(t.constructor)===i(e))return}throw new TypeError("Expected "+(i(e)||e)+", got "+t)},t.exports=s.default}).call(this,{isBuffer:e("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/is-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js":[function(e,t,r){"use strict";r.__esModule=!0,r.ripemd160=r.HmacSHA256=r.sha512=r.sha256=r.sha1=void 0;var i=n(e("create-hash")),s=n(e("create-hmac"));function n(e){return e&&e.__esModule?e:{default:e}}r.sha1=function(e,t){return(0,i.default)("sha1").update(e).digest(t)},r.sha256=function(e,t){return(0,i.default)("sha256").update(e).digest(t)},r.sha512=function(e,t){return(0,i.default)("sha512").update(e).digest(t)},r.HmacSHA256=function(e,t){return(0,s.default)("sha256",t).update(e).digest()},r.ripemd160=function(e){return(0,i.default)("rmd160").update(e).digest()}},{"create-hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hash/browser.js","create-hmac":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hmac/browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/signature.js":[function(e,t,r){"use strict";r.__esModule=!0;var h=e("./ecdsa"),i=e("./hash"),s=e("ecurve"),n=a(e("assert")),c=a(e("bigi")),o=a(e("./PublicKey"));function a(e){return e&&e.__esModule?e:{default:e}}var l=(0,s.getCurveByName)("secp256k1"),d=e("safe-buffer").Buffer,f=function(){function u(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.r=e,this.s=t,this.i=r,n.default.equal(null!=this.r,!0,"Missing parameter"),n.default.equal(null!=this.s,!0,"Missing parameter"),n.default.equal(null!=this.i,!0,"Missing parameter")}return u.fromBuffer=function(e){var t;return n.default.equal(e.length,65,"Invalid signature length"),t=e.readUInt8(0),n.default.equal(t-27,t-27&7,"Invalid signature parameter"),new u(c.default.fromBuffer(e.slice(1,33)),c.default.fromBuffer(e.slice(33)),t)},u.prototype.toBuffer=function(){var e;return(e=d.alloc(65)).writeUInt8(this.i,0),this.r.toBuffer(32).copy(e,1),this.s.toBuffer(32).copy(e,33),e},u.prototype.recoverPublicKeyFromBuffer=function(e){return this.recoverPublicKey((0,i.sha256)(e))},u.prototype.recoverPublicKey=function(e){var t,r,i=void 0;return r=c.default.fromBuffer(e),i=this.i,i-=27,i&=3,t=(0,h.recoverPubKey)(l,r,this,i),o.default.fromPoint(t)},u.signBuffer=function(e,t){var r=(0,i.sha256)(e);return u.signBufferSha256(r,t)},u.signBufferSha256=function(e,t){if(32!==e.length||!d.isBuffer(e))throw new Error("buf_sha256: 32 byte buffer requred");var r,i,s,n,o,a,f;for(n=null,f=0,i=c.default.fromBuffer(e);;){if(a=(r=(s=(0,h.sign)(l,e,t.d,f++)).toDER())[5+(o=r[3])],32===o&&32===a){n=(0,h.calcPubKeyRecoveryParam)(l,i,s,t.toPublicKey().Q),n+=4,n+=27;break}f%10==0&&console.log("WARN: "+f+" attempts to find canonical signature")}return new u(s.r,s.s,n)},u.sign=function(e,t){return u.signBuffer(d.from(e),t)},u.prototype.verifyBuffer=function(e,t){var r=(0,i.sha256)(e);return this.verifyHash(r,t)},u.prototype.verifyHash=function(e,t){return n.default.equal(e.length,32,"A SHA 256 should be 32 bytes long, instead got "+e.length),(0,h.verify)(l,e,{r:this.r,s:this.s},t.Q)},u.prototype.toByteBuffer=function(){var e;return e=new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY,ByteBuffer.LITTLE_ENDIAN),this.appendByteBuffer(e),e.copy(0,e.offset)},u.fromHex=function(e){return u.fromBuffer(d.from(e,"hex"))},u.prototype.toHex=function(){return this.toBuffer().toString("hex")},u.signHex=function(e,t){var r;return r=d.from(e,"hex"),u.signBuffer(r,t)},u.prototype.verifyHex=function(e,t){var r;return r=d.from(e,"hex"),this.verifyBuffer(r,t)},u}();r.default=f,t.exports=r.default},{"./PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","./ecdsa":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/ecdsa.js","./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/hash.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js",ecurve:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/index.js":[function(e,t,r){"use strict";r.__esModule=!0,r.SerializerValidation=r.template=r.ops=r.types=r.fp=r.Serializer=void 0;var i=u(e("./src/serializer")),s=u(e("./src/FastParser")),n=u(e("./src/types")),o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./src/operations")),a=u(e("./src/template")),f=u(e("./src/SerializerValidation"));function u(e){return e&&e.__esModule?e:{default:e}}r.Serializer=i.default,r.fp=s.default,r.types=n.default,r.ops=o,r.template=a.default,r.SerializerValidation=f.default},{"./src/FastParser":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/FastParser.js","./src/SerializerValidation":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/SerializerValidation.js","./src/operations":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/operations.js","./src/serializer":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/serializer.js","./src/template":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/template.js","./src/types":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/types.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/FastParser.js":[function(e,t,r){"use strict";r.__esModule=!0;var i,s=e("../../ecc/src/PublicKey"),n=(i=s)&&i.__esModule?i:{default:i};var o=e("safe-buffer").Buffer,a=function(){function i(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i)}return i.fixed_data=function(e,t,r){if(e){if(!r){var i=e.copy(e.offset,e.offset+t);return e.skip(t),o.from(i.toBinary(),"binary")}var s=r.slice(0,t).toString("binary");for(e.append(s,"binary");t-- >s.length;)e.writeUint8(0)}},i.public_key=function(e,t){if(e){if(!t)return r=i.fixed_data(e,33),n.default.fromBuffer(r);var r=t.toBuffer();e.append(r.toString("binary"),"binary")}},i.ripemd160=function(e,t){if(e)return t?void i.fixed_data(e,20,t):i.fixed_data(e,20)},i.time_point_sec=function(e,t){return t?(t=Math.ceil(t/1e3),void e.writeInt32(t)):(t=e.readInt32(),new Date(1e3*t))},i}();r.default=a,t.exports=r.default},{"../../ecc/src/PublicKey":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/src/PublicKey.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/SerializerValidation.js":[function(e,t,r){"use strict";r.__esModule=!0;var i,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=e("bytebuffer"),o=e("../../chain/src/ChainTypes"),a=(i=o)&&i.__esModule?i:{default:i};var f=9007199254740991,u=-9007199254740991,h={is_empty:function(e){return null==e},required:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(this.is_empty(e))throw new Error("value required "+t+" "+e);return e},require_long:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(!n.Long.isLong(e))throw new Error("Long value required "+t+" "+e);return e},string:function(e){if(this.is_empty(e))return e;if("string"!=typeof e)throw new Error("string required: "+e);return e},number:function(e){if(this.is_empty(e))return e;if("number"!=typeof e)throw new Error("number required: "+e);return e},whole_number:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(this.is_empty(e))return e;if(/\./.test(e))throw new Error("whole number required "+t+" "+e);return e},unsigned:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(this.is_empty(e))return e;if(/-/.test(e))throw new Error("unsigned required "+t+" "+e);return e},is_digits:function(e){return"numeric"==typeof e||/^[0-9]+$/.test(e)},to_number:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return this.is_empty(e)?e:(this.no_overflow53(e,t),"number"==typeof e?e:parseInt(e))},to_long:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return this.is_empty(e)?e:n.Long.isLong(e)?e:(this.no_overflow64(e,t,r),"number"==typeof e&&(e=""+e),n.Long.fromString(e,r))},to_string:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(this.is_empty(e))return e;if("string"==typeof e)return e;if("number"==typeof e)return this.no_overflow53(e,t),""+e;if(n.Long.isLong(e))return e.toString();throw"unsupported type "+t+": ("+(void 0===e?"undefined":s(e))+") "+e},require_test:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";if(this.is_empty(t))return t;if(!e.test(t))throw new Error("unmatched "+e+" "+r+" "+t);return t},require_match:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";if(this.is_empty(t))return t;var i=t.match(e);if(null===i)throw new Error("unmatched "+e+" "+r+" "+t);return i},require_object_id:function(e,t){return require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,e,t)},require_range:function(e,t,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"";if(this.is_empty(r))return r;this.to_number(r);if(r<e||t<r)throw new Error("out of range "+r+" "+i+" "+r);return r},require_object_type:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1],r=arguments[2],i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"";if(this.is_empty(r))return r;var s=a.default.object_type[t];if(!s)throw new Error("Unknown object type "+t+" "+i+" "+r);if(!new RegExp(e+"."+s+".[0-9]+$").test(r))throw new Error("Expecting "+t+" in format "+e+"."+s+".[0-9]+ instead of "+r+" "+i+" "+r);return r},get_instance:function(e,t,r,i){return this.is_empty(r)?r:(this.require_object_type(e,t,r,i),this.to_number(r.split(".")[2]))},require_relative_type:function(e,t,r){return this.require_object_type(0,e,t,r),t},get_relative_instance:function(e,t,r){return this.is_empty(t)?t:(this.require_object_type(0,e,t,r),this.to_number(t.split(".")[2]))},require_protocol_type:function(e,t,r){return this.require_object_type(1,e,t,r),t},get_protocol_instance:function(e,t,r){return this.is_empty(t)?t:(this.require_object_type(1,e,t,r),this.to_number(t.split(".")[2]))},get_protocol_type:function(e,t){if(this.is_empty(e))return e;this.require_object_id(e,t);var r=e.split(".");return this.to_number(r[1])},get_protocol_type_name:function(e,t){if(this.is_empty(e))return e;var r=this.get_protocol_type(e,t);return Object.keys(a.default.object_type)[r]},require_implementation_type:function(e,t,r){return this.require_object_type(2,e,t,r),t},get_implementation_instance:function(e,t,r){return this.is_empty(t)?t:(this.require_object_type(2,e,t,r),this.to_number(t.split(".")[2]))},no_overflow53:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if("number"!=typeof e)if("string"!=typeof e){if(!n.Long.isLong(e))throw"unsupported type "+t+": ("+(void 0===e?"undefined":s(e))+") "+e;this.no_overflow53(e.toInt(),t)}else{parseInt(e);if(f<e||e<u)throw new Error("overflow "+t+" "+e)}else if(f<e||e<u)throw new Error("overflow "+t+" "+e)},no_overflow64:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(!n.Long.isLong(e))if(void 0===e.t||void 0===e.s)if("string"!=typeof e){if("number"!=typeof e)throw"unsupported type "+t+": ("+(void 0===e?"undefined":s(e))+") "+e;if(f<e||e<u)throw new Error("overflow "+t+" "+e)}else{for(e=e.replace(/^0+/,"");/0$/.test(e);)e=e.substring(0,e.length-1);if(/\.$/.test(e)&&(e=e.substring(0,e.length-1)),""===e&&(e="0"),n.Long.fromString(e,r).toString()!==e.trim())throw new Error("overflow "+t+" "+e)}else this.no_overflow64(e.toString(),t,r)}};r.default=h,t.exports=r.default},{"../../chain/src/ChainTypes":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ChainTypes.js",bytebuffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bytebuffer/dist/bytebuffer.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/error_with_cause.js":[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.message=e,(null!=t?t.message:void 0)&&(this.message="cause\t"+t.message+"\t"+this.message);var r="";(null!=t?t.stack:void 0)&&(r="caused by\n\t"+t.stack+"\t"+r),this.stack=this.message+"\n"+r}return i.throw=function(e,t){var r=e;throw(null!=t?t.message:void 0)&&(r+="\t cause: "+t.message+" "),(null!=t?t.stack:void 0)&&(r+="\n stack: "+t.stack+" "),new Error(r)},i}();r.default=i,t.exports=r.default},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/operations.js":[function(e,t,r){"use strict";r.__esModule=!0,r.stealth_memo_data=r.signed_transaction=r.transaction=r.asset_update_issuer=r.asset_claim_pool=r.execute_bid=r.bid_collateral=r.fba_distribute=r.asset_claim_fees=r.asset_settle_cancel=r.transfer_from_blind=r.blind_transfer=r.blind_input=r.transfer_to_blind=r.blind_output=r.stealth_confirmation=r.override_transfer=r.balance_claim=r.assert=r.block_id_predicate=r.asset_symbol_eq_lit_predicate=r.account_name_eq_lit_predicate=r.custom=r.worker_create=r.burn_worker_initializer=r.vesting_balance_worker_initializer=r.refund_worker_initializer=r.vesting_balance_withdraw=r.vesting_balance_create=void 0,r.cdd_vesting_policy_initializer=r.linear_vesting_policy_initializer=r.committee_member_update_global_parameters=r.chain_parameters=r.committee_member_update=r.committee_member_create=r.withdraw_permission_delete=r.withdraw_permission_claim=r.withdraw_permission_update=r.withdraw_permission_create=r.proposal_delete=r.proposal_update=r.proposal_create=r.op_wrapper=r.witness_update=r.witness_create=r.asset_publish_feed=r.price_feed=r.asset_global_settle=r.asset_settle=r.asset_fund_fee_pool=r.asset_reserve=r.asset_issue=r.asset_update_feed_producers=r.asset_update_bitasset=r.asset_update=r.asset_create=r.bitasset_options=r.asset_options=r.price=r.account_transfer=r.account_upgrade=r.account_whitelist=r.account_update=r.account_create=r.account_options=r.authority=r.fill_order=r.call_order_update=r.limit_order_cancel=r.limit_order_create=r.transfer=r.memo_data=r.signed_block_header=r.block_header=r.signed_block=r.processed_transaction=r.asset=r.void_result=r.fee_schedule=r.asset_update_issuer_operation_fee_parameters=r.asset_claim_pool_operation_fee_parameters=r.execute_bid_operation_fee_parameters=r.bid_collateral_operation_fee_parameters=r.fba_distribute_operation_fee_parameters=r.asset_claim_fees_operation_fee_parameters=r.asset_settle_cancel_operation_fee_parameters=r.transfer_from_blind_operation_fee_parameters=r.blind_transfer_operation_fee_parameters=r.transfer_to_blind_operation_fee_parameters=r.override_transfer_operation_fee_parameters=r.balance_claim_operation_fee_parameters=r.assert_operation_fee_parameters=r.custom_operation_fee_parameters=r.worker_create_operation_fee_parameters=r.vesting_balance_withdraw_operation_fee_parameters=r.vesting_balance_create_operation_fee_parameters=r.committee_member_update_global_parameters_operation_fee_parameters=r.committee_member_update_operation_fee_parameters=r.committee_member_create_operation_fee_parameters=r.withdraw_permission_delete_operation_fee_parameters=r.withdraw_permission_claim_operation_fee_parameters=r.withdraw_permission_update_operation_fee_parameters=r.withdraw_permission_create_operation_fee_parameters=r.proposal_delete_operation_fee_parameters=r.proposal_update_operation_fee_parameters=r.proposal_create_operation_fee_parameters=r.witness_update_operation_fee_parameters=r.witness_create_operation_fee_parameters=r.asset_publish_feed_operation_fee_parameters=r.asset_global_settle_operation_fee_parameters=r.asset_settle_operation_fee_parameters=r.asset_fund_fee_pool_operation_fee_parameters=r.asset_reserve_operation_fee_parameters=r.asset_issue_operation_fee_parameters=r.asset_update_feed_producers_operation_fee_parameters=r.asset_update_bitasset_operation_fee_parameters=r.asset_update_operation_fee_parameters=r.asset_create_operation_fee_parameters=r.account_transfer_operation_fee_parameters=r.account_upgrade_operation_fee_parameters=r.account_whitelist_operation_fee_parameters=r.account_update_operation_fee_parameters=r.account_create_operation_fee_parameters=r.fill_order_operation_fee_parameters=r.call_order_update_operation_fee_parameters=r.limit_order_cancel_operation_fee_parameters=r.limit_order_create_operation_fee_parameters=r.transfer_operation_fee_parameters=r.operation=void 0;var i=n(e("./types")),s=n(e("./serializer"));function n(e){return e&&e.__esModule?e:{default:e}}var o=i.default.uint8,a=i.default.uint16,f=i.default.uint32,u=i.default.int64,h=i.default.uint64,c=i.default.string,l=i.default.bytes,d=i.default.bool,p=i.default.array,_=i.default.protocol_id_type,g=i.default.object_id_type,m=i.default.vote_id,v=i.default.future_extensions,b=i.default.static_variant,y=i.default.map,w=i.default.set,j=i.default.public_key,B=i.default.address,E=i.default.time_point_sec,x=i.default.optional;v=i.default.void;var D=b();r.operation=D;var T=function(e,t){return new s.default(e,t)},S=b([r.transfer_operation_fee_parameters=new T("transfer_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.limit_order_create_operation_fee_parameters=new T("limit_order_create_operation_fee_parameters",{fee:h}),r.limit_order_cancel_operation_fee_parameters=new T("limit_order_cancel_operation_fee_parameters",{fee:h}),r.call_order_update_operation_fee_parameters=new T("call_order_update_operation_fee_parameters",{fee:h}),r.fill_order_operation_fee_parameters=new T("fill_order_operation_fee_parameters"),r.account_create_operation_fee_parameters=new T("account_create_operation_fee_parameters",{basic_fee:h,premium_fee:h,price_per_kbyte:f}),r.account_update_operation_fee_parameters=new T("account_update_operation_fee_parameters",{fee:u,price_per_kbyte:f}),r.account_whitelist_operation_fee_parameters=new T("account_whitelist_operation_fee_parameters",{fee:u}),r.account_upgrade_operation_fee_parameters=new T("account_upgrade_operation_fee_parameters",{membership_annual_fee:h,membership_lifetime_fee:h}),r.account_transfer_operation_fee_parameters=new T("account_transfer_operation_fee_parameters",{fee:h}),r.asset_create_operation_fee_parameters=new T("asset_create_operation_fee_parameters",{symbol3:h,symbol4:h,long_symbol:h,price_per_kbyte:f}),r.asset_update_operation_fee_parameters=new T("asset_update_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.asset_update_bitasset_operation_fee_parameters=new T("asset_update_bitasset_operation_fee_parameters",{fee:h}),r.asset_update_feed_producers_operation_fee_parameters=new T("asset_update_feed_producers_operation_fee_parameters",{fee:h}),r.asset_issue_operation_fee_parameters=new T("asset_issue_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.asset_reserve_operation_fee_parameters=new T("asset_reserve_operation_fee_parameters",{fee:h}),r.asset_fund_fee_pool_operation_fee_parameters=new T("asset_fund_fee_pool_operation_fee_parameters",{fee:h}),r.asset_settle_operation_fee_parameters=new T("asset_settle_operation_fee_parameters",{fee:h}),r.asset_global_settle_operation_fee_parameters=new T("asset_global_settle_operation_fee_parameters",{fee:h}),r.asset_publish_feed_operation_fee_parameters=new T("asset_publish_feed_operation_fee_parameters",{fee:h}),r.witness_create_operation_fee_parameters=new T("witness_create_operation_fee_parameters",{fee:h}),r.witness_update_operation_fee_parameters=new T("witness_update_operation_fee_parameters",{fee:u}),r.proposal_create_operation_fee_parameters=new T("proposal_create_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.proposal_update_operation_fee_parameters=new T("proposal_update_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.proposal_delete_operation_fee_parameters=new T("proposal_delete_operation_fee_parameters",{fee:h}),r.withdraw_permission_create_operation_fee_parameters=new T("withdraw_permission_create_operation_fee_parameters",{fee:h}),r.withdraw_permission_update_operation_fee_parameters=new T("withdraw_permission_update_operation_fee_parameters",{fee:h}),r.withdraw_permission_claim_operation_fee_parameters=new T("withdraw_permission_claim_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.withdraw_permission_delete_operation_fee_parameters=new T("withdraw_permission_delete_operation_fee_parameters",{fee:h}),r.committee_member_create_operation_fee_parameters=new T("committee_member_create_operation_fee_parameters",{fee:h}),r.committee_member_update_operation_fee_parameters=new T("committee_member_update_operation_fee_parameters",{fee:h}),r.committee_member_update_global_parameters_operation_fee_parameters=new T("committee_member_update_global_parameters_operation_fee_parameters",{fee:h}),r.vesting_balance_create_operation_fee_parameters=new T("vesting_balance_create_operation_fee_parameters",{fee:h}),r.vesting_balance_withdraw_operation_fee_parameters=new T("vesting_balance_withdraw_operation_fee_parameters",{fee:h}),r.worker_create_operation_fee_parameters=new T("worker_create_operation_fee_parameters",{fee:h}),r.custom_operation_fee_parameters=new T("custom_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.assert_operation_fee_parameters=new T("assert_operation_fee_parameters",{fee:h}),r.balance_claim_operation_fee_parameters=new T("balance_claim_operation_fee_parameters"),r.override_transfer_operation_fee_parameters=new T("override_transfer_operation_fee_parameters",{fee:h,price_per_kbyte:f}),r.transfer_to_blind_operation_fee_parameters=new T("transfer_to_blind_operation_fee_parameters",{fee:h,price_per_output:f}),r.blind_transfer_operation_fee_parameters=new T("blind_transfer_operation_fee_parameters",{fee:h,price_per_output:f}),r.transfer_from_blind_operation_fee_parameters=new T("transfer_from_blind_operation_fee_parameters",{fee:h}),r.asset_settle_cancel_operation_fee_parameters=new T("asset_settle_cancel_operation_fee_parameters"),r.asset_claim_fees_operation_fee_parameters=new T("asset_claim_fees_operation_fee_parameters",{fee:h}),r.fba_distribute_operation_fee_parameters=new T("fba_distribute_operation_fee_parameters"),r.bid_collateral_operation_fee_parameters=new T("bid_collateral_operation_fee_parameters",{fee:h}),r.execute_bid_operation_fee_parameters=new T("execute_bid_operation_fee_parameters"),r.asset_claim_pool_operation_fee_parameters=new T("asset_claim_pool_operation_fee_parameters",{fee:h}),r.asset_update_issuer_operation_fee_parameters=new T("asset_update_issuer_operation_fee_parameters",{fee:h})]),k=r.fee_schedule=new T("fee_schedule",{parameters:w(S),scale:f}),I=r.void_result=new T("void_result"),A=r.asset=new T("asset",{amount:u,asset_id:_("asset")}),L=b([I,g,A]),C=r.processed_transaction=new T("processed_transaction",{ref_block_num:a,ref_block_prefix:f,expiration:E,operations:p(D),extensions:w(v),signatures:p(l(65)),operation_results:p(L)}),O=(r.signed_block=new T("signed_block",{previous:l(20),timestamp:E,witness:_("witness"),transaction_merkle_root:l(20),extensions:w(v),witness_signature:l(65),transactions:p(C)}),r.block_header=new T("block_header",{previous:l(20),timestamp:E,witness:_("witness"),transaction_merkle_root:l(20),extensions:w(v)}),r.signed_block_header=new T("signed_block_header",{previous:l(20),timestamp:E,witness:_("witness"),transaction_merkle_root:l(20),extensions:w(v),witness_signature:l(65)}),r.memo_data=new T("memo_data",{from:j,to:j,nonce:h,message:l()})),U=r.transfer=new T("transfer",{fee:A,from:_("account"),to:_("account"),amount:A,memo:x(O),extensions:w(v)}),M=r.limit_order_create=new T("limit_order_create",{fee:A,seller:_("account"),amount_to_sell:A,min_to_receive:A,expiration:E,fill_or_kill:d,extensions:w(v)}),q=r.limit_order_cancel=new T("limit_order_cancel",{fee:A,fee_paying_account:_("account"),order:_("limit_order"),extensions:w(v)}),R=r.call_order_update=new T("call_order_update",{fee:A,funding_account:_("account"),delta_collateral:A,delta_debt:A,extensions:w(v)}),z=r.fill_order=new T("fill_order",{fee:A,order_id:g,account_id:_("account"),pays:A,receives:A}),N=r.authority=new T("authority",{weight_threshold:f,account_auths:y(_("account"),a),key_auths:y(j,a),address_auths:y(B,a)}),P=r.account_options=new T("account_options",{memo_key:j,voting_account:_("account"),num_witness:a,num_committee:a,votes:w(m),extensions:w(v)}),F=r.account_create=new T("account_create",{fee:A,registrar:_("account"),referrer:_("account"),referrer_percent:a,name:c,owner:N,active:N,options:P,extensions:w(v)}),K=r.account_update=new T("account_update",{fee:A,account:_("account"),owner:x(N),active:x(N),new_options:x(P),extensions:w(v)}),H=r.account_whitelist=new T("account_whitelist",{fee:A,authorizing_account:_("account"),account_to_list:_("account"),new_listing:o,extensions:w(v)}),V=r.account_upgrade=new T("account_upgrade",{fee:A,account_to_upgrade:_("account"),upgrade_to_lifetime_member:d,extensions:w(v)}),W=r.account_transfer=new T("account_transfer",{fee:A,account_id:_("account"),new_owner:_("account"),extensions:w(v)}),Z=r.price=new T("price",{base:A,quote:A}),G=r.asset_options=new T("asset_options",{max_supply:u,market_fee_percent:a,max_market_fee:u,issuer_permissions:a,flags:a,core_exchange_rate:Z,whitelist_authorities:w(_("account")),blacklist_authorities:w(_("account")),whitelist_markets:w(_("asset")),blacklist_markets:w(_("asset")),description:c,extensions:w(v)}),J=r.bitasset_options=new T("bitasset_options",{feed_lifetime_sec:f,minimum_feeds:o,force_settlement_delay_sec:f,force_settlement_offset_percent:a,maximum_force_settlement_volume:a,short_backing_asset:_("asset"),extensions:w(v)}),Y=r.asset_create=new T("asset_create",{fee:A,issuer:_("account"),symbol:c,precision:o,common_options:G,bitasset_opts:x(J),is_prediction_market:d,extensions:w(v)}),X=r.asset_update=new T("asset_update",{fee:A,issuer:_("account"),asset_to_update:_("asset"),new_issuer:x(_("account")),new_options:G,extensions:w(v)}),Q=r.asset_update_bitasset=new T("asset_update_bitasset",{fee:A,issuer:_("account"),asset_to_update:_("asset"),new_options:J,extensions:w(v)}),$=r.asset_update_feed_producers=new T("asset_update_feed_producers",{fee:A,issuer:_("account"),asset_to_update:_("asset"),new_feed_producers:w(_("account")),extensions:w(v)}),ee=r.asset_issue=new T("asset_issue",{fee:A,issuer:_("account"),asset_to_issue:A,issue_to_account:_("account"),memo:x(O),extensions:w(v)}),te=r.asset_reserve=new T("asset_reserve",{fee:A,payer:_("account"),amount_to_reserve:A,extensions:w(v)}),re=r.asset_fund_fee_pool=new T("asset_fund_fee_pool",{fee:A,from_account:_("account"),asset_id:_("asset"),amount:u,extensions:w(v)}),ie=r.asset_settle=new T("asset_settle",{fee:A,account:_("account"),amount:A,extensions:w(v)}),se=r.asset_global_settle=new T("asset_global_settle",{fee:A,issuer:_("account"),asset_to_settle:_("asset"),settle_price:Z,extensions:w(v)}),ne=r.price_feed=new T("price_feed",{settlement_price:Z,maintenance_collateral_ratio:a,maximum_short_squeeze_ratio:a,core_exchange_rate:Z}),oe=r.asset_publish_feed=new T("asset_publish_feed",{fee:A,publisher:_("account"),asset_id:_("asset"),feed:ne,extensions:w(v)}),ae=r.witness_create=new T("witness_create",{fee:A,witness_account:_("account"),url:c,block_signing_key:j}),fe=r.witness_update=new T("witness_update",{fee:A,witness:_("witness"),witness_account:_("account"),new_url:x(c),new_signing_key:x(j)}),ue=r.op_wrapper=new T("op_wrapper",{op:D}),he=r.proposal_create=new T("proposal_create",{fee:A,fee_paying_account:_("account"),expiration_time:E,proposed_ops:p(ue),review_period_seconds:x(f),extensions:w(v)}),ce=r.proposal_update=new T("proposal_update",{fee:A,fee_paying_account:_("account"),proposal:_("proposal"),active_approvals_to_add:w(_("account")),active_approvals_to_remove:w(_("account")),owner_approvals_to_add:w(_("account")),owner_approvals_to_remove:w(_("account")),key_approvals_to_add:w(j),key_approvals_to_remove:w(j),extensions:w(v)}),le=r.proposal_delete=new T("proposal_delete",{fee:A,fee_paying_account:_("account"),using_owner_authority:d,proposal:_("proposal"),extensions:w(v)}),de=r.withdraw_permission_create=new T("withdraw_permission_create",{fee:A,withdraw_from_account:_("account"),authorized_account:_("account"),withdrawal_limit:A,withdrawal_period_sec:f,periods_until_expiration:f,period_start_time:E}),pe=r.withdraw_permission_update=new T("withdraw_permission_update",{fee:A,withdraw_from_account:_("account"),authorized_account:_("account"),permission_to_update:_("withdraw_permission"),withdrawal_limit:A,withdrawal_period_sec:f,period_start_time:E,periods_until_expiration:f}),_e=r.withdraw_permission_claim=new T("withdraw_permission_claim",{fee:A,withdraw_permission:_("withdraw_permission"),withdraw_from_account:_("account"),withdraw_to_account:_("account"),amount_to_withdraw:A,memo:x(O)}),ge=r.withdraw_permission_delete=new T("withdraw_permission_delete",{fee:A,withdraw_from_account:_("account"),authorized_account:_("account"),withdrawal_permission:_("withdraw_permission")}),me=r.committee_member_create=new T("committee_member_create",{fee:A,committee_member_account:_("account"),url:c}),ve=r.committee_member_update=new T("committee_member_update",{fee:A,committee_member:_("committee_member"),committee_member_account:_("account"),new_url:x(c)}),be=r.chain_parameters=new T("chain_parameters",{current_fees:k,block_interval:o,maintenance_interval:f,maintenance_skip_slots:o,committee_proposal_review_period:f,maximum_transaction_size:f,maximum_block_size:f,maximum_time_until_expiration:f,maximum_proposal_lifetime:f,maximum_asset_whitelist_authorities:o,maximum_asset_feed_publishers:o,maximum_witness_count:a,maximum_committee_count:a,maximum_authority_membership:a,reserve_percent_of_fee:a,network_percent_of_fee:a,lifetime_referrer_percent_of_fee:a,cashback_vesting_period_seconds:f,cashback_vesting_threshold:u,count_non_member_votes:d,allow_non_member_whitelists:d,witness_pay_per_block:u,worker_budget_per_day:u,max_predicate_opcode:a,fee_liquidation_threshold:u,accounts_per_fee_scale:a,account_fee_scale_bitshifts:o,max_authority_depth:o,extensions:w(v)}),ye=r.committee_member_update_global_parameters=new T("committee_member_update_global_parameters",{fee:A,new_parameters:be}),we=b([r.linear_vesting_policy_initializer=new T("linear_vesting_policy_initializer",{begin_timestamp:E,vesting_cliff_seconds:f,vesting_duration_seconds:f}),r.cdd_vesting_policy_initializer=new T("cdd_vesting_policy_initializer",{start_claim:E,vesting_seconds:f})]),je=r.vesting_balance_create=new T("vesting_balance_create",{fee:A,creator:_("account"),owner:_("account"),amount:A,policy:we}),Be=r.vesting_balance_withdraw=new T("vesting_balance_withdraw",{fee:A,vesting_balance:_("vesting_balance"),owner:_("account"),amount:A}),Ee=b([r.refund_worker_initializer=new T("refund_worker_initializer"),r.vesting_balance_worker_initializer=new T("vesting_balance_worker_initializer",{pay_vesting_period_days:a}),r.burn_worker_initializer=new T("burn_worker_initializer")]),xe=r.worker_create=new T("worker_create",{fee:A,owner:_("account"),work_begin_date:E,work_end_date:E,daily_pay:u,name:c,url:c,initializer:Ee}),De=r.custom=new T("custom",{fee:A,payer:_("account"),required_auths:w(_("account")),id:a,data:l()}),Te=b([r.account_name_eq_lit_predicate=new T("account_name_eq_lit_predicate",{account_id:_("account"),name:c}),r.asset_symbol_eq_lit_predicate=new T("asset_symbol_eq_lit_predicate",{asset_id:_("asset"),symbol:c}),r.block_id_predicate=new T("block_id_predicate",{id:l(20)})]),Se=r.assert=new T("assert",{fee:A,fee_paying_account:_("account"),predicates:p(Te),required_auths:w(_("account")),extensions:w(v)}),ke=r.balance_claim=new T("balance_claim",{fee:A,deposit_to_account:_("account"),balance_to_claim:_("balance"),balance_owner_key:j,total_claimed:A}),Ie=r.override_transfer=new T("override_transfer",{fee:A,issuer:_("account"),from:_("account"),to:_("account"),amount:A,memo:x(O),extensions:w(v)}),Ae=r.stealth_confirmation=new T("stealth_confirmation",{one_time_key:j,to:x(j),encrypted_memo:l()}),Le=r.blind_output=new T("blind_output",{commitment:l(33),range_proof:l(),owner:N,stealth_memo:x(Ae)}),Ce=r.transfer_to_blind=new T("transfer_to_blind",{fee:A,amount:A,from:_("account"),blinding_factor:l(32),outputs:p(Le)}),Oe=r.blind_input=new T("blind_input",{commitment:l(33),owner:N}),Ue=r.blind_transfer=new T("blind_transfer",{fee:A,inputs:p(Oe),outputs:p(Le)}),Me=r.transfer_from_blind=new T("transfer_from_blind",{fee:A,amount:A,to:_("account"),blinding_factor:l(32),inputs:p(Oe)}),qe=r.asset_settle_cancel=new T("asset_settle_cancel",{fee:A,settlement:_("force_settlement"),account:_("account"),amount:A,extensions:w(v)}),Re=r.asset_claim_fees=new T("asset_claim_fees",{fee:A,issuer:_("account"),amount_to_claim:A,extensions:w(v)}),ze=r.fba_distribute=new T("fba_distribute",{fee:A,account_id:_("account"),fba_id:_("fba_accumulator"),amount:u}),Ne=r.bid_collateral=new T("bid_collateral",{fee:A,bidder:_("account"),additional_collateral:A,debt_covered:A,extensions:w(v)}),Pe=r.execute_bid=new T("execute_bid",{fee:A,bidder:_("account"),debt:A,collateral:A}),Fe=r.asset_claim_pool=new T("asset_claim_pool",{fee:A,issuer:_("account"),asset_id:_("asset"),amount_to_claim:A,extensions:w(v)}),Ke=r.asset_update_issuer=new T("asset_update_issuer",{fee:A,issuer:_("account"),asset_to_update:_("asset"),new_issuer:_("account"),extensions:w(v)});D.st_operations=[U,M,q,R,z,F,K,H,V,W,Y,X,Q,$,ee,te,re,ie,se,oe,ae,fe,he,ce,le,de,pe,_e,ge,me,ve,ye,je,Be,xe,De,Se,ke,Ie,Ce,Ue,Me,qe,Re,ze,Ne,Pe,Fe,Ke];r.transaction=new T("transaction",{ref_block_num:a,ref_block_prefix:f,expiration:E,operations:p(D),extensions:w(v)}),r.signed_transaction=new T("signed_transaction",{ref_block_num:a,ref_block_prefix:f,expiration:E,operations:p(D),extensions:w(v),signatures:p(l(65))}),r.stealth_memo_data=new T("stealth_memo_data",{from:x(j),amount:A,blinding_factor:l(32),commitment:l(33),check:f})},{"./serializer":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/serializer.js","./types":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/types.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/serializer.js":[function(i,s,n){(function(e){"use strict";n.__esModule=!0;var h=t(i("bytebuffer")),c=t(i("./error_with_cause"));function t(e){return e&&e.__esModule?e:{default:e}}var l=i("safe-buffer").Buffer,d=e.env.npm_config__graphene_serializer_hex_dump,r=function(){function u(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),this.operation_name=e,this.types=t,this.types&&(this.keys=Object.keys(this.types)),u.printDebug=!0}return u.prototype.fromByteBuffer=function(t){var e={},r=null;try{for(var i=this.keys,s=0;s<i.length;s++){r=i[s];var n=this.types[r];try{if(d)if(n.operation_name)console.error(n.operation_name);else{var o=t.offset;n.fromByteBuffer(t);var a=t.offset;t.offset=o;var f=t.copy(o,a);console.error(this.operation_name+"."+r+"\t",f.toHex())}e[r]=n.fromByteBuffer(t)}catch(e){throw u.printDebug&&(console.error("Error reading "+this.operation_name+"."+r+" in data:"),t.printDebug()),e}}}catch(e){c.default.throw(this.operation_name+"."+r,e)}return e},u.prototype.appendByteBuffer=function(e,r){var i=null;try{for(var t=this.keys,s=0;s<t.length;s++){i=t[s],this.types[i].appendByteBuffer(e,r[i])}}catch(t){try{c.default.throw(this.operation_name+"."+i+" = "+JSON.stringify(r[i]),t)}catch(e){c.default.throw(this.operation_name+"."+i+" = "+r[i],t)}}},u.prototype.fromObject=function(e){var t={},r=null;try{for(var i=this.keys,s=0;s<i.length;s++){r=i[s];var n=this.types[r],o=e[r],a=n.fromObject(o);t[r]=a}}catch(e){c.default.throw(this.operation_name+"."+r,e)}return t},u.prototype.toObject=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{use_default:!1,annotate:!1},r={},i=null;try{if(!this.types)return r;for(var s=this.keys,n=0;n<s.length;n++){i=s[n];var o=this.types[i],a=o.toObject(null!=e?e[i]:void 0,t);if(r[i]=a,d){var f=new h.default(h.default.DEFAULT_CAPACITY,h.default.LITTLE_ENDIAN);o.appendByteBuffer(f,null!=e?e[i]:void 0),f=f.copy(0,f.offset),console.error(this.operation_name+"."+i,f.toHex())}}}catch(e){c.default.throw(this.operation_name+"."+i,e)}return r},u.prototype.compare=function(e,t){var r=this.keys[0],i=this.types[r],s=e[r],n=t[r];if(i.compare)return i.compare(s,n);if("number"==typeof s&&"number"==typeof n)return s-n;var o=void 0;l.isBuffer(s)&&l.isBuffer(n)&&(o="hex");var a=s.toString(o),f=n.toString(o);return f<a?1:a<f?-1:0},u.prototype.fromHex=function(e){var t=h.default.fromHex(e,h.default.LITTLE_ENDIAN);return this.fromByteBuffer(t)},u.prototype.fromBuffer=function(e){var t=h.default.fromBinary(e.toString("binary"),h.default.LITTLE_ENDIAN);return this.fromByteBuffer(t)},u.prototype.toHex=function(e){return this.toByteBuffer(e).toHex()},u.prototype.toByteBuffer=function(e){var t=new h.default(h.default.DEFAULT_CAPACITY,h.default.LITTLE_ENDIAN);return this.appendByteBuffer(t,e),t.copy(0,t.offset)},u.prototype.toBuffer=function(e){return l.from(this.toByteBuffer(e).toBinary(),"binary")},u}();n.default=r,s.exports=n.default}).call(this,i("_process"))},{"./error_with_cause":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/error_with_cause.js",_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",bytebuffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bytebuffer/dist/bytebuffer.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/template.js":[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=e.toObject(void 0,{use_default:!0,annotate:!0});console.error(JSON.stringify(t,null,4)),t=e.toObject(void 0,{use_default:!0,annotate:!1}),console.error(JSON.stringify(t))},t.exports=r.default},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/types.js":[function(m,v,b){(function(e){"use strict";b.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=o(m("./SerializerValidation")),r=o(m("./FastParser")),n=o(m("../../chain/src/ChainTypes")),i=o(m("../../chain/src/ObjectId")),t=m("../../ecc"),s=m("bitsharesjs-ws");function o(e){return e&&e.__esModule?e:{default:e}}var f=m("safe-buffer").Buffer,u={},h=e.env.npm_config__graphene_serializer_hex_dump;u.uint8={fromByteBuffer:function(e){return e.readUint8()},appendByteBuffer:function(e,t){c.default.require_range(0,255,t,"uint8 "+t),e.writeUint8(t)},fromObject:function(e){return c.default.require_range(0,255,e,"uint8 "+e),e},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?0:(c.default.require_range(0,255,e,"uint8 "+e),parseInt(e))}},u.uint16={fromByteBuffer:function(e){return e.readUint16()},appendByteBuffer:function(e,t){c.default.require_range(0,65535,t,"uint16 "+t),e.writeUint16(t)},fromObject:function(e){return c.default.require_range(0,65535,e,"uint16 "+e),e},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?0:(c.default.require_range(0,65535,e,"uint16 "+e),parseInt(e))}},u.uint32={fromByteBuffer:function(e){return e.readUint32()},appendByteBuffer:function(e,t){c.default.require_range(0,4294967295,t,"uint32 "+t),e.writeUint32(t)},fromObject:function(e){return c.default.require_range(0,4294967295,e,"uint32 "+e),e},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?0:(c.default.require_range(0,4294967295,e,"uint32 "+e),parseInt(e))}};var l=-1*Math.pow(2,31),d=Math.pow(2,31)-1;u.varint32={fromByteBuffer:function(e){return e.readVarint32()},appendByteBuffer:function(e,t){c.default.require_range(l,d,t,"uint32 "+t),e.writeVarint32(t)},fromObject:function(e){return c.default.require_range(l,d,e,"uint32 "+e),e},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?0:(c.default.require_range(l,d,e,"uint32 "+e),parseInt(e))}},u.int64={fromByteBuffer:function(e){return e.readInt64()},appendByteBuffer:function(e,t){c.default.required(t),e.writeInt64(c.default.to_long(t))},fromObject:function(e){return c.default.required(e),c.default.to_long(e)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?"0":(c.default.required(e),c.default.to_long(e).toString())}},u.uint64={fromByteBuffer:function(e){return e.readUint64()},appendByteBuffer:function(e,t){e.writeUint64(c.default.to_long(c.default.unsigned(t),void 0,!0))},fromObject:function(e){return c.default.to_long(c.default.unsigned(e),void 0,!0)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?"0":c.default.to_long(e,void 0,!0).toString()}},u.string={fromByteBuffer:function(e){var t,r=e.readVarint32();return t=e.copy(e.offset,e.offset+r),e.skip(r),f.from(t.toBinary(),"binary")},appendByteBuffer:function(e,t){c.default.required(t),e.writeVarint32(t.length),e.append(t.toString("binary"),"binary")},fromObject:function(e){return c.default.required(e),f.from(e)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?"":e.toString()}},u.bytes=function(i){return{fromByteBuffer:function(e){if(void 0===i){var t,r=e.readVarint32();return t=e.copy(e.offset,e.offset+r),e.skip(r),f.from(t.toBinary(),"binary")}return t=e.copy(e.offset,e.offset+i),e.skip(i),f.from(t.toBinary(),"binary")},appendByteBuffer:function(e,t){c.default.required(t),"string"==typeof t&&(t=f.from(t,"hex")),void 0===i&&e.writeVarint32(t.length),e.append(t.toString("binary"),"binary")},fromObject:function(e){return c.default.required(e),f.isBuffer(e)?e:f.from(e,"hex")},toObject:function(e){if((1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e){return new Array(i).join("00")}return c.default.required(e),e.toString("hex")}}},u.bool={fromByteBuffer:function(e){return 1===e.readUint8()},appendByteBuffer:function(e,t){e.writeUint8(JSON.parse(t)?1:0)},fromObject:function(e){return!!JSON.parse(e)},toObject:function(e){return(!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==e)&&!!JSON.parse(e)}},u.void={fromByteBuffer:function(e){throw new Error("(void) undefined type")},appendByteBuffer:function(e,t){throw new Error("(void) undefined type")},fromObject:function(e){throw new Error("(void) undefined type")},toObject:function(e){if(!(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default||void 0!==e)throw new Error("(void) undefined type")}},u.array=function(n){return{fromByteBuffer:function(e){var t=e.readVarint32();h&&console.log("varint32 size = "+t.toString(16));for(var r=[],i=0;0<t?i<t:t<i;i++)r.push(n.fromByteBuffer(e));return g(r,n)},appendByteBuffer:function(e,t){c.default.required(t),t=g(t,n),e.writeVarint32(t.length);for(var r,i=0;i<t.length;i++)r=t[i],n.appendByteBuffer(e,r)},fromObject:function(e){c.default.required(e),e=g(e,n);for(var t,r=[],i=0;i<e.length;i++)t=e[i],r.push(n.fromObject(t));return r},toObject:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t.use_default&&void 0===e)return[n.toObject(e,t)];c.default.required(e),e=g(e,n);for(var r,i=[],s=0;s<e.length;s++)r=e[s],i.push(n.toObject(r,t));return i}}},u.time_point_sec={fromByteBuffer:function(e){return e.readUint32()},appendByteBuffer:function(e,t){"number"!=typeof t&&(t=u.time_point_sec.fromObject(t)),e.writeUint32(t)},fromObject:function(e){if(c.default.required(e),"number"==typeof e)return e;if(e.getTime)return Math.floor(e.getTime()/1e3);if("string"!=typeof e)throw new Error("Unknown date type: "+e);return/T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/.test(e)&&(e+="Z"),Math.floor(new Date(e).getTime()/1e3)},toObject:function(e){if((1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e)return new Date(0).toISOString().split(".")[0];if(c.default.required(e),"string"==typeof e)return e;if(e.getTime)return e.toISOString().split(".")[0];var t=parseInt(e);return c.default.require_range(0,4294967295,t,"uint32 "+e),new Date(1e3*t).toISOString().split(".")[0]}},u.set=function(n){return{validate:function(e){for(var t,r={},i=0;i<e.length;i++){var s;if(s=void 0===(t=e[i])?"undefined":a(t),0<=["string","number"].indexOf(s)){if(void 0!==r[t])throw new Error("duplicate (set)");r[t]=!0}}return g(e,n)},fromByteBuffer:function(r){var i=r.readVarint32();return h&&console.log("varint32 size = "+i.toString(16)),this.validate(function(){for(var e=[],t=0;0<i?t<i:i<t;t++)e.push(n.fromByteBuffer(r));return e}())},appendByteBuffer:function(e,t){t||(t=[]),e.writeVarint32(t.length);for(var r,i=this.validate(t),s=0;s<i.length;s++)r=i[s],n.appendByteBuffer(e,r)},fromObject:function(i){return i||(i=[]),this.validate(function(){for(var e,t=[],r=0;r<i.length;r++)e=i[r],t.push(n.fromObject(e));return t}())},toObject:function(i){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return s.use_default&&void 0===i?[n.toObject(i,s)]:(i||(i=[]),this.validate(function(){for(var e,t=[],r=0;r<i.length;r++)e=i[r],t.push(n.toObject(e,s));return t}()))}}},u.fixed_array=function(u,h){return{fromByteBuffer:function(e){var t,r,i;for(i=[],t=0,r=u;t<r;t+=1)i.push(h.fromByteBuffer(e));return g(i,h)},appendByteBuffer:function(e,t){var r,i,s;for(0!==u&&(c.default.required(t),t=g(t,h)),r=i=0,s=u;i<s;r=i+=1)h.appendByteBuffer(e,t[r])},fromObject:function(e){var t,r,i,s;for(0!==u&&c.default.required(e),s=[],t=r=0,i=u;r<i;t=r+=1)s.push(h.fromObject(e[t]));return s},toObject:function(e,t){var r,i,s,n,o,a,f;if(null==t&&(t={}),t.use_default&&void 0===e){for(a=[],r=i=0,n=u;i<n;r=i+=1)a.push(h.toObject(void 0,t));return a}for(0!==u&&c.default.required(e),f=[],r=s=0,o=u;s<o;r=s+=1)f.push(h.toObject(e[r],t));return f}}};u.protocol_id_type=function(e){return c.default.required(e,"name"),i=n.default.reserved_spaces.protocol_ids,s=e,c.default.required(i,"reserved_spaces"),c.default.required(s,"object_type"),{fromByteBuffer:function(e){return e.readVarint32()},appendByteBuffer:function(e,t){c.default.required(t),void 0!==t.resolve&&(t=t.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(t)&&(t=c.default.get_instance(i,s,t)),e.writeVarint32(c.default.to_number(t))},fromObject:function(e){return c.default.required(e),void 0!==e.resolve&&(e=e.resolve),c.default.is_digits(e)?c.default.to_number(e):c.default.get_instance(i,s,e)},toObject:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.default.object_type[s];return t.use_default&&void 0===e?i+"."+r+".0":(c.default.required(e),void 0!==e.resolve&&(e=e.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(e)&&(e=c.default.get_instance(i,s,e)),i+"."+r+"."+e)}};var i,s},u.object_id_type={fromByteBuffer:function(e){return i.default.fromByteBuffer(e)},appendByteBuffer:function(e,t){c.default.required(t),void 0!==t.resolve&&(t=t.resolve),(t=i.default.fromString(t)).appendByteBuffer(e)},fromObject:function(e){return c.default.required(e),void 0!==e.resolve&&(e=e.resolve),i.default.fromString(e)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?"0.0.0":(c.default.required(e),void 0!==e.resolve&&(e=e.resolve),(e=i.default.fromString(e)).toString())}},u.vote_id={TYPE:255,ID:4294967040,fromByteBuffer:function(e){var t=e.readUint32();return{type:t&this.TYPE,id:t&this.ID}},appendByteBuffer:function(e,t){c.default.required(t),"string"===t&&(t=u.vote_id.fromObject(t));var r=t.id<<8|t.type;e.writeUint32(r)},fromObject:function(e){if(c.default.required(e,"(type vote_id)"),"object"===(void 0===e?"undefined":a(e)))return c.default.required(e.type,"type"),c.default.required(e.id,"id"),e;c.default.require_test(/^[0-9]+:[0-9]+$/,e,"vote_id format "+e);var t=e.split(":"),r=t[0],i=t[1];return c.default.require_range(0,255,r,"vote type "+e),c.default.require_range(0,16777215,i,"vote id "+e),{type:r,id:i}},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?"0:0":(c.default.required(e),"string"==typeof e&&(e=u.vote_id.fromObject(e)),e.type+":"+e.id)},compare:function(e,t){return"object"!==(void 0===e?"undefined":a(e))&&(e=u.vote_id.fromObject(e)),"object"!==(void 0===t?"undefined":a(t))&&(t=u.vote_id.fromObject(t)),parseInt(e.id)-parseInt(t.id)}},u.optional=function(i){return c.default.required(i,"st_operation"),{fromByteBuffer:function(e){if(1===e.readUint8())return i.fromByteBuffer(e)},appendByteBuffer:function(e,t){null!=t?(e.writeUint8(1),i.appendByteBuffer(e,t)):e.writeUint8(0)},fromObject:function(e){if(void 0!==e)return i.fromObject(e)},toObject:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=t.use_default||void 0!==e?i.toObject(e,t):void 0;return t.annotate&&("object"===(void 0===r?"undefined":a(r))?r.__optional="parent is optional":r={__optional:r}),r}}},u.static_variant=function(e){return{nosort:!0,st_operations:e,fromByteBuffer:function(e){var t=e.readVarint32(),r=this.st_operations[t];return h&&console.error("static_variant id 0x"+t.toString(16)+" ("+t+")"),c.default.required(r,"operation "+t),[t,r.fromByteBuffer(e)]},appendByteBuffer:function(e,t){c.default.required(t);var r=t[0],i=this.st_operations[r];c.default.required(i,"operation "+r),e.writeVarint32(r),i.appendByteBuffer(e,t[1])},fromObject:function(e){c.default.required(e);var t=e[0],r=this.st_operations[t];return c.default.required(r,"operation "+t),[t,r.fromObject(e[1])]},toObject:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t.use_default&&void 0===e)return[0,this.st_operations[0].toObject(void 0,t)];c.default.required(e);var r=e[0],i=this.st_operations[r];return c.default.required(i,"operation "+r),[r,i.toObject(e[1],t)]}}},u.map=function(n,o){return{validate:function(e){if(!Array.isArray(e))throw new Error("expecting array");for(var t,r={},i=0;i<e.length;i++){var s;if(2!==(t=e[i]).length)throw new Error("expecting two elements");if(s=a(t[0]),0<=["number","string"].indexOf(s)){if(void 0!==r[t[0]])throw new Error("duplicate (map)");r[t[0]]=!0}}return g(e,n)},fromByteBuffer:function(e){for(var t=[],r=e.readVarint32(),i=0;0<r?i<r:r<i;i++)t.push([n.fromByteBuffer(e),o.fromByteBuffer(e)]);return this.validate(t)},appendByteBuffer:function(e,t){this.validate(t),e.writeVarint32(t.length);for(var r,i=0;i<t.length;i++)r=t[i],n.appendByteBuffer(e,r[0]),o.appendByteBuffer(e,r[1])},fromObject:function(e){c.default.required(e);for(var t,r=[],i=0;i<e.length;i++)t=e[i],r.push([n.fromObject(t[0]),o.fromObject(t[1])]);return this.validate(r)},toObject:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t.use_default&&void 0===e)return[[n.toObject(void 0,t),o.toObject(void 0,t)]];c.default.required(e),e=this.validate(e);for(var r,i=[],s=0;s<e.length;s++)r=e[s],i.push([n.toObject(r[0],t),o.toObject(r[1],t)]);return i}}},u.public_key={toPublic:function(e){return void 0!==e.resolve&&(e=e.resolve),null==e?e:e.Q?e:t.PublicKey.fromStringOrThrow(e)},fromByteBuffer:function(e){return r.default.public_key(e)},appendByteBuffer:function(e,t){c.default.required(t),r.default.public_key(e,u.public_key.toPublic(t))},fromObject:function(e){return c.default.required(e),e.Q?e:u.public_key.toPublic(e)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?s.ChainConfig.address_prefix+"859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM":(c.default.required(e),e.toString())},compare:function(e,t){return u.public_key.fromObject(e).toBlockchainAddress().compare(u.public_key.fromObject(t).toBlockchainAddress())}},u.address={_to_address:function(e){return c.default.required(e),e.addy?e:t.Address.fromString(e)},fromByteBuffer:function(e){return new t.Address(r.default.ripemd160(e))},appendByteBuffer:function(e,t){r.default.ripemd160(e,u.address._to_address(t).toBuffer())},fromObject:function(e){return u.address._to_address(e)},toObject:function(e){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).use_default&&void 0===e?s.ChainConfig.address_prefix+"664KmHxSuQyDsfwo4WEJvWpzg1QKdg67S":u.address._to_address(e).toString()},compare:function(e,t){return p(e.toString(),t.toString())}};var p=function(e,t){return t<e?1:e<t?-1:0},_=function(e){return Array.isArray(e)?e[0]:e},g=function(e,r){return r.nosort?e:r.compare?e.sort(function(e,t){return r.compare(_(e),_(t))}):e.sort(function(e,t){return"number"==typeof _(e)&&"number"==typeof _(t)?_(e)-_(t):f.isBuffer(_(e))&&f.isBuffer(_(t))?p(_(e).toString("hex"),_(t).toString("hex")):p(_(e).toString(),_(t).toString())})};b.default=u,v.exports=b.default}).call(this,m("_process"))},{"../../chain/src/ChainTypes":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ChainTypes.js","../../chain/src/ObjectId":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/chain/src/ObjectId.js","../../ecc":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/ecc/index.js","./FastParser":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/FastParser.js","./SerializerValidation":"/home/sigve/Dev/Bitshares/bitsharesjs/dist/serializer/src/SerializerValidation.js",_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js","bitsharesjs-ws":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js":[function(w,j,e){(function(t){"use strict";function n(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,s=0,n=Math.min(r,i);s<n;++s)if(e[s]!==t[s]){r=e[s],i=t[s];break}return r<i?-1:i<r?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var h=w("util/"),i=Object.prototype.hasOwnProperty,c=Array.prototype.slice,r="foo"===function(){}.name;function a(e){return Object.prototype.toString.call(e)}function f(e){return!o(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var u=j.exports=e,s=/\s*function\s+([^\(\s]*)\s*/;function l(e){if(h.isFunction(e)){if(r)return e.name;var t=e.toString().match(s);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(r||!h.isFunction(e))return h.inspect(e);var t=l(e);return"[Function"+(t?": "+t:"")+"]"}function _(e,t,r,i,s){throw new u.AssertionError({message:r,actual:e,expected:t,operator:i,stackStartFunction:s})}function e(e,t){e||_(e,!0,t,"==",u.ok)}function g(e,t,r,i){if(e===t)return!0;if(o(e)&&o(t))return 0===n(e,t);if(h.isDate(e)&&h.isDate(t))return e.getTime()===t.getTime();if(h.isRegExp(e)&&h.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&a(e)===a(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===n(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),function(e,t,r,i){if(null==e||null==t)return!1;if(h.isPrimitive(e)||h.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var s=m(e),n=m(t);if(s&&!n||!s&&n)return!1;if(s)return e=c.call(e),t=c.call(t),g(e,t,r);var o,a,f=y(e),u=y(t);if(f.length!==u.length)return!1;for(f.sort(),u.sort(),a=f.length-1;0<=a;a--)if(f[a]!==u[a])return!1;for(a=f.length-1;0<=a;a--)if(o=f[a],!g(e[o],t[o],r,i))return!1;return!0}(e,t,r,i))}return r?e===t:e==t}function m(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function b(e,t,r,i){var s;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(i=r,r=null),s=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!s&&_(s,r,"Missing expected exception"+i);var n="string"==typeof i,o=!e&&s&&!r;if((!e&&h.isError(s)&&n&&v(s,r)||o)&&_(s,r,"Got unwanted exception"+i),e&&s&&r&&!v(s,r)||!e&&s)throw s}u.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=d(p((t=this).actual),128)+" "+t.operator+" "+d(p(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||_;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var i=new Error;if(i.stack){var s=i.stack,n=l(r),o=s.indexOf("\n"+n);if(0<=o){var a=s.indexOf("\n",o+1);s=s.substring(a+1)}this.stack=s}}},h.inherits(u.AssertionError,Error),u.fail=_,u.ok=e,u.equal=function(e,t,r){e!=t&&_(e,t,r,"==",u.equal)},u.notEqual=function(e,t,r){e==t&&_(e,t,r,"!=",u.notEqual)},u.deepEqual=function(e,t,r){g(e,t,!1)||_(e,t,r,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,r){g(e,t,!0)||_(e,t,r,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,r){g(e,t,!1)&&_(e,t,r,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,r,i){g(t,r,!0)&&_(t,r,i,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,r){e!==t&&_(e,t,r,"===",u.strictEqual)},u.notStrictEqual=function(e,t,r){e===t&&_(e,t,r,"!==",u.notStrictEqual)},u.throws=function(e,t,r){b(!0,e,t,r)},u.doesNotThrow=function(e,t,r){b(!1,e,t,r)},u.ifError=function(e){if(e)throw e};var y=Object.keys||function(e){var t=[];for(var r in e)i.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/util.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/base-x/index.js":[function(e,t,r){var c=e("safe-buffer").Buffer;t.exports=function(f){for(var a={},u=f.length,h=f.charAt(0),e=0;e<f.length;e++){var t=f.charAt(e);if(void 0!==a[t])throw new TypeError(t+" is ambiguous");a[t]=e}function r(e){if(0===e.length)return c.allocUnsafe(0);for(var t=[0],r=0;r<e.length;r++){var i=a[e[r]];if(void 0===i)return;for(var s=0,n=i;s<t.length;++s)n+=t[s]*u,t[s]=255&n,n>>=8;for(;0<n;)t.push(255&n),n>>=8}for(var o=0;e[o]===h&&o<e.length-1;++o)t.push(0);return c.from(t.reverse())}return{encode:function(e){if(0===e.length)return"";for(var t=[0],r=0;r<e.length;++r){for(var i=0,s=e[r];i<t.length;++i)s+=t[i]<<8,t[i]=s%u,s=s/u|0;for(;0<s;)t.push(s%u),s=s/u|0}for(var n="",o=0;0===e[o]&&o<e.length-1;++o)n+=f[0];for(var a=t.length-1;0<=a;--a)n+=f[t[a]];return n},decodeUnsafe:r,decode:function(e){var t=r(e);if(t)return t;throw new Error("Non-base"+u+" character")}}}},{"safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/base64-js/index.js":[function(e,t,r){"use strict";r.byteLength=function(e){var t=d(e),r=t[0],i=t[1];return 3*(r+i)/4-i},r.toByteArray=function(e){for(var t,r=d(e),i=r[0],s=r[1],n=new l((u=i,h=s,3*(u+h)/4-h)),o=0,a=0<s?i-4:i,f=0;f<a;f+=4)t=c[e.charCodeAt(f)]<<18|c[e.charCodeAt(f+1)]<<12|c[e.charCodeAt(f+2)]<<6|c[e.charCodeAt(f+3)],n[o++]=t>>16&255,n[o++]=t>>8&255,n[o++]=255&t;var u,h;2===s&&(t=c[e.charCodeAt(f)]<<2|c[e.charCodeAt(f+1)]>>4,n[o++]=255&t);1===s&&(t=c[e.charCodeAt(f)]<<10|c[e.charCodeAt(f+1)]<<4|c[e.charCodeAt(f+2)]>>2,n[o++]=t>>8&255,n[o++]=255&t);return n},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],n=0,o=r-i;n<o;n+=16383)s.push(f(e,n,o<n+16383?o:n+16383));1===i?(t=e[r-1],s.push(a[t>>2]+a[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return s.join("")};for(var a=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,n=i.length;s<n;++s)a[s]=i[s],c[i.charCodeAt(s)]=s;function d(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function f(e,t,r){for(var i,s,n=[],o=t;o<r;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),n.push(a[(s=i)>>18&63]+a[s>>12&63]+a[s>>6&63]+a[63&s]);return n.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/bigi.js":[function(e,t,r){function y(e,t,r){if(!(this instanceof y))return new y(e,t,r);null!=e&&("number"==typeof e?this.fromNumber(e,t,r):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}var i=y.prototype;i.__bigi=e("../package.json").version,y.isBigInteger=function(e,t){return e&&e.__bigi&&(!t||e.__bigi===i.__bigi)},y.prototype.am=function(e,t,r,i,s,n){for(;0<=--n;){var o=t*this[e++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=67108863&o}return s},y.prototype.DB=26,y.prototype.DM=67108863;var s=y.prototype.DV=1<<26;y.prototype.FV=Math.pow(2,52),y.prototype.F1=26,y.prototype.F2=0;var n,o,a="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(n="0".charCodeAt(0),o=0;o<=9;++o)f[n++]=o;for(n="a".charCodeAt(0),o=10;o<36;++o)f[n++]=o;for(n="A".charCodeAt(0),o=10;o<36;++o)f[n++]=o;function u(e){return a.charAt(e)}function h(e,t){var r=f[e.charCodeAt(t)];return null==r?-1:r}function g(e){var t=new y;return t.fromInt(e),t}function w(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function m(e){this.m=e}function v(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function c(e,t){return e&t}function l(e,t){return e|t}function d(e,t){return e^t}function p(e,t){return e&~t}function _(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function j(){}function B(e){return e}function E(e){this.r2=new y,this.q3=new y,y.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}m.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},m.prototype.revert=function(e){return e},m.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},m.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},m.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},v.prototype.convert=function(e){var t=new y;return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0<t.compareTo(y.ZERO)&&this.m.subTo(t,t),t},v.prototype.revert=function(e){var t=new y;return e.copyTo(t),this.reduce(t),t},v.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],i=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},v.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},v.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},i.copyTo=function(e){for(var t=this.t-1;0<=t;--t)e[t]=this[t];e.t=this.t,e.s=this.s},i.fromInt=function(e){this.t=1,this.s=e<0?-1:0,0<e?this[0]=e:e<-1?this[0]=e+s:this.t=0},i.fromString=function(e,t){var r,i=this;if(16==t)r=4;else if(8==t)r=3;else if(256==t)r=8;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return void i.fromRadix(e,t);r=2}i.t=0,i.s=0;for(var s=e.length,n=!1,o=0;0<=--s;){var a=8==r?255&e[s]:h(e,s);a<0?"-"==e.charAt(s)&&(n=!0):(n=!1,0==o?i[i.t++]=a:o+r>i.DB?(i[i.t-1]|=(a&(1<<i.DB-o)-1)<<o,i[i.t++]=a>>i.DB-o):i[i.t-1]|=a<<o,(o+=r)>=i.DB&&(o-=i.DB))}8==r&&0!=(128&e[0])&&(i.s=-1,0<o&&(i[i.t-1]|=(1<<i.DB-o)-1<<o)),i.clamp(),n&&y.ZERO.subTo(i,i)},i.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},i.dlShiftTo=function(e,t){var r;for(r=this.t-1;0<=r;--r)t[r+e]=this[r];for(r=e-1;0<=r;--r)t[r]=0;t.t=this.t+e,t.s=this.s},i.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},i.lShiftTo=function(e,t){var r,i=this,s=e%i.DB,n=i.DB-s,o=(1<<n)-1,a=Math.floor(e/i.DB),f=i.s<<s&i.DM;for(r=i.t-1;0<=r;--r)t[r+a+1]=i[r]>>n|f,f=(i[r]&o)<<s;for(r=a-1;0<=r;--r)t[r]=0;t[a]=f,t.t=i.t+a+1,t.s=i.s,t.clamp()},i.rShiftTo=function(e,t){var r=this;t.s=r.s;var i=Math.floor(e/r.DB);if(i>=r.t)t.t=0;else{var s=e%r.DB,n=r.DB-s,o=(1<<s)-1;t[0]=r[i]>>s;for(var a=i+1;a<r.t;++a)t[a-i-1]|=(r[a]&o)<<n,t[a-i]=r[a]>>s;0<s&&(t[r.t-i-1]|=(r.s&o)<<n),t.t=r.t-i,t.clamp()}},i.subTo=function(e,t){for(var r=this,i=0,s=0,n=Math.min(e.t,r.t);i<n;)s+=r[i]-e[i],t[i++]=s&r.DM,s>>=r.DB;if(e.t<r.t){for(s-=e.s;i<r.t;)s+=r[i],t[i++]=s&r.DM,s>>=r.DB;s+=r.s}else{for(s+=r.s;i<e.t;)s-=e[i],t[i++]=s&r.DM,s>>=r.DB;s-=e.s}t.s=s<0?-1:0,s<-1?t[i++]=r.DV+s:0<s&&(t[i++]=s),t.t=i,t.clamp()},i.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),s=r.t;for(t.t=s+i.t;0<=--s;)t[s]=0;for(s=0;s<i.t;++s)t[s+r.t]=r.am(0,i[s],t,s,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&y.ZERO.subTo(t,t)},i.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;0<=--r;)e[r]=0;for(r=0;r<t.t-1;++r){var i=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,i,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}0<e.t&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},i.divRemTo=function(e,t,r){var i=this,s=e.abs();if(!(s.t<=0)){var n=i.abs();if(n.t<s.t)return null!=t&&t.fromInt(0),void(null!=r&&i.copyTo(r));null==r&&(r=new y);var o=new y,a=i.s,f=e.s,u=i.DB-w(s[s.t-1]);0<u?(s.lShiftTo(u,o),n.lShiftTo(u,r)):(s.copyTo(o),n.copyTo(r));var h=o.t,c=o[h-1];if(0!=c){var l=c*(1<<i.F1)+(1<h?o[h-2]>>i.F2:0),d=i.FV/l,p=(1<<i.F1)/l,_=1<<i.F2,g=r.t,m=g-h,v=null==t?new y:t;for(o.dlShiftTo(m,v),0<=r.compareTo(v)&&(r[r.t++]=1,r.subTo(v,r)),y.ONE.dlShiftTo(h,v),v.subTo(o,o);o.t<h;)o[o.t++]=0;for(;0<=--m;){var b=r[--g]==c?i.DM:Math.floor(r[g]*d+(r[g-1]+_)*p);if((r[g]+=o.am(0,b,r,m,0,h))<b)for(o.dlShiftTo(m,v),r.subTo(v,r);r[g]<--b;)r.subTo(v,r)}null!=t&&(r.drShiftTo(h,t),a!=f&&y.ZERO.subTo(t,t)),r.t=h,r.clamp(),0<u&&r.rShiftTo(u,r),a<0&&y.ZERO.subTo(r,r)}}},i.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return 0<(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)?this.DV-t:-t},i.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},i.exp=function(e,t){if(4294967295<e||e<1)return y.ONE;var r=new y,i=new y,s=t.convert(this),n=w(e)-1;for(s.copyTo(r);0<=--n;)if(t.sqrTo(r,i),0<(e&1<<n))t.mulTo(i,s,r);else{var o=r;r=i,i=o}return t.revert(r)},i.toString=function(e){var t,r=this;if(r.s<0)return"-"+r.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return r.toRadix(e);t=2}var i,s=(1<<t)-1,n=!1,o="",a=r.t,f=r.DB-a*r.DB%t;if(0<a--)for(f<r.DB&&0<(i=r[a]>>f)&&(n=!0,o=u(i));0<=a;)f<t?(i=(r[a]&(1<<f)-1)<<t-f,i|=r[--a]>>(f+=r.DB-t)):(i=r[a]>>(f-=t)&s,f<=0&&(f+=r.DB,--a)),0<i&&(n=!0),n&&(o+=u(i));return n?o:"0"},i.negate=function(){var e=new y;return y.ZERO.subTo(this,e),e},i.abs=function(){return this.s<0?this.negate():this},i.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;0<=--r;)if(0!=(t=this[r]-e[r]))return t;return 0},i.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+w(this[this.t-1]^this.s&this.DM)},i.byteLength=function(){return this.bitLength()>>3},i.mod=function(e){var t=new y;return this.abs().divRemTo(e,null,t),this.s<0&&0<t.compareTo(y.ZERO)&&e.subTo(t,t),t},i.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new m(t):new v(t),this.exp(e,r)},j.prototype.convert=B,j.prototype.revert=B,j.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},j.prototype.sqrTo=function(e,t){e.squareTo(t)},E.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=new y;return e.copyTo(t),this.reduce(t),t},E.prototype.revert=function(e){return e},E.prototype.reduce=function(e){var t=this;for(e.drShiftTo(t.m.t-1,t.r2),e.t>t.m.t+1&&(e.t=t.m.t+1,e.clamp()),t.mu.multiplyUpperTo(t.r2,t.m.t+1,t.q3),t.m.multiplyLowerTo(t.q3,t.m.t+1,t.r2);e.compareTo(t.r2)<0;)e.dAddOffset(1,t.m.t+1);for(e.subTo(t.r2,e);0<=e.compareTo(t.m);)e.subTo(t.m,e)},E.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},E.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/x[x.length-1];i.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},i.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||36<e)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=g(r),s=new y,n=new y,o="";for(this.divRemTo(i,s,n);0<s.signum();)o=(r+n.intValue()).toString(e).substr(1)+o,s.divRemTo(i,s,n);return n.intValue().toString(e)+o},i.fromRadix=function(e,t){var r=this;r.fromInt(0),null==t&&(t=10);for(var i=r.chunkSize(t),s=Math.pow(t,i),n=!1,o=0,a=0,f=0;f<e.length;++f){var u=h(e,f);u<0?"-"==e.charAt(f)&&0==r.signum()&&(n=!0):(a=t*a+u,++o>=i&&(r.dMultiply(s),r.dAddOffset(a,0),a=o=0))}0<o&&(r.dMultiply(Math.pow(t,o)),r.dAddOffset(a,0)),n&&y.ZERO.subTo(r,r)},i.fromNumber=function(e,t,r){var i=this;if("number"==typeof t)if(e<2)i.fromInt(1);else for(i.fromNumber(e,r),i.testBit(e-1)||i.bitwiseTo(y.ONE.shiftLeft(e-1),l,i),i.isEven()&&i.dAddOffset(1,0);!i.isProbablePrime(t);)i.dAddOffset(2,0),i.bitLength()>e&&i.subTo(y.ONE.shiftLeft(e-1),i);else{var s=new Array,n=7&e;s.length=1+(e>>3),t.nextBytes(s),0<n?s[0]&=(1<<n)-1:s[0]=0,i.fromString(s,256)}},i.bitwiseTo=function(e,t,r){var i,s,n=this,o=Math.min(e.t,n.t);for(i=0;i<o;++i)r[i]=t(n[i],e[i]);if(e.t<n.t){for(s=e.s&n.DM,i=o;i<n.t;++i)r[i]=t(n[i],s);r.t=n.t}else{for(s=n.s&n.DM,i=o;i<e.t;++i)r[i]=t(s,e[i]);r.t=e.t}r.s=t(n.s,e.s),r.clamp()},i.changeBit=function(e,t){var r=y.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},i.addTo=function(e,t){for(var r=this,i=0,s=0,n=Math.min(e.t,r.t);i<n;)s+=r[i]+e[i],t[i++]=s&r.DM,s>>=r.DB;if(e.t<r.t){for(s+=e.s;i<r.t;)s+=r[i],t[i++]=s&r.DM,s>>=r.DB;s+=r.s}else{for(s+=r.s;i<e.t;)s+=e[i],t[i++]=s&r.DM,s>>=r.DB;s+=e.s}t.s=s<0?-1:0,0<s?t[i++]=s:s<-1&&(t[i++]=r.DV+s),t.t=i,t.clamp()},i.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},i.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},i.multiplyLowerTo=function(e,t,r){var i,s=Math.min(this.t+e.t,t);for(r.s=0,r.t=s;0<s;)r[--s]=0;for(i=r.t-this.t;s<i;++s)r[s+this.t]=this.am(0,e[s],r,s,0,this.t);for(i=Math.min(e.t,t);s<i;++s)this.am(0,e[s],r,s,0,t-s);r.clamp()},i.multiplyUpperTo=function(e,t,r){--t;var i=r.t=this.t+e.t-t;for(r.s=0;0<=--i;)r[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)r[this.t+i-t]=this.am(t-i,e[i],r,0,0,this.t+i-t);r.clamp(),r.drShiftTo(1,r)},i.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(0<this.t)if(0==t)r=this[0]%e;else for(var i=this.t-1;0<=i;--i)r=(t*r+this[i])%e;return r},i.millerRabin=function(e){var t=this.subtract(y.ONE),r=t.getLowestSetBit();if(r<=0)return!1;var i=t.shiftRight(r);(e=e+1>>1)>x.length&&(e=x.length);for(var s=new y(null),n=[],o=0;o<e;++o){for(;f=x[Math.floor(Math.random()*x.length)],-1!=n.indexOf(f););n.push(f),s.fromInt(f);var a=s.modPow(i,this);if(0!=a.compareTo(y.ONE)&&0!=a.compareTo(t)){for(var f=1;f++<r&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(y.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},i.clone=function(){var e=new y;return this.copyTo(e),e},i.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.toByteArray=function(){var e=this,t=e.t,r=new Array;r[0]=e.s;var i,s=e.DB-t*e.DB%8,n=0;if(0<t--)for(s<e.DB&&(i=e[t]>>s)!=(e.s&e.DM)>>s&&(r[n++]=i|e.s<<e.DB-s);0<=t;)s<8?(i=(e[t]&(1<<s)-1)<<8-s,i|=e[--t]>>(s+=e.DB-8)):(i=e[t]>>(s-=8)&255,s<=0&&(s+=e.DB,--t)),0!=(128&i)&&(i|=-256),0===n&&(128&e.s)!=(128&i)&&++n,(0<n||i!=e.s)&&(r[n++]=i);return r},i.equals=function(e){return 0==this.compareTo(e)},i.min=function(e){return this.compareTo(e)<0?this:e},i.max=function(e){return 0<this.compareTo(e)?this:e},i.and=function(e){var t=new y;return this.bitwiseTo(e,c,t),t},i.or=function(e){var t=new y;return this.bitwiseTo(e,l,t),t},i.xor=function(e){var t=new y;return this.bitwiseTo(e,d,t),t},i.andNot=function(e){var t=new y;return this.bitwiseTo(e,p,t),t},i.not=function(){for(var e=new y,t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},i.shiftLeft=function(e){var t=new y;return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},i.shiftRight=function(e){var t=new y;return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},i.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+_(this[e]);return this.s<0?this.t*this.DB:-1},i.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=b(this[r]^t);return e},i.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},i.setBit=function(e){return this.changeBit(e,l)},i.clearBit=function(e){return this.changeBit(e,p)},i.flipBit=function(e){return this.changeBit(e,d)},i.add=function(e){var t=new y;return this.addTo(e,t),t},i.subtract=function(e){var t=new y;return this.subTo(e,t),t},i.multiply=function(e){var t=new y;return this.multiplyTo(e,t),t},i.divide=function(e){var t=new y;return this.divRemTo(e,t,null),t},i.remainder=function(e){var t=new y;return this.divRemTo(e,null,t),t},i.divideAndRemainder=function(e){var t=new y,r=new y;return this.divRemTo(e,t,r),new Array(t,r)},i.modPow=function(e,t){var r,i,s=e.bitLength(),n=g(1);if(s<=0)return n;r=s<18?1:s<48?3:s<144?4:s<768?5:6,i=s<8?new m(t):t.isEven()?new E(t):new v(t);var o=new Array,a=3,f=r-1,u=(1<<r)-1;if(o[1]=i.convert(this),1<r){var h=new y;for(i.sqrTo(o[1],h);a<=u;)o[a]=new y,i.mulTo(h,o[a-2],o[a]),a+=2}var c,l,d=e.t-1,p=!0,_=new y;for(s=w(e[d])-1;0<=d;){for(f<=s?c=e[d]>>s-f&u:(c=(e[d]&(1<<s+1)-1)<<f-s,0<d&&(c|=e[d-1]>>this.DB+s-f)),a=r;0==(1&c);)c>>=1,--a;if((s-=a)<0&&(s+=this.DB,--d),p)o[c].copyTo(n),p=!1;else{for(;1<a;)i.sqrTo(n,_),i.sqrTo(_,n),a-=2;0<a?i.sqrTo(n,_):(l=n,n=_,_=l),i.mulTo(_,o[c],n)}for(;0<=d&&0==(e[d]&1<<s);)i.sqrTo(n,_),l=n,n=_,_=l,--s<0&&(s=this.DB-1,--d)}return i.revert(n)},i.modInverse=function(e){var t=e.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&t||0==e.signum())return y.ZERO;for(var r=e.clone(),i=this.clone(),s=g(1),n=g(0),o=g(0),a=g(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(s.isEven()&&n.isEven()||(s.addTo(this,s),n.subTo(e,n)),s.rShiftTo(1,s)):n.isEven()||n.subTo(e,n),n.rShiftTo(1,n);for(;i.isEven();)i.rShiftTo(1,i),t?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);0<=r.compareTo(i)?(r.subTo(i,r),t&&s.subTo(o,s),n.subTo(a,n)):(i.subTo(r,i),t&&o.subTo(s,o),a.subTo(n,a))}if(0!=i.compareTo(y.ONE))return y.ZERO;for(;0<=a.compareTo(e);)a.subTo(e,a);for(;a.signum()<0;)a.addTo(e,a);return a},i.pow=function(e){return this.exp(e,new j)},i.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var i=t;t=r,r=i}var s=t.getLowestSetBit(),n=r.getLowestSetBit();if(n<0)return t;for(s<n&&(n=s),0<n&&(t.rShiftTo(n,t),r.rShiftTo(n,r));0<t.signum();)0<(s=t.getLowestSetBit())&&t.rShiftTo(s,t),0<(s=r.getLowestSetBit())&&r.rShiftTo(s,r),0<=t.compareTo(r)?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return 0<n&&r.lShiftTo(n,r),r},i.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=x[x.length-1]){for(t=0;t<x.length;++t)if(r[0]==x[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<x.length;){for(var i=x[t],s=t+1;s<x.length&&i<D;)i*=x[s++];for(i=r.modInt(i);t<s;)if(i%x[t++]==0)return!1}return r.millerRabin(e)},i.square=function(){var e=new y;return this.squareTo(e),e},y.ZERO=g(0),y.ONE=g(1),y.valueOf=g,t.exports=y},{"../package.json":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/package.json"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/convert.js":[function(e,t,r){(function(s){var t=e("assert"),r=e("./bigi");r.fromByteArrayUnsigned=function(e){return 128&e[0]?new r([0].concat(e)):new r(e)},r.prototype.toByteArrayUnsigned=function(){var e=this.toByteArray();return 0===e[0]?e.slice(1):e},r.fromDERInteger=function(e){return new r(e)},r.prototype.toDERInteger=r.prototype.toByteArray,r.fromBuffer=function(e){if(128&e[0]){var t=Array.prototype.slice.call(e);return new r([0].concat(t))}return new r(e)},r.fromHex=function(e){return""===e?r.ZERO:(t.equal(e,e.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),t.equal(e.length%2,0,"Incomplete hex"),new r(e,16))},r.prototype.toBuffer=function(e){for(var t=this.toByteArrayUnsigned(),r=[],i=e-t.length;r.length<i;)r.push(0);return new s(r.concat(t))},r.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")}}).call(this,e("buffer").Buffer)},{"./bigi":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/bigi.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js":[function(e,t,r){var i=e("./bigi");e("./convert"),t.exports=i},{"./bigi":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/bigi.js","./convert":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/convert.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/package.json":[function(e,t,r){t.exports={_args:[["bigi@1.4.2","/home/sigve/Dev/Bitshares/bitsharesjs"]],_from:"bigi@1.4.2",_id:"bigi@1.4.2",_inBundle:!1,_integrity:"sha1-nGZalfiLiwj8Bc/XMfVhhZ1yWCU=",_location:"/bigi",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"bigi@1.4.2",name:"bigi",escapedName:"bigi",rawSpec:"1.4.2",saveSpec:null,fetchSpec:"1.4.2"},_requiredBy:["/","/ecurve"],_resolved:"https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz",_spec:"1.4.2",_where:"/home/sigve/Dev/Bitshares/bitsharesjs",bugs:{url:"https://github.com/cryptocoinjs/bigi/issues"},dependencies:{},description:"Big integers.",devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},homepage:"https://github.com/cryptocoinjs/bigi#readme",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],main:"./lib/index.js",name:"bigi",repository:{url:"git+https://github.com/cryptocoinjs/bigi.git",type:"git"},scripts:{"browser-test":"mochify --wd -R spec",coverage:"istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info",jshint:"jshint --config jshint.json lib/*.js ; true",test:"_mocha -- test/*.js",unit:"mocha"},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},version:"1.4.2"}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/index.js":[function(e,t,r){"use strict";r.__esModule=!0,r.Manager=r.ChainConfig=r.Apis=void 0;var i=o(e("./src/ApiInstances")),s=o(e("./src/ConnectionManager")),n=o(e("./src/ChainConfig"));function o(e){return e&&e.__esModule?e:{default:e}}r.Apis=i.default,r.ChainConfig=n.default,r.Manager=s.default},{"./src/ApiInstances":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ApiInstances.js","./src/ChainConfig":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainConfig.js","./src/ConnectionManager":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ConnectionManager.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ApiInstances.js":[function(r,i,u){(function(e){"use strict";u.__esModule=!0;var s=t(r("./ChainWebSocket")),n=t(r("./GrapheneApi")),o=t(r("./ChainConfig"));function t(e){return e&&e.__esModule?e:{default:e}}if(e)e.inst="";else;var a=!1;u.default={setRpcConnectionStatusCallback:function(e){this.statusCb=e,inst&&inst.setRpcConnectionStatusCallback(e)},setAutoReconnect:function(e){a=e},reset:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8090",t=arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:4e3,i=this,s=arguments[3],n=arguments[4];return this.close().then(function(){return inst=new f,inst.setRpcConnectionStatusCallback(i.statusCb),inst&&t&&inst.connect(e,r,s,n),inst})},instance:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8090",t=arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:4e3,i=arguments[3],s=arguments[4];return inst||(inst=new f,inst.setRpcConnectionStatusCallback(this.statusCb)),inst&&t&&inst.connect(e,r,i),s&&(inst.closeCb=s),inst},chainId:function(){return Apis.instance().chain_id},close:function(){return inst?new Promise(function(e){inst.close().then(function(){inst=null,e()})}):Promise.resolve()}};var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.connect=function(t,e){var r=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{enableCrypto:!1,enableOrders:!1};this.url=t;if("undefined"!=typeof window&&window.location&&"https:"===window.location.protocol&&t.indexOf("wss://")<0)throw new Error("Secure domains require wss connection");this.ws_rpc&&(this.ws_rpc.statusCb=null,this.ws_rpc.keepAliveCb=null,this.ws_rpc.on_close=null,this.ws_rpc.on_reconnect=null),this.ws_rpc=new s.default(t,this.statusCb,e,a,function(e){r._db&&!e&&r._db.exec("get_objects",[["2.1.0"]]).catch(function(e){})}),this.init_promise=this.ws_rpc.login("","").then(function(){r._db=new n.default(r.ws_rpc,"database"),r._net=new n.default(r.ws_rpc,"network_broadcast"),r._hist=new n.default(r.ws_rpc,"history"),i.enableOrders&&(r._orders=new n.default(r.ws_rpc,"orders")),i.enableCrypto&&(r._crypt=new n.default(r.ws_rpc,"crypto"));var e=r._db.init().then(function(){return r._db.exec("get_chain_id",[]).then(function(e){return r.chain_id=e,o.default.setChainId(e)})});r.ws_rpc.on_reconnect=function(){r.ws_rpc&&r.ws_rpc.login("","").then(function(){r._db.init().then(function(){r.statusCb&&r.statusCb("reconnect")}),r._net.init(),r._hist.init(),i.enableOrders&&r._orders.init(),i.enableCrypto&&r._crypt.init()})},r.ws_rpc.on_close=function(){r.close().then(function(){r.closeCb&&r.closeCb()})};var t=[e,r._net.init(),r._hist.init()];return i.enableOrders&&t.push(r._orders.init()),i.enableCrypto&&t.push(r._crypt.init()),Promise.all(t)}).catch(function(e){return console.error(t,"Failed to initialize with error",e&&e.message),r.close().then(function(){throw e})})},e.prototype.close=function(){var e=this;return this.ws_rpc&&1===this.ws_rpc.ws.readyState?this.ws_rpc.close().then(function(){e.ws_rpc=null}):(this.ws_rpc=null,Promise.resolve())},e.prototype.db_api=function(){return this._db},e.prototype.network_api=function(){return this._net},e.prototype.history_api=function(){return this._hist},e.prototype.crypto_api=function(){return this._crypt},e.prototype.orders_api=function(){return this._orders},e.prototype.setRpcConnectionStatusCallback=function(e){this.statusCb=e},e}();i.exports=u.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ChainConfig":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainConfig.js","./ChainWebSocket":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainWebSocket.js","./GrapheneApi":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/GrapheneApi.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainConfig.js":[function(e,t,r){(function(e){"use strict";r.__esModule=!0;var o=void 0,a={address_prefix:e.env.npm_config__graphene_ecc_default_address_prefix||"GPH"};o={core_asset:"CORE",address_prefix:"GPH",expire_in_secs:15,expire_in_secs_proposal:86400,review_in_secs_committee:86400,networks:{BitShares:{core_asset:"BTS",address_prefix:"BTS",chain_id:"4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8"},Muse:{core_asset:"MUSE",address_prefix:"MUSE",chain_id:"45ad2d3f9ef92a49b55c2227eb06123f613bb35dd08bd876f2aea21925a67a67"},Test:{core_asset:"TEST",address_prefix:"TEST",chain_id:"39f5e2ede1f8bc1a3a54a7914414e3779e33193f1f5693510e73cb7a87617447"},Obelisk:{core_asset:"GOV",address_prefix:"FEW",chain_id:"1cfde7c388b9e8ac06462d68aadbd966b58f88797637d9af805b4560b0e9661e"}},setChainId:function(e){var t,r,i=void 0,s=void 0,n=void 0;for(i=0,t=(r=Object.keys(o.networks)).length;i<t;i++)if(n=r[i],(s=o.networks[n]).chain_id===e)return o.network_name=n,s.address_prefix&&(o.address_prefix=s.address_prefix,a.address_prefix=s.address_prefix),{network_name:n,network:s};o.network_name||console.log("Unknown chain id (this may be a testnet)",e)},reset:function(){o.core_asset="CORE",o.address_prefix="GPH",a.address_prefix="GPH",o.expire_in_secs=15,o.expire_in_secs_proposal=86400,console.log("Chain config reset")},setPrefix:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"GPH";o.address_prefix=e,a.address_prefix=e}},r.default=o,t.exports=r.default}).call(this,e("_process"))},{_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainWebSocket.js":[function(r,i,s){(function(e){"use strict";s.__esModule=!0;var a=void 0;a="undefined"!=typeof WebSocket||e.env.browser?WebSocket:r("ws");var f=5,u=2*f,t=function(){function o(i,e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5e3,s=this,n=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.url=i,this.statusCb=e,this.connectionTimeout=setTimeout(function(){if(s.current_reject){var e=s.current_reject;s.current_reject=null,s.close(),e(new Error("Connection attempt timed out after "+t/1e3+"s"))}},t),this.current_reject=null,this.on_reconnect=null,this.closed=!1,this.send_life=f,this.recv_life=u,this.keepAliveCb=r,this.connect_promise=new Promise(function(e,t){s.current_reject=t;var r=n||"undefined"==typeof WebSocket||"undefined"==typeof document?a:WebSocket;try{s.ws=new r(i)}catch(e){s.ws={readyState:3,close:function(){}},t(new Error("Invalid url",i," closed"))}s.ws.onopen=function(){clearTimeout(s.connectionTimeout),s.statusCb&&s.statusCb("open"),s.on_reconnect&&s.on_reconnect(),s.keepalive_timer=setInterval(function(){if(s.recv_life--,0==s.recv_life)return console.error(s.url+" connection is dead, terminating ws"),void s.close();s.send_life--,0==s.send_life&&(s.keepAliveCb&&s.keepAliveCb(s.closed),s.send_life=f)},5e3),s.current_reject=null,e()},s.ws.onerror=function(e){s.keepalive_timer&&(clearInterval(s.keepalive_timer),s.keepalive_timer=void 0),clearTimeout(s.connectionTimeout),s.statusCb&&s.statusCb("error"),s.current_reject&&s.current_reject(e)},s.ws.onmessage=function(e){s.recv_life=u,s.listener(JSON.parse(e.data))},s.ws.onclose=function(){s.closed=!0,s.keepalive_timer&&(clearInterval(s.keepalive_timer),s.keepalive_timer=void 0);for(var e=new Error("connection closed"),t=s.responseCbId+1;t<=s.cbId;t+=1)s.cbs[t].reject(e);s.statusCb&&s.statusCb("closed"),s._closeCb&&s._closeCb(),s.on_close&&s.on_close()}}),this.cbId=0,this.responseCbId=0,this.cbs={},this.subs={},this.unsub={}}return o.prototype.call=function(e){var r=this;if(1!==this.ws.readyState)return Promise.reject(new Error("websocket state error:"+this.ws.readyState));var t=e[1];if(this.cbId+=1,"set_subscribe_callback"!==t&&"subscribe_to_market"!==t&&"broadcast_transaction_with_callback"!==t&&"set_pending_transaction_callback"!==t||(this.subs[this.cbId]={callback:e[2][0]},e[2][0]=this.cbId),"unsubscribe_from_market"===t||"unsubscribe_from_accounts"===t){if("function"!=typeof e[2][0])throw new Error("First parameter of unsub must be the original callback");var i=e[2].splice(0,1)[0];for(var s in this.subs)if(this.subs[s].callback===i){this.unsub[this.cbId]=s;break}}var n={method:"call",params:e};return n.id=this.cbId,this.send_life=f,new Promise(function(e,t){r.cbs[r.cbId]={time:new Date,resolve:e,reject:t},r.ws.send(JSON.stringify(n))})},o.prototype.listener=function(e){var t=!1,r=null;"notice"===e.method&&(t=!0,e.id=e.params[0]),t?r=this.subs[e.id].callback:(r=this.cbs[e.id],this.responseCbId=e.id),r&&!t?(e.error?r.reject(e.error):r.resolve(e.result),delete this.cbs[e.id],this.unsub[e.id]&&(delete this.subs[this.unsub[e.id]],delete this.unsub[e.id])):r&&t?r(e.params[1]):console.log("Warning: unknown websocket response: ",e)},o.prototype.login=function(e,t){var r=this;return this.connect_promise.then(function(){return r.call([1,"login",[e,t]])})},o.prototype.close=function(){var t=this;return new Promise(function(e){if(clearInterval(t.keepalive_timer),t.keepalive_timer=void 0,t._closeCb=function(){e(),t._closeCb=null},!t.ws)return console.log("Websocket already cleared",t),e();t.ws.terminate?t.ws.terminate():t.ws.close(),3===t.ws.readyState&&e()})},o}();s.default=t,i.exports=s.default}).call(this,r("_process"))},{_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",ws:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browser-resolve/empty.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ConnectionManager.js":[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("./ApiInstances")),h=i(e("./ChainWebSocket"));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(){function a(e){var t=e.url,r=e.urls,i=e.autoFallback,s=e.closeCb,n=e.optionalApis,o=e.urlChangeCallback;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.url=t,this.urls=r.filter(function(e){return e!==t}),this.autoFallback=i,this.closeCb=s,this.optionalApis=n||{},this.isConnected=!1,this.urlChangeCallback=o}return a.prototype.setCloseCb=function(e){this.closeCb=e},a.close=function(){return n.default.close()},a.prototype.logFailure=function(e,t,r){var i=r&&r.message?r.message:"";console.error(e,"Failed to connect to "+t+(i?" Error: "+JSON.stringify(i):""))},a.prototype._onClose=function(){this.isConnected=!1,this.closeCb&&(this.closeCb(),this.setCloseCb(null)),this.autoFallback&&this.connectWithFallback()},a.prototype.connect=function(){var i=this,e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.url;return new Promise(function(t,r){n.default.instance(s,e,void 0,i.optionalApis,i._onClose.bind(i)).init_promise.then(function(e){i.url=s,i.isConnected=!0,t(e)}).catch(function(e){n.default.close().then(function(){r(e)})})})},a.prototype.connectWithFallback=function(){var i=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.url,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=this,t=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;if(r&&s>this.urls.length)return r(new Error("Tried "+s+" connections, none of which worked: "+JSON.stringify(this.urls.concat(this.url))));var o=function(e,t,r){return n.urlChangeCallback&&n.urlChangeCallback(n.urls[s]),n.connectWithFallback(i,n.urls[s],s+1,t,r)};return t&&r?this.connect(i,e).then(t).catch(function(e){o(0,t,r)}):new Promise(function(t,r){n.connect(i,void 0).then(t).catch(function(e){o(0,t,r)})})},a.prototype.checkConnections=function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",f=this,e=arguments[2],t=arguments[3],u={},r=function(r,e){var t=f.urls.concat(f.url),n=[];t.forEach(function(i){var s=new h.default(i,function(){},void 0,!1);u[i]=(new Date).getTime(),n.push(function(){return s.login(o,a).then(function(e){var t,r=((t={})[i]=(new Date).getTime()-u[i],t);return s.close().then(function(){return r})}).catch(function(e){return f.logFailure("checkConnections",i,e),i===f.url?f.url=f.urls[0]:f.urls=f.urls.filter(function(e){return e!==i}),s.close().then(function(){return null})})})}),Promise.all(n.map(function(e){return e()})).then(function(e){var t=e.filter(function(e){return!!e}).sort(function(e,t){return Object.values(e)[0]-Object.values(t)[0]}).reduce(function(e,t){var r=Object.keys(t)[0];return e[r]=t[r],e},{});return console.log("Checked "+e.length+" connections, "+(e.length-Object.keys(t).length)+" failed"),r(t)}).catch(function(){return f.checkConnections(o,a,r,e)})};if(!e||!t)return new Promise(r);r(e,t)},a}();r.default=s,t.exports=r.default},{"./ApiInstances":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ApiInstances.js","./ChainWebSocket":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/ChainWebSocket.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bitsharesjs-ws/cjs/src/GrapheneApi.js":[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.ws_rpc=e,this.api_name=t}return r.prototype.init=function(){var t=this;return this.ws_rpc.call([1,this.api_name,[]]).then(function(e){return t.api_id=e,t})},r.prototype.exec=function(e,t){return this.ws_rpc.call([this.api_id,e,t]).catch(function(e){throw e})},r}();r.default=i,t.exports=r.default},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browser-resolve/empty.js":[function(e,t,r){},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browserify/node_modules/safe-buffer/index.js":[function(e,t,r){var i=e("buffer"),s=i.Buffer;function n(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=i:(n(i,r),r.Buffer=o),n(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=s(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browserify/node_modules/string_decoder/lib/string_decoder.js":[function(e,t,r){"use strict";var i=e("safe-buffer").Buffer,s=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=h,this.end=c,t=3;break;default:return this.write=l,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(55296<=i&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function h(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}(r.StringDecoder=n).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1;if(i<r)return 0;var s=o(t[i]);if(0<=s)return 0<s&&(e.lastNeed=s-1),s;if(--i<r||-2===s)return 0;if(0<=(s=o(t[i])))return 0<s&&(e.lastNeed=s-2),s;if(--i<r||-2===s)return 0;if(0<=(s=o(t[i])))return 0<s&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browserify/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bs58/index.js":[function(e,t,r){var i=e("base-x");t.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"base-x":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/base-x/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer-shims/index.js":[function(r,e,i){(function(o){"use strict";var e=r("buffer"),u=e.Buffer,t=e.SlowBuffer,h=e.kMaxLength||2147483647;i.alloc=function(e,t,r){if("function"==typeof u.alloc)return u.alloc(e,t,r);if("number"==typeof r)throw new TypeError("encoding must not be number");if("number"!=typeof e)throw new TypeError("size must be a number");if(h<e)throw new RangeError("size is too large");var i=r,s=t;void 0===s&&(i=void 0,s=0);var n=new u(e);if("string"==typeof s)for(var o=new u(s,i),a=o.length,f=-1;++f<e;)n[f]=o[f%a];else n.fill(s);return n},i.allocUnsafe=function(e){if("function"==typeof u.allocUnsafe)return u.allocUnsafe(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(h<e)throw new RangeError("size is too large");return new u(e)},i.from=function(e,t,r){if("function"==typeof u.from&&(!o.Uint8Array||Uint8Array.from!==u.from))return u.from(e,t,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new u(e,t);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var i=t;if(1===arguments.length)return new u(e);void 0===i&&(i=0);var s=r;if(void 0===s&&(s=e.byteLength-i),i>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(s>e.byteLength-i)throw new RangeError("'length' is out of bounds");return new u(e.slice(i,i+s))}if(u.isBuffer(e)){var n=new u(e.length);return e.copy(n,0,0,e.length),n}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new u(e);if("Buffer"===e.type&&Array.isArray(e.data))return new u(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},i.allocUnsafeSlow=function(e){if("function"==typeof u.allocUnsafeSlow)return u.allocUnsafeSlow(e);if("number"!=typeof e)throw new TypeError("size must be a number");if(h<=e)throw new RangeError("size is too large");return new t(e)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js":[function(e,t,r){"use strict";var i=e("base64-js"),n=e("ieee754");r.Buffer=c,r.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},r.INSPECT_MAX_BYTES=50;var s=2147483647;function o(e){if(s<e)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=c.prototype,t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(e)}return a(e,t,r)}function a(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return M(e)||e&&M(e.buffer)?function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var i;i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return i.__proto__=c.prototype,i}(e,t,r):"string"==typeof e?function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),i=o(r),s=i.write(e,t);s!==r&&(i=i.slice(0,s));return i}(e,t):function(e){if(c.isBuffer(e)){var t=0|l(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(e){if(ArrayBuffer.isView(e)||"length"in e)return"number"!=typeof e.length||q(e.length)?o(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object.")}(e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e){return f(e),o(e<0?0:0|l(e))}function h(e){for(var t=e.length<0?0:0|l(e.length),r=o(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function l(e){if(s<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function d(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(i)return C(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function _(e,t,r,i,s){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),q(r=+r)&&(r=s?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(s)return-1;r=e.length-1}else if(r<0){if(!s)return-1;r=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,i,s);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,i,s){var n,o=1,a=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a/=o=2,f/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){var h=-1;for(n=r;n<a;n++)if(u(e,n)===u(t,-1===h?0:n-h)){if(-1===h&&(h=n),n-h+1===f)return h*o}else-1!==h&&(n-=n-h),h=-1}else for(a<r+f&&(r=a-f),n=r;0<=n;n--){for(var c=!0,l=0;l<f;l++)if(u(e,n+l)!==u(t,l)){c=!1;break}if(c)return n}return-1}function m(e,t,r,i){r=Number(r)||0;var s=e.length-r;i?s<(i=Number(i))&&(i=s):i=s;var n=t.length;n/2<i&&(i=n/2);for(var o=0;o<i;++o){var a=parseInt(t.substr(2*o,2),16);if(q(a))return o;e[r+o]=a}return o}function v(e,t,r,i){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,i)}function b(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function y(e,t,r){r=Math.min(e.length,r);for(var i=[],s=t;s<r;){var n,o,a,f,u=e[s],h=null,c=239<u?4:223<u?3:191<u?2:1;if(s+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:128==(192&(n=e[s+1]))&&127<(f=(31&u)<<6|63&n)&&(h=f);break;case 3:n=e[s+1],o=e[s+2],128==(192&n)&&128==(192&o)&&2047<(f=(15&u)<<12|(63&n)<<6|63&o)&&(f<55296||57343<f)&&(h=f);break;case 4:n=e[s+1],o=e[s+2],a=e[s+3],128==(192&n)&&128==(192&o)&&128==(192&a)&&65535<(f=(15&u)<<18|(63&n)<<12|(63&o)<<6|63&a)&&f<1114112&&(h=f)}null===h?(h=65533,c=1):65535<h&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),s+=c}return function(e){var t=e.length;if(t<=w)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=w));return r}(i)}r.kMaxLength=s,(c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{get:function(){if(this instanceof c)return this.buffer}}),Object.defineProperty(c.prototype,"offset",{get:function(){if(this instanceof c)return this.byteOffset}}),"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),c.poolSize=8192,c.from=function(e,t,r){return a(e,t,r)},c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,c.alloc=function(e,t,r){return s=t,n=r,f(i=e),i<=0?o(i):void 0!==s?"string"==typeof n?o(i).fill(s,n):o(i).fill(s):o(i);var i,s,n},c.allocUnsafe=function(e){return u(e)},c.allocUnsafeSlow=function(e){return u(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,i=t.length,s=0,n=Math.min(r,i);s<n;++s)if(e[s]!==t[s]){r=e[s],i=t[s];break}return r<i?-1:i<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var i=c.allocUnsafe(t),s=0;for(r=0;r<e.length;++r){var n=e[r];if(ArrayBuffer.isView(n)&&(n=c.from(n)),!c.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(i,s),s+=n.length}return i},c.byteLength=d,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},c.prototype.toLocaleString=c.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?y(this,0,e):function(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return j(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return b(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,i,s){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===s&&(s=this.length),t<0||r>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(s<=i&&r<=t)return 0;if(s<=i)return-1;if(r<=t)return 1;if(this===e)return 0;for(var n=(s>>>=0)-(i>>>=0),o=(r>>>=0)-(t>>>=0),a=Math.min(n,o),f=this.slice(i,s),u=e.slice(t,r),h=0;h<a;++h)if(f[h]!==u[h]){n=f[h],o=u[h];break}return n<o?-1:o<n?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return _(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return _(this,e,t,r,!1)},c.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}var s=this.length-t;if((void 0===r||s<r)&&(r=s),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var n,o,a,f,u,h,c,l,d,p=!1;;)switch(i){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return l=t,d=r,U(C(e,(c=this).length-l),c,l,d);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return v(this,e,t,r);case"base64":return f=this,u=t,h=r,U(O(e),f,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=t,a=r,U(function(e,t){for(var r,i,s,n=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),i=r>>8,s=r%256,n.push(s),n.push(i);return n}(e,(n=this).length-o),n,o,a);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function j(e,t,r){var i="";r=Math.min(e.length,r);for(var s=t;s<r;++s)i+=String.fromCharCode(127&e[s]);return i}function B(e,t,r){var i="";r=Math.min(e.length,r);for(var s=t;s<r;++s)i+=String.fromCharCode(e[s]);return i}function E(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||i<r)&&(r=i);for(var s="",n=t;n<r;++n)s+=L(e[n]);return s}function x(e,t,r){for(var i=e.slice(t,r),s="",n=0;n<i.length;n+=2)s+=String.fromCharCode(i[n]+256*i[n+1]);return s}function D(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,i,s,n){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(s<t||t<n)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function S(e,t,r,i,s,n){if(r+i>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(e,t,r,i,s){return t=+t,r>>>=0,s||S(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function I(e,t,r,i,s){return t=+t,r>>>=0,s||S(e,0,r,8),n.write(e,t,r,i,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return i.__proto__=c.prototype,i},c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var i=this[e],s=1,n=0;++n<t&&(s*=256);)i+=this[e+n]*s;return i},c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var i=this[e+--t],s=1;0<t&&(s*=256);)i+=this[e+--t]*s;return i},c.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var i=this[e],s=1,n=0;++n<t&&(s*=256);)i+=this[e+n]*s;return(s*=128)<=i&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var i=t,s=1,n=this[e+--i];0<i&&(s*=256);)n+=this[e+--i]*s;return(s*=128)<=n&&(n-=Math.pow(2,8*t)),n},c.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),n.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),n.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,i){(e=+e,t>>>=0,r>>>=0,i)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var s=1,n=0;for(this[t]=255&e;++n<r&&(s*=256);)this[t+n]=e/s&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,i){(e=+e,t>>>=0,r>>>=0,i)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var s=r-1,n=1;for(this[t+s]=255&e;0<=--s&&(n*=256);)this[t+s]=e/n&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var s=Math.pow(2,8*r-1);T(this,e,t,r,s-1,-s)}var n=0,o=1,a=0;for(this[t]=255&e;++n<r&&(o*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/o>>0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){var s=Math.pow(2,8*r-1);T(this,e,t,r,s-1,-s)}var n=r-1,o=1,a=0;for(this[t+n]=255&e;0<=--n&&(o*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/o>>0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,i){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),0<i&&i<r&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var s=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var n=s-1;0<=n;--n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return s},c.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var s=e.charCodeAt(0);("utf8"===i&&s<128||"latin1"===i)&&(e=s)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var n;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var o=c.isBuffer(e)?e:new c(e,i),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%a]}return this};var A=/[^+/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function C(e,t){var r;t=t||1/0;for(var i=e.length,s=null,n=[],o=0;o<i;++o){if(55295<(r=e.charCodeAt(o))&&r<57344){if(!s){if(56319<r){-1<(t-=3)&&n.push(239,191,189);continue}if(o+1===i){-1<(t-=3)&&n.push(239,191,189);continue}s=r;continue}if(r<56320){-1<(t-=3)&&n.push(239,191,189),s=r;continue}r=65536+(s-55296<<10|r-56320)}else s&&-1<(t-=3)&&n.push(239,191,189);if(s=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return n}function O(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,i){for(var s=0;s<i&&!(s+r>=t.length||s>=e.length);++s)t[s+r]=e[s];return s}function M(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function q(e){return e!=e}},{"base64-js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/base64-js/index.js",ieee754:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ieee754/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bytebuffer/dist/bytebuffer.js":[function(t,e,r){var i,s;i=this,s=function(f){"use strict";var p=function(e,t,r){if(void 0===e&&(e=p.DEFAULT_CAPACITY),void 0===t&&(t=p.DEFAULT_ENDIAN),void 0===r&&(r=p.DEFAULT_NOASSERT),!r){if((e|=0)<0)throw RangeError("Illegal capacity");t=!!t,r=!!r}this.buffer=0===e?n:new ArrayBuffer(e),this.view=0===e?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=t,this.noAssert=r};p.VERSION="5.0.1",p.LITTLE_ENDIAN=!0,p.BIG_ENDIAN=!1,p.DEFAULT_CAPACITY=16,p.DEFAULT_ENDIAN=p.BIG_ENDIAN,p.DEFAULT_NOASSERT=!1,p.Long=f||null;var o=p.prototype;o.__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var n=new ArrayBuffer(0),r=String.fromCharCode;function a(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function u(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+r.apply(String,e);1024<e.length+arguments.length&&(t.push(r.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}function i(e,t,r,i,s){var n,o,a=8*s-i-1,f=(1<<a)-1,u=f>>1,h=-7,c=r?s-1:0,l=r?-1:1,d=e[t+c];for(c+=l,n=d&(1<<-h)-1,d>>=-h,h+=a;0<h;n=256*n+e[t+c],c+=l,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=i;0<h;o=256*o+e[t+c],c+=l,h-=8);if(0===n)n=1-u;else{if(n===f)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),n-=u}return(d?-1:1)*o*Math.pow(2,n-i)}function s(e,t,r,i,s,n){var o,a,f,u=8*n-s-1,h=(1<<u)-1,c=h>>1,l=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:n-1,p=i?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),2<=(t+=1<=o+c?l/f:l*Math.pow(2,1-c))*f&&(o++,f/=2),h<=o+c?(a=0,o=h):1<=o+c?(a=(t*f-1)*Math.pow(2,s),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,s),o=0));8<=s;e[r+d]=255&a,d+=p,a/=256,s-=8);for(o=o<<s|a,u+=s;0<u;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*_}p.accessor=function(){return Uint8Array},p.allocate=function(e,t,r){return new p(e,t,r)},p.concat=function(e,t,r,i){"boolean"!=typeof t&&"string"==typeof t||(i=r,r=t,t=void 0);for(var s,n=0,o=0,a=e.length;o<a;++o)p.isByteBuffer(e[o])||(e[o]=p.wrap(e[o],t)),0<(s=e[o].limit-e[o].offset)&&(n+=s);if(0===n)return new p(0,r,i);var f,u=new p(n,r,i);for(o=0;o<a;)(s=(f=e[o++]).limit-f.offset)<=0||(u.view.set(f.view.subarray(f.offset,f.limit),u.offset),u.offset+=s);return u.limit=u.offset,u.offset=0,u},p.isByteBuffer=function(e){return!0===(e&&e.__isByteBuffer__)},p.type=function(){return ArrayBuffer},p.wrap=function(e,t,r,i){if("string"!=typeof t&&(i=r,r=t,t=void 0),"string"==typeof e)switch(void 0===t&&(t="utf8"),t){case"base64":return p.fromBase64(e,r);case"hex":return p.fromHex(e,r);case"binary":return p.fromBinary(e,r);case"utf8":return p.fromUTF8(e,r);case"debug":return p.fromDebug(e,r);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var s;if(p.isByteBuffer(e))return(s=o.clone.call(e)).markedOffset=-1,s;if(e instanceof Uint8Array)s=new p(0,r,i),0<e.length&&(s.buffer=e.buffer,s.offset=e.byteOffset,s.limit=e.byteOffset+e.byteLength,s.view=new Uint8Array(e.buffer));else if(e instanceof ArrayBuffer)s=new p(0,r,i),0<e.byteLength&&(s.buffer=e,s.offset=0,s.limit=e.byteLength,s.view=0<e.byteLength?new Uint8Array(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");(s=new p(e.length,r,i)).limit=e.length;for(var n=0;n<e.length;++n)s.view[n]=e[n]}return s},o.writeBitSet=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if(!(e instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,s=t,n=e.length,o=n>>3,a=0;for(t+=this.writeVarint32(n,t);o--;)i=1&!!e[a++]|(1&!!e[a++])<<1|(1&!!e[a++])<<2|(1&!!e[a++])<<3|(1&!!e[a++])<<4|(1&!!e[a++])<<5|(1&!!e[a++])<<6|(1&!!e[a++])<<7,this.writeByte(i,t++);if(a<n){var f=0;for(i=0;a<n;)i|=(1&!!e[a++])<<f++;this.writeByte(i,t++)}return r?(this.offset=t,this):t-s},o.readBitSet=function(e){var t=void 0===e;t&&(e=this.offset);var r,i=this.readVarint32(e),s=i.value,n=s>>3,o=0,a=[];for(e+=i.length;n--;)r=this.readByte(e++),a[o++]=!!(1&r),a[o++]=!!(2&r),a[o++]=!!(4&r),a[o++]=!!(8&r),a[o++]=!!(16&r),a[o++]=!!(32&r),a[o++]=!!(64&r),a[o++]=!!(128&r);if(o<s){var f=0;for(r=this.readByte(e++);o<s;)a[o++]=!!(r>>f++&1)}return t&&(this.offset=e),a},o.readBytes=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+e+") <= "+this.buffer.byteLength)}var i=this.slice(t,t+e);return r&&(this.offset+=e),i},o.writeBytes=o.append,o.writeInt8=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=this.view[e];return 128==(128&r)&&(r=-(255-r+1)),t&&(this.offset+=1),r},o.readByte=o.readInt8,o.writeUint8=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=1,this.view[t]=e,r&&(this.offset+=1),this},o.writeUInt8=o.writeUint8,o.readUint8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=this.view[e];return t&&(this.offset+=1),r},o.readUInt8=o.readUint8,o.writeInt16=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[e],r|=this.view[e+1]<<8):(r=this.view[e]<<8,r|=this.view[e+1]),32768==(32768&r)&&(r=-(65535-r+1)),t&&(this.offset+=2),r},o.readShort=o.readInt16,o.writeUint16=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=2,this.littleEndian?(this.view[t+1]=(65280&e)>>>8,this.view[t]=255&e):(this.view[t]=(65280&e)>>>8,this.view[t+1]=255&e),r&&(this.offset+=2),this},o.writeUInt16=o.writeUint16,o.readUint16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[e],r|=this.view[e+1]<<8):(r=this.view[e]<<8,r|=this.view[e+1]),t&&(this.offset+=2),r},o.readUInt16=o.readUint16,o.writeInt32=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[e+2]<<16,r|=this.view[e+1]<<8,r|=this.view[e],r+=this.view[e+3]<<24>>>0):(r=this.view[e+1]<<16,r|=this.view[e+2]<<8,r|=this.view[e+3],r+=this.view[e]<<24>>>0),r|=0,t&&(this.offset+=4),r},o.readInt=o.readInt32,o.writeUint32=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=4,this.littleEndian?(this.view[t+3]=e>>>24&255,this.view[t+2]=e>>>16&255,this.view[t+1]=e>>>8&255,this.view[t]=255&e):(this.view[t]=e>>>24&255,this.view[t+1]=e>>>16&255,this.view[t+2]=e>>>8&255,this.view[t+3]=255&e),r&&(this.offset+=4),this},o.writeUInt32=o.writeUint32,o.readUint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[e+2]<<16,r|=this.view[e+1]<<8,r|=this.view[e],r+=this.view[e+3]<<24>>>0):(r=this.view[e+1]<<16,r|=this.view[e+2]<<8,r|=this.view[e+3],r+=this.view[e]<<24>>>0),t&&(this.offset+=4),r},o.readUInt32=o.readUint32,f&&(o.writeInt64=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"==typeof e)e=f.fromNumber(e);else if("string"==typeof e)e=f.fromString(e);else if(!(e&&e instanceof f))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=f.fromNumber(e):"string"==typeof e&&(e=f.fromString(e)),t+=8;var i=this.buffer.byteLength;i<t&&this.resize((i*=2)>t?i:t),t-=8;var s=e.low,n=e.high;return this.littleEndian?(this.view[t+3]=s>>>24&255,this.view[t+2]=s>>>16&255,this.view[t+1]=s>>>8&255,this.view[t]=255&s,t+=4,this.view[t+3]=n>>>24&255,this.view[t+2]=n>>>16&255,this.view[t+1]=n>>>8&255,this.view[t]=255&n):(this.view[t]=n>>>24&255,this.view[t+1]=n>>>16&255,this.view[t+2]=n>>>8&255,this.view[t+3]=255&n,t+=4,this.view[t]=s>>>24&255,this.view[t+1]=s>>>16&255,this.view[t+2]=s>>>8&255,this.view[t+3]=255&s),r&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var r=0,i=0;this.littleEndian?(r=this.view[e+2]<<16,r|=this.view[e+1]<<8,r|=this.view[e],r+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,r=this.view[e+1]<<16,r|=this.view[e+2]<<8,r|=this.view[e+3],r+=this.view[e]<<24>>>0);var s=new f(r,i,!1);return t&&(this.offset+=8),s},o.readLong=o.readInt64,o.writeUint64=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"==typeof e)e=f.fromNumber(e);else if("string"==typeof e)e=f.fromString(e);else if(!(e&&e instanceof f))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=f.fromNumber(e):"string"==typeof e&&(e=f.fromString(e)),t+=8;var i=this.buffer.byteLength;i<t&&this.resize((i*=2)>t?i:t),t-=8;var s=e.low,n=e.high;return this.littleEndian?(this.view[t+3]=s>>>24&255,this.view[t+2]=s>>>16&255,this.view[t+1]=s>>>8&255,this.view[t]=255&s,t+=4,this.view[t+3]=n>>>24&255,this.view[t+2]=n>>>16&255,this.view[t+1]=n>>>8&255,this.view[t]=255&n):(this.view[t]=n>>>24&255,this.view[t+1]=n>>>16&255,this.view[t+2]=n>>>8&255,this.view[t+3]=255&n,t+=4,this.view[t]=s>>>24&255,this.view[t+1]=s>>>16&255,this.view[t+2]=s>>>8&255,this.view[t+3]=255&s),r&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var r=0,i=0;this.littleEndian?(r=this.view[e+2]<<16,r|=this.view[e+1]<<8,r|=this.view[e],r+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,r=this.view[e+1]<<16,r|=this.view[e+2]<<8,r|=this.view[e+3],r+=this.view[e]<<24>>>0);var s=new f(r,i,!0);return t&&(this.offset+=8),s},o.readUInt64=o.readUint64),o.writeFloat32=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=4,s(this.view,e,t,this.littleEndian,23,4),r&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=i(this.view,e,this.littleEndian,23,4);return t&&(this.offset+=4),r},o.readFloat=o.readFloat32,o.writeFloat64=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=8;var i=this.buffer.byteLength;return i<t&&this.resize((i*=2)>t?i:t),t-=8,s(this.view,e,t,this.littleEndian,52,8),r&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var r=i(this.view,e,this.littleEndian,52,8);return t&&(this.offset+=8),r},o.readDouble=o.readFloat64,p.MAX_VARINT32_BYTES=5,p.calculateVarint32=function(e){return(e>>>=0)<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5},p.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},p.zigZagDecode32=function(e){return e>>>1^-(1&e)|0},o.writeVarint32=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,s=p.calculateVarint32(e);t+=s;var n=this.buffer.byteLength;for(n<t&&this.resize((n*=2)>t?n:t),t-=s,e>>>=0;128<=e;)i=127&e|128,this.view[t++]=i,e>>>=7;return this.view[t++]=e,r?(this.offset=t,this):s},o.writeVarint32ZigZag=function(e,t){return this.writeVarint32(p.zigZagEncode32(e),t)},o.readVarint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r,i=0,s=0;do{if(!this.noAssert&&e>this.limit){var n=Error("Truncated");throw n.truncated=!0,n}r=this.view[e++],i<5&&(s|=(127&r)<<7*i),++i}while(0!=(128&r));return s|=0,t?(this.offset=e,s):{value:s,length:i}},o.readVarint32ZigZag=function(e){var t=this.readVarint32(e);return"object"==typeof t?t.value=p.zigZagDecode32(t.value):t=p.zigZagDecode32(t),t},f&&(p.MAX_VARINT64_BYTES=10,p.calculateVarint64=function(e){"number"==typeof e?e=f.fromNumber(e):"string"==typeof e&&(e=f.fromString(e));var t=e.toInt()>>>0,r=e.shiftRightUnsigned(28).toInt()>>>0,i=e.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==r?t<16384?t<128?1:2:t<1<<21?3:4:r<16384?r<128?5:6:r<1<<21?7:8:i<128?9:10},p.zigZagEncode64=function(e){return"number"==typeof e?e=f.fromNumber(e,!1):"string"==typeof e?e=f.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftLeft(1).xor(e.shiftRight(63)).toUnsigned()},p.zigZagDecode64=function(e){return"number"==typeof e?e=f.fromNumber(e,!1):"string"==typeof e?e=f.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftRightUnsigned(1).xor(e.and(f.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"==typeof e)e=f.fromNumber(e);else if("string"==typeof e)e=f.fromString(e);else if(!(e&&e instanceof f))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=f.fromNumber(e,!1):"string"==typeof e?e=f.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned());var i=p.calculateVarint64(e),s=e.toInt()>>>0,n=e.shiftRightUnsigned(28).toInt()>>>0,o=e.shiftRightUnsigned(56).toInt()>>>0;t+=i;var a=this.buffer.byteLength;switch(a<t&&this.resize((a*=2)>t?a:t),t-=i,i){case 10:this.view[t+9]=o>>>7&1;case 9:this.view[t+8]=9!==i?128|o:127&o;case 8:this.view[t+7]=8!==i?n>>>21|128:n>>>21&127;case 7:this.view[t+6]=7!==i?n>>>14|128:n>>>14&127;case 6:this.view[t+5]=6!==i?n>>>7|128:n>>>7&127;case 5:this.view[t+4]=5!==i?128|n:127&n;case 4:this.view[t+3]=4!==i?s>>>21|128:s>>>21&127;case 3:this.view[t+2]=3!==i?s>>>14|128:s>>>14&127;case 2:this.view[t+1]=2!==i?s>>>7|128:s>>>7&127;case 1:this.view[t]=1!==i?128|s:127&s}return r?(this.offset+=i,this):i},o.writeVarint64ZigZag=function(e,t){return this.writeVarint64(p.zigZagEncode64(e),t)},o.readVarint64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=e,i=0,s=0,n=0,o=0;if(i=127&(o=this.view[e++]),128&o&&(i|=(127&(o=this.view[e++]))<<7,(128&o||this.noAssert&&void 0===o)&&(i|=(127&(o=this.view[e++]))<<14,(128&o||this.noAssert&&void 0===o)&&(i|=(127&(o=this.view[e++]))<<21,(128&o||this.noAssert&&void 0===o)&&(s=127&(o=this.view[e++]),(128&o||this.noAssert&&void 0===o)&&(s|=(127&(o=this.view[e++]))<<7,(128&o||this.noAssert&&void 0===o)&&(s|=(127&(o=this.view[e++]))<<14,(128&o||this.noAssert&&void 0===o)&&(s|=(127&(o=this.view[e++]))<<21,(128&o||this.noAssert&&void 0===o)&&(n=127&(o=this.view[e++]),(128&o||this.noAssert&&void 0===o)&&(n|=(127&(o=this.view[e++]))<<7,128&o||this.noAssert&&void 0===o))))))))))throw Error("Buffer overrun");var a=f.fromBits(i|s<<28,s>>>4|n<<24,!1);return t?(this.offset=e,a):{value:a,length:e-r}},o.readVarint64ZigZag=function(e){var t=this.readVarint64(e);return t&&t.value instanceof f?t.value=p.zigZagDecode64(t.value):t=p.zigZagDecode64(t),t}),o.writeCString=function(e,t){var r=void 0===t;r&&(t=this.offset);var i,s=e.length;if(!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(i=0;i<s;++i)if(0===e.charCodeAt(i))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}s=l.calculateUTF16asUTF8(a(e))[1],t+=s+1;var n=this.buffer.byteLength;return n<t&&this.resize((n*=2)>t?n:t),t-=s+1,l.encodeUTF16toUTF8(a(e),function(e){this.view[t++]=e}.bind(this)),this.view[t++]=0,r?(this.offset=t,this):s},o.readCString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r,i=e,s=-1;return l.decodeUTF8toUTF16(function(){if(0===s)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(s=this.view[e++])?null:s}.bind(this),r=u(),!0),t?(this.offset=e,r()):{string:r(),length:e-i}},o.writeIString=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,s=t;i=l.calculateUTF16asUTF8(a(e),this.noAssert)[1],t+=4+i;var n=this.buffer.byteLength;if(n<t&&this.resize((n*=2)>t?n:t),t-=4+i,this.littleEndian?(this.view[t+3]=i>>>24&255,this.view[t+2]=i>>>16&255,this.view[t+1]=i>>>8&255,this.view[t]=255&i):(this.view[t]=i>>>24&255,this.view[t+1]=i>>>16&255,this.view[t+2]=i>>>8&255,this.view[t+3]=255&i),t+=4,l.encodeUTF16toUTF8(a(e),function(e){this.view[t++]=e}.bind(this)),t!==s+4+i)throw RangeError("Illegal range: Truncated data, "+t+" == "+(t+4+i));return r?(this.offset=t,this):t-s},o.readIString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r=e,i=this.readUint32(e),s=this.readUTF8String(i,p.METRICS_BYTES,e+=4);return e+=s.length,t?(this.offset=e,s.string):{string:s.string,length:e-r}},p.METRICS_CHARS="c",p.METRICS_BYTES="b",o.writeUTF8String=function(e,t){var r,i=void 0===t;if(i&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var s=t;r=l.calculateUTF16asUTF8(a(e))[1],t+=r;var n=this.buffer.byteLength;return n<t&&this.resize((n*=2)>t?n:t),t-=r,l.encodeUTF16toUTF8(a(e),function(e){this.view[t++]=e}.bind(this)),i?(this.offset=t,this):t-s},o.writeString=o.writeUTF8String,p.calculateUTF8Chars=function(e){return l.calculateUTF16asUTF8(a(e))[0]},p.calculateUTF8Bytes=function(e){return l.calculateUTF16asUTF8(a(e))[1]},p.calculateString=p.calculateUTF8Bytes,o.readUTF8String=function(e,t,r){"number"==typeof t&&(r=t,t=void 0);var i=void 0===r;if(i&&(r=this.offset),void 0===t&&(t=p.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var s,n=0,o=r;if(t===p.METRICS_CHARS){if(s=u(),l.decodeUTF8(function(){return n<e&&r<this.limit?this.view[r++]:null}.bind(this),function(e){++n,l.UTF8toUTF16(e,s)}),n!==e)throw RangeError("Illegal range: Truncated data, "+n+" == "+e);return i?(this.offset=r,s()):{string:s(),length:r-o}}if(t===p.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+e+") <= "+this.buffer.byteLength)}var a=r+e;if(l.decodeUTF8toUTF16(function(){return r<a?this.view[r++]:null}.bind(this),s=u(),this.noAssert),r!==a)throw RangeError("Illegal range: Truncated data, "+r+" == "+a);return i?(this.offset=r,s()):{string:s(),length:r-o}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,s,n=t;i=l.calculateUTF16asUTF8(a(e),this.noAssert)[1],s=p.calculateVarint32(i),t+=s+i;var o=this.buffer.byteLength;if(o<t&&this.resize((o*=2)>t?o:t),t-=s+i,t+=this.writeVarint32(i,t),l.encodeUTF16toUTF8(a(e),function(e){this.view[t++]=e}.bind(this)),t!==n+i+s)throw RangeError("Illegal range: Truncated data, "+t+" == "+(t+i+s));return r?(this.offset=t,this):t-n},o.readVString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r=e,i=this.readVarint32(e),s=this.readUTF8String(i.value,p.METRICS_BYTES,e+=i.length);return e+=s.length,t?(this.offset=e,s.string):{string:s.string,length:e-r}},o.append=function(e,t,r){"number"!=typeof t&&"string"==typeof t||(r=t,t=void 0);var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof p||(e=p.wrap(e,t));var s=e.limit-e.offset;if(s<=0)return this;r+=s;var n=this.buffer.byteLength;return n<r&&this.resize((n*=2)>r?n:r),r-=s,this.view.set(e.view.subarray(e.offset,e.limit),r),e.offset+=s,i&&(this.offset+=s),this},o.appendTo=function(e,t){return e.append(this,t),this},o.assert=function(e){return this.noAssert=!e,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(e){var t=new p(0,this.littleEndian,this.noAssert);return e?(t.buffer=new ArrayBuffer(this.buffer.byteLength),t.view=new Uint8Array(t.buffer)):(t.buffer=this.buffer,t.view=this.view),t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t},o.compact=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||t<e||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(0===e&&t===this.buffer.byteLength)return this;var r=t-e;if(0===r)return this.buffer=n,this.view=null,0<=this.markedOffset&&(this.markedOffset-=e),this.offset=0,this.limit=0,this;var i=new ArrayBuffer(r),s=new Uint8Array(i);return s.set(this.view.subarray(e,t)),this.buffer=i,this.view=s,0<=this.markedOffset&&(this.markedOffset-=e),this.offset=0,this.limit=r,this},o.copy=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||t<e||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return new p(0,this.littleEndian,this.noAssert);var r=t-e,i=new p(r,this.littleEndian,this.noAssert);return i.offset=0,i.limit=r,0<=i.markedOffset&&(i.markedOffset-=e),this.copyTo(i,0,e,t),i},o.copyTo=function(e,t,r,i){var s,n;if(!this.noAssert&&!p.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(t=(n=void 0===t)?e.offset:0|t,r=(s=void 0===r)?this.offset:0|r,i=void 0===i?this.limit:0|i,t<0||t>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+t+" <= "+e.buffer.byteLength);if(r<0||i>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+r+" <= "+this.buffer.byteLength);var o=i-r;return 0===o?e:(e.ensureCapacity(t+o),e.view.set(this.view.subarray(r,i),t),s&&(this.offset+=o),n&&(e.offset+=o),this)},o.ensureCapacity=function(e){var t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this},o.fill=function(e,t,r){var i=void 0===t;if(i&&(t=this.offset),"string"==typeof e&&0<e.length&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,t<0||r<t||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+r+" <= "+this.buffer.byteLength)}if(r<=t)return this;for(;t<r;)this.view[t++]=e;return i&&(this.offset=t),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},o.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},o.LE=function(e){return this.littleEndian=void 0===e||!!e,this},o.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},o.prepend=function(e,t,r){"number"!=typeof t&&"string"==typeof t||(r=t,t=void 0);var i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}e instanceof p||(e=p.wrap(e,t));var s=e.limit-e.offset;if(s<=0)return this;var n=s-r;if(0<n){var o=new ArrayBuffer(this.buffer.byteLength+n),a=new Uint8Array(o);a.set(this.view.subarray(r,this.buffer.byteLength),s),this.buffer=o,this.view=a,this.offset+=n,0<=this.markedOffset&&(this.markedOffset+=n),this.limit+=n,r+=n}else new Uint8Array(this.buffer);return this.view.set(e.view.subarray(e.offset,e.limit),r-s),e.offset=e.limit,i&&(this.offset-=s),this},o.prependTo=function(e,t){return e.prepend(this,t),this},o.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return 0<=this.markedOffset?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}if(this.buffer.byteLength<e){var t=new ArrayBuffer(e),r=new Uint8Array(t);r.set(this.view),this.buffer=t,this.view=r}return this},o.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||t<e||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t||Array.prototype.reverse.call(this.view.subarray(e,t)),this},o.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},o.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||t<e||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r=this.clone();return r.offset=e,r.limit=t,r},o.toBuffer=function(e){var t=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: Not an integer");if(t>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,t<0||r<t||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+r+" <= "+this.buffer.byteLength)}if(!e&&0===t&&r===this.buffer.byteLength)return this.buffer;if(t===r)return n;var i=new ArrayBuffer(r-t);return new Uint8Array(i).set(new Uint8Array(this.buffer).subarray(t,r),0),i},o.toArrayBuffer=o.toBuffer,o.toString=function(e,t,r){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(r=t=e="utf8"),e){case"utf8":return this.toUTF8(t,r);case"base64":return this.toBase64(t,r);case"hex":return this.toHex(t,r);case"binary":return this.toBinary(t,r);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var h=function(){for(var e={},s=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],o=[],t=0,r=s.length;t<r;++t)o[s[t]]=t;return e.encode=function(e,t){for(var r,i;null!==(r=e());)t(s[r>>2&63]),i=(3&r)<<4,null!==(r=e())?(t(s[63&((i|=r>>4&15)|r>>4&15)]),i=(15&r)<<2,null!==(r=e())?(t(s[63&(i|r>>6&3)]),t(s[63&r])):(t(s[63&i]),t(61))):(t(s[63&i]),t(61),t(61))},e.decode=function(e,t){var r,i,s;function n(e){throw Error("Illegal character code: "+e)}for(;null!==(r=e());)if(void 0===(i=o[r])&&n(r),null!==(r=e())&&(void 0===(s=o[r])&&n(r),t(i<<2>>>0|(48&s)>>4),null!==(r=e()))){if(void 0===(i=o[r])){if(61===r)break;n(r)}if(t((15&s)<<4>>>0|(60&i)>>2),null!==(r=e())){if(void 0===(s=o[r])){if(61===r)break;n(r)}t((3&i)<<6>>>0|s)}}},e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},e}();o.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity||t<e)throw RangeError("begin, end");var r;return h.encode(function(){return e<t?this.view[e++]:null}.bind(this),r=u()),r()},p.fromBase64=function(e,t){if("string"!=typeof e)throw TypeError("str");var r=new p(e.length/4*3,t),i=0;return h.decode(a(e),function(e){r.view[i++]=e}),r.limit=i,r},p.btoa=function(e){return p.fromBinary(e).toBase64()},p.atob=function(e){return p.fromBase64(e).toBinary()},o.toBinary=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),t|=0,(e|=0)<0||t>this.capacity()||t<e)throw RangeError("begin, end");if(e===t)return"";for(var r=[],i=[];e<t;)r.push(this.view[e++]),1024<=r.length&&(i.push(String.fromCharCode.apply(String,r)),r=[]);return i.join("")+String.fromCharCode.apply(String,r)},p.fromBinary=function(e,t){if("string"!=typeof e)throw TypeError("str");for(var r,i=0,s=e.length,n=new p(s,t);i<s;){if(255<(r=e.charCodeAt(i)))throw RangeError("illegal char code: "+r);n.view[i++]=r}return n.limit=s,n},o.toDebug=function(e){for(var t,r=-1,i=this.buffer.byteLength,s="",n="",o="";r<i;){if(-1!==r&&(s+=(t=this.view[r])<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(n+=32<t&&t<127?String.fromCharCode(t):".")),++r,e&&0<r&&r%16==0&&r!==i){for(;s.length<51;)s+=" ";o+=s+n+"\n",s=n=""}r===this.offset&&r===this.limit?s+=r===this.markedOffset?"!":"|":r===this.offset?s+=r===this.markedOffset?"[":"<":r===this.limit?s+=r===this.markedOffset?"]":">":s+=r===this.markedOffset?"'":e||0!==r&&r!==i?" ":""}if(e&&" "!==s){for(;s.length<51;)s+=" ";o+=s+n+"\n"}return e?o:s},p.fromDebug=function(e,t,r){for(var i,s,n=e.length,o=new p((n+1)/3|0,t,r),a=0,f=0,u=!1,h=!1,c=!1,l=!1,d=!1;a<n;){switch(i=e.charAt(a++)){case"!":if(!r){if(h||c||l){d=!0;break}h=c=l=!0}o.offset=o.markedOffset=o.limit=f,u=!1;break;case"|":if(!r){if(h||l){d=!0;break}h=l=!0}o.offset=o.limit=f,u=!1;break;case"[":if(!r){if(h||c){d=!0;break}h=c=!0}o.offset=o.markedOffset=f,u=!1;break;case"<":if(!r){if(h){d=!0;break}h=!0}o.offset=f,u=!1;break;case"]":if(!r){if(l||c){d=!0;break}l=c=!0}o.limit=o.markedOffset=f,u=!1;break;case">":if(!r){if(l){d=!0;break}l=!0}o.limit=f,u=!1;break;case"'":if(!r){if(c){d=!0;break}c=!0}o.markedOffset=f,u=!1;break;case" ":u=!1;break;default:if(!r&&u){d=!0;break}if(s=parseInt(i+e.charAt(a++),16),!r&&(isNaN(s)||s<0||255<s))throw TypeError("Illegal str: Not a debug encoded string");o.view[f++]=s,u=!0}if(d)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!r){if(!h||!l)throw TypeError("Illegal str: Missing offset or limit");if(f<o.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+f+" < "+n)}return o},o.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||t<e||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var r,i=new Array(t-e);e<t;)(r=this.view[e++])<16?i.push("0",r.toString(16)):i.push(r.toString(16));return i.join("")},p.fromHex=function(e,t,r){if(!r){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var i,s=e.length,n=new p(s/2|0,t),o=0,a=0;o<s;o+=2){if(i=parseInt(e.substring(o,o+2),16),!r&&(!isFinite(i)||i<0||255<i))throw TypeError("Illegal str: Contains non-hex characters");n.view[a++]=i}return n.limit=a,n};var c,l=c={MAX_CODEPOINT:1114111,encodeUTF8:function(e,t){var r=null;for("number"==typeof e&&(r=e,e=function(){return null});null!==r||null!==(r=e());)r<128?t(127&r):(r<2048?t(r>>6&31|192):(r<65536?t(r>>12&15|224):(t(r>>18&7|240),t(r>>12&63|128)),t(r>>6&63|128)),t(63&r|128)),r=null},decodeUTF8:function(e,t){for(var r,i,s,n,o=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(r=e());)if(0==(128&r))t(r);else if(192==(224&r))null===(i=e())&&o([r,i]),t((31&r)<<6|63&i);else if(224==(240&r))(null===(i=e())||null===(s=e()))&&o([r,i,s]),t((15&r)<<12|(63&i)<<6|63&s);else{if(240!=(248&r))throw RangeError("Illegal starting byte: "+r);(null===(i=e())||null===(s=e())||null===(n=e()))&&o([r,i,s,n]),t((7&r)<<18|(63&i)<<12|(63&s)<<6|63&n)}},UTF16toUTF8:function(e,t){for(var r,i=null;null!==(r=null!==i?i:e());)55296<=r&&r<=57343&&null!==(i=e())&&56320<=i&&i<=57343?(t(1024*(r-55296)+i-56320+65536),i=null):t(r);null!==i&&t(i)},UTF8toUTF16:function(e,t){var r=null;for("number"==typeof e&&(r=e,e=function(){return null});null!==r||null!==(r=e());)r<=65535?t(r):(t(55296+((r-=65536)>>10)),t(r%1024+56320)),r=null},encodeUTF16toUTF8:function(e,t){c.UTF16toUTF8(e,function(e){c.encodeUTF8(e,t)})},decodeUTF8toUTF16:function(e,t){c.decodeUTF8(e,function(e){c.UTF8toUTF16(e,t)})},calculateCodePoint:function(e){return e<128?1:e<2048?2:e<65536?3:4},calculateUTF8:function(e){for(var t,r=0;null!==(t=e());)r+=t<128?1:t<2048?2:t<65536?3:4;return r},calculateUTF16asUTF8:function(e){var t=0,r=0;return c.UTF16toUTF8(e,function(e){++t,r+=e<128?1:e<2048?2:e<65536?3:4}),[t,r]}};return o.toUTF8=function(t,r){if(void 0===t&&(t=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,t<0||r<t||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+r+" <= "+this.buffer.byteLength)}var e;try{l.decodeUTF8toUTF16(function(){return t<r?this.view[t++]:null}.bind(this),e=u())}catch(e){if(t!==r)throw RangeError("Illegal range: Truncated data, "+t+" != "+r)}return e()},p.fromUTF8=function(e,t,r){if(!r&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var i=new p(l.calculateUTF16asUTF8(a(e),!0)[1],t,r),s=0;return l.encodeUTF16toUTF8(a(e),function(e){i.view[s++]=e}),i.limit=s,i},p},"function"==typeof t&&"object"==typeof e&&e&&e.exports?e.exports=function(){var e;try{e=t("long")}catch(e){}return s(e)}():(i.dcodeIO=i.dcodeIO||{}).ByteBuffer=s(i.dcodeIO.Long)},{long:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/long/dist/long.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/cipher-base/index.js":[function(i,o,e){(function(s){var t=i("stream").Transform,e=i("inherits"),n=i("string_decoder").StringDecoder;function r(e){t.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._decoder=null,this._encoding=null}e(o.exports=r,t),r.prototype.update=function(e,t,r){"string"==typeof e&&(e=new s(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},r.prototype._flush=function(e){var t;try{this.push(this._final())}catch(e){t=e}finally{e(t)}},r.prototype._finalOrDigest=function(e){var t=this._final()||new s("");return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new n(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i}}).call(this,i("buffer").Buffer)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js",stream:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/stream-browserify/index.js",string_decoder:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browserify/node_modules/string_decoder/lib/string_decoder.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js":[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/is-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hash/browser.js":[function(e,t,r){"use strict";var i=e("inherits"),s=e("md5.js"),n=e("ripemd160"),o=e("sha.js"),a=e("cipher-base");function f(e){a.call(this,"digest"),this._hash=e}i(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new s:"rmd160"===e||"ripemd160"===e?new n:new f(o(e))}},{"cipher-base":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/cipher-base/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","md5.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/md5.js/index.js",ripemd160:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ripemd160/index.js","sha.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hash/md5.js":[function(e,t,r){var i=e("md5.js");t.exports=function(e){return(new i).update(e).digest()}},{"md5.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/md5.js/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hmac/browser.js":[function(e,t,r){"use strict";var i=e("inherits"),s=e("./legacy"),o=e("cipher-base"),a=e("safe-buffer").Buffer,n=e("create-hash/md5"),f=e("ripemd160"),u=e("sha.js"),h=a.alloc(128);function c(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new f:u(e)).update(t).digest():t.length<r&&(t=a.concat([t,h],r));for(var i=this._ipad=a.allocUnsafe(r),s=this._opad=a.allocUnsafe(r),n=0;n<r;n++)i[n]=54^t[n],s[n]=92^t[n];this._hash="rmd160"===e?new f:u(e),this._hash.update(i)}i(c,o),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new f:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new c("rmd160",t):"md5"===e?new s(n,t):new c(e,t)}},{"./legacy":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hmac/legacy.js","cipher-base":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/cipher-base/index.js","create-hash/md5":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hash/md5.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js",ripemd160:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ripemd160/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js","sha.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/create-hmac/legacy.js":[function(e,t,r){"use strict";var i=e("inherits"),n=e("safe-buffer").Buffer,o=e("cipher-base"),a=n.alloc(128),f=64;function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,(this._key=t).length>f?t=e(t):t.length<f&&(t=n.concat([t,a],f));for(var r=this._ipad=n.allocUnsafe(f),i=this._opad=n.allocUnsafe(f),s=0;s<f;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash=[r]}i(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=s},{"cipher-base":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/cipher-base/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/aes.js":[function(e,t,r){var i,s;i=this,s=function(s){return function(){var e=s,t=e.lib.BlockCipher,r=e.algo,u=[],h=[],c=[],l=[],d=[],p=[],_=[],g=[],m=[],v=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,i=0;for(t=0;t<256;t++){var s=i^i<<1^i<<2^i<<3^i<<4;s=s>>>8^255&s^99,u[r]=s;var n=e[h[s]=r],o=e[n],a=e[o],f=257*e[s]^16843008*s;c[r]=f<<24|f>>>8,l[r]=f<<16|f>>>16,d[r]=f<<8|f>>>24,p[r]=f;f=16843009*a^65537*o^257*n^16843008*r;_[s]=f<<24|f>>>8,g[s]=f<<16|f>>>16,m[s]=f<<8|f>>>24,v[s]=f,r?(r=n^e[e[e[a^n]]],i^=e[e[i]]):r=i=1}}();var b=[0,1,2,4,8,16,32,64,128,27,54],i=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,i=4*((this._nRounds=r+6)+1),s=this._keySchedule=[],n=0;n<i;n++)if(n<r)s[n]=t[n];else{var o=s[n-1];n%r?6<r&&n%r==4&&(o=u[o>>>24]<<24|u[o>>>16&255]<<16|u[o>>>8&255]<<8|u[255&o]):(o=u[(o=o<<8|o>>>24)>>>24]<<24|u[o>>>16&255]<<16|u[o>>>8&255]<<8|u[255&o],o^=b[n/r|0]<<24),s[n]=s[n-r]^o}for(var a=this._invKeySchedule=[],f=0;f<i;f++){n=i-f;if(f%4)o=s[n];else o=s[n-4];a[f]=f<4||n<=4?o:_[u[o>>>24]]^g[u[o>>>16&255]]^m[u[o>>>8&255]]^v[u[255&o]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,c,l,d,p,u)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,_,g,m,v,h);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,i,s,n,o,a){for(var f=this._nRounds,u=e[t]^r[0],h=e[t+1]^r[1],c=e[t+2]^r[2],l=e[t+3]^r[3],d=4,p=1;p<f;p++){var _=i[u>>>24]^s[h>>>16&255]^n[c>>>8&255]^o[255&l]^r[d++],g=i[h>>>24]^s[c>>>16&255]^n[l>>>8&255]^o[255&u]^r[d++],m=i[c>>>24]^s[l>>>16&255]^n[u>>>8&255]^o[255&h]^r[d++],v=i[l>>>24]^s[u>>>16&255]^n[h>>>8&255]^o[255&c]^r[d++];u=_,h=g,c=m,l=v}_=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^r[d++],g=(a[h>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^r[d++],m=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[d++],v=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&c])^r[d++];e[t]=_,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});e.AES=t._createHelper(i)}(),s.AES},"object"==typeof r?t.exports=r=s(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):s(i.CryptoJS)},{"./cipher-core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/cipher-core.js","./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js","./enc-base64":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/enc-base64.js","./evpkdf":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/evpkdf.js","./md5":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/md5.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/cipher-core.js":[function(e,t,r){var i,s;i=this,s=function(e){var o,t,r,i,f,s,n,a,u,h,c,l,d,p,_,g,m,v,b;e.lib.Cipher||(r=(t=e).lib,i=r.Base,f=r.WordArray,s=r.BufferedBlockAlgorithm,(n=t.enc).Utf8,a=n.Base64,u=t.algo.EvpKDF,h=r.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function s(e){return"string"==typeof e?b:m}return function(i){return{encrypt:function(e,t,r){return s(t).encrypt(i,e,t,r)},decrypt:function(e,t,r){return s(t).decrypt(i,e,t,r)}}}}()}),r.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=t.mode={},l=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=c.CBC=function(){var e=l.extend();function n(e,t,r){var i=this._iv;if(i){var s=i;this._iv=o}else s=this._prevBlock;for(var n=0;n<r;n++)e[t+n]^=s[n]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,s=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=s}}),e}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,i=r-e.sigBytes%r,s=i<<24|i<<16|i<<8|i,n=[],o=0;o<i;o+=4)n.push(s);var a=f.create(n,i);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:p}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=r.createEncryptor;else{i=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(r,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),_=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var i=f.create([1398893684,1701076831]).concat(r).concat(t);else i=t;return i.toString(a)},parse:function(e){var t=a.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var i=f.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return _.create({ciphertext:t,salt:i})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,r,i){i=this.cfg.extend(i);var s=e.createEncryptor(r,i),n=s.finalize(t),o=s.cfg;return _.create({ciphertext:n,key:r,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,r,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(r,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,r,i){i||(i=f.random(8));var s=u.create({keySize:t+r}).compute(e,i),n=f.create(s.words.slice(t),4*r);return s.sigBytes=4*t,_.create({key:s,iv:n,salt:i})}},b=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(e,t,r,i){var s=(i=this.cfg.extend(i)).kdf.execute(r,e.keySize,e.ivSize);i.iv=s.iv;var n=m.encrypt.call(this,e,t,s.key,i);return n.mixIn(s),n},decrypt:function(e,t,r,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var s=i.kdf.execute(r,e.keySize,e.ivSize,t.salt);return i.iv=s.iv,m.decrypt.call(this,e,t,s.key,i)}}))},"object"==typeof r?t.exports=r=s(e("./core"),e("./evpkdf")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js","./evpkdf":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/evpkdf.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js":[function(e,t,r){var i,s;i=this,s=function(){var h,r,e,t,i,c,s,n,o,a,f,u,l=l||(h=Math,r=Object.create||function(){function r(){}return function(e){var t;return r.prototype=e,t=new r,r.prototype=null,t}}(),t=(e={}).lib={},i=t.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=t.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||n).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,s=e.sigBytes;if(this.clamp(),i%4)for(var n=0;n<s;n++){var o=r[n>>>2]>>>24-n%4*8&255;t[i+n>>>2]|=o<<24-(i+n)%4*8}else for(n=0;n<s;n+=4)t[i+n>>>2]=r[n>>>2];return this.sigBytes+=s,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=h.ceil(t/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,r=[],i=function(t){t=t;var r=987654321,i=4294967295;return function(){var e=((r=36969*(65535&r)+(r>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return e/=4294967296,(e+=.5)*(.5<h.random()?1:-1)}},s=0;s<e;s+=4){var n=i(4294967296*(t||h.random()));t=987654071*n(),r.push(4294967296*n()|0)}return new c.init(r,e)}}),s=e.enc={},n=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],s=0;s<r;s++){var n=t[s>>>2]>>>24-s%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i+=2)r[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(r,t/2)}},o=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],s=0;s<r;s++){var n=t[s>>>2]>>>24-s%4*8&255;i.push(String.fromCharCode(n))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(r,t)}},a=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},f=t.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=a.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,s=this.blockSize,n=i/(4*s),o=(n=e?h.ceil(n):h.max((0|n)-this._minBufferSize,0))*s,a=h.min(4*o,i);if(o){for(var f=0;f<o;f+=s)this._doProcessBlock(r,f);var u=r.splice(0,o);t.sigBytes-=a}return new c.init(u,a)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),t.Hasher=f.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(r){return function(e,t){return new r.init(t).finalize(e)}},_createHmacHelper:function(r){return function(e,t){return new u.HMAC.init(r,t).finalize(e)}}}),u=e.algo={},e);return l},"object"==typeof r?t.exports=r=s():i.CryptoJS=s()},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/enc-base64.js":[function(e,t,r){var i,s;i=this,s=function(e){var t,f;return f=(t=e).lib.WordArray,t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var s=[],n=0;n<r;n+=3)for(var o=(t[n>>>2]>>>24-n%4*8&255)<<16|(t[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|t[n+2>>>2]>>>24-(n+2)%4*8&255,a=0;a<4&&n+.75*a<r;a++)s.push(i.charAt(o>>>6*(3-a)&63));var f=i.charAt(64);if(f)for(;s.length%4;)s.push(f);return s.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var n=r.charAt(64);if(n){var o=e.indexOf(n);-1!==o&&(t=o)}return function(e,t,r){for(var i=[],s=0,n=0;n<t;n++)if(n%4){var o=r[e.charCodeAt(n-1)]<<n%4*2,a=r[e.charCodeAt(n)]>>>6-n%4*2;i[s>>>2]|=(o|a)<<24-s%4*8,s++}return f.create(i,s)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=s(e("./core")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/enc-hex.js":[function(e,t,r){var i,s;i=this,s=function(e){return e.enc.Hex},"object"==typeof r?t.exports=r=s(e("./core")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/evpkdf.js":[function(e,t,r){var i,s;i=this,s=function(e){var t,r,i,h,s,n,o;return r=(t=e).lib,i=r.Base,h=r.WordArray,s=t.algo,n=s.MD5,o=s.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:n,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,i=r.hasher.create(),s=h.create(),n=s.words,o=r.keySize,a=r.iterations;n.length<o;){f&&i.update(f);var f=i.update(e).finalize(t);i.reset();for(var u=1;u<a;u++)f=i.finalize(f),i.reset();s.concat(f)}return s.sigBytes=4*o,s}}),t.EvpKDF=function(e,t,r){return o.create(r).compute(e,t)},e.EvpKDF},"object"==typeof r?t.exports=r=s(e("./core"),e("./sha1"),e("./hmac")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js","./hmac":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/hmac.js","./sha1":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/sha1.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/hmac.js":[function(e,t,r){var i,s;i=this,s=function(e){var t,r,u;r=(t=e).lib.Base,u=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=u.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),n=this._iKey=t.clone(),o=s.words,a=n.words,f=0;f<r;f++)o[f]^=1549556828,a[f]^=909522486;s.sigBytes=n.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})},"object"==typeof r?t.exports=r=s(e("./core")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/md5.js":[function(e,t,r){var i,s;i=this,s=function(o){return function(h){var e=o,t=e.lib,r=t.WordArray,i=t.Hasher,s=e.algo,D=[];!function(){for(var e=0;e<64;e++)D[e]=4294967296*h.abs(h.sin(e+1))|0}();var n=s.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var i=t+r,s=e[i];e[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var n=this._hash.words,o=e[t+0],a=e[t+1],f=e[t+2],u=e[t+3],h=e[t+4],c=e[t+5],l=e[t+6],d=e[t+7],p=e[t+8],_=e[t+9],g=e[t+10],m=e[t+11],v=e[t+12],b=e[t+13],y=e[t+14],w=e[t+15],j=n[0],B=n[1],E=n[2],x=n[3];B=I(B=I(B=I(B=I(B=k(B=k(B=k(B=k(B=S(B=S(B=S(B=S(B=T(B=T(B=T(B=T(B,E=T(E,x=T(x,j=T(j,B,E,x,o,7,D[0]),B,E,a,12,D[1]),j,B,f,17,D[2]),x,j,u,22,D[3]),E=T(E,x=T(x,j=T(j,B,E,x,h,7,D[4]),B,E,c,12,D[5]),j,B,l,17,D[6]),x,j,d,22,D[7]),E=T(E,x=T(x,j=T(j,B,E,x,p,7,D[8]),B,E,_,12,D[9]),j,B,g,17,D[10]),x,j,m,22,D[11]),E=T(E,x=T(x,j=T(j,B,E,x,v,7,D[12]),B,E,b,12,D[13]),j,B,y,17,D[14]),x,j,w,22,D[15]),E=S(E,x=S(x,j=S(j,B,E,x,a,5,D[16]),B,E,l,9,D[17]),j,B,m,14,D[18]),x,j,o,20,D[19]),E=S(E,x=S(x,j=S(j,B,E,x,c,5,D[20]),B,E,g,9,D[21]),j,B,w,14,D[22]),x,j,h,20,D[23]),E=S(E,x=S(x,j=S(j,B,E,x,_,5,D[24]),B,E,y,9,D[25]),j,B,u,14,D[26]),x,j,p,20,D[27]),E=S(E,x=S(x,j=S(j,B,E,x,b,5,D[28]),B,E,f,9,D[29]),j,B,d,14,D[30]),x,j,v,20,D[31]),E=k(E,x=k(x,j=k(j,B,E,x,c,4,D[32]),B,E,p,11,D[33]),j,B,m,16,D[34]),x,j,y,23,D[35]),E=k(E,x=k(x,j=k(j,B,E,x,a,4,D[36]),B,E,h,11,D[37]),j,B,d,16,D[38]),x,j,g,23,D[39]),E=k(E,x=k(x,j=k(j,B,E,x,b,4,D[40]),B,E,o,11,D[41]),j,B,u,16,D[42]),x,j,l,23,D[43]),E=k(E,x=k(x,j=k(j,B,E,x,_,4,D[44]),B,E,v,11,D[45]),j,B,w,16,D[46]),x,j,f,23,D[47]),E=I(E,x=I(x,j=I(j,B,E,x,o,6,D[48]),B,E,d,10,D[49]),j,B,y,15,D[50]),x,j,c,21,D[51]),E=I(E,x=I(x,j=I(j,B,E,x,v,6,D[52]),B,E,u,10,D[53]),j,B,g,15,D[54]),x,j,a,21,D[55]),E=I(E,x=I(x,j=I(j,B,E,x,p,6,D[56]),B,E,w,10,D[57]),j,B,l,15,D[58]),x,j,b,21,D[59]),E=I(E,x=I(x,j=I(j,B,E,x,h,6,D[60]),B,E,m,10,D[61]),j,B,f,15,D[62]),x,j,_,21,D[63]),n[0]=n[0]+j|0,n[1]=n[1]+B|0,n[2]=n[2]+E|0,n[3]=n[3]+x|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32;var s=h.floor(r/4294967296),n=r;t[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,f=0;f<4;f++){var u=a[f];a[f]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function T(e,t,r,i,s,n,o){var a=e+(t&r|~t&i)+s+o;return(a<<n|a>>>32-n)+t}function S(e,t,r,i,s,n,o){var a=e+(t&i|r&~i)+s+o;return(a<<n|a>>>32-n)+t}function k(e,t,r,i,s,n,o){var a=e+(t^r^i)+s+o;return(a<<n|a>>>32-n)+t}function I(e,t,r,i,s,n,o){var a=e+(r^(t|~i))+s+o;return(a<<n|a>>>32-n)+t}e.MD5=i._createHelper(n),e.HmacMD5=i._createHmacHelper(n)}(Math),o.MD5},"object"==typeof r?t.exports=r=s(e("./core")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/sha1.js":[function(e,t,r){var i,s;i=this,s=function(e){var t,r,i,s,n,c,o;return r=(t=e).lib,i=r.WordArray,s=r.Hasher,n=t.algo,c=[],o=n.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,i=r[0],s=r[1],n=r[2],o=r[3],a=r[4],f=0;f<80;f++){if(f<16)c[f]=0|e[t+f];else{var u=c[f-3]^c[f-8]^c[f-14]^c[f-16];c[f]=u<<1|u>>>31}var h=(i<<5|i>>>27)+a+c[f];h+=f<20?1518500249+(s&n|~s&o):f<40?1859775393+(s^n^o):f<60?(s&n|s&o|n&o)-1894007588:(s^n^o)-899497514,a=o,o=n,n=s<<30|s>>>2,s=i,i=h}r[0]=r[0]+i|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(i+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=s._createHelper(o),t.HmacSHA1=s._createHmacHelper(o),e.SHA1},"object"==typeof r?t.exports=r=s(e("./core")):s(i.CryptoJS)},{"./core":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/crypto-js/core.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/index.js":[function(e,t,r){var a=Array.prototype.slice,f=e("./lib/keys.js"),u=e("./lib/is_arguments.js"),h=t.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var i,s;if(c(e)||c(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return!!u(t)&&(e=a.call(e),t=a.call(t),h(e,t,r));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var n=f(e),o=f(t)}catch(e){return!1}if(n.length!=o.length)return!1;for(n.sort(),o.sort(),i=n.length-1;0<=i;i--)if(n[i]!=o[i])return!1;for(i=n.length-1;0<=i;i--)if(s=n[i],!h(e[s],t[s],r))return!1;return typeof e==typeof t}(e,t,r))};function c(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(0<e.length&&"number"!=typeof e[0]))}},{"./lib/is_arguments.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/lib/is_arguments.js","./lib/keys.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/lib/keys.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/lib/is_arguments.js":[function(e,t,r){var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function s(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(r=t.exports=i?s:n).supported=s,r.unsupported=n},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/deep-equal/lib/keys.js":[function(e,t,r){function i(e){var t=[];for(var r in e)t.push(r);return t}(t.exports="function"==typeof Object.keys?Object.keys:i).shim=i},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/curve.js":[function(e,t,r){var i=e("assert"),a=e("bigi"),f=e("./point");function s(e,t,r,i,s,n,o){this.p=e,this.a=t,this.b=r,this.G=f.fromAffine(this,i,s),this.n=n,this.h=o,this.infinity=new f(this,null,null,a.ZERO),this.pOverFour=e.add(a.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}s.prototype.pointFromX=function(e,t){var r=t.pow(3).add(this.a.multiply(t)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),i=r;return r.isEven()^!e&&(i=this.p.subtract(i)),f.fromAffine(this,t,i)},s.prototype.isInfinity=function(e){return e===this.infinity||0===e.z.signum()&&0!==e.y.signum()},s.prototype.isOnCurve=function(e){if(this.isInfinity(e))return!0;var t=e.affineX,r=e.affineY,i=this.a,s=this.b,n=this.p;if(t.signum()<0||0<=t.compareTo(n))return!1;if(r.signum()<0||0<=r.compareTo(n))return!1;var o=r.square().mod(n),a=t.pow(3).add(i.multiply(t)).add(s).mod(n);return o.equals(a)},s.prototype.validate=function(e){i(!this.isInfinity(e),"Point is at infinity"),i(this.isOnCurve(e),"Point is not on the curve");var t=e.multiply(this.n);return i(this.isInfinity(t),"Point is not a scalar multiple of G"),!0},t.exports=s},{"./point":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/point.js",assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/curves.json":[function(e,t,r){t.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/index.js":[function(e,t,r){var i=e("./point"),s=e("./curve"),n=e("./names");t.exports={Curve:s,Point:i,getCurveByName:n}},{"./curve":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/curve.js","./names":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/names.js","./point":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/point.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/names.js":[function(e,t,r){var u=e("bigi"),h=e("./curves.json"),c=e("./curve");t.exports=function(e){var t=h[e];if(!t)return null;var r=new u(t.p,16),i=new u(t.a,16),s=new u(t.b,16),n=new u(t.n,16),o=new u(t.h,16),a=new u(t.Gx,16),f=new u(t.Gy,16);return new c(r,i,s,a,f,n,o)}},{"./curve":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/curve.js","./curves.json":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/curves.json",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ecurve/lib/point.js":[function(e,t,r){var u=e("assert"),n=e("safe-buffer").Buffer,h=e("bigi"),d=h.valueOf(3);function p(e,t,r,i){u.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=e,this.x=t,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(p.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(p.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(p.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),p.fromAffine=function(e,t,r){return new p(e,t,r,h.ONE)},p.prototype.equals=function(e){return e===this||(this.curve.isInfinity(this)?this.curve.isInfinity(e):this.curve.isInfinity(e)?this.curve.isInfinity(this):0===e.y.multiply(this.z).subtract(this.y.multiply(e.z)).mod(this.curve.p).signum()&&0===e.x.multiply(this.z).subtract(this.x.multiply(e.z)).mod(this.curve.p).signum())},p.prototype.negate=function(){var e=this.curve.p.subtract(this.y);return new p(this.curve,this.x,e,this.z)},p.prototype.add=function(e){if(this.curve.isInfinity(this))return e;if(this.curve.isInfinity(e))return this;var t=this.x,r=this.y,i=e.x,s=e.y.multiply(this.z).subtract(r.multiply(e.z)).mod(this.curve.p),n=i.multiply(this.z).subtract(t.multiply(e.z)).mod(this.curve.p);if(0===n.signum())return 0===s.signum()?this.twice():this.curve.infinity;var o=n.square(),a=o.multiply(n),f=t.multiply(o),u=s.square().multiply(this.z),h=u.subtract(f.shiftLeft(1)).multiply(e.z).subtract(a).multiply(n).mod(this.curve.p),c=f.multiply(d).multiply(s).subtract(r.multiply(a)).subtract(u.multiply(s)).multiply(e.z).add(s.multiply(a)).mod(this.curve.p),l=a.multiply(this.z).multiply(e.z).mod(this.curve.p);return new p(this.curve,h,c,l)},p.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var e=this.x,t=this.y,r=t.multiply(this.z).mod(this.curve.p),i=r.multiply(t).mod(this.curve.p),s=this.curve.a,n=e.square().multiply(d);0!==s.signum()&&(n=n.add(this.z.square().multiply(s)));var o=(n=n.mod(this.curve.p)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.p),a=n.multiply(d).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(n.pow(3)).mod(this.curve.p),f=r.pow(3).shiftLeft(3).mod(this.curve.p);return new p(this.curve,o,a,f)},p.prototype.multiply=function(e){if(this.curve.isInfinity(this))return this;if(0===e.signum())return this.curve.infinity;for(var t=e,r=t.multiply(d),i=this.negate(),s=this,n=r.bitLength()-2;0<n;--n){var o=r.testBit(n),a=t.testBit(n);s=s.twice(),o!==a&&(s=s.add(o?this:i))}return s},p.prototype.multiplyTwo=function(e,t,r){for(var i=Math.max(e.bitLength(),r.bitLength())-1,s=this.curve.infinity,n=this.add(t);0<=i;){var o=e.testBit(i),a=r.testBit(i);s=s.twice(),o?s=a?s.add(n):s.add(this):a&&(s=s.add(t)),--i}return s},p.prototype.getEncoded=function(e){if(null==e&&(e=this.compressed),this.curve.isInfinity(this))return n.alloc(1,0);var t,r=this.affineX,i=this.affineY,s=this.curve.pLength;return e?(t=n.allocUnsafe(1+s)).writeUInt8(i.isEven()?2:3,0):((t=n.allocUnsafe(1+s+s)).writeUInt8(4,0),i.toBuffer(s).copy(t,1+s)),r.toBuffer(s).copy(t,1),t},p.decodeFrom=function(e,t){var r,i=t.readUInt8(0),s=4!==i,n=Math.floor((e.p.bitLength()+7)/8),o=h.fromBuffer(t.slice(1,1+n));if(s){u.equal(t.length,n+1,"Invalid sequence length"),u(2===i||3===i,"Invalid sequence tag");var a=3===i;r=e.pointFromX(a,o)}else{u.equal(t.length,1+n+n,"Invalid sequence length");var f=h.fromBuffer(t.slice(1+n));r=p.fromAffine(e,o,f)}return r.compressed=s,r},p.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},t.exports=p},{assert:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/assert/assert.js",bigi:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/bigi/lib/index.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/events/events.js":[function(e,t,r){var f=Object.create||function(e){var t=function(){};return t.prototype=e,new t},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},n=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function i(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=f(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}((t.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0;var s,a=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(e){s=!1}function h(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){var s,n,o;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((n=e._events)?(n.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),n=e._events),o=n[t]):(n=e._events=f(null),e._eventsCount=0),o){if("function"==typeof o?o=n[t]=i?[r,o]:[o,r]:i?o.unshift(r):o.push(r),!o.warned&&(s=h(e))&&0<s&&o.length>s){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=o.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",a.name,a.message)}}else o=n[t]=r,++e._eventsCount;return e}function l(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function d(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=n.call(l,i);return s.listener=r,i.wrapFn=s}function p(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function _(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}s?Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');a=e}}):i.defaultMaxListeners=a,i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return h(this)},i.prototype.emit=function(e){var t,r,i,s,n,o,a="error"===e;if(o=this._events)a=a&&null==o.error;else if(!a)return!1;if(a){if(1<arguments.length&&(t=arguments[1]),t instanceof Error)throw t;var f=new Error('Unhandled "error" event. ('+t+")");throw f.context=t,f}if(!(r=o[e]))return!1;var u="function"==typeof r;switch(i=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var i=e.length,s=_(e,i),n=0;n<i;++n)s[n].call(r)}(r,u,this);break;case 2:!function(e,t,r,i){if(t)e.call(r,i);else for(var s=e.length,n=_(e,s),o=0;o<s;++o)n[o].call(r,i)}(r,u,this,arguments[1]);break;case 3:!function(e,t,r,i,s){if(t)e.call(r,i,s);else for(var n=e.length,o=_(e,n),a=0;a<n;++a)o[a].call(r,i,s)}(r,u,this,arguments[1],arguments[2]);break;case 4:!function(e,t,r,i,s,n){if(t)e.call(r,i,s,n);else for(var o=e.length,a=_(e,o),f=0;f<o;++f)a[f].call(r,i,s,n)}(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(s=new Array(i-1),n=1;n<i;n++)s[n-1]=arguments[n];!function(e,t,r,i){if(t)e.apply(r,i);else for(var s=e.length,n=_(e,s),o=0;o<s;++o)n[o].apply(r,i)}(r,u,this,s)}return!0},i.prototype.on=i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,i,s,n,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=f(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(s=-1,n=r.length-1;0<=n;n--)if(r[n]===t||r[n].listener===t){o=r[n].listener,s=n;break}if(s<0)return this;0===s?r.shift():function(e,t){for(var r=t,i=r+1,s=e.length;i<s;r+=1,i+=1)e[r]=e[i];e.pop()}(r,s),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,o||t)}return this},i.prototype.removeAllListeners=function(e){var t,r,i;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=f(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=f(null):delete r[e]),this;if(0===arguments.length){var s,n=o(r);for(i=0;i<n.length;++i)"removeListener"!==(s=n[i])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=f(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(i=t.length-1;0<=i;i--)this.removeListener(e,t[i]);return this},i.prototype.listeners=function(e){var t,r=this._events;return r&&(t=r[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(t):[]},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return 0<this._eventsCount?Reflect.ownKeys(this._events):[]}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/hash-base/index.js":[function(r,i,e){(function(a){"use strict";var t=r("stream").Transform;function e(e){t.call(this),this._block=new a(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r("inherits")(e,t),e.prototype._transform=function(e,t,r){var i=null;try{"buffer"!==t&&(e=new a(e,t)),this.update(e)}catch(e){i=e}r(i)},e.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},e.prototype.update=function(e,t){if(!a.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");a.isBuffer(e)||(e=new a(e,t||"binary"));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)r[s++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var n=0,o=8*e.length;0<o;++n)this._length[n]+=o,0<(o=this._length[n]/4294967296|0)&&(this._length[n]-=4294967296*o);return this},e.prototype._update=function(e){throw new Error("_update is not implemented")},e.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},e.prototype._digest=function(){throw new Error("_digest is not implemented")},i.exports=e}).call(this,r("buffer").Buffer)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js",stream:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/stream-browserify/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ieee754/index.js":[function(e,t,r){r.read=function(e,t,r,i,s){var n,o,a=8*s-i-1,f=(1<<a)-1,u=f>>1,h=-7,c=r?s-1:0,l=r?-1:1,d=e[t+c];for(c+=l,n=d&(1<<-h)-1,d>>=-h,h+=a;0<h;n=256*n+e[t+c],c+=l,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=i;0<h;o=256*o+e[t+c],c+=l,h-=8);if(0===n)n=1-u;else{if(n===f)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,i),n-=u}return(d?-1:1)*o*Math.pow(2,n-i)},r.write=function(e,t,r,i,s,n){var o,a,f,u=8*n-s-1,h=(1<<u)-1,c=h>>1,l=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:n-1,p=i?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=h):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),2<=(t+=1<=o+c?l/f:l*Math.pow(2,1-c))*f&&(o++,f/=2),h<=o+c?(a=0,o=h):1<=o+c?(a=(t*f-1)*Math.pow(2,s),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,s),o=0));8<=s;e[r+d]=255&a,d+=p,a/=256,s-=8);for(o=o<<s|a,u+=s;0<u;e[r+d]=255&o,d+=p,o/=256,u-=8);e[r+d-p]|=128*_}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js":[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/is-buffer/index.js":[function(e,t,r){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/isarray/index.js":[function(e,t,r){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/long/dist/long.js":[function(e,t,r){var i,s;i=this,s=function(){"use strict";function i(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function d(e){return!0===(e&&e.__isLong__)}Object.defineProperty(i.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),i.isLong=d;var n={},o={};function e(e,t){var r,i,s;return t?(s=0<=(e>>>=0)&&e<256)&&(i=o[e])?i:(r=_(e,(0|e)<0?-1:0,!0),s&&(o[e]=r),r):(s=-128<=(e|=0)&&e<128)&&(i=n[e])?i:(r=_(e,e<0?-1:0,!1),s&&(n[e]=r),r)}function p(e,t){if(isNaN(e)||!isFinite(e))return t?f:v;if(t){if(e<0)return f;if(s<=e)return w}else{if(e<=-a)return j;if(a<=e+1)return y}return e<0?p(-e,t).neg():_(e%r|0,e/r|0,t)}function _(e,t,r){return new i(e,t,r)}i.fromInt=e,i.fromNumber=p,i.fromBits=_;var h=Math.pow;function c(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return v;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");var i;if(0<(i=e.indexOf("-")))throw Error("interior hyphen");if(0===i)return c(e.substring(1),t,r).neg();for(var s=p(h(r,8)),n=v,o=0;o<e.length;o+=8){var a=Math.min(8,e.length-o),f=parseInt(e.substring(o,o+a),r);if(a<8){var u=p(h(r,a));n=n.mul(u).add(p(f))}else n=(n=n.mul(s)).add(p(f))}return n.unsigned=t,n}function g(e){return e instanceof i?e:"number"==typeof e?p(e):"string"==typeof e?c(e):_(e.low,e.high,e.unsigned)}i.fromString=c,i.fromValue=g;var r=4294967296,s=r*r,a=s/2,m=e(1<<24),v=e(0);i.ZERO=v;var f=e(0,!0);i.UZERO=f;var u=e(1);i.ONE=u;var l=e(1,!0);i.UONE=l;var b=e(-1);i.NEG_ONE=b;var y=_(-1,2147483647,!1);i.MAX_VALUE=y;var w=_(-1,-1,!0);i.MAX_UNSIGNED_VALUE=w;var j=_(0,-2147483648,!1);i.MIN_VALUE=j;var t=i.prototype;return t.toInt=function(){return this.unsigned?this.low>>>0:this.low},t.toNumber=function(){return this.unsigned?(this.high>>>0)*r+(this.low>>>0):this.high*r+(this.low>>>0)},t.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(j)){var t=p(e),r=this.div(t),i=r.mul(t).sub(this);return r.toString(e)+i.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var s=p(h(e,6),this.unsigned),n=this,o="";;){var a=n.div(s),f=(n.sub(a.mul(s)).toInt()>>>0).toString(e);if((n=a).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},t.getHighBits=function(){return this.high},t.getHighBitsUnsigned=function(){return this.high>>>0},t.getLowBits=function(){return this.low},t.getLowBitsUnsigned=function(){return this.low>>>0},t.getNumBitsAbs=function(){if(this.isNegative())return this.eq(j)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;0<t&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},t.isZero=function(){return 0===this.high&&0===this.low},t.isNegative=function(){return!this.unsigned&&this.high<0},t.isPositive=function(){return this.unsigned||0<=this.high},t.isOdd=function(){return 1==(1&this.low)},t.isEven=function(){return 0==(1&this.low)},t.equals=function(e){return d(e)||(e=g(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},t.eq=t.equals,t.notEquals=function(e){return!this.eq(e)},t.neq=t.notEquals,t.lessThan=function(e){return this.comp(e)<0},t.lt=t.lessThan,t.lessThanOrEqual=function(e){return this.comp(e)<=0},t.lte=t.lessThanOrEqual,t.greaterThan=function(e){return 0<this.comp(e)},t.gt=t.greaterThan,t.greaterThanOrEqual=function(e){return 0<=this.comp(e)},t.gte=t.greaterThanOrEqual,t.compare=function(e){if(d(e)||(e=g(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},t.comp=t.compare,t.negate=function(){return!this.unsigned&&this.eq(j)?j:this.not().add(u)},t.neg=t.negate,t.add=function(e){d(e)||(e=g(e));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,n=e.high>>>16,o=65535&e.high,a=e.low>>>16,f=0,u=0,h=0,c=0;return h+=(c+=s+(65535&e.low))>>>16,u+=(h+=i+a)>>>16,f+=(u+=r+o)>>>16,f+=t+n,_((h&=65535)<<16|(c&=65535),(f&=65535)<<16|(u&=65535),this.unsigned)},t.subtract=function(e){return d(e)||(e=g(e)),this.add(e.neg())},t.sub=t.subtract,t.multiply=function(e){if(this.isZero())return v;if(d(e)||(e=g(e)),e.isZero())return v;if(this.eq(j))return e.isOdd()?j:v;if(e.eq(j))return this.isOdd()?j:v;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return p(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,n=e.high>>>16,o=65535&e.high,a=e.low>>>16,f=65535&e.low,u=0,h=0,c=0,l=0;return c+=(l+=s*f)>>>16,h+=(c+=i*f)>>>16,c&=65535,h+=(c+=s*a)>>>16,u+=(h+=r*f)>>>16,h&=65535,u+=(h+=i*a)>>>16,h&=65535,u+=(h+=s*o)>>>16,u+=t*f+r*a+i*o+s*n,_((c&=65535)<<16|(l&=65535),(u&=65535)<<16|(h&=65535),this.unsigned)},t.mul=t.multiply,t.divide=function(e){if(d(e)||(e=g(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?f:v;var t,r,i;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return f;if(e.gt(this.shru(1)))return l;i=f}else{if(this.eq(j))return e.eq(u)||e.eq(b)?j:e.eq(j)?u:(t=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?u:b:(r=this.sub(e.mul(t)),i=t.add(r.div(e)));else if(e.eq(j))return this.unsigned?f:v;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=v}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(t)/Math.LN2),n=s<=48?1:h(2,s-48),o=p(t),a=o.mul(e);a.isNegative()||a.gt(r);)a=(o=p(t-=n,this.unsigned)).mul(e);o.isZero()&&(o=u),i=i.add(o),r=r.sub(a)}return i},t.div=t.divide,t.modulo=function(e){return d(e)||(e=g(e)),this.sub(this.div(e).mul(e))},t.mod=t.modulo,t.not=function(){return _(~this.low,~this.high,this.unsigned)},t.and=function(e){return d(e)||(e=g(e)),_(this.low&e.low,this.high&e.high,this.unsigned)},t.or=function(e){return d(e)||(e=g(e)),_(this.low|e.low,this.high|e.high,this.unsigned)},t.xor=function(e){return d(e)||(e=g(e)),_(this.low^e.low,this.high^e.high,this.unsigned)},t.shiftLeft=function(e){return d(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?_(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):_(0,this.low<<e-32,this.unsigned)},t.shl=t.shiftLeft,t.shiftRight=function(e){return d(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?_(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):_(this.high>>e-32,0<=this.high?0:-1,this.unsigned)},t.shr=t.shiftRight,t.shiftRightUnsigned=function(e){if(d(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?_(this.low>>>e|t<<32-e,t>>>e,this.unsigned):_(32===e?t:t>>>e-32,0,this.unsigned)},t.shru=t.shiftRightUnsigned,t.toSigned=function(){return this.unsigned?_(this.low,this.high,!1):this},t.toUnsigned=function(){return this.unsigned?this:_(this.low,this.high,!0)},t.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},t.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255]},t.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t]},i},"function"==typeof e&&"object"==typeof t&&t&&t.exports?t.exports=s():(i.dcodeIO=i.dcodeIO||{}).Long=s()},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/md5.js/index.js":[function(s,n,e){(function(t){"use strict";var e=s("inherits"),r=s("hash-base"),o=new Array(16);function i(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function a(e,t){return e<<t|e>>>32-t}function f(e,t,r,i,s,n,o){return a(e+(t&r|~t&i)+s+n|0,o)+t|0}function u(e,t,r,i,s,n,o){return a(e+(t&i|r&~i)+s+n|0,o)+t|0}function h(e,t,r,i,s,n,o){return a(e+(t^r^i)+s+n|0,o)+t|0}function c(e,t,r,i,s,n,o){return a(e+(r^(t|~i))+s+n|0,o)+t|0}e(i,r),i.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,s=this._c,n=this._d;i=c(i=c(i=c(i=c(i=h(i=h(i=h(i=h(i=u(i=u(i=u(i=u(i=f(i=f(i=f(i=f(i,s=f(s,n=f(n,r=f(r,i,s,n,e[0],3614090360,7),i,s,e[1],3905402710,12),r,i,e[2],606105819,17),n,r,e[3],3250441966,22),s=f(s,n=f(n,r=f(r,i,s,n,e[4],4118548399,7),i,s,e[5],1200080426,12),r,i,e[6],2821735955,17),n,r,e[7],4249261313,22),s=f(s,n=f(n,r=f(r,i,s,n,e[8],1770035416,7),i,s,e[9],2336552879,12),r,i,e[10],4294925233,17),n,r,e[11],2304563134,22),s=f(s,n=f(n,r=f(r,i,s,n,e[12],1804603682,7),i,s,e[13],4254626195,12),r,i,e[14],2792965006,17),n,r,e[15],1236535329,22),s=u(s,n=u(n,r=u(r,i,s,n,e[1],4129170786,5),i,s,e[6],3225465664,9),r,i,e[11],643717713,14),n,r,e[0],3921069994,20),s=u(s,n=u(n,r=u(r,i,s,n,e[5],3593408605,5),i,s,e[10],38016083,9),r,i,e[15],3634488961,14),n,r,e[4],3889429448,20),s=u(s,n=u(n,r=u(r,i,s,n,e[9],568446438,5),i,s,e[14],3275163606,9),r,i,e[3],4107603335,14),n,r,e[8],1163531501,20),s=u(s,n=u(n,r=u(r,i,s,n,e[13],2850285829,5),i,s,e[2],4243563512,9),r,i,e[7],1735328473,14),n,r,e[12],2368359562,20),s=h(s,n=h(n,r=h(r,i,s,n,e[5],4294588738,4),i,s,e[8],2272392833,11),r,i,e[11],1839030562,16),n,r,e[14],4259657740,23),s=h(s,n=h(n,r=h(r,i,s,n,e[1],2763975236,4),i,s,e[4],1272893353,11),r,i,e[7],4139469664,16),n,r,e[10],3200236656,23),s=h(s,n=h(n,r=h(r,i,s,n,e[13],681279174,4),i,s,e[0],3936430074,11),r,i,e[3],3572445317,16),n,r,e[6],76029189,23),s=h(s,n=h(n,r=h(r,i,s,n,e[9],3654602809,4),i,s,e[12],3873151461,11),r,i,e[15],530742520,16),n,r,e[2],3299628645,23),s=c(s,n=c(n,r=c(r,i,s,n,e[0],4096336452,6),i,s,e[7],1126891415,10),r,i,e[14],2878612391,15),n,r,e[5],4237533241,21),s=c(s,n=c(n,r=c(r,i,s,n,e[12],1700485571,6),i,s,e[3],2399980690,10),r,i,e[10],4293915773,15),n,r,e[1],2240044497,21),s=c(s,n=c(n,r=c(r,i,s,n,e[8],1873313359,6),i,s,e[15],4264355552,10),r,i,e[6],2734768916,15),n,r,e[13],1309151649,21),s=c(s,n=c(n,r=c(r,i,s,n,e[4],4149444226,6),i,s,e[11],3174756917,10),r,i,e[2],718787259,15),n,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+s|0,this._d=this._d+n|0},i.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},n.exports=i}).call(this,s("buffer").Buffer)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","hash-base":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/md5.js/node_modules/hash-base/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/md5.js/node_modules/hash-base/index.js":[function(e,t,r){"use strict";var a=e("safe-buffer").Buffer,i=e("stream").Transform;function s(e){i.call(this),this._block=a.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(s,i),s.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},s.prototype.update=function(e,t){if(function(e,t){if(!a.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(e)||(e=a.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)r[s++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var n=0,o=8*e.length;0<o;++n)this._length[n]+=o,0<(o=this._length[n]/4294967296|0)&&(this._length[n]-=4294967296*o);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},{inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","safe-buffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js",stream:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/stream-browserify/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process-nextick-args/index.js":[function(e,t,r){(function(a){"use strict";!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?t.exports=function(e,t,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,n,o=arguments.length;switch(o){case 0:case 1:return a.nextTick(e);case 2:return a.nextTick(function(){e.call(null,t)});case 3:return a.nextTick(function(){e.call(null,t,r)});case 4:return a.nextTick(function(){e.call(null,t,r,i)});default:for(s=new Array(o-1),n=0;n<s.length;)s[n++]=arguments[n];return a.nextTick(function(){e.apply(null,s)})}}:t.exports=a.nextTick}).call(this,e("_process"))},{_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js":[function(e,t,r){var i,s,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function f(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(e){s=a}}();var u,h=[],c=!1,l=-1;function d(){c&&u&&(c=!1,u.length?h=u.concat(h):l=-1,h.length&&p())}function p(){if(!c){var e=f(d);c=!0;for(var t=h.length;t;){for(u=h,h=[];++l<t;)u&&u[l].run();l=-1,t=h.length}u=null,c=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(e)}}function _(e,t){this.fun=e,this.array=t}function g(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];h.push(new _(e,t)),1!==h.length||c||f(p)},_.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/duplex-browser.js":[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js":[function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var s=e("process-nextick-args"),n=e("core-util-is");n.inherits=e("inherits");var o=e("./_stream_readable"),a=e("./_stream_writable");n.inherits(c,o);for(var f=i(a.prototype),u=0;u<f.length;u++){var h=f[u];c.prototype[h]||(c.prototype[h]=a.prototype[h])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",l)}function l(){this.allowHalfOpen||this._writableState.ended||s(d,this)}function d(e){e.end()}},{"./_stream_readable":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_readable.js","./_stream_writable":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_writable.js","core-util-is":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","process-nextick-args":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process-nextick-args/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_passthrough.js":[function(e,t,r){"use strict";t.exports=n;var i=e("./_stream_transform"),s=e("core-util-is");function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}s.inherits=e("inherits"),s.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_transform.js","core-util-is":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_readable.js":[function(k,I,e){(function(m){"use strict";I.exports=i;var s,v=k("process-nextick-args"),b=k("isarray");i.ReadableState=r;k("events").EventEmitter;var y=function(e,t){return e.listeners(t).length},n=k("./internal/streams/stream"),l=k("buffer").Buffer,a=k("buffer-shims"),e=k("core-util-is");e.inherits=k("inherits");var t=k("util"),w=void 0;w=t&&t.debuglog?t.debuglog("stream"):function(){};var o,f=k("./internal/streams/BufferList");e.inherits(i,n);var u=["error","close","destroy","pause","resume"];function r(e,t){s=s||k("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof s&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=k("string_decoder/").StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function i(e){if(s=s||k("./_stream_duplex"),!(this instanceof i))return new i(e);this._readableState=new r(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),n.call(this)}function h(e,t,r,i,s){var n,o,a,f=function(e,t){var r=null;l.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(f)e.emit("error",f);else if(null===r)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,p(e)}(e,t);else if(t.objectMode||r&&0<r.length)if(t.ended&&!s){var u=new Error("stream.push() after EOF");e.emit("error",u)}else if(t.endEmitted&&s){var h=new Error("stream.unshift() after end event");e.emit("error",h)}else{var c;!t.decoder||s||i||(r=t.decoder.write(r),c=!t.objectMode&&0===r.length),s||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,s?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&p(e))),n=e,(o=t).readingMore||(o.readingMore=!0,v(g,n,o))}else s||(t.reading=!1);return!(a=t).ended&&(a.needReadable||a.length<a.highWaterMark||0===a.length)}i.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),h(this,r,e,t,!1)},i.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},i.prototype.isPaused=function(){return!1===this._readableState.flowing},i.prototype.setEncoding=function(e){return o||(o=k("string_decoder/").StringDecoder),this._readableState.decoder=new o(e),this._readableState.encoding=e,this};var c=8388608;function d(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=(c<=(r=e)?r=c:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function p(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(w("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?v(_,e):_(e))}function _(e){w("emit readable"),e.emit("readable"),E(e)}function g(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(w("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function j(e){w("readable nexttick read 0"),e.read(0)}function B(e,t){t.reading||(w("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(w("flow",t.flowing);t.flowing&&null!==e.read(););}function x(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var i;e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):i=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,i=1,s=r.data;e-=s.length;for(;r=r.next;){var n=r.data,o=e>n.length?n.length:e;if(o===n.length?s+=n:s+=n.slice(0,e),0===(e-=o)){o===n.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=n.slice(o);break}++i}return t.length-=i,s}(e,t):function(e,t){var r=a.allocUnsafe(e),i=t.head,s=1;i.data.copy(r),e-=i.data.length;for(;i=i.next;){var n=i.data,o=e>n.length?n.length:e;if(n.copy(r,r.length-e,0,o),0===(e-=o)){o===n.length?(++s,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i).data=n.slice(o);break}++s}return t.length-=s,r}(e,t);return i}(e,t.buffer,t.decoder),r);var r}function D(e){var t=e._readableState;if(0<t.length)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,v(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function S(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}i.prototype.read=function(e){w("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return w("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):p(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&D(this),null;var i,s=t.needReadable;return w("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&w("length less than watermark",s=!0),t.ended||t.reading?w("reading or ended",s=!1):s&&(w("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=d(r,t))),null===(i=0<e?x(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==i&&this.emit("data",i),i},i.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,w("pipe count=%d opts=%j",i.pipesCount,e);var s=(!e||!1!==e.end)&&t!==m.stdout&&t!==m.stderr?o:h;function n(e){w("onunpipe"),e===r&&h()}function o(){w("onend"),t.end()}i.endEmitted?v(s):r.once("end",s),t.on("unpipe",n);var a,f=(a=r,function(){var e=a._readableState;w("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&y(a,"data")&&(e.flowing=!0,E(a))});t.on("drain",f);var u=!1;function h(){w("cleanup"),t.removeListener("close",p),t.removeListener("finish",_),t.removeListener("drain",f),t.removeListener("error",d),t.removeListener("unpipe",n),r.removeListener("end",o),r.removeListener("end",h),r.removeListener("data",l),u=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||f()}var c=!1;function l(e){w("ondata"),(c=!1)!==t.write(e)||c||((1===i.pipesCount&&i.pipes===t||1<i.pipesCount&&-1!==S(i.pipes,t))&&!u&&(w("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,c=!0),r.pause())}function d(e){w("onerror",e),g(),t.removeListener("error",d),0===y(t,"error")&&t.emit("error",e)}function p(){t.removeListener("finish",_),g()}function _(){w("onfinish"),t.removeListener("close",p),g()}function g(){w("unpipe"),r.unpipe(t)}return r.on("data",l),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?b(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",d),t.once("close",p),t.once("finish",_),t.emit("pipe",r),i.flowing||(w("pipe resume"),r.resume()),t},i.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this);return this}var n=S(t.pipes,e);return-1===n||(t.pipes.splice(n,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},i.prototype.addListener=i.prototype.on=function(e,t){var r=n.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&p(this):v(j,this))}return r},i.prototype.resume=function(){var e,t,r=this._readableState;return r.flowing||(w("resume"),r.flowing=!0,e=this,(t=r).resumeScheduled||(t.resumeScheduled=!0,v(B,e,t))),this},i.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var r=this._readableState,i=!1,s=this;for(var e in t.on("end",function(){if(w("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&s.push(e)}s.push(null)}),t.on("data",function(e){(w("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(s.push(e)||(i=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var n=0;n<u.length;n++)t.on(u[n],s.emit.bind(s,u[n]));return s._read=function(e){w("wrapped _read",e),i&&(i=!1,t.resume())},s},i._fromList=x}).call(this,k("_process"))},{"./_stream_duplex":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js","./internal/streams/BufferList":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/internal/streams/BufferList.js","./internal/streams/stream":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/internal/streams/stream-browser.js",_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","buffer-shims":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer-shims/index.js","core-util-is":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js",events:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/events/events.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js",isarray:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/isarray/index.js","process-nextick-args":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process-nextick-args/index.js","string_decoder/":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/string_decoder/lib/string_decoder.js",util:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browser-resolve/empty.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_transform.js":[function(e,t,r){"use strict";t.exports=o;var i=e("./_stream_duplex"),s=e("core-util-is");function n(r){this.afterTransform=function(e,t){return function(e,t,r){var i=e._transformState;i.transforming=!1;var s=i.writecb;if(!s)return e.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,(i.writecb=null)!=r&&e.push(r);s(t);var n=e._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&e._read(n.highWaterMark)}(r,e,t)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(e){if(!(this instanceof o))return new o(e);i.call(this,e),this._transformState=new n(this);var r=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,t){a(r,e,t)}):a(r)})}function a(e,t,r){if(t)return e.emit("error",t);null!=r&&e.push(r);var i=e._writableState,s=e._transformState;if(i.length)throw new Error("Calling transform done when ws.length != 0");if(s.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}s.inherits=e("inherits"),s.inherits(o,i),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js","core-util-is":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_writable.js":[function(j,B,e){(function(e,t){"use strict";B.exports=u;var n,_=j("process-nextick-args"),a=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?t:_;u.WritableState=f;var r=j("core-util-is");r.inherits=j("inherits");var i,s={deprecate:j("util-deprecate")},o=j("./internal/streams/stream"),g=j("buffer").Buffer,m=j("buffer-shims");function v(){}function b(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function f(e,t){n=n||j("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1;var s=(this.finished=!1)===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,s=r.writecb;if(o=r,o.writing=!1,o.writecb=null,o.length-=o.writelen,o.writelen=0,t)!function(e,t,r,i,s){--t.pendingcb,r?_(s,i):s(i);e._writableState.errorEmitted=!0,e.emit("error",i)}(e,r,i,t,s);else{var n=l(r);n||r.corked||r.bufferProcessing||!r.bufferedRequest||c(e,r),i?a(h,e,r,n,s):h(e,r,n,s)}var o}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new w(this)}function u(e){if(n=n||j("./_stream_duplex"),!(i.call(u,this)||this instanceof n))return new u(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),o.call(this)}function y(e,t,r,i,s,n,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(s,t.onwrite):e._write(s,n,t.onwrite),t.sync=!1}function h(e,t,r,i){var s,n;r||(s=e,0===(n=t).length&&n.needDrain&&(n.needDrain=!1,s.emit("drain"))),t.pendingcb--,i(),p(e,t)}function c(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,s=new Array(i),n=t.corkedRequestsFree;n.entry=r;for(var o=0;r;)r=(s[o]=r).next,o+=1;y(e,t,!0,t.length,s,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new w(t)}else{for(;r;){var a=r.chunk,f=r.encoding,u=r.callback;if(y(e,t,!1,t.objectMode?1:a.length,a,f,u),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function l(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function d(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function p(e,t){var r=l(t);return r&&(0===t.pendingcb?(d(e,t),t.finished=!0,e.emit("finish")):d(e,t)),r}function w(i){var s=this;this.next=null,this.entry=null,this.finish=function(e){var t=s.entry;for(s.entry=null;t;){var r=t.callback;i.pendingcb--,r(e),t=t.next}i.corkedRequestsFree?i.corkedRequestsFree.next=s:i.corkedRequestsFree=s}}r.inherits(u,o),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(u,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||e&&e._writableState instanceof f}})):i=function(e){return e instanceof this},u.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},u.prototype.write=function(e,t,r){var i,s,n,o,a,f,u,h,c,l=this._writableState,d=!1,p=g.isBuffer(e);return"function"==typeof t&&(r=t,t=null),p?t="buffer":t||(t=l.defaultEncoding),"function"!=typeof r&&(r=v),l.ended?(u=this,h=r,c=new Error("write after end"),u.emit("error",c),_(h,c)):(p||(i=this,s=l,o=r,f=!(a=!0),null===(n=e)?f=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||s.objectMode||(f=new TypeError("Invalid non-string/buffer chunk")),f&&(i.emit("error",f),_(o,f),a=!1),a))&&(l.pendingcb++,d=function(e,t,r,i,s,n){r||(i=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,r));return t}(t,i,s),g.isBuffer(i)&&(s="buffer"));var o=t.objectMode?1:i.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest=new b(i,s,n),f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,o,i,s,n);return a}(this,l,p,e,t,r)),d},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||c(this,e))},u.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},u.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},u.prototype._writev=null,u.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?_(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)}}).call(this,j("_process"),j("timers").setImmediate)},{"./_stream_duplex":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js","./internal/streams/stream":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/internal/streams/stream-browser.js",_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","buffer-shims":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer-shims/index.js","core-util-is":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/core-util-is/lib/util.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","process-nextick-args":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process-nextick-args/index.js",timers:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/timers-browserify/main.js","util-deprecate":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util-deprecate/browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/internal/streams/BufferList.js":[function(e,t,r){"use strict";e("buffer").Buffer;var s=e("buffer-shims");function i(){this.head=null,this.tail=null,this.length=0}(t.exports=i).prototype.push=function(e){var t={data:e,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},i.prototype.concat=function(e){if(0===this.length)return s.alloc(0);if(1===this.length)return this.head.data;for(var t=s.allocUnsafe(e>>>0),r=this.head,i=0;r;)r.data.copy(t,i),i+=r.data.length,r=r.next;return t}},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","buffer-shims":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer-shims/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/internal/streams/stream-browser.js":[function(e,t,r){t.exports=e("events").EventEmitter},{events:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/events/events.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/passthrough.js":[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/readable-browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/readable-browser.js":[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_duplex.js","./lib/_stream_passthrough.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_passthrough.js","./lib/_stream_readable.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_readable.js","./lib/_stream_transform.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_transform.js","./lib/_stream_writable.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_writable.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/transform.js":[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/readable-browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/writable-browser.js":[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/lib/_stream_writable.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/ripemd160/index.js":[function(s,n,e){(function(t){"use strict";var e=s("inherits"),r=s("hash-base");function i(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<<t|e>>>32-t}function p(e,t,r,i,s,n,o,a){return d(e+(t^r^i)+n+o|0,a)+s|0}function _(e,t,r,i,s,n,o,a){return d(e+(t&r|~t&i)+n+o|0,a)+s|0}function g(e,t,r,i,s,n,o,a){return d(e+((t|~r)^i)+n+o|0,a)+s|0}function m(e,t,r,i,s,n,o,a){return d(e+(t&i|r&~i)+n+o|0,a)+s|0}function v(e,t,r,i,s,n,o,a){return d(e+(t^(r|~i))+n+o|0,a)+s|0}e(i,r),i.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,s=this._c,n=this._d,o=this._e;o=p(o,r=p(r,i,s,n,o,e[0],0,11),i,s=d(s,10),n,e[1],0,14),i=p(i=d(i,10),s=p(s,n=p(n,o,r,i,s,e[2],0,15),o,r=d(r,10),i,e[3],0,12),n,o=d(o,10),r,e[4],0,5),n=p(n=d(n,10),o=p(o,r=p(r,i,s,n,o,e[5],0,8),i,s=d(s,10),n,e[6],0,7),r,i=d(i,10),s,e[7],0,9),r=p(r=d(r,10),i=p(i,s=p(s,n,o,r,i,e[8],0,11),n,o=d(o,10),r,e[9],0,13),s,n=d(n,10),o,e[10],0,14),s=p(s=d(s,10),n=p(n,o=p(o,r,i,s,n,e[11],0,15),r,i=d(i,10),s,e[12],0,6),o,r=d(r,10),i,e[13],0,7),o=_(o=d(o,10),r=p(r,i=p(i,s,n,o,r,e[14],0,9),s,n=d(n,10),o,e[15],0,8),i,s=d(s,10),n,e[7],1518500249,7),i=_(i=d(i,10),s=_(s,n=_(n,o,r,i,s,e[4],1518500249,6),o,r=d(r,10),i,e[13],1518500249,8),n,o=d(o,10),r,e[1],1518500249,13),n=_(n=d(n,10),o=_(o,r=_(r,i,s,n,o,e[10],1518500249,11),i,s=d(s,10),n,e[6],1518500249,9),r,i=d(i,10),s,e[15],1518500249,7),r=_(r=d(r,10),i=_(i,s=_(s,n,o,r,i,e[3],1518500249,15),n,o=d(o,10),r,e[12],1518500249,7),s,n=d(n,10),o,e[0],1518500249,12),s=_(s=d(s,10),n=_(n,o=_(o,r,i,s,n,e[9],1518500249,15),r,i=d(i,10),s,e[5],1518500249,9),o,r=d(r,10),i,e[2],1518500249,11),o=_(o=d(o,10),r=_(r,i=_(i,s,n,o,r,e[14],1518500249,7),s,n=d(n,10),o,e[11],1518500249,13),i,s=d(s,10),n,e[8],1518500249,12),i=g(i=d(i,10),s=g(s,n=g(n,o,r,i,s,e[3],1859775393,11),o,r=d(r,10),i,e[10],1859775393,13),n,o=d(o,10),r,e[14],1859775393,6),n=g(n=d(n,10),o=g(o,r=g(r,i,s,n,o,e[4],1859775393,7),i,s=d(s,10),n,e[9],1859775393,14),r,i=d(i,10),s,e[15],1859775393,9),r=g(r=d(r,10),i=g(i,s=g(s,n,o,r,i,e[8],1859775393,13),n,o=d(o,10),r,e[1],1859775393,15),s,n=d(n,10),o,e[2],1859775393,14),s=g(s=d(s,10),n=g(n,o=g(o,r,i,s,n,e[7],1859775393,8),r,i=d(i,10),s,e[0],1859775393,13),o,r=d(r,10),i,e[6],1859775393,6),o=g(o=d(o,10),r=g(r,i=g(i,s,n,o,r,e[13],1859775393,5),s,n=d(n,10),o,e[11],1859775393,12),i,s=d(s,10),n,e[5],1859775393,7),i=m(i=d(i,10),s=m(s,n=g(n,o,r,i,s,e[12],1859775393,5),o,r=d(r,10),i,e[1],2400959708,11),n,o=d(o,10),r,e[9],2400959708,12),n=m(n=d(n,10),o=m(o,r=m(r,i,s,n,o,e[11],2400959708,14),i,s=d(s,10),n,e[10],2400959708,15),r,i=d(i,10),s,e[0],2400959708,14),r=m(r=d(r,10),i=m(i,s=m(s,n,o,r,i,e[8],2400959708,15),n,o=d(o,10),r,e[12],2400959708,9),s,n=d(n,10),o,e[4],2400959708,8),s=m(s=d(s,10),n=m(n,o=m(o,r,i,s,n,e[13],2400959708,9),r,i=d(i,10),s,e[3],2400959708,14),o,r=d(r,10),i,e[7],2400959708,5),o=m(o=d(o,10),r=m(r,i=m(i,s,n,o,r,e[15],2400959708,6),s,n=d(n,10),o,e[14],2400959708,8),i,s=d(s,10),n,e[5],2400959708,6),i=v(i=d(i,10),s=m(s,n=m(n,o,r,i,s,e[6],2400959708,5),o,r=d(r,10),i,e[2],2400959708,12),n,o=d(o,10),r,e[4],2840853838,9),n=v(n=d(n,10),o=v(o,r=v(r,i,s,n,o,e[0],2840853838,15),i,s=d(s,10),n,e[5],2840853838,5),r,i=d(i,10),s,e[9],2840853838,11),r=v(r=d(r,10),i=v(i,s=v(s,n,o,r,i,e[7],2840853838,6),n,o=d(o,10),r,e[12],2840853838,8),s,n=d(n,10),o,e[2],2840853838,13),s=v(s=d(s,10),n=v(n,o=v(o,r,i,s,n,e[10],2840853838,12),r,i=d(i,10),s,e[14],2840853838,5),o,r=d(r,10),i,e[1],2840853838,12),o=v(o=d(o,10),r=v(r,i=v(i,s,n,o,r,e[3],2840853838,13),s,n=d(n,10),o,e[8],2840853838,14),i,s=d(s,10),n,e[11],2840853838,11),i=v(i=d(i,10),s=v(s,n=v(n,o,r,i,s,e[6],2840853838,8),o,r=d(r,10),i,e[15],2840853838,5),n,o=d(o,10),r,e[13],2840853838,6),n=d(n,10);var a=this._a,f=this._b,u=this._c,h=this._d,c=this._e;c=v(c,a=v(a,f,u,h,c,e[5],1352829926,8),f,u=d(u,10),h,e[14],1352829926,9),f=v(f=d(f,10),u=v(u,h=v(h,c,a,f,u,e[7],1352829926,9),c,a=d(a,10),f,e[0],1352829926,11),h,c=d(c,10),a,e[9],1352829926,13),h=v(h=d(h,10),c=v(c,a=v(a,f,u,h,c,e[2],1352829926,15),f,u=d(u,10),h,e[11],1352829926,15),a,f=d(f,10),u,e[4],1352829926,5),a=v(a=d(a,10),f=v(f,u=v(u,h,c,a,f,e[13],1352829926,7),h,c=d(c,10),a,e[6],1352829926,7),u,h=d(h,10),c,e[15],1352829926,8),u=v(u=d(u,10),h=v(h,c=v(c,a,f,u,h,e[8],1352829926,11),a,f=d(f,10),u,e[1],1352829926,14),c,a=d(a,10),f,e[10],1352829926,14),c=m(c=d(c,10),a=v(a,f=v(f,u,h,c,a,e[3],1352829926,12),u,h=d(h,10),c,e[12],1352829926,6),f,u=d(u,10),h,e[6],1548603684,9),f=m(f=d(f,10),u=m(u,h=m(h,c,a,f,u,e[11],1548603684,13),c,a=d(a,10),f,e[3],1548603684,15),h,c=d(c,10),a,e[7],1548603684,7),h=m(h=d(h,10),c=m(c,a=m(a,f,u,h,c,e[0],1548603684,12),f,u=d(u,10),h,e[13],1548603684,8),a,f=d(f,10),u,e[5],1548603684,9),a=m(a=d(a,10),f=m(f,u=m(u,h,c,a,f,e[10],1548603684,11),h,c=d(c,10),a,e[14],1548603684,7),u,h=d(h,10),c,e[15],1548603684,7),u=m(u=d(u,10),h=m(h,c=m(c,a,f,u,h,e[8],1548603684,12),a,f=d(f,10),u,e[12],1548603684,7),c,a=d(a,10),f,e[4],1548603684,6),c=m(c=d(c,10),a=m(a,f=m(f,u,h,c,a,e[9],1548603684,15),u,h=d(h,10),c,e[1],1548603684,13),f,u=d(u,10),h,e[2],1548603684,11),f=g(f=d(f,10),u=g(u,h=g(h,c,a,f,u,e[15],1836072691,9),c,a=d(a,10),f,e[5],1836072691,7),h,c=d(c,10),a,e[1],1836072691,15),h=g(h=d(h,10),c=g(c,a=g(a,f,u,h,c,e[3],1836072691,11),f,u=d(u,10),h,e[7],1836072691,8),a,f=d(f,10),u,e[14],1836072691,6),a=g(a=d(a,10),f=g(f,u=g(u,h,c,a,f,e[6],1836072691,6),h,c=d(c,10),a,e[9],1836072691,14),u,h=d(h,10),c,e[11],1836072691,12),u=g(u=d(u,10),h=g(h,c=g(c,a,f,u,h,e[8],1836072691,13),a,f=d(f,10),u,e[12],1836072691,5),c,a=d(a,10),f,e[2],1836072691,14),c=g(c=d(c,10),a=g(a,f=g(f,u,h,c,a,e[10],1836072691,13),u,h=d(h,10),c,e[0],1836072691,13),f,u=d(u,10),h,e[4],1836072691,7),f=_(f=d(f,10),u=_(u,h=g(h,c,a,f,u,e[13],1836072691,5),c,a=d(a,10),f,e[8],2053994217,15),h,c=d(c,10),a,e[6],2053994217,5),h=_(h=d(h,10),c=_(c,a=_(a,f,u,h,c,e[4],2053994217,8),f,u=d(u,10),h,e[1],2053994217,11),a,f=d(f,10),u,e[3],2053994217,14),a=_(a=d(a,10),f=_(f,u=_(u,h,c,a,f,e[11],2053994217,14),h,c=d(c,10),a,e[15],2053994217,6),u,h=d(h,10),c,e[0],2053994217,14),u=_(u=d(u,10),h=_(h,c=_(c,a,f,u,h,e[5],2053994217,6),a,f=d(f,10),u,e[12],2053994217,9),c,a=d(a,10),f,e[2],2053994217,12),c=_(c=d(c,10),a=_(a,f=_(f,u,h,c,a,e[13],2053994217,9),u,h=d(h,10),c,e[9],2053994217,12),f,u=d(u,10),h,e[7],2053994217,5),f=p(f=d(f,10),u=_(u,h=_(h,c,a,f,u,e[10],2053994217,15),c,a=d(a,10),f,e[14],2053994217,8),h,c=d(c,10),a,e[12],0,8),h=p(h=d(h,10),c=p(c,a=p(a,f,u,h,c,e[15],0,5),f,u=d(u,10),h,e[10],0,12),a,f=d(f,10),u,e[4],0,9),a=p(a=d(a,10),f=p(f,u=p(u,h,c,a,f,e[1],0,12),h,c=d(c,10),a,e[5],0,5),u,h=d(h,10),c,e[8],0,14),u=p(u=d(u,10),h=p(h,c=p(c,a,f,u,h,e[7],0,6),a,f=d(f,10),u,e[6],0,8),c,a=d(a,10),f,e[2],0,13),c=p(c=d(c,10),a=p(a,f=p(f,u,h,c,a,e[13],0,6),u,h=d(h,10),c,e[14],0,5),f,u=d(u,10),h,e[0],0,15),f=p(f=d(f,10),u=p(u,h=p(h,c,a,f,u,e[3],0,13),c,a=d(a,10),f,e[9],0,11),h,c=d(c,10),a,e[11],0,11),h=d(h,10);var l=this._b+s+h|0;this._b=this._c+n+c|0,this._c=this._d+o+a|0,this._d=this._e+r+f|0,this._e=this._a+i+u|0,this._a=l},i.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},n.exports=i}).call(this,s("buffer").Buffer)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","hash-base":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/hash-base/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/safe-buffer/index.js":[function(e,t,r){arguments[4]["/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browserify/node_modules/safe-buffer/index.js"][0].apply(r,arguments)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/secure-random/lib/secure-random.js":[function(n,s,e){(function(r,i){!function(e){"use strict";function t(e,t){if(t=t||{type:"Array"},void 0!==r&&"number"==typeof r.pid)return function(e,t){var r=n("crypto").randomBytes(e);switch(t.type){case"Array":return[].slice.call(r);case"Buffer":return r;case"Uint8Array":for(var i=new Uint8Array(e),s=0;s<e;++s)i[s]=r.readUInt8(s);return i;default:throw new Error(t.type+" is unsupported.")}}(e,t);if(!(window.crypto||window.msCrypto))throw new Error("Your browser does not support window.crypto.");return function(e,t){var r=new Uint8Array(e);switch((window.crypto||window.msCrypto).getRandomValues(r),t.type){case"Array":return[].slice.call(r);case"Buffer":try{new i(1)}catch(e){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new i(r);case"Uint8Array":return r;default:throw new Error(t.type+" is unsupported.")}}(e,t)}void 0!==s&&s.exports?s.exports=t:e.secureRandom=t,t.randomArray=function(e){return t(e,{type:"Array"})},t.randomUint8Array=function(e){return t(e,{type:"Uint8Array"})},t.randomBuffer=function(e){return t(e,{type:"Buffer"})}}(this)}).call(this,n("_process"),n("buffer").Buffer)},{_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",crypto:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/browser-resolve/empty.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js":[function(e,t,r){(function(f){function e(e,t){this._block=new f(e),this._finalSize=t,this._blockSize=e,this._len=0,this._s=0}e.prototype.update=function(e,t){"string"==typeof e&&(e=new f(e,t=t||"utf8"));for(var r=this._len+=e.length,i=this._s||0,s=0,n=this._block;i<r;){for(var o=Math.min(e.length,s+this._blockSize-i%this._blockSize)-s,a=0;a<o;a++)n[i%this._blockSize+a]=e[a+s];s+=o,(i+=o)%this._blockSize==0&&this._update(n)}return this._s=i,this},e.prototype.digest=function(e){var t=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),t%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(t,this._blockSize-4);var r=this._update(this._block)||this._hash();return e?r.toString(e):r},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=e}).call(this,e("buffer").Buffer)},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/index.js":[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha.js","./sha1":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha1.js","./sha224":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha224.js","./sha256":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha256.js","./sha384":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha384.js","./sha512":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha512.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha.js":[function(n,o,e){(function(t){var e=n("inherits"),r=n("./hash"),m=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,r.call(this,64,56)}e(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,i,s,n,o,a=this._w,f=0|this._a,u=0|this._b,h=0|this._c,c=0|this._d,l=0|this._e,d=0;d<16;++d)a[d]=e.readInt32BE(4*d);for(;d<80;++d)a[d]=a[d-3]^a[d-8]^a[d-14]^a[d-16];for(var p=0;p<80;++p){var _=~~(p/20),g=0|((o=f)<<5|o>>>27)+(i=u,s=h,n=c,0===(r=_)?i&s|~i&n:2===r?i&s|i&n|s&n:i^s^n)+l+a[p]+m[_];l=c,c=h,h=(t=u)<<30|t>>>2,u=f,f=g}this._a=f+this._a|0,this._b=u+this._b|0,this._c=h+this._c|0,this._d=c+this._d|0,this._e=l+this._e|0},s.prototype._hash=function(){var e=new t(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},o.exports=s}).call(this,n("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha1.js":[function(n,o,e){(function(t){var e=n("inherits"),r=n("./hash"),v=[1518500249,1859775393,-1894007588,-899497514],i=new Array(80);function s(){this.init(),this._w=i,r.call(this,64,56)}e(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,i,s,n,o,a,f=this._w,u=0|this._a,h=0|this._b,c=0|this._c,l=0|this._d,d=0|this._e,p=0;p<16;++p)f[p]=e.readInt32BE(4*p);for(;p<80;++p)f[p]=(t=f[p-3]^f[p-8]^f[p-14]^f[p-16])<<1|t>>>31;for(var _=0;_<80;++_){var g=~~(_/20),m=0|((a=u)<<5|a>>>27)+(s=h,n=c,o=l,0===(i=g)?s&n|~s&o:2===i?s&n|s&o|n&o:s^n^o)+d+f[_]+v[g];d=l,l=c,c=(r=h)<<30|r>>>2,h=u,u=m}this._a=u+this._a|0,this._b=h+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var e=new t(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},o.exports=s}).call(this,n("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha224.js":[function(o,a,e){(function(t){var e=o("inherits"),r=o("./sha256"),i=o("./hash"),s=new Array(64);function n(){this.init(),this._w=s,i.call(this,64,56)}e(n,r),n.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},n.prototype._hash=function(){var e=new t(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},a.exports=n}).call(this,o("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js","./sha256":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha256.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha256.js":[function(n,o,e){(function(t){var e=n("inherits"),r=n("./hash"),w=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],i=new Array(64);function s(){this.init(),this._w=i,r.call(this,64,56)}e(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r,i,s,n,o,a,f=this._w,u=0|this._a,h=0|this._b,c=0|this._c,l=0|this._d,d=0|this._e,p=0|this._f,_=0|this._g,g=0|this._h,m=0;m<16;++m)f[m]=e.readInt32BE(4*m);for(;m<64;++m)f[m]=0|(((r=f[m-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+f[m-7]+(((t=f[m-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+f[m-16];for(var v=0;v<64;++v){var b=g+(((a=d)>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+((o=_)^d&(p^o))+w[v]+f[v]|0,y=0|(((n=u)>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+((i=u)&(s=h)|c&(i|s));g=_,_=p,p=d,d=l+b|0,l=c,c=h,h=u,u=b+y|0}this._a=u+this._a|0,this._b=h+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=_+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},o.exports=s}).call(this,n("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha384.js":[function(o,a,e){(function(t){var e=o("inherits"),r=o("./sha512"),i=o("./hash"),s=new Array(160);function n(){this.init(),this._w=s,i.call(this,128,112)}e(n,r),n.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},n.prototype._hash=function(){var i=new t(48);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),i},a.exports=n}).call(this,o("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js","./sha512":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha512.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/sha512.js":[function(n,o,e){(function(t){var e=n("inherits"),r=n("./hash"),ee=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],i=new Array(160);function s(){this.init(),this._w=i,r.call(this,128,112)}function te(e,t,r){return r^e&(t^r)}function re(e,t,r){return e&t|r&(e|t)}function ie(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function se(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function ne(e,t){return e>>>0<t>>>0?1:0}e(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t,r,i,s,n,o,a,f,u=this._w,h=0|this._ah,c=0|this._bh,l=0|this._ch,d=0|this._dh,p=0|this._eh,_=0|this._fh,g=0|this._gh,m=0|this._hh,v=0|this._al,b=0|this._bl,y=0|this._cl,w=0|this._dl,j=0|this._el,B=0|this._fl,E=0|this._gl,x=0|this._hl,D=0;D<32;D+=2)u[D]=e.readInt32BE(4*D),u[D+1]=e.readInt32BE(4*D+4);for(;D<160;D+=2){var T=u[D-30],S=u[D-30+1],k=((a=T)>>>1|(f=S)<<31)^(a>>>8|f<<24)^a>>>7,I=((n=S)>>>1|(o=T)<<31)^(n>>>8|o<<24)^(n>>>7|o<<25);T=u[D-4],S=u[D-4+1];var A=((i=T)>>>19|(s=S)<<13)^(s>>>29|i<<3)^i>>>6,L=((t=S)>>>19|(r=T)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),C=u[D-14],O=u[D-14+1],U=u[D-32],M=u[D-32+1],q=I+O|0,R=k+C+ne(q,I)|0;R=(R=R+A+ne(q=q+L|0,L)|0)+U+ne(q=q+M|0,M)|0,u[D]=R,u[D+1]=q}for(var z=0;z<160;z+=2){R=u[z],q=u[z+1];var N=re(h,c,l),P=re(v,b,y),F=ie(h,v),K=ie(v,h),H=se(p,j),V=se(j,p),W=ee[z],Z=ee[z+1],G=te(p,_,g),J=te(j,B,E),Y=x+V|0,X=m+H+ne(Y,x)|0;X=(X=(X=X+G+ne(Y=Y+J|0,J)|0)+W+ne(Y=Y+Z|0,Z)|0)+R+ne(Y=Y+q|0,q)|0;var Q=K+P|0,$=F+N+ne(Q,K)|0;m=g,x=E,g=_,E=B,_=p,B=j,p=d+X+ne(j=w+Y|0,w)|0,d=l,w=y,l=c,y=b,c=h,b=v,h=X+$+ne(v=Y+Q|0,Y)|0}this._al=this._al+v|0,this._bl=this._bl+b|0,this._cl=this._cl+y|0,this._dl=this._dl+w|0,this._el=this._el+j|0,this._fl=this._fl+B|0,this._gl=this._gl+E|0,this._hl=this._hl+x|0,this._ah=this._ah+h+ne(this._al,v)|0,this._bh=this._bh+c+ne(this._bl,b)|0,this._ch=this._ch+l+ne(this._cl,y)|0,this._dh=this._dh+d+ne(this._dl,w)|0,this._eh=this._eh+p+ne(this._el,j)|0,this._fh=this._fh+_+ne(this._fl,B)|0,this._gh=this._gh+g+ne(this._gl,E)|0,this._hh=this._hh+m+ne(this._hl,x)|0},s.prototype._hash=function(){var i=new t(64);function e(e,t,r){i.writeInt32BE(e,r),i.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),i},o.exports=s}).call(this,n("buffer").Buffer)},{"./hash":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/sha.js/hash.js",buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/stream-browserify/index.js":[function(e,t,r){t.exports=i;var h=e("events").EventEmitter;function i(){h.call(this)}e("inherits")(i,h),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),(i.Stream=i).prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",s),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",a));var n=!1;function o(){n||(n=!0,t.end())}function a(){n||(n=!0,"function"==typeof t.destroy&&t.destroy())}function f(e){if(u(),0===h.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),t.removeListener("drain",s),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("error",f),t.on("error",f),r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t}},{events:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/events/events.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js","readable-stream/duplex.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/duplex-browser.js","readable-stream/passthrough.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/passthrough.js","readable-stream/readable.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/readable-browser.js","readable-stream/transform.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/transform.js","readable-stream/writable.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/readable-stream/writable-browser.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/string_decoder/lib/string_decoder.js":[function(e,t,r){"use strict";var i=e("buffer").Buffer,s=e("buffer-shims"),n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=h,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function f(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(1<e.lastNeed&&1<t.length){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(2<e.lastNeed&&2<t.length&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(55296<=i&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}(r.StringDecoder=o).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var r=function(e,t,r){var i=t.length-1;if(i<r)return 0;var s=a(t[i]);if(0<=s)return 0<s&&(e.lastNeed=s-1),s;if(--i<r)return 0;if(0<=(s=a(t[i])))return 0<s&&(e.lastNeed=s-2),s;if(--i<r)return 0;if(0<=(s=a(t[i])))return 0<s&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{buffer:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer/index.js","buffer-shims":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/buffer-shims/index.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/timers-browserify/main.js":[function(f,e,u){(function(e,t){var i=f("process/browser.js").nextTick,r=Function.prototype.apply,s=Array.prototype.slice,n={},o=0;function a(e,t){this._id=e,this._clearFn=t}u.setTimeout=function(){return new a(r.call(setTimeout,window,arguments),clearTimeout)},u.setInterval=function(){return new a(r.call(setInterval,window,arguments),clearInterval)},u.clearTimeout=u.clearInterval=function(e){e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},u.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},u.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},u._unrefActive=u.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},u.setImmediate="function"==typeof e?e:function(e){var t=o++,r=!(arguments.length<2)&&s.call(arguments,1);return n[t]=!0,i(function(){n[t]&&(r?e.apply(null,r):e.call(null),u.clearImmediate(t))}),t},u.clearImmediate="function"==typeof t?t:function(e){delete n[e]}}).call(this,f("timers").setImmediate,f("timers").clearImmediate)},{"process/browser.js":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",timers:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/timers-browserify/main.js"}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util-deprecate/browser.js":[function(e,t,r){(function(r){function i(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/node_modules/inherits/inherits_browser.js":[function(e,t,r){arguments[4]["/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/inherits/inherits_browser.js"][0].apply(r,arguments)},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/support/isBufferBrowser.js":[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/util.js":[function(l,e,T){(function(i,s){var a=/%[sdj%]/g;T.format=function(e){if(!y(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(f(arguments[r]));return t.join(" ")}r=1;for(var i=arguments,s=i.length,n=String(e).replace(a,function(e){if("%%"===e)return"%";if(s<=r)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),o=i[r];r<s;o=i[++r])v(o)||!h(o)?n+=" "+o:n+=" "+f(o);return n},T.deprecate=function(e,t){if(w(s.process))return function(){return T.deprecate(e,t).apply(this,arguments)};if(!0===i.noDeprecation)return e;var r=!1;return function(){if(!r){if(i.throwDeprecation)throw new Error(t);i.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}};var e,n={};function f(e,t){var r={seen:[],stylize:u};return 3<=arguments.length&&(r.depth=arguments[2]),4<=arguments.length&&(r.colors=arguments[3]),m(t)?r.showHidden=t:t&&T._extend(r,t),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),d(r,e,r.depth)}function o(e,t){var r=f.styles[t];return r?"["+f.colors[r][0]+"m"+e+"["+f.colors[r][1]+"m":e}function u(e,t){return e}function d(t,r,i){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==T.inspect&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(i,t);return y(e)||(e=d(t,e,i)),e}var s=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(b(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(t,r);if(s)return s;var n,o=Object.keys(r),a=(n={},o.forEach(function(e,t){n[e]=!0}),n);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),E(r)&&(0<=o.indexOf("message")||0<=o.indexOf("description")))return p(r);if(0===o.length){if(x(r)){var f=r.name?": "+r.name:"";return t.stylize("[Function"+f+"]","special")}if(j(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(B(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return p(r)}var u,h="",c=!1,l=["{","}"];(g(r)&&(c=!0,l=["[","]"]),x(r))&&(h=" [Function"+(r.name?": "+r.name:"")+"]");return j(r)&&(h=" "+RegExp.prototype.toString.call(r)),B(r)&&(h=" "+Date.prototype.toUTCString.call(r)),E(r)&&(h=" "+p(r)),0!==o.length||c&&0!=r.length?i<0?j(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=c?function(t,r,i,s,e){for(var n=[],o=0,a=r.length;o<a;++o)D(r,String(o))?n.push(_(t,r,i,s,String(o),!0)):n.push("");return e.forEach(function(e){e.match(/^\d+$/)||n.push(_(t,r,i,s,e,!0))}),n}(t,r,i,a,o):o.map(function(e){return _(t,r,i,a,e,c)}),t.seen.pop(),function(e,t,r){if(60<e.reduce(function(e,t){return 0,0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,h,l)):l[0]+h+l[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,r,i,s,n){var o,a,f;if((f=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(a=e.stylize("[Setter]","special")),D(i,s)||(o="["+s+"]"),a||(e.seen.indexOf(f.value)<0?-1<(a=v(r)?d(e,f.value,null):d(e,f.value,r-1)).indexOf("\n")&&(a=n?a.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return"   "+e}).join("\n")):a=e.stylize("[Circular]","special")),w(o)){if(n&&s.match(/^\d+$/))return a;(o=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function g(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function w(e){return void 0===e}function j(e){return h(e)&&"[object RegExp]"===t(e)}function h(e){return"object"==typeof e&&null!==e}function B(e){return h(e)&&"[object Date]"===t(e)}function E(e){return h(e)&&("[object Error]"===t(e)||e instanceof Error)}function x(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function r(e){return e<10?"0"+e.toString(10):e.toString(10)}T.debuglog=function(t){if(w(e)&&(e=i.env.NODE_DEBUG||""),t=t.toUpperCase(),!n[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var r=i.pid;n[t]=function(){var e=T.format.apply(T,arguments);console.error("%s %d: %s",t,r,e)}}else n[t]=function(){};return n[t]},(T.inspect=f).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=g,T.isBoolean=m,T.isNull=v,T.isNullOrUndefined=function(e){return null==e},T.isNumber=b,T.isString=y,T.isSymbol=function(e){return"symbol"==typeof e},T.isUndefined=w,T.isRegExp=j,T.isObject=h,T.isDate=B,T.isError=E,T.isFunction=x,T.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},T.isBuffer=l("./support/isBuffer");var c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[r(e.getHours()),r(e.getMinutes()),r(e.getSeconds())].join(":"),[e.getDate(),c[e.getMonth()],t].join(" ")),T.format.apply(T,arguments))},T.inherits=l("inherits"),T._extend=function(e,t){if(!t||!h(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e}}).call(this,l("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/support/isBufferBrowser.js",_process:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/process/browser.js",inherits:"/home/sigve/Dev/Bitshares/bitsharesjs/node_modules/util/node_modules/inherits/inherits_browser.js"}]},{},["/home/sigve/Dev/Bitshares/bitsharesjs/dist/browser.js"])("/home/sigve/Dev/Bitshares/bitsharesjs/dist/browser.js")});