@metamask/snaps-execution-environments 7.1.0 → 7.2.1

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.
@@ -1,4 +1,4 @@
1
- LavaPack.loadBundle([[1,{"readable-stream":78},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BasePostMessageStream=void 0;const n=e("readable-stream"),s=()=>undefined,i="SYN",o="ACK";class a extends n.Duplex{constructor(e){super(Object.assign({objectMode:!0},e)),this._init=!1,this._haveSyn=!1,this._log=()=>null}_handshake(){this._write(i,null,s),this.cork()}_onData(e){if(this._init)try{this.push(e),this._log(e,!1)}catch(e){this.emit("error",e)}else e===i?(this._haveSyn=!0,this._write(o,null,s)):e===o&&(this._init=!0,this._haveSyn||this._write(o,null,s),this.uncork())}_read(){return undefined}_write(e,t,r){e!==o&&e!==i&&this._log(e,!0),this._postMessage(e),r()}_setLogger(e){this._log=e}}r.BasePostMessageStream=a}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/BasePostMessageStream.js"}],[2,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerParentPostMessageStream=void 0;const s=e("../BasePostMessageStream"),i=e("../utils");class o extends s.BasePostMessageStream{constructor(e){var{worker:t}=e;super(n(e,["worker"])),this._target=i.DEDICATED_WORKER_NAME,this._worker=t,this._worker.onmessage=this._onMessage.bind(this),this._handshake()}_postMessage(e){this._worker.postMessage({target:this._target,data:e})}_onMessage(e){const t=e.data;(0,i.isValidStreamMessage)(t)&&this._onData(t.data)}_destroy(){this._worker.onmessage=null,this._worker=null}}r.WebWorkerParentPostMessageStream=o}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/WebWorker/WebWorkerParentPostMessageStream.js"}],[3,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerPostMessageStream=void 0;const n=e("../BasePostMessageStream"),s=e("../utils");class i extends n.BasePostMessageStream{constructor(e={}){if("undefined"==typeof self||"undefined"==typeof WorkerGlobalScope)throw new Error("WorkerGlobalScope not found. This class should only be instantiated in a WebWorker.");super(e),this._name=s.DEDICATED_WORKER_NAME,self.addEventListener("message",this._onMessage.bind(this)),this._handshake()}_postMessage(e){self.postMessage({data:e})}_onMessage(e){const t=e.data;(0,s.isValidStreamMessage)(t)&&t.target===this._name&&this._onData(t.data)}_destroy(){return undefined}}r.WebWorkerPostMessageStream=i}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/WebWorker/WebWorkerPostMessageStream.js"}],[4,{"./BasePostMessageStream":1,"./WebWorker/WebWorkerParentPostMessageStream":2,"./WebWorker/WebWorkerPostMessageStream":3,"./runtime/BrowserRuntimePostMessageStream":5,"./window/WindowPostMessageStream":7},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./window/WindowPostMessageStream"),r),s(e("./WebWorker/WebWorkerPostMessageStream"),r),s(e("./WebWorker/WebWorkerParentPostMessageStream"),r),s(e("./runtime/BrowserRuntimePostMessageStream"),r),s(e("./BasePostMessageStream"),r)}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/browser.js"}],[5,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserRuntimePostMessageStream=void 0;const c=e("../BasePostMessageStream"),u=e("../utils");class l extends c.BasePostMessageStream{constructor(e){var{name:t,target:r}=e;super(a(e,["name","target"])),n.set(this,void 0),s.set(this,void 0),i(this,n,t,"f"),i(this,s,r,"f"),this._onMessage=this._onMessage.bind(this),this._getRuntime().onMessage.addListener(this._onMessage),this._handshake()}_postMessage(e){this._getRuntime().sendMessage({target:o(this,s,"f"),data:e})}_onMessage(e){(0,u.isValidStreamMessage)(e)&&e.target===o(this,n,"f")&&this._onData(e.data)}_getRuntime(){var e,t;if("chrome"in globalThis&&"function"==typeof(null===(e=null===chrome||void 0===chrome?void 0:chrome.runtime)||void 0===e?void 0:e.sendMessage))return chrome.runtime;if("browser"in globalThis&&"function"==typeof(null===(t=null===browser||void 0===browser?void 0:browser.runtime)||void 0===t?void 0:t.sendMessage))return browser.runtime;throw new Error("browser.runtime.sendMessage is not a function. This class should only be instantiated in a web extension.")}_destroy(){this._getRuntime().onMessage.removeListener(this._onMessage)}}r.BrowserRuntimePostMessageStream=l,n=new WeakMap,s=new WeakMap}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/runtime/BrowserRuntimePostMessageStream.js"}],[6,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isValidStreamMessage=r.DEDICATED_WORKER_NAME=void 0;const n=e("@metamask/utils");r.DEDICATED_WORKER_NAME="dedicatedWorker",r.isValidStreamMessage=function(e){return(0,n.isObject)(e)&&Boolean(e.data)&&("number"==typeof e.data||"object"==typeof e.data||"string"==typeof e.data)}}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/utils.js"}],[7,{"../BasePostMessageStream":1,"../utils":6,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.WindowPostMessageStream=void 0;const o=e("@metamask/utils"),a=e("../BasePostMessageStream"),c=e("../utils"),u=null===(n=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"source"))||void 0===n?void 0:n.get;(0,o.assert)(u,"MessageEvent.prototype.source getter is not defined.");const l=null===(s=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"origin"))||void 0===s?void 0:s.get;(0,o.assert)(l,"MessageEvent.prototype.origin getter is not defined.");class f extends a.BasePostMessageStream{constructor(e){var{name:t,target:r,targetOrigin:n=location.origin,targetWindow:s=window}=e;if(super(i(e,["name","target","targetOrigin","targetWindow"])),"undefined"==typeof window||"function"!=typeof window.postMessage)throw new Error("window.postMessage is not a function. This class should only be instantiated in a Window.");this._name=t,this._target=r,this._targetOrigin=n,this._targetWindow=s,this._onMessage=this._onMessage.bind(this),window.addEventListener("message",this._onMessage,!1),this._handshake()}_postMessage(e){this._targetWindow.postMessage({target:this._target,data:e},this._targetOrigin)}_onMessage(e){const t=e.data;"*"!==this._targetOrigin&&l.call(e)!==this._targetOrigin||u.call(e)!==this._targetWindow||!(0,c.isValidStreamMessage)(t)||t.target!==this._name||this._onData(t.data)}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}r.WindowPostMessageStream=f}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/window/WindowPostMessageStream.js"}],[8,{"./utils.cjs":12,"@metamask/utils":31,"fast-safe-stringify":55},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.JsonRpcError=void 0;const s=e("@metamask/utils"),i=n(e("fast-safe-stringify")),o=e("./utils.cjs");class a extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a non-empty string.');(0,o.dataHasCause)(r)?(super(t,{cause:r.cause}),(0,s.hasProperty)(this,"cause")||Object.assign(this,{cause:r.cause})):super(t),r!==undefined&&(this.data=r),this.code=e}serialize(){const e={code:this.code,message:this.message};return this.data!==undefined&&(e.data=this.data,(0,s.isPlainObject)(this.data)&&(e.data.cause=(0,o.serializeCause)(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return(0,i.default)(this.serialize(),c,2)}}r.JsonRpcError=a;function c(e,t){return"[Circular]"===t?undefined:t}r.EthereumProviderError=class extends a{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/classes.cjs"}],[9,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},r.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/error-constants.cjs"}],[10,{"./classes.cjs":8,"./error-constants.cjs":9,"./utils.cjs":12},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.providerErrors=r.rpcErrors=void 0;const n=e("./classes.cjs"),s=e("./error-constants.cjs"),i=e("./utils.cjs");function o(e,t){const[r,s]=c(t);return new n.JsonRpcError(e,r??(0,i.getMessageFromCode)(e),s)}function a(e,t){const[r,s]=c(t);return new n.EthereumProviderError(e,r??(0,i.getMessageFromCode)(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t??undefined,r]}}return[]}r.rpcErrors={parse:e=>o(s.errorCodes.rpc.parse,e),invalidRequest:e=>o(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>o(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>o(s.errorCodes.rpc.methodNotFound,e),internal:e=>o(s.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(t,e)},invalidInput:e=>o(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(s.errorCodes.rpc.limitExceeded,e)},r.providerErrors={userRejectedRequest:e=>a(s.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(s.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(s.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(s.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(s.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:s}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,r,s)}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/errors.cjs"}],[11,{"./classes.cjs":8,"./error-constants.cjs":9,"./errors.cjs":10,"./utils.cjs":12},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorCodes=r.providerErrors=r.rpcErrors=r.getMessageFromCode=r.serializeError=r.serializeCause=r.dataHasCause=r.EthereumProviderError=r.JsonRpcError=void 0;var n=e("./classes.cjs");Object.defineProperty(r,"JsonRpcError",{enumerable:!0,get:function(){return n.JsonRpcError}}),Object.defineProperty(r,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});var s=e("./utils.cjs");Object.defineProperty(r,"dataHasCause",{enumerable:!0,get:function(){return s.dataHasCause}}),Object.defineProperty(r,"serializeCause",{enumerable:!0,get:function(){return s.serializeCause}}),Object.defineProperty(r,"serializeError",{enumerable:!0,get:function(){return s.serializeError}}),Object.defineProperty(r,"getMessageFromCode",{enumerable:!0,get:function(){return s.getMessageFromCode}});var i=e("./errors.cjs");Object.defineProperty(r,"rpcErrors",{enumerable:!0,get:function(){return i.rpcErrors}}),Object.defineProperty(r,"providerErrors",{enumerable:!0,get:function(){return i.providerErrors}});var o=e("./error-constants.cjs");Object.defineProperty(r,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/index.cjs"}],[12,{"./error-constants.cjs":9,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dataHasCause=r.serializeCause=r.serializeError=r.isValidCode=r.getMessageFromCode=r.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=e("@metamask/utils"),s=e("./error-constants.cjs"),i=s.errorCodes.rpc.internal,o={code:i,message:a(i)};function a(e,t="Unspecified error message. This is a bug, please report it."){if(c(e)){const t=e.toString();if((0,n.hasProperty)(s.errorValues,t))return s.errorValues[t].message;if(function(e){return e>=-32099&&e<=-32e3}(e))return r.JSON_RPC_SERVER_ERROR_MESSAGE}return t}function c(e){return Number.isInteger(e)}function u(e){return Array.isArray(e)?e.map((e=>(0,n.isValidJson)(e)?e:(0,n.isObject)(e)?l(e):null)):(0,n.isObject)(e)?l(e):(0,n.isValidJson)(e)?e:null}function l(e){return Object.getOwnPropertyNames(e).reduce(((t,r)=>{const s=e[r];return(0,n.isValidJson)(s)&&(t[r]=s),t}),{})}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=a,r.isValidCode=c,r.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!0,shouldPreserveMessage:s=!0}={}){if(!(0,n.isJsonRpcError)(t))throw new Error("Must provide fallback error with integer number code and string message.");const i=function(e,t,r){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if((0,n.isJsonRpcError)(e))return e;const s=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message&&e.message.length>0)return e.message;return undefined}(e),i=u(e),o={...t,...r&&s&&{message:s},data:{cause:i}};return o}(e,t,s);return r||delete i.stack,i},r.serializeCause=u,r.dataHasCause=function(e){return(0,n.isObject)(e)&&(0,n.hasProperty)(e,"cause")&&(0,n.isObject)(e.cause)}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/utils.cjs"}],[13,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StructError=void 0;class n extends TypeError{constructor(e,t){let r;const{message:n,explanation:s,...i}=e,{path:o}=e,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(s??a),null!==s&&s!==undefined&&(this.cause=a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}r.StructError=n}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/error.cjs"}],[14,{"./error.cjs":13,"./struct.cjs":15,"./structs/coercions.cjs":16,"./structs/refinements.cjs":17,"./structs/types.cjs":18,"./structs/utilities.cjs":19},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./error.cjs"),r),s(e("./struct.cjs"),r),s(e("./structs/coercions.cjs"),r),s(e("./structs/refinements.cjs"),r),s(e("./structs/types.cjs"),r),s(e("./structs/utilities.cjs"),r)}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/index.cjs"}],[15,{"./error.cjs":13,"./utils.cjs":20},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validate=r.is=r.mask=r.create=r.assert=r.Struct=void 0;const n=e("./error.cjs"),s=e("./utils.cjs");function i(e,t,r){const n=u(e,t,{message:r});if(n[0])throw n[0]}function o(e,t,r){const n=u(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function a(e,t,r){const n=u(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function c(e,t){return!u(e,t)[0]}function u(e,t,r={}){const i=(0,s.run)(e,t,r),o=(0,s.shiftIterator)(i);if(o[0]){return[new n.StructError(o[0],(function*(){for(const e of i)e[0]&&(yield e[0])})),undefined]}const a=o[1];return[undefined,a]}r.Struct=class{constructor(e){const{type:t,schema:r,validator:n,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=o,this.validator=n?(e,t)=>{const r=n(e,t);return(0,s.toFailures)(r,t,this,e)}:()=>[],this.refiner=i?(e,t)=>{const r=i(e,t);return(0,s.toFailures)(r,t,this,e)}:()=>[]}assert(e,t){return i(e,this,t)}create(e,t){return o(e,this,t)}is(e){return c(e,this)}mask(e,t){return a(e,this,t)}validate(e,t={}){return u(e,this,t)}},r.assert=i,r.create=o,r.mask=a,r.is=c,r.validate=u}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/struct.cjs"}],[16,{"../struct.cjs":15,"../utils.cjs":20,"./types.cjs":18},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.trimmed=r.defaulted=r.coerce=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs"),i=e("./types.cjs");function o(e,t,r){return new n.Struct({...e,coercer:(s,i)=>(0,n.is)(s,t)?e.coercer(r(s,i),i):e.coercer(s,i)})}r.coerce=o,r.defaulted=function(e,t,r={}){return o(e,(0,i.unknown)(),(e=>{const n="function"==typeof t?t():t;if(e===undefined)return n;if(!r.strict&&(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(n)){const t={...e};let r=!1;for(const e in n)t[e]===undefined&&(t[e]=n[e],r=!0);if(r)return t}return e}))},r.trimmed=function(e){return o(e,(0,i.string)(),(e=>e.trim()))}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/coercions.cjs"}],[17,{"../struct.cjs":15,"../utils.cjs":20},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.refine=r.size=r.pattern=r.nonempty=r.min=r.max=r.empty=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs");function i(e){return e instanceof Map||e instanceof Set?e.size:e.length}function o(e,t,r){return new n.Struct({...e,*refiner(n,i){yield*e.refiner(n,i);const o=r(n,i),a=(0,s.toFailures)(o,i,e,n);for(const e of a)yield{...e,refinement:t}}})}r.empty=function(e){return o(e,"empty",(t=>{const r=i(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},r.max=function(e,t,r={}){const{exclusive:n}=r;return o(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},r.min=function(e,t,r={}){const{exclusive:n}=r;return o(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},r.nonempty=function(e){return o(e,"nonempty",(t=>i(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},r.pattern=function(e,t){return o(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},r.size=function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return o(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=r||`${n} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:i}=e;return t<=i&&i<=r||`${n} with a size ${s} but received one with a size of \`${i}\``}const{length:i}=e;return t<=i&&i<=r||`${n} with a length ${s} but received one with a length of \`${i}\``}))},r.refine=o}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/refinements.cjs"}],[18,{"../struct.cjs":15,"../utils.cjs":20,"./utilities.cjs":19},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.unknown=r.union=r.type=r.tuple=r.string=r.set=r.regexp=r.record=r.optional=r.object=r.number=r.nullable=r.never=r.map=r.literal=r.intersection=r.integer=r.instance=r.func=r.enums=r.date=r.boolean=r.bigint=r.array=r.any=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs"),i=e("./utilities.cjs");function o(){return(0,i.define)("never",(()=>!1))}r.any=function(){return(0,i.define)("any",(()=>!0))},r.array=function(e){return new n.Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${(0,s.print)(e)}`})},r.bigint=function(){return(0,i.define)("bigint",(e=>"bigint"==typeof e))},r.boolean=function(){return(0,i.define)("boolean",(e=>"boolean"==typeof e))},r.date=function(){return(0,i.define)("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${(0,s.print)(e)}`))},r.enums=function(e){const t={},r=e.map((e=>(0,s.print)(e))).join();for(const r of e)t[r]=r;return new n.Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${(0,s.print)(t)}`})},r.func=function(){return(0,i.define)("func",(e=>"function"==typeof e||`Expected a function, but received: ${(0,s.print)(e)}`))},r.instance=function(e){return(0,i.define)("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${(0,s.print)(t)}`))},r.integer=function(){return(0,i.define)("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${(0,s.print)(e)}`))},r.intersection=function(e){return new n.Struct({type:"intersection",schema:null,*entries(t,r){for(const{entries:n}of e)yield*n(t,r)},*validator(t,r){for(const{validator:n}of e)yield*n(t,r)},*refiner(t,r){for(const{refiner:n}of e)yield*n(t,r)}})},r.literal=function(e){const t=(0,s.print)(e),r=typeof e;return new n.Struct({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${(0,s.print)(r)}`})},r.map=function(e,t){return new n.Struct({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,s]of r.entries())yield[n,n,e],yield[n,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${(0,s.print)(e)}`})},r.never=o,r.nullable=function(e){return new n.Struct({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},r.number=function(){return(0,i.define)("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${(0,s.print)(e)}`))},r.object=function(e){const t=e?Object.keys(e):[],r=o();return new n.Struct({type:"object",schema:e??null,*entries(n){if(e&&(0,s.isObject)(n)){const s=new Set(Object.keys(n));for(const r of t)s.delete(r),yield[r,n[r],e[r]];for(const e of s)yield[e,n[e],r]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},r.optional=function(e){return new n.Struct({...e,validator:(t,r)=>t===undefined||e.validator(t,r),refiner:(t,r)=>t===undefined||e.refiner(t,r)})},r.record=function(e,t){return new n.Struct({type:"record",schema:null,*entries(r){if((0,s.isObject)(r))for(const n in r){const s=r[n];yield[n,n,e],yield[n,s,t]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`})},r.regexp=function(){return(0,i.define)("regexp",(e=>e instanceof RegExp))},r.set=function(e){return new n.Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${(0,s.print)(e)}`})},r.string=function(){return(0,i.define)("string",(e=>"string"==typeof e||`Expected a string, but received: ${(0,s.print)(e)}`))},r.tuple=function(e){const t=o();return new n.Struct({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let s=0;s<n;s++)yield[s,r[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${(0,s.print)(e)}`})},r.type=function(e){const t=Object.keys(e);return new n.Struct({type:"type",schema:e,*entries(r){if((0,s.isObject)(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},r.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new n.Struct({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const i=[];for(const t of e){const[...e]=(0,s.run)(r,t,n),[o]=e;if(!o?.[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${(0,s.print)(r)}`,...i]}})},r.unknown=function(){return(0,i.define)("unknown",(()=>!0))}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/types.cjs"}],[19,{"../struct.cjs":15,"./types.cjs":18},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pick=r.partial=r.omit=r.lazy=r.dynamic=r.deprecated=r.define=r.assign=void 0;const n=e("../struct.cjs"),s=e("./types.cjs");r.assign=function(...e){const t="type"===e[0]?.type,r=e.map((({schema:e})=>e)),n=Object.assign({},...r);return t?(0,s.type)(n):(0,s.object)(n)},r.define=function(e,t){return new n.Struct({type:e,schema:null,validator:t})},r.deprecated=function(e,t){return new n.Struct({...e,refiner:(t,r)=>t===undefined||e.refiner(t,r),validator:(r,n)=>r===undefined||(t(r,n),e.validator(r,n))})},r.dynamic=function(e){return new n.Struct({type:"dynamic",schema:null,*entries(t,r){const n=e(t,r);yield*n.entries(t,r)},validator:(t,r)=>e(t,r).validator(t,r),coercer:(t,r)=>e(t,r).coercer(t,r),refiner:(t,r)=>e(t,r).refiner(t,r)})},r.lazy=function(e){let t;return new n.Struct({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator:(r,n)=>(t??(t=e()),t.validator(r,n)),coercer:(r,n)=>(t??(t=e()),t.coercer(r,n)),refiner:(r,n)=>(t??(t=e()),t.refiner(r,n))})},r.omit=function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?(0,s.type)(n):(0,s.object)(n)},r.partial=function(e){const t=e instanceof n.Struct,r=t?{...e.schema}:{...e};for(const e in r)r[e]=(0,s.optional)(r[e]);return t&&"type"===e.type?(0,s.type)(r):(0,s.object)(r)},r.pick=function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return"type"===e.type?(0,s.type)(n):(0,s.object)(n)}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/utilities.cjs"}],[20,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return"object"==typeof e&&null!==e}function s(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function i(e,t,r,n){if(!0===e)return undefined;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:o}=t,{type:a}=r,{refinement:c,message:u=`Expected a value of type \`${a}\`${c?` with refinement \`${c}\``:""}, but received: \`${s(n)}\``}=e;return{value:n,type:a,refinement:c,key:i[i.length-1],path:i,branch:o,...e,message:u}}Object.defineProperty(r,"__esModule",{value:!0}),r.run=r.toFailures=r.toFailure=r.shiftIterator=r.print=r.isPlainObject=r.isObject=void 0,r.isObject=n,r.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},r.print=s,r.shiftIterator=function(e){const{done:t,value:r}=e.next();return t?undefined:r},r.toFailure=i,r.toFailures=function*(e,t,r,s){(function(e){return n(e)&&"function"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const n of e){const e=i(n,t,r,s);e&&(yield e)}},r.run=function*e(t,r,s={}){const{path:i=[],branch:o=[t],coerce:a=!1,mask:c=!1}=s,u={path:i,branch:o};if(a&&(t=r.coercer(t,u),c&&"type"!==r.type&&n(r.schema)&&n(t)&&!Array.isArray(t)))for(const e in t)r.schema[e]===undefined&&delete t[e];let l="valid";for(const e of r.validator(t,u))e.explanation=s.message,l="not_valid",yield[e,undefined];for(let[f,d,p]of r.entries(t,u)){const r=e(d,p,{path:f===undefined?i:[...i,f],branch:f===undefined?o:[...o,d],coerce:a,mask:c,message:s.message});for(const e of r)e[0]?(l=null===e[0].refinement||e[0].refinement===undefined?"not_valid":"not_refined",yield[e[0],undefined]):a&&(d=e[1],f===undefined?t=d:t instanceof Map?t.set(f,d):t instanceof Set?t.add(d):n(t)&&(d!==undefined||f in t)&&(t[f]=d))}if("not_valid"!==l)for(const e of r.refiner(t,u))e.explanation=s.message,l="not_refined",yield[e,undefined];"valid"===l&&(yield[undefined,t])}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/utils.cjs"}],[21,{"./errors.cjs":29,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertExhaustive=r.assertStruct=r.assert=r.AssertionError=void 0;const n=e("@metamask/superstruct"),s=e("./errors.cjs");function i(e,t){return r=e,Boolean("string"==typeof r?.prototype?.constructor?.name)?new e({message:t}):e({message:t});var r}class o extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}r.AssertionError=o,r.assert=function(e,t="Assertion failed.",r=o){if(!e){if(t instanceof Error)throw t;throw i(r,t)}},r.assertStruct=function(e,t,r="Assertion failed",a=o){try{(0,n.assert)(e,t)}catch(e){throw i(a,`${r}: ${function(e){return(0,s.getErrorMessage)(e).replace(/\.$/u,"")}(e)}.`)}},r.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/assert.cjs"}],[22,{"./assert.cjs":21,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.base64=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs");r.base64=(e,t={})=>{const r=t.paddingRequired??!1,i=t.characterSet??"base64";let o,a;return"base64"===i?o=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===i),o=String.raw`[-_A-Za-z0-9]`),a=r?new RegExp(`^(?:${o}{4})*(?:${o}{3}=|${o}{2}==)?$`,"u"):new RegExp(`^(?:${o}{4})*(?:${o}{2,3}|${o}{3}=|${o}{2}==)?$`,"u"),(0,n.pattern)(e,a)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/base64.cjs"}],[23,{"./assert.cjs":21,"./hex.cjs":30,"@scure/base":48,buffer:51},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.createDataView=r.concatBytes=r.valueToBytes=r.base64ToBytes=r.stringToBytes=r.numberToBytes=r.signedBigIntToBytes=r.bigIntToBytes=r.hexToBytes=r.bytesToBase64=r.bytesToString=r.bytesToNumber=r.bytesToSignedBigInt=r.bytesToBigInt=r.bytesToHex=r.assertIsBytes=r.isBytes=void 0;const n=e("@scure/base"),s=e("./assert.cjs"),i=e("./hex.cjs");const o=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function a(e){return e instanceof Uint8Array}function c(e){(0,s.assert)(a(e),"Value must be a Uint8Array.")}function u(e){if(c(e),0===e.length)return"0x";const t=o(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,i.add0x)(r.join(""))}function l(e){c(e);const t=u(e);return BigInt(t)}function f(e){if("0x"===e?.toLowerCase?.())return new Uint8Array;(0,i.assertIsHexString)(e);const t=(0,i.remove0x)(e).toLowerCase(),r=t.length%2==0?t:`0${t}`,n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++){const t=r.charCodeAt(2*e),s=r.charCodeAt(2*e+1),i=t-(t<58?48:87),o=s-(s<58?48:87);n[e]=16*i+o}return n}function d(e){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");return f(e.toString(16))}function p(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return f(e.toString(16))}function h(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function m(e){if("bigint"==typeof e)return d(e);if("number"==typeof e)return p(e);if("string"==typeof e)return e.startsWith("0x")?f(e):h(e);if(a(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}r.isBytes=a,r.assertIsBytes=c,r.bytesToHex=u,r.bytesToBigInt=l,r.bytesToSignedBigInt=function(e){c(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*e.length,t)},r.bytesToNumber=function(e){c(e);const t=l(e);return(0,s.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},r.bytesToString=function(e){return c(e),(new TextDecoder).decode(e)},r.bytesToBase64=function(e){return c(e),n.base64.encode(e)},r.hexToBytes=f,r.bigIntToBytes=d,r.signedBigIntToBytes=function(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(function(e,t){(0,s.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let e=0;e<n.length;e++)n[e]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()},r.numberToBytes=p,r.stringToBytes=h,r.base64ToBytes=function(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),n.base64.decode(e)},r.valueToBytes=m,r.concatBytes=function(e){const t=new Array(e.length);let r=0;for(let n=0;n<e.length;n++){const s=m(e[n]);t[n]=s,r+=s.length}const n=new Uint8Array(r);for(let e=0,r=0;e<t.length;e++)n.set(t[e],r),r+=t[e].length;return n},r.createDataView=function(e){if(void 0!==t&&e instanceof t){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/bytes.cjs"}],[24,{"./superstruct.cjs":39,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toCaipAssetId=r.toCaipAssetType=r.toCaipAccountId=r.toCaipChainId=r.parseCaipAssetId=r.parseCaipAssetType=r.parseCaipAccountId=r.parseCaipChainId=r.isCaipAssetId=r.isCaipAssetType=r.isCaipTokenId=r.isCaipAssetReference=r.isCaipAssetNamespace=r.isCaipAccountAddress=r.isCaipAccountId=r.isCaipReference=r.isCaipNamespace=r.isCaipChainId=r.KnownCaipNamespace=r.CaipAssetTypeOrIdStruct=r.CaipAssetIdStruct=r.CaipAssetTypeStruct=r.CaipTokenIdStruct=r.CaipAssetReferenceStruct=r.CaipAssetNamespaceStruct=r.CaipAccountAddressStruct=r.CaipAccountIdStruct=r.CaipReferenceStruct=r.CaipNamespaceStruct=r.CaipChainIdStruct=r.CAIP_ASSET_ID_REGEX=r.CAIP_ASSET_TYPE_REGEX=r.CAIP_TOKEN_ID_REGEX=r.CAIP_ASSET_REFERENCE_REGEX=r.CAIP_ASSET_NAMESPACE_REGEX=r.CAIP_ACCOUNT_ADDRESS_REGEX=r.CAIP_ACCOUNT_ID_REGEX=r.CAIP_REFERENCE_REGEX=r.CAIP_NAMESPACE_REGEX=r.CAIP_CHAIN_ID_REGEX=void 0;const n=e("@metamask/superstruct"),s=e("./superstruct.cjs");r.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,r.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,r.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,r.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,r.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,r.CAIP_ASSET_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,r.CAIP_ASSET_REFERENCE_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,r.CAIP_TOKEN_ID_REGEX=/^[-.%a-zA-Z0-9]{1,78}$/u,r.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,r.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u;function i(e){return(0,n.is)(e,r.CaipNamespaceStruct)}function o(e){return(0,n.is)(e,r.CaipReferenceStruct)}function a(e){return(0,n.is)(e,r.CaipAccountAddressStruct)}function c(e){return(0,n.is)(e,r.CaipAssetNamespaceStruct)}function u(e){return(0,n.is)(e,r.CaipAssetReferenceStruct)}function l(e){return(0,n.is)(e,r.CaipTokenIdStruct)}r.CaipChainIdStruct=(0,s.definePattern)("CaipChainId",r.CAIP_CHAIN_ID_REGEX),r.CaipNamespaceStruct=(0,s.definePattern)("CaipNamespace",r.CAIP_NAMESPACE_REGEX),r.CaipReferenceStruct=(0,s.definePattern)("CaipReference",r.CAIP_REFERENCE_REGEX),r.CaipAccountIdStruct=(0,s.definePattern)("CaipAccountId",r.CAIP_ACCOUNT_ID_REGEX),r.CaipAccountAddressStruct=(0,s.definePattern)("CaipAccountAddress",r.CAIP_ACCOUNT_ADDRESS_REGEX),r.CaipAssetNamespaceStruct=(0,s.definePattern)("CaipAssetNamespace",r.CAIP_ASSET_NAMESPACE_REGEX),r.CaipAssetReferenceStruct=(0,s.definePattern)("CaipAssetReference",r.CAIP_ASSET_REFERENCE_REGEX),r.CaipTokenIdStruct=(0,s.definePattern)("CaipTokenId",r.CAIP_TOKEN_ID_REGEX),r.CaipAssetTypeStruct=(0,s.definePattern)("CaipAssetType",r.CAIP_ASSET_TYPE_REGEX),r.CaipAssetIdStruct=(0,s.definePattern)("CaipAssetId",r.CAIP_ASSET_ID_REGEX),r.CaipAssetTypeOrIdStruct=(0,s.definePattern)("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u),function(e){e.Bip122="bip122",e.Solana="solana",e.Eip155="eip155",e.Wallet="wallet"}(r.KnownCaipNamespace||(r.KnownCaipNamespace={})),r.isCaipChainId=function(e){return(0,n.is)(e,r.CaipChainIdStruct)},r.isCaipNamespace=i,r.isCaipReference=o,r.isCaipAccountId=function(e){return(0,n.is)(e,r.CaipAccountIdStruct)},r.isCaipAccountAddress=a,r.isCaipAssetNamespace=c,r.isCaipAssetReference=u,r.isCaipTokenId=l,r.isCaipAssetType=function(e){return(0,n.is)(e,r.CaipAssetTypeStruct)},r.isCaipAssetId=function(e){return(0,n.is)(e,r.CaipAssetIdStruct)},r.parseCaipChainId=function(e){const t=r.CAIP_CHAIN_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}},r.parseCaipAccountId=function(e){const t=r.CAIP_ACCOUNT_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseCaipAssetType=function(e){const t=r.CAIP_ASSET_TYPE_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset type.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseCaipAssetId=function(e){const t=r.CAIP_ASSET_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset ID.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,tokenId:t.groups.tokenId,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.toCaipChainId=function(e,t){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);return`${e}:${t}`},r.toCaipAccountId=function(e,t,n){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!a(n))throw new Error(`Invalid "accountAddress", must match: ${r.CAIP_ACCOUNT_ADDRESS_REGEX.toString()}`);return`${e}:${t}:${n}`},r.toCaipAssetType=function(e,t,n,s){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!c(n))throw new Error(`Invalid "assetNamespace", must match: ${r.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${r.CAIP_ASSET_REFERENCE_REGEX.toString()}`);return`${e}:${t}/${n}:${s}`},r.toCaipAssetId=function(e,t,n,s,a){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!c(n))throw new Error(`Invalid "assetNamespace", must match: ${r.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${r.CAIP_ASSET_REFERENCE_REGEX.toString()}`);if(!l(a))throw new Error(`Invalid "tokenId", must match: ${r.CAIP_TOKEN_ID_REGEX.toString()}`);return`${e}:${t}/${n}:${s}/${a}`}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/caip-types.cjs"}],[25,{"./base64.cjs":22,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ChecksumStruct=void 0;const n=e("@metamask/superstruct"),s=e("./base64.cjs");r.ChecksumStruct=(0,n.size)((0,s.base64)((0,n.string)(),{paddingRequired:!0}),44,44)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/checksum.cjs"}],[26,{"./assert.cjs":21,"./bytes.cjs":23,"./hex.cjs":30,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createHex=r.createBytes=r.createBigInt=r.createNumber=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs"),i=e("./bytes.cjs"),o=e("./hex.cjs"),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),c=(0,n.coerce)((0,n.number)(),a,Number),u=(0,n.coerce)((0,n.bigint)(),a,BigInt),l=((0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]),(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),i.hexToBytes)),f=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),i.bytesToHex);r.createNumber=function(e){try{const t=(0,n.create)(e,c);return(0,s.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},r.createBigInt=function(e){try{return(0,n.create)(e,u)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},r.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,n.create)(e,l)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},r.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,n.create)(e,f)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/coercers.cjs"}],[27,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r};Object.defineProperty(r,"__esModule",{value:!0}),r.FrozenSet=r.FrozenMap=void 0;class a{get size(){return i(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return i(this,n,"f")[Symbol.iterator]()}constructor(e){n.set(this,void 0),o(this,n,new Map(e),"f"),Object.freeze(this)}entries(){return i(this,n,"f").entries()}forEach(e,t){return i(this,n,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}get(e){return i(this,n,"f").get(e)}has(e){return i(this,n,"f").has(e)}keys(){return i(this,n,"f").keys()}values(){return i(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}r.FrozenMap=a;class c{get size(){return i(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return i(this,s,"f")[Symbol.iterator]()}constructor(e){s.set(this,void 0),o(this,s,new Set(e),"f"),Object.freeze(this)}entries(){return i(this,s,"f").entries()}forEach(e,t){return i(this,s,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}has(e){return i(this,s,"f").has(e)}keys(){return i(this,s,"f").keys()}values(){return i(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}r.FrozenSet=c,Object.freeze(a),Object.freeze(a.prototype),Object.freeze(c),Object.freeze(c.prototype)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/collections.cjs"}],[28,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/encryption-types.cjs"}],[29,{"./misc.cjs":35,"pony-cause":60},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wrapError=r.getErrorMessage=r.isErrorWithStack=r.isErrorWithMessage=r.isErrorWithCode=void 0;const n=e("pony-cause"),s=e("./misc.cjs");function i(e){return"object"==typeof e&&null!==e&&"code"in e}function o(e){return"object"==typeof e&&null!==e&&"message"in e}r.isErrorWithCode=i,r.isErrorWithMessage=o,r.isErrorWithStack=function(e){return"object"==typeof e&&null!==e&&"stack"in e},r.getErrorMessage=function(e){return o(e)&&"string"==typeof e.message?e.message:(0,s.isNullOrUndefined)(e)?"":String(e)},r.wrapError=function(e,t){if((r=e)instanceof Error||(0,s.isObject)(r)&&"Error"===r.constructor.name){let r;return r=2===Error.length?new Error(t,{cause:e}):new n.ErrorWithCause(t,{cause:e}),i(e)&&(r.code=e.code),r}var r;return t.length>0?new Error(`${String(e)}: ${t}`):new Error(String(e))}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/errors.cjs"}],[30,{"./assert.cjs":21,"./bytes.cjs":23,"@metamask/superstruct":14,"@noble/hashes/sha3":46},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.remove0x=r.add0x=r.isValidChecksumAddress=r.getChecksumAddress=r.isValidHexAddress=r.assertIsStrictHexString=r.assertIsHexString=r.isStrictHexString=r.isHexString=r.HexChecksumAddressStruct=r.HexAddressStruct=r.StrictHexStruct=r.HexStruct=void 0;const n=e("@metamask/superstruct"),s=e("@noble/hashes/sha3"),i=e("./assert.cjs"),o=e("./bytes.cjs");function a(e){return(0,n.is)(e,r.HexStruct)}function c(e){return(0,n.is)(e,r.StrictHexStruct)}function u(e){(0,i.assert)((0,n.is)(e,r.HexChecksumAddressStruct),"Invalid hex address.");const t=f(e.toLowerCase()),a=f((0,o.bytesToHex)((0,s.keccak_256)(t)));return`0x${t.split("").map(((e,t)=>{const r=a[t];return(0,i.assert)((0,n.is)(r,(0,n.string)()),"Hash shorter than address."),parseInt(r,16)>7?e.toUpperCase():e})).join("")}`}function l(e){return!!(0,n.is)(e,r.HexChecksumAddressStruct)&&u(e)===e}function f(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}r.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),r.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),r.HexAddressStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]{40}$/u),r.HexChecksumAddressStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-fA-F]{40}$/u),r.isHexString=a,r.isStrictHexString=c,r.assertIsHexString=function(e){(0,i.assert)(a(e),"Value must be a hexadecimal string.")},r.assertIsStrictHexString=function(e){(0,i.assert)(c(e),'Value must be a hexadecimal string, starting with "0x".')},r.isValidHexAddress=function(e){return(0,n.is)(e,r.HexAddressStruct)||l(e)},r.getChecksumAddress=u,r.isValidChecksumAddress=l,r.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},r.remove0x=f}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/hex.cjs"}],[31,{"./assert.cjs":21,"./base64.cjs":22,"./bytes.cjs":23,"./caip-types.cjs":24,"./checksum.cjs":25,"./coercers.cjs":26,"./collections.cjs":27,"./encryption-types.cjs":28,"./errors.cjs":29,"./hex.cjs":30,"./json.cjs":32,"./keyring.cjs":33,"./logging.cjs":34,"./misc.cjs":35,"./number.cjs":36,"./opaque.cjs":37,"./promise.cjs":38,"./superstruct.cjs":39,"./time.cjs":40,"./transaction-types.cjs":41,"./versions.cjs":42},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./assert.cjs"),r),s(e("./base64.cjs"),r),s(e("./bytes.cjs"),r),s(e("./caip-types.cjs"),r),s(e("./checksum.cjs"),r),s(e("./coercers.cjs"),r),s(e("./collections.cjs"),r),s(e("./encryption-types.cjs"),r),s(e("./errors.cjs"),r),s(e("./hex.cjs"),r),s(e("./json.cjs"),r),s(e("./keyring.cjs"),r),s(e("./logging.cjs"),r),s(e("./misc.cjs"),r),s(e("./number.cjs"),r),s(e("./opaque.cjs"),r),s(e("./promise.cjs"),r),s(e("./superstruct.cjs"),r),s(e("./time.cjs"),r),s(e("./transaction-types.cjs"),r),s(e("./versions.cjs"),r)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/index.cjs"}],[32,{"./assert.cjs":21,"./misc.cjs":35,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getJsonRpcIdValidator=r.assertIsJsonRpcError=r.isJsonRpcError=r.assertIsJsonRpcFailure=r.isJsonRpcFailure=r.assertIsJsonRpcSuccess=r.isJsonRpcSuccess=r.assertIsJsonRpcResponse=r.isJsonRpcResponse=r.assertIsPendingJsonRpcResponse=r.isPendingJsonRpcResponse=r.JsonRpcResponseStruct=r.JsonRpcFailureStruct=r.JsonRpcSuccessStruct=r.PendingJsonRpcResponseStruct=r.assertIsJsonRpcRequest=r.isJsonRpcRequest=r.assertIsJsonRpcNotification=r.isJsonRpcNotification=r.JsonRpcNotificationStruct=r.JsonRpcRequestStruct=r.JsonRpcParamsStruct=r.JsonRpcErrorStruct=r.JsonRpcIdStruct=r.JsonRpcVersionStruct=r.jsonrpc2=r.getJsonSize=r.getSafeJson=r.isValidJson=r.JsonStruct=r.UnsafeJsonStruct=r.exactOptional=r.object=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs"),i=e("./misc.cjs");function o({path:e,branch:t}){const r=e[e.length-1];return(0,i.hasProperty)(t[t.length-2],r)}function a(e){return new n.Struct({...e,type:`optional ${e.type}`,validator:(t,r)=>!o(r)||e.validator(t,r),refiner:(t,r)=>!o(r)||e.refiner(t,r)})}function c(e){if(null===e||"boolean"==typeof e||"string"==typeof e)return!0;if("number"==typeof e&&Number.isFinite(e))return!0;if("object"==typeof e){let t=!0;if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(!c(e[r])){t=!1;break}return t}const r=Object.entries(e);for(let e=0;e<r.length;e++)if("string"!=typeof r[e][0]||!c(r[e][1])){t=!1;break}return t}return!1}function u(e){return(0,n.create)(e,r.JsonStruct)}r.object=e=>(0,n.object)(e),r.exactOptional=a,r.UnsafeJsonStruct=(0,n.define)("JSON",(e=>c(e))),r.JsonStruct=(0,n.coerce)(r.UnsafeJsonStruct,(0,n.refine)((0,n.any)(),"JSON",(e=>(0,n.is)(e,r.UnsafeJsonStruct))),(e=>JSON.parse(JSON.stringify(e,((e,t)=>"__proto__"===e||"constructor"===e?undefined:t))))),r.isValidJson=function(e){try{return u(e),!0}catch{return!1}},r.getSafeJson=u,r.getJsonSize=function(e){(0,s.assertStruct)(e,r.JsonStruct,"Invalid JSON value");const t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength},r.jsonrpc2="2.0",r.JsonRpcVersionStruct=(0,n.literal)(r.jsonrpc2),r.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),r.JsonRpcErrorStruct=(0,r.object)({code:(0,n.integer)(),message:(0,n.string)(),data:a(r.JsonStruct),stack:a((0,n.string)())}),r.JsonRpcParamsStruct=(0,n.union)([(0,n.record)((0,n.string)(),r.JsonStruct),(0,n.array)(r.JsonStruct)]),r.JsonRpcRequestStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,method:(0,n.string)(),params:a(r.JsonRpcParamsStruct)}),r.JsonRpcNotificationStruct=(0,r.object)({jsonrpc:r.JsonRpcVersionStruct,method:(0,n.string)(),params:a(r.JsonRpcParamsStruct)}),r.isJsonRpcNotification=function(e){return(0,n.is)(e,r.JsonRpcNotificationStruct)},r.assertIsJsonRpcNotification=function(e,t){(0,s.assertStruct)(e,r.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",t)},r.isJsonRpcRequest=function(e){return(0,n.is)(e,r.JsonRpcRequestStruct)},r.assertIsJsonRpcRequest=function(e,t){(0,s.assertStruct)(e,r.JsonRpcRequestStruct,"Invalid JSON-RPC request",t)},r.PendingJsonRpcResponseStruct=(0,n.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(r.JsonRpcErrorStruct)}),r.JsonRpcSuccessStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,result:r.JsonStruct}),r.JsonRpcFailureStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,error:r.JsonRpcErrorStruct}),r.JsonRpcResponseStruct=(0,n.union)([r.JsonRpcSuccessStruct,r.JsonRpcFailureStruct]),r.isPendingJsonRpcResponse=function(e){return(0,n.is)(e,r.PendingJsonRpcResponseStruct)},r.assertIsPendingJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,r.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",t)},r.isJsonRpcResponse=function(e){return(0,n.is)(e,r.JsonRpcResponseStruct)},r.assertIsJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,r.JsonRpcResponseStruct,"Invalid JSON-RPC response",t)},r.isJsonRpcSuccess=function(e){return(0,n.is)(e,r.JsonRpcSuccessStruct)},r.assertIsJsonRpcSuccess=function(e,t){(0,s.assertStruct)(e,r.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",t)},r.isJsonRpcFailure=function(e){return(0,n.is)(e,r.JsonRpcFailureStruct)},r.assertIsJsonRpcFailure=function(e,t){(0,s.assertStruct)(e,r.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",t)},r.isJsonRpcError=function(e){return(0,n.is)(e,r.JsonRpcErrorStruct)},r.assertIsJsonRpcError=function(e,t){(0,s.assertStruct)(e,r.JsonRpcErrorStruct,"Invalid JSON-RPC error",t)},r.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:r,permitNull:n}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>Boolean("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/json.cjs"}],[33,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/keyring.cjs"}],[34,{debug:52},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createModuleLogger=r.createProjectLogger=void 0;const s=(0,n(e("debug")).default)("metamask");r.createProjectLogger=function(e){return s.extend(e)},r.createModuleLogger=function(e,t){return e.extend(t)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/logging.cjs"}],[35,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.calculateNumberSize=r.calculateStringSize=r.isASCII=r.isPlainObject=r.ESCAPE_CHARACTERS_REGEXP=r.JsonSize=r.getKnownPropertyNames=r.hasProperty=r.isObject=r.isNullOrUndefined=r.isNonEmptyArray=void 0,r.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},r.isNullOrUndefined=function(e){return null===e||e===undefined},r.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};function n(e){return e.charCodeAt(0)<=127}r.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),r.getKnownPropertyNames=function(e){return Object.getOwnPropertyNames(e)},function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(r.JsonSize||(r.JsonSize={})),r.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,r.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},r.isASCII=n,r.calculateStringSize=function(e){return e.split("").reduce(((e,t)=>n(t)?e+1:e+2),0)+(e.match(r.ESCAPE_CHARACTERS_REGEXP)??[]).length},r.calculateNumberSize=function(e){return e.toString().length}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/misc.cjs"}],[36,{"./assert.cjs":21,"./hex.cjs":30},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToBigInt=r.hexToNumber=r.bigIntToHex=r.numberToHex=void 0;const n=e("./assert.cjs"),s=e("./hex.cjs");r.numberToHex=e=>((0,n.assert)("number"==typeof e,"Value must be a number."),(0,n.assert)(e>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16)));r.bigIntToHex=e=>((0,n.assert)("bigint"==typeof e,"Value must be a bigint."),(0,n.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16)));r.hexToNumber=e=>{(0,s.assertIsHexString)(e);const t=parseInt(e,16);return(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};r.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/number.cjs"}],[37,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/opaque.cjs"}],[38,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferredPromise=void 0,r.createDeferredPromise=function({suppressUnhandledRejection:e=!1}={}){let t,r;const n=new Promise(((e,n)=>{t=e,r=n}));return e&&n.catch((e=>{})),{promise:n,resolve:t,reject:r}}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/promise.cjs"}],[39,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.definePattern=void 0;const n=e("@metamask/superstruct");r.definePattern=function(e,t){return(0,n.define)(e,(e=>"string"==typeof e&&t.test(e)))}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/superstruct.cjs"}],[40,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeSince=r.inMilliseconds=r.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(r.Duration||(r.Duration={}));const n=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};r.inMilliseconds=function(e,t){return n(e,"count"),e*t},r.timeSince=function(e){return n(e,"timestamp"),Date.now()-e}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/time.cjs"}],[41,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/transaction-types.cjs"}],[42,{"./assert.cjs":21,"@metamask/superstruct":14,semver:107},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.satisfiesVersionRange=r.gtRange=r.gtVersion=r.assertIsSemVerRange=r.assertIsSemVerVersion=r.isValidSemVerRange=r.isValidSemVerVersion=r.VersionRangeStruct=r.VersionStruct=void 0;const n=e("@metamask/superstruct"),s=e("semver"),i=e("./assert.cjs");r.VersionStruct=(0,n.refine)((0,n.string)(),"Version",(e=>null!==(0,s.valid)(e)||`Expected SemVer version, got "${e}"`)),r.VersionRangeStruct=(0,n.refine)((0,n.string)(),"Version range",(e=>null!==(0,s.validRange)(e)||`Expected SemVer range, got "${e}"`)),r.isValidSemVerVersion=function(e){return(0,n.is)(e,r.VersionStruct)},r.isValidSemVerRange=function(e){return(0,n.is)(e,r.VersionRangeStruct)},r.assertIsSemVerVersion=function(e){(0,i.assertStruct)(e,r.VersionStruct)},r.assertIsSemVerRange=function(e){(0,i.assertStruct)(e,r.VersionRangeStruct)},r.gtVersion=function(e,t){return(0,s.gt)(e,t)},r.gtRange=function(e,t){return(0,s.gtr)(e,t)},r.satisfiesVersionRange=function(e,t){return(0,s.satisfies)(e,t,{includePrerelease:!0})}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/versions.cjs"}],[43,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(r,"__esModule",{value:!0}),r.anumber=n,r.abytes=s,r.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},r.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},r.aoutput=function(e,t){s(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/_assert.js"}],[44,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=void 0,r.fromBig=i,r.split=o,r.add=v;const n=BigInt(2**32-1),s=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>s&n)}:{h:0|Number(e>>s&n),l:0|Number(e&n)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:o,l:a}=i(e[s],t);[r[s],n[s]]=[o,a]}return[r,n]}const a=(e,t)=>BigInt(e>>>0)<<s|BigInt(t>>>0);r.toBig=a;const c=(e,t,r)=>e>>>r;r.shrSH=c;const u=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=u;const l=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=l;const f=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=f;const d=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=d;const p=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=p;const h=(e,t)=>t;r.rotr32H=h;const m=(e,t)=>e;r.rotr32L=m;const g=(e,t,r)=>e<<r|t>>>32-r;r.rotlSH=g;const b=(e,t,r)=>t<<r|e>>>32-r;r.rotlSL=b;const y=(e,t,r)=>t<<r-32|e>>>64-r;r.rotlBH=y;const w=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:0|s}}r.rotlBL=w;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=E;const S=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;r.add3H=S;const _=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=_;const k=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0;r.add4H=k;const j=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);r.add5L=j;const T=(e,t,r,n,s,i)=>t+r+n+s+i+(e/2**32|0)|0;r.add5H=T;const O={fromBig:i,split:o,toBig:a,shrSH:c,shrSL:u,rotrSH:l,rotrSL:f,rotrBH:d,rotrBL:p,rotr32H:h,rotr32L:m,rotlSH:g,rotlSL:b,rotlBH:y,rotlBL:w,add:v,add3L:E,add3H:S,add4L:_,add4H:k,add5H:T,add5L:j};r.default=O}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/_u64.js"}],[45,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:undefined}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/crypto.js"}],[46,{"./_assert.js":43,"./_u64.js":44,"./utils.js":47},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=void 0,r.keccakP=w;const n=e("./_assert.js"),s=e("./_u64.js"),i=e("./utils.js"),o=[],a=[],c=[],u=BigInt(0),l=BigInt(1),f=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let e=0,t=l,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let s=u;for(let e=0;e<7;e++)t=(t<<l^(t>>d)*h)%p,t&f&&(s^=l<<(l<<BigInt(e))-l);c.push(s)}const[m,g]=(0,s.split)(c,!0),b=(e,t,r)=>r>32?(0,s.rotlBH)(e,t,r):(0,s.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,s.rotlBL)(e,t,r):(0,s.rotlSL)(e,t,r);function w(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=b(i,o,1)^r[n],c=y(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){const n=a[r],i=b(t,s,n),c=y(t,s,n),u=o[r];t=e[u],s=e[u+1],e[u]=i,e[u+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}class v extends i.Hash{constructor(e,t,r,s=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.anumber)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),w(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this);const{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){const i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new v(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=v;const E=(e,t,r)=>(0,i.wrapConstructor)((()=>new v(t,e,r)));r.sha3_224=E(6,144,28),r.sha3_256=E(6,136,32),r.sha3_384=E(6,104,48),r.sha3_512=E(6,72,64),r.keccak_224=E(1,144,28),r.keccak_256=E(1,136,32),r.keccak_384=E(1,104,48),r.keccak_512=E(1,72,64);const S=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)(((n={})=>new v(t,e,n.dkLen===undefined?r:n.dkLen,!0)));r.shake128=S(31,168,16),r.shake256=S(31,136,32)}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/sha3.js"}],[47,{"./_assert.js":43,"@noble/hashes/crypto":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
1
+ LavaPack.loadBundle([[1,{"readable-stream":78},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BasePostMessageStream=void 0;const n=e("readable-stream"),s=()=>undefined,i="SYN",o="ACK";class a extends n.Duplex{constructor(e){super(Object.assign({objectMode:!0},e)),this._init=!1,this._haveSyn=!1,this._log=()=>null}_handshake(){this._write(i,null,s),this.cork()}_onData(e){if(this._init)try{this.push(e),this._log(e,!1)}catch(e){this.emit("error",e)}else e===i?(this._haveSyn=!0,this._write(o,null,s)):e===o&&(this._init=!0,this._haveSyn||this._write(o,null,s),this.uncork())}_read(){return undefined}_write(e,t,r){e!==o&&e!==i&&this._log(e,!0),this._postMessage(e),r()}_setLogger(e){this._log=e}}r.BasePostMessageStream=a}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/BasePostMessageStream.js"}],[2,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerParentPostMessageStream=void 0;const s=e("../BasePostMessageStream"),i=e("../utils");class o extends s.BasePostMessageStream{constructor(e){var{worker:t}=e;super(n(e,["worker"])),this._target=i.DEDICATED_WORKER_NAME,this._worker=t,this._worker.onmessage=this._onMessage.bind(this),this._handshake()}_postMessage(e){this._worker.postMessage({target:this._target,data:e})}_onMessage(e){const t=e.data;(0,i.isValidStreamMessage)(t)&&this._onData(t.data)}_destroy(){this._worker.onmessage=null,this._worker=null}}r.WebWorkerParentPostMessageStream=o}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/WebWorker/WebWorkerParentPostMessageStream.js"}],[3,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerPostMessageStream=void 0;const n=e("../BasePostMessageStream"),s=e("../utils");class i extends n.BasePostMessageStream{constructor(e={}){if("undefined"==typeof self||"undefined"==typeof WorkerGlobalScope)throw new Error("WorkerGlobalScope not found. This class should only be instantiated in a WebWorker.");super(e),this._name=s.DEDICATED_WORKER_NAME,self.addEventListener("message",this._onMessage.bind(this)),this._handshake()}_postMessage(e){self.postMessage({data:e})}_onMessage(e){const t=e.data;(0,s.isValidStreamMessage)(t)&&t.target===this._name&&this._onData(t.data)}_destroy(){return undefined}}r.WebWorkerPostMessageStream=i}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/WebWorker/WebWorkerPostMessageStream.js"}],[4,{"./BasePostMessageStream":1,"./WebWorker/WebWorkerParentPostMessageStream":2,"./WebWorker/WebWorkerPostMessageStream":3,"./runtime/BrowserRuntimePostMessageStream":5,"./window/WindowPostMessageStream":7},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./window/WindowPostMessageStream"),r),s(e("./WebWorker/WebWorkerPostMessageStream"),r),s(e("./WebWorker/WebWorkerParentPostMessageStream"),r),s(e("./runtime/BrowserRuntimePostMessageStream"),r),s(e("./BasePostMessageStream"),r)}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/browser.js"}],[5,{"../BasePostMessageStream":1,"../utils":6},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r},o=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserRuntimePostMessageStream=void 0;const c=e("../BasePostMessageStream"),u=e("../utils");class l extends c.BasePostMessageStream{constructor(e){var{name:t,target:r}=e;super(a(e,["name","target"])),n.set(this,void 0),s.set(this,void 0),i(this,n,t,"f"),i(this,s,r,"f"),this._onMessage=this._onMessage.bind(this),this._getRuntime().onMessage.addListener(this._onMessage),this._handshake()}_postMessage(e){this._getRuntime().sendMessage({target:o(this,s,"f"),data:e})}_onMessage(e){(0,u.isValidStreamMessage)(e)&&e.target===o(this,n,"f")&&this._onData(e.data)}_getRuntime(){var e,t;if("chrome"in globalThis&&"function"==typeof(null===(e=null===chrome||void 0===chrome?void 0:chrome.runtime)||void 0===e?void 0:e.sendMessage))return chrome.runtime;if("browser"in globalThis&&"function"==typeof(null===(t=null===browser||void 0===browser?void 0:browser.runtime)||void 0===t?void 0:t.sendMessage))return browser.runtime;throw new Error("browser.runtime.sendMessage is not a function. This class should only be instantiated in a web extension.")}_destroy(){this._getRuntime().onMessage.removeListener(this._onMessage)}}r.BrowserRuntimePostMessageStream=l,n=new WeakMap,s=new WeakMap}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/runtime/BrowserRuntimePostMessageStream.js"}],[6,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isValidStreamMessage=r.DEDICATED_WORKER_NAME=void 0;const n=e("@metamask/utils");r.DEDICATED_WORKER_NAME="dedicatedWorker",r.isValidStreamMessage=function(e){return(0,n.isObject)(e)&&Boolean(e.data)&&("number"==typeof e.data||"object"==typeof e.data||"string"==typeof e.data)}}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/utils.js"}],[7,{"../BasePostMessageStream":1,"../utils":6,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};Object.defineProperty(r,"__esModule",{value:!0}),r.WindowPostMessageStream=void 0;const o=e("@metamask/utils"),a=e("../BasePostMessageStream"),c=e("../utils"),u=null===(n=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"source"))||void 0===n?void 0:n.get;(0,o.assert)(u,"MessageEvent.prototype.source getter is not defined.");const l=null===(s=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"origin"))||void 0===s?void 0:s.get;(0,o.assert)(l,"MessageEvent.prototype.origin getter is not defined.");class f extends a.BasePostMessageStream{constructor(e){var{name:t,target:r,targetOrigin:n=location.origin,targetWindow:s=window}=e;if(super(i(e,["name","target","targetOrigin","targetWindow"])),"undefined"==typeof window||"function"!=typeof window.postMessage)throw new Error("window.postMessage is not a function. This class should only be instantiated in a Window.");this._name=t,this._target=r,this._targetOrigin=n,this._targetWindow=s,this._onMessage=this._onMessage.bind(this),window.addEventListener("message",this._onMessage,!1),this._handshake()}_postMessage(e){this._targetWindow.postMessage({target:this._target,data:e},this._targetOrigin)}_onMessage(e){const t=e.data;"*"!==this._targetOrigin&&l.call(e)!==this._targetOrigin||u.call(e)!==this._targetWindow||!(0,c.isValidStreamMessage)(t)||t.target!==this._name||this._onData(t.data)}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}r.WindowPostMessageStream=f}}},{package:"@metamask/post-message-stream",file:"../../node_modules/@metamask/post-message-stream/dist/window/WindowPostMessageStream.js"}],[8,{"./utils.cjs":12,"@metamask/utils":31,"fast-safe-stringify":55},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.JsonRpcError=void 0;const s=e("@metamask/utils"),i=n(e("fast-safe-stringify")),o=e("./utils.cjs");class a extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a non-empty string.');(0,o.dataHasCause)(r)?(super(t,{cause:r.cause}),(0,s.hasProperty)(this,"cause")||Object.assign(this,{cause:r.cause})):super(t),r!==undefined&&(this.data=r),this.code=e}serialize(){const e={code:this.code,message:this.message};return this.data!==undefined&&(e.data=this.data,(0,s.isPlainObject)(this.data)&&(e.data.cause=(0,o.serializeCause)(this.data.cause))),this.stack&&(e.stack=this.stack),e}toString(){return(0,i.default)(this.serialize(),c,2)}}r.JsonRpcError=a;function c(e,t){return"[Circular]"===t?undefined:t}r.EthereumProviderError=class extends a{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/classes.cjs"}],[9,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},r.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/error-constants.cjs"}],[10,{"./classes.cjs":8,"./error-constants.cjs":9,"./utils.cjs":12},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.providerErrors=r.rpcErrors=void 0;const n=e("./classes.cjs"),s=e("./error-constants.cjs"),i=e("./utils.cjs");function o(e,t){const[r,s]=c(t);return new n.JsonRpcError(e,r??(0,i.getMessageFromCode)(e),s)}function a(e,t){const[r,s]=c(t);return new n.EthereumProviderError(e,r??(0,i.getMessageFromCode)(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t??undefined,r]}}return[]}r.rpcErrors={parse:e=>o(s.errorCodes.rpc.parse,e),invalidRequest:e=>o(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>o(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>o(s.errorCodes.rpc.methodNotFound,e),internal:e=>o(s.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(t,e)},invalidInput:e=>o(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(s.errorCodes.rpc.limitExceeded,e)},r.providerErrors={userRejectedRequest:e=>a(s.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(s.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(s.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(s.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(s.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:s}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,r,s)}}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/errors.cjs"}],[11,{"./classes.cjs":8,"./error-constants.cjs":9,"./errors.cjs":10,"./utils.cjs":12},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.errorCodes=r.providerErrors=r.rpcErrors=r.getMessageFromCode=r.serializeError=r.serializeCause=r.dataHasCause=r.EthereumProviderError=r.JsonRpcError=void 0;var n=e("./classes.cjs");Object.defineProperty(r,"JsonRpcError",{enumerable:!0,get:function(){return n.JsonRpcError}}),Object.defineProperty(r,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});var s=e("./utils.cjs");Object.defineProperty(r,"dataHasCause",{enumerable:!0,get:function(){return s.dataHasCause}}),Object.defineProperty(r,"serializeCause",{enumerable:!0,get:function(){return s.serializeCause}}),Object.defineProperty(r,"serializeError",{enumerable:!0,get:function(){return s.serializeError}}),Object.defineProperty(r,"getMessageFromCode",{enumerable:!0,get:function(){return s.getMessageFromCode}});var i=e("./errors.cjs");Object.defineProperty(r,"rpcErrors",{enumerable:!0,get:function(){return i.rpcErrors}}),Object.defineProperty(r,"providerErrors",{enumerable:!0,get:function(){return i.providerErrors}});var o=e("./error-constants.cjs");Object.defineProperty(r,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/index.cjs"}],[12,{"./error-constants.cjs":9,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dataHasCause=r.serializeCause=r.serializeError=r.isValidCode=r.getMessageFromCode=r.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=e("@metamask/utils"),s=e("./error-constants.cjs"),i=s.errorCodes.rpc.internal,o={code:i,message:a(i)};function a(e,t="Unspecified error message. This is a bug, please report it."){if(c(e)){const t=e.toString();if((0,n.hasProperty)(s.errorValues,t))return s.errorValues[t].message;if(function(e){return e>=-32099&&e<=-32e3}(e))return r.JSON_RPC_SERVER_ERROR_MESSAGE}return t}function c(e){return Number.isInteger(e)}function u(e){return Array.isArray(e)?e.map((e=>(0,n.isValidJson)(e)?e:(0,n.isObject)(e)?l(e):null)):(0,n.isObject)(e)?l(e):(0,n.isValidJson)(e)?e:null}function l(e){return Object.getOwnPropertyNames(e).reduce(((t,r)=>{const s=e[r];return(0,n.isValidJson)(s)&&(t[r]=s),t}),{})}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=a,r.isValidCode=c,r.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!0,shouldPreserveMessage:s=!0}={}){if(!(0,n.isJsonRpcError)(t))throw new Error("Must provide fallback error with integer number code and string message.");const i=function(e,t,r){if(e&&"object"==typeof e&&"serialize"in e&&"function"==typeof e.serialize)return e.serialize();if((0,n.isJsonRpcError)(e))return e;const s=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message&&e.message.length>0)return e.message;return undefined}(e),i=u(e),o={...t,...r&&s&&{message:s},data:{cause:i}};return o}(e,t,s);return r||delete i.stack,i},r.serializeCause=u,r.dataHasCause=function(e){return(0,n.isObject)(e)&&(0,n.hasProperty)(e,"cause")&&(0,n.isObject)(e.cause)}}}},{package:"@metamask/rpc-errors",file:"../../node_modules/@metamask/rpc-errors/dist/utils.cjs"}],[13,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StructError=void 0;class n extends TypeError{constructor(e,t){let r;const{message:n,explanation:s,...i}=e,{path:o}=e,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(s??a),null!==s&&s!==undefined&&(this.cause=a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}r.StructError=n}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/error.cjs"}],[14,{"./error.cjs":13,"./struct.cjs":15,"./structs/coercions.cjs":16,"./structs/refinements.cjs":17,"./structs/types.cjs":18,"./structs/utilities.cjs":19},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./error.cjs"),r),s(e("./struct.cjs"),r),s(e("./structs/coercions.cjs"),r),s(e("./structs/refinements.cjs"),r),s(e("./structs/types.cjs"),r),s(e("./structs/utilities.cjs"),r)}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/index.cjs"}],[15,{"./error.cjs":13,"./utils.cjs":20},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validate=r.is=r.mask=r.create=r.assert=r.ExactOptionalStruct=r.Struct=void 0;const n=e("./error.cjs"),s=e("./utils.cjs");class i{constructor(e){const{type:t,schema:r,validator:n,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=o,this.validator=n?(e,t)=>{const r=n(e,t);return(0,s.toFailures)(r,t,this,e)}:()=>[],this.refiner=i?(e,t)=>{const r=i(e,t);return(0,s.toFailures)(r,t,this,e)}:()=>[]}assert(e,t){return a(e,this,t)}create(e,t){return c(e,this,t)}is(e){return l(e,this)}mask(e,t){return u(e,this,t)}validate(e,t={}){return f(e,this,t)}}r.Struct=i;const o="EXACT_OPTIONAL";function a(e,t,r){const n=f(e,t,{message:r});if(n[0])throw n[0]}function c(e,t,r){const n=f(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function u(e,t,r){const n=f(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function l(e,t){return!f(e,t)[0]}function f(e,t,r={}){const i=(0,s.run)(e,t,r),o=(0,s.shiftIterator)(i);if(o[0]){return[new n.StructError(o[0],(function*(){for(const e of i)e[0]&&(yield e[0])})),undefined]}const a=o[1];return[undefined,a]}r.ExactOptionalStruct=class extends i{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=o}static isExactOptional(e){return(0,s.isObject)(e)&&"brand"in e&&e.brand===o}},r.assert=a,r.create=c,r.mask=u,r.is=l,r.validate=f}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/struct.cjs"}],[16,{"../struct.cjs":15,"../utils.cjs":20,"./types.cjs":18},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.trimmed=r.defaulted=r.coerce=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs"),i=e("./types.cjs");function o(e,t,r){return new n.Struct({...e,coercer:(s,i)=>(0,n.is)(s,t)?e.coercer(r(s,i),i):e.coercer(s,i)})}r.coerce=o,r.defaulted=function(e,t,r={}){return o(e,(0,i.unknown)(),(e=>{const n="function"==typeof t?t():t;if(e===undefined)return n;if(!r.strict&&(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(n)){const t={...e};let r=!1;for(const e in n)t[e]===undefined&&(t[e]=n[e],r=!0);if(r)return t}return e}))},r.trimmed=function(e){return o(e,(0,i.string)(),(e=>e.trim()))}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/coercions.cjs"}],[17,{"../struct.cjs":15,"../utils.cjs":20},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.refine=r.size=r.pattern=r.nonempty=r.min=r.max=r.empty=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs");function i(e){return e instanceof Map||e instanceof Set?e.size:e.length}function o(e,t,r){return new n.Struct({...e,*refiner(n,i){yield*e.refiner(n,i);const o=r(n,i),a=(0,s.toFailures)(o,i,e,n);for(const e of a)yield{...e,refinement:t}}})}r.empty=function(e){return o(e,"empty",(t=>{const r=i(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},r.max=function(e,t,r={}){const{exclusive:n}=r;return o(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},r.min=function(e,t,r={}){const{exclusive:n}=r;return o(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},r.nonempty=function(e){return o(e,"nonempty",(t=>i(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},r.pattern=function(e,t){return o(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},r.size=function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return o(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=r||`${n} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:i}=e;return t<=i&&i<=r||`${n} with a size ${s} but received one with a size of \`${i}\``}const{length:i}=e;return t<=i&&i<=r||`${n} with a length ${s} but received one with a length of \`${i}\``}))},r.refine=o}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/refinements.cjs"}],[18,{"../struct.cjs":15,"../utils.cjs":20,"./utilities.cjs":19},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.unknown=r.union=r.type=r.tuple=r.string=r.set=r.regexp=r.record=r.exactOptional=r.optional=r.object=r.number=r.nullable=r.never=r.map=r.literal=r.intersection=r.integer=r.instance=r.func=r.enums=r.date=r.boolean=r.bigint=r.array=r.any=void 0;const n=e("../struct.cjs"),s=e("../utils.cjs"),i=e("./utilities.cjs");function o(){return(0,i.define)("never",(()=>!1))}r.any=function(){return(0,i.define)("any",(()=>!0))},r.array=function(e){return new n.Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${(0,s.print)(e)}`})},r.bigint=function(){return(0,i.define)("bigint",(e=>"bigint"==typeof e))},r.boolean=function(){return(0,i.define)("boolean",(e=>"boolean"==typeof e))},r.date=function(){return(0,i.define)("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${(0,s.print)(e)}`))},r.enums=function(e){const t={},r=e.map((e=>(0,s.print)(e))).join();for(const r of e)t[r]=r;return new n.Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${(0,s.print)(t)}`})},r.func=function(){return(0,i.define)("func",(e=>"function"==typeof e||`Expected a function, but received: ${(0,s.print)(e)}`))},r.instance=function(e){return(0,i.define)("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${(0,s.print)(t)}`))},r.integer=function(){return(0,i.define)("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${(0,s.print)(e)}`))},r.intersection=function(e){return new n.Struct({type:"intersection",schema:null,*entries(t,r){for(const{entries:n}of e)yield*n(t,r)},*validator(t,r){for(const{validator:n}of e)yield*n(t,r)},*refiner(t,r){for(const{refiner:n}of e)yield*n(t,r)}})},r.literal=function(e){const t=(0,s.print)(e),r=typeof e;return new n.Struct({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${(0,s.print)(r)}`})},r.map=function(e,t){return new n.Struct({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,s]of r.entries())yield[n,n,e],yield[n,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${(0,s.print)(e)}`})},r.never=o,r.nullable=function(e){return new n.Struct({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},r.number=function(){return(0,i.define)("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${(0,s.print)(e)}`))},r.object=function(e){const t=e?Object.keys(e):[],r=o();return new n.Struct({type:"object",schema:e??null,*entries(i){if(e&&(0,s.isObject)(i)){const s=new Set(Object.keys(i));for(const r of t){s.delete(r);const t=e[r];n.ExactOptionalStruct.isExactOptional(t)&&!Object.prototype.hasOwnProperty.call(i,r)||(yield[r,i[r],e[r]])}for(const e of s)yield[e,i[e],r]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},r.optional=function(e){return new n.Struct({...e,validator:(t,r)=>t===undefined||e.validator(t,r),refiner:(t,r)=>t===undefined||e.refiner(t,r)})},r.exactOptional=function(e){return new n.ExactOptionalStruct(e)},r.record=function(e,t){return new n.Struct({type:"record",schema:null,*entries(r){if((0,s.isObject)(r))for(const n in r){const s=r[n];yield[n,n,e],yield[n,s,t]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`})},r.regexp=function(){return(0,i.define)("regexp",(e=>e instanceof RegExp))},r.set=function(e){return new n.Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${(0,s.print)(e)}`})},r.string=function(){return(0,i.define)("string",(e=>"string"==typeof e||`Expected a string, but received: ${(0,s.print)(e)}`))},r.tuple=function(e){const t=o();return new n.Struct({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let s=0;s<n;s++)yield[s,r[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${(0,s.print)(e)}`})},r.type=function(e){const t=Object.keys(e);return new n.Struct({type:"type",schema:e,*entries(r){if((0,s.isObject)(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},r.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new n.Struct({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const i=[];for(const t of e){const[...e]=(0,s.run)(r,t,n),[o]=e;if(!o?.[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${(0,s.print)(r)}`,...i]}})},r.unknown=function(){return(0,i.define)("unknown",(()=>!0))}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/types.cjs"}],[19,{"../struct.cjs":15,"./types.cjs":18},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pick=r.partial=r.omit=r.lazy=r.dynamic=r.deprecated=r.define=r.assign=void 0;const n=e("../struct.cjs"),s=e("./types.cjs");r.assign=function(...e){const t="type"===e[0]?.type,r=e.map((({schema:e})=>e)),n=Object.assign({},...r);return t?(0,s.type)(n):(0,s.object)(n)},r.define=function(e,t){return new n.Struct({type:e,schema:null,validator:t})},r.deprecated=function(e,t){return new n.Struct({...e,refiner:(t,r)=>t===undefined||e.refiner(t,r),validator:(r,n)=>r===undefined||(t(r,n),e.validator(r,n))})},r.dynamic=function(e){return new n.Struct({type:"dynamic",schema:null,*entries(t,r){const n=e(t,r);yield*n.entries(t,r)},validator:(t,r)=>e(t,r).validator(t,r),coercer:(t,r)=>e(t,r).coercer(t,r),refiner:(t,r)=>e(t,r).refiner(t,r)})},r.lazy=function(e){let t;return new n.Struct({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator:(r,n)=>(t??(t=e()),t.validator(r,n)),coercer:(r,n)=>(t??(t=e()),t.coercer(r,n)),refiner:(r,n)=>(t??(t=e()),t.refiner(r,n))})},r.omit=function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?(0,s.type)(n):(0,s.object)(n)},r.partial=function(e){const t=e instanceof n.Struct,r=t?{...e.schema}:{...e};for(const e in r)r[e]=(0,s.optional)(r[e]);return t&&"type"===e.type?(0,s.type)(r):(0,s.object)(r)},r.pick=function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return"type"===e.type?(0,s.type)(n):(0,s.object)(n)}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/structs/utilities.cjs"}],[20,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return"object"==typeof e&&null!==e}function s(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function i(e,t,r,n){if(!0===e)return undefined;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:o}=t,{type:a}=r,{refinement:c,message:u=`Expected a value of type \`${a}\`${c?` with refinement \`${c}\``:""}, but received: \`${s(n)}\``}=e;return{value:n,type:a,refinement:c,key:i[i.length-1],path:i,branch:o,...e,message:u}}Object.defineProperty(r,"__esModule",{value:!0}),r.run=r.toFailures=r.toFailure=r.shiftIterator=r.print=r.isPlainObject=r.isObject=void 0,r.isObject=n,r.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},r.print=s,r.shiftIterator=function(e){const{done:t,value:r}=e.next();return t?undefined:r},r.toFailure=i,r.toFailures=function*(e,t,r,s){(function(e){return n(e)&&"function"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const n of e){const e=i(n,t,r,s);e&&(yield e)}},r.run=function*e(t,r,s={}){const{path:i=[],branch:o=[t],coerce:a=!1,mask:c=!1}=s,u={path:i,branch:o};if(a&&(t=r.coercer(t,u),c&&"type"!==r.type&&n(r.schema)&&n(t)&&!Array.isArray(t)))for(const e in t)r.schema[e]===undefined&&delete t[e];let l="valid";for(const e of r.validator(t,u))e.explanation=s.message,l="not_valid",yield[e,undefined];for(let[f,d,p]of r.entries(t,u)){const r=e(d,p,{path:f===undefined?i:[...i,f],branch:f===undefined?o:[...o,d],coerce:a,mask:c,message:s.message});for(const e of r)e[0]?(l=null===e[0].refinement||e[0].refinement===undefined?"not_valid":"not_refined",yield[e[0],undefined]):a&&(d=e[1],f===undefined?t=d:t instanceof Map?t.set(f,d):t instanceof Set?t.add(d):n(t)&&(d!==undefined||f in t)&&(t[f]=d))}if("not_valid"!==l)for(const e of r.refiner(t,u))e.explanation=s.message,l="not_refined",yield[e,undefined];"valid"===l&&(yield[undefined,t])}}}},{package:"@metamask/superstruct",file:"../../node_modules/@metamask/superstruct/dist/utils.cjs"}],[21,{"./errors.cjs":29,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertExhaustive=r.assertStruct=r.assert=r.AssertionError=void 0;const n=e("@metamask/superstruct"),s=e("./errors.cjs");function i(e,t){return r=e,Boolean("string"==typeof r?.prototype?.constructor?.name)?new e({message:t}):e({message:t});var r}class o extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}r.AssertionError=o,r.assert=function(e,t="Assertion failed.",r=o){if(!e){if(t instanceof Error)throw t;throw i(r,t)}},r.assertStruct=function(e,t,r="Assertion failed",a=o){try{(0,n.assert)(e,t)}catch(e){throw i(a,`${r}: ${function(e){return(0,s.getErrorMessage)(e).replace(/\.$/u,"")}(e)}.`)}},r.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/assert.cjs"}],[22,{"./assert.cjs":21,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.base64=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs");r.base64=(e,t={})=>{const r=t.paddingRequired??!1,i=t.characterSet??"base64";let o,a;return"base64"===i?o=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===i),o=String.raw`[-_A-Za-z0-9]`),a=r?new RegExp(`^(?:${o}{4})*(?:${o}{3}=|${o}{2}==)?$`,"u"):new RegExp(`^(?:${o}{4})*(?:${o}{2,3}|${o}{3}=|${o}{2}==)?$`,"u"),(0,n.pattern)(e,a)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/base64.cjs"}],[23,{"./assert.cjs":21,"./hex.cjs":30,"@scure/base":48,buffer:51},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.createDataView=r.concatBytes=r.valueToBytes=r.base64ToBytes=r.stringToBytes=r.numberToBytes=r.signedBigIntToBytes=r.bigIntToBytes=r.hexToBytes=r.bytesToBase64=r.bytesToString=r.bytesToNumber=r.bytesToSignedBigInt=r.bytesToBigInt=r.bytesToHex=r.assertIsBytes=r.isBytes=void 0;const n=e("@scure/base"),s=e("./assert.cjs"),i=e("./hex.cjs");const o=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function a(e){return e instanceof Uint8Array}function c(e){(0,s.assert)(a(e),"Value must be a Uint8Array.")}function u(e){if(c(e),0===e.length)return"0x";const t=o(),r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=t[e[n]];return(0,i.add0x)(r.join(""))}function l(e){c(e);const t=u(e);return BigInt(t)}function f(e){if("0x"===e?.toLowerCase?.())return new Uint8Array;(0,i.assertIsHexString)(e);const t=(0,i.remove0x)(e).toLowerCase(),r=t.length%2==0?t:`0${t}`,n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++){const t=r.charCodeAt(2*e),s=r.charCodeAt(2*e+1),i=t-(t<58?48:87),o=s-(s<58?48:87);n[e]=16*i+o}return n}function d(e){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");return f(e.toString(16))}function p(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return f(e.toString(16))}function h(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function m(e){if("bigint"==typeof e)return d(e);if("number"==typeof e)return p(e);if("string"==typeof e)return e.startsWith("0x")?f(e):h(e);if(a(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}r.isBytes=a,r.assertIsBytes=c,r.bytesToHex=u,r.bytesToBigInt=l,r.bytesToSignedBigInt=function(e){c(e);let t=BigInt(0);for(const r of e)t=(t<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*e.length,t)},r.bytesToNumber=function(e){c(e);const t=l(e);return(0,s.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},r.bytesToString=function(e){return c(e),(new TextDecoder).decode(e)},r.bytesToBase64=function(e){return c(e),n.base64.encode(e)},r.hexToBytes=f,r.bigIntToBytes=d,r.signedBigIntToBytes=function(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(function(e,t){(0,s.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let e=0;e<n.length;e++)n[e]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()},r.numberToBytes=p,r.stringToBytes=h,r.base64ToBytes=function(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),n.base64.decode(e)},r.valueToBytes=m,r.concatBytes=function(e){const t=new Array(e.length);let r=0;for(let n=0;n<e.length;n++){const s=m(e[n]);t[n]=s,r+=s.length}const n=new Uint8Array(r);for(let e=0,r=0;e<t.length;e++)n.set(t[e],r),r+=t[e].length;return n},r.createDataView=function(e){if(void 0!==t&&e instanceof t){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/bytes.cjs"}],[24,{"./superstruct.cjs":39,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toCaipAssetId=r.toCaipAssetType=r.toCaipAccountId=r.toCaipChainId=r.parseCaipAssetId=r.parseCaipAssetType=r.parseCaipAccountId=r.parseCaipChainId=r.isCaipAssetId=r.isCaipAssetType=r.isCaipTokenId=r.isCaipAssetReference=r.isCaipAssetNamespace=r.isCaipAccountAddress=r.isCaipAccountId=r.isCaipReference=r.isCaipNamespace=r.isCaipChainId=r.KnownCaipNamespace=r.CaipAssetTypeOrIdStruct=r.CaipAssetIdStruct=r.CaipAssetTypeStruct=r.CaipTokenIdStruct=r.CaipAssetReferenceStruct=r.CaipAssetNamespaceStruct=r.CaipAccountAddressStruct=r.CaipAccountIdStruct=r.CaipReferenceStruct=r.CaipNamespaceStruct=r.CaipChainIdStruct=r.CAIP_ASSET_ID_REGEX=r.CAIP_ASSET_TYPE_REGEX=r.CAIP_TOKEN_ID_REGEX=r.CAIP_ASSET_REFERENCE_REGEX=r.CAIP_ASSET_NAMESPACE_REGEX=r.CAIP_ACCOUNT_ADDRESS_REGEX=r.CAIP_ACCOUNT_ID_REGEX=r.CAIP_REFERENCE_REGEX=r.CAIP_NAMESPACE_REGEX=r.CAIP_CHAIN_ID_REGEX=void 0;const n=e("@metamask/superstruct"),s=e("./superstruct.cjs");r.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,r.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,r.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,r.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,r.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,r.CAIP_ASSET_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,r.CAIP_ASSET_REFERENCE_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,r.CAIP_TOKEN_ID_REGEX=/^[-.%a-zA-Z0-9]{1,78}$/u,r.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,r.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u;function i(e){return(0,n.is)(e,r.CaipNamespaceStruct)}function o(e){return(0,n.is)(e,r.CaipReferenceStruct)}function a(e){return(0,n.is)(e,r.CaipAccountAddressStruct)}function c(e){return(0,n.is)(e,r.CaipAssetNamespaceStruct)}function u(e){return(0,n.is)(e,r.CaipAssetReferenceStruct)}function l(e){return(0,n.is)(e,r.CaipTokenIdStruct)}r.CaipChainIdStruct=(0,s.definePattern)("CaipChainId",r.CAIP_CHAIN_ID_REGEX),r.CaipNamespaceStruct=(0,s.definePattern)("CaipNamespace",r.CAIP_NAMESPACE_REGEX),r.CaipReferenceStruct=(0,s.definePattern)("CaipReference",r.CAIP_REFERENCE_REGEX),r.CaipAccountIdStruct=(0,s.definePattern)("CaipAccountId",r.CAIP_ACCOUNT_ID_REGEX),r.CaipAccountAddressStruct=(0,s.definePattern)("CaipAccountAddress",r.CAIP_ACCOUNT_ADDRESS_REGEX),r.CaipAssetNamespaceStruct=(0,s.definePattern)("CaipAssetNamespace",r.CAIP_ASSET_NAMESPACE_REGEX),r.CaipAssetReferenceStruct=(0,s.definePattern)("CaipAssetReference",r.CAIP_ASSET_REFERENCE_REGEX),r.CaipTokenIdStruct=(0,s.definePattern)("CaipTokenId",r.CAIP_TOKEN_ID_REGEX),r.CaipAssetTypeStruct=(0,s.definePattern)("CaipAssetType",r.CAIP_ASSET_TYPE_REGEX),r.CaipAssetIdStruct=(0,s.definePattern)("CaipAssetId",r.CAIP_ASSET_ID_REGEX),r.CaipAssetTypeOrIdStruct=(0,s.definePattern)("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u),function(e){e.Bip122="bip122",e.Solana="solana",e.Eip155="eip155",e.Wallet="wallet"}(r.KnownCaipNamespace||(r.KnownCaipNamespace={})),r.isCaipChainId=function(e){return(0,n.is)(e,r.CaipChainIdStruct)},r.isCaipNamespace=i,r.isCaipReference=o,r.isCaipAccountId=function(e){return(0,n.is)(e,r.CaipAccountIdStruct)},r.isCaipAccountAddress=a,r.isCaipAssetNamespace=c,r.isCaipAssetReference=u,r.isCaipTokenId=l,r.isCaipAssetType=function(e){return(0,n.is)(e,r.CaipAssetTypeStruct)},r.isCaipAssetId=function(e){return(0,n.is)(e,r.CaipAssetIdStruct)},r.parseCaipChainId=function(e){const t=r.CAIP_CHAIN_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}},r.parseCaipAccountId=function(e){const t=r.CAIP_ACCOUNT_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseCaipAssetType=function(e){const t=r.CAIP_ASSET_TYPE_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset type.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseCaipAssetId=function(e){const t=r.CAIP_ASSET_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset ID.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,tokenId:t.groups.tokenId,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.toCaipChainId=function(e,t){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);return`${e}:${t}`},r.toCaipAccountId=function(e,t,n){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!a(n))throw new Error(`Invalid "accountAddress", must match: ${r.CAIP_ACCOUNT_ADDRESS_REGEX.toString()}`);return`${e}:${t}:${n}`},r.toCaipAssetType=function(e,t,n,s){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!c(n))throw new Error(`Invalid "assetNamespace", must match: ${r.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${r.CAIP_ASSET_REFERENCE_REGEX.toString()}`);return`${e}:${t}/${n}:${s}`},r.toCaipAssetId=function(e,t,n,s,a){if(!i(e))throw new Error(`Invalid "namespace", must match: ${r.CAIP_NAMESPACE_REGEX.toString()}`);if(!o(t))throw new Error(`Invalid "reference", must match: ${r.CAIP_REFERENCE_REGEX.toString()}`);if(!c(n))throw new Error(`Invalid "assetNamespace", must match: ${r.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${r.CAIP_ASSET_REFERENCE_REGEX.toString()}`);if(!l(a))throw new Error(`Invalid "tokenId", must match: ${r.CAIP_TOKEN_ID_REGEX.toString()}`);return`${e}:${t}/${n}:${s}/${a}`}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/caip-types.cjs"}],[25,{"./base64.cjs":22,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ChecksumStruct=void 0;const n=e("@metamask/superstruct"),s=e("./base64.cjs");r.ChecksumStruct=(0,n.size)((0,s.base64)((0,n.string)(),{paddingRequired:!0}),44,44)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/checksum.cjs"}],[26,{"./assert.cjs":21,"./bytes.cjs":23,"./hex.cjs":30,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createHex=r.createBytes=r.createBigInt=r.createNumber=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs"),i=e("./bytes.cjs"),o=e("./hex.cjs"),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),c=(0,n.coerce)((0,n.number)(),a,Number),u=(0,n.coerce)((0,n.bigint)(),a,BigInt),l=((0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]),(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),i.hexToBytes)),f=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),i.bytesToHex);r.createNumber=function(e){try{const t=(0,n.create)(e,c);return(0,s.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},r.createBigInt=function(e){try{return(0,n.create)(e,u)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},r.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,n.create)(e,l)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},r.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,n.create)(e,f)}catch(e){if(e instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/coercers.cjs"}],[27,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},o=this&&this.__classPrivateFieldSet||function(e,t,r,n,s){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?s.call(e,r):s?s.value=r:t.set(e,r),r};Object.defineProperty(r,"__esModule",{value:!0}),r.FrozenSet=r.FrozenMap=void 0;class a{get size(){return i(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return i(this,n,"f")[Symbol.iterator]()}constructor(e){n.set(this,void 0),o(this,n,new Map(e),"f"),Object.freeze(this)}entries(){return i(this,n,"f").entries()}forEach(e,t){return i(this,n,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}get(e){return i(this,n,"f").get(e)}has(e){return i(this,n,"f").has(e)}keys(){return i(this,n,"f").keys()}values(){return i(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}r.FrozenMap=a;class c{get size(){return i(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return i(this,s,"f")[Symbol.iterator]()}constructor(e){s.set(this,void 0),o(this,s,new Set(e),"f"),Object.freeze(this)}entries(){return i(this,s,"f").entries()}forEach(e,t){return i(this,s,"f").forEach(((r,n,s)=>e.call(t,r,n,this)))}has(e){return i(this,s,"f").has(e)}keys(){return i(this,s,"f").keys()}values(){return i(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}r.FrozenSet=c,Object.freeze(a),Object.freeze(a.prototype),Object.freeze(c),Object.freeze(c.prototype)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/collections.cjs"}],[28,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/encryption-types.cjs"}],[29,{"./misc.cjs":35,"pony-cause":60},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wrapError=r.getErrorMessage=r.isErrorWithStack=r.isErrorWithMessage=r.isErrorWithCode=void 0;const n=e("pony-cause"),s=e("./misc.cjs");function i(e){return"object"==typeof e&&null!==e&&"code"in e}function o(e){return"object"==typeof e&&null!==e&&"message"in e}r.isErrorWithCode=i,r.isErrorWithMessage=o,r.isErrorWithStack=function(e){return"object"==typeof e&&null!==e&&"stack"in e},r.getErrorMessage=function(e){return o(e)&&"string"==typeof e.message?e.message:(0,s.isNullOrUndefined)(e)?"":String(e)},r.wrapError=function(e,t){if((r=e)instanceof Error||(0,s.isObject)(r)&&"Error"===r.constructor.name){let r;return r=2===Error.length?new Error(t,{cause:e}):new n.ErrorWithCause(t,{cause:e}),i(e)&&(r.code=e.code),r}var r;return t.length>0?new Error(`${String(e)}: ${t}`):new Error(String(e))}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/errors.cjs"}],[30,{"./assert.cjs":21,"./bytes.cjs":23,"@metamask/superstruct":14,"@noble/hashes/sha3":46},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.remove0x=r.add0x=r.isValidChecksumAddress=r.getChecksumAddress=r.isValidHexAddress=r.assertIsStrictHexString=r.assertIsHexString=r.isStrictHexString=r.isHexString=r.HexChecksumAddressStruct=r.HexAddressStruct=r.StrictHexStruct=r.HexStruct=void 0;const n=e("@metamask/superstruct"),s=e("@noble/hashes/sha3"),i=e("./assert.cjs"),o=e("./bytes.cjs");function a(e){return(0,n.is)(e,r.HexStruct)}function c(e){return(0,n.is)(e,r.StrictHexStruct)}function u(e){(0,i.assert)((0,n.is)(e,r.HexChecksumAddressStruct),"Invalid hex address.");const t=f(e.toLowerCase()),a=f((0,o.bytesToHex)((0,s.keccak_256)(t)));return`0x${t.split("").map(((e,t)=>{const r=a[t];return(0,i.assert)((0,n.is)(r,(0,n.string)()),"Hash shorter than address."),parseInt(r,16)>7?e.toUpperCase():e})).join("")}`}function l(e){return!!(0,n.is)(e,r.HexChecksumAddressStruct)&&u(e)===e}function f(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}r.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),r.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),r.HexAddressStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]{40}$/u),r.HexChecksumAddressStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-fA-F]{40}$/u),r.isHexString=a,r.isStrictHexString=c,r.assertIsHexString=function(e){(0,i.assert)(a(e),"Value must be a hexadecimal string.")},r.assertIsStrictHexString=function(e){(0,i.assert)(c(e),'Value must be a hexadecimal string, starting with "0x".')},r.isValidHexAddress=function(e){return(0,n.is)(e,r.HexAddressStruct)||l(e)},r.getChecksumAddress=u,r.isValidChecksumAddress=l,r.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},r.remove0x=f}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/hex.cjs"}],[31,{"./assert.cjs":21,"./base64.cjs":22,"./bytes.cjs":23,"./caip-types.cjs":24,"./checksum.cjs":25,"./coercers.cjs":26,"./collections.cjs":27,"./encryption-types.cjs":28,"./errors.cjs":29,"./hex.cjs":30,"./json.cjs":32,"./keyring.cjs":33,"./logging.cjs":34,"./misc.cjs":35,"./number.cjs":36,"./opaque.cjs":37,"./promise.cjs":38,"./superstruct.cjs":39,"./time.cjs":40,"./transaction-types.cjs":41,"./versions.cjs":42},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),s(e("./assert.cjs"),r),s(e("./base64.cjs"),r),s(e("./bytes.cjs"),r),s(e("./caip-types.cjs"),r),s(e("./checksum.cjs"),r),s(e("./coercers.cjs"),r),s(e("./collections.cjs"),r),s(e("./encryption-types.cjs"),r),s(e("./errors.cjs"),r),s(e("./hex.cjs"),r),s(e("./json.cjs"),r),s(e("./keyring.cjs"),r),s(e("./logging.cjs"),r),s(e("./misc.cjs"),r),s(e("./number.cjs"),r),s(e("./opaque.cjs"),r),s(e("./promise.cjs"),r),s(e("./superstruct.cjs"),r),s(e("./time.cjs"),r),s(e("./transaction-types.cjs"),r),s(e("./versions.cjs"),r)}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/index.cjs"}],[32,{"./assert.cjs":21,"./misc.cjs":35,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getJsonRpcIdValidator=r.assertIsJsonRpcError=r.isJsonRpcError=r.assertIsJsonRpcFailure=r.isJsonRpcFailure=r.assertIsJsonRpcSuccess=r.isJsonRpcSuccess=r.assertIsJsonRpcResponse=r.isJsonRpcResponse=r.assertIsPendingJsonRpcResponse=r.isPendingJsonRpcResponse=r.JsonRpcResponseStruct=r.JsonRpcFailureStruct=r.JsonRpcSuccessStruct=r.PendingJsonRpcResponseStruct=r.assertIsJsonRpcRequest=r.isJsonRpcRequest=r.assertIsJsonRpcNotification=r.isJsonRpcNotification=r.JsonRpcNotificationStruct=r.JsonRpcRequestStruct=r.JsonRpcParamsStruct=r.JsonRpcErrorStruct=r.JsonRpcIdStruct=r.JsonRpcVersionStruct=r.jsonrpc2=r.getJsonSize=r.getSafeJson=r.isValidJson=r.JsonStruct=r.UnsafeJsonStruct=r.exactOptional=r.object=void 0;const n=e("@metamask/superstruct"),s=e("./assert.cjs"),i=e("./misc.cjs");function o({path:e,branch:t}){const r=e[e.length-1];return(0,i.hasProperty)(t[t.length-2],r)}function a(e){return new n.Struct({...e,type:`optional ${e.type}`,validator:(t,r)=>!o(r)||e.validator(t,r),refiner:(t,r)=>!o(r)||e.refiner(t,r)})}function c(e){if(null===e||"boolean"==typeof e||"string"==typeof e)return!0;if("number"==typeof e&&Number.isFinite(e))return!0;if("object"==typeof e){let t=!0;if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(!c(e[r])){t=!1;break}return t}const r=Object.entries(e);for(let e=0;e<r.length;e++)if("string"!=typeof r[e][0]||!c(r[e][1])){t=!1;break}return t}return!1}function u(e){return(0,n.create)(e,r.JsonStruct)}r.object=e=>(0,n.object)(e),r.exactOptional=a,r.UnsafeJsonStruct=(0,n.define)("JSON",(e=>c(e))),r.JsonStruct=(0,n.coerce)(r.UnsafeJsonStruct,(0,n.refine)((0,n.any)(),"JSON",(e=>(0,n.is)(e,r.UnsafeJsonStruct))),(e=>JSON.parse(JSON.stringify(e,((e,t)=>"__proto__"===e||"constructor"===e?undefined:t))))),r.isValidJson=function(e){try{return u(e),!0}catch{return!1}},r.getSafeJson=u,r.getJsonSize=function(e){(0,s.assertStruct)(e,r.JsonStruct,"Invalid JSON value");const t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength},r.jsonrpc2="2.0",r.JsonRpcVersionStruct=(0,n.literal)(r.jsonrpc2),r.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),r.JsonRpcErrorStruct=(0,r.object)({code:(0,n.integer)(),message:(0,n.string)(),data:a(r.JsonStruct),stack:a((0,n.string)())}),r.JsonRpcParamsStruct=(0,n.union)([(0,n.record)((0,n.string)(),r.JsonStruct),(0,n.array)(r.JsonStruct)]),r.JsonRpcRequestStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,method:(0,n.string)(),params:a(r.JsonRpcParamsStruct)}),r.JsonRpcNotificationStruct=(0,r.object)({jsonrpc:r.JsonRpcVersionStruct,method:(0,n.string)(),params:a(r.JsonRpcParamsStruct)}),r.isJsonRpcNotification=function(e){return(0,n.is)(e,r.JsonRpcNotificationStruct)},r.assertIsJsonRpcNotification=function(e,t){(0,s.assertStruct)(e,r.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",t)},r.isJsonRpcRequest=function(e){return(0,n.is)(e,r.JsonRpcRequestStruct)},r.assertIsJsonRpcRequest=function(e,t){(0,s.assertStruct)(e,r.JsonRpcRequestStruct,"Invalid JSON-RPC request",t)},r.PendingJsonRpcResponseStruct=(0,n.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(r.JsonRpcErrorStruct)}),r.JsonRpcSuccessStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,result:r.JsonStruct}),r.JsonRpcFailureStruct=(0,r.object)({id:r.JsonRpcIdStruct,jsonrpc:r.JsonRpcVersionStruct,error:r.JsonRpcErrorStruct}),r.JsonRpcResponseStruct=(0,n.union)([r.JsonRpcSuccessStruct,r.JsonRpcFailureStruct]),r.isPendingJsonRpcResponse=function(e){return(0,n.is)(e,r.PendingJsonRpcResponseStruct)},r.assertIsPendingJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,r.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",t)},r.isJsonRpcResponse=function(e){return(0,n.is)(e,r.JsonRpcResponseStruct)},r.assertIsJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,r.JsonRpcResponseStruct,"Invalid JSON-RPC response",t)},r.isJsonRpcSuccess=function(e){return(0,n.is)(e,r.JsonRpcSuccessStruct)},r.assertIsJsonRpcSuccess=function(e,t){(0,s.assertStruct)(e,r.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",t)},r.isJsonRpcFailure=function(e){return(0,n.is)(e,r.JsonRpcFailureStruct)},r.assertIsJsonRpcFailure=function(e,t){(0,s.assertStruct)(e,r.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",t)},r.isJsonRpcError=function(e){return(0,n.is)(e,r.JsonRpcErrorStruct)},r.assertIsJsonRpcError=function(e,t){(0,s.assertStruct)(e,r.JsonRpcErrorStruct,"Invalid JSON-RPC error",t)},r.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:r,permitNull:n}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>Boolean("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/json.cjs"}],[33,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/keyring.cjs"}],[34,{debug:52},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.createModuleLogger=r.createProjectLogger=void 0;const s=(0,n(e("debug")).default)("metamask");r.createProjectLogger=function(e){return s.extend(e)},r.createModuleLogger=function(e,t){return e.extend(t)}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/logging.cjs"}],[35,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.calculateNumberSize=r.calculateStringSize=r.isASCII=r.isPlainObject=r.ESCAPE_CHARACTERS_REGEXP=r.JsonSize=r.getKnownPropertyNames=r.hasProperty=r.isObject=r.isNullOrUndefined=r.isNonEmptyArray=void 0,r.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},r.isNullOrUndefined=function(e){return null===e||e===undefined},r.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};function n(e){return e.charCodeAt(0)<=127}r.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),r.getKnownPropertyNames=function(e){return Object.getOwnPropertyNames(e)},function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(r.JsonSize||(r.JsonSize={})),r.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,r.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},r.isASCII=n,r.calculateStringSize=function(e){return e.split("").reduce(((e,t)=>n(t)?e+1:e+2),0)+(e.match(r.ESCAPE_CHARACTERS_REGEXP)??[]).length},r.calculateNumberSize=function(e){return e.toString().length}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/misc.cjs"}],[36,{"./assert.cjs":21,"./hex.cjs":30},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hexToBigInt=r.hexToNumber=r.bigIntToHex=r.numberToHex=void 0;const n=e("./assert.cjs"),s=e("./hex.cjs");r.numberToHex=e=>((0,n.assert)("number"==typeof e,"Value must be a number."),(0,n.assert)(e>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16)));r.bigIntToHex=e=>((0,n.assert)("bigint"==typeof e,"Value must be a bigint."),(0,n.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16)));r.hexToNumber=e=>{(0,s.assertIsHexString)(e);const t=parseInt(e,16);return(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};r.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/number.cjs"}],[37,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/opaque.cjs"}],[38,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createDeferredPromise=void 0,r.createDeferredPromise=function({suppressUnhandledRejection:e=!1}={}){let t,r;const n=new Promise(((e,n)=>{t=e,r=n}));return e&&n.catch((e=>{})),{promise:n,resolve:t,reject:r}}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/promise.cjs"}],[39,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.definePattern=void 0;const n=e("@metamask/superstruct");r.definePattern=function(e,t){return(0,n.define)(e,(e=>"string"==typeof e&&t.test(e)))}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/superstruct.cjs"}],[40,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.timeSince=r.inMilliseconds=r.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(r.Duration||(r.Duration={}));const n=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};r.inMilliseconds=function(e,t){return n(e,"count"),e*t},r.timeSince=function(e){return n(e,"timestamp"),Date.now()-e}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/time.cjs"}],[41,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/transaction-types.cjs"}],[42,{"./assert.cjs":21,"@metamask/superstruct":14,semver:107},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.satisfiesVersionRange=r.gtRange=r.gtVersion=r.assertIsSemVerRange=r.assertIsSemVerVersion=r.isValidSemVerRange=r.isValidSemVerVersion=r.VersionRangeStruct=r.VersionStruct=void 0;const n=e("@metamask/superstruct"),s=e("semver"),i=e("./assert.cjs");r.VersionStruct=(0,n.refine)((0,n.string)(),"Version",(e=>null!==(0,s.valid)(e)||`Expected SemVer version, got "${e}"`)),r.VersionRangeStruct=(0,n.refine)((0,n.string)(),"Version range",(e=>null!==(0,s.validRange)(e)||`Expected SemVer range, got "${e}"`)),r.isValidSemVerVersion=function(e){return(0,n.is)(e,r.VersionStruct)},r.isValidSemVerRange=function(e){return(0,n.is)(e,r.VersionRangeStruct)},r.assertIsSemVerVersion=function(e){(0,i.assertStruct)(e,r.VersionStruct)},r.assertIsSemVerRange=function(e){(0,i.assertStruct)(e,r.VersionRangeStruct)},r.gtVersion=function(e,t){return(0,s.gt)(e,t)},r.gtRange=function(e,t){return(0,s.gtr)(e,t)},r.satisfiesVersionRange=function(e,t){return(0,s.satisfies)(e,t,{includePrerelease:!0})}}}},{package:"@metamask/utils",file:"../../node_modules/@metamask/utils/dist/versions.cjs"}],[43,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!((r=e)instanceof Uint8Array||ArrayBuffer.isView(r)&&"Uint8Array"===r.constructor.name))throw new Error("Uint8Array expected");var r;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(r,"__esModule",{value:!0}),r.anumber=n,r.abytes=s,r.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)},r.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},r.aoutput=function(e,t){s(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/_assert.js"}],[44,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=void 0,r.fromBig=i,r.split=o,r.add=v;const n=BigInt(2**32-1),s=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>s&n)}:{h:0|Number(e>>s&n),l:0|Number(e&n)}}function o(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:o,l:a}=i(e[s],t);[r[s],n[s]]=[o,a]}return[r,n]}const a=(e,t)=>BigInt(e>>>0)<<s|BigInt(t>>>0);r.toBig=a;const c=(e,t,r)=>e>>>r;r.shrSH=c;const u=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=u;const l=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=l;const f=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=f;const d=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=d;const p=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=p;const h=(e,t)=>t;r.rotr32H=h;const m=(e,t)=>e;r.rotr32L=m;const g=(e,t,r)=>e<<r|t>>>32-r;r.rotlSH=g;const b=(e,t,r)=>t<<r|e>>>32-r;r.rotlSL=b;const y=(e,t,r)=>t<<r-32|e>>>64-r;r.rotlBH=y;const w=(e,t,r)=>e<<r-32|t>>>64-r;function v(e,t,r,n){const s=(t>>>0)+(n>>>0);return{h:e+r+(s/2**32|0)|0,l:0|s}}r.rotlBL=w;const E=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=E;const S=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;r.add3H=S;const _=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=_;const k=(e,t,r,n,s)=>t+r+n+s+(e/2**32|0)|0;r.add4H=k;const j=(e,t,r,n,s)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(s>>>0);r.add5L=j;const T=(e,t,r,n,s,i)=>t+r+n+s+i+(e/2**32|0)|0;r.add5H=T;const O={fromBig:i,split:o,toBig:a,shrSH:c,shrSL:u,rotrSH:l,rotrSL:f,rotrBH:d,rotrBL:p,rotr32H:h,rotr32L:m,rotlSH:g,rotlSL:b,rotlBH:y,rotlBL:w,add:v,add3L:E,add3H:S,add4L:_,add4H:k,add5H:T,add5L:j};r.default=O}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/_u64.js"}],[45,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:undefined}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/crypto.js"}],[46,{"./_assert.js":43,"./_u64.js":44,"./utils.js":47},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=void 0,r.keccakP=w;const n=e("./_assert.js"),s=e("./_u64.js"),i=e("./utils.js"),o=[],a=[],c=[],u=BigInt(0),l=BigInt(1),f=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let e=0,t=l,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),a.push((e+1)*(e+2)/2%64);let s=u;for(let e=0;e<7;e++)t=(t<<l^(t>>d)*h)%p,t&f&&(s^=l<<(l<<BigInt(e))-l);c.push(s)}const[m,g]=(0,s.split)(c,!0),b=(e,t,r)=>r>32?(0,s.rotlBH)(e,t,r):(0,s.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,s.rotlBL)(e,t,r):(0,s.rotlSL)(e,t,r);function w(e,t=24){const r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const n=(t+8)%10,s=(t+2)%10,i=r[s],o=r[s+1],a=b(i,o,1)^r[n],c=y(i,o,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){const n=a[r],i=b(t,s,n),c=y(t,s,n),u=o[r];t=e[u],s=e[u+1],e[u]=i,e[u+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=m[n],e[1]^=g[n]}r.fill(0)}class v extends i.Hash{constructor(e,t,r,s=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=s,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.anumber)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),w(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.aexists)(this);const{blockLen:t,state:r}=this,s=(e=(0,i.toBytes)(e)).length;for(let n=0;n<s;){const i=Math.min(t-this.pos,s-n);for(let t=0;t<i;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,128&t&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.aexists)(this,!1),(0,n.abytes)(e),this.finish();const t=this.state,{blockLen:r}=this;for(let n=0,s=e.length;n<s;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,s-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:r,outputLen:n,rounds:s,enableXOF:i}=this;return e||(e=new v(t,r,n,i,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=v;const E=(e,t,r)=>(0,i.wrapConstructor)((()=>new v(t,e,r)));r.sha3_224=E(6,144,28),r.sha3_256=E(6,136,32),r.sha3_384=E(6,104,48),r.sha3_512=E(6,72,64),r.keccak_224=E(1,144,28),r.keccak_256=E(1,136,32),r.keccak_384=E(1,104,48),r.keccak_512=E(1,72,64);const S=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)(((n={})=>new v(t,e,n.dkLen===undefined?r:n.dkLen,!0)));r.shake128=S(31,168,16),r.shake256=S(31,136,32)}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/sha3.js"}],[47,{"./_assert.js":43,"@noble/hashes/crypto":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
2
2
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
3
3
  Object.defineProperty(r,"__esModule",{value:!0}),r.Hash=r.nextTick=r.byteSwapIfBE=r.isLE=void 0,r.isBytes=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name},r.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},r.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},r.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},r.rotr=function(e,t){return e<<32-t|e>>>t},r.rotl=function(e,t){return e<<t|e>>>32-t>>>0},r.byteSwap=i,r.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=i(e[t])},r.bytesToHex=function(e){(0,s.abytes)(e);let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t},r.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let t=0,s=0;t<r;t++,s+=2){const r=c(e.charCodeAt(s)),i=c(e.charCodeAt(s+1));if(r===undefined||i===undefined){const t=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+s)}n[t]=16*r+i}return n},r.asyncLoop=async function(e,t,n){let s=Date.now();for(let i=0;i<e;i++){n(i);const e=Date.now()-s;e>=0&&e<t||(await(0,r.nextTick)(),s+=e)}},r.utf8ToBytes=u,r.toBytes=l,r.concatBytes=function(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];(0,s.abytes)(n),t+=n.length}const r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const s=e[t];r.set(s,n),n+=s.length}return r},r.checkOpts=function(e,t){if(t!==undefined&&"[object Object]"!=={}.toString.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},r.wrapConstructor=function(e){const t=t=>e().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){const t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));if(n.crypto&&"function"==typeof n.crypto.randomBytes)return n.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")};const n=e("@noble/hashes/crypto"),s=e("./_assert.js");function i(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}r.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],r.byteSwapIfBE=r.isLE?e=>e:e=>i(e);const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const a={_0:48,_9:57,A:65,F:70,a:97,f:102};function c(e){return e>=a._0&&e<=a._9?e-a._0:e>=a.A&&e<=a.F?e-(a.A-10):e>=a.a&&e<=a.f?e-(a.a-10):void 0}function u(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function l(e){return"string"==typeof e&&(e=u(e)),(0,s.abytes)(e),e}r.nextTick=async()=>{};r.Hash=class{clone(){return this._cloneInto()}}}}},{package:"@metamask/utils>@noble/hashes",file:"../../node_modules/@noble/hashes/utils.js"}],[48,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function i(...e){const t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map((e=>e.encode)).reduceRight(r,t),decode:e.map((e=>e.decode)).reduce(r,t)}}function o(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(n(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const r=e.indexOf(t);if(-1===r)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return r}))}}}function a(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function c(e,t="="){if(n(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw new Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let n=r.length;if(n*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw new Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function u(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function l(e,t,r){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw new Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let s=0;const i=[],o=Array.from(e);for(o.forEach((e=>{if(n(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,n=!0;for(let i=s;i<o.length;i++){const a=o[i],c=t*e+a;if(!Number.isSafeInteger(c)||t*e/t!==e||c-a!=t*e)throw new Error("convertRadix: carry overflow");e=c%r;const u=Math.floor(c/r);if(o[i]=u,!Number.isSafeInteger(u)||u*r+e!==c)throw new Error("convertRadix: carry overflow");n&&(u?n=!1:s=i)}if(i.push(e),n)break}for(let t=0;t<e.length-1&&0===e[t];t++)i.push(0);return i.reverse()}
