@xoxno/sdk-js 0.1.305 → 0.1.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/13.cjs.js +1 -0
- package/dist/13.esm.js +1 -0
- package/dist/132.cjs.js +1 -0
- package/dist/132.esm.js +1 -0
- package/dist/145.cjs.js +1 -0
- package/dist/145.esm.js +1 -0
- package/dist/147.cjs.js +1 -0
- package/dist/147.esm.js +1 -0
- package/dist/242.cjs.js +1 -0
- package/dist/242.esm.js +1 -0
- package/dist/385.cjs.js +1 -0
- package/dist/385.esm.js +1 -0
- package/dist/392.cjs.js +1 -0
- package/dist/392.esm.js +1 -0
- package/dist/401.cjs.js +2 -0
- package/dist/{interactor.cjs.js.LICENSE.txt → 401.cjs.js.LICENSE.txt} +0 -4
- package/dist/401.esm.js +2 -0
- package/dist/{interactor.esm.js.LICENSE.txt → 401.esm.js.LICENSE.txt} +0 -4
- package/dist/403.cjs.js +1 -0
- package/dist/403.esm.js +1 -0
- package/dist/415.cjs.js +1 -0
- package/dist/415.esm.js +1 -0
- package/dist/425.cjs.js +1 -0
- package/dist/425.esm.js +1 -0
- package/dist/473.cjs.js +1 -0
- package/dist/473.esm.js +1 -0
- package/dist/528.cjs.js +1 -0
- package/dist/528.esm.js +1 -0
- package/dist/54.cjs.js +1 -0
- package/dist/54.esm.js +1 -0
- package/dist/586.cjs.js +1 -0
- package/dist/586.esm.js +1 -0
- package/dist/626.cjs.js +1 -0
- package/dist/626.esm.js +1 -0
- package/dist/661.cjs.js +1 -0
- package/dist/661.esm.js +1 -0
- package/dist/766.cjs.js +1 -0
- package/dist/766.esm.js +1 -0
- package/dist/820.cjs.js +2 -0
- package/dist/820.cjs.js.LICENSE.txt +3 -0
- package/dist/820.esm.js +2 -0
- package/dist/820.esm.js.LICENSE.txt +3 -0
- package/dist/854.cjs.js +1 -0
- package/dist/854.esm.js +1 -0
- package/dist/966.cjs.js +1 -0
- package/dist/966.esm.js +1 -0
- package/dist/979.cjs.js +1 -0
- package/dist/979.esm.js +1 -0
- package/dist/989.cjs.js +1 -0
- package/dist/989.esm.js +1 -0
- package/dist/interactions/index.d.ts +11 -12
- package/dist/interactions/index.d.ts.map +1 -1
- package/dist/interactor.cjs.js +1 -2
- package/dist/interactor.esm.js +1 -2
- package/dist/launchpad/index.d.ts +0 -1
- package/dist/launchpad/index.d.ts.map +1 -1
- package/dist/utils/SmartContractAbis.d.ts +1 -1
- package/dist/utils/SmartContractAbis.d.ts.map +1 -1
- package/dist/utils/SmartContractService.d.ts +1 -2
- package/dist/utils/SmartContractService.d.ts.map +1 -1
- package/dist/utils/scCalls.d.ts +2 -1
- package/dist/utils/scCalls.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/13.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[13],{1013:(t,r,n)=>{var o=n(7372).stringify,e=n(8146);t.exports=function(t){return{parse:e(t),stringify:o}},t.exports.parse=e(),t.exports.stringify=o},8146:(t,r,n)=>{var o=null;const e=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,i=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;t.exports=function(t){"use strict";var r={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=t){if(!0===t.strict&&(r.strict=!0),!0===t.storeAsString&&(r.storeAsString=!0),r.alwaysParseAsBig=!0===t.alwaysParseAsBig&&t.alwaysParseAsBig,r.useNativeBigInt=!0===t.useNativeBigInt&&t.useNativeBigInt,void 0!==t.constructorAction){if("error"!==t.constructorAction&&"ignore"!==t.constructorAction&&"preserve"!==t.constructorAction)throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);r.constructorAction=t.constructorAction}if(void 0!==t.protoAction){if("error"!==t.protoAction&&"ignore"!==t.protoAction&&"preserve"!==t.protoAction)throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`);r.protoAction=t.protoAction}}var u,c,s,f,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p=function(t){throw{name:"SyntaxError",message:t,at:u,text:s}},l=function(t){return t&&t!==c&&p("Expected '"+t+"' instead of '"+c+"'"),c=s.charAt(u),u+=1,c},g=function(){var t,e="";for("-"===c&&(e="-",l("-"));c>="0"&&c<="9";)e+=c,l();if("."===c)for(e+=".";l()&&c>="0"&&c<="9";)e+=c;if("e"===c||"E"===c)for(e+=c,l(),"-"!==c&&"+"!==c||(e+=c,l());c>="0"&&c<="9";)e+=c,l();if(t=+e,isFinite(t))return null==o&&(o=n(1594)),e.length>15?r.storeAsString?e:r.useNativeBigInt?BigInt(e):new o(e):r.alwaysParseAsBig?r.useNativeBigInt?BigInt(t):new o(t):t;p("Bad number")},y=function(){var t,r,n,o="";if('"'===c)for(var e=u;l();){if('"'===c)return u-1>e&&(o+=s.substring(e,u-1)),l(),o;if("\\"===c){if(u-1>e&&(o+=s.substring(e,u-1)),l(),"u"===c){for(n=0,r=0;r<4&&(t=parseInt(l(),16),isFinite(t));r+=1)n=16*n+t;o+=String.fromCharCode(n)}else{if("string"!=typeof a[c])break;o+=a[c]}e=u}}p("Bad string")},b=function(){for(;c&&c<=" ";)l()};return f=function(){switch(b(),c){case"{":return function(){var t,n=Object.create(null);if("{"===c){if(l("{"),b(),"}"===c)return l("}"),n;for(;c;){if(t=y(),b(),l(":"),!0===r.strict&&Object.hasOwnProperty.call(n,t)&&p('Duplicate key "'+t+'"'),!0===e.test(t)?"error"===r.protoAction?p("Object contains forbidden prototype property"):"ignore"===r.protoAction?f():n[t]=f():!0===i.test(t)?"error"===r.constructorAction?p("Object contains forbidden constructor property"):"ignore"===r.constructorAction?f():n[t]=f():n[t]=f(),b(),"}"===c)return l("}"),n;l(","),b()}}p("Bad object")}();case"[":return function(){var t=[];if("["===c){if(l("["),b(),"]"===c)return l("]"),t;for(;c;){if(t.push(f()),b(),"]"===c)return l("]"),t;l(","),b()}}p("Bad array")}();case'"':return y();case"-":return g();default:return c>="0"&&c<="9"?g():function(){switch(c){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}p("Unexpected '"+c+"'")}()}},function(t,r){var n;return s=t+"",u=0,c=" ",n=f(),b(),c&&p("Syntax error"),"function"==typeof r?function t(n,o){var e,i=n[o];return i&&"object"==typeof i&&Object.keys(i).forEach((function(r){void 0!==(e=t(i,r))?i[r]=e:delete i[r]})),r.call(n,o,i)}({"":n},""):n}}},7372:(t,r,n)=>{var o=n(1594),e=t.exports;!function(){"use strict";var t,r,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(t){return i.lastIndex=0,i.test(t)?'"'+t.replace(i,(function(t){var r=u[t];return"string"==typeof r?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function s(e,i){var u,f,a,p,l,g=t,y=i[e],b=null!=y&&(y instanceof o||o.isBigNumber(y));switch(y&&"object"==typeof y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),"function"==typeof n&&(y=n.call(i,e,y)),typeof y){case"string":return b?y:c(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":case"bigint":return String(y);case"object":if(!y)return"null";if(t+=r,l=[],"[object Array]"===Object.prototype.toString.apply(y)){for(p=y.length,u=0;u<p;u+=1)l[u]=s(u,y)||"null";return a=0===l.length?"[]":t?"[\n"+t+l.join(",\n"+t)+"\n"+g+"]":"["+l.join(",")+"]",t=g,a}if(n&&"object"==typeof n)for(p=n.length,u=0;u<p;u+=1)"string"==typeof n[u]&&(a=s(f=n[u],y))&&l.push(c(f)+(t?": ":":")+a);else Object.keys(y).forEach((function(r){var n=s(r,y);n&&l.push(c(r)+(t?": ":":")+n)}));return a=0===l.length?"{}":t?"{\n"+t+l.join(",\n"+t)+"\n"+g+"}":"{"+l.join(",")+"}",t=g,a}}"function"!=typeof e.stringify&&(e.stringify=function(o,e,i){var u;if(t="",r="","number"==typeof i)for(u=0;u<i;u+=1)r+=" ";else"string"==typeof i&&(r=i);if(n=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return s("",{"":o})})}()}}]);
|
package/dist/13.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=13;export const __webpack_ids__=[13];export const __webpack_modules__={1013:(t,r,n)=>{var o=n(7372).stringify,e=n(8146);t.exports=function(t){return{parse:e(t),stringify:o}},t.exports.parse=e(),t.exports.stringify=o},8146:(t,r,n)=>{var o=null;const e=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,i=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;t.exports=function(t){var r={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=t){if(!0===t.strict&&(r.strict=!0),!0===t.storeAsString&&(r.storeAsString=!0),r.alwaysParseAsBig=!0===t.alwaysParseAsBig&&t.alwaysParseAsBig,r.useNativeBigInt=!0===t.useNativeBigInt&&t.useNativeBigInt,void 0!==t.constructorAction){if("error"!==t.constructorAction&&"ignore"!==t.constructorAction&&"preserve"!==t.constructorAction)throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${t.constructorAction}`);r.constructorAction=t.constructorAction}if(void 0!==t.protoAction){if("error"!==t.protoAction&&"ignore"!==t.protoAction&&"preserve"!==t.protoAction)throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${t.protoAction}`);r.protoAction=t.protoAction}}var u,c,f,s,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p=function(t){throw{name:"SyntaxError",message:t,at:u,text:f}},l=function(t){return t&&t!==c&&p("Expected '"+t+"' instead of '"+c+"'"),c=f.charAt(u),u+=1,c},g=function(){var t,e="";for("-"===c&&(e="-",l("-"));c>="0"&&c<="9";)e+=c,l();if("."===c)for(e+=".";l()&&c>="0"&&c<="9";)e+=c;if("e"===c||"E"===c)for(e+=c,l(),"-"!==c&&"+"!==c||(e+=c,l());c>="0"&&c<="9";)e+=c,l();if(t=+e,isFinite(t))return null==o&&(o=n(1594)),e.length>15?r.storeAsString?e:r.useNativeBigInt?BigInt(e):new o(e):r.alwaysParseAsBig?r.useNativeBigInt?BigInt(t):new o(t):t;p("Bad number")},y=function(){var t,r,n,o="";if('"'===c)for(var e=u;l();){if('"'===c)return u-1>e&&(o+=f.substring(e,u-1)),l(),o;if("\\"===c){if(u-1>e&&(o+=f.substring(e,u-1)),l(),"u"===c){for(n=0,r=0;r<4&&(t=parseInt(l(),16),isFinite(t));r+=1)n=16*n+t;o+=String.fromCharCode(n)}else{if("string"!=typeof a[c])break;o+=a[c]}e=u}}p("Bad string")},b=function(){for(;c&&c<=" ";)l()};return s=function(){switch(b(),c){case"{":return function(){var t,n=Object.create(null);if("{"===c){if(l("{"),b(),"}"===c)return l("}"),n;for(;c;){if(t=y(),b(),l(":"),!0===r.strict&&Object.hasOwnProperty.call(n,t)&&p('Duplicate key "'+t+'"'),!0===e.test(t)?"error"===r.protoAction?p("Object contains forbidden prototype property"):"ignore"===r.protoAction?s():n[t]=s():!0===i.test(t)?"error"===r.constructorAction?p("Object contains forbidden constructor property"):"ignore"===r.constructorAction?s():n[t]=s():n[t]=s(),b(),"}"===c)return l("}"),n;l(","),b()}}p("Bad object")}();case"[":return function(){var t=[];if("["===c){if(l("["),b(),"]"===c)return l("]"),t;for(;c;){if(t.push(s()),b(),"]"===c)return l("]"),t;l(","),b()}}p("Bad array")}();case'"':return y();case"-":return g();default:return c>="0"&&c<="9"?g():function(){switch(c){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}p("Unexpected '"+c+"'")}()}},function(t,r){var n;return f=t+"",u=0,c=" ",n=s(),b(),c&&p("Syntax error"),"function"==typeof r?function t(n,o){var e,i=n[o];return i&&"object"==typeof i&&Object.keys(i).forEach((function(r){void 0!==(e=t(i,r))?i[r]=e:delete i[r]})),r.call(n,o,i)}({"":n},""):n}}},7372:(t,r,n)=>{var o=n(1594),e=t.exports;!function(){var t,r,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,u={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(t){return i.lastIndex=0,i.test(t)?'"'+t.replace(i,(function(t){var r=u[t];return"string"==typeof r?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function f(e,i){var u,s,a,p,l,g=t,y=i[e],b=null!=y&&(y instanceof o||o.isBigNumber(y));switch(y&&"object"==typeof y&&"function"==typeof y.toJSON&&(y=y.toJSON(e)),"function"==typeof n&&(y=n.call(i,e,y)),typeof y){case"string":return b?y:c(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":case"bigint":return String(y);case"object":if(!y)return"null";if(t+=r,l=[],"[object Array]"===Object.prototype.toString.apply(y)){for(p=y.length,u=0;u<p;u+=1)l[u]=f(u,y)||"null";return a=0===l.length?"[]":t?"[\n"+t+l.join(",\n"+t)+"\n"+g+"]":"["+l.join(",")+"]",t=g,a}if(n&&"object"==typeof n)for(p=n.length,u=0;u<p;u+=1)"string"==typeof n[u]&&(a=f(s=n[u],y))&&l.push(c(s)+(t?": ":":")+a);else Object.keys(y).forEach((function(r){var n=f(r,y);n&&l.push(c(r)+(t?": ":":")+n)}));return a=0===l.length?"{}":t?"{\n"+t+l.join(",\n"+t)+"\n"+g+"}":"{"+l.join(",")+"}",t=g,a}}"function"!=typeof e.stringify&&(e.stringify=function(o,e,i){var u;if(t="",r="","number"==typeof i)for(u=0;u<i;u+=1)r+=" ";else"string"==typeof i&&(r=i);if(n=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return f("",{"":o})})}()}};
|
package/dist/132.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[132],{7353:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ESDT_CONTRACT_ADDRESS=r.DELEGATION_MANAGER_SC_ADDRESS=r.CONTRACT_DEPLOY_ADDRESS=r.BECH32_ADDRESS_LENGTH=r.DEFAULT_HRP=r.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER=r.UNKNOWN_SIGNER=r.SDK_JS_SIGNER=r.METACHAIN_ID=r.WasmVirtualMachine=r.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=r.HEX_TRANSACTION_HASH_LENGTH=r.MESSAGE_PREFIX=r.DEFAULT_MESSAGE_VERSION=r.ESDT_CONTRACT_ADDRESS_HEX=r.DELEGATION_MANAGER_SC_ADDRESS_HEX=r.CONTRACT_DEPLOY_ADDRESS_HEX=r.VM_TYPE_WASM_VM=r.ARGUMENTS_SEPARATOR=r.ESDT_TRANSFER_VALUE=r.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME=r.ESDTNFT_TRANSFER_FUNCTION_NAME=r.ESDT_TRANSFER_FUNCTION_NAME=r.ESDT_TRANSFER_GAS_LIMIT=r.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=r.TRANSACTION_VERSION_DEFAULT=r.TRANSACTION_OPTIONS_TX_GUARDED=r.TRANSACTION_OPTIONS_TX_HASH_SIGN=r.TRANSACTION_OPTIONS_DEFAULT=r.TRANSACTION_MIN_GAS_PRICE=void 0,r.TRANSACTION_MIN_GAS_PRICE=1e9,r.TRANSACTION_OPTIONS_DEFAULT=0,r.TRANSACTION_OPTIONS_TX_HASH_SIGN=1,r.TRANSACTION_OPTIONS_TX_GUARDED=2,r.TRANSACTION_VERSION_DEFAULT=2,r.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=2,r.ESDT_TRANSFER_GAS_LIMIT=5e5,r.ESDT_TRANSFER_FUNCTION_NAME="ESDTTransfer",r.ESDTNFT_TRANSFER_FUNCTION_NAME="ESDTNFTTransfer",r.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME="MultiESDTNFTTransfer",r.ESDT_TRANSFER_VALUE="0",r.ARGUMENTS_SEPARATOR="@",r.VM_TYPE_WASM_VM=new Uint8Array([5,0]),r.CONTRACT_DEPLOY_ADDRESS_HEX="0000000000000000000000000000000000000000000000000000000000000000",r.DELEGATION_MANAGER_SC_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000004ffff",r.ESDT_CONTRACT_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000002ffff",r.DEFAULT_MESSAGE_VERSION=1,r.MESSAGE_PREFIX="Elrond Signed Message:\n",r.HEX_TRANSACTION_HASH_LENGTH=64,r.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=3,r.WasmVirtualMachine="0500",r.METACHAIN_ID=4294967295,r.SDK_JS_SIGNER="sdk-js",r.UNKNOWN_SIGNER="unknown",r.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER="EGLD-000000",r.DEFAULT_HRP="erd",r.BECH32_ADDRESS_LENGTH=62,r.CONTRACT_DEPLOY_ADDRESS="erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu",r.DELEGATION_MANAGER_SC_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6",r.ESDT_CONTRACT_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"},2581:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ErrContractQuery=r.ErrNetworkProvider=r.ErrBadAddress=r.ErrSignerCannotSign=r.ErrBadPEM=r.ErrBadMnemonicEntropy=r.ErrWrongMnemonic=r.ErrSmartContractQuery=r.ErrParseTransactionOutcome=r.ErrInvalidInnerTransaction=r.ErrBadUsage=r.ErrInvalidTokenIdentifier=r.ErrIsCompletedFieldIsMissingOnTransaction=r.ErrGasLimitShouldBe0ForInnerTransaction=r.ErrInvalidRelayedV2BuilderArguments=r.ErrInvalidRelayedV1BuilderArguments=r.ErrNotImplemented=r.ErrContractInteraction=r.ErrCodec=r.ErrCannotParseTransactionOutcome=r.ErrCannotParseContractResults=r.ErrMissingFieldOnEnum=r.ErrMissingFieldOnStruct=r.ErrTypingSystem=r.ErrMock=r.ErrContractHasNoAddress=r.ErrContract=r.ErrExpectedTransactionEventsNotFound=r.ErrExpectedTransactionStatusNotReached=r.ErrTransactionWatcherTimeout=r.ErrAsyncTimerAborted=r.ErrAsyncTimerAlreadyRunning=r.ErrInvalidFunctionName=r.ErrSignatureCannotCreate=r.ErrTransactionOptionsInvalid=r.ErrTransactionVersionInvalid=r.ErrNonceInvalid=r.ErrNotEnoughGas=r.ErrAddressEmpty=r.ErrAddressBadHrp=r.ErrAddressCannotCreate=r.ErrUnexpectedCondition=r.ErrInvariantFailed=r.ErrBadType=r.ErrUnsupportedOperation=r.ErrInvalidArgument=r.Err=void 0;class t extends Error{constructor(e,r){super(e),this.inner=void 0,this.inner=r}summary(){const e=[];e.push({name:this.name,message:this.message});let r=this.inner;for(;r;)e.push({name:r.name,message:r.message}),r=r.inner;return e}}r.Err=t,r.ErrInvalidArgument=class extends t{constructor(e,r){super(`Invalid argument: ${e}`,r)}},r.ErrUnsupportedOperation=class extends t{constructor(e,r="not specified"){super(`Operation "${e}" not supported. Reason: ${r}`)}},r.ErrBadType=class extends t{constructor(e,r,t){super(`Bad type of "${e}": ${t}. Expected type: ${r}`)}},r.ErrInvariantFailed=class extends t{constructor(e){super(`Invariant failed: [${e}]`)}},r.ErrUnexpectedCondition=class extends t{constructor(e){super(`Unexpected condition: [${e}]`)}},r.ErrAddressCannotCreate=class extends t{constructor(e,r){super(`Cannot create address from: ${e}`,r)}},r.ErrAddressBadHrp=class extends t{constructor(e,r){super(`Wrong address HRP. Expected: ${e}, got ${r}`)}},r.ErrAddressEmpty=class extends t{constructor(){super("Address is empty")}},r.ErrNotEnoughGas=class extends t{constructor(e){super(`Not enough gas provided: ${e}`)}},r.ErrNonceInvalid=class extends t{constructor(e){super(`Invalid nonce: ${e}`)}},r.ErrTransactionVersionInvalid=class extends t{constructor(e){super(`Invalid transaction version: ${e}`)}},r.ErrTransactionOptionsInvalid=class extends t{constructor(e){super(`Invalid transaction options: ${e}`)}},r.ErrSignatureCannotCreate=class extends t{constructor(e,r){super(`Cannot create signature from: ${e}`,r)}},r.ErrInvalidFunctionName=class extends t{constructor(){super("Invalid function name")}},r.ErrAsyncTimerAlreadyRunning=class extends t{constructor(){super("Async timer already running")}},r.ErrAsyncTimerAborted=class extends t{constructor(){super("Async timer aborted")}},r.ErrTransactionWatcherTimeout=class extends t{constructor(){super("TransactionWatcher has timed out")}},r.ErrExpectedTransactionStatusNotReached=class extends t{constructor(){super("Expected transaction status not reached")}},r.ErrExpectedTransactionEventsNotFound=class extends t{constructor(){super("Expected transaction events not found")}};class n extends t{constructor(e){super(e)}}r.ErrContract=n,r.ErrContractHasNoAddress=class extends n{constructor(){super("\nThe smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.\nIf you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method). \n")}},r.ErrMock=class extends t{constructor(e){super(e)}},r.ErrTypingSystem=class extends t{constructor(e){super(e)}},r.ErrMissingFieldOnStruct=class extends t{constructor(e,r){super(`field ${e} does not exist on struct ${r}`)}},r.ErrMissingFieldOnEnum=class extends t{constructor(e,r){super(`field ${e} does not exist on enum ${r}`)}},r.ErrCannotParseContractResults=class extends t{constructor(e){super(`cannot parse contract results: ${e}`)}},r.ErrCannotParseTransactionOutcome=class extends t{constructor(e,r){super(`cannot parse outcome of transaction ${e}: ${r}`)}},r.ErrCodec=class extends t{constructor(e){super(e)}},r.ErrContractInteraction=class extends t{constructor(e){super(e)}},r.ErrNotImplemented=class extends t{constructor(){super("Method not yet implemented")}},r.ErrInvalidRelayedV1BuilderArguments=class extends t{constructor(){super("invalid arguments for relayed v1 builder")}},r.ErrInvalidRelayedV2BuilderArguments=class extends t{constructor(){super("invalid arguments for relayed v2 builder")}},r.ErrGasLimitShouldBe0ForInnerTransaction=class extends t{constructor(){super("gas limit must be 0 for the inner transaction for relayed v2")}},r.ErrIsCompletedFieldIsMissingOnTransaction=class extends t{constructor(){super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")}},r.ErrInvalidTokenIdentifier=class extends t{constructor(e){super(e)}},r.ErrBadUsage=class extends t{constructor(e){super(e)}},r.ErrInvalidInnerTransaction=class extends t{constructor(e){super(e)}},r.ErrParseTransactionOutcome=class extends t{constructor(e){super(e)}},r.ErrSmartContractQuery=class extends t{constructor(e,r){super(r),this.returnCode=e}},r.ErrWrongMnemonic=class extends t{constructor(){super("Wrong mnemonic format")}},r.ErrBadMnemonicEntropy=class extends t{constructor(e){super("Bad mnemonic entropy",e)}},r.ErrBadPEM=class extends t{constructor(e){super(e?`Bad PEM: ${e}`:"Bad PEM")}},r.ErrSignerCannotSign=class extends t{constructor(e){super("Cannot sign",e)}},r.ErrBadAddress=class extends t{constructor(e,r){super(`Bad address: ${e}`,r)}},r.ErrNetworkProvider=class extends t{constructor(e,r,t){super(`Request error on url [${e}]: [${r}]`,t)}},r.ErrContractQuery=class extends t{constructor(e){super(e.message.replace("executeQuery:",""))}}},5132:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.TokenPayment=r.TokenComputer=r.TokenTransfer=r.Token=void 0;const s=n(t(1594)),o=t(7353),i=t(2581),a="EGLD";s.default.set({ROUNDING_MODE:1});class c{constructor(e){this.identifier=e.identifier,this.nonce=e.nonce||0n}}r.Token=c;class d{constructor(e){if(this.isLegacyTokenTransferOptions(e)){const r=new s.default(e.amountAsBigInteger);if(!r.isInteger()||r.isNegative())throw new i.ErrInvalidArgument(`bad amountAsBigInteger: ${e.amountAsBigInteger}`);this.tokenIdentifier=e.tokenIdentifier,this.nonce=e.nonce,this.amountAsBigInteger=r,this.numDecimals=e.numDecimals||0,this.token=new c({identifier:e.tokenIdentifier,nonce:BigInt(e.nonce)}),this.amount=BigInt(this.amountAsBigInteger.toFixed(0))}else this.token=e.token,this.amount=e.amount,this.tokenIdentifier=e.token.identifier,this.nonce=Number(e.token.nonce),this.amountAsBigInteger=new s.default(this.amount.toString()),this.numDecimals=0}static newFromEgldAmount(e){const r=new c({identifier:o.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER});return new d({token:r,amount:e})}isLegacyTokenTransferOptions(e){return void 0!==e.tokenIdentifier}static egldFromAmount(e){const r=new s.default(e).shiftedBy(18).decimalPlaces(0);return this.egldFromBigInteger(r)}static egldFromBigInteger(e){return new d({tokenIdentifier:a,nonce:0,amountAsBigInteger:e,numDecimals:18})}static fungibleFromAmount(e,r,t){const n=new s.default(r).shiftedBy(t).decimalPlaces(0);return this.fungibleFromBigInteger(e,n,t)}static fungibleFromBigInteger(e,r,t=0){return new d({tokenIdentifier:e,nonce:0,amountAsBigInteger:r,numDecimals:t})}static nonFungible(e,r){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:1,numDecimals:0})}static semiFungible(e,r,t){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:0})}static metaEsdtFromAmount(e,r,t,n){const o=new s.default(t).shiftedBy(n).decimalPlaces(0);return this.metaEsdtFromBigInteger(e,r,o,n)}static metaEsdtFromBigInteger(e,r,t,n=0){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:n})}toString(){return this.amount.toString()}valueOf(){return new s.default(this.amount.toString())}toPrettyString(){return`${this.toAmount()} ${this.tokenIdentifier}`}toAmount(){return this.amountAsBigInteger.shiftedBy(-this.numDecimals).toFixed(this.numDecimals)}isEgld(){return this.token.identifier==a}isFungible(){return 0n==this.token.nonce}}r.TokenTransfer=d,r.TokenComputer=class{constructor(){this.TOKEN_RANDOM_SEQUENCE_LENGTH=6}isFungible(e){return 0n===e.nonce}extractNonceFromExtendedIdentifier(e){const r=e.split("-"),{prefix:t,ticker:n,randomSequence:s}=this.splitIdentifierIntoComponents(r);if(this.validateExtendedIdentifier(t,n,s,r),2===r.length||t&&3===r.length)return 0;const o=r[r.length-1];return(i=Buffer.from(o,"hex")).readUIntBE(0,i.length);var i}extractIdentifierFromExtendedIdentifier(e){const r=e.split("-"),{prefix:t,ticker:n,randomSequence:s}=this.splitIdentifierIntoComponents(r);return this.validateExtendedIdentifier(t,n,s,r),t?(this.checkLengthOfPrefix(t),t+"-"+n+"-"+s):n+"-"+s}validateExtendedIdentifier(e,r,t,n){this.checkIfExtendedIdentifierWasProvided(e,n),this.ensureTokenTickerValidity(r),this.checkLengthOfRandomSequence(t)}splitIdentifierIntoComponents(e){return this.isLowercaseAlphanumeric(e[0])?{prefix:e[0],ticker:e[1],randomSequence:e[2]}:{prefix:null,ticker:e[0],randomSequence:e[1]}}checkIfExtendedIdentifierWasProvided(e,r){const t=e?4:3;if(r.length<2||r.length>t)throw new i.ErrInvalidTokenIdentifier("Invalid extended token identifier provided")}isLowercaseAlphanumeric(e){return/^[a-z0-9]+$/.test(e)}checkLengthOfRandomSequence(e){if(e.length!==this.TOKEN_RANDOM_SEQUENCE_LENGTH)throw new i.ErrInvalidTokenIdentifier("The identifier is not valid. The random sequence does not have the right length")}checkLengthOfPrefix(e){if(e.length<1||e.length>4)throw new i.ErrInvalidTokenIdentifier("The identifier is not valid. The prefix does not have the right length")}ensureTokenTickerValidity(e){if(e.length<3||e.length>10)throw new i.ErrInvalidTokenIdentifier("The token ticker should be between 3 and 10 characters");if(!e.match(/^[a-zA-Z0-9]+$/))throw new i.ErrInvalidTokenIdentifier("The token ticker should only contain alphanumeric characters");if(e!=e.toUpperCase())throw new i.ErrInvalidTokenIdentifier("The token ticker should be upper case")}},r.TokenPayment=class extends d{constructor(e,r,t,n){super({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:n})}}}}]);
|
package/dist/132.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=132;export const __webpack_ids__=[132];export const __webpack_modules__={7353:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ESDT_CONTRACT_ADDRESS=r.DELEGATION_MANAGER_SC_ADDRESS=r.CONTRACT_DEPLOY_ADDRESS=r.BECH32_ADDRESS_LENGTH=r.DEFAULT_HRP=r.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER=r.UNKNOWN_SIGNER=r.SDK_JS_SIGNER=r.METACHAIN_ID=r.WasmVirtualMachine=r.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=r.HEX_TRANSACTION_HASH_LENGTH=r.MESSAGE_PREFIX=r.DEFAULT_MESSAGE_VERSION=r.ESDT_CONTRACT_ADDRESS_HEX=r.DELEGATION_MANAGER_SC_ADDRESS_HEX=r.CONTRACT_DEPLOY_ADDRESS_HEX=r.VM_TYPE_WASM_VM=r.ARGUMENTS_SEPARATOR=r.ESDT_TRANSFER_VALUE=r.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME=r.ESDTNFT_TRANSFER_FUNCTION_NAME=r.ESDT_TRANSFER_FUNCTION_NAME=r.ESDT_TRANSFER_GAS_LIMIT=r.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=r.TRANSACTION_VERSION_DEFAULT=r.TRANSACTION_OPTIONS_TX_GUARDED=r.TRANSACTION_OPTIONS_TX_HASH_SIGN=r.TRANSACTION_OPTIONS_DEFAULT=r.TRANSACTION_MIN_GAS_PRICE=void 0,r.TRANSACTION_MIN_GAS_PRICE=1e9,r.TRANSACTION_OPTIONS_DEFAULT=0,r.TRANSACTION_OPTIONS_TX_HASH_SIGN=1,r.TRANSACTION_OPTIONS_TX_GUARDED=2,r.TRANSACTION_VERSION_DEFAULT=2,r.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=2,r.ESDT_TRANSFER_GAS_LIMIT=5e5,r.ESDT_TRANSFER_FUNCTION_NAME="ESDTTransfer",r.ESDTNFT_TRANSFER_FUNCTION_NAME="ESDTNFTTransfer",r.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME="MultiESDTNFTTransfer",r.ESDT_TRANSFER_VALUE="0",r.ARGUMENTS_SEPARATOR="@",r.VM_TYPE_WASM_VM=new Uint8Array([5,0]),r.CONTRACT_DEPLOY_ADDRESS_HEX="0000000000000000000000000000000000000000000000000000000000000000",r.DELEGATION_MANAGER_SC_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000004ffff",r.ESDT_CONTRACT_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000002ffff",r.DEFAULT_MESSAGE_VERSION=1,r.MESSAGE_PREFIX="Elrond Signed Message:\n",r.HEX_TRANSACTION_HASH_LENGTH=64,r.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=3,r.WasmVirtualMachine="0500",r.METACHAIN_ID=4294967295,r.SDK_JS_SIGNER="sdk-js",r.UNKNOWN_SIGNER="unknown",r.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER="EGLD-000000",r.DEFAULT_HRP="erd",r.BECH32_ADDRESS_LENGTH=62,r.CONTRACT_DEPLOY_ADDRESS="erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu",r.DELEGATION_MANAGER_SC_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6",r.ESDT_CONTRACT_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"},2581:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ErrContractQuery=r.ErrNetworkProvider=r.ErrBadAddress=r.ErrSignerCannotSign=r.ErrBadPEM=r.ErrBadMnemonicEntropy=r.ErrWrongMnemonic=r.ErrSmartContractQuery=r.ErrParseTransactionOutcome=r.ErrInvalidInnerTransaction=r.ErrBadUsage=r.ErrInvalidTokenIdentifier=r.ErrIsCompletedFieldIsMissingOnTransaction=r.ErrGasLimitShouldBe0ForInnerTransaction=r.ErrInvalidRelayedV2BuilderArguments=r.ErrInvalidRelayedV1BuilderArguments=r.ErrNotImplemented=r.ErrContractInteraction=r.ErrCodec=r.ErrCannotParseTransactionOutcome=r.ErrCannotParseContractResults=r.ErrMissingFieldOnEnum=r.ErrMissingFieldOnStruct=r.ErrTypingSystem=r.ErrMock=r.ErrContractHasNoAddress=r.ErrContract=r.ErrExpectedTransactionEventsNotFound=r.ErrExpectedTransactionStatusNotReached=r.ErrTransactionWatcherTimeout=r.ErrAsyncTimerAborted=r.ErrAsyncTimerAlreadyRunning=r.ErrInvalidFunctionName=r.ErrSignatureCannotCreate=r.ErrTransactionOptionsInvalid=r.ErrTransactionVersionInvalid=r.ErrNonceInvalid=r.ErrNotEnoughGas=r.ErrAddressEmpty=r.ErrAddressBadHrp=r.ErrAddressCannotCreate=r.ErrUnexpectedCondition=r.ErrInvariantFailed=r.ErrBadType=r.ErrUnsupportedOperation=r.ErrInvalidArgument=r.Err=void 0;class t extends Error{constructor(e,r){super(e),this.inner=void 0,this.inner=r}summary(){const e=[];e.push({name:this.name,message:this.message});let r=this.inner;for(;r;)e.push({name:r.name,message:r.message}),r=r.inner;return e}}r.Err=t,r.ErrInvalidArgument=class extends t{constructor(e,r){super(`Invalid argument: ${e}`,r)}},r.ErrUnsupportedOperation=class extends t{constructor(e,r="not specified"){super(`Operation "${e}" not supported. Reason: ${r}`)}},r.ErrBadType=class extends t{constructor(e,r,t){super(`Bad type of "${e}": ${t}. Expected type: ${r}`)}},r.ErrInvariantFailed=class extends t{constructor(e){super(`Invariant failed: [${e}]`)}},r.ErrUnexpectedCondition=class extends t{constructor(e){super(`Unexpected condition: [${e}]`)}},r.ErrAddressCannotCreate=class extends t{constructor(e,r){super(`Cannot create address from: ${e}`,r)}},r.ErrAddressBadHrp=class extends t{constructor(e,r){super(`Wrong address HRP. Expected: ${e}, got ${r}`)}},r.ErrAddressEmpty=class extends t{constructor(){super("Address is empty")}},r.ErrNotEnoughGas=class extends t{constructor(e){super(`Not enough gas provided: ${e}`)}},r.ErrNonceInvalid=class extends t{constructor(e){super(`Invalid nonce: ${e}`)}},r.ErrTransactionVersionInvalid=class extends t{constructor(e){super(`Invalid transaction version: ${e}`)}},r.ErrTransactionOptionsInvalid=class extends t{constructor(e){super(`Invalid transaction options: ${e}`)}},r.ErrSignatureCannotCreate=class extends t{constructor(e,r){super(`Cannot create signature from: ${e}`,r)}},r.ErrInvalidFunctionName=class extends t{constructor(){super("Invalid function name")}},r.ErrAsyncTimerAlreadyRunning=class extends t{constructor(){super("Async timer already running")}},r.ErrAsyncTimerAborted=class extends t{constructor(){super("Async timer aborted")}},r.ErrTransactionWatcherTimeout=class extends t{constructor(){super("TransactionWatcher has timed out")}},r.ErrExpectedTransactionStatusNotReached=class extends t{constructor(){super("Expected transaction status not reached")}},r.ErrExpectedTransactionEventsNotFound=class extends t{constructor(){super("Expected transaction events not found")}};class n extends t{constructor(e){super(e)}}r.ErrContract=n,r.ErrContractHasNoAddress=class extends n{constructor(){super("\nThe smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.\nIf you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method). \n")}},r.ErrMock=class extends t{constructor(e){super(e)}},r.ErrTypingSystem=class extends t{constructor(e){super(e)}},r.ErrMissingFieldOnStruct=class extends t{constructor(e,r){super(`field ${e} does not exist on struct ${r}`)}},r.ErrMissingFieldOnEnum=class extends t{constructor(e,r){super(`field ${e} does not exist on enum ${r}`)}},r.ErrCannotParseContractResults=class extends t{constructor(e){super(`cannot parse contract results: ${e}`)}},r.ErrCannotParseTransactionOutcome=class extends t{constructor(e,r){super(`cannot parse outcome of transaction ${e}: ${r}`)}},r.ErrCodec=class extends t{constructor(e){super(e)}},r.ErrContractInteraction=class extends t{constructor(e){super(e)}},r.ErrNotImplemented=class extends t{constructor(){super("Method not yet implemented")}},r.ErrInvalidRelayedV1BuilderArguments=class extends t{constructor(){super("invalid arguments for relayed v1 builder")}},r.ErrInvalidRelayedV2BuilderArguments=class extends t{constructor(){super("invalid arguments for relayed v2 builder")}},r.ErrGasLimitShouldBe0ForInnerTransaction=class extends t{constructor(){super("gas limit must be 0 for the inner transaction for relayed v2")}},r.ErrIsCompletedFieldIsMissingOnTransaction=class extends t{constructor(){super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")}},r.ErrInvalidTokenIdentifier=class extends t{constructor(e){super(e)}},r.ErrBadUsage=class extends t{constructor(e){super(e)}},r.ErrInvalidInnerTransaction=class extends t{constructor(e){super(e)}},r.ErrParseTransactionOutcome=class extends t{constructor(e){super(e)}},r.ErrSmartContractQuery=class extends t{constructor(e,r){super(r),this.returnCode=e}},r.ErrWrongMnemonic=class extends t{constructor(){super("Wrong mnemonic format")}},r.ErrBadMnemonicEntropy=class extends t{constructor(e){super("Bad mnemonic entropy",e)}},r.ErrBadPEM=class extends t{constructor(e){super(e?`Bad PEM: ${e}`:"Bad PEM")}},r.ErrSignerCannotSign=class extends t{constructor(e){super("Cannot sign",e)}},r.ErrBadAddress=class extends t{constructor(e,r){super(`Bad address: ${e}`,r)}},r.ErrNetworkProvider=class extends t{constructor(e,r,t){super(`Request error on url [${e}]: [${r}]`,t)}},r.ErrContractQuery=class extends t{constructor(e){super(e.message.replace("executeQuery:",""))}}},5132:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.TokenPayment=r.TokenComputer=r.TokenTransfer=r.Token=void 0;const s=n(t(1594)),o=t(7353),i=t(2581),a="EGLD";s.default.set({ROUNDING_MODE:1});class c{constructor(e){this.identifier=e.identifier,this.nonce=e.nonce||0n}}r.Token=c;class d{constructor(e){if(this.isLegacyTokenTransferOptions(e)){const r=new s.default(e.amountAsBigInteger);if(!r.isInteger()||r.isNegative())throw new i.ErrInvalidArgument(`bad amountAsBigInteger: ${e.amountAsBigInteger}`);this.tokenIdentifier=e.tokenIdentifier,this.nonce=e.nonce,this.amountAsBigInteger=r,this.numDecimals=e.numDecimals||0,this.token=new c({identifier:e.tokenIdentifier,nonce:BigInt(e.nonce)}),this.amount=BigInt(this.amountAsBigInteger.toFixed(0))}else this.token=e.token,this.amount=e.amount,this.tokenIdentifier=e.token.identifier,this.nonce=Number(e.token.nonce),this.amountAsBigInteger=new s.default(this.amount.toString()),this.numDecimals=0}static newFromEgldAmount(e){const r=new c({identifier:o.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER});return new d({token:r,amount:e})}isLegacyTokenTransferOptions(e){return void 0!==e.tokenIdentifier}static egldFromAmount(e){const r=new s.default(e).shiftedBy(18).decimalPlaces(0);return this.egldFromBigInteger(r)}static egldFromBigInteger(e){return new d({tokenIdentifier:a,nonce:0,amountAsBigInteger:e,numDecimals:18})}static fungibleFromAmount(e,r,t){const n=new s.default(r).shiftedBy(t).decimalPlaces(0);return this.fungibleFromBigInteger(e,n,t)}static fungibleFromBigInteger(e,r,t=0){return new d({tokenIdentifier:e,nonce:0,amountAsBigInteger:r,numDecimals:t})}static nonFungible(e,r){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:1,numDecimals:0})}static semiFungible(e,r,t){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:0})}static metaEsdtFromAmount(e,r,t,n){const o=new s.default(t).shiftedBy(n).decimalPlaces(0);return this.metaEsdtFromBigInteger(e,r,o,n)}static metaEsdtFromBigInteger(e,r,t,n=0){return new d({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:n})}toString(){return this.amount.toString()}valueOf(){return new s.default(this.amount.toString())}toPrettyString(){return`${this.toAmount()} ${this.tokenIdentifier}`}toAmount(){return this.amountAsBigInteger.shiftedBy(-this.numDecimals).toFixed(this.numDecimals)}isEgld(){return this.token.identifier==a}isFungible(){return 0n==this.token.nonce}}r.TokenTransfer=d,r.TokenComputer=class{constructor(){this.TOKEN_RANDOM_SEQUENCE_LENGTH=6}isFungible(e){return 0n===e.nonce}extractNonceFromExtendedIdentifier(e){const r=e.split("-"),{prefix:t,ticker:n,randomSequence:s}=this.splitIdentifierIntoComponents(r);if(this.validateExtendedIdentifier(t,n,s,r),2===r.length||t&&3===r.length)return 0;const o=r[r.length-1];return(i=Buffer.from(o,"hex")).readUIntBE(0,i.length);var i}extractIdentifierFromExtendedIdentifier(e){const r=e.split("-"),{prefix:t,ticker:n,randomSequence:s}=this.splitIdentifierIntoComponents(r);return this.validateExtendedIdentifier(t,n,s,r),t?(this.checkLengthOfPrefix(t),t+"-"+n+"-"+s):n+"-"+s}validateExtendedIdentifier(e,r,t,n){this.checkIfExtendedIdentifierWasProvided(e,n),this.ensureTokenTickerValidity(r),this.checkLengthOfRandomSequence(t)}splitIdentifierIntoComponents(e){return this.isLowercaseAlphanumeric(e[0])?{prefix:e[0],ticker:e[1],randomSequence:e[2]}:{prefix:null,ticker:e[0],randomSequence:e[1]}}checkIfExtendedIdentifierWasProvided(e,r){const t=e?4:3;if(r.length<2||r.length>t)throw new i.ErrInvalidTokenIdentifier("Invalid extended token identifier provided")}isLowercaseAlphanumeric(e){return/^[a-z0-9]+$/.test(e)}checkLengthOfRandomSequence(e){if(e.length!==this.TOKEN_RANDOM_SEQUENCE_LENGTH)throw new i.ErrInvalidTokenIdentifier("The identifier is not valid. The random sequence does not have the right length")}checkLengthOfPrefix(e){if(e.length<1||e.length>4)throw new i.ErrInvalidTokenIdentifier("The identifier is not valid. The prefix does not have the right length")}ensureTokenTickerValidity(e){if(e.length<3||e.length>10)throw new i.ErrInvalidTokenIdentifier("The token ticker should be between 3 and 10 characters");if(!e.match(/^[a-zA-Z0-9]+$/))throw new i.ErrInvalidTokenIdentifier("The token ticker should only contain alphanumeric characters");if(e!=e.toUpperCase())throw new i.ErrInvalidTokenIdentifier("The token ticker should be upper case")}},r.TokenPayment=class extends d{constructor(e,r,t,n){super({tokenIdentifier:e,nonce:r,amountAsBigInteger:t,numDecimals:n})}}}};
|
package/dist/145.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[145],{3145:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenIdentifierValue=t.TokenIdentifierType=void 0;const s=n(5626);class r extends s.PrimitiveType{constructor(){super("TokenIdentifier")}getClassName(){return r.ClassName}}t.TokenIdentifierType=r,r.ClassName="TokenIdentifierType";class i extends s.PrimitiveValue{constructor(e){super(new r),this.value=e}static egld(){return new i("EGLD")}static esdtTokenIdentifier(e){return new i(e)}getClassName(){return i.ClassName}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value==e.value}valueOf(){return this.value}toString(){return this.value.toString()}}t.TokenIdentifierValue=i,i.ClassName="TokenIdentifierValue"}}]);
|
package/dist/145.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=145;export const __webpack_ids__=[145];export const __webpack_modules__={3145:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenIdentifierValue=t.TokenIdentifierType=void 0;const r=n(5626);class s extends r.PrimitiveType{constructor(){super("TokenIdentifier")}getClassName(){return s.ClassName}}t.TokenIdentifierType=s,s.ClassName="TokenIdentifierType";class i extends r.PrimitiveValue{constructor(e){super(new s),this.value=e}static egld(){return new i("EGLD")}static esdtTokenIdentifier(e){return new i(e)}getClassName(){return i.ClassName}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value==e.value}valueOf(){return this.value}toString(){return this.value.toString()}}t.TokenIdentifierValue=i,i.ClassName="TokenIdentifierValue"}};
|
package/dist/147.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[147,385,766],{5340:()=>{},9838:()=>{}}]);
|
package/dist/147.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=147;export const __webpack_ids__=[147,385,766];export const __webpack_modules__={5340:()=>{},9838:()=>{}};
|
package/dist/242.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[242],{8095:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormula=void 0,t.TypeFormula=class{constructor(e,t,r){this.name=e,this.typeParameters=t,this.metadata=r}toString(){const e=this.typeParameters.length>0?`<${this.typeParameters.map((e=>e.toString())).join(", ")}>`:"",t=`${this.name}${e}`;return void 0!==this.metadata?`${t}*${this.metadata}*`:t}}},9132:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormulaParser=void 0;const n=r(8095);class s{parseExpression(e){e=e.trim();const t=this.tokenizeExpression(e).filter((e=>e!==s.COMMA)),r=[];for(const e of t)if(this.isPunctuation(e))if(this.isEndOfTypeParameters(e)){const e=this.acquireTypeWithParameters(r);r.push(e)}else{if(!this.isBeginningOfTypeParameters(e))throw new Error(`Unexpected token (punctuation): ${e}`);r.push(e)}else r.push(e);if(1!==r.length)throw new Error(`Unexpected stack length at end of parsing: ${r.length}`);if(s.PUNCTUATION.includes(r[0]))throw new Error("Unexpected root element.");const i=r[0];if(i instanceof n.TypeFormula)return i;if("string"==typeof i)return new n.TypeFormula(i,[]);throw new Error(`Unexpected item on stack: ${i}`)}tokenizeExpression(e){const t=[];let r="";for(const n of e)this.isPunctuation(n)?(r&&(t.push(r.trim()),r=""),t.push(n)):r+=n;return r&&t.push(r.trim()),t}acquireTypeWithParameters(e){const t=this.acquireTypeParameters(e),r=e.pop();if("ManagedDecimal"===r||"ManagedDecimalSigned"===r){const e=t[0].name;return new n.TypeFormula(r,[],e)}return new n.TypeFormula(r,t.reverse())}acquireTypeParameters(e){const t=[];for(;;){const r=e.pop();if(void 0===r)throw new Error("Badly specified type parameters");if(this.isBeginningOfTypeParameters(r))break;if(r instanceof n.TypeFormula)t.push(r);else{if("string"!=typeof r)throw new Error(`Unexpected type parameter object in stack: ${r}`);t.push(new n.TypeFormula(r,[]))}}return t}isPunctuation(e){return s.PUNCTUATION.includes(e)}isEndOfTypeParameters(e){return e===s.END_TYPE_PARAMETERS}isBeginningOfTypeParameters(e){return e===s.BEGIN_TYPE_PARAMETERS}}t.TypeFormulaParser=s,s.BEGIN_TYPE_PARAMETERS="<",s.END_TYPE_PARAMETERS=">",s.COMMA=",",s.PUNCTUATION=[s.COMMA,s.BEGIN_TYPE_PARAMETERS,s.END_TYPE_PARAMETERS]},5766:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=t.Field=t.FieldDefinition=void 0;const a=i(r(2581)),o=r(7966);class p{constructor(e,t,r){this.name=e,this.description=t,this.type=r}static fromJSON(e){let t=(new o.TypeExpressionParser).parse(e.type);return new p(e.name,e.description,t)}}t.FieldDefinition=p,t.Field=class{constructor(e,t=""){this.value=e,this.name=t}checkTyping(e){const t=this.value.getType();if(!t.equals(e.type))throw new a.ErrTypingSystem(`check type of field "${e.name}; expected: ${e.type}, actual: ${t}"`);if(this.name!=e.name)throw new a.ErrTypingSystem(`check name of field "${e.name}"`)}equals(e){return this.name==e.name&&this.value.equals(e.value)}},t.Fields=class{static checkTyping(e,t){if(e.length!=t.length)throw new a.ErrTypingSystem("fields length vs. field definitions length");for(let r=0;r<e.length;r++){let n=e[r],s=t[r];n.checkTyping(s)}}static equals(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],s=t[r];if(!n.equals(s))return!1}return!0}static getNamesOfTypeDependencies(e){const t=[];for(const r of e)t.push(r.type.getName()),t.push(...r.type.getNamesOfDependencies());return[...new Set(t)]}}},7966:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeExpressionParser=void 0;const n=r(9132),s=r(2581),i=r(5626);t.TypeExpressionParser=class{constructor(){this.backingTypeFormulaParser=new n.TypeFormulaParser}parse(e){try{return this.doParse(e)}catch(t){throw new s.ErrTypingSystem(`Failed to parse type expression: ${e}. Error: ${t}`)}}doParse(e){const t=this.backingTypeFormulaParser.parseExpression(e);return this.typeFormulaToType(t)}typeFormulaToType(e){const t=e.typeParameters.map((e=>this.typeFormulaToType(e)));return new i.Type(e.name,t,void 0,e.metadata)}}}}]);
|
package/dist/242.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=242;export const __webpack_ids__=[242];export const __webpack_modules__={8095:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormula=void 0,t.TypeFormula=class{constructor(e,t,r){this.name=e,this.typeParameters=t,this.metadata=r}toString(){const e=this.typeParameters.length>0?`<${this.typeParameters.map((e=>e.toString())).join(", ")}>`:"",t=`${this.name}${e}`;return void 0!==this.metadata?`${t}*${this.metadata}*`:t}}},9132:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFormulaParser=void 0;const n=r(8095);class s{parseExpression(e){e=e.trim();const t=this.tokenizeExpression(e).filter((e=>e!==s.COMMA)),r=[];for(const e of t)if(this.isPunctuation(e))if(this.isEndOfTypeParameters(e)){const e=this.acquireTypeWithParameters(r);r.push(e)}else{if(!this.isBeginningOfTypeParameters(e))throw new Error(`Unexpected token (punctuation): ${e}`);r.push(e)}else r.push(e);if(1!==r.length)throw new Error(`Unexpected stack length at end of parsing: ${r.length}`);if(s.PUNCTUATION.includes(r[0]))throw new Error("Unexpected root element.");const i=r[0];if(i instanceof n.TypeFormula)return i;if("string"==typeof i)return new n.TypeFormula(i,[]);throw new Error(`Unexpected item on stack: ${i}`)}tokenizeExpression(e){const t=[];let r="";for(const n of e)this.isPunctuation(n)?(r&&(t.push(r.trim()),r=""),t.push(n)):r+=n;return r&&t.push(r.trim()),t}acquireTypeWithParameters(e){const t=this.acquireTypeParameters(e),r=e.pop();if("ManagedDecimal"===r||"ManagedDecimalSigned"===r){const e=t[0].name;return new n.TypeFormula(r,[],e)}return new n.TypeFormula(r,t.reverse())}acquireTypeParameters(e){const t=[];for(;;){const r=e.pop();if(void 0===r)throw new Error("Badly specified type parameters");if(this.isBeginningOfTypeParameters(r))break;if(r instanceof n.TypeFormula)t.push(r);else{if("string"!=typeof r)throw new Error(`Unexpected type parameter object in stack: ${r}`);t.push(new n.TypeFormula(r,[]))}}return t}isPunctuation(e){return s.PUNCTUATION.includes(e)}isEndOfTypeParameters(e){return e===s.END_TYPE_PARAMETERS}isBeginningOfTypeParameters(e){return e===s.BEGIN_TYPE_PARAMETERS}}t.TypeFormulaParser=s,s.BEGIN_TYPE_PARAMETERS="<",s.END_TYPE_PARAMETERS=">",s.COMMA=",",s.PUNCTUATION=[s.COMMA,s.BEGIN_TYPE_PARAMETERS,s.END_TYPE_PARAMETERS]},5766:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fields=t.Field=t.FieldDefinition=void 0;const a=i(r(2581)),o=r(7966);class p{constructor(e,t,r){this.name=e,this.description=t,this.type=r}static fromJSON(e){let t=(new o.TypeExpressionParser).parse(e.type);return new p(e.name,e.description,t)}}t.FieldDefinition=p,t.Field=class{constructor(e,t=""){this.value=e,this.name=t}checkTyping(e){const t=this.value.getType();if(!t.equals(e.type))throw new a.ErrTypingSystem(`check type of field "${e.name}; expected: ${e.type}, actual: ${t}"`);if(this.name!=e.name)throw new a.ErrTypingSystem(`check name of field "${e.name}"`)}equals(e){return this.name==e.name&&this.value.equals(e.value)}},t.Fields=class{static checkTyping(e,t){if(e.length!=t.length)throw new a.ErrTypingSystem("fields length vs. field definitions length");for(let r=0;r<e.length;r++){let n=e[r],s=t[r];n.checkTyping(s)}}static equals(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],s=t[r];if(!n.equals(s))return!1}return!0}static getNamesOfTypeDependencies(e){const t=[];for(const r of e)t.push(r.type.getName()),t.push(...r.type.getNamesOfDependencies());return[...new Set(t)]}}},7966:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TypeExpressionParser=void 0;const n=r(9132),s=r(2581),i=r(5626);t.TypeExpressionParser=class{constructor(){this.backingTypeFormulaParser=new n.TypeFormulaParser}parse(e){try{return this.doParse(e)}catch(t){throw new s.ErrTypingSystem(`Failed to parse type expression: ${e}. Error: ${t}`)}}doParse(e){const t=this.backingTypeFormulaParser.parseExpression(e);return this.typeFormulaToType(t)}typeFormulaToType(e){const t=e.typeParameters.map((e=>this.typeFormulaToType(e)));return new i.Type(e.name,t,void 0,e.metadata)}}}};
|
package/dist/385.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[147,385,766],{5340:()=>{},9838:()=>{}}]);
|
package/dist/385.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=385;export const __webpack_ids__=[147,385,766];export const __webpack_modules__={5340:()=>{},9838:()=>{}};
|
package/dist/392.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[392],{1392:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BytesValue=t.BytesType=void 0;const r=s(5626);class u extends r.PrimitiveType{constructor(){super("bytes")}getClassName(){return u.ClassName}}t.BytesType=u,u.ClassName="BytesType";class a extends r.PrimitiveValue{constructor(e){super(new u),this.value=e}getClassName(){return a.ClassName}static fromUTF8(e){let t=Buffer.from(e,"utf-8");return new a(t)}static fromHex(e){let t=Buffer.from(e,"hex");return new a(t)}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value.equals(e.value)}valueOf(){return this.value}toString(){return this.value.toString()}}t.BytesValue=a,a.ClassName="BytesValue"}}]);
|
package/dist/392.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __webpack_id__=392;export const __webpack_ids__=[392];export const __webpack_modules__={1392:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BytesValue=t.BytesType=void 0;const r=s(5626);class a extends r.PrimitiveType{constructor(){super("bytes")}getClassName(){return a.ClassName}}t.BytesType=a,a.ClassName="BytesType";class u extends r.PrimitiveValue{constructor(e){super(new a),this.value=e}getClassName(){return u.ClassName}static fromUTF8(e){let t=Buffer.from(e,"utf-8");return new u(t)}static fromHex(e){let t=Buffer.from(e,"hex");return new u(t)}getLength(){return this.value.length}equals(e){return this.getLength()==e.getLength()&&this.value.equals(e.value)}valueOf(){return this.value}toString(){return this.value.toString()}}t.BytesValue=u,u.ClassName="BytesValue"}};
|
package/dist/401.cjs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 401.cjs.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[401],{236:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddressComputer=e.Address=void 0;const a=o(r(9674)),u=s(r(1594)),f=r(6424),l=r(7353),h=o(r(2581)),c=r(8390),d=r(5508),p="0".repeat(16);class g{constructor(t,e){if(!t)return this.publicKey=Buffer.from([]),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp);if(ArrayBuffer.isView(t)){if(32!=t.length)throw new h.ErrAddressCannotCreate(t);return this.publicKey=Buffer.from(t),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp)}if(t instanceof g){if(e)throw new h.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");return this.publicKey=t.publicKey,void(this.hrp=t.hrp)}if("string"==typeof t){if(g.isValidHex(t))return this.publicKey=Buffer.from(t,"hex"),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp);if(e)throw new h.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");const{hrp:r,pubkey:n}=y({value:t,allowCustomHrp:!1});return this.publicKey=n,void(this.hrp=r)}throw new h.ErrAddressCannotCreate(t)}static newFromBech32(t){const{hrp:e,pubkey:r}=y({value:t,allowCustomHrp:!0});return new g(r,e)}static fromBech32(t){const{hrp:e,pubkey:r}=y({value:t,allowCustomHrp:!1});return new g(r,e)}static newFromHex(t,e){if(!g.isValidHex(t))throw new h.ErrAddressCannotCreate(t);return new g(Buffer.from(t,"hex"),e)}static fromHex(t,e){return g.newFromHex(t,e)}static fromAddress(t){return new g(t)}static fromBuffer(t,e){return new g(t,e)}static fromString(t,e){return new g(t,e)}static isValidHex(t){return 32==Buffer.from(t,"hex").length}static empty(){return new g("")}static isValid(t){const e=a.decodeUnsafe(t),r=e?.prefix,n=e?Buffer.from(a.fromWords(e.words)):void 0;return r===f.LibraryConfig.DefaultAddressHrp&&32===n?.length}hex(){return this.toHex()}toHex(){return this.isEmpty()?"":this.publicKey.toString("hex")}bech32(){return this.toBech32()}toBech32(){if(this.isEmpty())return"";let t=a.toWords(this.pubkey());return a.encode(this.hrp,t)}pubkey(){return this.getPublicKey()}getPublicKey(){return this.publicKey}getHrp(){return this.hrp}isEmpty(){return 0==this.publicKey.length}equals(t){return!!t&&this.publicKey.toString()==t.publicKey.toString()}toString(){return this.toBech32()}toJSON(){return{bech32:this.toBech32(),pubkey:this.toHex()}}static Zero(){return new g("0".repeat(64))}isContractAddress(){return this.isSmartContract()}isSmartContract(){return this.toHex().startsWith(p)}}function y(t){const e=t.value,r=t.allowCustomHrp;let n,i;try{const t=a.decode(e);n=t.prefix,i=Buffer.from(a.fromWords(t.words))}catch(t){throw new h.ErrAddressCannotCreate(e,t)}if(!r&&n!=f.LibraryConfig.DefaultAddressHrp)throw new h.ErrAddressBadHrp(f.LibraryConfig.DefaultAddressHrp,n);return{hrp:n,pubkey:i}}e.Address=g,e.AddressComputer=class{constructor(t){this.numberOfShardsWithoutMeta=t||l.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META}computeContractAddress(t,e){const r=Buffer.alloc(8,0),n=t.getPublicKey(),i=n.slice(30),o=Buffer.alloc(8),s=new u.default(e.toString()),a=c.bigIntToBuffer(s);o.write(a.reverse().toString("hex"),"hex");const f=Buffer.concat([n,o]),h=d("keccak256").update(f).digest(),p=Buffer.from(l.WasmVirtualMachine,"hex"),y=Buffer.concat([r,p,h.slice(10,30),i]);return new g(y)}getShardOfAddress(t){return this.getShardOfPubkey(t.getPublicKey(),this.numberOfShardsWithoutMeta)}getShardOfPubkey(t,e){const r=parseInt("11",2),n=parseInt("01",2),i=t[31];if(this.isPubkeyOfMetachain(t))return l.METACHAIN_ID;let o=i&r;return o>e-1&&(o=i&n),o}isPubkeyOfMetachain(t){const e=Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r=Buffer.from(t).slice(0,e.length);return!!e.equals(r)||!!Buffer.alloc(32).equals(Buffer.from(t))}}},6424:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LibraryConfig=void 0;class r{}e.LibraryConfig=r,r.DefaultAddressHrp="erd"},7353:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ESDT_CONTRACT_ADDRESS=e.DELEGATION_MANAGER_SC_ADDRESS=e.CONTRACT_DEPLOY_ADDRESS=e.BECH32_ADDRESS_LENGTH=e.DEFAULT_HRP=e.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER=e.UNKNOWN_SIGNER=e.SDK_JS_SIGNER=e.METACHAIN_ID=e.WasmVirtualMachine=e.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=e.HEX_TRANSACTION_HASH_LENGTH=e.MESSAGE_PREFIX=e.DEFAULT_MESSAGE_VERSION=e.ESDT_CONTRACT_ADDRESS_HEX=e.DELEGATION_MANAGER_SC_ADDRESS_HEX=e.CONTRACT_DEPLOY_ADDRESS_HEX=e.VM_TYPE_WASM_VM=e.ARGUMENTS_SEPARATOR=e.ESDT_TRANSFER_VALUE=e.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME=e.ESDTNFT_TRANSFER_FUNCTION_NAME=e.ESDT_TRANSFER_FUNCTION_NAME=e.ESDT_TRANSFER_GAS_LIMIT=e.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=e.TRANSACTION_VERSION_DEFAULT=e.TRANSACTION_OPTIONS_TX_GUARDED=e.TRANSACTION_OPTIONS_TX_HASH_SIGN=e.TRANSACTION_OPTIONS_DEFAULT=e.TRANSACTION_MIN_GAS_PRICE=void 0,e.TRANSACTION_MIN_GAS_PRICE=1e9,e.TRANSACTION_OPTIONS_DEFAULT=0,e.TRANSACTION_OPTIONS_TX_HASH_SIGN=1,e.TRANSACTION_OPTIONS_TX_GUARDED=2,e.TRANSACTION_VERSION_DEFAULT=2,e.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=2,e.ESDT_TRANSFER_GAS_LIMIT=5e5,e.ESDT_TRANSFER_FUNCTION_NAME="ESDTTransfer",e.ESDTNFT_TRANSFER_FUNCTION_NAME="ESDTNFTTransfer",e.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME="MultiESDTNFTTransfer",e.ESDT_TRANSFER_VALUE="0",e.ARGUMENTS_SEPARATOR="@",e.VM_TYPE_WASM_VM=new Uint8Array([5,0]),e.CONTRACT_DEPLOY_ADDRESS_HEX="0000000000000000000000000000000000000000000000000000000000000000",e.DELEGATION_MANAGER_SC_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000004ffff",e.ESDT_CONTRACT_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000002ffff",e.DEFAULT_MESSAGE_VERSION=1,e.MESSAGE_PREFIX="Elrond Signed Message:\n",e.HEX_TRANSACTION_HASH_LENGTH=64,e.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=3,e.WasmVirtualMachine="0500",e.METACHAIN_ID=4294967295,e.SDK_JS_SIGNER="sdk-js",e.UNKNOWN_SIGNER="unknown",e.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER="EGLD-000000",e.DEFAULT_HRP="erd",e.BECH32_ADDRESS_LENGTH=62,e.CONTRACT_DEPLOY_ADDRESS="erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu",e.DELEGATION_MANAGER_SC_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6",e.ESDT_CONTRACT_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"},7553:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.prependByteToBuffer=e.flipBufferBitsInPlace=e.getHexMagnitudeOfBigInt=e.bigIntToBuffer=e.bufferToBigInt=e.cloneBuffer=e.isMsbZero=e.isMsbOne=void 0;const i=n(r(1594)),o=r(9161);function s(t,e=0){return 1==t[e]>>7}function a(t){return(t=new i.default(t))?(t.isNegative()&&(t=t.multipliedBy(new i.default(-1))),o.numberToPaddedHex(t)):""}e.isMsbOne=s,e.isMsbZero=function(t,e=0){return!s(t,e)},e.cloneBuffer=function(t){let e=Buffer.alloc(t.length);return t.copy(e),e},e.bufferToBigInt=function(t){let e=t.toString("hex");return new i.default(`0x${e}`,16)},e.bigIntToBuffer=function(t){let e=a(t);return Buffer.from(e,"hex")},e.getHexMagnitudeOfBigInt=a,e.flipBufferBitsInPlace=function(t){for(let e=0;e<t.length;e++)t[e]=~t[e]},e.prependByteToBuffer=function(t,e){return Buffer.concat([Buffer.from([e]),t])}},8390:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToHex=e.addressToHex=e.bigIntToHex=e.utf8ToHex=e.bigIntToBuffer=e.bufferToBigInt=e.stringToBuffer=void 0;const a=s(r(1594)),u=o(r(7553)),f=o(r(9161));e.stringToBuffer=function(t){return Buffer.from(t)},e.bufferToBigInt=function(t){return 0==t.length?new a.default(0):u.bufferToBigInt(t)},e.bigIntToBuffer=function(t){return 0==t?Buffer.from([]):u.bigIntToBuffer(t)};var l=r(9161);Object.defineProperty(e,"utf8ToHex",{enumerable:!0,get:function(){return l.utf8ToHex}}),Object.defineProperty(e,"bigIntToHex",{enumerable:!0,get:function(){return l.bigIntToHex}}),Object.defineProperty(e,"addressToHex",{enumerable:!0,get:function(){return l.addressToHex}}),e.bufferToHex=function(t){const e=t.toString("hex");return f.zeroPadStringIfOddLength(e)}},9161:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.addressToHex=e.bigIntToHex=e.byteArrayToHex=e.boolToHex=e.utf8ToHex=e.zeroPadStringIfOddLength=e.isPaddedHex=e.numberToPaddedHex=void 0;const a=s(r(1594)),u=r(236),f=o(r(7553));function l(t){return(t=t||"").length%2==1?"0"+t:t}function h(t){return l(Buffer.from(t).toString("hex"))}e.numberToPaddedHex=function(t){let e;return e="bigint"==typeof t||"number"==typeof t?t:new a.default(t),l(e.toString(16))},e.isPaddedHex=function(t){t=t||"";let e=Buffer.from(t,"hex").toString("hex");return t.toUpperCase()==e.toUpperCase()},e.zeroPadStringIfOddLength=l,e.utf8ToHex=h,e.boolToHex=function(t){return h(t.toString())},e.byteArrayToHex=function(t){return l(Buffer.from(t).toString("hex"))},e.bigIntToHex=function(t){return 0==t?"":f.getHexMagnitudeOfBigInt(t)},e.addressToHex=function(t){return u.Address.fromBech32(t.toString()).pubkey().toString("hex")}},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],u=o[1],f=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),l=0,h=u>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[l++]=e>>16&255,f[l++]=e>>8&255,f[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,f=n-i;a<f;a+=s)o.push(u(t,a,a+s>f?f:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9674:t=>{"use strict";for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=e.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(t){var e=t>>25;return(33554431&t)<<5^996825010&-(1&e)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function s(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=o(e)^n>>5}for(e=o(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=o(e)^31&i}return e}function a(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var n=t.toLowerCase(),i=t.toUpperCase();if(t!==n&&t!==i)return"Mixed-case string "+t;var a=(t=n).lastIndexOf("1");if(-1===a)return"No separator character for "+t;if(0===a)return"Missing prefix for "+t;var u=t.slice(0,a),f=t.slice(a+1);if(f.length<6)return"Data too short";var l=s(u);if("string"==typeof l)return l;for(var h=[],c=0;c<f.length;++c){var d=f.charAt(c),p=r[d];if(void 0===p)return"Unknown character "+d;l=o(l)^p,c+6>=f.length||h.push(p)}return 1!==l?"Invalid checksum for "+t:{prefix:u,words:h}}function u(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],u=0;u<t.length;++u)for(i=i<<e|t[u],o+=e;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}t.exports={decodeUnsafe:function(){var t=a.apply(null,arguments);if("object"==typeof t)return t},decode:function(t){var e=a.apply(null,arguments);if("object"==typeof e)return e;throw new Error(e)},encode:function(t,r,n){if(n=n||90,t.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=s(t=t.toLowerCase());if("string"==typeof i)throw new Error(i);for(var a=t+"1",u=0;u<r.length;++u){var f=r[u];if(f>>5)throw new Error("Non 5-bit word");i=o(i)^f,a+=e.charAt(f)}for(u=0;u<6;++u)i=o(i);for(i^=1,u=0;u<6;++u)a+=e.charAt(i>>5*(5-u)&31);return a},toWordsUnsafe:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}}},8287:(t,e,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let n=a(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?a(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function c(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(i)return n?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return N(this,e,r);case"base64":return R(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){let o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(f(t,o+n)!==f(e,n)){r=!1;break}if(r)return o}return-1}function v(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(X(n))return s;t[r+s]=n}return s}function m(t,e,r,n){return K(V(e,t.length-r),t,r,n)}function E(t,e,r,n){return K(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return K($(e),t,r,n)}function T(t,e,r,n){return K(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function R(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(o=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=O));return r}(n)}e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),f=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<a;++t)if(f[t]!==l[t]){o=f[t],s=l[t];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function B(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function N(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=J[t[n]];return i}function L(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function x(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i){F(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function q(t,e,r,n,i){F(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function k(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,o){return e=+e,r>>>=0,o||k(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return e=+e,r>>>=0,o||k(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||x(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||x(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||x(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||x(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||x(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||x(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||x(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||M(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Z((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(t,e=0){return q(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Z((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(t,e=0){return q(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=u.isBuffer(t)?t:u.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const U={};function j(t,e,r){U[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function H(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function F(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){W(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||z(e,t.length-(r+1))}(n,i,o)}function W(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){if(Math.floor(t)!==t)throw W(t,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=H(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},7007:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,s,f;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,f=l,console&&console.warn&&console.warn(f)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function c(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function g(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else{var f=u.length,l=p(u,f);for(r=0;r<f;++r)n(l[r],this,e)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return c(this,t,!0)},o.prototype.rawListeners=function(t){return c(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,l=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=c,l-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=f}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,l=(1<<f)-1,h=l>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+d]=255&s,d+=p,s/=256,f-=8);t[r+d-p]|=128*g}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},5508:(t,e,r)=>{t.exports=r(9792)(r(4817))},9792:(t,e,r)=>{const n=r(212),i=r(4614);t.exports=function(t){const e=n(t),r=i(t);return function(t,n){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},212:(t,e,r)=>{const{Transform:n}=r(8399);t.exports=t=>class e extends n{constructor(e,r,n,i,o){super(o),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,e){if(!Buffer.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,e)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},4614:(t,e,r)=>{const{Transform:n}=r(8399);t.exports=t=>class e extends n{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,e){if(!Buffer.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,e)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},9078:(t,e)=>{const r=[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.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],c=t[9]^t[19]^t[29]^t[39]^t[49];let d=h^(o<<1|s>>>31),p=c^(s<<1|o>>>31);const g=t[0]^d,y=t[1]^p,b=t[10]^d,_=t[11]^p,w=t[20]^d,v=t[21]^p,m=t[30]^d,E=t[31]^p,S=t[40]^d,T=t[41]^p;d=n^(a<<1|u>>>31),p=i^(u<<1|a>>>31);const R=t[2]^d,A=t[3]^p,O=t[12]^d,B=t[13]^p,N=t[22]^d,I=t[23]^p,L=t[32]^d,x=t[33]^p,M=t[42]^d,C=t[43]^p;d=o^(f<<1|l>>>31),p=s^(l<<1|f>>>31);const q=t[4]^d,k=t[5]^p,D=t[14]^d,P=t[15]^p,U=t[24]^d,j=t[25]^p,H=t[34]^d,F=t[35]^p,W=t[44]^d,z=t[45]^p;d=a^(h<<1|c>>>31),p=u^(c<<1|h>>>31);const G=t[6]^d,V=t[7]^p,$=t[16]^d,K=t[17]^p,Y=t[26]^d,X=t[27]^p,J=t[36]^d,Z=t[37]^p,Q=t[46]^d,tt=t[47]^p;d=f^(n<<1|i>>>31),p=l^(i<<1|n>>>31);const et=t[8]^d,rt=t[9]^p,nt=t[18]^d,it=t[19]^p,ot=t[28]^d,st=t[29]^p,at=t[38]^d,ut=t[39]^p,ft=t[48]^d,lt=t[49]^p,ht=g,ct=y,dt=_<<4|b>>>28,pt=b<<4|_>>>28,gt=w<<3|v>>>29,yt=v<<3|w>>>29,bt=E<<9|m>>>23,_t=m<<9|E>>>23,wt=S<<18|T>>>14,vt=T<<18|S>>>14,mt=R<<1|A>>>31,Et=A<<1|R>>>31,St=B<<12|O>>>20,Tt=O<<12|B>>>20,Rt=N<<10|I>>>22,At=I<<10|N>>>22,Ot=x<<13|L>>>19,Bt=L<<13|x>>>19,Nt=M<<2|C>>>30,It=C<<2|M>>>30,Lt=k<<30|q>>>2,xt=q<<30|k>>>2,Mt=D<<6|P>>>26,Ct=P<<6|D>>>26,qt=j<<11|U>>>21,kt=U<<11|j>>>21,Dt=H<<15|F>>>17,Pt=F<<15|H>>>17,Ut=z<<29|W>>>3,jt=W<<29|z>>>3,Ht=G<<28|V>>>4,Ft=V<<28|G>>>4,Wt=K<<23|$>>>9,zt=$<<23|K>>>9,Gt=Y<<25|X>>>7,Vt=X<<25|Y>>>7,$t=J<<21|Z>>>11,Kt=Z<<21|J>>>11,Yt=tt<<24|Q>>>8,Xt=Q<<24|tt>>>8,Jt=et<<27|rt>>>5,Zt=rt<<27|et>>>5,Qt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=st<<7|ot>>>25,re=ot<<7|st>>>25,ne=at<<8|ut>>>24,ie=ut<<8|at>>>24,oe=ft<<14|lt>>>18,se=lt<<14|ft>>>18;t[0]=ht^~St&qt,t[1]=ct^~Tt&kt,t[10]=Ht^~Qt>,t[11]=Ft^~te&yt,t[20]=mt^~Mt&Gt,t[21]=Et^~Ct&Vt,t[30]=Jt^~dt&Rt,t[31]=Zt^~pt&At,t[40]=Lt^~Wt&ee,t[41]=xt^~zt&re,t[2]=St^~qt&$t,t[3]=Tt^~kt&Kt,t[12]=Qt^~gt&Ot,t[13]=te^~yt&Bt,t[22]=Mt^~Gt&ne,t[23]=Ct^~Vt&ie,t[32]=dt^~Rt&Dt,t[33]=pt^~At&Pt,t[42]=Wt^~ee&bt,t[43]=zt^~re&_t,t[4]=qt^~$t&oe,t[5]=kt^~Kt&se,t[14]=gt^~Ot&Ut,t[15]=yt^~Bt&jt,t[24]=Gt^~ne&wt,t[25]=Vt^~ie&vt,t[34]=Rt^~Dt&Yt,t[35]=At^~Pt&Xt,t[44]=ee^~bt&Nt,t[45]=re^~_t&It,t[6]=$t^~oe&ht,t[7]=Kt^~se&ct,t[16]=Ot^~Ut&Ht,t[17]=Bt^~jt&Ft,t[26]=ne^~wt&mt,t[27]=ie^~vt&Et,t[36]=Dt^~Yt&Jt,t[37]=Pt^~Xt&Zt,t[46]=bt^~Nt&Lt,t[47]=_t^~It&xt,t[8]=oe^~ht&St,t[9]=se^~ct&Tt,t[18]=Ut^~Ht&Qt,t[19]=jt^~Ft&te,t[28]=wt^~mt&Mt,t[29]=vt^~Et&Ct,t[38]=Yt^~Jt&dt,t[39]=Xt^~Zt&pt,t[48]=Nt^~Lt&Wt,t[49]=It^~xt&zt,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},4817:(t,e,r)=>{const n=r(9078);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,128&t&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const e=Buffer.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return e},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i},6048:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,s,a,u;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var f=("number"!=typeof u&&(u=0),u+1>(a=t).length||-1===a.indexOf(".",u)?"argument":"property");s='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},5382:(t,e,r)=>{"use strict";var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(5412),o=r(6708);r(6698)(f,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];f.prototype[u]||(f.prototype[u]=o.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},3600:(t,e,r)=>{"use strict";t.exports=i;var n=r(4610);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(6698)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},5412:(t,e,r)=>{"use strict";var n;t.exports=T,T.ReadableState=S,r(7007).EventEmitter;var i,o=function(t,e){return t.listeners(e).length},s=r(345),a=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=r(9838);i=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,c,d=r(2726),p=r(5896),g=r(5291).getHighWaterMark,y=r(6048).F,b=y.ERR_INVALID_ARG_TYPE,_=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(T,s);var m=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(t,e,i){n=n||r(5382),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function T(t){if(n=n||r(5382),!(this instanceof T))return new T(t);var e=this instanceof n;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function R(t,e,r,n,o){i("readableAddChunk",e);var s,f=t._readableState;if(null===e)f.reading=!1,function(t,e){if(i("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}}(t,f);else if(o||(s=function(t,e){var r,n;return n=e,a.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e)),r}(f,e)),s)m(t,s);else if(f.objectMode||e&&e.length>0)if("string"==typeof e||f.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),n)f.endEmitted?m(t,new v):A(t,f,e,!0);else if(f.ended)m(t,new _);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(e=f.decoder.write(e),f.objectMode||0!==e.length?A(t,f,e,!1):L(t,f)):A(t,f,e,!1)}else n||(f.reading=!1,L(t,f));return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&N(t)),L(t,e)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=a.from(t,e),e=""),r=!0),R(this,t,e,!1,r)},T.prototype.unshift=function(t){return R(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){l||(l=r(3141).I);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function B(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function N(t){var e=t._readableState;i("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(i("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(I,t))}function I(t){var e=t._readableState;i("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,k(t)}function L(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(x,t,e))}function x(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(i("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function M(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C(t){i("readable nexttick read 0"),t.read(0)}function q(t,e){i("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(i("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function P(t){var e=t._readableState;i("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(U,e,t))}function U(t,e){if(i("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function j(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}T.prototype.read=function(t){i("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return i("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):N(this),null;if(0===(t=B(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,o=e.needReadable;return i("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&i("length less than watermark",o=!0),e.ended||e.reading?i("reading or ended",o=!1):o&&(i("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=B(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){m(this,new w("_read()"))},T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===process.stdout||t===process.stderr?p:a;function a(){i("onend"),t.end()}n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",(function e(o,s){i("onunpipe"),o===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",a),r.removeListener("end",p),r.removeListener("data",l),f=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(t){return function(){var e=t._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,k(t))}}(r);t.on("drain",u);var f=!1;function l(e){i("ondata");var o=t.write(e);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==j(n.pipes,t))&&!f&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){i("onerror",e),p(),t.removeListener("error",h),0===o(t,"error")&&m(t,e)}function c(){t.removeListener("finish",d),p()}function d(){i("onfinish"),t.removeListener("close",c),p()}function p(){i("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",c),t.once("finish",d),t.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=j(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?N(this):n.reading||process.nextTick(C,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(M,this),r},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(M,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(i("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(q,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var s=0;s<E.length;s++)t.on(E[s],this.emit.bind(this,E[s]));return this._read=function(e){i("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(2955)),h(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=D,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,e){return void 0===c&&(c=r(5157)),c(T,t,e)})},4610:(t,e,r)=>{"use strict";t.exports=l;var n=r(6048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(5382);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush((function(e,r){c(t,e,r)}))}function c(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(6698)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new i("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},6708:(t,e,r)=>{"use strict";function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var i;t.exports=T,T.WritableState=S;var o,s={deprecate:r(4643)},a=r(345),u=r(8287).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=r(5896),h=r(5291).getHighWaterMark,c=r(6048).F,d=c.ERR_INVALID_ARG_TYPE,p=c.ERR_METHOD_NOT_IMPLEMENTED,g=c.ERR_MULTIPLE_CALLBACK,y=c.ERR_STREAM_CANNOT_PIPE,b=c.ERR_STREAM_DESTROYED,_=c.ERR_STREAM_NULL_VALUES,w=c.ERR_STREAM_WRITE_AFTER_END,v=c.ERR_UNKNOWN_ENCODING,m=l.errorOrDestroy;function E(){}function S(t,e,o){i=i||r(5382),t=t||{},"boolean"!=typeof o&&(o=e instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(I,t,e),t._writableState.errorEmitted=!0,m(t,n)):(i(n),t._writableState.errorEmitted=!0,m(t,n),I(t,e))}(t,r,n,e,i);else{var o=B(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||O(t,r),n?process.nextTick(A,t,r,o,i):A(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function T(t){var e=this instanceof(i=i||r(5382));if(!e&&!o.call(T,this))return new T(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function R(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,o=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,R(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,l=r.encoding,h=r.callback;if(R(t,e,!1,e.objectMode?1:f.length,f,l,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function B(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(r){e.pendingcb--,r&&m(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=B(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(T,a),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===T&&t&&t._writableState instanceof S}})):o=function(t){return t instanceof this},T.prototype.pipe=function(){m(this,new y)},T.prototype.write=function(t,e,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=t,u.isBuffer(n)||n instanceof f);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=E),i.ending?function(t,e){var r=new w;m(t,r),process.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i;return null===r?i=new _:"string"==typeof r||e.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(m(t,i),process.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,o=function(t,e,r,n,i,o){if(!r){var s=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r)),e}(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var f=e.length<e.highWaterMark;if(f||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,a,n,i,o);return f}(this,i,s,t,e,r)),o},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},T.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new v(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,r){r(new p("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=l.destroy,T.prototype._undestroy=l.undestroy,T.prototype._destroy=function(t,e){e(t)}},2955:(t,e,r)=>{"use strict";var n;function i(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(6238),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),c=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var r=t[c].read();null!==r&&(t[l]=null,t[s]=null,t[a]=null,e(d(r,!1)))}}function g(t){process.nextTick(p,t)}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((i(n={get stream(){return this[c]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[u]?r(t[u]):e(d(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[f]?r(d(void 0,!0)):e[h](r,n)}),n)}}(n,this));else{var i=this[c].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[c].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(b,(i(e={},c,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,f,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[c].read();n?(r[l]=null,r[s]=null,r[a]=null,t(d(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[l]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(d(void 0,!0))),r[f]=!0})),t.on("readable",g.bind(null,r)),r}},2726:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var u=r(8287).Buffer,f=r(5340).inspect,l=f&&f.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return u.alloc(0);for(var e,r,n,i=u.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,u.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=u.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return f(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},5896:t=>{"use strict";function e(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(e,o,t)):process.nextTick(e,o,t):i?(process.nextTick(r,o),i(t)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6238:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||l()},f=e._writableState&&e._writableState.finished,l=function(){a=!1,f=!0,s||o.call(e)},h=e._readableState&&e._readableState.endEmitted,c=function(){s=!1,h=!0,a||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):a&&!f?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",l),e.on("abort",p),e.req?g():e.on("request",g)):a&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",c),e.on("finish",l),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",l),e.removeListener("abort",p),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",p)}}},5157:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},7758:(t,e,r)=>{"use strict";var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function f(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var l,h=function(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var c=e.map((function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=r(6238)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);a=!0,o()}));var u=!1;return function(e){if(!a&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,(function(t){l||(l=t),t&&c.forEach(u),o||(c.forEach(u),h(l))}))}));return e.reduce(f)}},5291:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},8399:(t,e,r)=>{(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600),e.finished=r(6238),e.pipeline=r(7758)},2861:(t,e,r)=>{var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3141:(t,e,r)=>{"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4643:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}}]);
|
|
@@ -7,8 +7,4 @@
|
|
|
7
7
|
|
|
8
8
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
9
|
|
|
10
|
-
/*! noble-ed25519 - MIT License (c) 2019 Paul Miller (paulmillr.com) */
|
|
11
|
-
|
|
12
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
13
|
-
|
|
14
10
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|