@metamask/snaps-execution-environments 5.0.4 → 6.0.0

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/dist/browserify/iframe/bundle.js +1 -1
  3. package/dist/browserify/node-process/bundle.js +1 -1
  4. package/dist/browserify/node-thread/bundle.js +1 -1
  5. package/dist/browserify/webview/bundle.js +1 -1
  6. package/dist/browserify/worker-executor/bundle.js +1 -1
  7. package/dist/{chunk-4DDRUOJT.mjs → chunk-2WJGRNAZ.mjs} +2 -2
  8. package/dist/{chunk-HCAXYGTC.js → chunk-C2QZZAHQ.js} +3 -3
  9. package/dist/{chunk-HP7NXQDB.js → chunk-C3F64ZFC.js} +3 -3
  10. package/dist/{chunk-6TW5IC2Y.mjs → chunk-F76EJNOI.mjs} +2 -2
  11. package/dist/{chunk-3IL5HX3I.mjs → chunk-FSJV5VS7.mjs} +2 -2
  12. package/dist/{chunk-PYVUMOEV.js → chunk-LJYFGK2B.js} +8 -8
  13. package/dist/{chunk-CBFVKEU2.js → chunk-MD6BQLEH.js} +3 -3
  14. package/dist/{chunk-QAHK6SLR.js → chunk-MPITURZG.js} +3 -3
  15. package/dist/{chunk-HBVPZMDK.mjs → chunk-NOS7REGG.mjs} +3 -5
  16. package/dist/chunk-NOS7REGG.mjs.map +1 -0
  17. package/dist/{chunk-6TRAXSD2.mjs → chunk-NYAH3BJI.mjs} +2 -2
  18. package/dist/{chunk-VV2DBGFP.mjs → chunk-RJIOCM6W.mjs} +2 -2
  19. package/dist/{chunk-IEDU7Y5Q.mjs → chunk-RVEFZW4H.mjs} +2 -2
  20. package/dist/{chunk-DTUHBZ7B.mjs → chunk-RYZWYBI2.mjs} +5 -18
  21. package/dist/{chunk-DTUHBZ7B.mjs.map → chunk-RYZWYBI2.mjs.map} +1 -1
  22. package/dist/{chunk-G2KQG3ZY.mjs → chunk-UGQV3NZQ.mjs} +2 -2
  23. package/dist/{chunk-S55SWI44.js → chunk-VZLDGGRV.js} +14 -27
  24. package/dist/chunk-VZLDGGRV.js.map +1 -0
  25. package/dist/{chunk-KCIOH4SA.js → chunk-WDXE7PNC.js} +3 -3
  26. package/dist/{chunk-C7XBEPVO.js → chunk-WMFXOR4Z.js} +3 -5
  27. package/dist/chunk-WMFXOR4Z.js.map +1 -0
  28. package/dist/{chunk-VYSBMOIL.js → chunk-WWDMY3F7.js} +3 -3
  29. package/dist/common/BaseSnapExecutor.js +6 -6
  30. package/dist/common/BaseSnapExecutor.mjs +5 -5
  31. package/dist/common/endowments/commonEndowmentFactory.js +4 -4
  32. package/dist/common/endowments/commonEndowmentFactory.mjs +3 -3
  33. package/dist/common/endowments/index.js +5 -5
  34. package/dist/common/endowments/index.mjs +4 -4
  35. package/dist/common/endowments/network.js +3 -3
  36. package/dist/common/endowments/network.mjs +2 -2
  37. package/dist/common/utils.js +2 -2
  38. package/dist/common/utils.mjs +1 -1
  39. package/dist/iframe/IFrameSnapExecutor.js +7 -7
  40. package/dist/iframe/IFrameSnapExecutor.mjs +6 -6
  41. package/dist/iframe/index.js +7 -7
  42. package/dist/iframe/index.mjs +6 -6
  43. package/dist/node-process/ChildProcessSnapExecutor.js +7 -7
  44. package/dist/node-process/ChildProcessSnapExecutor.mjs +6 -6
  45. package/dist/node-process/index.js +7 -7
  46. package/dist/node-process/index.mjs +6 -6
  47. package/dist/node-thread/ThreadSnapExecutor.js +7 -7
  48. package/dist/node-thread/ThreadSnapExecutor.mjs +6 -6
  49. package/dist/node-thread/index.js +7 -7
  50. package/dist/node-thread/index.mjs +6 -6
  51. package/dist/tsconfig.build.tsbuildinfo +1 -1
  52. package/dist/types/common/utils.d.ts +5 -6
  53. package/dist/webworker/executor/WebWorkerSnapExecutor.js +7 -7
  54. package/dist/webworker/executor/WebWorkerSnapExecutor.mjs +6 -6
  55. package/dist/webworker/executor/index.js +7 -7
  56. package/dist/webworker/executor/index.mjs +6 -6
  57. package/package.json +3 -3
  58. package/dist/chunk-C7XBEPVO.js.map +0 -1
  59. package/dist/chunk-HBVPZMDK.mjs.map +0 -1
  60. package/dist/chunk-S55SWI44.js.map +0 -1
  61. /package/dist/{chunk-4DDRUOJT.mjs.map → chunk-2WJGRNAZ.mjs.map} +0 -0
  62. /package/dist/{chunk-HCAXYGTC.js.map → chunk-C2QZZAHQ.js.map} +0 -0
  63. /package/dist/{chunk-HP7NXQDB.js.map → chunk-C3F64ZFC.js.map} +0 -0
  64. /package/dist/{chunk-6TW5IC2Y.mjs.map → chunk-F76EJNOI.mjs.map} +0 -0
  65. /package/dist/{chunk-3IL5HX3I.mjs.map → chunk-FSJV5VS7.mjs.map} +0 -0
  66. /package/dist/{chunk-PYVUMOEV.js.map → chunk-LJYFGK2B.js.map} +0 -0
  67. /package/dist/{chunk-CBFVKEU2.js.map → chunk-MD6BQLEH.js.map} +0 -0
  68. /package/dist/{chunk-QAHK6SLR.js.map → chunk-MPITURZG.js.map} +0 -0
  69. /package/dist/{chunk-6TRAXSD2.mjs.map → chunk-NYAH3BJI.mjs.map} +0 -0
  70. /package/dist/{chunk-VV2DBGFP.mjs.map → chunk-RJIOCM6W.mjs.map} +0 -0
  71. /package/dist/{chunk-IEDU7Y5Q.mjs.map → chunk-RVEFZW4H.mjs.map} +0 -0
  72. /package/dist/{chunk-G2KQG3ZY.mjs.map → chunk-UGQV3NZQ.mjs.map} +0 -0
  73. /package/dist/{chunk-KCIOH4SA.js.map → chunk-WDXE7PNC.js.map} +0 -0
  74. /package/dist/{chunk-VYSBMOIL.js.map → chunk-WWDMY3F7.js.map} +0 -0
@@ -13387,4 +13387,4 @@ Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=r.wrapXOFConstruc
13387
13387
  /*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */
