golos-lib-js
Version:
Golos-js the JavaScript library with API for GOLOS blockchain
2 lines • 505 kB
JavaScript
/*! For license information please see golos.min.js.LICENSE.txt */
(()=>{var t={2:(t,e,r)=>{var n=r(2199),i=r(4664),o=r(5950);t.exports=function(t){return n(t,o,i)}},4:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},n={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=n[t])?o:(i=A(t,(0|t)<0?-1:0,!0),s&&(n[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(i=A(t,t<0?-1:0,!1),s&&(r[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?p:h;if(e){if(t<0)return p;if(t>=u)return _}else{if(t<=-g)return E;if(t+1>=g)return y}return t<0?o(-t,e).neg():A(t%f|0,t/f|0,e)}function A(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=o,t.fromBits=A;var s=Math.pow;function a(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return h;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return a(t.substring(1),e,r).neg();for(var i=o(s(r,8)),A=h,c=0;c<t.length;c+=8){var f=Math.min(8,t.length-c),u=parseInt(t.substring(c,c+f),r);if(f<8){var g=o(s(r,f));A=A.mul(g).add(o(u))}else A=(A=A.mul(i)).add(o(u))}return A.unsigned=e,A}function c(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?a(e):A(e.low,e.high,e.unsigned)}t.fromString=a,t.fromValue=c;var f=4294967296,u=f*f,g=u/2,l=i(1<<24),h=i(0);t.ZERO=h;var p=i(0,!0);t.UZERO=p;var d=i(1);t.ONE=d;var I=i(1,!0);t.UONE=I;var B=i(-1);t.NEG_ONE=B;var y=A(-1,2147483647,!1);t.MAX_VALUE=y;var _=A(-1,-1,!0);t.MAX_UNSIGNED_VALUE=_;var E=A(0,-2147483648,!1);t.MIN_VALUE=E;var w=t.prototype;return w.toInt=function(){return this.unsigned?this.low>>>0:this.low},w.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},w.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var e=o(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),A=this,a="";;){var c=A.div(i),f=(A.sub(c.mul(i)).toInt()>>>0).toString(t);if((A=c).isZero())return f+a;for(;f.length<6;)f="0"+f;a=""+f+a}},w.getHighBits=function(){return this.high},w.getHighBitsUnsigned=function(){return this.high>>>0},w.getLowBits=function(){return this.low},w.getLowBitsUnsigned=function(){return this.low>>>0},w.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return 0!=this.high?e+33:e+1},w.isZero=function(){return 0===this.high&&0===this.low},w.isNegative=function(){return!this.unsigned&&this.high<0},w.isPositive=function(){return this.unsigned||this.high>=0},w.isOdd=function(){return!(1&~this.low)},w.isEven=function(){return!(1&this.low)},w.equals=function(t){return e(t)||(t=c(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},w.eq=w.equals,w.notEquals=function(t){return!this.eq(t)},w.neq=w.notEquals,w.lessThan=function(t){return this.comp(t)<0},w.lt=w.lessThan,w.lessThanOrEqual=function(t){return this.comp(t)<=0},w.lte=w.lessThanOrEqual,w.greaterThan=function(t){return this.comp(t)>0},w.gt=w.greaterThan,w.greaterThanOrEqual=function(t){return this.comp(t)>=0},w.gte=w.greaterThanOrEqual,w.compare=function(t){if(e(t)||(t=c(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},w.comp=w.compare,w.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(d)},w.neg=w.negate,w.add=function(t){e(t)||(t=c(t));var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,a=65535&t.high,f=t.low>>>16,u=0,g=0,l=0,h=0;return l+=(h+=o+(65535&t.low))>>>16,g+=(l+=i+f)>>>16,u+=(g+=n+a)>>>16,u+=r+s,A((l&=65535)<<16|(h&=65535),(u&=65535)<<16|(g&=65535),this.unsigned)},w.subtract=function(t){return e(t)||(t=c(t)),this.add(t.neg())},w.sub=w.subtract,w.multiply=function(t){if(this.isZero())return h;if(e(t)||(t=c(t)),t.isZero())return h;if(this.eq(E))return t.isOdd()?E:h;if(t.eq(E))return this.isOdd()?E:h;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(l)&&t.lt(l))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,a=t.high>>>16,f=65535&t.high,u=t.low>>>16,g=65535&t.low,p=0,d=0,I=0,B=0;return I+=(B+=s*g)>>>16,d+=(I+=i*g)>>>16,I&=65535,d+=(I+=s*u)>>>16,p+=(d+=n*g)>>>16,d&=65535,p+=(d+=i*u)>>>16,d&=65535,p+=(d+=s*f)>>>16,p+=r*g+n*u+i*f+s*a,A((I&=65535)<<16|(B&=65535),(p&=65535)<<16|(d&=65535),this.unsigned)},w.mul=w.multiply,w.divide=function(t){if(e(t)||(t=c(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?p:h;var r,n,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return p;if(t.gt(this.shru(1)))return I;i=p}else{if(this.eq(E))return t.eq(d)||t.eq(B)?E:t.eq(E)?d:(r=this.shr(1).div(t).shl(1)).eq(h)?t.isNegative()?d:B:(n=this.sub(t.mul(r)),i=r.add(n.div(t)));if(t.eq(E))return this.unsigned?p:h;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=h}for(n=this;n.gte(t);){r=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var A=Math.ceil(Math.log(r)/Math.LN2),a=A<=48?1:s(2,A-48),f=o(r),u=f.mul(t);u.isNegative()||u.gt(n);)u=(f=o(r-=a,this.unsigned)).mul(t);f.isZero()&&(f=d),i=i.add(f),n=n.sub(u)}return i},w.div=w.divide,w.modulo=function(t){return e(t)||(t=c(t)),this.sub(this.div(t).mul(t))},w.mod=w.modulo,w.not=function(){return A(~this.low,~this.high,this.unsigned)},w.and=function(t){return e(t)||(t=c(t)),A(this.low&t.low,this.high&t.high,this.unsigned)},w.or=function(t){return e(t)||(t=c(t)),A(this.low|t.low,this.high|t.high,this.unsigned)},w.xor=function(t){return e(t)||(t=c(t)),A(this.low^t.low,this.high^t.high,this.unsigned)},w.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?A(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):A(0,this.low<<t-32,this.unsigned)},w.shl=w.shiftLeft,w.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?A(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):A(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},w.shr=w.shiftRight,w.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0==(t&=63))return this;var r=this.high;return t<32?A(this.low>>>t|r<<32-t,r>>>t,this.unsigned):A(32===t?r:r>>>t-32,0,this.unsigned)},w.shru=w.shiftRightUnsigned,w.toSigned=function(){return this.unsigned?A(this.low,this.high,!1):this},w.toUnsigned=function(){return this.unsigned?this:A(this.low,this.high,!0)},w.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},w.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},w.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})?r.apply(e,[]):r)||(t.exports=n)},9:()=>{},71:t=>{"use strict";t.exports=[{roles:["posting"],operation:"vote",params:["voter","author","permlink","weight"]},{roles:["posting"],operation:"comment",params:["parent_author","parent_permlink","author","permlink","title","body","json_metadata"]},{roles:["active","owner"],operation:"transfer",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_to_vesting",params:["from","to","amount"]},{roles:["active"],operation:"withdraw_vesting",params:["account","vesting_shares"]},{roles:["active"],operation:"limit_order_create",params:["owner","orderid","amount_to_sell","min_to_receive","fill_or_kill","expiration"]},{roles:["active"],operation:"limit_order_cancel",params:["owner","orderid"]},{roles:["active"],operation:"price",params:["base","quote"]},{roles:["active"],operation:"feed_publish",params:["publisher","exchange_rate"]},{roles:["active"],operation:"convert",params:["owner","requestid","amount"]},{roles:["active"],operation:"account_create",params:["fee","creator","new_account_name","owner","active","posting","memo_key","json_metadata"]},{roles:["owner","active"],operation:"account_update",params:["account","owner","active","posting","memo_key","json_metadata"]},{roles:["active"],operation:"witness_update",params:["owner","url","block_signing_key","props","fee"]},{roles:["active"],operation:"account_witness_vote",params:["account","witness","approve"]},{roles:["active"],operation:"account_witness_proxy",params:["account","proxy"]},{roles:["active"],operation:"pow",params:["worker","input","signature","work"]},{roles:["active"],operation:"custom",params:["required_auths","id","data"]},{roles:["posting"],operation:"delete_comment",params:["author","permlink"]},{roles:["posting","active"],operation:"custom_json",params:["required_auths","required_posting_auths","id","json"]},{roles:["posting"],operation:"comment_options",params:["author","permlink","max_accepted_payout","percent_steem_dollars","allow_votes","allow_curation_rewards","extensions"]},{roles:["active"],operation:"set_withdraw_vesting_route",params:["from_account","to_account","percent","auto_vest"]},{roles:["active"],operation:"limit_order_create2",params:["owner","orderid","amount_to_sell","exchange_rate","fill_or_kill","expiration"]},{roles:["active"],operation:"challenge_authority",params:["challenger","challenged","require_owner"]},{roles:["active","owner"],operation:"prove_authority",params:["challenged","require_owner"]},{roles:["active"],operation:"request_account_recovery",params:["recovery_account","account_to_recover","new_owner_authority","extensions"]},{roles:["owner"],operation:"recover_account",params:["account_to_recover","new_owner_authority","recent_owner_authority","extensions"]},{roles:["owner"],operation:"change_recovery_account",params:["account_to_recover","new_recovery_account","extensions"]},{roles:["active"],operation:"escrow_transfer",params:["from","to","agent","escrow_id","sbd_amount","steem_amount","fee","ratification_deadline","escrow_expiration","json_meta"]},{roles:["active"],operation:"escrow_dispute",params:["from","to","agent","who","escrow_id"]},{roles:["active"],operation:"escrow_release",params:["from","to","agent","who","receiver","escrow_id","sbd_amount","steem_amount"]},{roles:["active"],operation:"pow2",params:["input","pow_summary"]},{roles:["active"],operation:"escrow_approve",params:["from","to","agent","who","escrow_id","approve"]},{roles:["active"],operation:"transfer_to_savings",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_from_savings",params:["from","request_id","to","amount","memo"]},{roles:["active"],operation:"cancel_transfer_from_savings",params:["from","request_id"]},{roles:["posting","active","owner"],operation:"custom_binary",params:["required_owner_auths","required_active_auths","required_posting_auths","required_auths","id","data"]},{roles:["owner"],operation:"decline_voting_rights",params:["account","decline"]},{roles:["active"],operation:"reset_account",params:["reset_account","account_to_reset","new_owner_authority"]},{roles:["owner","posting"],operation:"set_reset_account",params:["account","current_reset_account","reset_account"]},{roles:["posting"],operation:"claim_reward_balance",params:["account","reward_steem","reward_sbd","reward_vests"]},{roles:["active"],operation:"fill_convert_request",params:["owner","requestid","amount_in","amount_out"]},{roles:["posting"],operation:"comment_reward",params:["author","permlink","payout"]},{roles:["active"],operation:"liquidity_reward",params:["owner","payout"]},{roles:["active"],operation:"interest",params:["owner","interest"]},{roles:["active"],operation:"fill_vesting_withdraw",params:["from_account","to_account","withdrawn","deposited"]},{roles:["posting"],operation:"fill_order",params:["current_owner","current_orderid","current_pays","current_trade_fee","current_trade_fee_receiver","open_owner","open_orderid","open_pays","open_trade_fee","open_trade_fee_receiver"]},{roles:["posting"],operation:"fill_transfer_from_savings",params:["from","to","amount","request_id","memo"]},{roles:["active","owner"],operation:"delegate_vesting_shares",params:["delegator","delegatee","vesting_shares"]},{roles:["active","owner"],operation:"account_create_with_delegation",params:["fee","delegation","creator","new_account_name","owner","active","posting","memo_key","json_metadata","extensions"]},{roles:["active","owner"],operation:"account_create_with_invite",params:["invite_secret","creator","new_account_name","owner","active","posting","memo_key","json_metadata","extensions"]},{roles:["posting"],operation:"account_metadata",params:["account","json_metadata"]},{roles:["active","owner"],operation:"proposal_create",params:["author","title","memo","expiration_time","proposed_operations","review_period_time","extensions"]},{roles:["posting","active","owner"],operation:"proposal_update",params:["author","title","active_approvals_to_add","active_approvals_to_remove","owner_approvals_to_add","owner_approvals_to_remove","posting_approvals_to_add","posting_approvals_to_remove","key_approvals_to_add","key_approvals_to_remove","extensions"]},{roles:["active","owner"],operation:"proposal_delete",params:["author","title","requester","extensions"]},{roles:["active","owner"],operation:"chain_properties_update",params:["owner","props"]},{roles:["active"],operation:"break_free_referral",params:["referral","extensions"]},{roles:["active"],operation:"delegate_vesting_shares_with_interest",params:["delegator","delegatee","vesting_shares","interest_rate","extensions"]},{roles:["active"],operation:"reject_vesting_shares_delegation",params:["delegator","delegatee","extensions"]},{roles:["posting"],operation:"worker_request",params:["author","permlink","worker","required_amount_min","required_amount_max","vest_reward","duration","extensions"]},{roles:["posting"],operation:"worker_request_delete",params:["author","permlink","extensions"]},{roles:["posting"],operation:"worker_request_vote",params:["voter","author","permlink","vote_percent","extensions"]},{roles:["posting"],operation:"claim",params:["from","to","amount","to_vesting","extensions"]},{roles:["posting"],operation:"donate",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"transfer_to_tip",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"transfer_from_tip",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"invite",params:["creator","balance","invite_key","extensions"]},{roles:["active"],operation:"invite_claim",params:["initiator","receiver","invite_secret","extensions"]},{roles:["active"],operation:"asset_create",params:["creator","max_supply","allow_fee","allow_override_transfer","json_metadata","extensions"]},{roles:["active"],operation:"asset_update",params:["creator","symbol","symbols_whitelist","fee_percent","json_metadata","extensions"]},{roles:["active"],operation:"asset_issue",params:["creator","amount","to","extensions"]},{roles:["active"],operation:"asset_transfer",params:["creator","symbol","new_owner","extensions"]},{roles:["active"],operation:"override_transfer",params:["creator","from","to","amount","memo","extensions"]},{roles:["active"],operation:"invite_donate",params:["from","invite_key","amount","memo","extensions"]},{roles:["active"],operation:"invite_transfer",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"limit_order_cancel_ex",params:["owner","orderid","extensions"]},{roles:["posting"],operation:"account_setup",params:["account","settings","extensions"]},{roles:["posting"],operation:"paid_subscription_create",params:["author","oid","cost","tip_cost","allow_prepaid","interval","executions","extensions"]},{roles:["posting"],operation:"paid_subscription_update",params:["author","oid","cost","tip_cost","interval","executions","extensions"]},{roles:["posting"],operation:"paid_subscription_delete",params:["author","oid","extensions"]},{roles:["posting","active"],operation:"paid_subscription_transfer",params:["from","to","oid","amount","memo","from_tip","extensions"]},{roles:["posting"],operation:"paid_subscription_cancel",params:["subscriber","author","oid","extensions"]},{roles:["active"],operation:"nft_collection",params:["creator","name","json_metadata","max_token_count","extensions"]},{roles:["active"],operation:"nft_collection_delete",params:["creator","name","extensions"]},{roles:["active"],operation:"nft_issue",params:["creator","name","to","json_metadata","extensions"]},{roles:["active"],operation:"nft_transfer",params:["token_id","from","to","memo","extensions"]},{roles:["active"],operation:"nft_sell",params:["seller","token_id","buyer","order_id","price","extensions"]},{roles:["active"],operation:"nft_buy",params:["buyer","name","token_id","order_id","price","extensions"]},{roles:["active"],operation:"nft_cancel_order",params:["owner","order_id","extensions"]},{roles:["active"],operation:"nft_auction",params:["owner","token_id","min_price","expiration","extensions"]}]},79:(t,e,r)=>{var n=r(3702),i=r(80),o=r(4739),A=r(8655),s=r(1175);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=A,a.prototype.set=s,t.exports=a},80:(t,e,r)=>{var n=r(6025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},104:(t,e,r)=>{var n=r(3661);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var A=t.apply(this,n);return r.cache=o.set(i,A)||o,A};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},181:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},200:(t,e,r)=>{"use strict";var n=r(8287).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decode=f,e.encode=u;var i=a(r(8264)),o=a(r(4148)),A=a(r(6763)),s=r(738);function a(t){return t&&t.__esModule?t:{default:t}}const c=r(3801).ops.encrypted_memo;function f(t,e){if((0,o.default)(e,"memo is required"),o.default.equal(typeof e,"string","memo"),!/^#/.test(e))return e;e=e.substring(1),(0,o.default)(t,"private_key is required"),l(),t=h(t),e=A.default.decode(e),e=c.fromBuffer(new n(e,"binary"));const{from:r,to:a,nonce:f,check:u,encrypted:g}=e,p=t.toPublicKey().toString()===r.toString()?a.toString():r.toString();e=s.Aes.decrypt(t,p,f,g,u);const d=i.default.fromBinary(e.toString("binary"),i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);try{return d.mark(),"#"+d.readVString()}catch(t){return d.reset(),"#"+(e=new n(d.toString("binary"),"binary").toString("utf-8"))}}function u(t,e,r,a){if((0,o.default)(r,"memo is required"),o.default.equal(typeof r,"string","memo"),!/^#/.test(r))return r;r=r.substring(1),(0,o.default)(t,"private_key is required"),(0,o.default)(e,"public_key is required"),l(),t=h(t),e=p(e);const f=new i.default(i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);f.writeVString(r),r=new n(f.copy(0,f.offset).toBinary(),"binary");const{nonce:u,message:g,checksum:d}=s.Aes.encrypt(t,e,r,a);return r=c.fromObject({from:t.toPublicKey(),to:e,nonce:u,check:d,encrypted:g}),r=c.toBuffer(r),"#"+A.default.encode(new n(r,"binary"))}let g;function l(){if(void 0===g){let t;g=!0;try{const e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw";t=f(e,u(e,"GLS8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo爱"))}catch(t){console.error(t)}finally{g="#memo爱"===t}}if(!1===g)throw new Error("This environment does not support encryption.")}const h=t=>t?t.d?t:s.PrivateKey.fromWif(t):t,p=t=>t?t.Q?t:s.PublicKey.fromString(t):t},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,A,s=8*i-n-1,a=(1<<s)-1,c=a>>1,f=-7,u=r?i-1:0,g=r?-1:1,l=t[e+u];for(u+=g,o=l&(1<<-f)-1,l>>=-f,f+=s;f>0;o=256*o+t[e+u],u+=g,f-=8);for(A=o&(1<<-f)-1,o>>=-f,f+=n;f>0;A=256*A+t[e+u],u+=g,f-=8);if(0===o)o=1-c;else{if(o===a)return A?NaN:1/0*(l?-1:1);A+=Math.pow(2,n),o-=c}return(l?-1:1)*A*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var A,s,a,c=8*o-i-1,f=(1<<c)-1,u=f>>1,g=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,h=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,A=f):(A=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-A))<1&&(A--,a*=2),(e+=A+u>=1?g/a:g*Math.pow(2,1-u))*a>=2&&(A++,a/=2),A+u>=f?(s=0,A=f):A+u>=1?(s=(e*a-1)*Math.pow(2,i),A+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,i),A=0));i>=8;t[r+l]=255&s,l+=h,s/=256,i-=8);for(A=A<<i|s,c+=i;c>0;t[r+l]=255&A,l+=h,A/=256,c-=8);t[r+l-h]|=128*p}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},295:(t,e,r)=>{var n=r(8287).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),i=new n(r),o=0;o<r;++o)i[o]=t[o]^e[o];return i}},308:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",c="[\\ufe0e\\ufe0f]?",f=c+a+"(?:\\u200d(?:"+[o,A,s].join("|")+")"+c+a+")*",u="(?:"+[o+n+"?",n,A,s,r].join("|")+")",g=RegExp(i+"(?="+i+")|"+u+f,"g");t.exports=function(t){for(var e=g.lastIndex=0;g.test(t);)++e;return e}},320:(t,e,r)=>{var n=r(8276);t.exports=function(t){return(new n).update(t).digest()}},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},453:(t,e,r)=>{"use strict";var n,i=SyntaxError,o=Function,A=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var c=function(){throw new A},f=a?function(){try{return c}catch(t){try{return a(arguments,"callee").get}catch(t){return c}}}():c,u=r(4039)(),g=Object.getPrototypeOf||function(t){return t.__proto__},l={},h="undefined"==typeof Uint8Array?n:g(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":u?g([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":l,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?g(g([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?g((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?g((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?g(""[Symbol.iterator]()):n,"%Symbol%":u?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":A,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},d=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=g(i.prototype))}return p[e]=r,r},I={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(6743),y=r(9030),_=B.call(Function.call,Array.prototype.concat),E=B.call(Function.apply,Array.prototype.splice),w=B.call(Function.call,String.prototype.replace),C=B.call(Function.call,String.prototype.slice),m=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,b=function(t,e){var r,n=t;if(y(I,n)&&(n="%"+(r=I[n])[0]+"%"),y(p,n)){var o=p[n];if(o===l&&(o=d(n)),void 0===o&&!e)throw new A("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new A('"allowMissing" argument must be a boolean');var r=function(t){var e=C(t,0,1),r=C(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,m,(function(t,e,r,i){n[n.length]=r?w(i,Q,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=b("%"+n+"%",e),s=o.name,c=o.value,f=!1,u=o.alias;u&&(n=u[0],E(r,_([0,1],u)));for(var g=1,l=!0;g<r.length;g+=1){var h=r[g],d=C(h,0,1),I=C(h,-1);if(('"'===d||"'"===d||"`"===d||'"'===I||"'"===I||"`"===I)&&d!==I)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&l||(f=!0),y(p,s="%"+(n+="."+h)+"%"))c=p[s];else if(null!=c){if(!(h in c)){if(!e)throw new A("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&g+1>=r.length){var B=a(c,h);c=(l=!!B)&&"get"in B&&!("originalValue"in B.get)?B.get:c[h]}else l=y(c,h),c=c[h];l&&!f&&(p[s]=c)}}return c}},462:(t,e,r)=>{var n=r(2861).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(;0<t.length;t++)t[0]=0}function A(t,e,r,n,i){for(var o,A,s,a,c=r[0],f=r[1],u=r[2],g=r[3],l=t[0]^e[0],h=t[1]^e[1],p=t[2]^e[2],d=t[3]^e[3],I=4,B=1;B<i;B++)o=c[l>>>24]^f[h>>>16&255]^u[p>>>8&255]^g[255&d]^e[I++],A=c[h>>>24]^f[p>>>16&255]^u[d>>>8&255]^g[255&l]^e[I++],s=c[p>>>24]^f[d>>>16&255]^u[l>>>8&255]^g[255&h]^e[I++],a=c[d>>>24]^f[l>>>16&255]^u[h>>>8&255]^g[255&p]^e[I++],l=o,h=A,p=s,d=a;return o=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&d])^e[I++],A=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[255&l])^e[I++],s=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[l>>>8&255]<<8|n[255&h])^e[I++],a=(n[d>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^e[I++],[o>>>=0,A>>>=0,s>>>=0,a>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],A=0,s=0,a=0;a<256;++a){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[A]=c,n[c]=A;var f=t[A],u=t[f],g=t[u],l=257*t[c]^16843008*c;i[0][A]=l<<24|l>>>8,i[1][A]=l<<16|l>>>16,i[2][A]=l<<8|l>>>24,i[3][A]=l,l=16843009*g^65537*u^257*f^16843008*A,o[0][c]=l<<24|l>>>8,o[1][c]=l<<16|l>>>16,o[2][c]=l<<8|l>>>24,o[3][c]=l,0===A?A=s=1:(A=f^t[t[t[g^f]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var A=i[o-1];o%e==0?(A=A<<8|A>>>24,A=a.SBOX[A>>>24]<<24|a.SBOX[A>>>16&255]<<16|a.SBOX[A>>>8&255]<<8|a.SBOX[255&A],A^=s[o/e|0]<<24):e>6&&o%e==4&&(A=a.SBOX[A>>>24]<<24|a.SBOX[A>>>16&255]<<16|a.SBOX[A>>>8&255]<<8|a.SBOX[255&A]),i[o]=i[o-e]^A}for(var c=[],f=0;f<n;f++){var u=n-f,g=i[u-(f%4?0:4)];c[f]=f<4||u<=4?g:a.INV_SUB_MIX[0][a.SBOX[g>>>24]]^a.INV_SUB_MIX[1][a.SBOX[g>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[g>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&g]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return A(t=i(t),this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=A(t,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},487:(t,e,r)=>{"use strict";var n=r(6743),i=r(453),o=i("%Function.prototype.apply%"),A=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(A,o),a=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,A,arguments);return a&&c&&a(e,"length").configurable&&c(e,"length",{value:1+f(0,t.length-(arguments.length-1))}),e};var u=function(){return s(n,o,arguments)};c?c(t.exports,"apply",{value:u}):t.exports.apply=u},530:(t,e,r)=>{var n={ECB:r(2632),CBC:r(2884),CFB:r(6383),CFB8:r(6975),CFB1:r(5264),OFB:r(6843),CTR:r(3053),GCM:r(3053)},i=r(3219);for(var o in i)i[o].module=n[i[o].mode];t.exports=i},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,A=String(t).replace(o,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])I(s)||!w(s)?A+=" "+s:A+=" "+c(s);return A},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var A={},s=/^$/;if(n.env.NODE_DEBUG){var a=n.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function c(t,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),g(n,t,n.depth)}function f(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function u(t,e){return t}function g(t,r,n){if(t.customInspect&&r&&Q(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=g(t,i,n)),i}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return B(e)?t.stylize(""+e,"number"):d(e)?t.stylize(""+e,"boolean"):I(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var A=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(r)),m(r)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return l(r);if(0===A.length){if(Q(r)){var a=r.name?": "+r.name:"";return t.stylize("[Function"+a+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(C(r))return t.stylize(Date.prototype.toString.call(r),"date");if(m(r))return l(r)}var c,f="",u=!1,w=["{","}"];return p(r)&&(u=!0,w=["[","]"]),Q(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(f=" "+RegExp.prototype.toString.call(r)),C(r)&&(f=" "+Date.prototype.toUTCString.call(r)),m(r)&&(f=" "+l(r)),0!==A.length||u&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=u?function(t,e,r,n,i){for(var o=[],A=0,s=e.length;A<s;++A)S(e,String(A))?o.push(h(t,e,r,n,String(A),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,r,n,i,!0))})),o}(t,r,n,s,A):A.map((function(e){return h(t,r,n,s,e,u)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,f,w)):w[0]+f+w[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,o){var A,s,a;if((a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(s=t.stylize("[Setter]","special")),S(n,i)||(A="["+i+"]"),s||(t.seen.indexOf(a.value)<0?(s=I(r)?g(t,a.value,null):g(t,a.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),_(A)){if(o&&i.match(/^\d+$/))return s;(A=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=t.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=t.stylize(A,"string"))}return A+": "+s}function p(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function I(t){return null===t}function B(t){return"number"==typeof t}function y(t){return"string"==typeof t}function _(t){return void 0===t}function E(t){return w(t)&&"[object RegExp]"===b(t)}function w(t){return"object"==typeof t&&null!==t}function C(t){return w(t)&&"[object Date]"===b(t)}function m(t){return w(t)&&("[object Error]"===b(t)||t instanceof Error)}function Q(t){return"function"==typeof t}function b(t){return Object.prototype.toString.call(t)}function v(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!A[t])if(s.test(t)){var r=n.pid;A[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else A[t]=function(){};return A[t]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=p,e.isBoolean=d,e.isNull=I,e.isNullOrUndefined=function(t){return null==t},e.isNumber=B,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=E,e.types.isRegExp=E,e.isObject=w,e.isDate=C,e.types.isDate=C,e.isError=m,e.types.isNativeError=m,e.isFunction=Q,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[v((t=new Date).getHours()),v(t.getMinutes()),v(t.getSeconds())].join(":"),[t.getDate(),D[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!w(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var e;if("function"!=typeof(e=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),k&&Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=k,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,A=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(A.bind(null,null,t))}),(function(t){n.nextTick(N.bind(null,t,A))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},650:(t,e,r)=>{var n=r(462),i=r(2861).Buffer,o=r(6168);function A(t,e,r,A){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=A,this._mode=t}r(6698)(A,o),A.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},A.prototype._final=function(){this._cipher.scrub()},t.exports=A},659:(t,e,r)=>{var n=r(1873),i=Object.prototype,o=i.hasOwnProperty,A=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=A.call(t);return n&&(e?t[s]=r:delete t[s]),i}},695:(t,e,r)=>{var n=r(8096),i=r(2428),o=r(6449),A=r(3656),s=r(361),a=r(7167),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),f=!r&&i(t),u=!r&&!f&&A(t),g=!r&&!f&&!u&&a(t),l=r||f||u||g,h=l?n(t.length,String):[],p=h.length;for(var d in t)!e&&!c.call(t,d)||l&&("length"==d||u&&("offset"==d||"parent"==d)||g&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||s(d,p))||h.push(d);return h}},709:t=>{"use strict";t.exports=class{constructor(t,e){this.message=t,(null!=e?e.message:void 0)&&(this.message=`cause\t${e.message}\t`+this.message);var r="";(null!=e?e.stack:void 0)&&(r=`caused by\n\t${e.stack}\t`+r),this.stack=this.message+"\n"+r}static throw(t,e){var r=t;throw(null!=e?e.message:void 0)&&(r+=`\t cause: ${e.message} `),(null!=e?e.stack:void 0)&&(r+=`\n stack: ${e.stack} `),new Error(r)}}},734:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MY_HASH=void 0,e.MY_HASH="NO_HASH"},738:(t,e,r)=>{"use strict";t.exports={Address:r(7927),Aes:r(7939),PrivateKey:r(3336),PublicKey:r(3858),Signature:r(4437),brainKey:r(4839),key_utils:r(5238),hash:r(2455),ecc_config:r(9027)}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),i=r(8223),o=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var A=r.__data__;if(!i||A.length<199)return A.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(A)}return r.set(t,e),this.size=r.size,this}},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1074:t=>{t.exports=function(t){return t.split("")}},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,A=o?function(t){return o(t)}:r(8875),s=Object.keys;A.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=A;return Object.keys||A},t.exports=A},1241:(t,e,r)=>{var n=r(5799),i=r(6171),o=r(3219);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1437:(t,e,r)=>{var n=r(2552),i=r(346);t.exports=function(t){return i(t)&&"[object RegExp]"==n(t)}},1452:t=>{"use strict";t.exports=JSON.parse('{"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"}}')},1489:(t,e,r)=>{var n=r(7400);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},1549:(t,e,r)=>{var n=r(2032),i=r(3862),o=r(6721),A=r(2749),s=r(5749);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=A,a.prototype.set=s,t.exports=a},1670:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(4945)),i=o(r(5568));function o(t){return t&&t.__esModule?t:{default:t}}async function A(t,e){let{timeout:r,...o}=e;if(!o.signal&&(0!==r&&void 0!==r||(r=1e4),null!==r)){const t=new i.default;setTimeout((()=>t.abort()),r),o.signal=t.signal}return await(0,n.default)(t,o)}A.COMMON_TIMEOUT=1e4,A.AbortController=i.default,e.default=A},1705:(t,e)=>{"use strict";function r(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return new Promise(((e,n)=>{t.call(this,...r,((t,r)=>{t?n(t):e(r)}))}))}}Object.defineProperty(e,"__esModule",{value:!0}),e.nodeify=function(t,e){const r="function"==typeof e;return t.then((t=>(r&&e(null,t),t))).catch((t=>{if(!r)throw t;e(t,null)}))},e.promisify=r,e.promisifyAll=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Async",n=Object.getOwnPropertyNames(t),i=new Set;for(let e of n)if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t,e);null!=o&&null==o.get&&null==o.set&&i.add(e)}for(let n of i)t[n+e]=r(t[n])}},1769:(t,e,r)=>{var n=r(6449),i=r(8586),o=r(1802),A=r(3222);t.exports=function(t,e){return n(t)?t: