PageSourceSearch

https://zaif-ino.com/js/chunk-vendors~8f89ddd9.685aba26.js

js zaif-ino.com collected 2026-10-04 13:30:43 UTC 34,199 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-vendors~8f89ddd9"],{"00d7":function(t,e,r){"use strict";var o=r("ba10"),n=function(t){var e,r,n=new Promise((function(){e=arguments[0],r=arguments[1]}));if(t)return{resolve:e,reject:r,eventEmitter:n};var i=new o;return n._events=i._events,n.emit=i.emit,n.on=i.on,n.once=i.once,n.off=i.off,n.listeners=i.listeners,n.addListener=i.addListener,n.removeListener=i.removeListener,n.removeAllListeners=i.removeAllListeners,{resolve:e,reject:r,eventEmitter:n}};n.resolve=function(t){var e=n(!0);return e.resolve(t),e.eventEmitter},t.exports=n},"166e":function(t,e,r){"use strict";const{callbackify:o}=r("3022");var n=r("c044").errors,i=r("8f78"),s=r("899d"),a=r("3229"),c=function t(e,r){this.provider=null,this.providers=t.providers,this.setProvider(e,r),this.subscriptions=new Map};c.givenProvider=a,c.providers={WebsocketProvider:r("a4ca"),HttpProvider:r("64e4"),IpcProvider:r("6cdc")},c.prototype.setProvider=function(t,e){var r=this;if(t&&"string"==typeof t&&this.providers)if(/^http(s)?:\/\//i.test(t))t=new this.providers.HttpProvider(t);else if(/^ws(s)?:\/\//i.test(t))t=new this.providers.WebsocketProvider(t);else if(t&&"object"==typeof e&&"function"==typeof e.connect)t=new this.providers.IpcProvider(t,e);else if(t)throw new Error("Can't autodetect provider for \""+t+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=t||null,this.provider&&this.provider.on){"function"==typeof t.request?this.provider.on("message",(function(t){if(t&&"eth_subscription"===t.type&&t.data){const e=t.data;e.subscription&&r.subscriptions.has(e.subscription)&&r.subscriptions.get(e.subscription).callback(null,e.result)}})):this.provider.on("data",(function(t,e){(t=t||e).method&&t.params&&t.params.subscription&&r.subscriptions.has(t.params.subscription)&&r.subscriptions.get(t.params.subscription).callback(null,t.params.result)})),this.provider.on("connect",(function(){r.subscriptions.forEach((function(t){t.subscription.resubscribe()}))})),this.provider.on("error",(function(t){r.subscriptions.forEach((function(e){e.callback(t)}))}));const e=function(t){r._isCleanCloseEvent(t)&&!r._isIpcCloseError(t)||(r.subscriptions.forEach((function(e){e.callback(n.ConnectionCloseError(t)),r.subscriptions.delete(e.subscription.id)})),r.provider&&r.provider.emit&&r.provider.emit("error",n.ConnectionCloseError(t))),r.provider&&r.provider.emit&&r.provider.emit("end",t)};this.provider.on("disconnect",e)}},c.prototype.send=function(t,e){if(e=e||function(){},!this.provider)return e(n.InvalidProvider());const{method:r,params:s}=t,a=i.toPayload(r,s),c=this._jsonrpcResultCallback(e,a);if(this.provider.request){o(this.provider.request.bind(this.provider))({method:r,params:s},e)}else if(this.provider.sendAsync)this.provider.sendAsync(a,c);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(a,c)}},c.prototype.sendBatch=function(t,e){if(!this.provider)return e(n.InvalidProvider());var r=i.toBatchPayload(t);this.provider[this.provider.sendAsync?"sendAsync":"send"](r,(function(t,r){return t?e(t):Array.isArray(r)?void e(null,r):e(n.InvalidResponse(r))}))},c.prototype.addSubscription=function(t,e){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(t.id,{callback:e,subscription:t})},c.prototype.removeSubscription=function(t,e){if(this.subscriptions.has(t)){var r=this.subscriptions.get(t).subscription.options.type;return this.subscriptions.delete(t),void this.send({method:r+"_unsubscribe",params:[t]},e)}"function"==typeof e&&e(null)},c.prototype.clearSubscriptions=function(t){try{var e=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(r,o){t&&"syncing"===r.name||e.removeSubscription(o)})),this.provider.reset&&this.provider.reset(),!0}catch(t){throw new Error("Error while clearing subscriptions: "+t)}},c.prototype._isCleanCloseEvent=function(t){return"object"==typeof t&&([1e3].includes(t.code)||!0===t.wasClean)},c.prototype._isIpcCloseError=function(t){return"boolean"==typeof t&&t},c.prototype._jsonrpcResultCallback=function(t,e){return function(r,o){return o&&o.id&&e.id!==o.id?t(new Error(`Wrong response id ${o.id} (expected: ${e.id}) in ${JSON.stringify(e)}`)):r?t(r):o&&o.error?t(n.ErrorResponse(o)):i.isValidResponse(o)?void t(null,o.result):t(n.InvalidResponse(o))}},t.exports={Manager:c,BatchManager:s}},3229:function(t,e,r){"use strict";var o=null,n="object"==typeof globalThis?globalThis:void 0;if(!n)try{n=Function("return this")()}catch(t){n=self}void 0!==n.ethereum?o=n.ethereum:void 0!==n.web3&&n.web3.currentProvider&&(n.web3.currentProvider.sendAsync&&(n.web3.currentProvider.send=n.web3.currentProvider.sendAsync,delete n.web3.currentProvider.sendAsync),!n.web3.currentProvider.on&&n.web3.currentProvider.connection&&"ipcProviderWrapper"===n.web3.currentProvider.connection.constructor.name&&(n.web3.currentProvider.on=function(t,e){if("function"!=typeof e)throw new Error("The second parameter callback must be a function.");
1if("data"===t)this.connection.on("data",(function(t){var r="";t=t.toString();try{r=JSON.parse(t)}catch(r){return e(new Error("Couldn't parse response data"+t))}r.id||-1===r.method.indexOf("_subscription")||e(null,r)}));else this.connection.on(t,e)}),o=n.web3.currentProvider),t.exports=o},"490f":function(t,e,r){"use strict";t.exports={ErrorResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:JSON.stringify(t),r=t.error&&t.error.data?t.error.data:null,o=new Error("Returned error: "+e);return o.data=r,o},InvalidNumberOfParams:function(t,e,r){return new Error('Invalid number of parameters for "'+r+'". Got '+t+" expected "+e+"!")},InvalidConnection:function(t,e){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+t+".",e)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(t){var e=t&&t.error&&t.error.message?t.error.message:"Invalid JSON RPC response: "+JSON.stringify(t);return new Error(e)},ConnectionTimeout:function(t){return new Error("CONNECTION TIMEOUT: timeout of "+t+" ms achived")},ConnectionNotOpenError:function(t){return this.ConnectionError("connection not open on send()",t)},ConnectionCloseError:function(t){return"object"==typeof t&&t.code&&t.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+t.code+"` and the following reason string `"+t.reason+"`",t):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(t,e){const r=new Error(t);return e&&(r.code=e.code,r.reason=e.reason),r},RevertInstructionError:function(t,e){var r=new Error("Your request got reverted with the following reason string: "+t);return r.reason=t,r.signature=e,r},TransactionRevertInstructionError:function(t,e,r){var o=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(r,null,2));return o.reason=t,o.signature=e,o.receipt=r,o},TransactionError:function(t,e){var r=new Error(t);return r.receipt=e,r},NoContractAddressFoundError:function(t){return this.TransactionError("The transaction receipt didn't contain a contract address.",t)},ContractCodeNotStoredError:function(t){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",t)},TransactionRevertedWithoutReasonError:function(t){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(t,null,2),t)},TransactionOutOfGasError:function(t){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(t,null,2),t)},ResolverMethodMissingError:function(t,e){return new Error("The resolver at "+t+'does not implement requested method: "'+e+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(t){return new Error('Event "'+t+"\" doesn't exist in this contract.")},ContractReservedEventError:function(t){return new Error('The event "'+t+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},"68e2":function(t,e,r){"use strict";var o=r("5ba3"),n=r("5fa0"),i=function(t){return o.toBN(t).toString(10)},s=function(t){if(void 0!==t)return function(t){return"latest"===t||"pending"===t||"earliest"===t}(t)?t:"genesis"===t?"0x0":o.isHexStrict(t)?"string"==typeof t?t.toLowerCase():t:o.numberToHex(t)},a=function(t){if(t.to&&(t.to=l(t.to)),t.data&&t.input)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.');
1if(!t.data&&t.input&&(t.data=t.input,delete t.input),t.data&&!t.data.startsWith("0x")&&(t.data="0x"+t.data),t.data&&!o.isHex(t.data))throw new Error("The data field must be HEX encoded data.");return(t.gas||t.gasLimit)&&(t.gas=t.gas||t.gasLimit),(t.maxPriorityFeePerGas||t.maxFeePerGas)&&delete t.gasPrice,["gasPrice","gas","value","maxPriorityFeePerGas","maxFeePerGas","nonce"].filter((function(e){return void 0!==t[e]})).forEach((function(e){t[e]=o.numberToHex(t[e])})),t},c=function(t){return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),t.nonce=o.hexToNumber(t.nonce),t.gas=o.hexToNumber(t.gas),t.gasPrice&&(t.gasPrice=i(t.gasPrice)),t.maxFeePerGas&&(t.maxFeePerGas=i(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=i(t.maxPriorityFeePerGas)),t.type&&(t.type=o.hexToNumber(t.type)),t.value=i(t.value),t.to&&o.isAddress(t.to)?t.to=o.toChecksumAddress(t.to):t.to=null,t.from&&(t.from=o.toChecksumAddress(t.from)),t},u=function(t){if("string"==typeof t.blockHash&&"string"==typeof t.transactionHash&&"string"==typeof t.logIndex){var e=o.sha3(t.blockHash.replace("0x","")+t.transactionHash.replace("0x","")+t.logIndex.replace("0x",""));t.id="log_"+e.replace("0x","").substr(0,8)}else t.id||(t.id=null);return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),null!==t.logIndex&&(t.logIndex=o.hexToNumber(t.logIndex)),t.address&&(t.address=o.toChecksumAddress(t.address)),t},l=function(t){var e=new n(t);if(e.isValid()&&e.isDirect())return e.toAddress().toLowerCase();if(o.isAddress(t))return"0x"+t.toLowerCase().replace("0x","");throw new Error(`Provided address ${t} is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.`)};t.exports={inputDefaultBlockNumberFormatter:function(t){return s(this&&null==t?this.defaultBlock:t)},inputBlockNumberFormatter:s,inputCallFormatter:function(t){var e=(t=a(t)).from||(this?this.defaultAccount:null);return e&&(t.from=l(e)),t},inputTransactionFormatter:function(t){if("number"!=typeof(t=a(t)).from&&(!t.from||"object"!=typeof t.from)){if(t.from=t.from||(this?this.defaultAccount:null),!t.from&&"number"!=typeof t.from)throw new Error('The send transactions "from" field must be defined!');t.from=l(t.from)}return t},inputAddressFormatter:l,inputPostFormatter:function(t){return t.ttl&&(t.ttl=o.numberToHex(t.ttl)),t.workToProve&&(t.workToProve=o.numberToHex(t.workToProve)),t.priority&&(t.priority=o.numberToHex(t.priority)),Array.isArray(t.topics)||(t.topics=t.topics?[t.topics]:[]),t.topics=t.topics.map((function(t){return 0===t.indexOf("0x")?t:o.fromUtf8(t)})),t},inputLogFormatter:function(t){var e=function(t){return null==t?null:0===(t=String(t)).indexOf("0x")?t:o.fromUtf8(t)};return void 0===t&&(t={}),void 0===t.fromBlock&&(t={...t,fromBlock:"latest"}),(t.fromBlock||0===t.fromBlock)&&(t.fromBlock=s(t.fromBlock)),(t.toBlock||0===t.toBlock)&&(t.toBlock=s(t.toBlock)),t.topics=t.topics||[],t.topics=t.topics.map((function(t){return Array.isArray(t)?t.map(e):e(t)})),e=null,t.address&&(t.address=Array.isArray(t.address)?t.address.map((function(t){return l(t)})):l(t.address)),t},inputSignFormatter:function(t){return o.isHexStrict(t)?t:o.utf8ToHex(t)},inputStorageKeysFormatter:function(t){return t.map(o.numberToHex)},outputProofFormatter:function(t){return t.address=o.toChecksumAddress(t.address),t.nonce=o.hexToNumberString(t.nonce),t.balance=o.hexToNumberString(t.balance),t},outputBigNumberFormatter:i,outputTransactionFormatter:c,outputTransactionReceiptFormatter:function(t){if("object"!=typeof t)throw new Error("Received receipt is invalid: "+t);return null!==t.blockNumber&&(t.blockNumber=o.hexToNumber(t.blockNumber)),null!==t.transactionIndex&&(t.transactionIndex=o.hexToNumber(t.transactionIndex)),t.cumulativeGasUsed=o.hexToNumber(t.cumulativeGasUsed),t.gasUsed=o.hexToNumber(t.gasUsed),Array.isArray(t.logs)&&(t.logs=t.logs.map(u)),t.effectiveGasPrice&&(t.effectiveGasPrice=o.hexToNumber(t.effectiveGasPrice)),t.contractAddress&&(t.contractAddress=o.toChecksumAddress(t.contractAddress)),void 0!==t.status&&null!==t.status&&(t.status=Boolean(parseInt(t.status))),t}
1,outputBlockFormatter:function(t){return t.gasLimit=o.hexToNumber(t.gasLimit),t.gasUsed=o.hexToNumber(t.gasUsed),t.size=o.hexToNumber(t.size),t.timestamp=o.hexToNumber(t.timestamp),null!==t.number&&(t.number=o.hexToNumber(t.number)),t.difficulty&&(t.difficulty=i(t.difficulty)),t.totalDifficulty&&(t.totalDifficulty=i(t.totalDifficulty)),Array.isArray(t.transactions)&&t.transactions.forEach((function(t){if("string"!=typeof t)return c(t)})),t.miner&&(t.miner=o.toChecksumAddress(t.miner)),t.baseFeePerGas&&(t.baseFeePerGas=o.hexToNumber(t.baseFeePerGas)),t},outputLogFormatter:u,outputPostFormatter:function(t){return t.expiry=o.hexToNumber(t.expiry),t.sent=o.hexToNumber(t.sent),t.ttl=o.hexToNumber(t.ttl),t.workProved=o.hexToNumber(t.workProved),t.topics||(t.topics=[]),t.topics=t.topics.map((function(t){return o.toUtf8(t)})),t},outputSyncingFormatter:function(t){return t.startingBlock=o.hexToNumber(t.startingBlock),t.currentBlock=o.hexToNumber(t.currentBlock),t.highestBlock=o.hexToNumber(t.highestBlock),t.knownStates&&(t.knownStates=o.hexToNumber(t.knownStates),t.pulledStates=o.hexToNumber(t.pulledStates)),t}}},7789:function(t,e,r){"use strict";var o=r("c044").errors,n=r("c044").formatters,i=r("5ba3"),s=r("00d7"),a=r("c3e6").subscriptions,c=r("5ac3"),u=function(t){if(!t.call||!t.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=t.name,this.call=t.call,this.params=t.params||0,this.inputFormatter=t.inputFormatter,this.outputFormatter=t.outputFormatter,this.transformPayload=t.transformPayload,this.extraFormatters=t.extraFormatters,this.abiCoder=t.abiCoder,this.requestManager=t.requestManager,this.accounts=t.accounts,this.defaultBlock=t.defaultBlock||"latest",this.defaultAccount=t.defaultAccount||null,this.transactionBlockTimeout=t.transactionBlockTimeout||50,this.transactionConfirmationBlocks=t.transactionConfirmationBlocks||24,this.transactionPollingTimeout=t.transactionPollingTimeout||750,this.transactionPollingInterval=t.transactionPollingInterval||1e3,this.blockHeaderTimeout=t.blockHeaderTimeout||10,this.defaultCommon=t.defaultCommon,this.defaultChain=t.defaultChain,this.defaultHardfork=t.defaultHardfork,this.handleRevert=t.handleRevert};u.prototype.setRequestManager=function(t,e){this.requestManager=t,e&&(this.accounts=e)},u.prototype.createFunction=function(t,e){var r=this.buildCall();return r.call=this.call,this.setRequestManager(t||this.requestManager,e||this.accounts),r},u.prototype.attachToObject=function(t){var e=this.buildCall();e.call=this.call;var r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},u.prototype.getCall=function(t){return"function"==typeof this.call?this.call(t):this.call},u.prototype.extractCallback=function(t){if("function"==typeof t[t.length-1])return t.pop()},u.prototype.validateArgs=function(t){if(t.length!==this.params)throw o.InvalidNumberOfParams(t.length,this.params,this.name)},u.prototype.formatInput=function(t){var e=this;return this.inputFormatter?this.inputFormatter.map((function(r,o){return r?r.call(e,t[o]):t[o]})):t},u.prototype.formatOutput=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return e.outputFormatter&&t?e.outputFormatter(t):t})):this.outputFormatter&&t?this.outputFormatter(t):t},u.prototype.toPayload=function(t){var e=this.getCall(t),r=this.extractCallback(t),o=this.formatInput(t);this.validateArgs(o);var n={method:e,params:o,callback:r};return this.transformPayload&&(n=this.transformPayload(n)),n},u.prototype._confirmTransaction=function(t,e,r){var l=this,p=!1,d=!0,m=0,f=0,h=null,v=null,b=null,g=r.params[0]&&"object"==typeof r.params[0]&&r.params[0].gas?r.params[0].gas:null,y=!!r.params[0]&&"object"==typeof r.params[0]&&r.params[0].data&&r.params[0].from&&!r.params[0].to,E=y&&r.params[0].data.length>2,w=[new u({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[n.inputBlockNumberFormatter,function(t){return!!t}],outputFormatter:n.outputBlockFormatter}),new u({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:n.outputTransactionReceiptFormatter}),new u({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter]}),new u({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:n.outputTransactionFormatter}),new a({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:n.outputBlockFormatter}}})],P={};
1w.forEach((t=>{t.attachToObject(P),t.requestManager=l.requestManager}));var k=function(a,u,w,k,x){if(!w)return x||(x={unsubscribe:function(){clearInterval(h),clearTimeout(v)}}),(a?s.resolve(a):P.getTransactionReceipt(e)).catch((function(e){x.unsubscribe(),p=!0,i._fireError({message:"Failed to check for transaction receipt:",data:e},t.eventEmitter,t.reject)})).then((async function(e){if(!e||!e.blockHash)throw new Error("Receipt missing or blockHash null");if(l.extraFormatters&&l.extraFormatters.receiptFormatter&&(e=l.extraFormatters.receiptFormatter(e)),t.eventEmitter.listeners("confirmation").length>0){var r;if(void 0===a||0!==f){var o=await P.getBlockByNumber("latest"),n=o?o.hash:null;u?b?(r=await P.getBlockByNumber(b.number+1))&&(b=r,t.eventEmitter.emit("confirmation",f,e,n)):(r=await P.getBlockByNumber(e.blockNumber),b=r,t.eventEmitter.emit("confirmation",f,e,n)):t.eventEmitter.emit("confirmation",f,e,n)}(u&&r||!u)&&f++,d=!1,f===l.transactionConfirmationBlocks+1&&(x.unsubscribe(),t.eventEmitter.removeAllListeners())}return e})).then((async function(e){if(y&&!p){if(!e.contractAddress)return d&&(x.unsubscribe(),p=!0),void i._fireError(o.NoContractAddressFoundError(e),t.eventEmitter,t.reject,null,e);var r;try{r=await P.getCode(e.contractAddress)}catch(t){}if(!r)return;!0===e.status&&E||r.length>2?(t.eventEmitter.emit("receipt",e),l.extraFormatters&&l.extraFormatters.contractDeployFormatter?t.resolve(l.extraFormatters.contractDeployFormatter(e)):t.resolve(e),d&&t.eventEmitter.removeAllListeners()):i._fireError(o.ContractCodeNotStoredError(e),t.eventEmitter,t.reject,null,e),d&&x.unsubscribe(),p=!0}return e})).then((async function(e){if(!y&&!p){if(e.outOfGas||g&&g===e.gasUsed||!0!==e.status&&"0x1"!==e.status&&void 0!==e.status)if(JSON.stringify(e,null,2),!1===e.status||"0x0"===e.status)try{var s;if(!l.handleRevert||"eth_sendTransaction"!==l.call&&"eth_sendRawTransaction"!==l.call)throw!1;var a=r.params[0];if("eth_sendRawTransaction"===l.call){var u=r.params[0],m=c.parse(u);a=n.inputTransactionFormatter({data:m.data,to:m.to,from:m.from,gas:m.gasLimit.toHexString(),gasPrice:m.gasPrice.toHexString(),value:m.value.toHexString()})}if(!(s=await l.getRevertReason(a,e.blockNumber)))throw!1;i._fireError(o.TransactionRevertInstructionError(s.reason,s.signature,e),t.eventEmitter,t.reject,null,e)}catch(r){i._fireError(o.TransactionRevertedWithoutReasonError(e),t.eventEmitter,t.reject,null,e)}else i._fireError(o.TransactionOutOfGasError(e),t.eventEmitter,t.reject,null,e);else t.eventEmitter.emit("receipt",e),t.resolve(e),d&&t.eventEmitter.removeAllListeners();d&&x.unsubscribe(),p=!0}})).catch((function(){m++,u?m-1>=l.transactionPollingTimeout&&(x.unsubscribe(),p=!0,i._fireError(o.TransactionError("Transaction was not mined within "+l.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject)):m-1>=l.transactionBlockTimeout&&(x.unsubscribe(),p=!0,i._fireError(o.TransactionError("Transaction was not mined within "+l.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),t.eventEmitter,t.reject))}));x.unsubscribe(),p=!0,i._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:w},t.eventEmitter,t.reject)},x=function(t){let e=!1;const r=()=>{h=setInterval(k.bind(null,t,!0),l.transactionPollingInterval)};if(!this.requestManager.provider.on)return r();P.subscribe("newBlockHeaders",(function(o,n,i){if(e=!0,o||!n)return r();k(t,!1,o,0,i)})),v=setTimeout((()=>{e||r()}),1e3*this.blockHeaderTimeout)}.bind(this);P.getTransactionReceipt(e).then((function(e){e&&e.blockHash?(t.eventEmitter.listeners("confirmation").length>0&&x(e),k(e,!1)):p||x()})).catch((function(){p||x()}))};var l=function(t,e){return"number"==typeof t?e.wallet[t]:t&&"object"==typeof t&&t.address&&t.privateKey?t:e.wallet[t.toLowerCase()]};function p(t,e){return new Promise(((r,o)=>{try{var n=new u({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[function(t){return t?i.toHex(t):"latest"},function(){return!1}]}).createFunction(t.requestManager),s=new u({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(t.requestManager);Promise.all([n(),s()]).then((t=>{const[o,n]=t;if(("0x2"===e.type||void 0===e.type)&&o&&o.baseFeePerGas){let t,n;e.gasPrice?(t=e.gasPrice,n=e.gasPrice,delete e.gasPrice):(t=e.maxPriorityFeePerGas||"0x9502F900",n=e.maxFeePerGas||i.toHex(i.toBN(o.baseFeePerGas).mul(i.toBN(2)).add(i.toBN(t)))),r({maxFeePerGas:n,maxPriorityFeePerGas:t})}else{if(e.maxPriorityFeePerGas||e.maxFeePerGas)throw Error("Network doesn't support eip-1559");r({gasPrice:n})}}))}catch(t){o(t)}}
1))}u.prototype.buildCall=function(){var t=this,e="eth_sendTransaction"===t.call||"eth_sendRawTransaction"===t.call,r="eth_call"===t.call,n=function(){var n=s(!e),a=t.toPayload(Array.prototype.slice.call(arguments)),c=function(s,c){var u;if(t.handleRevert&&r&&t.abiCoder&&(!s&&t.isRevertReasonString(c)?u=c.substring(10):s&&s.data&&(u=s.data.substring(10)),u)){var l=t.abiCoder.decodeParameter("string","0x"+u),p="Error(String)";i._fireError(o.RevertInstructionError(l,p),n.eventEmitter,n.reject,a.callback,{reason:l,signature:p})}else{try{c=t.formatOutput(c)}catch(t){s=t}if(c instanceof Error&&(s=c),s)return s.error&&(s=s.error),i._fireError(s,n.eventEmitter,n.reject,a.callback);a.callback&&a.callback(null,c),e?(n.eventEmitter.emit("transactionHash",c),t._confirmTransaction(n,c,a)):s||n.resolve(c)}},u=function(e){var r={...a,method:"eth_sendRawTransaction",params:[e.rawTransaction]};t.requestManager.send(r,c)},d=function(t,e){var r;if(e&&e.accounts&&e.accounts.wallet&&e.accounts.wallet.length)if("eth_sendTransaction"===t.method){var o=t.params[0];if((r=l(o&&"object"==typeof o?o.from:null,e.accounts))&&r.privateKey)return delete(o=JSON.parse(JSON.stringify(o))).from,e.defaultChain&&!o.chain&&(o.chain=e.defaultChain),e.defaultHardfork&&!o.hardfork&&(o.hardfork=e.defaultHardfork),e.defaultCommon&&!o.common&&(o.common=e.defaultCommon),void e.accounts.signTransaction(o,r.privateKey).then(u).catch((function(t){if("function"==typeof n.eventEmitter.listeners&&n.eventEmitter.listeners("error").length){try{n.eventEmitter.emit("error",t)}catch(t){}n.eventEmitter.removeAllListeners(),n.eventEmitter.catch((function(){}))}n.reject(t)}))}else if("eth_sign"===t.method){var i=t.params[1];if((r=l(t.params[0],e.accounts))&&r.privateKey){var s=e.accounts.sign(i,r.privateKey);
1return t.callback&&t.callback(null,s.signature),void n.resolve(s.signature)}}return e.requestManager.send(t,c)};return e&&a.params[0]&&"object"==typeof a.params[0]&&void 0===a.params[0].gasPrice&&(void 0===a.params[0].maxPriorityFeePerGas||void 0===a.params[0].maxFeePerGas)?p(t,a.params[0]).then((r=>{void 0!==r.gasPrice?a.params[0].gasPrice=r.gasPrice:void 0!==r.maxPriorityFeePerGas&&void 0!==r.maxFeePerGas&&(a.params[0].maxPriorityFeePerGas=r.maxPriorityFeePerGas,a.params[0].maxFeePerGas=r.maxFeePerGas),e&&setTimeout((()=>{n.eventEmitter.emit("sending",a)}),0),d(a,t)})):(e&&setTimeout((()=>{n.eventEmitter.emit("sending",a)}),0),d(a,t)),e&&setTimeout((()=>{n.eventEmitter.emit("sent",a)}),0),n.eventEmitter};return n.method=t,n.request=this.request.bind(this),n},u.prototype.getRevertReason=function(t,e){var r=this;return new Promise((function(o,n){new u({name:"call",call:"eth_call",params:2,abiCoder:r.abiCoder,handleRevert:!0}).createFunction(r.requestManager)(t,i.numberToHex(e)).then((function(){o(!1)})).catch((function(t){t.reason?o({reason:t.reason,signature:t.signature}):n(t)}))}))},u.prototype.isRevertReasonString=function(t){return"string"==typeof t&&(t.length-2)/2%32==4&&"0x08c379a0"===t.substring(0,10)},u.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},t.exports=u},"899d":function(t,e,r){"use strict";var o=r("8f78"),n=r("c044").errors,i=function(t){this.requestManager=t,this.requests=[]};i.prototype.add=function(t){this.requests.push(t)},i.prototype.execute=function(){var t=this.requests,e=this._sortResponses.bind(this);this.requestManager.sendBatch(t,(function(r,i){i=e(i),t.map((function(t,e){return i[e]||{}})).forEach((function(e,r){if(t[r].callback){if(e&&e.error)return t[r].callback(n.ErrorResponse(e));if(!o.isValidResponse(e))return t[r].callback(n.InvalidResponse(e));try{t[r].callback(null,t[r].format?t[r].format(e.result):e.result)}catch(e){t[r].callback(e)}}}))}))},i.prototype._sortResponses=function(t){return(t||[]).sort(((t,e)=>t.id-e.id))},t.exports=i},"8f78":function(t,e,r){"use strict";var o={messageId:0,toPayload:function(t,e){if(!t)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(e)+'"!');return o.messageId++,{jsonrpc:"2.0",id:o.messageId,method:t,params:e||[]}},isValidResponse:function(t){return Array.isArray(t)?t.every(e):e(t);function e(t){return!(!t||t.error||"2.0"!==t.jsonrpc||"number"!=typeof t.id&&"string"!=typeof t.id||void 0===t.result)}},toBatchPayload:function(t){return t.map((function(t){return o.toPayload(t.method,t.params)}))}};t.exports=o},ac5c:function(t,e,r){"use strict";var o=r("33fb"),n=function t(e){this.givenProvider=t.givenProvider,e&&e._requestManager&&(e=e.currentProvider),"undefined"!=typeof document&&(this.pick=o.pick),this.setProvider(e)};n.givenProvider=null,"undefined"!=typeof ethereum&&ethereum.bzz&&(n.givenProvider=ethereum.bzz),n.prototype.setProvider=function(t){if(t&&"object"==typeof t&&"string"==typeof t.bzz&&(t=t.bzz),"string"!=typeof t){this.currentProvider=null;var e=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw e},!1}return this.currentProvider=t,this.download=o.at(t).download,this.upload=o.at(t).upload,this.isAvailable=o.at(t).isAvailable,!0},t.exports=n},b287:function(t,e,r){"use strict";var o=r("c044").errors,n=r("ba10"),i=r("c044").formatters;function s(t){return t}function a(t){n.call(this),this.id=null,this.callback=s,this.arguments=null,this.lastBlock=null,this.options={subscription:t.subscription,type:t.type,requestManager:t.requestManager}}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.prototype._extractCallback=function(t){if("function"==typeof t[t.length-1])return t.pop()},a.prototype._validateArgs=function(t){var e=this.options.subscription;if(e||(e={}),e.params||(e.params=0),t.length!==e.params)throw o.InvalidNumberOfParams(t.length,e.params,e.subscriptionName)},a.prototype._formatInput=function(t){var e=this.options.subscription;if(!e)return t;if(!e.inputFormatter)return t;var r=e.inputFormatter.map((function(e,r){return e?e(t[r]):t[r]}));return r},a.prototype._formatOutput=function(t){var e=this.options.subscription;return e&&e.outputFormatter&&t?e.outputFormatter(t):t},a.prototype._toPayload=function(t){var e=[];
1if(this.callback=this._extractCallback(t)||s,this.subscriptionMethod||(this.subscriptionMethod=t.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(t),this._validateArgs(this.arguments),t=[]),e.push(this.subscriptionMethod),e=e.concat(this.arguments),t.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:e}},a.prototype.unsubscribe=function(t){this.options.requestManager.removeSubscription(this.id,t),this.id=null,this.lastBlock=null,this.removeAllListeners()},a.prototype.subscribe=function(){var t=this,e=Array.prototype.slice.call(arguments),r=this._toPayload(e);if(!r)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var e=new Error("No provider set.");t.callback(e,null,t),t.emit("error",e)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var e=new Error("The current provider doesn't support subscriptions: "+t.options.requestManager.provider.constructor.name);t.callback(e,null,t),t.emit("error",e)}),0),this;if(this.lastBlock&&this.options.params&&"object"==typeof this.options.params&&(r.params[1]=this.options.params,r.params[1].fromBlock=i.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=r.params[1],"logs"===r.params[0]&&r.params[1]&&"object"==typeof r.params[1]&&r.params[1].hasOwnProperty("fromBlock")&&isFinite(r.params[1].fromBlock)){var o=Object.assign({},r.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[o]},(function(e,r){e?setTimeout((function(){t.callback(e,null,t),t.emit("error",e)}),0):r.forEach((function(e){var r=t._formatOutput(e);t.callback(null,r,t),t.emit("data",r)}))}))}return"object"==typeof r.params[1]&&delete r.params[1].fromBlock,this.options.requestManager.send(r,(function(e,o){!e&&o?(t.id=o,t.method=r.params[0],t.options.requestManager.addSubscription(t,(function(e,r){e?(t.callback(e,!1,t),t.emit("error",e)):(Array.isArray(r)||(r=[r]),r.forEach((function(e){var r=t._formatOutput(e);if(t.lastBlock=r&&"object"==typeof r?r.blockNumber:null,"function"==typeof t.options.subscription.subscriptionHandler)return t.options.subscription.subscriptionHandler.call(t,r);t.emit("data",r),t.callback(null,r,t)})))})),t.emit("connected",o)):setTimeout((function(){t.callback(e,!1,t),t.emit("error",e)}),0)})),this},a.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},t.exports=a},c044:function(t,e,r){"use strict";var o=r("490f"),n=r("68e2");t.exports={errors:o,formatters:n}},c063:function(t,e,r){const o=r("166e"),n=r("c23d");t.exports={packageInit:(t,e)=>{if(e=Array.prototype.slice.call(e),!t)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(t,"currentProvider",{get:()=>t._provider,set:e=>t.setProvider(e),enumerable:!0,configurable:!0}),e[0]&&e[0]._requestManager?t._requestManager=e[0]._requestManager:t._requestManager=new o.Manager(e[0],e[1]),t.givenProvider=o.Manager.givenProvider,t.providers=o.Manager.providers,t._provider=t._requestManager.provider,t.setProvider||(t.setProvider=(e,r)=>(t._requestManager.setProvider(e,r),t._provider=t._requestManager.provider,!0)),t.setRequestManager=e=>{t._requestManager=e,t._provider=e.provider},t.BatchRequest=o.BatchManager.bind(null,t._requestManager),t.extend=n(t)},addProviders:t=>{t.givenProvider=o.Manager.givenProvider,t.providers=o.Manager.providers}}},c23d:function(t,e,r){"use strict";var o=r("c044").formatters,n=r("7789"),i=r("5ba3");t.exports=function(t){var e=function(e){var r;return e.property?(t[e.property]||(t[e.property]={}),r=t[e.property]):r=t,e.methods&&e.methods.forEach((function(e){e instanceof n||(e=new n(e)),e.attachToObject(r),e.setRequestManager(t._requestManager)})),t};return e.formatters=o,e.utils=i,e.Method=n,e}},c3e6:function(t,e,r){"use strict";var o=r("b287"),n=function(t){this.name=t.name,this.type=t.type,this.subscriptions=t.subscriptions||{},this.requestManager=null};n.prototype.setRequestManager=function(t){this.requestManager=t},n.prototype.attachToObject=function(t){var e=this.buildCall(),r=this.name.split(".");r.length>1?(t[r[0]]=t[r[0]]||{},t[r[0]][r[1]]=e):t[r[0]]=e},n.prototype.buildCall=function(){var t=this;return function(){t.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var e=new o({subscription:t.subscriptions[arguments[0]]||{},requestManager:t.requestManager,type:t.type});return e.subscribe.apply(e,arguments)}},t.exports={subscriptions:n,subscription:o}}}]);
2//# sourceMappingURL=chunk-vendors~8f89ddd9.685aba26.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.