13388
13388
  Object.defineProperty(r,"__esModule",{value:!0}),r.bytes=r.stringToBytes=r.str=r.bytesToString=r.hex=r.utf8=r.bech32m=r.bech32=r.base58check=r.base58xmr=r.base58xrp=r.base58flickr=r.base58=r.base64urlnopad=r.base64url=r.base64=r.base32crockford=r.base32hex=r.base32=r.base16=r.utils=r.assertNumber=void 0,r.assertNumber=n;const l=(e,t)=>t?l(t,e%t):e,d=(e,t)=>e+(t-l(e,t));function h(e,t,r,s){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw new Error(`convertRadix2: wrong to=${r}`);if(d(t,r)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${d(t,r)}`);let i=0,o=0;const a=2**r-1,c=[];for(const s of e){if(n(s),s>=2**t)throw new Error(`convertRadix2: invalid data word=${s} from=${t}`);if(i=i<<t|s,o+t>32)throw new Error(`convertRadix2: carry overflow pos=${o} from=${t}`);for(o+=t;o>=r;o-=r)c.push((i>>o-r&a)>>>0);i&=2**o-1}if(i=i<<r-o&a,!s&&o>=t)throw new Error("Excess padding");if(!s&&i)throw new Error(`Non-zero padding: ${i}`);return s&&o>0&&c.push(i>>>0),c}function f(e){return n(e),{encode:t=>{if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return u(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(u(t,e,256))}}}function p(e,t=!1){if(n(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(d(8,e)>32||d(e,8)>32)throw new Error("radix2: carry overflow");return{encode:r=>{if(!(r instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return h(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(h(r,e,8,t))}}}function m(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function g(e,t){if(n(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(r){if(!(r instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const n=t(r).slice(0,e),s=new Uint8Array(r.length+e);return s.set(r),s.set(n,r.length),s},decode(r){if(!(r instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const n=r.slice(0,-e),s=t(n).slice(0,e),i=r.slice(-e);for(let t=0;t<e;t++)if(s[t]!==i[t])throw new Error("Invalid checksum");return n}}}r.utils={alphabet:i,chain:s,checksum:g,radix:f,radix2:p,join:o,padding:a},r.base16=s(p(4),i("0123456789ABCDEF"),o("")),r.base32=s(p(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),a(5),o("")),r.base32hex=s(p(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),a(5),o("")),r.base32crockford=s(p(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),o(""),c((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),r.base64=s(p(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),a(6),o("")),r.base64url=s(p(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),a(6),o("")),r.base64urlnopad=s(p(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),o(""));const b=e=>s(f(58),i(e),o(""));r.base58=b("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),r.base58flickr=b("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),r.base58xrp=b("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const v=[0,2,3,5,6,7,9,10,11];r.base58xmr={encode(e){let t="";for(let n=0;n<e.length;n+=8){const s=e.subarray(n,n+8);t+=r.base58.encode(s).padStart(v[s.length],"1")}return t},decode(e){let t=[];for(let n=0;n<e.length;n+=11){const s=e.slice(n,n+11),i=v.indexOf(s.length),o=r.base58.decode(s);for(let e=0;e<o.length-i;e++)if(0!==o[e])throw new Error("base58xmr: wrong padding");t=t.concat(Array.from(o.slice(o.length-i)))}return Uint8Array.from(t)}};r.base58check=e=>s(g(4,(t=>e(e(t)))),r.base58);const y=s(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),w=[996825010,642813549,513874426,1027748829,705979059];function k(e){const t=e>>25;let r=(33554431&e)<<5;for(let e=0;e<w.length;e++)1==(t>>e&1)&&(r^=w[e]);return r}function _(e,t,r=1){const n=e.length;let s=1;for(let t=0;t<n;t++){const r=e.charCodeAt(t);if(r<33||r>126)throw new Error(`Invalid prefix (${e})`);s=k(s)^r>>5}s=k(s);for(let t=0;t<n;t++)s=k(s)^31&e.charCodeAt(t);for(let e of t)s=k(s)^e;for(let e=0;e<6;e++)s=k(s);return s^=r,y.encode(h([s%2**30],30,5,!1))}function E(e){const t="bech32"===e?1:734539939,r=p(5),n=r.decode,s=r.encode,i=m(n);function o(e,r=90){if("string"!=typeof e)throw new Error("bech32.decode input should be string, not "+typeof e);if(e.length<8||!1!==r&&e.length>r)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${r})`);const n=e.toLowerCase();if(e!==n&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const s=(e=n).lastIndexOf("1");if(0===s||-1===s)throw new Error('Letter "1" must be present between prefix and data only');const i=e.slice(0,s),o=e.slice(s+1);if(o.length<6)throw new Error("Data must be at least 6 characters long");const a=y.decode(o).slice(0,-6),c=_(i,a,t);if(!o.endsWith(c))throw new Error(`Invalid checksum in ${e}: expected "${c}"`);return{prefix:i,words:a}}return{encode:function(e,r,n=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof r);const s=e.length+7+r.length;if(!1!==n&&s>n)throw new TypeError(`Length ${s} exceeds limit ${n}`);const i=e.toLowerCase(),o=_(i,r,t);return`${i}1${y.encode(r)}${o}`},decode:o,decodeToBytes:function(e){const{prefix:t,words:r}=o(e,!1);return{prefix:t,words:r,bytes:n(r)}},decodeUnsafe:m(o),fromWords:n,fromWordsUnsafe:i,toWords:s}}r.bech32=E("bech32"),r.bech32m=E("bech32m"),r.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},r.hex=s(p(4),i("0123456789abcdef"),o(""),c((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const S={utf8:r.utf8,hex:r.hex,base16:r.base16,base32:r.base32,base64:r.base64,base64url:r.base64url,base58:r.base58,base58xmr:r.base58xmr},T="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";r.bytesToString=(e,t)=>{if("string"!=typeof e||!S.hasOwnProperty(e))throw new TypeError(T);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return S[e].encode(t)},r.str=r.bytesToString;r.stringToBytes=(e,t)=>{if(!S.hasOwnProperty(e))throw new TypeError(T);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return S[e].decode(t)},r.bytes=r.stringToBytes}}},{package:"@metamask/utils>@scure/base",file:"../../node_modules/@scure/base/lib/index.js"}],[75,{},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:"tsup>debug>ms",file:"../../node_modules/debug/node_modules/ms/index.js"}],[76,{"./common":77},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){r.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))})),e.splice(s,0,r)},r.save=function(e){try{e?r.storage.setItem("debug",e):r.storage.removeItem("debug")}catch(e){}},r.load=function(){let e;try{e=r.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},r.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage=function(){try{return localStorage}catch(e){}}(),r.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.log=console.debug||console.log||(()=>{}),t.exports=e("./common")(r);const{formatters:n}=t.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}}},{package:"tsup>debug",file:"../../node_modules/debug/src/browser.js"}],[77,{ms:75},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(t){function r(e){let t,s,i,o=null;function a(...e){if(!a.enabled)return;const n=a,s=Number(new Date),i=s-(t||s);n.diff=i,n.prev=t,n.curr=s,t=s,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if("%%"===t)return"%";o++;const i=r.formatters[s];if("function"==typeof i){const r=e[o];t=i.call(n,r),e.splice(o,1),o--}return t})),r.formatArgs.call(n,e);(n.log||r.log).apply(n,e)}return a.namespace=e,a.useColors=r.useColors(),a.color=r.selectColor(e),a.extend=n,a.destroy=r.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==r.namespaces&&(s=r.namespaces,i=r.enabled(e)),i),set:e=>{o=e}}),"function"==typeof r.init&&r.init(a),a}function n(e,t){const n=r(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},r.disable=function(){const e=[...r.names.map(s),...r.skips.map(s).map((e=>"-"+e))].join(",");return r.enable(""),e},r.enable=function(e){let t;r.save(e),r.namespaces=e,r.names=[],r.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),s=n.length;for(t=0;t<s;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.slice(1)+"$")):r.names.push(new RegExp("^"+e+"$")))},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e("ms"),r.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((e=>{r[e]=t[e]})),r.names=[],r.skips=[],r.formatters={},r.selectColor=function(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return r.colors[Math.abs(t)%r.colors.length]},r.enable(r.load()),r}}}},{package:"tsup>debug",file:"../../node_modules/debug/src/common.js"}],[78,{"./browser.js":76,"./node.js":79},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=e("./browser.js"):t.exports=e("./node.js")}}},{package:"tsup>debug",file:"../../node_modules/debug/src/index.js"}],[79,{"./common":77,"supports-color":165,tty:"tty",util:"util"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("tty"),s=e("util");r.init=function(e){e.inspectOpts={};const t=Object.keys(r.inspectOpts);for(let n=0;n<t.length;n++)e.inspectOpts[t[n]]=r.inspectOpts[t[n]]},r.log=function(...e){return process.stderr.write(s.format(...e)+"\n")},r.formatArgs=function(e){const{namespace:n,useColors:s}=this;if(s){const r=this.color,s="[3"+(r<8?r:"8;5;"+r),i=` ${s};1m${n} `;e[0]=i+e[0].split("\n").join("\n"+i),e.push(s+"m+"+t.exports.humanize(this.diff)+"")}else e[0]=function(){if(r.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+e[0]},r.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},r.load=function(){return process.env.DEBUG},r.useColors=function(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):n.isatty(process.stderr.fd)},r.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),r.colors=[6,2,3,4,5,1];try{const t=e("supports-color");t&&(t.stderr||t).level>=2&&(r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}r.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),t.exports=e("./common")(r);const{formatters:i}=t.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,s.inspect(e,this.inspectOpts)}}}},{package:"tsup>debug",file:"../../node_modules/debug/src/node.js"}],[80,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,s,i;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(s=n;0!=s--;)if(!e(t[s],r[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(i=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(s=n;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,i[s]))return!1;for(s=n;0!=s--;){var o=i[s];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}}}},{package:"eslint>fast-deep-equal",file:"../../node_modules/fast-deep-equal/index.js"}],[81,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=c,c.default=c,c.stable=h,c.stableStringify=h;var n="[...]",s="[Circular]",i=[],o=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function c(e,t,r,n){var s;void 0===n&&(n=a()),l(e,"",0,[],undefined,0,n);try{s=0===o.length?JSON.stringify(e,t,r):JSON.stringify(e,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return s}function u(e,t,r,n){var s=Object.getOwnPropertyDescriptor(n,r);s.get!==undefined?s.configurable?(Object.defineProperty(n,r,{value:e}),i.push([n,r,t,s])):o.push([t,r,e]):(n[r]=e,i.push([n,r,t]))}function l(e,t,r,i,o,a,c){var d;if(a+=1,"object"==typeof e&&null!==e){for(d=0;d<i.length;d++)if(i[d]===e)return void u(s,e,t,o);if(void 0!==c.depthLimit&&a>c.depthLimit)return void u(n,e,t,o);if(void 0!==c.edgesLimit&&r+1>c.edgesLimit)return void u(n,e,t,o);if(i.push(e),Array.isArray(e))for(d=0;d<e.length;d++)l(e[d],d,d,i,e,a,c);else{var h=Object.keys(e);for(d=0;d<h.length;d++){var f=h[d];l(e[f],f,d,i,e,a,c)}}i.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function h(e,t,r,n){void 0===n&&(n=a());var s,c=f(e,"",0,[],undefined,0,n)||e;try{s=0===o.length?JSON.stringify(c,t,r):JSON.stringify(c,p(t),r)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function f(e,t,r,o,a,c,l){var h;if(c+=1,"object"==typeof e&&null!==e){for(h=0;h<o.length;h++)if(o[h]===e)return void u(s,e,t,a);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==l.depthLimit&&c>l.depthLimit)return void u(n,e,t,a);if(void 0!==l.edgesLimit&&r+1>l.edgesLimit)return void u(n,e,t,a);if(o.push(e),Array.isArray(e))for(h=0;h<e.length;h++)f(e[h],h,h,o,e,c,l);else{var p={},m=Object.keys(e).sort(d);for(h=0;h<m.length;h++){var g=m[h];f(e[g],g,h,o,e,c,l),p[g]=e[g]}if(void 0===a)return p;i.push([a,t,e]),a[t]=p}o.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(o.length>0)for(var n=0;n<o.length;n++){var s=o[n];if(s[1]===t&&s[0]===r){r=s[2],o.splice(n,1);break}}return e.call(this,t,r)}}}}},{package:"@metamask/rpc-errors>fast-safe-stringify",file:"../../node_modules/fast-safe-stringify/index.js"}],[82,{"./validator":84,"./xmlbuilder/json2xml":85,"./xmlparser/XMLParser":90},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./validator"),s=e("./xmlparser/XMLParser"),i=e("./xmlbuilder/json2xml");t.exports={XMLParser:s,XMLValidator:n,XMLBuilder:i}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/fxp.js"}],[83,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s="["+n+"]["+(n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040")+"]*",i=new RegExp("^"+s+"$");r.isExist=function(e){return void 0!==e},r.isEmptyObject=function(e){return 0===Object.keys(e).length},r.merge=function(e,t,r){if(t){const n=Object.keys(t),s=n.length;for(let i=0;i<s;i++)e[n[i]]="strict"===r?[t[n[i]]]:t[n[i]]}},r.getValue=function(e){return r.isExist(e)?e:""},r.isName=function(e){const t=i.exec(e);return!(null==t)},r.getAllMatches=function(e,t){const r=[];let n=t.exec(e);for(;n;){const s=[];s.startIndex=t.lastIndex-n[0].length;const i=n.length;for(let e=0;e<i;e++)s.push(n[e]);r.push(s),n=t.exec(e)}return r},r.nameRegexp=s}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/util.js"}],[84,{"./util":83},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./util"),s={allowBooleanAttributes:!1,unpairedTags:[]};function i(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function o(e,t){const r=t;for(;t<e.length;t++)if("?"!=e[t]&&" "!=e[t]);else{const n=e.substr(r,t-r);if(t>5&&"xml"===n)return p("InvalidXml","XML declaration allowed only at the start of the document.",g(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}}return t}function a(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let r=1;for(t+=8;t<e.length;t++)if("<"===e[t])r++;else if(">"===e[t]&&(r--,0===r))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}r.validate=function(e,t){t=Object.assign({},s,t);const r=[];let c=!1,u=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,s=o(e,s),s.err)return s}else{if("<"!==e[s]){if(i(e[s]))continue;return p("InvalidChar","char '"+e[s]+"' is not expected.",g(e,s))}{let m=s;if(s++,"!"===e[s]){s=a(e,s);continue}{let b=!1;"/"===e[s]&&(b=!0,s++);let v="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&"\t"!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)v+=e[s];if(v=v.trim(),"/"===v[v.length-1]&&(v=v.substring(0,v.length-1),s--),d=v,!n.isName(d)){let t;return t=0===v.trim().length?"Invalid space after '<'.":"Tag '"+v+"' is an invalid name.",p("InvalidTag",t,g(e,s))}const y=l(e,s);if(!1===y)return p("InvalidAttr","Attributes for '"+v+"' have open quote.",g(e,s));let w=y.value;if(s=y.index,"/"===w[w.length-1]){const r=s-w.length;w=w.substring(0,w.length-1);const n=h(w,t);if(!0!==n)return p(n.err.code,n.err.msg,g(e,r+n.err.line));c=!0}else if(b){if(!y.tagClosed)return p("InvalidTag","Closing tag '"+v+"' doesn't have proper closing.",g(e,s));if(w.trim().length>0)return p("InvalidTag","Closing tag '"+v+"' can't have attributes or invalid starting.",g(e,m));{const t=r.pop();if(v!==t.tagName){let r=g(e,t.tagStartPos);return p("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+r.line+", col "+r.col+") instead of closing tag '"+v+"'.",g(e,m))}0==r.length&&(u=!0)}}else{const n=h(w,t);if(!0!==n)return p(n.err.code,n.err.msg,g(e,s-w.length+n.err.line));if(!0===u)return p("InvalidXml","Multiple possible root nodes found.",g(e,s));-1!==t.unpairedTags.indexOf(v)||r.push({tagName:v,tagStartPos:m}),c=!0}for(s++;s<e.length;s++)if("<"===e[s]){if("!"===e[s+1]){s++,s=a(e,s);continue}if("?"!==e[s+1])break;if(s=o(e,++s),s.err)return s}else if("&"===e[s]){const t=f(e,s);if(-1==t)return p("InvalidChar","char '&' is not expected.",g(e,s));s=t}else if(!0===u&&!i(e[s]))return p("InvalidXml","Extra text at the end",g(e,s));"<"===e[s]&&s--}}}var d;return c?1==r.length?p("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",g(e,r[0].tagStartPos)):!(r.length>0)||p("InvalidXml","Invalid '"+JSON.stringify(r.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):p("InvalidXml","Start tag expected.",1)};const c='"',u="'";function l(e,t){let r="",n="",s=!1;for(;t<e.length;t++){if(e[t]===c||e[t]===u)""===n?n=e[t]:n!==e[t]||(n="");else if(">"===e[t]&&""===n){s=!0;break}r+=e[t]}return""===n&&{value:r,index:t,tagClosed:s}}const d=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function h(e,t){const r=n.getAllMatches(e,d),s={};for(let e=0;e<r.length;e++){if(0===r[e][1].length)return p("InvalidAttr","Attribute '"+r[e][2]+"' has no space in starting.",b(r[e]));if(r[e][3]!==undefined&&r[e][4]===undefined)return p("InvalidAttr","Attribute '"+r[e][2]+"' is without value.",b(r[e]));if(r[e][3]===undefined&&!t.allowBooleanAttributes)return p("InvalidAttr","boolean attribute '"+r[e][2]+"' is not allowed.",b(r[e]));const n=r[e][2];if(!m(n))return p("InvalidAttr","Attribute '"+n+"' is an invalid name.",b(r[e]));if(s.hasOwnProperty(n))return p("InvalidAttr","Attribute '"+n+"' is repeated.",b(r[e]));s[n]=1}return!0}function f(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let r=/\d/;for("x"===e[t]&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(r))break}return-1}(e,++t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(";"===e[t])break;return-1}return t}function p(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}function m(e){return n.isName(e)}function g(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function b(e){return e.startIndex+e[1].length}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/validator.js"}],[85,{"./orderedJs2Xml":86},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("./orderedJs2Xml"),s={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function i(e){this.options=Object.assign({},s,e),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=o,this.options.format?(this.indentate=a,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function o(e,t,r){const n=this.j2x(e,r+1);return e[this.options.textNodeName]!==undefined&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,r):this.buildObjectNode(n.val,t,n.attrStr,r)}function a(e){return this.options.indentBy.repeat(e)}function c(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}i.prototype.build=function(e){return this.options.preserveOrder?n(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)},i.prototype.j2x=function(e,t){let r="",n="";for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s))if(void 0===e[s])this.isAttribute(s)&&(n+="");else if(null===e[s])this.isAttribute(s)?n+="":"?"===s[0]?n+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+s+"/"+this.tagEndChar;else if(e[s]instanceof Date)n+=this.buildTextValNode(e[s],s,"",t);else if("object"!=typeof e[s]){const i=this.isAttribute(s);if(i)r+=this.buildAttrPairStr(i,""+e[s]);else if(s===this.options.textNodeName){let t=this.options.tagValueProcessor(s,""+e[s]);n+=this.replaceEntitiesValue(t)}else n+=this.buildTextValNode(e[s],s,"",t)}else if(Array.isArray(e[s])){const r=e[s].length;let i="";for(let o=0;o<r;o++){const r=e[s][o];void 0===r||(null===r?"?"===s[0]?n+=this.indentate(t)+"<"+s+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+s+"/"+this.tagEndChar:"object"==typeof r?this.options.oneListGroup?i+=this.j2x(r,t+1).val:i+=this.processTextOrObjNode(r,s,t):i+=this.buildTextValNode(r,s,"",t))}this.options.oneListGroup&&(i=this.buildObjectNode(i,s,"",t)),n+=i}else if(this.options.attributesGroupName&&s===this.options.attributesGroupName){const t=Object.keys(e[s]),n=t.length;for(let i=0;i<n;i++)r+=this.buildAttrPairStr(t[i],""+e[s][t[i]])}else n+=this.processTextOrObjNode(e[s],s,t);return{attrStr:r,val:n}},i.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},i.prototype.buildObjectNode=function(e,t,r,n){if(""===e)return"?"===t[0]?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let s="</"+t+this.tagEndChar,i="";return"?"===t[0]&&(i="?",s=""),!r&&""!==r||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===i.length?this.indentate(n)+`< ! --${e}-- >`+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s:this.indentate(n)+"<"+t+r+i+">"+e+s}},i.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},i.prototype.buildTextValNode=function(e,t,r,n){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(n)+`< ! --${e}-- >`+this.newLine;if("?"===t[0])return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),""===s?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+s+"</"+t+this.tagEndChar}},i.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e},t.exports=i}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js"}],[86,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,c){let u="",l=!1;for(let d=0;d<e.length;d++){const h=e[d],f=s(h);if(f===undefined)continue;let p="";if(p=0===r.length?f:`${r}.${f}`,f===t.textNodeName){let e=h[f];o(p,t)||(e=t.tagValueProcessor(f,e),e=a(e,t)),l&&(u+=c),u+=e,l=!1;continue}if(f===t.cdataPropName){l&&(u+=c),u+=`<![CDATA[${h[f][0][t.textNodeName]}]]>`,l=!1;continue}if(f===t.commentPropName){u+=c+`< ! --${h[f][0][t.textNodeName]}-- >`,l=!0;continue}if("?"===f[0]){const e=i(h[":@"],t),r="?xml"===f?"":c;let n=h[f][0][t.textNodeName];n=0!==n.length?" "+n:"",u+=r+`<${f}${n}${e}?>`,l=!0;continue}let m=c;""!==m&&(m+=t.indentBy);const g=c+`<${f}${i(h[":@"],t)}`,b=n(h[f],t,p,m);-1!==t.unpairedTags.indexOf(f)?t.suppressUnpairedNode?u+=g+">":u+=g+"/>":b&&0!==b.length||!t.suppressEmptyNode?b&&b.endsWith(">")?u+=g+`>${b}${c}</${f}>`:(u+=g+">",b&&""!==c&&(b.includes("/>")||b.includes("</"))?u+=c+t.indentBy+b+c:u+=b,u+=`</${f}>`):u+=g+"/>",l=!0}return u}function s(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(e.hasOwnProperty(n)&&":@"!==n)return n}}function i(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){if(!e.hasOwnProperty(n))continue;let s=t.attributeValueProcessor(n,e[n]);s=a(s,t),!0===s&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}return r}function o(e,t){let r=(e=e.substr(0,e.length-t.textNodeName.length-1)).substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function a(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}t.exports=function(e,t){let r="";return t.format&&t.indentBy.length>0&&(r="\n"),n(e,t,"",r)}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"}],[87,{"../util":83},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../util");function s(e,t){let r="";for(;t<e.length&&"'"!==e[t]&&'"'!==e[t];t++)r+=e[t];if(r=r.trim(),-1!==r.indexOf(" "))throw new Error("External entites are not supported");const n=e[t++];let s="";for(;t<e.length&&e[t]!==n;t++)s+=e[t];return[r,s,t]}function i(e,t){return"!"===e[t+1]&&"-"===e[t+2]&&"-"===e[t+3]}function o(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"N"===e[t+3]&&"T"===e[t+4]&&"I"===e[t+5]&&"T"===e[t+6]&&"Y"===e[t+7]}function a(e,t){return"!"===e[t+1]&&"E"===e[t+2]&&"L"===e[t+3]&&"E"===e[t+4]&&"M"===e[t+5]&&"E"===e[t+6]&&"N"===e[t+7]&&"T"===e[t+8]}function c(e,t){return"!"===e[t+1]&&"A"===e[t+2]&&"T"===e[t+3]&&"T"===e[t+4]&&"L"===e[t+5]&&"I"===e[t+6]&&"S"===e[t+7]&&"T"===e[t+8]}function u(e,t){return"!"===e[t+1]&&"N"===e[t+2]&&"O"===e[t+3]&&"T"===e[t+4]&&"A"===e[t+5]&&"T"===e[t+6]&&"I"===e[t+7]&&"O"===e[t+8]&&"N"===e[t+9]}function l(e){if(n.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}t.exports=function(e,t){const r={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let n=1,d=!1,h=!1,f="";for(;t<e.length;t++)if("<"!==e[t]||h)if(">"===e[t]){if(h?"-"===e[t-1]&&"-"===e[t-2]&&(h=!1,n--):n--,0===n)break}else"["===e[t]?d=!0:f+=e[t];else{if(d&&o(e,t))t+=7,[entityName,val,t]=s(e,t+1),-1===val.indexOf("&")&&(r[l(entityName)]={regx:RegExp(`&${entityName};`,"g"),val:val});else if(d&&a(e,t))t+=8;else if(d&&c(e,t))t+=8;else if(d&&u(e,t))t+=9;else{if(!i)throw new Error("Invalid DOCTYPE");h=!0}n++,f=""}if(0!==n)throw new Error("Unclosed DOCTYPE")}return{entities:r,i:t}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js"}],[88,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}};r.buildOptions=function(e){return Object.assign({},n,e)},r.defaultOptions=n}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js"}],[89,{"../util":83,"./DocTypeReader":87,"./xmlNode":92,strnum:163},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("../util"),s=e("./xmlNode"),i=e("./DocTypeReader"),o=e("strnum");function a(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function c(e,t,r,n,s,i,o){if(e!==undefined&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){o||(e=this.replaceEntitiesValue(e));const n=this.options.tagValueProcessor(t,e,r,s,i);if(null===n||n===undefined)return e;if(typeof n!=typeof e||n!==e)return n;if(this.options.trimValues)return w(e,this.options.parseTagValue,this.options.numberParseOptions);return e.trim()===e?w(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function u(e){if(this.options.removeNSPrefix){const t=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=r+t[1])}return e}const l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function d(e,t,r){if(!this.options.ignoreAttributes&&"string"==typeof e){const r=n.getAllMatches(e,l),s=r.length,i={};for(let e=0;e<s;e++){const n=this.resolveNameSpace(r[e][1]);let s=r[e][4],o=this.options.attributeNamePrefix+n;if(n.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),"__proto__"===o&&(o="#__proto__"),s!==undefined){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const e=this.options.attributeValueProcessor(n,s,t);null===e||e===undefined?i[o]=s:i[o]=typeof e!=typeof s||e!==s?e:w(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[o]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=i,e}return i}}const h=function(e){e=e.replace(/\r\n?/g,"\n");const t=new s("!xml");let r=t,n="",o="";for(let a=0;a<e.length;a++){if("<"===e[a])if("/"===e[a+1]){const t=b(e,">",a,"Closing Tag is not closed.");let s=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=s.indexOf(":");-1!==e&&(s=s.substr(e+1))}this.options.transformTagName&&(s=this.options.transformTagName(s)),r&&(n=this.saveTextToParentTag(n,r,o));const i=o.substring(o.lastIndexOf(".")+1);if(s&&-1!==this.options.unpairedTags.indexOf(s))throw new Error(`Unpaired tag can not be used as closing tag: </${s}>`);let c=0;i&&-1!==this.options.unpairedTags.indexOf(i)?(c=o.lastIndexOf(".",o.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=o.lastIndexOf("."),o=o.substring(0,c),r=this.tagsNodeStack.pop(),n="",a=t}else if("?"===e[a+1]){let t=v(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,o),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new s(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,o,t.tagName)),this.addChild(r,e,o)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=b(e,"-- >",a+4,"Comment is not closed.");if(this.options.commentPropName){const s=e.substring(a+4,t-2);n=this.saveTextToParentTag(n,r,o),r.add(this.options.commentPropName,[{[this.options.textNodeName]:s}])}a=t}else if("!D"===e.substr(a+1,2)){const t=i(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=b(e,"]]>",a,"CDATA is not closed.")-2,s=e.substring(a+9,t);n=this.saveTextToParentTag(n,r,o);let i=this.parseTextData(s,r.tagname,o,!0,!1,!0,!0);i==undefined&&(i=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:s}]):r.add(this.options.textNodeName,i),a=t+2}else{let i=v(e,a,this.options.removeNSPrefix),c=i.tagName;const u=i.rawTagName;let l=i.tagExp,d=i.attrExpPresent,h=i.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),r&&n&&"!xml"!==r.tagname&&(n=this.saveTextToParentTag(n,r,o,!1));const f=r;if(f&&-1!==this.options.unpairedTags.indexOf(f.tagname)&&(r=this.tagsNodeStack.pop(),o=o.substring(0,o.lastIndexOf("."))),c!==t.tagname&&(o+=o?"."+c:c),this.isItStopNode(this.options.stopNodes,o,c)){let t="";if(l.length>0&&l.lastIndexOf("/")===l.length-1)a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(c))a=i.closeIndex;else{const r=this.readStopNodeData(e,u,h+1);if(!r)throw new Error(`Unexpected end of ${u}`);a=r.i,t=r.tagContent}const n=new s(c);c!==l&&d&&(n[":@"]=this.buildAttributesMap(l,o,c)),t&&(t=this.parseTextData(t,c,o,!0,d,!0,!0)),o=o.substr(0,o.lastIndexOf(".")),n.add(this.options.textNodeName,t),this.addChild(r,n,o)}else{if(l.length>0&&l.lastIndexOf("/")===l.length-1){"/"===c[c.length-1]?(c=c.substr(0,c.length-1),o=o.substr(0,o.length-1),l=c):l=l.substr(0,l.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));const e=new s(c);c!==l&&d&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(r,e,o),o=o.substr(0,o.lastIndexOf("."))}else{const e=new s(c);this.tagsNodeStack.push(r),c!==l&&d&&(e[":@"]=this.buildAttributesMap(l,o,c)),this.addChild(r,e,o),r=e}n="",a=h}}else n+=e[a]}return t.child};function f(e,t,r){const n=this.options.updateTag(t.tagname,r,t[":@"]);!1===n||("string"==typeof n?(t.tagname=n,e.addChild(t)):e.addChild(t))}const p=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function m(e,t,r,n){return e&&(n===undefined&&(n=0===Object.keys(t.child).length),(e=this.parseTextData(e,t.tagname,r,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,n))!==undefined&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function g(e,t,r){const n="*."+r;for(const r in e){const s=e[r];if(n===s||t===s)return!0}return!1}function b(e,t,r,n){const s=e.indexOf(t,r);if(-1===s)throw new Error(n);return s+t.length-1}function v(e,t,r,n=">"){const s=function(e,t,r=">"){let n,s="";for(let i=t;i<e.length;i++){let t=e[i];if(n)t===n&&(n="");else if('"'===t||"'"===t)n=t;else if(t===r[0]){if(!r[1])return{data:s,index:i};if(e[i+1]===r[1])return{data:s,index:i}}else"\t"===t&&(t=" ");s+=t}}(e,t+1,n);if(!s)return;let i=s.data;const o=s.index,a=i.search(/\s/);let c=i,u=!0;-1!==a&&(c=i.substring(0,a),i=i.substring(a+1).trimStart());const l=c;if(r){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1),u=c!==s.data.substr(e+1))}return{tagName:c,tagExp:i,closeIndex:o,attrExpPresent:u,rawTagName:l}}function y(e,t,r){const n=r;let s=1;for(;r<e.length;r++)if("<"===e[r])if("/"===e[r+1]){const i=b(e,">",r,`${t} is not closed`);if(e.substring(r+2,i).trim()===t&&(s--,0===s))return{tagContent:e.substring(n,r),i:i};r=i}else if("?"===e[r+1]){r=b(e,"?>",r+1,"StopNode is not closed.")}else if("!--"===e.substr(r+1,3)){r=b(e,"-- >",r+3,"StopNode is not closed.")}else if("!["===e.substr(r+1,2)){r=b(e,"]]>",r,"StopNode is not closed.")-2}else{const n=v(e,r,">");if(n){(n&&n.tagName)===t&&"/"!==n.tagExp[n.tagExp.length-1]&&s++,r=n.closeIndex}}}function w(e,t,r){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&o(e,r)}return n.isExist(e)?e:""}t.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"}},this.addExternalEntities=a,this.parseXml=h,this.parseTextData=c,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=p,this.readStopNodeData=y,this.saveTextToParentTag=m,this.addChild=f}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js"}],[90,{"../validator":84,"./OptionsBuilder":88,"./OrderedObjParser":89,"./node2json":91},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const{buildOptions:n}=e("./OptionsBuilder"),s=e("./OrderedObjParser"),{prettify:i}=e("./node2json"),o=e("../validator");t.exports=class{constructor(e){this.externalEntities={},this.options=n(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const r=o.validate(e,t);if(!0!==r)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}const r=new s(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||n===undefined?n:i(n,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"}],[91,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r){let a;const c={};for(let u=0;u<e.length;u++){const l=e[u],d=s(l);let h="";if(h=r===undefined?d:r+"."+d,d===t.textNodeName)a===undefined?a=l[d]:a+=""+l[d];else{if(d===undefined)continue;if(l[d]){let e=n(l[d],t,h);const r=o(e,t);l[":@"]?i(e,l[":@"],h,t):1!==Object.keys(e).length||e[t.textNodeName]===undefined||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],c[d]!==undefined&&c.hasOwnProperty(d)?(Array.isArray(c[d])||(c[d]=[c[d]]),c[d].push(e)):t.isArray(d,h,r)?c[d]=[e]:c[d]=e}}}return"string"==typeof a?a.length>0&&(c[t.textNodeName]=a):a!==undefined&&(c[t.textNodeName]=a),c}function s(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const r=t[e];if(":@"!==r)return r}}function i(e,t,r,n){if(t){const s=Object.keys(t),i=s.length;for(let o=0;o<i;o++){const i=s[o];n.isArray(i,r+"."+i,!0,!0)?e[i]=[t[i]]:e[i]=t[i]}}}function o(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return 0===n||!(1!==n||!e[r]&&"boolean"!=typeof e[r]&&0!==e[r])}r.prettify=function(e,t){return n(e,t)}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/node2json.js"}],[92,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child})}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser",file:"../../node_modules/fast-xml-parser/src/xmlparser/xmlNode.js"}],[93,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return-1!==n&&(-1===s||n<s)}}}},{package:"istanbul-lib-report>supports-color>has-flag",file:"../../node_modules/has-flag/index.js"}],[94,{"./inherits_browser.js":95,util:"util"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){try{var n=e("util");if("function"!=typeof n.inherits)throw"";t.exports=n.inherits}catch(r){t.exports=e("./inherits_browser.js")}}}},{package:"browserify>inherits",file:"../../node_modules/inherits/inherits.js"}],[95,{},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"}],[96,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;n.writable=e=>n(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,n.readable=e=>n(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,n.duplex=e=>n.writable(e)&&n.readable(e),n.transform=e=>n.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState,t.exports=n}}},{package:"@metamask/providers>is-stream",file:"../../node_modules/is-stream/index.js"}],[97,{wrappy:167},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("wrappy");function s(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(s),t.exports.strict=n(i),s.proto=s((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))}}},{package:"@metamask/object-multiplex>once",file:"../../node_modules/once/once.js"}],[98,{"./lib/error-with-cause":99,"./lib/helpers":100},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"}],[99,{},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"}],[100,{},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"}],[101,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n={};function s(e,t,r){r||(r=Error);class s extends r{constructor(e,r,n){super(function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(e,r,n))}}s.prototype.name=r.name,s.prototype.code=e,n[e]=s}function i(e,t){if(Array.isArray(e)){const r=e.length;return e=e.map((e=>String(e))),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${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){let n;var s,o;let 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 ${e} ${n} ${i(t,"type")}`;else{const r=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 "${e}" ${r} ${n} ${i(t,"type")}`}return a+=". Received type "+typeof r,a}),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.js"}],[102,{"./_stream_readable":104,"./_stream_writable":106,inherits:94},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){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||process.nextTick(d,this)}function d(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)}})}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_duplex.js"}],[103,{"./_stream_transform":105,inherits:94},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"}],[104,{"../errors":101,"./_stream_duplex":102,"./internal/streams/async_iterator":107,"./internal/streams/buffer_list":108,"./internal/streams/destroy":109,"./internal/streams/from":111,"./internal/streams/state":113,"./internal/streams/stream":114,buffer:"buffer",events:"events",inherits:94,"string_decoder/":162,util:"util"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;t.exports=S,S.ReadableState=E;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,d,h,f=e("./internal/streams/buffer_list"),p=e("./internal/streams/destroy"),m=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(S,i);var k=p.errorOrDestroy,_=["error","close","destroy","pause","resume"];function E(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 f,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 S(t){if(n=n||e("./_stream_duplex"),!(this instanceof S))return new S(t);var r=this instanceof n;this._readableState=new E(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 T(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?x(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)k(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?k(e,new w):j(e,u,t,!0);else if(u.ended)k(e,new v);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?j(e,u,t,!1):M(e,u)):j(e,u,t,!1)}else n||(u.reading=!1,M(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function j(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&&x(e)),M(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==undefined&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.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),T(this,e,t,!1,r)},S.prototype.unshift=function(e){return T(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.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 x(e){var t=e._readableState;c("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(c("emitReadable",t.flowing),t.emittedReadable=!0,process.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,$(e)}function M(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(A,e,t))}function A(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 C(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 I(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"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(c("flow",t.flowing);t.flowing&&null!==e.read(););}function L(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 D(e){var t=e._readableState;c("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(B,t,e))}function B(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}S.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?D(this):x(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&D(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?L(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&&D(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){k(this,new y("_read()"))},S.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?a:m;function o(t,s){c("onunpipe"),t===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,c("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",m),r.removeListener("data",d),l=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function a(){c("onend"),e.end()}n.endEmitted?process.nextTick(i):r.once("end",i),e.on("unpipe",o);var u=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,$(e))}}(r);e.on("drain",u);var l=!1;function d(t){c("ondata");var s=e.write(t);c("dest.write",s),!1===s&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!l&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){c("onerror",t),m(),e.removeListener("error",h),0===s(e,"error")&&k(e,t)}function f(){e.removeListener("finish",p),m()}function p(){c("onfinish"),e.removeListener("close",f),m()}function m(){c("unpipe"),r.unpipe(e)}return r.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",h),e.once("close",f),e.once("finish",p),e.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),e},S.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},S.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?x(this):n.reading||process.nextTick(I,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=i.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(C,this),r},S.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&e!==undefined||process.nextTick(C,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(c("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},S.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},S.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<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){c("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return d===undefined&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,r){return h===undefined&&(h=e("./internal/streams/from")),h(S,t,r)})}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_readable.js"}],[105,{"../errors":101,"./_stream_duplex":102,inherits:94},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",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(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"}],[106,{"../errors":101,"./_stream_duplex":102,"./internal/streams/destroy":109,"./internal/streams/state":113,"./internal/streams/stream":114,buffer:"buffer",inherits:94,"util-deprecate":166},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){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=S,S.WritableState=E;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"),d=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,f=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,m=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,k=l.errorOrDestroy;function _(){}function E(t,r,i){s=s||e("./_stream_duplex"),t=t||{},"boolean"!=typeof i&&(i=r instanceof s),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,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 r=e._writableState,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,s){--t.pendingcb,r?(process.nextTick(s,n),process.nextTick(P,e,t),e._writableState.errorEmitted=!0,k(e,n)):(s(n),e._writableState.errorEmitted=!0,k(e,n),P(e,t))}(e,r,n,t,s);else{var i=R(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?process.nextTick(j,e,r,i,s):j(e,r,i,s)}}(r,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 S(t){var r=this instanceof(s=s||e("./_stream_duplex"));if(!r&&!u.call(S,this))return new S(t);this._writableState=new E(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 T(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 j(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,T(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,d=r.callback;if(T(e,t,!1,t.objectMode?1:u.length,u,l,d),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 x(e,t){e._final((function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var r=R(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(x,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}e("inherits")(S,o),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.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(S,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===S&&(e&&e._writableState instanceof E)}})):u=function(e){return e instanceof this},S.prototype.pipe=function(){k(this,new g)},S.prototype.write=function(e,t,r){var n,s=this._writableState,i=!1,o=!s.objectMode&&(n=e,a.isBuffer(n)||n instanceof c);return o&&!a.isBuffer(e)&&(e=function(e){return a.from(e)}(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=_),s.ending?function(e,t){var r=new y;k(e,r),process.nextTick(t,r)}(this,r):(o||function(e,t,r,n){var s;return null===r?s=new v:"string"==typeof r||t.objectMode||(s=new f("chunk",["string","Buffer"],r)),!s||(k(e,s),process.nextTick(n,s),!1)}(this,s,e,r))&&(s.pendingcb++,i=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 T(e,t,!1,c,n,s,i);return u}(this,s,o,e,t,r)),i},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},S.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 w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&e!==undefined&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==undefined&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/_stream_writable.js"}],[107,{"./end-of-stream":110},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){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"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[o]=null,e[a]=null,t(f(r,!1)))}}function m(e){process.nextTick(p,e)}var g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(f(undefined,!0));if(this[h].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(f(undefined,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(f(undefined,!0)):t[d](r,n)}),n)}}(n,this));else{var s=this[h].read();if(null!==s)return Promise.resolve(f(s,!1));r=new Promise(this[d])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(f(undefined,!0))}))}))})),n),g);t.exports=function(e){var t,r=Object.create(b,(s(t={},h,{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,d,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[o]=null,r[a]=null,e(f(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(f(undefined,!0))),r[u]=!0})),e.on("readable",m.bind(null,r)),r}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/async_iterator.js"}],[108,{buffer:"buffer",util:"util"},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"}],[109,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){i(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(i,this,e)):process.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?process.nextTick(s,r):(r._writableState.errorEmitted=!0,process.nextTick(n,r,e)):process.nextTick(n,r,e):t?(process.nextTick(s,r),t(e)):process.nextTick(s,r)})),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)}}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/destroy.js"}],[110,{"../../../errors":101},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)},d=t._readableState&&t._readableState.endEmitted,h=function(){o=!1,d=!0,a||i.call(t)},f=function(e){i.call(t,e)},p=function(){var e;return o&&!d?(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",p),t.req?m():t.on("request",m)),t.on("end",h),t.on("finish",l),!1!==r.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),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",h),t.removeListener("error",f),t.removeListener("close",p)}}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js"}],[111,{"../../../errors":101},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t,r,n,s,i,o){try{var a=e[i](o),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,s)}function s(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 i(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 o=e("../../../errors").codes.ERR_INVALID_ARG_TYPE;t.exports=function(e,t,r){var a;if(t&&"function"==typeof t.next)a=t;else if(t&&t[Symbol.asyncIterator])a=t[Symbol.asyncIterator]();else{if(!t||!t[Symbol.iterator])throw new o("iterable",["Iterable"],t);a=t[Symbol.iterator]()}var c=new e(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({objectMode:!0},r)),u=!1;function l(){return d.apply(this,arguments)}function d(){var e;return e=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push(yield t)?l():u=!1}catch(e){c.destroy(e)}},d=function(){var t=this,r=arguments;return new Promise((function(s,i){var o=e.apply(t,r);function a(e){n(o,s,i,a,c,"next",e)}function c(e){n(o,s,i,a,c,"throw",e)}a(undefined)}))},d.apply(this,arguments)}return c._read=function(){u||(u=!0,l())},c}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/from.js"}],[112,{"../../../errors":101,"./end-of-stream":110},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,d=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 h=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&&h.forEach(c),i||(h.forEach(c),d(l))}))}));return r.reduce(u)}}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/pipeline.js"}],[113,{"../../../errors":101},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"}],[114,{stream:"stream"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("stream")}}},{package:"readable-stream",file:"../../node_modules/readable-stream/lib/internal/streams/stream.js"}],[115,{"./lib/_stream_duplex.js":102,"./lib/_stream_passthrough.js":103,"./lib/_stream_readable.js":104,"./lib/_stream_transform.js":105,"./lib/_stream_writable.js":106,"./lib/internal/streams/end-of-stream.js":110,"./lib/internal/streams/pipeline.js":112,stream:"stream"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("stream");"disable"===process.env.READABLE_STREAM&&n?(t.exports=n.Readable,Object.assign(t.exports,n),t.exports.Stream=n):((r=t.exports=e("./lib/_stream_readable.js")).Stream=n||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.js"}],[116,{buffer:"buffer"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){
13389
13389
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
13390
- 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"}],[117,{"../functions/cmp":121,"../internal/debug":146,"../internal/parse-options":148,"../internal/re":149,"./range":118,"./semver":119},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 d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(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"),d=e("./range")}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/comparator.js"}],[118,{"../internal/constants":145,"../internal/debug":146,"../internal/parse-options":148,"../internal/re":149,"./comparator":117,"./semver":119,"lru-cache":150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),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=>!g(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&&b(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+e,r=s.get(t);if(r)return r;const n=this.options.loose,i=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(i,x(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],d),a("comparator trim",e),e=e.replace(u[l.TILDETRIM],h),a("tilde trim",e),e=e.replace(u[l.CARETTRIM],f),a("caret trim",e);let c=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));n&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),a("range list",c);const b=new Map,v=c.map((e=>new o(e,this.options)));for(const e of v){if(g(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const w=[...b.values()];return s.set(t,w),w}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(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 c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}t.exports=n;const s=new(e("lru-cache"))({max:1e3}),i=e("../internal/parse-options"),o=e("./comparator"),a=e("../internal/debug"),c=e("./semver"),{safeRe:u,t:l,comparatorTrimReplace:d,tildeTrimReplace:h,caretTrimReplace:f}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=e("../internal/constants"),g=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,v=(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},y=(e,t)=>(a("comp",e,t),e=E(e,t),a("caret",e),e=k(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=O(e,t),a("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return a("tilde",e,t,r,n,s,i),w(r)?o="":w(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:w(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let c;return a("caret",e,t,r,s,i,o),w(r)?c="":w(s)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(i)?c="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),c="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`):(a("no pr"),c="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`),a("caret return",c),c}))},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>j(e,t))).join(" ")),j=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,s,i,o,c)=>{a("xRange",e,r,n,s,i,o,c);const u=w(s),l=u||w(i),d=l||w(o),h=d;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(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&&(c="-0"),r=`${n+s}.${i}.${o}${c}`):l?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:d&&(r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),a("xRange return",r),r}))},O=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),x=e=>(t,r,n,s,i,o,a,c,u,l,d,h,f)=>`${r=w(n)?"":w(s)?`>=${n}.0.0${e?"-0":""}`:w(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${d}-${h}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),P=(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(a(e[r].semver),e[r].semver!==o.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"}],[119,{"../internal/constants":145,"../internal/debug":146,"../internal/identifiers":147,"../internal/parse-options":148,"../internal/re":149},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,t:a}=e("../internal/re"),c=e("../internal/parse-options"),{compareIdentifiers:u}=e("../internal/identifiers");class l{constructor(e,t){if(t=c(t),e instanceof l){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[a.LOOSE]:o[a.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 l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(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 u(r,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],s=e.build[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 u(r,s)}while(++t)}inc(e,t,r){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"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(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");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===u(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=l}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/semver.js"}],[120,{"./parse":136},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"}],[121,{"./eq":127,"./gt":128,"./gte":129,"./lt":131,"./lte":132,"./neq":135},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"}],[122,{"../classes/semver":119,"../internal/re":149,"./parse":136},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]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${d}`,t)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/coerce.js"}],[123,{"../classes/semver":119},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"}],[124,{"./compare":125},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"}],[125,{"../classes/semver":119},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"}],[126,{"./parse.js":136},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)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";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"}],[127,{"./compare":125},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"}],[128,{"./compare":125},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"}],[129,{"./compare":125},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"}],[130,{"../classes/semver":119},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"}],[131,{"./compare":125},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"}],[132,{"./compare":125},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"}],[133,{"../classes/semver":119},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"}],[134,{"../classes/semver":119},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"}],[135,{"./compare":125},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"}],[136,{"../classes/semver":119},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"}],[137,{"../classes/semver":119},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"}],[138,{"./parse":136},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"}],[139,{"./compare":125},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"}],[140,{"./compare-build":123},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"}],[141,{"../classes/range":118},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"}],[142,{"./compare-build":123},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"}],[143,{"./parse":136},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"}],[144,{"./classes/comparator":117,"./classes/range":118,"./classes/semver":119,"./functions/clean":120,"./functions/cmp":121,"./functions/coerce":122,"./functions/compare":125,"./functions/compare-build":123,"./functions/compare-loose":124,"./functions/diff":126,"./functions/eq":127,"./functions/gt":128,"./functions/gte":129,"./functions/inc":130,"./functions/lt":131,"./functions/lte":132,"./functions/major":133,"./functions/minor":134,"./functions/neq":135,"./functions/parse":136,"./functions/patch":137,"./functions/prerelease":138,"./functions/rcompare":139,"./functions/rsort":140,"./functions/satisfies":141,"./functions/sort":142,"./functions/valid":143,"./internal/constants":145,"./internal/identifiers":147,"./internal/re":149,"./ranges/gtr":151,"./ranges/intersects":152,"./ranges/ltr":153,"./ranges/max-satisfying":154,"./ranges/min-satisfying":155,"./ranges/min-version":156,"./ranges/outside":157,"./ranges/simplify":158,"./ranges/subset":159,"./ranges/to-comparators":160,"./ranges/valid":161},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"),d=e("./functions/diff"),h=e("./functions/major"),f=e("./functions/minor"),p=e("./functions/patch"),m=e("./functions/prerelease"),g=e("./functions/compare"),b=e("./functions/rcompare"),v=e("./functions/compare-loose"),y=e("./functions/compare-build"),w=e("./functions/sort"),k=e("./functions/rsort"),_=e("./functions/gt"),E=e("./functions/lt"),S=e("./functions/eq"),T=e("./functions/neq"),j=e("./functions/gte"),O=e("./functions/lte"),R=e("./functions/cmp"),x=e("./functions/coerce"),P=e("./classes/comparator"),M=e("./classes/range"),A=e("./functions/satisfies"),C=e("./ranges/to-comparators"),I=e("./ranges/max-satisfying"),N=e("./ranges/min-satisfying"),$=e("./ranges/min-version"),L=e("./ranges/valid"),D=e("./ranges/outside"),B=e("./ranges/gtr"),F=e("./ranges/ltr"),U=e("./ranges/intersects"),W=e("./ranges/simplify"),H=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:b,compareLoose:v,compareBuild:y,sort:w,rsort:k,gt:_,lt:E,eq:S,neq:T,gte:j,lte:O,cmp:R,coerce:x,Comparator:P,Range:M,satisfies:A,toComparators:C,maxSatisfying:I,minSatisfying:N,minVersion:$,validRange:L,outside:D,gtr:B,ltr:F,intersects:U,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"}],[145,{},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"}],[146,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};t.exports=n}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/debug.js"}],[147,{},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"}],[148,{},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"}],[149,{"./constants":145,"./debug":146},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.t={};let d=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[h,s]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),l[e]=s,u[s]=t,a[s]=new RegExp(t,r?"g":undefined),c[s]=new RegExp(n,r?"g":undefined)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),p("FULL",`^${u[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),p("LOOSE",`^${u[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),p("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[l.COERCE],!0),p("COERCERTLFULL",u[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",p("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",p("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/re.js"}],[150,{yallist:169},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("yallist"),s=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,r)=>{const n=e[h].get(t);if(n){const t=n.value;if(g(e,t)){if(v(e,n),!e[a])return undefined}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},b=e=>{if(e[i]>e[s])for(let t=e[d].tail;e[i]>e[s]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[u]&&e[u](r.key,r.value),e[i]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class y{constructor(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0}}const w=(e,t,r,n)=>{let s=r.value;g(e,s)&&(v(e,r),e[a]||(s=undefined)),s&&t.call(n,s.value,s.key,e)};t.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[s]=e.max||Infinity;const t=e.length||p;if(this[o]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity,b(this)}get max(){return this[s]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,b(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[o]&&(this[o]=e,this[i]=0,this[d].forEach((e=>{e.length=this[o](e.value,e.key),this[i]+=e.length}))),b(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[h]=new Map,this[d]=new n,this[i]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](t,e);if(this[h].has(e)){if(a>this[s])return v(this,this[h].get(e)),!1;const o=this[h].get(e).value;return this[u]&&(this[l]||this[u](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[i]+=a-o.length,o.length=a,this.get(e),b(this),!0}const f=new y(e,t,a,n,r);return f.length>this[s]?(this[u]&&this[u](e,t),!1):(this[i]+=f.length,this[d].unshift(f),this[h].set(e,this[d].head),b(this),!0)}has(e){if(!this[h].has(e))return!1;const t=this[h].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{const e=s-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[h].forEach(((e,t)=>m(this,t,!1)))}}}}},{package:"depcheck>semver>lru-cache",file:"../../node_modules/semver/node_modules/lru-cache/index.js"}],[151,{"./outside":157},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"}],[152,{"../classes/range":118},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"}],[153,{"./outside":157},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"}],[154,{"../classes/range":118,"../classes/semver":119},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"}],[155,{"../classes/range":118,"../classes/semver":119},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"}],[156,{"../classes/range":118,"../classes/semver":119,"../functions/gt":128},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"}],[157,{"../classes/comparator":117,"../classes/range":118,"../classes/semver":119,"../functions/gt":128,"../functions/gte":129,"../functions/lt":131,"../functions/lte":132,"../functions/satisfies":141},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"),d=e("../functions/gte");t.exports=(e,t,r,h)=>{let f,p,m,g,b;switch(e=new n(e,h),t=new o(t,h),r){case">":f=c,p=l,m=u,g=">",b=">=";break;case"<":f=u,p=d,m=c,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,h))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,f(e.semver,o.semver,h)?o=e:m(e.semver,a.semver,h)&&(a=e)})),o.operator===g||o.operator===b)return!1;if((!a.operator||a.operator===g)&&p(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"}],[158,{"../functions/compare.js":125,"../functions/satisfies.js":141},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(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length<d.length?l:t}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/simplify.js"}],[159,{"../classes/comparator.js":117,"../classes/range.js":118,"../functions/compare.js":125,"../functions/satisfies.js":141},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,f,p,m,g,b;for(const t of e)">"===t.operator||">="===t.operator?s=d(s,t,r):"<"===t.operator||"<="===t.operator?l=h(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(f=a(s.semver,l.semver,r),f>0)return null;if(0===f&&(">="!==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 v=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,y=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;v&&1===v.prerelease.length&&"<"===l.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s)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(p=d(s,e,r),p===e&&p!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(m=h(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!==f)return!1}return!(s&&g&&!l&&0!==f)&&(!(l&&b&&!s&&0!==f)&&(!y&&!v))},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},h=(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"}],[160,{"../classes/range":118},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"}],[161,{"../classes/range":118},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"}],[162,{"safe-buffer":116},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=d,t=3;break;default:return this.write=h,void(this.end=f)}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,r){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 d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(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"}],[163,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[-+]?0x[a-fA-F0-9]+$/,s=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(e,t={}){if(t=Object.assign({},i,t),!e||"string"!=typeof e)return e;let r=e.trim();if(t.skipLike!==undefined&&t.skipLike.test(r))return e;if(t.hex&&n.test(r))return Number.parseInt(r,16);{const n=s.exec(r);if(n){const s=n[1],i=n[2];let o=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(n[3]);const a=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&s&&"."!==r[2])return e;if(!t.leadingZeros&&i.length>0&&!s&&"."!==r[1])return e;{const n=Number(r),c=""+n;return-1!==c.search(/[eE]/)||a?t.eNotation?n:e:-1!==r.indexOf(".")?"0"===c&&""===o||c===o||s&&c==="-"+o?n:e:i?o===c||s+o===c?n:e:r===c||r===s+c?n:e}}return e}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser>strnum",file:"../../node_modules/strnum/strnum.js"}],[164,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Superstruct={})}(this,(function(e){class t 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&&(this.cause=a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function r(e){return"object"==typeof e&&null!=e}function n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}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;!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}}function*o(e,t,n,s){var o;r(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const r of e){const e=i(r,t,n,s);e&&(yield e)}}function*a(e,t,n={}){const{path:s=[],branch:i=[e],coerce:o=!1,mask:c=!1}=n,u={path:s,branch:i};if(o&&(e=t.coercer(e,u),c&&"type"!==t.type&&r(t.schema)&&r(e)&&!Array.isArray(e)))for(const r in e)t.schema[r]===undefined&&delete e[r];let l="valid";for(const r of t.validator(e,u))r.explanation=n.message,l="not_valid",yield[r,undefined];for(let[d,h,f]of t.entries(e,u)){const t=a(h,f,{path:d===undefined?s:[...s,d],branch:d===undefined?i:[...i,h],coerce:o,mask:c,message:n.message});for(const n of t)n[0]?(l=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],undefined]):o&&(h=n[1],d===undefined?e=h:e instanceof Map?e.set(d,h):e instanceof Set?e.add(h):r(e)&&(h!==undefined||d in e)&&(e[d]=h))}if("not_valid"!==l)for(const r of t.refiner(e,u))r.explanation=n.message,l="not_refined",yield[r,undefined];"valid"===l&&(yield[undefined,e])}class c{constructor(e){const{type:t,schema:r,validator:n,refiner:s,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>o(n(e,t),t,this,e):()=>[],this.refiner=s?(e,t)=>o(s(e,t),t,this,e):()=>[]}assert(e,t){return u(e,this,t)}create(e,t){return l(e,this,t)}is(e){return h(e,this)}mask(e,t){return d(e,this,t)}validate(e,t={}){return f(e,this,t)}}function u(e,t,r){const n=f(e,t,{message:r});if(n[0])throw n[0]}function l(e,t,r){const n=f(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function d(e,t,r){const n=f(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function h(e,t){return!f(e,t)[0]}function f(e,r,n={}){const s=a(e,r,n),i=function(e){const{done:t,value:r}=e.next();return t?undefined:r}(s);if(i[0]){return[new t(i[0],(function*(){for(const e of s)e[0]&&(yield e[0])})),undefined]}{const e=i[1];return[undefined,e]}}function p(e,t){return new c({type:e,schema:null,validator:t})}function m(){return p("never",(()=>!1))}function g(e){const t=e?Object.keys(e):[],n=m();return new c({type:"object",schema:e||null,*entries(s){if(e&&r(s)){const r=new Set(Object.keys(s));for(const n of t)r.delete(n),yield[n,s[n],e[n]];for(const e of r)yield[e,s[e],n]}},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`,coercer:e=>r(e)?{...e}:e})}function b(e){return new c({...e,validator:(t,r)=>t===undefined||e.validator(t,r),refiner:(t,r)=>t===undefined||e.refiner(t,r)})}function v(){return p("string",(e=>"string"==typeof e||`Expected a string, but received: ${s(e)}`))}function y(e){const t=Object.keys(e);return new c({type:"type",schema:e,*entries(n){if(r(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`,coercer:e=>r(e)?{...e}:e})}function w(){return p("unknown",(()=>!0))}function k(e,t,r){return new c({...e,coercer:(n,s)=>h(n,t)?e.coercer(r(n,s),s):e.coercer(n,s)})}function _(e){return e instanceof Map||e instanceof Set?e.size:e.length}function E(e,t,r){return new c({...e,*refiner(n,s){yield*e.refiner(n,s);const i=o(r(n,s),s,e,n);for(const e of i)yield{...e,refinement:t}}})}e.Struct=c,e.StructError=t,e.any=function(){return p("any",(()=>!0))},e.array=function(e){return new c({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: ${s(e)}`})},e.assert=u,e.assign=function(...e){const t="type"===e[0].type,r=e.map((e=>e.schema)),n=Object.assign({},...r);return t?y(n):g(n)},e.bigint=function(){return p("bigint",(e=>"bigint"==typeof e))},e.boolean=function(){return p("boolean",(e=>"boolean"==typeof e))},e.coerce=k,e.create=l,e.date=function(){return p("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${s(e)}`))},e.defaulted=function(e,t,r={}){return k(e,w(),(e=>{const s="function"==typeof t?t():t;if(e===undefined)return s;if(!r.strict&&n(e)&&n(s)){const t={...e};let r=!1;for(const e in s)t[e]===undefined&&(t[e]=s[e],r=!0);if(r)return t}return e}))},e.define=p,e.deprecated=function(e,t){return new c({...e,refiner:(t,r)=>t===undefined||e.refiner(t,r),validator:(r,n)=>r===undefined||(t(r,n),e.validator(r,n))})},e.dynamic=function(e){return new c({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)})},e.empty=function(e){return E(e,"empty",(t=>{const r=_(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},e.enums=function(e){const t={},r=e.map((e=>s(e))).join();for(const r of e)t[r]=r;return new c({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${s(t)}`})},e.func=function(){return p("func",(e=>"function"==typeof e||`Expected a function, but received: ${s(e)}`))},e.instance=function(e){return p("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${s(t)}`))},e.integer=function(){return p("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${s(e)}`))},e.intersection=function(e){return new c({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})},e.is=h,e.lazy=function(e){let t;return new c({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))})},e.literal=function(e){const t=s(e),r=typeof e;return new c({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${s(r)}`})},e.map=function(e,t){return new c({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: ${s(e)}`})},e.mask=d,e.max=function(e,t,r={}){const{exclusive:n}=r;return E(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},e.min=function(e,t,r={}){const{exclusive:n}=r;return E(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},e.never=m,e.nonempty=function(e){return E(e,"nonempty",(t=>_(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},e.nullable=function(e){return new c({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},e.number=function(){return p("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${s(e)}`))},e.object=g,e.omit=function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?y(n):g(n)},e.optional=b,e.partial=function(e){const t=e instanceof c?{...e.schema}:{...e};for(const e in t)t[e]=b(t[e]);return g(t)},e.pattern=function(e,t){return E(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},e.pick=function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return g(n)},e.record=function(e,t){return new c({type:"record",schema:null,*entries(n){if(r(n))for(const r in n){const s=n[r];yield[r,r,e],yield[r,s,t]}},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`})},e.refine=E,e.regexp=function(){return p("regexp",(e=>e instanceof RegExp))},e.set=function(e){return new c({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: ${s(e)}`})},e.size=function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return E(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}\``}}))},e.string=v,e.struct=function(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),p(e,t)},e.trimmed=function(e){return k(e,v(),(e=>e.trim()))},e.tuple=function(e){const t=m();return new c({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: ${s(e)}`})},e.type=y,e.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new c({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]=a(r,t,n),[s]=e;if(!s[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${s(r)}`,...i]}})},e.unknown=w,e.validate=f}))}}},{package:"superstruct",file:"../../node_modules/superstruct/dist/index.cjs"}],[165,{"has-flag":93,os:"os",tty:"tty"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("os"),s=e("tty"),i=e("has-flag"),{env:o}=process;let a;function c(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const s=function(){if("FORCE_COLOR"in o)return"true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}();s!==undefined&&(a=s);const c=r?a:s;if(0===c)return 0;if(r){if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2}if(e&&!t&&c===undefined)return 0;const u=c||0;if("dumb"===o.TERM)return u;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:u;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=Number.parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:u}function u(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(c(e,{streamIsTTY:e&&e.isTTY,...t}))}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),t.exports={supportsColor:u,stdout:u({isTTY:s.isatty(1)}),stderr:u({isTTY:s.isatty(2)})}}}},{package:"@wdio/mocha-framework>mocha>supports-color",file:"../../node_modules/supports-color/index.js"}],[166,{util:"util"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("util").deprecate}}},{package:"readable-stream>util-deprecate",file:"../../node_modules/util-deprecate/node.js"}],[167,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),s=e[e.length-1];return"function"==typeof n&&n!==s&&Object.keys(s).forEach((function(e){n[e]=s[e]})),n}}}}},{package:"@metamask/object-multiplex>once>wrappy",file:"../../node_modules/wrappy/wrappy.js"}],[168,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}}}},{package:"depcheck>semver>lru-cache>yallist",file:"../../node_modules/yallist/iterator.js"}],[169,{"./iterator.js":168},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)t.push(arguments[r]);return t}function s(e,t,r){var n=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,n){if(!(this instanceof a))return new a(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.pop=function(){if(!this.tail)return undefined;var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e},n.prototype.shift=function(){if(!this.head)return undefined;var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,s=this.head;null!==s;)r.push(e.call(t,s.value,this)),s=s.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,s=this.tail;null!==s;)r.push(e.call(t,s.value,this)),s=s.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var s=0,i=this.head;null!==i&&s<e;s++)i=i.next;for(;null!==i&&s<t;s++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var s=this.length,i=this.tail;null!==i&&s>t;s--)i=i.prev;for(;null!==i&&s>e;s--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;var o=[];for(n=0;i&&n<t;n++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(n=0;n<r.length;n++)i=s(this,i,r[n]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{e("./iterator.js")(n)}catch(e){}}}},{package:"depcheck>semver>lru-cache>yallist",file:"../../node_modules/yallist/yallist.js"}],[170,{"../logging":189,"./../../../snaps-sdk/src":195,"./../../../snaps-utils/src/index.executionenv":261,"./commands":171,"./endowments":176,"./globalEvents":183,"./sortParams":186,"./utils":187,"./validation":188,"@metamask/json-rpc-engine":8,"@metamask/providers/dist/StreamProvider":23,"@metamask/rpc-errors":45,"@metamask/utils":68,superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseSnapExecutor=void 0;var n=e("@metamask/json-rpc-engine"),s=e("@metamask/providers/dist/StreamProvider"),i=e("@metamask/rpc-errors"),o=e("./../../../snaps-sdk/src"),a=e("./../../../snaps-utils/src/index.executionenv"),c=e("@metamask/utils"),u=e("superstruct"),l=e("../logging"),d=e("./commands"),h=e("./endowments"),f=e("./globalEvents"),p=e("./sortParams"),m=e("./utils"),g=e("./validation");function b(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function v(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}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}const w={code:i.errorCodes.rpc.internal,message:"Execution Environment Error"},k=i.rpcErrors.internal({message:"Unhandled Snap Error"}).serialize(),_={ping:{struct:g.PingRequestArgumentsStruct,params:[]},executeSnap:{struct:g.ExecuteSnapRequestArgumentsStruct,params:["snapId","sourceCode","endowments"]},terminate:{struct:g.TerminateRequestArgumentsStruct,params:[]},snapRpc:{struct:g.SnapRpcRequestArgumentsStruct,params:["target","handler","origin","request"]}};var E=new WeakSet,S=new WeakSet,T=new WeakSet;async function j(e){return new Promise(((t,r)=>{this.commandStream.write(e,(e=>{e?r(e):t()}))}))}async function O(e){if(!(0,m.isValidResponse)(e))throw i.rpcErrors.internal("JSON-RPC notifications must be JSON serializable objects smaller than 64 MB.");await y(this,E,j).call(this,{...e,jsonrpc:"2.0"})}async function R(e,t){(0,m.isValidResponse)(t)?await y(this,E,j).call(this,{...t,id:e,jsonrpc:"2.0"}):await y(this,E,j).call(this,{error:(0,i.serializeError)(i.rpcErrors.internal("JSON-RPC responses must be JSON serializable objects smaller than 64 MB.")),id:e,jsonrpc:"2.0"})}r.BaseSnapExecutor=class{constructor(e,t){b(this,T),b(this,S),b(this,E),v(this,"snapData",void 0),v(this,"commandStream",void 0),v(this,"rpcStream",void 0),v(this,"methods",void 0),v(this,"snapErrorHandler",void 0),v(this,"snapPromiseErrorHandler",void 0),v(this,"lastTeardown",0),this.snapData=new Map,this.commandStream=e,this.commandStream.on("data",(e=>{this.onCommandRequest(e).catch((e=>{(0,a.logError)(e)}))})),this.rpcStream=t,this.methods=(0,d.getCommandMethodImplementations)(this.startSnap.bind(this),(async(e,t,r)=>{const n=this.snapData.get(e),s=null==n?void 0:n.exports[t],{required:o}=a.SNAP_EXPORTS[t];if((0,c.assert)(!o||s!==undefined,`No ${t} handler exported for snap "${e}`,i.rpcErrors.methodNotSupported),!s)return null;let u=await this.executeInSnapContext(e,(()=>s(r)));u===undefined&&(u=null);try{return(0,c.getSafeJson)(u)}catch(e){throw i.rpcErrors.internal(`Received non-JSON-serializable value: ${e.message.replace(/^Assertion failed: /u,"")}`)}}),this.onTerminate.bind(this))}errorHandler(e,t){const r=(0,i.serializeError)(e,{fallbackError:k,shouldIncludeStack:!1}),n=(0,o.getErrorData)(r);y(this,S,O).call(this,{method:"UnhandledError",params:{error:{...r,data:{...n,...t}}}}).catch((e=>{(0,a.logError)(e)}))}async onCommandRequest(e){if(!(0,c.isJsonRpcRequest)(e))return void((0,c.hasProperty)(e,"id")&&(0,u.is)(e.id,c.JsonRpcIdStruct)?await y(this,E,j).call(this,{error:(0,i.serializeError)(i.rpcErrors.internal("JSON-RPC requests must be JSON serializable objects.")),id:e.id,jsonrpc:"2.0"}):(0,a.logInfo)("Command stream received a non-JSON-RPC request, and was unable to respond."));const{id:t,method:r,params:n}=e;if(!(0,c.hasProperty)(_,r))return void await y(this,T,R).call(this,t,{error:i.rpcErrors.methodNotFound({data:{method:r}}).serialize()});const s=_[r],o=(0,p.sortParamKeys)(s.params,n),[l]=(0,u.validate)(o,s.struct);if(l)await y(this,T,R).call(this,t,{error:i.rpcErrors.invalidParams({message:`Invalid parameters for method "${r}": ${l.message}.`,data:{method:r,params:o}}).serialize()});else try{const e=await this.methods[r](...o);await y(this,T,R).call(this,t,{result:e})}catch(e){await y(this,T,R).call(this,t,{error:(0,i.serializeError)(e,{fallbackError:w})})}}async startSnap(e,t,r){(0,l.log)(`Starting snap '${e}' in worker.`),this.snapPromiseErrorHandler&&(0,f.removeEventListener)("unhandledrejection",this.snapPromiseErrorHandler),this.snapErrorHandler&&(0,f.removeEventListener)("error",this.snapErrorHandler),this.snapErrorHandler=t=>{this.errorHandler(t.error,{snapId:e})},this.snapPromiseErrorHandler=t=>{this.errorHandler(t instanceof Error?t:t.reason,{snapId:e})};const o=new s.StreamProvider(this.rpcStream,{jsonRpcStreamName:"metamask-provider",rpcMiddleware:[(0,n.createIdRemapMiddleware)()]});await o.initialize();const c=this.createSnapGlobal(o),u=this.createEIP1193Provider(o),d={exports:{}};try{const{endowments:n,teardown:s}=(0,h.createEndowments)({snap:c,ethereum:u,snapId:e,endowments:r,notify:y(this,S,O).bind(this)});this.snapData.set(e,{idleTeardown:s,runningEvaluations:new Set,exports:{}}),(0,f.addEventListener)("unhandledRejection",this.snapPromiseErrorHandler),(0,f.addEventListener)("error",this.snapErrorHandler);const i=new Compartment({...n,module:d,exports:d.exports});i.globalThis.self=i.globalThis,i.globalThis.global=i.globalThis,i.globalThis.window=i.globalThis,await this.executeInSnapContext(e,(()=>{i.evaluate(t),this.registerSnapExports(e,d)}))}catch(t){this.removeSnap(e);const[r]=(0,a.unwrapError)(t);throw i.rpcErrors.internal({message:`Error while running snap '${e}': ${r.message}`,data:{cause:r.serialize()}})}}onTerminate(){this.snapData.forEach((e=>e.runningEvaluations.forEach((e=>e.stop())))),this.snapData.clear()}registerSnapExports(e,t){const r=this.snapData.get(e);r&&(r.exports=a.SNAP_EXPORT_NAMES.reduce(((e,r)=>{const n=t.exports[r],{validator:s}=a.SNAP_EXPORTS[r];return s(n)?{...e,[r]:n}:e}),{}))}createSnapGlobal(e){const t=e.request.bind(e),r=async e=>{const r=(0,m.sanitizeRequestArguments)(e);return(0,m.assertSnapOutboundRequest)(r),await(0,m.withTeardown)((async()=>{await y(this,S,O).call(this,{method:"OutboundRequest",params:{source:"snap.request"}});try{return await t(r)}finally{await y(this,S,O).call(this,{method:"OutboundResponse",params:{source:"snap.request"}})}})(),this)},n=new Proxy({},{has:(e,t)=>"string"==typeof t&&["request"].includes(t),get:(e,t)=>"request"===t?r:undefined});return harden(n)}createEIP1193Provider(e){const t=e.request.bind(e),r=(0,m.proxyStreamProvider)(e,(async e=>{const r=(0,m.sanitizeRequestArguments)(e);return(0,m.assertEthereumOutboundRequest)(r),await(0,m.withTeardown)((async()=>{await y(this,S,O).call(this,{method:"OutboundRequest",params:{source:"ethereum.request"}});try{return await t(r)}finally{await y(this,S,O).call(this,{method:"OutboundResponse",params:{source:"ethereum.request"}})}})(),this)}));return harden(r)}removeSnap(e){this.snapData.delete(e)}async executeInSnapContext(e,t){const r=this.snapData.get(e);if(r===undefined)throw i.rpcErrors.internal(`Tried to execute in context of unknown snap: "${e}".`);let n;const s=new Promise(((t,r)=>n=()=>r(i.rpcErrors.internal(`The snap "${e}" has been terminated during execution.`)))),o={stop:n};try{return r.runningEvaluations.add(o),await Promise.race([t(),s])}catch(e){throw new a.WrappedSnapError(e)}finally{r.runningEvaluations.delete(o),0===r.runningEvaluations.size&&(this.lastTeardown+=1,await r.idleTeardown())}}}}}},{package:"$root$",file:"src/common/BaseSnapExecutor.ts"}],[171,{"./../../../snaps-utils/src/index.executionenv":261,"./validation":188,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCommandMethodImplementations=function(e,t,r){return{ping:async()=>Promise.resolve("OK"),terminate:async()=>(r(),Promise.resolve("OK")),executeSnap:async(t,r,n)=>(await e(t,r,n),"OK"),snapRpc:async(e,r,n,s)=>await t(e,r,o(n,r,s))??null}},r.getHandlerArguments=o;var n=e("./../../../snaps-utils/src/index.executionenv"),s=e("@metamask/utils"),i=e("./validation");function o(e,t,r){switch(t){case n.HandlerType.OnTransaction:{(0,i.assertIsOnTransactionRequestArguments)(r.params);const{transaction:e,chainId:t,transactionOrigin:n}=r.params;return{transaction:e,chainId:t,transactionOrigin:n}}case n.HandlerType.OnSignature:{(0,i.assertIsOnSignatureRequestArguments)(r.params);const{signature:e,signatureOrigin:t}=r.params;return{signature:e,signatureOrigin:t}}case n.HandlerType.OnNameLookup:{(0,i.assertIsOnNameLookupRequestArguments)(r.params);const{chainId:e,domain:t,address:n}=r.params;return t?{chainId:e,domain:t}:{chainId:e,address:n}}case n.HandlerType.OnRpcRequest:case n.HandlerType.OnKeyringRequest:return{origin:e,request:r};case n.HandlerType.OnCronjob:case n.HandlerType.OnInstall:case n.HandlerType.OnUpdate:return{request:r};case n.HandlerType.OnHomePage:return{};case n.HandlerType.OnUserInput:{(0,i.assertIsOnUserInputRequestArguments)(r.params);const{id:e,event:t}=r.params;return{id:e,event:t}}default:return(0,s.assertExhaustive)(t)}}}}},{package:"$root$",file:"src/common/commands.ts"}],[172,{"../globalObject":184,"./console":173,"./crypto":174,"./date":175,"./interval":177,"./math":178,"./network":179,"./textDecoder":180,"./textEncoder":181,"./timeout":182},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject"),s=f(e("./console")),i=f(e("./crypto")),o=f(e("./date")),a=f(e("./interval")),c=f(e("./math")),u=f(e("./network")),l=f(e("./textDecoder")),d=f(e("./textEncoder")),h=f(e("./timeout"));function f(e){return e&&e.__esModule?e:{default:e}}const p=[{endowment:AbortController,name:"AbortController"},{endowment:AbortSignal,name:"AbortSignal"},{endowment:ArrayBuffer,name:"ArrayBuffer"},{endowment:atob,name:"atob",bind:!0},{endowment:BigInt,name:"BigInt"},{endowment:BigInt64Array,name:"BigInt64Array"},{endowment:BigUint64Array,name:"BigUint64Array"},{endowment:btoa,name:"btoa",bind:!0},{endowment:DataView,name:"DataView"},{endowment:Float32Array,name:"Float32Array"},{endowment:Float64Array,name:"Float64Array"},{endowment:Int8Array,name:"Int8Array"},{endowment:Int16Array,name:"Int16Array"},{endowment:Int32Array,name:"Int32Array"},{endowment:Uint8Array,name:"Uint8Array"},{endowment:Uint8ClampedArray,name:"Uint8ClampedArray"},{endowment:Uint16Array,name:"Uint16Array"},{endowment:Uint32Array,name:"Uint32Array"},{endowment:URL,name:"URL"},{endowment:WebAssembly,name:"WebAssembly"}];r.default=()=>{const e=[i.default,a.default,c.default,u.default,h.default,l.default,d.default,o.default,s.default];return p.forEach((t=>{const r={names:[t.name],factory:()=>{const e="function"==typeof t.endowment&&t.bind?t.endowment.bind(n.rootRealmGlobal):t.endowment;return{[t.name]:harden(e)}}};e.push(r)})),e}}}},{package:"$root$",file:"src/common/endowments/commonEndowmentFactory.ts"}],[173,{"../globalObject":184,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.consoleMethods=r.consoleAttenuatedMethods=void 0;var n=e("@metamask/utils"),s=e("../globalObject");const i=r.consoleAttenuatedMethods=new Set(["log","assert","error","debug","info","warn"]),o=r.consoleMethods=new Set(["debug","error","info","log","warn","dir","dirxml","table","trace","group","groupCollapsed","groupEnd","clear","count","countReset","assert","profile","profileEnd","time","timeLog","timeEnd","timeStamp","context"]),a=["log","error","debug","info","warn"];function c(e,t,...r){const n=`[Snap: ${e}]`;return"string"==typeof t?[`${n} ${t}`,...r]:[n,t,...r]}const u={names:["console"],factory:function({snapId:e}={}){(0,n.assert)(e!==undefined);const t=Object.getOwnPropertyNames(s.rootRealmGlobal.console).reduce(((e,t)=>o.has(t)&&!i.has(t)?{...e,[t]:s.rootRealmGlobal.console[t]}:e),{});return harden({console:{...t,assert:(t,r,...n)=>{s.rootRealmGlobal.console.assert(t,...c(e,r,...n))},...a.reduce(((t,r)=>({...t,[r]:(t,...n)=>{s.rootRealmGlobal.console[r](...c(e,t,...n))}})),{})}})}};r.default=u}}},{package:"$root$",file:"src/common/endowments/console.ts"}],[174,{"../globalObject":184,crypto:"crypto"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.createCrypto=void 0;var n=e("../globalObject");const s=()=>{if("crypto"in n.rootRealmGlobal&&"object"==typeof n.rootRealmGlobal.crypto&&"SubtleCrypto"in n.rootRealmGlobal&&"function"==typeof n.rootRealmGlobal.SubtleCrypto)return{crypto:harden(n.rootRealmGlobal.crypto),SubtleCrypto:harden(n.rootRealmGlobal.SubtleCrypto)};const t=e("crypto").webcrypto;return{crypto:harden(t),SubtleCrypto:harden(t.subtle.constructor)}};r.createCrypto=s;const i={names:["crypto","SubtleCrypto"],factory:s};r.default=i}}},{package:"$root$",file:"src/common/endowments/crypto.ts"}],[175,{"../globalObject":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject");const s={names:["Date"],factory:function(){const e=Object.getOwnPropertyNames(n.rootRealmGlobal.Date);let t=0;const r=()=>{const e=n.rootRealmGlobal.Date.now(),r=Math.round(e+Math.random());return r>t&&(t=r),t},s=function(...e){return Reflect.construct(n.rootRealmGlobal.Date,0===e.length?[r()]:e,new.target)};return e.forEach((e=>{Reflect.defineProperty(s,e,{configurable:!1,writable:!1,value:"now"===e?r:n.rootRealmGlobal.Date[e]})})),{Date:harden(s)}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/date.ts"}],[176,{"../globalObject":184,"./../../../../snaps-utils/src/index.executionenv":261,"./commonEndowmentFactory":172,"@metamask/rpc-errors":45,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createEndowments=function({snap:e,ethereum:t,snapId:r,endowments:n,notify:u}){const l={},d=n.reduce((({allEndowments:e,teardowns:n},d)=>{if(c.has(d)){if(!(0,o.hasProperty)(l,d)){const{teardownFunction:e,...t}=c.get(d)({snapId:r,notify:u});Object.assign(l,t),e&&n.push(e)}e[d]=l[d]}else if("ethereum"===d)e[d]=t;else{if(!(d in a.rootRealmGlobal))throw s.rpcErrors.internal(`Unknown endowment: "${d}".`);{(0,i.logWarning)(`Access to unhardened global ${d}.`);const t=a.rootRealmGlobal[d];e[d]=t}}return{allEndowments:e,teardowns:n}}),{allEndowments:{snap:e},teardowns:[]});return{endowments:d.allEndowments,teardown:async()=>{await Promise.all(d.teardowns.map((e=>e())))}}};var n,s=e("@metamask/rpc-errors"),i=e("./../../../../snaps-utils/src/index.executionenv"),o=e("@metamask/utils"),a=e("../globalObject");const c=(0,((n=e("./commonEndowmentFactory"))&&n.__esModule?n:{default:n}).default)().reduce(((e,t)=>(t.names.forEach((r=>{e.set(r,t.factory)})),e)),new Map)}}},{package:"$root$",file:"src/common/endowments/index.ts"}],[177,{"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/rpc-errors");const s={names:["setInterval","clearInterval"],factory:()=>{const e=new Map,t=t=>{harden(t);const r=e.get(t);r!==undefined&&(clearInterval(r),e.delete(t))};return{setInterval:harden(((t,r)=>{if("function"!=typeof t)throw n.rpcErrors.invalidInput(`The interval handler must be a function. Received: ${typeof t}.`);harden(t);const s=Object.freeze(Object.create(null)),i=setInterval(t,Math.max(10,r??0));return e.set(s,i),s})),clearInterval:harden(t),teardownFunction:()=>{for(const r of e.keys())t(r)}}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/interval.ts"}],[178,{"../globalObject":184,"./crypto":174},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject"),s=e("./crypto");const i={names:["Math"],factory:function(){const e=Object.getOwnPropertyNames(n.rootRealmGlobal.Math).reduce(((e,t)=>"random"===t?e:{...e,[t]:n.rootRealmGlobal.Math[t]}),{}),{crypto:t}=(0,s.createCrypto)();return harden({Math:{...e,random:()=>t.getRandomValues(new Uint32Array(1))[0]/2**32}})}};r.default=i}}},{package:"$root$",file:"src/common/endowments/math.ts"}],[179,{"../utils":187,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/utils"),s=e("../utils");function i(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 o(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,c(e,t,"get"))}function a(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,c(e,t,"set"),r),r}function c(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var u=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap;class f{constructor(e,t,r,n){i(this,u,{writable:!0,value:void 0}),i(this,l,{writable:!0,value:void 0}),i(this,d,{writable:!0,value:void 0}),i(this,h,{writable:!0,value:void 0}),a(this,l,e),a(this,u,t),a(this,d,r),a(this,h,n)}get body(){return o(this,l).body}get bodyUsed(){return o(this,l).bodyUsed}get headers(){return o(this,l).headers}get ok(){return o(this,l).ok}get redirected(){return o(this,l).redirected}get status(){return o(this,l).status}get statusText(){return o(this,l).statusText}get type(){return o(this,l).type}get url(){return o(this,l).url}async text(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).text()}finally{await o(this,h).call(this)}})(),o(this,u))}async arrayBuffer(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).arrayBuffer()}finally{await o(this,h).call(this)}})(),o(this,u))}async blob(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).blob()}finally{await o(this,h).call(this)}})(),o(this,u))}clone(){const e=o(this,l).clone();return new f(e,o(this,u),o(this,d),o(this,h))}async formData(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).formData()}finally{await o(this,h).call(this)}})(),o(this,u))}async json(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).json()}finally{await o(this,h).call(this)}})(),o(this,u))}}const p={names:["fetch","Request","Headers","Response"],factory:({notify:e}={})=>{(0,n.assert)(e,"Notify must be passed to network endowment factory");const t=new Set,r={lastTeardown:0},i=new FinalizationRegistry((e=>e()));return{fetch:harden((async(n,o)=>{const a=new AbortController;if(null!==(null==o?void 0:o.signal)&&(null==o?void 0:o.signal)!==undefined){const e=o.signal;e.addEventListener("abort",(()=>{a.abort(e.reason)}),{once:!0})}let c=!1;const u=async()=>{c||(c=!0,await e({method:"OutboundRequest",params:{source:"fetch"}}))};let l=!1;const d=async()=>{l||(l=!0,await e({method:"OutboundResponse",params:{source:"fetch"}}))};let h,p;return await(0,s.withTeardown)((async()=>{try{await e({method:"OutboundRequest",params:{source:"fetch"}});const s=fetch(n,{...o,signal:a.signal});p={cancel:async()=>{a.abort();try{await s}catch{}}},t.add(p),h=new f(await s,r,u,d)}finally{p!==undefined&&t.delete(p),await e({method:"OutboundResponse",params:{source:"fetch"}})}if(null!==h.body){const e=new WeakRef(h.body),r={cancel:async()=>{try{var t;await(null===(t=e.deref())||void 0===t?void 0:t.cancel())}catch{}}};t.add(r),i.register(h.body,(()=>t.delete(r)))}return harden(h)})(),r)})),Request:harden(Request),Headers:harden(Headers),Response:harden(Response),teardownFunction:async()=>{r.lastTeardown+=1;const e=[];t.forEach((({cancel:t})=>e.push(t()))),t.clear(),await Promise.all(e)}}}};r.default=p}}},{package:"$root$",file:"src/common/endowments/network.ts"}],[180,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n={names:["TextDecoder"],factory:()=>({TextDecoder:harden(TextDecoder)})};r.default=n}}},{package:"$root$",file:"src/common/endowments/textDecoder.ts"}],[181,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n={names:["TextEncoder"],factory:()=>({TextEncoder:harden(TextEncoder)})};r.default=n}}},{package:"$root$",file:"src/common/endowments/textEncoder.ts"}],[182,{"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/rpc-errors");const s={names:["setTimeout","clearTimeout"],factory:()=>{const e=new Map,t=t=>{const r=e.get(t);r!==undefined&&(clearTimeout(r),e.delete(t))};return{setTimeout:harden(((t,r)=>{if("function"!=typeof t)throw n.rpcErrors.internal(`The timeout handler must be a function. Received: ${typeof t}.`);harden(t);const s=Object.freeze(Object.create(null)),i=setTimeout((()=>{e.delete(s),t()}),Math.max(10,r??0));return e.set(s,i),s})),clearTimeout:harden(t),teardownFunction:()=>{for(const r of e.keys())t(r)}}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/timeout.ts"}],[183,{"./globalObject":184,"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addEventListener=function(e,t){if("addEventListener"in s.rootRealmGlobal&&"function"==typeof s.rootRealmGlobal.addEventListener)return s.rootRealmGlobal.addEventListener(e.toLowerCase(),t);if(s.rootRealmGlobal.process&&"on"in s.rootRealmGlobal.process&&"function"==typeof s.rootRealmGlobal.process.on)return s.rootRealmGlobal.process.on(e,t);throw n.rpcErrors.internal("Platform agnostic addEventListener failed.")},r.removeEventListener=function(e,t){if("removeEventListener"in s.rootRealmGlobal&&"function"==typeof s.rootRealmGlobal.removeEventListener)return s.rootRealmGlobal.removeEventListener(e.toLowerCase(),t);if(s.rootRealmGlobal.process&&"removeListener"in s.rootRealmGlobal.process&&"function"==typeof s.rootRealmGlobal.process.removeListener)return s.rootRealmGlobal.process.removeListener(e,t);throw new Error("Platform agnostic removeEventListener failed")};var n=e("@metamask/rpc-errors"),s=e("./globalObject")}}},{package:"$root$",file:"src/common/globalEvents.ts"}],[184,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rootRealmGlobalName=r.rootRealmGlobal=void 0;var n=function(e){return e.globalThis="globalThis",e.global="global",e.self="self",e.window="window",e}(n||{});let s,i;if("undefined"!=typeof globalThis)s=globalThis,i=n.globalThis;else if("undefined"!=typeof self)s=self,i=n.self;else if("undefined"!=typeof window)s=window,i=n.window;else{if("undefined"==typeof global)throw new Error("Unknown realm type; failed to identify global object.");s=global,i=n.global}r.rootRealmGlobal=s,r.rootRealmGlobalName=i}}},{package:"$root$",file:"src/common/globalObject.ts"}],[185,{"./../../../../snaps-utils/src/index.executionenv":261},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"}],[186,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sortParamKeys=void 0;r.sortParamKeys=(e,t)=>{if(!t)return[];if(t instanceof Array)return t;const r=e.reduce(((e,t,r)=>({...e,[t]:r})),{});return Object.entries(t).sort((([e,t],[n,s])=>r[e]-r[n])).map((([e,t])=>t))}}}},{package:"$root$",file:"src/common/sortParams.ts"}],[187,{"../logging":189,"@metamask/rpc-errors":45,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BLOCKED_RPC_METHODS=void 0,r.assertEthereumOutboundRequest=function(e){(0,s.assert)(!String.prototype.startsWith.call(e.method,"snap_"),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assert)(!a.includes(e.method),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assertStruct)(e,s.JsonStruct,"Provided value is not JSON-RPC compatible",n.rpcErrors.invalidParams)},r.assertSnapOutboundRequest=function(e){(0,s.assert)(String.prototype.startsWith.call(e.method,"wallet_")||String.prototype.startsWith.call(e.method,"snap_"),"The global Snap API only allows RPC methods starting with `wallet_*` and `snap_*`.",n.rpcErrors.methodNotSupported),(0,s.assert)(!a.includes(e.method),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assertStruct)(e,s.JsonStruct,"Provided value is not JSON-RPC compatible",n.rpcErrors.invalidParams)},r.isValidResponse=function(e){if(!(0,s.isObject)(e))return!1;try{return(0,s.getJsonSize)(e)<o}catch{return!1}},r.proxyStreamProvider=function(e,t){return new Proxy({},{has:(e,t)=>"string"==typeof t&&["request","on","removeListener"].includes(t),get:(r,n)=>"request"===n?t:["on","removeListener"].includes(n)?e[n]:undefined})},r.sanitizeRequestArguments=function(e){const t=JSON.parse(JSON.stringify(e));return(0,s.getSafeJson)(t)},r.withTeardown=async function(e,t){const r=t.lastTeardown;return new Promise(((n,s)=>{e.then((e=>{t.lastTeardown===r?n(e):(0,i.log)("Late promise received after Snap finished execution. Promise will be dropped.")})).catch((e=>{t.lastTeardown===r?s(e):(0,i.log)("Late promise received after Snap finished execution. Promise will be dropped.")}))}))};var n=e("@metamask/rpc-errors"),s=e("@metamask/utils"),i=e("../logging");const o=64e6;const a=r.BLOCKED_RPC_METHODS=Object.freeze(["wallet_requestSnaps","wallet_requestPermissions","wallet_revokePermissions","eth_sendRawTransaction","eth_sendTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_watchAsset","wallet_registerOnboarding","wallet_scanQRCode"])}}},{package:"$root$",file:"src/common/utils.ts"}],[188,{"./../../../snaps-sdk/src":195,"./../../../snaps-utils/src/index.executionenv":261,"@metamask/rpc-errors":45,"@metamask/utils":68,superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TerminateRequestArgumentsStruct=r.SnapRpcRequestArgumentsStruct=r.PingRequestArgumentsStruct=r.OnUserInputArgumentsStruct=r.OnTransactionRequestArgumentsStruct=r.OnSignatureRequestArgumentsStruct=r.OnNameLookupRequestArgumentsStruct=r.JsonRpcRequestWithoutIdStruct=r.ExecuteSnapRequestArgumentsStruct=r.EndowmentStruct=void 0,r.assertIsOnNameLookupRequestArguments=function(e){(0,o.assertStruct)(e,b,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnSignatureRequestArguments=function(e){(0,o.assertStruct)(e,f,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnTransactionRequestArguments=function(e){(0,o.assertStruct)(e,h,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnUserInputRequestArguments=function(e){(0,o.assertStruct)(e,v,"Invalid request params",n.rpcErrors.invalidParams)},r.isEndowment=l,r.isEndowmentsArray=function(e){return Array.isArray(e)&&e.every(l)};var n=e("@metamask/rpc-errors"),s=e("./../../../snaps-sdk/src"),i=e("./../../../snaps-utils/src/index.executionenv"),o=e("@metamask/utils"),a=e("superstruct");const c=r.JsonRpcRequestWithoutIdStruct=(0,a.object)({jsonrpc:(0,a.optional)(o.JsonRpcVersionStruct),id:(0,a.optional)(o.JsonRpcIdStruct),method:(0,a.string)(),params:(0,a.optional)(o.JsonRpcParamsStruct)}),u=r.EndowmentStruct=(0,a.string)();function l(e){return(0,a.is)(e,u)}const d=(0,a.literal)("OK"),h=(r.PingRequestArgumentsStruct=(0,a.optional)((0,a.union)([(0,a.literal)(undefined),(0,a.array)()])),r.TerminateRequestArgumentsStruct=(0,a.union)([(0,a.literal)(undefined),(0,a.array)()]),r.ExecuteSnapRequestArgumentsStruct=(0,a.tuple)([(0,a.string)(),(0,a.string)(),(0,a.array)(u)]),r.SnapRpcRequestArgumentsStruct=(0,a.tuple)([(0,a.string)(),(0,a.enums)(Object.values(i.HandlerType)),(0,a.string)(),(0,a.assign)(c,(0,a.object)({params:(0,a.optional)((0,a.record)((0,a.string)(),o.JsonStruct))}))]),r.OnTransactionRequestArgumentsStruct=(0,a.object)({transaction:(0,a.record)((0,a.string)(),o.JsonStruct),chainId:i.ChainIdStruct,transactionOrigin:(0,a.nullable)((0,a.string)())}));const f=r.OnSignatureRequestArgumentsStruct=(0,a.object)({signature:(0,a.record)((0,a.string)(),o.JsonStruct),signatureOrigin:(0,a.nullable)((0,a.string)())});const p={chainId:i.ChainIdStruct},m=(0,a.object)({...p,address:(0,a.string)()}),g=(0,a.object)({...p,domain:(0,a.string)()}),b=r.OnNameLookupRequestArgumentsStruct=(0,a.union)([m,g]);const v=r.OnUserInputArgumentsStruct=(0,a.object)({id:(0,a.string)(),event:s.UserInputEventStruct});(0,a.object)({id:o.JsonRpcIdStruct,jsonrpc:o.JsonRpcVersionStruct,result:d}),o.JsonRpcSuccessStruct}}},{package:"$root$",file:"src/common/validation.ts"}],[189,{"./../../snaps-utils/src/index.executionenv":261,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.log=void 0;var n=e("./../../snaps-utils/src/index.executionenv"),s=e("@metamask/utils");r.log=(0,s.createModuleLogger)(n.snapsLogger,"snaps-execution-environments")}}},{package:"$root$",file:"src/logging.ts"}],[190,{"../common/BaseSnapExecutor":170,"../logging":189,"./../../../snaps-utils/src/index.executionenv":261,"@metamask/object-multiplex":11,"@metamask/post-message-stream":15,"readable-stream":115},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ChildProcessSnapExecutor=void 0;var n,s=(n=e("@metamask/object-multiplex"))&&n.__esModule?n:{default:n},i=e("@metamask/post-message-stream"),o=e("./../../../snaps-utils/src/index.executionenv"),a=e("readable-stream"),c=e("../common/BaseSnapExecutor"),u=e("../logging");class l extends c.BaseSnapExecutor{static initialize(){(0,u.log)("Worker: Connecting to parent.");const e=new i.ProcessMessageStream,t=new s.default;(0,a.pipeline)(e,t,e,(e=>{e&&(0,o.logError)("Parent stream failure, closing worker.",e),self.close()}));const r=t.createStream(o.SNAP_STREAM_NAMES.COMMAND),n=t.createStream(o.SNAP_STREAM_NAMES.JSON_RPC);return new l(r,n)}}r.ChildProcessSnapExecutor=l}}},{package:"$root$",file:"src/node-process/ChildProcessSnapExecutor.ts"}],[191,{"../common/lockdown/lockdown-more":185,"./ChildProcessSnapExecutor":190},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../common/lockdown/lockdown-more"),s=e("./ChildProcessSnapExecutor");(0,n.executeLockdownMore)(),s.ChildProcessSnapExecutor.initialize()}}},{package:"$root$",file:"src/node-process/index.ts"}],[192,{"./internals":199,"@metamask/rpc-errors":45},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"}],[193,{"./internals":199},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){if(t.get)return t.get.call(e);return t.value}(e,a(e,t,"get"))}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(e,t,"set"),r),r}function a(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var c=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap;class h 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,d,{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,d,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,d)}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=h}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/errors.ts"}],[194,{"./ui":255,"@metamask/utils":68},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"}],[195,{"./error-wrappers":192,"./errors":193,"./images":194,"./internals":199,"./types":215,"./ui":255,"@metamask/utils":68},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,parseSvg:!0,isSvg:!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,"isSvg",{enumerable:!0,get:function(){return s.isSvg}}),Object.defineProperty(r,"literal",{enumerable:!0,get:function(){return s.literal}}),Object.defineProperty(r,"parseSvg",{enumerable:!0,get:function(){return s.parseSvg}}),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"}],[196,{"../errors":193},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"}],[197,{"@metamask/utils":68},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"}],[198,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/helpers.ts"}],[199,{"./error-wrappers":196,"./errors":197,"./helpers":198,"./structs":200,"./svg":201},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("./helpers");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("./structs");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"}],[200,{superstruct:164},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 s(e)},r.literal=s,r.union=function([e,...t]){const r=(0,n.union)([e,...t]);return new n.Struct({...r,schema:[e,...t]})};var n=e("superstruct");function s(e){return(0,n.define)(JSON.stringify(e),(0,n.literal)(e).validator)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/structs.ts"}],[201,{"@metamask/utils":68,"fast-xml-parser":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSvg=function(e){try{return i(e),!0}catch{return!1}},r.parseSvg=i;var n=e("@metamask/utils"),s=e("fast-xml-parser");function i(e){try{const t=e.trim();(0,n.assert)(t.length>0);const r=new s.XMLParser({ignoreAttributes:!1,parseAttributeValue:!0}).parse(t,!0);return(0,n.assert)((0,n.hasProperty)(r,"svg")),(0,n.isObject)(r.svg)?r.svg:{}}catch{throw new Error("Snap icon must be a valid SVG.")}}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/svg.ts"}],[202,{},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/caip.ts"}],[203,{},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"}],[204,{},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/handlers/cronjob.ts"}],[205,{},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/handlers/home-page.ts"}],[206,{"./cronjob":204,"./home-page":205,"./keyring":207,"./lifecycle":208,"./name-lookup":209,"./rpc-request":210,"./signature":211,"./transaction":212,"./user-input":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=e("./cronjob");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("./home-page");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("./keyring");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("./lifecycle");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("./name-lookup");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("./rpc-request");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("./transaction");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("./signature");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 d=e("./user-input");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]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/index.ts"}],[207,{},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/handlers/keyring.ts"}],[208,{},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/handlers/lifecycle.ts"}],[209,{},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/handlers/name-lookup.ts"}],[210,{},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/handlers/rpc-request.ts"}],[211,{},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/handlers/signature.ts"}],[212,{},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"}],[213,{superstruct:164},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.ButtonClickEventStruct=void 0;var n=e("superstruct");let s=r.UserInputEventType=function(e){return e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e}({});const i=r.GenericEventStruct=(0,n.object)({type:(0,n.string)(),name:(0,n.optional)((0,n.string)())}),o=r.ButtonClickEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.ButtonClickEvent),name:(0,n.optional)((0,n.string)())})),a=r.FormSubmitEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.FormSubmitEvent),value:(0,n.record)((0,n.string)(),(0,n.string)()),name:(0,n.string)()})),c=r.InputChangeEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.InputChangeEvent),name:(0,n.string)(),value:(0,n.string)()}));r.UserInputEventStruct=(0,n.union)([o,a,c])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/user-input.ts"}],[214,{},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"}],[215,{"./caip":202,"./global":203,"./handlers":206,"./images":214,"./interface":216,"./methods":228,"./permissions":237,"./provider":238,"./snap":239},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("./permissions");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("./provider");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("./snap");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("./interface");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]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/index.ts"}],[216,{superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InterfaceStateStruct=r.FormStateStruct=void 0;var n=e("superstruct");const s=r.FormStateStruct=(0,n.record)((0,n.string)(),(0,n.nullable)((0,n.string)()));r.InterfaceStateStruct=(0,n.record)((0,n.string)(),(0,n.union)([s,(0,n.nullable)((0,n.string)())]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/interface.ts"}],[217,{},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/methods/create-interface.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.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"}],[219,{},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/methods/get-bip32-entropy.ts"}],[220,{},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/methods/get-bip32-public-key.ts"}],[221,{},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/methods/get-bip44-entropy.ts"}],[222,{},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/methods/get-client-status.ts"}],[223,{},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/methods/get-entropy.ts"}],[224,{},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"}],[225,{},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/methods/get-interface-state.ts"}],[226,{},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/methods/get-locale.ts"}],[227,{},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/methods/get-snaps.ts"}],[228,{"./create-interface":217,"./dialog":218,"./get-bip32-entropy":219,"./get-bip32-public-key":220,"./get-bip44-entropy":221,"./get-client-status":222,"./get-entropy":223,"./get-file":224,"./get-interface-state":225,"./get-locale":226,"./get-snaps":227,"./invoke-keyring":229,"./invoke-snap":230,"./manage-accounts":231,"./manage-state":232,"./methods":233,"./notify":234,"./request-snaps":235,"./update-interface":236},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("./create-interface");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("./dialog");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("./get-bip32-entropy");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("./get-bip32-public-key");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("./get-bip44-entropy");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("./get-client-status");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("./get-entropy");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("./get-file");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 d=e("./get-interface-state");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 h=e("./get-locale");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 f=e("./get-snaps");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 p=e("./invoke-keyring");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 m=e("./invoke-snap");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("./manage-accounts");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("./manage-state");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 v=e("./methods");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 y=e("./notify");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("./request-snaps");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 k=e("./update-interface");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/types/methods/index.ts"}],[229,{},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/methods/invoke-keyring.ts"}],[230,{},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/methods/invoke-snap.ts"}],[231,{},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/methods/manage-accounts.ts"}],[232,{},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"}],[233,{},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/methods/methods.ts"}],[234,{},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"}],[235,{},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/methods/request-snaps.ts"}],[236,{},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/methods/update-interface.ts"}],[237,{},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/permissions.ts"}],[238,{},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/provider.ts"}],[239,{},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/snap.ts"}],[240,{"@metamask/utils":68},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"}],[241,{"./components":249,"@metamask/utils":68,superstruct:164},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,n.assertStruct)(e,i.ComponentStruct,"Invalid component")},r.isComponent=function(e){return(0,s.is)(e,i.ComponentStruct)};var n=e("@metamask/utils"),s=e("superstruct"),i=e("./components")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/component.ts"}],[242,{"../builder":240,"../nodes":256,"@metamask/utils":68,superstruct:164},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/utils"),s=e("superstruct"),i=e("../builder"),o=e("../nodes");const a=r.AddressStruct=(0,s.assign)(o.LiteralStruct,(0,s.object)({type:(0,s.literal)(o.NodeType.Address),value:n.HexChecksumAddressStruct}));r.address=(0,i.createBuilder)(o.NodeType.Address,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/address.ts"}],[243,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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("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"}],[244,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[245,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[246,{"../builder":240,"../nodes":256,"./button":243,"./input":250,superstruct:164},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("superstruct"),s=e("../builder"),i=e("../nodes"),o=e("./button"),a=e("./input");const c=r.FormComponentStruct=(0,n.union)([a.InputStruct,o.ButtonStruct]),u=r.FormStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Form),children:(0,n.array)(c),name:(0,n.string)()}));r.form=(0,s.createBuilder)(i.NodeType.Form,u,["name","children"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/form.ts"}],[247,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[248,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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,r.svg=a;var n=e("superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");function a(){return(0,n.refine)((0,n.string)(),"SVG",(e=>!!(0,s.isSvg)(e)||"Value is not a valid SVG."))}const c=r.ImageStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Image),value:a()}));r.image=(0,i.createBuilder)(o.NodeType.Image,c,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/image.ts"}],[249,{"./address":242,"./button":243,"./copyable":244,"./divider":245,"./form":246,"./heading":247,"./image":248,"./input":250,"./panel":251,"./row":252,"./spinner":253,"./text":254},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 d=e("./text");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 h=e("./row");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 f=e("./button");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 p=e("./input");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 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"}],[250,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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("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"}],[251,{"../builder":240,"../nodes":256,"./address":242,"./button":243,"./copyable":244,"./divider":245,"./form":246,"./heading":247,"./image":248,"./input":250,"./row":252,"./spinner":253,"./text":254,superstruct:164},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("superstruct"),s=e("../builder"),i=e("../nodes"),o=e("./address"),a=e("./button"),c=e("./copyable"),u=e("./divider"),l=e("./form"),d=e("./heading"),h=e("./image"),f=e("./input"),p=e("./row"),m=e("./spinner"),g=e("./text");const b=r.ParentStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({children:(0,n.array)((0,n.lazy)((()=>y)))})),v=r.PanelStruct=(0,n.assign)(b,(0,n.object)({type:(0,n.literal)(i.NodeType.Panel)})),y=(r.panel=(0,s.createBuilder)(i.NodeType.Panel,v,["children"]),r.ComponentStruct=(0,n.union)([c.CopyableStruct,u.DividerStruct,d.HeadingStruct,h.ImageStruct,v,m.SpinnerStruct,g.TextStruct,p.RowStruct,o.AddressStruct,f.InputStruct,l.FormStruct,a.ButtonStruct]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/panel.ts"}],[252,{"../../internals":199,"../builder":240,"../nodes":256,"./address":242,"./image":248,"./text":254,superstruct:164},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("superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes"),a=e("./address"),c=e("./image"),u=e("./text");let l=r.RowVariant=function(e){return e.Default="default",e.Critical="critical",e.Warning="warning",e}({});const d=(0,n.union)([c.ImageStruct,u.TextStruct,a.AddressStruct]),h=r.RowStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Row),variant:(0,n.optional)((0,n.union)([(0,s.enumValue)(l.Default),(0,s.enumValue)(l.Critical),(0,s.enumValue)(l.Warning)])),label:(0,n.string)(),value:d}));r.row=(0,i.createBuilder)(o.NodeType.Row,h,["label","value","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/row.ts"}],[253,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[254,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[255,{"./component":241,"./components":249,"./nodes":256},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"}],[256,{superstruct:164},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("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"}],[257,{"./../../snaps-sdk/src":195,"@metamask/rpc-errors":45,"@metamask/utils":68},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=v,r.unwrapError=function(e){if(v(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[y(t,r,n,s),!0]}const{code:t,message:r,stack:n,data:s}=e.data.cause;return[y(t,r,n,s),!1]}return[y(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[y(t,r,n,s),!1]}return[y(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){if(t.get)return t.get.call(e);return t.value}(e,u(e,t,"get"))}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(e,t,"set"),r),r}function u(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}const l=r.SNAP_ERROR_WRAPPER_CODE=-31001,d=r.SNAP_ERROR_WRAPPER_MESSAGE="Wrapped Snap Error";var h=new WeakMap,f=new WeakMap,p=new WeakMap;class m extends Error{constructor(e){const t=(0,s.getErrorMessage)(e);super(t),o(this,h,{writable:!0,value:void 0}),o(this,f,{writable:!0,value:void 0}),o(this,p,{writable:!0,value:void 0}),c(this,h,e),c(this,f,t),c(this,p,(0,s.getErrorStack)(e))}get name(){return"WrappedSnapError"}get message(){return a(this,f)}get stack(){return a(this,p)}toJSON(){const e=g(a(this,h))?a(this,h).serialize():(0,n.serializeCause)(a(this,h));return{code:l,message:d,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 v(e){return(0,i.isJsonRpcError)(e)&&e.code===l&&e.message===d}function y(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"}],[258,{},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.OnUserInput="onUserInput",e}({});r.SNAP_EXPORT_NAMES=Object.values(n)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handler-types.ts"}],[259,{"./../../snaps-sdk/src":195,"./handler-types":258,superstruct:164},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.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("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.OnSignature]:{type:i.HandlerType.OnSignature,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnUserInput]:{type:i.HandlerType.OnUserInput,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.ComponentStruct})),u=r.OnTransactionResponseStruct=(0,s.nullable)((0,s.union)([c,a])),l=(r.OnSignatureResponseStruct=u,r.OnHomePageResponseWithContentStruct=(0,s.object)({content:n.ComponentStruct})),d=r.OnHomePageResponseWithIdStruct=(0,s.object)({id:(0,s.string)()}),h=(r.OnHomePageResponseStruct=(0,s.union)([l,d]),r.AddressResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedDomain:(0,s.string)()})),f=r.DomainResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedAddress:(0,s.string)()}),p=r.AddressResolutionResponseStruct=(0,s.object)({resolvedDomains:(0,s.size)((0,s.array)(h),1,Infinity)}),m=r.DomainResolutionResponseStruct=(0,s.object)({resolvedAddresses:(0,s.size)((0,s.array)(f),1,Infinity)});r.OnNameLookupResponseStruct=(0,s.nullable)((0,s.union)([p,m]))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handlers.ts"}],[260,{},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(e,t,r=!0){return await new Promise(((n,s)=>{const i=document.createElement("iframe");i.setAttribute("id",t),i.setAttribute("data-testid","snaps-iframe"),r&&i.setAttribute("sandbox","allow-scripts"),i.setAttribute("src",e),document.body.appendChild(i),i.addEventListener("load",(()=>{i.contentWindow?n(i.contentWindow):s(new Error(`iframe.contentWindow not present on load for job "${t}".`))}))}))}}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/iframe.ts"}],[261,{"./errors":257,"./handler-types":258,"./handlers":259,"./iframe":260,"./logging":262,"./namespace":263,"./types":264},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("./namespace");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("./types");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]}}))}))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/index.executionenv.ts"}],[262,{"@metamask/utils":68},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"}],[263,{superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NamespaceStruct=r.NamespaceIdStruct=r.LimitedString=r.ChainStruct=r.ChainIdStruct=r.ChainIdStringStruct=r.CHAIN_ID_REGEX=r.AccountIdStruct=r.AccountIdArrayStruct=r.AccountAddressStruct=r.ACCOUNT_ID_REGEX=r.ACCOUNT_ADDRESS_REGEX=void 0,r.isAccountId=function(e){return(0,n.is)(e,l)},r.isAccountIdArray=function(e){return(0,n.is)(e,d)},r.isChainId=function(e){return(0,n.is)(e,u)},r.isNamespace=function(e){return(0,n.is)(e,f)},r.isNamespaceId=function(e){return(0,n.is)(e,p)},r.parseAccountId=function(e){const t=i.exec(e);if(null==t||!t.groups)throw new Error("Invalid account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseChainId=function(e){const t=s.exec(e);if(null==t||!t.groups)throw new Error("Invalid chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}};var n=e("superstruct");const s=r.CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-a-zA-Z0-9]{1,32})$/u,i=r.ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-a-zA-Z0-9]{1,32})):(?<accountAddress>[a-zA-Z0-9]{1,64})$/u,o=r.ACCOUNT_ADDRESS_REGEX=/^(?<accountAddress>[a-zA-Z0-9]{1,64})$/u;const a=r.LimitedString=(0,n.size)((0,n.string)(),1,40),c=r.ChainIdStringStruct=(0,n.define)("Chain ID",(0,n.string)().validator),u=r.ChainIdStruct=(0,n.pattern)(c,s),l=r.AccountIdStruct=(0,n.pattern)((0,n.string)(),i),d=r.AccountIdArrayStruct=(0,n.array)(l),h=(r.AccountAddressStruct=(0,n.pattern)((0,n.string)(),o),r.ChainStruct=(0,n.object)({id:u,name:a})),f=r.NamespaceStruct=(0,n.object)({chains:(0,n.array)(h),methods:(0,n.optional)((0,n.array)(a)),events:(0,n.optional)((0,n.array)(a))}),p=r.NamespaceIdStruct=(0,n.pattern)((0,n.string)(),/^[-a-z0-9]{3,8}$/u)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/namespace.ts"}],[264,{"@metamask/utils":68,superstruct:164},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.SnapValidationFailureReason=r.SnapIdPrefixes=r.SNAP_STREAM_NAMES=r.NpmSnapPackageJsonStruct=r.NpmSnapFileNames=r.NameStruct=void 0,r.assertIsNpmSnapPackageJson=function(e){(0,n.assertStruct)(e,a,`"${i.PackageJson}" is invalid`)},r.isNpmSnapPackageJson=function(e){return(0,s.is)(e,a)},r.isValidUrl=function(e,t={}){return(0,s.is)(e,c(t))},r.uri=void 0;var n=e("@metamask/utils"),s=e("superstruct");let i=r.NpmSnapFileNames=function(e){return e.PackageJson="package.json",e.Manifest="snap.manifest.json",e}({});const o=r.NameStruct=(0,s.size)((0,s.pattern)((0,s.string)(),/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u),1,214),a=r.NpmSnapPackageJsonStruct=(0,s.type)({version:n.VersionStruct,name:o,main:(0,s.optional)((0,s.size)((0,s.string)(),1,Infinity)),repository:(0,s.optional)((0,s.object)({type:(0,s.size)((0,s.string)(),1,Infinity),url:(0,s.size)((0,s.string)(),1,Infinity)}))});r.SnapIdPrefixes=function(e){return e.npm="npm:",e.local="local:",e}({}),r.SnapValidationFailureReason=function(e){return e.NameMismatch='"name" field mismatch',e.VersionMismatch='"version" field mismatch',e.RepositoryMismatch='"repository" field mismatch',e.ShasumMismatch='"shasum" field mismatch',e}({}),r.SNAP_STREAM_NAMES=function(e){return e.JSON_RPC="jsonRpc",e.COMMAND="command",e}({});const c=(e={})=>(0,s.refine)((0,s.union)([(0,s.string)(),(0,s.instance)(URL)]),"uri",(t=>{try{const r=new URL(t),n=(0,s.type)(e);return(0,s.assert)(r,n),!0}catch{return`Expected URL, got "${t.toString()}".`}}));r.uri=c;r.WALLET_SNAP_PERMISSION_KEY="wallet_snap"}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/types.ts"}]],[191],{resources:{"@metamask/json-rpc-engine":{packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/object-multiplex":{globals:{"console.warn":!0},packages:{"@metamask/object-multiplex>once":!0,"readable-stream":!0}},"@metamask/object-multiplex>once":{packages:{"@metamask/object-multiplex>once>wrappy":!0}},"@metamask/post-message-stream":{builtin:{"worker_threads.parentPort":!0},globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,"process.on":!0,"process.removeListener":!0,"process.send":!0,removeEventListener:!0},packages:{"@metamask/utils":!0,"readable-stream":!0,worker_threads:!0}},"@metamask/providers":{globals:{console:!0},packages:{"@metamask/object-multiplex":!0,"@metamask/providers>@metamask/json-rpc-engine":!0,"@metamask/providers>@metamask/json-rpc-middleware-stream":!0,"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/providers>is-stream":!0,"@metamask/rpc-errors":!0,"eslint>fast-deep-equal":!0,"readable-stream":!0}},"@metamask/providers>@metamask/json-rpc-engine":{packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/providers>@metamask/json-rpc-middleware-stream":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"readable-stream":!0}},"@metamask/providers>@metamask/safe-event-emitter":{builtin:{"events.EventEmitter":!0},globals:{setTimeout:!0},packages:{events:!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/snaps-sdk":{globals:{fetch:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/snaps-sdk>fast-xml-parser":!0,"@metamask/utils":!0,superstruct:!0}},"@metamask/snaps-sdk>fast-xml-parser":{globals:{entityName:!0,val:!0},packages:{"@metamask/snaps-sdk>fast-xml-parser>strnum":!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/utils":!0,superstruct:!0}},"@metamask/utils":{builtin:{"buffer.Buffer":!0},globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/utils>@noble/hashes":!0,"@metamask/utils>@scure/base":!0,"@metamask/utils>pony-cause":!0,buffer:!0,"depcheck>semver":!0,superstruct:!0,"tsup>debug":!0}},"@metamask/utils>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/utils>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@wdio/mocha-framework>mocha>supports-color":{builtin:{"os.release":!0,"tty.isatty":!0},globals:{"process.env":!0,"process.platform":!0},packages:{"istanbul-lib-report>supports-color>has-flag":!0,os:!0,tty:!0}},"browserify>browser-pack>safe-buffer":{builtin:{buffer:!0},packages:{buffer:!0}},"browserify>inherits":{builtin:{"util.inherits":!0},packages:{util:!0}},"browserify>string_decoder":{packages:{"browserify>browser-pack>safe-buffer":!0}},"depcheck>semver":{globals:{"console.error":!0,process:!0},packages:{"depcheck>semver>lru-cache":!0}},"depcheck>semver>lru-cache":{packages:{"depcheck>semver>lru-cache>yallist":!0}},"istanbul-lib-report>supports-color>has-flag":{globals:{"process.argv":!0}},"readable-stream":{builtin:{"buffer.Buffer":!0,"events.EventEmitter":!0,stream:!0,util:!0},globals:{"process.env.READABLE_STREAM":!0,"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"browserify>inherits":!0,"browserify>string_decoder":!0,buffer:!0,events:!0,"readable-stream>util-deprecate":!0,stream:!0,util:!0}},"readable-stream>util-deprecate":{builtin:{"util.deprecate":!0},packages:{util:!0}},superstruct:{globals:{"console.warn":!0,define:!0}},"tsup>debug":{builtin:{"tty.isatty":!0,"util.deprecate":!0,"util.format":!0,"util.inspect":!0},globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"@wdio/mocha-framework>mocha>supports-color":!0,"tsup>debug>ms":!0,tty:!0,util:!0}}}});
13390
+ 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"}],[117,{"../functions/cmp":121,"../internal/debug":146,"../internal/parse-options":148,"../internal/re":149,"./range":118,"./semver":119},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 d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(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"),d=e("./range")}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/comparator.js"}],[118,{"../internal/constants":145,"../internal/debug":146,"../internal/parse-options":148,"../internal/re":149,"./comparator":117,"./semver":119,"lru-cache":150},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){class n{constructor(e,t){if(t=i(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),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=>!g(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&&b(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+e,r=s.get(t);if(r)return r;const n=this.options.loose,i=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(i,x(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],d),a("comparator trim",e),e=e.replace(u[l.TILDETRIM],h),a("tilde trim",e),e=e.replace(u[l.CARETTRIM],f),a("caret trim",e);let c=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));n&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),a("range list",c);const b=new Map,v=c.map((e=>new o(e,this.options)));for(const e of v){if(g(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const w=[...b.values()];return s.set(t,w),w}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(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 c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}}t.exports=n;const s=new(e("lru-cache"))({max:1e3}),i=e("../internal/parse-options"),o=e("./comparator"),a=e("../internal/debug"),c=e("./semver"),{safeRe:u,t:l,comparatorTrimReplace:d,tildeTrimReplace:h,caretTrimReplace:f}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=e("../internal/constants"),g=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,v=(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},y=(e,t)=>(a("comp",e,t),e=E(e,t),a("caret",e),e=k(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=O(e,t),a("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,k=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,s,i)=>{let o;return a("tilde",e,t,r,n,s,i),w(r)?o="":w(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:w(s)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(a("replaceTilde pr",i),o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{let c;return a("caret",e,t,r,s,i,o),w(r)?c="":w(s)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(i)?c="0"===r?`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),c="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`):(a("no pr"),c="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`),a("caret return",c),c}))},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>j(e,t))).join(" ")),j=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,s,i,o,c)=>{a("xRange",e,r,n,s,i,o,c);const u=w(s),l=u||w(i),d=l||w(o),h=d;return"="===n&&h&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(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&&(c="-0"),r=`${n+s}.${i}.${o}${c}`):l?r=`>=${s}.0.0${c} <${+s+1}.0.0-0`:d&&(r=`>=${s}.${i}.0${c} <${s}.${+i+1}.0-0`),a("xRange return",r),r}))},O=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),x=e=>(t,r,n,s,i,o,a,c,u,l,d,h,f)=>`${r=w(n)?"":w(s)?`>=${n}.0.0${e?"-0":""}`:w(i)?`>=${n}.${s}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=w(u)?"":w(l)?`<${+u+1}.0.0-0`:w(d)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${d}-${h}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),P=(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(a(e[r].semver),e[r].semver!==o.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"}],[119,{"../internal/constants":145,"../internal/debug":146,"../internal/identifiers":147,"../internal/parse-options":148,"../internal/re":149},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,t:a}=e("../internal/re"),c=e("../internal/parse-options"),{compareIdentifiers:u}=e("../internal/identifiers");class l{constructor(e,t){if(t=c(t),e instanceof l){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[a.LOOSE]:o[a.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 l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(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 u(r,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],s=e.build[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 u(r,s)}while(++t)}inc(e,t,r){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"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(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");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===u(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=l}}},{package:"depcheck>semver",file:"../../node_modules/semver/classes/semver.js"}],[120,{"./parse":136},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"}],[121,{"./eq":127,"./gt":128,"./gte":129,"./lt":131,"./lte":132,"./neq":135},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"}],[122,{"../classes/semver":119,"../internal/re":149,"./parse":136},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]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${c}.${u}${l}${d}`,t)}}}},{package:"depcheck>semver",file:"../../node_modules/semver/functions/coerce.js"}],[123,{"../classes/semver":119},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"}],[124,{"./compare":125},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"}],[125,{"../classes/semver":119},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"}],[126,{"./parse.js":136},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)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";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"}],[127,{"./compare":125},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"}],[128,{"./compare":125},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"}],[129,{"./compare":125},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"}],[130,{"../classes/semver":119},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"}],[131,{"./compare":125},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"}],[132,{"./compare":125},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"}],[133,{"../classes/semver":119},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"}],[134,{"../classes/semver":119},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"}],[135,{"./compare":125},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"}],[136,{"../classes/semver":119},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"}],[137,{"../classes/semver":119},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"}],[138,{"./parse":136},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"}],[139,{"./compare":125},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"}],[140,{"./compare-build":123},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"}],[141,{"../classes/range":118},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"}],[142,{"./compare-build":123},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"}],[143,{"./parse":136},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"}],[144,{"./classes/comparator":117,"./classes/range":118,"./classes/semver":119,"./functions/clean":120,"./functions/cmp":121,"./functions/coerce":122,"./functions/compare":125,"./functions/compare-build":123,"./functions/compare-loose":124,"./functions/diff":126,"./functions/eq":127,"./functions/gt":128,"./functions/gte":129,"./functions/inc":130,"./functions/lt":131,"./functions/lte":132,"./functions/major":133,"./functions/minor":134,"./functions/neq":135,"./functions/parse":136,"./functions/patch":137,"./functions/prerelease":138,"./functions/rcompare":139,"./functions/rsort":140,"./functions/satisfies":141,"./functions/sort":142,"./functions/valid":143,"./internal/constants":145,"./internal/identifiers":147,"./internal/re":149,"./ranges/gtr":151,"./ranges/intersects":152,"./ranges/ltr":153,"./ranges/max-satisfying":154,"./ranges/min-satisfying":155,"./ranges/min-version":156,"./ranges/outside":157,"./ranges/simplify":158,"./ranges/subset":159,"./ranges/to-comparators":160,"./ranges/valid":161},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"),d=e("./functions/diff"),h=e("./functions/major"),f=e("./functions/minor"),p=e("./functions/patch"),m=e("./functions/prerelease"),g=e("./functions/compare"),b=e("./functions/rcompare"),v=e("./functions/compare-loose"),y=e("./functions/compare-build"),w=e("./functions/sort"),k=e("./functions/rsort"),_=e("./functions/gt"),E=e("./functions/lt"),S=e("./functions/eq"),T=e("./functions/neq"),j=e("./functions/gte"),O=e("./functions/lte"),R=e("./functions/cmp"),x=e("./functions/coerce"),P=e("./classes/comparator"),M=e("./classes/range"),A=e("./functions/satisfies"),C=e("./ranges/to-comparators"),I=e("./ranges/max-satisfying"),N=e("./ranges/min-satisfying"),$=e("./ranges/min-version"),L=e("./ranges/valid"),D=e("./ranges/outside"),B=e("./ranges/gtr"),F=e("./ranges/ltr"),U=e("./ranges/intersects"),W=e("./ranges/simplify"),H=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:d,major:h,minor:f,patch:p,prerelease:m,compare:g,rcompare:b,compareLoose:v,compareBuild:y,sort:w,rsort:k,gt:_,lt:E,eq:S,neq:T,gte:j,lte:O,cmp:R,coerce:x,Comparator:P,Range:M,satisfies:A,toComparators:C,maxSatisfying:I,minSatisfying:N,minVersion:$,validRange:L,outside:D,gtr:B,ltr:F,intersects:U,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"}],[145,{},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"}],[146,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};t.exports=n}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/debug.js"}],[147,{},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"}],[148,{},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"}],[149,{"./constants":145,"./debug":146},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.t={};let d=0;const h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[h,s]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),s=d++;o(e,s,t),l[e]=s,u[s]=t,a[s]=new RegExp(t,r?"g":undefined),c[s]=new RegExp(n,r?"g":undefined)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),p("FULL",`^${u[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),p("LOOSE",`^${u[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),p("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",u[l.COERCE],!0),p("COERCERTLFULL",u[l.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",p("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",p("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}},{package:"depcheck>semver",file:"../../node_modules/semver/internal/re.js"}],[150,{yallist:169},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("yallist"),s=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),d=Symbol("lruList"),h=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const m=(e,t,r)=>{const n=e[h].get(t);if(n){const t=n.value;if(g(e,t)){if(v(e,n),!e[a])return undefined}else r&&(e[f]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},b=e=>{if(e[i]>e[s])for(let t=e[d].tail;e[i]>e[s]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[u]&&e[u](r.key,r.value),e[i]-=r.length,e[h].delete(r.key),e[d].removeNode(t)}};class y{constructor(e,t,r,n,s){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=s||0}}const w=(e,t,r,n)=>{let s=r.value;g(e,s)&&(v(e,r),e[a]||(s=undefined)),s&&t.call(n,s.value,s.key,e)};t.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[s]=e.max||Infinity;const t=e.length||p;if(this[o]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity,b(this)}get max(){return this[s]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,b(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[o]&&(this[o]=e,this[i]=0,this[d].forEach((e=>{e.length=this[o](e.value,e.key),this[i]+=e.length}))),b(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;w(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;w(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[u]&&this[d]&&this[d].length&&this[d].forEach((e=>this[u](e.key,e.value))),this[h]=new Map,this[d]=new n,this[i]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](t,e);if(this[h].has(e)){if(a>this[s])return v(this,this[h].get(e)),!1;const o=this[h].get(e).value;return this[u]&&(this[l]||this[u](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[i]+=a-o.length,o.length=a,this.get(e),b(this),!0}const f=new y(e,t,a,n,r);return f.length>this[s]?(this[u]&&this[u](e,t),!1):(this[i]+=f.length,this[d].unshift(f),this[h].set(e,this[d].head),b(this),!0)}has(e){if(!this[h].has(e))return!1;const t=this[h].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],s=n.e||0;if(0===s)this.set(n.k,n.v);else{const e=s-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[h].forEach(((e,t)=>m(this,t,!1)))}}}}},{package:"depcheck>semver>lru-cache",file:"../../node_modules/semver/node_modules/lru-cache/index.js"}],[151,{"./outside":157},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"}],[152,{"../classes/range":118},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"}],[153,{"./outside":157},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"}],[154,{"../classes/range":118,"../classes/semver":119},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"}],[155,{"../classes/range":118,"../classes/semver":119},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"}],[156,{"../classes/range":118,"../classes/semver":119,"../functions/gt":128},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"}],[157,{"../classes/comparator":117,"../classes/range":118,"../classes/semver":119,"../functions/gt":128,"../functions/gte":129,"../functions/lt":131,"../functions/lte":132,"../functions/satisfies":141},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"),d=e("../functions/gte");t.exports=(e,t,r,h)=>{let f,p,m,g,b;switch(e=new n(e,h),t=new o(t,h),r){case">":f=c,p=l,m=u,g=">",b=">=";break;case"<":f=u,p=d,m=c,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,h))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,f(e.semver,o.semver,h)?o=e:m(e.semver,a.semver,h)&&(a=e)})),o.operator===g||o.operator===b)return!1;if((!a.operator||a.operator===g)&&p(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"}],[158,{"../functions/compare.js":125,"../functions/satisfies.js":141},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(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length<d.length?l:t}}}},{package:"depcheck>semver",file:"../../node_modules/semver/ranges/simplify.js"}],[159,{"../classes/comparator.js":117,"../classes/range.js":118,"../functions/compare.js":125,"../functions/satisfies.js":141},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,f,p,m,g,b;for(const t of e)">"===t.operator||">="===t.operator?s=d(s,t,r):"<"===t.operator||"<="===t.operator?l=h(l,t,r):n.add(t.semver);if(n.size>1)return null;if(s&&l){if(f=a(s.semver,l.semver,r),f>0)return null;if(0===f&&(">="!==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 v=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,y=!(!s||r.includePrerelease||!s.semver.prerelease.length)&&s.semver;v&&1===v.prerelease.length&&"<"===l.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s)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(p=d(s,e,r),p===e&&p!==s)return!1}else if(">="===s.operator&&!o(s.semver,String(e),r))return!1;if(l)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(m=h(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!==f)return!1}return!(s&&g&&!l&&0!==f)&&(!(l&&b&&!s&&0!==f)&&(!y&&!v))},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},h=(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"}],[160,{"../classes/range":118},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"}],[161,{"../classes/range":118},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"}],[162,{"safe-buffer":116},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=d,t=3;break;default:return this.write=h,void(this.end=f)}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,r){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 d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(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"}],[163,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=/^[-+]?0x[a-fA-F0-9]+$/,s=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const i={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(e,t={}){if(t=Object.assign({},i,t),!e||"string"!=typeof e)return e;let r=e.trim();if(t.skipLike!==undefined&&t.skipLike.test(r))return e;if(t.hex&&n.test(r))return Number.parseInt(r,16);{const n=s.exec(r);if(n){const s=n[1],i=n[2];let o=function(e){if(e&&-1!==e.indexOf("."))return"."===(e=e.replace(/0+$/,""))?e="0":"."===e[0]?e="0"+e:"."===e[e.length-1]&&(e=e.substr(0,e.length-1)),e;return e}(n[3]);const a=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&s&&"."!==r[2])return e;if(!t.leadingZeros&&i.length>0&&!s&&"."!==r[1])return e;{const n=Number(r),c=""+n;return-1!==c.search(/[eE]/)||a?t.eNotation?n:e:-1!==r.indexOf(".")?"0"===c&&""===o||c===o||s&&c==="-"+o?n:e:i?o===c||s+o===c?n:e:r===c||r===s+c?n:e}}return e}}}}},{package:"@metamask/snaps-sdk>fast-xml-parser>strnum",file:"../../node_modules/strnum/strnum.js"}],[164,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).Superstruct={})}(this,(function(e){class t 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&&(this.cause=a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function r(e){return"object"==typeof e&&null!=e}function n(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}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;!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}}function*o(e,t,n,s){var o;r(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]);for(const r of e){const e=i(r,t,n,s);e&&(yield e)}}function*a(e,t,n={}){const{path:s=[],branch:i=[e],coerce:o=!1,mask:c=!1}=n,u={path:s,branch:i};if(o&&(e=t.coercer(e,u),c&&"type"!==t.type&&r(t.schema)&&r(e)&&!Array.isArray(e)))for(const r in e)t.schema[r]===undefined&&delete e[r];let l="valid";for(const r of t.validator(e,u))r.explanation=n.message,l="not_valid",yield[r,undefined];for(let[d,h,f]of t.entries(e,u)){const t=a(h,f,{path:d===undefined?s:[...s,d],branch:d===undefined?i:[...i,h],coerce:o,mask:c,message:n.message});for(const n of t)n[0]?(l=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],undefined]):o&&(h=n[1],d===undefined?e=h:e instanceof Map?e.set(d,h):e instanceof Set?e.add(h):r(e)&&(h!==undefined||d in e)&&(e[d]=h))}if("not_valid"!==l)for(const r of t.refiner(e,u))r.explanation=n.message,l="not_refined",yield[r,undefined];"valid"===l&&(yield[undefined,e])}class c{constructor(e){const{type:t,schema:r,validator:n,refiner:s,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>o(n(e,t),t,this,e):()=>[],this.refiner=s?(e,t)=>o(s(e,t),t,this,e):()=>[]}assert(e,t){return u(e,this,t)}create(e,t){return l(e,this,t)}is(e){return h(e,this)}mask(e,t){return d(e,this,t)}validate(e,t={}){return f(e,this,t)}}function u(e,t,r){const n=f(e,t,{message:r});if(n[0])throw n[0]}function l(e,t,r){const n=f(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function d(e,t,r){const n=f(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function h(e,t){return!f(e,t)[0]}function f(e,r,n={}){const s=a(e,r,n),i=function(e){const{done:t,value:r}=e.next();return t?undefined:r}(s);if(i[0]){return[new t(i[0],(function*(){for(const e of s)e[0]&&(yield e[0])})),undefined]}{const e=i[1];return[undefined,e]}}function p(e,t){return new c({type:e,schema:null,validator:t})}function m(){return p("never",(()=>!1))}function g(e){const t=e?Object.keys(e):[],n=m();return new c({type:"object",schema:e||null,*entries(s){if(e&&r(s)){const r=new Set(Object.keys(s));for(const n of t)r.delete(n),yield[n,s[n],e[n]];for(const e of r)yield[e,s[e],n]}},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`,coercer:e=>r(e)?{...e}:e})}function b(e){return new c({...e,validator:(t,r)=>t===undefined||e.validator(t,r),refiner:(t,r)=>t===undefined||e.refiner(t,r)})}function v(){return p("string",(e=>"string"==typeof e||`Expected a string, but received: ${s(e)}`))}function y(e){const t=Object.keys(e);return new c({type:"type",schema:e,*entries(n){if(r(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`,coercer:e=>r(e)?{...e}:e})}function w(){return p("unknown",(()=>!0))}function k(e,t,r){return new c({...e,coercer:(n,s)=>h(n,t)?e.coercer(r(n,s),s):e.coercer(n,s)})}function _(e){return e instanceof Map||e instanceof Set?e.size:e.length}function E(e,t,r){return new c({...e,*refiner(n,s){yield*e.refiner(n,s);const i=o(r(n,s),s,e,n);for(const e of i)yield{...e,refinement:t}}})}e.Struct=c,e.StructError=t,e.any=function(){return p("any",(()=>!0))},e.array=function(e){return new c({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: ${s(e)}`})},e.assert=u,e.assign=function(...e){const t="type"===e[0].type,r=e.map((e=>e.schema)),n=Object.assign({},...r);return t?y(n):g(n)},e.bigint=function(){return p("bigint",(e=>"bigint"==typeof e))},e.boolean=function(){return p("boolean",(e=>"boolean"==typeof e))},e.coerce=k,e.create=l,e.date=function(){return p("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${s(e)}`))},e.defaulted=function(e,t,r={}){return k(e,w(),(e=>{const s="function"==typeof t?t():t;if(e===undefined)return s;if(!r.strict&&n(e)&&n(s)){const t={...e};let r=!1;for(const e in s)t[e]===undefined&&(t[e]=s[e],r=!0);if(r)return t}return e}))},e.define=p,e.deprecated=function(e,t){return new c({...e,refiner:(t,r)=>t===undefined||e.refiner(t,r),validator:(r,n)=>r===undefined||(t(r,n),e.validator(r,n))})},e.dynamic=function(e){return new c({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)})},e.empty=function(e){return E(e,"empty",(t=>{const r=_(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))},e.enums=function(e){const t={},r=e.map((e=>s(e))).join();for(const r of e)t[r]=r;return new c({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${s(t)}`})},e.func=function(){return p("func",(e=>"function"==typeof e||`Expected a function, but received: ${s(e)}`))},e.instance=function(e){return p("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${s(t)}`))},e.integer=function(){return p("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${s(e)}`))},e.intersection=function(e){return new c({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})},e.is=h,e.lazy=function(e){let t;return new c({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))})},e.literal=function(e){const t=s(e),r=typeof e;return new c({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${s(r)}`})},e.map=function(e,t){return new c({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: ${s(e)}`})},e.mask=d,e.max=function(e,t,r={}){const{exclusive:n}=r;return E(e,"max",(r=>n?r<t:r<=t||`Expected a ${e.type} less than ${n?"":"or equal to "}${t} but received \`${r}\``))},e.min=function(e,t,r={}){const{exclusive:n}=r;return E(e,"min",(r=>n?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))},e.never=m,e.nonempty=function(e){return E(e,"nonempty",(t=>_(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},e.nullable=function(e){return new c({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})},e.number=function(){return p("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${s(e)}`))},e.object=g,e.omit=function(e,t){const{schema:r}=e,n={...r};for(const e of t)delete n[e];return"type"===e.type?y(n):g(n)},e.optional=b,e.partial=function(e){const t=e instanceof c?{...e.schema}:{...e};for(const e in t)t[e]=b(t[e]);return g(t)},e.pattern=function(e,t){return E(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))},e.pick=function(e,t){const{schema:r}=e,n={};for(const e of t)n[e]=r[e];return g(n)},e.record=function(e,t){return new c({type:"record",schema:null,*entries(n){if(r(n))for(const r in n){const s=n[r];yield[r,r,e],yield[r,s,t]}},validator:e=>r(e)||`Expected an object, but received: ${s(e)}`})},e.refine=E,e.regexp=function(){return p("regexp",(e=>e instanceof RegExp))},e.set=function(e){return new c({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: ${s(e)}`})},e.size=function(e,t,r=t){const n=`Expected a ${e.type}`,s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return E(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}\``}}))},e.string=v,e.struct=function(e,t){return console.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),p(e,t)},e.trimmed=function(e){return k(e,v(),(e=>e.trim()))},e.tuple=function(e){const t=m();return new c({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: ${s(e)}`})},e.type=y,e.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new c({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]=a(r,t,n),[s]=e;if(!s[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${s(r)}`,...i]}})},e.unknown=w,e.validate=f}))}}},{package:"superstruct",file:"../../node_modules/superstruct/dist/index.cjs"}],[165,{"has-flag":93,os:"os",tty:"tty"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){const n=e("os"),s=e("tty"),i=e("has-flag"),{env:o}=process;let a;function c(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const s=function(){if("FORCE_COLOR"in o)return"true"===o.FORCE_COLOR?1:"false"===o.FORCE_COLOR?0:0===o.FORCE_COLOR.length?1:Math.min(Number.parseInt(o.FORCE_COLOR,10),3)}();s!==undefined&&(a=s);const c=r?a:s;if(0===c)return 0;if(r){if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2}if(e&&!t&&c===undefined)return 0;const u=c||0;if("dumb"===o.TERM)return u;if("win32"===process.platform){const e=n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some((e=>e in o))||"codeship"===o.CI_NAME?1:u;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=Number.parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:u}function u(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(c(e,{streamIsTTY:e&&e.isTTY,...t}))}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),t.exports={supportsColor:u,stdout:u({isTTY:s.isatty(1)}),stderr:u({isTTY:s.isatty(2)})}}}},{package:"@wdio/mocha-framework>mocha>supports-color",file:"../../node_modules/supports-color/index.js"}],[166,{util:"util"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=e("util").deprecate}}},{package:"readable-stream>util-deprecate",file:"../../node_modules/util-deprecate/node.js"}],[167,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),s=e[e.length-1];return"function"==typeof n&&n!==s&&Object.keys(s).forEach((function(e){n[e]=s[e]})),n}}}}},{package:"@metamask/object-multiplex>once>wrappy",file:"../../node_modules/wrappy/wrappy.js"}],[168,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}}}},{package:"depcheck>semver>lru-cache>yallist",file:"../../node_modules/yallist/iterator.js"}],[169,{"./iterator.js":168},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)t.push(arguments[r]);return t}function s(e,t,r){var n=t===e.head?new a(r,null,t,e):new a(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,r,n){if(!(this instanceof a))return new a(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=a,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.pop=function(){if(!this.tail)return undefined;var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e},n.prototype.shift=function(){if(!this.head)return undefined;var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,s=this.head;null!==s;)r.push(e.call(t,s.value,this)),s=s.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,s=this.tail;null!==s;)r.push(e.call(t,s.value,this)),s=s.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var s=0;null!==n;s++)r=e(r,n.value,s),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==n;s--)r=e(r,n.value,s),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var s=0,i=this.head;null!==i&&s<e;s++)i=i.next;for(;null!==i&&s<t;s++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var s=this.length,i=this.tail;null!==i&&s>t;s--)i=i.prev;for(;null!==i&&s>e;s--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;var o=[];for(n=0;i&&n<t;n++)o.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(n=0;n<r.length;n++)i=s(this,i,r[n]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{e("./iterator.js")(n)}catch(e){}}}},{package:"depcheck>semver>lru-cache>yallist",file:"../../node_modules/yallist/yallist.js"}],[170,{"../logging":189,"./../../../snaps-sdk/src":195,"./../../../snaps-utils/src/index.executionenv":261,"./commands":171,"./endowments":176,"./globalEvents":183,"./sortParams":186,"./utils":187,"./validation":188,"@metamask/json-rpc-engine":8,"@metamask/providers/dist/StreamProvider":23,"@metamask/rpc-errors":45,"@metamask/utils":68,superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BaseSnapExecutor=void 0;var n=e("@metamask/json-rpc-engine"),s=e("@metamask/providers/dist/StreamProvider"),i=e("@metamask/rpc-errors"),o=e("./../../../snaps-sdk/src"),a=e("./../../../snaps-utils/src/index.executionenv"),c=e("@metamask/utils"),u=e("superstruct"),l=e("../logging"),d=e("./commands"),h=e("./endowments"),f=e("./globalEvents"),p=e("./sortParams"),m=e("./utils"),g=e("./validation");function b(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function v(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}function y(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}const w={code:i.errorCodes.rpc.internal,message:"Execution Environment Error"},k=i.rpcErrors.internal({message:"Unhandled Snap Error"}).serialize(),_={ping:{struct:g.PingRequestArgumentsStruct,params:[]},executeSnap:{struct:g.ExecuteSnapRequestArgumentsStruct,params:["snapId","sourceCode","endowments"]},terminate:{struct:g.TerminateRequestArgumentsStruct,params:[]},snapRpc:{struct:g.SnapRpcRequestArgumentsStruct,params:["target","handler","origin","request"]}};var E=new WeakSet,S=new WeakSet,T=new WeakSet;async function j(e){return new Promise(((t,r)=>{this.commandStream.write(e,(e=>{e?r(e):t()}))}))}async function O(e){if(!(0,m.isValidResponse)(e))throw i.rpcErrors.internal("JSON-RPC notifications must be JSON serializable objects smaller than 64 MB.");await y(this,E,j).call(this,{...e,jsonrpc:"2.0"})}async function R(e,t){(0,m.isValidResponse)(t)?await y(this,E,j).call(this,{...t,id:e,jsonrpc:"2.0"}):await y(this,E,j).call(this,{error:(0,i.serializeError)(i.rpcErrors.internal("JSON-RPC responses must be JSON serializable objects smaller than 64 MB.")),id:e,jsonrpc:"2.0"})}r.BaseSnapExecutor=class{constructor(e,t){b(this,T),b(this,S),b(this,E),v(this,"snapData",void 0),v(this,"commandStream",void 0),v(this,"rpcStream",void 0),v(this,"methods",void 0),v(this,"snapErrorHandler",void 0),v(this,"snapPromiseErrorHandler",void 0),v(this,"lastTeardown",0),this.snapData=new Map,this.commandStream=e,this.commandStream.on("data",(e=>{this.onCommandRequest(e).catch((e=>{(0,a.logError)(e)}))})),this.rpcStream=t,this.methods=(0,d.getCommandMethodImplementations)(this.startSnap.bind(this),(async(e,t,r)=>{const n=this.snapData.get(e),s=null==n?void 0:n.exports[t],{required:o}=a.SNAP_EXPORTS[t];if((0,c.assert)(!o||s!==undefined,`No ${t} handler exported for snap "${e}`,i.rpcErrors.methodNotSupported),!s)return null;let u=await this.executeInSnapContext(e,(()=>s(r)));u===undefined&&(u=null);try{return(0,c.getSafeJson)(u)}catch(e){throw i.rpcErrors.internal(`Received non-JSON-serializable value: ${e.message.replace(/^Assertion failed: /u,"")}`)}}),this.onTerminate.bind(this))}errorHandler(e,t){const r=(0,i.serializeError)(e,{fallbackError:k,shouldIncludeStack:!1}),n=(0,o.getErrorData)(r);y(this,S,O).call(this,{method:"UnhandledError",params:{error:{...r,data:{...n,...t}}}}).catch((e=>{(0,a.logError)(e)}))}async onCommandRequest(e){if(!(0,c.isJsonRpcRequest)(e))return void((0,c.hasProperty)(e,"id")&&(0,u.is)(e.id,c.JsonRpcIdStruct)?await y(this,E,j).call(this,{error:(0,i.serializeError)(i.rpcErrors.internal("JSON-RPC requests must be JSON serializable objects.")),id:e.id,jsonrpc:"2.0"}):(0,a.logInfo)("Command stream received a non-JSON-RPC request, and was unable to respond."));const{id:t,method:r,params:n}=e;if(!(0,c.hasProperty)(_,r))return void await y(this,T,R).call(this,t,{error:i.rpcErrors.methodNotFound({data:{method:r}}).serialize()});const s=_[r],o=(0,p.sortParamKeys)(s.params,n),[l]=(0,u.validate)(o,s.struct);if(l)await y(this,T,R).call(this,t,{error:i.rpcErrors.invalidParams({message:`Invalid parameters for method "${r}": ${l.message}.`,data:{method:r,params:o}}).serialize()});else try{const e=await this.methods[r](...o);await y(this,T,R).call(this,t,{result:e})}catch(e){await y(this,T,R).call(this,t,{error:(0,i.serializeError)(e,{fallbackError:w})})}}async startSnap(e,t,r){(0,l.log)(`Starting snap '${e}' in worker.`),this.snapPromiseErrorHandler&&(0,f.removeEventListener)("unhandledrejection",this.snapPromiseErrorHandler),this.snapErrorHandler&&(0,f.removeEventListener)("error",this.snapErrorHandler),this.snapErrorHandler=t=>{this.errorHandler(t.error,{snapId:e})},this.snapPromiseErrorHandler=t=>{this.errorHandler(t instanceof Error?t:t.reason,{snapId:e})};const o=new s.StreamProvider(this.rpcStream,{jsonRpcStreamName:"metamask-provider",rpcMiddleware:[(0,n.createIdRemapMiddleware)()]});await o.initialize();const c=this.createSnapGlobal(o),u=this.createEIP1193Provider(o),d={exports:{}};try{const{endowments:n,teardown:s}=(0,h.createEndowments)({snap:c,ethereum:u,snapId:e,endowments:r,notify:y(this,S,O).bind(this)});this.snapData.set(e,{idleTeardown:s,runningEvaluations:new Set,exports:{}}),(0,f.addEventListener)("unhandledRejection",this.snapPromiseErrorHandler),(0,f.addEventListener)("error",this.snapErrorHandler);const i=new Compartment({...n,module:d,exports:d.exports});i.globalThis.self=i.globalThis,i.globalThis.global=i.globalThis,i.globalThis.window=i.globalThis,await this.executeInSnapContext(e,(()=>{i.evaluate(t),this.registerSnapExports(e,d)}))}catch(t){this.removeSnap(e);const[r]=(0,a.unwrapError)(t);throw i.rpcErrors.internal({message:`Error while running snap '${e}': ${r.message}`,data:{cause:r.serialize()}})}}onTerminate(){this.snapData.forEach((e=>e.runningEvaluations.forEach((e=>e.stop())))),this.snapData.clear()}registerSnapExports(e,t){const r=this.snapData.get(e);r&&(r.exports=a.SNAP_EXPORT_NAMES.reduce(((e,r)=>{const n=t.exports[r],{validator:s}=a.SNAP_EXPORTS[r];return s(n)?{...e,[r]:n}:e}),{}))}createSnapGlobal(e){const t=e.request.bind(e),r=(0,m.proxyStreamProvider)((async e=>{const r=(0,m.sanitizeRequestArguments)(e);return(0,m.assertSnapOutboundRequest)(r),await(0,m.withTeardown)((async()=>{await y(this,S,O).call(this,{method:"OutboundRequest",params:{source:"snap.request"}});try{return await t(r)}finally{await y(this,S,O).call(this,{method:"OutboundResponse",params:{source:"snap.request"}})}})(),this)}));return harden(r)}createEIP1193Provider(e){const t=e.request.bind(e),r=(0,m.proxyStreamProvider)((async e=>{const r=(0,m.sanitizeRequestArguments)(e);return(0,m.assertEthereumOutboundRequest)(r),await(0,m.withTeardown)((async()=>{await y(this,S,O).call(this,{method:"OutboundRequest",params:{source:"ethereum.request"}});try{return await t(r)}finally{await y(this,S,O).call(this,{method:"OutboundResponse",params:{source:"ethereum.request"}})}})(),this)}));return harden(r)}removeSnap(e){this.snapData.delete(e)}async executeInSnapContext(e,t){const r=this.snapData.get(e);if(r===undefined)throw i.rpcErrors.internal(`Tried to execute in context of unknown snap: "${e}".`);let n;const s=new Promise(((t,r)=>n=()=>r(i.rpcErrors.internal(`The snap "${e}" has been terminated during execution.`)))),o={stop:n};try{return r.runningEvaluations.add(o),await Promise.race([t(),s])}catch(e){throw new a.WrappedSnapError(e)}finally{r.runningEvaluations.delete(o),0===r.runningEvaluations.size&&(this.lastTeardown+=1,await r.idleTeardown())}}}}}},{package:"$root$",file:"src/common/BaseSnapExecutor.ts"}],[171,{"./../../../snaps-utils/src/index.executionenv":261,"./validation":188,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCommandMethodImplementations=function(e,t,r){return{ping:async()=>Promise.resolve("OK"),terminate:async()=>(r(),Promise.resolve("OK")),executeSnap:async(t,r,n)=>(await e(t,r,n),"OK"),snapRpc:async(e,r,n,s)=>await t(e,r,o(n,r,s))??null}},r.getHandlerArguments=o;var n=e("./../../../snaps-utils/src/index.executionenv"),s=e("@metamask/utils"),i=e("./validation");function o(e,t,r){switch(t){case n.HandlerType.OnTransaction:{(0,i.assertIsOnTransactionRequestArguments)(r.params);const{transaction:e,chainId:t,transactionOrigin:n}=r.params;return{transaction:e,chainId:t,transactionOrigin:n}}case n.HandlerType.OnSignature:{(0,i.assertIsOnSignatureRequestArguments)(r.params);const{signature:e,signatureOrigin:t}=r.params;return{signature:e,signatureOrigin:t}}case n.HandlerType.OnNameLookup:{(0,i.assertIsOnNameLookupRequestArguments)(r.params);const{chainId:e,domain:t,address:n}=r.params;return t?{chainId:e,domain:t}:{chainId:e,address:n}}case n.HandlerType.OnRpcRequest:case n.HandlerType.OnKeyringRequest:return{origin:e,request:r};case n.HandlerType.OnCronjob:case n.HandlerType.OnInstall:case n.HandlerType.OnUpdate:return{request:r};case n.HandlerType.OnHomePage:return{};case n.HandlerType.OnUserInput:{(0,i.assertIsOnUserInputRequestArguments)(r.params);const{id:e,event:t}=r.params;return{id:e,event:t}}default:return(0,s.assertExhaustive)(t)}}}}},{package:"$root$",file:"src/common/commands.ts"}],[172,{"../globalObject":184,"./console":173,"./crypto":174,"./date":175,"./interval":177,"./math":178,"./network":179,"./textDecoder":180,"./textEncoder":181,"./timeout":182},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject"),s=f(e("./console")),i=f(e("./crypto")),o=f(e("./date")),a=f(e("./interval")),c=f(e("./math")),u=f(e("./network")),l=f(e("./textDecoder")),d=f(e("./textEncoder")),h=f(e("./timeout"));function f(e){return e&&e.__esModule?e:{default:e}}const p=[{endowment:AbortController,name:"AbortController"},{endowment:AbortSignal,name:"AbortSignal"},{endowment:ArrayBuffer,name:"ArrayBuffer"},{endowment:atob,name:"atob",bind:!0},{endowment:BigInt,name:"BigInt"},{endowment:BigInt64Array,name:"BigInt64Array"},{endowment:BigUint64Array,name:"BigUint64Array"},{endowment:btoa,name:"btoa",bind:!0},{endowment:DataView,name:"DataView"},{endowment:Float32Array,name:"Float32Array"},{endowment:Float64Array,name:"Float64Array"},{endowment:Int8Array,name:"Int8Array"},{endowment:Int16Array,name:"Int16Array"},{endowment:Int32Array,name:"Int32Array"},{endowment:Uint8Array,name:"Uint8Array"},{endowment:Uint8ClampedArray,name:"Uint8ClampedArray"},{endowment:Uint16Array,name:"Uint16Array"},{endowment:Uint32Array,name:"Uint32Array"},{endowment:URL,name:"URL"},{endowment:WebAssembly,name:"WebAssembly"}];r.default=()=>{const e=[i.default,a.default,c.default,u.default,h.default,l.default,d.default,o.default,s.default];return p.forEach((t=>{const r={names:[t.name],factory:()=>{const e="function"==typeof t.endowment&&t.bind?t.endowment.bind(n.rootRealmGlobal):t.endowment;return{[t.name]:harden(e)}}};e.push(r)})),e}}}},{package:"$root$",file:"src/common/endowments/commonEndowmentFactory.ts"}],[173,{"../globalObject":184,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.consoleMethods=r.consoleAttenuatedMethods=void 0;var n=e("@metamask/utils"),s=e("../globalObject");const i=r.consoleAttenuatedMethods=new Set(["log","assert","error","debug","info","warn"]),o=r.consoleMethods=new Set(["debug","error","info","log","warn","dir","dirxml","table","trace","group","groupCollapsed","groupEnd","clear","count","countReset","assert","profile","profileEnd","time","timeLog","timeEnd","timeStamp","context"]),a=["log","error","debug","info","warn"];function c(e,t,...r){const n=`[Snap: ${e}]`;return"string"==typeof t?[`${n} ${t}`,...r]:[n,t,...r]}const u={names:["console"],factory:function({snapId:e}={}){(0,n.assert)(e!==undefined);const t=Object.getOwnPropertyNames(s.rootRealmGlobal.console).reduce(((e,t)=>o.has(t)&&!i.has(t)?{...e,[t]:s.rootRealmGlobal.console[t]}:e),{});return harden({console:{...t,assert:(t,r,...n)=>{s.rootRealmGlobal.console.assert(t,...c(e,r,...n))},...a.reduce(((t,r)=>({...t,[r]:(t,...n)=>{s.rootRealmGlobal.console[r](...c(e,t,...n))}})),{})}})}};r.default=u}}},{package:"$root$",file:"src/common/endowments/console.ts"}],[174,{"../globalObject":184,crypto:"crypto"},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.createCrypto=void 0;var n=e("../globalObject");const s=()=>{if("crypto"in n.rootRealmGlobal&&"object"==typeof n.rootRealmGlobal.crypto&&"SubtleCrypto"in n.rootRealmGlobal&&"function"==typeof n.rootRealmGlobal.SubtleCrypto)return{crypto:harden(n.rootRealmGlobal.crypto),SubtleCrypto:harden(n.rootRealmGlobal.SubtleCrypto)};const t=e("crypto").webcrypto;return{crypto:harden(t),SubtleCrypto:harden(t.subtle.constructor)}};r.createCrypto=s;const i={names:["crypto","SubtleCrypto"],factory:s};r.default=i}}},{package:"$root$",file:"src/common/endowments/crypto.ts"}],[175,{"../globalObject":184},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject");const s={names:["Date"],factory:function(){const e=Object.getOwnPropertyNames(n.rootRealmGlobal.Date);let t=0;const r=()=>{const e=n.rootRealmGlobal.Date.now(),r=Math.round(e+Math.random());return r>t&&(t=r),t},s=function(...e){return Reflect.construct(n.rootRealmGlobal.Date,0===e.length?[r()]:e,new.target)};return e.forEach((e=>{Reflect.defineProperty(s,e,{configurable:!1,writable:!1,value:"now"===e?r:n.rootRealmGlobal.Date[e]})})),{Date:harden(s)}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/date.ts"}],[176,{"../globalObject":184,"./../../../../snaps-utils/src/index.executionenv":261,"./commonEndowmentFactory":172,"@metamask/rpc-errors":45,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createEndowments=function({snap:e,ethereum:t,snapId:r,endowments:n,notify:u}){const l={},d=n.reduce((({allEndowments:e,teardowns:n},d)=>{if(c.has(d)){if(!(0,o.hasProperty)(l,d)){const{teardownFunction:e,...t}=c.get(d)({snapId:r,notify:u});Object.assign(l,t),e&&n.push(e)}e[d]=l[d]}else if("ethereum"===d)e[d]=t;else{if(!(d in a.rootRealmGlobal))throw s.rpcErrors.internal(`Unknown endowment: "${d}".`);{(0,i.logWarning)(`Access to unhardened global ${d}.`);const t=a.rootRealmGlobal[d];e[d]=t}}return{allEndowments:e,teardowns:n}}),{allEndowments:{snap:e},teardowns:[]});return{endowments:d.allEndowments,teardown:async()=>{await Promise.all(d.teardowns.map((e=>e())))}}};var n,s=e("@metamask/rpc-errors"),i=e("./../../../../snaps-utils/src/index.executionenv"),o=e("@metamask/utils"),a=e("../globalObject");const c=(0,((n=e("./commonEndowmentFactory"))&&n.__esModule?n:{default:n}).default)().reduce(((e,t)=>(t.names.forEach((r=>{e.set(r,t.factory)})),e)),new Map)}}},{package:"$root$",file:"src/common/endowments/index.ts"}],[177,{"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/rpc-errors");const s={names:["setInterval","clearInterval"],factory:()=>{const e=new Map,t=t=>{harden(t);const r=e.get(t);r!==undefined&&(clearInterval(r),e.delete(t))};return{setInterval:harden(((t,r)=>{if("function"!=typeof t)throw n.rpcErrors.invalidInput(`The interval handler must be a function. Received: ${typeof t}.`);harden(t);const s=Object.freeze(Object.create(null)),i=setInterval(t,Math.max(10,r??0));return e.set(s,i),s})),clearInterval:harden(t),teardownFunction:()=>{for(const r of e.keys())t(r)}}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/interval.ts"}],[178,{"../globalObject":184,"./crypto":174},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("../globalObject"),s=e("./crypto");const i={names:["Math"],factory:function(){const e=Object.getOwnPropertyNames(n.rootRealmGlobal.Math).reduce(((e,t)=>"random"===t?e:{...e,[t]:n.rootRealmGlobal.Math[t]}),{}),{crypto:t}=(0,s.createCrypto)();return harden({Math:{...e,random:()=>t.getRandomValues(new Uint32Array(1))[0]/2**32}})}};r.default=i}}},{package:"$root$",file:"src/common/endowments/math.ts"}],[179,{"../utils":187,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/utils"),s=e("../utils");function i(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 o(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,c(e,t,"get"))}function a(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,c(e,t,"set"),r),r}function c(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var u=new WeakMap,l=new WeakMap,d=new WeakMap,h=new WeakMap;class f{constructor(e,t,r,n){i(this,u,{writable:!0,value:void 0}),i(this,l,{writable:!0,value:void 0}),i(this,d,{writable:!0,value:void 0}),i(this,h,{writable:!0,value:void 0}),a(this,l,e),a(this,u,t),a(this,d,r),a(this,h,n)}get body(){return o(this,l).body}get bodyUsed(){return o(this,l).bodyUsed}get headers(){return o(this,l).headers}get ok(){return o(this,l).ok}get redirected(){return o(this,l).redirected}get status(){return o(this,l).status}get statusText(){return o(this,l).statusText}get type(){return o(this,l).type}get url(){return o(this,l).url}async text(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).text()}finally{await o(this,h).call(this)}})(),o(this,u))}async arrayBuffer(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).arrayBuffer()}finally{await o(this,h).call(this)}})(),o(this,u))}async blob(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).blob()}finally{await o(this,h).call(this)}})(),o(this,u))}clone(){const e=o(this,l).clone();return new f(e,o(this,u),o(this,d),o(this,h))}async formData(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).formData()}finally{await o(this,h).call(this)}})(),o(this,u))}async json(){return await(0,s.withTeardown)((async()=>{await o(this,d).call(this);try{return await o(this,l).json()}finally{await o(this,h).call(this)}})(),o(this,u))}}const p={names:["fetch","Request","Headers","Response"],factory:({notify:e}={})=>{(0,n.assert)(e,"Notify must be passed to network endowment factory");const t=new Set,r={lastTeardown:0},i=new FinalizationRegistry((e=>e()));return{fetch:harden((async(n,o)=>{const a=new AbortController;if(null!==(null==o?void 0:o.signal)&&(null==o?void 0:o.signal)!==undefined){const e=o.signal;e.addEventListener("abort",(()=>{a.abort(e.reason)}),{once:!0})}let c=!1;const u=async()=>{c||(c=!0,await e({method:"OutboundRequest",params:{source:"fetch"}}))};let l=!1;const d=async()=>{l||(l=!0,await e({method:"OutboundResponse",params:{source:"fetch"}}))};let h,p;return await(0,s.withTeardown)((async()=>{try{await e({method:"OutboundRequest",params:{source:"fetch"}});const s=fetch(n,{...o,signal:a.signal});p={cancel:async()=>{a.abort();try{await s}catch{}}},t.add(p),h=new f(await s,r,u,d)}finally{p!==undefined&&t.delete(p),await e({method:"OutboundResponse",params:{source:"fetch"}})}if(null!==h.body){const e=new WeakRef(h.body),r={cancel:async()=>{try{var t;await(null===(t=e.deref())||void 0===t?void 0:t.cancel())}catch{}}};t.add(r),i.register(h.body,(()=>t.delete(r)))}return harden(h)})(),r)})),Request:harden(Request),Headers:harden(Headers),Response:harden(Response),teardownFunction:async()=>{r.lastTeardown+=1;const e=[];t.forEach((({cancel:t})=>e.push(t()))),t.clear(),await Promise.all(e)}}}};r.default=p}}},{package:"$root$",file:"src/common/endowments/network.ts"}],[180,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n={names:["TextDecoder"],factory:()=>({TextDecoder:harden(TextDecoder)})};r.default=n}}},{package:"$root$",file:"src/common/endowments/textDecoder.ts"}],[181,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;const n={names:["TextEncoder"],factory:()=>({TextEncoder:harden(TextEncoder)})};r.default=n}}},{package:"$root$",file:"src/common/endowments/textEncoder.ts"}],[182,{"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("@metamask/rpc-errors");const s={names:["setTimeout","clearTimeout"],factory:()=>{const e=new Map,t=t=>{const r=e.get(t);r!==undefined&&(clearTimeout(r),e.delete(t))};return{setTimeout:harden(((t,r)=>{if("function"!=typeof t)throw n.rpcErrors.internal(`The timeout handler must be a function. Received: ${typeof t}.`);harden(t);const s=Object.freeze(Object.create(null)),i=setTimeout((()=>{e.delete(s),t()}),Math.max(10,r??0));return e.set(s,i),s})),clearTimeout:harden(t),teardownFunction:()=>{for(const r of e.keys())t(r)}}}};r.default=s}}},{package:"$root$",file:"src/common/endowments/timeout.ts"}],[183,{"./globalObject":184,"@metamask/rpc-errors":45},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addEventListener=function(e,t){if("addEventListener"in s.rootRealmGlobal&&"function"==typeof s.rootRealmGlobal.addEventListener)return s.rootRealmGlobal.addEventListener(e.toLowerCase(),t);if(s.rootRealmGlobal.process&&"on"in s.rootRealmGlobal.process&&"function"==typeof s.rootRealmGlobal.process.on)return s.rootRealmGlobal.process.on(e,t);throw n.rpcErrors.internal("Platform agnostic addEventListener failed.")},r.removeEventListener=function(e,t){if("removeEventListener"in s.rootRealmGlobal&&"function"==typeof s.rootRealmGlobal.removeEventListener)return s.rootRealmGlobal.removeEventListener(e.toLowerCase(),t);if(s.rootRealmGlobal.process&&"removeListener"in s.rootRealmGlobal.process&&"function"==typeof s.rootRealmGlobal.process.removeListener)return s.rootRealmGlobal.process.removeListener(e,t);throw new Error("Platform agnostic removeEventListener failed")};var n=e("@metamask/rpc-errors"),s=e("./globalObject")}}},{package:"$root$",file:"src/common/globalEvents.ts"}],[184,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.rootRealmGlobalName=r.rootRealmGlobal=void 0;var n=function(e){return e.globalThis="globalThis",e.global="global",e.self="self",e.window="window",e}(n||{});let s,i;if("undefined"!=typeof globalThis)s=globalThis,i=n.globalThis;else if("undefined"!=typeof self)s=self,i=n.self;else if("undefined"!=typeof window)s=window,i=n.window;else{if("undefined"==typeof global)throw new Error("Unknown realm type; failed to identify global object.");s=global,i=n.global}r.rootRealmGlobal=s,r.rootRealmGlobalName=i}}},{package:"$root$",file:"src/common/globalObject.ts"}],[185,{"./../../../../snaps-utils/src/index.executionenv":261},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"}],[186,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sortParamKeys=void 0;r.sortParamKeys=(e,t)=>{if(!t)return[];if(t instanceof Array)return t;const r=e.reduce(((e,t,r)=>({...e,[t]:r})),{});return Object.entries(t).sort((([e,t],[n,s])=>r[e]-r[n])).map((([e,t])=>t))}}}},{package:"$root$",file:"src/common/sortParams.ts"}],[187,{"../logging":189,"@metamask/rpc-errors":45,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BLOCKED_RPC_METHODS=void 0,r.assertEthereumOutboundRequest=function(e){(0,s.assert)(!String.prototype.startsWith.call(e.method,"snap_"),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assert)(!a.includes(e.method),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assertStruct)(e,s.JsonStruct,"Provided value is not JSON-RPC compatible",n.rpcErrors.invalidParams)},r.assertSnapOutboundRequest=function(e){(0,s.assert)(String.prototype.startsWith.call(e.method,"wallet_")||String.prototype.startsWith.call(e.method,"snap_"),"The global Snap API only allows RPC methods starting with `wallet_*` and `snap_*`.",n.rpcErrors.methodNotSupported),(0,s.assert)(!a.includes(e.method),n.rpcErrors.methodNotFound({data:{method:e.method}})),(0,s.assertStruct)(e,s.JsonStruct,"Provided value is not JSON-RPC compatible",n.rpcErrors.invalidParams)},r.isValidResponse=function(e){if(!(0,s.isObject)(e))return!1;try{return(0,s.getJsonSize)(e)<o}catch{return!1}},r.proxyStreamProvider=function(e){return new Proxy({},{has:(e,t)=>"string"==typeof t&&["request"].includes(t),get:(t,r)=>"request"===r?e:undefined})},r.sanitizeRequestArguments=function(e){const t=JSON.parse(JSON.stringify(e));return(0,s.getSafeJson)(t)},r.withTeardown=async function(e,t){const r=t.lastTeardown;return new Promise(((n,s)=>{e.then((e=>{t.lastTeardown===r?n(e):(0,i.log)("Late promise received after Snap finished execution. Promise will be dropped.")})).catch((e=>{t.lastTeardown===r?s(e):(0,i.log)("Late promise received after Snap finished execution. Promise will be dropped.")}))}))};var n=e("@metamask/rpc-errors"),s=e("@metamask/utils"),i=e("../logging");const o=64e6;const a=r.BLOCKED_RPC_METHODS=Object.freeze(["wallet_requestSnaps","wallet_requestPermissions","wallet_revokePermissions","eth_sendRawTransaction","eth_sendTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_watchAsset","wallet_registerOnboarding","wallet_scanQRCode"])}}},{package:"$root$",file:"src/common/utils.ts"}],[188,{"./../../../snaps-sdk/src":195,"./../../../snaps-utils/src/index.executionenv":261,"@metamask/rpc-errors":45,"@metamask/utils":68,superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TerminateRequestArgumentsStruct=r.SnapRpcRequestArgumentsStruct=r.PingRequestArgumentsStruct=r.OnUserInputArgumentsStruct=r.OnTransactionRequestArgumentsStruct=r.OnSignatureRequestArgumentsStruct=r.OnNameLookupRequestArgumentsStruct=r.JsonRpcRequestWithoutIdStruct=r.ExecuteSnapRequestArgumentsStruct=r.EndowmentStruct=void 0,r.assertIsOnNameLookupRequestArguments=function(e){(0,o.assertStruct)(e,b,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnSignatureRequestArguments=function(e){(0,o.assertStruct)(e,f,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnTransactionRequestArguments=function(e){(0,o.assertStruct)(e,h,"Invalid request params",n.rpcErrors.invalidParams)},r.assertIsOnUserInputRequestArguments=function(e){(0,o.assertStruct)(e,v,"Invalid request params",n.rpcErrors.invalidParams)},r.isEndowment=l,r.isEndowmentsArray=function(e){return Array.isArray(e)&&e.every(l)};var n=e("@metamask/rpc-errors"),s=e("./../../../snaps-sdk/src"),i=e("./../../../snaps-utils/src/index.executionenv"),o=e("@metamask/utils"),a=e("superstruct");const c=r.JsonRpcRequestWithoutIdStruct=(0,a.object)({jsonrpc:(0,a.optional)(o.JsonRpcVersionStruct),id:(0,a.optional)(o.JsonRpcIdStruct),method:(0,a.string)(),params:(0,a.optional)(o.JsonRpcParamsStruct)}),u=r.EndowmentStruct=(0,a.string)();function l(e){return(0,a.is)(e,u)}const d=(0,a.literal)("OK"),h=(r.PingRequestArgumentsStruct=(0,a.optional)((0,a.union)([(0,a.literal)(undefined),(0,a.array)()])),r.TerminateRequestArgumentsStruct=(0,a.union)([(0,a.literal)(undefined),(0,a.array)()]),r.ExecuteSnapRequestArgumentsStruct=(0,a.tuple)([(0,a.string)(),(0,a.string)(),(0,a.array)(u)]),r.SnapRpcRequestArgumentsStruct=(0,a.tuple)([(0,a.string)(),(0,a.enums)(Object.values(i.HandlerType)),(0,a.string)(),(0,a.assign)(c,(0,a.object)({params:(0,a.optional)((0,a.record)((0,a.string)(),o.JsonStruct))}))]),r.OnTransactionRequestArgumentsStruct=(0,a.object)({transaction:(0,a.record)((0,a.string)(),o.JsonStruct),chainId:i.ChainIdStruct,transactionOrigin:(0,a.nullable)((0,a.string)())}));const f=r.OnSignatureRequestArgumentsStruct=(0,a.object)({signature:(0,a.record)((0,a.string)(),o.JsonStruct),signatureOrigin:(0,a.nullable)((0,a.string)())});const p={chainId:i.ChainIdStruct},m=(0,a.object)({...p,address:(0,a.string)()}),g=(0,a.object)({...p,domain:(0,a.string)()}),b=r.OnNameLookupRequestArgumentsStruct=(0,a.union)([m,g]);const v=r.OnUserInputArgumentsStruct=(0,a.object)({id:(0,a.string)(),event:s.UserInputEventStruct});(0,a.object)({id:o.JsonRpcIdStruct,jsonrpc:o.JsonRpcVersionStruct,result:d}),o.JsonRpcSuccessStruct}}},{package:"$root$",file:"src/common/validation.ts"}],[189,{"./../../snaps-utils/src/index.executionenv":261,"@metamask/utils":68},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.log=void 0;var n=e("./../../snaps-utils/src/index.executionenv"),s=e("@metamask/utils");r.log=(0,s.createModuleLogger)(n.snapsLogger,"snaps-execution-environments")}}},{package:"$root$",file:"src/logging.ts"}],[190,{"../common/BaseSnapExecutor":170,"../logging":189,"./../../../snaps-utils/src/index.executionenv":261,"@metamask/object-multiplex":11,"@metamask/post-message-stream":15,"readable-stream":115},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ChildProcessSnapExecutor=void 0;var n,s=(n=e("@metamask/object-multiplex"))&&n.__esModule?n:{default:n},i=e("@metamask/post-message-stream"),o=e("./../../../snaps-utils/src/index.executionenv"),a=e("readable-stream"),c=e("../common/BaseSnapExecutor"),u=e("../logging");class l extends c.BaseSnapExecutor{static initialize(){(0,u.log)("Worker: Connecting to parent.");const e=new i.ProcessMessageStream,t=new s.default;(0,a.pipeline)(e,t,e,(e=>{e&&(0,o.logError)("Parent stream failure, closing worker.",e),self.close()}));const r=t.createStream(o.SNAP_STREAM_NAMES.COMMAND),n=t.createStream(o.SNAP_STREAM_NAMES.JSON_RPC);return new l(r,n)}}r.ChildProcessSnapExecutor=l}}},{package:"$root$",file:"src/node-process/ChildProcessSnapExecutor.ts"}],[191,{"../common/lockdown/lockdown-more":185,"./ChildProcessSnapExecutor":190},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=e("../common/lockdown/lockdown-more"),s=e("./ChildProcessSnapExecutor");(0,n.executeLockdownMore)(),s.ChildProcessSnapExecutor.initialize()}}},{package:"$root$",file:"src/node-process/index.ts"}],[192,{"./internals":199,"@metamask/rpc-errors":45},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"}],[193,{"./internals":199},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){if(t.get)return t.get.call(e);return t.value}(e,a(e,t,"get"))}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(e,t,"set"),r),r}function a(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}var c=new WeakMap,u=new WeakMap,l=new WeakMap,d=new WeakMap;class h 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,d,{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,d,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,d)}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=h}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/errors.ts"}],[194,{"./ui":255,"@metamask/utils":68},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"}],[195,{"./error-wrappers":192,"./errors":193,"./images":194,"./internals":199,"./types":215,"./ui":255,"@metamask/utils":68},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,parseSvg:!0,isSvg:!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,"isSvg",{enumerable:!0,get:function(){return s.isSvg}}),Object.defineProperty(r,"literal",{enumerable:!0,get:function(){return s.literal}}),Object.defineProperty(r,"parseSvg",{enumerable:!0,get:function(){return s.parseSvg}}),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"}],[196,{"../errors":193},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"}],[197,{"@metamask/utils":68},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"}],[198,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/helpers.ts"}],[199,{"./error-wrappers":196,"./errors":197,"./helpers":198,"./structs":200,"./svg":201},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("./helpers");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("./structs");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"}],[200,{superstruct:164},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 s(e)},r.literal=s,r.union=function([e,...t]){const r=(0,n.union)([e,...t]);return new n.Struct({...r,schema:[e,...t]})};var n=e("superstruct");function s(e){return(0,n.define)(JSON.stringify(e),(0,n.literal)(e).validator)}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/structs.ts"}],[201,{"@metamask/utils":68,"fast-xml-parser":82},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSvg=function(e){try{return i(e),!0}catch{return!1}},r.parseSvg=i;var n=e("@metamask/utils"),s=e("fast-xml-parser");function i(e){try{const t=e.trim();(0,n.assert)(t.length>0);const r=new s.XMLParser({ignoreAttributes:!1,parseAttributeValue:!0}).parse(t,!0);return(0,n.assert)((0,n.hasProperty)(r,"svg")),(0,n.isObject)(r.svg)?r.svg:{}}catch{throw new Error("Snap icon must be a valid SVG.")}}}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/internals/svg.ts"}],[202,{},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/caip.ts"}],[203,{},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"}],[204,{},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/handlers/cronjob.ts"}],[205,{},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/handlers/home-page.ts"}],[206,{"./cronjob":204,"./home-page":205,"./keyring":207,"./lifecycle":208,"./name-lookup":209,"./rpc-request":210,"./signature":211,"./transaction":212,"./user-input":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=e("./cronjob");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("./home-page");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("./keyring");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("./lifecycle");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("./name-lookup");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("./rpc-request");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("./transaction");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("./signature");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 d=e("./user-input");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]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/index.ts"}],[207,{},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/handlers/keyring.ts"}],[208,{},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/handlers/lifecycle.ts"}],[209,{},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/handlers/name-lookup.ts"}],[210,{},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/handlers/rpc-request.ts"}],[211,{},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/handlers/signature.ts"}],[212,{},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"}],[213,{superstruct:164},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.ButtonClickEventStruct=void 0;var n=e("superstruct");let s=r.UserInputEventType=function(e){return e.ButtonClickEvent="ButtonClickEvent",e.FormSubmitEvent="FormSubmitEvent",e.InputChangeEvent="InputChangeEvent",e}({});const i=r.GenericEventStruct=(0,n.object)({type:(0,n.string)(),name:(0,n.optional)((0,n.string)())}),o=r.ButtonClickEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.ButtonClickEvent),name:(0,n.optional)((0,n.string)())})),a=r.FormSubmitEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.FormSubmitEvent),value:(0,n.record)((0,n.string)(),(0,n.string)()),name:(0,n.string)()})),c=r.InputChangeEventStruct=(0,n.assign)(i,(0,n.object)({type:(0,n.literal)(s.InputChangeEvent),name:(0,n.string)(),value:(0,n.string)()}));r.UserInputEventStruct=(0,n.union)([o,a,c])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/handlers/user-input.ts"}],[214,{},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"}],[215,{"./caip":202,"./global":203,"./handlers":206,"./images":214,"./interface":216,"./methods":228,"./permissions":237,"./provider":238,"./snap":239},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("./permissions");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("./provider");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("./snap");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("./interface");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]}}))}))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/index.ts"}],[216,{superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.InterfaceStateStruct=r.FormStateStruct=void 0;var n=e("superstruct");const s=r.FormStateStruct=(0,n.record)((0,n.string)(),(0,n.nullable)((0,n.string)()));r.InterfaceStateStruct=(0,n.record)((0,n.string)(),(0,n.union)([s,(0,n.nullable)((0,n.string)())]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/types/interface.ts"}],[217,{},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/methods/create-interface.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.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"}],[219,{},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/methods/get-bip32-entropy.ts"}],[220,{},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/methods/get-bip32-public-key.ts"}],[221,{},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/methods/get-bip44-entropy.ts"}],[222,{},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/methods/get-client-status.ts"}],[223,{},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/methods/get-entropy.ts"}],[224,{},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"}],[225,{},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/methods/get-interface-state.ts"}],[226,{},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/methods/get-locale.ts"}],[227,{},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/methods/get-snaps.ts"}],[228,{"./create-interface":217,"./dialog":218,"./get-bip32-entropy":219,"./get-bip32-public-key":220,"./get-bip44-entropy":221,"./get-client-status":222,"./get-entropy":223,"./get-file":224,"./get-interface-state":225,"./get-locale":226,"./get-snaps":227,"./invoke-keyring":229,"./invoke-snap":230,"./manage-accounts":231,"./manage-state":232,"./methods":233,"./notify":234,"./request-snaps":235,"./update-interface":236},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("./create-interface");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("./dialog");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("./get-bip32-entropy");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("./get-bip32-public-key");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("./get-bip44-entropy");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("./get-client-status");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("./get-entropy");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("./get-file");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 d=e("./get-interface-state");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 h=e("./get-locale");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 f=e("./get-snaps");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 p=e("./invoke-keyring");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 m=e("./invoke-snap");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("./manage-accounts");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("./manage-state");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 v=e("./methods");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 y=e("./notify");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("./request-snaps");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 k=e("./update-interface");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/types/methods/index.ts"}],[229,{},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/methods/invoke-keyring.ts"}],[230,{},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/methods/invoke-snap.ts"}],[231,{},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/methods/manage-accounts.ts"}],[232,{},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"}],[233,{},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/methods/methods.ts"}],[234,{},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"}],[235,{},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/methods/request-snaps.ts"}],[236,{},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/methods/update-interface.ts"}],[237,{},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/permissions.ts"}],[238,{},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/provider.ts"}],[239,{},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/snap.ts"}],[240,{"@metamask/utils":68},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"}],[241,{"./components":249,"@metamask/utils":68,superstruct:164},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,n.assertStruct)(e,i.ComponentStruct,"Invalid component")},r.isComponent=function(e){return(0,s.is)(e,i.ComponentStruct)};var n=e("@metamask/utils"),s=e("superstruct"),i=e("./components")}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/component.ts"}],[242,{"../builder":240,"../nodes":256,"@metamask/utils":68,superstruct:164},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/utils"),s=e("superstruct"),i=e("../builder"),o=e("../nodes");const a=r.AddressStruct=(0,s.assign)(o.LiteralStruct,(0,s.object)({type:(0,s.literal)(o.NodeType.Address),value:n.HexChecksumAddressStruct}));r.address=(0,i.createBuilder)(o.NodeType.Address,a,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/address.ts"}],[243,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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("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"}],[244,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[245,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[246,{"../builder":240,"../nodes":256,"./button":243,"./input":250,superstruct:164},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("superstruct"),s=e("../builder"),i=e("../nodes"),o=e("./button"),a=e("./input");const c=r.FormComponentStruct=(0,n.union)([a.InputStruct,o.ButtonStruct]),u=r.FormStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({type:(0,n.literal)(i.NodeType.Form),children:(0,n.array)(c),name:(0,n.string)()}));r.form=(0,s.createBuilder)(i.NodeType.Form,u,["name","children"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/form.ts"}],[247,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[248,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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,r.svg=a;var n=e("superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes");function a(){return(0,n.refine)((0,n.string)(),"SVG",(e=>!!(0,s.isSvg)(e)||"Value is not a valid SVG."))}const c=r.ImageStruct=(0,n.assign)(o.NodeStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Image),value:a()}));r.image=(0,i.createBuilder)(o.NodeType.Image,c,["value"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/image.ts"}],[249,{"./address":242,"./button":243,"./copyable":244,"./divider":245,"./form":246,"./heading":247,"./image":248,"./input":250,"./panel":251,"./row":252,"./spinner":253,"./text":254},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 d=e("./text");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 h=e("./row");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 f=e("./button");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 p=e("./input");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 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"}],[250,{"../../internals":199,"../builder":240,"../nodes":256,superstruct:164},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("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"}],[251,{"../builder":240,"../nodes":256,"./address":242,"./button":243,"./copyable":244,"./divider":245,"./form":246,"./heading":247,"./image":248,"./input":250,"./row":252,"./spinner":253,"./text":254,superstruct:164},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("superstruct"),s=e("../builder"),i=e("../nodes"),o=e("./address"),a=e("./button"),c=e("./copyable"),u=e("./divider"),l=e("./form"),d=e("./heading"),h=e("./image"),f=e("./input"),p=e("./row"),m=e("./spinner"),g=e("./text");const b=r.ParentStruct=(0,n.assign)(i.NodeStruct,(0,n.object)({children:(0,n.array)((0,n.lazy)((()=>y)))})),v=r.PanelStruct=(0,n.assign)(b,(0,n.object)({type:(0,n.literal)(i.NodeType.Panel)})),y=(r.panel=(0,s.createBuilder)(i.NodeType.Panel,v,["children"]),r.ComponentStruct=(0,n.union)([c.CopyableStruct,u.DividerStruct,d.HeadingStruct,h.ImageStruct,v,m.SpinnerStruct,g.TextStruct,p.RowStruct,o.AddressStruct,f.InputStruct,l.FormStruct,a.ButtonStruct]))}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/panel.ts"}],[252,{"../../internals":199,"../builder":240,"../nodes":256,"./address":242,"./image":248,"./text":254,superstruct:164},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("superstruct"),s=e("../../internals"),i=e("../builder"),o=e("../nodes"),a=e("./address"),c=e("./image"),u=e("./text");let l=r.RowVariant=function(e){return e.Default="default",e.Critical="critical",e.Warning="warning",e}({});const d=(0,n.union)([c.ImageStruct,u.TextStruct,a.AddressStruct]),h=r.RowStruct=(0,n.assign)(o.LiteralStruct,(0,n.object)({type:(0,n.literal)(o.NodeType.Row),variant:(0,n.optional)((0,n.union)([(0,s.enumValue)(l.Default),(0,s.enumValue)(l.Critical),(0,s.enumValue)(l.Warning)])),label:(0,n.string)(),value:d}));r.row=(0,i.createBuilder)(o.NodeType.Row,h,["label","value","variant"])}}},{package:"@metamask/snaps-sdk",file:"../snaps-sdk/src/ui/components/row.ts"}],[253,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[254,{"../builder":240,"../nodes":256,superstruct:164},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("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"}],[255,{"./component":241,"./components":249,"./nodes":256},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"}],[256,{superstruct:164},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("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"}],[257,{"./../../snaps-sdk/src":195,"@metamask/rpc-errors":45,"@metamask/utils":68},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=v,r.unwrapError=function(e){if(v(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[y(t,r,n,s),!0]}const{code:t,message:r,stack:n,data:s}=e.data.cause;return[y(t,r,n,s),!1]}return[y(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[y(t,r,n,s),!1]}return[y(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){if(t.get)return t.get.call(e);return t.value}(e,u(e,t,"get"))}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(e,t,"set"),r),r}function u(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}const l=r.SNAP_ERROR_WRAPPER_CODE=-31001,d=r.SNAP_ERROR_WRAPPER_MESSAGE="Wrapped Snap Error";var h=new WeakMap,f=new WeakMap,p=new WeakMap;class m extends Error{constructor(e){const t=(0,s.getErrorMessage)(e);super(t),o(this,h,{writable:!0,value:void 0}),o(this,f,{writable:!0,value:void 0}),o(this,p,{writable:!0,value:void 0}),c(this,h,e),c(this,f,t),c(this,p,(0,s.getErrorStack)(e))}get name(){return"WrappedSnapError"}get message(){return a(this,f)}get stack(){return a(this,p)}toJSON(){const e=g(a(this,h))?a(this,h).serialize():(0,n.serializeCause)(a(this,h));return{code:l,message:d,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 v(e){return(0,i.isJsonRpcError)(e)&&e.code===l&&e.message===d}function y(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"}],[258,{},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.OnUserInput="onUserInput",e}({});r.SNAP_EXPORT_NAMES=Object.values(n)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handler-types.ts"}],[259,{"./../../snaps-sdk/src":195,"./handler-types":258,superstruct:164},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.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("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.OnSignature]:{type:i.HandlerType.OnSignature,required:!0,validator:e=>"function"==typeof e},[i.HandlerType.OnUserInput]:{type:i.HandlerType.OnUserInput,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.ComponentStruct})),u=r.OnTransactionResponseStruct=(0,s.nullable)((0,s.union)([c,a])),l=(r.OnSignatureResponseStruct=u,r.OnHomePageResponseWithContentStruct=(0,s.object)({content:n.ComponentStruct})),d=r.OnHomePageResponseWithIdStruct=(0,s.object)({id:(0,s.string)()}),h=(r.OnHomePageResponseStruct=(0,s.union)([l,d]),r.AddressResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedDomain:(0,s.string)()})),f=r.DomainResolutionStruct=(0,s.object)({protocol:(0,s.string)(),resolvedAddress:(0,s.string)()}),p=r.AddressResolutionResponseStruct=(0,s.object)({resolvedDomains:(0,s.size)((0,s.array)(h),1,Infinity)}),m=r.DomainResolutionResponseStruct=(0,s.object)({resolvedAddresses:(0,s.size)((0,s.array)(f),1,Infinity)});r.OnNameLookupResponseStruct=(0,s.nullable)((0,s.union)([p,m]))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/handlers.ts"}],[260,{},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(e,t,r=!0){return await new Promise(((n,s)=>{const i=document.createElement("iframe");i.setAttribute("id",t),i.setAttribute("data-testid","snaps-iframe"),r&&i.setAttribute("sandbox","allow-scripts"),i.setAttribute("src",e),document.body.appendChild(i),i.addEventListener("load",(()=>{i.contentWindow?n(i.contentWindow):s(new Error(`iframe.contentWindow not present on load for job "${t}".`))}))}))}}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/iframe.ts"}],[261,{"./errors":257,"./handler-types":258,"./handlers":259,"./iframe":260,"./logging":262,"./namespace":263,"./types":264},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("./namespace");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("./types");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]}}))}))}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/index.executionenv.ts"}],[262,{"@metamask/utils":68},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"}],[263,{superstruct:164},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.NamespaceStruct=r.NamespaceIdStruct=r.LimitedString=r.ChainStruct=r.ChainIdStruct=r.ChainIdStringStruct=r.CHAIN_ID_REGEX=r.AccountIdStruct=r.AccountIdArrayStruct=r.AccountAddressStruct=r.ACCOUNT_ID_REGEX=r.ACCOUNT_ADDRESS_REGEX=void 0,r.isAccountId=function(e){return(0,n.is)(e,l)},r.isAccountIdArray=function(e){return(0,n.is)(e,d)},r.isChainId=function(e){return(0,n.is)(e,u)},r.isNamespace=function(e){return(0,n.is)(e,f)},r.isNamespaceId=function(e){return(0,n.is)(e,p)},r.parseAccountId=function(e){const t=i.exec(e);if(null==t||!t.groups)throw new Error("Invalid account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},r.parseChainId=function(e){const t=s.exec(e);if(null==t||!t.groups)throw new Error("Invalid chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}};var n=e("superstruct");const s=r.CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-a-zA-Z0-9]{1,32})$/u,i=r.ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-a-zA-Z0-9]{1,32})):(?<accountAddress>[a-zA-Z0-9]{1,64})$/u,o=r.ACCOUNT_ADDRESS_REGEX=/^(?<accountAddress>[a-zA-Z0-9]{1,64})$/u;const a=r.LimitedString=(0,n.size)((0,n.string)(),1,40),c=r.ChainIdStringStruct=(0,n.define)("Chain ID",(0,n.string)().validator),u=r.ChainIdStruct=(0,n.pattern)(c,s),l=r.AccountIdStruct=(0,n.pattern)((0,n.string)(),i),d=r.AccountIdArrayStruct=(0,n.array)(l),h=(r.AccountAddressStruct=(0,n.pattern)((0,n.string)(),o),r.ChainStruct=(0,n.object)({id:u,name:a})),f=r.NamespaceStruct=(0,n.object)({chains:(0,n.array)(h),methods:(0,n.optional)((0,n.array)(a)),events:(0,n.optional)((0,n.array)(a))}),p=r.NamespaceIdStruct=(0,n.pattern)((0,n.string)(),/^[-a-z0-9]{3,8}$/u)}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/namespace.ts"}],[264,{"@metamask/utils":68,superstruct:164},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.SnapValidationFailureReason=r.SnapIdPrefixes=r.SNAP_STREAM_NAMES=r.NpmSnapPackageJsonStruct=r.NpmSnapFileNames=r.NameStruct=void 0,r.assertIsNpmSnapPackageJson=function(e){(0,n.assertStruct)(e,a,`"${i.PackageJson}" is invalid`)},r.isNpmSnapPackageJson=function(e){return(0,s.is)(e,a)},r.isValidUrl=function(e,t={}){return(0,s.is)(e,c(t))},r.uri=void 0;var n=e("@metamask/utils"),s=e("superstruct");let i=r.NpmSnapFileNames=function(e){return e.PackageJson="package.json",e.Manifest="snap.manifest.json",e}({});const o=r.NameStruct=(0,s.size)((0,s.pattern)((0,s.string)(),/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u),1,214),a=r.NpmSnapPackageJsonStruct=(0,s.type)({version:n.VersionStruct,name:o,main:(0,s.optional)((0,s.size)((0,s.string)(),1,Infinity)),repository:(0,s.optional)((0,s.object)({type:(0,s.size)((0,s.string)(),1,Infinity),url:(0,s.size)((0,s.string)(),1,Infinity)}))});r.SnapIdPrefixes=function(e){return e.npm="npm:",e.local="local:",e}({}),r.SnapValidationFailureReason=function(e){return e.NameMismatch='"name" field mismatch',e.VersionMismatch='"version" field mismatch',e.RepositoryMismatch='"repository" field mismatch',e.ShasumMismatch='"shasum" field mismatch',e}({}),r.SNAP_STREAM_NAMES=function(e){return e.JSON_RPC="jsonRpc",e.COMMAND="command",e}({});const c=(e={})=>(0,s.refine)((0,s.union)([(0,s.string)(),(0,s.instance)(URL)]),"uri",(t=>{try{const r=new URL(t),n=(0,s.type)(e);return(0,s.assert)(r,n),!0}catch{return`Expected URL, got "${t.toString()}".`}}));r.uri=c;r.WALLET_SNAP_PERMISSION_KEY="wallet_snap"}}},{package:"@metamask/snaps-utils",file:"../snaps-utils/src/types.ts"}]],[191],{resources:{"@metamask/json-rpc-engine":{packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/object-multiplex":{globals:{"console.warn":!0},packages:{"@metamask/object-multiplex>once":!0,"readable-stream":!0}},"@metamask/object-multiplex>once":{packages:{"@metamask/object-multiplex>once>wrappy":!0}},"@metamask/post-message-stream":{builtin:{"worker_threads.parentPort":!0},globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,"process.on":!0,"process.removeListener":!0,"process.send":!0,removeEventListener:!0},packages:{"@metamask/utils":!0,"readable-stream":!0,worker_threads:!0}},"@metamask/providers":{globals:{console:!0},packages:{"@metamask/object-multiplex":!0,"@metamask/providers>@metamask/json-rpc-engine":!0,"@metamask/providers>@metamask/json-rpc-middleware-stream":!0,"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/providers>is-stream":!0,"@metamask/rpc-errors":!0,"eslint>fast-deep-equal":!0,"readable-stream":!0}},"@metamask/providers>@metamask/json-rpc-engine":{packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/providers>@metamask/json-rpc-middleware-stream":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/providers>@metamask/safe-event-emitter":!0,"readable-stream":!0}},"@metamask/providers>@metamask/safe-event-emitter":{builtin:{"events.EventEmitter":!0},globals:{setTimeout:!0},packages:{events:!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/snaps-sdk":{globals:{fetch:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/snaps-sdk>fast-xml-parser":!0,"@metamask/utils":!0,superstruct:!0}},"@metamask/snaps-sdk>fast-xml-parser":{globals:{entityName:!0,val:!0},packages:{"@metamask/snaps-sdk>fast-xml-parser>strnum":!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/utils":!0,superstruct:!0}},"@metamask/utils":{builtin:{"buffer.Buffer":!0},globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/utils>@noble/hashes":!0,"@metamask/utils>@scure/base":!0,"@metamask/utils>pony-cause":!0,buffer:!0,"depcheck>semver":!0,superstruct:!0,"tsup>debug":!0}},"@metamask/utils>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/utils>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@wdio/mocha-framework>mocha>supports-color":{builtin:{"os.release":!0,"tty.isatty":!0},globals:{"process.env":!0,"process.platform":!0},packages:{"istanbul-lib-report>supports-color>has-flag":!0,os:!0,tty:!0}},"browserify>browser-pack>safe-buffer":{builtin:{buffer:!0},packages:{buffer:!0}},"browserify>inherits":{builtin:{"util.inherits":!0},packages:{util:!0}},"browserify>string_decoder":{packages:{"browserify>browser-pack>safe-buffer":!0}},"depcheck>semver":{globals:{"console.error":!0,process:!0},packages:{"depcheck>semver>lru-cache":!0}},"depcheck>semver>lru-cache":{packages:{"depcheck>semver>lru-cache>yallist":!0}},"istanbul-lib-report>supports-color>has-flag":{globals:{"process.argv":!0}},"readable-stream":{builtin:{"buffer.Buffer":!0,"events.EventEmitter":!0,stream:!0,util:!0},globals:{"process.env.READABLE_STREAM":!0,"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"browserify>inherits":!0,"browserify>string_decoder":!0,buffer:!0,events:!0,"readable-stream>util-deprecate":!0,stream:!0,util:!0}},"readable-stream>util-deprecate":{builtin:{"util.deprecate":!0},packages:{util:!0}},superstruct:{globals:{"console.warn":!0,define:!0}},"tsup>debug":{builtin:{"tty.isatty":!0,"util.deprecate":!0,"util.format":!0,"util.inspect":!0},globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"@wdio/mocha-framework>mocha>supports-color":!0,"tsup>debug>ms":!0,tty:!0,util:!0}}}});