4
4
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -6,4 +6,4 @@ Object.defineProperty(r,"__esModule",{value:!0}),r.bytes=r.stringToBytes=r.str=r
6
6
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
7
7
  r.read=function(e,t,r,n,s){var i,o,a=8*s-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?s-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=d,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=d,l-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:(p?-1:1)*Infinity;o+=Math.pow(2,n),i-=u}return(p?-1:1)*o*Math.pow(2,i-n)},r.write=function(e,t,r,n,s,i){var o,a,c,u=8*i-s-1,l=(1<<u)-1,f=l>>1,d=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(t*c-1)*Math.pow(2,s),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,s),o=0));s>=8;e[r+p]=255&a,p+=h,a/=256,s-=8);for(o=o<<s|a,u+=s;u>0;e[r+p]=255&o,p+=h,o/=256,u-=8);e[r+p-h]|=128*m}}}},{package:"browserify>buffer>ieee754",file:"../../node_modules/ieee754/index.js"}],[57,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}}},{package:"browserify>inherits",file:"../../node_modules/inherits/inherits_browser.js"}],[58,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=1e3,s=60*n,i=60*s,o=24*i,a=7*o,c=365.25*o;function u(e,t,r,n){var s=t>=1.5*r;return Math.round(e/r)+" "+n+(s?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*c;case"weeks":case"week":case"w":return r*a;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*s;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return undefined}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return u(e,t,o,"day");if(t>=i)return u(e,t,i,"hour");if(t>=s)return u(e,t,s,"minute");if(t>=n)return u(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=s)return Math.round(e/s)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}},{package:"eslint>debug>ms",file:"../../node_modules/ms/index.js"}],[59,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={nanoid:(e=21)=>{let t="",r=0|e;for(;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(r=t)=>{let n="",s=0|r;for(;s--;)n+=e[Math.random()*e.length|0];return n}}}}},{package:"nanoid",file:"../../node_modules/nanoid/non-secure/index.cjs"}],[60,{"./lib/error-with-cause":61,"./lib/helpers":62},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{ErrorWithCause:n}=e("./lib/error-with-cause"),{findCauseByReference:s,getErrorCause:i,messageWithCauses:o,stackWithCauses:a}=e("./lib/helpers");t.exports={ErrorWithCause:n,findCauseByReference:s,getErrorCause:i,stackWithCauses:a,messageWithCauses:o}}}},{package:"@metamask/utils>pony-cause",file:"../../node_modules/pony-cause/index.js"}],[61,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){class n extends Error{constructor(e,{cause:t}={}){super(e),this.name=n.name,t&&(this.cause=t),this.message=e}}t.exports={ErrorWithCause:n}}}},{package:"@metamask/utils>pony-cause",file:"../../node_modules/pony-cause/lib/error-with-cause.js"}],[62,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e=>{if(e&&"object"==typeof e&&"cause"in e){if("function"==typeof e.cause){const t=e.cause();return t instanceof Error?t:undefined}return e.cause instanceof Error?e.cause:undefined}},s=(e,t)=>{if(!(e instanceof Error))return"";const r=e.stack||"";if(t.has(e))return r+"\ncauses have become circular...";const i=n(e);return i?(t.add(e),r+"\ncaused by: "+s(i,t)):r},i=(e,t,r)=>{if(!(e instanceof Error))return"";const s=r?"":e.message||"";if(t.has(e))return s+": ...";const o=n(e);if(o){t.add(e);const r="cause"in e&&"function"==typeof e.cause;return s+(r?"":": ")+i(o,t,r)}return s};t.exports={findCauseByReference:(e,t)=>{if(!e||!t)return;if(!(e instanceof Error))return;if(!(t.prototype instanceof Error)&&t!==Error)return;const r=new Set;let s=e;for(;s&&!r.has(s);){if(r.add(s),s instanceof t)return s;s=n(s)}},getErrorCause:n,stackWithCauses:e=>s(e,new Set),messageWithCauses:e=>i(e,new Set)}}}},{package:"@metamask/utils>pony-cause",file:"../../node_modules/pony-cause/lib/helpers.js"}],[63,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,s,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(e){s=a}}();var u,l=[],f=!1,d=-1;function p(){f&&u&&(f=!1,u.length?l=u.concat(l):d=-1,l.length&&h())}function h(){if(!f){var e=c(p);f=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,f=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||f||c(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}}},{package:"browserify>process",file:"../../node_modules/process/browser.js"}],[64,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n={};function s(e,t,r){r||(r=Error);var s=function(e){var r,n;function s(r,n,s){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,s))||this}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s}(r);s.prototype.name=r.name,s.prototype.code=e,n[e]=s}function i(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}s("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),s("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,s,o,a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(i(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(i(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),s("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),s("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),s("ERR_STREAM_PREMATURE_CLOSE","Premature close"),s("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),s("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),s("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),s("ERR_STREAM_WRITE_AFTER_END","write after end"),s("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),s("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),s("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}}},{package:"readable-stream",file:"../../node_modules/readable-stream/errors-browser.js"}],[65,{"./_stream_readable":67,"./_stream_writable":69,_process:63,inherits:57},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var s=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(u,s);for(var o=n(i.prototype),a=0;a<o.length;a++){var c=o[a];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){this._readableState!==undefined&&this._writableState!==undefined&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_duplex.js"}],[66,{"./_stream_transform":68,inherits:57},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=s;var n=e("./_stream_transform");function s(e){if(!(this instanceof s))return new s(e);n.call(this,e)}e("inherits")(s,n),s.prototype._transform=function(e,t,r){r(null,e)}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_passthrough.js"}],[67,{"../errors":64,"./_stream_duplex":65,"./internal/streams/async_iterator":70,"./internal/streams/buffer_list":71,"./internal/streams/destroy":72,"./internal/streams/from":74,"./internal/streams/state":76,"./internal/streams/stream":77,_process:63,buffer:51,events:54,inherits:57,"string_decoder/":125,util:50},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;t.exports=k,k.ReadableState=_;e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},i=e("./internal/streams/stream"),o=e("buffer").Buffer,a=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,u=e("util");c=u&&u.debuglog?u.debuglog("stream"):function(){};var l,f,d,p=e("./internal/streams/buffer_list"),h=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(k,i);var E=h.errorOrDestroy,S=["error","close","destroy","pause","resume"];function _(t,r,s){n=n||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=r instanceof n),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",s),this.buffer=new p,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=e("string_decoder/").StringDecoder),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function k(t){if(n=n||e("./_stream_duplex"),!(this instanceof k))return new k(t);var r=this instanceof n;this._readableState=new _(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function j(e,t,r,n,s){c("readableAddChunk",t);var i,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(c("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,P(e)))}(e,u);else if(s||(i=function(e,t){var r;n=t,o.isBuffer(n)||n instanceof a||"string"==typeof t||t===undefined||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(u,t)),i)E(e,i);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),n)u.endEmitted?E(e,new v):T(e,u,t,!0);else if(u.ended)E(e,new y);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?T(e,u,t,!1):A(e,u)):T(e,u,t,!1)}else n||(u.reading=!1,A(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),A(e,t)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(e,t){t(e)},k.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=o.from(e,t),t=""),r=!0),j(this,e,t,!1,r)},k.prototype.unshift=function(e){return j(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){l||(l=e("string_decoder/").StringDecoder);var r=new l(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,s="";null!==n;)s+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this};var O=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(P,e))}function P(e){var t=e._readableState;c("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(c("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function x(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){c("readable nexttick read 0"),e.read(0)}function N(e,t){c("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function $(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function B(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(c("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}k.prototype.read=function(e){c("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return c("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):C(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,s=t.needReadable;return c("need readable",s),(0===t.length||t.length-e<t.highWaterMark)&&c("length less than watermark",s=!0),t.ended||t.reading?c("reading or ended",s=!1):s&&(c("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?$(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){E(this,new w("_read()"))},k.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,c("pipe count=%d opts=%j",i.pipesCount,t);var o=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:g;function a(t,r){c("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,c("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",p),e.removeListener("unpipe",a),n.removeListener("end",u),n.removeListener("end",g),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function u(){c("onend"),e.end()}i.endEmitted?r.nextTick(o):n.once("end",o),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;c("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",l);var f=!1;function d(t){c("ondata");var r=e.write(t);c("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!f&&(c("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){c("onerror",t),g(),e.removeListener("error",p),0===s(e,"error")&&E(e,t)}function h(){e.removeListener("finish",m),g()}function m(){c("onfinish"),e.removeListener("close",h),g()}function g(){c("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(c("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<s;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},k.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),s=this._readableState;return"data"===e?(s.readableListening=this.listenerCount("readable")>0,!1!==s.flowing&&this.resume()):"readable"===e&&(s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,c("on readable",s.length,s.reading),s.length?C(this):s.reading||r.nextTick(M,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(x,this),n},k.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||r.nextTick(x,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(N,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var s in e.on("end",(function(){if(c("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(s){(c("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!r.objectMode||null!==s&&s!==undefined)&&((r.objectMode||s&&s.length)&&(t.push(s)||(n=!0,e.pause())))})),e)this[s]===undefined&&"function"==typeof e[s]&&(this[s]=function(t){return function(){return e[t].apply(e,arguments)}}(s));for(var i=0;i<S.length;i++)e.on(S[i],this.emit.bind(this,S[i]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return f===undefined&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=$,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,r){return d===undefined&&(d=e("./internal/streams/from")),d(k,t,r)})}).call(this)}).call(this,e("_process"))}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_readable.js"}],[68,{"../errors":64,"./_stream_duplex":65,inherits:57},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=l;var n=e("../errors").codes,s=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=e("./_stream_duplex");function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new s("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var s=this._readableState;(n.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_transform.js"}],[69,{"../errors":64,"./_stream_duplex":65,"./internal/streams/destroy":72,"./internal/streams/state":76,"./internal/streams/stream":77,_process:63,buffer:51,inherits:57,"util-deprecate":126},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var s=n.callback;t.pendingcb--,s(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var s;t.exports=k,k.WritableState=_;var i={deprecate:e("util-deprecate")},o=e("./internal/streams/stream"),a=e("buffer").Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,d=e("../errors").codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,g=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,y=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,v=d.ERR_UNKNOWN_ENCODING,E=l.errorOrDestroy;function S(){}function _(t,i,o){s=s||e("./_stream_duplex"),t=t||{},"boolean"!=typeof o&&(o=i instanceof s),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,s=n.sync,i=n.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,s,i){--t.pendingcb,n?(r.nextTick(i,s),r.nextTick(P,e,t),e._writableState.errorEmitted=!0,E(e,s)):(i(s),e._writableState.errorEmitted=!0,E(e,s),P(e,t))}(e,n,s,t,i);else{var o=R(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),s?r.nextTick(T,e,n,o,i):T(e,n,o,i)}}(i,e)},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 k(t){var r=this instanceof(s=s||e("./_stream_duplex"));if(!r&&!u.call(k,this))return new k(t);this._writableState=new _(t,this,r),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)),o.call(this)}function j(e,t,r,n,s,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(s,t.onwrite):e._write(s,i,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),P(e,t)}function O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var s=t.bufferedRequestCount,i=new Array(s),o=t.corkedRequestsFree;o.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,j(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(j(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=R(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(C,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var s=e._readableState;(!s||s.autoDestroy&&s.endEmitted)&&e.destroy()}return n}e("inherits")(k,o),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:i.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===k&&(e&&e._writableState instanceof _)}})):u=function(e){return e instanceof this},k.prototype.pipe=function(){E(this,new g)},k.prototype.write=function(e,t,n){var s,i=this._writableState,o=!1,u=!i.objectMode&&(s=e,a.isBuffer(s)||s instanceof c);return u&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=S),i.ending?function(e,t){var n=new w;E(e,n),r.nextTick(t,n)}(this,n):(u||function(e,t,n,s){var i;return null===n?i=new y:"string"==typeof n||t.objectMode||(i=new p("chunk",["string","Buffer"],n)),!i||(E(e,i),r.nextTick(s,i),!1)}(this,i,e,n))&&(i.pendingcb++,o=function(e,t,r,n,s,i){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=a.from(t,r));return t}(t,n,s);n!==o&&(r=!0,s="buffer",n=o)}var c=t.objectMode?1:n.length;t.length+=c;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:s,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,c,n,s,i);return u}(this,i,u,e,t,n)),o},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new v(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new h("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,n){var s=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&e!==undefined&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,s,n),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=l.destroy,k.prototype._undestroy=l.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"))}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_writable.js"}],[70,{"./end-of-stream":73,_process:63},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(r){(function(){var n;function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=e("./end-of-stream"),o=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[o];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[o]=null,e[a]=null,t(p(r,!1)))}}function m(e){r.nextTick(h,e)}var g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(undefined,!0));if(this[d].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[c]?n(e[c]):t(p(undefined,!0))}))}));var n,s=this[l];if(s)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(undefined,!0)):t[f](r,n)}),n)}}(s,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(p(i,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(p(undefined,!0))}))}))})),n),g);t.exports=function(e){var t,r=Object.create(b,(s(t={},d,{value:e,writable:!0}),s(t,o,{value:null,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,c,{value:null,writable:!0}),s(t,u,{value:e._readableState.endEmitted,writable:!0}),s(t,f,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[o]=null,r[a]=null,e(p(n,!1))):(r[o]=e,r[a]=t)},writable:!0}),t));return r[l]=null,i(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[l]=null,r[o]=null,r[a]=null,t(e)),void(r[c]=e)}var n=r[o];null!==n&&(r[l]=null,r[o]=null,r[a]=null,n(p(undefined,!0))),r[u]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this)}).call(this,e("_process"))}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[71,{buffer:51,util:50},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var c=e("buffer").Buffer,u=e("util").inspect,l=u&&u.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,s=c.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,r=s,n=o,c.prototype.copy.call(t,r,n),o+=i.data.length,i=i.next;return s}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var s=t.data,i=e>s.length?s.length:e;if(i===s.length?n+=s:n+=s.slice(0,e),0==(e-=i)){i===s.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var s=r.data,i=e>s.length?s.length:e;if(s.copy(t,t.length-e,0,i),0==(e-=i)){i===s.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=s.slice(i));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return u(this,s(s({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/buffer_list.js"}],[72,{_process:63},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function r(e,t){s(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(t,i){var o=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,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?e.nextTick(n,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):i?(e.nextTick(n,o),i(t)):e.nextTick(n,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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/destroy.js"}],[73,{"../../../errors":64},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];e.apply(this,n)}}}(i||s);var o=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){a=!1,u=!0,o||i.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,f=!0,a||i.call(t)},p=function(e){i.call(t,e)},h=function(){var e;return o&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):a&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},m=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",l),t.on("abort",h),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",l),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[74,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/from-browser.js"}],[75,{"../../../errors":64,"./end-of-stream":73},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;var s=e("../../../errors").codes,i=s.ERR_MISSING_ARGS,o=s.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}t.exports=function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new i("streams");var d=r.map((function(t,s){var i=s<r.length-1;return function(t,r,s,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;t.on("close",(function(){a=!0})),n===undefined&&(n=e("./end-of-stream")),n(t,{readable:r,writable:s},(function(e){if(e)return i(e);a=!0,i()}));var c=!1;return function(e){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new o("pipe"))}}(t,i,s>0,(function(e){l||(l=e),e&&d.forEach(c),i||(d.forEach(c),f(l))}))}));return r.reduce(u)}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[76,{"../../../errors":64},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,s){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,s,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(s?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/state.js"}],[77,{events:54},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("events").EventEmitter}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/stream-browser.js"}],[78,{"./lib/_stream_duplex.js":65,"./lib/_stream_passthrough.js":66,"./lib/_stream_readable.js":67,"./lib/_stream_transform.js":68,"./lib/_stream_writable.js":69,"./lib/internal/streams/end-of-stream.js":73,"./lib/internal/streams/pipeline.js":75},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")}}},{package:"readable-stream",file:"../../node_modules/readable-stream/readable-browser.js"}],[79,{buffer:51},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
8
8
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
9
- var n=e("buffer"),s=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),o.prototype=Object.create(s.prototype),i(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"browserify>browser-pack>safe-buffer",file:"../../node_modules/safe-buffer/index.js"}],[80,{"../functions/cmp":84,"../internal/debug":109,"../internal/parse-options":112,"../internal/re":113,"./range":81,"./semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==undefined?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}t.exports=s;const i=e("../internal/parse-options"),{safeRe:o,t:a}=e("../internal/re"),c=e("../functions/cmp"),u=e("../internal/debug"),l=e("./semver"),f=e("./range")}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/comparator.js"}],[81,{"../internal/constants":108,"../internal/debug":109,"../internal/lrucache":111,"../internal/parse-options":112,"../internal/re":113,"./comparator":80,"./semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/\s+/g;class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=undefined,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(s,P(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],d),c("comparator trim",e),e=e.replace(l[f.TILDETRIM],p),c("tilde trim",e),e=e.replace(l[f.CARETTRIM],h),c("caret trim",e);let o=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));n&&(o=o.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),c("range list",o);const u=new Map,y=o.map((e=>new a(e,this.options)));for(const e of y){if(b(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const w=[...u.values()];return i.set(t,w),w}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>w(r,t)&&e.set.some((e=>w(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}t.exports=s;const i=new(e("../internal/lrucache")),o=e("../internal/parse-options"),a=e("./comparator"),c=e("../internal/debug"),u=e("./semver"),{safeRe:l,t:f,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:h}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=e("../internal/constants"),b=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},v=(e,t)=>(c("comp",e,t),e=k(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=T(e,t),c("xrange",e),e=R(e,t),c("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return c("tilde",e,t,r,n,s,i),E(r)?o="":E(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:E(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(c("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,c("tilde return",o),o}))},k=(e,t)=>e.trim().split(/\s+/).map((e=>j(e,t))).join(" "),j=(e,t)=>{c("caret",e,t);const r=t.loose?l[f.CARETLOOSE]:l[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let a;return c("caret",e,t,r,s,i,o),E(r)?a="":E(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(i)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(c("replaceCaret pr",o),a="0"===r?"0"===s?`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),c("caret return",a),a}))},T=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{c("xRange",e,r,n,s,i,o,a);const u=E(s),l=u||E(i),f=l||E(o),d=f;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(i=0),o=0,">"===n?(n=">=",l?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===n&&(n="<",l?s=+s+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+s}.${i}.${o}${a}`):l?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:f&&(r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),c("xRange return",r),r}))},R=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),C=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),P=e=>(t,r,n,s,i,o,a,c,u,l,f,d)=>`${r=E(n)?"":E(s)?`>=${n}.0.0${e?"-0":""}`:E(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),A=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/range.js"}],[82,{"../internal/constants":108,"../internal/debug":109,"../internal/identifiers":110,"../internal/parse-options":112,"../internal/re":113},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../internal/debug"),{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=e("../internal/constants"),{safeRe:o,safeSrc:a,t:c}=e("../internal/re"),u=e("../internal/parse-options"),{compareIdentifiers:l}=e("../internal/identifiers");class f{constructor(e,t){if(t=u(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof f||(e=new f(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),r===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(r===undefined)return-1;if(r!==s)return l(r,s)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),r===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(r===undefined)return-1;if(r!==s)return l(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?a[c.PRERELEASELOOSE]:a[c.PRERELEASE]}$`),r=`-${t}`.match(e);if(!r||r[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=f}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/semver.js"}],[83,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/clean.js"}],[84,{"./eq":90,"./gt":91,"./gte":92,"./lt":94,"./lte":95,"./neq":98},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./eq"),s=e("./neq"),i=e("./gt"),o=e("./gte"),a=e("./lt"),c=e("./lte");t.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return i(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/cmp.js"}],[85,{"../classes/semver":82,"../internal/re":113,"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("./parse"),{safeRe:i,t:o}=e("../internal/re");t.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",u=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${f}`,t)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/coerce.js"}],[86,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>{const s=new n(e,r),i=new n(t,r);return s.compare(i)||s.compareBuild(i)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare-build.js"}],[87,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t)=>n(e,t,!0)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare-loose.js"}],[88,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare.js"}],[89,{"./parse.js":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse.js");t.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),i=r.compare(s);if(0===i)return null;const o=i>0,a=o?r:s,c=o?s:r,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==s.major?l+"major":r.minor!==s.minor?l+"minor":r.patch!==s.patch?l+"patch":"prerelease"}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/diff.js"}],[90,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0===n(e,t,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/eq.js"}],[91,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/gt.js"}],[92,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>=0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/gte.js"}],[93,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r,s,i)=>{"string"==typeof r&&(i=s,s=r,r=undefined);try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/inc.js"}],[94,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/lt.js"}],[95,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<=0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/lte.js"}],[96,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).major}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/major.js"}],[97,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).minor}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/minor.js"}],[98,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0!==n(e,t,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/neq.js"}],[99,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/parse.js"}],[100,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).patch}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/patch.js"}],[101,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/prerelease.js"}],[102,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(t,e,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/rcompare.js"}],[103,{"./compare-build":86},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/rsort.js"}],[104,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/satisfies.js"}],[105,{"./compare-build":86},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/sort.js"}],[106,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/valid.js"}],[107,{"./classes/comparator":80,"./classes/range":81,"./classes/semver":82,"./functions/clean":83,"./functions/cmp":84,"./functions/coerce":85,"./functions/compare":88,"./functions/compare-build":86,"./functions/compare-loose":87,"./functions/diff":89,"./functions/eq":90,"./functions/gt":91,"./functions/gte":92,"./functions/inc":93,"./functions/lt":94,"./functions/lte":95,"./functions/major":96,"./functions/minor":97,"./functions/neq":98,"./functions/parse":99,"./functions/patch":100,"./functions/prerelease":101,"./functions/rcompare":102,"./functions/rsort":103,"./functions/satisfies":104,"./functions/sort":105,"./functions/valid":106,"./internal/constants":108,"./internal/identifiers":110,"./internal/re":113,"./ranges/gtr":114,"./ranges/intersects":115,"./ranges/ltr":116,"./ranges/max-satisfying":117,"./ranges/min-satisfying":118,"./ranges/min-version":119,"./ranges/outside":120,"./ranges/simplify":121,"./ranges/subset":122,"./ranges/to-comparators":123,"./ranges/valid":124},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./internal/re"),s=e("./internal/constants"),i=e("./classes/semver"),o=e("./internal/identifiers"),a=e("./functions/parse"),c=e("./functions/valid"),u=e("./functions/clean"),l=e("./functions/inc"),f=e("./functions/diff"),d=e("./functions/major"),p=e("./functions/minor"),h=e("./functions/patch"),m=e("./functions/prerelease"),g=e("./functions/compare"),b=e("./functions/rcompare"),y=e("./functions/compare-loose"),w=e("./functions/compare-build"),v=e("./functions/sort"),E=e("./functions/rsort"),S=e("./functions/gt"),_=e("./functions/lt"),k=e("./functions/eq"),j=e("./functions/neq"),T=e("./functions/gte"),O=e("./functions/lte"),R=e("./functions/cmp"),C=e("./functions/coerce"),P=e("./classes/comparator"),A=e("./classes/range"),I=e("./functions/satisfies"),x=e("./ranges/to-comparators"),M=e("./ranges/max-satisfying"),N=e("./ranges/min-satisfying"),L=e("./ranges/min-version"),$=e("./ranges/valid"),B=e("./ranges/outside"),U=e("./ranges/gtr"),F=e("./ranges/ltr"),D=e("./ranges/intersects"),W=e("./ranges/simplify"),H=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:f,major:d,minor:p,patch:h,prerelease:m,compare:g,rcompare:b,compareLoose:y,compareBuild:w,sort:v,rsort:E,gt:S,lt:_,eq:k,neq:j,gte:T,lte:O,cmp:R,coerce:C,Comparator:P,Range:A,satisfies:I,toComparators:x,maxSatisfying:M,minSatisfying:N,minVersion:L,validRange:$,outside:B,gtr:U,ltr:F,intersects:D,simplifyRange:W,subset:H,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}}}},{package:"depcheck>semver",file:"../../node_modules/semver/index.js"}],[108,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/constants.js"}],[109,{_process:63},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){const r="object"==typeof e&&e.env&&e.env.NODE_DEBUG&&/\bsemver\b/i.test(e.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};t.exports=r}).call(this)}).call(this,e("_process"))}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/debug.js"}],[110,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[0-9]+$/,s=(e,t)=>{const r=n.test(e),s=n.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:s,rcompareIdentifiers:(e,t)=>s(t,e)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/identifiers.js"}],[111,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return t===undefined?undefined:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/lrucache.js"}],[112,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({loose:!0}),s=Object.freeze({});t.exports=e=>e?"object"!=typeof e?n:e:s}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/parse-options.js"}],[113,{"./constants":108,"./debug":109},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=e("./constants"),o=e("./debug"),a=(r=t.exports={}).re=[],c=r.safeRe=[],u=r.src=[],l=r.safeSrc=[],f=r.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,s]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),f[e]=s,u[s]=t,l[s]=n,a[s]=new RegExp(t,r?"g":undefined),c[s]=new RegExp(n,r?"g":undefined)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[f.NUMERICIDENTIFIER]}|${u[f.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[f.NUMERICIDENTIFIERLOOSE]}|${u[f.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[f.PRERELEASEIDENTIFIER]}(?:\\.${u[f.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[f.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${u[f.BUILDIDENTIFIER]}(?:\\.${u[f.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[f.MAINVERSION]}${u[f.PRERELEASE]}?${u[f.BUILD]}?`),m("FULL",`^${u[f.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[f.MAINVERSIONLOOSE]}${u[f.PRERELEASELOOSE]}?${u[f.BUILD]}?`),m("LOOSE",`^${u[f.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[f.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:${u[f.PRERELEASE]})?${u[f.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:${u[f.PRERELEASELOOSE]})?${u[f.BUILD]}?)?)?`),m("XRANGE",`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[f.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[f.COERCEPLAIN]+`(?:${u[f.PRERELEASE]})?`+`(?:${u[f.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[f.COERCE],!0),m("COERCERTLFULL",u[f.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[f.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",m("TILDE",`^${u[f.LONETILDE]}${u[f.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[f.LONETILDE]}${u[f.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[f.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",m("CARET",`^${u[f.LONECARET]}${u[f.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[f.LONECARET]}${u[f.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[f.GTLT]}\\s*(${u[f.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]}|${u[f.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[f.XRANGEPLAIN]})\\s+-\\s+(${u[f.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[f.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/re.js"}],[114,{"./outside":120},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,">",r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/gtr.js"}],[115,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/intersects.js"}],[116,{"./outside":120},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,"<",r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/ltr.js"}],[117,{"../classes/range":81,"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/max-satisfying.js"}],[118,{"../classes/range":81,"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/min-satisfying.js"}],[119,{"../classes/range":81,"../classes/semver":82,"../functions/gt":91},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range"),i=e("../functions/gt");t.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/min-version.js"}],[120,{"../classes/comparator":80,"../classes/range":81,"../classes/semver":82,"../functions/gt":91,"../functions/gte":92,"../functions/lt":94,"../functions/lte":95,"../functions/satisfies":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/comparator"),{ANY:i}=s,o=e("../classes/range"),a=e("../functions/satisfies"),c=e("../functions/gt"),u=e("../functions/lt"),l=e("../functions/lte"),f=e("../functions/gte");t.exports=(e,t,r,d)=>{let p,h,m,g,b;switch(e=new n(e,d),t=new o(t,d),r){case">":p=c,h=l,m=u,g=">",b=">=";break;case"<":p=u,h=f,m=c,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),o=o||e,a=a||e,p(e.semver,o.semver,d)?o=e:m(e.semver,a.semver,d)&&(a=e)})),o.operator===g||o.operator===b)return!1;if((!a.operator||a.operator===g)&&h(e,a.semver))return!1;if(a.operator===b&&m(e,a.semver))return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/outside.js"}],[121,{"../functions/compare.js":88,"../functions/satisfies.js":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../functions/satisfies.js"),s=e("../functions/compare.js");t.exports=(e,t,r)=>{const i=[];let o=null,a=null;const c=e.sort(((e,t)=>s(e,t,r)));for(const e of c){n(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null)}o&&i.push([o,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/simplify.js"}],[122,{"../classes/comparator.js":80,"../classes/range.js":81,"../functions/compare.js":88,"../functions/satisfies.js":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range.js"),s=e("../classes/comparator.js"),{ANY:i}=s,o=e("../functions/satisfies.js"),a=e("../functions/compare.js"),c=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=u}const n=new Set;let s,l,p,h,m,g,b;for(const t of e)">"===t.operator||">="===t.operator?s=f(s,t,r):"<"===t.operator||"<="===t.operator?l=d(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(p=a(s.semver,l.semver,r),p>0)return null;if(0===p&&(">="!==s.operator||"<="!==l.operator))return null}for(const e of n){if(s&&!o(e,String(s),r))return null;if(l&&!o(e,String(l),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let y=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,w=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if(h=f(s,e,r),h===e&&h!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(l)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=d(l,e,r),m===e&&m!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(e),r))return!1;if(!e.operator&&(l||s)&&0!==p)return!1}return!(s&&g&&!l&&0!==p)&&(!(l&&b&&!s&&0!==p)&&(!w&&!y))},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/subset.js"}],[123,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/to-comparators.js"}],[124,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/valid.js"}],[125,{"safe-buffer":79},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return r!==undefined?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=o(t[n]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}},{package:"browserify>string_decoder",file:"../../node_modules/string_decoder/lib/string_decoder.js"}],[126,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}}},{package:"readable-stream>util-deprecate",file:"../../node_modules/util-deprecate/browser.js"}],[127,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeLockdownEvents=function(){s.forEach(((e,t)=>{for(const r of e)Object.defineProperty(t,r,{value:undefined,configurable:!1,writable:!1})}))};var n=e("@metamask/utils");const s=new Map;(0,n.hasProperty)(globalThis,"UIEvent")&&s.set(UIEvent.prototype,["view"]),(0,n.hasProperty)(globalThis,"MutationEvent")&&s.set(MutationEvent.prototype,["relatedNode"]),(0,n.hasProperty)(globalThis,"MessageEvent")&&s.set(MessageEvent.prototype,["source"]),(0,n.hasProperty)(globalThis,"FocusEvent")&&s.set(FocusEvent.prototype,["relatedTarget"]),(0,n.hasProperty)(globalThis,"MouseEvent")&&s.set(MouseEvent.prototype,["relatedTarget","fromElement","toElement"]),(0,n.hasProperty)(globalThis,"TouchEvent")&&s.set(TouchEvent.prototype,["targetTouches","touches"]),(0,n.hasProperty)(globalThis,"Event")&&s.set(Event.prototype,["target","currentTarget","srcElement","composedPath"])}}},{package:"$root$",file:"src/common/lockdown/lockdown-events.ts"}],[128,{"./../../../../snaps-utils/src/index.executionenv":221},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeLockdownMore=function(){try{const e=Reflect.ownKeys((new Compartment).globalThis),t=new Set(["eval","Function"]);new Set([...e]).forEach((e=>{const r=Reflect.getOwnPropertyDescriptor(globalThis,e);r&&(r.configurable&&(!function(e){return"set"in e||"get"in e}(r)?Object.defineProperty(globalThis,e,{configurable:!1,writable:!1}):Object.defineProperty(globalThis,e,{configurable:!1})),t.has(e)&&harden(globalThis[e]))}))}catch(e){throw(0,n.logError)("Protecting intrinsics failed:",e),e}};var n=e("./../../../../snaps-utils/src/index.executionenv")}}},{package:"$root$",file:"src/common/lockdown/lockdown-more.ts"}],[129,{"./../../../../snaps-utils/src/index.executionenv":221,"@metamask/post-message-stream":4,"@metamask/utils":31,"nanoid/non-secure":59},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerPool=void 0;var n=e("@metamask/post-message-stream"),s=e("./../../../../snaps-utils/src/index.executionenv"),i=e("@metamask/utils"),o=e("nanoid/non-secure");function a(e,t){l(e,t),t.add(e)}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,r){return m(t,e),r}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,h(t,e))}function p(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,h(t,e),r),r}function h(e,t){return e.get(m(e,t))}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var g=new WeakMap,b=new WeakMap,y=new WeakMap,w=new WeakMap,v=new WeakSet,E=new WeakSet,S=new WeakSet,_=new WeakSet,k=new WeakSet,j=new WeakSet,T=new WeakSet;class O{static initialize(e=new n.WindowPostMessageStream({name:"child",target:"parent",targetWindow:self.parent,targetOrigin:"*"}),t="../executor/bundle.js",r){return new O(e,t,r)}constructor(e,t,r=3){a(this,T),a(this,j),a(this,k),a(this,_),a(this,S),a(this,E),a(this,v),u(this,g,{writable:!0,value:void 0}),u(this,b,{writable:!0,value:void 0}),u(this,y,{writable:!0,value:void 0}),c(this,"pool",[]),c(this,"jobs",new Map),u(this,w,{writable:!0,value:void 0}),p(this,b,e),p(this,y,t),p(this,g,r),d(this,b).on("data",f(this,v,R).bind(this))}}function R(e){const{jobId:t,data:r}=e,n=this.jobs.get(t);n?"terminateJob"!==r.method?n.stream.write(r):f(this,S,P).call(this,t):f(this,E,C).call(this,t).then((()=>{f(this,v,R).call(this,e)})).catch((e=>{(0,s.logError)("[Worker] Error initializing job:",e.toString()),d(this,b).write({jobId:t,data:{name:"command",data:{jsonrpc:"2.0",id:r.id??null,error:{code:-32e3,message:"Internal error"}}}})}))}async function C(e){const t=await f(this,_,A).call(this),r=new n.WebWorkerParentPostMessageStream({worker:t});r.on("data",(t=>{d(this,b).write({data:t,jobId:e})}));const s={id:e,worker:t,stream:r};return this.jobs.set(e,s),s}function P(e){const t=this.jobs.get(e);(0,i.assert)(t,`Job "${e}" not found.`),t.stream.destroy(),t.worker.terminate(),this.jobs.delete(e)}async function A(){0===this.pool.length&&await f(this,k,I).call(this);const e=this.pool.shift();return(0,i.assert)(e,"Worker not found."),await f(this,k,I).call(this),e}async function I(){for(;this.pool.length<d(this,g);){const e=await f(this,j,x).call(this);this.pool.push(e)}}async function x(){return new Worker(await f(this,T,M).call(this),{name:`worker-${(0,o.nanoid)()}`})}async function M(){if(d(this,w))return d(this,w);const e=await fetch(d(this,y)).then((async e=>e.blob())).then(URL.createObjectURL.bind(URL));return p(this,w,e),e}r.WebWorkerPool=O}}},{package:"$root$",file:"src/webworker/pool/WebWorkerPool.ts"}],[130,{"../../common/lockdown/lockdown-events":127,"../../common/lockdown/lockdown-more":128,"./WebWorkerPool":129},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./WebWorkerPool"),s=e("../../common/lockdown/lockdown-events");(0,e("../../common/lockdown/lockdown-more").executeLockdownMore)(),(0,s.executeLockdownEvents)(),n.WebWorkerPool.initialize()}}},{package:"$root$",file:"src/webworker/pool/index.ts"}],[131,{"./internals":137,"@metamask/rpc-errors":11},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserRejectedRequestError=r.UnsupportedMethodError=r.UnauthorizedError=r.TransactionRejected=r.ResourceUnavailableError=r.ResourceNotFoundError=r.ParseError=r.MethodNotSupportedError=r.MethodNotFoundError=r.LimitExceededError=r.InvalidRequestError=r.InvalidParamsError=r.InvalidInputError=r.InternalError=r.DisconnectedError=r.ChainDisconnectedError=void 0;var n=e("@metamask/rpc-errors"),s=e("./internals");r.InternalError=(0,s.createSnapError)(n.rpcErrors.internal),r.InvalidInputError=(0,s.createSnapError)(n.rpcErrors.invalidInput),r.InvalidParamsError=(0,s.createSnapError)(n.rpcErrors.invalidParams),r.InvalidRequestError=(0,s.createSnapError)(n.rpcErrors.invalidRequest),r.LimitExceededError=(0,s.createSnapError)(n.rpcErrors.limitExceeded),r.MethodNotFoundError=(0,s.createSnapError)(n.rpcErrors.methodNotFound),r.MethodNotSupportedError=(0,s.createSnapError)(n.rpcErrors.methodNotSupported),r.ParseError=(0,s.createSnapError)(n.rpcErrors.parse),r.ResourceNotFoundError=(0,s.createSnapError)(n.rpcErrors.resourceNotFound),r.ResourceUnavailableError=(0,s.createSnapError)(n.rpcErrors.resourceUnavailable),r.TransactionRejected=(0,s.createSnapError)(n.rpcErrors.transactionRejected),r.ChainDisconnectedError=(0,s.createSnapError)(n.providerErrors.chainDisconnected),r.DisconnectedError=(0,s.createSnapError)(n.providerErrors.disconnected),r.UnauthorizedError=(0,s.createSnapError)(n.providerErrors.unauthorized),r.UnsupportedMethodError=(0,s.createSnapError)(n.providerErrors.unsupportedMethod),r.UserRejectedRequestError=(0,s.createSnapError)(n.providerErrors.userRejectedRequest)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/error-wrappers.ts"}],[132,{"./internals":137},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SnapError=void 0;var n=e("./internals");function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,a(t,e))}function o(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,a(t,e),r),r}function a(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var c=new WeakMap,u=new WeakMap,l=new WeakMap,f=new WeakMap;class d extends Error{constructor(e,t={}){const r=(0,n.getErrorMessage)(e);super(r),s(this,c,{writable:!0,value:void 0}),s(this,u,{writable:!0,value:void 0}),s(this,l,{writable:!0,value:void 0}),s(this,f,{writable:!0,value:void 0}),o(this,u,r),o(this,c,(0,n.getErrorCode)(e));const i={...(0,n.getErrorData)(e),...t};Object.keys(i).length>0&&o(this,l,i),o(this,f,super.stack)}get name(){return"SnapError"}get code(){return i(this,c)}get message(){return i(this,u)}get data(){return i(this,l)}get stack(){return i(this,f)}toJSON(){return{code:n.SNAP_ERROR_CODE,message:n.SNAP_ERROR_MESSAGE,data:{cause:{code:this.code,message:this.message,stack:this.stack,...this.data?{data:this.data}:{}}}}}serialize(){return this.toJSON()}}r.SnapError=d}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/errors.ts"}],[133,{"./ui":215,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageComponent=async function(e,{width:t,height:r=t,request:o}){(0,n.assert)("number"==typeof t&&t>0,"Expected width to be a number greater than 0."),(0,n.assert)("number"==typeof r&&r>0,"Expected height to be a number greater than 0.");const a=await i(e,o),c=`width="${t}" height="${r}"`;return(0,s.image)(`<svg ${c.trim()} xmlns="http://www.w3.org/2000/svg"><image ${c.trim()} href="${a}" /></svg>`)},r.getImageData=i;var n=e("@metamask/utils"),s=e("./ui");async function i(e,t){const r=await async function(e,t){if("function"!=typeof fetch)throw new Error(`Failed to fetch image data from "${e}": Using this function requires the "endowment:network-access" permission.`);return fetch(e,t).then((async t=>{if(!t.ok)throw new Error(`Failed to fetch image data from "${e}": ${t.status} ${t.statusText}`);const r=await t.blob();return(0,n.assert)("image/jpeg"===r.type||"image/png"===r.type,"Expected image data to be a JPEG or PNG image."),r}))}(e,t),s=new Uint8Array(await r.arrayBuffer());return`data:${r.type};base64,${(0,n.bytesToBase64)(s)}`}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/images.ts"}],[134,{"./error-wrappers":131,"./errors":132,"./images":133,"./internals":137,"./types":193,"./ui":215,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={getErrorData:!0,getErrorMessage:!0,getErrorStack:!0,SNAP_ERROR_CODE:!0,SNAP_ERROR_MESSAGE:!0,literal:!0,union:!0,enumValue:!0,typedUnion:!0,selectiveUnion:!0,assert:!0};Object.defineProperty(r,"SNAP_ERROR_CODE",{enumerable:!0,get:function(){return s.SNAP_ERROR_CODE}}),Object.defineProperty(r,"SNAP_ERROR_MESSAGE",{enumerable:!0,get:function(){return s.SNAP_ERROR_MESSAGE}}),Object.defineProperty(r,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(r,"enumValue",{enumerable:!0,get:function(){return s.enumValue}}),Object.defineProperty(r,"getErrorData",{enumerable:!0,get:function(){return s.getErrorData}}),Object.defineProperty(r,"getErrorMessage",{enumerable:!0,get:function(){return s.getErrorMessage}}),Object.defineProperty(r,"getErrorStack",{enumerable:!0,get:function(){return s.getErrorStack}}),Object.defineProperty(r,"literal",{enumerable:!0,get:function(){return s.literal}}),Object.defineProperty(r,"selectiveUnion",{enumerable:!0,get:function(){return s.selectiveUnion}}),Object.defineProperty(r,"typedUnion",{enumerable:!0,get:function(){return s.typedUnion}}),Object.defineProperty(r,"union",{enumerable:!0,get:function(){return s.union}});var s=e("./internals"),i=e("@metamask/utils"),o=e("./errors");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./error-wrappers");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./images");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./types");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./ui");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/index.ts"}],[135,{"../errors":132},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createSnapError=function(e){return class extends n.SnapError{constructor(t,r){if("object"==typeof t){const r=e();return void super({code:r.code,message:r.message,data:t})}const n=e(t);super({code:n.code,message:n.message,data:r})}}};var n=e("../errors")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/error-wrappers.ts"}],[136,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_ERROR_MESSAGE=r.SNAP_ERROR_CODE=void 0,r.getErrorCode=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"code")&&"number"==typeof e.code&&Number.isInteger(e.code))return e.code;return-32603},r.getErrorData=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"data")&&"object"==typeof e.data&&null!==e.data&&(0,n.isValidJson)(e.data)&&!Array.isArray(e.data))return e.data;return{}},r.getErrorMessage=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message)return e.message;return String(e)},r.getErrorStack=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"stack")&&"string"==typeof e.stack)return e.stack;return undefined};var n=e("@metamask/utils");r.SNAP_ERROR_CODE=-31002,r.SNAP_ERROR_MESSAGE="Snap Error"}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/errors.ts"}],[137,{"./error-wrappers":135,"./errors":136,"./jsx":138,"./structs":139,"./svg":140},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./error-wrappers");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./errors");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./structs");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./jsx");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./svg");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/index.ts"}],[138,{"./structs":139},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nullUnion=function(e){return(0,n.union)(e)};var n=e("./structs")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/jsx.ts"}],[139,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.enumValue=function(e){return i(e)},r.literal=i,r.selectiveUnion=function(e){return new n.Struct({type:"union",schema:null,*entries(t,r){const n=e(t);for(const e of n.entries(t,r))yield e},*refiner(t,r){const n=e(t);yield*n.refiner(t,r)},coercer:(t,r)=>e(t).coercer(t,r),validator:(t,r)=>e(t).validator(t,r)})},r.typedUnion=function(e){const t=e.map((e=>"union"===e.type&&Array.isArray(e.schema)?e.schema:e)).flat(Infinity),r=t.map((({schema:e})=>e.type.type));return new n.Struct({type:"union",schema:t,*entries(e,r){if(!(0,s.isPlainObject)(e)||!(0,s.hasProperty)(e,"type"))return;const{type:i}=e,o=t.find((({schema:e})=>(0,n.is)(i,e.type)));if(o)for(const t of o.entries(e,r))yield t},coercer(e,r){if(!(0,s.isPlainObject)(e)||!(0,s.hasProperty)(e,"type"))return e;const{type:i}=e,o=t.find((({schema:e})=>(0,n.is)(i,e.type)));return o?o.coercer(e,r):e},*refiner(e,r){const s=t.find((({schema:t})=>(0,n.is)(e.type,t.type)));yield*s.refiner(e,r)},validator(e,i){if(!(0,s.isPlainObject)(e)||!(0,s.hasProperty)(e,"type")||"string"!=typeof e.type)return`Expected type to be one of: ${r.join(", ")}, but received: undefined`;const{type:o}=e,a=t.find((({schema:e})=>(0,n.is)(o,e.type)));return a?a.validator(e,i):`Expected type to be one of: ${r.join(", ")}, but received: "${o}"`}})},r.union=function([e,...t]){const r=(0,n.union)([e,...t]);return new n.Struct({...r,schema:[e,...t]})};var n=e("@metamask/superstruct"),s=e("@metamask/utils");function i(e){return(0,n.define)(JSON.stringify(e),(0,n.literal)(e).validator)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/structs.ts"}],[140,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.svg=function(){return(0,n.refine)((0,n.string)(),"SVG",(e=>!!e.includes("<svg")||"Value is not a valid SVG."))};var n=e("@metamask/superstruct")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/svg.ts"}],[141,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>e!==undefined)))}Object.defineProperty(r,"__esModule",{value:!0}),r.createSnapComponent=function(e){return t=>{const{key:r=null,...s}=t;return{type:e,props:n(s),key:r}}}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/component.ts"}],[142,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var n=e("../component");r.Address=(0,n.createSnapComponent)("Address")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Address.ts"}],[143,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Avatar=void 0;var n=e("../component");r.Avatar=(0,n.createSnapComponent)("Avatar")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Avatar.ts"}],[144,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Banner=void 0;var n=e("../component");r.Banner=(0,n.createSnapComponent)("Banner")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Banner.ts"}],[145,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Box=void 0;var n=e("../component");r.Box=(0,n.createSnapComponent)("Box")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Box.ts"}],[146,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Card=void 0;var n=e("../component");r.Card=(0,n.createSnapComponent)("Card")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Card.ts"}],[147,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Container=void 0;var n=e("../component");r.Container=(0,n.createSnapComponent)("Container")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Container.ts"}],[148,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Copyable=void 0;var n=e("../component");r.Copyable=(0,n.createSnapComponent)("Copyable")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Copyable.ts"}],[149,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Divider=void 0;var n=e("../component");r.Divider=(0,n.createSnapComponent)("Divider")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Divider.ts"}],[150,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Footer=void 0;var n=e("../component");r.Footer=(0,n.createSnapComponent)("Footer")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Footer.ts"}],[151,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Heading=void 0;var n=e("../component");r.Heading=(0,n.createSnapComponent)("Heading")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Heading.ts"}],[152,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IconName=r.Icon=void 0;var n=e("../component");r.IconName=function(e){return e.AddSquare="add-square",e.Add="add",e.Arrow2Down="arrow-2-down",e.Arrow2Left="arrow-2-left",e.Arrow2Right="arrow-2-right",e.Arrow2Up="arrow-2-up",e.Arrow2UpRight="arrow-2-up-right",e.ArrowDoubleLeft="arrow-double-left",e.ArrowDoubleRight="arrow-double-right",e.ArrowDown="arrow-down",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.ArrowUp="arrow-up",e.BankToken="bank-token",e.Bank="bank",e.Book="book",e.Bookmark="bookmark",e.Bridge="bridge",e.Calculator="calculator",e.CardPos="card-pos",e.CardToken="card-token",e.Card="card",e.Category="category",e.Chart="chart",e.CheckBold="check-bold",e.Check="check",e.Clock="clock",e.Close="close",e.CodeCircle="code-circle",e.Coin="coin",e.Confirmation="confirmation",e.Connect="connect",e.CopySuccess="copy-success",e.Copy="copy",e.Customize="customize",e.Danger="danger",e.Dark="dark",e.Data="data",e.Diagram="diagram",e.DocumentCode="document-code",e.DragDrop="drag-drop",e.DraggingAnimation="dragging-animation",e.PinningAnimation="pinning-animation",e.Edit="edit",e.Eraser="eraser",e.Ethereum="ethereum",e.Expand="expand",e.Explore="explore",e.Export="export",e.EyeSlash="eye-slash",e.Eye="eye",e.Filter="filter",e.Flag="flag",e.FlashSlash="flash-slash",e.Flash="flash",e.FullCircle="full-circle",e.Gas="gas",e.GlobalSearch="global-search",e.Global="global",e.Graph="graph",e.Hardware="hardware",e.Heart="heart",e.Hierarchy="hierarchy",e.Home="home",e.Import="import",e.Info="info",e.Key="key",e.Light="light",e.Link="link",e.Loading="loading",e.LockCircle="lock-circle",e.LockSlash="lock-slash",e.Lock="lock",e.Login="login",e.Logout="logout",e.Menu="menu",e.MessageQuestion="message-question",e.Messages="messages",e.MinusBold="minus-bold",e.MinusSquare="minus-square",e.Minus="minus",e.Mobile="mobile",e.Money="money",e.Monitor="monitor",e.MoreHorizontal="more-horizontal",e.MoreVertical="more-vertical",e.NotificationCircle="notification-circle",e.Notification="notification",e.PasswordCheck="password-check",e.People="people",e.Pin="pin",e.ProgrammingArrows="programming-arrows",e.Custody="custody",e.Question="question",e.Received="received",e.Refresh="refresh",e.Save="save",e.ScanBarcode="scan-barcode",e.ScanFocus="scan-focus",e.Scan="scan",e.Scroll="scroll",e.Search="search",e.SecurityCard="security-card",e.SecurityCross="security-cross",e.SecurityKey="security-key",e.SecuritySearch="security-search",e.SecuritySlash="security-slash",e.SecurityTick="security-tick",e.SecurityTime="security-time",e.SecurityUser="security-user",e.Security="security",e.Send1="send-1",e.Send2="send-2",e.Setting="setting",e.Slash="slash",e.SnapsMobile="snaps-mobile",e.SnapsPlus="snaps-plus",e.Snaps="snaps",e.Speedometer="speedometer",e.Star="star",e.Stake="stake",e.Student="student",e.SwapHorizontal="swap-horizontal",e.SwapVertical="swap-vertical",e.Tag="tag",e.Tilde="tilde",e.Timer="timer",e.Trash="trash",e.TrendDown="trend-down",e.TrendUp="trend-up",e.UserCircleAdd="user-circle-add",e.UserCircleLink="user-circle-link",e.UserCircleRemove="user-circle-remove",e.UserCircle="user-circle",e.User="user",e.WalletCard="wallet-card",e.WalletMoney="wallet-money",e.Wallet="wallet",e.Warning="warning",e.Twitter="twitter",e.QrCode="qr-code",e.UserCheck="user-check",e.Unpin="unpin",e.Ban="ban",e.Bold="bold",e.CircleX="circle-x",e.Download="download",e.FileIcon="file",e.Flask="flask",e.Plug="plug",e.Share="share",e.Square="square",e.Tint="tint",e.Upload="upload",e.Usb="usb",e.Wifi="wifi",e.PlusMinus="plus-minus",e}({});r.Icon=(0,n.createSnapComponent)("Icon")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Icon.ts"}],[153,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Image=void 0;var n=e("../component");r.Image=(0,n.createSnapComponent)("Image")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Image.ts"}],[154,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Link=void 0;var n=e("../component");r.Link=(0,n.createSnapComponent)("Link")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Link.ts"}],[155,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Row=void 0;var n=e("../component");r.Row=(0,n.createSnapComponent)("Row")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Row.ts"}],[156,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Section=void 0;var n=e("../component");r.Section=(0,n.createSnapComponent)("Section")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Section.ts"}],[157,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Skeleton=void 0;var n=e("../component");r.Skeleton=(0,n.createSnapComponent)("Skeleton")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Skeleton.ts"}],[158,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;var n=e("../component");r.Spinner=(0,n.createSnapComponent)("Spinner")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Spinner.ts"}],[159,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Text=void 0;var n=e("../component");r.Text=(0,n.createSnapComponent)("Text")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Text.ts"}],[160,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Tooltip=void 0;var n=e("../component");r.Tooltip=(0,n.createSnapComponent)("Tooltip")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Tooltip.ts"}],[161,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Value=void 0;var n=e("../component");r.Value=(0,n.createSnapComponent)("Value")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Value.ts"}],[162,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AddressInput=void 0;var n=e("../../component");r.AddressInput=(0,n.createSnapComponent)("AddressInput")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/AddressInput.ts"}],[163,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AssetSelector=void 0;var n=e("../../component");r.AssetSelector=(0,n.createSnapComponent)("AssetSelector")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/AssetSelector.ts"}],[164,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Button=void 0;var n=e("../../component");r.Button=(0,n.createSnapComponent)("Button")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Button.ts"}],[165,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Checkbox=void 0;var n=e("../../component");r.Checkbox=(0,n.createSnapComponent)("Checkbox")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Checkbox.ts"}],[166,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Dropdown=void 0;var n=e("../../component");r.Dropdown=(0,n.createSnapComponent)("Dropdown")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Dropdown.ts"}],[167,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Field=void 0;var n=e("../../component");r.Field=(0,n.createSnapComponent)("Field")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Field.ts"}],[168,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FileInput=void 0;var n=e("../../component");r.FileInput=(0,n.createSnapComponent)("FileInput")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/FileInput.ts"}],[169,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Form=void 0;var n=e("../../component");r.Form=(0,n.createSnapComponent)("Form")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Form.ts"}],[170,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Input=void 0;var n=e("../../component");r.Input=(0,n.createSnapComponent)("Input")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Input.ts"}],[171,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Option=void 0;var n=e("../../component");r.Option=(0,n.createSnapComponent)("Option")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Option.ts"}],[172,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Radio=void 0;var n=e("../../component");r.Radio=(0,n.createSnapComponent)("Radio")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Radio.ts"}],[173,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RadioGroup=void 0;var n=e("../../component");r.RadioGroup=(0,n.createSnapComponent)("RadioGroup")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/RadioGroup.ts"}],[174,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Selector=void 0;var n=e("../../component");r.Selector=(0,n.createSnapComponent)("Selector")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Selector.ts"}],[175,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SelectorOption=void 0;var n=e("../../component");r.SelectorOption=(0,n.createSnapComponent)("SelectorOption")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/SelectorOption.ts"}],[176,{"./AddressInput":162,"./AssetSelector":163,"./Button":164,"./Checkbox":165,"./Dropdown":166,"./Field":167,"./FileInput":168,"./Form":169,"./Input":170,"./Option":171,"./Radio":172,"./RadioGroup":173,"./Selector":174,"./SelectorOption":175},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./AssetSelector");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./Button");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./Checkbox");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./Dropdown");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./Option");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./Radio");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./RadioGroup");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./Field");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./FileInput");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./Form");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./Input");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./Selector");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./SelectorOption");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=e("./AddressInput");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===g[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return g[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/index.ts"}],[177,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Bold=void 0;var n=e("../../component");r.Bold=(0,n.createSnapComponent)("Bold")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/Bold.ts"}],[178,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Italic=void 0;var n=e("../../component");r.Italic=(0,n.createSnapComponent)("Italic")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/Italic.ts"}],[179,{"./Bold":177,"./Italic":178},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Bold");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./Italic");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/index.ts"}],[180,{"./Address":142,"./Avatar":143,"./Banner":144,"./Box":145,"./Card":146,"./Container":147,"./Copyable":148,"./Divider":149,"./Footer":150,"./Heading":151,"./Icon":152,"./Image":153,"./Link":154,"./Row":155,"./Section":156,"./Skeleton":157,"./Spinner":158,"./Text":159,"./Tooltip":160,"./Value":161,"./form":176,"./formatting":179},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./form");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./formatting");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./Address");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./Avatar");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./Box");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./Card");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./Copyable");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./Divider");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./Value");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./Heading");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./Icon");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./Image");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./Link");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=e("./Row");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===g[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return g[e]}}))}));var b=e("./Spinner");Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===b[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=e("./Text");Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===y[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return y[e]}}))}));var w=e("./Tooltip");Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===w[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return w[e]}}))}));var v=e("./Footer");Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===v[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return v[e]}}))}));var E=e("./Container");Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===E[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return E[e]}}))}));var S=e("./Section");Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===S[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return S[e]}}))}));var _=e("./Banner");Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===_[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return _[e]}}))}));var k=e("./Skeleton");Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===k[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return k[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/index.ts"}],[181,{"./component":141,"./components":180,"./jsx-dev-runtime":182,"./jsx-runtime":183,"./validation":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={JSXElementStruct:!0,RootJSXElementStruct:!0,isJSXElement:!0,isJSXElementUnsafe:!0,assertJSXElement:!0,BoxChildStruct:!0,FormChildStruct:!0,FieldChildUnionStruct:!0};Object.defineProperty(r,"BoxChildStruct",{enumerable:!0,get:function(){return c.BoxChildStruct}}),Object.defineProperty(r,"FieldChildUnionStruct",{enumerable:!0,get:function(){return c.FieldChildUnionStruct}}),Object.defineProperty(r,"FormChildStruct",{enumerable:!0,get:function(){return c.FormChildStruct}}),Object.defineProperty(r,"JSXElementStruct",{enumerable:!0,get:function(){return c.JSXElementStruct}}),Object.defineProperty(r,"RootJSXElementStruct",{enumerable:!0,get:function(){return c.RootJSXElementStruct}}),Object.defineProperty(r,"assertJSXElement",{enumerable:!0,get:function(){return c.assertJSXElement}}),Object.defineProperty(r,"isJSXElement",{enumerable:!0,get:function(){return c.isJSXElement}}),Object.defineProperty(r,"isJSXElementUnsafe",{enumerable:!0,get:function(){return c.isJSXElementUnsafe}});var s=e("./component");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./components");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./jsx-runtime");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./jsx-dev-runtime");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./validation")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/index.ts"}],[182,{"./jsx-runtime":183,"./validation":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.jsxDEV=function(e,t,r){const i=(0,n.jsx)(e,t,r);return(0,s.assertJSXElement)(i),i};var n=e("./jsx-runtime"),s=e("./validation")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/jsx-dev-runtime.ts"}],[183,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){if("string"==typeof e)throw new Error(`An HTML element ("${String(e)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!e)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return e({...t,key:r})}Object.defineProperty(r,"__esModule",{value:!0}),r.jsx=n,r.jsxs=function(e,t,r){return n(e,t,r)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/jsx-runtime.ts"}],[184,{"../internals":137,"../types":193,"./components":180,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueStruct=r.TooltipStruct=r.TooltipContentStruct=r.TooltipChildStruct=r.TextStruct=r.TextInputPropsStruct=r.StringElementStruct=r.SpinnerStruct=r.SkeletonStruct=r.SelectorStruct=r.SelectorOptionStruct=r.SectionStruct=r.RowStruct=r.RootJSXElementStruct=r.RadioStruct=r.RadioGroupStruct=r.PasswordInputPropsStruct=r.OptionStruct=r.NumberInputPropsStruct=r.LinkStruct=r.KeyStruct=r.JSXElementStruct=r.ItalicStruct=r.InputStruct=r.ImageStruct=r.IconStruct=r.HeadingStruct=r.GenericInputPropsStruct=r.FormattingStruct=r.FormStruct=r.FormChildStruct=r.FooterStruct=r.FooterChildStruct=r.FileInputStruct=r.FieldStruct=r.FieldChildUnionStruct=r.ElementStruct=r.DropdownStruct=r.DividerStruct=r.CopyableStruct=r.ContainerStruct=r.CheckboxStruct=r.CardStruct=r.ButtonStruct=r.BoxStruct=r.BoxChildrenStruct=r.BoxChildStruct=r.BorderRadiusStruct=r.BoldStruct=r.BannerStruct=r.AvatarStruct=r.AssetSelectorStruct=r.AddressStruct=r.AddressInputStruct=void 0,r.assertJSXElement=function(e){if(!be(e))throw new Error(`Expected a JSX element, but received ${JSON.stringify(e)}. Please refer to the documentation for the supported JSX elements and their props.`)},r.isJSXElement=be,r.isJSXElementUnsafe=function(e){return(0,s.isPlainObject)(e)&&(0,s.hasProperty)(e,"type")&&(0,s.hasProperty)(e,"props")&&(0,s.hasProperty)(e,"key")};var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./components"),o=e("../internals"),a=e("../types");const c=r.KeyStruct=(0,o.nullUnion)([(0,n.string)(),(0,n.number)()]),u=r.StringElementStruct=l([(0,n.string)()]);r.ElementStruct=(0,n.object)({type:(0,n.string)(),props:(0,n.record)((0,n.string)(),s.JsonStruct),key:(0,n.nullable)(c)});function l(e){return function(e){const t=(0,o.selectiveUnion)((r=>Array.isArray(r)?(0,n.array)((0,n.lazy)((()=>t))):e));return t}((0,n.nullable)((0,o.selectiveUnion)((t=>"boolean"==typeof t?(0,n.boolean)():1===e.length?e[0]:(0,o.nullUnion)(e)))))}function f(e){return(0,n.nullable)((0,o.selectiveUnion)((t=>"boolean"==typeof t?(0,n.boolean)():e)))}function d(e,t={}){return(0,n.object)({type:(0,o.literal)(e),props:(0,n.object)(t),key:(0,n.nullable)(c)})}const p=r.BorderRadiusStruct=(0,o.nullUnion)([(0,o.literal)("none"),(0,o.literal)("medium"),(0,o.literal)("full")]),h=r.ImageStruct=d("Image",{src:(0,o.svg)(),alt:(0,n.optional)((0,n.string)()),borderRadius:(0,n.optional)(p)}),m=(0,o.nullUnion)(Object.values(i.IconName).map((e=>(0,o.literal)(e)))),g=r.IconStruct=d("Icon",{name:m,color:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("primary"),(0,o.literal)("muted")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("md"),(0,o.literal)("inherit")]))}),b=r.ButtonStruct=d("Button",{children:l([u,h,g]),name:(0,n.optional)((0,n.string)()),type:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("button"),(0,o.literal)("submit")])),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("primary"),(0,o.literal)("destructive")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md")])),disabled:(0,n.optional)((0,n.boolean)()),loading:(0,n.optional)((0,n.boolean)()),form:(0,n.optional)((0,n.string)())}),y=r.CheckboxStruct=d("Checkbox",{name:(0,n.string)(),checked:(0,n.optional)((0,n.boolean)()),label:(0,n.optional)((0,n.string)()),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("toggle")])),disabled:(0,n.optional)((0,n.boolean)())}),w=r.GenericInputPropsStruct=(0,n.object)({name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),placeholder:(0,n.optional)((0,n.string)()),disabled:(0,n.optional)((0,n.boolean)())}),v=r.TextInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("text")})),E=r.PasswordInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("password")})),S=r.NumberInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("number"),min:(0,n.optional)((0,n.number)()),max:(0,n.optional)((0,n.number)()),step:(0,n.optional)((0,n.number)())})),_=r.InputStruct=(k="Input",j=e=>{if((0,s.isPlainObject)(e)&&(0,s.hasProperty)(e,"type"))switch(e.type){case"text":return v;case"password":return E;case"number":return S;default:return w}return w},(0,n.object)({type:(0,o.literal)(k),props:(0,o.selectiveUnion)(j),key:(0,n.nullable)(c)}));var k,j;const T=r.AddressInputStruct=d("AddressInput",{name:(0,n.string)(),chainId:s.CaipChainIdStruct,value:(0,n.optional)((0,n.string)()),placeholder:(0,n.optional)((0,n.string)()),disabled:(0,n.optional)((0,n.boolean)())}),O=r.OptionStruct=d("Option",{value:(0,n.string)(),children:(0,n.string)(),disabled:(0,n.optional)((0,n.boolean)())}),R=r.DropdownStruct=d("Dropdown",{name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([O]),disabled:(0,n.optional)((0,n.boolean)())}),C=r.AddressStruct=d("Address",{address:(0,o.nullUnion)([s.HexChecksumAddressStruct,s.CaipAccountIdStruct]),truncate:(0,n.optional)((0,n.boolean)()),displayName:(0,n.optional)((0,n.boolean)()),avatar:(0,n.optional)((0,n.boolean)())}),P=r.CardStruct=d("Card",{image:(0,n.optional)((0,n.string)()),title:(0,o.selectiveUnion)((e=>"object"==typeof e?C:(0,n.string)())),description:(0,n.optional)((0,n.string)()),value:(0,n.string)(),extra:(0,n.optional)((0,n.string)())}),A=r.SelectorOptionStruct=d("SelectorOption",{value:(0,n.string)(),children:P,disabled:(0,n.optional)((0,n.boolean)())}),I=r.SelectorStruct=d("Selector",{name:(0,n.string)(),title:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([A]),disabled:(0,n.optional)((0,n.boolean)())}),x=r.AssetSelectorStruct=d("AssetSelector",{name:(0,n.string)(),addresses:a.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct,chainIds:(0,n.optional)((0,n.array)(a.NonEip155ChainIdStruct)),value:(0,n.optional)(a.NonEip155AssetTypeStruct),disabled:(0,n.optional)((0,n.boolean)())}),M=r.RadioStruct=d("Radio",{value:(0,n.string)(),children:(0,n.string)(),disabled:(0,n.optional)((0,n.boolean)())}),N=r.RadioGroupStruct=d("RadioGroup",{name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([M]),disabled:(0,n.optional)((0,n.boolean)())}),L=r.FileInputStruct=d("FileInput",{name:(0,n.string)(),accept:(0,o.nullUnion)([(0,n.optional)((0,n.array)((0,n.string)()))]),compact:(0,n.optional)((0,n.boolean)()),disabled:(0,n.optional)((0,n.boolean)())}),$=[f((0,n.lazy)((()=>he))),_],B=[_,f((0,n.lazy)((()=>he)))],U=[f((0,n.lazy)((()=>he))),_,f((0,n.lazy)((()=>he)))],F=[x,T,_,R,N,L,y,I],D=(r.FieldChildUnionStruct=(0,o.nullUnion)([...F,...$,...B,...U]),(0,o.selectiveUnion)((e=>{const t=Array.isArray(e);return t&&3===e.length?(0,n.tuple)(U):t&&2===e.length?"Box"===(null===(r=e[0])||void 0===r?void 0:r.type)?(0,n.tuple)($):(0,n.tuple)(B):(0,o.typedUnion)(F);var r}))),W=r.FieldStruct=d("Field",{label:(0,n.optional)((0,n.string)()),error:(0,n.optional)((0,n.string)()),children:D}),H=r.BoldStruct=d("Bold",{children:l([(0,n.string)(),(0,n.lazy)((()=>J))])}),J=r.ItalicStruct=d("Italic",{children:l([(0,n.string)(),(0,n.lazy)((()=>H))])}),z=r.FormattingStruct=(0,o.typedUnion)([H,J]),G=r.AvatarStruct=d("Avatar",{address:s.CaipAccountIdStruct,size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md"),(0,o.literal)("lg")]))}),V=r.BoxChildrenStruct=l([(0,n.lazy)((()=>he))]),X=r.BoxStruct=d("Box",{children:V,direction:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("horizontal"),(0,o.literal)("vertical")])),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end"),(0,o.literal)("space-between"),(0,o.literal)("space-around")])),crossAlignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end")])),center:(0,n.optional)((0,n.boolean)())}),q=r.FormChildStruct=V,K=r.FormStruct=d("Form",{children:q,name:(0,n.string)()}),Y=(0,n.refine)(b,"FooterButton",(e=>{if("string"==typeof e.props.children||"boolean"==typeof e.props.children||null===e.props.children)return!0;if(Array.isArray(e.props.children)){if(!e.props.children.some((e=>"string"!=typeof e&&"boolean"!=typeof e&&null!==e)))return!0}return"Footer buttons may only contain text."})),Z=r.SectionStruct=d("Section",{children:V,direction:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("horizontal"),(0,o.literal)("vertical")])),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end"),(0,o.literal)("space-between"),(0,o.literal)("space-around")]))}),Q=r.FooterChildStruct=(0,o.selectiveUnion)((e=>Array.isArray(e)?(0,n.tuple)([Y,Y]):Y)),ee=r.FooterStruct=d("Footer",{children:Q}),te=r.CopyableStruct=d("Copyable",{value:(0,n.string)(),sensitive:(0,n.optional)((0,n.boolean)())}),re=r.DividerStruct=d("Divider"),ne=r.HeadingStruct=d("Heading",{children:u,size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md"),(0,o.literal)("lg")]))}),se=r.LinkStruct=d("Link",{href:(0,n.string)(),children:l([z,(0,n.string)(),g,h,C])}),ie=r.SkeletonStruct=d("Skeleton",{width:(0,n.optional)((0,n.union)([(0,n.number)(),(0,n.string)()])),height:(0,n.optional)((0,n.union)([(0,n.number)(),(0,n.string)()])),borderRadius:(0,n.optional)(p)}),oe=r.TextStruct=d("Text",{children:l([(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():(0,o.typedUnion)([H,J,se,g,ie])))]),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end")])),color:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("alternative"),(0,o.literal)("muted"),(0,o.literal)("error"),(0,o.literal)("success"),(0,o.literal)("warning")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md")])),fontWeight:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("regular"),(0,o.literal)("medium"),(0,o.literal)("bold")]))}),ae=r.ValueStruct=d("Value",{value:(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():oe)),extra:(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():oe))}),ce=r.TooltipChildStruct=(0,o.selectiveUnion)((e=>"boolean"==typeof e?(0,n.boolean)():(0,o.typedUnion)([oe,H,J,se,h,g]))),ue=r.TooltipContentStruct=(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():(0,o.typedUnion)([oe,H,J,se,g]))),le=r.TooltipStruct=d("Tooltip",{children:(0,n.nullable)(ce),content:ue}),fe=r.BannerStruct=d("Banner",{children:l([oe,se,g,b,H,J,ie]),title:(0,n.string)(),severity:(0,n.union)([(0,o.literal)("danger"),(0,o.literal)("info"),(0,o.literal)("success"),(0,o.literal)("warning")])}),de=r.RowStruct=d("Row",{label:(0,n.string)(),children:(0,o.typedUnion)([C,h,oe,ae,se,ie]),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("warning"),(0,o.literal)("critical")])),tooltip:(0,n.optional)((0,n.string)())}),pe=r.SpinnerStruct=d("Spinner"),he=r.BoxChildStruct=(0,o.typedUnion)([C,x,T,H,X,b,te,re,R,N,W,L,K,ne,_,h,J,se,de,pe,oe,le,y,P,g,I,Z,G,fe,ie]),me=r.ContainerStruct=d("Container",{children:(0,o.selectiveUnion)((e=>Array.isArray(e)?(0,n.tuple)([he,ee]):he)),backgroundColor:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("alternative")]))}),ge=(r.RootJSXElementStruct=(0,o.typedUnion)([he,me]),r.JSXElementStruct=(0,o.typedUnion)([x,T,b,_,L,W,K,H,J,C,X,te,re,ne,h,se,de,pe,oe,R,O,N,M,ae,le,y,ee,me,P,g,I,A,Z,G,fe,ie]));function be(e){return(0,n.is)(e,ge)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/validation.ts"}],[185,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NonEip155ChainIdStruct=r.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct=r.NonEip155AssetTypeStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");r.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct=(0,n.refine)((0,n.array)(s.CaipAccountIdStruct),"Non-EIP-155 Matching Addresses Account ID List",(e=>{const t=e.map((e=>(0,s.parseCaipAccountId)(e)));if(!t.every((({address:e,chain:{namespace:r}})=>e===t[0].address&&r===t[0].chain.namespace)))return"All account IDs must have the same address and namespace.";return!t.some((({chain:{namespace:e}})=>e===s.KnownCaipNamespace.Eip155))||"All account IDs must have non-EIP-155 namespaces."})),r.NonEip155ChainIdStruct=(0,n.refine)(s.CaipChainIdStruct,"Non-EIP-155 Chain ID",(e=>{const{namespace:t}=(0,s.parseCaipChainId)(e);return t!==s.KnownCaipNamespace.Eip155||"Chain ID must not be an EIP-155 chain ID."})),r.NonEip155AssetTypeStruct=(0,n.refine)(s.CaipAssetTypeStruct,"Non-EIP-155 Asset Type",(e=>{const{chain:{namespace:t}}=(0,s.parseCaipAssetType)(e);return t!==s.KnownCaipNamespace.Eip155||"Asset type must not be an EIP-155 asset type."}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/caip.ts"}],[186,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/global.ts"}],[187,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OnAssetsConversionResponseStruct=r.AssetConversionStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");const i=r.AssetConversionStruct=(0,n.object)({rate:(0,n.string)(),conversionTime:(0,n.number)(),expirationTime:(0,n.optional)((0,n.number)())});r.OnAssetsConversionResponseStruct=(0,n.object)({conversionRates:(0,n.record)(s.CaipAssetTypeStruct,(0,n.record)(s.CaipAssetTypeStruct,(0,n.nullable)(i)))})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/assets-conversion.ts"}],[188,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OnAssetsLookupResponseStruct=r.FungibleAssetUnitStruct=r.FungibleAssetMetadataStruct=r.AssetIconUrlStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");const i=r.FungibleAssetUnitStruct=(0,n.object)({name:(0,n.string)(),symbol:(0,n.string)(),decimals:(0,n.number)()}),o=r.AssetIconUrlStruct=(0,n.refine)((0,n.string)(),"Asset URL",(e=>{try{const t=new URL(e);return(0,s.assert)("https:"===t.protocol||e.startsWith("data:image/svg+xml;base64,")),!0}catch{return"Invalid URL"}})),a=r.FungibleAssetMetadataStruct=(0,n.object)({name:(0,n.string)(),symbol:(0,n.string)(),fungible:(0,n.literal)(!0),iconUrl:o,units:(0,n.size)((0,n.array)(i),1,Infinity)});r.OnAssetsLookupResponseStruct=(0,n.object)({assets:(0,n.record)(s.CaipAssetTypeStruct,(0,n.nullable)(a))})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/assets-lookup.ts"}],[189,{"./assets-conversion":187,"./assets-lookup":188,"./transaction":190,"./user-input":191},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./assets-conversion");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./assets-lookup");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./transaction");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./user-input");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/index.ts"}],[190,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SeverityLevel=void 0;r.SeverityLevel=function(e){return e.Critical="critical",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/transaction.ts"}],[191,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserInputEventType=r.UserInputEventStruct=r.InputChangeEventStruct=r.GenericEventStruct=r.FormSubmitEventStruct=r.FileUploadEventStruct=r.FileStruct=r.ButtonClickEventStruct=r.AssetSelectorStateStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");let i=r.UserInputEventType=function(e){return e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e.FileUploadEvent="FileUploadEvent",e}({});const o=r.GenericEventStruct=(0,n.object)({type:(0,n.string)(),name:(0,n.optional)((0,n.string)())}),a=r.ButtonClickEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.ButtonClickEvent),name:(0,n.optional)((0,n.string)())})),c=r.FileStruct=(0,n.object)({name:(0,n.string)(),size:(0,n.number)(),contentType:(0,n.string)(),contents:(0,n.string)()}),u=r.AssetSelectorStateStruct=(0,n.object)({asset:s.CaipAssetTypeStruct,name:(0,n.string)(),symbol:(0,n.string)()}),l=r.FormSubmitEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.FormSubmitEvent),value:(0,n.record)((0,n.string)(),(0,n.nullable)((0,n.union)([(0,n.string)(),c,(0,n.boolean)(),u]))),name:(0,n.string)()})),f=r.InputChangeEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.InputChangeEvent),name:(0,n.string)(),value:(0,n.union)([(0,n.string)(),(0,n.boolean)(),u])})),d=r.FileUploadEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.FileUploadEvent),name:(0,n.string)(),file:(0,n.nullable)(c)}));r.UserInputEventStruct=(0,n.union)([a,l,f,d])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/user-input.ts"}],[192,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/images.ts"}],[193,{"./caip":185,"./global":186,"./handlers":189,"./images":192,"./interface":194,"./methods":197},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),e("./global"),e("./images");var n=e("./caip");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./handlers");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./methods");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./interface");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/index.ts"}],[194,{"../internals":137,"../jsx":181,"../ui":215,"./handlers":189,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StateStruct=r.InterfaceStateStruct=r.InterfaceContextStruct=r.FormStateStruct=r.ContentType=r.ComponentOrElementStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./handlers"),o=e("../internals"),a=e("../jsx"),c=e("../ui");const u=r.StateStruct=(0,n.union)([i.AssetSelectorStateStruct,i.FileStruct,(0,n.string)(),(0,n.boolean)(),s.CaipAccountIdStruct]),l=r.FormStateStruct=(0,n.record)((0,n.string)(),(0,n.nullable)(u));r.InterfaceStateStruct=(0,n.record)((0,n.string)(),(0,n.union)([l,(0,n.nullable)(u)])),r.ComponentOrElementStruct=(0,o.selectiveUnion)((e=>(0,s.isObject)(e)&&!(0,s.hasProperty)(e,"props")?c.ComponentStruct:a.RootJSXElementStruct)),r.InterfaceContextStruct=(0,n.record)((0,n.string)(),s.JsonStruct);r.ContentType=function(e){return e.Insight="Insight",e.Dialog="Dialog",e.Notification="Notification",e.HomePage="HomePage",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/interface.ts"}],[195,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogType=void 0;r.DialogType=function(e){return e.Alert="alert",e.Confirmation="confirmation",e.Prompt="prompt",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/dialog.ts"}],[196,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AuxiliaryFileEncoding=void 0;r.AuxiliaryFileEncoding=function(e){return e.Base64="base64",e.Hex="hex",e.Utf8="utf8",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/get-file.ts"}],[197,{"./dialog":195,"./get-file":196,"./manage-state":198,"./notify":199},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./dialog");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./get-file");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./manage-state");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./notify");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/index.ts"}],[198,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ManageStateOperation=void 0;r.ManageStateOperation=function(e){return e.ClearState="clear",e.GetState="get",e.UpdateState="update",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/manage-state.ts"}],[199,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NotificationType=void 0;r.NotificationType=function(e){return e.InApp="inApp",e.Native="native",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/notify.ts"}],[200,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createBuilder=function(e,t,r=[]){return(...s)=>{if(1===s.length&&(0,n.isPlainObject)(s[0])){const r={...s[0],type:e};return(0,n.assertStruct)(r,t,`Invalid ${e} component`),r}const i=r.reduce(((e,t,r)=>s[r]!==undefined?{...e,[t]:s[r]}:e),{type:e});return(0,n.assertStruct)(i,t,`Invalid ${e} component`),i}};var n=e("@metamask/utils")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/builder.ts"}],[201,{"./components":209,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsComponent=function(e){(0,s.assertStruct)(e,i.ComponentStruct,"Invalid component")},r.isComponent=function(e){return(0,n.is)(e,i.ComponentStruct)};var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./components")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/component.ts"}],[202,{"../builder":200,"../nodes":216,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.address=r.AddressStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("../builder"),o=e("../nodes");const a=r.AddressStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Address),value:s.HexChecksumAddressStruct}));r.address=(0,i.createBuilder)(o.NodeType.Address,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/address.ts"}],[203,{"../../internals":137,"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.button=r.ButtonVariant=r.ButtonType=r.ButtonStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");let a=r.ButtonVariant=function(e){return e.Primary="primary",e.Secondary="secondary",e}({}),c=r.ButtonType=function(e){return e.Button="button",e.Submit="submit",e}({});const u=r.ButtonStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Button),value:(0,n.string)(),variant:(0,n.optional)((0,n.union)([(0,s.enumValue)(a.Primary),(0,s.enumValue)(a.Secondary)])),buttonType:(0,n.optional)((0,n.union)([(0,s.enumValue)(c.Button),(0,s.enumValue)(c.Submit)])),name:(0,n.optional)((0,n.string)())}));r.button=(0,i.createBuilder)(o.NodeType.Button,u,["value","buttonType","name","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/button.ts"}],[204,{"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.copyable=r.CopyableStruct=void 0;var n=e("@metamask/superstruct"),s=e("../builder"),i=e("../nodes");const o=r.CopyableStruct=(0,n.assign)(i.LiteralStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Copyable),value:(0,n.string)(),sensitive:(0,n.optional)((0,n.boolean)())}));r.copyable=(0,s.createBuilder)(i.NodeType.Copyable,o,["value","sensitive"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/copyable.ts"}],[205,{"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.divider=r.DividerStruct=void 0;var n=e("@metamask/superstruct"),s=e("../builder"),i=e("../nodes");const o=r.DividerStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Divider)}));r.divider=(0,s.createBuilder)(i.NodeType.Divider,o)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/divider.ts"}],[206,{"../builder":200,"../nodes":216,"./button":203,"./input":210,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.form=r.FormStruct=r.FormComponentStruct=void 0;var n=e("@metamask/superstruct"),s=e("./button"),i=e("./input"),o=e("../builder"),a=e("../nodes");const c=r.FormComponentStruct=(0,n.union)([i.InputStruct,s.ButtonStruct]),u=r.FormStruct=(0,n.assign)(a.NodeStruct,(0,n.object)({type:(0,n.literal)(a.NodeType.Form),children:(0,n.array)(c),name:(0,n.string)()}));r.form=(0,o.createBuilder)(a.NodeType.Form,u,["name","children"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/form.ts"}],[207,{"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.heading=r.HeadingStruct=void 0;var n=e("@metamask/superstruct"),s=e("../builder"),i=e("../nodes");const o=r.HeadingStruct=(0,n.assign)(i.LiteralStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Heading),value:(0,n.string)()}));r.heading=(0,s.createBuilder)(i.NodeType.Heading,o,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/heading.ts"}],[208,{"../../internals":137,"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.image=r.ImageStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.ImageStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Image),value:(0,s.svg)()}));r.image=(0,i.createBuilder)(o.NodeType.Image,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/image.ts"}],[209,{"./address":202,"./button":203,"./copyable":204,"./divider":205,"./form":206,"./heading":207,"./image":208,"./input":210,"./panel":211,"./row":212,"./spinner":213,"./text":214},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={image:!0,ImageStruct:!0,ComponentStruct:!0,panel:!0,PanelStruct:!0};Object.defineProperty(r,"ComponentStruct",{enumerable:!0,get:function(){return u.ComponentStruct}}),Object.defineProperty(r,"ImageStruct",{enumerable:!0,get:function(){return c.ImageStruct}}),Object.defineProperty(r,"PanelStruct",{enumerable:!0,get:function(){return u.PanelStruct}}),Object.defineProperty(r,"image",{enumerable:!0,get:function(){return c.image}}),Object.defineProperty(r,"panel",{enumerable:!0,get:function(){return u.panel}});var s=e("./address");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./copyable");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./divider");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./heading");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./image"),u=e("./panel"),l=e("./spinner");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./text");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./row");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./button");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./input");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./form");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/index.ts"}],[210,{"../../internals":137,"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.input=r.InputType=r.InputStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");let a=r.InputType=function(e){return e.Text="text",e.Number="number",e.Password="password",e}({});const c=r.InputStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Input),value:(0,n.optional)((0,n.string)()),name:(0,n.string)(),inputType:(0,n.optional)((0,n.union)([(0,s.enumValue)(a.Text),(0,s.enumValue)(a.Password),(0,s.enumValue)(a.Number)])),placeholder:(0,n.optional)((0,n.string)()),label:(0,n.optional)((0,n.string)()),error:(0,n.optional)((0,n.string)())}));r.input=(0,i.createBuilder)(o.NodeType.Input,c,["name","inputType","placeholder","value","label"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/input.ts"}],[211,{"../../internals":137,"../builder":200,"../nodes":216,"./address":202,"./button":203,"./copyable":204,"./divider":205,"./form":206,"./heading":207,"./image":208,"./input":210,"./row":212,"./spinner":213,"./text":214,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.panel=r.ParentStruct=r.PanelStruct=r.ComponentStruct=void 0;var n=e("@metamask/superstruct"),s=e("./address"),i=e("./button"),o=e("./copyable"),a=e("./divider"),c=e("./form"),u=e("./heading"),l=e("./image"),f=e("./input"),d=e("./row"),p=e("./spinner"),h=e("./text"),m=e("../../internals"),g=e("../builder"),b=e("../nodes");const y=r.ParentStruct=(0,n.assign)(b.NodeStruct,(0,n.object)({children:(0,n.array)((0,n.lazy)((()=>v)))})),w=r.PanelStruct=(0,n.assign)(y,(0,n.object)({type:(0,n.literal)(b.NodeType.Panel)})),v=(r.panel=(0,g.createBuilder)(b.NodeType.Panel,w,["children"]),r.ComponentStruct=(0,m.typedUnion)([o.CopyableStruct,a.DividerStruct,u.HeadingStruct,l.ImageStruct,w,p.SpinnerStruct,h.TextStruct,d.RowStruct,s.AddressStruct,f.InputStruct,c.FormStruct,i.ButtonStruct]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/panel.ts"}],[212,{"../../internals":137,"../builder":200,"../nodes":216,"./address":202,"./image":208,"./text":214,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.row=r.RowVariant=r.RowStruct=void 0;var n=e("@metamask/superstruct"),s=e("./address"),i=e("./image"),o=e("./text"),a=e("../../internals"),c=e("../builder"),u=e("../nodes");let l=r.RowVariant=function(e){return e.Default="default",e.Critical="critical",e.Warning="warning",e}({});const f=(0,n.union)([i.ImageStruct,o.TextStruct,s.AddressStruct]),d=r.RowStruct=(0,n.assign)(u.LiteralStruct,(0,n.object)({type:(0,n.literal)(u.NodeType.Row),variant:(0,n.optional)((0,n.union)([(0,a.enumValue)(l.Default),(0,a.enumValue)(l.Critical),(0,a.enumValue)(l.Warning)])),label:(0,n.string)(),value:f}));r.row=(0,c.createBuilder)(u.NodeType.Row,d,["label","value","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/row.ts"}],[213,{"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.spinner=r.SpinnerStruct=void 0;var n=e("@metamask/superstruct"),s=e("../builder"),i=e("../nodes");const o=r.SpinnerStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Spinner)}));r.spinner=(0,s.createBuilder)(i.NodeType.Spinner,o)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/spinner.ts"}],[214,{"../builder":200,"../nodes":216,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.text=r.TextStruct=void 0;var n=e("@metamask/superstruct"),s=e("../builder"),i=e("../nodes");const o=r.TextStruct=(0,n.assign)(i.LiteralStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Text),value:(0,n.string)(),markdown:(0,n.optional)((0,n.boolean)())}));r.text=(0,s.createBuilder)(i.NodeType.Text,o,["value","markdown"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/text.ts"}],[215,{"./component":201,"./components":209,"./nodes":216},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={NodeType:!0};Object.defineProperty(r,"NodeType",{enumerable:!0,get:function(){return o.NodeType}});var s=e("./components");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./component");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./nodes")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/index.ts"}],[216,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NodeType=r.NodeStruct=r.LiteralStruct=void 0;var n=e("@metamask/superstruct");r.NodeType=function(e){return e.Copyable="copyable",e.Divider="divider",e.Heading="heading",e.Panel="panel",e.Spinner="spinner",e.Text="text",e.Image="image",e.Row="row",e.Address="address",e.Button="button",e.Input="input",e.Form="form",e}({});const s=r.NodeStruct=(0,n.object)({type:(0,n.string)()});r.LiteralStruct=(0,n.assign)(s,(0,n.object)({value:(0,n.unknown)()}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/nodes.ts"}],[217,{"./../../snaps-sdk/src":134,"@metamask/rpc-errors":11,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WrappedSnapError=r.SNAP_ERROR_WRAPPER_MESSAGE=r.SNAP_ERROR_WRAPPER_CODE=void 0,r.isSerializedSnapError=b,r.isSnapError=g,r.isWrappedSnapError=y,r.unwrapError=function(e){if(y(e)){if((0,i.isJsonRpcError)(e.data.cause)){if(b(e.data.cause)){const{code:t,message:r,stack:n,data:s}=e.data.cause.data.cause;return[w(t,r,n,s),!0]}const{code:t,message:r,stack:n,data:s}=e.data.cause;return[w(t,r,n,s),!1]}return[w(n.errorCodes.rpc.internal,(0,s.getErrorMessage)(e.data.cause),(0,s.getErrorStack)(e.data.cause)),!1]}if((0,i.isJsonRpcError)(e)){const{code:t,message:r,stack:n,data:s}=e;return[w(t,r,n,s),!1]}return[w(n.errorCodes.rpc.internal,(0,s.getErrorMessage)(e),(0,s.getErrorStack)(e)),!1]};var n=e("@metamask/rpc-errors"),s=e("./../../snaps-sdk/src"),i=e("@metamask/utils");function o(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,u(t,e))}function c(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,u(t,e),r),r}function u(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}const l=r.SNAP_ERROR_WRAPPER_CODE=-31001,f=r.SNAP_ERROR_WRAPPER_MESSAGE="Wrapped Snap Error";var d=new WeakMap,p=new WeakMap,h=new WeakMap;class m extends Error{constructor(e){const t=(0,s.getErrorMessage)(e);super(t),o(this,d,{writable:!0,value:void 0}),o(this,p,{writable:!0,value:void 0}),o(this,h,{writable:!0,value:void 0}),c(this,d,e),c(this,p,t),c(this,h,(0,s.getErrorStack)(e))}get name(){return"WrappedSnapError"}get message(){return a(this,p)}get stack(){return a(this,h)}toJSON(){const e=g(a(this,d))?a(this,d).serialize():(0,n.serializeCause)(a(this,d));return{code:l,message:f,data:{cause:e}}}serialize(){return this.toJSON()}}function g(e){if((0,i.isObject)(e)&&"serialize"in e&&"function"==typeof e.serialize){const t=e.serialize();return(0,i.isJsonRpcError)(t)&&b(t)}return!1}function b(e){return e.code===s.SNAP_ERROR_CODE&&e.message===s.SNAP_ERROR_MESSAGE}function y(e){return(0,i.isJsonRpcError)(e)&&e.code===l&&e.message===f}function w(e,t,r,s){const i=new n.JsonRpcError(e,t,s);return i.stack=r,i}r.WrappedSnapError=m}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/errors.ts"}],[218,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_EXPORT_NAMES=r.HandlerType=void 0;let n=r.HandlerType=function(e){return e.OnRpcRequest="onRpcRequest",e.OnSignature="onSignature",e.OnTransaction="onTransaction",e.OnCronjob="onCronjob",e.OnInstall="onInstall",e.OnUpdate="onUpdate",e.OnNameLookup="onNameLookup",e.OnKeyringRequest="onKeyringRequest",e.OnHomePage="onHomePage",e.OnSettingsPage="onSettingsPage",e.OnUserInput="onUserInput",e.OnAssetsLookup="onAssetsLookup",e.OnAssetsConversion="onAssetsConversion",e.OnProtocolRequest="onProtocolRequest",e}({});r.SNAP_EXPORT_NAMES=Object.values(n)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handler-types.ts"}],[219,{"./../../snaps-sdk/src":134,"./handler-types":218,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_EXPORTS=r.OnTransactionSeverityResponseStruct=r.OnTransactionResponseWithIdStruct=r.OnTransactionResponseWithContentStruct=r.OnTransactionResponseStruct=r.OnSignatureResponseStruct=r.OnSettingsPageResponseStruct=r.OnNameLookupResponseStruct=r.OnHomePageResponseWithIdStruct=r.OnHomePageResponseWithContentStruct=r.OnHomePageResponseStruct=r.DomainResolutionStruct=r.DomainResolutionResponseStruct=r.AddressResolutionStruct=r.AddressResolutionResponseStruct=void 0;var n=e("./../../snaps-sdk/src"),s=e("@metamask/superstruct"),i=e("./handler-types");r.SNAP_EXPORTS={[i.HandlerType.OnRpcRequest]:{type:i.HandlerType.OnRpcRequest,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnTransaction]:{type:i.HandlerType.OnTransaction,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnCronjob]:{type:i.HandlerType.OnCronjob,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnNameLookup]:{type:i.HandlerType.OnNameLookup,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnInstall]:{type:i.HandlerType.OnInstall,required:!1,validator:e=>"function"==typeof e},[i.HandlerType.OnUpdate]:{type:i.HandlerType.OnUpdate,required:!1,validator:e=>"function"==typeof e},[i.HandlerType.OnKeyringRequest]:{type:i.HandlerType.OnKeyringRequest,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnHomePage]:{type:i.HandlerType.OnHomePage,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnSettingsPage]:{type:i.HandlerType.OnSettingsPage,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnSignature]:{type:i.HandlerType.OnSignature,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnUserInput]:{type:i.HandlerType.OnUserInput,required:!1,validator:e=>"function"==typeof e},[i.HandlerType.OnAssetsLookup]:{type:i.HandlerType.OnAssetsLookup,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnAssetsConversion]:{type:i.HandlerType.OnAssetsConversion,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnProtocolRequest]:{type:i.HandlerType.OnProtocolRequest,required:!0,validator:e=>"function"==typeof e}};const o=r.OnTransactionSeverityResponseStruct=(0,s.object)({severity:(0,s.optional)((0,s.literal)(n.SeverityLevel.Critical))}),a=r.OnTransactionResponseWithIdStruct=(0,s.assign)(o,(0,s.object)({id:(0,s.string)()})),c=r.OnTransactionResponseWithContentStruct=(0,s.assign)(o,(0,s.object)({content:n.ComponentOrElementStruct})),u=r.OnTransactionResponseStruct=(0,s.nullable)((0,s.union)([c,a])),l=(r.OnSignatureResponseStruct=u,r.OnHomePageResponseWithContentStruct=(0,s.object)({content:n.ComponentOrElementStruct})),f=r.OnHomePageResponseWithIdStruct=(0,s.object)({id:(0,s.string)()}),d=r.OnHomePageResponseStruct=(0,s.union)([l,f]),p=(r.OnSettingsPageResponseStruct=d,r.AddressResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedDomain:(0,s.string)()})),h=r.DomainResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedAddress:(0,s.string)(),domainName:(0,s.string)()}),m=r.AddressResolutionResponseStruct=(0,s.object)({resolvedDomains:(0,s.size)((0,s.array)(p),1,Infinity)}),g=r.DomainResolutionResponseStruct=(0,s.object)({resolvedAddresses:(0,s.size)((0,s.array)(h),1,Infinity)});r.OnNameLookupResponseStruct=(0,s.nullable)((0,s.union)([m,g]))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handlers.ts"}],[220,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createWindow=async function({uri:e,id:t,sandbox:r=!0,testId:n="snaps-iframe"}){return await new Promise(((s,i)=>{const o=document.createElement("iframe");o.setAttribute("id",t),o.setAttribute("data-testid",n),r&&o.setAttribute("sandbox","allow-scripts"),o.setAttribute("src",e),document.body.appendChild(o),o.addEventListener("load",(()=>{o.contentWindow?s(o.contentWindow):i(new Error(`iframe.contentWindow not present on load for job "${t}".`))}))}))}}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/iframe.ts"}],[221,{"./errors":217,"./handler-types":218,"./handlers":219,"./iframe":220,"./logging":222,"./types":223},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./errors");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./handlers");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./handler-types");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./iframe");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./logging");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./types");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/index.executionenv.ts"}],[222,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.logError=function(e,...t){console.error(e,...t)},r.logInfo=function(e,...t){console.log(e,...t)},r.logWarning=function(e,...t){console.warn(e,...t)},r.snapsLogger=void 0;var n=e("@metamask/utils");r.snapsLogger=(0,n.createProjectLogger)("snaps")}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/logging.ts"}],[223,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WALLET_SNAP_PERMISSION_KEY=r.SnapIdPrefixes=r.SNAP_STREAM_NAMES=r.NpmSnapPackageJsonStruct=r.NpmSnapFileNames=r.NameStruct=void 0,r.isValidUrl=function(e,t={}){return(0,n.is)(e,o(t))},r.uri=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");r.NpmSnapFileNames=function(e){return e.PackageJson="package.json",e.Manifest="snap.manifest.json",e}({});const i=r.NameStruct=(0,n.size)((0,s.definePattern)("Snap Name",/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u),1,214);r.NpmSnapPackageJsonStruct=(0,n.type)({version:s.VersionStruct,name:i,main:(0,n.optional)((0,n.size)((0,n.string)(),1,Infinity)),repository:(0,n.optional)((0,n.type)({type:(0,n.size)((0,n.string)(),1,Infinity),url:(0,n.size)((0,n.string)(),1,Infinity)}))});r.SnapIdPrefixes=function(e){return e.npm="npm:",e.local="local:",e}({}),r.SNAP_STREAM_NAMES=function(e){return e.JSON_RPC="jsonRpc",e.COMMAND="command",e}({});const o=(e={})=>(0,n.refine)((0,n.union)([(0,n.string)(),(0,n.instance)(URL)]),"uri",(t=>{try{const r=new URL(t),s=(0,n.type)(e);return(0,n.assert)(r,s),!0}catch{return`Expected URL, got "${t.toString()}".`}}));r.uri=o;r.WALLET_SNAP_PERMISSION_KEY="wallet_snap"}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/types.ts"}]],[130],{resources:{"@metamask/post-message-stream":{globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,removeEventListener:!0},packages:{"@metamask/utils":!0,"readable-stream":!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/snaps-sdk":{globals:{URL:!0,fetch:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/snaps-utils":{globals:{URL:!0,"console.error":!0,"console.log":!0,"console.warn":!0,"document.body.appendChild":!0,"document.createElement":!0},packages:{"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/utils":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>@noble/hashes":!0,"@metamask/utils>@scure/base":!0,"@metamask/utils>pony-cause":!0,"browserify>buffer":!0,"depcheck>semver":!0,"eslint>debug":!0}},"@metamask/utils>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/utils>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"browserify>browser-pack>safe-buffer":{packages:{"browserify>buffer":!0}},"browserify>buffer":{globals:{console:!0},packages:{"browserify>buffer>base64-js":!0,"browserify>buffer>ieee754":!0}},"browserify>events":{globals:{console:!0}},"browserify>process":{globals:{clearTimeout:!0,setTimeout:!0}},"browserify>string_decoder":{packages:{"browserify>browser-pack>safe-buffer":!0}},"depcheck>semver":{globals:{"console.error":!0},packages:{"browserify>process":!0}},"eslint>debug":{globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"browserify>process":!0,"eslint>debug>ms":!0}},"readable-stream":{packages:{"browserify>browser-resolve":!0,"browserify>buffer":!0,"browserify>events":!0,"browserify>inherits":!0,"browserify>process":!0,"browserify>string_decoder":!0,"readable-stream>util-deprecate":!0}},"readable-stream>util-deprecate":{globals:{"console.trace":!0,"console.warn":!0,localStorage:!0}}}});
9
+ var n=e("buffer"),s=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return s(e,t,r)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=o),o.prototype=Object.create(s.prototype),i(s,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=s(e);return t!==undefined?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}}},{package:"browserify>browser-pack>safe-buffer",file:"../../node_modules/safe-buffer/index.js"}],[80,{"../functions/cmp":84,"../internal/debug":109,"../internal/parse-options":112,"../internal/re":113,"./range":81,"./semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){if(t=i(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==undefined?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}t.exports=s;const i=e("../internal/parse-options"),{safeRe:o,t:a}=e("../internal/re"),c=e("../functions/cmp"),u=e("../internal/debug"),l=e("./semver"),f=e("./range")}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/comparator.js"}],[81,{"../internal/constants":108,"../internal/debug":109,"../internal/lrucache":111,"../internal/parse-options":112,"../internal/re":113,"./comparator":80,"./semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/\s+/g;class s{constructor(e,t){if(t=o(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=undefined,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!b(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(s,P(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],d),c("comparator trim",e),e=e.replace(l[f.TILDETRIM],p),c("tilde trim",e),e=e.replace(l[f.CARETTRIM],h),c("caret trim",e);let o=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));n&&(o=o.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),c("range list",o);const u=new Map,y=o.map((e=>new a(e,this.options)));for(const e of y){if(b(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const w=[...u.values()];return i.set(t,w),w}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((r=>w(r,t)&&e.set.some((e=>w(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}t.exports=s;const i=new(e("../internal/lrucache")),o=e("../internal/parse-options"),a=e("./comparator"),c=e("../internal/debug"),u=e("./semver"),{safeRe:l,t:f,comparatorTrimReplace:d,tildeTrimReplace:p,caretTrimReplace:h}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=e("../internal/constants"),b=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let r=!0;const n=e.slice();let s=n.pop();for(;r&&n.length;)r=n.every((e=>s.intersects(e,t))),s=n.pop();return r},v=(e,t)=>(c("comp",e,t),e=k(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=T(e,t),c("xrange",e),e=R(e,t),c("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return c("tilde",e,t,r,n,s,i),E(r)?o="":E(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:E(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(c("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,c("tilde return",o),o}))},k=(e,t)=>e.trim().split(/\s+/).map((e=>j(e,t))).join(" "),j=(e,t)=>{c("caret",e,t);const r=t.loose?l[f.CARETLOOSE]:l[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let a;return c("caret",e,t,r,s,i,o),E(r)?a="":E(s)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:E(i)?a="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(c("replaceCaret pr",o),a="0"===r?"0"===s?`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===s?`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`:`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${i} <${+r+1}.0.0-0`),c("caret return",a),a}))},T=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{c("xRange",e,r,n,s,i,o,a);const u=E(s),l=u||E(i),f=l||E(o),d=f;return"="===n&&d&&(n=""),a=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(i=0),o=0,">"===n?(n=">=",l?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):"<="===n&&(n="<",l?s=+s+1:i=+i+1),"<"===n&&(a="-0"),r=`${n+s}.${i}.${o}${a}`):l?r=`>=${s}.0.0${a} <${+s+1}.0.0-0`:f&&(r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),c("xRange return",r),r}))},R=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),C=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),P=e=>(t,r,n,s,i,o,a,c,u,l,f,d)=>`${r=E(n)?"":E(s)?`>=${n}.0.0${e?"-0":""}`:E(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(f)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${f}-${d}`:e?`<${u}.${l}.${+f+1}-0`:`<=${c}`}`.trim(),A=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/range.js"}],[82,{"../internal/constants":108,"../internal/debug":109,"../internal/identifiers":110,"../internal/parse-options":112,"../internal/re":113},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../internal/debug"),{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=e("../internal/constants"),{safeRe:o,safeSrc:a,t:c}=e("../internal/re"),u=e("../internal/parse-options"),{compareIdentifiers:l}=e("../internal/identifiers");class f{constructor(e,t){if(t=u(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof f||(e=new f(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],s=e.prerelease[t];if(n("prerelease compare",t,r,s),r===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(r===undefined)return-1;if(r!==s)return l(r,s)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{const r=this.build[t],s=e.build[t];if(n("build compare",t,r,s),r===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(r===undefined)return-1;if(r!==s)return l(r,s)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp(`^${this.options.loose?a[c.PRERELEASELOOSE]:a[c.PRERELEASE]}$`),r=`-${t}`.match(e);if(!r||r[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=f}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/semver.js"}],[83,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/clean.js"}],[84,{"./eq":90,"./gt":91,"./gte":92,"./lt":94,"./lte":95,"./neq":98},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./eq"),s=e("./neq"),i=e("./gt"),o=e("./gte"),a=e("./lt"),c=e("./lte");t.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return s(e,r,u);case">":return i(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/cmp.js"}],[85,{"../classes/semver":82,"../internal/re":113,"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("./parse"),{safeRe:i,t:o}=e("../internal/re");t.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;for(;(s=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&s.index+s[0].length===r.index+r[0].length||(r=s),n.lastIndex=s.index+s[1].length+s[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===r)return null;const a=r[2],c=r[3]||"0",u=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${f}`,t)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/coerce.js"}],[86,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>{const s=new n(e,r),i=new n(t,r);return s.compare(i)||s.compareBuild(i)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare-build.js"}],[87,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t)=>n(e,t,!0)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare-loose.js"}],[88,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/compare.js"}],[89,{"./parse.js":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse.js");t.exports=(e,t)=>{const r=n(e,null,!0),s=n(t,null,!0),i=r.compare(s);if(0===i)return null;const o=i>0,a=o?r:s,c=o?s:r,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(a))return c.minor&&!c.patch?"minor":"patch"}const l=u?"pre":"";return r.major!==s.major?l+"major":r.minor!==s.minor?l+"minor":r.patch!==s.patch?l+"patch":"prerelease"}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/diff.js"}],[90,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0===n(e,t,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/eq.js"}],[91,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/gt.js"}],[92,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)>=0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/gte.js"}],[93,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r,s,i)=>{"string"==typeof r&&(i=s,s=r,r=undefined);try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/inc.js"}],[94,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/lt.js"}],[95,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(e,t,r)<=0}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/lte.js"}],[96,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).major}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/major.js"}],[97,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).minor}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/minor.js"}],[98,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>0!==n(e,t,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/neq.js"}],[99,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/parse.js"}],[100,{"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver");t.exports=(e,t)=>new n(e,t).patch}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/patch.js"}],[101,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/prerelease.js"}],[102,{"./compare":88},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare");t.exports=(e,t,r)=>n(t,e,r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/rcompare.js"}],[103,{"./compare-build":86},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/rsort.js"}],[104,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/satisfies.js"}],[105,{"./compare-build":86},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./compare-build");t.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/sort.js"}],[106,{"./parse":99},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./parse");t.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/valid.js"}],[107,{"./classes/comparator":80,"./classes/range":81,"./classes/semver":82,"./functions/clean":83,"./functions/cmp":84,"./functions/coerce":85,"./functions/compare":88,"./functions/compare-build":86,"./functions/compare-loose":87,"./functions/diff":89,"./functions/eq":90,"./functions/gt":91,"./functions/gte":92,"./functions/inc":93,"./functions/lt":94,"./functions/lte":95,"./functions/major":96,"./functions/minor":97,"./functions/neq":98,"./functions/parse":99,"./functions/patch":100,"./functions/prerelease":101,"./functions/rcompare":102,"./functions/rsort":103,"./functions/satisfies":104,"./functions/sort":105,"./functions/valid":106,"./internal/constants":108,"./internal/identifiers":110,"./internal/re":113,"./ranges/gtr":114,"./ranges/intersects":115,"./ranges/ltr":116,"./ranges/max-satisfying":117,"./ranges/min-satisfying":118,"./ranges/min-version":119,"./ranges/outside":120,"./ranges/simplify":121,"./ranges/subset":122,"./ranges/to-comparators":123,"./ranges/valid":124},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./internal/re"),s=e("./internal/constants"),i=e("./classes/semver"),o=e("./internal/identifiers"),a=e("./functions/parse"),c=e("./functions/valid"),u=e("./functions/clean"),l=e("./functions/inc"),f=e("./functions/diff"),d=e("./functions/major"),p=e("./functions/minor"),h=e("./functions/patch"),m=e("./functions/prerelease"),g=e("./functions/compare"),b=e("./functions/rcompare"),y=e("./functions/compare-loose"),w=e("./functions/compare-build"),v=e("./functions/sort"),E=e("./functions/rsort"),S=e("./functions/gt"),_=e("./functions/lt"),k=e("./functions/eq"),j=e("./functions/neq"),T=e("./functions/gte"),O=e("./functions/lte"),R=e("./functions/cmp"),C=e("./functions/coerce"),P=e("./classes/comparator"),A=e("./classes/range"),I=e("./functions/satisfies"),x=e("./ranges/to-comparators"),M=e("./ranges/max-satisfying"),N=e("./ranges/min-satisfying"),L=e("./ranges/min-version"),$=e("./ranges/valid"),B=e("./ranges/outside"),U=e("./ranges/gtr"),F=e("./ranges/ltr"),D=e("./ranges/intersects"),W=e("./ranges/simplify"),H=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:f,major:d,minor:p,patch:h,prerelease:m,compare:g,rcompare:b,compareLoose:y,compareBuild:w,sort:v,rsort:E,gt:S,lt:_,eq:k,neq:j,gte:T,lte:O,cmp:R,coerce:C,Comparator:P,Range:A,satisfies:I,toComparators:x,maxSatisfying:M,minSatisfying:N,minVersion:L,validRange:$,outside:B,gtr:U,ltr:F,intersects:D,simplifyRange:W,subset:H,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}}}},{package:"depcheck>semver",file:"../../node_modules/semver/index.js"}],[108,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/constants.js"}],[109,{_process:63},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){const r="object"==typeof e&&e.env&&e.env.NODE_DEBUG&&/\bsemver\b/i.test(e.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};t.exports=r}).call(this)}).call(this,e("_process"))}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/debug.js"}],[110,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[0-9]+$/,s=(e,t)=>{const r=n.test(e),s=n.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:s,rcompareIdentifiers:(e,t)=>s(t,e)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/identifiers.js"}],[111,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return t===undefined?undefined:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/lrucache.js"}],[112,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=Object.freeze({loose:!0}),s=Object.freeze({});t.exports=e=>e?"object"!=typeof e?n:e:s}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/parse-options.js"}],[113,{"./constants":108,"./debug":109},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=e("./constants"),o=e("./debug"),a=(r=t.exports={}).re=[],c=r.safeRe=[],u=r.src=[],l=r.safeSrc=[],f=r.t={};let d=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",i],[p,s]],m=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),f[e]=s,u[s]=t,l[s]=n,a[s]=new RegExp(t,r?"g":undefined),c[s]=new RegExp(n,r?"g":undefined)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[f.NUMERICIDENTIFIER]}|${u[f.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[f.NUMERICIDENTIFIERLOOSE]}|${u[f.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[f.PRERELEASEIDENTIFIER]}(?:\\.${u[f.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[f.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${u[f.BUILDIDENTIFIER]}(?:\\.${u[f.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[f.MAINVERSION]}${u[f.PRERELEASE]}?${u[f.BUILD]}?`),m("FULL",`^${u[f.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[f.MAINVERSIONLOOSE]}${u[f.PRERELEASELOOSE]}?${u[f.BUILD]}?`),m("LOOSE",`^${u[f.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[f.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:${u[f.PRERELEASE]})?${u[f.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:${u[f.PRERELEASELOOSE]})?${u[f.BUILD]}?)?)?`),m("XRANGE",`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[f.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[f.COERCEPLAIN]+`(?:${u[f.PRERELEASE]})?`+`(?:${u[f.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",u[f.COERCE],!0),m("COERCERTLFULL",u[f.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[f.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",m("TILDE",`^${u[f.LONETILDE]}${u[f.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[f.LONETILDE]}${u[f.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[f.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",m("CARET",`^${u[f.LONECARET]}${u[f.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[f.LONECARET]}${u[f.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[f.GTLT]}\\s*(${u[f.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]}|${u[f.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[f.XRANGEPLAIN]})\\s+-\\s+(${u[f.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[f.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/re.js"}],[114,{"./outside":120},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,">",r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/gtr.js"}],[115,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/intersects.js"}],[116,{"./outside":120},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./outside");t.exports=(e,t,r)=>n(e,t,"<",r)}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/ltr.js"}],[117,{"../classes/range":81,"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/max-satisfying.js"}],[118,{"../classes/range":81,"../classes/semver":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,r)=>{let i=null,o=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new n(i,r)))})),i}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/min-satisfying.js"}],[119,{"../classes/range":81,"../classes/semver":82,"../functions/gt":91},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/range"),i=e("../functions/gt");t.exports=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!i(r,o)||(r=o)}return r&&e.test(r)?r:null}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/min-version.js"}],[120,{"../classes/comparator":80,"../classes/range":81,"../classes/semver":82,"../functions/gt":91,"../functions/gte":92,"../functions/lt":94,"../functions/lte":95,"../functions/satisfies":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/semver"),s=e("../classes/comparator"),{ANY:i}=s,o=e("../classes/range"),a=e("../functions/satisfies"),c=e("../functions/gt"),u=e("../functions/lt"),l=e("../functions/lte"),f=e("../functions/gte");t.exports=(e,t,r,d)=>{let p,h,m,g,b;switch(e=new n(e,d),t=new o(t,d),r){case">":p=c,h=l,m=u,g=">",b=">=";break;case"<":p=u,h=f,m=c,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,a=null;if(n.forEach((e=>{e.semver===i&&(e=new s(">=0.0.0")),o=o||e,a=a||e,p(e.semver,o.semver,d)?o=e:m(e.semver,a.semver,d)&&(a=e)})),o.operator===g||o.operator===b)return!1;if((!a.operator||a.operator===g)&&h(e,a.semver))return!1;if(a.operator===b&&m(e,a.semver))return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/outside.js"}],[121,{"../functions/compare.js":88,"../functions/satisfies.js":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../functions/satisfies.js"),s=e("../functions/compare.js");t.exports=(e,t,r)=>{const i=[];let o=null,a=null;const c=e.sort(((e,t)=>s(e,t,r)));for(const e of c){n(e,t,r)?(a=e,o||(o=e)):(a&&i.push([o,a]),a=null,o=null)}o&&i.push([o,null]);const u=[];for(const[e,t]of i)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/simplify.js"}],[122,{"../classes/comparator.js":80,"../classes/range.js":81,"../functions/compare.js":88,"../functions/satisfies.js":104},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range.js"),s=e("../classes/comparator.js"),{ANY:i}=s,o=e("../functions/satisfies.js"),a=e("../functions/compare.js"),c=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=u}const n=new Set;let s,l,p,h,m,g,b;for(const t of e)">"===t.operator||">="===t.operator?s=f(s,t,r):"<"===t.operator||"<="===t.operator?l=d(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(p=a(s.semver,l.semver,r),p>0)return null;if(0===p&&(">="!==s.operator||"<="!==l.operator))return null}for(const e of n){if(s&&!o(e,String(s),r))return null;if(l&&!o(e,String(l),r))return null;for(const n of t)if(!o(e,String(n),r))return!1;return!0}let y=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,w=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if(h=f(s,e,r),h===e&&h!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(l)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(m=d(l,e,r),m===e&&m!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(e),r))return!1;if(!e.operator&&(l||s)&&0!==p)return!1}return!(s&&g&&!l&&0!==p)&&(!(l&&b&&!s&&0!==p)&&(!w&&!y))},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let s=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/subset.js"}],[123,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/to-comparators.js"}],[124,{"../classes/range":81},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../classes/range");t.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/valid.js"}],[125,{"safe-buffer":79},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("safe-buffer").Buffer,s=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===s||!s(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return r!==undefined?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if((t=this.fillLast(e))===undefined)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var s=o(t[n]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--n<r||-2===s)return 0;if(s=o(t[n]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}}},{package:"browserify>string_decoder",file:"../../node_modules/string_decoder/lib/string_decoder.js"}],[126,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){try{if(!global.localStorage)return!1}catch(e){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}}},{package:"readable-stream>util-deprecate",file:"../../node_modules/util-deprecate/browser.js"}],[127,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeLockdownEvents=function(){s.forEach(((e,t)=>{for(const r of e)Object.defineProperty(t,r,{value:undefined,configurable:!1,writable:!1})}))};var n=e("@metamask/utils");const s=new Map;(0,n.hasProperty)(globalThis,"UIEvent")&&s.set(UIEvent.prototype,["view"]),(0,n.hasProperty)(globalThis,"MutationEvent")&&s.set(MutationEvent.prototype,["relatedNode"]),(0,n.hasProperty)(globalThis,"MessageEvent")&&s.set(MessageEvent.prototype,["source"]),(0,n.hasProperty)(globalThis,"FocusEvent")&&s.set(FocusEvent.prototype,["relatedTarget"]),(0,n.hasProperty)(globalThis,"MouseEvent")&&s.set(MouseEvent.prototype,["relatedTarget","fromElement","toElement"]),(0,n.hasProperty)(globalThis,"TouchEvent")&&s.set(TouchEvent.prototype,["targetTouches","touches"]),(0,n.hasProperty)(globalThis,"Event")&&s.set(Event.prototype,["target","currentTarget","srcElement","composedPath"])}}},{package:"$root$",file:"src/common/lockdown/lockdown-events.ts"}],[128,{"./../../../../snaps-utils/src/index.executionenv":220},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.executeLockdownMore=function(){try{const e=Reflect.ownKeys((new Compartment).globalThis),t=new Set(["eval","Function"]);new Set([...e]).forEach((e=>{const r=Reflect.getOwnPropertyDescriptor(globalThis,e);r&&(r.configurable&&(!function(e){return"set"in e||"get"in e}(r)?Object.defineProperty(globalThis,e,{configurable:!1,writable:!1}):Object.defineProperty(globalThis,e,{configurable:!1})),t.has(e)&&harden(globalThis[e]))}))}catch(e){throw(0,n.logError)("Protecting intrinsics failed:",e),e}};var n=e("./../../../../snaps-utils/src/index.executionenv")}}},{package:"$root$",file:"src/common/lockdown/lockdown-more.ts"}],[129,{"./../../../../snaps-utils/src/index.executionenv":220,"@metamask/post-message-stream":4,"@metamask/utils":31,"nanoid/non-secure":59},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebWorkerPool=void 0;var n=e("@metamask/post-message-stream"),s=e("./../../../../snaps-utils/src/index.executionenv"),i=e("@metamask/utils"),o=e("nanoid/non-secure");function a(e,t){l(e,t),t.add(e)}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t,r){return m(t,e),r}function d(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,h(t,e))}function p(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,h(t,e),r),r}function h(e,t){return e.get(m(e,t))}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var g=new WeakMap,b=new WeakMap,y=new WeakMap,w=new WeakMap,v=new WeakSet,E=new WeakSet,S=new WeakSet,_=new WeakSet,k=new WeakSet,j=new WeakSet,T=new WeakSet;class O{static initialize(e=new n.WindowPostMessageStream({name:"child",target:"parent",targetWindow:self.parent,targetOrigin:"*"}),t="../executor/bundle.js",r){return new O(e,t,r)}constructor(e,t,r=3){a(this,T),a(this,j),a(this,k),a(this,_),a(this,S),a(this,E),a(this,v),u(this,g,{writable:!0,value:void 0}),u(this,b,{writable:!0,value:void 0}),u(this,y,{writable:!0,value:void 0}),c(this,"pool",[]),c(this,"jobs",new Map),u(this,w,{writable:!0,value:void 0}),p(this,b,e),p(this,y,t),p(this,g,r),d(this,b).on("data",f(this,v,R).bind(this))}}function R(e){const{jobId:t,data:r}=e,n=this.jobs.get(t);n?"terminateJob"!==r.method?n.stream.write(r):f(this,S,P).call(this,t):f(this,E,C).call(this,t).then((()=>{f(this,v,R).call(this,e)})).catch((e=>{(0,s.logError)("[Worker] Error initializing job:",e.toString()),d(this,b).write({jobId:t,data:{name:"command",data:{jsonrpc:"2.0",id:r.id??null,error:{code:-32e3,message:"Internal error"}}}})}))}async function C(e){const t=await f(this,_,A).call(this),r=new n.WebWorkerParentPostMessageStream({worker:t});r.on("data",(t=>{d(this,b).write({data:t,jobId:e})}));const s={id:e,worker:t,stream:r};return this.jobs.set(e,s),s}function P(e){const t=this.jobs.get(e);(0,i.assert)(t,`Job "${e}" not found.`),t.stream.destroy(),t.worker.terminate(),this.jobs.delete(e)}async function A(){0===this.pool.length&&await f(this,k,I).call(this);const e=this.pool.shift();return(0,i.assert)(e,"Worker not found."),await f(this,k,I).call(this),e}async function I(){for(;this.pool.length<d(this,g);){const e=await f(this,j,x).call(this);this.pool.push(e)}}async function x(){return new Worker(await f(this,T,M).call(this),{name:`worker-${(0,o.nanoid)()}`})}async function M(){if(d(this,w))return d(this,w);const e=await fetch(d(this,y)).then((async e=>e.blob())).then(URL.createObjectURL.bind(URL));return p(this,w,e),e}r.WebWorkerPool=O}}},{package:"$root$",file:"src/webworker/pool/WebWorkerPool.ts"}],[130,{"../../common/lockdown/lockdown-events":127,"../../common/lockdown/lockdown-more":128,"./WebWorkerPool":129},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("./WebWorkerPool"),s=e("../../common/lockdown/lockdown-events");(0,e("../../common/lockdown/lockdown-more").executeLockdownMore)(),(0,s.executeLockdownEvents)(),n.WebWorkerPool.initialize()}}},{package:"$root$",file:"src/webworker/pool/index.ts"}],[131,{"./internals":137,"@metamask/rpc-errors":11},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserRejectedRequestError=r.UnsupportedMethodError=r.UnauthorizedError=r.TransactionRejected=r.ResourceUnavailableError=r.ResourceNotFoundError=r.ParseError=r.MethodNotSupportedError=r.MethodNotFoundError=r.LimitExceededError=r.InvalidRequestError=r.InvalidParamsError=r.InvalidInputError=r.InternalError=r.DisconnectedError=r.ChainDisconnectedError=void 0;var n=e("@metamask/rpc-errors"),s=e("./internals");r.InternalError=(0,s.createSnapError)(n.rpcErrors.internal),r.InvalidInputError=(0,s.createSnapError)(n.rpcErrors.invalidInput),r.InvalidParamsError=(0,s.createSnapError)(n.rpcErrors.invalidParams),r.InvalidRequestError=(0,s.createSnapError)(n.rpcErrors.invalidRequest),r.LimitExceededError=(0,s.createSnapError)(n.rpcErrors.limitExceeded),r.MethodNotFoundError=(0,s.createSnapError)(n.rpcErrors.methodNotFound),r.MethodNotSupportedError=(0,s.createSnapError)(n.rpcErrors.methodNotSupported),r.ParseError=(0,s.createSnapError)(n.rpcErrors.parse),r.ResourceNotFoundError=(0,s.createSnapError)(n.rpcErrors.resourceNotFound),r.ResourceUnavailableError=(0,s.createSnapError)(n.rpcErrors.resourceUnavailable),r.TransactionRejected=(0,s.createSnapError)(n.rpcErrors.transactionRejected),r.ChainDisconnectedError=(0,s.createSnapError)(n.providerErrors.chainDisconnected),r.DisconnectedError=(0,s.createSnapError)(n.providerErrors.disconnected),r.UnauthorizedError=(0,s.createSnapError)(n.providerErrors.unauthorized),r.UnsupportedMethodError=(0,s.createSnapError)(n.providerErrors.unsupportedMethod),r.UserRejectedRequestError=(0,s.createSnapError)(n.providerErrors.userRejectedRequest)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/error-wrappers.ts"}],[132,{"./internals":137},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SnapError=void 0;var n=e("./internals");function s(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function i(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,a(t,e))}function o(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,a(t,e),r),r}function a(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}var c=new WeakMap,u=new WeakMap,l=new WeakMap,f=new WeakMap;class d extends Error{constructor(e,t={}){const r=(0,n.getErrorMessage)(e);super(r),s(this,c,{writable:!0,value:void 0}),s(this,u,{writable:!0,value:void 0}),s(this,l,{writable:!0,value:void 0}),s(this,f,{writable:!0,value:void 0}),o(this,u,r),o(this,c,(0,n.getErrorCode)(e));const i={...(0,n.getErrorData)(e),...t};Object.keys(i).length>0&&o(this,l,i),o(this,f,super.stack)}get name(){return"SnapError"}get code(){return i(this,c)}get message(){return i(this,u)}get data(){return i(this,l)}get stack(){return i(this,f)}toJSON(){return{code:n.SNAP_ERROR_CODE,message:n.SNAP_ERROR_MESSAGE,data:{cause:{code:this.code,message:this.message,stack:this.stack,...this.data?{data:this.data}:{}}}}}serialize(){return this.toJSON()}}r.SnapError=d}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/errors.ts"}],[133,{"./ui":214,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getImageComponent=async function(e,{width:t,height:r=t,request:o}){(0,n.assert)("number"==typeof t&&t>0,"Expected width to be a number greater than 0."),(0,n.assert)("number"==typeof r&&r>0,"Expected height to be a number greater than 0.");const a=await i(e,o),c=`width="${t}" height="${r}"`;return(0,s.image)(`<svg ${c.trim()} xmlns="http://www.w3.org/2000/svg"><image ${c.trim()} href="${a}" /></svg>`)},r.getImageData=i;var n=e("@metamask/utils"),s=e("./ui");async function i(e,t){const r=await async function(e,t){if("function"!=typeof fetch)throw new Error(`Failed to fetch image data from "${e}": Using this function requires the "endowment:network-access" permission.`);return fetch(e,t).then((async t=>{if(!t.ok)throw new Error(`Failed to fetch image data from "${e}": ${t.status} ${t.statusText}`);const r=await t.blob();return(0,n.assert)("image/jpeg"===r.type||"image/png"===r.type,"Expected image data to be a JPEG or PNG image."),r}))}(e,t),s=new Uint8Array(await r.arrayBuffer());return`data:${r.type};base64,${(0,n.bytesToBase64)(s)}`}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/images.ts"}],[134,{"./error-wrappers":131,"./errors":132,"./images":133,"./internals":137,"./types":192,"./ui":214,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={getErrorData:!0,getErrorMessage:!0,getErrorStack:!0,SNAP_ERROR_CODE:!0,SNAP_ERROR_MESSAGE:!0,literal:!0,union:!0,enumValue:!0,typedUnion:!0,selectiveUnion:!0,nonEmptyRecord:!0,assert:!0};Object.defineProperty(r,"SNAP_ERROR_CODE",{enumerable:!0,get:function(){return s.SNAP_ERROR_CODE}}),Object.defineProperty(r,"SNAP_ERROR_MESSAGE",{enumerable:!0,get:function(){return s.SNAP_ERROR_MESSAGE}}),Object.defineProperty(r,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(r,"enumValue",{enumerable:!0,get:function(){return s.enumValue}}),Object.defineProperty(r,"getErrorData",{enumerable:!0,get:function(){return s.getErrorData}}),Object.defineProperty(r,"getErrorMessage",{enumerable:!0,get:function(){return s.getErrorMessage}}),Object.defineProperty(r,"getErrorStack",{enumerable:!0,get:function(){return s.getErrorStack}}),Object.defineProperty(r,"literal",{enumerable:!0,get:function(){return s.literal}}),Object.defineProperty(r,"nonEmptyRecord",{enumerable:!0,get:function(){return s.nonEmptyRecord}}),Object.defineProperty(r,"selectiveUnion",{enumerable:!0,get:function(){return s.selectiveUnion}}),Object.defineProperty(r,"typedUnion",{enumerable:!0,get:function(){return s.typedUnion}}),Object.defineProperty(r,"union",{enumerable:!0,get:function(){return s.union}});var s=e("./internals"),i=e("@metamask/utils"),o=e("./errors");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./error-wrappers");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./images");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./types");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./ui");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/index.ts"}],[135,{"../errors":132},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createSnapError=function(e){return class extends n.SnapError{constructor(t,r){if("object"==typeof t){const r=e();return void super({code:r.code,message:r.message,data:t})}const n=e(t);super({code:n.code,message:n.message,data:r})}}};var n=e("../errors")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/error-wrappers.ts"}],[136,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_ERROR_MESSAGE=r.SNAP_ERROR_CODE=void 0,r.getErrorCode=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"code")&&"number"==typeof e.code&&Number.isInteger(e.code))return e.code;return-32603},r.getErrorData=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"data")&&"object"==typeof e.data&&null!==e.data&&(0,n.isValidJson)(e.data)&&!Array.isArray(e.data))return e.data;return{}},r.getErrorMessage=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"message")&&"string"==typeof e.message)return e.message;return String(e)},r.getErrorStack=function(e){if((0,n.isObject)(e)&&(0,n.hasProperty)(e,"stack")&&"string"==typeof e.stack)return e.stack;return undefined};var n=e("@metamask/utils");r.SNAP_ERROR_CODE=-31002,r.SNAP_ERROR_MESSAGE="Snap Error"}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/errors.ts"}],[137,{"./error-wrappers":135,"./errors":136,"./jsx":138,"./structs":139,"./svg":140},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./error-wrappers");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./errors");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./structs");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./jsx");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./svg");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/index.ts"}],[138,{"./structs":139},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nullUnion=function(e){return(0,n.union)(e)};var n=e("./structs")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/jsx.ts"}],[139,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.enumValue=function(e){return i(e)},r.literal=i,r.nonEmptyRecord=function(e,t){return(0,n.refine)((0,n.record)(e,t),"Non-empty record",(e=>!Array.isArray(e)&&Object.keys(e).length>0))},r.selectiveUnion=function(e){return new n.Struct({type:"union",schema:null,*entries(t,r){const n=e(t);for(const e of n.entries(t,r))yield e},*refiner(t,r){const n=e(t);yield*n.refiner(t,r)},coercer:(t,r)=>e(t).coercer(t,r),validator:(t,r)=>e(t).validator(t,r)})},r.typedUnion=function(e){const t=e.map((e=>"union"===e.type&&Array.isArray(e.schema)?e.schema:e)).flat(Infinity),r=t.map((({schema:e})=>e.type.type)),i=t.reduce(((e,t)=>(e[JSON.parse(t.schema.type.type)]=t,e)),{});return new n.Struct({type:"union",schema:t,*entries(e,t){if(!(0,s.isObject)(e)||!(0,s.hasProperty)(e,"type")||"string"!=typeof e.type)return;const{type:r}=e,n=i[r];if(n)for(const r of n.entries(e,t))yield r},coercer(e,t){if(!(0,s.isObject)(e)||!(0,s.hasProperty)(e,"type")||"string"!=typeof e.type)return e;const{type:r}=e,n=i[r];return n?n.coercer(e,t):e},*refiner(e,t){const r=i[e.type];yield*r.refiner(e,t)},validator(e,t){if(!(0,s.isObject)(e)||!(0,s.hasProperty)(e,"type")||"string"!=typeof e.type)return`Expected type to be one of: ${r.join(", ")}, but received: undefined`;const{type:n}=e,o=i[n];return o?o.validator(e,t):`Expected type to be one of: ${r.join(", ")}, but received: "${n}"`}})},r.union=function([e,...t]){const r=(0,n.union)([e,...t]);return new n.Struct({...r,schema:[e,...t]})};var n=e("@metamask/superstruct"),s=e("@metamask/utils");function i(e){return(0,n.define)(JSON.stringify(e),(0,n.literal)(e).validator)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/structs.ts"}],[140,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.svg=function(){return(0,n.refine)((0,n.string)(),"SVG",(e=>!!e.includes("<svg")||"Value is not a valid SVG."))};var n=e("@metamask/superstruct")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/svg.ts"}],[141,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>e!==undefined)))}Object.defineProperty(r,"__esModule",{value:!0}),r.createSnapComponent=function(e){return t=>{const{key:r=null,...s}=t;return{type:e,props:n(s),key:r}}}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/component.ts"}],[142,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var n=e("../component");r.Address=(0,n.createSnapComponent)("Address")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Address.ts"}],[143,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Avatar=void 0;var n=e("../component");r.Avatar=(0,n.createSnapComponent)("Avatar")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Avatar.ts"}],[144,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Banner=void 0;var n=e("../component");r.Banner=(0,n.createSnapComponent)("Banner")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Banner.ts"}],[145,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Box=void 0;var n=e("../component");r.Box=(0,n.createSnapComponent)("Box")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Box.ts"}],[146,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Card=void 0;var n=e("../component");r.Card=(0,n.createSnapComponent)("Card")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Card.ts"}],[147,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Container=void 0;var n=e("../component");r.Container=(0,n.createSnapComponent)("Container")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Container.ts"}],[148,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Copyable=void 0;var n=e("../component");r.Copyable=(0,n.createSnapComponent)("Copyable")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Copyable.ts"}],[149,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Divider=void 0;var n=e("../component");r.Divider=(0,n.createSnapComponent)("Divider")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Divider.ts"}],[150,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Footer=void 0;var n=e("../component");r.Footer=(0,n.createSnapComponent)("Footer")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Footer.ts"}],[151,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Heading=void 0;var n=e("../component");r.Heading=(0,n.createSnapComponent)("Heading")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Heading.ts"}],[152,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IconName=r.Icon=void 0;var n=e("../component");r.IconName=function(e){return e.AddSquare="add-square",e.Add="add",e.Arrow2Down="arrow-2-down",e.Arrow2Left="arrow-2-left",e.Arrow2Right="arrow-2-right",e.Arrow2Up="arrow-2-up",e.Arrow2UpRight="arrow-2-up-right",e.ArrowDoubleLeft="arrow-double-left",e.ArrowDoubleRight="arrow-double-right",e.ArrowDown="arrow-down",e.ArrowLeft="arrow-left",e.ArrowRight="arrow-right",e.ArrowUp="arrow-up",e.BankToken="bank-token",e.Bank="bank",e.Book="book",e.Bookmark="bookmark",e.Bridge="bridge",e.Calculator="calculator",e.CardPos="card-pos",e.CardToken="card-token",e.Card="card",e.Category="category",e.Chart="chart",e.CheckBold="check-bold",e.Check="check",e.Clock="clock",e.Close="close",e.CodeCircle="code-circle",e.Coin="coin",e.Confirmation="confirmation",e.Connect="connect",e.CopySuccess="copy-success",e.Copy="copy",e.Customize="customize",e.Danger="danger",e.Dark="dark",e.Data="data",e.Diagram="diagram",e.DocumentCode="document-code",e.DragDrop="drag-drop",e.DraggingAnimation="dragging-animation",e.PinningAnimation="pinning-animation",e.Edit="edit",e.Eraser="eraser",e.Ethereum="ethereum",e.Expand="expand",e.Explore="explore",e.Export="export",e.EyeSlash="eye-slash",e.Eye="eye",e.Filter="filter",e.Flag="flag",e.FlashSlash="flash-slash",e.Flash="flash",e.FullCircle="full-circle",e.Gas="gas",e.GlobalSearch="global-search",e.Global="global",e.Graph="graph",e.Hardware="hardware",e.Heart="heart",e.Hierarchy="hierarchy",e.Home="home",e.Import="import",e.Info="info",e.Key="key",e.Light="light",e.Link="link",e.Loading="loading",e.LockCircle="lock-circle",e.LockSlash="lock-slash",e.Lock="lock",e.Login="login",e.Logout="logout",e.Menu="menu",e.MessageQuestion="message-question",e.Messages="messages",e.MinusBold="minus-bold",e.MinusSquare="minus-square",e.Minus="minus",e.Mobile="mobile",e.Money="money",e.Monitor="monitor",e.MoreHorizontal="more-horizontal",e.MoreVertical="more-vertical",e.NotificationCircle="notification-circle",e.Notification="notification",e.PasswordCheck="password-check",e.People="people",e.Pin="pin",e.ProgrammingArrows="programming-arrows",e.Custody="custody",e.Question="question",e.Received="received",e.Refresh="refresh",e.Save="save",e.ScanBarcode="scan-barcode",e.ScanFocus="scan-focus",e.Scan="scan",e.Scroll="scroll",e.Search="search",e.SecurityCard="security-card",e.SecurityCross="security-cross",e.SecurityKey="security-key",e.SecuritySearch="security-search",e.SecuritySlash="security-slash",e.SecurityTick="security-tick",e.SecurityTime="security-time",e.SecurityUser="security-user",e.Security="security",e.Send1="send-1",e.Send2="send-2",e.Setting="setting",e.Slash="slash",e.SnapsMobile="snaps-mobile",e.SnapsPlus="snaps-plus",e.Snaps="snaps",e.Speedometer="speedometer",e.Star="star",e.Stake="stake",e.Student="student",e.SwapHorizontal="swap-horizontal",e.SwapVertical="swap-vertical",e.Tag="tag",e.Tilde="tilde",e.Timer="timer",e.Trash="trash",e.TrendDown="trend-down",e.TrendUp="trend-up",e.UserCircleAdd="user-circle-add",e.UserCircleLink="user-circle-link",e.UserCircleRemove="user-circle-remove",e.UserCircle="user-circle",e.User="user",e.WalletCard="wallet-card",e.WalletMoney="wallet-money",e.Wallet="wallet",e.Warning="warning",e.Twitter="twitter",e.QrCode="qr-code",e.UserCheck="user-check",e.Unpin="unpin",e.Ban="ban",e.Bold="bold",e.CircleX="circle-x",e.Download="download",e.FileIcon="file",e.Flask="flask",e.Plug="plug",e.Share="share",e.Square="square",e.Tint="tint",e.Upload="upload",e.Usb="usb",e.Wifi="wifi",e.PlusMinus="plus-minus",e}({});r.Icon=(0,n.createSnapComponent)("Icon")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Icon.ts"}],[153,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Image=void 0;var n=e("../component");r.Image=(0,n.createSnapComponent)("Image")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Image.ts"}],[154,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Link=void 0;var n=e("../component");r.Link=(0,n.createSnapComponent)("Link")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Link.ts"}],[155,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Row=void 0;var n=e("../component");r.Row=(0,n.createSnapComponent)("Row")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Row.ts"}],[156,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Section=void 0;var n=e("../component");r.Section=(0,n.createSnapComponent)("Section")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Section.ts"}],[157,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Skeleton=void 0;var n=e("../component");r.Skeleton=(0,n.createSnapComponent)("Skeleton")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Skeleton.ts"}],[158,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;var n=e("../component");r.Spinner=(0,n.createSnapComponent)("Spinner")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Spinner.ts"}],[159,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Text=void 0;var n=e("../component");r.Text=(0,n.createSnapComponent)("Text")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Text.ts"}],[160,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Tooltip=void 0;var n=e("../component");r.Tooltip=(0,n.createSnapComponent)("Tooltip")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Tooltip.ts"}],[161,{"../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Value=void 0;var n=e("../component");r.Value=(0,n.createSnapComponent)("Value")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/Value.ts"}],[162,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AddressInput=void 0;var n=e("../../component");r.AddressInput=(0,n.createSnapComponent)("AddressInput")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/AddressInput.ts"}],[163,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AssetSelector=void 0;var n=e("../../component");r.AssetSelector=(0,n.createSnapComponent)("AssetSelector")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/AssetSelector.ts"}],[164,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Button=void 0;var n=e("../../component");r.Button=(0,n.createSnapComponent)("Button")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Button.ts"}],[165,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Checkbox=void 0;var n=e("../../component");r.Checkbox=(0,n.createSnapComponent)("Checkbox")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Checkbox.ts"}],[166,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Dropdown=void 0;var n=e("../../component");r.Dropdown=(0,n.createSnapComponent)("Dropdown")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Dropdown.ts"}],[167,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Field=void 0;var n=e("../../component");r.Field=(0,n.createSnapComponent)("Field")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Field.ts"}],[168,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FileInput=void 0;var n=e("../../component");r.FileInput=(0,n.createSnapComponent)("FileInput")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/FileInput.ts"}],[169,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Form=void 0;var n=e("../../component");r.Form=(0,n.createSnapComponent)("Form")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Form.ts"}],[170,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Input=void 0;var n=e("../../component");r.Input=(0,n.createSnapComponent)("Input")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Input.ts"}],[171,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Option=void 0;var n=e("../../component");r.Option=(0,n.createSnapComponent)("Option")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Option.ts"}],[172,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Radio=void 0;var n=e("../../component");r.Radio=(0,n.createSnapComponent)("Radio")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Radio.ts"}],[173,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RadioGroup=void 0;var n=e("../../component");r.RadioGroup=(0,n.createSnapComponent)("RadioGroup")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/RadioGroup.ts"}],[174,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Selector=void 0;var n=e("../../component");r.Selector=(0,n.createSnapComponent)("Selector")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/Selector.ts"}],[175,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SelectorOption=void 0;var n=e("../../component");r.SelectorOption=(0,n.createSnapComponent)("SelectorOption")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/SelectorOption.ts"}],[176,{"./AddressInput":162,"./AssetSelector":163,"./Button":164,"./Checkbox":165,"./Dropdown":166,"./Field":167,"./FileInput":168,"./Form":169,"./Input":170,"./Option":171,"./Radio":172,"./RadioGroup":173,"./Selector":174,"./SelectorOption":175},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./AssetSelector");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./Button");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./Checkbox");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./Dropdown");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./Option");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./Radio");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./RadioGroup");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./Field");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./FileInput");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./Form");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./Input");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./Selector");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./SelectorOption");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=e("./AddressInput");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===g[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return g[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/form/index.ts"}],[177,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Bold=void 0;var n=e("../../component");r.Bold=(0,n.createSnapComponent)("Bold")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/Bold.ts"}],[178,{"../../component":141},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Italic=void 0;var n=e("../../component");r.Italic=(0,n.createSnapComponent)("Italic")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/Italic.ts"}],[179,{"./Bold":177,"./Italic":178},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./Bold");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./Italic");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/formatting/index.ts"}],[180,{"./Address":142,"./Avatar":143,"./Banner":144,"./Box":145,"./Card":146,"./Container":147,"./Copyable":148,"./Divider":149,"./Footer":150,"./Heading":151,"./Icon":152,"./Image":153,"./Link":154,"./Row":155,"./Section":156,"./Skeleton":157,"./Spinner":158,"./Text":159,"./Tooltip":160,"./Value":161,"./form":176,"./formatting":179},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./form");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./formatting");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./Address");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./Avatar");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./Box");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./Card");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=e("./Copyable");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===u[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}}))}));var l=e("./Divider");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./Value");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./Heading");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./Icon");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./Image");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./Link");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=e("./Row");Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===g[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return g[e]}}))}));var b=e("./Spinner");Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===b[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return b[e]}}))}));var y=e("./Text");Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===y[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return y[e]}}))}));var w=e("./Tooltip");Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===w[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return w[e]}}))}));var v=e("./Footer");Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===v[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return v[e]}}))}));var E=e("./Container");Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===E[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return E[e]}}))}));var S=e("./Section");Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===S[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return S[e]}}))}));var _=e("./Banner");Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===_[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return _[e]}}))}));var k=e("./Skeleton");Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===k[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return k[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/components/index.ts"}],[181,{"./component":141,"./components":180,"./jsx-dev-runtime":182,"./jsx-runtime":183,"./validation":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={JSXElementStruct:!0,RootJSXElementStruct:!0,isJSXElement:!0,isJSXElementUnsafe:!0,assertJSXElement:!0,BoxChildStruct:!0,FormChildStruct:!0,FieldChildUnionStruct:!0};Object.defineProperty(r,"BoxChildStruct",{enumerable:!0,get:function(){return c.BoxChildStruct}}),Object.defineProperty(r,"FieldChildUnionStruct",{enumerable:!0,get:function(){return c.FieldChildUnionStruct}}),Object.defineProperty(r,"FormChildStruct",{enumerable:!0,get:function(){return c.FormChildStruct}}),Object.defineProperty(r,"JSXElementStruct",{enumerable:!0,get:function(){return c.JSXElementStruct}}),Object.defineProperty(r,"RootJSXElementStruct",{enumerable:!0,get:function(){return c.RootJSXElementStruct}}),Object.defineProperty(r,"assertJSXElement",{enumerable:!0,get:function(){return c.assertJSXElement}}),Object.defineProperty(r,"isJSXElement",{enumerable:!0,get:function(){return c.isJSXElement}}),Object.defineProperty(r,"isJSXElementUnsafe",{enumerable:!0,get:function(){return c.isJSXElementUnsafe}});var s=e("./component");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./components");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./jsx-runtime");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./jsx-dev-runtime");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./validation")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/index.ts"}],[182,{"./jsx-runtime":183,"./validation":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.jsxDEV=function(e,t,r){const i=(0,n.jsx)(e,t,r);return(0,s.assertJSXElement)(i),i};var n=e("./jsx-runtime"),s=e("./validation")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/jsx-dev-runtime.ts"}],[183,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){if("string"==typeof e)throw new Error(`An HTML element ("${String(e)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!e)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return e({...t,key:r})}Object.defineProperty(r,"__esModule",{value:!0}),r.jsx=n,r.jsxs=function(e,t,r){return n(e,t,r)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/jsx-runtime.ts"}],[184,{"../internals":137,"../types":192,"./components":180,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueStruct=r.TooltipStruct=r.TooltipContentStruct=r.TooltipChildStruct=r.TextStruct=r.TextInputPropsStruct=r.StringElementStruct=r.SpinnerStruct=r.SkeletonStruct=r.SelectorStruct=r.SelectorOptionStruct=r.SectionStruct=r.RowStruct=r.RootJSXElementStruct=r.RadioStruct=r.RadioGroupStruct=r.PasswordInputPropsStruct=r.OptionStruct=r.NumberInputPropsStruct=r.LinkStruct=r.KeyStruct=r.JSXElementStruct=r.ItalicStruct=r.InputStruct=r.ImageStruct=r.IconStruct=r.HeadingStruct=r.GenericInputPropsStruct=r.FormattingStruct=r.FormStruct=r.FormChildStruct=r.FooterStruct=r.FooterChildStruct=r.FileInputStruct=r.FieldStruct=r.FieldChildUnionStruct=r.ElementStruct=r.DropdownStruct=r.DividerStruct=r.CopyableStruct=r.ContainerStruct=r.CheckboxStruct=r.CardStruct=r.ButtonStruct=r.BoxStruct=r.BoxChildrenStruct=r.BoxChildStruct=r.BorderRadiusStruct=r.BoldStruct=r.BannerStruct=r.AvatarStruct=r.AssetSelectorStruct=r.AddressStruct=r.AddressInputStruct=void 0,r.assertJSXElement=function(e){if(!be(e))throw new Error(`Expected a JSX element, but received ${JSON.stringify(e)}. Please refer to the documentation for the supported JSX elements and their props.`)},r.isJSXElement=be,r.isJSXElementUnsafe=function(e){return(0,s.isPlainObject)(e)&&(0,s.hasProperty)(e,"type")&&(0,s.hasProperty)(e,"props")&&(0,s.hasProperty)(e,"key")};var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./components"),o=e("../internals"),a=e("../types");const c=r.KeyStruct=(0,o.nullUnion)([(0,n.string)(),(0,n.number)()]),u=r.StringElementStruct=l([(0,n.string)()]);r.ElementStruct=(0,n.object)({type:(0,n.string)(),props:(0,n.record)((0,n.string)(),s.JsonStruct),key:(0,n.nullable)(c)});function l(e){const t=1===e.length?e[0]:(0,o.nullUnion)(e);return function(e){const t=(0,o.selectiveUnion)((r=>Array.isArray(r)?(0,n.array)((0,n.lazy)((()=>t))):e));return t}((0,n.nullable)((0,o.selectiveUnion)((e=>"boolean"==typeof e?(0,n.boolean)():t))))}function f(e){return(0,n.nullable)((0,o.selectiveUnion)((t=>"boolean"==typeof t?(0,n.boolean)():e)))}function d(e,t={}){return(0,n.object)({type:(0,o.literal)(e),props:(0,n.object)(t),key:(0,n.nullable)(c)})}const p=r.BorderRadiusStruct=(0,o.nullUnion)([(0,o.literal)("none"),(0,o.literal)("medium"),(0,o.literal)("full")]),h=r.ImageStruct=d("Image",{src:(0,o.svg)(),alt:(0,n.optional)((0,n.string)()),borderRadius:(0,n.optional)(p)}),m=(0,o.nullUnion)(Object.values(i.IconName).map((e=>(0,o.literal)(e)))),g=r.IconStruct=d("Icon",{name:m,color:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("primary"),(0,o.literal)("muted")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("md"),(0,o.literal)("inherit")]))}),b=r.ButtonStruct=d("Button",{children:l([u,h,g]),name:(0,n.optional)((0,n.string)()),type:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("button"),(0,o.literal)("submit")])),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("primary"),(0,o.literal)("destructive")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md")])),disabled:(0,n.optional)((0,n.boolean)()),loading:(0,n.optional)((0,n.boolean)()),form:(0,n.optional)((0,n.string)())}),y=r.CheckboxStruct=d("Checkbox",{name:(0,n.string)(),checked:(0,n.optional)((0,n.boolean)()),label:(0,n.optional)((0,n.string)()),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("toggle")])),disabled:(0,n.optional)((0,n.boolean)())}),w=r.GenericInputPropsStruct=(0,n.object)({name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),placeholder:(0,n.optional)((0,n.string)()),disabled:(0,n.optional)((0,n.boolean)())}),v=r.TextInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("text")})),E=r.PasswordInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("password")})),S=r.NumberInputPropsStruct=(0,n.assign)(w,(0,n.object)({type:(0,o.literal)("number"),min:(0,n.optional)((0,n.number)()),max:(0,n.optional)((0,n.number)()),step:(0,n.optional)((0,n.number)())})),_=r.InputStruct=(k="Input",j=e=>{if((0,s.isPlainObject)(e)&&(0,s.hasProperty)(e,"type"))switch(e.type){case"text":return v;case"password":return E;case"number":return S;default:return w}return w},(0,n.object)({type:(0,o.literal)(k),props:(0,o.selectiveUnion)(j),key:(0,n.nullable)(c)}));var k,j;const T=r.AddressInputStruct=d("AddressInput",{name:(0,n.string)(),chainId:s.CaipChainIdStruct,value:(0,n.optional)((0,n.string)()),placeholder:(0,n.optional)((0,n.string)()),disabled:(0,n.optional)((0,n.boolean)()),displayAvatar:(0,n.optional)((0,n.boolean)())}),O=r.OptionStruct=d("Option",{value:(0,n.string)(),children:(0,n.string)(),disabled:(0,n.optional)((0,n.boolean)())}),R=r.DropdownStruct=d("Dropdown",{name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([O]),disabled:(0,n.optional)((0,n.boolean)())}),C=r.AddressStruct=d("Address",{address:(0,o.selectiveUnion)((e=>"string"==typeof e&&e.startsWith("0x")?s.HexChecksumAddressStruct:s.CaipAccountIdStruct)),truncate:(0,n.optional)((0,n.boolean)()),displayName:(0,n.optional)((0,n.boolean)()),avatar:(0,n.optional)((0,n.boolean)())}),P=r.CardStruct=d("Card",{image:(0,n.optional)((0,n.string)()),title:(0,o.selectiveUnion)((e=>"object"==typeof e?C:(0,n.string)())),description:(0,n.optional)((0,n.string)()),value:(0,n.string)(),extra:(0,n.optional)((0,n.string)())}),A=r.SelectorOptionStruct=d("SelectorOption",{value:(0,n.string)(),children:P,disabled:(0,n.optional)((0,n.boolean)())}),I=r.SelectorStruct=d("Selector",{name:(0,n.string)(),title:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([A]),disabled:(0,n.optional)((0,n.boolean)())}),x=r.AssetSelectorStruct=d("AssetSelector",{name:(0,n.string)(),addresses:a.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct,chainIds:(0,n.optional)((0,n.array)(a.NonEip155ChainIdStruct)),value:(0,n.optional)(a.NonEip155AssetTypeStruct),disabled:(0,n.optional)((0,n.boolean)())}),M=r.RadioStruct=d("Radio",{value:(0,n.string)(),children:(0,n.string)(),disabled:(0,n.optional)((0,n.boolean)())}),N=r.RadioGroupStruct=d("RadioGroup",{name:(0,n.string)(),value:(0,n.optional)((0,n.string)()),children:l([M]),disabled:(0,n.optional)((0,n.boolean)())}),L=r.FileInputStruct=d("FileInput",{name:(0,n.string)(),accept:(0,o.nullUnion)([(0,n.optional)((0,n.array)((0,n.string)()))]),compact:(0,n.optional)((0,n.boolean)()),disabled:(0,n.optional)((0,n.boolean)())}),$=[f((0,n.lazy)((()=>he))),_],B=[_,f((0,n.lazy)((()=>he)))],U=[f((0,n.lazy)((()=>he))),_,f((0,n.lazy)((()=>he)))],F=[x,T,_,R,N,L,y,I],D=(r.FieldChildUnionStruct=(0,o.nullUnion)([...F,...$,...B,...U]),(0,o.selectiveUnion)((e=>{const t=Array.isArray(e);return t&&3===e.length?(0,n.tuple)(U):t&&2===e.length?"Box"===(null===(r=e[0])||void 0===r?void 0:r.type)?(0,n.tuple)($):(0,n.tuple)(B):(0,o.typedUnion)(F);var r}))),W=r.FieldStruct=d("Field",{label:(0,n.optional)((0,n.string)()),error:(0,n.optional)((0,n.string)()),children:D}),H=r.BoldStruct=d("Bold",{children:l([(0,n.string)(),(0,n.lazy)((()=>J))])}),J=r.ItalicStruct=d("Italic",{children:l([(0,n.string)(),(0,n.lazy)((()=>H))])}),G=r.FormattingStruct=(0,o.typedUnion)([H,J]),V=r.AvatarStruct=d("Avatar",{address:s.CaipAccountIdStruct,size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md"),(0,o.literal)("lg")]))}),z=r.BoxChildrenStruct=l([(0,n.lazy)((()=>he))]),X=r.BoxStruct=d("Box",{children:z,direction:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("horizontal"),(0,o.literal)("vertical")])),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end"),(0,o.literal)("space-between"),(0,o.literal)("space-around")])),crossAlignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end")])),center:(0,n.optional)((0,n.boolean)())}),q=r.FormChildStruct=z,K=r.FormStruct=d("Form",{children:q,name:(0,n.string)()}),Y=(0,n.refine)(b,"FooterButton",(e=>{if("string"==typeof e.props.children||"boolean"==typeof e.props.children||null===e.props.children)return!0;if(Array.isArray(e.props.children)){if(!e.props.children.some((e=>"string"!=typeof e&&"boolean"!=typeof e&&null!==e)))return!0}return"Footer buttons may only contain text."})),Z=r.SectionStruct=d("Section",{children:z,direction:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("horizontal"),(0,o.literal)("vertical")])),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end"),(0,o.literal)("space-between"),(0,o.literal)("space-around")]))}),Q=r.FooterChildStruct=(0,o.selectiveUnion)((e=>Array.isArray(e)?(0,n.tuple)([Y,Y]):Y)),ee=r.FooterStruct=d("Footer",{children:Q}),te=r.CopyableStruct=d("Copyable",{value:(0,n.string)(),sensitive:(0,n.optional)((0,n.boolean)())}),re=r.DividerStruct=d("Divider"),ne=r.HeadingStruct=d("Heading",{children:u,size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md"),(0,o.literal)("lg")]))}),se=r.LinkStruct=d("Link",{href:(0,n.string)(),children:l([G,(0,n.string)(),g,h,C])}),ie=r.SkeletonStruct=d("Skeleton",{width:(0,n.optional)((0,n.union)([(0,n.number)(),(0,n.string)()])),height:(0,n.optional)((0,n.union)([(0,n.number)(),(0,n.string)()])),borderRadius:(0,n.optional)(p)}),oe=r.TextStruct=d("Text",{children:l([(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():(0,o.typedUnion)([H,J,se,g,ie])))]),alignment:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("start"),(0,o.literal)("center"),(0,o.literal)("end")])),color:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("alternative"),(0,o.literal)("muted"),(0,o.literal)("error"),(0,o.literal)("success"),(0,o.literal)("warning")])),size:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("sm"),(0,o.literal)("md")])),fontWeight:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("regular"),(0,o.literal)("medium"),(0,o.literal)("bold")]))}),ae=r.ValueStruct=d("Value",{value:(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():oe)),extra:(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():oe))}),ce=r.TooltipChildStruct=(0,o.selectiveUnion)((e=>"boolean"==typeof e?(0,n.boolean)():(0,o.typedUnion)([oe,H,J,se,h,g]))),ue=r.TooltipContentStruct=(0,o.selectiveUnion)((e=>"string"==typeof e?(0,n.string)():(0,o.typedUnion)([oe,H,J,se,g]))),le=r.TooltipStruct=d("Tooltip",{children:(0,n.nullable)(ce),content:ue}),fe=r.BannerStruct=d("Banner",{children:l([oe,se,g,b,H,J,ie]),title:(0,n.string)(),severity:(0,n.union)([(0,o.literal)("danger"),(0,o.literal)("info"),(0,o.literal)("success"),(0,o.literal)("warning")])}),de=r.RowStruct=d("Row",{label:(0,n.string)(),children:(0,o.typedUnion)([C,h,oe,ae,se,ie]),variant:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("warning"),(0,o.literal)("critical")])),tooltip:(0,n.optional)((0,n.string)())}),pe=r.SpinnerStruct=d("Spinner"),he=r.BoxChildStruct=(0,o.typedUnion)([C,x,T,H,X,b,te,re,R,N,W,L,K,ne,_,h,J,se,de,pe,oe,le,y,P,g,I,Z,V,fe,ie]),me=r.ContainerStruct=d("Container",{children:(0,o.selectiveUnion)((e=>Array.isArray(e)?(0,n.tuple)([he,ee]):he)),backgroundColor:(0,n.optional)((0,o.nullUnion)([(0,o.literal)("default"),(0,o.literal)("alternative")]))}),ge=(r.RootJSXElementStruct=(0,o.typedUnion)([he,me]),r.JSXElementStruct=(0,o.typedUnion)([x,T,b,_,L,W,K,H,J,C,X,te,re,ne,h,se,de,pe,oe,R,O,N,M,ae,le,y,ee,me,P,g,I,A,Z,V,fe,ie]));function be(e){return(0,n.is)(e,ge)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/jsx/validation.ts"}],[185,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NonEip155ChainIdStruct=r.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct=r.NonEip155AssetTypeStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");r.NonEip155CaipAccountIdsMatchedByAddressAndNamespaceStruct=(0,n.refine)((0,n.array)(s.CaipAccountIdStruct),"Non-EIP-155 Matching Addresses Account ID List",(e=>{const t=e.map((e=>(0,s.parseCaipAccountId)(e)));if(!t.every((({address:e,chain:{namespace:r}})=>e===t[0].address&&r===t[0].chain.namespace)))return"All account IDs must have the same address and namespace.";return!t.some((({chain:{namespace:e}})=>e===s.KnownCaipNamespace.Eip155))||"All account IDs must have non-EIP-155 namespaces."})),r.NonEip155ChainIdStruct=(0,n.refine)(s.CaipChainIdStruct,"Non-EIP-155 Chain ID",(e=>{const{namespace:t}=(0,s.parseCaipChainId)(e);return t!==s.KnownCaipNamespace.Eip155||"Chain ID must not be an EIP-155 chain ID."})),r.NonEip155AssetTypeStruct=(0,n.refine)(s.CaipAssetTypeStruct,"Non-EIP-155 Asset Type",(e=>{const{chain:{namespace:t}}=(0,s.parseCaipAssetType)(e);return t!==s.KnownCaipNamespace.Eip155||"Asset type must not be an EIP-155 asset type."}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/caip.ts"}],[186,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/global.ts"}],[187,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.OnAssetsLookupResponseStruct=r.FungibleAssetUnitStruct=r.FungibleAssetMetadataStruct=r.AssetIconUrlStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");const i=r.FungibleAssetUnitStruct=(0,n.object)({name:(0,n.optional)((0,n.string)()),symbol:(0,n.optional)((0,n.string)()),decimals:(0,n.number)()}),o=r.AssetIconUrlStruct=(0,n.refine)((0,n.string)(),"Asset URL",(e=>{try{const t=new URL(e);return(0,s.assert)("https:"===t.protocol||e.startsWith("data:image/svg+xml;base64,")),!0}catch{return"Invalid URL"}})),a=r.FungibleAssetMetadataStruct=(0,n.object)({name:(0,n.optional)((0,n.string)()),symbol:(0,n.optional)((0,n.string)()),fungible:(0,n.literal)(!0),iconUrl:o,units:(0,n.size)((0,n.array)(i),1,Infinity)});r.OnAssetsLookupResponseStruct=(0,n.object)({assets:(0,n.record)(s.CaipAssetTypeStruct,(0,n.nullable)(a))})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/assets-lookup.ts"}],[188,{"./assets-lookup":187,"./transaction":189,"./user-input":190},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./assets-lookup");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./transaction");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./user-input");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/index.ts"}],[189,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SeverityLevel=void 0;r.SeverityLevel=function(e){return e.Critical="critical",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/transaction.ts"}],[190,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.UserInputEventType=r.UserInputEventStruct=r.InputChangeEventStruct=r.GenericEventStruct=r.FormSubmitEventStruct=r.FileUploadEventStruct=r.FileStruct=r.ButtonClickEventStruct=r.AssetSelectorStateStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");let i=r.UserInputEventType=function(e){return e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e.FileUploadEvent="FileUploadEvent",e}({});const o=r.GenericEventStruct=(0,n.object)({type:(0,n.string)(),name:(0,n.optional)((0,n.string)())}),a=r.ButtonClickEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.ButtonClickEvent),name:(0,n.optional)((0,n.string)())})),c=r.FileStruct=(0,n.object)({name:(0,n.string)(),size:(0,n.number)(),contentType:(0,n.string)(),contents:(0,n.string)()}),u=r.AssetSelectorStateStruct=(0,n.object)({asset:s.CaipAssetTypeStruct,name:(0,n.string)(),symbol:(0,n.string)()}),l=r.FormSubmitEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.FormSubmitEvent),value:(0,n.record)((0,n.string)(),(0,n.nullable)((0,n.union)([(0,n.string)(),c,(0,n.boolean)(),u]))),name:(0,n.string)()})),f=r.InputChangeEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.InputChangeEvent),name:(0,n.string)(),value:(0,n.union)([(0,n.string)(),(0,n.boolean)(),u])})),d=r.FileUploadEventStruct=(0,n.assign)(o,(0,n.object)({type:(0,n.literal)(i.FileUploadEvent),name:(0,n.string)(),file:(0,n.nullable)(c)}));r.UserInputEventStruct=(0,n.union)([a,l,f,d])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/user-input.ts"}],[191,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/images.ts"}],[192,{"./caip":185,"./global":186,"./handlers":188,"./images":191,"./interface":193,"./methods":196},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),e("./global"),e("./images");var n=e("./caip");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./handlers");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./methods");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./interface");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/index.ts"}],[193,{"../internals":137,"../jsx":181,"../ui":214,"./handlers":188,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StateStruct=r.InterfaceStateStruct=r.InterfaceContextStruct=r.FormStateStruct=r.ContentType=r.ComponentOrElementStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./handlers"),o=e("../internals"),a=e("../jsx"),c=e("../ui");const u=r.StateStruct=(0,n.union)([i.AssetSelectorStateStruct,i.FileStruct,(0,n.string)(),(0,n.boolean)(),s.CaipAccountIdStruct]),l=r.FormStateStruct=(0,n.record)((0,n.string)(),(0,n.nullable)(u));r.InterfaceStateStruct=(0,n.record)((0,n.string)(),(0,n.union)([l,(0,n.nullable)(u)])),r.ComponentOrElementStruct=(0,o.selectiveUnion)((e=>(0,s.isObject)(e)&&!(0,s.hasProperty)(e,"props")?c.ComponentStruct:a.RootJSXElementStruct)),r.InterfaceContextStruct=(0,n.record)((0,n.string)(),s.JsonStruct);r.ContentType=function(e){return e.Insight="Insight",e.Dialog="Dialog",e.Notification="Notification",e.HomePage="HomePage",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/interface.ts"}],[194,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DialogType=void 0;r.DialogType=function(e){return e.Alert="alert",e.Confirmation="confirmation",e.Prompt="prompt",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/dialog.ts"}],[195,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AuxiliaryFileEncoding=void 0;r.AuxiliaryFileEncoding=function(e){return e.Base64="base64",e.Hex="hex",e.Utf8="utf8",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/get-file.ts"}],[196,{"./dialog":194,"./get-file":195,"./manage-state":197,"./notify":198},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./dialog");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./get-file");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./manage-state");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./notify");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/index.ts"}],[197,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ManageStateOperation=void 0;r.ManageStateOperation=function(e){return e.ClearState="clear",e.GetState="get",e.UpdateState="update",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/manage-state.ts"}],[198,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NotificationType=void 0;r.NotificationType=function(e){return e.InApp="inApp",e.Native="native",e}({})}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/methods/notify.ts"}],[199,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createBuilder=function(e,t,r=[]){return(...s)=>{if(1===s.length&&(0,n.isPlainObject)(s[0])){const r={...s[0],type:e};return(0,n.assertStruct)(r,t,`Invalid ${e} component`),r}const i=r.reduce(((e,t,r)=>s[r]!==undefined?{...e,[t]:s[r]}:e),{type:e});return(0,n.assertStruct)(i,t,`Invalid ${e} component`),i}};var n=e("@metamask/utils")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/builder.ts"}],[200,{"./components":208,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsComponent=function(e){(0,s.assertStruct)(e,i.ComponentStruct,"Invalid component")},r.isComponent=function(e){return(0,n.is)(e,i.ComponentStruct)};var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("./components")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/component.ts"}],[201,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.address=r.AddressStruct=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils"),i=e("../../internals"),o=e("../builder"),a=e("../nodes");const c=r.AddressStruct=(0,n.assign)(a.LiteralStruct,(0,n.object)({type:(0,i.literal)(a.NodeType.Address),value:s.HexChecksumAddressStruct}));r.address=(0,o.createBuilder)(a.NodeType.Address,c,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/address.ts"}],[202,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.button=r.ButtonVariant=r.ButtonType=r.ButtonStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");let a=r.ButtonVariant=function(e){return e.Primary="primary",e.Secondary="secondary",e}({}),c=r.ButtonType=function(e){return e.Button="button",e.Submit="submit",e}({});const u=r.ButtonStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Button),value:(0,n.string)(),variant:(0,n.optional)((0,n.union)([(0,s.enumValue)(a.Primary),(0,s.enumValue)(a.Secondary)])),buttonType:(0,n.optional)((0,n.union)([(0,s.enumValue)(c.Button),(0,s.enumValue)(c.Submit)])),name:(0,n.optional)((0,n.string)())}));r.button=(0,i.createBuilder)(o.NodeType.Button,u,["value","buttonType","name","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/button.ts"}],[203,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.copyable=r.CopyableStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.CopyableStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Copyable),value:(0,n.string)(),sensitive:(0,n.optional)((0,n.boolean)())}));r.copyable=(0,i.createBuilder)(o.NodeType.Copyable,a,["value","sensitive"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/copyable.ts"}],[204,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.divider=r.DividerStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.DividerStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Divider)}));r.divider=(0,i.createBuilder)(o.NodeType.Divider,a)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/divider.ts"}],[205,{"../../internals":137,"../builder":199,"../nodes":215,"./button":202,"./input":209,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.form=r.FormStruct=r.FormComponentStruct=void 0;var n=e("@metamask/superstruct"),s=e("./button"),i=e("./input"),o=e("../../internals"),a=e("../builder"),c=e("../nodes");const u=r.FormComponentStruct=(0,n.union)([i.InputStruct,s.ButtonStruct]),l=r.FormStruct=(0,n.assign)(c.NodeStruct,(0,n.object)({type:(0,o.literal)(c.NodeType.Form),children:(0,n.array)(u),name:(0,n.string)()}));r.form=(0,a.createBuilder)(c.NodeType.Form,l,["name","children"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/form.ts"}],[206,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.heading=r.HeadingStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.HeadingStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Heading),value:(0,n.string)()}));r.heading=(0,i.createBuilder)(o.NodeType.Heading,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/heading.ts"}],[207,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.image=r.ImageStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.ImageStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Image),value:(0,s.svg)()}));r.image=(0,i.createBuilder)(o.NodeType.Image,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/image.ts"}],[208,{"./address":201,"./button":202,"./copyable":203,"./divider":204,"./form":205,"./heading":206,"./image":207,"./input":209,"./panel":210,"./row":211,"./spinner":212,"./text":213},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={image:!0,ImageStruct:!0,ComponentStruct:!0,panel:!0,PanelStruct:!0};Object.defineProperty(r,"ComponentStruct",{enumerable:!0,get:function(){return u.ComponentStruct}}),Object.defineProperty(r,"ImageStruct",{enumerable:!0,get:function(){return c.ImageStruct}}),Object.defineProperty(r,"PanelStruct",{enumerable:!0,get:function(){return u.PanelStruct}}),Object.defineProperty(r,"image",{enumerable:!0,get:function(){return c.image}}),Object.defineProperty(r,"panel",{enumerable:!0,get:function(){return u.panel}});var s=e("./address");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./copyable");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./divider");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./heading");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./image"),u=e("./panel"),l=e("./spinner");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===l[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return l[e]}}))}));var f=e("./text");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===f[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}}))}));var d=e("./row");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===d[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=e("./button");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===p[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=e("./input");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===h[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=e("./form");Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===m[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return m[e]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/index.ts"}],[209,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.input=r.InputType=r.InputStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");let a=r.InputType=function(e){return e.Text="text",e.Number="number",e.Password="password",e}({});const c=r.InputStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Input),value:(0,n.optional)((0,n.string)()),name:(0,n.string)(),inputType:(0,n.optional)((0,n.union)([(0,s.enumValue)(a.Text),(0,s.enumValue)(a.Password),(0,s.enumValue)(a.Number)])),placeholder:(0,n.optional)((0,n.string)()),label:(0,n.optional)((0,n.string)()),error:(0,n.optional)((0,n.string)())}));r.input=(0,i.createBuilder)(o.NodeType.Input,c,["name","inputType","placeholder","value","label"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/input.ts"}],[210,{"../../internals":137,"../builder":199,"../nodes":215,"./address":201,"./button":202,"./copyable":203,"./divider":204,"./form":205,"./heading":206,"./image":207,"./input":209,"./row":211,"./spinner":212,"./text":213,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.panel=r.ParentStruct=r.PanelStruct=r.ComponentStruct=void 0;var n=e("@metamask/superstruct"),s=e("./address"),i=e("./button"),o=e("./copyable"),a=e("./divider"),c=e("./form"),u=e("./heading"),l=e("./image"),f=e("./input"),d=e("./row"),p=e("./spinner"),h=e("./text"),m=e("../../internals"),g=e("../builder"),b=e("../nodes");const y=r.ParentStruct=(0,n.assign)(b.NodeStruct,(0,n.object)({children:(0,n.array)((0,n.lazy)((()=>v)))})),w=r.PanelStruct=(0,n.assign)(y,(0,n.object)({type:(0,m.literal)(b.NodeType.Panel)})),v=(r.panel=(0,g.createBuilder)(b.NodeType.Panel,w,["children"]),r.ComponentStruct=(0,m.typedUnion)([o.CopyableStruct,a.DividerStruct,u.HeadingStruct,l.ImageStruct,w,p.SpinnerStruct,h.TextStruct,d.RowStruct,s.AddressStruct,f.InputStruct,c.FormStruct,i.ButtonStruct]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/panel.ts"}],[211,{"../../internals":137,"../builder":199,"../nodes":215,"./address":201,"./image":207,"./text":213,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.row=r.RowVariant=r.RowStruct=void 0;var n=e("@metamask/superstruct"),s=e("./address"),i=e("./image"),o=e("./text"),a=e("../../internals"),c=e("../builder"),u=e("../nodes");let l=r.RowVariant=function(e){return e.Default="default",e.Critical="critical",e.Warning="warning",e}({});const f=(0,n.union)([i.ImageStruct,o.TextStruct,s.AddressStruct]),d=r.RowStruct=(0,n.assign)(u.LiteralStruct,(0,n.object)({type:(0,a.literal)(u.NodeType.Row),variant:(0,n.optional)((0,n.union)([(0,a.enumValue)(l.Default),(0,a.enumValue)(l.Critical),(0,a.enumValue)(l.Warning)])),label:(0,n.string)(),value:f}));r.row=(0,c.createBuilder)(u.NodeType.Row,d,["label","value","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/row.ts"}],[212,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.spinner=r.SpinnerStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.SpinnerStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Spinner)}));r.spinner=(0,i.createBuilder)(o.NodeType.Spinner,a)}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/spinner.ts"}],[213,{"../../internals":137,"../builder":199,"../nodes":215,"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.text=r.TextStruct=void 0;var n=e("@metamask/superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");const a=r.TextStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,s.literal)(o.NodeType.Text),value:(0,n.string)(),markdown:(0,n.optional)((0,n.boolean)())}));r.text=(0,i.createBuilder)(o.NodeType.Text,a,["value","markdown"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/text.ts"}],[214,{"./component":200,"./components":208,"./nodes":215},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n={NodeType:!0};Object.defineProperty(r,"NodeType",{enumerable:!0,get:function(){return o.NodeType}});var s=e("./components");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./component");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./nodes")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/index.ts"}],[215,{"@metamask/superstruct":14},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NodeType=r.NodeStruct=r.LiteralStruct=void 0;var n=e("@metamask/superstruct");r.NodeType=function(e){return e.Copyable="copyable",e.Divider="divider",e.Heading="heading",e.Panel="panel",e.Spinner="spinner",e.Text="text",e.Image="image",e.Row="row",e.Address="address",e.Button="button",e.Input="input",e.Form="form",e}({});const s=r.NodeStruct=(0,n.object)({type:(0,n.string)()});r.LiteralStruct=(0,n.assign)(s,(0,n.object)({value:(0,n.unknown)()}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/nodes.ts"}],[216,{"./../../snaps-sdk/src":134,"@metamask/rpc-errors":11,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WrappedSnapError=r.SNAP_ERROR_WRAPPER_MESSAGE=r.SNAP_ERROR_WRAPPER_CODE=void 0,r.isSerializedSnapError=b,r.isSnapError=g,r.isWrappedSnapError=y,r.unwrapError=function(e){if(y(e)){if((0,i.isJsonRpcError)(e.data.cause)){if(b(e.data.cause)){const{code:t,message:r,stack:n,data:s}=e.data.cause.data.cause;return[w(t,r,n,s),!0]}const{code:t,message:r,stack:n,data:s}=e.data.cause;return[w(t,r,n,s),!1]}return[w(n.errorCodes.rpc.internal,(0,s.getErrorMessage)(e.data.cause),(0,s.getErrorStack)(e.data.cause)),!1]}if((0,i.isJsonRpcError)(e)){const{code:t,message:r,stack:n,data:s}=e;return[w(t,r,n,s),!1]}return[w(n.errorCodes.rpc.internal,(0,s.getErrorMessage)(e),(0,s.getErrorStack)(e)),!1]};var n=e("@metamask/rpc-errors"),s=e("./../../snaps-sdk/src"),i=e("@metamask/utils");function o(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function a(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,u(t,e))}function c(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,u(t,e),r),r}function u(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}const l=r.SNAP_ERROR_WRAPPER_CODE=-31001,f=r.SNAP_ERROR_WRAPPER_MESSAGE="Wrapped Snap Error";var d=new WeakMap,p=new WeakMap,h=new WeakMap;class m extends Error{constructor(e){const t=(0,s.getErrorMessage)(e);super(t),o(this,d,{writable:!0,value:void 0}),o(this,p,{writable:!0,value:void 0}),o(this,h,{writable:!0,value:void 0}),c(this,d,e),c(this,p,t),c(this,h,(0,s.getErrorStack)(e))}get name(){return"WrappedSnapError"}get message(){return a(this,p)}get stack(){return a(this,h)}toJSON(){const e=g(a(this,d))?a(this,d).serialize():(0,n.serializeCause)(a(this,d));return{code:l,message:f,data:{cause:e}}}serialize(){return this.toJSON()}}function g(e){if((0,i.isObject)(e)&&"serialize"in e&&"function"==typeof e.serialize){const t=e.serialize();return(0,i.isJsonRpcError)(t)&&b(t)}return!1}function b(e){return e.code===s.SNAP_ERROR_CODE&&e.message===s.SNAP_ERROR_MESSAGE}function y(e){return(0,i.isJsonRpcError)(e)&&e.code===l&&e.message===f}function w(e,t,r,s){const i=new n.JsonRpcError(e,t,s);return i.stack=r,i}r.WrappedSnapError=m}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/errors.ts"}],[217,{"./types":218},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SNAP_EXPORT_NAMES=r.SNAP_EXPORTS=void 0;var n=e("./types");r.SNAP_EXPORTS={[n.HandlerType.OnRpcRequest]:{type:n.HandlerType.OnRpcRequest,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnTransaction]:{type:n.HandlerType.OnTransaction,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnCronjob]:{type:n.HandlerType.OnCronjob,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnNameLookup]:{type:n.HandlerType.OnNameLookup,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnInstall]:{type:n.HandlerType.OnInstall,required:!1,validator:e=>"function"==typeof e},[n.HandlerType.OnUpdate]:{type:n.HandlerType.OnUpdate,required:!1,validator:e=>"function"==typeof e},[n.HandlerType.OnKeyringRequest]:{type:n.HandlerType.OnKeyringRequest,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnHomePage]:{type:n.HandlerType.OnHomePage,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnSettingsPage]:{type:n.HandlerType.OnSettingsPage,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnSignature]:{type:n.HandlerType.OnSignature,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnUserInput]:{type:n.HandlerType.OnUserInput,required:!1,validator:e=>"function"==typeof e},[n.HandlerType.OnAssetHistoricalPrice]:{type:n.HandlerType.OnAssetHistoricalPrice,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnAssetsLookup]:{type:n.HandlerType.OnAssetsLookup,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnAssetsConversion]:{type:n.HandlerType.OnAssetsConversion,required:!0,validator:e=>"function"==typeof e},[n.HandlerType.OnProtocolRequest]:{type:n.HandlerType.OnProtocolRequest,required:!0,validator:e=>"function"==typeof e}},r.SNAP_EXPORT_NAMES=Object.values(n.HandlerType)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handlers/exports.ts"}],[218,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HandlerType=void 0;r.HandlerType=function(e){return e.OnRpcRequest="onRpcRequest",e.OnSignature="onSignature",e.OnTransaction="onTransaction",e.OnCronjob="onCronjob",e.OnInstall="onInstall",e.OnUpdate="onUpdate",e.OnNameLookup="onNameLookup",e.OnKeyringRequest="onKeyringRequest",e.OnHomePage="onHomePage",e.OnSettingsPage="onSettingsPage",e.OnUserInput="onUserInput",e.OnAssetsLookup="onAssetsLookup",e.OnAssetsConversion="onAssetsConversion",e.OnAssetHistoricalPrice="onAssetHistoricalPrice",e.OnProtocolRequest="onProtocolRequest",e}({})}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handlers/types.ts"}],[219,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createWindow=async function({uri:e,id:t,sandbox:r=!0,testId:n="snaps-iframe"}){return await new Promise(((s,i)=>{const o=document.createElement("iframe");o.setAttribute("id",t),o.setAttribute("data-testid",n),r&&o.setAttribute("sandbox","allow-scripts"),o.setAttribute("src",e),document.body.appendChild(o),o.addEventListener("load",(()=>{o.contentWindow?s(o.contentWindow):i(new Error(`iframe.contentWindow not present on load for job "${t}".`))}))}))}}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/iframe.ts"}],[220,{"./errors":216,"./handlers/exports":217,"./handlers/types":218,"./iframe":219,"./logging":221,"./types":222},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./errors");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===n[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=e("./handlers/exports");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===s[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=e("./handlers/types");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===i[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=e("./iframe");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===o[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=e("./logging");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===a[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}}))}));var c=e("./types");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in r&&r[e]===c[e]||Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}}))}))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/index.executionenv.ts"}],[221,{"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.logError=function(e,...t){console.error(e,...t)},r.logInfo=function(e,...t){console.log(e,...t)},r.logWarning=function(e,...t){console.warn(e,...t)},r.snapsLogger=void 0;var n=e("@metamask/utils");r.snapsLogger=(0,n.createProjectLogger)("snaps")}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/logging.ts"}],[222,{"@metamask/superstruct":14,"@metamask/utils":31},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WALLET_SNAP_PERMISSION_KEY=r.SnapIdPrefixes=r.SNAP_STREAM_NAMES=r.NpmSnapPackageJsonStruct=r.NpmSnapFileNames=r.NameStruct=void 0,r.isValidUrl=function(e,t={}){return(0,n.is)(e,o(t))},r.uri=void 0;var n=e("@metamask/superstruct"),s=e("@metamask/utils");r.NpmSnapFileNames=function(e){return e.PackageJson="package.json",e.Manifest="snap.manifest.json",e}({});const i=r.NameStruct=(0,n.size)((0,s.definePattern)("Snap Name",/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u),1,214);r.NpmSnapPackageJsonStruct=(0,n.type)({version:s.VersionStruct,name:i,main:(0,n.optional)((0,n.size)((0,n.string)(),1,Infinity)),repository:(0,n.optional)((0,n.type)({type:(0,n.size)((0,n.string)(),1,Infinity),url:(0,n.size)((0,n.string)(),1,Infinity)}))});r.SnapIdPrefixes=function(e){return e.npm="npm:",e.local="local:",e}({}),r.SNAP_STREAM_NAMES=function(e){return e.JSON_RPC="jsonRpc",e.COMMAND="command",e}({});const o=(e={})=>(0,n.refine)((0,n.union)([(0,n.string)(),(0,n.instance)(URL)]),"uri",(t=>{try{const r=new URL(t),s=(0,n.type)(e);return(0,n.assert)(r,s),!0}catch{return`Expected URL, got "${t.toString()}".`}}));r.uri=o;r.WALLET_SNAP_PERMISSION_KEY="wallet_snap"}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/types.ts"}]],[130],{resources:{"@metamask/post-message-stream":{globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,removeEventListener:!0},packages:{"@metamask/utils":!0,"readable-stream":!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/snaps-sdk":{globals:{URL:!0,fetch:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/snaps-utils":{globals:{URL:!0,"console.error":!0,"console.log":!0,"console.warn":!0,"document.body.appendChild":!0,"document.createElement":!0},packages:{"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/utils":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>@noble/hashes":!0,"@metamask/utils>@scure/base":!0,"@metamask/utils>pony-cause":!0,"browserify>buffer":!0,"depcheck>semver":!0,"eslint>debug":!0}},"@metamask/utils>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/utils>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"browserify>browser-pack>safe-buffer":{packages:{"browserify>buffer":!0}},"browserify>buffer":{globals:{console:!0},packages:{"browserify>buffer>base64-js":!0,"browserify>buffer>ieee754":!0}},"browserify>events":{globals:{console:!0}},"browserify>process":{globals:{clearTimeout:!0,setTimeout:!0}},"browserify>string_decoder":{packages:{"browserify>browser-pack>safe-buffer":!0}},"depcheck>semver":{globals:{"console.error":!0},packages:{"browserify>process":!0}},"eslint>debug":{globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"browserify>process":!0,"eslint>debug>ms":!0}},"readable-stream":{packages:{"browserify>browser-resolve":!0,"browserify>buffer":!0,"browserify>events":!0,"browserify>inherits":!0,"browserify>process":!0,"browserify>string_decoder":!0,"readable-stream>util-deprecate":!0}},"readable-stream>util-deprecate":{globals:{"console.trace":!0,"console.warn":!0,localStorage:!0}}}});