(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63e7daf4"],{"0060":function(e,t,n){"use strict";const{encodeText:r}=n("af2a");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},"0111":function(e,t,n){"use strict";t.Diagnose=n("8e99"),t.Decoder=n("8431"),t.Encoder=n("2dc7"),t.Simple=n("5076"),t.Tagged=n("22b4"),t.decodeAll=t.Decoder.decodeAll,t.decodeFirst=t.Decoder.decodeFirst,t.diagnose=t.Diagnose.diagnose,t.encode=t.Encoder.encode,t.decode=t.Decoder.decode,t.leveldb={decode:t.Decoder.decodeAll,encode:t.Encoder.encode,buffer:!0,name:"cbor"}},"0150":function(e,t,n){"use strict";e.exports=e=>({net:n("ac7f")(e),sys:n("e7c7")(e),cmds:n("4f82")(e)})},"017f":function(e,t,n){"use strict";const r=n("a5b3"),{concat:i}=n("ad9d"),s=n("af6c"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("cdbd");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},"01e0":function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},"02f9":function(e,t,n){"use strict";const r=n("ca89"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},"0325":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("612f");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"0329":function(e,t,n){"use strict";const r=n("f016"),i=n("5be5"),{rfc4648:s}=n("b5b1"),{decodeText:f,encodeText:a}=n("32ba"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"0392":function(e,t,n){"use strict";const{baseTable:r}=n("9bfb"),i=n("5fe0").varintEncode,s={};for(const f in r){const e=r[f];s[f]=i(e)}e.exports=Object.freeze(s)},"03e8":function(e,t,n){"use strict";const r=n("891a"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},"0452":function(e,t,n){const r=n("84e9"),i=n("f35a"),s=n("4f8d"),{rlpEncodeForLegacyTransaction:f,rlpEncodeForValueTransfer:a,rlpEncodeForValueTransferMemo:o,rlpEncodeForFeeDelegatedValueTransferMemoWithRatio:c,rlpEncodeForFeeDelegatedValueTransfer:u,rlpEncodeForFeeDelegatedValueTransferWithRatio:l,rlpEncodeForFeeDelegatedValueTransferMemo:d,rlpEncodeForAccountUpdate:h,rlpEncodeForContractDeploy:p,rlpEncodeForContractExecution:b,rlpEncodeForFeeDelegatedAccountUpdate:m,rlpEncodeForFeeDelegatedAccountUpdateWithRatio:g,rlpEncodeForFeeDelegatedSmartContractDeploy:k,rlpEncodeForFeeDelegatedSmartContractDeployWithRatio:y,rlpEncodeForFeeDelegatedSmartContractExecution:w,rlpEncodeForFeeDelegatedSmartContractExecutionWithRatio:v,rlpEncodeForCancel:E,rlpEncodeForFeeDelegatedCancel:T,rlpEncodeForFeeDelegatedCancelWithRatio:x,rlpEncodeForChainDataAnchoring:_,parseAccountKey:A}=n("7c59"),P="ACCOUNT_CREATION transaction type is not supported yet.";function C(e){switch(e.type=e.senderRawTransaction?s.getTxTypeStringFromRawTransaction(e.senderRawTransaction):e.type,e.type){case"ACCOUNT_CREATION":throw new Error(P);case"ACCOUNT_UPDATE":return h(e);case"FEE_DELEGATED_ACCOUNT_UPDATE":return m(e);case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":return g(e);case"VALUE_TRANSFER":return a(e);case"VALUE_TRANSFER_MEMO":return o(e);case"FEE_DELEGATED_VALUE_TRANSFER":return u(e);case"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO":return l(e);case"FEE_DELEGATED_VALUE_TRANSFER_MEMO":return d(e);case"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO":return c(e);case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY":return k(e);case"SMART_CONTRACT_DEPLOY":return p(e);case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO":return y(e);case"SMART_CONTRACT_EXECUTION":return b(e);case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION":return w(e);case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO":return v(e);case"CANCEL":return E(e);case"FEE_DELEGATED_CANCEL":return T(e);case"FEE_DELEGATED_CANCEL_WITH_RATIO":return x(e);case"CHAIN_DATA_ANCHORING":return _(e);case"LEGACY":default:return f(e)}}function S(e,t,n){const i=r.decode(e);let f;switch(n.type=n.senderRawTransaction?s.getTxTypeStringFromRawTransaction(n.senderRawTransaction):n.type,n.type){case"ACCOUNT_CREATION":throw new Error(P);case"VALUE_TRANSFER":case"VALUE_TRANSFER_MEMO":case"ACCOUNT_UPDATE":case"SMART_CONTRACT_DEPLOY":case"SMART_CONTRACT_EXECUTION":case"CANCEL":case"CHAIN_DATA_ANCHORING":return N(e,t);case"FEE_DELEGATED_VALUE_TRANSFER":case"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO":case"FEE_DELEGATED_VALUE_TRANSFER_MEMO":case"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO":case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY":case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO":case"FEE_DELEGATED_CANCEL":case"FEE_DELEGATED_CANCEL_WITH_RATIO":case"FEE_DELEGATED_ACCOUNT_UPDATE":case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION":case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO":if(n.senderRawTransaction){const r=R(n.senderRawTransaction);return I(e,t,n,r.signatures)}return n.feePayer&&"0x"!==n.feePayer&&"0x0000000000000000000000000000000000000000"!==n.feePayer&&n.feePayerSignatures?I(e,n.feePayerSignatures,n,t):N(e,t);case"LEGACY":default:return f=i.slice(0,6).concat(t[0]),{rawTransaction:r.encode(f),signatures:t[0],feePayerSignatures:void 0}}}function N(e,t){const n=r.decode(e),[i]=n;let[f,...a]=r.decode(i);Array.isArray(t[0])||(t=[t]),t=F(t),a=[...a,t];const o=s.getTxTypeStringFromRawTransaction(f);return void 0!==o&&o.includes("FEE_DELEGATED")&&(a=[...a,"0x0000000000000000000000000000000000000000",[["0x01","0x","0x"]]]),{rawTransaction:f+r.encode(a).slice(2),signatures:t,feePayerSignatures:void 0}}function I(e,t,n,i){const s=r.decode(e),[f]=s;let[a,...o]=r.decode(f);return Array.isArray(t[0])||(t=[t]),i=F(i),t=F(t),o=[...o,i,n.feePayer.toLowerCase(),t],{rawTransaction:a+r.encode(o).slice(2),signatures:i,feePayerSignatures:t}}function F(e){const t=new Set;let n=[];for(const r of e)if(r.length>0&&!s.isEmptySig(r)){const e=r.join("");t.has(e)||(t.add(e,!0),n.push(r))}return 0===n.length&&(n=[["0x01","0x","0x"]]),n}function O(e){let t=[],n=[];const r=D(e);return t=t.concat(r.signatures),r.feePayerSignatures&&(n=n.concat(r.feePayerSignatures)),{senderSignatures:t,feePayerSignatures:n,decodedTransaction:r}}function L(e){const t=s.getTxTypeStringFromRawTransaction(e);if(!t||!t.includes("FEE_DELEGATED"))throw new Error(`Failed to split fee payer: not a fee delegated transaction type('${t||"LEGACY"}')`);const n=e.slice(0,4),i=r.decode(s.addHexPrefix(e.slice(4))),f=i.splice(0,i.length-2);return f.push("0x0000000000000000000000000000000000000000"),f.push([["0x01","0x","0x"]]),{senderRawTransaction:n+r.encode(f).slice(2),feePayer:i[0],feePayerSignatures:i[1]}}function R(e,t){let n=D(e,t);switch(n.type){case"ACCOUNT_UPDATE":case"FEE_DELEGATED_ACCOUNT_UPDATE":case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":n=A(n)}return n}function D(e,t){let n=t;switch(void 0!==n&&"LEGACY"===n||(n=s.getTxTypeStringFromRawTransaction(e),void 0===n?n="LEGACY":e="0x"+e.slice(4)),n){case"LEGACY":{const[t,i,s,f,a,o,c,u,l]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,data:o,v:c,r:u,s:l,signatures:[c,u,l]}}case"VALUE_TRANSFER":{const[t,i,s,f,a,o,c]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,v:c[0][0],r:c[0][1],s:c[0][2],signatures:c}}case"FEE_DELEGATED_VALUE_TRANSFER":{const[t,i,s,f,a,o,c,u,l]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,v:c[0][0],r:c[0][1],s:c[0][2],signatures:c,feePayer:u,payerV:l[0][0],payerR:l[0][1],payerS:l[0][2],feePayerSignatures:l}}case"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO":{const[t,i,s,f,a,o,c,u,l,d]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,feeRatio:c,v:u[0][0],r:u[0][1],s:u[0][2],signatures:u,feePayer:l,payerV:d[0][0],payerR:d[0][1],payerS:d[0][2],feePayerSignatures:d}}case"VALUE_TRANSFER_MEMO":{const[t,i,s,f,a,o,c,u]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,v:u[0][0],r:u[0][1],s:u[0][2],signatures:u}}case"FEE_DELEGATED_VALUE_TRANSFER_MEMO":{const[t,i,s,f,a,o,c,u,l,d]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,v:u[0][0],r:u[0][1],s:u[0][2],signatures:u,feePayer:l,payerV:d[0][0],payerR:d[0][1],payerS:d[0][2],feePayerSignatures:d}}case"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO":{const[t,i,s,f,a,o,c,u,l,d,h]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,feeRatio:u,v:l[0][0],r:l[0][1],s:l[0][2],signatures:l,feePayer:d,payerV:h[0][0],payerR:h[0][1],payerS:h[0][2],feePayerSignatures:h}}case"ACCOUNT_CREATION":throw new Error(P);case"ACCOUNT_UPDATE":{const[t,i,s,f,a,o]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,accountKey:a,v:o[0][0],r:o[0][1],s:o[0][2],signatures:o}}case"FEE_DELEGATED_ACCOUNT_UPDATE":{const[t,i,s,f,a,o,c,u]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,accountKey:a,v:o[0][0],r:o[0][1],s:o[0][2],signatures:o,feePayer:c,payerV:u[0][0],payerR:u[0][1],payerS:u[0][2],feePayerSignatures:u}}case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":{const[t,i,s,f,a,o,c,u,l]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,accountKey:a,feeRatio:o,v:c[0][0],r:c[0][1],s:c[0][2],signatures:c,feePayer:u,payerV:l[0][0],payerR:l[0][1],payerS:l[0][2],feePayerSignatures:l}}case"SMART_CONTRACT_DEPLOY":{const[t,i,s,f,a,o,c,u,l,d]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,humanReadable:"0x01"===u,codeFormat:l,v:d[0][0],r:d[0][1],s:d[0][2],signatures:d}}case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY":{const[t,i,s,f,a,o,c,u,l,d,h,p]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,humanReadable:"0x01"===u,codeFormat:l,v:d[0][0],r:d[0][1],s:d[0][2],signatures:d,feePayer:h,payerV:p[0][0],payerR:p[0][1],payerS:p[0][2],feePayerSignatures:p}}case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO":{const[t,i,s,f,a,o,c,u,l,d,h,p,b]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,humanReadable:"0x01"===u,feeRatio:l,codeFormat:d,v:h[0][0],r:h[0][1],s:h[0][2],signatures:h,feePayer:p,payerV:b[0][0],payerR:b[0][1],payerS:b[0][2],feePayerSignatures:b}}case"SMART_CONTRACT_EXECUTION":{const[t,i,s,f,a,o,c,u]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,v:u[0][0],r:u[0][1],s:u[0][2],signatures:u}}case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION":{const[t,i,s,f,a,o,c,u,l,d]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,v:u[0][0],r:u[0][1],s:u[0][2],signatures:u,feePayer:l,payerV:d[0][0],payerR:d[0][1],payerS:d[0][2],feePayerSignatures:d}}case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO":{const[t,i,s,f,a,o,c,u,l,d,h]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,to:f,value:a,from:o,data:c,feeRatio:u,v:l[0][0],r:l[0][1],s:l[0][2],signatures:l,feePayer:d,payerV:h[0][0],payerR:h[0][1],payerS:h[0][2],feePayerSignatures:h}}case"CANCEL":{const[t,i,s,f,a]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,v:a[0][0],r:a[0][1],s:a[0][2],signatures:a}}case"FEE_DELEGATED_CANCEL":{const[t,i,s,f,a,o,c]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,v:a[0][0],r:a[0][1],s:a[0][2],signatures:a,feePayer:o,payerV:c[0][0],payerR:c[0][1],payerS:c[0][2],feePayerSignatures:c}}case"FEE_DELEGATED_CANCEL_WITH_RATIO":{const[t,i,s,f,a,o,c,u]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,feeRatio:a,v:o[0][0],r:o[0][1],s:o[0][2],signatures:o,feePayer:c,payerV:u[0][0],payerR:u[0][1],payerS:u[0][2],feePayerSignatures:u}}case"CHAIN_DATA_ANCHORING":{const[t,i,s,f,a,o]=r.decode(e);return{type:n,nonce:t,gasPrice:i,gas:s,from:f,data:a,v:o[0][0],r:o[0][1],s:o[0][2],signatures:o}}}}function M(e,t,n,i){if(void 0===n&&(n=[t.v,t.r,t.s]),t.type.includes("FEE_DELEGATED")&&void 0===i&&(i=[t.payerV,t.payerR,t.payerS]),"LEGACY"===t.type){let t=r.decode(e);return t=t.slice(0,6).concat(n),r.encode(t)}const s=e.slice(0,4),f="0x"+e.slice(4),a=r.decode(f);return t.type.includes("FEE_DELEGATED")?(a[a.length-3]=[n],a[a.length-1]=[i]):a[a.length-1]=[n],s+r.encode(a).slice(2)}function U(e){const t=s.getTxTypeStringFromRawTransaction(e);if(void 0===t||!t.includes("FEE_DELEGATED"))return i.keccak256(e);const n=e.slice(0,4),f="0x"+e.slice(4),a=r.decode(f);return i.keccak256(n+r.encode(a.slice(0,a.length-2)).slice(2))}e.exports={encodeRLPByTxType:C,makeRawTransaction:S,decodeFromRawTransaction:R,overwriteSignature:M,getSenderTxHash:U,splitFeePayer:L,extractSignatures:O}},"04bb":function(e){e.exports=JSON.parse('{"name":"websocket","description":"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.","keywords":["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],"author":"Brian McKelvey (https://github.com/theturtle32)","contributors":["IƱaki Baz Castillo (http://dev.sipdoc.net)"],"version":"1.0.31","repository":{"type":"git","url":"https://github.com/theturtle32/WebSocket-Node.git"},"homepage":"https://github.com/theturtle32/WebSocket-Node","engines":{"node":">=0.10.0"},"dependencies":{"debug":"^2.2.0","es5-ext":"^0.10.50","nan":"^2.14.0","typedarray-to-buffer":"^3.1.5","yaeti":"^0.0.6"},"devDependencies":{"buffer-equal":"^1.0.0","faucet":"^0.0.1","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1","jshint":"^2.0.0","tape":"^4.9.1"},"config":{"verbose":false},"scripts":{"install":"(node-gyp rebuild 2> builderror.log) || (exit 0)","test":"faucet test/unit","gulp":"gulp"},"main":"index","directories":{"lib":"./lib"},"browser":"lib/browser.js","license":"Apache-2.0"}')},"0513":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"05a4":function(e,t,n){"use strict";e.exports=e=>({publish:n("ec71")(e),resolve:n("a41e")(e),pubsub:n("fa9f")(e)})},"05b1":function(e,t,n){n("9bc8"),n("219a"),n("8d72"),n("ee12"),n("b2c9"),n("912f"),n("563b"),n("f4f3"),n("5b52"),n("b0e9"),n("b079"),n("e335"),n("6810"),n("bcbb"),n("0791"),n("ea3d"),n("4667"),n("2085"),n("f349"),n("e2aa1"),n("f922"),n("e224"),n("b02d"),n("7c5f");const r=n("cf9b"),i=n("7614"),s=n("fc43"),f=n("750c"),a=n("866e"),o=n("de37"),c=n("c440"),u=n("bf91"),l=n("a989"),d=n("4868"),h=n("11ec"),p=n("9dce"),b=n("2d1b"),m=n("2e33"),g=n("b685"),k=n("383e"),y=n("06a9"),w=n("31327"),v=n("d3f4"),E=n("6c9a"),T=n("22bb"),x=n("8694"),_=n("336c"),A=n("916e"),P=n("b457"),{TX_TYPE_STRING:C,TX_TYPE_TAG:S}=(n("c7c9"),n("e638")),N=n("3867"),I=n("87b8"),F=n("3508"),O=n("6367");class L{constructor(e){if(!e)throw new Error("Invalid constructor parameter: klaytnCall is undefined.");this.klaytnCall=e,this.legacyTransaction=new r(this.klaytnCall),this.ethereumAccessList=new i(this.klaytnCall),this.ethereumDynamicFee=new s(this.klaytnCall),this.valueTransfer=new f(this.klaytnCall),this.feeDelegatedValueTransfer=new a(this.klaytnCall),this.feeDelegatedValueTransferWithRatio=new o(this.klaytnCall),this.valueTransferMemo=new c(this.klaytnCall),this.feeDelegatedValueTransferMemo=new u(this.klaytnCall),this.feeDelegatedValueTransferMemoWithRatio=new l(this.klaytnCall),this.accountUpdate=new d(this.klaytnCall),this.feeDelegatedAccountUpdate=new h(this.klaytnCall),this.feeDelegatedAccountUpdateWithRatio=new p(this.klaytnCall),this.smartContractDeploy=new b(this.klaytnCall),this.feeDelegatedSmartContractDeploy=new m(this.klaytnCall),this.feeDelegatedSmartContractDeployWithRatio=new g(this.klaytnCall),this.smartContractExecution=new k(this.klaytnCall),this.feeDelegatedSmartContractExecution=new y(this.klaytnCall),this.feeDelegatedSmartContractExecutionWithRatio=new w(this.klaytnCall),this.cancel=new v(this.klaytnCall),this.feeDelegatedCancel=new E(this.klaytnCall),this.feeDelegatedCancelWithRatio=new T(this.klaytnCall),this.chainDataAnchoring=new x(this.klaytnCall),this.feeDelegatedChainDataAnchoring=new _(this.klaytnCall),this.feeDelegatedChainDataAnchoringWithRatio=new A(this.klaytnCall),this.type=C,this.tag=S,this.utils={accessList:F,accessTuple:O}}get klaytnCall(){return this._klaytnCall}set klaytnCall(e){this._klaytnCall=e}async getTransactionByHash(e){let t=await this.klaytnCall.getTransactionByHash(e);if(null===t)throw new Error(`Failed to get transaction from Klaytn with '${e}'.`);if(t.key){const e=N.createFromRLPEncoding(t.from,t.key);t.account=e,delete t.key}switch(t.type){case"TxTypeLegacyTransaction":t=this.legacyTransaction.create(t,this.klaytnCall);break;case"TxTypeValueTransfer":t=this.valueTransfer.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedValueTransfer":t=this.feeDelegatedValueTransfer.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedValueTransferWithRatio":t=this.feeDelegatedValueTransferWithRatio.create(t,this.klaytnCall);break;case"TxTypeValueTransferMemo":t=this.valueTransferMemo.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedValueTransferMemo":t=this.feeDelegatedValueTransferMemo.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedValueTransferMemoWithRatio":t=this.feeDelegatedValueTransferMemoWithRatio.create(t,this.klaytnCall);break;case"TxTypeAccountUpdate":t=this.accountUpdate.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedAccountUpdate":t=this.feeDelegatedAccountUpdate.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedAccountUpdateWithRatio":t=this.feeDelegatedAccountUpdateWithRatio.create(t,this.klaytnCall);break;case"TxTypeSmartContractDeploy":t=this.smartContractDeploy.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedSmartContractDeploy":t=this.feeDelegatedSmartContractDeploy.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedSmartContractDeployWithRatio":t=this.feeDelegatedSmartContractDeployWithRatio.create(t,this.klaytnCall);break;case"TxTypeSmartContractExecution":t=this.smartContractExecution.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedSmartContractExecution":t=this.feeDelegatedSmartContractExecution.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedSmartContractExecutionWithRatio":t=this.feeDelegatedSmartContractExecutionWithRatio.create(t,this.klaytnCall);break;case"TxTypeCancel":t=this.cancel.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedCancel":t=this.feeDelegatedCancel.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedCancelWithRatio":t=this.feeDelegatedCancelWithRatio.create(t,this.klaytnCall);break;case"TxTypeChainDataAnchoring":t=this.chainDataAnchoring.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedChainDataAnchoring":t=this.feeDelegatedChainDataAnchoring.create(t,this.klaytnCall);break;case"TxTypeFeeDelegatedChainDataAnchoringWithRatio":t=this.feeDelegatedChainDataAnchoringWithRatio.create(t,this.klaytnCall);break;case"TxTypeEthereumAccessList":t=this.ethereumAccessList.create(t,this.klaytnCall);break;case"TxTypeEthereumDynamicFee":t=this.ethereumDynamicFee.create(t,this.klaytnCall);break}return t}recoverPublicKeys(e){const t=P.decode(e);return t.recoverPublicKeys()}recoverFeePayerPublicKeys(e){const t=P.decode(e);if(!(t instanceof I))throw new Error("The `caver.transaction.recoverFeePayerPublicKeys` function can only use with fee delegation transaction. For basic transactions, use `caver.transaction.recoverPublicKeys`.");return t.recoverFeePayerPublicKeys()}decode(e){return P.decode(e)}}e.exports=L},"05e5":function(e,t){function n(e,t){this.value=e,this.next=t}e.exports=n,n.prototype.contains=function(e){var t=this;while(t){if(t.value===e)return!0;t=t.next}return!1}},"0624":function(e,t,n){"use strict";const r=n("f016"),i=n("a262"),{rfc4648:s}=n("dce3"),{decodeText:f,encodeText:a}=n("fe32"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"0631":function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},"06a9":function(e,t,n){const r=n("4667");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"06b1":function(e,t,n){"use strict";const r=n("2540"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function*t(t,n={}){const i=await e.post("files/read",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,count:n.length,...n}),headers:n.headers});yield*r(i.body)}return t})},"0701":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("2054");e.exports=r(e=>{async function t(t={}){const n=await e.post("bootstrap/list",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers}),{Peers:r}=await n.json();return{Peers:r.map(e=>new s(e))}}return t})},"0725":function(e,t,n){"use strict";const r=n("2054"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await(await e.post("swarm/peers",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers})).json();return(n.Peers||[]).map(e=>{const t={};try{t.addr=r(e.Addr),t.peer=e.Peer}catch(n){t.error=n,t.rawPeerInfo=e}return e.Muxer&&(t.muxer=e.Muxer),e.Latency&&(t.latency=e.Latency),e.Streams&&(t.streams=e.Streams),null!=e.Direction&&(t.direction=e.Direction),t})})},"0778":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eb20");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"0791":function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("ec88"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,CODE_FORMAT:c,getCodeFormatTag:u,isNot:l}=n("e638"),d=n("4f8d");function h(e){if(e=d.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedSmartContractDeployWithRatio))throw new Error(`Cannot decode to FeeDelegatedSmartContractDeployWithRatio. The prefix must be ${o.TxTypeFeeDelegatedSmartContractDeployWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,u,l,h,p,b,m,g]=r.decode(t);return{nonce:d.trimLeadingZero(n),gasPrice:d.trimLeadingZero(i),gas:d.trimLeadingZero(s),to:f,value:d.trimLeadingZero(a),from:c,input:u,humanReadable:"0x1"===l,feeRatio:d.trimLeadingZero(h),codeFormat:p,signatures:b,feePayer:m,feePayerSignatures:g}}class p extends f{static create(e,t){return new p(e,t)}static decode(e,t){return new p(h(e),t)}constructor(e,t){if(s.isString(e)&&(e=h(e)),super(a.TxTypeFeeDelegatedSmartContractDeployWithRatio,e,t),this.to=e.to||"0x",this.value=e.value||"0x0",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,this.humanReadable=void 0!==e.humanReadable&&e.humanReadable,this.codeFormat=void 0!==e.codeFormat?e.codeFormat:c.EVM,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=d.numberToHex(e)}get to(){return this._to}set to(e){if("0x"!==e)throw new Error("Invalid address of to: 'to' should be '0x' with smart contract deploy transaction.");this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=d.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!d.isHex(e))throw new Error("Invalid input data "+e);this._input=d.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}get humanReadable(){return this._humanReadable}set humanReadable(e){if(!s.isBoolean(e))throw new Error("Invalid humanReadable "+e);this._humanReadable=e}get codeFormat(){return this._codeFormat}set codeFormat(e){this._codeFormat=u(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedSmartContractDeployWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(!0===this.humanReadable?"0x1":"0x0"),i.fromNat(this.feeRatio),i.fromNat(this.codeFormat),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedSmartContractDeployWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(!0===this.humanReadable?"0x1":"0x0"),i.fromNat(this.feeRatio),i.fromNat(this.codeFormat)])}async fillTransaction(){const[e,t,n]=await Promise.all([l(this.chainId)?this.getChainId():this.chainId,l(this.gasPrice)?this.getGasPrice():this.gasPrice,l(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=p},"07d6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("0c4c");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"0850":function(e,t,n){function r(e,t){const r=n("e6d65"),i="function"===typeof t;if(e<0||e>65536){if(!i)throw new Error("Invalid size: It must be >=0 && <= 65536");t(new Error("Invalid size: It must be >=0 && <= 65536"))}if("undefined"!==typeof r&&r.randomBytes){if(!i)return"0x"+r.randomBytes(e).toString("hex");r.randomBytes(e,(e,n)=>{e?t(e):t(null,"0x"+n.toString("hex"))})}else{let n;if("undefined"!==typeof r?n=r:"undefined"!==typeof msCrypto&&(n=msCrypto),n&&n.getRandomValues){const r=n.getRandomValues(new Uint8Array(e)),s="0x"+Array.from(r).map(e=>e.toString(16)).join("");if(!i)return s;t(null,s)}else{const e=new Error('"crypto" object does not exist. This Browser does not support generating secure random bytes.');if(!i)throw e;t(e)}}}e.exports=r},"0887":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nn("f498")(`./${e}/src/index.js`);const{packageInit:r,providers:i}=n("f54c"),s=n("42dc"),f=n("3867"),a=n("a2ff"),o=n("05b1"),c=n("b3bd"),u=n("5af0"),l=n("921c"),d=n("16be"),h=n("5485"),p=n("f54c"),b=n("36a7"),m=n("4f8d"),g=n("e19e").formatters,k=n("a7c2"),{version:y}=n("a178");function w(e,t){const n=this;this.use=b.registerMiddleware.bind(b),r(this,[e,t]),this.version=y,this.utils=m,this.account=f,this.abi=u,this.wallet=new a,this.kct=new d(this),this.klay=new s(this),this.rpc=new c(this),this.validator=new h(this.rpc.klay.klaytnCall),this.transaction=new o(this.rpc.klay.klaytnCall),this.ipfs=new k;const i=this.setProvider;this.setProvider=(e,t)=>(i.apply(this,[e,t]),n.klay.setRequestManager(n._requestManager),n.rpc.setRequestManager(n._requestManager),n.kct.setRequestManager(n._requestManager),n.contract._requestManager=n._requestManager,n.contract.currentProvider=n._provider,!0);const g=this,w=function(){l.apply(this,arguments),p.packageInit(this,[g]),this.setWallet(g.wallet)};w.create=function(){return new w(...arguments)},w.setProvider=function(){l.setProvider.apply(this,arguments)},w.prototype=Object.create(l.prototype),w.prototype.constructor=w,this.contract=w,this.contract._requestManager=this._requestManager,this.contract.currentProvider=this._requestManager.provider}w.utils=m,w.abi=u,w.providers=i,e.exports=w,e.exports.formatters=g}).call(this,n("c8ba"))},"09a0":function(e,t,n){const r=n("25f7"),i=n("e19e").errors,s=function(e){this.requestManager=e,this.requests=[]};s.prototype.add=function(e){this.requests.push(e)},s.prototype.execute=function(){const e=this.requests;this.requestManager.sendBatch(e,(function(t,n){n=n||[],e.map((function(e,t){return n[t]||{}})).forEach((function(t,n){if(e[n].callback){if(t&&t.error)return e[n].callback(i.ErrorResponse(t));if(!r.isValidResponse(t))return e[n].callback(i.InvalidResponse(t));e[n].callback(null,e[n].format?e[n].format(t.result):t.result)}}))}))},e.exports=s},"0abd":function(e,t,n){"use strict";const r=n("2054"),{isBrowser:i,isWebWorker:s,isNode:f}=n("2984"),{default:a}=n("3cb9"),o=n("34eb")("ipfs-http-client:lib:error-handler"),c=n("670b"),u=n("4fcb"),l=n("2224"),d=n(27),h=n(28),p=i||s?location.protocol:"http",b=i||s?location.hostname:"localhost",m=i||s?location.port:"5001",g=(e={})=>{let t,n,i={};if("string"===typeof e||r.isMultiaddr(e))t=new URL(l(e));else if(e instanceof URL)t=e;else if("string"===typeof e.url||r.isMultiaddr(e.url))t=new URL(l(e.url)),i=e;else if(e.url instanceof URL)t=e.url,i=e;else{i=e||{};const n=(i.protocol||p).replace(":",""),r=(i.host||b).split(":")[0],s=i.port||m;t=new URL(`${n}://${r}:${s}`)}if(i.apiPath?t.pathname=i.apiPath:"/"!==t.pathname&&void 0!==t.pathname||(t.pathname="api/v0"),f){const e=t.protocol.startsWith("https")?h.Agent:d.Agent;n=i.agent||new e({keepAlive:!0,maxSockets:6})}return{...i,host:t.host,protocol:t.protocol.replace(":",""),port:Number(t.port),apiPath:t.pathname,url:t,agent:n}},k=async e=>{let t;try{if((e.headers.get("Content-Type")||"").startsWith("application/json")){const n=await e.json();o(n),t=n.Message||n.message}else t=await e.text()}catch(r){o("Failed to parse error response",r),t=r.message}let n=new c.HTTPError(e);throw t&&t.includes("context deadline exceeded")&&(n=new c.TimeoutError(e)),t&&t.includes("request timed out")&&(n=new c.TimeoutError(e)),t&&(n.message=t),n},y=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,w=e=>e.replace(y,(function(e){return"-"+e.toLowerCase()})),v=e=>"string"===typeof e?a(e):e;class E extends c{constructor(e={}){const t=g(e);super({timeout:v(t.timeout)||12e5,headers:t.headers,base:""+t.url,handleError:k,transformSearchParams:e=>{const t=new URLSearchParams;for(const[n,r]of e)"undefined"!==r&&"null"!==r&&"signal"!==n&&t.append(w(n),r),"timeout"!==n||isNaN(r)||t.append(w(n),r);return t},agent:t.agent}),delete this.get,delete this.put,delete this.delete,delete this.options;const n=this.fetch;this.fetch=(e,r={})=>("string"!==typeof e||e.startsWith("/")||(e=`${t.url}/${e}`),n.call(this,e,u(r,{method:"POST"})))}}E.errorHandler=k,e.exports=E},"0ae1":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async function*(t={}){const n=await e.post("refs/local",{timeout:t.timeout,signal:t.signal,transform:r,searchParams:s(t),headers:t.headers});yield*n.ndjson()})},"0be9":function(e,t,n){const r=n("f54c"),i=n("c8cf"),s=function(...e){const t=this;r.packageInit(this,e);const n=[new i({name:"getNetworkId",call:"net_networkID",params:0}),new i({name:"getNetworkID",call:"net_networkID",params:0}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0}),new i({name:"getPeerCountByType",call:"net_peerCountByType",params:0})];n.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};e.exports=s},"0c4c":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n"),e.oneof&&(n="");var r=Object.keys(e.options||{}).map((function(t){return t+" = "+e.options[t]})).join(",");return r&&(r=" ["+r+"]"),t.push((n?n+" ":"")+("map"===e.map?"":e.type+" ")+e.name+" = "+e.tag+r+";"),t},i=function(e,t){t.push("message "+e.name+" {"),e.options||(e.options={}),a(e.options,t),e.enums||(e.enums=[]),e.enums.forEach((function(e){t.push(s(e,[]))})),e.messages||(e.messages=[]),e.messages.forEach((function(e){t.push(i(e,[]))}));var n={};return e.fields||(e.fields=[]),e.fields.forEach((function(e){e.oneof?(n[e.oneof]||(n[e.oneof]=[]),n[e.oneof].push(r(e,[]))):t.push(r(e,[]))})),Object.keys(n).forEach((function(e){n[e].unshift("oneof "+e+" {"),n[e].push("}"),t.push(n[e])})),t.push("}",""),t},s=function(e,t){t.push("enum "+e.name+" {"),e.options||(e.options={});var n=a(e.options,[]);return n.length>1&&t.push(n.slice(0,-1)),Object.keys(e.values).map((function(n){var r=f(e.values[n]);t.push([n+" = "+r+";"])})),t.push("}",""),t},f=function(e,t){var n=Object.keys(e.options||{}).map((function(t){return t+" = "+e.options[t]})).join(",");n&&(n=" ["+n+"]");var r=e.value+n;return r},a=function(e,t){var n=Object.keys(e);return n.forEach((function(n){var r=e[n];~n.indexOf(".")&&(n="("+n+")");var i=typeof r;"object"===i?(r=o(r,[]),r.length&&t.push("option "+n+" = {",r,"};")):("string"===i&&"optimize_for"!==n&&(r='"'+r+'"'),t.push("option "+n+" = "+r+";"))})),n.length>0&&t.push(""),t},o=function(e,t){var n=Object.keys(e);return n.forEach((function(n){var r=e[n],i=typeof r;"object"===i?Array.isArray(r)?r.forEach((function(e){e=o(e,[]),e.length&&t.push(n+" {",e,"}")})):(r=o(r,[]),r.length&&t.push(n+" {",r,"}")):("string"===i&&(r='"'+r+'"'),t.push(n+": "+r))})),t},c=function(e,t){return t.push("service "+e.name+" {"),e.options||(e.options={}),a(e.options,t),e.methods||(e.methods=[]),e.methods.forEach((function(e){t.push(u(e,[]))})),t.push("}",""),t},u=function(e,t){var n="rpc "+e.name+"(";e.client_streaming&&(n+="stream "),n+=e.input_type+") returns (",e.server_streaming&&(n+="stream "),n+=e.output_type+")",e.options||(e.options={});var r=a(e.options,[]);return r.length>1?t.push(n+" {",r.slice(0,-1),"}"):t.push(n+";"),t},l=function(e){return function(t){return Array.isArray(t)?t.map(l(e+" ")).join("\n"):e+t}};e.exports=function(e){var t=[];return t.push('syntax = "proto'+e.syntax+'";',""),e.package&&t.push("package "+e.package+";",""),e.imports&&e.imports.forEach((function(e){n(e,t)})),e.options||(e.options={}),a(e.options,t),e.enums||(e.enums=[]),e.enums.forEach((function(e){s(e,t)})),e.messages||(e.messages=[]),e.messages.forEach((function(e){i(e,t)})),e.services&&e.services.forEach((function(e){c(e,t)})),t.map(l("")).join("\n")}},"0db3":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t,n={})=>{const i=await e.post("key/rm",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),f=await i.json();return r(f.Keys[0])})},"0db8":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>async function(t,n={}){const i=await e.post("object/data",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:""+(t instanceof Uint8Array?new r(t):t),...n}),headers:n.headers}),f=await i.arrayBuffer();return new Uint8Array(f,0,f.byteLength)})},"0e02":function(e,t,n){"use strict";const r=n("aef6"),i=n("8804"),s=n("9878"),f=n("15e4");e.exports=s(e=>{async function t(t,n={}){t=new i(t);const s=await e.post("block/get",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:t.toString(),...n}),headers:n.headers});return new r(new Uint8Array(await s.arrayBuffer()),t)}return t})},"0e28":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"0e68":function(e,t,n){"use strict";const r=n("8804"),i=n("2054"),s=n("9878"),f=n("15e4"),{Provider:a}=n("a36d");e.exports=s(e=>{async function*t(t,n={}){const s=await e.post("dht/findprovs",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:""+new r(t),...n}),headers:n.headers});for await(const e of s.ndjson())if(e.Type===a&&e.Responses)for(const{ID:t,Addrs:n}of e.Responses)yield{id:t,addrs:(n||[]).map(e=>i(e))}}return t})},"0e80":function(e,t,n){"use strict";const r=n("36ea"),i=n("b71b"),s=n("4064"),{equals:f}=n("a44e");async function a(e,t,n){const r=await a.digest(e,t,n);return i.encode(r,t,n)}a.multihash=i,a.digest=async(e,t,n)=>{const r=a.createHash(t),i=await r(e);return n?i.slice(0,n):i},a.createHash=function(e){if(!e){const e=r(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");throw e}const t=i.coerceCode(e);if(!a.functions[t])throw r(new Error(`multihash function '${e}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return a.functions[t]},a.functions={0:s.identity,17:s.sha1,18:s.sha2256,19:s.sha2512,20:s.sha3512,21:s.sha3384,22:s.sha3256,23:s.sha3224,24:s.shake128,25:s.shake256,26:s.keccak224,27:s.keccak256,28:s.keccak384,29:s.keccak512,34:s.murmur3128,35:s.murmur332,86:s.dblSha2256},s.addBlake(a.functions),a.validate=async(e,t)=>{const n=await a(e,i.decode(t).name);return f(t,n)},e.exports=a},"0ea6":function(e,t,n){"use strict";const r=n("f016"),i=n("0060"),{rfc4648:s}=n("f828"),{decodeText:f,encodeText:a}=n("af2a"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"0eff":function(e,t,n){"use strict";const r=n("75a6"),i=n("ec12"),s=n("ae25");class f{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");Object.defineProperties(this,{Name:{value:e||"",writable:!1,enumerable:!0},Tsize:{value:t,writable:!1,enumerable:!0},Hash:{value:new r(n),writable:!1,enumerable:!0},_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return null!==this._nameBuf||(this._nameBuf=s(this.Name)),this._nameBuf}}e.exports=i(f,{className:"DAGLink",symbolName:"@ipld/js-ipld-dag-pb/daglink"})},"0f5d":function(e,t,n){const{Buffer:r}=n("b639"),i=n("3301");var s="0".charCodeAt(0),f=r.from("ustar\0","binary"),a=r.from("ustar ","binary"),o=r.from(" \0","binary"),c=257,u=263,l=function(e,t,n){return"number"!==typeof e?n:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))},d=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},h=function(e,t,n,r){for(;n0;i--){var s=e.get(i);t?r.push(s):n&&0===s?r.push(0):n?(n=!1,r.push(256-s)):r.push(255-s)}var f=0,a=r.length;for(i=0;i{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},"0fc0":function(e,t,n){"use strict";const r=n("ec12"),i=n("23bc"),s=n("0eff"),{serializeDAGNode:f}=n("f140"),a=n("adf6"),o=n("4706"),c=n("3e7a"),u=n("ae25"),l=n("6b67");class d{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),"string"===typeof e&&(e=u(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(null!==n&&"number"!==typeof n)throw new Error("Passed 'serializedSize' must be a number!");t=t.map(e=>s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)),i(t),Object.defineProperties(this,{Data:{value:e,writable:!1,enumerable:!0},Links:{value:t,writable:!1,enumerable:!0},_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),o(this,e)}rmLink(e){return this._invalidateCached(),c(this,e)}toDAGLink(e){return a(this,e)}serialize(){return f(this)}get size(){return null===this._size&&(null===this._serializedSize&&(this._serializedSize=this.serialize().length),this._size=this.Links.reduce((e,t)=>e+t.Tsize,this._serializedSize)),this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}}e.exports=r(d,{className:"DAGNode",symbolName:"@ipld/js-ipld-dag-pb/dagnode"})},"0fcf":function(e,t,n){"use strict";const r=n("b6aa"),i=n("a127"),s=n("6017"),f=n("41c5"),{isBytes:a,isBlob:o,isReadableStream:c}=n("abb1");async function u(e){if(a(e))return new Blob([e]);if("string"===typeof e||e instanceof String)return new Blob([e.toString()]);if(o(e))return e;if(c(e)&&(e=s(e)),e[Symbol.iterator]||e[Symbol.asyncIterator]){const t=i(e),{value:n,done:r}=await t.peek();if(r)return l(t);if(t.push(n),Number.isInteger(n))return new Blob([Uint8Array.from(await f(t))]);if(a(n)||"string"===typeof n||n instanceof String)return l(t)}throw r(new Error("Unexpected input: "+e),"ERR_UNEXPECTED_INPUT")}async function l(e){const t=[];for await(const n of e)t.push(n);return new Blob(t)}e.exports=u},"10a7":function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},1118:function(e,t,n){e.exports={encode:n("da95"),decode:n("9727"),encodingLength:n("8042")}},"112f":function(e,t,n){(function(t,r){const i=n("2ef0"),s=n("9ba9"),f=n("4e23"),a=n("f35a"),o=n("84e9"),c=n("c57e"),u=n("d335"),l=n("1c46"),d=n("40ee"),h=n("3337"),p=n("9f6a"),b=n("4f8d"),m=n("e19e"),g=n("c8cf"),k=n("f54c"),{encodeRLPByTxType:y,makeRawTransaction:w,getSenderTxHash:v,decodeFromRawTransaction:E,splitFeePayer:T,extractSignatures:x}=n("0452"),_=new h.ec("secp256k1"),A=n("1d7f"),P=n("c629"),C=n("1546"),{AccountKeyEnum:S}=n("c5b7"),N=n("ce42c"),I=n("c85b"),{rpc:F}=n("7f6f"),O=function(e){return i.isUndefined(e)||i.isNull(e)};function L(e){if("object"!==typeof e)throw new Error("Invalid transaction");return e.senderRawTransaction||e.type&&"LEGACY"!==e.type&&!e.type.includes("SMART_CONTRACT_DEPLOY")||(e.to=e.to||"0x",e.data=b.addHexPrefix(e.data||"0x")),e.chainId=b.numberToHex(e.chainId),e}function R(e){if(0===e.length||e.length>3)throw new Error("Invalid parameter: The number of parameters is invalid.");const t=e[0];let n,r;if(!t||!i.isObject(t)&&!i.isString(t))throw new Error("Invalid parameter: The transaction must be defined as an object or RLP encoded string");if(2===e.length)i.isFunction(e[1])?r=e[1]:n=e[1];else if(3===e.length){if(e[1]&&"string"!==typeof e[1]&&!i.isArray(e[1]))throw new Error("Invalid parameter: The parameter for the private key is invalid");n=e[1],r=e[2]}return r=r||function(){},{tx:t,privateKey:n,callback:r}}function D(e){if(0===e.length||e.length>4)throw new Error("Invalid parameter: The number of parameters is invalid.");const t=e[0],n=e[1];let r,s;if(!t||!i.isObject(t)&&!i.isString(t))throw new Error("Invalid parameter: The transaction must be defined as an object or RLP encoded string");if(!b.isAddress(n))throw new Error("Invalid fee payer address : "+n);if(3===e.length)i.isFunction(e[2])?s=e[2]:r=e[2];else if(4===e.length){if(e[2]&&"string"!==typeof e[2]&&!i.isArray(e[2]))throw new Error("Invalid parameter: The parameter for the private key is invalid");r=e[2],s=e[3]}return s=s||function(){},{tx:t,privateKey:r,feePayer:n,callback:s}}function M(e){if(e.length<2||e.length>4)throw new Error("Invalid parameter: The number of parameters is invalid.");const t=e[0],n=e[1];let r,s;if(!t)throw new Error("Invalid parameter: The hash of transaction must be defined as a parameter.");if(!b.isValidHashStrict(t))throw new Error("Invalid parameter: The hash of transaction must be 0x-hex prefixed string format.");if(!n||!Array.isArray(n)&&!i.isString(n))throw new Error("Invalid parameter: The private key should be a private key string or an array of private keys.");if(3===e.length)i.isFunction(e[2])?s=e[2]:r=e[2];else if(4===e.length){if(e[2]&&!i.isString(e[2])&&!i.isNumber(e[2]))throw new Error("Invalid parameter: The parameter for the chain id is invalid.");r=e[2],s=e[3]}return s=s||function(){},{hash:t,privateKeys:n,chainId:r,callback:s}}function U(e,t,n){const s=[];if(!e)return s;const f=i.isArray(e)?e:[e];for(let i=0;i{"legacyKey"!==t[e]&&"failKey"!==t[e]||(r[e]=t[e],delete t[e])}),0===Object.keys(t).length))return new I(e,r,n);const s=this.accountKeyToPublicKey(t);return void 0!==r&&Object.assign(s,r),new I(e,s,n)},j.prototype.createAccountForUpdateWithPublicKey=function(e,t,n){return new I(e,t,n)},j.prototype.createAccountForUpdateWithLegacyKey=function(e){return new I(e,"legacyKey")},j.prototype.createAccountForUpdateWithFailKey=function(e){return new I(e,"failKey")},j.prototype.isDecoupled=function(e,t){const{legacyAccount:n,klaytnWalletKeyAddress:r}=this.getLegacyAccount(e),i=this._determineAddress(n,r,t);return n.address.toLowerCase()!==i.toLowerCase()},j.prototype.getLegacyAccount=function(e){const t=b.parsePrivateKey(e);if(!b.isValidPrivateKey(t.privateKey))throw new Error("Invalid private key");const n=b.addHexPrefix(t.privateKey),r=this._addAccountFunctions(N.fromObject(f.fromPrivate(n)));return{legacyAccount:r,klaytnWalletKeyAddress:t.address}},j.prototype.signTransaction=function(){const e=this;let t,n,r,o,u=!1,l=!1,d=[],h=[];const p=e=>(e=e instanceof Error?e:new Error(e),o&&o(e),s.reject(e));try{const e=R(arguments);n=e.tx,r=e.privateKey,o=e.callback}catch(_){return p(_)}i.isString(n)&&(n=E(n));const g=m.validateFunction.validateParams(n);if(g)return p(g);if(n.senderRawTransaction){n.feePayerSignatures&&(h=h.concat(n.feePayerSignatures));try{const{senderRawTransaction:e,feePayer:t,feePayerSignatures:r}=T(n.senderRawTransaction);if("0x"!==t&&"0x0000000000000000000000000000000000000000"!==t){if(t.toLowerCase()!==n.feePayer.toLowerCase())return p(`Invalid feePayer: The fee payer(${t}) included in the transaction does not match the fee payer(${n.feePayer}) you want to sign.`);h=h.concat(r)}n.senderRawTransaction=e,l=!0}catch(_){return p(_)}}else if(u=!(void 0!==n.type&&"LEGACY"!==n.type),n.signatures){if(u)return p("Legacy transaction cannot be signed with multiple keys.");d=d.concat(n.signatures)}if(void 0===r)try{const e=this.wallet.getAccount(l?n.feePayer:n.from);if(!e)return p("Failed to find get private key to sign. The account you want to use for signing must exist in caver.klay.accounts.wallet or you must pass the private key as a parameter.");r=this._getRoleKey(n,e)}catch(_){return p(_)}const k=i.isArray(r)?r:[r];try{for(let e=0;e1)return p("Legacy transaction cannot signed with multiple keys");if(e.isDecoupled(k[0],n.from))return p("A legacy transaction must be with a legacy account key")}function x(e){try{e=m.formatters.inputCallFormatter(e);const n=L(e),r=y(n),i=a.keccak256(r),s=l?h:d;for(const e of k){const t=f.makeSigner(2*c.toNumber(n.chainId||"0x1")+35)(i,e),[r,a,o]=f.decodeSignature(t).map(e=>b.makeEven(b.trimLeadingZero(e)));s.push([r,a,o])}const{rawTransaction:o,signatures:u,feePayerSignatures:p}=w(r,s,n);t={messageHash:i,v:s[0][0],r:s[0][1],s:s[0][2],rawTransaction:o,txHash:a.keccak256(o),senderTxHash:v(o)},l?t.feePayerSignatures=p:t.signatures=u}catch(_){return o(_),s.reject(_)}return o(null,t),t}return void 0!==n.nonce&&void 0!==n.chainId&&void 0!==n.gasPrice?s.resolve(x(n)):l?s.all([O(n.chainId)?e._klaytnCall.getChainId():n.chainId]).then((function(e){if(O(e[0]))throw new Error('"chainId" couldn\'t be fetched: '+JSON.stringify(e));return x(i.extend(n,{chainId:e[0]}))})):s.all([O(n.chainId)?e._klaytnCall.getChainId():n.chainId,O(n.gasPrice)?e._klaytnCall.getGasPrice():n.gasPrice,O(n.nonce)?e._klaytnCall.getTransactionCount(n.from,"pending"):n.nonce]).then((function(e){if(O(e[0])||O(e[1])||O(e[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(e));return x(i.extend(n,{chainId:e[0],gasPrice:e[1],nonce:e[2]}))}))},j.prototype.feePayerSignTransaction=function(){const e=this;let t,n,r,f;const a=e=>(e=e instanceof Error?e:new Error(e),f&&f(e),s.reject(e));try{const e=D(arguments);t=e.tx,n=e.feePayer,r=e.privateKey,f=e.callback}catch(o){return a(o)}if(i.isString(t))return this.signTransaction({senderRawTransaction:t,feePayer:n},r,f);if(t.feePayer&&"0x"!==t.feePayer&&"0x0000000000000000000000000000000000000000"!==t.feePayer||(t.feePayer=n),!t.senderRawTransaction&&(!t.type||!t.type.includes("FEE_DELEGATED")))return a(`Failed to sign transaction with fee payer: invalid transaction type(${t.type?t.type:"LEGACY"})`);const o=m.validateFunction.validateParams(t);return o?a(o):t.feePayer.toLowerCase()!==n.toLowerCase()?a("Invalid parameter: The address of fee payer does not match."):t.senderRawTransaction?this.signTransaction(t,r,f):s.all([O(t.chainId)?e._klaytnCall.getChainId():t.chainId,O(t.gasPrice)?e._klaytnCall.getGasPrice():t.gasPrice,O(t.nonce)?e._klaytnCall.getTransactionCount(t.from,"pending"):t.nonce]).then((function(s){const a=s[0],o=s[1],c=s[2];if(O(a)||O(o)||O(c))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(s));let u=i.extend(t,{chainId:a,gasPrice:o,nonce:c});u=m.formatters.inputCallFormatter(u),u=L(u);const l=y(u),d=u.signatures?u.signatures:[["0x01","0x","0x"]],{rawTransaction:h}=w(l,d,u);return e.signTransaction({senderRawTransaction:h,feePayer:n,chainId:a},r,f)}))},j.prototype.signTransactionWithHash=function(){const e=this;let t,n,r,i;const a=e=>(e=e instanceof Error?e:new Error(e),i&&i(e),s.reject(e));try{const e=M(arguments);t=e.hash,r=e.chainId,n=e.privateKeys,i=e.callback}catch(u){return a(u)}function o(e,t,n,r){const i=[];n=b.numberToHex(n);try{for(const r of t){const t=b.addHexPrefix(b.parsePrivateKey(r).privateKey);if(!b.isValidPrivateKey(t))return a("Failed to sign transaction with hash: Invalid private key "+r);const s=f.makeSigner(2*c.toNumber(n||"0x1")+35)(e,t),[o,u,l]=f.decodeSignature(s).map(e=>b.makeEven(b.trimLeadingZero(e)));i.push(b.transformSignaturesToObject([o,u,l]))}}catch(u){return r(u),s.reject(u)}return r(null,i),i}return n=Array.isArray(n)?n:[n],s.resolve(O(r)?e._klaytnCall.getChainId():r).then(e=>o(t,n,e,i))},j.prototype.getRawTransactionWithSignatures=function(e,t){const n=this;let r;t=t||function(){};const f=e=>(e=e instanceof Error?e:new Error(e),t&&t(e),s.reject(e));if(!e||!i.isObject(e))return f("Invalid parameter: The transaction must be defined as an object");if(!e.signatures&&!e.feePayerSignatures)return f("There are no signatures or feePayerSignatures defined in the transaction object.");const o=m.validateFunction.validateParams(e);if(o)return f(o);if(e.senderRawTransaction){e.feePayerSignatures=e.feePayerSignatures||[["0x01","0x","0x"]];const t=E(e.senderRawTransaction);if("0x"!==t.feePayer&&"0x0000000000000000000000000000000000000000"!==t.feePayer&&!b.isEmptySig(t.feePayerSignatures)){if(t.feePayer.toLowerCase()!==e.feePayer.toLowerCase())return f("Invalid feePayer");e.feePayerSignatures=e.feePayerSignatures.concat(t.feePayerSignatures)}t.feePayer=e.feePayer,t.feePayerSignatures=e.feePayerSignatures,e.signatures&&(t.signatures=t.signatures.concat(e.signatures)),e=t}function c(e){try{e=m.formatters.inputCallFormatter(e);const t=L(e),n=y(t);let s=t.signatures?t.signatures:["0x01","0x","0x"];i.isArray(s[0])||(s=[s]);const{rawTransaction:f,signatures:o,feePayerSignatures:c}=w(n,s,t);r={rawTransaction:f,txHash:a.keccak256(f),senderTxHash:v(f)},o&&!b.isEmptySig(o)&&(r.signatures=o),c&&!b.isEmptySig(c)&&(r.feePayerSignatures=c)}catch(n){return t(n),s.reject(n)}return t(null,r),r}return void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice?s.resolve(c(e)):s.all([O(e.chainId)?n._klaytnCall.getChainId():e.chainId,O(e.gasPrice)?n._klaytnCall.getGasPrice():e.gasPrice,O(e.nonce)?n._klaytnCall.getTransactionCount(e.from,"pending"):e.nonce]).then((function(t){if(O(t[0])||O(t[1])||O(t[2]))throw new Error('One of the values "chainId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return c(i.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2]}))}))},j.prototype.combineSignatures=function(e,t){let n,r,f=[],a=[];t=t||function(){};const o=e=>(e=e instanceof Error?e:new Error(e),t&&t(e),s.reject(e));if(!i.isArray(e))return o("The parameter of the combineSignatures function must be an array of RLP encoded transaction strings.");for(const i of e){const{senderSignatures:e,feePayerSignatures:t,decodedTransaction:s}=x(i);if(f=f.concat(e),a=a.concat(t),n){let e=!0;const t=Object.keys(n);for(const i of t)if("v"!==i&&"r"!==i&&"s"!==i&&"signatures"!==i&&"payerV"!==i&&"payerR"!==i&&"payerS"!==i&&"feePayerSignatures"!==i){if("feePayer"===i){if("0x"===s[i]||"0x0000000000000000000000000000000000000000"===s[i])continue;r=s[i],"0x"!==n[i]&&"0x0000000000000000000000000000000000000000"!==n[i]||(n[i]=s[i])}if(void 0===s[i]||n[i]!==s[i]){e=!1;break}}if(!e)return o("Failed to combineSignatures: Signatures that sign to different transaction cannot be combined.")}else n=s}const c=E(e[0]);return c.signatures=f,r&&(c.feePayer=r,a.length>0&&(c.feePayerSignatures=a)),this.getRawTransactionWithSignatures(c,t)},j.prototype.recoverTransaction=function(e){if(void 0!==b.getTxTypeStringFromRawTransaction(e))throw new Error('recoverTransaction only supports transactions of type "LEGACY".');const t=o.decode(e),n=t.slice(7,9).map(e=>{e=e.replace("0x","");while(e.length<64)e="0"+e;return"0x"+e});n.unshift(t[6]);const r=f.encodeSignature(n),i=u.toNumber(t[6]),s=i<35?[]:[u.fromNumber(i-35>>1),"0x","0x"],c=t.slice(0,6).concat(s),l=o.encode(c);return f.recover(a.keccak256(l),r)},j.prototype.hashMessage=function(e){const t=b.isHexStrict(e)?b.hexToBytes(e):e,n=r.from(t),i="Klaytn Signed Message:\n"+t.length,s=r.from(i),f=r.concat([s,n]);return a.keccak256(f)},j.prototype.sign=function(e,t){const n=b.parsePrivateKey(t);if(t=n.privateKey,!b.isValidPrivateKey(t))throw new Error("Invalid private key");const r=this.hashMessage(e),i=f.sign(r,t),[s,a,o]=f.decodeSignature(i);return{message:e,messageHash:r,v:s,r:a,s:o,signature:i}},j.prototype.recover=function(e,t,n){const r=[].slice.apply(arguments);return i.isObject(e)?this.recover(e.messageHash,f.encodeSignature([e.v,e.r,e.s]),!0):(n||(e=this.hashMessage(e)),r.length>=4?(n=r.slice(-1)[0],n=!!i.isBoolean(n)&&!!n,this.recover(e,f.encodeSignature(r.slice(1,4)),n)):f.recover(e,t))},j.prototype.decrypt=function(e,t,n){if(!i.isString(t))throw new Error("No password given.");const s=i.isObject(e)?i.cloneDeep(e):JSON.parse(n?e.toLowerCase():e);if(3!==s.version&&4!==s.version&&console.warn("This is not a V3 or V4 wallet."),3===s.version&&!s.crypto)throw new Error("Invalid keystore V3 format: 'crypto' is not defined.");if(s.crypto){if(s.keyring)throw new Error("Invalid key store format: 'crypto' can not be with 'keyring'");s.keyring=[s.crypto],delete s.crypto}if(i.isArray(s.keyring[0])&&s.keyring.length>3)throw new Error("Invalid key store format");let f={};if(i.isArray(s.keyring[0])){const e=a(s.keyring[0]);e&&(f.transactionKey=e);const t=a(s.keyring[1]);t&&(f.updateKey=t);const n=a(s.keyring[2]);n&&(f.feePayerKey=n)}else f=a(s.keyring);function a(e){if(!e||0===e.length)return;const n=[];for(const i of e){let e,s;if("scrypt"===i.kdf)s=i.kdfparams,e=p.syncScrypt(r.from(t),r.from(s.salt,"hex"),s.n,s.r,s.p,s.dklen);else{if("pbkdf2"!==i.kdf)throw new Error("Unsupported key derivation scheme");if(s=i.kdfparams,"hmac-sha256"!==s.prf)throw new Error("Unsupported parameters to PBKDF2");e=l.pbkdf2Sync(r.from(t),r.from(s.salt,"hex"),s.c,s.dklen,"sha256")}const f=r.from(i.ciphertext,"hex"),a=b.sha3(r.from([...e.slice(16,32),...f])).replace("0x","");if(a!==i.mac)throw new Error("Key derivation failed - possibly wrong password");const o=l.createDecipheriv(i.cipher,e.slice(0,16),r.from(i.cipherparams.iv,"hex"));n.push("0x"+r.from([...o.update(f),...o.final()]).toString("hex"))}return 1===n.length?n[0]:n}return this.createWithAccountKey(s.address,f)},j.prototype.encrypt=function(e,t,n){let r,s,f,a,o,c;if(n=n||{},e instanceof N){if(n.address&&n.address!==e.address)throw new Error("Address in account is not matched with address in options object");r=e.address,s=e}else if(i.isString(e))s=this.privateKeyToAccount(e,n.address),r=s.address;else{if(!n.address)throw new Error("The address must be defined inside the options object.");r=n.address}switch(s||(s=this.createWithAccountKey(r,e)),s.accountKeyType){case S.ACCOUNT_KEY_PUBLIC:case S.ACCOUNT_KEY_MULTISIG:f=U(s.keys,t,n);break;case S.ACCOUNT_KEY_ROLEBASED:f=[],a=U(s.transactionKey,t,n),o=U(s.updateKey,t,n),c=U(s.feePayerKey,t,n),f.push(a),f.push(o),f.push(c);for(let e=f.length-1;e>=0;e--){if(0!==f[e].length)break;f=f.slice(0,e)}break;default:throw new Error("Unsupported account key type: "+s.accountKeyType)}return{version:4,id:d.v4({random:n.uuid||l.randomBytes(16)}),address:s.address.toLowerCase(),keyring:f}},j.prototype.encryptV3=function(e,t,n){let r,s;n=n||{};const f="Invalid parameter: encryptV3 only supports a single private key (also supports KlantnWalletKey format), or an instance of Account or AccountKeyPublic as a parameter. If you want to encrypt multiple keys, use caver.klay.accounts.encrypt which encrypts to keystore v4.";if(e instanceof N){if(n.address&&n.address!==e.address)throw new Error("Address in account is not matched with address in options object");if(e.accountKeyType!==S.ACCOUNT_KEY_PUBLIC)throw new Error(f);r=e.address,s=e}else if(i.isString(e))s=this.privateKeyToAccount(e,n.address),r=s.address;else{if(!N.isAccountKey(e))throw new Error(f);if(e.type!==S.ACCOUNT_KEY_PUBLIC)throw new Error(f);if(!n.address)throw new Error("The address must be defined inside the options object.");r=n.address}s||(s=this.createWithAccountKey(r,e));const a=U(s.keys,t,n);return{version:3,id:d.v4({random:n.uuid||l.randomBytes(16)}),address:s.address.toLowerCase(),crypto:a[0]}},j.prototype.privateKeyToPublicKey=function(e,t=!1){const n=b.parsePrivateKey(e);if(e=n.privateKey,e="0x"===e.slice(0,2)?e.slice(2):e,64!==e.length)throw new Error("Received a invalid privateKey. The length of privateKey should be 64.");const i=r.from(e,"hex"),s=_.keyFromPrivate(i);let f;return f=t?"0x"+s.getPublic(!0,"hex"):"0x"+s.getPublic(!1,"hex").slice(2),f},j.prototype.encodeRLPByTxType=y,j.prototype.setAccounts=function(e){this.wallet.clear();for(let t=0;t0;s--)d.push("0");c.splice.apply(c,d)}for(r=t||new Uint8Array(n+16),s=0;s>8&255,r[n++]=255&h}}if(!r)throw Error("Invalid ip address: "+e);return r},c=function(e,t,n){t=~~t,n=n||e.length-t;var r,i=[];const s=new DataView(e.buffer);if(4===n){for(let r=0;rasync(t,n,i,f={})=>{"string"!==typeof i&&(f=i||{},i=null);const a=await e.post("key/import",{timeout:f.timeout,signal:f.signal,searchParams:s({arg:t,pem:n,password:i,...f}),headers:f.headers}),o=await a.json();return r(o)})},"12a6":function(e,t,n){"use strict";const r=n("8804"),i=n("2054"),s=n("7766"),f=n("9878"),a=n("15e4");e.exports=f(e=>{async function*t(t,n={}){t=Array.isArray(t)?t:[t];const f=await e.post("dht/provide",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:t.map(e=>new r(e).toString()),...n}),headers:n.headers});for await(let e of f.ndjson())e=s(e),e.id=new r(e.id),e.responses?e.responses=e.responses.map(({ID:e,Addrs:t})=>({id:e,addrs:(t||[]).map(e=>i(e))})):e.responses=[],yield e}return t})},1343:function(e,t,n){"use strict";const r=n("f016"),i=n("147a"),{rfc4648:s}=n("be51"),{decodeText:f,encodeText:a}=n("5215"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"13a4":function(e,t,n){"use strict";const{bases:r}=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;ne+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports=r},1454:function(e,t,n){"use strict";const r=n("4469"),{encodeText:i,decodeText:s,concat:f}=n("967a");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},1466:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3cf7");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},1468:function(e,t){var n=1e3,r=60*n,i=60*r,s=24*i,f=7*s,a=365.25*s;function o(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var o=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return o*a;case"weeks":case"week":case"w":return o*f;case"days":case"day":case"d":return o*s;case"hours":case"hour":case"hrs":case"hr":case"h":return o*i;case"minutes":case"minute":case"mins":case"min":case"m":return o*r;case"seconds":case"second":case"secs":case"sec":case"s":return o*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}function c(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=i?Math.round(e/i)+"h":t>=r?Math.round(e/r)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function u(e){var t=Math.abs(e);return t>=s?l(e,t,s,"day"):t>=i?l(e,t,i,"hour"):t>=r?l(e,t,r,"minute"):t>=n?l(e,t,n,"second"):e+" ms"}function l(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return o(e);if("number"===n&&isFinite(e))return t.long?u(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"147a":function(e,t,n){"use strict";const{encodeText:r}=n("5215");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},"14ec":function(e,t,n){var r=n("8327");function i(e,t,n){var r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function s(e,t,n,r){var i=e[t]+n;n<0&&(i+=4294967296);var s=e[t+1]+r;i>=4294967296&&s++,e[t]=i,e[t+1]=s}function f(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function a(e,t,n,r,f,a){var o=d[f],c=d[f+1],u=d[a],h=d[a+1];i(l,e,t),s(l,e,o,c);var p=l[r]^l[e],b=l[r+1]^l[e+1];l[r]=b,l[r+1]=p,i(l,n,r),p=l[t]^l[n],b=l[t+1]^l[n+1],l[t]=p>>>24^b<<8,l[t+1]=b>>>24^p<<8,i(l,e,t),s(l,e,u,h),p=l[r]^l[e],b=l[r+1]^l[e+1],l[r]=p>>>16^b<<16,l[r+1]=b>>>16^p<<16,i(l,n,r),p=l[t]^l[n],b=l[t+1]^l[n+1],l[t]=b>>>31^p<<1,l[t+1]=p>>>31^b<<1}var o=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),c=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],u=new Uint8Array(c.map((function(e){return 2*e}))),l=new Uint32Array(32),d=new Uint32Array(32);function h(e,t){var n=0;for(n=0;n<16;n++)l[n]=e.h[n],l[n+16]=o[n];for(l[24]=l[24]^e.t,l[25]=l[25]^e.t/4294967296,t&&(l[28]=~l[28],l[29]=~l[29]),n=0;n<32;n++)d[n]=f(e.b,4*n);for(n=0;n<12;n++)a(0,8,16,24,u[16*n+0],u[16*n+1]),a(2,10,18,26,u[16*n+2],u[16*n+3]),a(4,12,20,28,u[16*n+4],u[16*n+5]),a(6,14,22,30,u[16*n+6],u[16*n+7]),a(0,10,20,30,u[16*n+8],u[16*n+9]),a(2,12,22,24,u[16*n+10],u[16*n+11]),a(4,14,16,26,u[16*n+12],u[16*n+13]),a(6,8,18,28,u[16*n+14],u[16*n+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^l[n]^l[n+16]}function p(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},r=0;r<16;r++)n.h[r]=o[r];var i=t?t.length:0;return n.h[0]^=16842752^i<<8^e,t&&(b(n,t),n.c=128),n}function b(e,t){for(var n=0;n>2]>>8*(3&n);return t}function g(e,t,n){n=n||64,e=r.normalizeInput(e);var i=p(n,t);return b(i,e),m(i)}function k(e,t,n){var i=g(e,t,n);return r.toHex(i)}e.exports={blake2b:g,blake2bHex:k,blake2bInit:p,blake2bUpdate:b,blake2bFinal:m}},1546:function(e,t,n){const r=n("c5b7").AccountKeyEnum,i=n("1d7f"),s=n("c629"),f=n("4f8d");class a{constructor(e={}){if(e instanceof a&&(e=e.keys),"object"!==typeof e)throw new Error("RoleBasedKey should be created with Object");c(e),this._transactionKey=o(e.transactionKey),this._updateKey=o(e.updateKey),this._feePayerKey=o(e.feePayerKey),this.type=r.ACCOUNT_KEY_ROLEBASED}get defaultKey(){const e=this._transactionKey?this._transactionKey:this._updateKey?this._updateKey:this._feePayerKey?this._feePayerKey:void 0;if(!e)throw new Error("There is no key defined in AccountKeyRoleBased.");return e.defaultKey}get keys(){const e={};return void 0!==this._transactionKey&&(e.transactionKey=this._transactionKey.keys),void 0!==this._updateKey&&(e.updateKey=this._updateKey.keys),void 0!==this._feePayerKey&&(e.feePayerKey=this._feePayerKey.keys),e}get transactionKey(){if(this._transactionKey)return this._transactionKey.keys}get updateKey(){if(this._updateKey)return this._updateKey.keys}get feePayerKey(){if(this._feePayerKey)return this._feePayerKey.keys}toPublicKey(e){const t={};return void 0!==this._transactionKey&&(t.transactionKey=this._transactionKey.toPublicKey(e)),void 0!==this._updateKey&&(t.updateKey=this._updateKey.toPublicKey(e)),void 0!==this._feePayerKey&&(t.feePayerKey=this._feePayerKey.toPublicKey(e)),t}update(e){e._transactionKey&&(this._transactionKey=e._transactionKey),e._updateKey&&(this._updateKey=e._updateKey),e._feePayerKey&&(this._feePayerKey=e._feePayerKey)}}function o(e){if(void 0!==e){if(Array.isArray(e)||e instanceof s)return new s(e);if("string"!==typeof e)throw new Error("Invalid account key type");return new i(e)}}function c(e){const t=Object.keys(e);if(0===t.length)throw new Error("Failed to create AccountKeyRoleBased: empty object");t.map(t=>{if(!f.isValidRole(t))throw new Error("Failed to create AccountKeyRoleBased. Invalid role is defined : "+t);if(Array.isArray(e[t]))for(let n of e[t]){const e=f.parsePrivateKey(n);if(n=e.privateKey,!f.isValidPrivateKey(n))throw new Error("Failed to create AccountKeyRoleBased. Invalid private key : "+n)}else if(!f.isValidPrivateKey(e[t]))throw new Error("Failed to create AccountKeyRoleBased. Invalid private key : "+e[t])})}e.exports=a},1580:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e{t&&(a={...a,...t}),n&&(a.hash=n),null!=s&&(s=i(s),a.mtime=s.secs,a.mtimeNsecs=s.nsecs),null!=f&&(a.mode=r(f)),a.timeout&&!isNaN(a.timeout)&&(a.timeout=a.timeout+"ms"),void 0===e||null===e?e=[]:Array.isArray(e)||(e=[e]);const o=new URLSearchParams(a);return e.forEach(e=>o.append("arg",e)),o}},"15f7":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t,n={})=>{t=Array.isArray(t)?t:[t];const r=await e.post("swarm/disconnect",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t.map(e=>""+e),...n}),headers:n.headers}),{Strings:s}=await r.json();return s||[]})},"16af":function(e,t,n){"use strict";const{URLWithLegacySupport:r,format:i,URLSearchParams:s,defaultBase:f}=n("1f0b"),a=n("3d5e");e.exports={URL:r,URLSearchParams:s,format:i,relative:a,defaultBase:f}},"16be":function(e,t,n){const r=n("2ef0"),i=n("ba2c"),s=n("e024"),f=n("33bb"),a=n("94e5"),o=n("f54c"),{validateDeployParameterForKIP7:c,validateDeployParameterForKIP17:u,kip7ByteCode:l,kip17ByteCode:d}=n("9018");class h{constructor(...e){const t=this;o.packageInit(this,e);const n=this.setRequestManager;this.setRequestManager=function(e){return n(e),t.kip7._requestManager=t._requestManager,t.kip7.currentProvider=t._provider,t.kip17._requestManager=t._requestManager,t.kip17.currentProvider=t._provider,t.kip37._requestManager=t._requestManager,t.kip37.currentProvider=t._provider,!0};const h=this.setProvider;this.setProvider=function(){h.apply(t,arguments),t.setRequestManager(t._requestManager)};class p extends i{static create(e,t){return new p(e,t)}static deploy(e,t,n){c(e);const{name:i,symbol:s,decimals:f,initialSupply:a}=e,o=new p;return void 0!==n&&o.setWallet(n),r.isString(t)&&(t={from:t,gas:4e6,value:0}),t.gas=void 0!==t.gas?t.gas:4e6,o.deploy({data:l,arguments:[i,s,f,a]}).send(t)}constructor(n,r){super(n,r),o.packageInit(this,[t]),this.setWallet(e[0].wallet)}}this.kip7=p;class b extends s{static create(e,t){return new b(e,t)}static deploy(e,t,n){u(e);const{name:i,symbol:s}=e,f=new b;return void 0!==n&&f.setWallet(n),r.isString(t)&&(t={from:t,gas:66e5,value:0}),t.gas=void 0!==t.gas?t.gas:66e5,f.deploy({data:d,arguments:[i,s]}).send(t)}constructor(n,r){super(n,r),o.packageInit(this,[t]),this.setWallet(e[0].wallet)}}this.kip17=b,this.kip37=f,this.kip37.wallet=e[0].wallet,this.kip37._requestManager=this._requestManager,this.kip37.currentProvider=this._requestManager.provider,this.kip13=a,this.kip13._requestManager=this._requestManager,this.kip13.currentProvider=this._requestManager.provider}}e.exports=h},"16e2":function(e,t,n){"use strict";const{names:r}=n("0624"),{TextDecoder:i}=n("3d5a"),s=new i("utf8");function f(e){let t="";for(let n=0;n=Math.pow(2,63)){let t=9;while(255===e[n+t-1])t--;t=t||9;const s=e.subarray(n,n+t);s[t-1]=127&s[t-1],i=-1*r.decode(s,0),f.bytes=10}else f.bytes=r.decode.bytes;return i}function a(e){return e<0?10:r.encodingLength(e)}e.exports=i(0,s,f,a)},"1b5b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74");const i=r.rfc4648({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),s=r.rfc4648({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),f=r.rfc4648({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),a=r.rfc4648({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});t.base64=i,t.base64pad=s,t.base64url=f,t.base64urlpad=a},"1b9c":function(e,t,n){const r=n("2ef0"),i=n("4f8d"),s=n("bfa7"),{KEY_ROLE:f,MAXIMUM_KEY_NUM:a,isMultipleKeysFormat:o,isRoleBasedKeysFormat:c}=n("5fac"),u=n("3867"),{fillWeightedMultiSigOptionsForRoleBased:l}=n("bd78"),{validateForSigning:d,validateIndexWithKeys:h,encryptKey:p,formatEncrypted:b}=n("5fac");class m{constructor(e,t){this.address=e,this.keys=t}get address(){return this._address}set address(e){if(!i.isAddress(e))throw new Error("Invalid address : "+e);this._address=i.addHexPrefix(e).toLowerCase()}get keys(){return this._keys}set keys(e){null!==e?this._keys=g(e):this._key=null}get roleTransactionKey(){return this.getKeyByRole(f.roleTransactionKey)}get roleAccountUpdateKey(){return this.getKeyByRole(f.roleAccountUpdateKey)}get roleFeePayerKey(){return this.getKeyByRole(f.roleFeePayerKey)}getPublicKey(e=!1){const t=k();for(let n=0;n=f.roleLast||e<0)throw new Error("Invalid role number: "+e);let t=this._keys[e];if(0===t.length&&e>f.roleTransactionKey){if(0===this._keys[f.roleTransactionKey].length)throw new Error(`The key with ${f[e]} role does not exist. The ${f[0]} for the default role is also empty.`);t=this._keys[f.roleTransactionKey]}return t}toAccount(e){if(void 0!==e&&!r.isArray(e))throw new Error("options for an account should define threshold and weight for each roles in an array format");const t=[];for(const r of this.keys)t.push(r.length);e=l(t,e);const n=this.getPublicKey();return u.createWithAccountKeyRoleBased(this.address,n,e)}encrypt(e,t={}){const n=[];for(let r=f.roleTransactionKey;r[])}function y(e,t,n){if(void 0!==n){if(n=Array.isArray(n)?n:[n],n.length>a)throw new Error(`The maximum number of private keys that can be used in keyring is ${a}.`);if(t>=f.roleLast)throw new Error(`Unsupported role number. The role number should be less than ${f.roleLast}. Please use 'caver.wallet.keyring.role'`);for(const r of n){const n=r instanceof s?r:new s(r);e[t].push(n)}}}e.exports=m},"1c55":function(e,t,n){"use strict";t.make=n("9546"),t.bytes=n("0ce7"),t.string=n("da951"),t.bool=n("d7c9"),t.int32=n("4a8c"),t.int64=n("1a68"),t.sint32=t.sint64=n("242e"),t.uint32=t.uint64=t.enum=t.varint=n("196a"),t.fixed64=t.sfixed64=n("a2b4"),t.double=n("aafe"),t.fixed32=n("4177"),t.sfixed32=n("d5915"),t.float=n("8227")},"1c65":function(e,t,n){"use strict";const r=n("8804"),i=n("2054"),s=n("9878"),f=n("15e4"),{FinalPeer:a}=n("a36d");e.exports=s(e=>{async function t(t,n={}){const s=await e.post("dht/findpeer",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:""+(t instanceof Uint8Array?new r(t):t),...n}),headers:n.headers});for await(const e of s.ndjson())if(e.Type===a&&e.Responses){const{ID:t,Addrs:n}=e.Responses[0];return{id:t,addrs:(n||[]).map(e=>i(e))}}throw new Error("not found")}return t})},"1cba":function(e,t,n){"use strict";const r=n("8804"),{DAGNode:i}=n("8141"),s=n("542b"),f=n("9878"),a=n("15e4"),o=n("f783"),{AbortController:c}=n("c181"),u=n("9b62"),l=n("d46b");e.exports=f(e=>async(t,n={})=>{let f,d={Links:[]};if(t instanceof Uint8Array)n.enc||(d={Data:u(t),Links:[]});else if(i.isDAGNode(t))d={Data:u(t.Data),Links:t.Links.map(e=>({Name:e.Name,Hash:e.Hash.toString(),Size:e.Tsize}))};else{if("object"!==typeof t)throw new Error("obj not recognized");d.Data=u(t.Data),d.Links=t.Links}t instanceof Uint8Array&&n.enc?f=t:(n.enc="json",f=l(JSON.stringify(d)));const h=new c,p=o(h.signal,n.signal),b=await e.post("object/put",{timeout:n.timeout,signal:p,searchParams:a(n),...await s(f,h,n.headers)}),{Hash:m}=await b.json();return new r(m)})},"1d7f":function(e,t,n){const r=n("c5b7").AccountKeyEnum;class i{constructor(e){if(e instanceof i&&(e=e.keys),"string"!==typeof e)throw new Error("To create AccountKeyPublic, a private key strings is required.");this._key=e,this.type=r.ACCOUNT_KEY_PUBLIC}get defaultKey(){return this._key}get keys(){return this._key}get transactionKey(){return this._key}get updateKey(){return this._key}get feePayerKey(){return this._key}toPublicKey(e){return e(this._key)}update(e){this._key=e.keys}}e.exports=i},"1ee1":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"1f0b":function(e,t,n){"use strict";const r="undefined"!==typeof navigator&&"ReactNative"===navigator.product;function i(){return r?"http://localhost":self.location?self.location.protocol+"//"+self.location.host:""}const s=self.URL,f=i();class a{constructor(e="",t=f){this.super=new s(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set username(e){this.super.username=e}static createObjectURL(e){return s.createObjectURL(e)}static revokeObjectURL(e){s.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}}function o(e){if("string"===typeof e){const t=new s(e);return t.toString()}if(!(e instanceof s)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",s=e.host||"",f=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),o=e.hash||"",c=e.pathname||"",u=e.path||c+a;return`${i}${t||n}${s||f+r}${u}${o}`}}e.exports={URLWithLegacySupport:a,URLSearchParams:self.URLSearchParams,defaultBase:f,format:o}},"1f2a":function(e,t,n){"use strict";const r=n("8804"),i=n("2054"),s=n("7766"),f=n("9878"),a=n("15e4"),o=n("542b"),c=n("f783"),{AbortController:u}=n("c181");e.exports=f(e=>{async function*t(t,n,f={}){const l=new u,d=c(l.signal,f.signal),h=await e.post("dht/put",{timeout:f.timeout,signal:d,searchParams:a({arg:t,...f}),...await o(n,l,f.headers)});for await(let e of h.ndjson())e=s(e),e.id=new r(e.id),e.responses&&(e.responses=e.responses.map(({ID:e,Addrs:t})=>({id:e,addrs:(t||[]).map(e=>i(e))}))),yield e}return t})},"1fbd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dd7b"),i=n("29f9");const s=0,f="identity",a=r.coerce,o=e=>i.create(s,a(e)),c={code:s,name:f,encode:a,digest:o};t.identity=c},2054:function(e,t,n){"use strict";const r=n("ba1f"),i=n("956c"),s=n("2612"),f=n("8faf"),a=n("ec12"),o=n("b6aa"),c=Symbol.for("nodejs.util.inspect.custom"),u=n("16e2"),l=n("98c5"),d=new Map,h=a.proto((function(e){if(!(this instanceof h))return new h(e);if(null==e&&(e=""),e instanceof Uint8Array)this.bytes=r.fromBytes(e);else if("string"===typeof e||e instanceof String){if(e.length>0&&"/"!==e.charAt(0))throw new Error(`multiaddr "${e}" must start with a "/"`);this.bytes=r.fromString(e)}else{if(!(e.bytes&&e.protos&&e.protoCodes))throw new Error("addr must be a string, Buffer, or another Multiaddr");this.bytes=r.fromBytes(e.bytes)}}),{className:"Multiaddr",symbolName:"@multiformats/js-multiaddr/multiaddr"});h.prototype.toString=function(){return r.bytesToString(this.bytes)},h.prototype.toJSON=h.prototype.toString,h.prototype.toOptions=function(){const e={},t=this.toString().split("/");return e.family="ip4"===t[1]?"ipv4":"ipv6",e.host=t[2],e.transport=t[3],e.port=parseInt(t[4]),e},h.prototype[c]=function(){return""},h.prototype.inspect=function(){return""},h.prototype.protos=function(){return this.protoCodes().map(e=>Object.assign({},i(e)))},h.prototype.protoCodes=function(){const e=[],t=this.bytes;let n=0;while(ne.name)},h.prototype.tuples=function(){return r.bytesToTuples(this.bytes)},h.prototype.stringTuples=function(){const e=r.bytesToTuples(this.bytes);return r.tuplesToStringTuples(e)},h.prototype.encapsulate=function(e){return e=h(e),h(this.toString()+e.toString())},h.prototype.decapsulate=function(e){e=e.toString();const t=this.toString(),n=t.lastIndexOf(e);if(n<0)throw new Error("Address "+this+" does not contain subaddress: "+e);return h(t.slice(0,n))},h.prototype.decapsulateCode=function(e){const t=this.tuples();for(let n=t.length-1;n>=0;n--)if(t[n][0]===e)return h(r.tuplesToBytes(t.slice(0,n)));return this},h.prototype.getPeerId=function(){let e=null;try{const t=this.stringTuples().filter(e=>{if(e[0]===i.names.ipfs.code)return!0});e=t.pop()[1],e=u(new f(e).multihash,"base58btc")}catch(t){e=null}return e},h.prototype.getPath=function(){let e=null;try{e=this.stringTuples().filter(e=>{const t=i(e[0]);if(t.path)return!0})[0][1]}catch(t){e=null}return e},h.prototype.equals=function(e){return l(this.bytes,e.bytes)},h.prototype.resolve=async function(){const e=this.protos().find(e=>e.resolvable);if(!e)return[this];const t=d.get(e.name);if(!t)throw o(new Error("no available resolver for "+e.name),"ERR_NO_AVAILABLE_RESOLVER");const n=await t(this);return n.map(e=>h(e))},h.prototype.nodeAddress=function(){const e=this.protoCodes(),t=this.protoNames(),n=this.toString().split("/").slice(1);if(n.length<4)throw new Error('multiaddr must have a valid format: "/{ip4, ip6, dns4, dns6}/{address}/{tcp, udp}/{port}".');if(4!==e[0]&&41!==e[0]&&54!==e[0]&&55!==e[0])throw new Error(`no protocol with name: "'${t[0]}'". Must have a valid family name: "{ip4, ip6, dns4, dns6}".`);if("tcp"!==n[2]&&"udp"!==n[2])throw new Error(`no protocol with name: "'${t[1]}'". Must have a valid transport protocol: "{tcp, udp}".`);return{family:41===e[0]||55===e[0]?6:4,address:n[1],port:parseInt(n[3])}},h.fromNodeAddress=function(e,t){if(!e)throw new Error("requires node address object");if(!t)throw new Error("requires transport protocol");let n;switch(e.family){case"IPv4":n="ip4";break;case"IPv6":n="ip6";break;default:throw Error(`Invalid addr family. Got '${e.family}' instead of 'IPv4' or 'IPv6'`)}return h("/"+[n,e.address,t,e.port].join("/"))},h.prototype.isThinWaistAddress=function(e){const t=(e||this).protos();return 2===t.length&&((4===t[0].code||41===t[0].code)&&(6===t[1].code||273===t[1].code))},h.protocols=i,h.isName=function(e){return!!h.isMultiaddr(e)&&e.protos().some(e=>e.resolvable)},h.resolve=function(e){return h.isMultiaddr(e)&&h.isName(e)?Promise.reject(new Error("not implemented yet")):Promise.reject(Error("not a valid name"))},h.resolvers=d,e.exports=h},2085:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("ec88"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedSmartContractExecutionWithRatio))throw new Error(`Cannot decode to FeeDelegatedSmartContractExecutionWithRatio. The prefix must be ${o.TxTypeFeeDelegatedSmartContractExecutionWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,l,d,h,p,b]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(a),from:c,input:l,feeRatio:u.trimLeadingZero(d),signatures:h,feePayer:p,feePayerSignatures:b}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(s.isString(e)&&(e=l(e)),super(a.TxTypeFeeDelegatedSmartContractExecutionWithRatio,e,t),this.to=e.to,this.value=e.value||"0x0",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedSmartContractExecutionWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedSmartContractExecutionWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},"219a":function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("f35a"),a=n("c7c9"),{TX_TYPE_STRING:o,TX_TYPE_TAG:c,refineSignatures:u,getTypeTagWithoutEthereumTxTypeEnvelopeTag:l,isNot:d}=n("e638"),h=n("4f8d"),p=n("3508"),b=n("aaa0");function m(e){if(e=h.addHexPrefix(e),!e.startsWith(c.TxTypeEthereumAccessList))throw new Error(`Cannot decode to EthereumAccessList. The prefix must be ${c.TxTypeEthereumAccessList}: ${e}`);const t="0x"+e.replace(c.TxTypeEthereumAccessList,""),[n,r,s,f,a,o,u,l,d,p,b]=i.decode(t);return{chainId:h.trimLeadingZero(n),nonce:h.trimLeadingZero(r),gasPrice:h.trimLeadingZero(s),gas:h.trimLeadingZero(f),to:a,value:h.trimLeadingZero(o),input:u,encodedAccessList:l,signatures:[d,p,b]}}class g extends a{static create(e,t){return new g(e,t)}static decode(e,t){const n=m(e);return n.accessList=p.decode(n.encodedAccessList),new g(n,t)}constructor(e,t){if(r.isString(e)&&(e=m(e)),e.from=e.from||"0x0000000000000000000000000000000000000000",super(o.TxTypeEthereumAccessList,e,t),this.to=e.to||"0x",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data||"0x",this.value=e.value||"0x0",this.accessList=e.accessList||[],void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=h.numberToHex(e)}get to(){return this._to}set to(e){if("0x"!==e&&!h.isAddress(e))throw new Error("Invalid address "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=h.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!h.isHex(e))throw new Error("Invalid input data "+e);this._input=h.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}get accessList(){return this._accessList}set accessList(e){e instanceof p||(e=p.create(e)),this._accessList=e}get signatures(){return this._signatures}set signatures(e){const t=u(e,this.type);if(!h.isEmptySig(t)){const e=h.hexToNumber(t.v);if(0!==e&&1!==e)throw new Error("Invalid signature: The y-parity of the transaction should either be 0 or 1.")}this._signatures=t}appendSignatures(e){if(!h.isEmptySig(this.signatures))throw new Error(`signatures already defined. ${this.type} cannot include more than one signature. Please use tx.signatures = sigArr to replace.`);if(Array.isArray(e[0])){if(e.length>1)throw new Error(`signatures are too long. ${this.type} cannot include more than one signature.`);e=e[0]}this.signatures=e}getRLPEncoding(){this.validateOptionalValues();const[e,t,n]=this.signatures.encode();return c[this.type]+i.encode([s.fromNat(this.chainId),s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,this.accessList.encodeToBytes(),e,t,n]).slice(2)}getRLPEncodingForSignature(){return this.validateOptionalValues(),l(this.type)+i.encode([s.fromNat(this.chainId),s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,this.accessList.encodeToBytes()]).slice(2)}getCommonRLPEncodingForSignature(){return this.getRLPEncodingForSignature()}recoverPublicKeys(){if(h.isEmptySig(this.signatures))throw new Error("Failed to recover public key from signatures: signatures is empty.");const e=s.toNumber(this.signatures.v),t=this.getRLPEncodingForSignature(),n=f.keccak256(t),r=[];return r.push(h.recoverPublicKey(n,[h.makeEven(h.toHex(e)),this.signatures.r,this.signatures.s],!0)),r}async sign(e,t,n=b.getHashForSignature){r.isFunction(t)&&(n=t,t=void 0);const{keyring:i,hash:s,role:f}=await this._sign(e,n),a=i.ecsign(s,f,t);return this.appendSignatures(a),this}async fillTransaction(){const[e,t,n]=await Promise.all([d(this.chainId)?this.getChainId():this.chainId,d(this.gasPrice)?this.getGasPrice():this.gasPrice,d(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.");if(void 0===this.chainId)throw new Error("chainId is undefined. Define chainId in transaction or use 'transaction.fillTransaction' to fill values.")}getTransactionHash(){let e=this.getRLPEncoding();return e=e.replace(c[this.type],l(this.type)),f.keccak256(e)}}e.exports=g},"220c":function(e,t,n){"use strict";const r=n("1343"),{encodeText:i,decodeText:s,concat:f}=n("5215");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},2224:function(e,t,n){"use strict";const r=n("2054"),i=n("ff0e");e.exports=e=>{try{e=i(r(e))}catch(t){}return e=e.toString(),e}},"223b":function(e,t,n){"use strict";const{baseTable:r}=n("25a8"),i=n("a43c").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},"22b4":function(e,t,n){"use strict";class r{constructor(e,t,n){if(this.tag=e,this.value=t,this.err=n,"number"!==typeof this.tag)throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(0|this.tag)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(e){return e._pushTag(this.tag),e.pushAny(this.value)}convert(e){var t,n;if(n=null!=e?e[this.tag]:void 0,"function"!==typeof n&&(n=r["_tag"+this.tag],"function"!==typeof n))return this;try{return n.call(r,this.value)}catch(i){return t=i,this.err=t,this}}}e.exports=r},"22bb":function(e,t,n){const r=n("f922");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"22d1":function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e{const n=e.nameAsBuffer,r=t.nameAsBuffer;return i(n,r)},f=e=>{r.inplace(e,s)};e.exports=f},"242e":function(e,t,n){"use strict";const r=n("ec76"),i=n("9546");function s(e,t,n,i){r.encode(e,t,i),s.bytes=r.encode.bytes}function f(e,t,n){const i=r.decode(e,n);return f.bytes=r.decode.bytes,i}e.exports=i(0,s,f,r.encodingLength)},"244a":function(e,t,n){"use strict";const r=n("f016"),i=n("c4f3"),{rfc4648:s}=n("9d8a2"),{decodeText:f,encodeText:a}=n("67c6"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},2496:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("d918");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"24d2":function(e,t,n){(function(n,r){"use strict";var i={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function s(e){if(!Array.isArray(e)&&!ArrayBuffer.isView(e))return!1;for(var t=0;t255)return!1;return!0}function f(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function a(e,t){return e<>>32-t}function o(e){return e^=e>>>16,e=f(e,2246822507),e^=e>>>13,e=f(e,3266489909),e^=e>>>16,e}function c(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function u(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function l(e,t){return t%=64,32===t?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function d(e,t){return t%=64,0===t?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=u(e,[4283543511,3981806797]),e=h(e,[0,e[0]>>>1]),e=u(e,[3301882366,444984403]),e=h(e,[0,e[0]>>>1]),e}i.x86.hash32=function(e,t){if(i.inputValidation&&!s(e))return r;t=t||0;for(var n=e.length%4,c=e.length-n,u=t,l=0,d=3432918353,h=461845907,p=0;p>>0},i.x86.hash128=function(e,t){if(i.inputValidation&&!s(e))return r;t=t||0;for(var n=e.length%16,c=e.length-n,u=t,l=t,d=t,h=t,p=0,b=0,m=0,g=0,k=597399067,y=2869860233,w=951274213,v=2716044179,E=0;E>>0).toString(16)).slice(-8)+("00000000"+(l>>>0).toString(16)).slice(-8)+("00000000"+(d>>>0).toString(16)).slice(-8)+("00000000"+(h>>>0).toString(16)).slice(-8)},i.x64.hash128=function(e,t){if(i.inputValidation&&!s(e))return r;t=t||0;for(var n=e.length%16,f=e.length-n,a=[0,t],o=[0,t],b=[0,0],m=[0,0],g=[2277735313,289559509],k=[1291169091,658871167],y=0;y>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)},e.exports&&(t=e.exports=i),t.murmurHash3=i})()},25:function(e,t){},2540:function(e,t){e.exports=e=>{if(e[Symbol.asyncIterator])return e;if(e.getReader)return async function*(){const t=e.getReader();try{while(1){const{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}();throw new Error("unknown stream")}},"257d":function(e,t,n){"use strict";e.exports=e=>{if(void 0!==e&&null!==e)return"string"===typeof e||e instanceof String?e:e.toString(8).padStart(4,"0")}},"25a8":function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),i=n("825a"),s=n("577e"),f=n("d039"),a=n("ad6d"),o="toString",c=RegExp.prototype,u=c[o],l=f((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=o;(l||d)&&r(RegExp.prototype,o,(function(){var e=i(this),t=s(e.source),n=e.flags,r=s(void 0===n&&e instanceof RegExp&&!("flags"in c)?a.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"25f7":function(e,t){const n={messageId:0,toPayload:function(e,t){if(!e)throw new Error(`JSONRPC method should be specified for params: "${JSON.stringify(t)}"!`);return n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!!e&&!e.error&&"2.0"===e.jsonrpc&&("number"===typeof e.id||"string"===typeof e.id)&&void 0!==e.result}},toBatchPayload:function(e){return e.map((function(e){return n.toPayload(e.method,e.params)}))}};e.exports=n},26:function(e,t){},2615:function(e,t,n){const r=n("4f8d"),{TX_TYPE_STRING:i,isEthereumTxType:s}=n("e638");function f(e){let t;if(e.senderRawTransaction)return e.feePayer&&"0x"!==e.feePayer&&"0x0000000000000000000000000000000000000000"!==e.feePayer?r.isAddress(e.feePayer)||(t=new Error("Invalid address of fee payer: "+e.feePayer)):t=new Error("Invalid fee payer: "+e.feePayer),t;const n=a(e.type);return n?(t=c(e),void 0!==t||(s(e.type)||e.from?e.from&&("0x"===e.from||"0x0000000000000000000000000000000000000000"===e.from?s(e.type)||(t=new Error("Invalid address of from: "+e.from)):r.isAddress(e.from)||(t=new Error("Invalid address of from: "+e.from))):t=new Error('"from" is missing'),void 0===e.gas&&void 0===e.gasLimit?t=new Error('"gas" is missing'):(e.nonce<0||e.gas<0||e.gasLimit<0||void 0!==e.gasPrice&&e.gasPrice<0||e.chainId<0)&&(t=new Error("gas(or gasLimit), gasPrice, nonce or chainId is lower than 0")),e.feePayerSignatures&&!r.isEmptySig(e.feePayerSignatures)&&(e.feePayer&&"0x"!==e.feePayer&&"0x0000000000000000000000000000000000000000"!==e.feePayer?r.isAddress(e.feePayer)||(t=new Error("Invalid address of fee payer: "+e.feePayer)):t=new Error('"feePayer" is missing: feePayer must be defined with feePayerSignatures.'))),t):new Error(`The transaction type [${e.type}] is not supported`)}function a(e){if(!e)return!0;switch(e){case"VALUE_TRANSFER":case"FEE_DELEGATED_VALUE_TRANSFER":case"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO":case"VALUE_TRANSFER_MEMO":case"FEE_DELEGATED_VALUE_TRANSFER_MEMO":case"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO":case"ACCOUNT_UPDATE":case"FEE_DELEGATED_ACCOUNT_UPDATE":case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":case"SMART_CONTRACT_DEPLOY":case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY":case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO":case"SMART_CONTRACT_EXECUTION":case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION":case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO":case"CANCEL":case"FEE_DELEGATED_CANCEL":case"FEE_DELEGATED_CANCEL_WITH_RATIO":case"CHAIN_DATA_ANCHORING":case"LEGACY":case i.TxTypeValueTransfer:case i.TxTypeFeeDelegatedValueTransfer:case i.TxTypeFeeDelegatedValueTransferWithRatio:case i.TxTypeValueTransferMemo:case i.TxTypeFeeDelegatedValueTransferMemo:case i.TxTypeFeeDelegatedValueTransferMemoWithRatio:case i.TxTypeAccountUpdate:case i.TxTypeFeeDelegatedAccountUpdate:case i.TxTypeFeeDelegatedAccountUpdateWithRatio:case i.TxTypeSmartContractDeploy:case i.TxTypeFeeDelegatedSmartContractDeploy:case i.TxTypeFeeDelegatedSmartContractDeployWithRatio:case i.TxTypeSmartContractExecution:case i.TxTypeFeeDelegatedSmartContractExecution:case i.TxTypeFeeDelegatedSmartContractExecutionWithRatio:case i.TxTypeCancel:case i.TxTypeFeeDelegatedCancel:case i.TxTypeFeeDelegatedCancelWithRatio:case i.TxTypeChainDataAnchoring:case i.TxTypeFeeDelegatedChainDataAnchoring:case i.TxTypeFeeDelegatedChainDataAnchoringWithRatio:case i.TxTypeLegacyTransaction:case i.TxTypeEthereumAccessList:case i.TxTypeEthereumDynamicFee:return!0}return!1}function o(e){if(void 0===e)return!0;switch(e){case 0:case"EVM":case"0x":case"0x0":return!0}return!1}function c(e){if(void 0===e.type)return u(e);switch(e.type){case"LEGACY":case i.TxTypeLegacyTransaction:return u(e);case"VALUE_TRANSFER":case i.TxTypeValueTransfer:return b(e);case"FEE_DELEGATED_VALUE_TRANSFER":case i.TxTypeFeeDelegatedValueTransfer:return m(e);case"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO":case i.TxTypeFeeDelegatedValueTransferWithRatio:return g(e);case"VALUE_TRANSFER_MEMO":case i.TxTypeValueTransferMemo:return y(e);case"FEE_DELEGATED_VALUE_TRANSFER_MEMO":case i.TxTypeFeeDelegatedValueTransferMemo:return w(e);case"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO":case i.TxTypeFeeDelegatedValueTransferMemoWithRatio:return v(e);case"ACCOUNT_UPDATE":case i.TxTypeAccountUpdate:return x(e);case"FEE_DELEGATED_ACCOUNT_UPDATE":case i.TxTypeFeeDelegatedAccountUpdate:return _(e);case"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO":case i.TxTypeFeeDelegatedAccountUpdateWithRatio:return A(e);case"SMART_CONTRACT_DEPLOY":case i.TxTypeSmartContractDeploy:return C(e);case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY":case i.TxTypeFeeDelegatedSmartContractDeploy:return S(e);case"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO":case i.TxTypeFeeDelegatedSmartContractDeployWithRatio:return N(e);case"SMART_CONTRACT_EXECUTION":case i.TxTypeSmartContractExecution:return F(e);case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION":case i.TxTypeFeeDelegatedSmartContractExecution:return O(e);case"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO":case i.TxTypeFeeDelegatedSmartContractExecutionWithRatio:return L(e);case"CANCEL":case i.TxTypeCancel:return D(e);case"FEE_DELEGATED_CANCEL":case i.TxTypeFeeDelegatedCancel:return M(e);case"FEE_DELEGATED_CANCEL_WITH_RATIO":case i.TxTypeFeeDelegatedCancelWithRatio:return U(e);case"CHAIN_DATA_ANCHORING":case i.TxTypeChainDataAnchoring:return K(e);case i.TxTypeFeeDelegatedChainDataAnchoring:return B(e);case i.TxTypeFeeDelegatedChainDataAnchoringWithRatio:return H(e);case i.TxTypeEthereumAccessList:return G(e);case i.TxTypeEthereumDynamicFee:return V(e)}}function u(e){if(void 0===e.to&&void 0===e.data&&void 0===e.input)return new Error("contract creation without any data provided");if(e.to&&"0x"!==e.to&&"0x0000000000000000000000000000000000000000"!==e.to&&!r.isAddress(e.to))return new Error("Invalid address of to: "+e.to);if(void 0!==e.codeFormat)return new Error(`"codeFormat" cannot be used with ${e.type} transaction`);if(void 0!==e.humanReadable)return new Error(`"humanReadable" cannot be used with ${e.type} transaction`);if(void 0!==e.accessList)return new Error(`"accessList" cannot be used with ${e.type} transaction`);if(void 0!==e.maxPriorityFeePerGas)return new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`);if(void 0!==e.maxFeePerGas)return new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`);const t=l(e);return t||h(e)}function l(e){const t=e.type?e.type:"LEGACY";return void 0!==e.feePayer?new Error(`"feePayer" cannot be used with ${t} transaction`):void 0!==e.feeRatio?new Error(`"feeRatio" cannot be used with ${t} transaction`):void 0!==e.feePayerSignatures?new Error(`"feePayerSignatures" cannot be used with ${t} transaction`):void 0}function d(e){if(e.type.includes("WITH_RATIO")||e.type.includes("WithRatio")){if(void 0===e.feeRatio)return new Error('"feeRatio" is missing')}else if(void 0!==e.feeRatio)return new Error(`"feeRatio" cannot be used with ${e.type} transaction`)}function h(e){const t=e.type?e.type:"LEGACY";return void 0!==e.account?new Error(`"account" cannot be used with ${t} transaction`):void 0!==e.key?new Error(`"key" cannot be used with ${t} transaction`):void 0!==e.legacyKey?new Error(`"legacyKey" cannot be used with ${t} transaction`):void 0!==e.publicKey?new Error(`"publicKey" cannot be used with ${t} transaction`):void 0!==e.multisig?new Error(`"multisig" cannot be used with ${t} transaction`):void 0!==e.roleTransactionKey?new Error(`"roleTransactionKey" cannot be used with ${t} transaction`):void 0!==e.roleAccountUpdateKey?new Error(`"roleAccountUpdateKey" cannot be used with ${t} transaction`):void 0!==e.roleFeePayerKey?new Error(`"roleFeePayerKey" cannot be used with ${t} transaction`):void 0!==e.failKey?new Error(`"failKey" cannot be used with ${t} transaction`):void 0}function p(e){return void 0===e.to?new Error('"to" is missing'):r.isAddress(e.to)?void 0===e.value?new Error('"value" is missing'):void 0!==e.codeFormat?new Error(`"codeFormat" cannot be used with ${e.type} transaction`):void 0!==e.data?new Error(`"data" cannot be used with ${e.type} transaction`):void 0!==e.input?new Error(`"input" cannot be used with ${e.type} transaction`):void 0!==e.humanReadable?new Error(`"humanReadable" cannot be used with ${e.type} transaction`):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0:new Error("Invalid address of to: "+e.to)}function b(e){let t=p(e);return t||(t=l(e),t||h(e))}function m(e){let t=p(e);return t||(t=d(e),t||h(e))}function g(e){return m(e)}function k(e){return void 0===e.to?new Error('"to" is missing'):r.isAddress(e.to)?void 0===e.value?new Error('"value" is missing'):void 0!==e.input&&void 0!==e.data?new Error('"data" and "input" cannot be used as properties of transactions at the same time.'):void 0===e.input&&void 0===e.data?e.type.includes("TxType")?new Error('"input" is missing'):new Error('"data" is missing'):void 0!==e.codeFormat?new Error(`"codeFormat" cannot be used with ${e.type} transaction`):void 0!==e.humanReadable?new Error(`"humanReadable" cannot be used with ${e.type} transaction`):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0:new Error("Invalid address of to: "+e.to)}function y(e){let t=k(e);return t||(t=l(e),t||h(e))}function w(e){let t=k(e);return t||(t=d(e),t||h(e))}function v(e){return w(e)}function E(e){if(void 0!==e.data)return new Error(`"data" cannot be used with ${e.type} transaction`);if(void 0!==e.input)return new Error(`"input" cannot be used with ${e.type} transaction`);if(void 0!==e.codeFormat)return new Error(`"codeFormat" cannot be used with ${e.type} transaction`);if(void 0!==e.humanReadable)return new Error(`"humanReadable" cannot be used with ${e.type} transaction`);if(void 0!==e.accessList)return new Error(`"accessList" cannot be used with ${e.type} transaction`);if(void 0!==e.maxPriorityFeePerGas)return new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`);if(void 0!==e.maxFeePerGas)return new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`);if(e.type.includes("TxType"))return e.account?void 0!==e.key?new Error(`"key" cannot be used with ${e.type} transaction.`):void 0!==e.legacyKey?new Error(`"legacyKey" cannot be used with ${e.type} transaction.`):e.publicKey?new Error(`"publicKey" cannot be used with ${e.type} transaction.`):e.multisig?new Error(`"multisig" cannot be used with ${e.type} transaction.`):e.roleTransactionKey?new Error(`"roleTransactionKey" cannot be used with ${e.type} transaction.`):e.roleAccountUpdateKey?new Error(`"roleAccountUpdateKey" cannot be used with ${e.type} transaction.`):e.roleFeePayerKey?new Error(`"roleFeePayerKey" cannot be used with ${e.type} transaction.`):void 0!==e.failKey?new Error(`"failKey" cannot be used with ${e.type} transaction.`):void 0:new Error(`Missing account information with ${e.type} transaction`);if(e.account)return new Error(`"account" cannot be used with ${e.type} transaction`);const t=`The key parameter to be used for ${e.type} is duplicated.`;if(!e.key&&void 0===e.legacyKey&&!e.publicKey&&!e.multisig&&!e.roleTransactionKey&&!e.roleAccountUpdateKey&&!e.roleFeePayerKey&&void 0===e.failKey)return new Error(`Missing key information with ${e.type} transaction`);if(e.key){if(void 0!==e.legacyKey||e.publicKey||e.multisig||e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey||void 0!==e.failKey)return new Error(t)}else if(void 0!==e.legacyKey){if(e.publicKey||e.multisig||e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey||void 0!==e.failKey)return new Error(t)}else if(e.publicKey){if(e.multisig||e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey||void 0!==e.failKey)return new Error(t)}else if(e.multisig){if(e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey||void 0!==e.failKey)return new Error(t)}else if(void 0!==e.failKey&&(e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey))return new Error(t)}function T(e){return void 0!==e.to?new Error(`"to" cannot be used with ${e.type} transaction`):void 0!==e.value?new Error(`"value" cannot be used with ${e.type} transaction`):void 0}function x(e){let t=T(e);return t||(t=E(e),t||l(e))}function _(e){let t=T(e);return t||(t=E(e),t||d(e))}function A(e){return _(e)}function P(e){return void 0!==e.value||e.type.includes("TxType")?void 0===e.input||void 0===e.data||e.type.includes("TxType")?void 0===e.input&&void 0===e.data?e.type.includes("TxType")?new Error('"input" is missing'):new Error('"data" is missing'):e.to&&"0x"!==e.to?new Error(`"to" cannot be used with ${e.type} transaction`):void 0===e.codeFormat||o(e.codeFormat)?void 0!==e.humanReadable&&!0===e.humanReadable?new Error("HumanReadableAddress is not supported yet."):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0:new Error(`The codeFormat(${e.codeFormat}) is invalid.`):new Error('"data" and "input" cannot be used as properties of transactions at the same time.'):new Error('"value" is missing')}function C(e){let t=P(e);return t||(t=l(e),t||h(e))}function S(e){let t=P(e);return t||(t=h(e),t||d(e))}function N(e){return S(e)}function I(e){return void 0===e.to?new Error('"to" is missing'):r.isAddress(e.to)?void 0!==e.input&&void 0!==e.data?new Error('"data" and "input" cannot be used as properties of transactions at the same time.'):void 0===e.input&&void 0===e.data?e.type.includes("TxType")?new Error('"input" is missing'):new Error('"data" is missing'):void 0!==e.codeFormat?new Error(`"codeFormat" cannot be used with ${e.type} transaction`):void 0!==e.humanReadable?new Error(`"humanReadable" cannot be used with ${e.type} transaction`):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0:new Error("Invalid address of to: "+e.to)}function F(e){let t=I(e);return t||(t=l(e),t||h(e))}function O(e){let t=I(e);return t||(t=h(e),t||d(e))}function L(e){return O(e)}function R(e){return void 0!==e.to?new Error(`"to" cannot be used with ${e.type} transaction`):void 0!==e.value?new Error(`"value" cannot be used with ${e.type} transaction`):void 0!==e.data?new Error(`"data" cannot be used with ${e.type} transaction`):void 0!==e.input?new Error(`"input" cannot be used with ${e.type} transaction`):void 0!==e.codeFormat?new Error(`"codeFormat" cannot be used with ${e.type} transaction`):void 0!==e.humanReadable?new Error(`"humanReadable" cannot be used with ${e.type} transaction`):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0}function D(e){let t=R(e);return t||(t=l(e),t||h(e))}function M(e){let t=R(e);return t||(t=h(e),t||d(e))}function U(e){return M(e)}function j(e){if(void 0!==e.input&&void 0!==e.data)return new Error('"data" and "input" cannot be used as properties of transactions at the same time.');if(void 0===e.input&&void 0===e.data){if(void 0===e.anchoredData)return e.type.includes("TxType")?new Error('"input" is missing'):new Error('"data" is missing');e.data=e.anchoredData,delete e.anchoredData}return void 0!==e.value?new Error(`"value" cannot be used with ${e.type} transaction`):void 0!==e.to?new Error(`"to" cannot be used with ${e.type} transaction`):void 0!==e.codeFormat?new Error(`"codeFormat" cannot be used with ${e.type} transaction`):void 0!==e.humanReadable?new Error(`"humanReadable" cannot be used with ${e.type} transaction`):void 0!==e.accessList?new Error(`"accessList" cannot be used with ${e.type} transaction`):void 0!==e.maxPriorityFeePerGas?new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`):void 0!==e.maxFeePerGas?new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`):void 0}function K(e){let t=j(e);return t||(t=l(e),t||h(e))}function B(e){let t=j(e);return t||(t=h(e),t||d(e))}function H(e){return B(e)}function G(e){if(void 0===e.to&&void 0===e.data&&void 0===e.input)return new Error("contract creation without any data provided");if(e.to&&"0x"!==e.to&&"0x0000000000000000000000000000000000000000"!==e.to&&!r.isAddress(e.to))return new Error("Invalid address of to: "+e.to);if(void 0!==e.codeFormat)return new Error(`"codeFormat" cannot be used with ${e.type} transaction`);if(void 0!==e.humanReadable)return new Error(`"humanReadable" cannot be used with ${e.type} transaction`);if(void 0!==e.maxPriorityFeePerGas)return new Error(`"maxPriorityFeePerGas" cannot be used with ${e.type} transaction`);if(void 0!==e.maxFeePerGas)return new Error(`"maxFeePerGas" cannot be used with ${e.type} transaction`);const t=l(e);return t||h(e)}function V(e){if(void 0===e.to&&void 0===e.data&&void 0===e.input)return new Error("contract creation without any data provided");if(e.to&&"0x"!==e.to&&"0x0000000000000000000000000000000000000000"!==e.to&&!r.isAddress(e.to))return new Error("Invalid address of to: "+e.to);if(void 0!==e.codeFormat)return new Error(`"codeFormat" cannot be used with ${e.type} transaction`);if(void 0!==e.humanReadable)return new Error(`"humanReadable" cannot be used with ${e.type} transaction`);if(void 0!==e.gasPrice)return new Error(`"gasPrice" cannot be used with ${e.type} transaction. Please use the maxPriorityFeePerGas and maxFeePerGas.`);const t=l(e);return t||h(e)}e.exports={validateParams:f,validateTxType:a,validateCodeFormat:o}},2654:function(e,t,n){(function(e,r){var i;/*! https://mths.be/utf8js v2.0.0 by @mathias */(function(s){var f=t,a=(e&&e.exports,"object"==typeof r&&r);a.global!==a&&a.window;var o,c,u,l=String.fromCharCode;function d(e){var t,n,r=[],i=0,s=e.length;while(i=55296&&t<=56319&&i65535&&(t-=65536,i+=l(t>>>10&1023|55296),t=56320|1023&t),i+=l(t);return i}function p(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function b(e,t){return l(e>>t&63|128)}function m(e){if(0==(4294967168&e))return l(e);var t="";return 0==(4294965248&e)?t=l(e>>6&31|192):0==(4294901760&e)?(p(e),t=l(e>>12&15|224),t+=b(e,6)):0==(4292870144&e)&&(t=l(e>>18&7|240),t+=b(e,12),t+=b(e,6)),t+=l(63&e|128),t}function g(e){var t,n=d(e),r=n.length,i=-1,s="";while(++i=c)throw Error("Invalid byte index");var e=255&o[u];if(u++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function y(){var e,t,n,r;if(u>c)throw Error("Invalid byte index");if(u==c)return!1;if(e=255&o[u],u++,0==(128&e))return e;if(192==(224&e)){var i=k();if(r=(31&e)<<6|i,r>=128)return r;throw Error("Invalid continuation byte")}if(224==(240&e)){if(i=k(),t=k(),r=(15&e)<<12|i<<6|t,r>=2048)return p(r),r;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=k(),t=k(),n=k(),r=(15&e)<<18|i<<12|t<<6|n,r>=65536&&r<=1114111))return r;throw Error("Invalid UTF-8 detected")}function w(e){o=d(e),c=o.length,u=0;var t,n=[];while(!1!==(t=y()))n.push(t);return h(n)}var v={version:"2.0.0",encode:g,decode:w};i=function(){return v}.call(t,n,t,e),void 0===i||(e.exports=i)})()}).call(this,n("62e4")(e),n("c8ba"))},"26d5":function(e,t,n){"use strict";const r=n("b71b"),i=self.crypto||self.msCrypto,s=async(e,t)=>{if("undefined"===typeof self||!i)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(t){case"sha1":return new Uint8Array(await i.subtle.digest({name:"SHA-1"},e));case"sha2-256":return new Uint8Array(await i.subtle.digest({name:"SHA-256"},e));case"sha2-512":return new Uint8Array(await i.subtle.digest({name:"SHA-512"},e));case"dbl-sha2-256":{const t=await i.subtle.digest({name:"SHA-256"},e);return new Uint8Array(await i.subtle.digest({name:"SHA-256"},t))}default:throw new Error(t+" is not a supported algorithm")}};e.exports={factory:e=>async t=>s(t,e),digest:s,multihashing:async(e,t,n)=>{const i=await s(e,t);return r.encode(i,t,n)}}},27:function(e,t){},2708:function(e,t){const n=(e,t)=>{let n=[];for(var r=0;rn(e,()=>t),i=(e,t)=>e.concat(t),s=e=>{let t=[];for(let n=0,r=e.length;n{let n=[];for(let r=0,i=t.length;rasync(t={})=>{const n=await e.post("name/pubsub/subs",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers}),r=await n.json();return r.Strings||[]})},"273a":function(e,t,n){"use strict";const{TimeoutError:r,AbortError:i}=n("d2aa"),{Response:s,Request:f,Headers:a,default:o}=n("c09e"),c=(e,t={})=>{const n=new XMLHttpRequest;n.open(t.method||"GET",e.toString(),!0);const{timeout:f,headers:o}=t;if(f&&f>0&&f<1/0&&(n.timeout=f),null!=t.overrideMimeType&&n.overrideMimeType(t.overrideMimeType),o)for(const[r,i]of new a(o))n.setRequestHeader(r,i);return t.signal&&(t.signal.onabort=()=>n.abort()),t.onUploadProgress&&(n.upload.onprogress=t.onUploadProgress),n.responseType="arraybuffer",new Promise((e,f)=>{const a=t=>{switch(t.type){case"error":e(s.error());break;case"load":e(new h(n.responseURL,n.response,{status:n.status,statusText:n.statusText,headers:d(n.getAllResponseHeaders())}));break;case"timeout":f(new r);break;case"abort":f(new i);break;default:break}};n.onerror=a,n.onload=a,n.ontimeout=a,n.onabort=a,n.send(t.body)})},u=o,l=(e,t={})=>null!=t.onUploadProgress?c(e,t):u(e,t),d=e=>{const t=new a;for(const n of e.trim().split(/[\r\n]+/)){const e=n.indexOf(": ");e>0&&t.set(n.slice(0,e),n.slice(e+1))}return t};class h extends s{constructor(e,t,n){super(t,n),Object.defineProperty(this,"url",{value:e})}}e.exports={fetch:l,Request:f,Headers:a,ResponseWithURL:h}},2778:function(e,t,n){"use strict";const{encodeText:r}=n("cf49");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},28:function(e,t){},2943:function(e,t,n){"use strict";const r=n("891a"),i=n("d556"),s=n("9b60"),f=n("03e8"),{concat:a}=n("b301"),{toString:o}=n("b155"),{equals:c}=n("dd60"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},2947:function(e,t,n){"use strict";const r=n("6e0a"),{concat:i}=n("6a80"),s=n("a97c"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("7d58");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},2984:function(e,t,n){"use strict";(function(t){const r=n("63a6"),i="object"===typeof window&&"object"===typeof document&&9===document.nodeType,s=r(),f=i&&!s,a=s&&!i,o=s&&i,c="undefined"!==typeof t&&"undefined"!==typeof t.release&&"node"===t.release.name&&!s,u="function"===typeof importScripts&&"undefined"!==typeof self&&"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,l="undefined"!==typeof t&&!1;e.exports={isTest:l,isElectron:s,isElectronMain:a,isElectronRenderer:o,isNode:c,isBrowser:f,isWebWorker:u,isEnvWithDom:i}}).call(this,n("4362"))},"29d3":function(e,t){const n=(e,t="include")=>{if(!Array.isArray(e))throw Error("rpcFilter only takes an array for first argument");return e=e.reduce((e,t)=>(e[t]=t,e),{}),(n,r)=>{if("include"===t){if(!e[n.method])return;r(n)}else"exclude"===t&&(e[n.method]||r(n))}};e.exports=n},"29f9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dd7b"),i=n("ac1b");const s=(e,t)=>{const n=t.byteLength,r=i.encodingLength(e),s=r+i.encodingLength(n),f=new Uint8Array(s+n);return i.encodeTo(e,f,0),i.encodeTo(n,f,r),f.set(t,s),new o(e,n,t,f)},f=e=>{const t=r.coerce(e),[n,s]=i.decode(t),[f,a]=i.decode(t.subarray(s)),c=t.subarray(s+a);if(c.byteLength!==f)throw new Error("Incorrect length");return new o(n,f,c,t)},a=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&r.equals(e.bytes,t.bytes);class o{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}t.Digest=o,t.create=s,t.decode=f,t.equals=a},"2a06":function(e,t,n){"use strict";const r=n("b433"),{encodeText:i,decodeText:s,concat:f}=n("3e79");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},"2a0e":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},"2ac4":function(e,t,n){"use strict";const r=n("566e"),i=n("2612"),{names:s}=n("fb99"),{toString:f}=n("3906"),{fromString:a}=n("d435"),{concat:o}=n("b507"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},"2afb":function(e,t,n){"use strict";const{baseTable:r}=n("4958"),i={};for(const[s,f]of Object.entries(r))void 0===i[f]&&(i[f]=s);e.exports=Object.freeze(i)},"2b2d":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n{const t=async(t,n={})=>{const s=new o,c=a(s.signal,n.signal),u=await e.post("config/replace",{timeout:n.timeout,signal:c,searchParams:f(n),...await i(r(JSON.stringify(t)),s,n.headers)});await u.text()};return t})},"2bb8":function(e,t,n){"use strict";const{BigNumber:r}=n("901e"),i=n("9878"),s=n("15e4");e.exports=i(e=>async function*(t={}){const n=await e.post("stats/bw",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers,transform:e=>({totalIn:new r(e.TotalIn),totalOut:new r(e.TotalOut),rateIn:new r(e.RateIn),rateOut:new r(e.RateOut)})});yield*n.ndjson()})},"2bbf":function(e,t,n){"use strict";const r="[a-fA-F\\d:]",i=e=>e&&e.includeBoundaries?`(?:(?<=\\s|^)(?=${r})|(?<=${r})(?=\\s|$))`:"",s="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",f="[a-fA-F\\d]{1,4}",a=`\n(?:\n(?:${f}:){7}(?:${f}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${f}:){6}(?:${s}|:${f}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${f}:){5}(?::${s}|(?::${f}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${f}:){4}(?:(?::${f}){0,1}:${s}|(?::${f}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${f}:){3}(?:(?::${f}){0,2}:${s}|(?::${f}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${f}:){2}(?:(?::${f}){0,3}:${s}|(?::${f}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${f}:){1}(?:(?::${f}){0,4}:${s}|(?::${f}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${f}){0,5}:${s}|(?::${f}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp(`(?:^${s}$)|(?:^${a}$)`),c=new RegExp(`^${s}$`),u=new RegExp(`^${a}$`),l=e=>e&&e.exact?o:new RegExp(`(?:${i(e)}${s}${i(e)})|(?:${i(e)}${a}${i(e)})`,"g");l.v4=e=>e&&e.exact?c:new RegExp(`${i(e)}${s}${i(e)}`,"g"),l.v6=e=>e&&e.exact?u:new RegExp(`${i(e)}${a}${i(e)}`,"g"),e.exports=l},"2bef":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},"2c76":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{const t=async(t={})=>{const n=await e.post("config/show",{timeout:t.timeout,signal:t.signal,searchParams:i({...t}),headers:t.headers}),r=await n.json();return r};return t})},"2cdb":function(e,t,n){"use strict";const r=n("75a6"),i=n("85b8");t.resolve=(e,t)=>{let n=i.deserialize(e);const s=t.split("/").filter(Boolean);while(s.length){const e=s.shift();if(void 0===n[e]){for(const t of n.Links)if(t.Name===e)return{value:t.Hash,remainderPath:s.join("/")};throw new Error(`Object has no property '${e}'`)}if(n=n[e],r.isCID(n))return{value:n,remainderPath:s.join("/")}}return{value:n,remainderPath:""}},t.tree=function*(e){const t=i.deserialize(e);yield"Data",yield"Links";for(let n=0;n1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},i.prototype.buildCall=function(){const e=this;return function(){e.subscriptions[arguments[0]]||console.warn(`Subscription ${JSON.stringify(arguments[0])} doesn't exist. Subscribing anyway.`);const t=new r({subscription:e.subscriptions[arguments[0]],requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:i,subscription:r}},"2dc7":function(e,t,n){"use strict";const{Buffer:r}=n("b639"),{URL:i}=n("b073"),s=n("901e").BigNumber,f=n("5ee5"),a=n("85be"),o=a.MT,c=a.NUMBYTES,u=a.SHIFT32,l=a.SYMS,d=a.TAG,h=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.TWO,p=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.FOUR,b=a.MT.SIMPLE_FLOAT<<5|a.NUMBYTES.EIGHT,m=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.TRUE,g=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.FALSE,k=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.UNDEFINED,y=a.MT.SIMPLE_FLOAT<<5|a.SIMPLE.NULL,w=new s("0x20000000000000"),v=r.from("f97e00","hex"),E=r.from("f9fc00","hex"),T=r.from("f97c00","hex");function x(e){return{}.toString.call(e).slice(8,-1)}class _{constructor(e){e=e||{},this.streaming="function"===typeof e.stream,this.onData=e.stream,this.semanticTypes=[[i,this._pushUrl],[s,this._pushBigNumber]];const t=e.genTypes||[],n=t.length;for(let r=0;r[t,e[t]]))}_pushRawMap(e,t){t=t.map((function(e){return e[0]=_.encode(e[0]),e})).sort(f.keySorter);for(var n=0;ne+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"2e33":function(e,t,n){const r=n("bcbb");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"2e61":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("e4e8"),f=n("15e4");e.exports=i(e=>async function*(t,n={}){for await(const{path:i,recursive:a}of s(t)){const t=new URLSearchParams(n.searchParams);t.append("arg",""+i),null!=a&&t.set("recursive",String(a));const s=await e.post("pin/rm",{timeout:n.timeout,signal:n.signal,headers:n.headers,searchParams:f({...n,arg:""+i,recursive:a})});for await(const e of s.ndjson())e.Pins?yield*e.Pins.map(e=>new r(e)):yield new r(e)}})},"2e78":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var s,f="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,b=2,m=4,g=1,k=2,y=1,w=2,v=4,E=8,T=16,x=32,_=64,A=128,P=256,C=512,S=30,N="...",I=800,F=16,O=1,L=2,R=3,D=1/0,M=9007199254740991,U=17976931348623157e292,j=NaN,K=4294967295,B=K-1,H=K>>>1,G=[["ary",A],["bind",y],["bindKey",w],["curry",E],["curryRight",T],["flip",C],["partial",x],["partialRight",_],["rearg",P]],V="[object Arguments]",W="[object Array]",z="[object AsyncFunction]",$="[object Boolean]",q="[object Date]",Y="[object DOMException]",Z="[object Error]",X="[object Function]",J="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",se="[object RegExp]",fe="[object Set]",ae="[object String]",oe="[object Symbol]",ce="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",be="[object Float64Array]",me="[object Int8Array]",ge="[object Int16Array]",ke="[object Int32Array]",ye="[object Uint8Array]",we="[object Uint8ClampedArray]",ve="[object Uint16Array]",Ee="[object Uint32Array]",Te=/\b__p \+= '';/g,xe=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ae=/&(?:amp|lt|gt|quot|#39);/g,Pe=/[&<>"']/g,Ce=RegExp(Ae.source),Se=RegExp(Pe.source),Ne=/<%-([\s\S]+?)%>/g,Ie=/<%([\s\S]+?)%>/g,Fe=/<%=([\s\S]+?)%>/g,Oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Le=/^\w*$/,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/[\\^$.*+?()[\]{}|]/g,Me=RegExp(De.source),Ue=/^\s+/,je=/\s/,Ke=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Be=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,Ge=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Ze=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",st="\\u20d0-\\u20ff",ft=rt+it+st,at="\\u2700-\\u27bf",ot="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",bt=ct+ut+lt+dt,mt="['ā€™]",gt="["+nt+"]",kt="["+bt+"]",yt="["+ft+"]",wt="\\d+",vt="["+at+"]",Et="["+ot+"]",Tt="[^"+nt+bt+wt+at+ot+ht+"]",xt="\\ud83c[\\udffb-\\udfff]",_t="(?:"+yt+"|"+xt+")",At="[^"+nt+"]",Pt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ct="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+ht+"]",Nt="\\u200d",It="(?:"+Et+"|"+Tt+")",Ft="(?:"+St+"|"+Tt+")",Ot="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Lt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Rt=_t+"?",Dt="["+pt+"]?",Mt="(?:"+Nt+"(?:"+[At,Pt,Ct].join("|")+")"+Dt+Rt+")*",Ut="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kt=Dt+Rt+Mt,Bt="(?:"+[vt,Pt,Ct].join("|")+")"+Kt,Ht="(?:"+[At+yt+"?",yt,Pt,Ct,gt].join("|")+")",Gt=RegExp(mt,"g"),Vt=RegExp(yt,"g"),Wt=RegExp(xt+"(?="+xt+")|"+Ht+Kt,"g"),zt=RegExp([St+"?"+Et+"+"+Ot+"(?="+[kt,St,"$"].join("|")+")",Ft+"+"+Lt+"(?="+[kt,St+It,"$"].join("|")+")",St+"?"+It+"+"+Ot,St+"+"+Lt,jt,Ut,wt,Bt].join("|"),"g"),$t=RegExp("["+Nt+nt+ft+pt+"]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zt=-1,Xt={};Xt[pe]=Xt[be]=Xt[me]=Xt[ge]=Xt[ke]=Xt[ye]=Xt[we]=Xt[ve]=Xt[Ee]=!0,Xt[V]=Xt[W]=Xt[de]=Xt[$]=Xt[he]=Xt[q]=Xt[Z]=Xt[X]=Xt[Q]=Xt[ee]=Xt[ne]=Xt[se]=Xt[fe]=Xt[ae]=Xt[ue]=!1;var Jt={};Jt[V]=Jt[W]=Jt[de]=Jt[he]=Jt[$]=Jt[q]=Jt[pe]=Jt[be]=Jt[me]=Jt[ge]=Jt[ke]=Jt[Q]=Jt[ee]=Jt[ne]=Jt[se]=Jt[fe]=Jt[ae]=Jt[oe]=Jt[ye]=Jt[we]=Jt[ve]=Jt[Ee]=!0,Jt[Z]=Jt[X]=Jt[ue]=!1;var Qt={"ƀ":"A","Ɓ":"A","Ƃ":"A","ƃ":"A","Ƅ":"A","ƅ":"A","Ć ":"a","Ć”":"a","Ć¢":"a","Ć£":"a","Ƥ":"a","Ć„":"a","Ƈ":"C","Ƨ":"c","Ɛ":"D","Ć°":"d","ƈ":"E","Ɖ":"E","Ɗ":"E","Ƌ":"E","ĆØ":"e","Ć©":"e","ĆŖ":"e","Ć«":"e","ƌ":"I","ƍ":"I","Ǝ":"I","Ə":"I","Ƭ":"i","Ć­":"i","Ć®":"i","ĆÆ":"i","Ƒ":"N","Ʊ":"n","ƒ":"O","Ɠ":"O","Ɣ":"O","ƕ":"O","Ɩ":"O","Ƙ":"O","Ć²":"o","Ć³":"o","Ć“":"o","Ƶ":"o","ƶ":"o","Ćø":"o","ƙ":"U","ƚ":"U","ƛ":"U","Ɯ":"U","Ć¹":"u","Ćŗ":"u","Ć»":"u","Ć¼":"u","Ɲ":"Y","Ć½":"y","Ćæ":"y","Ɔ":"Ae","Ʀ":"ae","ƞ":"Th","Ć¾":"th","Ɵ":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ä ":"G","Ä¢":"G","ĝ":"g","ğ":"g","Ä”":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä„":"h","ħ":"h","ÄØ":"I","ÄŖ":"I","Ĭ":"I","Ä®":"I","Ä°":"I","Ä©":"i","Ä«":"i","Ä­":"i","ÄÆ":"i","ı":"i","Ä“":"J","ĵ":"j","Ķ":"K","Ä·":"k","Äø":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Äæ":"L","Ł":"L","Äŗ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Å ":"S","ś":"s","ŝ":"s","ş":"s","Å”":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å„":"t","ŧ":"t","ÅØ":"U","ÅŖ":"U","Ŭ":"U","Å®":"U","Å°":"U","Ų":"U","Å©":"u","Å«":"u","Å­":"u","ÅÆ":"u","ű":"u","ų":"u","Å“":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Åø":"Y","Ź":"Z","Å»":"Z","Ž":"Z","Åŗ":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","Åæ":"s"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,sn=parseInt,fn="object"==typeof e&&e&&e.Object===Object&&e,an="object"==typeof self&&self&&self.Object===Object&&self,on=fn||an||Function("return this")(),cn=t&&!t.nodeType&&t,un=cn&&"object"==typeof r&&r&&!r.nodeType&&r,ln=un&&un.exports===cn,dn=ln&&fn.process,hn=function(){try{var e=un&&un.require&&un.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,bn=hn&&hn.isDate,mn=hn&&hn.isMap,gn=hn&&hn.isRegExp,kn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function wn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function vn(e,t,n,r){var i=-1,s=null==e?0:e.length;while(++i-1}function Pn(e,t,n){var r=-1,i=null==e?0:e.length;while(++r-1);return n}function er(e,t){var n=e.length;while(n--&&Un(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Gn(Qt),rr=Gn(en);function ir(e){return"\\"+nn[e]}function sr(e,t){return null==e?s:e[t]}function fr(e){return $t.test(e)}function ar(e){return qt.test(e)}function or(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function cr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ur(e,t){return function(n){return e(t(n))}}function lr(e,t){var n=-1,r=e.length,i=0,s=[];while(++n-1}function Hr(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t=t?e:t)),e}function gi(e,t,n,r,i,f){var a,o=t&p,c=t&b,u=t&m;if(n&&(a=i?n(e,r,i,f):n(e)),a!==s)return a;if(!_u(e))return e;var l=cu(e);if(l){if(a=ta(e),!o)return rf(e,a)}else{var d=Xf(e),h=d==X||d==J;if(pu(e))return $s(e,o);if(d==ne||d==V||h&&!i){if(a=c||h?{}:na(e),!o)return c?af(e,hi(a,e)):ff(e,di(a,e))}else{if(!Jt[d])return i?e:{};a=ra(e,d,o)}}f||(f=new Jr);var g=f.get(e);if(g)return g;f.set(e,a),Uu(e)?e.forEach((function(r){a.add(gi(r,t,n,r,e,f))})):Pu(e)&&e.forEach((function(r,i){a.set(i,gi(r,t,n,i,e,f))}));var k=u?c?Kf:jf:c?xl:Tl,y=l?s:k(e);return En(y||e,(function(r,i){y&&(i=r,r=e[i]),ci(a,i,gi(r,t,n,i,e,f))})),a}function ki(e){var t=Tl(e);return function(n){return yi(n,e,t)}}function yi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],f=t[i],a=e[i];if(a===s&&!(i in e)||!f(a))return!1}return!0}function wi(e,t,n){if("function"!=typeof e)throw new st(c);return _a((function(){e.apply(s,n)}),t)}function vi(e,t,n,r){var i=-1,s=An,f=!0,o=e.length,c=[],u=t.length;if(!o)return c;n&&(t=Cn(t,Zn(n))),r?(s=Pn,f=!1):t.length>=a&&(s=Jn,f=!1,t=new Yr(t));e:while(++ii?0:i+n),r=r===s||r>i?i:Yu(r),r<0&&(r+=i),r=n>r?0:Zu(r);while(n0&&n(a)?t>1?Ci(a,t-1,n,r,i):Sn(i,a):r||(i[i.length]=a)}return i}var Si=lf(),Ni=lf(!0);function Ii(e,t){return e&&Si(e,t,Tl)}function Fi(e,t){return e&&Ni(e,t,Tl)}function Oi(e,t){return _n(t,(function(t){return Eu(e[t])}))}function Li(e,t){t=Gs(t,e);var n=0,r=t.length;while(null!=e&&nt}function Ui(e,t){return null!=e&<.call(e,t)}function ji(e,t){return null!=e&&t in nt(e)}function Ki(e,t,n){return e>=Bt(t,n)&&e=120&&d.length>=120)?new Yr(o&&d):s}d=e[0];var h=-1,p=c[0];e:while(++h-1)a!==e&&_t.call(a,o,1),_t.call(e,o,1)}return e}function ms(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==s){var s=i;fa(i)?_t.call(e,i,1):Rs(e,i)}}return e}function gs(e,t){return e+Lt(zt()*(t-e+1))}function ks(e,t,r,i){var s=-1,f=Kt(Ot((t-e)/(r||1)),0),a=n(f);while(f--)a[i?f:++s]=e,e+=r;return a}function ys(e,t){var n="";if(!e||t<1||t>M)return n;do{t%2&&(n+=e),t=Lt(t/2),t&&(e+=e)}while(t);return n}function ws(e,t){return Aa(wa(e,t,Id),e+"")}function vs(e){return si(Hl(e))}function Es(e,t){var n=Hl(e);return Sa(n,mi(t,0,n.length))}function Ts(e,t,n,r){if(!_u(e))return e;t=Gs(t,e);var i=-1,f=t.length,a=f-1,o=e;while(null!=o&&++is?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;var f=n(s);while(++i>>1,f=e[s];null!==f&&!Ku(f)&&(n?f<=t:f=a){var u=t?null:Sf(e);if(u)return dr(u);f=!1,i=Jn,c=new Yr}else c=t?[]:o;e:while(++r=r?e:Ps(e,t,n)}var zs=Nt||function(e){return on.clearTimeout(e)};function $s(e,t){if(t)return e.slice();var n=e.length,r=vt?vt(n):new e.constructor(n);return e.copy(r),r}function qs(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ys(e,t){var n=t?qs(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Zs(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}function Xs(e){return pr?nt(pr.call(e)):{}}function Js(e,t){var n=t?qs(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Qs(e,t){if(e!==t){var n=e!==s,r=null===e,i=e===e,f=Ku(e),a=t!==s,o=null===t,c=t===t,u=Ku(t);if(!o&&!u&&!f&&e>t||f&&a&&c&&!o&&!u||r&&a&&c||!n&&c||!i)return 1;if(!r&&!f&&!u&&e=a)return o;var c=n[r];return o*("desc"==c?-1:1)}}return e.index-t.index}function tf(e,t,r,i){var s=-1,f=e.length,a=r.length,o=-1,c=t.length,u=Kt(f-a,0),l=n(c+u),d=!i;while(++o1?n[i-1]:s,a=i>2?n[2]:s;f=e.length>3&&"function"==typeof f?(i--,f):s,a&&aa(n[0],n[1],a)&&(f=i<3?s:f,i=1),t=nt(t);while(++r-1?i[f?t[a]:a]:s}}function kf(e){return Uf((function(t){var n=t.length,r=n,i=Ar.prototype.thru;e&&t.reverse();while(r--){var f=t[r];if("function"!=typeof f)throw new st(c);if(i&&!a&&"wrapper"==Hf(f))var a=new Ar([],!0)}r=a?r:n;while(++r1&&y.reverse(),d&&uo))return!1;var u=f.get(e),l=f.get(t);if(u&&l)return u==t&&l==e;var d=-1,h=!0,p=n&k?new Yr:s;f.set(e,t),f.set(t,e);while(++d1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ke,"{\n/* [wrapped with "+t+"] */\n")}function sa(e){return cu(e)||ou(e)||!!(At&&e&&e[At])}function fa(e,t){var n=typeof e;return t=null==t?M:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e0){if(++t>=I)return arguments[0]}else t=0;return e.apply(s,arguments)}}function Sa(e,t){var n=-1,r=e.length,i=r-1;t=t===s?r:t;while(++n1?e[t-1]:s;return n="function"==typeof n?(e.pop(),n):s,Mo(e,n)}));function zo(e){var t=vr(e);return t.__chain__=!0,t}function $o(e,t){return t(e),e}function qo(e,t){return t(e)}var Yo=Uf((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return bi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pr&&fa(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:qo,args:[i],thisArg:s}),new Ar(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(s),e}))):this.thru(i)}));function Zo(){return zo(this)}function Xo(){return new Ar(this.value(),this.__chain__)}function Jo(){this.__values__===s&&(this.__values__=$u(this.value()));var e=this.__index__>=this.__values__.length,t=e?s:this.__values__[this.__index__++];return{done:e,value:t}}function Qo(){return this}function ec(e){var t,n=this;while(n instanceof _r){var r=La(n);r.__index__=0,r.__values__=s,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function tc(){var e=this.__wrapped__;if(e instanceof Pr){var t=e;return this.__actions__.length&&(t=new Pr(this)),t=t.reverse(),t.__actions__.push({func:qo,args:[bo],thisArg:s}),new Ar(t,this.__chain__)}return this.thru(bo)}function nc(){return Us(this.__wrapped__,this.__actions__)}var rc=of((function(e,t,n){lt.call(e,n)?++e[n]:pi(e,n,1)}));function ic(e,t,n){var r=cu(e)?xn:xi;return n&&aa(e,t,n)&&(t=s),r(e,Vf(t,3))}function sc(e,t){var n=cu(e)?_n:Pi;return n(e,Vf(t,3))}var fc=gf(za),ac=gf($a);function oc(e,t){return Ci(gc(e,t),1)}function cc(e,t){return Ci(gc(e,t),D)}function uc(e,t,n){return n=n===s?1:Yu(n),Ci(gc(e,t),n)}function lc(e,t){var n=cu(e)?En:Ei;return n(e,Vf(t,3))}function dc(e,t){var n=cu(e)?Tn:Ti;return n(e,Vf(t,3))}var hc=of((function(e,t,n){lt.call(e,n)?e[n].push(t):pi(e,n,[t])}));function pc(e,t,n,r){e=lu(e)?e:Hl(e),n=n&&!r?Yu(n):0;var i=e.length;return n<0&&(n=Kt(i+n,0)),ju(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Un(e,t,n)>-1}var bc=ws((function(e,t,r){var i=-1,s="function"==typeof t,f=lu(e)?n(e.length):[];return Ei(e,(function(e){f[++i]=s?wn(t,e,r):Gi(e,t,r)})),f})),mc=of((function(e,t,n){pi(e,n,t)}));function gc(e,t){var n=cu(e)?Cn:ss;return n(e,Vf(t,3))}function kc(e,t,n,r){return null==e?[]:(cu(t)||(t=null==t?[]:[t]),n=r?s:n,cu(n)||(n=null==n?[]:[n]),ls(e,t,n))}var yc=of((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function wc(e,t,n){var r=cu(e)?Nn:Vn,i=arguments.length<3;return r(e,Vf(t,4),n,i,Ei)}function vc(e,t,n){var r=cu(e)?In:Vn,i=arguments.length<3;return r(e,Vf(t,4),n,i,Ti)}function Ec(e,t){var n=cu(e)?_n:Pi;return n(e,Hc(Vf(t,3)))}function Tc(e){var t=cu(e)?si:vs;return t(e)}function xc(e,t,n){t=(n?aa(e,t,n):t===s)?1:Yu(t);var r=cu(e)?fi:Es;return r(e,t)}function _c(e){var t=cu(e)?ai:As;return t(e)}function Ac(e){if(null==e)return 0;if(lu(e))return ju(e)?mr(e):e.length;var t=Xf(e);return t==Q||t==fe?e.size:ns(e).length}function Pc(e,t,n){var r=cu(e)?Fn:Cs;return n&&aa(e,t,n)&&(t=s),r(e,Vf(t,3))}var Cc=ws((function(e,t){if(null==e)return[];var n=t.length;return n>1&&aa(e,t[0],t[1])?t=[]:n>2&&aa(t[0],t[1],t[2])&&(t=[t[0]]),ls(e,Ci(t,1),[])})),Sc=It||function(){return on.Date.now()};function Nc(e,t){if("function"!=typeof t)throw new st(c);return e=Yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ic(e,t,n){return t=n?s:t,t=e&&null==t?e.length:t,If(e,A,s,s,s,s,t)}function Fc(e,t){var n;if("function"!=typeof t)throw new st(c);return e=Yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=s),n}}var Oc=ws((function(e,t,n){var r=y;if(n.length){var i=lr(n,Gf(Oc));r|=x}return If(e,r,t,n,i)})),Lc=ws((function(e,t,n){var r=y|w;if(n.length){var i=lr(n,Gf(Lc));r|=x}return If(t,r,e,n,i)}));function Rc(e,t,n){t=n?s:t;var r=If(e,E,s,s,s,s,s,t);return r.placeholder=Rc.placeholder,r}function Dc(e,t,n){t=n?s:t;var r=If(e,T,s,s,s,s,s,t);return r.placeholder=Dc.placeholder,r}function Mc(e,t,n){var r,i,f,a,o,u,l=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new st(c);function b(t){var n=r,f=i;return r=i=s,l=t,a=e.apply(f,n),a}function m(e){return l=e,o=_a(y,t),d?b(e):a}function g(e){var n=e-u,r=e-l,i=t-n;return h?Bt(i,f-r):i}function k(e){var n=e-u,r=e-l;return u===s||n>=t||n<0||h&&r>=f}function y(){var e=Sc();if(k(e))return w(e);o=_a(y,g(e))}function w(e){return o=s,p&&r?b(e):(r=i=s,a)}function v(){o!==s&&zs(o),l=0,r=u=i=o=s}function E(){return o===s?a:w(Sc())}function T(){var e=Sc(),n=k(e);if(r=arguments,i=this,u=e,n){if(o===s)return m(u);if(h)return zs(o),o=_a(y,t),b(u)}return o===s&&(o=_a(y,t)),a}return t=Xu(t)||0,_u(n)&&(d=!!n.leading,h="maxWait"in n,f=h?Kt(Xu(n.maxWait)||0,t):f,p="trailing"in n?!!n.trailing:p),T.cancel=v,T.flush=E,T}var Uc=ws((function(e,t){return wi(e,1,t)})),jc=ws((function(e,t,n){return wi(e,Xu(t)||0,n)}));function Kc(e){return If(e,C)}function Bc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new st(c);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var f=e.apply(this,r);return n.cache=s.set(i,f)||s,f};return n.cache=new(Bc.Cache||Gr),n}function Hc(e){if("function"!=typeof e)throw new st(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Gc(e){return Fc(2,e)}Bc.Cache=Gr;var Vc=Vs((function(e,t){t=1==t.length&&cu(t[0])?Cn(t[0],Zn(Vf())):Cn(Ci(t,1),Zn(Vf()));var n=t.length;return ws((function(r){var i=-1,s=Bt(r.length,n);while(++i=t})),ou=Vi(function(){return arguments}())?Vi:function(e){return Au(e)&<.call(e,"callee")&&!xt.call(e,"callee")},cu=n.isArray,uu=pn?Zn(pn):Wi;function lu(e){return null!=e&&xu(e.length)&&!Eu(e)}function du(e){return Au(e)&&lu(e)}function hu(e){return!0===e||!1===e||Au(e)&&Di(e)==$}var pu=Dt||Yd,bu=bn?Zn(bn):zi;function mu(e){return Au(e)&&1===e.nodeType&&!Ru(e)}function gu(e){if(null==e)return!0;if(lu(e)&&(cu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||Bu(e)||ou(e)))return!e.length;var t=Xf(e);if(t==Q||t==fe)return!e.size;if(ha(e))return!ns(e).length;for(var n in e)if(lt.call(e,n))return!1;return!0}function ku(e,t){return $i(e,t)}function yu(e,t,n){n="function"==typeof n?n:s;var r=n?n(e,t):s;return r===s?$i(e,t,s,n):!!r}function wu(e){if(!Au(e))return!1;var t=Di(e);return t==Z||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Ru(e)}function vu(e){return"number"==typeof e&&Mt(e)}function Eu(e){if(!_u(e))return!1;var t=Di(e);return t==X||t==J||t==z||t==ie}function Tu(e){return"number"==typeof e&&e==Yu(e)}function xu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=M}function _u(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Au(e){return null!=e&&"object"==typeof e}var Pu=mn?Zn(mn):Yi;function Cu(e,t){return e===t||Zi(e,t,zf(t))}function Su(e,t,n){return n="function"==typeof n?n:s,Zi(e,t,zf(t),n)}function Nu(e){return Lu(e)&&e!=+e}function Iu(e){if(da(e))throw new i(o);return Xi(e)}function Fu(e){return null===e}function Ou(e){return null==e}function Lu(e){return"number"==typeof e||Au(e)&&Di(e)==ee}function Ru(e){if(!Au(e)||Di(e)!=ne)return!1;var t=Et(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==bt}var Du=gn?Zn(gn):Ji;function Mu(e){return Tu(e)&&e>=-M&&e<=M}var Uu=kn?Zn(kn):Qi;function ju(e){return"string"==typeof e||!cu(e)&&Au(e)&&Di(e)==ae}function Ku(e){return"symbol"==typeof e||Au(e)&&Di(e)==oe}var Bu=yn?Zn(yn):es;function Hu(e){return e===s}function Gu(e){return Au(e)&&Xf(e)==ue}function Vu(e){return Au(e)&&Di(e)==le}var Wu=Af(is),zu=Af((function(e,t){return e<=t}));function $u(e){if(!e)return[];if(lu(e))return ju(e)?gr(e):rf(e);if(Pt&&e[Pt])return or(e[Pt]());var t=Xf(e),n=t==Q?cr:t==fe?dr:Hl;return n(e)}function qu(e){if(!e)return 0===e?e:0;if(e=Xu(e),e===D||e===-D){var t=e<0?-1:1;return t*U}return e===e?e:0}function Yu(e){var t=qu(e),n=t%1;return t===t?n?t-n:t:0}function Zu(e){return e?mi(Yu(e),0,K):0}function Xu(e){if("number"==typeof e)return e;if(Ku(e))return j;if(_u(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=_u(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var n=Ye.test(e);return n||Xe.test(e)?sn(e.slice(2),n?2:8):qe.test(e)?j:+e}function Ju(e){return sf(e,xl(e))}function Qu(e){return e?mi(Yu(e),-M,M):0===e?e:0}function el(e){return null==e?"":Os(e)}var tl=cf((function(e,t){if(ha(t)||lu(t))sf(t,Tl(t),e);else for(var n in t)lt.call(t,n)&&ci(e,n,t[n])})),nl=cf((function(e,t){sf(t,xl(t),e)})),rl=cf((function(e,t,n,r){sf(t,xl(t),e,r)})),il=cf((function(e,t,n,r){sf(t,Tl(t),e,r)})),sl=Uf(bi);function fl(e,t){var n=Tr(e);return null==t?n:di(n,t)}var al=ws((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:s;i&&aa(t[0],t[1],i)&&(r=1);while(++n1),t})),sf(e,Kf(e),n),r&&(n=gi(n,p|b|m,Lf));var i=t.length;while(i--)Rs(n,t[i]);return n}));function Nl(e,t){return Fl(e,Hc(Vf(t)))}var Il=Uf((function(e,t){return null==e?{}:ds(e,t)}));function Fl(e,t){if(null==e)return{};var n=Cn(Kf(e),(function(e){return[e]}));return t=Vf(t),hs(e,n,(function(e,n){return t(e,n[0])}))}function Ol(e,t,n){t=Gs(t,e);var r=-1,i=t.length;i||(i=1,e=s);while(++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=zt();return Bt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return gs(e,t)}var $l=pf((function(e,t,n){return t=t.toLowerCase(),e+(n?ql(t):t)}));function ql(e){return vd(el(e).toLowerCase())}function Yl(e){return e=el(e),e&&e.replace(Qe,nr).replace(Vt,"")}function Zl(e,t,n){e=el(e),t=Os(t);var r=e.length;n=n===s?r:mi(Yu(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Xl(e){return e=el(e),e&&Se.test(e)?e.replace(Pe,rr):e}function Jl(e){return e=el(e),e&&Me.test(e)?e.replace(De,"\\$&"):e}var Ql=pf((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=pf((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=hf("toLowerCase");function nd(e,t,n){e=el(e),t=Yu(t);var r=t?mr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Tf(Lt(i),n)+e+Tf(Ot(i),n)}function rd(e,t,n){e=el(e),t=Yu(t);var r=t?mr(e):0;return t&&r>>0,n?(e=el(e),e&&("string"==typeof t||null!=t&&!Du(t))&&(t=Os(t),!t&&fr(e))?Ws(gr(e),0,n):e.split(t,n)):[]}var ud=pf((function(e,t,n){return e+(n?" ":"")+vd(t)}));function ld(e,t,n){return e=el(e),n=null==n?0:mi(Yu(n),0,e.length),t=Os(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=vr.templateSettings;n&&aa(e,t,n)&&(t=s),e=el(e),t=rl({},t,r,Ff);var f,a,o=rl({},t.imports,r.imports,Ff),c=Tl(o),l=Xn(o,c),d=0,h=t.interpolate||et,p="__p += '",b=rt((t.escape||et).source+"|"+h.source+"|"+(h===Fe?ze:et).source+"|"+(t.evaluate||et).source+"|$","g"),m="//# sourceURL="+(lt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zt+"]")+"\n";e.replace(b,(function(t,n,r,i,s,o){return r||(r=i),p+=e.slice(d,o).replace(tt,ir),n&&(f=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=o+t.length,t})),p+="';\n";var g=lt.call(t,"variable")&&t.variable;if(g){if(Ve.test(g))throw new i(u)}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(Te,""):p).replace(xe,"$1").replace(_e,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(f?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var k=Td((function(){return je(c,m+"return "+p).apply(s,l)}));if(k.source=p,wu(k))throw k;return k}function hd(e){return el(e).toLowerCase()}function pd(e){return el(e).toUpperCase()}function bd(e,t,n){if(e=el(e),e&&(n||t===s))return Yn(e);if(!e||!(t=Os(t)))return e;var r=gr(e),i=gr(t),f=Qn(r,i),a=er(r,i)+1;return Ws(r,f,a).join("")}function md(e,t,n){if(e=el(e),e&&(n||t===s))return e.slice(0,kr(e)+1);if(!e||!(t=Os(t)))return e;var r=gr(e),i=er(r,gr(t))+1;return Ws(r,0,i).join("")}function gd(e,t,n){if(e=el(e),e&&(n||t===s))return e.replace(Ue,"");if(!e||!(t=Os(t)))return e;var r=gr(e),i=Qn(r,gr(t));return Ws(r,i).join("")}function kd(e,t){var n=S,r=N;if(_u(t)){var i="separator"in t?t.separator:i;n="length"in t?Yu(t.length):n,r="omission"in t?Os(t.omission):r}e=el(e);var f=e.length;if(fr(e)){var a=gr(e);f=a.length}if(n>=f)return e;var o=n-mr(r);if(o<1)return r;var c=a?Ws(a,0,o).join(""):e.slice(0,o);if(i===s)return c+r;if(a&&(o+=c.length-o),Du(i)){if(e.slice(o).search(i)){var u,l=c;i.global||(i=rt(i.source,el($e.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(l))var d=u.index;c=c.slice(0,d===s?o:d)}}else if(e.indexOf(Os(i),o)!=o){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r}function yd(e){return e=el(e),e&&Ce.test(e)?e.replace(Ae,yr):e}var wd=pf((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),vd=hf("toUpperCase");function Ed(e,t,n){return e=el(e),t=n?s:t,t===s?ar(e)?Er(e):Rn(e):e.match(t)||[]}var Td=ws((function(e,t){try{return wn(e,s,t)}catch(n){return wu(n)?n:new i(n)}})),xd=Uf((function(e,t){return En(t,(function(t){t=Ia(t),pi(e,t,Oc(e[t],e))})),e}));function _d(e){var t=null==e?0:e.length,n=Vf();return e=t?Cn(e,(function(e){if("function"!=typeof e[1])throw new st(c);return[n(e[0]),e[1]]})):[],ws((function(n){var r=-1;while(++rM)return[];var n=K,r=Bt(e,K);t=Vf(t),e-=K;var i=$n(r,t);while(++n0||t<0)?new Pr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==s&&(t=Yu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Pr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pr.prototype.toArray=function(){return this.take(K)},Ii(Pr.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=vr[r?"take"+("last"==t?"Right":""):t],f=r||/^find/.test(t);i&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,o=t instanceof Pr,c=a[0],u=o||cu(t),l=function(e){var t=i.apply(vr,Sn([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(o=u=!1);var d=this.__chain__,h=!!this.__actions__.length,p=f&&!d,b=o&&!h;if(!f&&u){t=b?t:new Pr(this);var m=e.apply(t,a);return m.__actions__.push({func:qo,args:[l],thisArg:s}),new Ar(m,d)}return p&&b?e.apply(this,a):(m=this.thru(l),p?r?m.value()[0]:m.value():m)})})),En(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ft[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(cu(i)?i:[],e)}return this[n]((function(n){return t.apply(cu(n)?n:[],e)}))}})),Ii(Pr.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";lt.call(cn,r)||(cn[r]=[]),cn[r].push({name:t,func:n})}})),cn[yf(s,w).name]=[{name:"wrapper",func:s}],Pr.prototype.clone=Cr,Pr.prototype.reverse=Sr,Pr.prototype.value=Nr,vr.prototype.at=Yo,vr.prototype.chain=Zo,vr.prototype.commit=Xo,vr.prototype.next=Jo,vr.prototype.plant=ec,vr.prototype.reverse=tc,vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=nc,vr.prototype.first=vr.prototype.head,Pt&&(vr.prototype[Pt]=Qo),vr},xr=Tr();on._=xr,i=function(){return xr}.call(t,n,t,r),i===s||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f06":function(e,t,n){"use strict";e.exports=e=>({data:n("0db8")(e),get:n("c0dd")(e),links:n("4eff")(e),new:n("cc31")(e),patch:n("c8c2")(e),put:n("1cba")(e),stat:n("34ca")(e)})},"2f48":function(e,t,n){e.exports={encode:n("ce9f"),decode:n("b470"),encodingLength:n("8590")}},"2fc8":function(e,t,n){"use strict";function r(){if("undefined"===typeof window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}e.exports=n("78ae")(window,r)},3124:function(e,t,n){"use strict";const r=n("4ce8"),i=n("8804"),s=n("9878"),f=n("15e4"),a=n("5d6d");e.exports=s(e=>{async function*t(t,n={}){const s=await e.post("get",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:""+(t instanceof Uint8Array?new i(t):t),...n}),headers:n.headers}),o=r.extract();for await(const{header:e,body:r}of o(s.iterator()))"directory"===e.type?yield{type:"dir",path:e.name}:yield{type:"file",path:e.name,content:a(r,e=>e.slice())}}return t})},3132:function(e,t,n){const r=n("2ef0"),i=n("5a6c"),s=n("c960"),f=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e},a=function(e){const t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null},o=function(e){const t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null},c=function(e){const t=typeof e;if("string"===t)return s.isHexStrict(e)?new i(e.replace(/0x/i,""),16):new i(e,10);if("number"===t)return new i(e);if(s.isBigNumber(e))return new i(e.toString(10));if(s.isBN(e))return e;throw new Error(e+" is not a number")},u=function(e,t,n){let r,o;if(e=f(e),"bytes"===e){if(t.replace(/^0x/i,"").length%2!==0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return s.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(r=n?64:40,!s.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return s.leftPad(t.toLowerCase(),r)}if(r=a(e),e.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(n&&(r=32),r<1||r>32||r256)throw new Error(`Invalid uint${r} size`);if(o=c(t),o.bitLength()>r)throw new Error(`Supplied uint exceeds width: ${r} vs ${o.bitLength()}`);if(o.lt(new i(0)))throw new Error(`Supplied uint ${o.toString()} is negative`);return r?s.leftPad(o.toString("hex"),r/8*2):o}if(e.startsWith("int")){if(r%8||r<8||r>256)throw new Error(`Invalid int${r} size`);if(o=c(t),o.bitLength()>r)throw new Error(`Supplied int exceeds width: ${r} vs ${o.bitLength()}`);return o.lt(new i(0))?o.toTwos(r).toString("hex"):r?s.leftPad(o.toString("hex"),r/8*2):o}throw new Error("Unsupported or invalid type: "+e)},l=function(e){if(r.isArray(e))throw new Error("Autodetection of array types is not supported.");let t,n,f,a="";if(r.isObject(e)&&(Object.prototype.hasOwnProperty.call(e,"v")||Object.prototype.hasOwnProperty.call(e,"t")||Object.prototype.hasOwnProperty.call(e,"value")||Object.prototype.hasOwnProperty.call(e,"type"))?(t=Object.prototype.hasOwnProperty.call(e,"t")?e.t:e.type,a=Object.prototype.hasOwnProperty.call(e,"v")?e.v:e.value):(t=s.toHex(e,!0),a=s.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!==typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),r.isArray(a)){if(f=o(t),f&&a.length!==f)throw new Error(`${t} is not matching the given array ${JSON.stringify(a)}`);f=a.length}return r.isArray(a)?(n=a.map((function(e){return u(t,e,f).toString("hex").replace("0x","")})),n.join("")):(n=u(t,a,f),n.toString("hex").replace("0x",""))},d=function(){const e=Array.prototype.slice.call(arguments),t=r.map(e,l);return s.sha3("0x"+t.join(""))};e.exports=d},31327:function(e,t,n){const r=n("2085");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},3156:function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");function f(e){const t={cid:new r(e.Hash)};return e.Error&&(t.error=new Error(e.Error)),t}e.exports=i(e=>{async function*t(t,n={}){Array.isArray(t)||(t=[t]);const i=await e.post("block/rm",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t.map(e=>new r(e).toString()),"stream-channels":!0,...n}),headers:n.headers});for await(const e of i.ndjson())yield f(e)}return t})},3193:function(e,t,n){var r=n("8327");function i(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function s(e,t,n,r,i,s){c[e]=c[e]+c[t]+i,c[r]=f(c[r]^c[e],16),c[n]=c[n]+c[r],c[t]=f(c[t]^c[n],12),c[e]=c[e]+c[t]+s,c[r]=f(c[r]^c[e],8),c[n]=c[n]+c[r],c[t]=f(c[t]^c[n],7)}function f(e,t){return e>>>t^e<<32-t}var a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),o=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),c=new Uint32Array(16),u=new Uint32Array(16);function l(e,t){var n=0;for(n=0;n<8;n++)c[n]=e.h[n],c[n+8]=a[n];for(c[12]^=e.t,c[13]^=e.t/4294967296,t&&(c[14]=~c[14]),n=0;n<16;n++)u[n]=i(e.b,4*n);for(n=0;n<10;n++)s(0,4,8,12,u[o[16*n+0]],u[o[16*n+1]]),s(1,5,9,13,u[o[16*n+2]],u[o[16*n+3]]),s(2,6,10,14,u[o[16*n+4]],u[o[16*n+5]]),s(3,7,11,15,u[o[16*n+6]],u[o[16*n+7]]),s(0,5,10,15,u[o[16*n+8]],u[o[16*n+9]]),s(1,6,11,12,u[o[16*n+10]],u[o[16*n+11]]),s(2,7,8,13,u[o[16*n+12]],u[o[16*n+13]]),s(3,4,9,14,u[o[16*n+14]],u[o[16*n+15]]);for(n=0;n<8;n++)e.h[n]^=c[n]^c[n+8]}function d(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var n=t?t.length:0;if(t&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");var r={h:new Uint32Array(a),b:new Uint32Array(64),c:0,t:0,outlen:e};return r.h[0]^=16842752^n<<8^e,n>0&&(h(r,t),r.c=64),r}function h(e,t){for(var n=0;n>2]>>8*(3&n)&255;return t}function b(e,t,n){n=n||32,e=r.normalizeInput(e);var i=d(n,t);return h(i,e),p(i)}function m(e,t,n){var i=b(e,t,n);return r.toHex(i)}e.exports={blake2s:b,blake2sHex:m,blake2sInit:d,blake2sUpdate:h,blake2sFinal:p}},"32ba":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},3301:function(e,t,n){"use strict";const{Buffer:r}=n("b639"),i=Symbol.for("BufferList");function s(e){if(!(this instanceof s))return new s(e);s._init.call(this,e)}s._init=function(e){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},s.prototype._new=function(e){return new s(e)},s.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},s.prototype.slice=function(e,t){return"number"===typeof e&&e<0&&(e+=this.length),"number"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},s.prototype.copy=function(e,t,n,i){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||r.alloc(0);if(i<=0)return e||r.alloc(0);const s=!!e,f=this._offset(n),a=i-n;let o=a,c=s&&t||0,u=f[1];if(0===n&&i===this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(let t=0;tt)){this._bufs[r].copy(e,c,u,u+o),c+=t;break}this._bufs[r].copy(e,c,u),c+=t,o-=t,u&&(u=0)}return e.length>c?e.slice(0,c):e},s.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),r=this._offset(t),i=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!==n[1]&&(i[0]=i[0].slice(n[1])),this._new(i)},s.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},s.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},s.prototype.duplicate=function(){const e=this._new();for(let t=0;tthis.length?this.length:t;const i=this._offset(t);let s=i[0],f=i[1];for(;s=e.length){const n=t.indexOf(e,f);if(-1!==n)return this._reverseOffset([s,n]);f=t.length-e.length+1}else{const t=this._reverseOffset([s,f]);if(this._match(t,e))return t;f++}}f=0}return-1},s.prototype._match=function(e,t){if(this.length-e({tail:n("42d2")(e),ls:n("74ab")(e),level:n("3bf2")(e)})},"336c":function(e,t,n){const r=n("b02d");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},3394:function(e,t,n){e.exports={encode:n("c825"),decode:n("5b78"),encodingLength:n("22d1")}},"33a3":function(e,t,n){"use strict";globalThis.fetch&&globalThis.Headers&&globalThis.Request&&globalThis.Response?e.exports={default:globalThis.fetch,Headers:globalThis.Headers,Request:globalThis.Request,Response:globalThis.Response}:e.exports={default:n("a18f").default,Headers:n("a18f").Headers,Request:n("a18f").Request,Response:n("a18f").Response}},"33bb":function(e,t,n){(function(t){const r=n("2ef0"),i=n("dac9"),s=n("921c"),{kip37JsonInterface:f,kip37ByteCode:a,determineSendParams:o,formatParamForUint256:c,validateDeployParameterForKIP37:u,interfaceIds:l}=n("9018"),{isAddress:d,toBuffer:h,isHexStrict:p,toHex:b,stripHexPrefix:m,leftPad:g}=n("4f8d"),k=n("94e5");class y extends s{static create(e,t){return new y(e,t)}static deploy(e,t,n){u(e);const{uri:i}=e,s=new y;return void 0!==n&&s.setWallet(n),r.isString(t)&&(t={from:t,gas:7e6,value:0}),t.gas=void 0!==t.gas?t.gas:7e6,s.deploy({data:a,arguments:[i]}).send(t)}static detectInterface(e){const t=new y(e);return t.detectInterface()}constructor(e,t=f){if(e)if(r.isString(e)){if(!d(e))throw new Error("Invalid token address "+e)}else t=e,e=void 0;super(t,e),this.setWallet(y.wallet)}clone(e=this.options.address){const t=new this.constructor(e,this.options.jsonInterface);return t.setWallet(this._wallet),t}async detectInterface(){const e={IKIP37:!1,IKIP37Metadata:!1,IKIP37Mintable:!1,IKIP37Burnable:!1,IKIP37Pausable:!1},t="This contract does not support KIP-13.",n=this._address;try{const r=await k.isImplementedKIP13Interface(n);if(!0!==r)throw new Error(t);return e.IKIP37=await this.supportsInterface(l.kip37.IKIP37),!1===e.IKIP37?e:(await Promise.all(Object.keys(l.kip37).map(async t=>{l.kip37[t]!==l.kip37.IKIP37&&(e[t]=await this.supportsInterface(l.kip37[t]))})),e)}catch(r){throw new Error(t)}}async supportsInterface(e){const t=await this.methods.supportsInterface(e).call();return t}async uri(e){let t=await this.methods.uri(c(e)).call();if(t.includes("{id}")){let n=m(b(e));n=g(n,64,"0"),t=t.replace("{id}",n)}return t}async totalSupply(e){const t=await this.methods.totalSupply(c(e)).call();return new i(t)}async balanceOf(e,t){const n=await this.methods.balanceOf(e,c(t)).call();return new i(n)}async balanceOfBatch(e,t){if(t.length!==e.length)throw new Error("ids and accounts must have the same length.");const n=[];for(let i=0;i0)throw new Error("Invalid parameters");i=n,n=""}const s=this.methods.create(c(e),c(t),n);return i=await o(s,i,this.options),s.send(i)}async setApprovalForAll(e,t,n={}){const r=this.methods.setApprovalForAll(e,t);return n=await o(r,n,this.options),r.send(n)}async safeTransferFrom(e,n,i,s,f,a={}){if(f&&r.isObject(f)&&(void 0!==f.gas||void 0!==f.from)){if(Object.keys(a).length>0)throw new Error("Invalid parameters");a=f,f=t.from("")}f&&!r.isBuffer(f)&&(r.isString(f)&&!p(f)&&(f=b(f)),f=h(f));const u=this.methods.safeTransferFrom(e,n,c(i),c(s),f);return a=await o(u,a,this.options),u.send(a)}async safeBatchTransferFrom(e,n,i,s,f,a={}){if(f&&r.isObject(f)&&(void 0!==f.gas||void 0!==f.from)){if(Object.keys(a).length>0)throw new Error("Invalid parameters");a=f,f=t.from("")}if(f&&!r.isBuffer(f)&&(r.isString(f)&&!p(f)&&(f=b(f)),f=h(f)),i.length!==s.length)throw new Error("ids and amounts must have the same length.");const u=[],l=[];for(let t=0;tasync(t={})=>{const n=await e.post("swarm/addrs/local",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),{Strings:i}=await n.json();return(i||[]).map(e=>r(e))})},"34ca":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t,n={})=>{const i=await e.post("object/stat",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:""+(t instanceof Uint8Array?new r(t):t),...n}),headers:n.headers});return i.json()})},"34eb":function(e,t,n){(function(r){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function s(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)}function f(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function a(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",VUE_APP_LOG:"true",VUE_APP_METADATA_URL:"https://api.cilo.kr/v1",VUE_APP_MODE_TEST:"true",VUE_APP_OPENAPI_AUTH_URL:"https://jsxyrv7tg2.execute-api.ap-northeast-2.amazonaws.com/staging/v1",VUE_APP_OPENAPI_URL:"https://1hyt30n5re.execute-api.ap-northeast-2.amazonaws.com/staging/v1",VUE_APP_STAGE:"staging",VUE_APP_UPLOAD_URL:"https://4w85lxmyag.execute-api.ap-northeast-2.amazonaws.com/staging/v1",VUE_APP_VERSION:"v1",BASE_URL:"/"}).DEBUG),e}function o(){try{return localStorage}catch(e){}}t.formatArgs=s,t.save=f,t.load=a,t.useColors=i,t.storage=o(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("dc90")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("4362"))},3508:function(e,t,n){const r=n("6367");class i extends Array{static create(e){const t=new i;for(const n of e)t.push(r.create(n.address,n.storageKeys));return t}static decode(e){const t=new i;for(const n of e)t.push(r.create(n[0],n[1]));return t}push(e){return e instanceof r||(e=r.create(e)),super.push(e)}encodeToBytes(){const e=[];for(let t=0;t=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},"36a7":function(e,t,n){const{last:r}=n("2ef0"),i=n("c121");function s(){this.list=[]}function f(e,t){return function n(i,s){if(0===e.length)return;2===arguments.length&&"function"!==typeof s&&(i=s);const f=e.shift();f(i,n.bind(null,i),(function(){t&&(0!==arguments.length&&(i=arguments[0]),e=[r(e)],n(i))}))}}s.prototype.getMiddlewares=function(){return this.list},s.prototype.registerMiddleware=function(e){if("function"!==typeof e)throw Error("Middleware should be a function");this.list.push(e)},s.prototype.applyMiddleware=function(e,t,n){e.type="outbound"===t?"request":"response",f(n?this.list.concat(n):[...this.list],"request"===e.type&&n)(e)};const a=new s;e.exports=a,e.exports.builtin=i},"36d0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8c49");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"36ea":function(e,t,n){"use strict";function r(e,t){for(const n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}function i(e,t,n){if(!e||"string"===typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"===typeof t&&(n=t,t=""),t&&(n.code=t);try{return r(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const t=function(){};t.prototype=Object.create(Object.getPrototypeOf(e));const s=r(new t,n);return s}}e.exports=i},"37b0":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nasync(t,n,i={})=>{const f=await e.post("object/patch/add-link",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:[""+(t instanceof Uint8Array?new r(t):t),n.Name||n.name||"",(n.Hash||n.cid||"").toString()||null],...i}),headers:i.headers}),{Hash:a}=await f.json();return new r(a)})},"3bd5":function(e,t,n){"use strict";const r=n("7ae7");e.exports=e=>{const t=r.singleton();return async(e,n)=>t.unsubscribe(e,n)}},"3bf2":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t,n,i={})=>{const f=await e.post("log/level",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:[t,n],...i}),headers:i.headers});return r(await f.json())})},"3cb9":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));let r=/(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zĀµĪ¼]*)/gi;function i(e="",t="ms"){var n=null;return e=e.replace(/(\d),(\d)/g,"$1$2"),e.replace(r,(function(e,t,r){r=i[r]||i[r.toLowerCase().replace(/s$/,"")],r&&(n=(n||0)+parseFloat(t,10)*r)})),n&&n/i[t]}i.nanosecond=i.ns=1e-6,i["Āµs"]=i["Ī¼s"]=i.us=i.microsecond=.001,i.millisecond=i.ms=1,i.second=i.sec=i.s=1e3*i.ms,i.minute=i.min=i.m=60*i.s,i.hour=i.hr=i.h=60*i.m,i.day=i.d=24*i.h,i.week=i.wk=i.w=7*i.d,i.month=i.b=30.4375*i.d,i.year=i.yr=i.y=365.25*i.d},"3cf7":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n{let f,a=t.protocol?t.protocol.replace(":",""):"http";a=(n[a]||s||a)+":";try{f=new r(e)}catch(c){f={}}const o=Object.assign({},t,{protocol:a||f.protocol,host:t.host||f.host});return new r(e,i(o)).toString()}},"3e79":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"3e7a":function(e,t,n){"use strict";const r=n("75a6"),i=n("787d"),s=(e,t)=>{let n=null;if("string"===typeof t?n=e=>e.Name===t:(t instanceof Uint8Array||r.isCID(t))&&(n=e=>i(e.Hash,t)),!n)throw new Error("second arg needs to be a name or CID");{const t=e.Links;let r=0;while(r{const t=async(t,n,i={})=>{if("string"!==typeof t)throw new Error("Invalid key type");const a={...i,...f(t,n)},o=await e.post("config",{timeout:i.timeout,signal:i.signal,searchParams:s(a),headers:i.headers});return r(await o.json())};return t});const f=(e,t)=>{switch(typeof t){case"boolean":return{arg:[e,t.toString()],bool:!0};case"string":return{arg:[e,t]};default:return{arg:[e,JSON.stringify(t)],json:!0}}}},"3ed3":function(e,t,n){"use strict";t.util=n("b623"),t.resolver=n("5669"),t.codec=t.util.codec,t.defaultHashAlg=t.util.defaultHashAlg},4064:function(e,t,n){"use strict";const r=n("f357"),i=n("416a"),{factory:s}=n("26d5"),{fromNumberTo32BitBuf:f}=n("9c49"),{fromString:a}=n("1466"),o=e=>async t=>{switch(e){case"sha3-224":return new Uint8Array(r.sha3_224.arrayBuffer(t));case"sha3-256":return new Uint8Array(r.sha3_256.arrayBuffer(t));case"sha3-384":return new Uint8Array(r.sha3_384.arrayBuffer(t));case"sha3-512":return new Uint8Array(r.sha3_512.arrayBuffer(t));case"shake-128":return new Uint8Array(r.shake128.create(128).update(t).arrayBuffer());case"shake-256":return new Uint8Array(r.shake256.create(256).update(t).arrayBuffer());case"keccak-224":return new Uint8Array(r.keccak224.arrayBuffer(t));case"keccak-256":return new Uint8Array(r.keccak256.arrayBuffer(t));case"keccak-384":return new Uint8Array(r.keccak384.arrayBuffer(t));case"keccak-512":return new Uint8Array(r.keccak512.arrayBuffer(t));case"murmur3-128":return a(i.x64.hash128(t),"base16");case"murmur3-32":return f(i.x86.hash32(t));default:throw new TypeError(e+" is not a supported algorithm")}},c=e=>e;e.exports={identity:c,sha1:s("sha1"),sha2256:s("sha2-256"),sha2512:s("sha2-512"),dblSha2256:s("dbl-sha2-256"),sha3224:o("sha3-224"),sha3256:o("sha3-256"),sha3384:o("sha3-384"),sha3512:o("sha3-512"),shake128:o("shake-128"),shake256:o("shake-256"),keccak224:o("keccak-224"),keccak256:o("keccak-256"),keccak384:o("keccak-384"),keccak512:o("keccak-512"),murmur3128:o("murmur3-128"),murmur332:o("murmur3-32"),addBlake:n("5a38")}},"40d5":function(e,t,n){"use strict";e.exports=e=>({ls:n("9398")(e),peers:n("4912")(e),publish:n("ea64")(e),subscribe:n("ddcd")(e),unsubscribe:n("3bd5")(e)})},"40ee":function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return k})),n.d(t,"v3",(function(){return j})),n.d(t,"v4",(function(){return B})),n.d(t,"v5",(function(){return $})),n.d(t,"NIL",(function(){return q})),n.d(t,"version",(function(){return Z})),n.d(t,"validate",(function(){return o})),n.d(t,"stringify",(function(){return p})),n.d(t,"parse",(function(){return w}));var i=new Uint8Array(16);function s(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(e){return"string"===typeof e&&f.test(e)}for(var o=a,c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!o(n))throw TypeError("Stringified UUID is invalid");return n}var d,h,p=l,b=0,m=0;function g(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var f=e.node||d,a=void 0!==e.clockseq?e.clockseq:h;if(null==f||null==a){var o=e.random||(e.rng||s)();null==f&&(f=d=[1|o[0],o[1],o[2],o[3],o[4],o[5]]),null==a&&(a=h=16383&(o[6]<<8|o[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:m+1,l=c-b+(u-m)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||c>b)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=c,m=u,h=a,c+=122192928e5;var g=(1e4*(268435455&c)+u)%4294967296;i[r++]=g>>>24&255,i[r++]=g>>>16&255,i[r++]=g>>>8&255,i[r++]=255&g;var k=c/4294967296*1e4&268435455;i[r++]=k>>>8&255,i[r++]=255&k,i[r++]=k>>>24&15|16,i[r++]=k>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var y=0;y<6;++y)i[r+y]=f[y];return t||p(i)}var k=g;function y(e){if(!o(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}var w=y;function v(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>5]>>>i%32&255,f=parseInt(r.charAt(s>>>4&15)+r.charAt(15&s),16);t.push(f)}return t}function P(e){return 14+(e+64>>>9<<4)+1}function C(e,t){e[t>>5]|=128<>5]|=(255&e[r/8])<>16)+(t>>16)+(n>>16);return r<<16|65535&n}function I(e,t){return e<>>32-t}function F(e,t,n,r,i,s){return N(I(N(N(t,e),N(r,s)),i),n)}function O(e,t,n,r,i,s,f){return F(t&n|~t&r,e,t,i,s,f)}function L(e,t,n,r,i,s,f){return F(t&r|n&~r,e,t,i,s,f)}function R(e,t,n,r,i,s,f){return F(t^n^r,e,t,i,s,f)}function D(e,t,n,r,i,s,f){return F(n^(t|~r),e,t,i,s,f)}var M=_,U=x("v3",48,M),j=U;function K(e,t,n){e=e||{};var r=e.random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return p(r)}var B=K;function H(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function G(e,t){return e<>>32-t}function V(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"===typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;y=k,k=g,g=G(m,30)>>>0,m=b,b=E}n[0]=n[0]+b>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+k>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}var W=V,z=x("v5",80,W),$=z,q="00000000-0000-0000-0000-000000000000";function Y(e){if(!o(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Z=Y},"40ff":function(e,t,n){"use strict";const r=n("0624"),{encodeText:i,decodeText:s,concat:f}=n("fe32");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h,t.names=Object.freeze(r.names),t.codes=Object.freeze(r.codes)},"416a":function(e,t,n){e.exports=n("24d2")},4177:function(e,t,n){"use strict";const r=n("9546");function i(e){return 4}function s(e,t,n,r){n.setUint32(r,e,!0),s.bytes=4}function f(e,t,n){const r=t.getUint32(n,!0);return f.bytes=4,r}e.exports=r(5,s,f,i)},"41c5":function(e,t,n){"use strict";const r=async e=>{const t=[];for await(const n of e)t.push(n);return t};e.exports=r},4227:function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nasync(t={})=>{const n=await e.post("dns",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers});return r(await n.json())})},"426c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("e8e2");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"42d2":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async function*(t={}){const n=await e.post("log/tail",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});yield*n.ndjson()})},"42dc":function(e,t,n){const r=n("2ef0"),i=n("f54c"),{formatters:s}=n("e19e"),f=n("2dc3").subscriptions,a=n("c8cf"),o=n("4f8d"),c=n("0cf2"),u=n("b994"),l=n("921c"),d=n("ba2c"),h=n("e024"),p=n("112f"),b=n("5af0"),m=n("a8c1"),g=n("7f6f"),{decodeFromRawTransaction:k}=n("0452"),y=function(...e){const t=this;i.packageInit(this,e);const n=this.setRequestManager;this.setRequestManager=function(e){return n(e),t.net.setRequestManager(e),t.personal.setRequestManager(e),t.accounts.setRequestManager(e),t.Contract._requestManager=t._requestManager,t.Contract.currentProvider=t._provider,!0};const y=this.setProvider;this.setProvider=function(...e){y.apply(t,e),t.setRequestManager(t._requestManager)};let w=null,v="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return w},set:function(e){e&&(w=o.toChecksumAddress(s.inputAddressFormatter(e))),t.Contract.defaultAccount=w,t.personal.defaultAccount=w,x.forEach((function(e){e.defaultAccount=w}))},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return v},set:function(e){if(!o.isValidBlockNumberCandidate(e))throw new Error("Invalid default block number.");v=e,t.Contract.defaultBlock=v,t.personal.defaultBlock=v,x.forEach((function(e){e.defaultBlock=v}))},enumerable:!0}),this.clearSubscriptions=t._requestManager.clearSubscriptions,this.decodeTransaction=k,this.net=new c(this),this.net.getNetworkType=m.bind(this),this.accounts=new p(this),this.personal=new u(this),this.personal.defaultAccount=this.defaultAccount;const E=this,T=function(){l.apply(this,arguments),i.packageInit(this,[E])};T.setProvider=function(){l.setProvider.apply(this,arguments)},T.prototype=Object.create(l.prototype),T.prototype.constructor=T,this.Contract=T,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract._requestManager=this._requestManager,this.Contract._klayAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.KIP7=d,this.KIP7.defaultAccount=this.defaultAccount,this.KIP7.defaultBlock=this.defaultBlock,this.KIP7._requestManager=this._requestManager,this.KIP7._klayAccounts=this.accounts,this.KIP7.currentProvider=this._requestManager.provider,this.KIP17=h,this.KIP17.defaultAccount=this.defaultAccount,this.KIP17.defaultBlock=this.defaultBlock,this.KIP17._requestManager=this._requestManager,this.KIP17._klayAccounts=this.accounts,this.KIP17.currentProvider=this._requestManager.provider,this.Iban=o.Iban,this.abi=b;const x=[...g.map(e=>new a(e)),new f({name:"subscribe",type:"klay",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:s.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[s.inputLogFormatter],outputFormatter:s.outputLogFormatter,subscriptionHandler:function(e){this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},syncing:{params:0,outputFormatter:s.outputSyncingFormatter,subscriptionHandler:function(e){const t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),r.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout((function(){t.emit("data",e),r.isFunction(t.callback)&&t.callback(null,e,t)}),0)):(this.emit("data",e),r.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout((function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),r.isFunction(t.callback)&&t.callback(null,t._isSyncing,t))}),500))}}}})];x.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager,t.accounts),e.defaultBlock=t.defaultBlock,e.defaultAccount=t.defaultAccount}))};e.exports=y},"431e":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("2054");e.exports=r(e=>{async function t(t={}){const n=await e.post("bootstrap/add",{timeout:t.timeout,signal:t.signal,searchParams:i({...t,default:!0}),headers:t.headers}),{Peers:r}=await n.json();return{Peers:r.map(e=>new s(e))}}return t})},4386:function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nasync(t,n,i={})=>{const f=await e.post("key/rename",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:[t,n],...i}),headers:i.headers});return r(await f.json())})},4434:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"449d":function(e,t,n){"use strict";const r=n("670b"),i=(e,t)=>({path:decodeURIComponent(new URL(e).pathname.split("/").pop()||""),content:s(e,t)});async function*s(e,t){const n=new r,i=await n.get(e,t);yield*i.iterator()}e.exports=i},4502:function(e,t,n){"use strict";const r=n("f016"),i=n("fc1f"),{rfc4648:s}=n("2a0e"),{decodeText:f,encodeText:a}=n("6dd0"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"451a":function(e,t,n){"use strict";const r=()=>{const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e};e.exports=r},"45ee":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;ne.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedSmartContractExecution+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeFeeDelegatedSmartContractExecution,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},4706:function(e,t,n){"use strict";const r=n("23bc"),i=n("ef4d"),s=e=>{if(i.isDAGLink(e))return e;if(!("cid"in e||"hash"in e||"Hash"in e||"multihash"in e))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new i(e.Name||e.name,e.Tsize||e.size,e.Hash||e.multihash||e.hash||e.cid)},f=(e,t)=>{const n=s(t);e.Links.push(n),r(e.Links)};e.exports=f},"47da":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},4815:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),{Value:s}=n("a36d"),f=n("9b62"),a=n("d46b");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("dht/get",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t instanceof Uint8Array?f(t):t,...n}),headers:n.headers});for await(const e of r.ndjson())if(e.Type===s)return a(e.Extra,"base64pad");throw new Error("not found")}return t})},4868:function(e,t,n){const r=n("b0e9");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"488a":function(e,t,n){"use strict";const r=n("1118"),{toString:i}=n("8765"),{fromString:s}=n("bd3b");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},4912:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t,n={})=>{n||"object"!==typeof t||(n=t||{},t=null);const r=await e.post("pubsub/peers",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),{Strings:s}=await r.json();return s||[]})},"491e":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>async function*(t={}){const n=await e.post("repo/gc",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers,transform:e=>({err:e.Error?new Error(e.Error):null,cid:(e.Key||{})["/"]?new r(e.Key["/"]):null})});yield*n.ndjson()})},4923:function(e,t,n){"use strict";e.exports=e=>({add:n("a5e1")(e),clear:n("6832")(e),rm:n("f0e2")(e),reset:n("431e")(e),list:n("0701")(e)})},4950:function(e,t,n){"use strict";const r=n("f016"),i=n("73f2"),{rfc4648:s}=n("cea9"),{decodeText:f,encodeText:a}=n("85fc"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},4958:function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:r}},"4a8c":function(e,t,n){"use strict";const r=n("2612"),i=n("9546");function s(e,t,n,i){r.encode(e<0?e+4294967296:e,t,i),s.bytes=r.encode.bytes}function f(e,t,n){const i=r.decode(e,n);return f.bytes=r.decode.bytes,i>2147483647?i-4294967296:i}function a(e){return r.encodingLength(e<0?e+4294967296:e)}e.exports=i(0,s,f,a)},"4b92":function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},"4bf1":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("config/profile/list",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),i=await n.json();return i.map(e=>r(e))})},"4c61":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},"4ccd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("0c4c");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"4ce8":function(e,t,n){t.extract=n("9058"),t.pack=n("dac4")},"4d2d":function(e,t,n){"use strict";const r=n("0fcf"),i=n("ce8a");e.exports=e=>i(e,r)},"4d59":function(e,t,n){"use strict";const r=n("8954");e.exports=e=>({add:n("c4f2")(e),addAll:n("9c68")(e),ls:n("e166")(e),rm:n("5912")(e),rmAll:n("2e61")(e),remote:new r(e)})},"4e03":function(e,t,n){"use strict";const r=n("c575"),i=n("0e80"),s=n("520b");e.exports={codec:s.RAW,defaultHashAlg:s.SHA2_256,resolver:{resolve:(e,t)=>{if("/"!==t)throw new Error("Only the root path / may be resolved");return{value:e,remainderPath:""}},tree:e=>({done:!0})},util:{deserialize:e=>e,serialize:e=>e,cid:async(t,n)=>{const f={cidVersion:1,hashAlg:e.exports.defaultHashAlg},a=Object.assign(f,n),o=await i(t,a.hashAlg),c=s.print[e.exports.codec],u=new r(a.cidVersion,c,o);return u}}}},"4e23":function(e,t,n){(function(t){const r=n("d335"),i=n("c57e"),s=n("3337"),f=(n("84e9"),new s.ec("secp256k1")),{keccak256:a,keccak256s:o}=n("f35a"),c=e=>{const t=a(r.concat(r.random(32),e||r.random(32))),n=r.concat(r.concat(r.random(32),t),r.random(32)),i=a(n);return l(i)},u=e=>{const t=o(e.slice(2));let n="0x";for(let r=0;r<40;r++)n+=parseInt(t[r+2],16)>7?e[r+2].toUpperCase():e[r+2];return n},l=e=>{const n=new t(e.slice(2),"hex"),r=f.keyFromPrivate(n),i="0x"+r.getPublic(!1,"hex").slice(2),s=a(i),o=u("0x"+s.slice(-40));return{address:o,privateKey:e}},d=([e,t,n])=>r.flatten([t,n,e]),h=e=>[r.slice(64,r.length(e),e),r.slice(0,32,e),r.slice(32,64,e)],p=e=>(n,s)=>{const a=f.keyFromPrivate(new t(s.slice(2),"hex")).sign(new t(n.slice(2),"hex"),{canonical:!0});return d([i.fromString(r.fromNumber(e+a.recoveryParam)),r.pad(32,r.fromNat("0x"+a.r.toString(16))),r.pad(32,r.fromNat("0x"+a.s.toString(16)))])},b=p(27),m=(e,n)=>{const i=h(n),s={v:r.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},o=f.recoverPubKey(new t(e.slice(2),"hex"),s,s.v<2?s.v:1-s.v%2),c="0x"+o.encode("hex",!1).slice(2),l=a(c),d=u("0x"+l.slice(-40));return d};e.exports={create:c,toChecksum:u,fromPrivate:l,sign:b,makeSigner:p,recover:m,encodeSignature:d,decodeSignature:h}}).call(this,n("b639").Buffer)},"4eca":function(e,t,n){"use strict";const r=n("ad8c"),{toString:i}=n("5be0"),{fromString:s}=n("ba36");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},"4eff":function(e,t,n){"use strict";const r=n("8804"),{DAGLink:i}=n("8141"),s=n("9878"),f=n("15e4");e.exports=s(e=>async(t,n={})=>{const s=await e.post("object/links",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:""+(t instanceof Uint8Array?new r(t):t),...n}),headers:n.headers}),a=await s.json();return(a.Links||[]).map(e=>new i(e.Name,e.Size,e.Hash))})},"4f82":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("diag/cmds",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});return n.json()})},"4f8d":function(e,t,n){(function(t){const r=n("2ef0"),i=n("70c1"),s=n("4e23"),f=n("c960"),a=n("3132"),o=n("0850"),c=n("f071"),u=n("9155"),l=n("7beb"),d=function(e,t,n,i){return!r.isObject(e)||e instanceof Error||!e.data||((r.isObject(e.data)||r.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=`${e.message}\n${e.data}`),r.isString(e)&&(e=new Error(e)),r.isFunction(i)&&i(e),r.isFunction(n)&&((t&&r.isFunction(t.listeners)&&t.listeners("error").length||r.isFunction(i))&&t.catch((function(){})),setTimeout((function(){n(e)}),1)),t&&r.isFunction(t.emit)&&setTimeout((function(){t.emit("error",e),t.removeAllListeners()}),1),t},h=function(e){return r.isObject(e)&&e.name&&-1!==e.name.indexOf("(")?e.name:`${e.name}(${N(!1,e.inputs).join(",")})`},p=function(e){if(!f.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");let t="",n=0;const r=e.length;for("0x"===e.substring(0,2)&&(n=2);n7?n+=e[r].toUpperCase():n+=e[r];return n},S=e=>!(!r.isString(e)||!e.match(/^0x[0-9A-Fa-f]*$/));function N(e,t){const n=[];return t.forEach((function(t){if("object"===typeof t.components){if("tuple"!==t.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");let i="";const s=t.type.indexOf("[");s>=0&&(i=t.type.substring(s));const f=N(e,t.components);r.isArray(f)&&e?n.push(`tuple(${f.join(",")})${i}`):e?n.push(`(${f})`):n.push(`(${f.join(",")})${i}`)}else n.push(t.type)})),n}const I=function(e){return"string"===typeof e&&("0x"===e.slice(0,2)||"0X"===e.slice(0,2))},F=function(e){return"string"!==typeof e?e:I(e)?"0x"+e.slice(2):"0x"+e},O=function(e){return"string"!==typeof e?e:I(e)?e.slice(2):e},L=e=>{if(65!==t.byteLength(O(e),"hex"))throw new Error("Invalid signature: The length of raw signature must be 65 byte.");const n=s.decodeSignature(e).map(e=>f.makeEven(f.trimLeadingZero(e)));return new l(n)};e.exports={_fireError:d,_jsonInterfaceMethodToString:h,_flattenTypes:N,randomHex:o,_:r,soliditySha3:a,toChecksumAddress:C,hexToAscii:p,toAscii:p,asciiToHex:b,fromAscii:b,unitMap:y,klayUnit:w,toWei:k,fromWei:g,unitKlayMap:y,toPeb:x,fromPeb:T,convertFromPeb:_,convertToPeb:A,BN:f.BN,isBN:f.isBN,BigNumber:f.BigNumber,isBigNumber:f.isBigNumber,isHex:f.isHex,isHexStrict:f.isHexStrict,sha3:f.sha3,keccak256:f.sha3,isAddress:f.isAddress,checkAddressChecksum:f.checkAddressChecksum,toHex:f.toHex,toBN:f.toBN,toBuffer:f.toBuffer,numberToBuffer:f.numberToBuffer,bufferToHex:f.bufferToHex,bytesToHex:f.bytesToHex,hexToBytes:f.hexToBytes,hexToNumberString:f.hexToNumberString,hexToNumber:f.hexToNumber,toDecimal:f.hexToNumber,numberToHex:f.numberToHex,fromDecimal:f.numberToHex,hexToUtf8:f.hexToUtf8,hexToString:f.hexToUtf8,toUtf8:f.hexToUtf8,utf8ToHex:f.utf8ToHex,stringToHex:f.utf8ToHex,fromUtf8:f.utf8ToHex,padLeft:f.leftPad,leftPad:f.leftPad,padRight:f.rightPad,rightPad:f.rightPad,toTwosComplement:f.toTwosComplement,isTxHash:f.isTxHash,isTxHashStrict:f.isTxHashStrict,isValidHash:f.isValidHash,isValidHashStrict:f.isValidHashStrict,promiEvent:c,Iban:u,isHexParameter:S,isHexPrefixed:I,addHexPrefix:F,stripHexPrefix:O,parsePredefinedBlockNumber:f.parsePredefinedBlockNumber,isPredefinedBlockNumber:f.isPredefinedBlockNumber,isValidBlockNumberCandidate:f.isValidBlockNumberCandidate,isValidPrivateKey:f.isValidPrivateKey,isValidNSHSN:f.isValidNSHSN,parsePrivateKey:f.parsePrivateKey,parseKlaytnWalletKey:f.parseKlaytnWalletKey,isKlaytnWalletKey:f.isKlaytnWalletKey,isContractDeployment:f.isContractDeployment,rlpEncode:f.rlpEncode,rlpDecode:f.rlpDecode,xyPointFromPublicKey:f.xyPointFromPublicKey,resolveSignature:f.resolveSignature,transformSignaturesToObject:f.transformSignaturesToObject,getTxTypeStringFromRawTransaction:f.getTxTypeStringFromRawTransaction,txTypeToString:f.txTypeToString,trimLeadingZero:f.trimLeadingZero,makeEven:f.makeEven,isValidPublicKey:f.isValidPublicKey,isCompressedPublicKey:f.isCompressedPublicKey,compressPublicKey:f.compressPublicKey,decompressPublicKey:f.decompressPublicKey,isValidRole:f.isValidRole,isEmptySig:f.isEmptySig,hashMessage:f.hashMessage,recover:f.recover,recoverPublicKey:f.recoverPublicKey,publicKeyToAddress:f.publicKeyToAddress,decodeSignature:L,isBloom:f.isBloom,isTopic:f.isTopic}}).call(this,n("b639").Buffer)},"4fcb":function(e,t,n){"use strict";const r=n("0f6c"),{hasOwnProperty:i}=Object.prototype,{propertyIsEnumerable:s}=Object,f=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),a=this,o={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const n in e)i.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(const r of n)s.call(e,r)&&t.push(r)}return t};function u(e){return Array.isArray(e)?l(e):r(e)?d(e):e}function l(e){const t=e.slice(0,0);return c(e).forEach(n=>{f(t,n,u(e[n]))}),t}function d(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach(n=>{f(t,n,u(e[n]))}),t}const h=(e,t,n,r)=>(n.forEach(n=>{"undefined"===typeof t[n]&&r.ignoreUndefined||(n in e&&e[n]!==Object.getPrototypeOf(e)?f(e,n,b(e[n],t[n],r)):f(e,n,u(t[n])))}),e),p=(e,t,n)=>{let r=e.slice(0,0),s=0;return[e,t].forEach(t=>{const a=[];for(let n=0;n!a.includes(e)),n)}),r};function b(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?p(e,t,n):r(t)&&r(e)?h(e,t,c(t),n):u(t)}e.exports=function(...e){const t=b(u(o),this!==a&&this||{},o);let n={_:{}};for(const i of e)if(void 0!==i){if(!r(i))throw new TypeError("`"+i+"` is not an Option Object");n=b(n,{_:i},t)}return n._}},5076:function(e,t,n){"use strict";const r=n("85be"),i=r.MT,s=r.SIMPLE,f=r.SYMS;class a{constructor(e){if("number"!==typeof e)throw new Error("Invalid Simple type: "+typeof e);if(e<0||e>255||(0|e)!==e)throw new Error("value must be a small positive integer: "+e);this.value=e}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(e){return e._pushInt(this.value,i.SIMPLE_FLOAT)}static isSimple(e){return e instanceof a}static decode(e,t){switch(null==t&&(t=!0),e){case s.FALSE:return!1;case s.TRUE:return!0;case s.NULL:return t?null:f.NULL;case s.UNDEFINED:return t?void 0:f.UNDEFINED;case-1:if(!t)throw new Error("Invalid BREAK");return f.BREAK;default:return new a(e)}}}e.exports=a},"507b":function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},"510bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74");const i=r.baseX({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),s=r.baseX({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});t.base36=i,t.base36upper=s},5144:function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t={}){const n=await e.post("version",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers});return r(await n.json())}return t})},"51a1":function(e,t,n){"use strict";const r=n("8804"),i=n("61cc"),s=n("9878"),f=n("15e4");function a(e){return e.cid=new r(e.hash),delete e.hash,e}e.exports=s(e=>{async function t(t,n={}){"string"!==typeof t&&(n=t||{},t="/");const r=await e.post("files/stat",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:t,...n}),headers:n.headers}),s=await r.json();return s.WithLocality=s.WithLocality||!1,a(i(s))}return t})},"51da":function(e,t,n){const r=n("2ef0"),i=n("f54c"),{formatters:s}=n("e19e"),f=n("2dc3").subscriptions,a=n("c8cf"),o=n("4f8d"),c=n("c7c9");class u{constructor(...e){const t=this;i.packageInit(this,e);const n=this.setRequestManager;this.setRequestManager=function(e){return n(e),!0};const u=this.setProvider;this.setProvider=function(...e){u.apply(t,e),t.setRequestManager(t._requestManager)},this.clearSubscriptions=t._requestManager.clearSubscriptions;class l extends a{constructor(e){e.outputFormatterDisable=!0,super(e)}}const d=[new l({name:"getChainId",call:"klay_chainID",params:0}),new l({name:"getGasPrice",call:"klay_gasPrice",params:0}),new l({name:"getTransactionCount",call:"klay_getTransactionCount",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getHeaderByNumber",call:"klay_getHeaderByNumber",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getAccountKey",call:"klay_getAccountKey",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getTransactionByHash",call:"klay_getTransactionByHash",params:1}),new l({name:"getMaxPriorityFeePerGas",call:"klay_maxPriorityFeePerGas",params:0})];c._klaytnCall={},this.klaytnCall={},r.each(d,(function(e){e=new l(e),e.attachToObject(c._klaytnCall),e.attachToObject(t.klaytnCall),e.setRequestManager(t._requestManager)}));const h=[...d,new l({name:"accountCreated",call:"klay_accountCreated",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getAccounts",call:"klay_accounts",params:0}),new l({name:"encodeAccountKey",call:"klay_encodeAccountKey",params:1,inputFormatter:[s.inputAccountKeyFormatter]}),new l({name:"decodeAccountKey",call:"klay_decodeAccountKey",params:1}),new l({name:"getAccount",call:"klay_getAccount",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getBalance",call:"klay_getBalance",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getCode",call:"klay_getCode",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"isContractAccount",call:"klay_isContractAccount",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"sign",call:"klay_sign",params:2,inputFormatter:[s.inputAddressFormatter,s.inputSignFormatter]}),new l({name:"getBlockNumber",call:"klay_blockNumber",params:0}),new l({name:"getBlock",call:"klay_getBlockByNumber",hexCall:"klay_getBlockByHash",params:2,inputFormatter:[s.inputBlockNumberFormatter,s.toBoolean]}),new l({name:"getBlockByNumber",call:"klay_getBlockByNumber",params:2,inputFormatter:[s.inputBlockNumberFormatter,s.toBoolean]}),new l({name:"getBlockByHash",call:"klay_getBlockByHash",params:2,inputFormatter:[s.inputBlockNumberFormatter,s.toBoolean]}),new l({name:"getHeader",call:"klay_getHeaderByNumber",hexCall:"klay_getHeaderByHash",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getHeaderByNumber",call:"klay_getHeaderByNumber",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getHeaderByHash",call:"klay_getHeaderByHash",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getBlockReceipts",call:"klay_getBlockReceipts",params:1}),new l({name:"getBlockTransactionCount",call:"klay_getBlockTransactionCountByNumber",hexCall:"klay_getBlockTransactionCountByHash",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getBlockTransactionCountByNumber",call:"klay_getBlockTransactionCountByNumber",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getBlockTransactionCountByHash",call:"klay_getBlockTransactionCountByHash",params:1,inputFormatter:[s.inputBlockNumberFormatter]}),new l({name:"getBlockWithConsensusInfo",call:"klay_getBlockWithConsensusInfoByNumber",hexCall:"klay_getBlockWithConsensusInfoByHash",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getBlockWithConsensusInfoByNumber",call:"klay_getBlockWithConsensusInfoByNumber",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getBlockWithConsensusInfoByHash",call:"klay_getBlockWithConsensusInfoByHash",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getCommittee",call:"klay_getCommittee",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getCommitteeSize",call:"klay_getCommitteeSize",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getCouncil",call:"klay_getCouncil",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getCouncilSize",call:"klay_getCouncilSize",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"getStorageAt",call:"klay_getStorageAt",params:3,inputFormatter:[s.inputAddressFormatter,o.numberToHex,s.inputDefaultBlockNumberFormatter]}),new l({name:"isMining",call:"klay_mining",params:0}),new l({name:"isSyncing",call:"klay_syncing",params:0}),new l({name:"call",call:"klay_call",params:2,inputFormatter:[s.inputCallFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"estimateGas",call:"klay_estimateGas",params:1,inputFormatter:[s.inputCallFormatter]}),new l({name:"estimateComputationCost",call:"klay_estimateComputationCost",params:2,inputFormatter:[s.inputCallFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getTransactionFromBlock",call:"klay_getTransactionByBlockNumberAndIndex",hexCall:"klay_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[s.inputBlockNumberFormatter,o.numberToHex]}),new l({name:"getTransactionByBlockNumberAndIndex",call:"klay_getTransactionByBlockNumberAndIndex",params:2,inputFormatter:[s.inputBlockNumberFormatter,o.numberToHex]}),new l({name:"getTransactionByBlockHashAndIndex",call:"klay_getTransactionByBlockHashAndIndex",params:2,inputFormatter:[s.inputBlockNumberFormatter,o.numberToHex]}),new l({name:"getTransaction",call:"klay_getTransactionByHash",params:1}),new l({name:"getTransactionByHash",call:"klay_getTransactionByHash",params:1}),new l({name:"getTransactionBySenderTxHash",call:"klay_getTransactionBySenderTxHash",params:1}),new l({name:"getTransactionReceipt",call:"klay_getTransactionReceipt",params:1}),new l({name:"getTransactionReceiptBySenderTxHash",call:"klay_getTransactionReceiptBySenderTxHash",params:1}),new l({name:"sendRawTransaction",call:"klay_sendRawTransaction",params:1}),new l({name:"submitTransaction",call:"klay_sendRawTransaction",params:1}),new l({name:"sendTransaction",call:"klay_sendTransaction",params:1,inputFormatter:[s.inputTransactionFormatter]}),new l({name:"sendTransactionAsFeePayer",call:"klay_sendTransactionAsFeePayer",params:1,inputFormatter:[s.inputTransactionFormatter]}),new l({name:"signTransaction",call:"klay_signTransaction",params:1,inputFormatter:[s.inputTransactionFormatter]}),new l({name:"signTransactionAsFeePayer",call:"klay_signTransactionAsFeePayer",params:1,inputFormatter:[s.inputTransactionFormatter]}),new l({name:"getDecodedAnchoringTransactionByHash",call:"klay_getDecodedAnchoringTransactionByHash",params:1}),new l({name:"getDecodedAnchoringTransaction",call:"klay_getDecodedAnchoringTransactionByHash",params:1}),new l({name:"getFeeHistory",call:"klay_feeHistory",params:3,inputFormatter:[o.numberToHex,s.inputBlockNumberFormatter,null]}),new l({name:"getMaxPriorityFeePerGas",call:"klay_maxPriorityFeePerGas",params:0}),new l({name:"createAccessList",call:"klay_createAccessList",params:2,inputFormatter:[s.inputTransactionFormatter,s.inputDefaultBlockNumberFormatter]}),new l({name:"getClientVersion",call:"klay_clientVersion",params:0}),new l({name:"getGasPriceAt",call:"klay_gasPriceAt",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new l({name:"isParallelDBWrite",call:"klay_isParallelDBWrite",params:0}),new l({name:"isSenderTxHashIndexingEnabled",call:"klay_isSenderTxHashIndexingEnabled",params:0}),new l({name:"getProtocolVersion",call:"klay_protocolVersion",params:0}),new l({name:"getRewardbase",call:"klay_rewardbase",params:0}),new l({name:"getFilterChanges",call:"klay_getFilterChanges",params:1,inputFormatter:[o.numberToHex]}),new l({name:"getFilterLogs",call:"klay_getFilterLogs",params:1,inputFormatter:[o.numberToHex]}),new l({name:"getLogs",call:"klay_getLogs",params:1,inputFormatter:[s.inputLogFormatter]}),new l({name:"newBlockFilter",call:"klay_newBlockFilter",params:0}),new l({name:"newFilter",call:"klay_newFilter",params:1,inputFormatter:[s.inputLogFormatter]}),new l({name:"newPendingTransactionFilter",call:"klay_newPendingTransactionFilter",params:0}),new l({name:"uninstallFilter",call:"klay_uninstallFilter",params:1,inputFormatter:[o.numberToHex]}),new l({name:"sha3",call:"klay_sha3",params:1}),new l({name:"getCypressCredit",call:"klay_getCypressCredit",params:1,inputFormatter:[s.inputDefaultBlockNumberFormatter]}),new f({name:"subscribe",type:"klay",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[s.inputLogFormatter],subscriptionHandler:function(e){this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},syncing:{params:0,subscriptionHandler:function(e){const t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),r.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout((function(){t.emit("data",e),r.isFunction(t.callback)&&t.callback(null,e,t)}),0)):(this.emit("data",e),r.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout((function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),r.isFunction(t.callback)&&t.callback(null,t._isSyncing,t))}),500))}}}})];h.forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))}}e.exports=u},"520b":function(e,t,n){"use strict";const r=n("97ab"),i=n("efe7"),s=n("0392"),f=n("5fe0"),a=n("7364");function o(e,t){let n;if(e instanceof Uint8Array)n=f.varintUint8ArrayEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");n=s[e]}return a([n,t],n.length+t.length)}function c(e){return r.decode(e),e.slice(r.decode.bytes)}function u(e){const t=r.decode(e),n=i.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n}function l(e){return i.get(e)}function d(e){const t=s[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return r.decode(t)}function h(e){return r.decode(e)}function p(e){const t=s[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t}function b(e){return r.encode(e)}const m=n("eaa7"),g=n("c9d9");e.exports={addPrefix:o,rmPrefix:c,getCodec:u,getName:l,getNumber:d,getCode:h,getCodeVarint:p,getVarint:b,print:g,...m}},5215:function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},5216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("c11e");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"526a":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t,n={}){const i=await e.post("block/stat",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:new r(t).toString(),...n}),headers:n.headers}),f=await i.json();return{cid:new r(f.Key),size:f.Size}}return t})},"52e7":function(e,t,n){"use strict";const{baseTable:r}=n("605e"),i=n("f3a5").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},"52f7":function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},5365:function(e,t,n){"use strict";const r=n("8804"),i=n("61cc"),s=n("9878"),f=n("15e4");function a(e){return e.hash&&(e.cid=new r(e.hash)),delete e.hash,e.type=1===e.type?"directory":"file",e}e.exports=s(e=>{async function*t(t,n={}){if(!t||"string"!==typeof t)throw new Error("ipfs.files.ls requires a path");const s=await e.post("files/ls",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:r.isCID(t)?"/ipfs/"+t:t,long:!0,...n,stream:!0}),headers:n.headers});for await(const e of s.ndjson())if("Entries"in e)for(const t of e.Entries||[])yield a(i(t));else yield a(i(e))}return t})},"53d8b":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n0&&(e="-"+a);let n=t+e;const r=[];if(null!==l&&void 0!==l&&r.push("mode="+i(l)),null!=d){const{secs:e,nsecs:t}=d;r.push("mtime="+e),null!=t&&r.push("mtime-nsecs="+t)}if(r.length&&(n=`${n}?${r.join("&")}`),c){f.set(n,c,encodeURIComponent(u));const e=o+c.size;s.push({name:u,start:o,end:e}),o=e}else f.set(n,new File([""],encodeURIComponent(u),{type:"application/x-directory"}));a++}return{total:o,parts:s,headers:n,body:f}}e.exports=s},"546f":function(e,t,n){"use strict";e.exports=e=>({addrs:n("d72a")(e),connect:n("f5e5")(e),disconnect:n("15f7")(e),localAddrs:n("3464")(e),peers:n("0725")(e)})},5485:function(e,t,n){const r=n("4f8d"),{KEY_ROLE:i}=n("5fac"),{refineSignatures:s}=n("e638"),f=n("c7c9"),a=n("87b8");class o{constructor(e){this.klaytnCall=e}async validateSignedMessage(e,t,n,f=!1){const a=await this.klaytnCall.getAccountKey(n);t=s(t);const o=[];for(const i of t){const t=r.recoverPublicKey(e,i,f),n=t.toString();o.push(n)}return c(n,a,o,i.roleTransactionKey)}async validateTransaction(e){let t=await this.validateSender(e);return!0===t&&e instanceof a&&(t=this.validateFeePayer(e)),t}async validateSender(e){if(!(e instanceof f))throw new Error("Invalid parameter type: To validate `signatures` field in the transaction, you need to pass the transaction instance.");const t=await this.klaytnCall.getAccountKey(e.from),n=e.recoverPublicKeys(),r=e.type.includes("AccountUpdate")?i.roleAccountUpdateKey:i.roleTransactionKey;return c(e.from,t,n,r)}async validateFeePayer(e){if(!(e instanceof a))throw new Error("Invalid parameter type: To validate `feePayerSignatures` field in the transaction, you need to pass the fee-delegated transaction instance.");const t=await this.klaytnCall.getAccountKey(e.feePayer),n=e.recoverFeePayerPublicKeys(),r=i.roleFeePayerKey;return c(e.feePayer,t,n,r)}}function c(e,t,n,i){let s=!1;switch(null===t&&(t={keyType:1,key:{}}),t.keyType){case 1:for(const t of n){const n=r.publicKeyToAddress(t);if(n.toLowerCase()===e.toLowerCase()){s=!0;break}}break;case 2:for(const e of n){const n=r.xyPointFromPublicKey(e);if(n[0].toLowerCase()===t.key.x.toLowerCase()&&n[1].toLowerCase()===t.key.y.toLowerCase()){s=!0;break}}break;case 3:break;case 4:let f=0;const a=t.key.threshold;for(const e of n){for(const n of t.key.keys){const t=r.xyPointFromPublicKey(e);if(t[0].toLowerCase()===n.key.x.toLowerCase()&&t[1].toLowerCase()===n.key.y.toLowerCase()){f+=n.weight;break}}if(f>=a){s=!0;break}}break;case 5:const o=t.key[i];if(5===t.key[i].keyType)throw new Error("Invalid account key type: nested composite type");s=c(e,o,n);break;default:throw new Error("Invalid account key type")}return s}e.exports=o},5532:function(e,t,n){"use strict";const r=n("68ee"),i=n("2612"),{names:s}=n("3aa3"),{toString:f}=n("4ccd"),{fromString:a}=n("07d6"),{concat:o}=n("59ba"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},"55e4":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;ne.encode());return o.TxTypeValueTransferMemo+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeValueTransferMemo,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},5669:function(e,t,n){"use strict";const r=n("f544"),i=n("b623");t.resolve=(e,t)=>{let n=i.deserialize(e);const s=t.split("/").filter(Boolean);while(s.length){const e=s.shift();if(void 0===n[e])throw new Error(`Object has no property '${e}'`);if(n=n[e],r.isCID(n))return{value:n,remainderPath:s.join("/")}}return{value:n,remainderPath:""}};const s=function*(e,t){if(!(e instanceof Uint8Array||r.isCID(e)||"string"===typeof e||null===e))for(const n of Object.keys(e)){const r=void 0===t?n:t+"/"+n;yield r,yield*s(e[n],r)}};t.tree=function*(e){const t=i.deserialize(e);yield*s(t)}},"566e":function(e,t,n){"use strict";const r=n("244a"),{encodeText:i,decodeText:s,concat:f}=n("67c6");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},"569b":function(e,t,n){"use strict";const r=n("9878"),i=n("3ae5"),s=n("fdc7");e.exports=r((e,t)=>{const r=n("0e02")(t),f=n("6fff")(t),a=s(t.ipld),o=async(e,t={})=>{const n=await f(e,t),s=await r(n.cid,t),o=i.getName(n.cid.code),c=await a(o);return n.cid.code!==i.RAW||n.remainderPath||(n.remainderPath="/"),c.resolver.resolve(s.data,n.remainderPath)};return o})},"578c":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("files/touch",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers});await r.text()}return t})},5912:function(e,t,n){"use strict";const r=n("2e61"),i=n("9975"),s=n("9878");e.exports=e=>{const t=r(e);return s(()=>async function(e,n={}){return i(t({path:e,...n},n))})(e)}},"59ba":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"59bb":function(e,t,n){"use strict";const r=n("74f2"),i=n("9975"),s=n("9878");e.exports=e=>{const t=r(e);return s(()=>{async function e(e,n={}){return await i(t(e,n))}return e})(e)}},"5a38":function(e,t,n){"use strict";const r=n("c8f6"),i=45569,s=45633,f={init:r.blake2bInit,update:r.blake2bUpdate,digest:r.blake2bFinal},a={init:r.blake2sInit,update:r.blake2sUpdate,digest:r.blake2sFinal},o=(e,t)=>async n=>{const r=t.init(e,null);return t.update(r,n),t.digest(r)};e.exports=e=>{for(let t=0;t<64;t++)e[i+t]=o(t+1,f);for(let t=0;t<32;t++)e[s+t]=o(t+1,a)}},"5a6c":function(e,t,n){(function(e){(function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var f;"object"===typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{f=n("b639").Buffer}catch(A){}function a(e,t,n){for(var r=0,i=Math.min(e.length,n),s=t;s=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:15&f}return r}function o(e,t,n,r){for(var i=0,s=Math.min(e.length,n),f=t;f=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(e){return e instanceof s||null!==e&&"object"===typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},s.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},s.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)f=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=f<>>26-a&67108863,a+=24,a>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i>>26-a&67108863,a+=24,a>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=a(e,n,n+6),this.words[r]|=i<>>26-s&4194303,s+=24,s>=26&&(s-=26,r++);n+6!==t&&(i=a(e,t,n+6),this.words[r]|=i<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var s=e.length-n,f=s%r,a=Math.min(s,s-f)+n,c=0,u=n;u1&&0===this.words[this.length-1])this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],s=0|t.words[0],f=i*s,a=67108863&f,o=f/67108864|0;n.words[0]=a;for(var c=1;c>>26,l=67108863&o,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;i=0|e.words[p],s=0|t.words[h],f=i*s+l,u+=f/67108864|0,l=67108863&f}n.words[c]=0|l,o=0|u}return 0!==o?n.words[c]=0|o:n.length--,n.strip()}s.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var i=0,s=0,f=0;f>>24-i&16777215,n=0!==s||f!==this.length-1?c[6-o.length]+o+n:o+n,i+=2,i>=26&&(i-=26,f--)}0!==s&&(n=s.toString(16)+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],h=l[e];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var b=p.modn(h).toString(e);p=p.idivn(h),n=p.isZero()?b+n:c[d-b.length]+b+n}this.isZero()&&(n="0"+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,t){return r("undefined"!==typeof f),this.toArrayLike(f,e,t)},s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var f,a,o="le"===t,c=new e(s),u=this.clone();if(o){for(a=0;!u.isZero();a++)f=u.andln(255),u.iushrn(8),c[a]=f;for(;a=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,s=0;s>>26;for(;0!==i&&s>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;se.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var s=0,f=0;f>26,this.words[f]=67108863&t;for(;0!==s&&f>26,this.words[f]=67108863&t;if(0===s&&f>>13,h=0|f[1],p=8191&h,b=h>>>13,m=0|f[2],g=8191&m,k=m>>>13,y=0|f[3],w=8191&y,v=y>>>13,E=0|f[4],T=8191&E,x=E>>>13,_=0|f[5],A=8191&_,P=_>>>13,C=0|f[6],S=8191&C,N=C>>>13,I=0|f[7],F=8191&I,O=I>>>13,L=0|f[8],R=8191&L,D=L>>>13,M=0|f[9],U=8191&M,j=M>>>13,K=0|a[0],B=8191&K,H=K>>>13,G=0|a[1],V=8191&G,W=G>>>13,z=0|a[2],$=8191&z,q=z>>>13,Y=0|a[3],Z=8191&Y,X=Y>>>13,J=0|a[4],Q=8191&J,ee=J>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],se=8191&ie,fe=ie>>>13,ae=0|a[7],oe=8191&ae,ce=ae>>>13,ue=0|a[8],le=8191&ue,de=ue>>>13,he=0|a[9],pe=8191&he,be=he>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(l,B),i=Math.imul(l,H),i=i+Math.imul(d,B)|0,s=Math.imul(d,H);var me=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(p,B),i=Math.imul(p,H),i=i+Math.imul(b,B)|0,s=Math.imul(b,H),r=r+Math.imul(l,V)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(d,V)|0,s=s+Math.imul(d,W)|0;var ge=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(g,B),i=Math.imul(g,H),i=i+Math.imul(k,B)|0,s=Math.imul(k,H),r=r+Math.imul(p,V)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(b,V)|0,s=s+Math.imul(b,W)|0,r=r+Math.imul(l,$)|0,i=i+Math.imul(l,q)|0,i=i+Math.imul(d,$)|0,s=s+Math.imul(d,q)|0;var ke=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(w,B),i=Math.imul(w,H),i=i+Math.imul(v,B)|0,s=Math.imul(v,H),r=r+Math.imul(g,V)|0,i=i+Math.imul(g,W)|0,i=i+Math.imul(k,V)|0,s=s+Math.imul(k,W)|0,r=r+Math.imul(p,$)|0,i=i+Math.imul(p,q)|0,i=i+Math.imul(b,$)|0,s=s+Math.imul(b,q)|0,r=r+Math.imul(l,Z)|0,i=i+Math.imul(l,X)|0,i=i+Math.imul(d,Z)|0,s=s+Math.imul(d,X)|0;var ye=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(T,B),i=Math.imul(T,H),i=i+Math.imul(x,B)|0,s=Math.imul(x,H),r=r+Math.imul(w,V)|0,i=i+Math.imul(w,W)|0,i=i+Math.imul(v,V)|0,s=s+Math.imul(v,W)|0,r=r+Math.imul(g,$)|0,i=i+Math.imul(g,q)|0,i=i+Math.imul(k,$)|0,s=s+Math.imul(k,q)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(b,Z)|0,s=s+Math.imul(b,X)|0,r=r+Math.imul(l,Q)|0,i=i+Math.imul(l,ee)|0,i=i+Math.imul(d,Q)|0,s=s+Math.imul(d,ee)|0;var we=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(A,B),i=Math.imul(A,H),i=i+Math.imul(P,B)|0,s=Math.imul(P,H),r=r+Math.imul(T,V)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(x,V)|0,s=s+Math.imul(x,W)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(w,q)|0,i=i+Math.imul(v,$)|0,s=s+Math.imul(v,q)|0,r=r+Math.imul(g,Z)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(k,Z)|0,s=s+Math.imul(k,X)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(b,Q)|0,s=s+Math.imul(b,ee)|0,r=r+Math.imul(l,ne)|0,i=i+Math.imul(l,re)|0,i=i+Math.imul(d,ne)|0,s=s+Math.imul(d,re)|0;var ve=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(S,B),i=Math.imul(S,H),i=i+Math.imul(N,B)|0,s=Math.imul(N,H),r=r+Math.imul(A,V)|0,i=i+Math.imul(A,W)|0,i=i+Math.imul(P,V)|0,s=s+Math.imul(P,W)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(T,q)|0,i=i+Math.imul(x,$)|0,s=s+Math.imul(x,q)|0,r=r+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(v,Z)|0,s=s+Math.imul(v,X)|0,r=r+Math.imul(g,Q)|0,i=i+Math.imul(g,ee)|0,i=i+Math.imul(k,Q)|0,s=s+Math.imul(k,ee)|0,r=r+Math.imul(p,ne)|0,i=i+Math.imul(p,re)|0,i=i+Math.imul(b,ne)|0,s=s+Math.imul(b,re)|0,r=r+Math.imul(l,se)|0,i=i+Math.imul(l,fe)|0,i=i+Math.imul(d,se)|0,s=s+Math.imul(d,fe)|0;var Ee=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(F,B),i=Math.imul(F,H),i=i+Math.imul(O,B)|0,s=Math.imul(O,H),r=r+Math.imul(S,V)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(N,V)|0,s=s+Math.imul(N,W)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(A,q)|0,i=i+Math.imul(P,$)|0,s=s+Math.imul(P,q)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,X)|0,i=i+Math.imul(x,Z)|0,s=s+Math.imul(x,X)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,ee)|0,i=i+Math.imul(v,Q)|0,s=s+Math.imul(v,ee)|0,r=r+Math.imul(g,ne)|0,i=i+Math.imul(g,re)|0,i=i+Math.imul(k,ne)|0,s=s+Math.imul(k,re)|0,r=r+Math.imul(p,se)|0,i=i+Math.imul(p,fe)|0,i=i+Math.imul(b,se)|0,s=s+Math.imul(b,fe)|0,r=r+Math.imul(l,oe)|0,i=i+Math.imul(l,ce)|0,i=i+Math.imul(d,oe)|0,s=s+Math.imul(d,ce)|0;var Te=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(R,B),i=Math.imul(R,H),i=i+Math.imul(D,B)|0,s=Math.imul(D,H),r=r+Math.imul(F,V)|0,i=i+Math.imul(F,W)|0,i=i+Math.imul(O,V)|0,s=s+Math.imul(O,W)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(S,q)|0,i=i+Math.imul(N,$)|0,s=s+Math.imul(N,q)|0,r=r+Math.imul(A,Z)|0,i=i+Math.imul(A,X)|0,i=i+Math.imul(P,Z)|0,s=s+Math.imul(P,X)|0,r=r+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,i=i+Math.imul(x,Q)|0,s=s+Math.imul(x,ee)|0,r=r+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,i=i+Math.imul(v,ne)|0,s=s+Math.imul(v,re)|0,r=r+Math.imul(g,se)|0,i=i+Math.imul(g,fe)|0,i=i+Math.imul(k,se)|0,s=s+Math.imul(k,fe)|0,r=r+Math.imul(p,oe)|0,i=i+Math.imul(p,ce)|0,i=i+Math.imul(b,oe)|0,s=s+Math.imul(b,ce)|0,r=r+Math.imul(l,le)|0,i=i+Math.imul(l,de)|0,i=i+Math.imul(d,le)|0,s=s+Math.imul(d,de)|0;var xe=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,B),i=Math.imul(U,H),i=i+Math.imul(j,B)|0,s=Math.imul(j,H),r=r+Math.imul(R,V)|0,i=i+Math.imul(R,W)|0,i=i+Math.imul(D,V)|0,s=s+Math.imul(D,W)|0,r=r+Math.imul(F,$)|0,i=i+Math.imul(F,q)|0,i=i+Math.imul(O,$)|0,s=s+Math.imul(O,q)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,X)|0,i=i+Math.imul(N,Z)|0,s=s+Math.imul(N,X)|0,r=r+Math.imul(A,Q)|0,i=i+Math.imul(A,ee)|0,i=i+Math.imul(P,Q)|0,s=s+Math.imul(P,ee)|0,r=r+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,i=i+Math.imul(x,ne)|0,s=s+Math.imul(x,re)|0,r=r+Math.imul(w,se)|0,i=i+Math.imul(w,fe)|0,i=i+Math.imul(v,se)|0,s=s+Math.imul(v,fe)|0,r=r+Math.imul(g,oe)|0,i=i+Math.imul(g,ce)|0,i=i+Math.imul(k,oe)|0,s=s+Math.imul(k,ce)|0,r=r+Math.imul(p,le)|0,i=i+Math.imul(p,de)|0,i=i+Math.imul(b,le)|0,s=s+Math.imul(b,de)|0,r=r+Math.imul(l,pe)|0,i=i+Math.imul(l,be)|0,i=i+Math.imul(d,pe)|0,s=s+Math.imul(d,be)|0;var _e=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(U,V),i=Math.imul(U,W),i=i+Math.imul(j,V)|0,s=Math.imul(j,W),r=r+Math.imul(R,$)|0,i=i+Math.imul(R,q)|0,i=i+Math.imul(D,$)|0,s=s+Math.imul(D,q)|0,r=r+Math.imul(F,Z)|0,i=i+Math.imul(F,X)|0,i=i+Math.imul(O,Z)|0,s=s+Math.imul(O,X)|0,r=r+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(N,Q)|0,s=s+Math.imul(N,ee)|0,r=r+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,i=i+Math.imul(P,ne)|0,s=s+Math.imul(P,re)|0,r=r+Math.imul(T,se)|0,i=i+Math.imul(T,fe)|0,i=i+Math.imul(x,se)|0,s=s+Math.imul(x,fe)|0,r=r+Math.imul(w,oe)|0,i=i+Math.imul(w,ce)|0,i=i+Math.imul(v,oe)|0,s=s+Math.imul(v,ce)|0,r=r+Math.imul(g,le)|0,i=i+Math.imul(g,de)|0,i=i+Math.imul(k,le)|0,s=s+Math.imul(k,de)|0,r=r+Math.imul(p,pe)|0,i=i+Math.imul(p,be)|0,i=i+Math.imul(b,pe)|0,s=s+Math.imul(b,be)|0;var Ae=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,$),i=Math.imul(U,q),i=i+Math.imul(j,$)|0,s=Math.imul(j,q),r=r+Math.imul(R,Z)|0,i=i+Math.imul(R,X)|0,i=i+Math.imul(D,Z)|0,s=s+Math.imul(D,X)|0,r=r+Math.imul(F,Q)|0,i=i+Math.imul(F,ee)|0,i=i+Math.imul(O,Q)|0,s=s+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,i=i+Math.imul(N,ne)|0,s=s+Math.imul(N,re)|0,r=r+Math.imul(A,se)|0,i=i+Math.imul(A,fe)|0,i=i+Math.imul(P,se)|0,s=s+Math.imul(P,fe)|0,r=r+Math.imul(T,oe)|0,i=i+Math.imul(T,ce)|0,i=i+Math.imul(x,oe)|0,s=s+Math.imul(x,ce)|0,r=r+Math.imul(w,le)|0,i=i+Math.imul(w,de)|0,i=i+Math.imul(v,le)|0,s=s+Math.imul(v,de)|0,r=r+Math.imul(g,pe)|0,i=i+Math.imul(g,be)|0,i=i+Math.imul(k,pe)|0,s=s+Math.imul(k,be)|0;var Pe=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,Z),i=Math.imul(U,X),i=i+Math.imul(j,Z)|0,s=Math.imul(j,X),r=r+Math.imul(R,Q)|0,i=i+Math.imul(R,ee)|0,i=i+Math.imul(D,Q)|0,s=s+Math.imul(D,ee)|0,r=r+Math.imul(F,ne)|0,i=i+Math.imul(F,re)|0,i=i+Math.imul(O,ne)|0,s=s+Math.imul(O,re)|0,r=r+Math.imul(S,se)|0,i=i+Math.imul(S,fe)|0,i=i+Math.imul(N,se)|0,s=s+Math.imul(N,fe)|0,r=r+Math.imul(A,oe)|0,i=i+Math.imul(A,ce)|0,i=i+Math.imul(P,oe)|0,s=s+Math.imul(P,ce)|0,r=r+Math.imul(T,le)|0,i=i+Math.imul(T,de)|0,i=i+Math.imul(x,le)|0,s=s+Math.imul(x,de)|0,r=r+Math.imul(w,pe)|0,i=i+Math.imul(w,be)|0,i=i+Math.imul(v,pe)|0,s=s+Math.imul(v,be)|0;var Ce=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,Q),i=Math.imul(U,ee),i=i+Math.imul(j,Q)|0,s=Math.imul(j,ee),r=r+Math.imul(R,ne)|0,i=i+Math.imul(R,re)|0,i=i+Math.imul(D,ne)|0,s=s+Math.imul(D,re)|0,r=r+Math.imul(F,se)|0,i=i+Math.imul(F,fe)|0,i=i+Math.imul(O,se)|0,s=s+Math.imul(O,fe)|0,r=r+Math.imul(S,oe)|0,i=i+Math.imul(S,ce)|0,i=i+Math.imul(N,oe)|0,s=s+Math.imul(N,ce)|0,r=r+Math.imul(A,le)|0,i=i+Math.imul(A,de)|0,i=i+Math.imul(P,le)|0,s=s+Math.imul(P,de)|0,r=r+Math.imul(T,pe)|0,i=i+Math.imul(T,be)|0,i=i+Math.imul(x,pe)|0,s=s+Math.imul(x,be)|0;var Se=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,ne),i=Math.imul(U,re),i=i+Math.imul(j,ne)|0,s=Math.imul(j,re),r=r+Math.imul(R,se)|0,i=i+Math.imul(R,fe)|0,i=i+Math.imul(D,se)|0,s=s+Math.imul(D,fe)|0,r=r+Math.imul(F,oe)|0,i=i+Math.imul(F,ce)|0,i=i+Math.imul(O,oe)|0,s=s+Math.imul(O,ce)|0,r=r+Math.imul(S,le)|0,i=i+Math.imul(S,de)|0,i=i+Math.imul(N,le)|0,s=s+Math.imul(N,de)|0,r=r+Math.imul(A,pe)|0,i=i+Math.imul(A,be)|0,i=i+Math.imul(P,pe)|0,s=s+Math.imul(P,be)|0;var Ne=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,se),i=Math.imul(U,fe),i=i+Math.imul(j,se)|0,s=Math.imul(j,fe),r=r+Math.imul(R,oe)|0,i=i+Math.imul(R,ce)|0,i=i+Math.imul(D,oe)|0,s=s+Math.imul(D,ce)|0,r=r+Math.imul(F,le)|0,i=i+Math.imul(F,de)|0,i=i+Math.imul(O,le)|0,s=s+Math.imul(O,de)|0,r=r+Math.imul(S,pe)|0,i=i+Math.imul(S,be)|0,i=i+Math.imul(N,pe)|0,s=s+Math.imul(N,be)|0;var Ie=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,oe),i=Math.imul(U,ce),i=i+Math.imul(j,oe)|0,s=Math.imul(j,ce),r=r+Math.imul(R,le)|0,i=i+Math.imul(R,de)|0,i=i+Math.imul(D,le)|0,s=s+Math.imul(D,de)|0,r=r+Math.imul(F,pe)|0,i=i+Math.imul(F,be)|0,i=i+Math.imul(O,pe)|0,s=s+Math.imul(O,be)|0;var Fe=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,r=Math.imul(U,le),i=Math.imul(U,de),i=i+Math.imul(j,le)|0,s=Math.imul(j,de),r=r+Math.imul(R,pe)|0,i=i+Math.imul(R,be)|0,i=i+Math.imul(D,pe)|0,s=s+Math.imul(D,be)|0;var Oe=(c+r|0)+((8191&i)<<13)|0;c=(s+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,pe),i=Math.imul(U,be),i=i+Math.imul(j,pe)|0,s=Math.imul(j,be);var Le=(c+r|0)+((8191&i)<<13)|0;return c=(s+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863,o[0]=me,o[1]=ge,o[2]=ke,o[3]=ye,o[4]=we,o[5]=ve,o[6]=Ee,o[7]=Te,o[8]=xe,o[9]=_e,o[10]=Ae,o[11]=Pe,o[12]=Ce,o[13]=Se,o[14]=Ne,o[15]=Ie,o[16]=Fe,o[17]=Oe,o[18]=Le,0!==c&&(o[19]=c,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,s=0;s>>26)|0,i+=f>>>26,f&=67108863}n.words[s]=a,r=f,f=i}return 0!==r?n.words[s]=r:n.length--,n.strip()}function m(e,t,n){var r=new g;return r.mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),s.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?b(this,e,t):m(this,e,t),n},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=s.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,i,s){for(var f=0;f>>=1)i++;return 1<>>=13,n[2*f+1]=8191&s,s>>>=13;for(f=2*t;f>=26,t+=i/67108864|0,t+=s>>>26,this.words[n]=67108863&s}return 0!==t&&(this.words[n]=t,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=d(e);if(0===t.length)return new s(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var f=0;for(t=0;t>>26-n}f&&(this.words[t]=f,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var s=e%26,f=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<f)for(this.length-=f,c=0;c=0&&(0!==u||c>=i);c--){var l=0|this.words[c];this.words[c]=u<<26-s|l>>>s,u=l&a}return o&&0!==u&&(o.words[o.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(o/67108864|0),this.words[i+n]=67108863&s}for(;i>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,f=0|i.words[i.length-1],a=this._countBits(f);n=26-a,0!==n&&(i=i.ushln(n),r.iushln(n),f=0|i.words[i.length-1]);var o,c=r.length-i.length;if("mod"!==t){o=new s(null),o.length=c+1,o.words=new Array(o.length);for(var u=0;u=0;d--){var h=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);h=Math.min(h/f|0,67108863),r._ishlnsubmul(i,h,d);while(0!==r.negative)h--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);o&&(o.words[d]=h)}return o&&o.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:o||null,mod:r}},s.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(f=a.mod.neg(),n&&0!==f.negative&&f.iadd(e)),{div:i,mod:f}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(f=a.mod.neg(),n&&0!==f.negative&&f.isub(e)),{div:a.div,mod:f}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,f,a},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),s=n.cmp(r);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},s.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i=new s(1),f=new s(0),a=new s(0),o=new s(1),c=0;while(t.isEven()&&n.isEven())t.iushrn(1),n.iushrn(1),++c;var u=n.clone(),l=t.clone();while(!t.isZero()){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0){t.iushrn(d);while(d-- >0)(i.isOdd()||f.isOdd())&&(i.iadd(u),f.isub(l)),i.iushrn(1),f.iushrn(1)}for(var p=0,b=1;0===(n.words[0]&b)&&p<26;++p,b<<=1);if(p>0){n.iushrn(p);while(p-- >0)(a.isOdd()||o.isOdd())&&(a.iadd(u),o.isub(l)),a.iushrn(1),o.iushrn(1)}t.cmp(n)>=0?(t.isub(n),i.isub(a),f.isub(o)):(n.isub(t),a.isub(i),o.isub(f))}return{a:a,b:o,gcd:n.iushln(c)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i,f=new s(1),a=new s(0),o=n.clone();while(t.cmpn(1)>0&&n.cmpn(1)>0){for(var c=0,u=1;0===(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0){t.iushrn(c);while(c-- >0)f.isOdd()&&f.iadd(o),f.iushrn(1)}for(var l=0,d=1;0===(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0){n.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(o),a.iushrn(1)}t.cmp(n)>=0?(t.isub(n),f.isub(a)):(n.isub(t),a.isub(f))}return i=0===t.cmpn(1)?f:a,i.cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{while(t.isEven())t.iushrn(1);while(n.isEven())n.iushrn(1);var i=t.cmp(n);if(i<0){var s=t;t=n,n=s}else if(0===i||0===n.cmpn(1))break;t.isub(n)}while(1);return n.iushln(r)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return 0===(1&this.words[0])},s.prototype.isOdd=function(){return 1===(1&this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,a&=67108863,this.words[f]=a}return 0!==s&&(this.words[f]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new x(e)},s.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var k={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"===typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(w,y),w.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,s=f}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(k[e])return k[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new v;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return k[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}var i=this.m.subn(1),f=0;while(!i.isZero()&&0===i.andln(1))f++,i.iushrn(1);r(!i.isZero());var a=new s(1).toRed(this),o=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();u=new s(2*u*u).toRed(this);while(0!==this.pow(u,c).cmp(o))u.redIAdd(o);var l=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=f;while(0!==h.cmp(a)){for(var b=h,m=0;0!==b.cmp(a);m++)b=b.redSqr();r(m=0;i--){for(var u=t.words[i],l=c-1;l>=0;l--){var d=u>>l&1;f!==r[0]&&(f=this.sqr(f)),0!==d||0!==a?(a<<=1,a|=d,o++,(o===n||0===i&&0===l)&&(f=this.mul(f,r[a]),o=0,a=0)):o=0}c=26}return f},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new _(e)},i(_,x),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),f=i;return i.cmp(this.m)>=0?f=i.isub(this.m):i.cmpn(0)<0&&(f=i.iadd(this.m)),f._forceRed(this)},_.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(e,this)}).call(this,n("62e4")(e))},"5a90":function(e,t,n){"use strict";e.exports=e=>({gen:n("857d")(e),list:n("9b35")(e),rename:n("43c2")(e),rm:n("0db3")(e),import:n("1247")(e)})},"5ae5":function(e,t,n){"use strict";e.exports=e=>({get:n("569b")(e),put:n("6356")(e),resolve:n("6fff")(e)})},"5af0":function(e,t,n){(function(t){const r=n("2ef0"),i=n("4a84").AbiCoder,s=n("4a84").ParamType,f=n("4f8d"),a=new i((function(e,t){return!e.match(/^u?int/)||r.isArray(t)||r.isObject(t)&&"BN"===t.constructor.name?t:t.toString()}));function o(){}class c{encodeFunctionSignature(e){return r.isObject(e)&&(e=f._jsonInterfaceMethodToString(e)),f.sha3(e).slice(0,10)}encodeEventSignature(e){return r.isObject(e)&&(e=f._jsonInterfaceMethodToString(e)),f.sha3(e)}encodeParameter(e,t){return this.encodeParameters([e],[t])}encodeParameters(e,t){const n=this;return e=n.mapTypes(e),t=t.map((function(t,r){let i=e[r];if("object"===typeof i&&i.type&&(i=i.type),t=n.formatParam(i,t),"string"===i&&"string"!==typeof t)throw new Error("Invalid parameter: Parameter value and type do not match.");if("string"===typeof i&&i.includes("tuple")){const e=a._getCoder(s.from(i)),r=(e,t)=>{if("array"===e.name)return t.map(t=>{const n=e.type.replace(/\[[1-9]*\]/g,""),i=s.from(n),f=a._getCoder(i);r(f,t)});e.coders.forEach((e,i)=>{"tuple"===e.name?r(e,t[i]):t[i]=n.formatParam(e.name,t[i])})};r(e,t)}return t})),a.encode(e,t)}encodeContractDeploy(e,t,...n){if(!e)throw new Error("jsonInterface should be provided for encoding contract deployment.");if(!t)throw new Error("bytecode should be provided for encoding contract deployment.");const i=e.filter(({type:e})=>"constructor"===e)[0],s=i&&i.inputs;if(!i||!s||r.isEmpty(s))return t;if(s.length!==n.length)throw new Error(`invalid number of parameters for deploying. Got ${n.length} expected ${s.length}!`);const f=s.map(({type:e})=>e);return t+this.encodeParameters(f,n).replace("0x","")}mapTypes(e){const t=this,n=[];return e.forEach((function(e){if("object"===typeof e&&"function"===e.type&&(e={...e,type:"bytes24"}),t.isSimplifiedStructFormat(e)){const r=Object.keys(e)[0];n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))}else n.push(e)})),n}isSimplifiedStructFormat(e){return"object"===typeof e&&"undefined"===typeof e.components&&"undefined"===typeof e.name}mapStructNameAndType(e){let t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}}mapStructToCoderFormat(e){const t=this,n=[];return Object.keys(e).forEach((function(r){"object"!==typeof e[r]?n.push({name:r,type:e[r]}):n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))})),n}formatParam(e,n){const r=/^bytes([0-9]*)$/,i=/^bytes([0-9]*)\[\]$/,s=/^(u?int)([0-9]*)$/,a=/^(u?int)([0-9]*)\[\]$/;if(f.isBN(n)||f.isBigNumber(n))return n.toString(10);if(e.match(i)||e.match(a))return n.map(t=>this.formatParam(e.replace("[]",""),t));let o=e.match(s);if(o){const e=parseInt(o[2]||"256");e/80&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");const i=a.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),n),s=new o;return s.__length__=0,e.forEach((function(e,t){let n=i[s.__length__];n="0x"===n?null:n,s[t]=n,r.isObject(e)&&e.name&&(s[e.name]=n),s.__length__++})),s}decodeLog(e,t,n){const i=this;n=r.isArray(n)?n:[n],t=t||"";const s=[],f=[];let a=0;e.forEach((function(e,t){e.indexed?(f[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?i.decodeParameter(e.type,n[a]):n[a],a++):s[t]=e}));const c=t,u=c?this.decodeParametersWith(s,c,!0):[],l=new o;return l.__length__=0,e.forEach((function(e,t){l[t]="string"===e.type?"":null,"undefined"!==typeof u[t]&&(l[t]=u[t]),"undefined"!==typeof f[t]&&(l[t]=f[t]),e.name&&(l[e.name]=l[t]),l.__length__++})),l}}const u=new c;e.exports=u}).call(this,n("b639").Buffer)},"5b52":function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),{TX_TYPE_STRING:f,TX_TYPE_TAG:a,isNot:o}=n("e638"),c=n("ec88"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(a.TxTypeFeeDelegatedValueTransferMemoWithRatio))throw new Error(`Cannot decode to FeeDelegatedValueTransferMemoWithRatio. The prefix must be ${a.TxTypeFeeDelegatedValueTransferMemoWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,o,c,l,d,h,p,b]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(o),from:c,input:l,feeRatio:u.trimLeadingZero(d),signatures:h,feePayer:p,feePayerSignatures:b}}class d extends c{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(s.isString(e)&&(e=l(e)),super(f.TxTypeFeeDelegatedValueTransferMemoWithRatio,e,t),this.to=e.to,this.value=e.value,e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return a.TxTypeFeeDelegatedValueTransferMemoWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([a.TxTypeFeeDelegatedValueTransferMemoWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,i.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([o(this.chainId)?this.getChainId():this.chainId,o(this.gasPrice)?this.getGasPrice():this.gasPrice,o(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},"5b78":function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},"5be0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("55e4");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"5be5":function(e,t,n){"use strict";const{encodeText:r}=n("32ba");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},"5d6d":function(e,t,n){"use strict";const r=async function*(e,t){for await(const n of e)yield t(n)};e.exports=r},"5da0":function(e,t){const n={},r="./",i="rpcLogs",s="log",f=e=>"/"!==e.slice(-1)?e+"/":e,a=(e,t)=>{n.appendFileSync(e,t+"\n",e=>{if(e)throw e})},o=(e={})=>(t,n)=>{if("object"!==typeof e)throw Error("file logger must take an object type argument.");e.path=f(e.path)||r,e.name=e.name||i,e.extension=e.extension||s;const o=`${e.path}${e.name}.${e.extension}`;t.timestamp=(new Date).getTime(),a(o,JSON.stringify(t)),n()};e.exports=o},"5ee5":function(e,t,n){"use strict";const{Buffer:r}=n("b639"),i=n("901e").BigNumber,s=n("85be"),f=s.SHIFT32,a=s.SHIFT16,o=2097151;function c(e){return e<16?"0"+e.toString(16):e.toString(16)}t.parseHalf=function(e){var t,n,r;return r=128&e[0]?-1:1,t=(124&e[0])>>2,n=(3&e[0])<<8|e[1],t?31===t?r*(n?NaN:Infinity):r*Math.pow(2,t-25)*(1024+n):5.960464477539063e-8*r*n},t.arrayBufferToBignumber=function(e){const t=e.byteLength;let n="";for(let r=0;r{const t=new Map,n=Object.keys(e),r=n.length;for(let i=0;ie*a+t,t.buildInt64=(e,n,r,s)=>{const a=t.buildInt32(e,n),c=t.buildInt32(r,s);return a>o?new i(a).times(f).plus(c):a*f+c},t.writeHalf=function(e,t){const n=r.allocUnsafe(4);n.writeFloatBE(t,0);const i=n.readUInt32BE(0);if(0!==(8191&i))return!1;var s=i>>16&32768;const f=i>>23&255,a=8388607&i;if(f>=113&&f<=142)s+=(f-112<<10)+(a>>13);else{if(!(f>=103&&f<113))return!1;if(a&(1<<126-f)-1)return!1;s+=a+8388608>>126-f}return e.writeUInt16BE(s,0),!0},t.keySorter=function(e,t){var n=e[0].byteLength,r=t[0].byteLength;return n>r?1:r>n?-1:e[0].compare(t[0])},t.isNegativeZero=e=>0===e&&1/e<0,t.nextPowerOf2=e=>{let t=0;if(e&&!(e&e-1))return e;while(0!==e)e>>=1,t+=1;return 1<!!i.isArray(e)&&e.every(e=>i.isString(e)),h=e=>!!i.isArray(e)&&(!(e.length>u.roleLast)&&e.every(e=>i.isArray(e))),p=(e,t)=>{if(!o.isValidHashStrict(e))throw new Error("Invalid transaction hash: "+e);if(void 0===t)throw new Error("chainId should be defined to sign.")},b=(e,t)=>{if(!i.isNumber(e))throw new Error(`Invalid type of index(${e}): index should be number type.`);if(e<0)throw new Error(`Invalid index(${e}): index cannot be negative.`);if(e>=t)throw new Error(`Invalid index(${e}): index must be less than the length of keys(${t}).`)},m=(e,t)=>{if(!e||0===e.length)return;const n=[];for(const i of e){let e,f;if("scrypt"===i.kdf)f=i.kdfparams,e=s.syncScrypt(r.from(t),r.from(f.salt,"hex"),f.n,f.r,f.p,f.dklen);else{if("pbkdf2"!==i.kdf)throw new Error("Unsupported key derivation scheme");if(f=i.kdfparams,"hmac-sha256"!==f.prf)throw new Error("Unsupported parameters to PBKDF2");e=a.pbkdf2Sync(r.from(t),r.from(f.salt,"hex"),f.c,f.dklen,"sha256")}const c=r.from(i.ciphertext,"hex"),u=o.sha3(r.from([...e.slice(16,32),...c])).replace("0x","");if(u!==i.mac)throw new Error("Key derivation failed - possibly wrong password");const l=a.createDecipheriv(i.cipher,e.slice(0,16),r.from(i.cipherparams.iv,"hex"));n.push("0x"+r.from([...l.update(c),...l.final()]).toString("hex"))}return n},g=(e,t,n)=>{const f=[];if(!e)return f;const u=i.isArray(e)?e:[e];for(let i=0;i{const i={version:e,id:f.v4({random:r.uuid||a.randomBytes(16)}),address:t.toLowerCase()};if(3===e)i.crypto=n;else{if(4!==e)throw new Error("Unsupported version of keystore");i.keyring=n}return i};e.exports={KEY_ROLE:u,MAXIMUM_KEY_NUM:l,isMultipleKeysFormat:d,isRoleBasedKeysFormat:h,validateForSigning:p,validateIndexWithKeys:b,decryptKey:m,encryptKey:g,formatEncrypted:k}}).call(this,n("c8ba"),n("b639").Buffer)},"5fe0":function(e,t,n){"use strict";const r=n("97ab"),i=n("ebd2"),s=n("175f");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},6017:function(e,t,n){"use strict";async function*r(e,t={}){const n=e.getReader();try{while(1){const e=await n.read();if(e.done)return;yield e.value}}finally{!0!==t.preventCancel&&n.cancel(),n.releaseLock()}}e.exports=r},"605e":function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},"612f":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;n({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"62d6":function(e,t,n){"use strict";const r=n("c8ff"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},6356:function(e,t,n){"use strict";const r=n("8804"),i=n("c8ff"),s=n("9878"),f=n("542b"),a=n("15e4"),o=n("f783"),{AbortController:c}=n("c181"),u=n("3ae5"),l=n("fdc7");e.exports=s((e,t)=>{const n=l(t.ipld),s=async(t,s={})=>{if(s.cid&&(s.format||s.hashAlg))throw new Error("Failed to put DAG node. Provide either `cid` OR `format` and `hashAlg` options");if(s.format&&!s.hashAlg||!s.format&&s.hashAlg)throw new Error("Failed to put DAG node. Provide `format` AND `hashAlg` options");let l;if(s.cid){const e=new r(s.cid);l={...s,format:u.getName(e.code),hashAlg:i.decode(e.multihash).name},delete s.cid}else l=s;const d={format:"dag-cbor",hashAlg:"sha2-256",inputEnc:"raw",...l},h=await n(d.format),p=h.util.serialize(t),b=new c,m=o(b.signal,d.signal),g=await e.post("dag/put",{timeout:d.timeout,signal:m,searchParams:a(d),...await f(p,b,d.headers)}),k=await g.json();return new r(k.Cid["/"])};return s})},6367:function(e,t,n){const r=n("2ef0"),i=n("4f8d");class s{static create(e,t){return new s(e,t)}constructor(e,t){this.address=e,this.storageKeys=t}get address(){return this._address}set address(e){if(!r.isString(e))throw new Error("Invalid address type: Address should be string type "+typeof e);if(!i.isAddress(e))throw new Error("Invalid address: "+e);e=i.addHexPrefix(e),this._address=e}get storageKeys(){return this._storageKeys}set storageKeys(e){r.isArray(e)||(e=[e]);for(let t of e){if(!r.isString(t))throw new Error("Invalid storageKey type: Storage key should be string type "+typeof t);if(!i.isHex(t))throw new Error("Invalid storageKey: The storage key must be a hexadecimal string "+t);if(t=i.addHexPrefix(t),66!==t.length)throw new Error("Invalid storageKey length: The storage key must be a 32-byte")}e.sort(),this._storageKeys=e}encodeToBytes(){const e=[];for(const t of this.storageKeys)e.push(t.toLowerCase());return[this.address.toLowerCase(),e]}isEqual(e){if(this.storageKeys.length!==e.storageKeys.length)return!1;if(this.address.toLowerCase()!==e.address.toLowerCase())return!1;for(let t=0;t=0)}e.exports=n}).call(this,n("4362"))},6410:function(e,t,n){"use strict";const r=n("5532"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},"66ee":function(e,t,n){"use strict";const r=n("ad8c"),{concat:i}=n("a015"),s=n("4eca"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("e6d1");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},"670b":function(e,t,n){"use strict";const{fetch:r,Request:i,Headers:s}=n("273a"),{TimeoutError:f,HTTPError:a}=n("d2aa"),o=n("4fcb").bind({ignoreUndefined:!0}),{URL:c,URLSearchParams:u}=n("16af"),{AbortController:l}=n("c181"),d=n("74fd"),h=(e,t,n)=>{if(void 0===t)return e;const r=Date.now(),i=()=>{const e=Date.now()-r;return e>=t};return new Promise((r,s)=>{const a=setTimeout(()=>{i()&&(s(new f),n.abort())},t),o=e=>{const t=t=>{clearTimeout(a),i()?s(new f):e(t)};return t};e.then(o(r),o(s))})},p={throwHttpErrors:!0,credentials:"same-origin"};class b{constructor(e={}){this.opts=o(p,e)}async fetch(e,t={}){const n=o(this.opts,t),f=new s(n.headers);if("string"!==typeof e&&!(e instanceof c||e instanceof i))throw new TypeError("`resource` must be a string, URL, or Request");const p=new c(e.toString(),n.base),{searchParams:b,transformSearchParams:k,json:y}=n;b&&(p.search="function"===typeof k?k(new u(n.searchParams)):new u(n.searchParams)),y&&(n.body=JSON.stringify(n.json),f.set("content-type","application/json"));const w=new l,v=d([w.signal,n.signal]),E=await h(r(p.toString(),{...n,signal:v,timeout:void 0,headers:f}),n.timeout,w);if(!E.ok&&n.throwHttpErrors)throw n.handleError&&await n.handleError(E),new a(E);return E.iterator=function(){return g(E.body)},E.ndjson=async function*(){for await(const e of m(E.iterator()))t.transform?yield t.transform(e):yield e},E}post(e,t={}){return this.fetch(e,{...t,method:"POST"})}get(e,t={}){return this.fetch(e,{...t,method:"GET"})}put(e,t={}){return this.fetch(e,{...t,method:"PUT"})}delete(e,t={}){return this.fetch(e,{...t,method:"DELETE"})}options(e,t={}){return this.fetch(e,{...t,method:"OPTIONS"})}}const m=async function*(e){const t=new TextDecoder;let n="";for await(const r of e){n+=t.decode(r,{stream:!0});const e=n.split(/\r?\n/);for(let t=0;t0&&(yield JSON.parse(n))}n=e[e.length-1]}n+=t.decode(),n=n.trim(),0!==n.length&&(yield JSON.parse(n))},g=e=>{if(w(e)){const t=e[Symbol.asyncIterator]();return{[Symbol.asyncIterator](){return{next:t.next.bind(t),return(n){return e.destroy(),"function"===typeof t.return?t.return():Promise.resolve({done:!0,value:n})}}}}}if(y(e)){const t=e.getReader();return async function*(){try{while(1){const{done:e,value:n}=await t.read();if(e)return;n&&(yield n)}}finally{t.releaseLock()}}()}if(k(e))return e;throw new TypeError("Body can't be converted to AsyncIterable")},k=e=>"object"===typeof e&&null!==e&&"function"===typeof e[Symbol.asyncIterator],y=e=>e&&"function"===typeof e.getReader,w=e=>Object.prototype.hasOwnProperty.call(e,"readable")&&Object.prototype.hasOwnProperty.call(e,"writable");b.HTTPError=a,b.TimeoutError=f,b.streamToAsyncIterator=g,b.post=(e,t)=>new b(t).post(e,t),b.get=(e,t)=>new b(t).get(e,t),b.put=(e,t)=>new b(t).put(e,t),b.delete=(e,t)=>new b(t).delete(e,t),b.options=(e,t)=>new b(t).options(e,t),e.exports=b},"672c":function(e,t,n){"use strict";function r(e,t){for(let n=0;nt[n])return 1}return e.byteLength>t.byteLength?1:e.byteLengthr.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"67d1":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t,n,i={})=>{const f=await e.post("object/patch/rm-link",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:[""+(t instanceof Uint8Array?new r(t):t),n.Name||n.name||null],...i}),headers:i.headers}),{Hash:a}=await f.json();return new r(a)})},"67ed":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t,n={}){t="string"===typeof t?t:new r(t).toString();const i=await(await e.post("bitswap/wantlist",{timeout:n.timeout,signal:n.signal,searchParams:s({...n,peer:t}),headers:n.headers})).json();return(i.Keys||[]).map(e=>new r(e["/"]))}return t})},6810:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("c7c9"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,CODE_FORMAT:c,getCodeFormatTag:u,isNot:l}=n("e638"),d=n("4f8d");function h(e){if(e=d.addHexPrefix(e),!e.startsWith(o.TxTypeSmartContractDeploy))throw new Error(`Cannot decode to SmartContractDeploy. The prefix must be ${o.TxTypeSmartContractDeploy}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,l,h,p,b]=i.decode(t);return{nonce:d.trimLeadingZero(n),gasPrice:d.trimLeadingZero(r),gas:d.trimLeadingZero(s),to:f,value:d.trimLeadingZero(a),from:c,input:l,humanReadable:"0x1"===h,codeFormat:u(p),signatures:b}}class p extends f{static create(e,t){return new p(e,t)}static decode(e,t){return new p(h(e),t)}constructor(e,t){if(r.isString(e)&&(e=h(e)),super(a.TxTypeSmartContractDeploy,e,t),this.to=e.to||"0x",this.value=e.value||"0x0",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,this.humanReadable=void 0!==e.humanReadable&&e.humanReadable,this.codeFormat=void 0!==e.codeFormat?e.codeFormat:c.EVM,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=d.numberToHex(e)}get to(){return this._to}set to(e){if("0x"!==e)throw new Error("Invalid address of to: 'to' should be '0x' with smart contract deploy transaction.");this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=d.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!d.isHex(e))throw new Error("Invalid input data "+e);this._input=d.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}get humanReadable(){return this._humanReadable}set humanReadable(e){if(!r.isBoolean(e))throw new Error("Invalid humanReadable "+e);this._humanReadable=e}get codeFormat(){return this._codeFormat}set codeFormat(e){this._codeFormat=u(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode());return o.TxTypeSmartContractDeploy+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,s.fromNat(!0===this.humanReadable?"0x1":"0x0"),s.fromNat(this.codeFormat),e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeSmartContractDeploy,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,s.fromNat(!0===this.humanReadable?"0x1":"0x0"),s.fromNat(this.codeFormat)])}async fillTransaction(){const[e,t,n]=await Promise.all([l(this.chainId)?this.getChainId():this.chainId,l(this.gasPrice)?this.getGasPrice():this.gasPrice,l(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=p},6832:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("2054");e.exports=r(e=>{async function t(t={}){const n=await e.post("bootstrap/rm",{timeout:t.timeout,signal:t.signal,searchParams:i({...t,all:!0}),headers:t.headers}),{Peers:r}=await n.json();return{Peers:r.map(e=>new s(e))}}return t})},"68b7":function(e,t,n){"use strict";var r=o,i=128,s=127,f=~s,a=Math.pow(2,31);function o(e,t,n){t=t||[],n=n||0;var r=n;while(e>=a)t[n++]=255&e|i,e/=128;while(e&f)t[n++]=255&e|i,e>>>=7;return t[n]=0|e,o.bytes=n-r+1,t}var c=d,u=128,l=127;function d(e,t){var n,r=0,i=(t=t||0,0),s=t,f=e.length;do{if(s>=f)throw d.bytes=0,new RangeError("Could not decode varint");n=e[s++],r+=i<28?(n&l)<=u);return d.bytes=s-t,r}var h=Math.pow(2,7),p=Math.pow(2,14),b=Math.pow(2,21),m=Math.pow(2,28),g=Math.pow(2,35),k=Math.pow(2,42),y=Math.pow(2,49),w=Math.pow(2,56),v=Math.pow(2,63),E=function(e){return e 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},"6a80":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"6a8c":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"6aa7":function(e,t,n){"use strict";e.exports={E2BIG:7,EACCES:13,EADDRINUSE:100,EADDRNOTAVAIL:101,EAFNOSUPPORT:102,EAGAIN:11,EALREADY:103,EBADF:9,EBADMSG:104,EBUSY:16,ECANCELED:105,ECHILD:10,ECONNABORTED:106,ECONNREFUSED:107,ECONNRESET:108,EDEADLK:36,EDESTADDRREQ:109,EDOM:33,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:110,EIDRM:111,EILSEQ:42,EINPROGRESS:112,EINTR:4,EINVAL:22,EIO:5,EISCONN:113,EISDIR:21,ELOOP:114,EMFILE:24,EMLINK:31,EMSGSIZE:115,ENAMETOOLONG:38,ENETDOWN:116,ENETRESET:117,ENETUNREACH:118,ENFILE:23,ENOBUFS:119,ENODATA:120,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:39,ENOLINK:121,ENOMEM:12,ENOMSG:122,ENOPROTOOPT:123,ENOSPC:28,ENOSR:124,ENOSTR:125,ENOSYS:40,ENOTCONN:126,ENOTDIR:20,ENOTEMPTY:41,ENOTSOCK:128,ENOTSUP:129,ENOTTY:25,ENXIO:6,EOPNOTSUPP:130,EOVERFLOW:132,EPERM:1,EPIPE:32,EPROTO:134,EPROTONOSUPPORT:135,EPROTOTYPE:136,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ETIME:137,ETIMEDOUT:138,ETXTBSY:139,EWOULDBLOCK:140,EXDEV:18,WSAEINTR:10004,WSAEBADF:10009,WSAEACCES:10013,WSAEFAULT:10014,WSAEINVAL:10022,WSAEMFILE:10024,WSAEWOULDBLOCK:10035,WSAEINPROGRESS:10036,WSAEALREADY:10037,WSAENOTSOCK:10038,WSAEDESTADDRREQ:10039,WSAEMSGSIZE:10040,WSAEPROTOTYPE:10041,WSAENOPROTOOPT:10042,WSAEPROTONOSUPPORT:10043,WSAESOCKTNOSUPPORT:10044,WSAEOPNOTSUPP:10045,WSAEPFNOSUPPORT:10046,WSAEAFNOSUPPORT:10047,WSAEADDRINUSE:10048,WSAEADDRNOTAVAIL:10049,WSAENETDOWN:10050,WSAENETUNREACH:10051,WSAENETRESET:10052,WSAECONNABORTED:10053,WSAECONNRESET:10054,WSAENOBUFS:10055,WSAEISCONN:10056,WSAENOTCONN:10057,WSAESHUTDOWN:10058,WSAETOOMANYREFS:10059,WSAETIMEDOUT:10060,WSAECONNREFUSED:10061,WSAELOOP:10062,WSAENAMETOOLONG:10063,WSAEHOSTDOWN:10064,WSAEHOSTUNREACH:10065,WSAENOTEMPTY:10066,WSAEPROCLIM:10067,WSAEUSERS:10068,WSAEDQUOT:10069,WSAESTALE:10070,WSAEREMOTE:10071,WSASYSNOTREADY:10091,WSAVERNOTSUPPORTED:10092,WSANOTINITIALISED:10093,WSAEDISCON:10101,WSAENOMORE:10102,WSAECANCELLED:10103,WSAEINVALIDPROCTABLE:10104,WSAEINVALIDPROVIDER:10105,WSAEPROVIDERFAILEDINIT:10106,WSASYSCALLFAILURE:10107,WSASERVICE_NOT_FOUND:10108,WSATYPE_NOT_FOUND:10109,WSA_E_NO_MORE:10110,WSA_E_CANCELLED:10111,WSAEREFUSED:10112,PRIORITY_LOW:19,PRIORITY_BELOW_NORMAL:10,PRIORITY_NORMAL:0,PRIORITY_ABOVE_NORMAL:-7,PRIORITY_HIGH:-14,PRIORITY_HIGHEST:-20,SIGHUP:1,SIGINT:2,SIGILL:4,SIGABRT:22,SIGFPE:8,SIGKILL:9,SIGSEGV:11,SIGTERM:15,SIGBREAK:21,SIGWINCH:28,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,O_RDONLY:0,O_WRONLY:1,O_RDWR:2,UV_DIRENT_UNKNOWN:0,UV_DIRENT_FILE:1,UV_DIRENT_DIR:2,UV_DIRENT_LINK:3,UV_DIRENT_FIFO:4,UV_DIRENT_SOCKET:5,UV_DIRENT_CHAR:6,UV_DIRENT_BLOCK:7,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFLNK:40960,O_CREAT:256,O_EXCL:1024,UV_FS_O_FILEMAP:536870912,O_TRUNC:512,O_APPEND:8,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_COPYFILE_EXCL:1,COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_FICLONE_FORCE:4,OPENSSL_VERSION_NUMBER:269488367,SSL_OP_ALL:2147485780,SSL_OP_ALLOW_NO_DHE_KEX:1024,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:0,SSL_OP_MICROSOFT_SESS_ID_BUG:0,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:0,SSL_OP_NETSCAPE_CHALLENGE_BUG:0,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:0,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:0,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_ENCRYPT_THEN_MAC:524288,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_RENEGOTIATION:1073741824,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:0,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_NO_TLSv1_3:536870912,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_PRIORITIZE_CHACHA:2097152,SSL_OP_SINGLE_DH_USE:0,SSL_OP_SINGLE_ECDH_USE:0,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:0,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:0,SSL_OP_TLS_D5_BUG:0,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_RSA:1,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_EC:2048,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,RSA_PSS_SALTLEN_DIGEST:-1,RSA_PSS_SALTLEN_MAX_SIGN:-2,RSA_PSS_SALTLEN_AUTO:-2,defaultCoreCipherList:"TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA",TLS1_VERSION:769,TLS1_1_VERSION:770,TLS1_2_VERSION:771,TLS1_3_VERSION:772,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"6b67":function(e,t,n){"use strict";const{names:r}=n("0ea6"),{TextDecoder:i}=n("3d5a"),s=new i("utf8");function f(e){let t="";for(let n=0;ns.decode(e),a=new r,o=e=>a.encode(e);function c(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:f,encodeText:o,concat:c}},"6e0a":function(e,t,n){e.exports={encode:n("e010"),decode:n("994c"),encodingLength:n("e248")}},"6e41":function(e,t,n){"use strict";function r(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(f);while(i!==s){for(var l=t[i],d=0,h=f-1;(0!==l||d>>0,c[h]=l%a>>>0,l=l/a>>>0;if(0!==l)throw new Error("Non-zero carry");r=d,i++}var p=f-r;while(p!==f&&0===c[p])p++;for(var b=o.repeat(n);p>>0,f=new Uint8Array(s);while(e[t]){var u=n[e.charCodeAt(t)];if(255===u)return;for(var l=0,d=s-1;(0!==u||l>>0,f[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=l,t++}if(" "!==e[t]){var h=s-i;while(h!==s&&0===f[h])h++;var p=new Uint8Array(r+(s-h)),b=r;while(h!==s)p[b++]=f[h++];return p}}}function h(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}return{encode:l,decodeUnsafe:d,decode:h}}var i=r,s=i;e.exports=s},"6fff":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{const t=async(t,n={})=>{const i=await e.post("dag/resolve",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:`${t}${n.path?("/"+n.path).replace(/\/[/]+/g,"/"):""}`,...n}),headers:n.headers}),f=await i.json();return{cid:new r(f.Cid["/"]),remainderPath:f.RemPath}};return t})},7009:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports=r},7122:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("c11e");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},7187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("eb20");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"71ef":function(e,t,n){"use strict";const r=n("9878"),{findSources:i}=n("d6ea"),s=n("15e4");e.exports=r(e=>{async function t(...t){const{sources:n,options:r}=i(t),f=await e.post("files/rm",{timeout:r.timeout,signal:r.signal,searchParams:s({arg:n,...r}),headers:r.headers});await f.text()}return t})},7311:function(e,t){const n=(e=>()=>(t,n,r)=>{if(!e[t.id])return e[t.id]=(new Date).getTime(),void r();e[t.id]=(new Date).getTime()-e[t.id],console.log(`request '${t.id}' takes an ${e[t.id]} milliseconds for responding. : ${t.method}`),n(Object.assign(t,{timeTakes:e[t.id]}))})({});e.exports=n},7364:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports=r},"73f2":function(e,t,n){"use strict";const{encodeText:r}=n("85fc");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},"74ab":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("log/ls",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers}),r=await n.json();return r.Strings})},"74f2":function(e,t,n){"use strict";const r=n("8804"),i=n("7766"),s=n("9878"),f=n("542b"),a=n("15e4"),o=n("f783"),{AbortController:c}=n("c181");e.exports=s(e=>{async function*t(t,n={}){const r=new c,s=o(r.signal,n.signal),{headers:l,body:h,total:p,parts:b}=await f(t,r,n.headers),[m,g]="function"===typeof n.progress?u(p,b,n.progress):[void 0,void 0],k=await e.post("add",{searchParams:a({"stream-channels":!0,...n,progress:Boolean(m)}),timeout:n.timeout,onUploadProgress:g,signal:s,headers:l,body:h});for await(let e of k.ndjson())e=i(e),void 0!==e.hash?yield d(e):m&&m(e.bytes||0,e.name)}return t});const u=(e,t,n)=>t?[void 0,l(e,t,n)]:[n,void 0],l=(e,t,n)=>{let r=0;const i=t.length;return({loaded:s,total:f})=>{const a=Math.floor(s/f*e);while(r(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},7614:function(e,t,n){const r=n("219a");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"76b6":function(e,t,n){const{Buffer:r}=n("b639");var i=r.alloc,s="0000000000000000000",f="7777777777777777777",a="0".charCodeAt(0),o=r.from("ustar\0","binary"),c=r.from("00","binary"),u=parseInt("7777",8),l=257,d=263,h=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},p=function(e){for(var t=256,n=0;n<148;n++)t+=e[n];for(var r=156;r<512;r++)t+=e[r];return t},b=function(e,t){return e=e.toString(8),e.length>t?f.slice(0,t)+" ":s.slice(0,t-e.length)+e+" "},m=function(e){var t=r.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e};t.encodePax=function(e){var t="";e.name&&(t+=m(" path="+e.name+"\n")),e.linkname&&(t+=m(" linkpath="+e.linkname+"\n"));var n=e.pax;if(n)for(var i in n)t+=m(" "+i+"="+n[i]+"\n");return r.from(t)},t.encode=function(e){var t=i(512),n=e.name,s="";if(5===e.typeflag&&"/"!==n[n.length-1]&&(n+="/"),r.byteLength(n)!==n.length)return null;while(r.byteLength(n)>100){var f=n.indexOf("/");if(-1===f)return null;s+=s?"/"+n.slice(0,f):n.slice(0,f),n=n.slice(f+1)}return r.byteLength(n)>100||r.byteLength(s)>155||e.linkname&&r.byteLength(e.linkname)>100?null:(t.write(n),t.write(b(e.mode&u,6),100),t.write(b(e.uid,6),108),t.write(b(e.gid,6),116),t.write(b(e.size,11),124),t.write(b(e.mtime.getTime()/1e3|0,11),136),t[156]=a+h(e.type),e.linkname&&t.write(e.linkname,157),o.copy(t,l),c.copy(t,d),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(b(e.devmajor||0,6),329),t.write(b(e.devminor||0,6),337),s&&t.write(s,345),t.write(b(p(t),6),148),t)}},7766:function(e,t,n){"use strict";e.exports=e=>{if(null==e)return e;const t=/^[A-Z]+$/;return Object.keys(e).reduce((n,r)=>(t.test(r)?n[r.toLowerCase()]=e[r]:t.test(r[0])?n[r[0].toLowerCase()+r.slice(1)]=e[r]:n[r]=e[r],n),{})}},"786a":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t,n={}){if(!t||"string"!==typeof t)throw new Error("ipfs.files.flush requires a path");const i=await e.post("files/flush",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),f=await i.json();return new r(f.Cid)}return t})},"787d":function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n0){const e=this;this.requestQueue.forEach((function(t,n){e.send(t.payload,t.callback),e.requestQueue.delete(n)}))}},a.prototype._onClose=function(e){const t=this;!this.reconnectOptions.auto||[1e3,1001].includes(e.code)&&!1!==e.wasClean?(this.emit(this.CLOSE,e),this.requestQueue.size>0&&this.requestQueue.forEach((function(n,r){n.callback(f.ConnectionNotOpenError(e)),t.requestQueue.delete(r)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(n,r){n.callback(f.InvalidConnection("on WS",e)),t.responseQueue.delete(r)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},a.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},a.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},a.prototype._parseResponse=function(e){const t=this,n=[],r=e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return r.forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);let r=null;try{r=JSON.parse(e)}catch(i){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){t.reconnectOptions.auto&&t.reconnectOptions.onTimeout?t.reconnect():(t.emit(t.ERROR,f.ConnectionTimeout(t._customTimeout)),t.requestQueue.size>0&&t.requestQueue.forEach((function(e,n){e.callback(f.ConnectionTimeout(t._customTimeout)),t.requestQueue.delete(n)})))}),t._customTimeout))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},a.prototype.send=function(e,t){const n=this;let r=e.id;const i={payload:e,callback:t};if(Array.isArray(e)&&(r=e[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(r,i);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(r),this.emit(this.ERROR,f.ConnectionNotOpenError()),void i.callback(f.ConnectionNotOpenError());this.responseQueue.set(r,i),this.requestQueue.delete(r);try{this.connection.send(JSON.stringify(i.payload))}catch(s){i.callback(s),n.responseQueue.delete(r)}}},a.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},a.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},a.prototype.supportsSubscriptions=function(){return!0},a.prototype.reconnect=function(){const e=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(t,n){t.callback(f.PendingRequestsOnReconnectingError()),e.responseQueue.delete(n)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts0&&this.requestQueue.forEach((function(t,n){t.callback(f.MaxAttemptsReachedOnReconnectingError()),e.requestQueue.delete(n)})))},e.exports=a},"78ee":function(e,t,n){"use strict";const r=n("6978"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},"796b":function(e,t,n){const r=n("3301");e.exports=e=>{const t=async function*(){let t=yield,n=new r;for await(const i of e)if(t){n.append(i);while(n.length>=t){const e=n.shallowSlice(0,t);if(n.consume(t),t=yield e,!t){n.length&&(t=yield n,n=new r);break}}}else t=yield n.append(i),n=new r;if(t)throw Object.assign(new Error(`stream ended before ${t} bytes became available`),{code:"ERR_UNDER_READ",buffer:n})}();return t.next(),t}},7996:function(e,t,n){"use strict";const r=n("257d"),{mtimeToObject:i}=n("abb1"),s=n("9878"),f=n("542b"),a=n("15e4"),o=n("f783"),{AbortController:c}=n("c181");e.exports=s(e=>{async function t(t,n,s={}){const u=new c,l=o(u.signal,s.signal),d=await e.post("files/write",{timeout:s.timeout,signal:l,searchParams:a({arg:t,streamChannels:!0,count:s.length,...s}),...await f({content:n,path:"arg",mode:r(s.mode),mtime:i(s.mtime)},u,s.headers)});await d.text()}return t})},"7a09":function(e,t,n){"use strict";const r=n("f016"),i=n("2778"),{rfc4648:s}=n("e12d"),{decodeText:f,encodeText:a}=n("cf49"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},"7ae7":function(e,t,n){"use strict";const{AbortController:r}=n("c181");class i{constructor(){this._subs=new Map}static singleton(){return i.instance||(i.instance=new i),i.instance}subscribe(e,t,n){const i=this._subs.get(e)||[];if(i.find(e=>e.handler===t))throw new Error(`Already subscribed to ${e} with this handler`);const s=new r;return this._subs.set(e,[{handler:t,controller:s}].concat(i)),n&&n.addEventListener("abort",()=>this.unsubscribe(e,t)),s.signal}unsubscribe(e,t){const n=this._subs.get(e)||[];let r;t?(this._subs.set(e,n.filter(e=>e.handler!==t)),r=n.filter(e=>e.handler===t)):(this._subs.set(e,[]),r=n),r.forEach(e=>e.controller.abort())}}i.instance=null,e.exports=i},"7b28":function(e,t,n){"use strict";e.exports=n("0fc0")},"7b5f":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t={}){const n=await(await e.post("bitswap/wantlist",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers})).json();return(n.Keys||[]).map(e=>new r(e["/"]))}return t})},"7beb":function(e,t,n){const r=n("2ef0"),i=n("c960"),s=["0x01","0x","0x"];class f{constructor(e){e||(e=s),e instanceof f&&(this.v=e.v,this.r=e.r,this.s=e.s),r.isArray(e)||(e=i.resolveSignature(e));const[t,n,a]=e;this.v=t,this.r=n,this.s=a}get v(){return this._v}set v(e){e="0x"===e.slice(0,2)?e:"0x"+e,e="0x"===e?"0x0":e,this._v=i.makeEven(e)}get V(){return this.v}set V(e){this.v=i.makeEven(e)}get r(){return this._r}set r(e){e="0x"===e.slice(0,2)?e:"0x"+e,this._r=i.makeEven(e)}get R(){return this.r}set R(e){this.r=e}get s(){return this._s}set s(e){e="0x"===e.slice(0,2)?e:"0x"+e,this._s=i.makeEven(e)}get S(){return this.s}set S(e){this.s=e}isEmpty(){return"0x01"===this.v&&"0x"===this.r&&"0x"===this.s}encode(){return[i.makeEven(i.trimLeadingZero(this.v)),this.r,this.s]}toString(){return this.v+this.r+this.s}isEqual(e){return e=new f(e),this.toString()===e.toString()}}f.emtpySig=new f(s),e.exports=f},"7c59":function(e,t,n){const{rlpEncodeForLegacyTransaction:r}=n("a71b"),{rlpEncodeForValueTransfer:i,rlpEncodeForValueTransferMemo:s,rlpEncodeForFeeDelegatedValueTransfer:f,rlpEncodeForFeeDelegatedValueTransferWithRatio:a,rlpEncodeForFeeDelegatedValueTransferMemo:o,rlpEncodeForFeeDelegatedValueTransferMemoWithRatio:c}=n("8c2a"),{rlpEncodeForAccountUpdate:u,rlpEncodeForFeeDelegatedAccountUpdate:l,rlpEncodeForFeeDelegatedAccountUpdateWithRatio:d,parseAccountKey:h}=n("b304"),{rlpEncodeForContractDeploy:p,rlpEncodeForContractExecution:b,rlpEncodeForFeeDelegatedSmartContractDeploy:m,rlpEncodeForFeeDelegatedSmartContractDeployWithRatio:g,rlpEncodeForFeeDelegatedSmartContractExecution:k,rlpEncodeForFeeDelegatedSmartContractExecutionWithRatio:y}=n("8ea8"),{rlpEncodeForCancel:w,rlpEncodeForFeeDelegatedCancel:v,rlpEncodeForFeeDelegatedCancelWithRatio:E}=n("1a19"),{rlpEncodeForChainDataAnchoring:T}=n("38ef");e.exports={rlpEncodeForLegacyTransaction:r,rlpEncodeForValueTransfer:i,rlpEncodeForValueTransferMemo:s,rlpEncodeForFeeDelegatedValueTransfer:f,rlpEncodeForFeeDelegatedValueTransferWithRatio:a,rlpEncodeForFeeDelegatedValueTransferMemo:o,rlpEncodeForFeeDelegatedValueTransferMemoWithRatio:c,rlpEncodeForAccountUpdate:u,rlpEncodeForFeeDelegatedAccountUpdate:l,rlpEncodeForFeeDelegatedAccountUpdateWithRatio:d,parseAccountKey:h,rlpEncodeForContractDeploy:p,rlpEncodeForFeeDelegatedSmartContractDeploy:m,rlpEncodeForFeeDelegatedSmartContractDeployWithRatio:g,rlpEncodeForFeeDelegatedSmartContractExecutionWithRatio:y,rlpEncodeForContractExecution:b,rlpEncodeForFeeDelegatedSmartContractExecution:k,rlpEncodeForCancel:w,rlpEncodeForFeeDelegatedCancel:v,rlpEncodeForFeeDelegatedCancelWithRatio:E,rlpEncodeForChainDataAnchoring:T}},"7c5f":function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("ec88"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedChainDataAnchoringWithRatio))throw new Error(`Cannot decode to FeeDelegatedChainDataAnchoringWithRatio. The prefix must be ${o.TxTypeFeeDelegatedChainDataAnchoringWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,l,d,h]=i.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(r),gas:u.trimLeadingZero(s),from:f,input:a,feeRatio:u.trimLeadingZero(c),signatures:l,feePayer:d,feePayerSignatures:h}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(r.isString(e)&&(e=l(e)),super(a.TxTypeFeeDelegatedChainDataAnchoringWithRatio,e,t),e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedChainDataAnchoringWithRatio+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input,s.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeFeeDelegatedChainDataAnchoringWithRatio,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input,s.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},"7d58":function(e,t,n){"use strict";const{baseTable:r}=n("b0ea"),i=n("a97c").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},"7e03":function(e,t,n){ //! stable.js 0.1.8, https://github.com/Two-Screen/stable //! Ā© 2018 Angry Bytes and contributors. MIT licensed. (function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e,n){return t(e.slice(),n)};function t(e,t){"function"!==typeof t&&(t=function(e,t){return String(e).localeCompare(t)});var r=e.length;if(r<=1)return e;for(var i=new Array(r),s=1;sc&&(s=c),f>c&&(f=c),a=i,o=s;while(1)if(a{async function t(t,n={}){const r=await e.post("files/mkdir",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers});await r.text()}return t})},"7f6f":function(e,t,n){const r=n("2ef0"),i=n("c8cf"),s=n("e19e").formatters,f=n("e19e").payloadTransformer,a={},o=n("b4b9").map(e=>{e.inputFormatter=e.inputFormatter&&r.map(e.inputFormatter,e=>s[e]),e.outputFormatter=s[e.outputFormatter],e.transformPayload=f[e.transformPayload];const[t,n]=e.call.split("_");if(n&&(a[t]||(a[t]={}),a[t][e.name]=new i(e)),!a[e.name])return a[e.name]=new i(e)}).filter(e=>!!e);e.exports=o,e.exports.rpc=a},"7f99":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t,n={})=>{const i=await e.post("name/pubsub/cancel",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers});return r(await i.json())})},"7fc9":function(e,t,n){const r=n("d335"),i=n("4f8d");class s{constructor(e,t){this.weight=e,this.publicKey=t}get weight(){return this._weight}set weight(e){this._weight=i.hexToNumber(e)}get publicKey(){return this._publicKey}set publicKey(e){if(!i.isValidPublicKey(e))throw new Error("Invalid public key: "+e);this._publicKey=i.addHexPrefix(e)}encodeToBytes(){if(void 0===this.weight)throw new Error("weight should be specified for a multisig account");if(void 0===this.publicKey)throw new Error("publicKey should be specified for a multisig account");const e=i.compressPublicKey(this.publicKey);return[r.fromNat(i.numberToHex(this.weight)),e]}}e.exports=s},8042:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},8141:function(e,t,n){"use strict";t.DAGNode=n("7b28"),t.DAGLink=n("ef4d"),t.resolver=n("2cdb"),t.util=n("85b8"),t.codec=t.util.codec,t.defaultHashAlg=t.util.defaultHashAlg},"818c":function(e,t){e.exports=function(e,t,n){"use asm";var r=new e.Uint8Array(n);var i=t.pushInt;var s=t.pushInt32;var f=t.pushInt32Neg;var a=t.pushInt64;var o=t.pushInt64Neg;var c=t.pushFloat;var u=t.pushFloatSingle;var l=t.pushFloatDouble;var d=t.pushTrue;var h=t.pushFalse;var p=t.pushUndefined;var b=t.pushNull;var m=t.pushInfinity;var g=t.pushInfinityNeg;var k=t.pushNaN;var y=t.pushNaNNeg;var w=t.pushArrayStart;var v=t.pushArrayStartFixed;var E=t.pushArrayStartFixed32;var T=t.pushArrayStartFixed64;var x=t.pushObjectStart;var _=t.pushObjectStartFixed;var A=t.pushObjectStartFixed32;var P=t.pushObjectStartFixed64;var C=t.pushByteString;var S=t.pushByteStringStart;var N=t.pushUtf8String;var I=t.pushUtf8StringStart;var F=t.pushSimpleUnassigned;var O=t.pushTagStart;var L=t.pushTagStart4;var R=t.pushTagStart8;var D=t.pushTagUnassigned;var M=t.pushBreak;var U=e.Math.pow;var j=0;var K=0;var B=0;function H(e){e=e|0;j=0;K=e;while((j|0)<(K|0)){B=Ze[r[j]&255](r[j]|0)|0;if((B|0)>0){break}}return B|0}function G(e){e=e|0;if(((j|0)+(e|0)|0)<(K|0)){return 0}return 1}function V(e){e=e|0;return r[e|0]<<8|r[e+1|0]|0}function W(e){e=e|0;return r[e|0]<<24|r[e+1|0]<<16|r[e+2|0]<<8|r[e+3|0]|0}function z(e){e=e|0;i(e|0);j=j+1|0;return 0}function $(e){e=e|0;if(G(1)|0){return 1}i(r[j+1|0]|0);j=j+2|0;return 0}function q(e){e=e|0;if(G(2)|0){return 1}i(V(j+1|0)|0);j=j+3|0;return 0}function Y(e){e=e|0;if(G(4)|0){return 1}s(V(j+1|0)|0,V(j+3|0)|0);j=j+5|0;return 0}function Z(e){e=e|0;if(G(8)|0){return 1}a(V(j+1|0)|0,V(j+3|0)|0,V(j+5|0)|0,V(j+7|0)|0);j=j+9|0;return 0}function X(e){e=e|0;i(-1-(e-32|0)|0);j=j+1|0;return 0}function J(e){e=e|0;if(G(1)|0){return 1}i(-1-(r[j+1|0]|0)|0);j=j+2|0;return 0}function Q(e){e=e|0;var t=0;if(G(2)|0){return 1}t=V(j+1|0)|0;i(-1-(t|0)|0);j=j+3|0;return 0}function ee(e){e=e|0;if(G(4)|0){return 1}f(V(j+1|0)|0,V(j+3|0)|0);j=j+5|0;return 0}function te(e){e=e|0;if(G(8)|0){return 1}o(V(j+1|0)|0,V(j+3|0)|0,V(j+5|0)|0,V(j+7|0)|0);j=j+9|0;return 0}function ne(e){e=e|0;var t=0;var n=0;var r=0;r=e-64|0;if(G(r|0)|0){return 1}t=j+1|0;n=(j+1|0)+(r|0)|0;C(t|0,n|0);j=n|0;return 0}function re(e){e=e|0;var t=0;var n=0;var i=0;if(G(1)|0){return 1}i=r[j+1|0]|0;t=j+2|0;n=(j+2|0)+(i|0)|0;if(G(i+1|0)|0){return 1}C(t|0,n|0);j=n|0;return 0}function ie(e){e=e|0;var t=0;var n=0;var r=0;if(G(2)|0){return 1}r=V(j+1|0)|0;t=j+3|0;n=(j+3|0)+(r|0)|0;if(G(r+2|0)|0){return 1}C(t|0,n|0);j=n|0;return 0}function se(e){e=e|0;var t=0;var n=0;var r=0;if(G(4)|0){return 1}r=W(j+1|0)|0;t=j+5|0;n=(j+5|0)+(r|0)|0;if(G(r+4|0)|0){return 1}C(t|0,n|0);j=n|0;return 0}function fe(e){e=e|0;return 1}function ae(e){e=e|0;S();j=j+1|0;return 0}function oe(e){e=e|0;var t=0;var n=0;var r=0;r=e-96|0;if(G(r|0)|0){return 1}t=j+1|0;n=(j+1|0)+(r|0)|0;N(t|0,n|0);j=n|0;return 0}function ce(e){e=e|0;var t=0;var n=0;var i=0;if(G(1)|0){return 1}i=r[j+1|0]|0;t=j+2|0;n=(j+2|0)+(i|0)|0;if(G(i+1|0)|0){return 1}N(t|0,n|0);j=n|0;return 0}function ue(e){e=e|0;var t=0;var n=0;var r=0;if(G(2)|0){return 1}r=V(j+1|0)|0;t=j+3|0;n=(j+3|0)+(r|0)|0;if(G(r+2|0)|0){return 1}N(t|0,n|0);j=n|0;return 0}function le(e){e=e|0;var t=0;var n=0;var r=0;if(G(4)|0){return 1}r=W(j+1|0)|0;t=j+5|0;n=(j+5|0)+(r|0)|0;if(G(r+4|0)|0){return 1}N(t|0,n|0);j=n|0;return 0}function de(e){e=e|0;return 1}function he(e){e=e|0;I();j=j+1|0;return 0}function pe(e){e=e|0;v(e-128|0);j=j+1|0;return 0}function be(e){e=e|0;if(G(1)|0){return 1}v(r[j+1|0]|0);j=j+2|0;return 0}function me(e){e=e|0;if(G(2)|0){return 1}v(V(j+1|0)|0);j=j+3|0;return 0}function ge(e){e=e|0;if(G(4)|0){return 1}E(V(j+1|0)|0,V(j+3|0)|0);j=j+5|0;return 0}function ke(e){e=e|0;if(G(8)|0){return 1}T(V(j+1|0)|0,V(j+3|0)|0,V(j+5|0)|0,V(j+7|0)|0);j=j+9|0;return 0}function ye(e){e=e|0;w();j=j+1|0;return 0}function we(e){e=e|0;var t=0;t=e-160|0;if(G(t|0)|0){return 1}_(t|0);j=j+1|0;return 0}function ve(e){e=e|0;if(G(1)|0){return 1}_(r[j+1|0]|0);j=j+2|0;return 0}function Ee(e){e=e|0;if(G(2)|0){return 1}_(V(j+1|0)|0);j=j+3|0;return 0}function Te(e){e=e|0;if(G(4)|0){return 1}A(V(j+1|0)|0,V(j+3|0)|0);j=j+5|0;return 0}function xe(e){e=e|0;if(G(8)|0){return 1}P(V(j+1|0)|0,V(j+3|0)|0,V(j+5|0)|0,V(j+7|0)|0);j=j+9|0;return 0}function _e(e){e=e|0;x();j=j+1|0;return 0}function Ae(e){e=e|0;O(e-192|0|0);j=j+1|0;return 0}function Pe(e){e|0;O(e|0);j=j+1|0;return 0}function Ce(e){e|0;O(e|0);j=j+1|0;return 0}function Se(e){e|0;O(e|0);j=j+1|0;return 0}function Ne(e){e|0;O(e|0);j=j+1|0;return 0}function Ie(e){e=e|0;O(e-192|0|0);j=j+1|0;return 0}function Fe(e){e|0;O(e|0);j=j+1|0;return 0}function Oe(e){e|0;O(e|0);j=j+1|0;return 0}function Le(e){e|0;O(e|0);j=j+1|0;return 0}function Re(e){e=e|0;if(G(1)|0){return 1}O(r[j+1|0]|0);j=j+2|0;return 0}function De(e){e=e|0;if(G(2)|0){return 1}O(V(j+1|0)|0);j=j+3|0;return 0}function Me(e){e=e|0;if(G(4)|0){return 1}L(V(j+1|0)|0,V(j+3|0)|0);j=j+5|0;return 0}function Ue(e){e=e|0;if(G(8)|0){return 1}R(V(j+1|0)|0,V(j+3|0)|0,V(j+5|0)|0,V(j+7|0)|0);j=j+9|0;return 0}function je(e){e=e|0;F((e|0)-224|0);j=j+1|0;return 0}function Ke(e){e=e|0;h();j=j+1|0;return 0}function Be(e){e=e|0;d();j=j+1|0;return 0}function He(e){e=e|0;b();j=j+1|0;return 0}function Ge(e){e=e|0;p();j=j+1|0;return 0}function Ve(e){e=e|0;if(G(1)|0){return 1}F(r[j+1|0]|0);j=j+2|0;return 0}function We(e){e=e|0;var t=0;var n=0;var i=1.0;var s=0.0;var f=0.0;var a=0.0;if(G(2)|0){return 1}t=r[j+1|0]|0;n=r[j+2|0]|0;if((t|0)&0x80){i=-1.0}s=+(((t|0)&0x7C)>>2);f=+(((t|0)&0x03)<<8|n);if(+s==0.0){c(+(+i*+5.9604644775390625e-8*+f))}else if(+s==31.0){if(+i==1.0){if(+f>0.0){k()}else{m()}}else{if(+f>0.0){y()}else{g()}}}else{c(+(+i*U(+2,+(+s-25.0))*+(1024.0+f)))}j=j+3|0;return 0}function ze(e){e=e|0;if(G(4)|0){return 1}u(r[j+1|0]|0,r[j+2|0]|0,r[j+3|0]|0,r[j+4|0]|0);j=j+5|0;return 0}function $e(e){e=e|0;if(G(8)|0){return 1}l(r[j+1|0]|0,r[j+2|0]|0,r[j+3|0]|0,r[j+4|0]|0,r[j+5|0]|0,r[j+6|0]|0,r[j+7|0]|0,r[j+8|0]|0);j=j+9|0;return 0}function qe(e){e=e|0;return 1}function Ye(e){e=e|0;M();j=j+1|0;return 0}var Ze=[z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,$,q,Y,Z,qe,qe,qe,qe,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,J,Q,ee,te,qe,qe,qe,qe,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,ne,re,ie,se,fe,qe,qe,qe,ae,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,oe,ce,ue,le,de,qe,qe,qe,he,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,pe,be,me,ge,ke,qe,qe,qe,ye,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,we,ve,Ee,Te,xe,qe,qe,qe,_e,Ae,Ae,Ae,Ae,Ae,Ae,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Ie,Re,De,Me,Ue,qe,qe,qe,qe,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,je,Ke,Be,He,Ge,Ve,We,ze,$e,qe,qe,qe,Ye];return{parse:H}}},"819c":function(e,t,n){const r=n("4f8d"),i=n("bfa7"),{KEY_ROLE:s}=n("5fac"),f=n("3867"),{validateForSigning:a,validateIndexWithKeys:o,encryptKey:c,formatEncrypted:u}=n("5fac");class l{constructor(e,t){this.address=e,this.key=t}get address(){return this._address}set address(e){if(!r.isAddress(e))throw new Error("Invalid address : "+e);this._address=r.addHexPrefix(e).toLowerCase()}get key(){return this._key}set key(e){this._key=null!==e?e instanceof i?e:new i(e):null}getPublicKey(e=!1){return this.key.getPublicKey(e)}copy(){return new l(this.address,this.key)}sign(e,t,n,r){a(e,t);const i=this.getKeyByRole(n);return void 0!==r?(o(r,1),i.sign(e,t)):[i.sign(e,t)]}ecsign(e,t,n){if(!r.isValidHashStrict(e))throw new Error("Invalid hash: "+e);const i=this.getKeyByRole(t);return void 0!==n?(o(n,1),i.ecsign(e)):[i.ecsign(e)]}signMessage(e,t,n){if(void 0===t)throw new Error("role should be defined for signMessage. Please use 'caver.wallet.keyring.role'.");const i=r.hashMessage(e),s=this.getKeyByRole(t),f=[];return void 0!==n&&o(n,1),f.push(s.signMessage(i)),{messageHash:i,signatures:f,message:e}}getKeyByRole(e){if(void 0===e)throw new Error("role should be defined.");if(e>=s.roleLast||e<0)throw new Error("Invalid role number: "+e);return this.key}getKlaytnWalletKey(){return`${this.key.privateKey}0x00${this.address}`}toAccount(){if(!this.key)throw new Error("Failed to create Account instance: Empty key in keyring.");const e=this.getPublicKey();return f.createWithAccountKeyPublic(this.address,e)}encrypt(e,t={}){let n=[];return n=c(this.key,e,t),u(4,this.address,n,t)}encryptV3(e,t){t=t||{};const n=c(this.key,e,t)[0];return u(3,this.address,n,t)}isDecoupled(){return this.address.toLowerCase()!==this.key.getDerivedAddress().toLowerCase()}}e.exports=l},"81b6":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},"81e9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new TextEncoder,i=new TextDecoder,s="json",f=512,a=e=>r.encode(JSON.stringify(e)),o=e=>JSON.parse(i.decode(e));t.code=f,t.decode=o,t.encode=a,t.name=s},8227:function(e,t,n){"use strict";const r=n("9546");function i(){return 4}function s(e,t,n,r){n.setFloat32(r,e,!0),s.bytes=4}function f(e,t,n){const r=t.getFloat32(n,!0);return f.bytes=4,r}e.exports=r(5,s,f,i)},"826f":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nnew Date(e),1:e=>new Date(1e3*e),2:e=>a.arrayBufferToBignumber(e),3:e=>o.NEG_ONE.minus(a.arrayBufferToBignumber(e)),4:e=>o.TEN.pow(e[0]).times(e[1]),5:e=>o.TWO.pow(e[0]).times(e[1]),32:e=>new l(e),35:e=>new RegExp(e)},e.tags),this.parser=f(t,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var e=this._parents.pop();if(e.length>0)throw new Error(`Missing ${e.length} elements`);switch(e.type){case o.PARENT.TAG:this._push(this.createTag(e.ref[0],e.ref[1]));break;case o.PARENT.BYTE_STRING:this._push(this.createByteString(e.ref,e.length));break;case o.PARENT.UTF8_STRING:this._push(this.createUtf8String(e.ref,e.length));break;case o.PARENT.MAP:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(e.ref,e.length));break;case o.PARENT.OBJECT:if(e.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(e.ref,e.length));break;case o.PARENT.ARRAY:this._push(this.createArray(e.ref,e.length));break;default:break}this._currentParent&&this._currentParent.type===o.PARENT.TAG&&this._dec()}_dec(){const e=this._currentParent;e.length<0||(e.length--,0===e.length&&this._closeParent())}_push(e,t){const n=this._currentParent;switch(n.values++,n.type){case o.PARENT.ARRAY:case o.PARENT.BYTE_STRING:case o.PARENT.UTF8_STRING:n.length>-1?this._ref[this._ref.length-n.length]=e:this._ref.push(e),this._dec();break;case o.PARENT.OBJECT:null!=n.tmpKey?(this._ref[n.tmpKey]=e,n.tmpKey=null,this._dec()):(n.tmpKey=e,"string"!==typeof n.tmpKey&&(n.type=o.PARENT.MAP,n.ref=a.buildMap(n.ref)));break;case o.PARENT.MAP:null!=n.tmpKey?(this._ref.set(n.tmpKey,e),n.tmpKey=null,this._dec()):n.tmpKey=e;break;case o.PARENT.TAG:this._ref.push(e),t||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(e,t,n){this._parents[this._depth]={type:t,length:n,ref:e,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:o.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(e,t){const n=this._knownTags[e];return n?n(t):new u(e,t)}createMap(e,t){return e}createObject(e,t){return e}createArray(e,t){return e}createByteString(e,t){return r.concat(e)}createByteStringFromHeap(e,t){return e===t?r.alloc(0):r.from(this._heap.slice(e,t))}createInt(e){return e}createInt32(e,t){return a.buildInt32(e,t)}createInt64(e,t,n,r){return a.buildInt64(e,t,n,r)}createFloat(e){return e}createFloatSingle(e,t,n,r){return i.read([e,t,n,r],0,!1,23,4)}createFloatDouble(e,t,n,r,s,f,a,o){return i.read([e,t,n,r,s,f,a,o],0,!1,52,8)}createInt32Neg(e,t){return-1-a.buildInt32(e,t)}createInt64Neg(e,t,n,r){const i=a.buildInt32(e,t),f=a.buildInt32(n,r);return i>o.MAX_SAFE_HIGH?o.NEG_ONE.minus(new s(i).times(o.SHIFT32).plus(f)):-1-(i*o.SHIFT32+f)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(e,t){return e.join("")}createUtf8StringFromHeap(e,t){return e===t?"":this._buffer.toString("utf8",e,t)}createSimpleUnassigned(e){return new c(e)}pushInt(e){this._push(this.createInt(e))}pushInt32(e,t){this._push(this.createInt32(e,t))}pushInt64(e,t,n,r){this._push(this.createInt64(e,t,n,r))}pushFloat(e){this._push(this.createFloat(e))}pushFloatSingle(e,t,n,r){this._push(this.createFloatSingle(e,t,n,r))}pushFloatDouble(e,t,n,r,i,s,f,a){this._push(this.createFloatDouble(e,t,n,r,i,s,f,a))}pushInt32Neg(e,t){this._push(this.createInt32Neg(e,t))}pushInt64Neg(e,t,n,r){this._push(this.createInt64Neg(e,t,n,r))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],o.PARENT.ARRAY,-1)}pushArrayStartFixed(e){this._createArrayStartFixed(e)}pushArrayStartFixed32(e,t){const n=a.buildInt32(e,t);this._createArrayStartFixed(n)}pushArrayStartFixed64(e,t,n,r){const i=a.buildInt64(e,t,n,r);this._createArrayStartFixed(i)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(e){this._createObjectStartFixed(e)}pushObjectStartFixed32(e,t){const n=a.buildInt32(e,t);this._createObjectStartFixed(n)}pushObjectStartFixed64(e,t,n,r){const i=a.buildInt64(e,t,n,r);this._createObjectStartFixed(i)}pushByteStringStart(){this._parents[this._depth]={type:o.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(e,t){this._push(this.createByteStringFromHeap(e,t))}pushUtf8StringStart(){this._parents[this._depth]={type:o.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(e,t){this._push(this.createUtf8StringFromHeap(e,t))}pushSimpleUnassigned(e){this._push(this.createSimpleUnassigned(e))}pushTagStart(e){this._parents[this._depth]={type:o.PARENT.TAG,length:1,ref:[e]}}pushTagStart4(e,t){this.pushTagStart(a.buildInt32(e,t))}pushTagStart8(e,t,n,r){this.pushTagStart(a.buildInt64(e,t,n,r))}pushTagUnassigned(e){this._push(this.createTag(e))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(e){0!==e?this._createParent({},o.PARENT.OBJECT,e):this._push(this.createObject({}))}_createArrayStartFixed(e){0!==e?this._createParent(new Array(e),o.PARENT.ARRAY,e):this._push(this.createArray([]))}_decode(e){if(0===e.byteLength)throw new Error("Input too short");this._reset(),this._heap8.set(e);const t=this.parser.parse(e.byteLength);if(this._depth>1){while(0===this._currentParent.length)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(t>0)throw new Error("Failed to parse");if(0===this._res.length)throw new Error("No valid result")}decodeFirst(e){return this._decode(e),this._res[0]}decodeAll(e){return this._decode(e),this._res}static decode(e,t){"string"===typeof e&&(e=r.from(e,t||"hex"));const n=new d({size:e.length});return n.decodeFirst(e)}static decodeAll(e,t){"string"===typeof e&&(e=r.from(e,t||"hex"));const n=new d({size:e.length});return n.decodeAll(e)}}d.decodeFirst=d.decode,e.exports=d}).call(this,n("c8ba"))},"844e":function(e,t,n){"use strict";const r=n("f016"),i=n("ef77"),{rfc4648:s}=n("2bef"),{decodeText:f,encodeText:a}=n("0513"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},84634:function(e,t,n){"use strict";const{encodeText:r}=n("1ee1");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},8464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2b2d");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"84e9":function(e,t){const n=e=>{const t=e=>e.length%2===0?e:"0"+e,n=e=>t(e.toString(16)),r=(e,t)=>e<56?n(t+e):n(t+n(e).length/2+55)+n(e),i=e=>{if("string"===typeof e){const t=e.slice(2),n=2!=t.length||t>="80"?r(t.length/2,128):"";return n+t}{const t=e.map(i).join(""),n=r(t.length/2,192);return n+t}};return"0x"+i(e)},r=e=>{let t=2;const n=()=>{if(t>=e.length)throw"";const n=e.slice(t,t+2);return n<"80"?(t+=2,"0x"+n):n<"c0"?i():s()},r=()=>{const n=parseInt(e.slice(t,t+=2),16)%64;return n<56?n:parseInt(e.slice(t,t+=2*(n-55)),16)},i=()=>{const n=r();return"0x"+e.slice(t,t+=2*n)},s=()=>{const e=2*r()+t;let i=[];while(tasync(t,n={})=>{const i=await e.post("key/gen",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers}),f=await i.json();return r(f)})},8590:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return eo.cid(e,t),u=e=>f.isDAGNode(e)?e.serialize():a(e.Data,e.Links),l=e=>{const t=i.PBNode.decode(e),n=t.Links.map(e=>new s(e.Name,e.Tsize,e.Hash)),r=null==t.Data?new Uint8Array(0):t.Data;return new f(r,n,e.byteLength)};t.serialize=u,t.deserialize=l,t.cid=c},"85be":function(e,t,n){"use strict";const r=n("901e").BigNumber;t.MT={POS_INT:0,NEG_INT:1,BYTE_STRING:2,UTF8_STRING:3,ARRAY:4,MAP:5,TAG:6,SIMPLE_FLOAT:7},t.TAG={DATE_STRING:0,DATE_EPOCH:1,POS_BIGINT:2,NEG_BIGINT:3,DECIMAL_FRAC:4,BIGFLOAT:5,BASE64URL_EXPECTED:21,BASE64_EXPECTED:22,BASE16_EXPECTED:23,CBOR:24,URI:32,BASE64URL:33,BASE64:34,REGEXP:35,MIME:36},t.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31},t.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23},t.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")},t.SHIFT32=Math.pow(2,32),t.SHIFT16=Math.pow(2,16),t.MAX_SAFE_HIGH=2097151,t.NEG_ONE=new r(-1),t.TEN=new r(10),t.TWO=new r(2),t.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5}},"85fc":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"866e":function(e,t,n){const r=n("b2c9");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"868d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2e78");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},8694:function(e,t,n){const r=n("e224");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},8741:function(e,t,n){"use strict";var r=n("cfce").defined,i=n("2612");function s(e,t,n){const s=Object.keys(n),f=t.length,a=new Array(f);for(let r=0;re+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"87b8":function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("f35a"),f=n("d335"),a=n("aaa0"),o=n("c7c9"),{refineSignatures:c,typeDetectionFromRLPEncoding:u}=n("e638"),l=n("9e5c"),d=n("819c"),h=n("d8a4"),p=n("1b9c"),{KEY_ROLE:b}=n("5fac"),m=n("4f8d"),g=n("7beb");class k extends o{constructor(e,t,n){super(e,t,n),this.feePayer=t.feePayer,this.feePayerSignatures=t.feePayerSignatures||[]}get feePayer(){return this._feePayer}set feePayer(e){if(e&&"0x"!==e||(e="0x0000000000000000000000000000000000000000"),!m.isAddress(e))throw new Error("Invalid address of fee payer: "+e);this._feePayer=e.toLowerCase()}get feePayerSignatures(){return this._feePayerSignatures}set feePayerSignatures(e){this._feePayerSignatures=c(e,this.type)}async signAsFeePayer(e,t,n=a.getHashForFeePayerSignature){r.isFunction(t)&&(n=t,t=void 0);let i=e;if(r.isString(e)&&(i=l.createFromPrivateKey(e)),!(i instanceof d)&&!(i instanceof h)&&!(i instanceof p))throw new Error("Unsupported key type. The key parameter of the signAsFeePayer must be a single private key string, KlaytnWalletKey string, or Keyring instance.");if(this.feePayer&&"0x"!==this.feePayer&&"0x0000000000000000000000000000000000000000"!==this.feePayer||(this.feePayer=i.address),this.feePayer.toLowerCase()!==i.address.toLowerCase())throw new Error("The feePayer address of the transaction is different with the address of the keyring to use.");await this.fillTransaction();const s=n(this),f=i.sign(s,this.chainId,b.roleFeePayerKey,t);return this.appendFeePayerSignatures(f),this}appendFeePayerSignatures(e){let t=e;if(r.isString(t)&&(t=m.resolveSignature(t)),t instanceof g&&(t=[t]),!r.isArray(t))throw new Error("Failed to append signatures: invalid signatures format "+t);r.isString(t[0])&&(t=[t]),this.feePayerSignatures=this.feePayerSignatures.concat(t)}combineSignedRawTransactions(e){if(!r.isArray(e))throw new Error("The parameter must be an array of RLP encoded transaction strings.");let t=!1;(m.isEmptySig(this.signatures)||m.isEmptySig(this.feePayerSignatures))&&(t=!0);for(const n of e){const e=u(n);if(this.type!==e)throw new Error("Transaction type mismatch: Signatures from different transactions cannot be combined.");const r=this.constructor.decode(n);for(const n in r){if("_klaytnCall"===n||"_signatures"===n||"_feePayerSignatures"===n)continue;if("_feePayer"===n){const e="0x0000000000000000000000000000000000000000";if(("0x"!==r[n]&&r[n]!==e||"0x"===this[n]||this[n]===e)&&t&&(this[n]=r[n]),"0x"===r[n]||r[n]===e)continue}void 0===this[n]&&t&&(this[n]=r[n]);const e="Transactions containing different information cannot be combined.";if("_account"!==n){if(this[n]!==r[n])throw new Error(e)}else if(this[n].getRLPEncodingAccountKey()!==r[n].getRLPEncodingAccountKey())throw new Error(e)}this.appendSignatures(r.signatures),this.appendFeePayerSignatures(r.feePayerSignatures)}return this.getRLPEncoding()}getSenderTxHash(){const e=this.getRLPEncoding(),t=e.slice(0,4),n="0x"+e.slice(4),r=i.decode(n);return s.keccak256(t+i.encode(r.slice(0,r.length-2)).slice(2))}getRLPEncodingForFeePayerSignature(){return i.encode([this.getCommonRLPEncodingForSignature(),this.feePayer,f.fromNat(this.chainId),"0x","0x"])}recoverFeePayerPublicKeys(){if(m.isEmptySig(this.feePayerSignatures))throw new Error("Failed to recover public keys from feePayerSignatures: feePayerSignatures is empty.");const e=f.toNumber(this.feePayerSignatures[0].v),t=e<35?f.fromNat("0x1"):f.fromNumber(e-35>>1);this.chainId||(this.chainId=t);const n=this.getRLPEncodingForFeePayerSignature(),r=s.keccak256(n),i=[];for(const s of this.feePayerSignatures){const e=f.toNumber(s.v),t=e<35?f.fromNat("0x1"):f.fromNumber(e-35>>1);if(m.trimLeadingZero(this.chainId)!==m.trimLeadingZero(t))throw new Error("Invalid feePayerSignatures data: recovery data is not matched.");i.push(m.recoverPublicKey(r,s,!0))}return i}}e.exports=k},"87f2":function(e,t,n){"use strict";const{baseTable:r}=n("4958"),i=new Map;for(const s in r){const e=r[s];i.set(e,s)}e.exports=Object.freeze(i)},8804:function(e,t,n){"use strict";const r=n("c8ff"),i=n("fe37"),s=n("3ae5"),f=n("62d6"),{concat:a}=n("ca9f"),{toString:o}=n("868d"),{equals:c}=n("a43c4"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},"88ad":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"88db":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9a44");const i=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),s=r.from({name:"sha2-256",code:18,encode:i("SHA-256")}),f=r.from({name:"sha2-512",code:19,encode:i("SHA-512")});t.sha256=s,t.sha512=f},"891a":function(e,t,n){"use strict";const r=n("d556"),i=n("2612"),{names:s}=n("be79"),{toString:f}=n("b155"),{fromString:a}=n("f3b5"),{concat:o}=n("b301"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},8954:function(e,t,n){"use strict";const r=n("8804"),i=n("0abd"),s=n("a2d3"),f=n("15e4");class a{constructor(e){this.client=new i(e),this.service=new s(e)}add(e,t){return a.add(this.client,e,t)}static async add(e,t,{timeout:n,signal:r,headers:i,...s}){const f=await e.post("pin/remote/add",{timeout:n,signal:r,headers:i,searchParams:l({cid:t,...s})});return a.decodePin(await f.json())}static decodePin({Name:e,Status:t,Cid:n}){return{cid:new r(n),name:e,status:t}}ls(e){return a.ls(this.client,e)}static async*ls(e,{timeout:t,signal:n,headers:r,...i}){const s=await e.post("pin/remote/ls",{signal:n,timeout:t,headers:r,searchParams:u(i)});for await(const f of s.ndjson())yield a.decodePin(f)}rm(e){return a.rm(this.client,{...e,all:!1})}rmAll(e){return a.rm(this.client,{...e,all:!0})}static async rm(e,{timeout:t,signal:n,headers:r,...i}){await e.post("pin/remote/rm",{timeout:t,signal:n,headers:r,searchParams:u(i)})}}const o=e=>{if("string"===typeof e&&""!==e)return e;throw new TypeError("service name must be passed")},c=e=>{if(r.isCID(e))return e.toString();throw new TypeError("CID instance expected instead of "+e)},u=({service:e,cid:t,name:n,status:r,all:i})=>{const s=f({service:o(e),name:n,force:!!i||void 0});if(t)for(const f of t)s.append("cid",c(f));if(r)for(const f of r)s.append("status",f);return s},l=({cid:e,service:t,background:n,name:r,origins:i})=>{const s=f({arg:c(e),service:o(t),name:r,background:!!n||void 0});if(i)for(const f of i)s.append("origin",f.toString());return s};e.exports=a},"8a5d":function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},"8b78":function(e,t,n){"use strict";const r=n("2ac4"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},"8b87":function(e,t,n){"use strict";const{BigNumber:r}=n("901e"),i=n("8804"),s=n("9878"),f=n("15e4");function a(e){return{provideBufLen:e.ProvideBufLen,wantlist:(e.Wantlist||[]).map(e=>new i(e["/"])),peers:e.Peers||[],blocksReceived:new r(e.BlocksReceived),dataReceived:new r(e.DataReceived),blocksSent:new r(e.BlocksSent),dataSent:new r(e.DataSent),dupBlksReceived:new r(e.DupBlksReceived),dupDataReceived:new r(e.DupDataReceived)}}e.exports=s(e=>{async function t(t={}){const n=await e.post("bitswap/stat",{searchParams:f(t),timeout:t.timeout,signal:t.signal,headers:t.headers});return a(await n.json())}return t})},"8c04":function(e,t,n){"use strict";const r=n("8804"),i=n("542b"),s=n("9878"),f=n("15e4"),a=n("f783"),{AbortController:o}=n("c181");e.exports=s(e=>async(t,n,s={})=>{const c=new o,u=a(c.signal,s.signal),l=await e.post("object/patch/append-data",{timeout:s.timeout,signal:u,searchParams:f({arg:""+(t instanceof Uint8Array?new r(t):t),...s}),...await i(n,c,s.headers)}),{Hash:d}=await l.json();return new r(d)})},"8c2a":function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("4f8d"),f=n("e19e"),{VALUE_TRANFSER_TYPE_TAG:a,VALUE_TRANSFER_MEMO_TYPE_TAG:o,FEE_DELEGATED_VALUE_TRANSFER_TYPE_TAG:c,FEE_DELEGATED_VALUE_TRANSFER_MEMO_TYPE_TAG:u,FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO_TYPE_TAG:l,FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO_TYPE_TAG:d}=f.constants;function h(e){return r.encode([r.encode([a,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase()]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function p(e){return r.encode([r.encode([o,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function b(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,u,l,[[d,h,p]]]=s.rlpDecode(t);return r.encode([r.encode([c,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(u),l.toLowerCase()]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([c,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase()]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function m(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,u,l,[[h,p,b]]]=s.rlpDecode(t);return r.encode([r.encode([d,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),u.toLowerCase(),l]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([d,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),i.fromNat(e.feeRatio)]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function g(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,l,d,[[h,p,b]]]=s.rlpDecode(t);return r.encode([r.encode([u,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),l.toLowerCase(),d]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([u,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function k(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,u,d,h,[[p,b,m]]]=s.rlpDecode(t);return r.encode([r.encode([l,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),u.toLowerCase(),d,i.fromNat(h)]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([l,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data,i.fromNat(e.feeRatio)]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}e.exports={rlpEncodeForValueTransfer:h,rlpEncodeForValueTransferMemo:p,rlpEncodeForFeeDelegatedValueTransfer:b,rlpEncodeForFeeDelegatedValueTransferWithRatio:m,rlpEncodeForFeeDelegatedValueTransferMemo:g,rlpEncodeForFeeDelegatedValueTransferMemoWithRatio:k}},"8c49":function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},"8d72":function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("f35a"),a=n("c7c9"),{TX_TYPE_STRING:o,TX_TYPE_TAG:c,refineSignatures:u,getTypeTagWithoutEthereumTxTypeEnvelopeTag:l,isNot:d}=n("e638"),h=n("4f8d"),p=n("3508"),b=n("aaa0");function m(e){if(e=h.addHexPrefix(e),!e.startsWith(c.TxTypeEthereumDynamicFee))throw new Error(`Cannot decode to EthereumDynamicFee. The prefix must be ${c.TxTypeEthereumDynamicFee}: ${e}`);const t="0x"+e.replace(c.TxTypeEthereumDynamicFee,""),[n,r,s,f,a,o,u,l,d,p,b,m]=i.decode(t);return{chainId:h.trimLeadingZero(n),nonce:h.trimLeadingZero(r),maxPriorityFeePerGas:h.trimLeadingZero(s),maxFeePerGas:h.trimLeadingZero(f),gas:h.trimLeadingZero(a),to:o,value:h.trimLeadingZero(u),input:l,encodedAccessList:d,signatures:[p,b,m]}}class g extends a{static create(e,t){return new g(e,t)}static decode(e,t){const n=m(e);return n.accessList=p.decode(n.encodedAccessList),new g(n,t)}constructor(e,t){if(r.isString(e)&&(e=m(e)),e.from=e.from||"0x0000000000000000000000000000000000000000",super(o.TxTypeEthereumDynamicFee,e,t),this.to=e.to||"0x",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data||"0x",this.value=e.value||"0x0",this.accessList=e.accessList||[],void 0!==e.maxPriorityFeePerGas&&(this.maxPriorityFeePerGas=e.maxPriorityFeePerGas),void 0!==e.maxFeePerGas&&(this.maxFeePerGas=e.maxFeePerGas)}get to(){return this._to}set to(e){if("0x"!==e&&!h.isAddress(e))throw new Error("Invalid address "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=h.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!h.isHex(e))throw new Error("Invalid input data "+e);this._input=h.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}get accessList(){return this._accessList}set accessList(e){e instanceof p||(e=p.create(e)),this._accessList=e}get maxPriorityFeePerGas(){return this._maxPriorityFeePerGas}set maxPriorityFeePerGas(e){this._maxPriorityFeePerGas=h.numberToHex(e)}get maxFeePerGas(){return this._maxFeePerGas}set maxFeePerGas(e){this._maxFeePerGas=h.numberToHex(e)}get signatures(){return this._signatures}set signatures(e){const t=u(e,this.type);if(!h.isEmptySig(t)){const e=h.hexToNumber(t.v);if(0!==e&&1!==e)throw new Error("Invalid signature: The y-parity of the transaction should either be 0 or 1.")}this._signatures=t}appendSignatures(e){if(!h.isEmptySig(this.signatures))throw new Error(`signatures already defined. ${this.type} cannot include more than one signature. Please use tx.signatures = sigArr to replace.`);if(Array.isArray(e[0])){if(e.length>1)throw new Error(`signatures are too long. ${this.type} cannot include more than one signature.`);e=e[0]}this.signatures=e}getRLPEncoding(){this.validateOptionalValues();const[e,t,n]=this.signatures.encode();return c[this.type]+i.encode([s.fromNat(this.chainId),s.fromNat(this.nonce),s.fromNat(this.maxPriorityFeePerGas),s.fromNat(this.maxFeePerGas),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,this.accessList.encodeToBytes(),e,t,n]).slice(2)}getRLPEncodingForSignature(){return this.validateOptionalValues(),l(this.type)+i.encode([s.fromNat(this.chainId),s.fromNat(this.nonce),s.fromNat(this.maxPriorityFeePerGas),s.fromNat(this.maxFeePerGas),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,this.accessList.encodeToBytes()]).slice(2)}getCommonRLPEncodingForSignature(){return this.getRLPEncodingForSignature()}recoverPublicKeys(){if(h.isEmptySig(this.signatures))throw new Error("Failed to recover public key from signatures: signatures is empty.");const e=s.toNumber(this.signatures.v),t=this.getRLPEncodingForSignature(),n=f.keccak256(t),r=[];return r.push(h.recoverPublicKey(n,[h.makeEven(h.toHex(e)),this.signatures.r,this.signatures.s],!0)),r}async sign(e,t,n=b.getHashForSignature){r.isFunction(t)&&(n=t,t=void 0);const{keyring:i,hash:s,role:f}=await this._sign(e,n),a=i.ecsign(s,f,t);return this.appendSignatures(a),this}async fillTransaction(){const e=d(this.maxPriorityFeePerGas),t=d(this.maxFeePerGas),[n,r,i,s]=await Promise.all([d(this.chainId)?this.getChainId():this.chainId,e?this.getMaxPriorityFeePerGas():this.maxPriorityFeePerGas,d(this.nonce)?this.getNonce(this.from):this.nonce,e||t?this.getBaseFee():void 0]);this.chainId=n,this.nonce=i,this.maxPriorityFeePerGas=r,t&&(this.maxFeePerGas=2*h.hexToNumber(s)+h.hexToNumber(this.maxPriorityFeePerGas))}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.maxPriorityFeePerGas)throw new Error("maxPriorityFeePerGas is undefined. Define maxPriorityFeePerGas in transaction or use 'transaction.fillTransaction' to fill values.");if(void 0===this.maxFeePerGas)throw new Error("maxFeePerGas is undefined. Define maxFeePerGas in transaction or use 'transaction.fillTransaction' to fill values.");if(void 0===this.chainId)throw new Error("chainId is undefined. Define chainId in transaction or use 'transaction.fillTransaction' to fill values.")}getTransactionHash(){let e=this.getRLPEncoding();return e=e.replace(c[this.type],l(this.type)),f.keccak256(e)}}e.exports=g},"8de2":function(e,t,n){"use strict";const r=n("f5a7"),{toString:i}=n("ddce"),{fromString:s}=n("8464");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},"8e99":function(e,t,n){"use strict";const{Buffer:r}=n("b639"),i=n("8431"),s=n("5ee5");class f extends i{createTag(e,t){return`${e}(${t})`}createInt(e){return super.createInt(e).toString()}createInt32(e,t){return super.createInt32(e,t).toString()}createInt64(e,t,n,r){return super.createInt64(e,t,n,r).toString()}createInt32Neg(e,t){return super.createInt32Neg(e,t).toString()}createInt64Neg(e,t,n,r){return super.createInt64Neg(e,t,n,r).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(e){const t=super.createFloat(e);return s.isNegativeZero(e)?"-0_1":t+"_1"}createFloatSingle(e,t,n,r){const i=super.createFloatSingle(e,t,n,r);return i+"_2"}createFloatDouble(e,t,n,r,i,s,f,a){const o=super.createFloatDouble(e,t,n,r,i,s,f,a);return o+"_3"}createByteString(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:"h'"+n}createByteStringFromHeap(e,t){const n=r.from(super.createByteStringFromHeap(e,t)).toString("hex");return`h'${n}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(e){return`simple(${e})`}createArray(e,t){const n=super.createArray(e,t);return-1===t?`[_ ${n.join(", ")}]`:`[${n.join(", ")}]`}createMap(e,t){const n=super.createMap(e),r=Array.from(n.keys()).reduce(a(n),"");return-1===t?`{_ ${r}}`:`{${r}}`}createObject(e,t){const n=super.createObject(e),r=Object.keys(n).reduce(a(n),"");return-1===t?`{_ ${r}}`:`{${r}}`}createUtf8String(e,t){const n=e.join(", ");return-1===t?`(_ ${n})`:`"${n}"`}createUtf8StringFromHeap(e,t){const n=r.from(super.createUtf8StringFromHeap(e,t)).toString("utf8");return`"${n}"`}static diagnose(e,t){"string"===typeof e&&(e=r.from(e,t||"hex"));const n=new f;return n.decodeFirst(e)}}function a(e){return(t,n)=>t?`${t}, ${n}: ${e[n]}`:`${n}: ${e[n]}`}e.exports=f},"8ea8":function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("4f8d"),f=n("e19e"),{SMART_CONTRACT_DEPLOY_TYPE_TAG:a,SMART_CONTRACT_EXECUTION_TYPE_TAG:o,FEE_DELEGATED_SMART_CONTRACT_EXECUTION_TYPE_TAG:c,FEE_DELEGATED_SMART_CONTRACT_DEPLOY_TYPE_TAG:u,FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO_TYPE_TAG:l,FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO_TYPE_TAG:d,CODE_FORMAT_EVM_TAG:h}=f.constants;function p(e){switch(e){case 0:case"EVM":return h}return h}function b(e){return r.encode([r.encode([a,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data,i.fromNat(!0===e.humanReadable?"0x1":"0x0"),i.fromNat(p(e.codeFormat))]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function m(e){return r.encode([r.encode([o,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value||"0x0"),e.from.toLowerCase(),e.data]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function g(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,l,d,h,p,[[b,m,g]]]=s.rlpDecode(t);return r.encode([r.encode([u,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),l.toLowerCase(),d,h,p]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([u,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data,i.fromNat(!0===e.humanReadable?"0x1":"0x0"),i.fromNat(p(e.codeFormat))]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function k(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,u,d,h,p,b,[[m,g,k]]]=s.rlpDecode(t);return r.encode([r.encode([l,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),u.toLowerCase(),d,h,p,b]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([l,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value),e.from.toLowerCase(),e.data,i.fromNat(!0===e.humanReadable?"0x1":"0x0"),i.fromNat(e.feeRatio),i.fromNat(p(e.codeFormat))]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function y(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,u,l,d,[[h,p,b]]]=s.rlpDecode(t);return r.encode([r.encode([c,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(u),l.toLowerCase(),d]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([c,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value||"0x0"),e.from.toLowerCase(),e.data]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function w(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,u,l,h,[[p,b,m]]]=s.rlpDecode(t);return r.encode([r.encode([d,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),i.fromNat(c),u.toLowerCase(),l,i.fromNat(h)]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}return r.encode([r.encode([d,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value||"0x0"),e.from.toLowerCase(),e.data,i.fromNat(e.feeRatio)]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}e.exports={rlpEncodeForContractDeploy:b,rlpEncodeForFeeDelegatedSmartContractDeploy:g,rlpEncodeForFeeDelegatedSmartContractDeployWithRatio:k,rlpEncodeForContractExecution:m,rlpEncodeForFeeDelegatedSmartContractExecution:y,rlpEncodeForFeeDelegatedSmartContractExecutionWithRatio:w}},"8f99":function(e,t){function n(e){return e.params.reverse(),e}e.exports={reversePayload:n}},"8faf":function(e,t,n){"use strict";const r=n("5532"),i=n("2a06"),s=n("fb89"),f=n("6410"),{concat:a}=n("bb5a"),{toString:o}=n("afb2"),{equals:c}=n("8c8ad"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},9018:function(e,t,n){const r=n("2ef0"),i=n("dac9"),{isBigNumber:s}=n("4f8d");async function f(e,t,n){let r={};r=Object.assign(r,n),r=Object.assign(r,t);const{from:s,gas:f,feeDelegation:a,feePayer:o,feeRatio:c}=r;if(!s)throw new Error("'from' is missing. Please pass the sender's address in sendParam.from or define default sender address at 'kctContract.options.from'.");if(void 0===f){const t=await e.estimateGas({from:s}),n=new i(t,10),f=new i(1.7,10);r.gas=Math.round(n.times(f))}if(void 0===a&&(o||void 0!==c))throw new Error("To use fee delegation with KCT, please set `feeDelegation` field to true.");return r}function a(e){return o(e)}function o(e){if(!s(e)&&!r.isNumber(e)&&!r.isString(e))throw new Error("unsupported type");const t=new i(e),n=t.toString(10);if("NaN"===n)throw new Error("invalid parameter value");return n}const c="Failed to validate token info for deploy: ";function u(e){if(!e.name||!r.isString(e.name))throw new Error(c+"Invalid name of token");if(!e.symbol||!r.isString(e.symbol))throw new Error(c+"Invalid symbol of token")}function l(e){if(u(e),void 0===e.decimals||!r.isNumber(e.decimals))throw new Error(c+"Invalid decimals of token");try{if(void 0===e.initialSupply)throw new Error("Invalid initialSupply of token: "+e.initialSupply);e.initialSupply=o(e.initialSupply)}catch(t){throw new Error(`${c}${t.message}`)}}function d(e){u(e)}function h(e){if(!e.uri||!r.isString(e.uri))throw new Error(c+"Invalid uri of token")}const p=[{inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"symbol",type:"string"},{internalType:"uint8",name:"decimals",type:"uint8"},{internalType:"uint256",name:"initialSupply",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addPauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isPauser",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"renouncePauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"safeTransfer",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransfer",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],b="60806040523480156200001157600080fd5b50604051620030e4380380620030e4833981810160405260808110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b838201915060208201858111156200012c57600080fd5b82518660018202830111640100000000821117156200014a57600080fd5b8083526020830192505050908051906020019080838360005b838110156200018057808201518184015260208101905062000163565b50505050905090810190601f168015620001ae5780820380516001836020036101000a031916815260200191505b506040526020018051906020019092919080519060200190929190505050838383620001e76301ffc9a760e01b6200030860201b60201c565b620001ff636578737160e01b6200030860201b60201c565b62000210336200041160201b60201c565b6200022863eab83e2060e01b6200030860201b60201c565b62000240633b5a0bf860e01b6200030860201b60201c565b62000251336200047260201b60201c565b6000600660006101000a81548160ff02191690831515021790555062000284634d5507ff60e01b6200030860201b60201c565b82600790805190602001906200029c929190620008ec565b508160089080519060200190620002b5929190620008ec565b5080600960006101000a81548160ff021916908360ff160217905550620002e963a219a02560e01b6200030860201b60201c565b505050620002fe3382620004d360201b60201c565b505050506200099b565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415620003a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4b495031333a20696e76616c696420696e74657266616365206964000000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6200042c8160046200069f60201b620023d91790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b6200048d8160056200069f60201b620023d91790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000577576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4b4950373a206d696e7420746f20746865207a65726f2061646472657373000081525060200191505060405180910390fd5b62000593816003546200078360201b620022941790919060201c565b600381905550620005f281600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200078360201b620022941790919060201c565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b620006b182826200080c60201b60201c565b1562000725576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008082840190508381101562000802576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000895576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620030c26022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200092f57805160ff191683800117855562000960565b8280016001018555821562000960579182015b828111156200095f57825182559160200191906001019062000942565b5b5090506200096f919062000973565b5090565b6200099891905b80821115620009945760008160009055506001016200097a565b5090565b90565b61271780620009ab6000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c80636ef8d66d116100de578063983b2d5611610097578063aa271e1a11610071578063aa271e1a146107b6578063b88d4fde14610812578063dd62ed3e14610917578063eb7955491461098f5761018e565b8063983b2d56146107025780639865027514610746578063a9059cbb146107505761018e565b80636ef8d66d1461058157806370a082311461058b57806379cc6790146105e357806382dc1ec4146106315780638456cb591461067557806395d89b411461067f5761018e565b80633f4ba83a1161014b57806342842e0e1161012557806342842e0e1461046757806342966c68146104d557806346fbf68e146105035780635c975abb1461055f5761018e565b80633f4ba83a146103a957806340c10f19146103b3578063423f6cef146104195761018e565b806301ffc9a71461019357806306fdde03146101f8578063095ea7b31461027b57806318160ddd146102e157806323b872dd146102ff578063313ce56714610385575b600080fd5b6101de600480360360208110156101a957600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610a74565b604051808215151515815260200191505060405180910390f35b610200610adb565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610240578082015181840152602081019050610225565b50505050905090810190601f16801561026d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102c76004803603604081101561029157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b7d565b604051808215151515815260200191505060405180910390f35b6102e9610c14565b6040518082815260200191505060405180910390f35b61036b6004803603606081101561031557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610c1e565b604051808215151515815260200191505060405180910390f35b61038d610cb7565b604051808260ff1660ff16815260200191505060405180910390f35b6103b1610cce565b005b6103ff600480360360408110156103c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e2e565b604051808215151515815260200191505060405180910390f35b6104656004803603604081101561042f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ea2565b005b6104d36004803603606081101561047d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ec0565b005b610501600480360360208110156104eb57600080fd5b8101908080359060200190929190505050610ee0565b005b6105456004803603602081101561051957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610eed565b604051808215151515815260200191505060405180910390f35b610567610f0a565b604051808215151515815260200191505060405180910390f35b610589610f21565b005b6105cd600480360360208110156105a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f2c565b6040518082815260200191505060405180910390f35b61062f600480360360408110156105f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f75565b005b6106736004803603602081101561064757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f83565b005b61067d610fed565b005b61068761114e565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106c75780820151818401526020810190506106ac565b50505050905090810190601f1680156106f45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107446004803603602081101561071857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111f0565b005b61074e61125a565b005b61079c6004803603604081101561076657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611265565b604051808215151515815260200191505060405180910390f35b6107f8600480360360208110156107cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506112fc565b604051808215151515815260200191505060405180910390f35b6109156004803603608081101561082857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561088f57600080fd5b8201836020820111156108a157600080fd5b803590602001918460018302840111640100000000831117156108c357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611319565b005b6109796004803603604081101561092d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061138c565b6040518082815260200191505060405180910390f35b610a72600480360360608110156109a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156109ec57600080fd5b8201836020820111156109fe57600080fd5b80359060200191846001830284011164010000000083111715610a2057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611413565b005b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b735780601f10610b4857610100808354040283529160200191610b73565b820191906000526020600020905b815481529060010190602001808311610b5657829003601f168201915b5050505050905090565b6000600660009054906101000a900460ff1615610c02576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610c0c8383611484565b905092915050565b6000600354905090565b6000600660009054906101000a900460ff1615610ca3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610cae84848461149b565b90509392505050565b6000600960009054906101000a900460ff16905090565b610cd733610eed565b610d2c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806125d76030913960400191505060405180910390fd5b600660009054906101000a900460ff16610dae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6000610e39336112fc565b610e8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806126296030913960400191505060405180910390fd5b610e98838361154c565b6001905092915050565b610ebc828260405180602001604052806000815250611413565b5050565b610edb83838360405180602001604052806000815250611319565b505050565b610eea3382611709565b50565b6000610f038260056118c690919063ffffffff16565b9050919050565b6000600660009054906101000a900460ff16905090565b610f2a336119a4565b565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610f7f82826119fe565b5050565b610f8c33610eed565b610fe1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806125d76030913960400191505060405180910390fd5b610fea81611aa5565b50565b610ff633610eed565b61104b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806125d76030913960400191505060405180910390fd5b600660009054906101000a900460ff16156110ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b606060088054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111e65780601f106111bb576101008083540402835291602001916111e6565b820191906000526020600020905b8154815290600101906020018083116111c957829003601f168201915b5050505050905090565b6111f9336112fc565b61124e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806126296030913960400191505060405180910390fd5b61125781611aff565b50565b61126333611b59565b565b6000600660009054906101000a900460ff16156112ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6112f48383611bb3565b905092915050565b60006113128260046118c690919063ffffffff16565b9050919050565b611324848484610c1e565b5061133184848484611bca565b611386576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806125a9602e913960400191505060405180910390fd5b50505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61141d8383611265565b5061142a33848484611bca565b61147f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e8152602001806125a9602e913960400191505060405180910390fd5b505050565b6000611491338484611db3565b6001905092915050565b60006114a8848484611faa565b611541843361153c85600260008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a90919063ffffffff16565b611db3565b600190509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f4b4950373a206d696e7420746f20746865207a65726f2061646472657373000081525060200191505060405180910390fd5b6116048160035461229490919063ffffffff16565b60038190555061165c81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461229490919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4b4950373a206275726e2066726f6d20746865207a65726f206164647265737381525060200191505060405180910390fd5b6117c18160035461224a90919063ffffffff16565b60038190555061181981600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a90919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561194d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018061269e6022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6119b881600561231c90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e60405160405180910390a250565b611a088282611709565b611aa18233611a9c84600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a90919063ffffffff16565b611db3565b5050565b611ab98160056123d990919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b611b138160046123d990919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b611b6d81600461231c90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b6000611bc0338484611faa565b6001905092915050565b6000611beb8473ffffffffffffffffffffffffffffffffffffffff166124b4565b611bf85760019050611dab565b60008473ffffffffffffffffffffffffffffffffffffffff16639d188c22338887876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611cd3578082015181840152602081019050611cb8565b50505050905090810190601f168015611d005780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015611d2257600080fd5b505af1158015611d36573d6000803e3d6000fd5b505050506040513d6020811015611d4c57600080fd5b81019080805190602001909291905050509050639d188c2260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611e39576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806126c06023913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ebf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806125886021913960400191505060405180910390fd5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612030576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061267a6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156120b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806126076022913960400191505060405180910390fd5b61210881600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224a90919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061219d81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461229490919063ffffffff16565b600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b600061228c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124c7565b905092915050565b600080828401905083811015612312576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61232682826118c6565b61237b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806126596021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6123e382826118c6565b15612456576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080823b905060008111915050919050565b6000838311158290612574576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561253957808201518184015260208101905061251e565b50505050905090810190601f1680156125665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838503905080915050939250505056fe4b4950373a20617070726f766520746f20746865207a65726f20616464726573734b4950373a207472616e7366657220746f206e6f6e204b495037526563656976657220696d706c656d656e746572506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654b4950373a207472616e7366657220746f20746865207a65726f20616464726573734d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c654b4950373a207472616e736665722066726f6d20746865207a65726f2061646472657373526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734b4950373a20617070726f76652066726f6d20746865207a65726f2061646472657373a265627a7a723158200bd43f8ecf62de903782506257b27b4f9ceeb1afb04e45803d6e3f1207d7ee3564736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373",m=[{inputs:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"symbol",type:"string"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addPauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isPauser",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"mint",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"tokenURI",type:"string"}],name:"mintWithTokenURI",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"renouncePauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],g="60806040523480156200001157600080fd5b50604051620041f5380380620041f5833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b838201915060208201858111156200012c57600080fd5b82518660018202830111640100000000821117156200014a57600080fd5b8083526020830192505050908051906020019080838360005b838110156200018057808201518184015260208101905062000163565b50505050905090810190601f168015620001ae5780820380516001836020036101000a031916815260200191505b5060405250505081818181620001d16301ffc9a760e01b620002f460201b60201c565b620001e96380ac58cd60e01b620002f460201b60201c565b6200020163780e9d6360e01b620002f460201b60201c565b81600990805190602001906200021992919062000683565b5080600a90805190602001906200023292919062000683565b506200024b635b5e139f60e01b620002f460201b60201c565b505050506200026033620003fd60201b60201c565b6200027863eab83e2060e01b620002f460201b60201c565b6200029063fac27f4660e01b620002f460201b60201c565b620002a86342966c6860e01b620002f460201b60201c565b620002b9336200045e60201b60201c565b6000600e60006101000a81548160ff021916908315150217905550620002ec634d5507ff60e01b620002f460201b60201c565b505062000732565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4b495031333a20696e76616c696420696e74657266616365206964000000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6200041881600c620004bf60201b62002cab1790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b6200047981600d620004bf60201b62002cab1790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b620004d18282620005a360201b60201c565b1562000545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156200062c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620041d36022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620006c657805160ff1916838001178555620006f7565b82800160010185558215620006f7579182015b82811115620006f6578251825591602001919060010190620006d9565b5b5090506200070691906200070a565b5090565b6200072f91905b808211156200072b57600081600090555060010162000711565b5090565b90565b613a9180620007426000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80635c975abb116100f9578063983b2d5611610097578063aa271e1a11610071578063aa271e1a14610963578063b88d4fde146109bf578063c87b56dd14610ac4578063e985e9c514610b6b576101c4565b8063983b2d56146108c55780639865027514610909578063a22cb46514610913576101c4565b806370a08231116100d357806370a082311461079c57806382dc1ec4146107f45780638456cb591461083857806395d89b4114610842576101c4565b80635c975abb146107025780636352211e146107245780636ef8d66d14610792576101c4565b80633f4ba83a1161016657806342966c681161014057806342966c681461053957806346fbf68e146105675780634f6ccce7146105c357806350bb4e7f14610605576101c4565b80633f4ba83a1461045b57806340c10f191461046557806342842e0e146104cb576101c4565b8063095ea7b3116101a2578063095ea7b31461031f57806318160ddd1461036d57806323b872dd1461038b5780632f745c59146103f9576101c4565b806301ffc9a7146101c957806306fdde031461022e578063081812fc146102b1575b600080fd5b610214600480360360208110156101df57600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610be7565b604051808215151515815260200191505060405180910390f35b610236610c4e565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561027657808201518184015260208101905061025b565b50505050905090810190601f1680156102a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102dd600480360360208110156102c757600080fd5b8101908080359060200190929190505050610cf0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61036b6004803603604081101561033557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d8b565b005b610375610e1c565b6040518082815260200191505060405180910390f35b6103f7600480360360608110156103a157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e29565b005b6104456004803603604081101561040f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ebc565b6040518082815260200191505060405180910390f35b610463610f7b565b005b6104b16004803603604081101561047b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506110db565b604051808215151515815260200191505060405180910390f35b610537600480360360608110156104e157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061114f565b005b6105656004803603602081101561054f57600080fd5b810190808035906020019092919050505061116f565b005b6105a96004803603602081101561057d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111da565b604051808215151515815260200191505060405180910390f35b6105ef600480360360208110156105d957600080fd5b81019080803590602001909291905050506111f7565b6040518082815260200191505060405180910390f35b6106e86004803603606081101561061b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561066257600080fd5b82018360208201111561067457600080fd5b8035906020019184600183028401116401000000008311171561069657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611277565b604051808215151515815260200191505060405180910390f35b61070a6112f6565b604051808215151515815260200191505060405180910390f35b6107506004803603602081101561073a57600080fd5b810190808035906020019092919050505061130d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61079a6113d5565b005b6107de600480360360208110156107b257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113e0565b6040518082815260200191505060405180910390f35b6108366004803603602081101561080a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506114b5565b005b61084061151f565b005b61084a611680565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561088a57808201518184015260208101905061086f565b50505050905090810190601f1680156108b75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610907600480360360208110156108db57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611722565b005b61091161178c565b005b6109616004803603604081101561092957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611797565b005b6109a56004803603602081101561097957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611828565b604051808215151515815260200191505060405180910390f35b610ac2600480360360808110156109d557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610a3c57600080fd5b820183602082011115610a4e57600080fd5b80359060200191846001830284011164010000000083111715610a7057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611845565b005b610af060048036036020811015610ada57600080fd5b81019080803590602001909291905050506118b7565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b30578082015181840152602081019050610b15565b50505050905090810190601f168015610b5d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610bcd60048036036040811015610b8157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119ca565b604051808215151515815260200191505060405180910390f35b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060098054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ce65780601f10610cbb57610100808354040283529160200191610ce6565b820191906000526020600020905b815481529060010190602001808311610cc957829003601f168201915b5050505050905090565b6000610cfb82611a5e565b610d50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806139d0602b913960400191505060405180910390fd5b6002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600e60009054906101000a900460ff1615610e0e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610e188282611ad0565b5050565b6000600780549050905090565b600e60009054906101000a900460ff1615610eac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610eb7838383611cc6565b505050565b6000610ec7836113e0565b8210610f1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806137b1602a913960400191505060405180910390fd5b600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208281548110610f6857fe5b9060005260206000200154905092915050565b610f84336111da565b610fd9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061375e6030913960400191505060405180910390fd5b600e60009054906101000a900460ff1661105b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600e60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b60006110e633611828565b61113b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806137db6030913960400191505060405180910390fd5b6111458383611d35565b6001905092915050565b61116a83838360405180602001604052806000815250611845565b505050565b6111793382611d56565b6111ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613901602f913960400191505060405180910390fd5b6111d781611e4a565b50565b60006111f082600d611e5f90919063ffffffff16565b9050919050565b6000611201610e1c565b8210611258576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613981602b913960400191505060405180910390fd5b6007828154811061126557fe5b90600052602060002001549050919050565b600061128233611828565b6112d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806137db6030913960400191505060405180910390fd5b6112e18484611d35565b6112eb8383611f3d565b600190509392505050565b6000600e60009054906101000a900460ff16905090565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113cc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602881526020018061382c6028913960400191505060405180910390fd5b80915050919050565b6113de33611fc7565b565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611467576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806139306029913960400191505060405180910390fd5b6114ae600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612021565b9050919050565b6114be336111da565b611513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061375e6030913960400191505060405180910390fd5b61151c8161202f565b50565b611528336111da565b61157d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061375e6030913960400191505060405180910390fd5b600e60009054906101000a900460ff1615611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600e60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6060600a8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117185780601f106116ed57610100808354040283529160200191611718565b820191906000526020600020905b8154815290600101906020018083116116fb57829003601f168201915b5050505050905090565b61172b33611828565b611780576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806137db6030913960400191505060405180910390fd5b61178981612089565b50565b611795336120e3565b565b600e60009054906101000a900460ff161561181a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b611824828261213d565b5050565b600061183e82600c611e5f90919063ffffffff16565b9050919050565b611850848484610e29565b61185c848484846122e0565b6118b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806138d16030913960400191505060405180910390fd5b50505050565b60606118c282611a5e565b611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180613730602e913960400191505060405180910390fd5b600b60008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119be5780601f10611993576101008083540402835291602001916119be565b820191906000526020600020905b8154815290600101906020018083116119a157829003601f168201915b50505050509050919050565b6000600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000806001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b6000611adb8261130d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611b7f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4b495031373a20617070726f76616c20746f2063757272656e74206f776e657281525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611bbf5750611bbe81336119ca565b5b611c14576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806139fb6037913960400191505060405180910390fd5b826002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b611cd03382611d56565b611d25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061387f6030913960400191505060405180910390fd5b611d30838383612842565b505050565b611d3f8282612866565b611d498282612a7e565b611d5281612b45565b5050565b6000611d6182611a5e565b611db6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613a32602b913960400191505060405180910390fd5b6000611dc18361130d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e3057508373ffffffffffffffffffffffffffffffffffffffff16611e1884610cf0565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e415750611e4081856119ca565b5b91505092915050565b611e5c611e568261130d565b82612b91565b50565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ee6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806138af6022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f4682611a5e565b611f9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613854602b913960400191505060405180910390fd5b80600b60008481526020019081526020016000209080519060200190611fc2929190613616565b505050565b611fdb81600d612bee90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e60405160405180910390a250565b600081600001549050919050565b61204381600d612cab90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b61209d81600c612cab90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b6120f781600c612bee90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4b495031373a20617070726f766520746f2063616c6c6572000000000000000081525060200191505060405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b60008060606123048673ffffffffffffffffffffffffffffffffffffffff16612d86565b6123135760019250505061283a565b8573ffffffffffffffffffffffffffffffffffffffff1663150b7a0260e01b33898888604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156123e35780820151818401526020810190506123c8565b50505050905090810190601f1680156124105780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106124a85780518252602082019150602081019050602083039250612485565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461250a576040519150601f19603f3d011682016040523d82523d6000602084013e61250f565b606091505b5080925081935050506000815114158015612593575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051602081101561256157600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b156125a35760019250505061283a565b8573ffffffffffffffffffffffffffffffffffffffff16636745782b60e01b33898888604051602401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612673578082015181840152602081019050612658565b50505050905090810190601f1680156126a05780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106127385780518252602082019150602081019050602083039250612715565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461279a576040519150601f19603f3d011682016040523d82523d6000602084013e61279f565b606091505b50809250819350505060008151141580156128235750636745782b60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168180602001905160208110156127f157600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b156128335760019250505061283a565b6000925050505b949350505050565b61284d838383612d99565b6128578382612ff4565b6128618282612a7e565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612909576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4b495031373a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61291281611a5e565b15612985576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4b495031373a20746f6b656e20616c7265616479206d696e746564000000000081525060200191505060405180910390fd5b816001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612a1e600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020613192565b808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506006600083815260200190815260200160002081905550600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190915055505050565b6007805490506008600083815260200190815260200160002081905550600781908060018154018082558091505090600182039060005260206000200160009091929091909150555050565b612b9b82826131a8565b6000600b600083815260200190815260200160002080546001816001161561010002031660029004905014612bea57600b60008281526020019081526020016000206000612be99190613696565b5b5050565b612bf88282611e5f565b612c4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061380b6021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b612cb58282611e5f565b15612d28576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600080823b905060008111915050919050565b8273ffffffffffffffffffffffffffffffffffffffff16612db98261130d565b73ffffffffffffffffffffffffffffffffffffffff1614612e25576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806139596028913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612eab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061378e6023913960400191505060405180910390fd5b612eb4816131e2565b612efb600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206132a0565b612f42600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020613192565b816001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061304c6001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506132c390919063ffffffff16565b9050600060066000848152602001908152602001600020549050818114613139576000600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002083815481106130b957fe5b9060005260206000200154905080600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061311157fe5b9060005260206000200181905550816006600083815260200190815260200160002081905550505b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548091906001900361318b91906136de565b5050505050565b6001816000016000828254019250508190555050565b6131b2828261330d565b6131bc8282612ff4565b600060066000838152602001908152602001600020819055506131de8161349c565b5050565b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461329d5760006002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b6132b8600182600001546132c390919063ffffffff16565b816000018190555050565b600061330583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613556565b905092915050565b8173ffffffffffffffffffffffffffffffffffffffff1661332d8261130d565b73ffffffffffffffffffffffffffffffffffffffff1614613399576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806139ac6024913960400191505060405180910390fd5b6133a2816131e2565b6133e9600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206132a0565b60006001600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006134b760016007805490506132c390919063ffffffff16565b90506000600860008481526020019081526020016000205490506000600783815481106134e057fe5b9060005260206000200154905080600783815481106134fb57fe5b9060005260206000200181905550816008600083815260200190815260200160002081905550600780548091906001900361353691906136de565b506000600860008681526020019081526020016000208190555050505050565b6000838311158290613603576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156135c85780820151818401526020810190506135ad565b50505050905090810190601f1680156135f55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061365757805160ff1916838001178555613685565b82800160010185558215613685579182015b82811115613684578251825591602001919060010190613669565b5b509050613692919061370a565b5090565b50805460018160011615610100020316600290046000825580601f106136bc57506136db565b601f0160209004906000526020600020908101906136da919061370a565b5b50565b81548183558181111561370557818360005260206000209182019101613704919061370a565b5b505050565b61372c91905b80821115613728576000816000905550600101613710565b5090565b9056fe4b495031374d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654b495031373a207472616e7366657220746f20746865207a65726f20616464726573734b49503137456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c654b495031373a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e4b495031374d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4b495031373a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734b495031373a207472616e7366657220746f206e6f6e204b49503137526563656976657220696d706c656d656e7465724b495031374275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644b495031373a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734b495031373a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4b49503137456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734b495031373a206275726e206f6620746f6b656e2074686174206973206e6f74206f776e4b495031373a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4b495031373a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4b495031373a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656ea265627a7a72315820138f7395457b1b31458f697bbe4585b5d1c0f9455c8b75cb353a6ccb896ffd0464736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373",k=[{inputs:[{internalType:"string",name:"uri",type:"string"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"MinterRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"}],name:"PauserRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"}],name:"addPauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_initialSupply",type:"uint256"},{internalType:"string",name:"_uri",type:"string"}],name:"create",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"creators",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isMinter",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"account",type:"address"}],name:"isPauser",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_value",type:"uint256"}],name:"mint",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"address[]",name:"_toList",type:"address[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"mint",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"mintBatch",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"pause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"renounceMinter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"renouncePauser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"unpause",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"}],y="60806040523480156200001157600080fd5b5060405162005a6338038062005a63833981810160405260208110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b5060405250505080620001116301ffc9a760e01b620001df60201b60201c565b6200012281620002e860201b60201c565b6200013a636433ca1f60e01b620001df60201b60201c565b62000152630e89341c60e01b620001df60201b60201c565b506200016b639e094e9e60e01b620001df60201b60201c565b6200017c336200030460201b60201c565b6000600660006101000a81548160ff021916908315150217905550620001af630e8ffdb760e01b620001df60201b60201c565b620001c0336200036560201b60201c565b620001d863dfd9d9ec60e01b620001df60201b60201c565b5062000639565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156200027c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4b495031333a20696e76616c696420696e74657266616365206964000000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b8060049080519060200190620003009291906200058a565b5050565b6200031f816005620003c660201b62004eed1790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b62000380816008620003c660201b62004eed1790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b620003d88282620004aa60201b60201c565b156200044c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018062005a416022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005cd57805160ff1916838001178555620005fe565b82800160010185558215620005fe579182015b82811115620005fd578251825591602001919060010190620005e0565b5b5090506200060d919062000611565b5090565b6200063691905b808211156200063257600081600090555060010162000618565b5090565b90565b6153f880620006496000396000f3fe608060405234801561001057600080fd5b50600436106101c25760003560e01c8063836a1040116100f9578063cd53d08e11610097578063e985e9c511610071578063e985e9c514610f64578063f242432a14610fe0578063f5298aca146110ef578063fabc1cbc14611147576101c2565b8063cd53d08e14610c34578063cfa84fc114610ca2578063d81d0a1514610df8576101c2565b806398650275116100d35780639865027514610b3c578063a22cb46514610b46578063aa271e1a14610b96578063bd85b03914610bf2576101c2565b8063836a104014610a965780638456cb5914610aee578063983b2d5614610af8576101c2565b806346fbf68e116101665780635c975abb116101405780635c975abb146108ba5780636b20c454146108dc5780636ef8d66d14610a4857806382dc1ec414610a52576101c2565b806346fbf68e146105d65780634b068c78146106325780634e1273f414610719576101c2565b80630e89341c116101a25780630e89341c146102d4578063136439dd1461037b5780632eb2c2d6146103a95780633f4ba83a146105cc576101c2565b8062dde10e146101c7578062fdd58e1461020d57806301ffc9a71461026f575b600080fd5b6101f3600480360360208110156101dd57600080fd5b8101908080359060200190929190505050611175565b604051808215151515815260200191505060405180910390f35b6102596004803603604081101561022357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061119f565b6040518082815260200191505060405180910390f35b6102ba6004803603602081101561028557600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061127f565b604051808215151515815260200191505060405180910390f35b610300600480360360208110156102ea57600080fd5b81019080803590602001909291905050506112e6565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610340578082015181840152602081019050610325565b50505050905090810190601f16801561036d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103a76004803603602081101561039157600080fd5b810190808035906020019092919050505061144d565b005b6105ca600480360360a08110156103bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561041c57600080fd5b82018360208201111561042e57600080fd5b8035906020019184602083028401116401000000008311171561045057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156104b057600080fd5b8201836020820111156104c257600080fd5b803590602001918460208302840111640100000000831117156104e457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019064010000000081111561054457600080fd5b82018360208201111561055657600080fd5b8035906020019184600183028401116401000000008311171561057857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506115df565b005b6105d4611ac2565b005b610618600480360360208110156105ec57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c22565b604051808215151515815260200191505060405180910390f35b6106ff6004803603606081101561064857600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561067957600080fd5b82018360208201111561068b57600080fd5b803590602001918460018302840111640100000000831117156106ad57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611c3f565b604051808215151515815260200191505060405180910390f35b6108636004803603604081101561072f57600080fd5b810190808035906020019064010000000081111561074c57600080fd5b82018360208201111561075e57600080fd5b8035906020019184602083028401116401000000008311171561078057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156107e057600080fd5b8201836020820111156107f257600080fd5b8035906020019184602083028401116401000000008311171561081457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611e5f565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156108a657808201518184015260208101905061088b565b505050509050019250505060405180910390f35b6108c261203d565b604051808215151515815260200191505060405180910390f35b610a46600480360360608110156108f257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561092f57600080fd5b82018360208201111561094157600080fd5b8035906020019184602083028401116401000000008311171561096357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156109c357600080fd5b8201836020820111156109d557600080fd5b803590602001918460208302840111640100000000831117156109f757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612054565b005b610a50612107565b005b610a9460048036036020811015610a6857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612112565b005b610aec60048036036060811015610aac57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061217c565b005b610af6612275565b005b610b3a60048036036020811015610b0e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506123d6565b005b610b44612440565b005b610b9460048036036040811015610b5c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080351515906020019092919050505061244b565b005b610bd860048036036020811015610bac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506125e6565b604051808215151515815260200191505060405180910390f35b610c1e60048036036020811015610c0857600080fd5b8101908080359060200190929190505050612603565b6040518082815260200191505060405180910390f35b610c6060048036036020811015610c4a57600080fd5b8101908080359060200190929190505050612620565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610df660048036036060811015610cb857600080fd5b810190808035906020019092919080359060200190640100000000811115610cdf57600080fd5b820183602082011115610cf157600080fd5b80359060200191846020830284011164010000000083111715610d1357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610d7357600080fd5b820183602082011115610d8557600080fd5b80359060200191846020830284011164010000000083111715610da757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050612653565b005b610f6260048036036060811015610e0e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610e4b57600080fd5b820183602082011115610e5d57600080fd5b80359060200191846020830284011164010000000083111715610e7f57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610edf57600080fd5b820183602082011115610ef157600080fd5b80359060200191846020830284011164010000000083111715610f1357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506127f3565b005b610fc660048036036040811015610f7a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061291a565b604051808215151515815260200191505060405180910390f35b6110ed600480360360a0811015610ff657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019064010000000081111561106757600080fd5b82018360208201111561107957600080fd5b8035906020019184600183028401116401000000008311171561109b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506129ae565b005b6111456004803603606081101561110557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050612d78565b005b6111736004803603602081101561115d57600080fd5b8101908080359060200190929190505050612e2b565b005b60006007600083815260200190815260200160002060009054906101000a900460ff169050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611226576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151086029913960400191505060405180910390fd5b6001600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606080600a60008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113905780601f1061136557610100808354040283529160200191611390565b820191906000526020600020905b81548152906001019060200180831161137357829003601f168201915b5050505050905060008151146113a95780915050611448565b60048054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561143f5780601f106114145761010080835404028352916020019161143f565b820191906000526020600020905b81548152906001019060200180831161142257829003601f168201915b50505050509150505b919050565b61145633611c22565b6114ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806150956030913960400191505060405180910390fd5b600015156007600083815260200190815260200160002060009054906101000a900460ff16151514611545576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4b495033375061757361626c653a20616c72656164792070617573656400000081525060200191505060405180910390fd5b60016007600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507fabdb1c9133626eb4f8c5f2ec7e3c60a969a2fb148a0c341a3cf6597242c8f8f58133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a150565b8151835114611639576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806151816026913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156116bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061531a6023913960400191505060405180910390fd5b6116c7612fbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061170d575061170c85611707612fbd565b61291a565b5b611762576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151a76030913960400191505060405180910390fd5b600061176c612fbd565b905061177c818787878787612fc5565b60008090505b845181101561195057600085828151811061179957fe5b6020026020010151905060008583815181106117b157fe5b60200260200101519050611838816040518060600160405280602881526020016151d7602891396001600086815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130d89092919063ffffffff16565b6001600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506118ef816001600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461319890919063ffffffff16565b6001600084815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050806001019050611782565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015611a005780820151818401526020810190506119e5565b50505050905001838103825284818151815260200191508051906020019060200280838360005b83811015611a42578082015181840152602081019050611a27565b5050505090500194505050505060405180910390a4611a65818787878787613220565b611aba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061533d6036913960400191505060405180910390fd5b505050505050565b611acb33611c22565b611b20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806150956030913960400191505060405180910390fd5b600660009054906101000a900460ff16611ba2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6000611c3882600561389890919063ffffffff16565b9050919050565b6000611c4a336125e6565b611c9f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151ff6030913960400191505060405180910390fd5b611ca884613976565b15611d1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4b495033373a20746f6b656e20616c726561647920637265617465640000000081525060200191505060405180910390fd5b336009600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611d88338585604051806020016040528060008152506139e8565b600082511115611e585781600a60008681526020019081526020016000209080519060200190611db9929190614fc8565b50837f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836040518080602001828103825283818151815260200191508051906020019080838360005b83811015611e1d578082015181840152602081019050611e02565b50505050905090810190601f168015611e4a5780820380516001836020036101000a031916815260200191505b509250505060405180910390a25b9392505050565b60608151835114611ebb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061506e6027913960400191505060405180910390fd5b60608351604051908082528060200260200182016040528015611eed5781602001602082028038833980820191505090505b50905060008090505b845181101561203257600073ffffffffffffffffffffffffffffffffffffffff16858281518110611f2357fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415611f98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180615373602f913960400191505060405180910390fd5b60016000858381518110611fa857fe5b602002602001015181526020019081526020016000206000868381518110611fcc57fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482828151811061201b57fe5b602002602001018181525050806001019050611ef6565b508091505092915050565b6000600660009054906101000a900460ff16905090565b61205c612fbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806120a257506120a18361209c612fbd565b61291a565b5b6120f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806152f36027913960400191505060405180910390fd5b612102838383613c9a565b505050565b61211033614068565b565b61211b33611c22565b612170576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806150956030913960400191505060405180910390fd5b612179816140c2565b50565b612185336125e6565b6121da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151ff6030913960400191505060405180910390fd5b6121e383613976565b612255576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4b495033373a206e6f6e6578697374656e7420746f6b656e000000000000000081525060200191505060405180910390fd5b612270828483604051806020016040528060008152506139e8565b505050565b61227e33611c22565b6122d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806150956030913960400191505060405180910390fd5b600660009054906101000a900460ff1615612356576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6123df336125e6565b612434576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151ff6030913960400191505060405180910390fd5b61243d8161411c565b50565b61244933614176565b565b8173ffffffffffffffffffffffffffffffffffffffff1661246a612fbd565b73ffffffffffffffffffffffffffffffffffffffff1614156124d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602781526020018061527a6027913960400191505060405180910390fd5b80600260006124e4612fbd565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612591612fbd565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051808215151515815260200191505060405180910390a35050565b60006125fc82600861389890919063ffffffff16565b9050919050565b600060036000838152602001908152602001600020549050919050565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61265c336125e6565b6126b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151ff6030913960400191505060405180910390fd5b6126ba83613976565b61272c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4b495033373a206e6f6e6578697374656e7420746f6b656e000000000000000081525060200191505060405180910390fd5b8051825114612786576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806151586029913960400191505060405180910390fd5b60008090505b82518110156127ed5760008382815181106127a357fe5b6020026020010151905060008383815181106127bb57fe5b602002602001015190506127e0828783604051806020016040528060008152506139e8565b505080600101905061278c565b50505050565b6127fc336125e6565b612851576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806151ff6030913960400191505060405180910390fd5b60008090505b82518110156128f95761287c83828151811061286f57fe5b6020026020010151613976565b6128ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f4b495033373a206e6f6e6578697374656e7420746f6b656e000000000000000081525060200191505060405180910390fd5b806001019050612857565b50612915838383604051806020016040528060008152506141d0565b505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612a34576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061531a6023913960400191505060405180910390fd5b612a3c612fbd565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480612a825750612a8185612a7c612fbd565b61291a565b5b612ad7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806152f36027913960400191505060405180910390fd5b6000612ae1612fbd565b9050612b01818787612af2886145dd565b612afb886145dd565b87612fc5565b612b7e836040518060600160405280602881526020016151d7602891396001600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130d89092919063ffffffff16565b6001600086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612c35836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461319890919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4612d1b818787878787614636565b612d70576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806152c36030913960400191505060405180910390fd5b505050505050565b612d80612fbd565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161480612dc65750612dc583612dc0612fbd565b61291a565b5b612e1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260278152602001806152f36027913960400191505060405180910390fd5b612e26838383614baa565b505050565b612e3433611c22565b612e89576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806150956030913960400191505060405180910390fd5b600115156007600083815260200190815260200160002060009054906101000a900460ff16151514612f23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4b495033375061757361626c653a20616c726561647920756e7061757365640081525060200191505060405180910390fd5b60006007600083815260200190815260200160002060006101000a81548160ff0219169083151502179055507ffe9b5e5216db9de81757f43d20f846bea509c040a560d136b8263dd8cd7642388133604051808381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a150565b600033905090565b612fcd61203d565b15613023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615250602a913960400191505060405180910390fd5b60008090505b83518110156130cf57600015156007600086848151811061304657fe5b6020026020010151815260200190815260200160002060009054906101000a900460ff161515146130c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806153a26022913960400191505060405180910390fd5b8080600101915050613029565b50505050505050565b6000838311158290613185576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561314a57808201518184015260208101905061312f565b50505050905090810190601f1680156131775780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015613216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b60008060606132448773ffffffffffffffffffffffffffffffffffffffff16614e1d565b6132535760019250505061388e565b8673ffffffffffffffffffffffffffffffffffffffff1663bc197c8160e01b8a8a898989604051602401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561332957808201518184015260208101905061330e565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561336b578082015181840152602081019050613350565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156133aa57808201518184015260208101905061338f565b50505050905090810190601f1680156133d75780820380516001836020036101000a031916815260200191505b5098505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310613472578051825260208201915060208101905060208303925061344f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146134d4576040519150601f19603f3d011682016040523d82523d6000602084013e6134d9565b606091505b508092508193505050600081511415801561355d575063bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051602081101561352b57600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b1561356d5760019250505061388e565b8673ffffffffffffffffffffffffffffffffffffffff16639b49e33260e01b8a8a898989604051602401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b83811015613643578082015181840152602081019050613628565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561368557808201518184015260208101905061366a565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156136c45780820151818401526020810190506136a9565b50505050905090810190601f1680156136f15780820380516001836020036101000a031916815260200191505b5098505050505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b6020831061378c5780518252602082019150602081019050602083039250613769565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146137ee576040519150601f19603f3d011682016040523d82523d6000602084013e6137f3565b606091505b50809250819350505060008151141580156138775750639b49e33260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681806020019051602081101561384557600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b156138875760019250505061388e565b6000925050505b9695505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561391f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806152a16022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000806009600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4b495033373a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b6000613a95612fbd565b9050613ab681600087613aa7886145dd565b613ab0886145dd565b87612fc5565b613b19836001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461319890919063ffffffff16565b6001600086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613b9383600360008781526020019081526020016000205461319890919063ffffffff16565b60036000868152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628787604051808381526020018281526020019250505060405180910390a4613c3e81600087878787614636565b613c93576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806152c36030913960400191505060405180910390fd5b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613d20576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806150e76021913960400191505060405180910390fd5b8051825114613d7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806151816026913960400191505060405180910390fd5b6000613d84612fbd565b9050613da481856000868660405180602001604052806000815250612fc5565b60008090505b8351811015613f5a57613e56838281518110613dc257fe5b60200260200101516040518060600160405280602281526020016150c56022913960016000888681518110613df357fe5b6020026020010151815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130d89092919063ffffffff16565b60016000868481518110613e6657fe5b6020026020010151815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550613f23838281518110613ecc57fe5b60200260200101516040518060600160405280602781526020016151316027913960036000888681518110613efd57fe5b60200260200101518152602001908152602001600020546130d89092919063ffffffff16565b60036000868481518110613f3357fe5b60200260200101518152602001908152602001600020819055508080600101915050613daa565b50600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561400b578082015181840152602081019050613ff0565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561404d578082015181840152602081019050614032565b5050505090500194505050505060405180910390a450505050565b61407c816005614e3090919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e60405160405180910390a250565b6140d6816005614eed90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f860405160405180910390a250565b614130816008614eed90919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b61418a816008614e3090919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614273576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f4b495033373a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b81518351146142cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806151816026913960400191505060405180910390fd5b60006142d7612fbd565b90506142e881600087878787612fc5565b60008090505b845181101561446a576143806001600087848151811061430a57fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485838151811061436a57fe5b602002602001015161319890919063ffffffff16565b6001600087848151811061439057fe5b6020026020010151815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614433600360008784815181106143fa57fe5b602002602001015181526020019081526020016000205485838151811061441d57fe5b602002602001015161319890919063ffffffff16565b6003600087848151811061444357fe5b602002602001015181526020019081526020016000208190555080806001019150506142ee565b508473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b8381101561451b578082015181840152602081019050614500565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561455d578082015181840152602081019050614542565b5050505090500194505050505060405180910390a461458181600087878787613220565b6145d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603681526020018061533d6036913960400191505060405180910390fd5b5050505050565b60608060016040519080825280602002602001820160405280156146105781602001602082028038833980820191505090505b509050828160008151811061462157fe5b60200260200101818152505080915050919050565b600080606061465a8773ffffffffffffffffffffffffffffffffffffffff16614e1d565b61466957600192505050614ba0565b8673ffffffffffffffffffffffffffffffffffffffff1663f23a6e6160e01b8a8a898989604051602401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614740578082015181840152602081019050614725565b50505050905090810190601f16801561476d5780820380516001836020036101000a031916815260200191505b509650505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b6020831061480657805182526020820191506020810190506020830392506147e3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614868576040519150601f19603f3d011682016040523d82523d6000602084013e61486d565b606091505b50809250819350505060008151141580156148f1575063f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168180602001905160208110156148bf57600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b1561490157600192505050614ba0565b8673ffffffffffffffffffffffffffffffffffffffff1663e78b332560e01b8a8a898989604051602401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156149d85780820151818401526020810190506149bd565b50505050905090810190601f168015614a055780820380516001836020036101000a031916815260200191505b509650505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310614a9e5780518252602082019150602081019050602083039250614a7b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614b00576040519150601f19603f3d011682016040523d82523d6000602084013e614b05565b606091505b5080925081935050506000815114158015614b89575063e78b332560e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916818060200190516020811015614b5757600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15614b9957600192505050614ba0565b6000925050505b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415614c30576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806150e76021913960400191505060405180910390fd5b6000614c3a612fbd565b9050614c6a81856000614c4c876145dd565b614c55876145dd565b60405180602001604052806000815250612fc5565b614ce7826040518060600160405280602281526020016150c5602291396001600087815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130d89092919063ffffffff16565b6001600085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550614d7b826040518060600160405280602781526020016151316027913960036000878152602001908152602001600020546130d89092919063ffffffff16565b6003600085815260200190815260200160002081905550600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628686604051808381526020018281526020019250505060405180910390a450505050565b600080823b905060008111915050919050565b614e3a8282613898565b614e8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061522f6021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b614ef78282613898565b15614f6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061500957805160ff1916838001178555615037565b82800160010185558215615037579182015b8281111561503657825182559160200191906001019061501b565b5b5090506150449190615048565b5090565b61506a91905b8082111561506657600081600090555060010161504e565b5090565b9056fe4b495033373a206163636f756e747320616e6420696473206c656e677468206d69736d61746368506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654b495033373a206275726e20616d6f756e7420657863656564732062616c616e63654b495033373a206275726e2066726f6d20746865207a65726f20616464726573734b495033373a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734b495033373a206275726e20616d6f756e74206578636565647320746f74616c20737570706c794b495033373a20746f4c69737420616e64205f76616c756573206c656e677468206d69736d617463684b495033373a2069647320616e6420616d6f756e7473206c656e677468206d69736d617463684b495033373a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644b495033373a20696e73756666696369656e742062616c616e636520666f72207472616e736665724d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c654b495033375061757361626c653a20746f6b656e207472616e73666572207768696c65207061757365644b495033373a2073657474696e6720617070726f76616c2073746174757320666f722073656c66526f6c65733a206163636f756e7420697320746865207a65726f20616464726573734b495033373a207472616e7366657220746f206e6f6e204b49503337526563656976657220696d706c656d656e7465724b495033373a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644b495033373a207472616e7366657220746f20746865207a65726f20616464726573734b495033373a206261746368207472616e7366657220746f206e6f6e204b49503337526563656976657220696d706c656d656e7465724b495033373a2062617463682062616c616e636520717565727920666f7220746865207a65726f20616464726573734b495033375061757361626c653a2074686520746f6b656e20697320706175736564a265627a7a72315820e25d8dc643b88aedf7cc65214f7b1b1082b35f0f4164a706b9e9d3dc576d6de564736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373",w=[{constant:!0,inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}],v={preCondition:{true:"0x01ffc9a7",false:"0xffffffff"},kip7:{IKIP7:"0x65787371",IKIP7Metadata:"0xa219a025",IKIP7Mintable:"0xeab83e20",IKIP7Burnable:"0x3b5a0bf8",IKIP7Pausable:"0x4d5507ff"},kip17:{IKIP17:"0x80ac58cd",IKIP17Metadata:"0x5b5e139f",IKIP17Enumerable:"0x780e9d63",IKIP17Mintable:"0xeab83e20",IKIP17MetadataMintable:"0xfac27f46",IKIP17Burnable:"0x42966c68",IKIP17Pausable:"0x4d5507ff"},kip37:{IKIP37:"0x6433ca1f",IKIP37Metadata:"0x0e89341c",IKIP37Mintable:"0xdfd9d9ec",IKIP37Burnable:"0x9e094e9e",IKIP37Pausable:"0x0e8ffdb7"}};e.exports={interfaceIds:v,kip7JsonInterface:p,kip7ByteCode:b,determineSendParams:f,validateDeployParameterForKIP7:l,validateDeployParameterForKIP17:d,validateDeployParameterForKIP37:h,formatParamForUint256:a,kip17JsonInterface:m,kip17ByteCode:g,kip37JsonInterface:k,kip37ByteCode:y,kip13JsonInterface:w}},"904e":function(e,t,n){"use strict";e.exports=e=>({get:n("0e02")(e),stat:n("526a")(e),put:n("bfac")(e),rm:n("3156")(e)})},9058:function(e,t,n){const r=n("451a"),i=n("0f5d"),s=n("be97");function f(e){return e&=511,e&&512-e}async function a(e,t){const n=f(t);n&&await e.next(n)}e.exports=e=>(e=e||{},e.highWaterMark=e.highWaterMark||16384,t=>async function*(){const n=s(t);let f,o,c,u;try{while(1){let t;try{const{done:e,value:r}=await n.next(512);if(e)return;t=r}catch(l){if("ERR_UNDER_READ"===l.code)return;throw l}const s=i.decode(t,e.filenameEncoding);if(!s)continue;if("gnu-long-path"===s.type){const{done:t,value:r}=await n.next(s.size);if(t)return;f=i.decodeLongPath(r,e.filenameEncoding),await a(n,s.size);continue}if("gnu-long-link-path"===s.type){const{done:t,value:r}=await n.next(s.size);if(t)return;o=i.decodeLongPath(r,e.filenameEncoding),await a(n,s.size);continue}if("pax-global-header"===s.type){const{done:t,value:r}=await n.next(s.size);if(t)return;c=i.decodePax(r,e.filenameEncoding),await a(n,s.size);continue}if("pax-header"===s.type){const{done:t,value:r}=await n.next(s.size);if(t)return;u=i.decodePax(r,e.filenameEncoding),c&&(u={...c,...u}),await a(n,s.size);continue}if(f&&(s.name=f,f=null),o&&(s.linkname=o,o=null),u&&(u.path&&(s.name=u.path),u.linkpath&&(s.linkname=u.linkpath),u.size&&(s.size=parseInt(u.size,10)),s.pax=u,u=null),!s.size||"directory"===s.type){yield{header:s,body:async function*(){}()};continue}let d=s.size;const h=r(),p=await n.nextLte(Math.min(d,e.highWaterMark));d-=p.value.length,d||h.resolve();const b=async function*(){try{yield p.value;while(d){const{done:e,value:t}=await n.nextLte(d);if(e)return void(d=0);d-=t.length,yield t}}finally{h.resolve()}}();if(yield{header:s,body:b},await h.promise,d)for await(const e of b);await a(n,s.size)}}finally{await n.return()}}())},"90a6":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("shutdown",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});await n.text()})},9100:function(e,t,n){const r=n("2ef0"),i=n("a46b"),s=n("e19e").errors,f=function(e,t){const n=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connection=t.connect({path:this.path}),this.addDefaultEvents();const s=function(e){let t=null;r.isArray(e)?e.forEach((function(e){n.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,t||-1===e.method.indexOf("_subscription")?n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t]):n.notificationCallbacks.forEach((function(t){r.isFunction(t)&&t(e)}))};"Socket"===t.constructor.name?i(this.connection).done(s):this.connection.on("data",(function(e){n._parseResponse(e.toString()).forEach(s)}))};f.prototype.addDefaultEvents=function(){const e=this;this.connection.on("connect",(function(){})),this.connection.on("error",(function(){e._timeout()})),this.connection.on("end",(function(){e._timeout()})),this.connection.on("timeout",(function(){e._timeout()}))},f.prototype._parseResponse=function(e){const t=this,n=[],r=e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|");return r.forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);let r=null;try{r=JSON.parse(e)}catch(i){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),s.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},f.prototype._addResponseCallback=function(e,t){const n=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[n]=t,this.responseCallbacks[n].method=r},f.prototype._timeout=function(){for(const e in this.responseCallbacks)Object.prototype.hasOwnProperty.call(this.responseCallbacks,e)&&(this.responseCallbacks[e](s.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},f.prototype.reconnect=function(){this.connection.connect({path:this.path})},f.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},f.prototype.on=function(e,t){if("function"!==typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;default:this.connection.on(e,t);break}},f.prototype.once=function(e,t){if("function"!==typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},f.prototype.removeListener=function(e,t){const n=this;switch(e){case"data":this.notificationCallbacks.forEach((function(e,r){e===t&&n.notificationCallbacks.splice(r,1)}));break;default:this.connection.removeListener(e,t);break}},f.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(e);break}},f.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},f.prototype.supportsSubscriptions=function(){return!0},e.exports=f},"912f":function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),{TX_TYPE_STRING:f,TX_TYPE_TAG:a,isNot:o}=n("e638"),c=n("ec88"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(a.TxTypeFeeDelegatedValueTransferWithRatio))throw new Error(`Cannot decode to FeeDelegatedValueTransferWithRatio. The prefix must be ${a.TxTypeFeeDelegatedValueTransferWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,o,c,l,d,h,p]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(o),from:c,feeRatio:u.trimLeadingZero(l),signatures:d,feePayer:h,feePayerSignatures:p}}class d extends c{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){s.isString(e)&&(e=l(e)),super(f.TxTypeFeeDelegatedValueTransferWithRatio,e,t),this.to=e.to,this.value=e.value,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return a.TxTypeFeeDelegatedValueTransferWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),i.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([a.TxTypeFeeDelegatedValueTransferWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),i.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([o(this.chainId)?this.getChainId():this.chainId,o(this.gasPrice)?this.getGasPrice():this.gasPrice,o(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},9155:function(e,t,n){const r=n("5a6c"),i=n("4f8d"),s=function(e,t){let n=e;while(n.length<2*t)n="0"+n;return n},f=function(e){const t="A".charCodeAt(0),n="Z".charCodeAt(0);return e=e.toUpperCase(),e=e.substr(4)+e.substr(0,4),e.split("").map((function(e){const r=e.charCodeAt(0);return r>=t&&r<=n?r-t+10:e})).join("")},a=function(e){let t,n=e;while(n.length>2)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97};class o{constructor(e){this._iban=e}static toAddress(e){if(e=new o(e),!e.isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()}static toIban(e){return o.fromAddress(e).toString()}static fromAddress(e){if(!i.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");const t=new r(e,16),n=t.toString(36),f=s(n,15);return o.fromBban(f.toUpperCase())}static fromBban(e){const t="XE",n=a(f(`${t}00${e}`)),r=("0"+(98-n)).slice(-2);return new o(t+r+e)}static createIndirect(e){return o.fromBban(`ETH${e.institution}${e.identifier}`)}static isValid(e){const t=new o(e);return t.isValid()}isValid(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(f(this._iban))}isDirect(){return 34===this._iban.length||35===this._iban.length}isIndirect(){return 20===this._iban.length}checksum(){return this._iban.substr(2,2)}institution(){return this.isIndirect()?this._iban.substr(7,4):""}client(){return this.isIndirect()?this._iban.substr(11):""}toAddress(){if(this.isDirect()){const e=this._iban.substr(4),t=new r(e,36);return i.toChecksumAddress(t.toString(16,20))}return""}toString(){return this._iban}}e.exports=o},"916e":function(e,t,n){const r=n("7c5f");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"91d3":function(e,t,n){"use strict";const{AbortController:r,AbortSignal:i}="undefined"!==typeof self?self:"undefined"!==typeof window?window:void 0;e.exports=r,e.exports.AbortSignal=i,e.exports.default=r},"91f5":function(e,t,n){var r=n("95e96"),i=536870911,s=["int32","int64","uint32","uint64","sint32","sint64","bool","fixed64","sfixed64","double","fixed32","sfixed32","float"],f=function(e){var t=e.shift();if("{"!==t)return t;t={};var n="";while(e.length)switch(e[0]){case"}":return e.shift(),t;case":":e.shift(),t[n]=f(e);break;default:n=e.shift()}},a=function(e){var t={};while(e.length)switch(e[0]){case"[":case",":e.shift();var n=e.shift();"("===n&&(n=e.shift(),e.shift());var r=[];if("."===e[0][0]&&(r=e[0].substr(1).split("."),e.shift()),"="!==e[0])throw new Error("Unexpected token in field options: "+e[0]);if(e.shift(),"]"===e[0])throw new Error("Unexpected ] in field option");var i=[n].concat(r),s=i.pop(),a=i.reduce((function(e,t,n){return null==e[t]&&(e[t]={}),e[t]}),t);a[s]=f(e);break;case"]":return e.shift(),t;default:throw new Error("Unexpected token in field options: "+e[0])}throw new Error("No closing tag for field options")},o=function(e){var t={name:null,type:null,tag:-1,map:null,oneof:null,required:!1,repeated:!1,options:{}};while(e.length)switch(e[0]){case"=":e.shift(),t.tag=Number(e.shift());break;case"map":if(t.type="map",t.map={from:null,to:null},e.shift(),"<"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.from=e.shift(),","!==e[0])throw new Error("Unexpected token in map type: "+e[0]);if(e.shift(),t.map.to=e.shift(),">"!==e[0])throw new Error("Unexpected token in map type: "+e[0]);e.shift(),t.name=e.shift();break;case"repeated":case"required":case"optional":var n=e.shift();t.required="required"===n,t.repeated="repeated"===n,t.type=e.shift(),t.name=e.shift();break;case"[":t.options=a(e);break;case";":if(null===t.name)throw new Error("Missing field name");if(null===t.type)throw new Error("Missing type in message field: "+t.name);if(-1===t.tag)throw new Error("Missing tag number in message field: "+t.name);return e.shift(),t;default:throw new Error("Unexpected token in message field: "+e[0])}throw new Error("No ; found for message field")},c=function(e){var t={enums:[],options:{},messages:[],fields:[],extends:[],extensions:null};while(e.length)switch(e[0]){case"map":case"repeated":case"optional":case"required":t.fields.push(o(e));break;case"enum":t.enums.push(m(e));break;case"message":t.messages.push(d(e));break;case"extensions":t.extensions=l(e);break;case"oneof":e.shift();var n=e.shift();if("{"!==e[0])throw new Error("Unexpected token in oneof: "+e[0]);e.shift();while("}"!==e[0]){e.unshift("optional");var r=o(e);r.oneof=n,t.fields.push(r)}e.shift();break;case"extend":t.extends.push(u(e));break;case";":e.shift();break;case"reserved":e.shift();while(";"!==e[0])e.shift();break;case"option":var i=g(e);if(void 0!==t.options[i.name])throw new Error("Duplicate option "+i.name);t.options[i.name]=i.value;break;default:e.unshift("optional"),t.fields.push(o(e))}return t},u=function(e){var t={name:e[1],message:d(e)};return t},l=function(e){e.shift();var t=Number(e.shift());if(isNaN(t))throw new Error("Invalid from in extensions definition");if("to"!==e.shift())throw new Error("Expected keyword 'to' in extensions definition");var n=e.shift();if("max"===n&&(n=i),n=Number(n),isNaN(n))throw new Error("Invalid to in extensions definition");if(";"!==e.shift())throw new Error("Missing ; in extensions definition");return{from:t,to:n}},d=function(e){e.shift();var t=1,n=[],r={name:e.shift(),options:{},enums:[],extends:[],messages:[],fields:[]};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("{"===e[0]?t++:"}"===e[0]&&t--,!t)return e.shift(),n=c(n),r.enums=n.enums,r.messages=n.messages,r.fields=n.fields,r.extends=n.extends,r.extensions=n.extensions,r.options=n.options,r;n.push(e.shift())}if(t)throw new Error("No closing tag for message")},h=function(e){e.shift();var t=e.shift();if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},p=function(e){if(e.shift(),"="!==e[0])throw new Error("Expected = but found "+e[0]);e.shift();var t=e.shift();switch(t){case'"proto2"':t=2;break;case'"proto3"':t=3;break;default:throw new Error("Expected protobuf syntax version but found "+t)}if(";"!==e[0])throw new Error("Expected ; but found "+e[0]);return e.shift(),t},b=function(e){if(e.length<4)throw new Error("Invalid enum value: "+e.slice(0,3).join(" "));if("reserved"===e[0]){e.shift();while(";"!==e[0])e.shift();return e.shift(),null}if("="!==e[1])throw new Error("Expected = but found "+e[1]);if(";"!==e[3]&&"["!==e[3])throw new Error("Expected ; or [ but found "+e[1]);var t=e.shift();e.shift();var n={value:null,options:{}};return n.value=Number(e.shift()),"["===e[0]&&(n.options=a(e)),e.shift(),{name:t,val:n}},m=function(e){e.shift();var t={},n={name:e.shift(),values:{},options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),n;if("option"!==e[0]){var r=b(e);null!==r&&(n.values[r.name]=r.val)}else t=g(e),n.options[t.name]=t.value}throw new Error("No closing tag for enum")},g=function(e){var t=null,n=null,r=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")};while(e.length){if(";"===e[0])return e.shift(),{name:t,value:n};switch(e[0]){case"option":e.shift();var i="("===e[0];if(i&&e.shift(),t=e.shift(),i){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}"."===e[0][0]&&(t+=e.shift());break;case"=":if(e.shift(),null===t)throw new Error("Expected key for option with value: "+e[0]);if(n=r(e.shift()),"optimize_for"===t&&!/^(SPEED|CODE_SIZE|LITE_RUNTIME)$/.test(n))throw new Error("Unexpected value for option optimize_for: "+n);"{"===n&&(n=k(e));break;default:throw new Error("Unexpected token in option: "+e[0])}}},k=function(e){var t=function(e){return"true"===e||"false"!==e&&e.replace(/^"+|"+$/gm,"")},n={};while(e.length){if("}"===e[0])return e.shift(),n;var r="("===e[0];r&&e.shift();var i=e.shift();if(r){if(")"!==e[0])throw new Error("Expected ) but found "+e[0]);e.shift()}var s=null;switch(e[0]){case":":if(void 0!==n[i])throw new Error("Duplicate option map key "+i);e.shift(),s=t(e.shift()),"{"===s&&(s=k(e)),n[i]=s,";"===e[0]&&e.shift();break;case"{":if(e.shift(),s=k(e),void 0===n[i]&&(n[i]=[]),!Array.isArray(n[i]))throw new Error("Duplicate option map key "+i);n[i].push(s);break;default:throw new Error("Unexpected token in option map: "+e[0])}}throw new Error("No closing tag for option map")},y=function(e){e.shift();var t=e.shift().replace(/^"+|"+$/gm,"");if(";"!==e[0])throw new Error("Unexpected token: "+e[0]+'. Expected ";"');return e.shift(),t},w=function(e){e.shift();var t={name:e.shift(),methods:[],options:{}};if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;switch(e[0]){case"option":var n=g(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value;break;case"rpc":t.methods.push(v(e));break;default:throw new Error("Unexpected token in service: "+e[0])}}throw new Error("No closing tag for service")},v=function(e){e.shift();var t={name:e.shift(),input_type:null,output_type:null,client_streaming:!1,server_streaming:!1,options:{}};if("("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.client_streaming=!0),t.input_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),"returns"!==e[0])throw new Error("Expected returns but found "+e[0]);if(e.shift(),"("!==e[0])throw new Error("Expected ( but found "+e[0]);if(e.shift(),"stream"===e[0]&&(e.shift(),t.server_streaming=!0),t.output_type=e.shift(),")"!==e[0])throw new Error("Expected ) but found "+e[0]);if(e.shift(),";"===e[0])return e.shift(),t;if("{"!==e[0])throw new Error("Expected { but found "+e[0]);e.shift();while(e.length){if("}"===e[0])return e.shift(),";"===e[0]&&e.shift(),t;if("option"!==e[0])throw new Error("Unexpected token in rpc options: "+e[0]);var n=g(e);if(void 0!==t.options[n.name])throw new Error("Duplicate option "+n.name);t.options[n.name]=n.value}throw new Error("No closing tag for rpc")},E=function(e){for(var t=r(e.toString()),n=0;nt.extensions.to)throw new Error(t.name+" does not declare "+e.tag+" as an extension number");t.fields.push(e)}))}))})),f.messages.forEach((function(e){e.fields.forEach((function(t){var n,r,i,a;function o(e){return e.name===t.type}function c(e){return e.name===i}if(t.options&&"true"===t.options.packed&&-1===s.indexOf(t.type)){if(-1===t.type.indexOf(".")){if(e.enums&&e.enums.some(o))return}else{if(n=t.type.split("."),n.length>2)throw new Error("what is this?");if(r=n[0],i=n[1],f.messages.some((function(e){if(e.name===r)return a=e,e})),a&&a.enums&&a.enums.some(c))return}throw new Error("Fields of type "+t.type+' cannot be declared [packed=true]. Only repeated fields of primitive numeric types (types which use the varint, 32-bit, or 64-bit wire types) can be declared "packed". See https://developers.google.com/protocol-buffers/docs/encoding#optional')}}))})),f};e.exports=E},"921c":function(e,t,n){const r=n("2ef0"),i=n("f54c"),s=n("c8cf"),f=n("4f8d"),a=n("2dc3").subscription,o=n("6810"),c=n("ea3d"),u=n("bcbb"),l=n("4667"),d=n("0791"),h=n("2085"),p=n("a2ff"),b=n("b457"),{formatters:m}=n("e19e"),{errors:g}=n("e19e"),k=n("5af0"),y=function e(t,n,s){const a=this,o=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a caver.contract() or caver.klay.Contract() object!');if(i.packageInit(this,[this.constructor.currentProvider]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw new Error("You must provide the json interface of the contract when instantiating a contract object.");this.options={};const c=o[o.length-1];r.isObject(c)&&!r.isArray(c)&&(s=c,this.options=r.extend(this.options,this._getOrSetDefaultOptions(s)),r.isObject(n)&&(n=null)),Object.defineProperty(this,"defaultSendOptions",{get(){return a.options}}),Object.defineProperty(this.options,"address",{set(e){e&&(a._address=f.toChecksumAddress(m.inputAddressFormatter(e)))},get(){return a._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set(e){a.methods={},a.events={},a._jsonInterface=e.map((function(e){let t,n;if(e.name&&(n=f._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=k.encodeFunctionSignature(n),t=a._createTxObject.bind({method:e,parent:a}),a.methods[e.name]){const t=a._createTxObject.bind({method:e,parent:a,nextMethod:a.methods[e.name]});a.methods[e.name]=t}else a.methods[e.name]=t;a.methods[e.signature]=t,a.methods[n]=t}else if("event"===e.type){e.signature=k.encodeEventSignature(n);const t=a._on.bind(a,e.signature);a.events[e.name]&&"bound "!==a.events[e.name].name||(a.events[e.name]=t),a.events[e.signature]=t,a.events[n]=t}const i=r.find(a._jsonInterface,(function(e){return"constructor"===e.type}))||{type:"constructor"};i.signature="constructor";const s=a._createTxObject.bind({method:i,parent:a});return a.methods[i.signature]=s,e})),a.events.allEvents=a._on.bind(a,"allevents")},get(){return a._jsonInterface},enumerable:!0});let{defaultAccount:u}=this.constructor,l=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"defaultAccount",{get(){return u},set(e){e&&(u=f.toChecksumAddress(m.inputAddressFormatter(e)))},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get(){return l},set(e){if(!f.isValidBlockNumberCandidate(e))throw new Error("Invalid default block number.");l=e},enumerable:!0}),Object.defineProperty(this.options,"from",{set(e){e&&(a._from=f.toChecksumAddress(m.inputAddressFormatter(e)))},get(){return a._from},enumerable:!0}),Object.defineProperty(this.options,"feePayer",{set(e){e&&(a._feePayer=f.toChecksumAddress(m.inputAddressFormatter(e)))},get(){return a._feePayer},enumerable:!0}),Object.defineProperty(this.options,"feeDelegation",{set(e){void 0!==e&&(a._feeDelegation=e)},get(){return a._feeDelegation},enumerable:!0}),Object.defineProperty(this.options,"feeRatio",{set(e){if(void 0!==e){if(!r.isNumber(e)&&!f.isHex(e))throw new Error("Invalid type fo feeRatio: feeRatio should be number type or hex number string.");if(f.hexToNumber(e)<=0||f.hexToNumber(e)>=100)throw new Error("Invalid feeRatio: feeRatio is out of range. [1, 99]");a._feeRatio=f.numberToHex(e)}},get(){return a._feeRatio},enumerable:!0}),Object.defineProperty(this.options,"gasPrice",{set(e){if(e){if(!f.isValidNSHSN(e))throw new Error("Invalid gas price: gasPrice should be number type, number string or hex string.");a._gasPrice=e}},get(){return a._gasPrice},enumerable:!0}),Object.defineProperty(this.options,"gas",{set(e){if(e){if(!f.isValidNSHSN(e))throw g.invalidGasLimit();a._gas=e}},get(){return a._gas},enumerable:!0}),Object.defineProperty(this.options,"data",{set(e){if(e){if(!f.isHexStrict(e))throw g.invalidData();a._data=e}},get(){return a._data},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=n,this.options.jsonInterface=t};function w(e,t,n,i){const s={...e.options};if(s.value=s.value||0,!f.isAddress(s.from))return f._fireError(new Error('No "from" address specified in neither the given options, nor the default options.'),i.eventEmitter,i.reject,e.callback);if(r.isBoolean(t.payable)&&!t.payable&&s.value&&s.value>0)return f._fireError(new Error("Can not send value to non-payable contract method or constructor"),i.eventEmitter,i.reject,e.callback);if(s.feeDelegation){if(("signAsFeePayer"===e.type||"send"===e.type&&s.feePayer)&&!f.isAddress(s.feePayer))return f._fireError(new Error("Invalid fee payer: "+s.feePayer),i.eventEmitter,i.reject,e.callback)}else{if("signAsFeePayer"===e.type)return f._fireError(new Error("feeDelegation field should be defined as 'true' to sign as a fee payer"),i.eventEmitter,i.reject,e.callback);if(void 0!==s.feeRatio)return f._fireError(new Error("feeDelegation field should be defined as 'true' to use feeRatio"),i.eventEmitter,i.reject,e.callback);if(s.feePayer)return f._fireError(new Error("feeDelegation field should be defined as 'true' to use feePayer"),i.eventEmitter,i.reject,e.callback)}let a;return a=void 0!==n?s.feeDelegation?void 0!==s.feeRatio?new d(s):new u(s):new o(s):s.feeDelegation?void 0!==s.feeRatio?new h(s):new l(s):new c(s),a}y.create=function(e,t,n){return new y(e,t,n)},y.setProvider=function(e,t){i.packageInit(this,[e]),this._klayAccounts=t},y.prototype.setKeyrings=function(e){if(!(e instanceof p))throw new Error("keyrings should be an instance of 'KeyringContainer'");this._keyrings=e},y.prototype.setWallet=function(e){this._wallet=e},y.prototype.addAccounts=function(e){this._klayAccounts=e},y.prototype._getCallback=function(e){if(e&&r.isFunction(e[e.length-1]))return e.pop()},y.prototype._checkListener=function(e,t){if(t===e)throw new Error(`The event "${e}" is a reserved event name, you can't use it.`)},y.prototype._getOrSetDefaultOptions=function(e){const t=e.gasPrice?String(e.gasPrice):null,n=e.from?f.toChecksumAddress(m.inputAddressFormatter(e.from)):null;e.data=e.data||this.options.data,e.from=n||this.options.from,e.gasPrice=t||this.options.gasPrice;const r=e.feePayer?f.toChecksumAddress(m.inputAddressFormatter(e.feePayer)):null,i=e.feeRatio?e.feeRatio:null,s=void 0!==e.feeDelegation?e.feeDelegation:null;return e.feePayer=r||this.options.feePayer,e.feeRatio=i||this.options.feeRatio,e.feeDelegation=s||this.options.feeDelegation,"undefined"===typeof e.gas&&(e.gas=e.gasLimit||this.options.gas),delete e.gasLimit,e},y.prototype._encodeEventABI=function(e,t){t=t||{};const n=t.filter||{},i={};if(["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){i[e]=m.inputBlockNumberFormatter(t[e])})),r.isArray(t.topics))i.topics=t.topics;else{if(i.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&i.topics.push(e.signature),"ALLEVENTS"!==e.name){const t=e.inputs.filter(e=>!0===e.indexed).map(e=>{const t=n[e.name];return t?r.isArray(t)?t.map(t=>k.encodeParameter(e.type,t)):k.encodeParameter(e.type,t):null});i.topics=i.topics.concat(t)}i.topics.length||delete i.topics}return this.options.address&&(i.address=this.options.address.toLowerCase()),i},y.prototype._decodeEventABI=function(e){let t=this;e.data=e.data||"",e.topics=e.topics||[];const n=m.outputLogFormatter(e);"ALLEVENTS"===t.name&&(t=t.jsonInterface.find((function(t){return t.signature===e.topics[0]}))||{anonymous:!0}),t.inputs=t.inputs||[];const r=t.anonymous?e.topics:e.topics.slice(1);return n.returnValues=k.decodeLog(t.inputs,e.data,r),delete n.returnValues.__length__,n.event=t.name,n.signature=t.anonymous||!e.topics[0]?null:e.topics[0],n.raw={data:n.data,topics:n.topics},delete n.data,delete n.topics,n},y.prototype._encodeMethodABI=function(){const e=this._method.signature,t=this.arguments||[];let n=!1;const i=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){const i=r.isArray(e.inputs)?e.inputs.length:0;if(i!==t.length)throw new Error(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);return"function"===e.type&&(n=e.signature),r.isArray(e.inputs)?e.inputs:[]})).map((function(e){return k.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData+i}const s=n?n+i:i;if(s)return s;throw new Error(`Couldn't find a matching contract method named "${this._method.name}".`)},y.prototype.decodeFunctionCall=function(e){let t;e=f.addHexPrefix(e);const n=10,r=e.slice(0,n);for(const i of this._jsonInterface)if(i.type&&"function"===i.type&&r===i.signature){t=i;break}return k.decodeFunctionCall(t,e)},y.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;const n=k.decodeParameters(e,t);return 1===n.__length__?n[0]:(delete n.__length__,n)},y.prototype.deploy=function(e,t){const n=Array.prototype.slice.call(arguments);if(1===n.length||2===n.length&&r.isFunction(n[n.length-1])){if(e=e||{},e.arguments=e.arguments||[],e=this._getOrSetDefaultOptions(e),!e.data){const e=new Error('No "data" specified in neither the given options, nor the default options.');throw t&&t(e),e}return this.methods.constructor(e.data,...e.arguments)}const i=n[0],s=n[1],f=n.slice(2);return this.methods.constructor(s,...f).send(i)},y.prototype.send=function(){const e=Array.prototype.slice.call(arguments),t=e[0],n=e[1],r=e.slice(2);return this.methods[n](...r).send(t)},y.prototype.call=function(){let e=Array.prototype.slice.call(arguments),t={};r.isObject(e[0])&&(t=e[0],e=e.slice(1));const n=e[0],i=e.slice(1);return this.methods[n](...i).call(t)},y.prototype.sign=function(){const e=Array.prototype.slice.call(arguments),t=e[0],n=e[1],r=e.slice(2);return this.methods[n](...r).sign(t)},y.prototype.signAsFeePayer=function(){const e=Array.prototype.slice.call(arguments),t=e[0],n=e[1],r=e.slice(2);return this.methods[n](...r).signAsFeePayer(t)},y.prototype._generateEventOptions=function(){const e=Array.prototype.slice.call(arguments),t=this._getCallback(e),n=r.isObject(e[e.length-1])?e.pop():{};let i=r.isString(e[0])?e[0]:"allevents";if(i="allevents"===i.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===i||e.signature==="0x"+i.replace("0x",""))})),!i)throw new Error(`Event "${i.name}" doesn't exist in this contract.`);if(!f.isAddress(this.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return{params:this._encodeEventABI(i,n),event:i,callback:t}},y.prototype.clone=function(e=this.options.address){const t=new this.constructor(this.options.jsonInterface,e,this.options);return t.setWallet(this._wallet),t},y.prototype.once=function(e,t,n){const i=Array.prototype.slice.call(arguments);if(n=this._getCallback(i),!n)throw new Error("Once requires a callback as the second parameter.");t&&delete t.fromBlock,this._on(e,t,(function(e,t,i){i.unsubscribe(),r.isFunction(n)&&n(e,t,i)}))},y.prototype._on=function(){const e=this._generateEventOptions.apply(this,arguments);this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);const t=new a({subscription:{params:1,inputFormatter:[m.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler(e){this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},type:"klay",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},y.prototype.getPastEvents=function(){const e=this._generateEventOptions.apply(this,arguments);let t=new s({name:"getPastLogs",call:"klay_getLogs",params:1,inputFormatter:[m.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);const n=t.buildCall();return t=null,n(e.params,e.callback)},y.prototype._createTxObject=function(){let e=Array.prototype.slice.call(arguments);const t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.sign=this.parent._executeMethod.bind(t,"sign"),t.signAsFeePayer=this.parent._executeMethod.bind(t,"signAsFeePayer"),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),"constructor"!==this.method.type||this.deployData||(this.deployData=e[0],e=e.slice(1)),t.arguments=e||[],t._method=this.method,t._parent=this.parent,e&&this.method.inputs){if(e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw g.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}if(this.nextMethod)try{t.encodeABI(e)}catch(n){return this.nextMethod.apply(null,e)}}return t._klayAccounts=this.parent.constructor._klayAccounts||this._klayAccounts,t._wallet=this.parent._wallet||this._wallet,this.deployData&&(t._deployData=this.deployData),t},y.prototype._processExecuteArguments=function(e,t){const n={};if(n.type=e.shift(),n.callback=this._parent._getCallback(e),"call"===n.type&&!0!==e[e.length-1]&&(r.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(n.defaultBlock=e.pop()),n.options=r.isObject(e[e.length-1])?e.pop():{},n.generateRequest=!0===e[e.length-1]&&e.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!f.isAddress(this._parent.options.address))throw new Error("This contract object doesn't have address set yet, please set an address first.");return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:f._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,n.callback)},y.prototype._executeMethod=async function(){const e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n);var n=f.promiEvent("send"!==t.type);const i=e.constructor._klayAccounts||e._klayAccounts,a=e._parent._wallet||e._wallet,o=new s({name:"signTransaction",call:"klay_signTransaction",params:1,inputFormatter:[m.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction(),c=new s({name:"signTransactionAsFeePayer",call:"klay_signTransactionAsFeePayer",params:1,inputFormatter:[m.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();if(t.options&&0===t.options.gas)throw g.notAllowedZeroGas();if(t.generateRequest){const e={params:[m.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(e.params.push(m.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),e.method="klay_call",e.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):e.method="klay_sendTransaction",e}switch(t.type){case"estimate":const l=new s({name:"estimateGas",call:"klay_estimateGas",params:1,inputFormatter:[m.inputCallFormatter],outputFormatter:f.hexToNumber,requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return l(t.options,t.callback);case"call":const d=new s({name:"call",call:"klay_call",params:2,inputFormatter:[m.inputCallFormatter,m.inputDefaultBlockNumberFormatter],outputFormatter(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return d(t.options,t.defaultBlock,t.callback);case"sign":case"signAsFeePayer":const h=await w(t,this._method,this._deployData,n);if(!a)return f._fireError(new Error("Contract sign/signAsFeePayer works with 'caver.wallet'. Set to use'caver.wallet' by calling'contract.setWallet'."),n.eventEmitter,n.reject,t.callback);const g="signAsFeePayer"===t.type?t.options.feePayer:t.options.from,k=await a.isExisted(g),y=k?"signAsFeePayer"===t.type?a.signAsFeePayer.bind(a):a.sign.bind(a):"signAsFeePayer"===t.type?c:o;return k?y(g,h).then(e=>e):y(h).then(e=>b.decode(e.raw));case"send":const v=await w(t,this._method,this._deployData,n),E={receiptFormatter(t){if(r.isArray(t.logs)){const n=r.map(t.logs,(function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};let i=0;n.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[i]=e,i++)})),delete t.logs}return t},contractDeployFormatter(t){const n=e._parent.clone(t.contractAddress);return n}};E.contractDeployFormatter=t.options.contractDeployFormatter?t.options.contractDeployFormatter:E.contractDeployFormatter;const T=new s({name:"sendTransaction",call:"klay_sendTransaction",params:1,inputFormatter:[m.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,extraFormatters:E}).createFunction(),x=new s({name:"sendRawTransaction",call:"klay_sendRawTransaction",params:1,requestManager:e._parent._requestManager,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,extraFormatters:E}).createFunction();if(a){const e=await a.isExisted(t.options.from);async function u(e){if(await e.fillTransaction(),e.type.includes("TxTypeFeeDelegated"))if(await a.isExisted(e.feePayer))await a.signAsFeePayer(e.feePayer,e);else{const t=await c(e);e=b.decode(t.raw)}return e}if(!e){if(a instanceof p)return u(v).then(e=>e.type.includes("TxTypeFeeDelegated")?o(e).then(t=>(e.signatures=t.tx.signatures,x(e))):T(e,t.callback));throw new Error(`Failed to find ${t.options.from}. Please check that the corresponding account or keyring exists.`)}return a.sign(v.from,v).then(e=>u(e).then(e=>x(e.getRLPEncoding())))}if(void 0===t.options.type&&(void 0!==this._deployData?t.options.type="SMART_CONTRACT_DEPLOY":t.options.type="SMART_CONTRACT_EXECUTION"),"SMART_CONTRACT_EXECUTION"!==t.options.type&&"SMART_CONTRACT_DEPLOY"!==t.options.type)throw new Error("Unsupported transaction type. Please use SMART_CONTRACT_EXECUTION or SMART_CONTRACT_DEPLOY.");const _=T.method.accounts.wallet[t.options.from.toLowerCase()];return _&&_.privateKey||(t.options.type="LEGACY"),T(t.options,t.callback)}},e.exports=y},"921ee":function(e,t,n){"use strict";const r=n("8804"),i=n("7766"),s=n("9878"),f=n("15e4");e.exports=s((e,t)=>{const s=async function*(t,n={}){Array.isArray(t)||(t=[t]);const s=await e.post("refs",{timeout:n.timeout,signal:n.signal,searchParams:f({arg:t.map(e=>""+(e instanceof Uint8Array?new r(e):e)),...n}),headers:n.headers,transform:i});yield*s.ndjson()};return s.local=n("0ae1")(t),s})},9398:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const{Strings:n}=await(await e.post("pubsub/ls",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers})).json();return n||[]})},"940f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("3cf7");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},"94bf":function(e,t,n){"use strict";const r=n("75a6"),i=n("96e3"),s=n("0e80");t=e.exports,t.codec=i.DAG_PB,t.defaultHashAlg=i.SHA2_256;const f=async(e,n)=>{const f={cidVersion:1,hashAlg:t.defaultHashAlg},a=Object.assign(f,n),o=await s(e,a.hashAlg),c=i.print[t.codec],u=new r(a.cidVersion,c,o);return u};t.cid=f},"94e4":function(e,t,n){"use strict";const r=n("8804"),i=n("2054"),s=n("fe37"),f=n("3ae5"),a=n("c8ff"),o=n(25),c=n("449d");function u(e={}){return{add:n("59bb")(e),addAll:n("74f2")(e),bitswap:n("f97d")(e),block:n("904e")(e),bootstrap:n("4923")(e),cat:n("de5e")(e),commands:n("a4b7")(e),config:n("af58")(e),dag:n("5ae5")(e),dht:n("ffe1")(e),diag:n("0150")(e),dns:n("e798")(e),files:n("f278")(e),get:n("3124")(e),getEndpointConfig:n("ac7d")(e),id:n("abe8")(e),key:n("5a90")(e),log:n("333d5")(e),ls:n("c16b")(e),mount:n("423e")(e),name:n("05a4")(e),object:n("2f06")(e),pin:n("4d59")(e),ping:n("ac98")(e),pubsub:n("40d5")(e),refs:n("921ee")(e),repo:n("ca35")(e),resolve:n("9a3bc")(e),stats:n("ecf4")(e),stop:n("90a6")(e),shutdown:n("90a6")(e),swarm:n("546f")(e),version:n("5144")(e)}}Object.assign(u,{CID:r,multiaddr:i,multibase:s,multicodec:f,multihash:a,globSource:o,urlSource:c}),e.exports=u},"94e5":function(e,t,n){const r=n("2ef0"),i=n("921c"),{kip13JsonInterface:s,interfaceIds:f}=n("9018"),{isAddress:a}=n("4f8d");class o extends i{static async isImplementedKIP13Interface(e){const t=new o(e),n=await t.sendQuery(f.preCondition.true),r=await t.sendQuery(f.preCondition.false);return n&&!r}constructor(e,t=s){if(e)if(r.isString(e)){if(!a(e))throw new Error("Invalid contract address "+e)}else t=e,e=void 0;super(t,e)}async sendQuery(e){const t=await this.methods.supportsInterface(e).call();return t}}e.exports=o},9546:function(e,t,n){"use strict";function r(e,t,n,r){return t.bytes=n.bytes=0,{type:e,encode:t,decode:n,encodingLength:r}}e.exports=r},"956c":function(e,t,n){"use strict";function r(e){if("number"===typeof e){if(r.codes[e])return r.codes[e];throw new Error("no protocol with code: "+e)}if("string"===typeof e||e instanceof String){if(r.names[e])return r.names[e];throw new Error("no protocol with name: "+e)}throw new Error("invalid protocol id type: "+e)}const i=-1;function s(e,t,n,r,i){return{code:e,size:t,name:n,resolvable:Boolean(r),path:Boolean(i)}}r.lengthPrefixedVarSize=i,r.V=i,r.table=[[4,32,"ip4"],[6,16,"tcp"],[33,16,"dccp"],[41,128,"ip6"],[42,i,"ip6zone"],[53,i,"dns","resolvable"],[54,i,"dns4","resolvable"],[55,i,"dns6","resolvable"],[56,i,"dnsaddr","resolvable"],[132,16,"sctp"],[273,16,"udp"],[275,0,"p2p-webrtc-star"],[276,0,"p2p-webrtc-direct"],[277,0,"p2p-stardust"],[290,0,"p2p-circuit"],[301,0,"udt"],[302,0,"utp"],[400,i,"unix",!1,"path"],[421,i,"ipfs"],[421,i,"p2p"],[443,0,"https"],[444,96,"onion"],[445,296,"onion3"],[446,i,"garlic64"],[460,0,"quic"],[477,0,"ws"],[478,0,"wss"],[479,0,"p2p-websocket-star"],[480,0,"http"],[777,i,"memory"]],r.names={},r.codes={},r.table.map(e=>{const t=s.apply(null,e);r.codes[t.code]=t,r.names[t.name]=t}),r.object=s,e.exports=r},"959e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("4386");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},"95e96":function(e,t){e.exports=function(e){var t=function(e){var t=e.indexOf("//");return t>-1?e.slice(0,t):e},n=function(){var e=!1;return function(t){return"/*"===t?(e=!0,!1):"*/"===t?(e=!1,!1):!e}},r=function(e){return e.trim()},i=function(e){return function(t){var n="$"+e.length+"$";return e.push(t),n}},s=function(e){var t=/^\$(\d+)\$$/;return function(n){var r=n.match(t);return r?e[+r[1]]:n}},f=[];return e.replace(/"(\\"|[^"\n])*?"|'(\\'|[^'\n])*?'/gm,i(f)).replace(/([;,{}()=:[\]<>]|\/\*|\*\/)/g," $1 ").split(/\n/).map(r).filter(Boolean).map(t).map(r).filter(Boolean).join("\n").split(/\s+|\n+/gm).filter(n()).map(s(f))}},"967a":function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},"96a8":function(e,t,n){"use strict";var r=n("08df"),i=n("d0f1"),s=function(e){if(!e)return null;var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t};e.exports=function(e,t){if(t||(t={}),!e)throw new Error("Pass in a .proto string or a protobuf-schema parsed object");var n="object"!==typeof e||e instanceof Uint8Array?r.parse(e):e,f=function(){var e=this;i(n,t.encodings||{}).forEach((function(t){e[t.name]=s(t.values)||t}))};return f.prototype.toString=function(){return r.stringify(n)},f.prototype.toJSON=function(){return n},new f}},"96e3":function(e,t,n){"use strict";const r=n("19d2"),i=n("87f2"),s=n("a282"),f=n("e997"),a=n("7009");function o(e,t){let n;if(e instanceof Uint8Array)n=f.varintUint8ArrayEncode(e);else{if(!s[e])throw new Error("multicodec not recognized");n=s[e]}return a([n,t],n.length+t.length)}function c(e){return r.decode(e),e.slice(r.decode.bytes)}function u(e){const t=r.decode(e),n=i.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n}function l(e){return i.get(e)}function d(e){const t=s[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return r.decode(t)}function h(e){return r.decode(e)}function p(e){const t=s[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t}function b(e){return r.encode(e)}const m=n("c6a2"),g=n("2afb");e.exports={addPrefix:o,rmPrefix:c,getCodec:u,getName:l,getNumber:d,getCode:h,getCodeVarint:p,getVarint:b,print:g,...m}},9716:function(e,t,n){"use strict";const r=n("1454"),i=n("2612"),{names:s}=n("507b"),f=n("9b62"),a=n("d46b"),o=n("f3bf"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},9727:function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},"97ab":function(e,t,n){e.exports={encode:n("8d23d"),decode:n("35b6"),encodingLength:n("f348")}},9878:function(e,t,n){"use strict";const r=n("0abd"),i=e=>t=>e(new r(t),t);e.exports=i},9894:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74"),i=n("dd7b");const s=r.from({prefix:"\0",name:"identity",encode:e=>i.toString(e),decode:e=>i.fromString(e)});t.identity=s},"98b3":function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},"98c5":function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},9975:function(e,t,n){"use strict";const r=async e=>{let t;for await(const n of e)t=n;return t};e.exports=r},"9a2e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dd7b");const i="raw",s=85,f=e=>r.coerce(e),a=e=>r.coerce(e);t.code=s,t.decode=a,t.encode=f,t.name=i},"9a3b":function(e,t,n){const r=n("4f8d"),{ACCOUNT_KEY_TAG:i}=n("bd78"),s=n("f3cb"),f=n("f320"),a=n("cc64"),o=n("fe26"),c=n("dc81");class u{static decode(e){if(e=r.addHexPrefix(e),e.startsWith(i.ACCOUNT_KEY_LEGACY_TAG))return s.decode(e);if(e.startsWith(i.ACCOUNT_KEY_PUBLIC_TAG))return f.decode(e);if(e.startsWith(i.ACCOUNT_KEY_FAIL_TAG))return a.decode(e);if(e.startsWith(i.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG))return o.decode(e);if(e.startsWith(i.ACCOUNT_KEY_ROLE_BASED_TAG))return c.decode(e);throw new Error("Invalid RLP-encoded account key string: "+e)}}e.exports=u},"9a3bc":function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("resolve",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),{Path:s}=await r.json();return s}return t})},"9a44":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("29f9");const i=({name:e,code:t,encode:n})=>new s(e,t,n);class s{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?r.create(this.code,t):t.then(e=>r.create(this.code,e))}throw Error("Unknown type, must be binary type")}}t.Hasher=s,t.from=i},"9a81":function(e,t,n){const r=n("2ef0"),i=n("4f8d"),s=n("2615").validateParams,{getTypeInt:f}=n("e638"),a=n("f3cb"),o=n("f320"),c=n("cc64"),u=n("fe26"),l=n("dc81"),d=function(e){return i.toBN(e).toString(10)},h=function(e){return!this||void 0!==e&&null!==e?p(e):i.parsePredefinedBlockNumber(this.defaultBlock)||"latest"},p=function(e){if(void 0!==e)return i.isPredefinedBlockNumber(e)?i.parsePredefinedBlockNumber(e):i.isHexStrict(e)?r.isString(e)?e.toLowerCase():e:i.numberToHex(e)},b=function(e){if(e.from&&(e.from=N(e.from)),e.to){if(e.type&&e.type.includes("DEPLOY")&&(e.humanReadable=void 0!==e.humanReadable&&e.humanReadable),e.humanReadable)throw new Error("HumanReadableAddress is not supported yet.");i.isContractDeployment(e)&&"0x"===e.to||(e.to=N(e.to))}if(e.data&&e.input&&!e.type.includes("TxType"))throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!i.isHex(e.data)&&(e.data=i.toHex(e.data)),(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit);const t=["gasPrice","gas","value","nonce","feeRatio"];return t.filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=i.numberToHex(e[t])})),e},m=function(e){e=b(e);const t=e.from||(this?this.defaultAccount:null);return t&&(e.from=N(t)),e},g=function(e){if(!e.type||!e.type.includes("TxType")){if(e=b(e),e.senderRawTransaction){if(void 0===e.feePayer)throw new Error('The "feePayer" field must be defined for signing with feePayer!');return e.feePayer=N(e.feePayer),e}if(!r.isNumber(e.from)&&!r.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!r.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=N(e.from)}e.data&&(e.data=i.addHexPrefix(e.data));const t=s(e);if(t)throw t}const t=f(e.type);return""!==t&&(e.typeInt=t),e},k=function(e){if(e=b(e),!r.isNumber(e.from)&&!r.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!r.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=N(e.from)}return e.data&&(e.data=i.addHexPrefix(e.data)),e},y=function(e){return i.isHexStrict(e)?e:i.utf8ToHex(e)},w=function(e){if(e instanceof a)return{keyType:1,key:{}};if(e instanceof o)return{keyType:2,key:{x:e.getXYPoint()[0],y:e.getXYPoint()[1]}};if(e instanceof c)return{keyType:3,key:{}};if(e instanceof u){const t={threshold:e.threshold,keys:[]};for(const n of e.weightedPublicKeys)t.keys.push({weight:n.weight,key:{x:i.xyPointFromPublicKey(n.publicKey)[0],y:i.xyPointFromPublicKey(n.publicKey)[1]}});return{keyType:4,key:t}}if(e instanceof l){const t=[];for(const n of e.accountKeys)t.push(w(n));return{keyType:5,key:t}}const t=[1,3];if(void 0===e.keyType||void 0===e.key&&!t.includes(e.keyType))throw new Error("AccountKey obejct should define 'keyType' and 'key'");return e},v=function(e){return e?(void 0!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),void 0!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.nonce=i.hexToNumber(e.nonce),e.gas=i.hexToNumber(e.gas),void 0!==e.gasPrice&&(e.gasPrice=d(e.gasPrice)),e.value&&(e.value=d(e.value)),e.to&&i.isAddress(e.to)?e.to=i.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=i.toChecksumAddress(e.from)),e):null},E=function(e){if(!e)return null;if("object"!==typeof e)throw new Error("Received receipt is invalid: "+e);return void 0!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),void 0!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.gasUsed=i.hexToNumber(e.gasUsed),r.isArray(e.logs)&&(e.logs=e.logs.map(A)),e.contractAddress&&(e.contractAddress=i.toChecksumAddress(e.contractAddress)),"undefined"!==typeof e.status&&(e.status=1===parseInt(e.status)),e},T=function(e){return e.gasLimit=i.hexToNumber(e.gasLimit),e.gasUsed=i.hexToNumber(e.gasUsed),e.size=i.hexToNumber(e.size),e.timestamp=i.hexToNumber(e.timestamp),void 0!==e.number&&(e.number=i.hexToNumber(e.number)),e.difficulty&&(e.difficulty=d(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=d(e.totalDifficulty)),r.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!r.isString(e))return v(e)})),e.miner&&(e.miner=i.toChecksumAddress(e.miner)),e},x=function(e){return null===e||"undefined"===typeof e?null:(e=String(e),0===e.indexOf("0x")?e:i.fromUtf8(e))},_=function(e){return e.topics=(e.topics||[]).map(e=>r.isArray(e)?e.map(x):x(e)),e.address&&(e.address=r.isArray(e.address)?e.address.map(e=>N(e)):N(e.address)),e.fromBlock="number"===typeof e.fromBlock?i.numberToHex(e.fromBlock):e.fromBlock,e.toBlock="number"===typeof e.toBlock?i.numberToHex(e.toBlock):e.toBlock,e},A=function(e){if(delete e.removed,"string"===typeof e.blockHash&&"string"===typeof e.transactionHash&&"string"===typeof e.logIndex){const t=i.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").substr(0,8)}else e.id||(e.id=null);return void 0!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),void 0!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),void 0!==e.logIndex&&(e.logIndex=i.hexToNumber(e.logIndex)),e.address&&(e.address=i.toChecksumAddress(e.address)),e},P=function(e){return e.ttl&&(e.ttl=i.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=i.numberToHex(e.workToProve)),e.priority&&(e.priority=i.numberToHex(e.priority)),r.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:i.fromUtf8(e)})),e},C=function(e){return e.expiry=i.hexToNumber(e.expiry),e.sent=i.hexToNumber(e.sent),e.ttl=i.hexToNumber(e.ttl),e.workProved=i.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return i.toUtf8(e)})),e},S=function(e){return r.isString(e)&&(e=new Error(e)),e},N=function(e){const t=new i.Iban(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(i.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error(`Provided address "${e}" is invalid, the capitalization checksum test failed.`)},I=function(e){return e.startingBlock=i.hexToNumber(e.startingBlock),e.currentBlock=i.hexToNumber(e.currentBlock),e.highestBlock=i.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=i.hexToNumber(e.knownStates),e.pulledStates=i.hexToNumber(e.pulledStates)),e},F=function(e){return"0x"===e.slice(0,2)&&(e=e.slice(2)),e},O=e=>!!e;e.exports={inputDefaultBlockNumberFormatter:h,inputBlockNumberFormatter:p,inputCallFormatter:m,inputTransactionFormatter:g,inputPersonalTransactionFormatter:k,inputAddressFormatter:N,inputPostFormatter:P,inputLogFormatter:_,inputSignFormatter:y,inputRawKeyFormatter:F,inputAccountKeyFormatter:w,outputBigNumberFormatter:d,outputTransactionFormatter:v,outputTransactionReceiptFormatter:E,outputBlockFormatter:T,outputLogFormatter:A,outputPostFormatter:C,outputSyncingFormatter:I,outputVotingPowerFormatter:S,toChecksumAddress:i.toChecksumAddress,hexToNumber:i.hexToNumber,numberToHex:i.numberToHex,toBoolean:O}},"9aa4":function(e,t,n){"use strict";const r=n("6978"),i=n("e913"),s=n("fa9fc"),f=n("78ee"),{concat:a}=n("6a8c"),{toString:o}=n("426c"),{equals:c}=n("e04b"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},"9b25":function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},"9b35":function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("key/list",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),i=await n.json();return(i.Keys||[]).map(e=>r(e))})},"9b60":function(e,t,n){"use strict";const r=n("2f48"),{concat:i}=n("b301"),s=n("f3a5"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("52e7");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},"9b62":function(e,t,n){"use strict";const r=n("13a4");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}e.exports=i},"9ba9":function(e,t,n){e.exports=n("2fc8")().Promise},"9bc8":function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("f35a"),a=n("c7c9"),{TX_TYPE_STRING:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){e=u.addHexPrefix(e);const[t,n,r,s,f,a,o,c,l]=i.decode(e);return{nonce:u.trimLeadingZero(t),gasPrice:u.trimLeadingZero(n),gas:u.trimLeadingZero(r),to:s,value:u.trimLeadingZero(f),input:a,signatures:[o,c,l]}}class d extends a{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(r.isString(e)&&(e=l(e)),e.from=e.from||"0x0000000000000000000000000000000000000000",super(o.TxTypeLegacyTransaction,e,t),this.to=e.to||"0x",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data||"0x",this.value=e.value||"0x0",void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if("0x"!==e&&!u.isAddress(e))throw new Error("Invalid address "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}appendSignatures(e){if(!u.isEmptySig(this.signatures))throw new Error(`signatures already defined. ${this.type} cannot include more than one signature. Please use tx.signatures = sigArr to replace.`);if(Array.isArray(e[0])){if(e.length>1)throw new Error(`signatures are too long. ${this.type} cannot include more than one signature.`);e=e[0]}this.signatures=e}getRLPEncoding(){return this.validateOptionalValues(),i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,this.signatures.v,this.signatures.r,this.signatures.s])}getRLPEncodingForSignature(){if(this.validateOptionalValues(),void 0===this.chainId)throw new Error("chainId is undefined. Define chainId in transaction or use 'transaction.fillTransaction' to fill values.");return i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.input,s.fromNat(this.chainId||"0x1"),"0x","0x"])}getCommonRLPEncodingForSignature(){return this.getRLPEncodingForSignature()}recoverPublicKeys(){if(u.isEmptySig(this.signatures))throw new Error("Failed to recover public key from signatures: signatures is empty.");const e=s.toNumber(this.signatures.v),t=e<35?s.fromNat("0x1"):s.fromNumber(e-35>>1);this.chainId||(this.chainId=t);const n=this.getRLPEncodingForSignature(),r=f.keccak256(n),i=[];return i.push(u.recoverPublicKey(r,this.signatures,!0)),i}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},"9bd8":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function t(t,n={}){const i=await e.post("bitswap/unwant",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:"string"===typeof t?t:new r(t).toString(),...n}),headers:n.headers});return i.json()}return t})},"9bfb":function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,docid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,json:512,messagepack:513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056});e.exports={baseTable:r}},"9c3b":function(e,t,n){"use strict";var r=n("cfce").defined,i=n("2612");function s(e,t,n,s,f){const a=Object.keys(s),o=n.length,c={};for(let r=0;r-1){if(k)throw new Error("only one of the properties defined in oneof "+e+" can be set");k=!0}}for(g=0;g{const t=new Uint8Array(4);for(let n=0;n<4;n++)t[n]=255&e,e>>=8;return t};e.exports={fromNumberTo32BitBuf:r}},"9c68":function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("e4e8"),f=n("15e4");e.exports=i(e=>async function*(t,n={}){for await(const{path:i,recursive:a,metadata:o}of s(t)){const t=await e.post("pin/add",{timeout:n.timeout,signal:n.signal,searchParams:f({...n,arg:i,recursive:a,metadata:o?JSON.stringify(o):void 0,stream:!0}),headers:n.headers});for await(const e of t.ndjson())if(e.Pins)for(const t of e.Pins)yield new r(t);else yield new r(e)}})},"9d8a2":function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},"9dce":function(e,t,n){const r=n("e335");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},"9e5c":function(e,t,n){const r=n("2ef0"),i=n("4e23"),s=n("4f8d"),f=n("bfa7"),{KEY_ROLE:a,isMultipleKeysFormat:o,isRoleBasedKeysFormat:c}=n("5fac"),{decryptKey:u}=n("5fac"),l=n("819c"),d=n("d8a4"),h=n("1b9c"),p=n("7beb");class b{static generate(e){const t=i.create(e||s.randomHex(32));return b.createWithSingleKey(t.address,t.privateKey)}static generateSingleKey(e){return i.create(e||s.randomHex(32)).privateKey}static generateMultipleKeys(e,t){if(void 0===e||!r.isNumber(e)||r.isString(e))throw new Error("To generate random multiple private keys, the number of keys should be defined.");const n=[];for(let r=0;ra.roleLast)throw new Error(`Unsupported role. The length of array should be less than ${a.roleLast}.`);const n=[[],[],[]];for(let r=0;r{async function t(t,n,r={}){const s=await e.post("files/chmod",{timeout:r.timeout,signal:r.signal,searchParams:i({arg:t,mode:n,...r}),headers:r.headers});await s.text()}return t})},a015:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},a0a5:function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},a0b3:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},a127:function(e,t,n){"use strict";function r(e){const[t,n]=e[Symbol.asyncIterator]?[e[Symbol.asyncIterator](),Symbol.asyncIterator]:[e[Symbol.iterator](),Symbol.iterator],r=[];return{peek:()=>t.next(),push:e=>{r.push(e)},next:()=>r.length?{done:!1,value:r.shift()}:t.next(),[n](){return this}}}e.exports=r},a178:function(e){e.exports=JSON.parse('{"name":"caver-js","version":"1.8.1","description":"caver-js is a JavaScript API library that allows developers to interact with a Klaytn node","main":"index.js","types":"types/index.d.ts","scripts":{"dtslint":"dtslint types --localTs ./node_modules/typescript/lib","test":"npm run build && npm run dtslint && npm run unitTest","unitTest":" npm run txUnitTest && npm run utilUnitTest && npm run netUnitTest && npm run accountUnitTest && npm run serUnitTest && npm run walletUnitTest && npm run etcUnitTest && npm run validatorUnitTest","fullTest":" npm run unitTest && npm run rpcTest && npm run txTest && npm run etcTest && npm run accountKeyTest && npm run kctTest && npm run intTest","build":"./node_modules/.bin/webpack --mode production","lint":"./node_modules/.bin/eslint \'./**/*.js\'","lintFix":"./node_modules/.bin/eslint \'./**/*.js\' --fix","serUnitTest":"./node_modules/mocha/bin/mocha test/transactionType/serializationTest.js && ./node_modules/mocha/bin/mocha test/compressionPublicKey.js && ./node_modules/mocha/bin/mocha test/encodeContractDeploy.js && ./node_modules/mocha/bin/mocha test/parseAccountKey.js && ./node_modules/mocha/bin/mocha test/decodeTransaction.js && ./node_modules/mocha/bin/mocha ./test/abi.encodeParameter.js && ./node_modules/mocha/bin/mocha ./test/abi.decodeParameter.js && ./node_modules/mocha/bin/mocha ./test/abi.decodeLog.js","accountUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.account.js && ./node_modules/mocha/bin/mocha test/packages/caver.account.accountKey.js","walletUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.wallet.js && ./node_modules/mocha/bin/mocha test/packages/caver.wallet.keyring.js && ./node_modules/mocha/bin/mocha test/accountLib.js && ./node_modules/mocha/bin/mocha test/accounts.privateKeyToPublicKey.js && ./node_modules/mocha/bin/mocha test/accounts.recover.js && ./node_modules/mocha/bin/mocha test/packages/caver.klay.accounts.js && ./node_modules/mocha/bin/mocha test/isValidPrivateKey.js && ./node_modules/mocha/bin/mocha test/privateKeyToAccount.js","utilUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.utils.js","netUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.klay.net.js","validatorUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.validator.js","txUnitTest":"./node_modules/mocha/bin/mocha test/packages/caver.transaction/*.js && ./node_modules/mocha/bin/mocha test/createTest.js","etcUnitTest":"./node_modules/mocha/bin/mocha test/decodeFunctionCall.js && ./node_modules/mocha/bin/mocha test/contractError.js && ./node_modules/mocha/bin/mocha test/contractOverloading.js && ./node_modules/mocha/bin/mocha ./test/contract.setWallet.js && ./node_modules/mocha/bin/mocha ./test/setRequestManager.js && ./node_modules/mocha/bin/mocha test/reconnectTest.js && ./node_modules/mocha/bin/mocha test/hashMessage.js && ./node_modules/mocha/bin/mocha test/iban.* && ./node_modules/mocha/bin/mocha test/randomHex.js && ./node_modules/mocha/bin/mocha test/sha3.js && ./node_modules/mocha/bin/mocha test/toChecksumAddress.js && ./node_modules/mocha/bin/mocha test/default*&& ./node_modules/mocha/bin/mocha test/getNodeInfo.js && ./node_modules/mocha/bin/mocha test/getNetworkType.js && ./node_modules/mocha/bin/mocha test/isContractDeployment.js && ./node_modules/mocha/bin/mocha test/multiProviderTest.js && ./node_modules/mocha/bin/mocha test/unitMap.js && ./node_modules/mocha/bin/mocha test/invalidResponse.js && ./node_modules/mocha/bin/mocha test/createTest.js && ./node_modules/mocha/bin/mocha test/setProvider.js && ./node_modules/mocha/bin/mocha test/contractOverloading.js && ./node_modules/mocha/bin/mocha test/supportsSubscriptions.js && ./node_modules/mocha/bin/mocha test/packages/caver.abi.js","rpcTest":"./node_modules/mocha/bin/mocha test/packages/caver.rpc.js","txTest":"./node_modules/mocha/bin/mocha test/methodErrorHandling.js && ./node_modules/mocha/bin/mocha test/sendSignedTransaction.js && ./node_modules/mocha/bin/mocha test/estimateComputationCost.js && ./node_modules/mocha/bin/mocha test/getTransactionReceipt.js && ./node_modules/mocha/bin/mocha test/setNonceWithPendingTag.js && ./node_modules/mocha/bin/mocha test/getTransaction.js && ./node_modules/mocha/bin/mocha test/setContractOptions.js && ./node_modules/mocha/bin/mocha test/encodeContractDeploy.js && ./node_modules/mocha/bin/mocha test/accounts.signTransaction.js && ./node_modules/mocha/bin/mocha test/sendTransactionCallback.js && ./node_modules/mocha/bin/mocha test/signWithMultiSig.js && ./node_modules/mocha/bin/mocha test/transactionType/legacyTransaction.js && ./node_modules/mocha/bin/mocha test/transactionType/valueTransfer* && ./node_modules/mocha/bin/mocha test/transactionType/accountUpdate.js && ./node_modules/mocha/bin/mocha test/transactionType/contract* && ./node_modules/mocha/bin/mocha test/transactionType/cancelTransaction.js && ./node_modules/mocha/bin/mocha test/transactionType/feeDelegated*","etcTest":"./node_modules/mocha/bin/mocha ./test/packages/caver.contract.js && ./node_modules/mocha/bin/mocha ./test/tupleTest.js && ./node_modules/mocha/bin/mocha test/confirmationListener.js && ./node_modules/mocha/bin/mocha test/eventEmitter.js && ./node_modules/mocha/bin/mocha test/personal.js && ./node_modules/mocha/bin/mocha test/subscription.js && ./node_modules/mocha/bin/mocha test/contract.once.js && ./node_modules/mocha/bin/mocha test/ipfsTest.js","accountKeyTest":"./node_modules/mocha/bin/mocha test/scenarioTest/accountKeyPublic.js && ./node_modules/mocha/bin/mocha test/scenarioTest/accountKeyMultiSig.js && ./node_modules/mocha/bin/mocha test/scenarioTest/accountKeyRoleBased.js","kctTest":"./node_modules/mocha/bin/mocha test/packages/caver.klay.KIP7.js && ./node_modules/mocha/bin/mocha test/packages/caver.klay.KIP17.js && ./node_modules/mocha/bin/mocha test/packages/caver.kct.kip37.js && ./node_modules/mocha/bin/mocha test/createTest.js","intTest":"npm run intTxTest && npm run intSIGVALITest && npm run intAPITest && npm run intSOLTest","intTxTest":"npm run intLEGACYTest && npm run intVTTest && npm run intVTMTest && npm run intACCUPTest && npm run intDEPLTest && npm run intEXETest && npm run intCANCELTest && npm run intFDTest && npm run intFDRTest","intLEGACYTest":"./node_modules/mocha/bin/mocha --grep INT-LEGACY/ test/intTest.js","intVTTest":"./node_modules/mocha/bin/mocha --grep INT-VT/ test/intTest.js","intVTMTest":"./node_modules/mocha/bin/mocha --grep INT-VTM/ test/intTest.js","intACCUPTest":"./node_modules/mocha/bin/mocha --grep INT-ACCUP/ test/intTest.js","intDEPLTest":"./node_modules/mocha/bin/mocha --grep INT-DEPL/ test/intTest.js","intEXETest":"./node_modules/mocha/bin/mocha --grep INT-EXE/ test/intTest.js","intCANCELTest":"./node_modules/mocha/bin/mocha --grep INT-CANCEL/ test/intTest.js","intFDTest":"./node_modules/mocha/bin/mocha --grep INT-FD/ test/intTest.js","intFDRTest":"./node_modules/mocha/bin/mocha --grep INT-FDR/ test/intTest.js","intSIGVALITest":"./node_modules/mocha/bin/mocha --grep INT-SIGVALI/ test/intTest.js","intAPITest":"./node_modules/mocha/bin/mocha --grep INT-API/ test/intTest.js","intSOLTest":"./node_modules/mocha/bin/mocha --grep INT-SOL/00 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/01 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/02 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/03 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/04 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/05 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/06 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/07 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/08 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/09 test/intTest.js && ./node_modules/mocha/bin/mocha --grep INT-SOL/1 test/intTest.js","cover":"npm run build && nyc --silent ./node_modules/mocha/bin/mocha test/packages/caver.utils.js && nyc --silent --no-clean ./node_modules/mocha/bin/mocha test/packages/caver.klay.net.js && npm run cover:serialization && npm run cover:wallet && npm run cover:report","cover:serialization":"nyc --silent --no-clean npm run serTest","cover:wallet":"nyc --silent --no-clean npm run walletTest","cover:report":"nyc report --reporter=html --reporter=text","generateDocs":"jsdoc -c jsdoc.json && node ./turndown.js"},"keywords":["caver","caverjs","caver-js","caver.js","klaytn","klaytn sdk","klaytn api"],"repository":{"type":"git","url":"https://github.com/klaytn/caver-js.git"},"bugs":{"url":"https://github.com/klaytn/caver-js/issues"},"homepage":"https://github.com/klaytn/caver-js","author":"Klaytn Team","license":"LGPL-3.0","dependencies":{"@babel/runtime":"7.3.1","@ethersproject/abi":"5.0.7","any-promise":"1.3.0","bignumber.js":"8.0.2","bn.js":"4.11.6","chai":"4.1.2","constants-browserify":"^1.0.0","crypto-browserify":"^3.12.0","docdash":"^1.2.0","dotenv":"8.2.0","elliptic":"6.5.4","eth-lib":"0.2.8","ethers":"5.4.1","ethjs-unit":"0.1.6","eventemitter3":"4.0.0","http":"0.0.1-security","https":"^1.0.0","ipfs-http-client":"^49.0.4","jsdoc":"^3.6.7","lodash":"4.17.21","mocha":"8.3.2","multihashes":"4.0.2","node-fetch":"2.6.7","number-to-bn":"1.7.0","oboe":"2.1.3","os":"^0.1.2","request":"2.88.2","scrypt-js":"3.0.1","semver":"6.2.0","stream-browserify":"^3.0.0","stream-http":"^3.2.0","utf8":"2.1.1","uuid":"8.3.2","webpack":"^5.65.0","websocket":"1.0.31","xhr2-cookies":"1.1.0"},"devDependencies":{"@babel/core":"^7.11.0","@babel/eslint-parser":"^7.16.5","@babel/plugin-external-helpers":"7.0.0","@babel/plugin-transform-runtime":"7.1.0","@babel/preset-env":"7.3.1","@types/bn.js":"^5.1.0","@types/lodash":"^4.14.176","@types/websocket":"^1.0.4","babel-plugin-external-helpers":"6.22.0","babelrc-rollup":"3.0.0","browserify":"16.2.2","chai-as-promised":"7.1.1","del":"3.0.0","dtslint":"^3.4.2","eslint":"^8.2.0","eslint-config-airbnb":"^19.0.4","eslint-config-prettier":"6.4.0","eslint-plugin-import":"^2.25.2","eslint-plugin-jsx-a11y":"^6.5.1","eslint-plugin-prettier":"3.1.1","eslint-plugin-react":"^7.28.0","exorcist":"2.0.0","jsdoc-typeof-plugin":"^1.0.0","jshint":"^2.13.4","nock":"10.0.6","nyc":"^15.1.0","path":"0.12.7","prettier":"1.18.2","sinon":"9.0.0","sinon-chai":"3.5.0","turndown":"^7.1.1","typescript":"^4.4.4","vinyl-source-stream":"2.0.0","webpack-cli":"^4.9.1"}}')},a18f:function(e,t,n){"use strict";var r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof i)return i;throw new Error("unable to locate global object")},i=r();e.exports=t=i.fetch,i.fetch&&(t.default=i.fetch.bind(i)),t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response},a1a8:function(e,t,n){"use strict";const r=n("1175"),i=n("956c"),s=n("8faf"),f=n("40ff"),a=n("2612"),o=n("16e2"),c=n("677d"),u=n("144e");function l(e,t){return t instanceof Uint8Array?l.toString(e,t):l.toBytes(e,t)}function d(e){if(!r.isIP(e))throw new Error("invalid ip address");return r.toBytes(e)}function h(e){const t=r.toString(e);if(!t||!r.isIP(t))throw new Error("invalid ip address");return t}function p(e){const t=new ArrayBuffer(2),n=new DataView(t);return n.setUint16(0,e),new Uint8Array(t)}function b(e){const t=new DataView(e.buffer);return t.getUint16(0)}function m(e){const t=c(e),n=Uint8Array.from(a.encode(t.length));return u([n,t],n.length+t.length)}function g(e){const t=a.decode(e);if(e=e.slice(a.decode.bytes),e.length!==t)throw new Error("inconsistent lengths");return o(e)}function k(e){const t=new s(e).multihash,n=Uint8Array.from(a.encode(t.length));return u([n,t],n.length+t.length)}function y(e){const t=a.decode(e),n=e.slice(a.decode.bytes);if(n.length!==t)throw new Error("inconsistent lengths");return o(n,"base58btc")}function w(e){const t=e.split(":");if(2!==t.length)throw new Error("failed to parse onion addr: "+t+" does not contain a port number");if(16!==t[0].length)throw new Error("failed to parse onion addr: "+t[0]+" not a Tor onion address.");const n=f.decode("b"+t[0]),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");const i=p(r);return u([n,i],n.length+i.length)}function v(e){const t=e.split(":");if(2!==t.length)throw new Error("failed to parse onion addr: "+t+" does not contain a port number");if(56!==t[0].length)throw new Error("failed to parse onion addr: "+t[0]+" not a Tor onion3 address.");const n=f.decode("b"+t[0]),r=parseInt(t[1],10);if(r<1||r>65536)throw new Error("Port number is not in range(1, 65536)");const i=p(r);return u([n,i],n.length+i.length)}function E(e){const t=e.slice(0,e.length-2),n=e.slice(e.length-2),r=o(t,"base32"),i=b(n);return r+":"+i}e.exports=l,l.toString=function(e,t){switch(e=i(e),e.code){case 4:case 41:return h(t);case 6:case 273:case 33:case 132:return b(t);case 53:case 54:case 55:case 56:case 400:case 777:return g(t);case 421:return y(t);case 444:return E(t);case 445:return E(t);default:return o(t,"base16")}},l.toBytes=function(e,t){switch(e=i(e),e.code){case 4:return d(t);case 41:return d(t);case 6:case 273:case 33:case 132:return p(parseInt(t,10));case 53:case 54:case 55:case 56:case 400:case 777:return m(t);case 421:return k(t);case 444:return w(t);case 445:return v(t);default:return c(t,"base16")}}},a262:function(e,t,n){"use strict";const{encodeText:r}=n("fe32");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},a282:function(e,t,n){"use strict";const{baseTable:r}=n("4958"),i=n("e997").varintEncode,s={};for(const f in r){const e=r[f];s[f]=i(e)}e.exports=Object.freeze(s)},a2b4:function(e,t,n){"use strict";const r=n("9546");function i(){return 8}function s(e,t,n,r){for(const i of e)t[r]=i,r++;s.bytes=8}function f(e,t,n){const r=e.slice(n,n+8);return f.bytes=8,r}e.exports=r(1,s,f,i)},a2d3:function(e,t,n){"use strict";const r=n("0abd"),i=n("15e4");class s{constructor(e){this.client=new r(e)}static async add(e,t,n){const{endpoint:r,key:f,headers:a,timeout:o,signal:c}=n;await e.post("pin/remote/service/add",{timeout:o,signal:c,searchParams:i({arg:[t,s.encodeEndpoint(r),f]}),headers:a})}static encodeEndpoint(e){const t=String(e);if("undefined"===t)throw Error("endpoint is required");return"/"===t[t.length-1]?t.slice(0,-1):t}static async rm(e,t,{timeout:n,signal:r,headers:s}={}){await e.post("pin/remote/service/rm",{timeout:n,signal:r,headers:s,searchParams:i({arg:t})})}static async ls(e,{stat:t,timeout:n,signal:r,headers:f}={}){const a=await e.post("pin/remote/service/ls",{searchParams:!0===t?i({stat:t}):void 0,timeout:n,signal:r,headers:f}),{RemoteServices:o}=await a.json();return o.map(s.decodeRemoteService)}static decodeRemoteService(e){return{service:e.Service,endpoint:new URL(e.ApiEndpoint),...e.Stat&&{stat:s.decodeStat(e.Stat)}}}static decodeStat(e){switch(e.Status){case"valid":{const{Pinning:t,Pinned:n,Queued:r,Failed:i}=e.PinCount;return{status:"valid",pinCount:{queued:r,pinning:t,pinned:n,failed:i}}}case"invalid":return{status:"invalid"};default:return{status:e.Status}}}add(e,t){return s.add(this.client,e,t)}rm(e,t){return s.rm(this.client,e,t)}ls(e){return s.ls(this.client,e)}}e.exports=s},a2ff:function(e,t,n){const r=n("2ef0"),i=n("9e5c"),s=n("819c"),f=n("d8a4"),a=n("1b9c"),o=n("4f8d");class c{constructor(e){e=e||[],this._addressKeyringMap=new Map;for(const t of e)this.add(t);this.keyring=i}get length(){return this._addressKeyringMap.size}generate(e,t){const n=[];for(let r=0;rasync(t={})=>{const n=await e.post("repo/stat",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),i=await n.json();return{numObjects:new r(i.NumObjects),repoSize:new r(i.RepoSize),repoPath:i.RepoPath,version:i.Version,storageMax:new r(i.StorageMax)}})},a41e:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async function*(t,n={}){const r=await e.post("name/resolve",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,stream:!0,...n}),headers:n.headers});for await(const e of r.ndjson())yield e.Path})},a43c:function(e,t,n){"use strict";const r=n("3394"),{toString:i}=n("ed8c"),{fromString:s}=n("959e");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},a43c4:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;nu&&(q("Max buffer length exceeded: textNode"),e=Math.max(e,R.length)),D.length>u&&(q("Max buffer length exceeded: numberNode"),e=Math.max(e,D.length)),L=u-e+V}function q(e){R!==c&&(s(R),f(),R=c),t=a(e+"\nLn: "+z+"\nCol: "+W+"\nChr: "+n),o(ge(c,c,t))}function Y(){if(j==h)return s({}),f(),void(U=!0);j===p&&0===G||q("Unexpected end"),R!==c&&(s(R),f(),R=c),U=!0}function Z(e){return"\r"==e||"\n"==e||" "==e||"\t"==e}function X(e){if(!t){if(U)return q("Cannot write after close");var a=0;n=e[0];while(n){if(r=n,n=e[a++],!n)break;switch(V++,"\n"==n?(z++,W=0):W++,j){case h:if("{"===n)j=b;else if("["===n)j=g;else if(!Z(n))return q("Non-whitespace before {[.");continue;case w:case b:if(Z(n))continue;if(j===w)K.push(v);else{if("}"===n){s({}),f(),j=K.pop()||p;continue}K.push(m)}if('"'!==n)return q('Malformed object key should start with " ');j=y;continue;case v:case m:if(Z(n))continue;if(":"===n)j===m?(K.push(m),R!==c&&(s({}),i(R),R=c),G++):R!==c&&(i(R),R=c),j=p;else if("}"===n)R!==c&&(s(R),f(),R=c),f(),G--,j=K.pop()||p;else{if(","!==n)return q("Bad object");j===m&&K.push(m),R!==c&&(s(R),f(),R=c),j=w}continue;case g:case p:if(Z(n))continue;if(j===g){if(s([]),G++,j=p,"]"===n){f(),G--,j=K.pop()||p;continue}K.push(k)}if('"'===n)j=y;else if("{"===n)j=b;else if("["===n)j=g;else if("t"===n)j=E;else if("f"===n)j=_;else if("n"===n)j=S;else if("-"===n)D+=n;else if("0"===n)D+=n,j=O;else{if(-1==="123456789".indexOf(n))return q("Bad value");D+=n,j=O}continue;case k:if(","===n)K.push(k),R!==c&&(s(R),f(),R=c),j=p;else{if("]"!==n){if(Z(n))continue;return q("Bad array")}R!==c&&(s(R),f(),R=c),f(),G--,j=K.pop()||p}continue;case y:R===c&&(R="");var o=a-1;e:while(1){while(H>0)if(B+=n,n=e.charAt(a++),4===H?(R+=String.fromCharCode(parseInt(B,16)),H=0,o=a-1):H++,!n)break e;if('"'===n&&!M){j=K.pop()||p,R+=e.substring(o,a-1);break}if("\\"===n&&!M&&(M=!0,R+=e.substring(o,a-1),n=e.charAt(a++),!n))break;if(M){if(M=!1,"n"===n?R+="\n":"r"===n?R+="\r":"t"===n?R+="\t":"f"===n?R+="\f":"b"===n?R+="\b":"u"===n?(H=1,B=""):R+=n,n=e.charAt(a++),o=a-1,n)continue;break}l.lastIndex=a;var u=l.exec(e);if(!u){a=e.length+1,R+=e.substring(o,a-1);break}if(a=u.index+1,n=e.charAt(u.index),!n){R+=e.substring(o,a-1);break}}continue;case E:if(!n)continue;if("r"!==n)return q("Invalid true started with t"+n);j=T;continue;case T:if(!n)continue;if("u"!==n)return q("Invalid true started with tr"+n);j=x;continue;case x:if(!n)continue;if("e"!==n)return q("Invalid true started with tru"+n);s(!0),f(),j=K.pop()||p;continue;case _:if(!n)continue;if("a"!==n)return q("Invalid false started with f"+n);j=A;continue;case A:if(!n)continue;if("l"!==n)return q("Invalid false started with fa"+n);j=P;continue;case P:if(!n)continue;if("s"!==n)return q("Invalid false started with fal"+n);j=C;continue;case C:if(!n)continue;if("e"!==n)return q("Invalid false started with fals"+n);s(!1),f(),j=K.pop()||p;continue;case S:if(!n)continue;if("u"!==n)return q("Invalid null started with n"+n);j=N;continue;case N:if(!n)continue;if("l"!==n)return q("Invalid null started with nu"+n);j=I;continue;case I:if(!n)continue;if("l"!==n)return q("Invalid null started with nul"+n);s(null),f(),j=K.pop()||p;continue;case F:if("."!==n)return q("Leading zero not followed by .");D+=n,j=O;continue;case O:if(-1!=="0123456789".indexOf(n))D+=n;else if("."===n){if(-1!==D.indexOf("."))return q("Invalid number has two dots");D+=n}else if("e"===n||"E"===n){if(-1!==D.indexOf("e")||-1!==D.indexOf("E"))return q("Invalid number has two exponential");D+=n}else if("+"===n||"-"===n){if("e"!==r&&"E"!==r)return q("Invalid symbol in number");D+=n}else D&&(s(parseFloat(D)),f(),D=""),a--,j=K.pop()||p;continue;default:return q("Unknown state: "+j)}}V>=L&&$()}}e(le).on(X),e(de).on(Y)}function B(e,t){"use strict";var n,r={};function i(e){return function(t){n=e(n,t)}}for(var s in t)e(s).on(i(t[s]),r);e(se).on((function(e){var t,r=C(n),i=Y(r),s=S(n);s&&(t=Z(C(s)),t[i]=e)})),e(fe).on((function(){var e,t=C(n),r=Y(t),i=S(n);i&&(e=Z(C(i)),delete e[r])})),e(he).on((function(){for(var n in t)e(n).un(r)}))}function H(e){var t={};return e&&e.split("\r\n").forEach((function(e){var n=e.indexOf(": ");t[e.substring(0,n)]=e.substring(n+2)})),t}function G(e,t){function n(e){return{"http:":80,"https:":443}[e]}function r(t){return t.port||n(t.protocol||e.protocol)}return!!(t.protocol&&t.protocol!=e.protocol||t.host&&t.host!=e.host||t.host&&r(t)!=r(e))}function V(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/,n=t.exec(e)||[];return{protocol:n[1]||"",host:n[2]||"",port:n[3]||""}}function W(){return new XMLHttpRequest}function z(e,t,r,i,s,f,a){"use strict";var o=e(le).emit,l=e(ae).emit,d=0,h=!0;function p(){var e=t.responseText,n=e.substr(d);n&&o(n),d=E(e)}e(he).on((function(){t.onreadystatechange=null,t.abort()})),"onprogress"in t&&(t.onprogress=p),t.onreadystatechange=function(){function n(){try{h&&e(ue).emit(t.status,H(t.getAllResponseHeaders())),h=!1}catch(n){}}switch(t.readyState){case 2:case 3:return n();case 4:n();var r=2==String(t.status)[0];r?(p(),e(de).emit()):l(ge(t.status,t.responseText))}};try{for(var b in t.open(r,i,!0),f)t.setRequestHeader(b,f[b]);G(n.location,V(i))||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=a,t.send(s)}catch(m){n.setTimeout(u(l,ge(c,c,m)),0)}}var $=function(){var e=function(e){return e.exec.bind(e)},t=b((function(t){return t.unshift(/^/),e(RegExp(t.map(d("source")).join("")))})),n=/(\$?)/,r=/([\w-_]+|\*)/,i=/()/,s=/\["([^"]+)"\]/,f=/\[(\d+|\*)\]/,a=/{([\w ]*?)}/,o=/(?:{([\w ]*?)})?/,c=t(n,r,o),u=t(n,s,o),l=t(n,f,o),p=t(n,i,a),m=t(/\.\./),g=t(/\./),k=t(n,/!/),y=t(/$/);return function(e){return e(h(c,u,l,p),m,g,k,y)}}();function q(e,t){return{key:e,node:t}}var Y=d("key"),Z=d("node"),X={};function J(e){var t=e(re).emit,n=e(ie).emit,r=e(ce).emit,i=e(oe).emit;function s(e,t){var n=Z(C(e));return v(f,n)?c(e,E(n),t):e}function a(e,t){if(!e)return r(t),c(e,X,t);var n=s(e,t),i=S(n),f=Y(C(n));return o(i,f,t),A(q(f,t),i)}function o(e,t,n){Z(C(e))[t]=n}function c(e,n,r){e&&o(e,n,r);var i=A(q(n,r),e);return t(i),i}function u(e){return n(e),S(e)||i(Z(C(e)))}var l={};return l[be]=a,l[me]=u,l[pe]=c,l}var Q=$((function(e,t,n,r,i){var s=1,f=2,o=3,c=l(Y,C),d=l(Z,C);function p(e,t){var n=t[f],r=n&&"*"!=n?function(e){return c(e)==n}:y;return g(r,e)}function b(e,t){var n=t[o];if(!n)return e;var r=u(_,N(n.split(/\W+/))),i=l(r,d);return g(i,e)}function m(e,t){var n=!!t[s];return n?g(e,C):e}function k(e){if(e==y)return y;function t(e){return c(e)!=X}return g(t,l(e,S))}function w(e){if(e==y)return y;var t=v(),n=e,r=k((function(e){return i(e)})),i=h(t,n,r);return i}function v(){return function(e){return c(e)==X}}function T(e){return function(t){var n=e(t);return!0===n?C(t):n}}function x(e,t,n){return L((function(e,t){return t(e,n)}),t,e)}function A(e,t,n,r,i){var s=e(n);if(s){var f=x(t,r,s),a=n.substr(E(s[0]));return i(a,f)}}function P(e,t){return u(A,e,t)}var F=h(P(e,I(m,b,p,k)),P(t,I(w)),P(n,I()),P(r,I(m,v)),P(i,I(T)),(function(e){throw a('"'+e+'" could not be tokenised')}));function O(e,t){return t}function R(e,t){var n=e?R:O;return F(e,t,n)}return function(e){try{return R(e,y)}catch(t){throw a('Could not compile "'+e+'" because '+t.message)}}}));function ee(e,t,n){var r,i;function s(e){return function(t){return t.id==e}}return{on:function(n,s){var f={listener:n,id:s||n};return t&&t.emit(e,n,f.id),r=A(f,r),i=A(n,i),this},emit:function(){M(i,arguments)},un:function(t){var f;r=R(r,s(t),(function(e){f=e})),f&&(i=R(i,(function(e){return e==f.listener})),n&&n.emit(e,f.listener,f.id))},listeners:function(){return i},hasListener:function(e){var t=e?s(e):y;return x(j(t,r))}}}function te(){var e={},t=r("newListener"),n=r("removeListener");function r(r){return e[r]=ee(r,t,n)}function i(t){return e[t]||r(t)}return["emit","on","un"].forEach((function(e){i[e]=b((function(t,n){p(n,i(t)[e])}))})),i}var ne=1,re=ne++,ie=ne++,se=ne++,fe=ne++,ae="fail",oe=ne++,ce=ne++,ue="start",le="data",de="end",he=ne++,pe=ne++,be=ne++,me=ne++;function ge(e,t,n){try{var r=o.parse(t)}catch(i){}return{statusCode:e,body:t,jsonBody:r,thrown:n}}function ke(e,t){var n={node:e(ie),path:e(re)};function r(e,t,n){var r=U(n);e(t,F(S(O(Y,r))),F(O(Z,r)))}function i(t,n,i){var s=e(t).emit;n.on((function(e){var t=i(e);!1!==t&&r(s,Z(t),e)}),t),e("removeListener").on((function(r){r==t&&(e(r).listeners()||n.un(t))}))}e("newListener").on((function(e){var r=/(node|path):(.*)/.exec(e);if(r){var s=n[r[1]];s.hasListener(e)||i(e,s,t(r[2]))}}))}function ye(e,t){var n,r=/^(node|path):./,i=e(oe),s=e(fe).emit,f=e(se).emit,a=b((function(t,i){if(n[t])p(i,n[t]);else{var s=e(t),f=i[0];r.test(t)?l(s,f):s.on(f)}return n})),o=function(t,r,s){if("done"==t)i.un(r);else if("node"==t||"path"==t)e.un(t+":"+r,s);else{var f=r;e(t).un(f)}return n};function c(t,r){return e(t).on(d(r),r),n}function l(e,t,r){r=r||t;var i=d(t);return e.on((function(){var t=!1;n.forget=function(){t=!0},p(arguments,i),delete n.forget,t&&e.un(r)}),r),n}function d(e){return function(){try{return e.apply(n,arguments)}catch(t){setTimeout((function(){throw t}))}}}function h(t,n){return e(t+":"+n)}function m(e){return function(){var t=e.apply(this,arguments);x(t)&&(t==Ee.drop?s():f(t))}}function g(e,t,n){var r;r="node"==e?m(n):n,l(h(e,t),r,n)}function y(e,t){for(var n in t)g(e,n,t[n])}function v(e,t,r){return T(t)?g(e,t,r):y(e,t),n}return e(ce).on((function(e){n.root=w(e)})),e(ue).on((function(e,t){n.header=function(e){return e?t[e]:t}})),n={on:a,addListener:a,removeListener:o,emit:e.emit,node:u(v,"node"),path:u(v,"path"),done:u(l,i),start:u(c,ue),fail:e(ae).on,abort:e(he).emit,header:k,root:k,source:t}}function we(e,t,n,r,i){var s=te();return t&&z(s,W(),e,t,n,r,i),K(s),B(s,J(s)),ke(s,Q),ye(s,t)}function ve(e,t,n,r,i,s,f){function a(e,t){return!1===t&&(-1==e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}return i=i?o.parse(o.stringify(i)):{},r?T(r)||(r=o.stringify(r),i["Content-Type"]=i["Content-Type"]||"application/json"):r=null,e(n||"GET",a(t,f),r,i,s||!1)}function Ee(e){var t=I("resume","pause","pipe"),n=u(_,t);return e?n(e)||T(e)?ve(we,e):ve(we,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):we()}Ee.drop=function(){return Ee.drop},r=[],i=function(){return Ee}.apply(t,r),i===c||(e.exports=i)})(function(){try{return window}catch(e){return self}}(),Object,Array,Error,JSON)},a4b7:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("commands",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});return n.json()})},a5b3:function(e,t,n){e.exports={encode:n("01e0"),decode:n("80b3"),encodingLength:n("c08a")}},a5e1:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("2054");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("bootstrap/add",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),{Peers:f}=await r.json();return{Peers:f.map(e=>new s(e))}}return t})},a5f8:function(e){e.exports=JSON.parse('{"name":"ipld-block","version":"0.11.1","description":"JavaScript Implementation of IPLD Block","leadMaintainer":"Volker Mische ","main":"src/index.js","types":"dist/src/index.d.ts","scripts":{"lint":"aegir lint","check":"tsc --noEmit --noErrorTruncation","test":"aegir test","test:node":"aegir test --target node","test:browser":"aegir test --target browser","release":"aegir release --docs","release-minor":"aegir release --type minor --docs","release-major":"aegir release --type major --docs","coverage":"aegir coverage","coverage-publish":"aegir coverage --provider coveralls","docs":"aegir docs","prepare":"aegir build --no-bundle","prepublishOnly":"aegir build"},"pre-push":["lint","test"],"repository":{"type":"git","url":"git+https://github.com/ipld/js-ipld-block.git"},"keywords":["IPLD"],"license":"MIT","bugs":{"url":"https://github.com/ipld/js-ipld-block/issues"},"homepage":"https://github.com/ipld/js-ipld-block#readme","devDependencies":{"aegir":"^31.0.4","uint8arrays":"^2.1.3"},"dependencies":{"cids":"^1.0.0"},"engines":{"node":">=6.0.0","npm":">=3.0.0"},"contributors":["David Dias ","Volker Mische ","Friedel Ziegelmayer ","Irakli Gozalishvili ","achingbrain ","į“ ÉŖį“„į“›į“Ź€ Ź™į“Šį“‡ŹŸį“‹Źœį“ŹŸį“ ","Alan Shaw ","Charlie ","Diogo Silva ","Hugo Dias ","Mikeal Rogers ","Richard Littauer ","Richard Schneider ","Xmader "]}')},a71b:function(e,t,n){const r=n("84e9"),i=n("d335");function s(e){return r.encode([i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.to.toLowerCase(),i.fromNat(e.value||"0x0"),e.data,i.fromNat(e.chainId||"0x1"),"0x","0x"])}e.exports={rlpEncodeForLegacyTransaction:s}},a7c2:function(e,t,n){(function(t){const r=n("2ef0"),i=n("3e8f"),s=n("94e4"),f=n("9716");class a{constructor(e,t,n){void 0!==e&&void 0!==t&&void 0!==n&&this.setIPFSNode(e,t,n)}setIPFSNode(e,t,n){const r=n?"https":"http";this.ipfs=s({host:e,port:t,protocol:r})}async add(e){if(!this.ipfs)throw new Error("Please set IPFS Node through 'caver.ipfs.setIPFSNode'.");if(r.isString(e)){if("undefined"!==typeof window)throw new Error("Cannot use fs module: Please pass the file contents as a parameter of type Buffer or ArrayBuffer.");e=i.readFileSync(e)}if(!r.isBuffer(e)&&!r.isArrayBuffer(e))throw new Error("Invalid data: "+e);const n=await this.ipfs.add(t.from(e));return n.path}async get(e){if(!this.ipfs)throw new Error("Please set IPFS Node through 'caver.ipfs.setIPFSNode'.");const t=await this.ipfs.cat(e);return(await t.next(0)).value}toHex(e){const t=f.fromB58String(e);return"0x"+f.toHexString(t)}fromHex(e){const t=e.substring(2),n=f.fromHexString(t);return f.toB58String(n)}}e.exports=a}).call(this,n("b639").Buffer)},a7d4:function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},a8c1:function(e,t,n){const r=n("2ef0"),i=function(e){const t=this;let n;return this.net.getId().then((function(e){return n=e,t.getBlock(0)})).then((function(t){let i="private";return"0xe33ff05ceec2581ca9496f38a2bf9baad5d4eed629e896ccb33d1dc991bc4b4a"===t.hash&&1001===n&&(i="baobab"),"0xc72e5293c3c3ba38ed8ae910f780e4caaa9fb95e79784f7ab74c3c262ea7137e"===t.hash&&8217===n&&(i="cypress"),r.isFunction(e)&&e(null,i),i})).catch((function(t){if(!r.isFunction(e))throw t;e(t)}))};e.exports=i},a97c:function(e,t,n){"use strict";const r=n("6e0a"),{toString:i}=n("cc3d"),{fromString:s}=n("dd83");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},a989:function(e,t,n){const r=n("5b52");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},aa4d:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await(await e.post("repo/version",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers})).json();return n.Version})},aaa0:function(e,t,n){const r=n("f35a");class i{static getHashForSignature(e){const t=e.getRLPEncodingForSignature();return r.keccak256(t)}static getHashForFeePayerSignature(e){const t=e.getRLPEncodingForFeePayerSignature();return r.keccak256(t)}}e.exports=i},aac5:function(e,t,n){"use strict";const{baseTable:r}=n("9b25"),i=n("488a").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},aafe:function(e,t,n){"use strict";const r=n("9546");function i(){return 8}function s(e,t,n,r){n.setFloat64(r,e,!0),s.bytes=8}function f(e,t,n){const r=t.getFloat64(n,!0);return f.bytes=8,r}e.exports=r(1,s,f,i)},abb1:function(e,t,n){"use strict";const{Blob:r}=globalThis;function i(e){return ArrayBuffer.isView(e)||e instanceof ArrayBuffer}function s(e){return"undefined"!==typeof r&&e instanceof r}function f(e){return"object"===typeof e&&(e.path||e.content)}const a=e=>e&&"function"===typeof e.getReader;function o(e){if(null!=e){if(e instanceof Date){const t=e.getTime(),n=Math.floor(t/1e3);return{secs:n,nsecs:1e3*(t-1e3*n)}}return Object.prototype.hasOwnProperty.call(e,"secs")?{secs:e.secs,nsecs:e.nsecs}:Object.prototype.hasOwnProperty.call(e,"Seconds")?{secs:e.Seconds,nsecs:e.FractionalNanoseconds}:Array.isArray(e)?{secs:e[0],nsecs:e[1]}:void 0}}function c(e){if(null!=e)return"number"===typeof e?e:(e=e.toString(),"0"===e.substring(0,1)?parseInt(e,8):parseInt(e,10))}e.exports={isBytes:i,isBlob:s,isFileObject:f,isReadableStream:a,mtimeToObject:o,modeToNumber:c}},abe8:function(e,t,n){"use strict";const r=n("7766"),i=n("2054"),s=n("9878"),f=n("15e4");e.exports=s(e=>{async function t(t={}){const n=await e.post("id",{timeout:t.timeout,signal:t.signal,searchParams:f(t),headers:t.headers}),s=await n.json(),a=r(s);return a.addresses&&(a.addresses=a.addresses.map(e=>i(e))),a}return t})},ac1b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("68b7");const i=e=>{const t=r.decode(e);return[t,r.decode.bytes]},s=(e,t,n=0)=>(r.encode(e,t,n),t),f=e=>r.encodingLength(e);t.decode=i,t.encodeTo=s,t.encodingLength=f},ac7d:function(e,t,n){"use strict";const r=n("9878");e.exports=r(e=>()=>{const t=new URL(e.opts.base||"");return{host:t.hostname,port:t.port,protocol:t.protocol,pathname:t.pathname,"api-path":t.pathname}})},ac7f:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("diag/net",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});return n.json()})},ac98:function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async function*(t,n={}){const i=await e.post("ping",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:""+t,...n}),headers:n.headers,transform:r});yield*i.ndjson()})},ad8c:function(e,t,n){e.exports={encode:n("e995"),decode:n("a7d4"),encodingLength:n("eefb")}},ad9d:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},adf6:function(e,t,n){"use strict";const r=n("0eff"),i=n("94bf"),s=async(e,t={})=>{const n=await i.cid(e.serialize(),t);return new r(t.name||"",e.size,n)};e.exports=s},ae25:function(e,t,n){"use strict";const{names:r}=n("0ea6"),{TextEncoder:i}=n("3d5a"),s=new i;function f(e){const t=new Uint8Array(e.length);for(let n=0;n{let n=!1;return()=>{if(!e.test(i))throw new Error(t);n||(n=!0,console.warn(t))}},c=o(/^0\.10|^0\.11/,"block._cid is deprecated and will be removed in 0.12 release. Please use block.cid instead"),u=o(/^0\.10|^0.11/,"block._data is deprecated and will be removed in 0.12 release. Please use block.data instead");e.exports=a},af2a:function(e,t,n){"use strict";const{TextEncoder:r,TextDecoder:i}=n("3d5a"),s=new i,f=e=>s.decode(e),a=new r,o=e=>a.encode(e);function c(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:f,encodeText:o,concat:c}},af58:function(e,t,n){"use strict";e.exports=e=>({getAll:n("2c76")(e),get:n("bbb1")(e),set:n("3eb9")(e),replace:n("2b68")(e),profiles:n("f382")(e)})},af6c:function(e,t,n){"use strict";const r=n("a5b3"),{toString:i}=n("6d08"),{fromString:s}=n("d118");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},afb2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("37b0");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},b02d:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("87b8"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedChainDataAnchoring))throw new Error(`Cannot decode to FeeDelegatedChainDataAnchoring. The prefix must be ${o.TxTypeFeeDelegatedChainDataAnchoring}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,l,d]=i.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(r),gas:u.trimLeadingZero(s),from:f,input:a,signatures:c,feePayer:l,feePayerSignatures:d}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(r.isString(e)&&(e=l(e)),super(a.TxTypeFeeDelegatedChainDataAnchoring,e,t),e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedChainDataAnchoring+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input,e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeFeeDelegatedChainDataAnchoring,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},b04a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("8c49");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},b073:function(e,t,n){"use strict";const{URLWithLegacySupport:r,format:i,URLSearchParams:s,defaultBase:f}=n("e537"),a=n("b73d");e.exports={URL:r,URLSearchParams:s,format:i,relative:a,defaultBase:f}},b079:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("87b8"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d"),l=n("3867");function d(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedAccountUpdate))throw new Error(`Cannot decode to FeeDelegatedAccountUpdate. The prefix must be ${o.TxTypeFeeDelegatedAccountUpdate}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,l,d]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),from:f,rlpEncodedKey:a,signatures:c,feePayer:l,feePayerSignatures:d}}class h extends f{static create(e,t){return new h(e,t)}static decode(e,t){const n=d(e);return n.account=l.createFromRLPEncoding(n.from,n.rlpEncodedKey),new h(n,t)}constructor(e,t){s.isString(e)&&(e=d(e),e.account=l.createFromRLPEncoding(e.from,e.rlpEncodedKey)),super(a.TxTypeFeeDelegatedAccountUpdate,e,t),this.account=e.account,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get account(){return this._account}set account(e){if(!(e instanceof l))throw new Error("Invalid account. 'account' should be instance of 'Account'.");if(this.from.toLowerCase()!==e.address.toLowerCase())throw new Error(`Transaction from address(${this.from.toLowerCase()}) and account address(${e.address}) do not match.`);this._account=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedAccountUpdate+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey(),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedAccountUpdate,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=h},b0e9:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("c7c9"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("3867"),l=n("4f8d");function d(e){if(e=l.addHexPrefix(e),!e.startsWith(o.TxTypeAccountUpdate))throw new Error(`Cannot decode to AccountUpdate. The prefix must be ${o.TxTypeAccountUpdate}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c]=i.decode(t);return{nonce:l.trimLeadingZero(n),gasPrice:l.trimLeadingZero(r),gas:l.trimLeadingZero(s),from:f,rlpEncodedKey:a,signatures:c}}class h extends f{static create(e,t){return new h(e,t)}static decode(e,t){const n=d(e);return n.account=u.createFromRLPEncoding(n.from,n.rlpEncodedKey),new h(n,t)}constructor(e,t){r.isString(e)&&(e=d(e),e.account=u.createFromRLPEncoding(e.from,e.rlpEncodedKey)),super(a.TxTypeAccountUpdate,e,t),this.account=e.account,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=l.numberToHex(e)}get account(){return this._account}set account(e){if(!(e instanceof u))throw new Error("Invalid account. 'account' should be instance of 'Account'.");if(this.from.toLowerCase()!==e.address.toLowerCase())throw new Error(`Transaction from address(${this.from.toLowerCase()}) and account address(${e.address}) do not match.`);this._account=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode());return o.TxTypeAccountUpdate+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey(),e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeAccountUpdate,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=h},b0ea:function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},b155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("53d8b");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},b280:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9894"),i=n("d3f8"),s=n("11f1"),f=n("c4e5"),a=n("0ca8"),o=n("17fb"),c=n("510bc"),u=n("e4de"),l=n("1b5b"),d=n("88db"),h=n("1fbd"),p=n("9a2e"),b=n("81e9");n("d4dd");var m=n("fb86"),g=n("9a44"),k=n("29f9"),y=n("ac1b"),w=n("dd7b");const v={...r,...i,...s,...f,...a,...o,...c,...u,...l},E={...d,...h},T={raw:p,json:b};t.CID=m.CID,t.hasher=g,t.digest=k,t.varint=y,t.bytes=w,t.bases=v,t.codecs=T,t.hashes=E},b2c9:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("87b8"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedValueTransfer))throw new Error(`Cannot decode to FeeDelegatedValueTransfer. The prefix must be ${o.TxTypeFeeDelegatedValueTransfer}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,l,d,h]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(a),from:c,signatures:l,feePayer:d,feePayerSignatures:h}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){s.isString(e)&&(e=l(e)),super(a.TxTypeFeeDelegatedValueTransfer,e,t),this.to=e.to,this.value=e.value,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedValueTransfer+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedValueTransfer,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},b301:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},b304:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("4f8d"),f=n("e19e"),{ACCOUNT_UPDATE_TYPE_TAG:a,ACCOUNT_KEY_NIL_TAG:o,ACCOUNT_KEY_LEGACY_TAG:c,ACCOUNT_KEY_PUBLIC_TAG:u,ACCOUNT_KEY_FAIL_TAG:l,ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG:d,ACCOUNT_KEY_ROLE_BASED_TAG:h,FEE_DELEGATED_ACCOUNT_UPDATE_TYPE_TAG:p,FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO_TYPE_TAG:b}=f.constants;function m(e){const t=y(e);return r.encode([r.encode([a,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.from.toLowerCase(),t]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function g(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,[[u,l,d]]]=s.rlpDecode(t);return r.encode([r.encode([p,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),c]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}const t=y(e);return r.encode([r.encode([p,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.from.toLowerCase(),t]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function k(e){if(e.senderRawTransaction){const t="0x"+e.senderRawTransaction.slice(4),[n,f,a,o,c,u,[[l,d,h]]]=s.rlpDecode(t);return r.encode([r.encode([b,i.fromNat(n),i.fromNat(f),i.fromNat(a),o.toLowerCase(),c,i.fromNat(u)]),e.feePayer.toLowerCase(),i.fromNat(e.chainId||"0x1"),"0x","0x"])}const t=y(e);return r.encode([r.encode([b,i.fromNat(e.nonce),i.fromNat(e.gasPrice),i.fromNat(e.gas),e.from.toLowerCase(),t,i.fromNat(e.feeRatio)]),i.fromNat(e.chainId||"0x1"),"0x","0x"])}function y(e){if(e.key){if(e.from&&e.from.toLowerCase()!==e.key.address.toLowerCase())throw new Error("The value of the from field of the transaction does not match the address of AccountForUpdate.");e.key.fillUpdateObject(e)}if(e.legacyKey)return c;if(e.failKey)return l;if(e.multisig){const{threshold:t,keys:n}=e.multisig,f=n.map(({weight:e,publicKey:t})=>{if(!e)throw new Error("weight should be specified for multisig account");if(!t)throw new Error("publicKey should be specified for multisig account");const n=s.compressPublicKey(t);return[i.fromNat(s.numberToHex(e)),n]});return d+r.encode([i.fromNat(s.numberToHex(t)),f]).slice(2)}if(e.publicKey){const t=s.compressPublicKey(e.publicKey);return u+r.encode(t).slice(2)}if(e.roleTransactionKey||e.roleAccountUpdateKey||e.roleFeePayerKey){const t={};t.roleTransactionKey=e.roleTransactionKey?y(e.roleTransactionKey):o,t.roleAccountUpdateKey=e.roleAccountUpdateKey?y(e.roleAccountUpdateKey):o,t.roleFeePayerKey=e.roleFeePayerKey?y(e.roleFeePayerKey):o;const n=[t.roleTransactionKey,t.roleAccountUpdateKey,t.roleFeePayerKey];return h+r.encode(n).slice(2)}return o}function w(e){const t=e.accountKey;if(delete e.accountKey,t.startsWith(c))e.legacyKey=!0;else if(t.startsWith(l))e.failKey=!0;else if(t.startsWith(u))e.publicKey=r.decode("0x"+t.slice(u.length));else if(t.startsWith(d)){let[n,i]=r.decode("0x"+t.slice(d.length));i=i.map(e=>({weight:s.hexToNumber(e[0]),publicKey:e[1]})),e.multisig={threshold:s.hexToNumber(n),keys:i}}else if(t.startsWith(h)){const n=r.decode("0x"+t.slice(h.length));n.map(e=>{if(e.startsWith(h))throw new Error("Nested role based key.")}),n.length>0&&!n[0].startsWith(o)&&(e.roleTransactionKey=w({accountKey:n[0]})),n.length>1&&!n[1].startsWith(o)&&(e.roleAccountUpdateKey=w({accountKey:n[1]})),n.length>2&&!n[2].startsWith(o)&&(e.roleFeePayerKey=w({accountKey:n[2]}))}return e}e.exports={rlpEncodeForAccountUpdate:m,rlpEncodeForFeeDelegatedAccountUpdate:g,rlpEncodeForFeeDelegatedAccountUpdateWithRatio:k,parseAccountKey:w}},b3bd:function(e,t,n){const r=n("51da"),i=n("0be9"),s=n("993e"),f=n("f54c");class a{constructor(...e){const t=this;f.packageInit(this,e);const n=this.setRequestManager;this.setRequestManager=function(e){return n(e),t.klay.setRequestManager(e),t.net.setRequestManager(e),t.governance.setRequestManager(e),!0};const a=this.setProvider;this.setProvider=function(){a.apply(t,arguments),t.setRequestManager(t._requestManager)},this.klay=new r(this),this.net=new i(this),this.governance=new s(this)}}e.exports=a},b433:function(e,t,n){"use strict";const r=n("f016"),i=n("5422"),{rfc4648:s}=n("47da"),{decodeText:f,encodeText:a}=n("3e79"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},b457:function(e,t,n){const{TX_TYPE_STRING:r,typeDetectionFromRLPEncoding:i}=n("e638"),s=n("9bc8"),f=n("ee12"),a=n("b2c9"),o=n("912f"),c=n("563b"),u=n("f4f3"),l=n("5b52"),d=n("b0e9"),h=n("b079"),p=n("e335"),b=n("6810"),m=n("bcbb"),g=n("0791"),k=n("ea3d"),y=n("4667"),w=n("2085"),v=n("f349"),E=n("e2aa1"),T=n("f922"),x=n("e224"),_=n("b02d"),A=n("7c5f"),P=n("219a"),C=n("8d72");class S{static decode(e,t){const n=i(e);switch(n){case r.TxTypeLegacyTransaction:return s.decode(e,t);case r.TxTypeValueTransfer:return f.decode(e,t);case r.TxTypeFeeDelegatedValueTransfer:return a.decode(e,t);case r.TxTypeFeeDelegatedValueTransferWithRatio:return o.decode(e,t);case r.TxTypeValueTransferMemo:return c.decode(e,t);case r.TxTypeFeeDelegatedValueTransferMemo:return u.decode(e,t);case r.TxTypeFeeDelegatedValueTransferMemoWithRatio:return l.decode(e,t);case r.TxTypeAccountUpdate:return d.decode(e,t);case r.TxTypeFeeDelegatedAccountUpdate:return h.decode(e,t);case r.TxTypeFeeDelegatedAccountUpdateWithRatio:return p.decode(e,t);case r.TxTypeSmartContractDeploy:return b.decode(e,t);case r.TxTypeFeeDelegatedSmartContractDeploy:return m.decode(e,t);case r.TxTypeFeeDelegatedSmartContractDeployWithRatio:return g.decode(e,t);case r.TxTypeSmartContractExecution:return k.decode(e,t);case r.TxTypeFeeDelegatedSmartContractExecution:return y.decode(e,t);case r.TxTypeFeeDelegatedSmartContractExecutionWithRatio:return w.decode(e,t);case r.TxTypeCancel:return v.decode(e,t);case r.TxTypeFeeDelegatedCancel:return E.decode(e,t);case r.TxTypeFeeDelegatedCancelWithRatio:return T.decode(e,t);case r.TxTypeChainDataAnchoring:return x.decode(e,t);case r.TxTypeFeeDelegatedChainDataAnchoring:return _.decode(e,t);case r.TxTypeFeeDelegatedChainDataAnchoringWithRatio:return A.decode(e,t);case r.TxTypeEthereumAccessList:return P.decode(e,t);case r.TxTypeEthereumDynamicFee:return C.decode(e,t)}}}e.exports=S},b470:function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},b494:function(e,t,n){var r;try{r=n("6787")}catch(a){}finally{if(r||"undefined"===typeof window||(r=window),!r)throw new Error("Could not determine global this")}var i=r.WebSocket||r.MozWebSocket,s=n("d91b");function f(e,t){var n;return n=t?new i(e,t):new i(e),n}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(f,e,{get:function(){return i[e]}})})),e.exports={w3cwebsocket:i?f:null,version:s}},b4b9:function(e){e.exports=JSON.parse('[{"name":"getNodeInfo","call":"klay_clientVersion"},{"name":"getProtocolVersion","call":"klay_protocolVersion","params":0},{"name":"isMining","call":"klay_mining","params":0},{"name":"isSyncing","call":"klay_syncing","params":0,"outputFormatter":"outputSyncingFormatter"},{"name":"getGasPrice","call":"klay_gasPrice","params":0,"outputFormatter":"outputBigNumberFormatter"},{"name":"getAccounts","call":"klay_accounts","params":0,"outputFormatter":"toChecksumAddress"},{"name":"getBlockNumber","call":"klay_blockNumber","params":0,"outputFormatter":"hexToNumber"},{"name":"getBalance","call":"klay_getBalance","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"],"outputFormatter":"outputBigNumberFormatter"},{"name":"getStorageAt","call":"klay_getStorageAt","params":3,"inputFormatter":["inputAddressFormatter","numberToHex","inputDefaultBlockNumberFormatter"]},{"name":"getCode","call":"klay_getCode","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"]},{"name":"getTransaction","call":"klay_getTransactionByHash","outputFormatter":"outputTransactionFormatter","params":1},{"name":"getTransactionReceipt","call":"klay_getTransactionReceipt","params":1,"outputFormatter":"outputTransactionReceiptFormatter"},{"name":"getTransactionCount","call":"klay_getTransactionCount","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"],"outputFormatter":"hexToNumber"},{"name":"sendSignedTransaction","call":"klay_sendRawTransaction","params":1},{"name":"signTransaction","call":"klay_signTransaction","params":1,"inputFormatter":["inputTransactionFormatter"]},{"name":"sendTransaction","call":"klay_sendTransaction","params":1,"inputFormatter":["inputTransactionFormatter"]},{"name":"call","call":"klay_call","params":2,"inputFormatter":["inputCallFormatter","inputDefaultBlockNumberFormatter"]},{"name":"estimateGas","call":"klay_estimateGas","params":1,"inputFormatter":["inputCallFormatter"],"outputFormatter":"hexToNumber"},{"name":"getPastLogs","call":"klay_getLogs","params":1,"inputFormatter":["inputLogFormatter"],"outputFormatter":"outputLogFormatter"},{"name":"sign","call":"klay_sign","params":2,"inputFormatter":["inputSignFormatter","inputAddressFormatter"],"transformPayload":"reversePayload"},{"name":"getBlock","call":"klay_getBlockByNumber","hexCall":"klay_getBlockByHash","params":2,"inputFormatter":["inputBlockNumberFormatter","toBoolean"]},{"name":"getBlockTransactionCount","call":"klay_getBlockTransactionCountByNumber","hexCall":"klay_getBlockTransactionCountByHash","params":1,"inputFormatter":["inputBlockNumberFormatter"],"outputFormatter":"hexToNumber"},{"name":"getTransactionFromBlock","call":"klay_getTransactionByBlockNumberAndIndex","hexCall":"klay_getTransactionByBlockHashAndIndex","params":2,"inputFormatter":["inputBlockNumberFormatter","numberToHex"],"outputFormatter":"outputTransactionFormatter"},{"name":"getId","call":"net_networkID","params":0,"outputFormatter":"hexToNumber"},{"name":"isListening","call":"net_listening","params":0},{"name":"getPeerCount","call":"net_peerCount","params":0,"outputFormatter":"hexToNumber"},{"name":"getChainId","call":"klay_chainID","outputFormatter":"hexToNumber"},{"name":"getAccounts","call":"personal_listAccounts","params":0,"outputFormatter":"toChecksumAddress"},{"name":"newAccount","call":"personal_newAccount","params":1,"outputFormatter":"toChecksumAddress"},{"name":"unlockAccount","call":"personal_unlockAccount","params":3,"inputFormatter":["inputAddressFormatter",null,null]},{"name":"lockAccount","call":"personal_lockAccount","params":1,"inputFormatter":["inputAddressFormatter"]},{"name":"importRawKey","call":"personal_importRawKey","params":2,"inputFormatter":["inputRawKeyFormatter",null]},{"name":"sendTransaction","call":"personal_sendTransaction","params":2,"inputFormatter":["inputTransactionFormatter",null]},{"name":"signTransaction","call":"personal_signTransaction","params":2,"inputFormatter":["inputTransactionFormatter",null]},{"name":"sign","call":"personal_sign","params":3,"inputFormatter":["inputSignFormatter","inputAddressFormatter",null]},{"name":"ecRecover","call":"personal_ecRecover","params":2,"inputFormatter":["inputSignFormatter",null]},{"name":"getBlockWithConsensusInfo","call":"klay_getBlockWithConsensusInfoByNumber","hexCall":"klay_getBlockWithConsensusInfoByHash","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"debugTraceTransaction","call":"debug_traceTransaction","params":1},{"name":"accountCreated","call":"klay_accountCreated","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"]},{"name":"getAccountKey","call":"klay_getAccountKey","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"]},{"name":"isContractAccount","call":"klay_isContractAccount","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"]},{"name":"getCommittee","call":"klay_getCommittee","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"getCommitteeSize","call":"klay_getCommitteeSize","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"getCouncil","call":"klay_getCouncil","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"getCouncilSize","call":"klay_getCouncilSize","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"getCypressCredit","call":"klay_getCypressCredit","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"sha3","call":"klay_sha3","params":1},{"name":"getAccount","call":"klay_getAccount","params":2,"inputFormatter":["inputAddressFormatter","inputDefaultBlockNumberFormatter"]},{"name":"getTransactionBySenderTxHash","call":"klay_getTransactionBySenderTxHash","outputFormatter":"outputTransactionFormatter","params":1},{"name":"getTransactionReceiptBySenderTxHash","call":"klay_getTransactionReceiptBySenderTxHash","params":1,"outputFormatter":"outputTransactionReceiptFormatter"},{"name":"gasPriceAt","call":"klay_gasPriceAt","params":1,"inputFormatter":["inputDefaultBlockNumberFormatter"]},{"name":"isSenderTxHashIndexingEnabled","call":"klay_isSenderTxHashIndexingEnabled","params":0},{"name":"isParallelDBWrite","call":"klay_isParallelDBWrite","params":0},{"name":"rewardbase","call":"klay_rewardbase","params":0},{"name":"writeThroughCaching","call":"klay_writeThroughCaching","params":0},{"name":"getFilterChanges","call":"klay_getFilterChanges","params":1,"inputFormatter":["numberToHex"],"outputFormatter":"outputLogFormatter"},{"name":"getFilterLogs","call":"klay_getFilterLogs","params":1,"inputFormatter":["numberToHex"],"outputFormatter":"outputLogFormatter"},{"name":"newBlockFilter","call":"klay_newBlockFilter","params":0},{"name":"newFilter","call":"klay_newFilter","params":1,"inputFormatter":["inputLogFormatter"]},{"name":"newPendingTransactionFilter","call":"klay_newPendingTransactionFilter","params":0},{"name":"uninstallFilter","call":"klay_uninstallFilter","params":1,"inputFormatter":["numberToHex"]},{"name":"getBlockReceipts","call":"klay_getBlockReceipts","params":1},{"name":"peerCountByType","call":"net_peerCountByType","params":0},{"name":"estimateComputationCost","call":"klay_estimateComputationCost","params":2,"inputFormatter":["inputCallFormatter","inputDefaultBlockNumberFormatter"]},{"name":"replaceRawKey","call":"personal_replaceRawKey","params":3,"inputFormatter":["inputRawKeyFormatter",null,null]},{"name":"sendValueTransfer","call":"personal_sendValueTransfer","params":2,"inputFormatter":["inputPersonalTransactionFormatter",null]},{"name":"sendAccountUpdate","call":"personal_sendAccountUpdate","params":2,"inputFormatter":["inputPersonalTransactionFormatter",null]}]')},b506:function(e,t,n){"use strict";const r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});e.exports={baseTable:r}},b507:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},b5b1:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},b623:function(e,t,n){"use strict";const r=n("0111"),i=n("2947"),s=n("0e80"),f=n("f544"),a=n("fa4e"),o=n("f3bf"),c=n("d46b"),u=42;function l(e){return"string"===typeof e?e=new f(e).bytes:f.isCID(e)&&(e=e.bytes),new r.Tagged(u,o([c("00","base16"),e],1+e.length))}function d(e){let t;try{t=a(e)}catch(r){t=!1}if(t)throw new Error("The object passed has circular references");function n(e){if(!e||e instanceof Uint8Array||"string"===typeof e)return e;if(Array.isArray(e))return e.map(n);if(f.isCID(e))return l(e);const t=Object.keys(e);if(t.length>0){const r={};return t.forEach(t=>{"object"===typeof e[t]?r[t]=n(e[t]):r[t]=e[t]}),r}return e}return n(e)}const h=i.DAG_CBOR,p=i.SHA2_256,b={[u]:e=>(e=e.slice(1),new f(e))},m=65536;let g=m;const k=67108864;let y=k,w=null;function v(e){let t=b;e?("number"===typeof e.size&&(g=e.size),"number"===typeof e.maxSize&&(y=e.maxSize),e.tags&&(t=Object.assign({},b,e&&e.tags))):(g=m,y=k);const n={tags:t,size:g};w=new r.Decoder(n),g=n.size}function E(e){const t=d(e),n=r.encode(t);return n}function T(e){if(e.length>g&&e.length<=y&&v({size:e.length}),e.length>g)throw new Error("Data is too large to deserialize with current decoder");const t=w.decodeAll(e);if(1!==t.length)throw new Error("Extraneous CBOR data found beyond initial top-level object");return t[0]}async function x(e,t){const n={cidVersion:1,hashAlg:p},r=Object.assign(n,t),a=await s(e,r.hashAlg),o=i.getNameFromCode(h),c=new f(r.cidVersion,o,a);return c}v(),e.exports={codec:h,defaultHashAlg:p,configureDecoder:v,serialize:E,deserialize:T,cid:x}},b685:function(e,t,n){const r=n("0791");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},b6aa:function(e,t,n){"use strict";function r(e,t){for(const n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}function i(e,t,n){if(!e||"string"===typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"===typeof t&&(n=t,t=void 0),null!=t&&(n.code=t);try{return r(e,n)}catch(i){n.message=e.message,n.stack=e.stack;const t=function(){};return t.prototype=Object.create(Object.getPrototypeOf(e)),r(new t,n)}}e.exports=i},b71b:function(e,t,n){"use strict";const r=n("220c"),i=n("2612"),{names:s}=n("98b3"),{toString:f}=n("940f"),{fromString:a}=n("1466"),{concat:o}=n("e712"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},b720:function(e,t,n){"use strict";const r=n("7766"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("name/pubsub/state",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers});return r(await n.json())})},b73d:function(e,t,n){"use strict";const{URLWithLegacySupport:r,format:i}=n("e537");e.exports=(e,t={},n={},s)=>{let f,a=t.protocol?t.protocol.replace(":",""):"http";a=(n[a]||s||a)+":";try{f=new r(e)}catch(c){f={}}const o=Object.assign({},t,{protocol:a||f.protocol,host:t.host||f.host});return new r(e,i(o)).toString()}},b762:function(e,t,n){"use strict";const r=n("2612"),i=n("cfce").defined;function s(e){return`${e.substring(0,1).toUpperCase()}${e.substring(1)}`}function f(e,t,n,r){if(Object.prototype.hasOwnProperty.call(e,t))return;const i=s(t);Object.defineProperties(e,{[t]:{enumerable:!0,configurable:!0,set:e=>{n=e},get:()=>void 0===n?r:n},["has"+i]:{configurable:!0,value:()=>void 0!==n},["set"+i]:{configurable:!0,value:e=>{n=e}},["get"+i]:{configurable:!0,value:()=>n},["clear"+i]:{configurable:!0,value:()=>{n=void 0,e[t]=void 0}}})}function a(e,t,n){const a=[],l={},d=[],h=[];for(var p=0;p-1){const t=s(e[l]);delete n["has"+t],delete n["get"+t],delete n["set"+t],delete n["clear"+t],delete n[e[l]]}}let h;if(e.message){const s=r.decode(i,o);o+=r.decode.bytes;const f=e.decode(i,a,o,o+s);t.map?(h=n[u]||{},h[f.key]=f.value):t.repeated?(h=n[u]||[],h.push(f)):h=f}else t.repeated?(h=n[u]||[],h.push(e.decode(i,a,o))):h=e.decode(i,a,o);return f(n,u,h),o+=e.decode.bytes,o}return function t(s,p,m,g){if(null==m&&(m=0),null==g&&(g=s.length),!(g<=s.length&&m<=s.length))throw new Error("Decoded message is not valid");p||(p=new DataView(s.buffer,s.byteOffset,s.byteLength));var k,y=m,w={};while(1){if(g<=m){var v,E,T="",x=0;for(x=0;x-1){_=!0;break}_||(v?k.repeated?E=[]:(E=E&&v[E]?v[E].value:v[Object.keys(v)[0]].value,E=parseInt(E||0,10)):(t=c(k),E=u(k,E)),f(w,T,E,t))}}return t.bytes=m-y,w}var C=r.decode(s,m);m+=r.decode.bytes;var S=C>>3,N=l[S];if(null!=N){var I=n[N];if(k=e.fields[N],k.packed){var F=r.decode(s,m);m+=r.decode.bytes,F+=m;while(m=n.length)throw E("invalid address: "+e);if(f.path){t.push([s,v(n.slice(r).join("/"))]);break}t.push([s,n[r]])}else t.push([s])}return t}function c(e){const t=[];return e.map(e=>{const n=T(e);t.push(n.name),e.length>1&&t.push(e[1])}),v(t.join("/"))}function u(e){return e.map(e=>{Array.isArray(e)||(e=[e]);const t=T(e);return e.length>1?[t.code,r.toBytes(t.code,e[1])]:[t.code]})}function l(e){return e.map(e=>{const t=T(e);return e.length>1?[t.code,r.toString(t.code,e[1])]:[t.code]})}function d(e){return k(f(e.map(e=>{const t=T(e);let n=Uint8Array.from(s.encode(t.code));return e.length>1&&(n=f([n,e[1]])),n})))}function h(e,t){if(e.size>0)return e.size/8;if(0===e.size)return 0;{const e=s.decode(t);return e+s.decode.bytes}}function p(e){const t=[];let n=0;while(ne.length)throw E("Invalid address Uint8Array: "+a(e,"base16"));t.push([r,u])}return t}function b(e){const t=p(e),n=l(t);return c(n)}function m(e){e=v(e);const t=o(e),n=u(t);return d(n)}function g(e){return m(e)}function k(e){const t=y(e);if(t)throw t;return Uint8Array.from(e)}function y(e){try{p(e)}catch(t){return t}}function w(e){return void 0===y(e)}function v(e){return"/"+e.trim().split("/").filter(e=>e).join("/")}function E(e){return new Error("Error parsing address: "+e)}function T(e){const t=i(e[0]);return t}e.exports={stringToStringTuples:o,stringTuplesToString:c,tuplesToStringTuples:l,stringTuplesToTuples:u,bytesToTuples:p,tuplesToBytes:d,bytesToString:b,stringToBytes:m,fromString:g,fromBytes:k,validateBytes:y,isValidBytes:w,cleanPath:v,ParseError:E,protoFromTuple:T,sizeForAddr:h}},ba2c:function(e,t,n){const r=n("2ef0"),i=n("dac9"),s=n("921c"),{validateDeployParameterForKIP7:f,determineSendParams:a,kip7JsonInterface:o,kip7ByteCode:c,formatParamForUint256:u,interfaceIds:l}=n("9018"),{isAddress:d,toBuffer:h,isHexStrict:p,toHex:b}=n("4f8d"),m=n("94e5");class g extends s{static deploy(e,t){f(e);const{name:n,symbol:i,decimals:s,initialSupply:a}=e,o=new g;return r.isString(t)&&(t={from:t,gas:4e6,value:0}),t.gas=void 0!==t.gas?t.gas:4e6,o.deploy({data:c,arguments:[n,i,s,a]}).send(t)}static detectInterface(e){const t=new g(e);return t.detectInterface()}constructor(e,t=o){if(e)if(r.isString(e)){if(!d(e))throw new Error("Invalid token address "+e)}else t=e,e=void 0;super(t,e)}clone(e=this.options.address){const t=new this.constructor(e,this.options.jsonInterface);return t.setWallet(this._wallet),t}async detectInterface(){const e={IKIP7:!1,IKIP7Metadata:!1,IKIP7Mintable:!1,IKIP7Burnable:!1,IKIP7Pausable:!1},t="This contract does not support KIP-13.",n=this._address;try{const r=await m.isImplementedKIP13Interface(n);if(!0!==r)throw new Error(t);return e.IKIP7=await this.supportsInterface(l.kip7.IKIP7),!1===e.IKIP7?e:(await Promise.all(Object.keys(l.kip7).map(async t=>{l.kip7[t]!==l.kip7.IKIP7&&(e[t]=await this.supportsInterface(l.kip7[t]))})),e)}catch(r){throw new Error(t)}}async supportsInterface(e){const t=await this.methods.supportsInterface(e).call();return t}async name(){const e=await this.methods.name().call();return e}async symbol(){const e=await this.methods.symbol().call();return e}async decimals(){const e=await this.methods.decimals().call();return Number(e)}async totalSupply(){const e=await this.methods.totalSupply().call();return new i(e)}async balanceOf(e){const t=await this.methods.balanceOf(e).call();return new i(t)}async allowance(e,t){const n=await this.methods.allowance(e,t).call();return new i(n)}async isMinter(e){const t=await this.methods.isMinter(e).call();return t}async isPauser(e){const t=await this.methods.isPauser(e).call();return t}async paused(){const e=await this.methods.paused().call();return e}async approve(e,t,n={}){const r=this.methods.approve(e,u(t));return n=await a(r,n,this.options),r.send(n)}async transfer(e,t,n={}){const r=this.methods.transfer(e,u(t));return n=await a(r,n,this.options),r.send(n)}async transferFrom(e,t,n,r={}){const i=this.methods.transferFrom(e,t,u(n));return r=await a(i,r,this.options),i.send(r)}async safeTransfer(e,t,n,i={}){if(n&&r.isObject(n)&&(void 0!==n.gas||void 0!==n.from)){if(Object.keys(i).length>0)throw new Error("Invalid parameters");i=n,n=void 0}n&&!r.isBuffer(n)&&(r.isString(n)&&!p(n)&&(n=b(n)),n=h(n));const s=n?this.methods.safeTransfer(e,u(t),n):this.methods.safeTransfer(e,u(t));return i=await a(s,i,this.options),s.send(i)}async safeTransferFrom(e,t,n,i,s={}){if(i&&r.isObject(i)&&(void 0!==i.gas||void 0!==i.from)){if(Object.keys(s).length>0)throw new Error("Invalid parameters");s=i,i=void 0}i&&!r.isBuffer(i)&&(r.isString(i)&&!p(i)&&(i=b(i)),i=h(i));const f=i?this.methods.safeTransferFrom(e,t,u(n),i):this.methods.safeTransferFrom(e,t,u(n));return s=await a(f,s,this.options),f.send(s)}async mint(e,t,n={}){const r=this.methods.mint(e,u(t));return n=await a(r,n,this.options),r.send(n)}async addMinter(e,t={}){const n=this.methods.addMinter(e);return t=await a(n,t,this.options),n.send(t)}async renounceMinter(e={}){const t=this.methods.renounceMinter();return e=await a(t,e,this.options),t.send(e)}async burn(e,t={}){const n=this.methods.burn(u(e));return t=await a(n,t,this.options),n.send(t)}async burnFrom(e,t,n={}){const r=this.methods.burnFrom(e,u(t));return n=await a(r,n,this.options),r.send(n)}async addPauser(e,t={}){const n=this.methods.addPauser(e);return t=await a(n,t,this.options),n.send(t)}async pause(e={}){const t=this.methods.pause();return e=await a(t,e,this.options),t.send(e)}async unpause(e={}){const t=this.methods.unpause();return e=await a(t,e,this.options),t.send(e)}async renouncePauser(e={}){const t=this.methods.renouncePauser();return e=await a(t,e,this.options),t.send(e)}}g.byteCode=c,g.abi=o,e.exports=g},ba36:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("55e4");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},bb1c:function(e,t,n){"use strict";const r=n("8804"),{findSources:i}=n("d6ea"),s=n("9878"),f=n("15e4");e.exports=s(e=>{async function t(...t){const{sources:n,options:s}=i(t),a=await e.post("files/mv",{timeout:s.timeout,signal:s.signal,searchParams:f({arg:n.map(e=>r.isCID(e)?"/ipfs/"+e:e),...s}),headers:s.headers});await a.text()}return t})},bb5a:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},bb6d:function(e,t){e.exports=i;var n=128,r=127;function i(e,t){var s,f=0,a=(t=t||0,0),o=t,c=e.length;do{if(o>=c||a>49)throw i.bytes=0,new RangeError("Could not decode varint");s=e[o++],f+=a<28?(s&r)<=n);return i.bytes=o-t,f}},bbb1:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{const t=async(t,n={})=>{if(!t)throw new Error("key argument is required");const r=await e.post("config",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),s=await r.json();return s.Value};return t})},bcbb:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("87b8"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,CODE_FORMAT:c,getCodeFormatTag:u,isNot:l}=n("e638"),d=n("4f8d");function h(e){if(e=d.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedSmartContractDeploy))throw new Error(`Cannot decode to FeeDelegatedSmartContractDeploy. The prefix must be ${o.TxTypeFeeDelegatedSmartContractDeploy}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,u,l,h,p,b,m]=i.decode(t);return{nonce:d.trimLeadingZero(n),gasPrice:d.trimLeadingZero(r),gas:d.trimLeadingZero(s),to:f,value:d.trimLeadingZero(a),from:c,input:u,humanReadable:"0x1"===l,codeFormat:h,signatures:p,feePayer:b,feePayerSignatures:m}}class p extends f{static create(e,t){return new p(e,t)}static decode(e,t){return new p(h(e),t)}constructor(e,t){if(r.isString(e)&&(e=h(e)),super(a.TxTypeFeeDelegatedSmartContractDeploy,e,t),this.to=e.to||"0x",this.value=e.value||"0x0",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,this.humanReadable=void 0!==e.humanReadable&&e.humanReadable,this.codeFormat=void 0!==e.codeFormat?e.codeFormat:c.EVM,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=d.numberToHex(e)}get to(){return this._to}set to(e){if("0x"!==e)throw new Error("Invalid address of to: 'to' should be '0x' with smart contract deploy transaction.");this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=d.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!d.isHex(e))throw new Error("Invalid input data "+e);this._input=d.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}get humanReadable(){return this._humanReadable}set humanReadable(e){if(!r.isBoolean(e))throw new Error("Invalid humanReadable "+e);this._humanReadable=e}get codeFormat(){return this._codeFormat}set codeFormat(e){this._codeFormat=u(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedSmartContractDeploy+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,s.fromNat(!0===this.humanReadable?"0x1":"0x0"),s.fromNat(this.codeFormat),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeFeeDelegatedSmartContractDeploy,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,s.fromNat(!0===this.humanReadable?"0x1":"0x0"),s.fromNat(this.codeFormat)])}async fillTransaction(){const[e,t,n]=await Promise.all([l(this.chainId)?this.getChainId():this.chainId,l(this.gasPrice)?this.getGasPrice():this.gasPrice,l(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=p},bd3b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("4227");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},bd78:function(e,t,n){const r=n("2ef0"),i=n("e802"),s={ACCOUNT_KEY_NIL_TAG:"0x80",ACCOUNT_KEY_LEGACY_TAG:"0x01c0",ACCOUNT_KEY_PUBLIC_TAG:"0x02",ACCOUNT_KEY_FAIL_TAG:"0x03c0",ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG:"0x04",ACCOUNT_KEY_ROLE_BASED_TAG:"0x05"},f=(e,t)=>{if(r.isArray(t))throw new Error("For AccountKeyWeightedMultiSig, options cannot be defined as an array of WeightedMultiSigOptions.");return t||(t=new i(1,Array(e).fill(1))),t instanceof i||(t=i.fromObject(t)),t.isEmpty()?new i(1,Array(e).fill(1)):t},a=(e,t=[])=>{if(!r.isArray(t))throw new Error("For AccountKeyRoleBased, options should be an array of WeightedMultiSigOptions.");for(let n=0;n1?new i(1,Array(e[n]).fill(1)):new i,t[n]?t[n]=r:t.push(r)}return t};e.exports={ACCOUNT_KEY_TAG:s,fillWeightedMultiSigOptionsForMultiSig:f,fillWeightedMultiSigOptionsForRoleBased:a}},be51:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},be79:function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},be97:function(e,t,n){const r=n("3301"),i=n("796b");e.exports=function(e){const t=i(e);let n;const s={[Symbol.asyncIterator]:()=>s,async next(e){if(n){let i;if(null==e||n.length===e)i=n,n=null;else if(n.length>e)i=n.shallowSlice(0,e),n=n.shallowSlice(e);else if(n.lengtha.makeEven(a.trimLeadingZero(e)));return new o([f,c,u])}ecsign(e){const t=0,n=r.makeSigner(t)(e,this.privateKey);let[i,s,f]=r.decodeSignature(n).map(e=>a.makeEven(a.trimLeadingZero(e)));return i=a.toHex(a.hexToNumber(i)),new o([i,s,f])}signMessage(e){const t=r.sign(e,this.privateKey),[n,i,s]=r.decodeSignature(t);return new o([n,i,s])}getPublicKey(e=!1){const n=a.stripHexPrefix(this.privateKey),r=f.keyFromPrivate(t.from(n,"hex"));return e?"0x"+r.getPublic(!0,"hex"):"0x"+r.getPublic(!1,"hex").slice(2)}getDerivedAddress(){return r.fromPrivate(this.privateKey).address.toLowerCase()}}e.exports=c}).call(this,n("b639").Buffer)},bfac:function(e,t,n){"use strict";const r=n("aef6"),i=n("8804"),s=n("c8ff"),f=n("542b"),a=n("9878"),o=n("15e4"),c=n("f783"),{AbortController:u}=n("c181");e.exports=a(e=>{async function t(n,a={}){if(r.isBlock(n)){const{name:e,length:t}=s.decode(n.cid.multihash);a={...a,format:n.cid.codec,mhtype:e,mhlen:t,version:n.cid.version},n=n.data}else if(a.cid){const e=new i(a.cid),{name:t,length:n}=s.decode(e.multihash);a={...a,format:e.codec,mhtype:t,mhlen:n,version:e.version},delete a.cid}const l=new u,d=c(l.signal,a.signal);let h;try{const t=await e.post("block/put",{timeout:a.timeout,signal:d,searchParams:o(a),...await f(n,l,a.headers)});h=await t.json()}catch(p){if("dag-pb"===a.format)return t(n,{...a,format:"protobuf"});if("dag-cbor"===a.format)return t(n,{...a,format:"cbor"});throw p}return new r(n,new i(h.Key))}return t})},c030:function(e,t,n){"use strict";n.r(t);var r=n("6779");n.d(t,"ethers",(function(){return r}));var i=n("7ca5");n.d(t,"Signer",(function(){return i["a"]}));var s=n("288a");n.d(t,"Wallet",(function(){return s["a"]})),n.d(t,"VoidSigner",(function(){return i["b"]}));var f=n("2606");n.d(t,"getDefaultProvider",(function(){return f["getDefaultProvider"]})),n.d(t,"providers",(function(){return r["providers"]}));var a=n("f179");n.d(t,"BaseContract",(function(){return a["a"]})),n.d(t,"Contract",(function(){return a["b"]})),n.d(t,"ContractFactory",(function(){return a["c"]}));var o=n("e36d");n.d(t,"BigNumber",(function(){return o["a"]}));var c=n("0d17");n.d(t,"FixedNumber",(function(){return c["a"]})),n.d(t,"constants",(function(){return r["constants"]}));var u=n("ffb2");n.d(t,"errors",(function(){return u["a"]})),n.d(t,"logger",(function(){return r["logger"]})),n.d(t,"utils",(function(){return r["utils"]}));var l=n("5605");n.d(t,"wordlists",(function(){return l["a"]}));var d=n("e23e");n.d(t,"version",(function(){return d["a"]}));var h=n("bd9b");n.d(t,"Wordlist",(function(){return h["a"]}));try{const e=window;null==e._ethers&&(e._ethers=r)}catch(p){}},c08a:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return easync(t,n={})=>{const f=await e.post("object/get",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:""+(t instanceof Uint8Array?new r(t):t),dataEncoding:"base64",...n}),headers:n.headers}),c=await f.json();return new i(o(c.Data,"base64pad"),(c.Links||[]).map(e=>new s(e.Name,e.Size,e.Hash)))})},c11e:function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nasync function*(n,i={}){const o=""+(n instanceof Uint8Array?new r(n):n);async function c(e){let n=e.Hash;if(n.includes("/")){const e=n.startsWith("/ipfs/")?n:"/ipfs/"+n,r=await f(t)(e);n=r.cid}const i={name:e.Name,path:o+(e.Name?"/"+e.Name:""),size:e.Size,cid:new r(n),type:a(e),depth:e.Depth||1};return e.Mode&&(i.mode=parseInt(e.Mode,8)),void 0!==e.Mtime&&null!==e.Mtime&&(i.mtime={secs:e.Mtime},void 0!==e.MtimeNsecs&&null!==e.MtimeNsecs&&(i.mtime.nsecs=e.MtimeNsecs)),i}const u=await e.post("ls",{timeout:i.timeout,signal:i.signal,searchParams:s({arg:o,...i}),headers:i.headers});for await(let e of u.ndjson()){if(e=e.Objects,!e)throw new Error("expected .Objects in results");if(e=e[0],!e)throw new Error("expected one array in results.Objects");const t=e.Links;if(!Array.isArray(t))throw new Error("expected one array in results.Objects[0].Links");if(!t.length)return void(yield c(e));yield*t.map(c)}})},c181:function(e,t,n){"use strict";let r;r=globalThis.AbortController&&globalThis.AbortSignal?globalThis:n("91d3"),e.exports.AbortSignal=r.AbortSignal,e.exports.AbortController=r.AbortController},c229:function(e,t,n){"use strict";const r=n("f016"),i=n("ff4f"),{rfc4648:s}=n("81b6"),{decodeText:f,encodeText:a}=n("cf7e"),o=()=>({encode:f,decode:a}),c=[["identity","\0",o,""],["base2","0",s(1),"01"],["base8","7",s(3),"01234567"],["base10","9",r,"0123456789"],["base16","f",s(4),"0123456789abcdef"],["base16upper","F",s(4),"0123456789ABCDEF"],["base32hex","v",s(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",s(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",s(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",s(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",s(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",s(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",s(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",r,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",r,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",r,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",r,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new i(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});e.exports={names:u,codes:l}},c2c8:function(e,t,n){"use strict";e.exports="// An IPFS MerkleDAG Link\nmessage PBLink {\n\n // multihash of the target object\n optional bytes Hash = 1;\n\n // utf string name. should be unique per object\n optional string Name = 2;\n\n // cumulative size of target object\n optional uint64 Tsize = 3;\n}\n\n// An IPFS MerkleDAG Node\nmessage PBNode {\n\n // refs to other objects\n repeated PBLink Links = 2;\n\n // opaque user data\n optional bytes Data = 1;\n}"},c407:function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},c440:function(e,t,n){const r=n("563b");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},c4e5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74");const i=r.baseX({prefix:"9",name:"base10",alphabet:"0123456789"});t.base10=i},c4f2:function(e,t,n){"use strict";const r=n("9c68"),i=n("9975"),s=n("9878");e.exports=e=>{const t=r(e);return s(()=>async function(e,n={}){return i(t({path:e,...n},n))})(e)}},c4f3:function(e,t,n){"use strict";const{encodeText:r}=n("67c6");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},c528:function(e,t,n){(function(t,r){const i="[object process]"===Object.prototype.toString.call("undefined"!==typeof t?t:0),s="undefined"!==typeof navigator&&"ReactNative"===navigator.product;let f=null,a=null;if(i||s){f=function(e){return r.from(e).toString("base64")};const e=n("0b16");if(e.URL){const t=e.URL;a=function(e){return new t(e)}}else a=n("0b16").parse}else f=btoa.bind(window),a=function(e){return new URL(e)};e.exports={parseURL:a,btoa:f}}).call(this,n("4362"),n("b639").Buffer)},c575:function(e,t,n){"use strict";const r=n("ca89"),i=n("ed68"),s=n("66ee"),f=n("02f9"),{concat:a}=n("a015"),{toString:o}=n("5be0"),{equals:c}=n("4434"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},c57e:function(e,t,n){const r=n("5a6c"),i=n("d335"),s=e=>"0x"+e.toString("hex"),f=e=>new r(e.slice(2),16),a=e=>{const t="0x"+("0x"===e.slice(0,2)?new r(e.slice(2),16):new r(e,10)).toString("hex");return"0x0"===t?"0x":t},o=e=>d(g(e,a("10000000000")))/1e8,c=e=>m(l(Math.floor(1e8*e)),a("10000000000")),u=e=>f(e).toString(10),l=e=>"string"===typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new r(e).toString("hex"),d=e=>f(e).toNumber(),h=e=>i.pad(32,e),p=e=>(t,n)=>s(f(t)[e](f(n))),b=p("add"),m=p("mul"),g=p("div"),k=p("sub");e.exports={toString:u,fromString:a,toNumber:d,fromNumber:l,toEther:o,fromEther:c,toUint256:h,add:b,mul:m,div:g,sub:k}},c5b7:function(e,t){e.exports={AccountKeyEnum:{ACCOUNT_KEY_PUBLIC:"AccountKeyPublic",ACCOUNT_KEY_MULTISIG:"AccountKeyMultiSig",ACCOUNT_KEY_ROLEBASED:"AccountKeyRoleBased"}}},c629:function(e,t,n){const r=n("c5b7").AccountKeyEnum,i=10;class s{constructor(e){if(e instanceof s&&(e=e.keys),!Array.isArray(e))throw new Error("To create AccountKeyMultiSig, an array of private key strings is required.");if(0===e.length)throw new Error("Empty array.");if(e.length>i)throw new Error(`The maximum number of keys is ${i}.`);if(f(e))throw new Error("There is a duplicate key.");this._keys=e,this.type=r.ACCOUNT_KEY_MULTISIG}get defaultKey(){return this._keys[0]}get keys(){return this._keys}get transactionKey(){return this._keys}get updateKey(){return this._keys}get feePayerKey(){return this._keys}toPublicKey(e){const t=[];for(let n=0;n>1);this.chainId||(this.chainId=t);const n=this.getRLPEncodingForSignature(),r=f.keccak256(n),s=[];for(const f of this.signatures){const e=i.toNumber(f.v),t=e<35?i.fromNat("0x1"):i.fromNumber(e-35>>1);if(o.trimLeadingZero(this.chainId)!==o.trimLeadingZero(t))throw new Error("Invalid signatures data: recovery data is not matched.");s.push(o.recoverPublicKey(r,f,!0))}return s}async fillTransaction(){throw new Error("Not implemented.")}validateOptionalValues(){if(void 0===this.nonce)throw new Error("nonce is undefined. Define nonce in transaction or use 'transaction.fillTransaction' to fill values.")}async _sign(e,t){let n=e;if(r.isString(e)&&(n=c.createFromPrivateKey(e)),!(n instanceof u)&&!(n instanceof l)&&!(n instanceof d))throw new Error("Unsupported key type. The key must be a single private key string, KlaytnWalletKey string, or Keyring instance.");if(m(this.type)&&n.isDecoupled())throw new Error(this.type+" cannot be signed with a decoupled keyring.");if(this.from&&"0x"!==this.from&&"0x0000000000000000000000000000000000000000"!==this.from||(this.from=n.address),this.from.toLowerCase()!==n.address.toLowerCase())throw new Error("The from address of the transaction is different with the address of the keyring to use.");await this.fillTransaction();const i=t(this),s=this.type.includes("AccountUpdate")?g.roleAccountUpdateKey:g.roleTransactionKey;return{keyring:n,hash:i,role:s}}}e.exports=w},c825:function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},c85b:function(e,t,n){const r=n("4f8d").isValidRole,i=n("4f8d").isValidPublicKey;class s{constructor(e,t,n){this.address=e,this.keyForUpdate=f(t,n)}fillUpdateObject(e){delete e.key,Object.assign(e,this.keyForUpdate)}}function f(e,t){const n={};if("string"===typeof e){if(t)throw new Error("Failed to keyFormatter for AccountForUpdate: AccountKeyPublic/legacyKey/failKey cannot have options");switch(e){case"legacyKey":n.legacyKey=!0;break;case"failKey":n.failKey=!0;break;default:if(!i(e))throw new Error("Invalid public key");n.publicKey=e;break}}else if(Array.isArray(e)){if(!t||!t.threshold||!t.weight)throw new Error("For AccountKeyMultiSig, threshold and weight should be defined in options object.");if(!Array.isArray(t.weight))throw new Error("The weight should be defined as a array.");if(t.weight.length!==e.length)throw new Error("The length of keys in AccountKeyMultiSig and the length of weight array do not match.");n.multisig={threshold:t.threshold,keys:[]};let r=0;for(let s=0;s({addLink:n("3ae7")(e),appendData:n("8c04")(e),rmLink:n("67d1")(e),setData:n("fe3c")(e)})},c8cf:function(e,t,n){const r=n("2ef0"),i=n("e19e").errors,s=n("e19e").formatters,f=n("4f8d"),a=n("2dc3").subscriptions,o=n("e19e").validateFunction.validateParams,c=50,u=1,l=u*c,d=n("b457"),{TX_TYPE_STRING:h}=n("e638");function p(e){if(!e.call||!e.name)throw i.needNameCallPropertyToCreateMethod;this.name=e.name,this.call=e.call,this.hexCall=e.hexCall,this.params=e.params||0,this.inputFormatter=e.inputFormatter||[],this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.outputFormatterDisable=e.outputFormatterDisable}function b(e,t){this.requestManager=e,t&&(this.accounts=t)}function m(e,t){this.setRequestManager(e||this.requestManager,t||this.accounts);const n=this.buildCall();return n.call=this.call,n}function g(e){const t=this.buildCall();t.call=this.call;const[n,r]=this.name.split(".");r?(e[n]=e[n]||{},e[n][r]=t,e[n][r].getMethod=()=>this):(e[n]=t,e[n].getMethod=()=>this)}function k(e){return this.hexCall&&f.isHexParameter(e[0])?this.hexCall:this.call}function y(e){if(r.isFunction(e[e.length-1]))return e.pop()}function w(e){if(e.length!==this.params)throw i.InvalidNumberOfParams(e.length,this.params,this.name)}function v(e){const t=this;return!this.inputFormatter||r.isEmpty(this.inputFormatter)?e:this.inputFormatter.map((n,r)=>{let i=e[r];return n&&(i=n.call(t,e[r])),i})}function E(e){const t=this,n=e=>"function"===typeof t.outputFormatter?t.outputFormatter(e):e;return r.isArray(e)?e.map(n):n(e)}function T(e){const t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);const i={method:t,params:r,callback:n};return this.transformPayload&&this.transformPayload(i)||i}p.prototype.setRequestManager=b,p.prototype.createFunction=m,p.prototype.attachToObject=g,p.prototype.getCall=k,p.prototype.extractCallback=y,p.prototype.validateArgs=w,p.prototype.formatInput=v,p.prototype.formatOutput=E,p.prototype.toPayload=T,p.prototype.buildCall=C,p.prototype._confirmTransaction=S,p.prototype.request=j;const x=(e,t,n,r)=>(i,s)=>{try{s=t.formatOutput(s)}catch(a){i||(i=a)}if(i=s instanceof Error&&s||i,i)return f._fireError(i.error||i,e.eventEmitter,e.reject,n.callback);n.callback&&n.callback(null,s),r?(e.eventEmitter.emit("transactionHash",s),t._confirmTransaction(e,s,n)):e.resolve(s)},_=(e,t,n)=>i=>{const s=i.rawTransaction?i.rawTransaction:i,f=r.extend({},t,{method:"klay_sendRawTransaction",params:[s]});e.requestManager.send(f,n)},A=(e,t,n)=>(i,s)=>{const a=i.method;if(s&&"klay_sendRawTransaction"===a)if(s.accounts){const e=i.params[0];if("string"!==typeof e&&r.isObject(e))return e.rawTransaction?t(e):s.accounts.getRawTransactionWithSignatures(e).then(t).catch(e=>{n(e)})}else{const e=i.params[0];if(!r.isString(e)&&r.isObject(e)&&r.isFunction(e.getRLPEncoding))return t(e.getRLPEncoding())}if(s&&s.accounts&&s.accounts.wallet&&s.accounts.wallet.length)switch(a){case"klay_sendTransaction":{const e=i.params[0];let f;if(!r.isObject(e))return void n(new Error("The transaction must be defined as an object."));let a,u=e.from;e.senderRawTransaction&&e.feePayer&&(u=e.feePayer,e.from&&(console.log('"from" is ignored for a fee-delegated transaction.'),delete e.from));try{a=s.accounts.wallet.getAccount(u)}catch(c){return void n(c)}if(a&&a.privateKey){const r=s.accounts._getRoleKey(e,a);return s.accounts.signTransaction(e,r).then(t).catch(e=>{n(e)})}if(e.signatures)return s.accounts.getRawTransactionWithSignatures(e).then(t).catch(e=>{n(e)});if(void 0!==e.feePayer||void 0!==e.type&&"LEGACY"!==e.type)return f=new Error(`No private key found in the caver-js wallet. Trying to use the Klaytn node's wallet, but it only supports legacy transactions. Please add private key of ${u} to the caver-js wallet.`),void n(f);if(f=o(e),f)return void n(f);break}case"klay_sign":{const t=i.params[1],n=s.accounts.wallet.getAccount(i.params[0]);if(n&&n.privateKey){const r=s.accounts.sign(t,n.privateKey);return i.callback&&i.callback(null,r.signature),void e.resolve(r.signature)}break}}if(a.includes("sendTransaction")||a.includes("signTransaction")){const e={};Object.keys(i.params[0]).map(t=>{let n=t;n.startsWith("_")&&(n=n.slice(1)),"signatures"===n||"feePayerSignatures"===n?f.isEmptySig(i.params[0][n])||(e[n]=f.transformSignaturesToObject(i.params[0][n]),"signatures"!==n||"klay_signTransaction"!==a&&"klay_sendTransaction"!==a||console.warn("When sign/send a transaction using the Node API, existing 'signatures' can be initialized."),"feePayerSignatures"!==n||"klay_signTransactionAsFeePayer"!==a&&"klay_sendTransactionAsFeePayer"!==a||console.warn("When sign/send a transaction using the Node API, existing 'feePayerSignatures' can be initialized.")):"codeFormat"===n?e[n]=f.hexToNumber(i.params[0][n]):"account"===n?e.key=i.params[0][n].getRLPEncodingAccountKey():"chainId"===n?void 0!==i.params[0].type&&i.params[0].type.includes("Ethereum")&&(e[n]=i.params[0][n]):"accessList"===n?e[n]=i.params[0][n].toObject():"0x"!==i.params[0][n]&&(e[n]=i.params[0][n])}),i.params[0]=e}return s.requestManager.send(i,n)},P=(e,t)=>(...n)=>{const i=f.promiEvent(!t),s=e.toPayload(n),a=x(i,e,s,t),o=_(e,s,a),c=A(i,o,a),u=t&&r.isObject(s.params[0])&&void 0===s.params[0].gasPrice;if(!u)return c(s,e),i.eventEmitter;const l=new p({name:"getGasPrice",call:"klay_gasPrice",params:0}).createFunction(e.requestManager);return l((t,n)=>{s.params[0].type!==h.TxTypeEthereumDynamicFee&&(s.params[0].gasPrice=n||s.params[0].gasPrice),c(s,e)}),i.eventEmitter};function C(){const e=this,t="klay_sendTransaction"===e.call||"klay_sendTransactionAsFeePayer"===e.call||"klay_sendRawTransaction"===e.call||"personal_sendTransaction"===e.call||"personal_sendValueTransfer"===e.call||"personal_sendAccountUpdate"===e.call,n=P(e,t);return n.method=e,n.request=this.request.bind(this),n}function S(e,t,n){let i=n.params&&r.isObject(n.params[0])&&n.params[0]||{};r.isString(n.params[0])&&(i=d.decode(n.params[0]));const s={method:this,promiseResolved:!1,canUnsubscribe:!0,timeoutCount:0,intervalId:null,gasProvided:i.gas||null,isContractDeployment:f.isContractDeployment(i),defer:e,result:t,_klaytnCall:{}};N(s),I(s)}const N=e=>{const t=[new p({name:"getTransactionReceipt",call:"klay_getTransactionReceipt",params:1,outputFormatter:e.method.outputFormatterDisable?void 0:s.outputTransactionReceiptFormatter}),new p({name:"getCode",call:"klay_getCode",params:2,inputFormatter:[s.inputAddressFormatter,s.inputDefaultBlockNumberFormatter]}),new a({name:"subscribe",type:"klay",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:s.outputBlockFormatter}}})];r.each(t,t=>{t.attachToObject(e._klaytnCall),t.requestManager=e.method.requestManager})},I=e=>{const{defer:t,promiseResolved:n,result:r,_klaytnCall:i}=e;i.getTransactionReceipt(r).then(t=>{t&&t.blockHash?O(e,t,!1):n||F(e,t)}).catch(()=>{n||F(e)})},F=function(e,t){const{_klaytnCall:n,intervalId:r,method:i}=e;i.requestManager.provider.supportsSubscriptions()?n.subscribe("newBlockHeaders",O.bind(null,e,t,!1)):e.intervalId=setInterval(O.bind(null,e,t,!0),1e3)},O=function(e,t,n,r,i,s){const{intervalId:a,defer:o,method:c,canUnsubscribe:u,_klaytnCall:l,isContractDeployment:d,promiseResolved:h,timeoutCount:p,result:b}=e;return r?(s.unsubscribe(),e.promiseResolved=!0,void f._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:r},o.eventEmitter,o.reject)):(s=s||{unsubscribe:()=>clearInterval(e.intervalId)},(t&&f.promiEvent.resolve(t)||l.getTransactionReceipt(b)).then(t=>{L(t);const n=R(t,c);if(!e.promiseResolved)return d?M(e,n,s):U(e,n,s)}).catch(D))},L=e=>{if(e&&!e.blockHash)throw i.blockHashNull},R=(e,t)=>(t.extraFormatters&&t.extraFormatters.receiptFormatter&&(e=t.extraFormatters.receiptFormatter(e)),e),D=(e,t,n)=>{const{defer:r,timeoutCount:i,promiseResolved:s}=e;e.timeoutCount++,t?e.timeoutCount-1>=l&&(n.unsubscribe(),e.promiseResolved=!0,f._fireError(new Error(`Transaction was not mined within${l} seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!`),r.eventEmitter,r.reject)):e.timeoutCount-1>=c&&(n.unsubscribe(),e.promiseResolved=!0,f._fireError(new Error("Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),r.eventEmitter,r.reject))},M=(e,t,n)=>{const{defer:r,method:s,canUnsubscribe:a,_klaytnCall:o,promiseResolved:c}=e;if(!t.contractAddress)return a&&(n.unsubscribe(),e.promiseResolved=!0),void f._fireError(i.receiptDidntContainContractAddress,r.eventEmitter,r.reject);if(!t.status&&t.txError){const e=JSON.stringify(t,null,2);f._fireError(new Error(`${i.txErrorTable[t.txError]}\n ${e}`),r.eventEmitter,r.reject)}return o.getCode(t.contractAddress,(i,f)=>{f&&(r.eventEmitter.emit("receipt",t),r.resolve(s.extraFormatters&&s.extraFormatters.contractDeployFormatter&&s.extraFormatters.contractDeployFormatter(t)||t),a&&r.eventEmitter.removeAllListeners(),a&&n.unsubscribe(),e.promiseResolved=!0)}),t},U=(e,t,n)=>{const{defer:r,canUnsubscribe:s,promiseResolved:a,gasProvided:o}=e;if(!t||t.outOfGas||o&&o===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&"undefined"!==typeof t.status){if(!t)return;const n=JSON.stringify(t,null,2),{txError:r}=t;r&&i.txErrorTable[r]?f._fireError(new Error(`${i.txErrorTable[r]}\n ${n}`),e.defer.eventEmitter,e.defer.reject):!1===t.status||"0x0"===t.status?f._fireError(i.transactionReverted(n),e.defer.eventEmitter,e.defer.reject):(t.gasUsed,f._fireError(i.transactionRanOutOfGas(n),e.defer.eventEmitter,e.defer.reject))}else{try{e.defer.eventEmitter.emit("receipt",t),e.defer.resolve(t)}catch(c){console.log("receipt error",c)}s&&e.defer.eventEmitter.removeAllListeners()}s&&n.unsubscribe(),e.promiseResolved=!0};function j(...e){const t=this.toPayload(e);return t.format=this.formatOutput.bind(this),t}e.exports=p},c8f6:function(e,t,n){var r=n("14ec"),i=n("3193");e.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},c8ff:function(e,t,n){"use strict";const r=n("fe37"),i=n("2612"),{names:s}=n("4b92"),{toString:f}=n("7122"),{fromString:a}=n("5216"),{concat:o}=n("fae5"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},c960:function(e,t,n){(function(t){const r=n("2ef0"),i=n("5a6c"),s=n("dac9"),f=n("a6b6"),a=n("2654"),o=n("f35a"),c=n("84e9"),u=n("4e23"),l=n("3337"),d=new l.ec("secp256k1"),h={"0x20":"ACCOUNT_UPDATE","0x21":"FEE_DELEGATED_ACCOUNT_UPDATE","0x22":"FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO","0x08":"VALUE_TRANSFER","0x10":"VALUE_TRANSFER_MEMO","0x09":"FEE_DELEGATED_VALUE_TRANSFER","0x0a":"FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO","0x11":"FEE_DELEGATED_VALUE_TRANSFER_MEMO","0x12":"FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO","0x28":"SMART_CONTRACT_DEPLOY","0x29":"FEE_DELEGATED_SMART_CONTRACT_DEPLOY","0x2a":"FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO","0x30":"SMART_CONTRACT_EXECUTION","0x31":"FEE_DELEGATED_SMART_CONTRACT_EXECUTION","0x32":"FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO","0x38":"CANCEL","0x39":"FEE_DELEGATED_CANCEL","0x3a":"FEE_DELEGATED_CANCEL_WITH_RATIO","0x48":"CHAIN_DATA_ANCHORING"},p=66,b=function(e){return i.isBN(e)},m=function(e){return s.isBigNumber(e)};function g(e){try{return f.apply(null,arguments)}catch(t){throw new Error(`${t} Given value: "${e}"`)}}const k=function(e){return"0x"+g(e).toTwos(256).toString(16,64)},y=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||w(e))},w=function(e){e=e.replace(/^0x/i,"");const t=z(e.toLowerCase()).replace(/^0x/i,"");for(let n=0;n<40;n++)if(parseInt(t[n],16)>7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},v=function(e,t,n){const r=/^0x/i.test(e)||"number"===typeof e;e=e.toString(16).replace(/^0x/i,"");const i=t-e.length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+e},E=function(e,t,n){const r=/^0x/i.test(e)||"number"===typeof e;e=e.toString(16).replace(/^0x/i,"");const i=t-e.length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(i).join(n||"0")},T=function(e){e=a.encode(e);let t="";e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join(""),e=e.replace(/^(?:\u0000)*/,""),e=e.split("").reverse().join("");for(let n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("")},S=function(e){if(e=e.toString(16),!L(e))throw new Error(`Given value "${e}" is not a valid hex string.`);e=e.replace(/^0x/i,"");const t=[];for(let n=0;nM(e),M=e=>new RegExp(`^(0x|0X)?[0-9a-fA-F]{${p-2}}$`).test(e),U=e=>j(e),j=e=>new RegExp(`^(0x|0X)[0-9a-fA-F]{${p-2}}$`).test(e),K=function(e){return!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},B=function(e){return!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))},H=e=>{switch(e){case"genesis":case"earliest":return"0x0";default:return e}},G=function(e){return"latest"===e||"pending"===e||"earliest"===e||"genesis"===e},V=e=>G(e)||L(e)||Number.isFinite(Number(e)),W="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",z=function(e){if("number"===typeof e)return null;L(e)&&/^0x/i.test(e.toString())&&(e=S(e)),b(e)&&(e=e.toString(10));const t=o.keccak256(e);return t===W?null:t};function $(e){if("string"!==typeof e)throw new Error("The private key must be of type string");const t="0x"===e.slice(0,2);if(e=t?e.slice(2):e,110!==e.length&&64!==e.length)throw new Error(`Invalid private key(${e})`);const n=e.slice(0,64);if(!R(n))throw new Error("Invalid private key format : privateKey must be in hex format.");if(110!==e.length)return{privateKey:"0x"+e,address:"",type:""};const r=e.slice(66,68);if("00"!==r)throw new Error("Invalid type: Currently only type `0x00` is supported.");if(!Y(e))throw new Error("Invalid KlaytnWalletKey format.");const i=e.slice(68);return{privateKey:"0x"+n,address:i,type:"0x"+r}}function q(e){if(!Y(e))throw new Error("Invalid KlaytnWalletKey format: "+e);const t=e.startsWith("0x")?e.slice(2):e,n=t.split("0x");return["0x"+n[0],"0x"+n[1],"0x"+n[2]]}z._Hash=o;const Y=e=>{if(!r.isString(e))return!1;const t="0x"===e.slice(0,2);if(e=t?e.slice(2):e,110!==e.length)return!1;const n=e.split("0x");if(3!==n.length)return!1;for(let r=0;rc.encode(e),Q=e=>c.decode(e),ee=e=>{let t=e;if(ae(t)&&(t=ce(e)),t=t.replace("0x",""),130===t.length&&"04"===t.slice(0,2)&&(t=t.slice(2)),128!==t.length)throw Error("Invalid public key");const n="0x"+t.slice(0,64).replace(/^0+/,""),r="0x"+t.slice(64).replace(/^0+/,"");return[n,r]},te=function(e){while(e&&e.startsWith("0x0"))e="0x"+e.slice(3);return e},ne=function(e){return e.length%2===1&&(e=e.replace("0x","0x0")),e},re=e=>{if(r.isArray(e)){const[t,n,r]=e;return[t,n,r]}if(r.isObject(e)){const t=e.V||e.v,n=e.R||e.r,r=e.S||e.s;if(!t||!n||!r)throw new Error("v, r, s fields should exist in signature");return[t,n,r]}if(r.isString(e)){const t="0x"+e.slice(130),n=u.decodeSignature(e);return[t,n[1],n[2]]}},ie=e=>{let t=!1;if(!e)throw new Error("Failed to transform signatures to object: invalid signatures "+e);if(r.isArray(e)){if(r.isString(e[0])){const n=e[0].replace("0x","");n.length<=64&&(e=[e],t=!0)}}else e=[e],t=!0;const n=[];for(const i of e){const e={};if(r.isArray(i)){if(3!==i.length)throw new Error(`Failed to transform signatures to object: invalid length of signature (${i.length})`);if(de(i))continue;const[t,n,r]=i;e.V=t,e.R=n,e.S=r}else if(r.isString(i)){const t=u.decodeSignature(i).map(e=>ne(te(e)));e.V=t[0],e.R=t[1],e.S=t[2]}else{if(!r.isObject(i))throw new Error("Unsupported signature type: "+typeof i);Object.keys(i).map(t=>{if("v"===t||"V"===t||"_v"===t)e.V=i[t];else if("r"===t||"R"===t||"_r"===t)e.R=i[t];else{if("s"!==t&&"S"!==t&&"_s"!==t)throw new Error(`Failed to transform signatures to object: invalid key(${t}) is defined in signature object.`);e.S=i[t]}})}if(!e.V||!e.R||!e.S)throw new Error("Failed to transform signatures to object: invalid signature "+i);Object.keys(e).map(t=>{e[t]=te(e[t])}),n.push(e)}return t?n[0]:n},se=e=>{if("string"!==typeof e)throw new Error("Invalid raw Tx",e);const t=e.slice(0,4),n=h[t];return n},fe=e=>{let t=e.replace("0x","");if(130===t.length&&"04"===t.slice(0,2)&&(t=t.slice(2)),66!==t.length&&128!==t.length)return!1;if(66===t.length&&!ae(t))return!1;66===t.length&&(t=ce(t));const n=ee(t);if(void 0===n||!n.length||2!==n.length)return!1;const r=d.curve.point(n[0].slice(2),n[1].slice(2),!0);return d.keyFromPublic(r).validate().result},ae=e=>{const t=["02","03"],n=e.replace("0x","");return 66===n.length&&t.includes(n.slice(0,2))},oe=e=>{const t=ae(e);if(t)return e;const n=ee(e);if(void 0===n||!n.length||2!==n.length)throw new Error("invalid public key");const[r,i]=n,s=d.keyPair({pub:{x:r.replace("0x",""),y:i.replace("0x","")},pubEnc:"hex"}),f="0x"+s.getPublic(!0,"hex");return f},ce=e=>{if(!ae(e)){if(!fe(e))throw new Error("Invalid public key");return e}const t=e.replace("0x",""),n=d.curve,r=n.decodePoint(t,"hex"),i=r.encode("hex").slice(2);return"0x"+i},ue=e=>{if(e.type){if(e.type.includes("SMART_CONTRACT_DEPLOY")||e.type.includes("SmartContractDeploy"))return!0;if("LEGACY"!==e.type&&"TxTypeLegacyTransaction"!==e.type)return!1}return!(!e.data||"0x"===e.data||e.to&&"0x"!==e.to)},le=e=>{switch(e){case"roleTransactionKey":case"roleAccountUpdateKey":case"roleFeePayerKey":case"transactionKey":case"updateKey":case"feePayerKey":return!0}return!1},de=e=>{let t=e;r.isArray(e)||(t=re(t)),r.isString(t[0])&&(t=[t]);for(let n of t){if(r.isArray(n)||(n=re(n)),3!==n.length)throw new Error("Invalid signatures length: "+n.length);if("0x01"!==n[0]||"0x"!==n[1]||"0x"!==n[2])return!1}return!0},he=e=>{const n=L(e)?S(e):e,r=t.from(n),i="Klaytn Signed Message:\n"+n.length,s=t.from(i),f=t.concat([s,r]);return o.keccak256(f)},pe=(e,n,i=!1)=>{i||(e=he(e)),r.isArray(n)&&(n={v:n[0],r:n[1],s:n[2]});const s={v:parseInt(n.v.slice(2),16),r:n.r.slice(2),s:n.s.slice(2)},f=d.recoverPubKey(t.from(e.slice(2),"hex"),s,s.v<2?s.v:1-s.v%2);return"0x"+f.encode("hex",!1).slice(2)},be=(e,t,n=!1)=>(n||(e=he(e)),u.recover(e,u.encodeSignature(re(t))).toLowerCase()),me=e=>{let n="0x"===e.slice(0,2)?e:"0x"+e;if(ae(n)&&(n=ce(n)),65!==t.byteLength(n,"hex"))throw new Error("Invalid public key: "+e);const r=o.keccak256(n),i="0x"+r.slice(-40),s=o.keccak256s(i.slice(2));let f="0x";for(let t=0;t<40;t++)f+=parseInt(s[t+2],16)>7?i[t+2].toUpperCase():i[t+2];return f};e.exports={BN:i,isBN:b,BigNumber:s,isBigNumber:m,toBN:g,isAddress:y,isBloom:K,isTopic:B,checkAddressChecksum:w,utf8ToHex:T,hexToUtf8:x,hexToNumber:_,hexToNumberString:A,numberToHex:P,toHex:N,bufferToHex:I,toBuffer:F,numberToBuffer:O,hexToBytes:S,bytesToHex:C,isHex:R,isHexStrict:L,leftPad:v,rightPad:E,toTwosComplement:k,sha3:z,parsePredefinedBlockNumber:H,isPredefinedBlockNumber:G,isValidBlockNumberCandidate:V,isValidPrivateKey:Z,isValidNSHSN:X,parsePrivateKey:$,parseKlaytnWalletKey:q,isKlaytnWalletKey:Y,isContractDeployment:ue,rlpEncode:J,rlpDecode:Q,xyPointFromPublicKey:ee,resolveSignature:re,transformSignaturesToObject:ie,getTxTypeStringFromRawTransaction:se,trimLeadingZero:te,makeEven:ne,txTypeToString:h,isValidPublicKey:fe,isCompressedPublicKey:ae,compressPublicKey:oe,decompressPublicKey:ce,isTxHash:D,isTxHashStrict:U,isValidHash:M,isValidHashStrict:j,isValidRole:le,isEmptySig:de,hashMessage:he,recover:be,recoverPublicKey:pe,publicKeyToAddress:me}}).call(this,n("b639").Buffer)},c995:function(e,t,n){"use strict";const r=n("ed81"),i=n("2612"),{names:s}=n("2387"),{toString:f}=n("b04a"),{fromString:a}=n("36d0"),{concat:o}=n("88ad"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},c9d9:function(e,t,n){"use strict";const{baseTable:r}=n("9bfb"),i={};for(const[s,f]of Object.entries(r))void 0===i[f]&&(i[f]=s);e.exports=Object.freeze(i)},ca35:function(e,t,n){"use strict";e.exports=e=>({gc:n("491e")(e),stat:n("a3b6")(e),version:n("aa4d")(e)})},ca89:function(e,t,n){"use strict";const r=n("ed68"),i=n("2612"),{names:s}=n("13e3"),{toString:f}=n("5be0"),{fromString:a}=n("ba36"),{concat:o}=n("a015"),c={};for(const v in s){const e=v;c[s[e]]=e}function u(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(e,"base16")}function l(e){return a(e,"base16")}function d(e){if(!(e instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return f(r.encode("base58btc",e)).slice(1)}function h(e){const t=e instanceof Uint8Array?f(e):e;return r.decode("z"+t)}function p(e){if(!(e instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const t=i.decode(e);if(!k(t))throw new Error("multihash unknown function code: 0x"+t.toString(16));e=e.slice(i.decode.bytes);const n=i.decode(e);if(n<0)throw new Error("multihash invalid length: "+n);if(e=e.slice(i.decode.bytes),e.length!==n)throw new Error("multihash length inconsistent: 0x"+f(e,"base16"));return{code:t,name:c[t],length:n,digest:e}}function b(e,t,n){if(!e||void 0===t)throw new Error("multihash encode requires at least two args: digest, code");const r=m(t);if(!(e instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(null==n&&(n=e.length),n&&e.length!==n)throw new Error("digest length should be equal to specified length.");const s=i.encode(r),f=i.encode(n);return o([s,f,e],s.length+f.length+e.length)}function m(e){let t=e;if("string"===typeof e){if(void 0===s[e])throw new Error("Unrecognized hash function named: "+e);t=s[e]}if("number"!==typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===c[t]&&!g(t))throw new Error("Unrecognized function code: "+t);return t}function g(e){return e>0&&e<16}function k(e){return!!g(e)||!!c[e]}function y(e){p(e)}function w(e){return y(e),e.subarray(0,2)}Object.freeze(c),e.exports={names:s,codes:c,toHexString:u,fromHexString:l,toB58String:d,fromB58String:h,decode:p,encode:b,coerceCode:m,isAppCode:g,validate:y,prefix:w,isValidCode:k}},ca9f:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},cc31:function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("object/new",{timeout:t.timeout,signal:t.signal,searchParams:s({arg:t.template,...t}),headers:t.headers}),{Hash:i}=await n.json();return new r(i)})},cc3d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("45ee");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},cc64:function(e,t,n){const r=n("4f8d"),{ACCOUNT_KEY_TAG:i}=n("bd78");class s{static decode(e){if(e=r.addHexPrefix(e),!e.startsWith(i.ACCOUNT_KEY_FAIL_TAG))throw new Error(`Cannot decode to AccountKeyFail. The prefix must be ${i.ACCOUNT_KEY_FAIL_TAG}: ${e}`);return new s}getRLPEncoding(){return i.ACCOUNT_KEY_FAIL_TAG}}e.exports=s},cdbd:function(e,t,n){"use strict";const{baseTable:r}=n("52f7"),i=n("af6c").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},ce42c:function(e,t,n){const r=n("1d7f"),i=n("c629"),s=n("1546"),f=n("c960").isAddress,a=n("4f8d").addHexPrefix;class o{static fromObject(e){return new o(e.address,new r(e.privateKey))}static isAccountKey(e){let t=!1;return e instanceof r&&(t=!0),e instanceof i&&(t=!0),e instanceof s&&(t=!0),t}constructor(e,t){if(!e||!t)throw new Error("Failed to create Account. address and accountKey are needed to create Account.");if(!f(e))throw new Error("Invalid address : "+e);if(!o.isAccountKey(t))throw new Error("Invalid accountKey.");e=a(e),Object.defineProperty(this,"address",{get:function(){return e},set:function(t){if(!f(t))throw new Error("Invalid address : "+t);e=a(t)},enumerable:!0}),Object.defineProperty(this,"accountKey",{get:function(){return t},set:function(e){if(!o.isAccountKey(e)&&null!==e)throw new Error("Invalid accountKey.");null===t||null===e||t.type!==e.type?t=e:t.update(e)},enumerable:!0,configurable:!0}),Object.defineProperty(this,"privateKey",{get:function(){return this.accountKey.defaultKey},set:function(){throw new Error("The privateKey cannot be modified. The privateKey is set to default key of accountKey, so update accountKey to modify the privateKey.")},enumerable:!0})}get keys(){return this.accountKey.keys}get accountKeyType(){return this.accountKey.type}get transactionKey(){return this.accountKey.transactionKey}get updateKey(){return this.accountKey.updateKey}get feePayerKey(){return this.accountKey.feePayerKey}toPublicKey(e){return this.accountKey.toPublicKey(e)}}e.exports=o},ce8a:function(e,t,n){"use strict";const r=n("b6aa"),i=n("6017"),s=n("a127"),f=n("5d6d"),{isBytes:a,isBlob:o,isReadableStream:c,isFileObject:u,mtimeToObject:l,modeToNumber:d}=n("abb1");async function h(e,t){const{path:n,mode:r,mtime:i,content:s}=e,f={path:n||"",mode:d(r),mtime:l(i)};return s?f.content=await t(s):n||(f.content=await t(e)),f}e.exports=async function*(e,t){if(null===e||void 0===e)throw r(new Error("Unexpected input: "+e),"ERR_UNEXPECTED_INPUT");if("string"===typeof e||e instanceof String)yield h(e.toString(),t);else if(a(e)||o(e))yield h(e,t);else{if(c(e)&&(e=i(e)),e[Symbol.iterator]||e[Symbol.asyncIterator]){const n=s(e),{value:r,done:i}=await n.peek();if(i)return void(yield*[]);if(n.push(r),Number.isInteger(r)||a(r))return void(yield h(n,t));if(u(r)||o(r)||"string"===typeof r||r instanceof String)return void(yield*f(n,e=>h(e,t)));if(r[Symbol.iterator]||r[Symbol.asyncIterator]||c(r))return void(yield*f(n,e=>h(e,t)))}if(!u(e))throw r(new Error("Unexpected input: "+typeof e),"ERR_UNEXPECTED_INPUT");yield h(e,t)}}},ce9f:function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},cea9:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},cf29:function(e,t,n){"use strict";const r=n("8804"),{findSources:i}=n("d6ea"),s=n("9878"),f=n("15e4");e.exports=s(e=>{async function t(...t){const{sources:n,options:s}=i(t),a=await e.post("files/cp",{timeout:s.timeout,signal:s.signal,searchParams:f({arg:n.map(e=>r.isCID(e)?"/ipfs/"+e:e),...s}),headers:s.headers});await a.text()}return t})},cf49:function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},cf7e:function(e,t,n){"use strict";const r=new TextDecoder,i=e=>r.decode(e),s=new TextEncoder,f=e=>s.encode(e);function a(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:i,encodeText:f,concat:a}},cf9b:function(e,t,n){const r=n("9bc8");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},cfce:function(e,t,n){"use strict";t.defined=function(e){return null!==e&&void 0!==e&&("number"!==typeof e||!isNaN(e))}},d0f1:function(e,t,n){"use strict";const r=n("1c55"),i=n("b762"),s=n("9c3b"),f=n("8741"),a=n("2612"),o=function(e){if(!e)return null;const t={};return Object.keys(e).forEach((function(n){t[n]=e[n].value})),t};e.exports=function(e,t){const n={},c={},u={},l=function(e,t){e.enums&&e.enums.forEach((function(e){e.id=t+(t?".":"")+e.name,c[e.id]=e,l(e,e.id)})),e.messages&&e.messages.forEach((function(r){r.id=t+(t?".":"")+r.name,n[r.id]=r,r.fields.forEach((function(r){if(!r.map)return;const i="Map_"+r.map.from+"_"+r.map.to,s={name:i,enums:[],messages:[],fields:[{name:"key",type:r.map.from,tag:1,repeated:!1,required:!0},{name:"value",type:r.map.to,tag:2,repeated:!1,required:!1}],extensions:null,id:t+(t?".":"")+i};n[s.id]||(n[s.id]=s,e.messages.push(s)),r.type=i,r.repeated=!0})),l(r,r.id)}))};l(e,"");const d=function(e){const t=Object.keys(e.values||[]).map((function(t){return parseInt(e.values[t].value,10)})),n=function e(n,r,i,s){if(!t.length||-1===t.indexOf(n))throw new Error("Invalid enum value: "+n);return a.encode(n,r,s),e.bytes=a.encode.bytes,r},i=function e(n,r,i){var s=a.decode(n,i);if(!t.length||-1===t.indexOf(s))throw new Error("Invalid enum value: "+s);return e.bytes=a.decode.bytes,s};return r.make(0,n,i,a.encodingLength)},h=function(e,t){e.messages.forEach((function(n){t[n.name]=p(n.name,e.id)})),e.enums.forEach((function(e){t[e.name]=o(e.values)})),t.type=2,t.message=!0,t.name=e.name;const n={};e.fields.forEach((function(e){e.oneof&&(n[e.oneof]||(n[e.oneof]=[]),n[e.oneof].push(e.name))}));const r=e.fields.map((function(t){return p(t.type,e.id)})),a=f(e,r,n),c=s(e,p,r,n,a),u=i(e,p,r);return c.bytes=u.bytes=0,t.buffer=!0,t.encode=c,t.decode=u,t.encodingLength=a,t},p=function(e,i,s){if(t&&t[e])return t[e];if(r[e])return r[e];const f=(i?i+"."+e:e).split(".").map((function(t,n,r){return r.slice(0,n).concat(e).join(".")})).reverse().reduce((function(e,t){return e||n[t]||c[t]}),null);if(!1===s)return f;if(!f)throw new Error("Could not resolve "+e);if(f.values)return d(f);const a=u[f.id]||h(f,u[f.id]={});return a};return(e.enums||[]).concat((e.messages||[]).map((function(e){return p(e.id)})))}},d118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("826f");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},d2aa:function(e,t,n){"use strict";class r extends Error{constructor(e="Request timed out"){super(e),this.name="TimeoutError"}}t.TimeoutError=r;class i extends Error{constructor(e="The operation was aborted."){super(e),this.name="AbortError"}}t.AbortError=i;class s extends Error{constructor(e){super(e.statusText),this.name="HTTPError",this.response=e}}t.HTTPError=s},d335:function(e,t,n){n("2708");const r=(e,t)=>parseInt(e.slice(2*t+2,2*t+4),16),i=e=>{let t;t="undefined"!==typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(e)):n("1c46").randomBytes(e);let r="0x";for(let n=0;n(e.length-2)/2,f=e=>"0x"+e.reduce((e,t)=>e+t.slice(2),""),a=(e,t,n)=>"0x"+n.slice(2*e+2,2*t+2),o=e=>{let t="0x";for(let n=0,r=s(e);nt.length===2*e+2?t:c(e,"0x0"+t.slice(2)),u=(e,t)=>t.length===2*e+2?t:u(e,t+"0"),l=e=>{let t=[];for(let n=2,r=e.length;n{let t="0x";for(let n=0,r=e.length;nnew Uint8Array(l(e)),p=e=>d([].slice.call(e,0)),b=e=>{let t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},m=e=>parseInt(e.slice(2),16),g=(e,t)=>e.concat(t.slice(2)),k=e=>"0x0"===e?"0x":e.length%2===0?e:"0x0"+e.slice(2),y=e=>"0"===e[2]?"0x"+e.slice(3):e,w=e=>{let t="0x";for(let n=0;n{let t="";for(let n=2;n{const t=e=>{const t=e.toString(16);return t.length<2?"0"+t:t};let n="0x";for(let r=0;r!=e.length;r++){let i=e.charCodeAt(r);if(i<128)n+=t(i);else{if(i<2048)n+=t(i>>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;let s=e.charCodeAt(r);if(s<56320||s>57343)return null;i=65536+((1023&i)<<10)+(1023&s),n+=t(i>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(63&i|128)}}return n},T=e=>{let t="",n=0,i=s(e);while(n127){if(s>191&&s<224){if(n>=i)return null;s=(31&s)<<6|63&r(e,n)}else if(s>223&&s<240){if(n+1>=i)return null;s=(15&s)<<12|(63&r(e,n))<<6|63&r(e,++n)}else{if(!(s>239&&s<248))return null;if(n+2>=i)return null;s=(7&s)<<18|(63&r(e,n))<<12|(63&r(e,++n))<<6|63&r(e,++n)}++n}if(s<=65535)t+=String.fromCharCode(s);else{if(!(s<=1114111))return null;s-=65536,t+=String.fromCharCode(s>>10|55296),t+=String.fromCharCode(1023&s|56320)}}return t};e.exports={random:i,length:s,concat:g,flatten:f,slice:a,reverse:o,pad:c,padRight:u,fromAscii:w,toAscii:v,fromString:E,toString:T,fromNumber:b,toNumber:m,fromNat:k,toNat:y,fromArray:d,toArray:l,fromUint8Array:p,toUint8Array:h}},d3f4:function(e,t,n){const r=n("f349");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},d3f8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74");const i=r.rfc4648({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});t.base2=i},d435:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("0887");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},d46b:function(e,t,n){"use strict";const r=n("13a4");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}e.exports=i},d4dd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("fb86"),i=n("ac1b"),s=n("dd7b"),f=n("9a44"),a=n("29f9");t.CID=r.CID,t.varint=i,t.bytes=s,t.hasher=f,t.digest=a},d556:function(e,t,n){"use strict";const r=n("7a09"),{encodeText:i,decodeText:s,concat:f}=n("cf49");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},d5915:function(e,t,n){"use strict";const r=n("9546");function i(e){return 4}function s(e,t,n,r){n.setInt32(r,e,!0),s.bytes=4}function f(e,t,n){const r=t.getInt32(n,!0);return f.bytes=4,r}e.exports=r(5,s,f,i)},d6ea:function(e,t,n){"use strict";t.findSources=e=>{let t={},n=[];return Array.isArray(e[e.length-1])||"object"!==typeof e[e.length-1]||(t=e.pop()),n=1===e.length&&Array.isArray(e[0])?e[0]:e,{sources:n,options:t}}},d72a:function(e,t,n){"use strict";const r=n("2054"),i=n("9878"),s=n("15e4");e.exports=i(e=>async(t={})=>{const n=await e.post("swarm/addrs",{timeout:t.timeout,signal:t.signal,searchParams:s(t),headers:t.headers}),{Addrs:i}=await n.json();return Object.keys(i).map(e=>({id:e,addrs:(i[e]||[]).map(e=>r(e))}))})},d7c9:function(e,t,n){"use strict";const r=n("9546");function i(){return 1}function s(e,t,n,r){t[r]=e?1:0,s.bytes=1}function f(e,t,n){const r=e[n]>0;return f.bytes=1,r}e.exports=r(0,s,f,i)},d8a4:function(e,t,n){const r=n("2ef0"),i=n("4f8d"),s=n("bfa7"),{KEY_ROLE:f}=n("5fac"),a=n("3867"),{fillWeightedMultiSigOptionsForMultiSig:o}=n("bd78"),{validateForSigning:c,validateIndexWithKeys:u,encryptKey:l,formatEncrypted:d}=n("5fac");class h{constructor(e,t){this.address=e,this.keys=t}get address(){return this._address}set address(e){if(!i.isAddress(e))throw new Error("Invalid address : "+e);this._address=i.addHexPrefix(e).toLowerCase()}get keys(){return this._keys}set keys(e){null!==e?this._keys=p(e):this._key=null}getPublicKey(e=!1){const t=[];for(let n=0;n=f.roleLast||e<0)throw new Error("Invalid role number: "+e);return this.keys}toAccount(e){if(r.isArray(e))throw new Error("For AccountKeyWeightedMultiSig, options cannot be defined as an array of WeightedMultiSigOptions.");e=o(this.keys.length,e);const t=this.getPublicKey();return a.createWithAccountKeyWeightedMultiSig(this.address,t,e)}encrypt(e,t={}){let n=[];return n=l(this.keys,e,t),d(4,this.address,n,t)}getKlaytnWalletKey(){throw new Error("Not supported for this class.")}encryptV3(e,t){throw new Error("Not supported for this class. Use 'keyring.encrypt(password)'.")}isDecoupled(){return!0}}function p(e){if(!r.isArray(e))throw new Error("Invalid parameter. The private keys to add should be defined as an array.");const t=[];for(let n=0;n{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},da951:function(e,t,n){"use strict";const r=n("2612"),{fromString:i}=n("7187"),{toString:s}=n("0778"),f=n("9546");function a(e){const t=i(e).byteLength;return r.encodingLength(t)+t}function o(e,t,n,s){const f=s,a=i(e).byteLength;r.encode(a,t,s,"utf-8"),s+=r.encode.bytes;const c=i(e);t.set(c,s),s+=c.length,o.bytes=s-f}function c(e,t,n){const i=n,f=r.decode(e,n);n+=r.decode.bytes;const a=s(e.subarray(n,n+f));return n+=f,c.bytes=n-i,a}e.exports=f(2,o,c,a)},dac4:function(e,t,n){const{Buffer:r}=n("b639"),i=n("3301"),{S_IFMT:s,S_IFBLK:f,S_IFCHR:a,S_IFDIR:o,S_IFIFO:c,S_IFLNK:u}=n("6aa7"),l=n("dad8"),d=n("76b6"),h=parseInt("755",8),p=parseInt("644",8),b=r.alloc(1024);function m(e){switch(e&s){case f:return"block-device";case a:return"character-device";case o:return"directory";case c:return"fifo";case u:return"symlink"}return"file"}function g(e){if(e&=511,e)return new i(b.slice(0,512-e))}function k(e){if(!e.pax){const t=d.encode(e);if(t)return t}return y(e)}function y(e){const t=d.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),n={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};return new i([d.encode(n),t,g(t.length),d.encode({...n,size:e.size,type:e.type})])}e.exports=()=>async function*(e){for await(let{header:t,body:n}of e){if(t.size&&"symlink"!==t.type||(t.size=0),t.type||(t.type=m(t.mode)),t.mode||(t.mode="directory"===t.type?h:p),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),"string"===typeof n&&(n=r.from(n)),r.isBuffer(n)||i.isBufferList(n)){t.size=n.length,yield new i([k(t),n,g(t.size)]);continue}if("symlink"===t.type&&!t.linkname){t.linkname=(await l(n)).toString(),yield k(t);continue}if(yield k(t),"file"!==t.type&&"contiguous-file"!==t.type)continue;let e=0;for await(const t of n)e+=t.length,yield i.isBufferList(t)?t:new i(t);if(e!==t.size)throw new Error("size mismatch");const s=g(t.size);s&&(yield s)}yield new i(b)}},dac9:function(e,t,n){var r;(function(i){"use strict";var s,f=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,o=Math.floor,c="[BigNumber Error] ",u=c+"Number primitive has more than 15 significant digits: ",l=1e14,d=14,h=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],b=1e7,m=1e9;function g(e){var t,n,r,i=D.prototype={constructor:D,toString:null,valueOf:null},s=new D(1),_=20,A=4,P=-7,C=21,S=-1e7,N=1e7,I=!1,F=1,O=0,L={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"Ā ",suffix:""},R="0123456789abcdefghijklmnopqrstuvwxyz";function D(e,t){var i,s,a,c,l,p,b,m,g=this;if(!(g instanceof D))return new D(e,t);if(null==t){if(e instanceof D)return g.s=e.s,g.e=e.e,void(g.c=(e=e.c)?e.slice():e);if(p="number"==typeof e,p&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,l=e;l>=10;l/=10,c++);return g.e=c,void(g.c=[e])}m=String(e)}else{if(m=String(e),!f.test(m))return r(g,m,p);g.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(c=m.indexOf("."))>-1&&(m=m.replace(".","")),(l=m.search(/e/i))>0?(c<0&&(c=l),c+=+m.slice(l+1),m=m.substring(0,l)):c<0&&(c=m.length)}else{if(v(t,2,R.length,"Base"),m=String(e),10==t)return g=new D(e instanceof D?e:m),K(g,_+g.e+1,A);if(p="number"==typeof e,p){if(0*e!=0)return r(g,m,p,t);if(g.s=1/e<0?(m=m.slice(1),-1):1,D.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(u+e);p=!1}else g.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(i=R.slice(0,t),c=l=0,b=m.length;lc){c=b;continue}}else if(!a&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){a=!0,l=-1,c=0;continue}return r(g,String(e),p,t)}m=n(m,t,10,g.s),(c=m.indexOf("."))>-1?m=m.replace(".",""):c=m.length}for(l=0;48===m.charCodeAt(l);l++);for(b=m.length;48===m.charCodeAt(--b););if(m=m.slice(l,++b),m){if(b-=l,p&&D.DEBUG&&b>15&&(e>h||e!==o(e)))throw Error(u+g.s*e);if(c=c-l-1,c>N)g.c=g.e=null;else if(c=C)?T(o,f):x(o,f,"0");else if(e=K(new D(e),t,n),s=e.e,o=y(e.c),a=o.length,1==r||2==r&&(t<=s||s<=P)){for(;aa){if(--t>0)for(o+=".";t--;o+="0");}else if(t+=s-a,t>0)for(s+1==a&&(o+=".");t--;o+="0");return e.s<0&&i?"-"+o:o}function U(e,t){for(var n,r=1,i=new D(e[0]);r=10;i/=10,r++);return(n=r+n*d-1)>N?e.c=e.e=null:n=10;c/=10,i++);if(s=t-i,s<0)s+=d,f=t,u=m[h=0],b=u/g[i-f-1]%10|0;else if(h=a((s+1)/d),h>=m.length){if(!r)break e;for(;m.length<=h;m.push(0));u=b=0,i=1,s%=d,f=s-d+1}else{for(u=c=m[h],i=1;c>=10;c/=10,i++);s%=d,f=s-d+i,b=f<0?0:u/g[i-f-1]%10|0}if(r=r||t<0||null!=m[h+1]||(f<0?u:u%g[i-f-1]),r=n<4?(b||r)&&(0==n||n==(e.s<0?3:2)):b>5||5==b&&(4==n||r||6==n&&(s>0?f>0?u/g[i-f]:0:m[h-1])%10&1||n==(e.s<0?8:7)),t<1||!m[0])return m.length=0,r?(t-=e.e+1,m[0]=g[(d-t%d)%d],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=h,c=1,h--):(m.length=h+1,c=g[d-s],m[h]=f>0?o(u/g[i-f]%g[f])*c:0),r)for(;;){if(0==h){for(s=1,f=m[0];f>=10;f/=10,s++);for(f=m[0]+=c,c=1;f>=10;f/=10,c++);s!=c&&(e.e++,m[0]==l&&(m[0]=1));break}if(m[h]+=c,m[h]!=l)break;m[h--]=0,c=1}for(s=m.length;0===m[--s];m.pop());}e.e>N?e.c=e.e=null:e.e=C?T(t,n):x(t,n,"0"),e.s<0?"-"+t:t)}return D.clone=g,D.ROUND_UP=0,D.ROUND_DOWN=1,D.ROUND_CEIL=2,D.ROUND_FLOOR=3,D.ROUND_HALF_UP=4,D.ROUND_HALF_DOWN=5,D.ROUND_HALF_EVEN=6,D.ROUND_HALF_CEIL=7,D.ROUND_HALF_FLOOR=8,D.EUCLID=9,D.config=D.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(n=e[t],v(n,0,m,t),_=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(n=e[t],v(n,0,8,t),A=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&(n=e[t],n&&n.pop?(v(n[0],-m,0,t),v(n[1],0,m,t),P=n[0],C=n[1]):(v(n,-m,m,t),P=-(C=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if(n=e[t],n&&n.pop)v(n[0],-m,-1,t),v(n[1],1,m,t),S=n[0],N=n[1];else{if(v(n,-m,m,t),!n)throw Error(c+t+" cannot be zero: "+n);S=-(N=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if(n=e[t],n!==!!n)throw Error(c+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw I=!n,Error(c+"crypto unavailable");I=n}else I=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(n=e[t],v(n,0,9,t),F=n),e.hasOwnProperty(t="POW_PRECISION")&&(n=e[t],v(n,0,m,t),O=n),e.hasOwnProperty(t="FORMAT")){if(n=e[t],"object"!=typeof n)throw Error(c+t+" not an object: "+n);L=n}if(e.hasOwnProperty(t="ALPHABET")){if(n=e[t],"string"!=typeof n||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(c+t+" invalid: "+n);R=n}}return{DECIMAL_PLACES:_,ROUNDING_MODE:A,EXPONENTIAL_AT:[P,C],RANGE:[S,N],CRYPTO:I,MODULO_MODE:F,POW_PRECISION:O,FORMAT:L,ALPHABET:R}},D.isBigNumber=function(e){return e instanceof D||e&&!0===e._isBigNumber||!1},D.maximum=D.max=function(){return U(arguments,i.lt)},D.minimum=D.min=function(){return U(arguments,i.gt)},D.random=function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return o(Math.random()*e)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(e){var n,r,i,f,u,l=0,h=[],b=new D(s);if(null==e?e=_:v(e,0,m),f=a(e/d),I)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(f*=2));l>>11),u>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(h.push(u%1e14),l+=2);l=f/2}else{if(!crypto.randomBytes)throw I=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(f*=7);l=9e15?crypto.randomBytes(7).copy(n,l):(h.push(u%1e14),l+=7);l=f/7}if(!I)for(;l=10;u/=10,l++);ln-1&&(null==f[i+1]&&(f[i+1]=0),f[i+1]+=f[i]/n|0,f[i]%=n)}return f.reverse()}return function(r,i,s,f,a){var o,c,u,l,d,h,p,b,m=r.indexOf("."),g=_,k=A;for(m>=0&&(l=O,O=0,r=r.replace(".",""),b=new D(i),h=b.pow(r.length-m),O=l,b.c=n(x(y(h.c),h.e,"0"),10,s,e),b.e=b.c.length),p=n(r,i,s,a?(o=R,e):(o=e,R)),u=l=p.length;0==p[--l];p.pop());if(!p[0])return o.charAt(0);if(m<0?--u:(h.c=p,h.e=u,h.s=f,h=t(h,b,g,k,s),p=h.c,d=h.r,u=h.e),c=u+g+1,m=p[c],l=s/2,d=d||c<0||null!=p[c+1],d=k<4?(null!=m||d)&&(0==k||k==(h.s<0?3:2)):m>l||m==l&&(4==k||d||6==k&&1&p[c-1]||k==(h.s<0?8:7)),c<1||!p[0])r=d?x(o.charAt(1),-g,o.charAt(0)):o.charAt(0);else{if(p.length=c,d)for(--s;++p[--c]>s;)p[c]=0,c||(++u,p=[1].concat(p));for(l=p.length;!p[--l];);for(m=0,r="";m<=l;r+=o.charAt(p[m++]));r=x(r,u,o.charAt(0))}return r}}(),t=function(){function e(e,t,n){var r,i,s,f,a=0,o=e.length,c=t%b,u=t/b|0;for(e=e.slice();o--;)s=e[o]%b,f=e[o]/b|0,r=u*s+f*c,i=c*s+r%b*b+a,a=(i/n|0)+(r/b|0)+u*f,e[o]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,s;if(n!=r)s=n>r?1:-1;else for(i=s=0;it[i]?1:-1;break}return s}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]1;e.splice(0,1));}return function(r,i,s,f,a){var c,u,h,p,b,m,g,y,w,v,E,T,x,_,A,P,C,S=r.s==i.s?1:-1,N=r.c,I=i.c;if(!N||!N[0]||!I||!I[0])return new D(r.s&&i.s&&(N?!I||N[0]!=I[0]:I)?N&&0==N[0]||!I?0*S:S/0:NaN);for(y=new D(S),w=y.c=[],u=r.e-i.e,S=s+u+1,a||(a=l,u=k(r.e/d)-k(i.e/d),S=S/d|0),h=0;I[h]==(N[h]||0);h++);if(I[h]>(N[h]||0)&&u--,S<0)w.push(1),p=!0;else{for(_=N.length,P=I.length,h=0,S+=2,b=o(a/(I[0]+1)),b>1&&(I=e(I,b,a),N=e(N,b,a),P=I.length,_=N.length),x=P,v=N.slice(0,P),E=v.length;E=a/2&&A++;do{if(b=0,c=t(I,v,P,E),c<0){if(T=v[0],P!=E&&(T=T*a+(v[1]||0)),b=o(T/A),b>1){b>=a&&(b=a-1),m=e(I,b,a),g=m.length,E=v.length;while(1==t(m,v,g,E))b--,n(m,P=10;S/=10,h++);K(y,s+(y.e=h+u*d-1)+1,f,p)}else y.e=u,y.r=+p;return y}}(),r=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,f,a,o){var u,l=a?f:f.replace(i,"");if(r.test(l))s.s=isNaN(l)?null:l<0?-1:1,s.c=s.e=null;else{if(!a&&(l=l.replace(e,(function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,o&&o!=u?e:t})),o&&(u=o,l=l.replace(t,"$1").replace(n,"0.$1")),f!=l))return new D(l,u);if(D.DEBUG)throw Error(c+"Not a"+(o?" base "+o:"")+" number: "+f);s.c=s.e=s.s=null}}}(),i.absoluteValue=i.abs=function(){var e=new D(this);return e.s<0&&(e.s=1),e},i.comparedTo=function(e,t){return w(this,new D(e,t))},i.decimalPlaces=i.dp=function(e,t){var n,r,i,s=this;if(null!=e)return v(e,0,m),null==t?t=A:v(t,0,8),K(new D(s),e+s.e+1,t);if(!(n=s.c))return null;if(r=((i=n.length-1)-k(this.e/d))*d,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(e,n){return t(this,new D(e,n),_,A)},i.dividedToIntegerBy=i.idiv=function(e,n){return t(this,new D(e,n),0,1)},i.exponentiatedBy=i.pow=function(e,t){var n,r,i,f,u,l,h,p,b,m=this;if(e=new D(e),e.c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+B(e));if(null!=t&&(t=new D(t)),l=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return b=new D(Math.pow(+B(m),l?2-E(e):+B(e))),t?b.mod(t):b;if(h=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new D(NaN);r=!h&&m.isInteger()&&t.isInteger(),r&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||l&&m.c[1]>=24e7:m.c[0]<8e13||l&&m.c[0]<=9999975e7)))return f=m.s<0&&E(e)?-0:0,m.e>-1&&(f=1/f),new D(h?1/f:f);O&&(f=a(O/d+2))}for(l?(n=new D(.5),h&&(e.s=1),p=E(e)):(i=Math.abs(+B(e)),p=i%2),b=new D(s);;){if(p){if(b=b.times(m),!b.c)break;f?b.c.length>f&&(b.c.length=f):r&&(b=b.mod(t))}if(i){if(i=o(i/2),0===i)break;p=i%2}else if(e=e.times(n),K(e,e.e+1,1),e.e>14)p=E(e);else{if(i=+B(e),0===i)break;p=i%2}m=m.times(m),f?m.c&&m.c.length>f&&(m.c.length=f):r&&(m=m.mod(t))}return r?b:(h&&(b=s.div(b)),t?b.mod(t):f?K(b,O,A,u):b)},i.integerValue=function(e){var t=new D(this);return null==e?e=A:v(e,0,8),K(t,t.e+1,e)},i.isEqualTo=i.eq=function(e,t){return 0===w(this,new D(e,t))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(e,t){return w(this,new D(e,t))>0},i.isGreaterThanOrEqualTo=i.gte=function(e,t){return 1===(t=w(this,new D(e,t)))||0===t},i.isInteger=function(){return!!this.c&&k(this.e/d)>this.c.length-2},i.isLessThan=i.lt=function(e,t){return w(this,new D(e,t))<0},i.isLessThanOrEqualTo=i.lte=function(e,t){return-1===(t=w(this,new D(e,t)))||0===t},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(e,t){var n,r,i,s,f=this,a=f.s;if(e=new D(e,t),t=e.s,!a||!t)return new D(NaN);if(a!=t)return e.s=-t,f.plus(e);var o=f.e/d,c=e.e/d,u=f.c,h=e.c;if(!o||!c){if(!u||!h)return u?(e.s=-t,e):new D(h?f:NaN);if(!u[0]||!h[0])return h[0]?(e.s=-t,e):new D(u[0]?f:3==A?-0:0)}if(o=k(o),c=k(c),u=u.slice(),a=o-c){for((s=a<0)?(a=-a,i=u):(c=o,i=h),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(s=(a=u.length)<(t=h.length))?a:t,a=t=0;t0)for(;t--;u[n++]=0);for(t=l-1;r>a;){if(u[--r]=0;){for(n=0,p=T[i]%w,m=T[i]/w|0,f=o,s=i+f;s>i;)c=E[--f]%w,u=E[f]/w|0,a=m*c+u*p,c=p*c+a%w*w+g[s]+n,n=(c/y|0)+(a/w|0)+m*u,g[s--]=c%y;g[s]=n}return n?++r:g.splice(0,1),j(e,g,r)},i.negated=function(){var e=new D(this);return e.s=-e.s||null,e},i.plus=function(e,t){var n,r=this,i=r.s;if(e=new D(e,t),t=e.s,!i||!t)return new D(NaN);if(i!=t)return e.s=-t,r.minus(e);var s=r.e/d,f=e.e/d,a=r.c,o=e.c;if(!s||!f){if(!a||!o)return new D(i/0);if(!a[0]||!o[0])return o[0]?e:new D(a[0]?r:0*i)}if(s=k(s),f=k(f),a=a.slice(),i=s-f){for(i>0?(f=s,n=o):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for(i=a.length,t=o.length,i-t<0&&(n=o,o=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+o[t]+i)/l|0,a[t]=l===a[t]?0:a[t]%l;return i&&(a=[i].concat(a),++f),j(e,a,f)},i.precision=i.sd=function(e,t){var n,r,i,s=this;if(null!=e&&e!==!!e)return v(e,1,m),null==t?t=A:v(t,0,8),K(new D(s),e,t);if(!(n=s.c))return null;if(i=n.length-1,r=i*d+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&s.e+1>r&&(r=s.e+1),r},i.shiftedBy=function(e){return v(e,-h,h),this.times("1e"+e)},i.squareRoot=i.sqrt=function(){var e,n,r,i,s,f=this,a=f.c,o=f.s,c=f.e,u=_+4,l=new D("0.5");if(1!==o||!a||!a[0])return new D(!o||o<0&&(!a||a[0])?NaN:a?f:1/0);if(o=Math.sqrt(+B(f)),0==o||o==1/0?(n=y(a),(n.length+c)%2==0&&(n+="0"),o=Math.sqrt(+n),c=k((c+1)/2)-(c<0||c%2),o==1/0?n="1e"+c:(n=o.toExponential(),n=n.slice(0,n.indexOf("e")+1)+c),r=new D(n)):r=new D(o+""),r.c[0])for(c=r.e,o=c+u,o<3&&(o=0);;)if(s=r,r=l.times(s.plus(t(f,s,u,1))),y(s.c).slice(0,o)===(n=y(r.c)).slice(0,o)){if(r.e0&&b>0){for(s=b%a||a,l=p.substr(0,s);s0&&(l+=u+p.slice(s)),h&&(l="-"+l)}r=d?l+(n.decimalSeparator||"")+((o=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):l}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(e){var n,r,i,f,a,o,u,l,h,b,m,g,k=this,w=k.c;if(null!=e&&(u=new D(e),!u.isInteger()&&(u.c||1!==u.s)||u.lt(s)))throw Error(c+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+B(u));if(!w)return new D(k);for(n=new D(s),h=r=new D(s),i=l=new D(s),g=y(w),a=n.e=g.length-k.e-1,n.c[0]=p[(o=a%d)<0?d+o:o],e=!e||u.comparedTo(n)>0?a>0?n:h:u,o=N,N=1/0,u=new D(g),l.c[0]=0;;){if(b=t(u,n,0,1),f=r.plus(b.times(i)),1==f.comparedTo(e))break;r=i,i=f,h=l.plus(b.times(f=h)),l=f,n=u.minus(b.times(f=n)),u=f}return f=t(e.minus(r),i,0,1),l=l.plus(f.times(h)),r=r.plus(f.times(i)),l.s=h.s=k.s,a*=2,m=t(h,i,a,A).minus(k).abs().comparedTo(t(l,r,a,A).minus(k).abs())<1?[h,i]:[l,r],N=o,m},i.toNumber=function(){return+B(this)},i.toPrecision=function(e,t){return null!=e&&v(e,1,m),M(this,e,t,2)},i.toString=function(e){var t,r=this,i=r.s,s=r.e;return null===s?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=s<=P||s>=C?T(y(r.c),s):x(y(r.c),s,"0"):10===e?(r=K(new D(r),_+s+1,A),t=x(y(r.c),r.e,"0")):(v(e,2,R.length,"Base"),t=n(x(y(r.c),s,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},i.valueOf=i.toJSON=function(){return B(this)},i._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf),null!=e&&D.set(e),D}function k(e){var t=0|e;return e>0||e===t?t:t-1}function y(e){for(var t,n,r=1,i=e.length,s=e[0]+"";rc^n?1:-1;for(a=(o=i.length)<(c=s.length)?o:c,f=0;fs[f]^n?1:-1;return o==c?0:o>c^n?1:-1}function v(e,t,n,r){if(en||e!==(e<0?a(e):o(e)))throw Error(c+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function E(e){var t=e.c.length-1;return k(e.e/d)==t&&e.c[t]%2!=0}function T(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t"",buffer:()=>r()};e.exports=async(e,t)=>{if(t=t||{},t.type&&!i[t.type])throw new Error(`invalid type "${t.type}"`);let n,r;for await(const s of e)n||(r=t.type||("string"===typeof s?"string":"buffer"),n=i[r]()),"string"===r?n+=s:n.append(s);return n||i[t.type||"buffer"]()}},dbb5:function(e,t){e.exports={ACCOUNT_UPDATE_TYPE_TAG:"0x20",FEE_DELEGATED_ACCOUNT_UPDATE_TYPE_TAG:"0x21",FEE_DELEGATED_ACCOUNT_UPDATE_WITH_RATIO_TYPE_TAG:"0x22",VALUE_TRANFSER_TYPE_TAG:"0x08",VALUE_TRANSFER_MEMO_TYPE_TAG:"0x10",FEE_DELEGATED_VALUE_TRANSFER_TYPE_TAG:"0x09",FEE_DELEGATED_VALUE_TRANSFER_WITH_RATIO_TYPE_TAG:"0x0a",FEE_DELEGATED_VALUE_TRANSFER_MEMO_TYPE_TAG:"0x11",FEE_DELEGATED_VALUE_TRANSFER_MEMO_WITH_RATIO_TYPE_TAG:"0x12",SMART_CONTRACT_DEPLOY_TYPE_TAG:"0x28",FEE_DELEGATED_SMART_CONTRACT_DEPLOY_TYPE_TAG:"0x29",FEE_DELEGATED_SMART_CONTRACT_DEPLOY_WITH_RATIO_TYPE_TAG:"0x2a",SMART_CONTRACT_EXECUTION_TYPE_TAG:"0x30",FEE_DELEGATED_SMART_CONTRACT_EXECUTION_TYPE_TAG:"0x31",FEE_DELEGATED_SMART_CONTRACT_EXECUTION_WITH_RATIO_TYPE_TAG:"0x32",CANCEL_TYPE_TAG:"0x38",FEE_DELEGATED_CANCEL_TYPE_TAG:"0x39",FEE_DELEGATED_CANCEL_WITH_RATIO_TYPE_TAG:"0x3a",CHAIN_DATA_ANCHORING_TYPE_TAG:"0x48",ACCOUNT_KEY_NIL_TAG:"0x80",ACCOUNT_KEY_LEGACY_TAG:"0x01c0",ACCOUNT_KEY_PUBLIC_TAG:"0x02",ACCOUNT_KEY_FAIL_TAG:"0x03c0",ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG:"0x04",ACCOUNT_KEY_ROLE_BASED_TAG:"0x05",CODE_FORMAT_EVM_TAG:"0x0"}},dc74:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("6e41"),i=n("dd7b");class s{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class f{constructor(e,t,n){this.name=e,this.prefix=t,this.baseDecode=n}decode(e){if("string"!==typeof e)throw Error("Can only multibase decode strings");switch(e[0]){case this.prefix:return this.baseDecode(e.slice(1));default:throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`)}}or(e){return o(this,e)}}class a{constructor(e){this.decoders=e}or(e){return o(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const o=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class c{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new s(e,t,n),this.decoder=new f(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const u=({name:e,prefix:t,encode:n,decode:r})=>new c(e,t,n,r),l=({prefix:e,name:t,alphabet:n})=>{const{encode:s,decode:f}=r(n,t);return u({prefix:e,name:t,encode:s,decode:e=>i.coerce(f(e))})},d=(e,t,n,r)=>{const i={};for(let u=0;u=8&&(a-=8,f[c++]=255&o>>a)}if(a>=n||255&o<<8-a)throw new SyntaxError("Unexpected end of data");return f},h=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<u({prefix:t,name:e,encode(e){return h(e,r,n)},decode(t){return d(t,r,n,e)}});t.Codec=c,t.baseX=l,t.from=u,t.or=o,t.rfc4648=p},dc81:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("fe26"),f=n("f3cb"),a=n("f320"),o=n("cc64"),c=n("4f8d"),{ACCOUNT_KEY_TAG:u}=n("bd78"),{KEY_ROLE:l}=n("5fac"),d=n("e802");function h(e){if(!r.isArray(e))return!1;if(e.length>l.roleLast)return!1;for(const t of e)if(void 0!==t&&!(t instanceof f)&&!(t instanceof a)&&!(t instanceof o)&&!(t instanceof s))return!1;return!0}class p{static decode(e){if(e=c.addHexPrefix(e),!e.startsWith(u.ACCOUNT_KEY_ROLE_BASED_TAG))throw new Error(`Cannot decode to AccountKeyRoleBased. The prefix must be ${u.ACCOUNT_KEY_ROLE_BASED_TAG}: ${e}`);const t=i.decode("0x"+e.slice(u.ACCOUNT_KEY_ROLE_BASED_TAG.length)),n=[];for(const r of t){if(r.startsWith(u.ACCOUNT_KEY_ROLE_BASED_TAG))throw new Error("Nested role based key.");if(r.startsWith(u.ACCOUNT_KEY_NIL_TAG))n.push(void 0);else if(r.startsWith(u.ACCOUNT_KEY_LEGACY_TAG))n.push(f.decode(r));else if(r.startsWith(u.ACCOUNT_KEY_PUBLIC_TAG))n.push(a.decode(r));else if(r.startsWith(u.ACCOUNT_KEY_FAIL_TAG))n.push(o.decode(r));else{if(!r.startsWith(u.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG))throw new Error("Failed to decode RLP-encoded account key. Invalid RLP-encoded account key "+r);n.push(s.decode(r))}}return new p(n)}static fromRoleBasedPublicKeysAndOptions(e,t){t||(t=Array(l.roleLast).fill(new d));const n=[];for(let i=0;i{if("%%"===t)return"%";a++;const s=r.formatters[i];if("function"===typeof s){const r=e[a];t=s.call(n,r),e.splice(a,1),a--}return t}),r.formatArgs.call(n,e);const o=n.log||r.log;o.apply(n,e)}return s.namespace=e,s.useColors=r.useColors(),s.color=r.selectColor(e),s.extend=i,s.destroy=r.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===n?r.enabled(e):n,set:e=>{n=e}}),"function"===typeof r.init&&r.init(s),s}function i(e,t){const n=r(this.namespace+("undefined"===typeof t?":":t)+e);return n.log=this.log,n}function s(e){let t;r.save(e),r.names=[],r.skips=[];const n=("string"===typeof e?e:"").split(/[\s,]+/),i=n.length;for(t=0;t"-"+e)].join(",");return r.enable(""),e}function a(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t{r[t]=e[t]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r}e.exports=r},dce3:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},dd60:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;ne.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),s=e=>{const t=e.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):r},f=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},o=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),c=e=>(new TextEncoder).encode(e),u=e=>(new TextDecoder).decode(e);t.coerce=a,t.empty=r,t.equals=f,t.fromHex=s,t.fromString=c,t.isBinary=o,t.toHex=i,t.toString=u},dd83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("45ee");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},ddcd:function(e,t,n){"use strict";const r=n("d46b"),i=n("9b62"),s=n("34eb")("ipfs-http-client:pubsub:subscribe"),f=n("7ae7"),a=n("9878"),o=n("15e4");async function c(e,{onMessage:t,onEnd:n,onError:f}){f=f||s;try{for await(const n of e)try{if(!n.from)continue;t({from:i(r(n.from,"base64pad"),"base58btc"),data:r(n.data,"base64pad"),seqno:r(n.seqno,"base64pad"),topicIDs:n.topicIDs})}catch(a){a.message="Failed to parse pubsub message: "+a.message,f(a,!1,n)}}catch(a){"aborted"!==a.type&&"AbortError"!==a.name&&f(a,!0)}finally{n()}}e.exports=a((e,t)=>{const n=f.singleton();return async(t,r,i={})=>{let s,f;i.signal=n.subscribe(t,r,i.signal);const a=new Promise((e,t)=>{s=e,f=t}),u=setTimeout(()=>s(),1e3);return setTimeout(()=>{e.post("pubsub/sub",{timeout:i.timeout,signal:i.signal,searchParams:o({arg:t,...i}),headers:i.headers}).catch(e=>{n.unsubscribe(t,r),f(e)}).then(e=>{clearTimeout(u),e&&(c(e.ndjson(),{onMessage:r,onEnd:()=>n.unsubscribe(t,r),onError:i.onError}),s())})},0),a}})},ddce:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2b2d");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},de37:function(e,t,n){const r=n("912f");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},de5e:function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");e.exports=i(e=>{async function*t(t,n={}){const i=await e.post("cat",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:"string"===typeof t?t:new r(t).toString(),...n}),headers:n.headers});yield*i.iterator()}return t})},e010:function(e,t){e.exports=f;var n=128,r=127,i=~r,s=Math.pow(2,31);function f(e,t,r){if(Number.MAX_SAFE_INTEGER&&e>Number.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},e024:function(e,t,n){const r=n("2ef0"),i=n("dac9"),s=n("921c"),{validateDeployParameterForKIP17:f,kip17JsonInterface:a,kip17ByteCode:o,determineSendParams:c,formatParamForUint256:u,interfaceIds:l}=n("9018"),{toBuffer:d,isHexStrict:h,toHex:p}=n("4f8d"),{isAddress:b}=n("4f8d"),m=n("94e5");class g extends s{static deploy(e,t){f(e);const{name:n,symbol:i}=e,s=new g;return r.isString(t)&&(t={from:t,gas:66e5,value:0}),t.gas=void 0!==t.gas?t.gas:66e5,s.deploy({data:o,arguments:[n,i]}).send(t)}static detectInterface(e){const t=new g(e);return t.detectInterface()}constructor(e,t=a){if(e)if(r.isString(e)){if(!b(e))throw new Error("Invalid token address "+e)}else t=e,e=void 0;super(t,e)}clone(e=this.options.address){const t=new this.constructor(e,this.options.jsonInterface);return t.setWallet(this._wallet),t}async detectInterface(){const e={IKIP17:!1,IKIP17Metadata:!1,IKIP17Enumerable:!1,IKIP17Mintable:!1,IKIP17MetadataMintable:!1,IKIP17Burnable:!1,IKIP17Pausable:!1},t="This contract does not support KIP-13.",n=this._address;try{const r=await m.isImplementedKIP13Interface(n);if(!0!==r)throw new Error(t);return e.IKIP17=await this.supportsInterface(l.kip17.IKIP17),!1===e.IKIP17?e:(await Promise.all(Object.keys(l.kip17).map(async t=>{l.kip17[t]!==l.kip17.IKIP17&&(e[t]=await this.supportsInterface(l.kip17[t]))})),e)}catch(r){throw new Error(t)}}async supportsInterface(e){const t=await this.methods.supportsInterface(e).call();return t}async name(){const e=await this.methods.name().call();return e}async symbol(){const e=await this.methods.symbol().call();return e}async tokenURI(e){const t=await this.methods.tokenURI(u(e)).call();return t}async totalSupply(){const e=await this.methods.totalSupply().call();return new i(e)}async tokenOfOwnerByIndex(e,t){const n=await this.methods.tokenOfOwnerByIndex(e,u(t)).call();return new i(n)}async tokenByIndex(e){const t=await this.methods.tokenByIndex(u(e)).call();return new i(t)}async balanceOf(e){const t=await this.methods.balanceOf(e).call();return new i(t)}async ownerOf(e){const t=await this.methods.ownerOf(u(e)).call();return t}async getApproved(e){const t=await this.methods.getApproved(u(e)).call();return t}async isApprovedForAll(e,t){const n=await this.methods.isApprovedForAll(e,t).call();return n}async isMinter(e){const t=await this.methods.isMinter(e).call();return t}async paused(){const e=await this.methods.paused().call();return e}async isPauser(e){const t=await this.methods.isPauser(e).call();return t}async approve(e,t,n={}){const r=this.methods.approve(e,u(t));return n=await c(r,n,this.options),r.send(n)}async setApprovalForAll(e,t,n={}){const r=this.methods.setApprovalForAll(e,t);return n=await c(r,n,this.options),r.send(n)}async transferFrom(e,t,n,r={}){const i=this.methods.transferFrom(e,t,u(n));return r=await c(i,r,this.options),i.send(r)}async safeTransferFrom(e,t,n,i,s={}){if(i&&r.isObject(i)&&(void 0!==i.gas||void 0!==i.from)){if(Object.keys(s).length>0)throw new Error("Invalid parameters");s=i,i=void 0}i&&!r.isBuffer(i)&&(r.isString(i)&&!h(i)&&(i=p(i)),i=d(i));const f=i?this.methods.safeTransferFrom(e,t,u(n),i):this.methods.safeTransferFrom(e,t,u(n));return s=await c(f,s,this.options),f.send(s)}async addMinter(e,t={}){const n=this.methods.addMinter(e);return t=await c(n,t,this.options),n.send(t)}async renounceMinter(e={}){const t=this.methods.renounceMinter();return e=await c(t,e,this.options),t.send(e)}async mint(e,t,n={}){const r=this.methods.mint(e,u(t));return n=await c(r,n,this.options),r.send(n)}async mintWithTokenURI(e,t,n,r={}){const i=this.methods.mintWithTokenURI(e,u(t),n);return r=await c(i,r,this.options),i.send(r)}async burn(e,t={}){const n=this.methods.burn(u(e));return t=await c(n,t,this.options),n.send(t)}async pause(e={}){const t=this.methods.pause();return e=await c(t,e,this.options),t.send(e)}async unpause(e={}){const t=this.methods.unpause();return e=await c(t,e,this.options),t.send(e)}async addPauser(e,t={}){const n=this.methods.addPauser(e);return t=await c(n,t,this.options),n.send(t)}async renouncePauser(e={}){const t=this.methods.renouncePauser();return e=await c(t,e,this.options),t.send(e)}}g.byteCode=o,g.abi=a,e.exports=g},e03b:function(e,t,n){"use strict";const r=n("2bbf"),i=e=>r({exact:!0}).test(e);i.v4=e=>r.v4({exact:!0}).test(e),i.v6=e=>r.v6({exact:!0}).test(e),i.version=e=>i(e)?i.v4(e)?4:6:void 0,e.exports=i},e04b:function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n{async function*t(t,n={}){const f=await e.post("dht/query",{timeout:n.timeout,signal:n.signal,searchParams:a({arg:new r(""+t),...n}),headers:n.headers});for await(let e of f.ndjson())e=s(e),e.id=new r(e.id),e.responses=(e.responses||[]).map(({ID:e,Addrs:t})=>({id:e,addrs:(t||[]).map(e=>i(e))})),yield e}return t})},e12d:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},e166:function(e,t,n){"use strict";const r=n("8804"),i=n("9878"),s=n("15e4");function f(e,t,n){const i={type:e,cid:new r(t)};return n&&(i.metadata=n),i}e.exports=i(e=>async function*(t={}){t.paths&&(t.paths=Array.isArray(t.paths)?t.paths:[t.paths]);const n=await e.post("pin/ls",{timeout:t.timeout,signal:t.signal,searchParams:s({...t,arg:(t.paths||[]).map(e=>""+e),stream:!0}),headers:t.headers});for await(const e of n.ndjson()){if(e.Keys){for(const t of Object.keys(e.Keys))yield f(e.Keys[t].Type,t,e.Keys[t].Metadata);return}yield f(e.Type,e.Cid,e.Metadata)}})},e19e:function(e,t,n){const r=n("f9f9"),i=n("9a81"),s=n("8f99"),f=n("dbb5"),a=n("2615");e.exports={errors:r,formatters:i,payloadTransformer:s,constants:f,validateFunction:a}},e224:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("c7c9"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeChainDataAnchoring))throw new Error(`Cannot decode to ChainDataAnchoring. The prefix must be ${o.TxTypeChainDataAnchoring}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c]=i.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(r),gas:u.trimLeadingZero(s),from:f,input:a,signatures:c}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(r.isString(e)&&(e=l(e)),super(a.TxTypeChainDataAnchoring,e,t),e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.toHex(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode());return o.TxTypeChainDataAnchoring+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input,e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeChainDataAnchoring,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},e248:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return ee.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedCancel+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedCancel,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},e335:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("ec88"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d"),l=n("3867");function d(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedAccountUpdateWithRatio))throw new Error(`Cannot decode to FeeDelegatedAccountUpdateWithRatio. The prefix must be ${o.TxTypeFeeDelegatedAccountUpdateWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,l,d,h]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),from:f,rlpEncodedKey:a,feeRatio:u.trimLeadingZero(c),signatures:l,feePayer:d,feePayerSignatures:h}}class h extends f{static create(e,t){return new h(e,t)}static decode(e,t){const n=d(e);return n.account=l.createFromRLPEncoding(n.from,n.rlpEncodedKey),new h(n,t)}constructor(e,t){s.isString(e)&&(e=d(e),e.account=l.createFromRLPEncoding(e.from,e.rlpEncodedKey)),super(a.TxTypeFeeDelegatedAccountUpdateWithRatio,e,t),this.account=e.account,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get account(){return this._account}set account(e){if(!(e instanceof l))throw new Error("Invalid account. 'account' should be instance of 'Account'.");if(this.from.toLowerCase()!==e.address.toLowerCase())throw new Error(`Transaction from address(${this.from.toLowerCase()}) and account address(${e.address}) do not match.`);this._account=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedAccountUpdateWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey(),i.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedAccountUpdateWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),this.account.getRLPEncodingAccountKey(),i.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=h},e4de:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dc74");const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),s=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});t.base58btc=i,t.base58flickr=s},e4e8:function(e,t,n){"use strict";const r=n("b6aa"),i=n("9aa4");function s(e){const t={path:null==e.path?e.cid:""+e.path,recursive:!1!==e.recursive};return null!=e.metadata&&(t.metadata=e.metadata),t}e.exports=async function*(e){if(null===e||void 0===e)throw r(new Error("Unexpected input: "+e),"ERR_UNEXPECTED_INPUT");if(i.isCID(e))yield s({cid:e});else{if(!(e instanceof String||"string"===typeof e)){if(null!=e.cid||null!=e.path)return yield s(e);if(e[Symbol.iterator]){const t=e[Symbol.iterator](),n=t.next();if(n.done)return t;if(i.isCID(n.value)||n.value instanceof String||"string"===typeof n.value){yield s({cid:n.value});for(const e of t)yield s({cid:e});return}if(null!=n.value.cid||null!=n.value.path){yield s(n.value);for(const e of t)yield s(e);return}throw r(new Error("Unexpected input: "+typeof e),"ERR_UNEXPECTED_INPUT")}if(e[Symbol.asyncIterator]){const t=e[Symbol.asyncIterator](),n=await t.next();if(n.done)return t;if(i.isCID(n.value)||n.value instanceof String||"string"===typeof n.value){yield s({cid:n.value});for await(const e of t)yield s({cid:e});return}if(null!=n.value.cid||null!=n.value.path){yield s(n.value);for await(const e of t)yield s(e);return}throw r(new Error("Unexpected input: "+typeof e),"ERR_UNEXPECTED_INPUT")}throw r(new Error("Unexpected input: "+typeof e),"ERR_UNEXPECTED_INPUT")}yield s({path:e})}}},e537:function(e,t,n){"use strict";const r=self.location?self.location.protocol+"//"+self.location.host:"",i=self.URL;class s{constructor(e="",t=r){this.super=new i(e,t),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(e){this.super.hash=e}set host(e){this.super.host=e}set hostname(e){this.super.hostname=e}set href(e){this.super.href=e}set origin(e){this.super.origin=e}set password(e){this.super.password=e}set pathname(e){this.super.pathname=e}set port(e){this.super.port=e}set protocol(e){this.super.protocol=e}set search(e){this.super.search=e}set searchParams(e){this.super.searchParams=e}set username(e){this.super.username=e}createObjectURL(e){return this.super.createObjectURL(e)}revokeObjectURL(e){this.super.revokeObjectURL(e)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}}function f(e){if("string"===typeof e){const t=new i(e);return t.toString()}if(!(e instanceof i)){const t=e.username&&e.password?`${e.username}:${e.password}@`:"",n=e.auth?e.auth+"@":"",r=e.port?":"+e.port:"",i=e.protocol?e.protocol+"//":"",s=e.host||"",f=e.hostname||"",a=e.search||(e.query?"?"+e.query:""),o=e.hash||"",c=e.pathname||"",u=e.path||c+a;return`${i}${t||n}${s||f+r}${u}${o}`}}e.exports={URLWithLegacySupport:s,URLSearchParams:self.URLSearchParams,defaultBase:r,format:f}},e638:function(e,t,n){const r=n("2ef0"),i=n("4f8d"),s=n("7beb"),f={TxTypeLegacyTransaction:"TxTypeLegacyTransaction",TxTypeValueTransfer:"TxTypeValueTransfer",TxTypeFeeDelegatedValueTransfer:"TxTypeFeeDelegatedValueTransfer",TxTypeFeeDelegatedValueTransferWithRatio:"TxTypeFeeDelegatedValueTransferWithRatio",TxTypeValueTransferMemo:"TxTypeValueTransferMemo",TxTypeFeeDelegatedValueTransferMemo:"TxTypeFeeDelegatedValueTransferMemo",TxTypeFeeDelegatedValueTransferMemoWithRatio:"TxTypeFeeDelegatedValueTransferMemoWithRatio",TxTypeAccountUpdate:"TxTypeAccountUpdate",TxTypeFeeDelegatedAccountUpdate:"TxTypeFeeDelegatedAccountUpdate",TxTypeFeeDelegatedAccountUpdateWithRatio:"TxTypeFeeDelegatedAccountUpdateWithRatio",TxTypeSmartContractDeploy:"TxTypeSmartContractDeploy",TxTypeFeeDelegatedSmartContractDeploy:"TxTypeFeeDelegatedSmartContractDeploy",TxTypeFeeDelegatedSmartContractDeployWithRatio:"TxTypeFeeDelegatedSmartContractDeployWithRatio",TxTypeSmartContractExecution:"TxTypeSmartContractExecution",TxTypeFeeDelegatedSmartContractExecution:"TxTypeFeeDelegatedSmartContractExecution",TxTypeFeeDelegatedSmartContractExecutionWithRatio:"TxTypeFeeDelegatedSmartContractExecutionWithRatio",TxTypeCancel:"TxTypeCancel",TxTypeFeeDelegatedCancel:"TxTypeFeeDelegatedCancel",TxTypeFeeDelegatedCancelWithRatio:"TxTypeFeeDelegatedCancelWithRatio",TxTypeChainDataAnchoring:"TxTypeChainDataAnchoring",TxTypeFeeDelegatedChainDataAnchoring:"TxTypeFeeDelegatedChainDataAnchoring",TxTypeFeeDelegatedChainDataAnchoringWithRatio:"TxTypeFeeDelegatedChainDataAnchoringWithRatio",TxTypeEthereumAccessList:"TxTypeEthereumAccessList",TxTypeEthereumDynamicFee:"TxTypeEthereumDynamicFee"},a={TxTypeLegacyTransaction:"","":f.TxTypeLegacyTransaction,TxTypeValueTransfer:"0x08","0x08":f.TxTypeValueTransfer,TxTypeFeeDelegatedValueTransfer:"0x09","0x09":f.TxTypeFeeDelegatedValueTransfer,TxTypeFeeDelegatedValueTransferWithRatio:"0x0a","0x0a":f.TxTypeFeeDelegatedValueTransferWithRatio,TxTypeValueTransferMemo:"0x10","0x10":f.TxTypeValueTransferMemo,TxTypeFeeDelegatedValueTransferMemo:"0x11","0x11":f.TxTypeFeeDelegatedValueTransferMemo,TxTypeFeeDelegatedValueTransferMemoWithRatio:"0x12","0x12":f.TxTypeFeeDelegatedValueTransferMemoWithRatio,TxTypeAccountUpdate:"0x20","0x20":f.TxTypeAccountUpdate,TxTypeFeeDelegatedAccountUpdate:"0x21","0x21":f.TxTypeFeeDelegatedAccountUpdate,TxTypeFeeDelegatedAccountUpdateWithRatio:"0x22","0x22":f.TxTypeFeeDelegatedAccountUpdateWithRatio,TxTypeSmartContractDeploy:"0x28","0x28":f.TxTypeSmartContractDeploy,TxTypeFeeDelegatedSmartContractDeploy:"0x29","0x29":f.TxTypeFeeDelegatedSmartContractDeploy,TxTypeFeeDelegatedSmartContractDeployWithRatio:"0x2a","0x2a":f.TxTypeFeeDelegatedSmartContractDeployWithRatio,TxTypeSmartContractExecution:"0x30","0x30":f.TxTypeSmartContractExecution,TxTypeFeeDelegatedSmartContractExecution:"0x31","0x31":f.TxTypeFeeDelegatedSmartContractExecution,TxTypeFeeDelegatedSmartContractExecutionWithRatio:"0x32","0x32":f.TxTypeFeeDelegatedSmartContractExecutionWithRatio,TxTypeCancel:"0x38","0x38":f.TxTypeCancel,TxTypeFeeDelegatedCancel:"0x39","0x39":f.TxTypeFeeDelegatedCancel,TxTypeFeeDelegatedCancelWithRatio:"0x3a","0x3a":f.TxTypeFeeDelegatedCancelWithRatio,TxTypeChainDataAnchoring:"0x48","0x48":f.TxTypeChainDataAnchoring,TxTypeFeeDelegatedChainDataAnchoring:"0x49","0x49":f.TxTypeFeeDelegatedChainDataAnchoring,TxTypeFeeDelegatedChainDataAnchoringWithRatio:"0x4a","0x4a":f.TxTypeFeeDelegatedChainDataAnchoringWithRatio,TxTypeEthereumAccessList:"0x7801","0x7801":f.TxTypeEthereumAccessList,TxTypeEthereumDynamicFee:"0x7802","0x7802":f.TxTypeEthereumDynamicFee},o={EVM:"0x0"},c=e=>i.hexToNumber(a[e]),u=()=>"0x78",l=e=>{if(!p(e))throw new Error("Not EthereumTxTypeEnvelope tx type: "+e);let t=e;return e.startsWith("TxType")&&(t=a[e]),"0x"+t.replace(u(),"")},d=e=>void 0!==e&&(h(e)||p(e)),h=e=>void 0!==e&&(e===f.TxTypeLegacyTransaction||e===a.TxTypeLegacyTransaction),p=e=>void 0!==e&&(e.startsWith(u())||e===f.TxTypeEthereumAccessList||e===f.TxTypeEthereumDynamicFee),b=(e,t)=>{const n=new Set;let i=[];const f=void 0!==t&&d(t);let a=e;(!r.isArray(e)&&e instanceof s||r.isArray(e)&&r.isString(e[0]))&&(a=[e]);for(const r of a){const e=new s(r);if(!e.isEmpty()){const t=r.toString();n.has(t)||(n.add(t,!0),i.push(e))}}if(0===i.length&&(i=[s.emtpySig]),f&&void 0!=t&&i.length>1)throw new Error(t+"} cannot have multiple sigantures.");return f?i[0]:i},m=e=>{let t;return e=i.addHexPrefix(e),t=e.startsWith(u())?e.slice(0,6):e.slice(0,4),a[t]?a[t]:f.TxTypeLegacyTransaction},g=e=>{if(void 0===e)return o.EVM;switch(e){case 0:case"0x":case"0x0":case"EVM":return o.EVM}throw new Error("Unsupported code format : "+e)},k=function(e){return r.isUndefined(e)||r.isNull(e)};e.exports={TX_TYPE_STRING:f,TX_TYPE_TAG:a,CODE_FORMAT:o,isNot:k,refineSignatures:b,typeDetectionFromRLPEncoding:m,getCodeFormatTag:g,getTypeInt:c,isEthereumTxType:d,isEthereumTypedTxType:p,getEthereumTxTypeEnvelopeTag:u,getTypeTagWithoutEthereumTxTypeEnvelopeTag:l}},e6d1:function(e,t,n){"use strict";const{baseTable:r}=n("8c96"),i=n("4eca").varintEncode,s={},f={},a={};for(const c in r){const e=c,t=r[e];s[e]=i(t);const n=e.toUpperCase().replace(/-/g,"_");f[n]=t,a[t]||(a[t]=e)}Object.freeze(s),Object.freeze(f),Object.freeze(a);const o=Object.freeze(r);e.exports={nameToVarint:s,constantToCode:f,nameToCode:o,codeToName:a}},e6d65:function(e,t,n){e.exports=n("1c46")},e712:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},e798:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{const t=async(t,n={})=>{const r=await e.post("dns",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),s=await r.json();return s.Path};return t})},e7c7:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t={})=>{const n=await e.post("diag/sys",{timeout:t.timeout,signal:t.signal,searchParams:i(t),headers:t.headers});return n.json()})},e802:function(e,t,n){const r=n("2ef0");class i{static fromObject(e){if(e.weight&&!e.weights&&(e.weights=e.weight,delete e.weight),void 0===e.threshold&&void 0===e.weights)return new i;if(void 0===e.threshold||void 0===e.weights)throw new Error("Invalid object for creating WeightedMultiSigOptions. 'threshold' and 'weights' should be defined.");return new i(e.threshold,e.weights)}constructor(e,t){if(void 0!==e&&void 0===t||void 0===e&&void 0!==t)throw new Error("For creating an WeightedMultiSigOptions, 'threshold' and 'weights' should be defined.");void 0!==e&&(this.threshold=e),void 0!==t&&(this.weights=t)}get threshold(){return this._threshold}set threshold(e){if(!r.isNumber(e))throw new Error("The threshold must be number type.");if(!s(e,this.weights))throw new Error("Invalid options for AccountKeyWeightedMultiSig: The sum of weights is less than the threshold.");this._threshold=e}get weights(){return this._weights}set weights(e){if(!r.isArray(e))throw new Error("weight should be an array that stores the weight of each public key.");for(const t of e)if(!r.isNumber(t))throw new Error("The weight of each key must be number type.");if(!s(this.threshold,e))throw new Error("Invalid options for AccountKeyWeightedMultiSig: The sum of weights is less than the threshold.");this._weights=e}isEmpty(){return void 0===this.threshold&&void 0===this.weights}}function s(e,t){if(void 0===e||void 0===t)return!0;let n=0;for(const r of t)n+=r;return!(e>n)}e.exports=i},e8e2:function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw f.bytes=0,new RangeError("Could not encode varint");t=t||[],r=r||0;var a=r;while(e>=s)t[r++]=255&e|n,e/=128;while(e&i)t[r++]=255&e|n,e>>>=7;return t[r]=0|e,f.bytes=r-a+1,t}},e997:function(e,t,n){"use strict";const r=n("19d2"),i=n("6b67"),s=n("ae25");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},e9ee:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},ea3d:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("c7c9"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeSmartContractExecution))throw new Error(`Cannot decode to SmartContractExecution. The prefix must be ${o.TxTypeSmartContractExecution}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,l,d]=i.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(r),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(a),from:c,input:l,signatures:d}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(r.isString(e)&&(e=l(e)),super(a.TxTypeSmartContractExecution,e,t),this.to=e.to,this.value=e.value||"0x0",e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode());return o.TxTypeSmartContractExecution+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input,e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeSmartContractExecution,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},ea64:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("542b"),f=n("f783"),{AbortController:a}=n("c181");e.exports=r(e=>async(t,n,r={})=>{const o=i({arg:t,...r}),c=new a,u=f(c.signal,r.signal),l=await e.post("pubsub/pub",{timeout:r.timeout,signal:u,searchParams:o,...await s(n,c,r.headers)});await l.text()})},eaa7:function(e,t,n){"use strict";const{baseTable:r}=n("9bfb"),i={};for(const[s,f]of Object.entries(r)){const e=s.toUpperCase().replace(/-/g,"_");i[e]=f}e.exports=Object.freeze(i)},eadc:function(e,t,n){"use strict";const{encodeText:r}=n("967a");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},eb20:function(e,t,n){"use strict";var r=n("b280");function i(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const s=i("utf8","u",e=>{const t=new TextDecoder("utf8");return"u"+t.decode(e)},e=>{const t=new TextEncoder;return t.encode(e.substring(1))}),f=i("ascii","a",e=>{let t="a";for(let n=0;n{e=e.substring(1);const t=new Uint8Array(e.length);for(let n=0;nasync(t,n={})=>{const i=await e.post("name/publish",{timeout:n.timeout,signal:n.signal,searchParams:s({arg:t,...n}),headers:n.headers});return r(await i.json())})},ec76:function(e,t,n){var r=n("2612");t.encode=function e(t,n,i){t=t>=0?2*t:-2*t-1;var s=r.encode(t,n,i);return e.bytes=r.encode.bytes,s},t.decode=function e(t,n){var i=r.decode(t,n);return e.bytes=r.decode.bytes,1&i?(i+1)/-2:i/2},t.encodingLength=function(e){return r.encodingLength(e>=0?2*e:-2*e-1)}},ec88:function(e,t,n){const r=n("2ef0"),i=n("87b8"),s=n("4f8d");class f extends i{constructor(e,t,n){super(e,t,n),this.feeRatio=t.feeRatio}get feeRatio(){return this._feeRatio}set feeRatio(e){if(!r.isNumber(e)&&!s.isHex(e))throw new Error("Invalid type fo feeRatio: feeRatio should be number type or hex number string.");if(s.hexToNumber(e)<=0||s.hexToNumber(e)>=100)throw new Error("Invalid feeRatio: feeRatio is out of range. [1, 99]");this._feeRatio=s.numberToHex(e)}}e.exports=f},ecf4:function(e,t,n){"use strict";e.exports=e=>({bitswap:n("8b87")(e),bw:n("2bb8")(e),repo:n("a3b6")(e)})},ed68:function(e,t,n){"use strict";const r=n("4950"),{encodeText:i,decodeText:s,concat:f}=n("85fc");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},ed81:function(e,t,n){"use strict";const r=n("0329"),{encodeText:i,decodeText:s,concat:f}=n("32ba");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},ed8c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("4386");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.encoder.encode(e).substring(1)}t.toString=i},ee12:function(e,t,n){const r=n("2ef0"),i=n("84e9"),s=n("d335"),f=n("c7c9"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeValueTransfer))throw new Error(`Cannot decode to ValueTransfer. The prefix must be ${o.TxTypeValueTransfer}: ${e}`);const t="0x"+e.slice(4),[n,r,s,f,a,c,l]=i.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(r),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(a),from:c,signatures:l}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){r.isString(e)&&(e=l(e)),super(a.TxTypeValueTransfer,e,t),this.to=e.to,this.value=e.value,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode());return o.TxTypeValueTransfer+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase(),e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeValueTransfer,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.to.toLowerCase(),s.fromNat(this.value),this.from.toLowerCase()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},eefb:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,u=new Uint8Array(o);while(i!==s){for(var l=t[i],d=0,h=o-1;(0!==l||d>>0,u[h]=l%f>>>0,l=l/f>>>0;if(0!==l)throw new Error("Non-zero carry");r=d,i++}var p=o-r;while(p!==o&&0===u[p])p++;for(var b=a.repeat(n);p>>0,c=new Uint8Array(s);while(e[n]){var u=t[e.charCodeAt(n)];if(255===u)return;for(var l=0,d=s-1;(0!==u||l>>0,c[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=l,n++}if(" "!==e[n]){var h=s-i;while(h!==s&&0===c[h])h++;var p=new Uint8Array(r+(s-h)),b=r;while(h!==s)p[b++]=c[h++];return p}}}function d(e){var t=l(e);if(t)return t;throw new Error("Non-base"+f+" character")}return{encode:u,decodeUnsafe:l,decode:d}}e.exports=r},f071:function(e,t,n){const r=n("f9e15"),i=e=>{const t=new r;return Object.entries(t.__proto__).reduce((e,[t,n])=>(e[t]=n,e),e),e._events=t._events,e._eventsCount=t._eventsCount,e};function s(e){let t,n;const r=new Promise((e,r)=>{t=e,n=r}),s=e?r:i(r);return{resolve:t,reject:n,eventEmitter:s}}s.resolve=function(e){const t=s(!0);return t.resolve(e),t.eventEmitter},e.exports=s},f0e2:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4"),s=n("2054");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("bootstrap/rm",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),{Peers:f}=await r.json();return{Peers:f.map(e=>new s(e))}}return t})},f140:function(e,t,n){"use strict";const r=n("96a8"),i=r(n("c2c8")),s=n("0eff");t=e.exports;const f=e=>{const t={};return e.Data&&e.Data.byteLength>0?t.Data=e.Data:t.Data=null,e.Links&&e.Links.length>0?t.Links=e.Links.map(e=>({Hash:e.Hash.bytes,Name:e.Name,Tsize:e.Tsize})):t.Links=null,t},a=e=>{const t=e.Data,n=e.Links||[],r=i.PBNode.encode(f({Data:t,Links:n}));return r},o=(e,t=[])=>{const n={Data:e};return n.Links=t.map(e=>s.isDAGLink(e)?e:s.util.createDagLinkFromB58EncodedHash(e)),a(n)};t.serializeDAGNode=a,t.serializeDAGNodeLike=o},f278:function(e,t,n){"use strict";e.exports=e=>({chmod:n("9ef7")(e),cp:n("cf29")(e),flush:n("786a")(e),ls:n("5365")(e),mkdir:n("7ec9")(e),mv:n("bb1c")(e),read:n("06b1")(e),rm:n("71ef")(e),stat:n("51a1")(e),touch:n("578c")(e),write:n("7996")(e)})},f320:function(e,t,n){const r=n("84e9"),i=n("4f8d"),{ACCOUNT_KEY_TAG:s}=n("bd78");class f{static decode(e){if(e=i.addHexPrefix(e),!e.startsWith(s.ACCOUNT_KEY_PUBLIC_TAG))throw new Error(`Cannot decode to AccountKeyPublic. The prefix must be ${s.ACCOUNT_KEY_PUBLIC_TAG}: ${e}`);const t=r.decode("0x"+e.slice(s.ACCOUNT_KEY_PUBLIC_TAG.length));return new f(t)}static fromXYPoint(e,t){const n=i.leftPad(i.stripHexPrefix(e),64),r=i.leftPad(i.stripHexPrefix(t),64),s="0x"+(n+r);return new f(s)}static fromPublicKey(e){return new f(e)}constructor(e){this.publicKey=e}get publicKey(){return this._publicKey}set publicKey(e){if(!i.isValidPublicKey(e))throw new Error("Invalid public key: "+e);this._publicKey=i.addHexPrefix(e)}getRLPEncoding(){const e=i.compressPublicKey(this.publicKey);return s.ACCOUNT_KEY_PUBLIC_TAG+r.encode(e).slice(2)}getXYPoint(){return i.xyPointFromPublicKey(this.publicKey)}}e.exports=f},f348:function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),s=Math.pow(2,28),f=Math.pow(2,35),a=Math.pow(2,42),o=Math.pow(2,49),c=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return ee.encode());return o.TxTypeCancel+i.encode([s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase(),e]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),i.encode([o.TxTypeCancel,s.fromNat(this.nonce),s.fromNat(this.gasPrice),s.fromNat(this.gas),this.from.toLowerCase()])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},f357:function(e,t,n){(function(r,i){var s; /** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT */(function(){"use strict";var f="input is invalid type",a="finalize already called",o="object"===typeof window,c=o?window:{};c.JS_SHA3_NO_WINDOW&&(o=!1);var u=!o&&"object"===typeof self,l=!c.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node;l?c=i:u&&(c=self);var d=!c.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,h=n("3c35"),p=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,b="0123456789abcdef".split(""),m=[31,7936,2031616,520093696],g=[4,1024,262144,67108864],k=[1,256,65536,16777216],y=[6,1536,393216,100663296],w=[0,8,16,24],v=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],E=[224,256,384,512],T=[128,256],x=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!p||!c.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var A=function(e,t,n){return function(r){return new V(e,t,e).update(r)[n]()}},P=function(e,t,n){return function(r,i){return new V(e,t,i).update(r)[n]()}},C=function(e,t,n){return function(t,r,i,s){return D["cshake"+e].update(t,r,i,s)[n]()}},S=function(e,t,n){return function(t,r,i,s){return D["kmac"+e].update(t,r,i,s)[n]()}},N=function(e,t,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function W(e,t,n){V.call(this,e,t,n)}V.prototype.update=function(e){if(this.finalized)throw new Error(a);var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(f);if(null===e)throw new Error(f);if(p&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!p||!ArrayBuffer.isView(e)))throw new Error(f);t=!0}var r,i,s=this.blocks,o=this.byteCount,c=e.length,u=this.blockCount,l=0,d=this.s;while(l>2]|=e[l]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(s[r>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=o){for(this.start=r-o,this.block=s[u],r=0;r>=8,n=255&e;while(n>0)i.unshift(n),e>>=8,n=255&e,++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},V.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(f);if(null===e)throw new Error(f);if(p&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!p||!ArrayBuffer.isView(e)))throw new Error(f);t=!0}var r=0,i=e.length;if(t)r=i;else for(var s=0;s=57344?r+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++s)),r+=4)}return r+=this.encode(8*r),this.update(e),r},V.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+b[15&e]+b[e>>12&15]+b[e>>8&15]+b[e>>20&15]+b[e>>16&15]+b[e>>28&15]+b[e>>24&15];f%t===0&&(z(n),s=0)}return i&&(e=n[s],a+=b[e>>4&15]+b[15&e],i>1&&(a+=b[e>>12&15]+b[e>>8&15]),i>2&&(a+=b[e>>20&15]+b[e>>16&15])),a},V.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,s=0,f=0,a=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);var o=new Uint32Array(e);while(f>8&255,o[e+2]=t>>16&255,o[e+3]=t>>24&255;a%n===0&&z(r)}return s&&(e=a<<2,t=r[f],o[e]=255&t,s>1&&(o[e+1]=t>>8&255),s>2&&(o[e+2]=t>>16&255)),o},W.prototype=new V,W.prototype.finalize=function(){return this.encode(this.outputBits,!0),V.prototype.finalize.call(this)};var z=function(e){var t,n,r,i,s,f,a,o,c,u,l,d,h,p,b,m,g,k,y,w,E,T,x,_,A,P,C,S,N,I,F,O,L,R,D,M,U,j,K,B,H,G,V,W,z,$,q,Y,Z,X,J,Q,ee,te,ne,re,ie,se,fe,ae,oe,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],f=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],t=d^(f<<1|a>>>31),n=h^(a<<1|f>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(o<<1|c>>>31),n=s^(c<<1|o>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=f^(u<<1|l>>>31),n=a^(l<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=o^(d<<1|h>>>31),n=c^(h<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|s>>>31),n=l^(s<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],b=e[1],$=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,S=e[20]<<3|e[21]>>>29,N=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,oe=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,F=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,k=e[25]<<11|e[24]>>>21,y=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,_=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,j=e[26]<<25|e[27]>>>7,K=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,z=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,se=e[29]<<7|e[28]>>>25,fe=e[28]<<7|e[29]>>>25,B=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,T=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=p^~m&k,e[1]=b^~g&y,e[10]=_^~P&S,e[11]=A^~C&N,e[20]=R^~M&j,e[21]=D^~U&K,e[30]=W^~$&Y,e[31]=z^~q&Z,e[40]=te^~re&se,e[41]=ne^~ie&fe,e[2]=m^~k&w,e[3]=g^~y&E,e[12]=P^~S&I,e[13]=C^~N&F,e[22]=M^~j&B,e[23]=U^~K&H,e[32]=$^~Y&X,e[33]=q^~Z&J,e[42]=re^~se&ae,e[43]=ie^~fe&oe,e[4]=k^~w&T,e[5]=y^~E&x,e[14]=S^~I&O,e[15]=N^~F&L,e[24]=j^~B&G,e[25]=K^~H&V,e[34]=Y^~X&Q,e[35]=Z^~J&ee,e[44]=se^~ae&ce,e[45]=fe^~oe&ue,e[6]=w^~T&p,e[7]=E^~x&b,e[16]=I^~O&_,e[17]=F^~L&A,e[26]=B^~G&R,e[27]=H^~V&D,e[36]=X^~Q&W,e[37]=J^~ee&z,e[46]=ae^~ce&te,e[47]=oe^~ue&ne,e[8]=T^~p&m,e[9]=x^~b&g,e[18]=O^~_&P,e[19]=L^~A&C,e[28]=G^~R&M,e[29]=V^~D&U,e[38]=Q^~W&$,e[39]=ee^~z&q,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=v[r],e[1]^=v[r+1]};if(d)e.exports=D;else{for(U=0;U({blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(e=>[].concat(e,e,e,e,e))([0,0,0,0,0,0,0,0,0,0])}),a=(e,t)=>{var s,f=t.length,a=e.blocks,c=e.blockCount<<2,u=e.blockCount,l=e.outputBlocks,d=e.s,h=0;while(h>2]|=t[h]<>2]|=s<>2]|=(192|s>>6)<>2]|=(128|63&s)<=57344?(a[m>>2]|=(224|s>>12)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<=c){for(e.start=m-c,e.block=a[u],m=0;m>2]|=r[3&m],e.lastByteIndex===c)for(a[0]=a[u],m=1;m>4&15]+n[15&p]+n[p>>12&15]+n[p>>8&15]+n[p>>20&15]+n[p>>16&15]+n[p>>28&15]+n[p>>24&15];g%u===0&&(o(d),m=0)}return"0x"+b},o=e=>{var t,n,r,i,f,a,o,c,u,l,d,h,p,b,m,g,k,y,w,v,E,T,x,_,A,P,C,S,N,I,F,O,L,R,D,M,U,j,K,B,H,G,V,W,z,$,q,Y,Z,X,J,Q,ee,te,ne,re,ie,se,fe,ae,oe,ce,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],f=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=h^(a<<1|o>>>31),n=p^(o<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|u>>>31),n=f^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|d>>>31),n=o^(d<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(h<<1|p>>>31),n=u^(p<<1|h>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|f>>>31),n=d^(f<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,b=e[0],m=e[1],$=e[11]<<4|e[10]>>>28,q=e[10]<<4|e[11]>>>28,S=e[20]<<3|e[21]>>>29,N=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,oe=e[30]<<9|e[31]>>>23,G=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,k=e[12]<<12|e[13]>>>20,Y=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,F=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,M=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,X=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,L=e[44]<<29|e[45]>>>3,_=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,j=e[26]<<25|e[27]>>>7,K=e[27]<<25|e[26]>>>7,v=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,z=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,se=e[29]<<7|e[28]>>>25,fe=e[28]<<7|e[29]>>>25,B=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,T=e[48]<<14|e[49]>>>18,x=e[49]<<14|e[48]>>>18,e[0]=b^~g&y,e[1]=m^~k&w,e[10]=_^~P&S,e[11]=A^~C&N,e[20]=R^~M&j,e[21]=D^~U&K,e[30]=W^~$&Y,e[31]=z^~q&Z,e[40]=te^~re&se,e[41]=ne^~ie&fe,e[2]=g^~y&v,e[3]=k^~w&E,e[12]=P^~S&I,e[13]=C^~N&F,e[22]=M^~j&B,e[23]=U^~K&H,e[32]=$^~Y&X,e[33]=q^~Z&J,e[42]=re^~se&ae,e[43]=ie^~fe&oe,e[4]=y^~v&T,e[5]=w^~E&x,e[14]=S^~I&O,e[15]=N^~F&L,e[24]=j^~B&G,e[25]=K^~H&V,e[34]=Y^~X&Q,e[35]=Z^~J&ee,e[44]=se^~ae&ce,e[45]=fe^~oe&ue,e[6]=v^~T&b,e[7]=E^~x&m,e[16]=I^~O&_,e[17]=F^~L&A,e[26]=B^~G&R,e[27]=H^~V&D,e[36]=X^~Q&W,e[37]=J^~ee&z,e[46]=ae^~ce&te,e[47]=oe^~ue&ne,e[8]=T^~b&g,e[9]=x^~m&k,e[18]=O^~_&P,e[19]=L^~A&C,e[28]=G^~R&M,e[29]=V^~D&U,e[38]=Q^~W&$,e[39]=ee^~z&q,e[48]=ce^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]},c=e=>t=>{var n;if("0x"===t.slice(0,2)){n=[];for(var r=2,i=t.length;r({apply:n("f739")(e),list:n("4bf1")(e)})},f3a5:function(e,t,n){"use strict";const r=n("2f48"),{toString:i}=n("b155"),{fromString:s}=n("f3b5");function f(e){return parseInt(i(e,"base16"),16)}function a(e){let t=e.toString(16);return t.length%2===1&&(t="0"+t),s(t,"base16")}function o(e){return Uint8Array.from(r.encode(f(e)))}function c(e){return Uint8Array.from(r.encode(e))}e.exports={numberToUint8Array:a,uint8ArrayToNumber:f,varintUint8ArrayEncode:o,varintEncode:c}},f3b5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("53d8b");function i(e,t="utf8"){const n=r[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return n.decoder.decode(`${n.prefix}${e}`)}t.fromString=i},f3bf:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports=r},f3cb:function(e,t,n){const r=n("4f8d"),{ACCOUNT_KEY_TAG:i}=n("bd78");class s{static decode(e){if(e=r.addHexPrefix(e),!e.startsWith(i.ACCOUNT_KEY_LEGACY_TAG))throw new Error(`Cannot decode to AccountKeyLegacy. The prefix must be ${i.ACCOUNT_KEY_LEGACY_TAG}: ${e}`);return new s}getRLPEncoding(){return i.ACCOUNT_KEY_LEGACY_TAG}}e.exports=s},f498:function(e,t,n){var r={"./caver-abi/src/index.js":"5af0","./caver-account/src/index.js":"3867","./caver-contract/src/index.js":"921c","./caver-core-helpers/src/index.js":"e19e","./caver-core-method/src/index.js":"c8cf","./caver-core-requestmanager/caver-providers-http/src/index.js":"0d07","./caver-core-requestmanager/caver-providers-ipc/src/index.js":"9100","./caver-core-requestmanager/caver-providers-ws/src/index.js":"78b3","./caver-core-requestmanager/src/index.js":"ebc0","./caver-core-subscriptions/src/index.js":"2dc3","./caver-core/src/index.js":"f54c","./caver-ipfs/src/index.js":"a7c2","./caver-kct/src/index.js":"16be","./caver-klay/caver-klay-accounts/src/index.js":"112f","./caver-klay/caver-klay-personal/src/index.js":"b994","./caver-klay/src/index.js":"42dc","./caver-middleware/src/index.js":"36a7","./caver-net/src/index.js":"0cf2","./caver-rpc/src/index.js":"b3bd","./caver-rtm/src/index.js":"7f6f","./caver-transaction/src/index.js":"05b1","./caver-utils/iban/src/index.js":"9155","./caver-utils/promievent/src/index.js":"f071","./caver-utils/src/index.js":"4f8d","./caver-validator/src/index.js":"5485","./caver-wallet/src/index.js":"a2ff"};function i(e){var t=s(e);return n(t)}function s(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=s,e.exports=i,i.id="f498"},f4f3:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("87b8"),{TX_TYPE_STRING:a,TX_TYPE_TAG:o,isNot:c}=n("e638"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(o.TxTypeFeeDelegatedValueTransferMemo))throw new Error(`Cannot decode to FeeDelegatedValueTransferMemo. The prefix must be ${o.TxTypeFeeDelegatedValueTransferMemo}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,a,c,l,d,h,p]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),to:f,value:u.trimLeadingZero(a),from:c,input:l,signatures:d,feePayer:h,feePayerSignatures:p}}class d extends f{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){if(s.isString(e)&&(e=l(e)),super(a.TxTypeFeeDelegatedValueTransferMemo,e,t),this.to=e.to,this.value=e.value,e.input&&e.data)throw new Error("'input' and 'data' properties cannot be defined at the same time, please use either 'input' or 'data'.");this.input=e.input||e.data,void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}get to(){return this._to}set to(e){if(!u.isAddress(e))throw new Error("Invalid address of to: "+e);this._to=e.toLowerCase()}get value(){return this._value}set value(e){this._value=u.numberToHex(e)}get input(){return this._input}set input(e){if(!e||!u.isHex(e))throw new Error("Invalid input data "+e);this._input=u.addHexPrefix(e)}get data(){return this._input}set data(e){this._input=e}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return o.TxTypeFeeDelegatedValueTransferMemo+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input,e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([o.TxTypeFeeDelegatedValueTransferMemo,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.to.toLowerCase(),i.fromNat(this.value),this.from.toLowerCase(),this.input])}async fillTransaction(){const[e,t,n]=await Promise.all([c(this.chainId)?this.getChainId():this.chainId,c(this.gasPrice)?this.getGasPrice():this.gasPrice,c(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},f544:function(e,t,n){"use strict";const r=n("c995"),i=n("ed81"),s=n("2947"),f=n("fc07"),{concat:a}=n("87ad"),{toString:o}=n("0325"),{equals:c}=n("2d02"),u=s.nameToCode,l=Object.keys(u).reduce((e,t)=>(e[u[t]]=t,e),{}),d=Symbol.for("@ipld/js-cid/CID");class h{constructor(e,t,n,f){if(this.version,this.codec,this.multihash,Object.defineProperty(this,d,{value:!0}),h.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=t.multihash,void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"===typeof e){const t=i.isEncoded(e);if(t){const n=i.decode(e);this.version=parseInt(n[0].toString(),16),this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=r.fromB58String(e),this.multibaseName="base58btc";return h.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(e instanceof Uint8Array){const t=parseInt(e[0].toString(),16);if(1===t){const n=e;this.version=t,this.codec=s.getCodec(n.slice(1)),this.multihash=s.rmPrefix(n.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";h.validateCID(this)}else this.version=e,"number"===typeof t&&(t=l[t]),this.codec=t,this.multihash=n,this.multibaseName=f||(0===e?"base58btc":"base32"),h.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");{const t=s.getCodeVarint(this.codec);e=a([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}}Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){const e=s.getCodeVarint(this.codec),t=r.prefix(this.multihash),n=a([[this.version],e,t],1+e.byteLength+t.byteLength);return n}get code(){return u[this.codec]}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=r.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new h(0,this.codec,this.multihash)}toV1(){return new h(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&0!==this.string.length&&e===this.multibaseName)return this.string;let t;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=r.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o(i.encode(e,this.bytes))}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&c(this.multihash,e.multihash)}static validateCID(e){const t=f.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof h||Boolean(e&&e[d])}}h.codecs=u,e.exports=h},f54c:function(e,t,n){const{Manager:r,BatchManager:i}=n("ebc0");e.exports={packageInit:function(e,t){if(!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:function(){return e._requestManager.provider},set:function(t){e.setProvider(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"_provider",{get:function(){return e._requestManager.provider},set:function(t){e.setProvider(t)},enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new r(t[0],t[1]),e.providers=r.providers,e.setProvider||(e.setProvider=function(t,n){return e._requestManager.setProvider(t,n),!0}),e.setRequestManager=function(t){e._requestManager=t},e.BatchRequest=i.bind(null,e._requestManager)},providers:r.providers}},f5a7:function(e,t,n){e.exports={encode:n("10a7"),decode:n("0631"),encodingLength:n("ba0d")}},f5e5:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>async(t,n={})=>{t=Array.isArray(t)?t:[t];const r=await e.post("swarm/connect",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t.map(e=>""+e),...n}),headers:n.headers}),{Strings:s}=await r.json();return s||[]})},f739:function(e,t,n){"use strict";const r=n("9878"),i=n("15e4");e.exports=r(e=>{async function t(t,n={}){const r=await e.post("config/profile/apply",{timeout:n.timeout,signal:n.signal,searchParams:i({arg:t,...n}),headers:n.headers}),s=await r.json();return{original:s.OldCfg,updated:s.NewCfg}}return t})},f783:function(e,t,n){"use strict";const{anySignal:r}=n("74fd");function i(e){return e.filter(Boolean)}e.exports=(...e)=>r(i(e))},f828:function(e,t,n){"use strict";const r=(e,t,n)=>{const r={};for(let c=0;c=8&&(f-=8,s[o++]=255&a>>f)}if(f>=n||255&a<<8-f)throw new SyntaxError("Unexpected end of data");return s},i=(e,t,n)=>{const r="="===t[t.length-1],i=(1<n)f-=n,s+=t[i&a>>f]}if(f&&(s+=t[i&a<t=>({encode(n){return i(n,t,e)},decode(n){return r(n,t,e)}});e.exports={rfc4648:s}},f922:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),{TX_TYPE_STRING:f,TX_TYPE_TAG:a,isNot:o}=n("e638"),c=n("ec88"),u=n("4f8d");function l(e){if(e=u.addHexPrefix(e),!e.startsWith(a.TxTypeFeeDelegatedCancelWithRatio))throw new Error(`Cannot decode to FeeDelegatedCancelWithRatio. The prefix must be ${a.TxTypeFeeDelegatedCancelWithRatio}: ${e}`);const t="0x"+e.slice(4),[n,i,s,f,o,c,l,d]=r.decode(t);return{nonce:u.trimLeadingZero(n),gasPrice:u.trimLeadingZero(i),gas:u.trimLeadingZero(s),from:f,feeRatio:u.trimLeadingZero(o),signatures:c,feePayer:l,feePayerSignatures:d}}class d extends c{static create(e,t){return new d(e,t)}static decode(e,t){return new d(l(e),t)}constructor(e,t){s.isString(e)&&(e=l(e)),super(f.TxTypeFeeDelegatedCancelWithRatio,e,t),void 0!==e.gasPrice&&(this.gasPrice=e.gasPrice)}get gasPrice(){return this._gasPrice}set gasPrice(e){this._gasPrice=u.numberToHex(e)}getRLPEncoding(){this.validateOptionalValues();const e=this.signatures.map(e=>e.encode()),t=this.feePayerSignatures.map(e=>e.encode());return a.TxTypeFeeDelegatedCancelWithRatio+r.encode([i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),i.fromNat(this.feeRatio),e,this.feePayer.toLowerCase(),t]).slice(2)}getCommonRLPEncodingForSignature(){return this.validateOptionalValues(),r.encode([a.TxTypeFeeDelegatedCancelWithRatio,i.fromNat(this.nonce),i.fromNat(this.gasPrice),i.fromNat(this.gas),this.from.toLowerCase(),i.fromNat(this.feeRatio)])}async fillTransaction(){const[e,t,n]=await Promise.all([o(this.chainId)?this.getChainId():this.chainId,o(this.gasPrice)?this.getGasPrice():this.gasPrice,o(this.nonce)?this.getNonce(this.from):this.nonce]);this.chainId=e,this.gasPrice=t,this.nonce=n}validateOptionalValues(){if(super.validateOptionalValues(),void 0===this.gasPrice)throw new Error("gasPrice is undefined. Define gasPrice in transaction or use 'transaction.fillTransaction' to fill values.")}}e.exports=d},f97d:function(e,t,n){"use strict";e.exports=e=>({wantlist:n("7b5f")(e),wantlistForPeer:n("67ed")(e),stat:n("8b87")(e),unwant:n("9bd8")(e)})},f9e15:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function s(){}function f(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,n,r,s){if("function"!==typeof n)throw new TypeError("The listener must be a function");var a=new f(n,r||e,s),o=i?i+t:t;return e._events[o]?e._events[o].fn?e._events[o]=[e._events[o],a]:e._events[o].push(a):(e._events[o]=a,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new s:delete e._events[t]}function c(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,s=n.length,f=new Array(s);r!!e&&!!e.error&&!!e.error.message,r={"0x2":"VM error occurs while running smart contract","0x3":"max call depth exceeded","0x4":"contract address collision","0x5":"contract creation code storage out of gas","0x6":"evm: max code size exceeded","0x7":"out of gas","0x8":"evm: write protection","0x9":"evm: execution reverted","0xa":"reached the opcode count limit","0xb":"account already exists","0xc":"not a program account (e.g., an account having code and storage)","0xd":"Human-readable address is not supported now","0xe":"fee ratio is out of range [1, 99]","0xf":"AccountKeyFail is not updatable","0x10":"different account key type","0x11":"AccountKeyNil cannot be initialized to an account","0x12":"public key is not on curve","0x13":"key weight is zero","0x14":"key is not serializable","0x15":"duplicated key","0x16":"weighted sum overflow","0x17":"unsatisfiable threshold. Weighted sum of keys is less than the threshold.","0x18":"length is zero","0x19":"length too long","0x1a":"nested role-based key","0x1b":"a legacy transaction must be with a legacy account key","0x1c":"deprecated feature","0x1d":"not supported","0x1e":"smart contract code format is invalid"};e.exports={InvalidConnection:e=>new Error(`CONNECTION ERROR: Couldn't connect to node ${e}.`),RequestFailed:e=>new Error("Request failed: "+e),ConnectionTimeout:e=>new Error(`CONNECTION TIMEOUT: timeout of ${e}ms achived`),ConnectionNotOpenError:e=>{const t=new Error("connection not open on send()");return e&&(t.code=e.code,t.reason=e.reason),t},MaxAttemptsReachedOnReconnectingError:()=>new Error("Maximum number of reconnect attempts reached!"),PendingRequestsOnReconnectingError:()=>new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!"),InvalidProvider:()=>new Error("Provider not set or invalid"),InvalidNumberOfParams:(e,t,n)=>new Error(`\n Invalid number of parameters for "${n}". Got ${e} expected ${t}!\n `),ErrorResponse:e=>{const t=n(e)?e.error.message:JSON.stringify(e);return new Error("Returned error: "+t)},InvalidResponse:e=>{if(null===e)return new Error("Invalid response: null");const t=n(e)?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},needNameCallPropertyToCreateMethod:new Error('When creating a method you need to provide at least the "name" and "call" property.'),blockHashNull:new Error("blockHash null"),contractCouldntBeStored:new Error("The contract code couldn't be stored, please check your gas limit."),receiptDidntContainContractAddress:new Error("The transaction receipt didn't contain a contract address."),transactionReverted:e=>new Error("Transaction has been reverted by the EVM:\n"+e),transactionRanOutOfGas:e=>new Error("Transaction ran out of gas. Please provide more gas:\n"+e),invalidGasLimit:()=>new Error("Invalid gas limit. Please provide valid gas."),invalidData:()=>new Error("Invalid data. Please provide valid hex-strict data."),notAllowedZeroGas:()=>new Error("gas can't be 0. Please provide more gas."),txErrorTable:r}},fa4e:function(e,t,n){var r=n("05e5");function i(e){if(!(e instanceof Object))throw new TypeError('"obj" must be an object (or inherit from it)');return s(e)}function s(e,t){for(var n in t=new r(e,t),e){var i=e[n];if(i instanceof Object&&(t.contains(i)||s(i,t)))return!0}return!1}e.exports=i},fa9f:function(e,t,n){"use strict";e.exports=e=>({cancel:n("7f99")(e),state:n("b720")(e),subs:n("271f")(e)})},fa9fc:function(e,t,n){"use strict";const r=n("f5a7"),{concat:i}=n("0e28"),s=n("8de2"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("6d1d");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},fae5:function(e,t,n){"use strict";function r(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.concat=r},fb86:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("ac1b"),i=n("29f9"),s=n("e4de"),f=n("17fb"),a=n("dd7b");class o{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:m,version:m,multihash:m,bytes:m,_baseCache:g,asCID:g})}toV0(){switch(this.version){case 0:return this;default:{const{code:e,multihash:t}=this;if(e!==d)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==h)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return o.createV0(t)}}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=i.create(e,t);return o.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&i.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:r}=this;switch(n){case 0:return u(t,r,e||s.base58btc.encoder);default:return l(t,r,e||f.base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return y(/^0\.0/,w),!(!e||!e[b]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof o)return e;if(null!=e&&e.asCID===e){const{version:t,code:n,multihash:r,bytes:i}=e;return new o(t,n,r,i||p(t,n,r.bytes))}if(null!=e&&!0===e[b]){const{version:t,multihash:n,code:r}=e,s=i.decode(n);return o.create(t,r,s)}return null}static create(e,t,n){if("number"!==typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==d)throw new Error(`Version 0 CID must use dag-pb (code: ${d}) block encoding`);return new o(e,t,n,n.bytes);case 1:{const r=p(e,t,n.bytes);return new o(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return o.create(0,d,e)}static createV1(e,t){return o.create(1,e,t)}static decode(e){const[t,n]=o.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=o.inspectBytes(e),n=t.size-t.multihashSize,r=a.coerce(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const s=r.subarray(t.multihashSize-t.digestSize),f=new i.Digest(t.multihashCode,t.digestSize,s,r),c=0===t.version?o.createV0(f):o.createV1(t.codec,f);return[c,e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,i]=r.decode(e.subarray(t));return t+=i,n};let i=n(),s=d;if(18===i?(i=0,t=0):1===i&&(s=n()),0!==i&&1!==i)throw new RangeError("Invalid CID version "+i);const f=t,a=n(),o=n(),c=t+o,u=c-f;return{version:i,codec:s,multihashCode:a,digestSize:o,multihashSize:u,size:c}}static parse(e,t){const[n,r]=c(e,t),i=o.decode(r);return i._baseCache.set(n,e),i}}const c=(e,t)=>{switch(e[0]){case"Q":{const n=t||s.base58btc;return[s.base58btc.prefix,n.decode(`${s.base58btc.prefix}${e}`)]}case s.base58btc.prefix:{const n=t||s.base58btc;return[s.base58btc.prefix,n.decode(e)]}case f.base32.prefix:{const n=t||f.base32;return[f.base32.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},u=(e,t,n)=>{const{prefix:r}=n;if(r!==s.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=t.get(r);if(null==i){const i=n.encode(e).slice(1);return t.set(r,i),i}return i},l=(e,t,n)=>{const{prefix:r}=n,i=t.get(r);if(null==i){const i=n.encode(e);return t.set(r,i),i}return i},d=112,h=18,p=(e,t,n)=>{const i=r.encodingLength(e),s=i+r.encodingLength(t),f=new Uint8Array(s+n.byteLength);return r.encodeTo(e,f,0),r.encodeTo(t,f,i),f.set(n,s),f},b=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},k="0.0.0-dev",y=(e,t)=>{if(!e.test(k))throw new Error(t);console.warn(t)},w="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";t.CID=o},fb89:function(e,t,n){"use strict";const r=n("3394"),{concat:i}=n("8a5d"),s=n("a43c"),{nameToVarint:f,constantToCode:a,nameToCode:o,codeToName:c}=n("223b");function u(e,t){let n;if(e instanceof Uint8Array)n=s.varintUint8ArrayEncode(e);else{if(!f[e])throw new Error("multicodec not recognized");n=f[e]}return i([n,t],n.length+t.length)}function l(e){return r.decode(e),e.slice(r.decode.bytes)}function d(e){const t=r.decode(e),n=c[t];if(void 0===n)throw new Error(`Code "${t}" not found`);return n}function h(e){return c[e]}function p(e){const t=o[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function b(e){return r.decode(e)}function m(e){const t=f[e];if(void 0===t)throw new Error(`Codec "${e}" not found`);return t}function g(e){return s.varintEncode(e)}function k(e){return d(e)}function y(e){return h(e)}function w(e){return p(e)}function v(e){return b(e)}function E(e){return m(e)}function T(e){return Array.from(g(e))}e.exports={addPrefix:u,rmPrefix:l,getNameFromData:d,getNameFromCode:h,getCodeFromName:p,getCodeFromData:b,getVarintFromName:m,getVarintFromCode:g,getCodec:k,getName:y,getNumber:w,getCode:v,getCodeVarint:E,getVarint:T,...a,nameToVarint:f,nameToCode:o,codeToName:c}},fb99:function(e,t,n){"use strict";const r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});e.exports={names:r}},fc07:function(e,t,n){"use strict";const r=n("c995"),i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!==typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!(e.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{r.validate(e.multihash)}catch(t){let e=t.message;return e||(e="Multihash validation failed"),e}}};e.exports=i},fc1f:function(e,t,n){"use strict";const{encodeText:r}=n("6dd0");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},fc43:function(e,t,n){const r=n("8d72");class i{constructor(e){this.klaytnCall=e}create(e){return r.create(e,this.klaytnCall)}decode(e){return r.decode(e,this.klaytnCall)}}e.exports=i},fdc7:function(e,t,n){"use strict";const r=n("8141"),i=n("3ed3"),s=n("4e03"),f=n("3ae5"),a=()=>{};e.exports=({formats:e=[],loadFormat:t=a}={})=>{e=e||[],t=t||a;const n={[f.DAG_PB]:r,[f.DAG_CBOR]:i,[f.RAW]:s};e.forEach(e=>{n[e.codec]=e});const o=async e=>{const r=f.getNumber(e),i=n[r]||await t(e);if(!i)throw Object.assign(new Error(`Missing IPLD format "${e}"`),{missingMulticodec:e});return i};return o}},fe26:function(e,t,n){const r=n("84e9"),i=n("d335"),s=n("2ef0"),f=n("7fc9"),a=n("4f8d"),{ACCOUNT_KEY_TAG:o,fillWeightedMultiSigOptionsForMultiSig:c}=n("bd78"),u=10;class l{static decode(e){if(e=a.addHexPrefix(e),!e.startsWith(o.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG))throw new Error(`Cannot decode to AccountKeyWeightedMultiSig. The prefix must be ${o.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG}: ${e}`);const[t,n]=r.decode("0x"+e.slice(o.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG.length)),i=n.map(e=>new f(e[0],e[1]));return new l(t,i)}static fromPublicKeysAndOptions(e,t){if(t=c(e.length,t),e.length!==t.weights.length)throw new Error("The length of public keys is not equal to the length of weight array.");const n=[];for(let r=0;ru)throw new Error(`Invalid weighted public keys: The number of keys exceeds the limit (${u}).`);for(const t of e)if(!(t instanceof f))throw new Error("Invalid type of weighted public keys.");this._weightedPublicKeys=e}getRLPEncoding(){if(void 0===this.threshold)throw new Error("threshold should be specified for a multisig account");if(0===this.weightedPublicKeys.length)throw new Error("weightedPublicKeys should be specified for a multisig account");const e=[];for(const t of this.weightedPublicKeys){if(void 0===t.weight)throw new Error("weight should be specified for a multisig account");if(void 0===t.publicKey)throw new Error("publicKey should be specified for a multisig account");const n=a.compressPublicKey(t.publicKey);e.push([i.fromNat(a.numberToHex(t.weight)),n])}return o.ACCOUNT_KEY_WEIGHTED_MULTISIG_TAG+r.encode([i.fromNat(a.numberToHex(this.threshold)),e]).slice(2)}}e.exports=l},fe32:function(e,t,n){"use strict";const{TextEncoder:r,TextDecoder:i}=n("3d5a"),s=new i,f=e=>s.decode(e),a=new r,o=e=>a.encode(e);function c(e,t){const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}e.exports={decodeText:f,encodeText:o,concat:c}},fe37:function(e,t,n){"use strict";const r=n("c229"),{encodeText:i,decodeText:s,concat:f}=n("cf7e");function a(e,t){if(!t)throw new Error("requires an encoded Uint8Array");const{name:n,codeBuf:r}=d(e);return l(n,t),f([r,t],r.length+t.length)}function o(e,t){const n=d(e),r=i(n.encode(t));return f([n.codeBuf,r],n.codeBuf.length+r.length)}function c(e){e instanceof Uint8Array&&(e=s(e));const t=e[0];["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(t)&&(e=e.toLowerCase());const n=d(e[0]);return n.decode(e.substring(1))}function u(e){if(e instanceof Uint8Array&&(e=s(e)),"[object String]"!==Object.prototype.toString.call(e))return!1;try{const t=d(e[0]);return t.name}catch(t){return!1}}function l(e,t){const n=d(e);n.decode(s(t))}function d(e){if(Object.prototype.hasOwnProperty.call(r.names,e))return r.names[e];if(Object.prototype.hasOwnProperty.call(r.codes,e))return r.codes[e];throw new Error("Unsupported encoding: "+e)}function h(e){return e instanceof Uint8Array&&(e=s(e)),d(e[0])}t=e.exports=a,t.encode=o,t.decode=c,t.isEncoded=u,t.encoding=d,t.encodingFromData=h;const p=Object.freeze(r.names),b=Object.freeze(r.codes);t.names=p,t.codes=b},fe3c:function(e,t,n){"use strict";const r=n("8804"),i=n("542b"),s=n("9878"),f=n("15e4"),a=n("f783"),{AbortController:o}=n("c181");e.exports=s(e=>async(t,n,s={})=>{const c=new o,u=a(c.signal,s.signal),{Hash:l}=await(await e.post("object/patch/set-data",{timeout:s.timeout,signal:u,searchParams:f({arg:[""+(t instanceof Uint8Array?new r(t):t)],...s}),...await i(n,c,s.headers)})).json();return new r(l)})},ff0e:function(e,t,n){const r=n("2054"),i=(e,t)=>t,s=(e,t,n,r)=>{if(r&&!1===r.assumeHttp)return`tcp://${e}:${t}`;let i="tcp",s=":"+t;const f=n[n.length-1];return"tcp"===f.protocol&&(i="443"===t?"https":"http",s="443"===t||"80"===t?"":s),`${i}://${e}${s}`},f={ip4:i,ip6:(e,t,n,r)=>1===r.length&&"ip6"===r[0].protocol?t:`[${t}]`,tcp:(e,t,n,r,i)=>r.some(e=>["http","https","ws","wss"].includes(e.protocol))?`${e}:${t}`:s(e,t,r,i),udp:(e,t)=>`udp://${e}:${t}`,dnsaddr:i,dns4:i,dns6:i,ipfs:(e,t)=>`${e}/ipfs/${t}`,p2p:(e,t)=>`${e}/p2p/${t}`,http:e=>"http://"+e,https:e=>"https://"+e,ws:e=>"ws://"+e,wss:e=>"wss://"+e,"p2p-websocket-star":e=>e+"/p2p-websocket-star","p2p-webrtc-star":e=>e+"/p2p-webrtc-star","p2p-webrtc-direct":e=>e+"/p2p-webrtc-direct"};e.exports=(e,t)=>{const n=r(e),i=e.toString().split("/").slice(1);return n.tuples().map(e=>({protocol:i.shift(),content:e[1]?i.shift():null})).reduce((e,n,r,i)=>{const s=f[n.protocol];if(!s)throw new Error("Unsupported protocol "+n.protocol);return s(e,n.content,r,i,t)},"")}},ff4f:function(e,t,n){"use strict";const{encodeText:r}=n("cf7e");class i{constructor(e,t,n,i){this.name=e,this.code=t,this.codeBuf=r(this.code),this.alphabet=i,this.codec=n(i)}encode(e){return this.codec.encode(e)}decode(e){for(const t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}}e.exports=i},ffe1:function(e,t,n){"use strict";e.exports=e=>({get:n("4815")(e),put:n("1f2a")(e),findProvs:n("0e68")(e),findPeer:n("1c65")(e),provide:n("12a6")(e),query:n("e0dc")(e)})}}]); //# sourceMappingURL=chunk-63e7daf4.3a77ee56.js.map