/*! SES sources included by LavaMoat. Do not optimize or minify. */
;
// ses@1.15.0
(functors => options => {
  'use strict';

  const {
    Map,
    Object,
    ReferenceError,
    Reflect,
    TypeError,
  } = globalThis;
  const {
    create,
    defineProperties,
    defineProperty,
    freeze,
    fromEntries,
    getOwnPropertyDescriptors,
    getOwnPropertyNames,
    keys,
  } = Object;
  const { get, set } = Reflect;

  const {
  } = options || {};



  const cell = (name, value = undefined) => {
    const observers = [];
    return freeze({
      get: freeze(() => {
        return value;
      }),
      set: freeze((newValue) => {
        value = newValue;
        for (const observe of observers) {
          observe(value);
        }
      }),
      observe: freeze((observe) => {
        observers.push(observe);
        observe(value);
      }),
      enumerable: true,
    });
  };

  const cells = [
    {
      globalThis: cell("globalThis"),
      Array: cell("Array"),
      ArrayBuffer: cell("ArrayBuffer"),
      Date: cell("Date"),
      FinalizationRegistry: cell("FinalizationRegistry"),
      Float32Array: cell("Float32Array"),
      JSON: cell("JSON"),
      Map: cell("Map"),
      Math: cell("Math"),
      Number: cell("Number"),
      Object: cell("Object"),
      Promise: cell("Promise"),
      Proxy: cell("Proxy"),
      Reflect: cell("Reflect"),
      FERAL_REG_EXP: cell("FERAL_REG_EXP"),
      Set: cell("Set"),
      String: cell("String"),
      Symbol: cell("Symbol"),
      Uint8Array: cell("Uint8Array"),
      WeakMap: cell("WeakMap"),
      WeakSet: cell("WeakSet"),
      FERAL_ERROR: cell("FERAL_ERROR"),
      RangeError: cell("RangeError"),
      ReferenceError: cell("ReferenceError"),
      SyntaxError: cell("SyntaxError"),
      TypeError: cell("TypeError"),
      AggregateError: cell("AggregateError"),
      assign: cell("assign"),
      create: cell("create"),
      defineProperties: cell("defineProperties"),
      entries: cell("entries"),
      freeze: cell("freeze"),
      getOwnPropertyDescriptor: cell("getOwnPropertyDescriptor"),
      getOwnPropertyDescriptors: cell("getOwnPropertyDescriptors"),
      getOwnPropertyNames: cell("getOwnPropertyNames"),
      getPrototypeOf: cell("getPrototypeOf"),
      is: cell("is"),
      isFrozen: cell("isFrozen"),
      isSealed: cell("isSealed"),
      isExtensible: cell("isExtensible"),
      keys: cell("keys"),
      objectPrototype: cell("objectPrototype"),
      seal: cell("seal"),
      preventExtensions: cell("preventExtensions"),
      setPrototypeOf: cell("setPrototypeOf"),
      values: cell("values"),
      fromEntries: cell("fromEntries"),
      speciesSymbol: cell("speciesSymbol"),
      toStringTagSymbol: cell("toStringTagSymbol"),
      iteratorSymbol: cell("iteratorSymbol"),
      matchAllSymbol: cell("matchAllSymbol"),
      replaceSymbol: cell("replaceSymbol"),
      unscopablesSymbol: cell("unscopablesSymbol"),
      symbolKeyFor: cell("symbolKeyFor"),
      symbolFor: cell("symbolFor"),
      isInteger: cell("isInteger"),
      stringifyJson: cell("stringifyJson"),
      defineProperty: cell("defineProperty"),
      apply: cell("apply"),
      construct: cell("construct"),
      reflectGet: cell("reflectGet"),
      reflectGetOwnPropertyDescriptor: cell("reflectGetOwnPropertyDescriptor"),
      reflectHas: cell("reflectHas"),
      reflectIsExtensible: cell("reflectIsExtensible"),
      ownKeys: cell("ownKeys"),
      reflectPreventExtensions: cell("reflectPreventExtensions"),
      reflectSet: cell("reflectSet"),
      isArray: cell("isArray"),
      arrayPrototype: cell("arrayPrototype"),
      arrayBufferPrototype: cell("arrayBufferPrototype"),
      mapPrototype: cell("mapPrototype"),
      proxyRevocable: cell("proxyRevocable"),
      regexpPrototype: cell("regexpPrototype"),
      setPrototype: cell("setPrototype"),
      stringPrototype: cell("stringPrototype"),
      weakmapPrototype: cell("weakmapPrototype"),
      weaksetPrototype: cell("weaksetPrototype"),
      functionPrototype: cell("functionPrototype"),
      promisePrototype: cell("promisePrototype"),
      generatorPrototype: cell("generatorPrototype"),
      iteratorPrototype: cell("iteratorPrototype"),
      typedArrayPrototype: cell("typedArrayPrototype"),
      uncurryThis: cell("uncurryThis"),
      hasOwn: cell("hasOwn"),
      arrayFilter: cell("arrayFilter"),
      arrayForEach: cell("arrayForEach"),
      arrayIncludes: cell("arrayIncludes"),
      arrayJoin: cell("arrayJoin"),
      arrayMap: cell("arrayMap"),
      arrayFlatMap: cell("arrayFlatMap"),
      arrayPop: cell("arrayPop"),
      arrayPush: cell("arrayPush"),
      arraySlice: cell("arraySlice"),
      arraySome: cell("arraySome"),
      arraySort: cell("arraySort"),
      iterateArray: cell("iterateArray"),
      arrayBufferSlice: cell("arrayBufferSlice"),
      arrayBufferGetByteLength: cell("arrayBufferGetByteLength"),
      typedArraySet: cell("typedArraySet"),
      mapSet: cell("mapSet"),
      mapGet: cell("mapGet"),
      mapHas: cell("mapHas"),
      mapDelete: cell("mapDelete"),
      mapEntries: cell("mapEntries"),
      iterateMap: cell("iterateMap"),
      setAdd: cell("setAdd"),
      setDelete: cell("setDelete"),
      setForEach: cell("setForEach"),
      setHas: cell("setHas"),
      iterateSet: cell("iterateSet"),
      regexpExec: cell("regexpExec"),
      regexpReplace: cell("regexpReplace"),
      matchAllRegExp: cell("matchAllRegExp"),
      sealRegexp: cell("sealRegexp"),
      stringEndsWith: cell("stringEndsWith"),
      stringIncludes: cell("stringIncludes"),
      stringIndexOf: cell("stringIndexOf"),
      stringMatch: cell("stringMatch"),
      stringSearch: cell("stringSearch"),
      stringSlice: cell("stringSlice"),
      stringSplit: cell("stringSplit"),
      stringStartsWith: cell("stringStartsWith"),
      iterateString: cell("iterateString"),
      weakmapDelete: cell("weakmapDelete"),
      weakmapGet: cell("weakmapGet"),
      weakmapHas: cell("weakmapHas"),
      weakmapSet: cell("weakmapSet"),
      weaksetAdd: cell("weaksetAdd"),
      weaksetHas: cell("weaksetHas"),
      functionToString: cell("functionToString"),
      functionBind: cell("functionBind"),
      generatorNext: cell("generatorNext"),
      generatorThrow: cell("generatorThrow"),
      promiseAll: cell("promiseAll"),
      promiseCatch: cell("promiseCatch"),
      promiseThen: cell("promiseThen"),
      finalizationRegistryRegister: cell("finalizationRegistryRegister"),
      finalizationRegistryUnregister: cell("finalizationRegistryUnregister"),
      isPrimitive: cell("isPrimitive"),
      isError: cell("isError"),
      identity: cell("identity"),
      FERAL_EVAL: cell("FERAL_EVAL"),
      FERAL_FUNCTION: cell("FERAL_FUNCTION"),
      noEvalEvaluate: cell("noEvalEvaluate"),
      FERAL_STACK_GETTER: cell("FERAL_STACK_GETTER"),
      FERAL_STACK_SETTER: cell("FERAL_STACK_SETTER"),
      AsyncGeneratorFunctionInstance: cell("AsyncGeneratorFunctionInstance"),
    },
    {
    },
    {
      makeEnvironmentCaptor: cell("makeEnvironmentCaptor"),
      getEnvironmentOption: cell("getEnvironmentOption"),
      getEnvironmentOptionsList: cell("getEnvironmentOptionsList"),
      environmentOptionsListHas: cell("environmentOptionsListHas"),
    },
    {
    },
    {
      isBufferImmutable: cell("isBufferImmutable"),
      sliceBufferToImmutable: cell("sliceBufferToImmutable"),
      optTransferBufferToImmutable: cell("optTransferBufferToImmutable"),
    },
    {
    },
    {
    },
    {
      an: cell("an"),
      bestEffortStringify: cell("bestEffortStringify"),
      enJoin: cell("enJoin"),
    },
    {
    },
    {
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeCacheMapKit: cell("makeCacheMapKit"),
    },
    {
      makeNoteLogArgsArrayKit: cell("makeNoteLogArgsArrayKit"),
    },
    {
      q: cell("q"),
      b: cell("b"),
      X: cell("X"),
      unredactedDetails: cell("unredactedDetails"),
      makeError: cell("makeError"),
      annotateError: cell("annotateError"),
      loggedErrorHandler: cell("loggedErrorHandler"),
      assert: cell("assert"),
      assertEqual: cell("assertEqual"),
      sanitizeError: cell("sanitizeError"),
      makeAssert: cell("makeAssert"),
    },
    {
      isTypedArray: cell("isTypedArray"),
      makeHardener: cell("makeHardener"),
    },
    {
      cauterizeProperty: cell("cauterizeProperty"),
    },
    {
      NativeErrors: cell("NativeErrors"),
      constantProperties: cell("constantProperties"),
      universalPropertyNames: cell("universalPropertyNames"),
      initialGlobalPropertyNames: cell("initialGlobalPropertyNames"),
      sharedGlobalPropertyNames: cell("sharedGlobalPropertyNames"),
      uniqueGlobalPropertyNames: cell("uniqueGlobalPropertyNames"),
      FunctionInstance: cell("FunctionInstance"),
      AsyncFunctionInstance: cell("AsyncFunctionInstance"),
      isAccessorPermit: cell("isAccessorPermit"),
      permitted: cell("permitted"),
    },
    {
      makeIntrinsicsCollector: cell("makeIntrinsicsCollector"),
      getGlobalIntrinsics: cell("getGlobalIntrinsics"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      minEnablements: cell("minEnablements"),
      moderateEnablements: cell("moderateEnablements"),
      severeEnablements: cell("severeEnablements"),
    },
    {
      default: cell("default"),
    },
    {
      default: cell("default"),
    },
    {
      makeEvalFunction: cell("makeEvalFunction"),
    },
    {
      makeFunctionConstructor: cell("makeFunctionConstructor"),
    },
    {
      setGlobalObjectSymbolUnscopables: cell("setGlobalObjectSymbolUnscopables"),
      setGlobalObjectConstantProperties: cell("setGlobalObjectConstantProperties"),
      setGlobalObjectMutableProperties: cell("setGlobalObjectMutableProperties"),
      setGlobalObjectEvaluators: cell("setGlobalObjectEvaluators"),
    },
    {
      alwaysThrowHandler: cell("alwaysThrowHandler"),
      strictScopeTerminatorHandler: cell("strictScopeTerminatorHandler"),
      strictScopeTerminator: cell("strictScopeTerminator"),
    },
    {
      createSloppyGlobalsScopeTerminator: cell("createSloppyGlobalsScopeTerminator"),
    },
    {
      makeEvalScopeKit: cell("makeEvalScopeKit"),
    },
    {
      getSourceURL: cell("getSourceURL"),
    },
    {
      rejectHtmlComments: cell("rejectHtmlComments"),
      evadeHtmlCommentTest: cell("evadeHtmlCommentTest"),
      rejectImportExpressions: cell("rejectImportExpressions"),
      evadeImportExpressionTest: cell("evadeImportExpressionTest"),
      rejectSomeDirectEvalExpressions: cell("rejectSomeDirectEvalExpressions"),
      mandatoryTransforms: cell("mandatoryTransforms"),
      applyTransforms: cell("applyTransforms"),
      transforms: cell("transforms"),
    },
    {
      isValidIdentifierName: cell("isValidIdentifierName"),
      getScopeConstants: cell("getScopeConstants"),
    },
    {
      makeEvaluate: cell("makeEvaluate"),
    },
    {
      makeSafeEvaluator: cell("makeSafeEvaluator"),
    },
    {
      tameFunctionToString: cell("tameFunctionToString"),
    },
    {
      tameDomains: cell("tameDomains"),
    },
    {
      tameModuleSource: cell("tameModuleSource"),
    },
    {
      consoleLevelMethods: cell("consoleLevelMethods"),
      consoleOtherMethods: cell("consoleOtherMethods"),
      makeLoggingConsoleKit: cell("makeLoggingConsoleKit"),
      pumpLogToConsole: cell("pumpLogToConsole"),
      makeCausalConsole: cell("makeCausalConsole"),
      defineCausalConsoleFromLogger: cell("defineCausalConsoleFromLogger"),
      filterConsole: cell("filterConsole"),
    },
    {
      makeRejectionHandlers: cell("makeRejectionHandlers"),
    },
    {
      tameConsole: cell("tameConsole"),
    },
    {
      filterFileName: cell("filterFileName"),
      shortenCallSiteString: cell("shortenCallSiteString"),
      tameV8ErrorConstructor: cell("tameV8ErrorConstructor"),
    },
    {
      default: cell("default"),
    },
    {
      makeAlias: cell("makeAlias"),
      load: cell("load"),
      loadNow: cell("loadNow"),
    },
    {
      deferExports: cell("deferExports"),
      getDeferredExports: cell("getDeferredExports"),
    },
    {
      provideCompartmentEvaluator: cell("provideCompartmentEvaluator"),
      compartmentEvaluate: cell("compartmentEvaluate"),
    },
    {
      makeVirtualModuleInstance: cell("makeVirtualModuleInstance"),
      makeModuleInstance: cell("makeModuleInstance"),
    },
    {
      link: cell("link"),
      instantiate: cell("instantiate"),
    },
    {
      InertCompartment: cell("InertCompartment"),
      CompartmentPrototype: cell("CompartmentPrototype"),
      compartmentOptions: cell("compartmentOptions"),
      makeCompartmentConstructor: cell("makeCompartmentConstructor"),
    },
    {
      getAnonymousIntrinsics: cell("getAnonymousIntrinsics"),
    },
    {
      tameHarden: cell("tameHarden"),
    },
    {
      tameSymbolConstructor: cell("tameSymbolConstructor"),
    },
    {
      tameFauxDataProperty: cell("tameFauxDataProperty"),
      tameFauxDataProperties: cell("tameFauxDataProperties"),
    },
    {
      tameRegeneratorRuntime: cell("tameRegeneratorRuntime"),
    },
    {
      shimArrayBufferTransfer: cell("shimArrayBufferTransfer"),
    },
    {
      chooseReporter: cell("chooseReporter"),
      reportInGroup: cell("reportInGroup"),
    },
    {
      repairIntrinsics: cell("repairIntrinsics"),
    },
    {
    },
    {
    },
    {
    },
    {
    },
    {
    },
  ];

  defineProperties(cells[3], getOwnPropertyDescriptors(cells[2]));

  defineProperties(cells[11], {"makeCacheMapKit": { value: cells[10]["makeCacheMapKit"] } });

  const namespaces = cells.map(cells => freeze(create(null, {
    ...cells,
    // Make this appear like an ESM module namespace object.
    [Symbol.toStringTag]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  })));

  for (let index = 0; index < namespaces.length; index += 1) {
    cells[index]['*'] = cell('*', namespaces[index]);
  }

function observeImports(map, importName, importIndex) {
  for (const [name, observers] of map.get(importName)) {
    const cell = cells[importIndex][name];
    if (cell === undefined) {
      throw new ReferenceError(`Cannot import name ${name} (has ${Object.getOwnPropertyNames(cells[importIndex]).join(', ')})`);
    }
    for (const observer of observers) {
      cell.observe(observer);
    }
  }
}

  functors[0]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      universalThis: cells[0].globalThis.set,
      Array: cells[0].Array.set,
      ArrayBuffer: cells[0].ArrayBuffer.set,
      Date: cells[0].Date.set,
      FinalizationRegistry: cells[0].FinalizationRegistry.set,
      Float32Array: cells[0].Float32Array.set,
      JSON: cells[0].JSON.set,
      Map: cells[0].Map.set,
      Math: cells[0].Math.set,
      Number: cells[0].Number.set,
      Object: cells[0].Object.set,
      Promise: cells[0].Promise.set,
      Proxy: cells[0].Proxy.set,
      Reflect: cells[0].Reflect.set,
      FERAL_REG_EXP: cells[0].FERAL_REG_EXP.set,
      Set: cells[0].Set.set,
      String: cells[0].String.set,
      Symbol: cells[0].Symbol.set,
      Uint8Array: cells[0].Uint8Array.set,
      WeakMap: cells[0].WeakMap.set,
      WeakSet: cells[0].WeakSet.set,
      FERAL_ERROR: cells[0].FERAL_ERROR.set,
      RangeError: cells[0].RangeError.set,
      ReferenceError: cells[0].ReferenceError.set,
      SyntaxError: cells[0].SyntaxError.set,
      TypeError: cells[0].TypeError.set,
      AggregateError: cells[0].AggregateError.set,
      assign: cells[0].assign.set,
      create: cells[0].create.set,
      defineProperties: cells[0].defineProperties.set,
      entries: cells[0].entries.set,
      freeze: cells[0].freeze.set,
      getOwnPropertyDescriptor: cells[0].getOwnPropertyDescriptor.set,
      getOwnPropertyDescriptors: cells[0].getOwnPropertyDescriptors.set,
      getOwnPropertyNames: cells[0].getOwnPropertyNames.set,
      getPrototypeOf: cells[0].getPrototypeOf.set,
      is: cells[0].is.set,
      isFrozen: cells[0].isFrozen.set,
      isSealed: cells[0].isSealed.set,
      isExtensible: cells[0].isExtensible.set,
      keys: cells[0].keys.set,
      objectPrototype: cells[0].objectPrototype.set,
      seal: cells[0].seal.set,
      preventExtensions: cells[0].preventExtensions.set,
      setPrototypeOf: cells[0].setPrototypeOf.set,
      values: cells[0].values.set,
      fromEntries: cells[0].fromEntries.set,
      speciesSymbol: cells[0].speciesSymbol.set,
      toStringTagSymbol: cells[0].toStringTagSymbol.set,
      iteratorSymbol: cells[0].iteratorSymbol.set,
      matchAllSymbol: cells[0].matchAllSymbol.set,
      replaceSymbol: cells[0].replaceSymbol.set,
      unscopablesSymbol: cells[0].unscopablesSymbol.set,
      symbolKeyFor: cells[0].symbolKeyFor.set,
      symbolFor: cells[0].symbolFor.set,
      isInteger: cells[0].isInteger.set,
      stringifyJson: cells[0].stringifyJson.set,
      defineProperty: cells[0].defineProperty.set,
      apply: cells[0].apply.set,
      construct: cells[0].construct.set,
      reflectGet: cells[0].reflectGet.set,
      reflectGetOwnPropertyDescriptor: cells[0].reflectGetOwnPropertyDescriptor.set,
      reflectHas: cells[0].reflectHas.set,
      reflectIsExtensible: cells[0].reflectIsExtensible.set,
      ownKeys: cells[0].ownKeys.set,
      reflectPreventExtensions: cells[0].reflectPreventExtensions.set,
      reflectSet: cells[0].reflectSet.set,
      isArray: cells[0].isArray.set,
      arrayPrototype: cells[0].arrayPrototype.set,
      arrayBufferPrototype: cells[0].arrayBufferPrototype.set,
      mapPrototype: cells[0].mapPrototype.set,
      proxyRevocable: cells[0].proxyRevocable.set,
      regexpPrototype: cells[0].regexpPrototype.set,
      setPrototype: cells[0].setPrototype.set,
      stringPrototype: cells[0].stringPrototype.set,
      weakmapPrototype: cells[0].weakmapPrototype.set,
      weaksetPrototype: cells[0].weaksetPrototype.set,
      functionPrototype: cells[0].functionPrototype.set,
      promisePrototype: cells[0].promisePrototype.set,
      generatorPrototype: cells[0].generatorPrototype.set,
      iteratorPrototype: cells[0].iteratorPrototype.set,
      typedArrayPrototype: cells[0].typedArrayPrototype.set,
      uncurryThis: cells[0].uncurryThis.set,
      hasOwn: cells[0].hasOwn.set,
      arrayFilter: cells[0].arrayFilter.set,
      arrayForEach: cells[0].arrayForEach.set,
      arrayIncludes: cells[0].arrayIncludes.set,
      arrayJoin: cells[0].arrayJoin.set,
      arrayMap: cells[0].arrayMap.set,
      arrayFlatMap: cells[0].arrayFlatMap.set,
      arrayPop: cells[0].arrayPop.set,
      arrayPush: cells[0].arrayPush.set,
      arraySlice: cells[0].arraySlice.set,
      arraySome: cells[0].arraySome.set,
      arraySort: cells[0].arraySort.set,
      iterateArray: cells[0].iterateArray.set,
      arrayBufferSlice: cells[0].arrayBufferSlice.set,
      arrayBufferGetByteLength: cells[0].arrayBufferGetByteLength.set,
      typedArraySet: cells[0].typedArraySet.set,
      mapSet: cells[0].mapSet.set,
      mapGet: cells[0].mapGet.set,
      mapHas: cells[0].mapHas.set,
      mapDelete: cells[0].mapDelete.set,
      mapEntries: cells[0].mapEntries.set,
      iterateMap: cells[0].iterateMap.set,
      setAdd: cells[0].setAdd.set,
      setDelete: cells[0].setDelete.set,
      setForEach: cells[0].setForEach.set,
      setHas: cells[0].setHas.set,
      iterateSet: cells[0].iterateSet.set,
      regexpExec: cells[0].regexpExec.set,
      regexpReplace: cells[0].regexpReplace.set,
      matchAllRegExp: cells[0].matchAllRegExp.set,
      sealRegexp: cells[0].sealRegexp.set,
      stringEndsWith: cells[0].stringEndsWith.set,
      stringIncludes: cells[0].stringIncludes.set,
      stringIndexOf: cells[0].stringIndexOf.set,
      stringMatch: cells[0].stringMatch.set,
      stringSearch: cells[0].stringSearch.set,
      stringSlice: cells[0].stringSlice.set,
      stringSplit: cells[0].stringSplit.set,
      stringStartsWith: cells[0].stringStartsWith.set,
      iterateString: cells[0].iterateString.set,
      weakmapDelete: cells[0].weakmapDelete.set,
      weakmapGet: cells[0].weakmapGet.set,
      weakmapHas: cells[0].weakmapHas.set,
      weakmapSet: cells[0].weakmapSet.set,
      weaksetAdd: cells[0].weaksetAdd.set,
      weaksetHas: cells[0].weaksetHas.set,
      functionToString: cells[0].functionToString.set,
      functionBind: cells[0].functionBind.set,
      generatorNext: cells[0].generatorNext.set,
      generatorThrow: cells[0].generatorThrow.set,
      promiseAll: cells[0].promiseAll.set,
      promiseCatch: cells[0].promiseCatch.set,
      promiseThen: cells[0].promiseThen.set,
      finalizationRegistryRegister: cells[0].finalizationRegistryRegister.set,
      finalizationRegistryUnregister: cells[0].finalizationRegistryUnregister.set,
      isPrimitive: cells[0].isPrimitive.set,
      isError: cells[0].isError.set,
      identity: cells[0].identity.set,
      FERAL_EVAL: cells[0].FERAL_EVAL.set,
      FERAL_FUNCTION: cells[0].FERAL_FUNCTION.set,
      noEvalEvaluate: cells[0].noEvalEvaluate.set,
      FERAL_STACK_GETTER: cells[0].FERAL_STACK_GETTER.set,
      FERAL_STACK_SETTER: cells[0].FERAL_STACK_SETTER.set,
      AsyncGeneratorFunctionInstance: cells[0].AsyncGeneratorFunctionInstance.set,
    },
    importMeta: {},
  });
  functors[1]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[2]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEnvironmentCaptor: cells[2].makeEnvironmentCaptor.set,
      getEnvironmentOption: cells[2].getEnvironmentOption.set,
      getEnvironmentOptionsList: cells[2].getEnvironmentOptionsList.set,
      environmentOptionsListHas: cells[2].environmentOptionsListHas.set,
    },
    importMeta: {},
  });
  functors[3]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/env-options.js", 2);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[4]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      isBufferImmutable: cells[4].isBufferImmutable.set,
      sliceBufferToImmutable: cells[4].sliceBufferToImmutable.set,
      optTransferBufferToImmutable: cells[4].optTransferBufferToImmutable.set,
    },
    importMeta: {},
  });
  functors[5]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./immutable-arraybuffer-pony.js", 4);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[6]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/immutable-arraybuffer-shim.js", 5);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[7]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      an: cells[7].an.set,
      bestEffortStringify: cells[7].bestEffortStringify.set,
      enJoin: cells[7].enJoin.set,
    },
    importMeta: {},
  });
  functors[8]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[9]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[10]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeCacheMapKit: cells[10].makeCacheMapKit.set,
    },
    importMeta: {},
  });
  functors[11]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/cachemap.js", 10);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[12]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/cache-map", 11);
    },
    liveVar: {
    },
    onceVar: {
      makeNoteLogArgsArrayKit: cells[12].makeNoteLogArgsArrayKit.set,
    },
    importMeta: {},
  });
  functors[13]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./stringify-utils.js", 7);
      observeImports(map, "./types.js", 8);
      observeImports(map, "./internal-types.js", 9);
      observeImports(map, "./note-log-args.js", 12);
    },
    liveVar: {
    },
    onceVar: {
      quote: cells[13].q.set,
      bare: cells[13].b.set,
      redactedDetails: cells[13].X.set,
      unredactedDetails: cells[13].unredactedDetails.set,
      makeError: cells[13].makeError.set,
      note: cells[13].annotateError.set,
      loggedErrorHandler: cells[13].loggedErrorHandler.set,
      assert: cells[13].assert.set,
      assertEqual: cells[13].assertEqual.set,
      sanitizeError: cells[13].sanitizeError.set,
      makeAssert: cells[13].makeAssert.set,
    },
    importMeta: {},
  });
  functors[14]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      isTypedArray: cells[14].isTypedArray.set,
      makeHardener: cells[14].makeHardener.set,
    },
    importMeta: {},
  });
  functors[15]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      cauterizeProperty: cells[15].cauterizeProperty.set,
    },
    importMeta: {},
  });
  functors[16]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      NativeErrors: cells[16].NativeErrors.set,
      constantProperties: cells[16].constantProperties.set,
      universalPropertyNames: cells[16].universalPropertyNames.set,
      initialGlobalPropertyNames: cells[16].initialGlobalPropertyNames.set,
      sharedGlobalPropertyNames: cells[16].sharedGlobalPropertyNames.set,
      uniqueGlobalPropertyNames: cells[16].uniqueGlobalPropertyNames.set,
      FunctionInstance: cells[16].FunctionInstance.set,
      AsyncFunctionInstance: cells[16].AsyncFunctionInstance.set,
      isAccessorPermit: cells[16].isAccessorPermit.set,
      permitted: cells[16].permitted.set,
    },
    importMeta: {},
  });
  functors[17]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./cauterize-property.js", 15);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      makeIntrinsicsCollector: cells[17].makeIntrinsicsCollector.set,
      getGlobalIntrinsics: cells[17].getGlobalIntrinsics.set,
    },
    importMeta: {},
  });
  functors[18]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./cauterize-property.js", 15);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[18].default.set,
    },
    importMeta: {},
  });
  functors[19]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[19].default.set,
    },
    importMeta: {},
  });
  functors[20]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[20].default.set,
    },
    importMeta: {},
  });
  functors[21]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[21].default.set,
    },
    importMeta: {},
  });
  functors[22]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[22].default.set,
    },
    importMeta: {},
  });
  functors[23]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      minEnablements: cells[23].minEnablements.set,
      moderateEnablements: cells[23].moderateEnablements.set,
      severeEnablements: cells[23].severeEnablements.set,
    },
    importMeta: {},
  });
  functors[24]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./enablements.js", 23);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[24].default.set,
    },
    importMeta: {},
  });
  functors[25]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[25].default.set,
    },
    importMeta: {},
  });
  functors[26]({
    imports(entries) {
      const map = new Map(entries);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalFunction: cells[26].makeEvalFunction.set,
    },
    importMeta: {},
  });
  functors[27]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeFunctionConstructor: cells[27].makeFunctionConstructor.set,
    },
    importMeta: {},
  });
  functors[28]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-eval-function.js", 26);
      observeImports(map, "./make-function-constructor.js", 27);
      observeImports(map, "./permits.js", 16);
    },
    liveVar: {
    },
    onceVar: {
      setGlobalObjectSymbolUnscopables: cells[28].setGlobalObjectSymbolUnscopables.set,
      setGlobalObjectConstantProperties: cells[28].setGlobalObjectConstantProperties.set,
      setGlobalObjectMutableProperties: cells[28].setGlobalObjectMutableProperties.set,
      setGlobalObjectEvaluators: cells[28].setGlobalObjectEvaluators.set,
    },
    importMeta: {},
  });
  functors[29]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      alwaysThrowHandler: cells[29].alwaysThrowHandler.set,
      strictScopeTerminatorHandler: cells[29].strictScopeTerminatorHandler.set,
      strictScopeTerminator: cells[29].strictScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[30]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
    },
    liveVar: {
    },
    onceVar: {
      createSloppyGlobalsScopeTerminator: cells[30].createSloppyGlobalsScopeTerminator.set,
    },
    importMeta: {},
  });
  functors[31]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeEvalScopeKit: cells[31].makeEvalScopeKit.set,
    },
    importMeta: {},
  });
  functors[32]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      getSourceURL: cells[32].getSourceURL.set,
    },
    importMeta: {},
  });
  functors[33]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./get-source-url.js", 32);
    },
    liveVar: {
    },
    onceVar: {
      rejectHtmlComments: cells[33].rejectHtmlComments.set,
      evadeHtmlCommentTest: cells[33].evadeHtmlCommentTest.set,
      rejectImportExpressions: cells[33].rejectImportExpressions.set,
      evadeImportExpressionTest: cells[33].evadeImportExpressionTest.set,
      rejectSomeDirectEvalExpressions: cells[33].rejectSomeDirectEvalExpressions.set,
      mandatoryTransforms: cells[33].mandatoryTransforms.set,
      applyTransforms: cells[33].applyTransforms.set,
      transforms: cells[33].transforms.set,
    },
    importMeta: {},
  });
  functors[34]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      isValidIdentifierName: cells[34].isValidIdentifierName.set,
      getScopeConstants: cells[34].getScopeConstants.set,
    },
    importMeta: {},
  });
  functors[35]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./scope-constants.js", 34);
    },
    liveVar: {
    },
    onceVar: {
      makeEvaluate: cells[35].makeEvaluate.set,
    },
    importMeta: {},
  });
  functors[36]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./strict-scope-terminator.js", 29);
      observeImports(map, "./sloppy-globals-scope-terminator.js", 30);
      observeImports(map, "./eval-scope.js", 31);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-evaluate.js", 35);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeSafeEvaluator: cells[36].makeSafeEvaluator.set,
    },
    importMeta: {},
  });
  functors[37]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFunctionToString: cells[37].tameFunctionToString.set,
    },
    importMeta: {},
  });
  functors[38]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameDomains: cells[38].tameDomains.set,
    },
    importMeta: {},
  });
  functors[39]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameModuleSource: cells[39].tameModuleSource.set,
    },
    importMeta: {},
  });
  functors[40]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      consoleLevelMethods: cells[40].consoleLevelMethods.set,
      consoleOtherMethods: cells[40].consoleOtherMethods.set,
      makeLoggingConsoleKit: cells[40].makeLoggingConsoleKit.set,
      pumpLogToConsole: cells[40].pumpLogToConsole.set,
      makeCausalConsole: cells[40].makeCausalConsole.set,
      defineCausalConsoleFromLogger: cells[40].defineCausalConsoleFromLogger.set,
      filterConsole: cells[40].filterConsole.set,
    },
    importMeta: {},
  });
  functors[41]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      makeRejectionHandlers: cells[41].makeRejectionHandlers.set,
    },
    importMeta: {},
  });
  functors[42]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "./assert.js", 13);
      observeImports(map, "./console.js", 40);
      observeImports(map, "./unhandled-rejection.js", 41);
    },
    liveVar: {
    },
    onceVar: {
      tameConsole: cells[42].tameConsole.set,
    },
    importMeta: {},
  });
  functors[43]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      filterFileName: cells[43].filterFileName.set,
      shortenCallSiteString: cells[43].shortenCallSiteString.set,
      tameV8ErrorConstructor: cells[43].tameV8ErrorConstructor.set,
    },
    importMeta: {},
  });
  functors[44]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "../commons.js", 0);
      observeImports(map, "../permits.js", 16);
      observeImports(map, "./tame-v8-error-constructor.js", 43);
    },
    liveVar: {
    },
    onceVar: {
      default: cells[44].default.set,
    },
    importMeta: {},
  });
  functors[45]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      makeAlias: cells[45].makeAlias.set,
      load: cells[45].load.set,
      loadNow: cells[45].loadNow.set,
    },
    importMeta: {},
  });
  functors[46]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      deferExports: cells[46].deferExports.set,
      getDeferredExports: cells[46].getDeferredExports.set,
    },
    importMeta: {},
  });
  functors[47]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./transforms.js", 33);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      provideCompartmentEvaluator: cells[47].provideCompartmentEvaluator.set,
      compartmentEvaluate: cells[47].compartmentEvaluate.set,
    },
    importMeta: {},
  });
  functors[48]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment-evaluate.js", 47);
    },
    liveVar: {
    },
    onceVar: {
      makeVirtualModuleInstance: cells[48].makeVirtualModuleInstance.set,
      makeModuleInstance: cells[48].makeModuleInstance.set,
    },
    importMeta: {},
  });
  functors[49]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./module-instance.js", 48);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      link: cells[49].link.set,
      instantiate: cells[49].instantiate.set,
    },
    importMeta: {},
  });
  functors[50]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./module-load.js", 45);
      observeImports(map, "./module-link.js", 49);
      observeImports(map, "./module-proxy.js", 46);
      observeImports(map, "./compartment-evaluate.js", 47);
      observeImports(map, "./make-safe-evaluator.js", 36);
    },
    liveVar: {
    },
    onceVar: {
      InertCompartment: cells[50].InertCompartment.set,
      CompartmentPrototype: cells[50].CompartmentPrototype.set,
      compartmentOptions: cells[50].compartmentOptions.set,
      makeCompartmentConstructor: cells[50].makeCompartmentConstructor.set,
    },
    importMeta: {},
  });
  functors[51]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
    },
    liveVar: {
    },
    onceVar: {
      getAnonymousIntrinsics: cells[51].getAnonymousIntrinsics.set,
    },
    importMeta: {},
  });
  functors[52]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameHarden: cells[52].tameHarden.set,
    },
    importMeta: {},
  });
  functors[53]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameSymbolConstructor: cells[53].tameSymbolConstructor.set,
    },
    importMeta: {},
  });
  functors[54]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameFauxDataProperty: cells[54].tameFauxDataProperty.set,
      tameFauxDataProperties: cells[54].tameFauxDataProperties.set,
    },
    importMeta: {},
  });
  functors[55]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      tameRegeneratorRuntime: cells[55].tameRegeneratorRuntime.set,
    },
    importMeta: {},
  });
  functors[56]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
    },
    liveVar: {
    },
    onceVar: {
      shimArrayBufferTransfer: cells[56].shimArrayBufferTransfer.set,
    },
    importMeta: {},
  });
  functors[57]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
      chooseReporter: cells[57].chooseReporter.set,
      reportInGroup: cells[57].reportInGroup.set,
    },
    importMeta: {},
  });
  functors[58]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "@endo/env-options", 3);
      observeImports(map, "@endo/immutable-arraybuffer/shim.js", 6);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./make-hardener.js", 14);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./permits-intrinsics.js", 18);
      observeImports(map, "./tame-function-constructors.js", 19);
      observeImports(map, "./tame-date-constructor.js", 20);
      observeImports(map, "./tame-math-object.js", 21);
      observeImports(map, "./tame-regexp-constructor.js", 22);
      observeImports(map, "./enable-property-overrides.js", 24);
      observeImports(map, "./tame-locale-methods.js", 25);
      observeImports(map, "./global-object.js", 28);
      observeImports(map, "./make-safe-evaluator.js", 36);
      observeImports(map, "./permits.js", 16);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./tame-domains.js", 38);
      observeImports(map, "./tame-module-source.js", 39);
      observeImports(map, "./error/tame-console.js", 42);
      observeImports(map, "./error/tame-error-constructor.js", 44);
      observeImports(map, "./error/assert.js", 13);
      observeImports(map, "./get-anonymous-intrinsics.js", 51);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-harden.js", 52);
      observeImports(map, "./tame-symbol-constructor.js", 53);
      observeImports(map, "./tame-faux-data-properties.js", 54);
      observeImports(map, "./tame-regenerator-runtime.js", 55);
      observeImports(map, "./shim-arraybuffer-transfer.js", 56);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
      repairIntrinsics: cells[58].repairIntrinsics.set,
    },
    importMeta: {},
  });
  functors[59]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./assert-sloppy-mode.js", 1);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./lockdown.js", 58);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[60]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./compartment.js", 50);
      observeImports(map, "./tame-function-tostring.js", 37);
      observeImports(map, "./intrinsics.js", 17);
      observeImports(map, "./reporting.js", 57);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[61]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[62]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./commons.js", 0);
      observeImports(map, "./error/console.js", 40);
      observeImports(map, "./error/assert.js", 13);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });
  functors[63]({
    imports(entries) {
      const map = new Map(entries);
      observeImports(map, "./src/lockdown-shim.js", 59);
      observeImports(map, "./src/compartment-shim.js", 60);
      observeImports(map, "./src/assert-shim.js", 61);
      observeImports(map, "./src/console-shim.js", 62);
    },
    liveVar: {
    },
    onceVar: {
    },
    importMeta: {},
  });

  return cells[cells.length - 1]['*'].get();
})([
// === 0. ses ./src/commons.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * Captures native intrinsics during initialization, so vetted shims
 * (running between initialization of SES and calling lockdown) are free to
 * modify the environment without compromising the integrity of SES. For
 * example, a vetted shim can modify Object.assign because we capture and
 * export Object and assign here, then never again consult Object to get its
 * assign property.
 *
 * This pattern of use is enforced by eslint rules no-restricted-globals and
 * no-polymorphic-call.
 * We maintain the list of restricted globals in ../package.json.
 *
 * @module
 */

/* global globalThis */
/* eslint-disable no-restricted-globals */

// We cannot use globalThis as the local name since it would capture the
// lexical name.
const universalThis = globalThis;$h͏_once.universalThis(universalThis);


       const {
  Array,
  ArrayBuffer,
  Date,
  FinalizationRegistry,
  Float32Array,
  JSON,
  Map,
  Math,
  Number,
  Object,
  Promise,
  Proxy,
  Reflect,
  RegExp: FERAL_REG_EXP,
  Set,
  String,
  Symbol,
  Uint8Array,
  WeakMap,
  WeakSet,
} = globalThis;$h͏_once.Array(Array);$h͏_once.ArrayBuffer(ArrayBuffer);$h͏_once.Date(Date);$h͏_once.FinalizationRegistry(FinalizationRegistry);$h͏_once.Float32Array(Float32Array);$h͏_once.JSON(JSON);$h͏_once.Map(Map);$h͏_once.Math(Math);$h͏_once.Number(Number);$h͏_once.Object(Object);$h͏_once.Promise(Promise);$h͏_once.Proxy(Proxy);$h͏_once.Reflect(Reflect);$h͏_once.FERAL_REG_EXP(FERAL_REG_EXP);$h͏_once.Set(Set);$h͏_once.String(String);$h͏_once.Symbol(Symbol);$h͏_once.Uint8Array(Uint8Array);$h͏_once.WeakMap(WeakMap);$h͏_once.WeakSet(WeakSet);

       const {
  // The feral Error constructor is safe for internal use, but must not be
  // revealed to post-lockdown code in any compartment including the start
  // compartment since in V8 at least it bears stack inspection capabilities.
  Error: FERAL_ERROR,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  AggregateError,
} = globalThis;$h͏_once.FERAL_ERROR(FERAL_ERROR);$h͏_once.RangeError(RangeError);$h͏_once.ReferenceError(ReferenceError);$h͏_once.SyntaxError(SyntaxError);$h͏_once.TypeError(TypeError);$h͏_once.AggregateError(AggregateError);

       const {
  assign,
  create,
  defineProperties,
  entries,
  freeze,
  getOwnPropertyDescriptor,
  getOwnPropertyDescriptors,
  getOwnPropertyNames,
  getPrototypeOf,
  is,
  isFrozen,
  isSealed,
  isExtensible,
  keys,
  prototype: objectPrototype,
  seal,
  preventExtensions,
  setPrototypeOf,
  values,
  fromEntries,
} = Object;$h͏_once.assign(assign);$h͏_once.create(create);$h͏_once.defineProperties(defineProperties);$h͏_once.entries(entries);$h͏_once.freeze(freeze);$h͏_once.getOwnPropertyDescriptor(getOwnPropertyDescriptor);$h͏_once.getOwnPropertyDescriptors(getOwnPropertyDescriptors);$h͏_once.getOwnPropertyNames(getOwnPropertyNames);$h͏_once.getPrototypeOf(getPrototypeOf);$h͏_once.is(is);$h͏_once.isFrozen(isFrozen);$h͏_once.isSealed(isSealed);$h͏_once.isExtensible(isExtensible);$h͏_once.keys(keys);$h͏_once.objectPrototype(objectPrototype);$h͏_once.seal(seal);$h͏_once.preventExtensions(preventExtensions);$h͏_once.setPrototypeOf(setPrototypeOf);$h͏_once.values(values);$h͏_once.fromEntries(fromEntries);

       const {
  species: speciesSymbol,
  toStringTag: toStringTagSymbol,
  iterator: iteratorSymbol,
  matchAll: matchAllSymbol,
  replace: replaceSymbol,
  unscopables: unscopablesSymbol,
  keyFor: symbolKeyFor,
  for: symbolFor,
} = Symbol;$h͏_once.speciesSymbol(speciesSymbol);$h͏_once.toStringTagSymbol(toStringTagSymbol);$h͏_once.iteratorSymbol(iteratorSymbol);$h͏_once.matchAllSymbol(matchAllSymbol);$h͏_once.replaceSymbol(replaceSymbol);$h͏_once.unscopablesSymbol(unscopablesSymbol);$h͏_once.symbolKeyFor(symbolKeyFor);$h͏_once.symbolFor(symbolFor);

       const { isInteger } = Number;$h͏_once.isInteger(isInteger);

       const { stringify: stringifyJson } = JSON;

// Needed only for the Safari bug workaround below
$h͏_once.stringifyJson(stringifyJson);const{defineProperty:originalDefineProperty}=Object;

       const defineProperty = (object, prop, descriptor) => {
  // We used to do the following, until we had to reopen Safari bug
  // https://bugs.webkit.org/show_bug.cgi?id=222538#c17
  // Once this is fixed, we may restore it.
  // // Object.defineProperty is allowed to fail silently so we use
  // // Object.defineProperties instead.
  // return defineProperties(object, { [prop]: descriptor });

  // Instead, to workaround the Safari bug
  const result = originalDefineProperty(object, prop, descriptor);
  if (result !== object) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DEFINE_PROPERTY_FAILED_SILENTLY.md
    throw TypeError(
      `Please report that the original defineProperty silently failed to set ${stringifyJson(
        String(prop),
      )}. (SES_DEFINE_PROPERTY_FAILED_SILENTLY)`,
    );
  }
  return result;
};$h͏_once.defineProperty(defineProperty);

       const {
  apply,
  construct,
  get: reflectGet,
  getOwnPropertyDescriptor: reflectGetOwnPropertyDescriptor,
  has: reflectHas,
  isExtensible: reflectIsExtensible,
  ownKeys,
  preventExtensions: reflectPreventExtensions,
  set: reflectSet,
} = Reflect;$h͏_once.apply(apply);$h͏_once.construct(construct);$h͏_once.reflectGet(reflectGet);$h͏_once.reflectGetOwnPropertyDescriptor(reflectGetOwnPropertyDescriptor);$h͏_once.reflectHas(reflectHas);$h͏_once.reflectIsExtensible(reflectIsExtensible);$h͏_once.ownKeys(ownKeys);$h͏_once.reflectPreventExtensions(reflectPreventExtensions);$h͏_once.reflectSet(reflectSet);

       const { isArray, prototype: arrayPrototype } = Array;$h͏_once.isArray(isArray);$h͏_once.arrayPrototype(arrayPrototype);
       const { prototype: arrayBufferPrototype } = ArrayBuffer;$h͏_once.arrayBufferPrototype(arrayBufferPrototype);
       const { prototype: mapPrototype } = Map;$h͏_once.mapPrototype(mapPrototype);
       const { revocable: proxyRevocable } = Proxy;$h͏_once.proxyRevocable(proxyRevocable);
       const { prototype: regexpPrototype } = RegExp;$h͏_once.regexpPrototype(regexpPrototype);
       const { prototype: setPrototype } = Set;$h͏_once.setPrototype(setPrototype);
       const { prototype: stringPrototype } = String;$h͏_once.stringPrototype(stringPrototype);
       const { prototype: weakmapPrototype } = WeakMap;$h͏_once.weakmapPrototype(weakmapPrototype);
       const { prototype: weaksetPrototype } = WeakSet;$h͏_once.weaksetPrototype(weaksetPrototype);
       const { prototype: functionPrototype } = Function;$h͏_once.functionPrototype(functionPrototype);
       const { prototype: promisePrototype } = Promise;$h͏_once.promisePrototype(promisePrototype);
       const { prototype: generatorPrototype } = getPrototypeOf(
  // eslint-disable-next-line no-empty-function, func-names
  function* () {},
);$h͏_once.generatorPrototype(generatorPrototype);
       const iteratorPrototype = getPrototypeOf(
  // eslint-disable-next-line @endo/no-polymorphic-call
  getPrototypeOf(arrayPrototype.values()),
);$h͏_once.iteratorPrototype(iteratorPrototype);

       const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);$h͏_once.typedArrayPrototype(typedArrayPrototype);

const { bind } = functionPrototype;

/**
 * uncurryThis()
 * Equivalent of: fn => (thisArg, ...args) => apply(fn, thisArg, args)
 *
 * See those reference for a complete explanation:
 * http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 * which only lives at
 * http://web.archive.org/web/20160805225710/http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming
 *
 * @type {<F extends (this: any, ...args: any[]) => any>(fn: F) => ((thisArg: ThisParameterType<F>, ...args: Parameters<F>) => ReturnType<F>)}
 */
       const uncurryThis = bind.bind(bind.call); // eslint-disable-line @endo/no-polymorphic-call

// See https://github.com/endojs/endo/issues/2930
$h͏_once.uncurryThis(uncurryThis);if(!('hasOwn'in Object)){
  const ObjectPrototypeHasOwnProperty = objectPrototype.hasOwnProperty;
  const hasOwnShim = (obj, key) => {
    if (obj === undefined || obj === null) {
      // We need to add this extra test because of differences in
      // the order in which `hasOwn` vs `hasOwnProperty` validates
      // arguments.
      throw TypeError('Cannot convert undefined or null to object');
    }
    return apply(ObjectPrototypeHasOwnProperty, obj, [key]);
  };
  defineProperty(Object, 'hasOwn', {
    value: hasOwnShim,
    writable: true,
    enumerable: false,
    configurable: true,
  });
}

       const { hasOwn } = Object;
//
$h͏_once.hasOwn(hasOwn);const arrayFilter=uncurryThis(arrayPrototype.filter);$h͏_once.arrayFilter(arrayFilter);
       const arrayForEach = uncurryThis(arrayPrototype.forEach);$h͏_once.arrayForEach(arrayForEach);
       const arrayIncludes = uncurryThis(arrayPrototype.includes);$h͏_once.arrayIncludes(arrayIncludes);
       const arrayJoin = uncurryThis(arrayPrototype.join);
/** @type {<T, U>(thisArg: readonly T[], callbackfn: (value: T, index: number, array: T[]) => U, cbThisArg?: any) => U[]} */$h͏_once.arrayJoin(arrayJoin);
       const arrayMap = /** @type {any} */ (uncurryThis(arrayPrototype.map));$h͏_once.arrayMap(arrayMap);
       const arrayFlatMap = /** @type {any} */ (
  uncurryThis(arrayPrototype.flatMap)
);$h͏_once.arrayFlatMap(arrayFlatMap);
       const arrayPop = uncurryThis(arrayPrototype.pop);
/** @type {<T>(thisArg: T[], ...items: T[]) => number} */$h͏_once.arrayPop(arrayPop);
       const arrayPush = uncurryThis(arrayPrototype.push);$h͏_once.arrayPush(arrayPush);
       const arraySlice = uncurryThis(arrayPrototype.slice);$h͏_once.arraySlice(arraySlice);
       const arraySome = uncurryThis(arrayPrototype.some);$h͏_once.arraySome(arraySome);
       const arraySort = uncurryThis(arrayPrototype.sort);$h͏_once.arraySort(arraySort);
       const iterateArray = uncurryThis(arrayPrototype[iteratorSymbol]);
//
$h͏_once.iterateArray(iterateArray);const arrayBufferSlice=uncurryThis(arrayBufferPrototype.slice);
/** @type {(b: ArrayBuffer) => number} */$h͏_once.arrayBufferSlice(arrayBufferSlice);
       const arrayBufferGetByteLength = uncurryThis(
  // @ts-expect-error we know it is there on all conforming platforms
  getOwnPropertyDescriptor(arrayBufferPrototype, 'byteLength').get,
);
//
$h͏_once.arrayBufferGetByteLength(arrayBufferGetByteLength);const typedArraySet=uncurryThis(typedArrayPrototype.set);
//
$h͏_once.typedArraySet(typedArraySet);const mapSet=uncurryThis(mapPrototype.set);$h͏_once.mapSet(mapSet);
       const mapGet = uncurryThis(mapPrototype.get);$h͏_once.mapGet(mapGet);
       const mapHas = uncurryThis(mapPrototype.has);$h͏_once.mapHas(mapHas);
       const mapDelete = uncurryThis(mapPrototype.delete);$h͏_once.mapDelete(mapDelete);
       const mapEntries = uncurryThis(mapPrototype.entries);$h͏_once.mapEntries(mapEntries);
       const iterateMap = uncurryThis(mapPrototype[iteratorSymbol]);
//
$h͏_once.iterateMap(iterateMap);const setAdd=uncurryThis(setPrototype.add);$h͏_once.setAdd(setAdd);
       const setDelete = uncurryThis(setPrototype.delete);$h͏_once.setDelete(setDelete);
       const setForEach = uncurryThis(setPrototype.forEach);$h͏_once.setForEach(setForEach);
       const setHas = uncurryThis(setPrototype.has);$h͏_once.setHas(setHas);
       const iterateSet = uncurryThis(setPrototype[iteratorSymbol]);
//
/**
 * `regexpExec` is provided in exclusion of `regexpTest`, which would be
 * vulnerable to RegExp.prototype poisoning.
 */$h͏_once.iterateSet(iterateSet);
       const regexpExec = uncurryThis(regexpPrototype.exec);
/**
 * @type { &
 *   ((thisArg: RegExp, string: string, replaceValue: string) => string) &
 *   ((thisArg: RegExp, string: string, replacer: (substring: string, ...args: any[]) => string) => string)
 * }
 */$h͏_once.regexpExec(regexpExec);
       const regexpReplace = /** @type {any} */ (
  uncurryThis(regexpPrototype[replaceSymbol])
);$h͏_once.regexpReplace(regexpReplace);
       const matchAllRegExp = uncurryThis(regexpPrototype[matchAllSymbol]);$h͏_once.matchAllRegExp(matchAllRegExp);
const { _regexpConstructor, ...regexpDescriptors } =
  getOwnPropertyDescriptors(regexpPrototype);
arrayForEach(ownKeys(regexpDescriptors), key => {
  const desc = regexpDescriptors[/** @type {any} */ (key)];
  desc.configurable = false;
  if (desc.writable) desc.writable = false;
});
/**
 * Protect a RegExp instance against RegExp.prototype poisoning ("exec",
 * "flags", Symbol.replace, etc.).
 * @type {<T extends RegExp>(regexp: T) => T}
 */
       const sealRegexp = regexp =>
  seal(defineProperties(regexp, regexpDescriptors));
//
$h͏_once.sealRegexp(sealRegexp);const stringEndsWith=uncurryThis(stringPrototype.endsWith);$h͏_once.stringEndsWith(stringEndsWith);
       const stringIncludes = uncurryThis(stringPrototype.includes);$h͏_once.stringIncludes(stringIncludes);
       const stringIndexOf = uncurryThis(stringPrototype.indexOf);$h͏_once.stringIndexOf(stringIndexOf);
       const stringMatch = uncurryThis(stringPrototype.match);
// `stringReplace` is intentionally omitted because it would be vulnerable to
// RegExp.prototype poisoning; use `regexpReplace(re, str, replacer)` instead
// (and `sealRegexp` on its regular expressions).
$h͏_once.stringMatch(stringMatch);const stringSearch=uncurryThis(stringPrototype.search);$h͏_once.stringSearch(stringSearch);
       const stringSlice = uncurryThis(stringPrototype.slice);
/**
 * `stringSplit` should only be used with a string separator; regular
 * expressions are vulnerable to RegExp.prototype poisoning.
 * @type {(thisArg: string, separator: string, limit?: number) => string[]}
 */$h͏_once.stringSlice(stringSlice);
       const stringSplit = /** @type {any} */ (
  uncurryThis(stringPrototype.split)
);$h͏_once.stringSplit(stringSplit);
       const stringStartsWith = uncurryThis(stringPrototype.startsWith);$h͏_once.stringStartsWith(stringStartsWith);
       const iterateString = uncurryThis(stringPrototype[iteratorSymbol]);
//
$h͏_once.iterateString(iterateString);const weakmapDelete=uncurryThis(weakmapPrototype.delete);
/** @type {<K extends {}, V>(thisArg: WeakMap<K, V>, ...args: Parameters<WeakMap<K,V>['get']>) => ReturnType<WeakMap<K,V>['get']>} */$h͏_once.weakmapDelete(weakmapDelete);
       const weakmapGet = uncurryThis(weakmapPrototype.get);$h͏_once.weakmapGet(weakmapGet);
       const weakmapHas = uncurryThis(weakmapPrototype.has);$h͏_once.weakmapHas(weakmapHas);
       const weakmapSet = uncurryThis(weakmapPrototype.set);
//
$h͏_once.weakmapSet(weakmapSet);const weaksetAdd=uncurryThis(weaksetPrototype.add);$h͏_once.weaksetAdd(weaksetAdd);
       const weaksetHas = uncurryThis(weaksetPrototype.has);
//
$h͏_once.weaksetHas(weaksetHas);const functionToString=uncurryThis(functionPrototype.toString);$h͏_once.functionToString(functionToString);
       const functionBind = uncurryThis(bind);
//
$h͏_once.functionBind(functionBind);const generatorNext=uncurryThis(generatorPrototype.next);$h͏_once.generatorNext(generatorNext);
       const generatorThrow = uncurryThis(generatorPrototype.throw);
//
$h͏_once.generatorThrow(generatorThrow);const{all}=Promise;
       const promiseAll = promises => apply(all, Promise, [promises]);$h͏_once.promiseAll(promiseAll);
       const promiseCatch = uncurryThis(promisePrototype.catch);
/** @type {<T, TResult1 = T, TResult2 = never>(thisArg: T, onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null) => Promise<TResult1 | TResult2>} */$h͏_once.promiseCatch(promiseCatch);
       const promiseThen = /** @type {any} */ (
  uncurryThis(promisePrototype.then)
);
//
$h͏_once.promiseThen(promiseThen);const finalizationRegistryRegister=
  FinalizationRegistry && uncurryThis(FinalizationRegistry.prototype.register);$h͏_once.finalizationRegistryRegister(finalizationRegistryRegister);
       const finalizationRegistryUnregister =
  FinalizationRegistry &&
  uncurryThis(FinalizationRegistry.prototype.unregister);

/**
 * TODO Consolidate with `isPrimitive` that's currently in `@endo/pass-style`.
 * Layering constraints make this tricky, which is why we haven't yet figured
 * out how to do this.
 *
 * @type {(val: unknown) => val is (undefined
 * | null
 * | boolean
 * | number
 * | bigint
 * | string
 * | symbol)}
 */$h͏_once.finalizationRegistryUnregister(finalizationRegistryUnregister);
       const isPrimitive = val =>
  !val || (typeof val !== 'object' && typeof val !== 'function');

/**
 * isError tests whether an object inherits from the intrinsic
 * `Error.prototype`.
 * We capture the original error constructor as FERAL_ERROR to provide a clear
 * signal for reviewers that we are handling an object with excess authority,
 * like stack trace inspection, that we are carefully hiding from client code.
 * Checking instanceof happens to be safe, but to avoid uttering FERAL_ERROR
 * for such a trivial case outside commons.js, we provide a utility function.
 *
 * @param {any} value
 */$h͏_once.isPrimitive(isPrimitive);
       const isError = value => value instanceof FERAL_ERROR;

/**
 * @template T
 * @param {T} x
 */$h͏_once.isError(isError);
       const identity = x => x;

// The original unsafe untamed eval function, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
// eslint-disable-next-line no-eval
$h͏_once.identity(identity);const FERAL_EVAL=eval;

// The original unsafe untamed Function constructor, which must not escape.
// Sample at module initialization time, which is before lockdown can
// repair it.  Use it only to build powerless abstractions.
$h͏_once.FERAL_EVAL(FERAL_EVAL);const FERAL_FUNCTION=Function;$h͏_once.FERAL_FUNCTION(FERAL_FUNCTION);

       const noEvalEvaluate = () => {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_EVAL.md
  throw TypeError('Cannot eval with evalTaming set to "no-eval" (SES_NO_EVAL)');
};

// ////////////////// FERAL_STACK_GETTER FERAL_STACK_SETTER ////////////////////

// The error repair mechanism is very similar to code in
// pass-style/src/error.js and these implementations should be kept in sync.

/**
 * We gratuitiously construct a TypeError instance using syntax in order to
 * obviate the possibility that code that ran before SES (for which we are
 * irreducable vulnerable) may have replaced the global TypeError constructor.
 * We treat the nature of this error instance as the source of truth for the
 * nature of runtime constructed errors on the platform, particularly whether
 * such errors will have an own "stack" property with getters and setters.
 * At time of writing (2025) we know of no comparable mechanism for obtaining a
 * host-generated base Error instance, but we corroborate the nature of the
 * global Error constructor's instances and refuse to initialize SES in an
 * environment where the syntactic TypeError and global Error produce
 * inconsistent "stack" properties.
 * @returns {TypeError}
 */$h͏_once.noEvalEvaluate(noEvalEvaluate);
const makeTypeError = () => {
  try {
    // @ts-expect-error deliberate TypeError
    null.null;
    throw TypeError('obligatory'); // To convince the type flow inferrence.
  } catch (error) {
    return error;
  }
};

const errorStackDesc = getOwnPropertyDescriptor(Error('obligatory'), 'stack');
const typeErrorStackDesc = getOwnPropertyDescriptor(makeTypeError(), 'stack');

let feralStackGetter;
let feralStackSetter;
if (typeErrorStackDesc && typeErrorStackDesc.get) {
  // We should only encounter this case on v8 because of its problematic
  // error own stack accessor behavior.
  // Note that FF/SpiderMonkey, Moddable/XS, and the error stack proposal
  // all inherit a stack accessor property from Error.prototype, which is
  // great. That case needs no heroics to secure.
  if (
    // In the v8 case as we understand it, all errors have an own stack
    // accessor property, but within the same realm, all these accessor
    // properties have the same getter and have the same setter.
    // This is therefore the case that we repair.
    errorStackDesc &&
    typeof typeErrorStackDesc.get === 'function' &&
    typeErrorStackDesc.get === errorStackDesc.get &&
    typeof typeErrorStackDesc.set === 'function' &&
    typeErrorStackDesc.set === errorStackDesc.set
  ) {
    // Otherwise, we have own stack accessor properties that are outside
    // our expectations, that therefore need to be understood better
    // before we know how to repair them.
    feralStackGetter = freeze(typeErrorStackDesc.get);
    feralStackSetter = freeze(typeErrorStackDesc.set);
  } else {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR.md
    throw TypeError(
      'Unexpected Error own stack accessor functions (SES_UNEXPECTED_ERROR_OWN_STACK_ACCESSOR)',
    );
  }
}

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {(() => any) | undefined}
 */
       const FERAL_STACK_GETTER = feralStackGetter;

/**
 * If on a v8 with the problematic error own stack accessor behavior,
 * `FERAL_STACK_GETTER` will be the shared getter of all those accessors
 * and `FERAL_STACK_SETTER` will be the shared setter. On any platform
 * without this problem, `FERAL_STACK_GETTER` and `FERAL_STACK_SETTER` are
 * both `undefined`.
 *
 * @type {((newValue: any) => void) | undefined}
 */$h͏_once.FERAL_STACK_GETTER(FERAL_STACK_GETTER);
       const FERAL_STACK_SETTER = feralStackSetter;$h͏_once.FERAL_STACK_SETTER(FERAL_STACK_SETTER);

const getAsyncGeneratorFunctionInstance = () => {
  // Test for async generator function syntax support.
  try {
    // Wrapping one in an new Function lets the `hermesc` binary file
    // parse the Metro js bundle without SyntaxError, to generate the
    // optimised Hermes bytecode bundle, when `gradlew` is called to
    // assemble the release build APK for React Native prod Android apps.
    // Delaying the error until runtime lets us customise lockdown behaviour.
    return new FERAL_FUNCTION(
      'return (async function* AsyncGeneratorFunctionInstance() {})',
    )();
  } catch (error) {
    // Note: `Error.prototype.jsEngine` is only set by React Native runtime, not Hermes:
    // https://github.com/facebook/react-native/blob/main/packages/react-native/ReactCommon/hermes/executor/HermesExecutorFactory.cpp#L224-L230
    if (error.name === 'SyntaxError') {
      // Swallows Hermes error `async generators are unsupported` at runtime.
      // Note: `console` is not a JS built-in, so Hermes engine throws:
      // Uncaught ReferenceError: Property 'console' doesn't exist
      // See: https://github.com/facebook/hermes/issues/675
      // However React Native provides a `console` implementation when setting up error handling:
      // https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js
      return undefined;
    } else if (error.name === 'EvalError') {
      // eslint-disable-next-line no-empty-function
      return async function* AsyncGeneratorFunctionInstance() {};
    } else {
      throw error;
    }
  }
};

/**
 * If the platform supports async generator functions, this will be an
 * async generator function instance. Otherwise, it will be `undefined`.
 *
 * @type {AsyncGeneratorFunction | undefined}
 */
       const AsyncGeneratorFunctionInstance =
  getAsyncGeneratorFunctionInstance();$h͏_once.AsyncGeneratorFunctionInstance(AsyncGeneratorFunctionInstance);
})()
,
// === 1. ses ./src/assert-sloppy-mode.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);

/** getThis returns globalThis in sloppy mode or undefined in strict mode. */
function getThis() {
  return this;
}

if (getThis()) {
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_SLOPPY.md
  throw TypeError(`SES failed to initialize, sloppy mode (SES_NO_SLOPPY)`);
}
})()
,
// === 2. env-options ./src/env-options.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */
// @ts-check

// `@endo/env-options` needs to be imported quite early, and so should
// avoid importing from ses or anything that depends on ses.

// /////////////////////////////////////////////////////////////////////////////
// Prelude of cheap good - enough imitations of things we'd use or
// do differently if we could depend on ses

// eslint-disable-next-line no-restricted-globals
const localThis = globalThis;

const { Object, Reflect, Array, String, JSON, Error } = localThis;
const { freeze } = Object;
const { apply } = Reflect;

// Should be equivalent to the one in ses' commons.js even though it
// uses the other technique.
const uncurryThis =
  fn =>
  (receiver, ...args) =>
    apply(fn, receiver, args);
const arrayPush = uncurryThis(Array.prototype.push);
const arrayIncludes = uncurryThis(Array.prototype.includes);
const stringSplit = uncurryThis(String.prototype.split);

const q = JSON.stringify;

const Fail = (literals, ...args) => {
  let msg = literals[0];
  for (let i = 0; i < args.length; i += 1) {
    msg = `${msg}${args[i]}${literals[i + 1]}`;
  }
  throw Error(msg);
};

// end prelude
// /////////////////////////////////////////////////////////////////////////////

/**
 * `makeEnvironmentCaptor` provides a mechanism for getting environment
 * variables, if they are needed, and a way to catalog the names of all
 * the environment variables that were captured.
 *
 * @param {object} aGlobal
 * @param {boolean} [dropNames] Defaults to false. If true, don't track
 * names used.
 */
       const makeEnvironmentCaptor = (aGlobal, dropNames = false) => {
  /** @type {string[]} */
  const capturedEnvironmentOptionNames = [];

  /**
   * Gets an environment option by name and returns the option value or the
   * given default.
   *
   * @param {string} optionName
   * @param {string} defaultSetting
   * @param {string[]} [optOtherValues]
   * If provided, the option value must be included or match `defaultSetting`.
   * @returns {string}
   */
  const getEnvironmentOption = (
    optionName,
    defaultSetting,
    optOtherValues = undefined,
  ) => {
    typeof optionName === 'string' ||
      Fail`Environment option name ${q(optionName)} must be a string.`;
    typeof defaultSetting === 'string' ||
      Fail`Environment option default setting ${q(
        defaultSetting,
      )} must be a string.`;

    /** @type {string} */
    let setting = defaultSetting;
    const globalProcess = aGlobal.process || undefined;
    const globalEnv =
      (typeof globalProcess === 'object' && globalProcess.env) || undefined;
    if (typeof globalEnv === 'object') {
      if (optionName in globalEnv) {
        if (!dropNames) {
          arrayPush(capturedEnvironmentOptionNames, optionName);
        }
        const optionValue = globalEnv[optionName];
        // eslint-disable-next-line @endo/no-polymorphic-call
        typeof optionValue === 'string' ||
          Fail`Environment option named ${q(
            optionName,
          )}, if present, must have a corresponding string value, got ${q(
            optionValue,
          )}`;
        setting = optionValue;
      }
    }
    optOtherValues === undefined ||
      setting === defaultSetting ||
      arrayIncludes(optOtherValues, setting) ||
      Fail`Unrecognized ${q(optionName)} value ${q(
        setting,
      )}. Expected one of ${q([defaultSetting, ...optOtherValues])}`;
    return setting;
  };
  freeze(getEnvironmentOption);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @returns {T[]}
   */
  const getEnvironmentOptionsList = optionName => {
    const option = getEnvironmentOption(optionName, '');
    return freeze(option === '' ? [] : stringSplit(option, ','));
  };
  freeze(getEnvironmentOptionsList);

  /**
   * @template {string} [T=string]
   * @param {string} optionName
   * @param {T} element
   * @returns {boolean}
   */
  const environmentOptionsListHas = (optionName, element) =>
    arrayIncludes(getEnvironmentOptionsList(optionName), element);

  const getCapturedEnvironmentOptionNames = () => {
    return freeze([...capturedEnvironmentOptionNames]);
  };
  freeze(getCapturedEnvironmentOptionNames);

  return freeze({
    getEnvironmentOption,
    getEnvironmentOptionsList,
    environmentOptionsListHas,
    getCapturedEnvironmentOptionNames,
  });
};$h͏_once.makeEnvironmentCaptor(makeEnvironmentCaptor);
freeze(makeEnvironmentCaptor);

/**
 * For the simple case, where the global in question is `globalThis` and no
 * reporting of option names is desired.
 */
       const {
  getEnvironmentOption,
  getEnvironmentOptionsList,
  environmentOptionsListHas,
} = makeEnvironmentCaptor(localThis, true);$h͏_once.getEnvironmentOption(getEnvironmentOption);$h͏_once.getEnvironmentOptionsList(getEnvironmentOptionsList);$h͏_once.environmentOptionsListHas(environmentOptionsListHas);
})()
,
// === 3. env-options ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/env-options.js", []]]);
})()
,
// === 4. immutable-arraybuffer ./src/immutable-arraybuffer-pony.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/* global globalThis */

const {
  ArrayBuffer,
  Object,
  Reflect,
  Symbol,
  TypeError,
  Uint8Array,
  WeakMap,
  // Capture structuredClone before it can be scuttled.
  structuredClone: optStructuredClone
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

const { freeze, defineProperty, getPrototypeOf, getOwnPropertyDescriptor } =
  Object;
const { apply, ownKeys } = Reflect;
const { toStringTag } = Symbol;

const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { slice, transfer: optTransfer } = arrayBufferPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: arrayBufferByteLength } = getOwnPropertyDescriptor(
  arrayBufferPrototype,
  'byteLength',
);

const typedArrayPrototype = getPrototypeOf(Uint8Array.prototype);
const { set: uint8ArraySet } = typedArrayPrototype;
// @ts-expect-error TS doesn't know it'll be there
const { get: uint8ArrayBuffer } = getOwnPropertyDescriptor(
  typedArrayPrototype,
  'buffer',
);

/**
 * Copy a range of values from a genuine ArrayBuffer exotic object into a new
 * ArrayBuffer.
 *
 * @param {ArrayBuffer} realBuffer
 * @param {number} [start]
 * @param {number} [end]
 * @returns {ArrayBuffer}
 */
const arrayBufferSlice = (realBuffer, start = undefined, end = undefined) =>
  apply(slice, realBuffer, [start, end]);

/**
 * Move the contents of a genuine ArrayBuffer exotic object into a new fresh
 * ArrayBuffer and detach the original source.
 * We can only do this on platforms that support `structuredClone` or
 * `ArrayBuffer.prototype.transfer`.
 * On other platforms, we can still emulate
 * `ArrayBuffer.prototoype.sliceToImmutable`, but not
 * `ArrayBuffer.prototype.transferToImmutable`.
 * Currently, these known-deficient platforms are
 * - Hermes
 * - Node.js <= 16
 * - Apparently some versions of JavaScriptCore that are still of concern.
 *
 * @param {ArrayBuffer} arrayBuffer
 * @returns {ArrayBuffer}
 */
let optArrayBufferTransfer;

if (optTransfer) {
  optArrayBufferTransfer = arrayBuffer => apply(optTransfer, arrayBuffer, []);
} else if (optStructuredClone) {
  optArrayBufferTransfer = arrayBuffer => {
    // Hopefully, a zero-length slice is cheap, but still enforces that
    // `arrayBuffer` is a genuine `ArrayBuffer` exotic object.
    arrayBufferSlice(arrayBuffer, 0, 0);
    return optStructuredClone(arrayBuffer, {
      transfer: [arrayBuffer],
    });
  };
} else {
  // Assignment is redundant, but remains for clarity.
  optArrayBufferTransfer = undefined;
}

/**
 * If we could use classes with private fields everywhere, this would have
 * been a `this.#buffer` private field on an `ImmutableArrayBufferInternal`
 * class. But we cannot do so on Hermes. So, instead, we
 * emulate the `this.#buffer` private field, including its use as a brand check.
 * Maps from all and only emulated Immutable ArrayBuffers to real ArrayBuffers.
 *
 * @type {Pick<WeakMap<ArrayBuffer, ArrayBuffer>, 'get' | 'has' | 'set'>}
 */
const buffers = new WeakMap();
// Avoid post-hoc prototype lookups.
for (const methodName of ['get', 'has', 'set']) {
  defineProperty(buffers, methodName, { value: buffers[methodName] });
}
const getBuffer = immuAB => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  const result = buffers.get(immuAB);
  if (result) {
    return result;
  }
  throw TypeError('Not an emulated Immutable ArrayBuffer');
};

// Omits `constructor` so `Array.prototype.constructor` is inherited.
const ImmutableArrayBufferInternalPrototype = {
  __proto__: arrayBufferPrototype,
  get byteLength() {
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get detached() {
    getBuffer(this); // shim brand check
    return false;
  },
  get maxByteLength() {
    // Not underlying maxByteLength, which is irrelevant
    return apply(arrayBufferByteLength, getBuffer(this), []);
  },
  get resizable() {
    getBuffer(this); // shim brand check
    return false;
  },
  get immutable() {
    getBuffer(this); // shim brand check
    return true;
  },
  slice(start = undefined, end = undefined) {
    return arrayBufferSlice(getBuffer(this), start, end);
  },
  sliceToImmutable(start = undefined, end = undefined) {
    // eslint-disable-next-line no-use-before-define
    return sliceBufferToImmutable(getBuffer(this), start, end);
  },
  resize(_newByteLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot resize an immutable ArrayBuffer');
  },
  transfer(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToFixedLength(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  transferToImmutable(_newLength = undefined) {
    getBuffer(this); // shim brand check
    throw TypeError('Cannot detach an immutable ArrayBuffer');
  },
  /**
   * See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
   */
  [toStringTag]: 'ImmutableArrayBuffer',
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(ImmutableArrayBufferInternalPrototype)) {
  defineProperty(ImmutableArrayBufferInternalPrototype, key, {
    enumerable: false,
  });
}

/**
 * Emulates what would have been the encapsulated `ImmutableArrayBufferInternal`
 * class constructor. This function takes the `realBuffer` which its
 * result encapsulates. Security demands that this result has exclusive access
 * to the `realBuffer` it is given, which its callers must ensure.
 *
 * @param {ArrayBuffer} realBuffer
 * @returns {ArrayBuffer}
 */
const makeImmutableArrayBufferInternal = realBuffer => {
  const result = /** @type {ArrayBuffer} */ (
    /** @type {unknown} */ ({
      __proto__: ImmutableArrayBufferInternalPrototype,
    })
  );
  // Safe because this WeakMap owns its set method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  buffers.set(result, realBuffer);
  return result;
};
// Since `makeImmutableArrayBufferInternal` MUST not escape,
// this `freeze` is just belt-and-suspenders.
freeze(makeImmutableArrayBufferInternal);

/**
 * @param {ArrayBuffer} buffer
 * @returns {boolean}
 */
// eslint-disable-next-line @endo/no-polymorphic-call
       const isBufferImmutable = buffer => buffers.has(buffer);

/**
 * Creates an immutable slice of the given buffer.
 * @param {ArrayBuffer} buffer The original buffer.
 * @param {number} [start] The start index.
 * @param {number} [end] The end index.
 * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
 */$h͏_once.isBufferImmutable(isBufferImmutable);
       const sliceBufferToImmutable = (
  buffer,
  start = undefined,
  end = undefined,
) => {
  // Safe because this WeakMap owns its get method.
  // eslint-disable-next-line @endo/no-polymorphic-call
  let realBuffer = buffers.get(buffer);
  if (realBuffer === undefined) {
    realBuffer = buffer;
  }
  return makeImmutableArrayBufferInternal(
    arrayBufferSlice(realBuffer, start, end),
  );
};$h͏_once.sliceBufferToImmutable(sliceBufferToImmutable);

let transferBufferToImmutable;
if (optArrayBufferTransfer) {
  /**
   * Transfer the contents to a new Immutable ArrayBuffer
   *
   * @param {ArrayBuffer} buffer The original buffer.
   * @param {number} [newLength] The start index.
   * @returns {ArrayBuffer}
   */
  transferBufferToImmutable = (buffer, newLength = undefined) => {
    if (newLength === undefined) {
      buffer = optArrayBufferTransfer(buffer);
    } else if (optTransfer) {
      buffer = apply(optTransfer, buffer, [newLength]);
    } else {
      buffer = optArrayBufferTransfer(buffer);
      const oldLength = buffer.byteLength;
      // eslint-disable-next-line @endo/restrict-comparison-operands
      if (newLength <= oldLength) {
        buffer = arrayBufferSlice(buffer, 0, newLength);
      } else {
        const oldTA = new Uint8Array(buffer);
        const newTA = new Uint8Array(newLength);
        apply(uint8ArraySet, newTA, [oldTA]);
        buffer = apply(uint8ArrayBuffer, newTA, []);
      }
    }
    const result = makeImmutableArrayBufferInternal(buffer);
    return /** @type {ArrayBuffer} */ (/** @type {unknown} */ (result));
  };
} else {
  transferBufferToImmutable = undefined;
}

       const optTransferBufferToImmutable = transferBufferToImmutable;$h͏_once.optTransferBufferToImmutable(optTransferBufferToImmutable);
})()
,
// === 5. immutable-arraybuffer ./src/immutable-arraybuffer-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let isBufferImmutable,sliceBufferToImmutable,optXferBuf2Immu;$h͏_imports([["./immutable-arraybuffer-pony.js", [["isBufferImmutable",[$h͏_a => (isBufferImmutable = $h͏_a)]],["sliceBufferToImmutable",[$h͏_a => (sliceBufferToImmutable = $h͏_a)]],["optTransferBufferToImmutable",[$h͏_a => (optXferBuf2Immu = $h͏_a)]]]]]);







const {
  ArrayBuffer,
  JSON,
  Object,
  Reflect
  // eslint-disable-next-line no-restricted-globals
} = globalThis;

// Even though the imported one is not exported by the pony as a live binding,
// TS doesn't know that,
// so it cannot do its normal flow-based inference. By making and using a local
// copy, no problem.
const optTransferBufferToImmutable = optXferBuf2Immu;

const { getOwnPropertyDescriptors, defineProperties, defineProperty } = Object;
const { ownKeys } = Reflect;
const { prototype: arrayBufferPrototype } = ArrayBuffer;
const { stringify } = JSON;

const arrayBufferMethods = {
  /**
   * Creates an immutable slice of the given buffer.
   *
   * @this {ArrayBuffer} buffer The original buffer.
   * @param {number} [start] The start index.
   * @param {number} [end] The end index.
   * @returns {ArrayBuffer} The sliced immutable ArrayBuffer.
   */
  sliceToImmutable(start = undefined, end = undefined) {
    return sliceBufferToImmutable(this, start, end);
  },

  /**
   * @this {ArrayBuffer}
   */
  get immutable() {
    return isBufferImmutable(this);
  },

  ...(optTransferBufferToImmutable
    ? {
        /**
         * Transfer the contents to a new immutable ArrayBuffer
         *
         * @this {ArrayBuffer} buffer The original buffer.
         * @param {number} [newLength] The start index.
         * @returns {ArrayBuffer} The new immutable ArrayBuffer.
         */
        transferToImmutable(newLength = undefined) {
          return optTransferBufferToImmutable(this, newLength);
        },
      }
    : {}),
};

// Better fidelity emulation of a class prototype
for (const key of ownKeys(arrayBufferMethods)) {
  defineProperty(arrayBufferMethods, key, {
    enumerable: false,
  });
}

// Modern shim practice frowns on conditional installation, at least for
// proposals prior to stage 3. This is so changes to the proposal since
// an old shim was distributed don't need to worry about the proposal
// breaking old code depending on the old shim. Thus, if we detect that
// we're about to overwrite a prior installation, we simply issue this
// warning and continue.
//
// TODO, if the primordials are frozen after the prior implementation, such as
// by `lockdown`, then this precludes overwriting as expected. However, for
// this case, the following warning text will be confusing.
//
// Allowing polymorphic calls because these occur during initialization.
// eslint-disable-next-line @endo/no-polymorphic-call
const overwrites = ownKeys(arrayBufferMethods).filter(
  key => key in arrayBufferPrototype,
);
if (overwrites.length > 0) {
  // eslint-disable-next-line @endo/no-polymorphic-call
  console.warn(
    `About to overwrite ArrayBuffer.prototype properties ${stringify(overwrites)}`,
  );
}

defineProperties(
  arrayBufferPrototype,
  getOwnPropertyDescriptors(arrayBufferMethods),
);
})()
,
// === 6. immutable-arraybuffer ./shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/immutable-arraybuffer-shim.js", []]]);
})()
,
// === 7. ses ./src/error/stringify-utils.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,isArray,arrayJoin,arraySlice,arraySort,arrayMap,keys,fromEntries,freeze,is,isError,setAdd,setHas,stringIncludes,stringStartsWith,stringifyJson,toStringTagSymbol;$h͏_imports([["../commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["stringifyJson",[$h͏_a => (stringifyJson = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






















/** @import {Stringable} from '../../types.js' */

/**
 * Joins English terms with commas and an optional conjunction.
 *
 * @param {(string | Stringable)[]} terms
 * @param {"and" | "or"} conjunction
 */
       const enJoin = (terms, conjunction) => {
  if (terms.length === 0) {
    return '(none)';
  } else if (terms.length === 1) {
    return terms[0];
  } else if (terms.length === 2) {
    const [first, second] = terms;
    return `${first} ${conjunction} ${second}`;
  } else {
    return `${arrayJoin(arraySlice(terms, 0, -1), ', ')}, ${conjunction} ${
      terms[terms.length - 1]
    }`;
  }
};

/**
 * Prepend the correct indefinite article onto a noun, typically a typeof
 * result, e.g., "an object" vs. "a number"
 *
 * @param {string} str The noun to prepend
 * @returns {string} The noun prepended with a/an
 */$h͏_once.enJoin(enJoin);
const an = str => {
  str = `${str}`;
  if (str.length >= 1 && stringIncludes('aeiouAEIOU', str[0])) {
    return `an ${str}`;
  }
  return `a ${str}`;
};$h͏_once.an(an);
freeze(an);


/**
 * Like `JSON.stringify` but does not blow up if given a cycle or a bigint.
 * This is not
 * intended to be a serialization to support any useful unserialization,
 * or any programmatic use of the resulting string. The string is intended
 * *only* for showing a human under benign conditions, in order to be
 * informative enough for some
 * logging purposes. As such, this `bestEffortStringify` has an
 * imprecise specification and may change over time.
 *
 * The current `bestEffortStringify` possibly emits too many "seen"
 * markings: Not only for cycles, but also for repeated subtrees by
 * object identity.
 *
 * As a best effort only for diagnostic interpretation by humans,
 * `bestEffortStringify` also turns various cases that normal
 * `JSON.stringify` skips or errors on, like `undefined` or bigints,
 * into strings that convey their meaning. To distinguish this from
 * strings in the input, these synthesized strings always begin and
 * end with square brackets. To distinguish those strings from an
 * input string with square brackets, and input string that starts
 * with an open square bracket `[` is itself placed in square brackets.
 *
 * @param {any} payload
 * @param {(string|number)=} spaces
 * @returns {string}
 */
const bestEffortStringify = (payload, spaces = undefined) => {
  const seenSet = new Set();
  const replacer = (_, val) => {
    switch (typeof val) {
      case 'object': {
        if (val === null) {
          return null;
        }
        if (setHas(seenSet, val)) {
          return '[Seen]';
        }
        setAdd(seenSet, val);
        if (isError(val)) {
          return `[${val.name}: ${val.message}]`;
        }
        if (toStringTagSymbol in val) {
          // For the built-ins that have or inherit a `Symbol.toStringTag`-named
          // property, most of them inherit the default `toString` method,
          // which will print in a similar manner: `"[object Foo]"` vs
          // `"[Foo]"`. The exceptions are
          //    * `Symbol.prototype`, `BigInt.prototype`, `String.prototype`
          //      which don't matter to us since we handle primitives
          //      separately and we don't care about primitive wrapper objects.
          //    * TODO
          //      `Date.prototype`, `TypedArray.prototype`.
          //      Hmmm, we probably should make special cases for these. We're
          //      not using these yet, so it's not urgent. But others will run
          //      into these.
          //
          // Once #2018 is closed, the only objects in our code that have or
          // inherit a `Symbol.toStringTag`-named property are remotables
          // or their remote presences.
          // This printing will do a good job for these without
          // violating abstraction layering. This behavior makes sense
          // purely in terms of JavaScript concepts. That's some of the
          // motivation for choosing that representation of remotables
          // and their remote presences in the first place.
          return `[${val[toStringTagSymbol]}]`;
        }
        if (isArray(val)) {
          return val;
        }
        const names = keys(val);
        if (names.length < 2) {
          return val;
        }
        let sorted = true;
        for (let i = 1; i < names.length; i += 1) {
          if (names[i - 1] >= names[i]) {
            sorted = false;
            break;
          }
        }
        if (sorted) {
          return val;
        }
        arraySort(names);
        const entries = arrayMap(names, name => [name, val[name]]);
        return fromEntries(entries);
      }
      case 'function': {
        return `[Function ${val.name || '<anon>'}]`;
      }
      case 'string': {
        if (stringStartsWith(val, '[')) {
          return `[${val}]`;
        }
        return val;
      }
      case 'undefined':
      case 'symbol': {
        return `[${String(val)}]`;
      }
      case 'bigint': {
        return `[${val}n]`;
      }
      case 'number': {
        if (is(val, NaN)) {
          return '[NaN]';
        } else if (val === Infinity) {
          return '[Infinity]';
        } else if (val === -Infinity) {
          return '[-Infinity]';
        }
        return val;
      }
      default: {
        return val;
      }
    }
  };
  try {
    return stringifyJson(payload, replacer, spaces);
  } catch (_err) {
    // Don't do anything more fancy here if there is any
    // chance that might throw, unless you surround that
    // with another try-catch-recovery. For example,
    // the caught thing might be a proxy or other exotic
    // object rather than an error. The proxy might throw
    // whenever it is possible for it to.
    return '[Something that failed to stringify]';
  }
};$h͏_once.bestEffortStringify(bestEffortStringify);
freeze(bestEffortStringify);
})()
,
// === 8. ses ./src/error/types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/** @import {GenericErrorConstructor, AssertMakeErrorOptions, DetailsToken, Stringable} from '../../types.js' */

/**
 * @typedef {object} VirtualConsole
 * @property {Console['debug']} debug
 * @property {Console['log']} log
 * @property {Console['info']} info
 * @property {Console['warn']} warn
 * @property {Console['error']} error
 *
 * @property {Console['trace']} trace
 * @property {Console['dirxml']} dirxml
 * @property {Console['group']} group
 * @property {Console['groupCollapsed']} groupCollapsed
 *
 * @property {Console['assert']} assert
 * @property {Console['timeLog']} timeLog
 *
 * @property {Console['clear']} clear
 * @property {Console['count']} count
 * @property {Console['countReset']} countReset
 * @property {Console['dir']} dir
 * @property {Console['groupEnd']} groupEnd
 *
 * @property {Console['table']} table
 * @property {Console['time']} time
 * @property {Console['timeEnd']} timeEnd
 * @property {Console['timeStamp']} timeStamp
 */

/* This is deliberately *not* JSDoc, it is a regular comment.
 *
 * TODO: We'd like to add the following properties to the above
 * VirtualConsole, but they currently cause conflicts where
 * some Typescript implementations don't have these properties
 * on the Console type.
 *
 * @property {Console['profile']} profile
 * @property {Console['profileEnd']} profileEnd
 */

/**
 * @typedef {'debug' | 'log' | 'info' | 'warn' | 'error'} LogSeverity
 */

/**
 * @typedef ConsoleFilter
 * @property {(severity: LogSeverity) => boolean} canLog
 */

/**
 * @callback FilterConsole
 * @param {VirtualConsole} baseConsole
 * @param {ConsoleFilter} filter
 * @param {string} [topic]
 * @returns {VirtualConsole}
 */
})()
,
// === 9. ses ./src/error/internal-types.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check

/**
 * @import {VirtualConsole} from './types.js'
 */

/**
 * @typedef {readonly any[]} LogArgs
 *
 * This is an array suitable to be used as arguments of a console
 * level message *after* the format string argument. It is the result of
 * a `details` template string and consists of alternating literal strings
 * and substitution values, starting with a literal string. At least that
 * first literal string is always present.
 */

/**
 * @callback NoteCallback
 *
 * @param {Error} error
 * @param {LogArgs} noteLogArgs
 * @returns {void}
 */

/**
 * @callback GetStackString
 * @param {Error} error
 * @returns {string=}
 */

/**
 * @typedef {object} LoggedErrorHandler
 *
 * Used to parameterize `makeCausalConsole` to give it access to potentially
 * hidden information to augment the logging of errors.
 *
 * @property {GetStackString} getStackString
 * @property {(error: Error) => string} tagError
 * @property {() => void} resetErrorTagNum for debugging purposes only
 * @property {(error: Error) => (LogArgs | undefined)} getMessageLogArgs
 * @property {(error: Error) => (LogArgs | undefined)} takeMessageLogArgs
 * @property {(error: Error, callback?: NoteCallback) => LogArgs[] } takeNoteLogArgsArray
 */

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {readonly [string, ...any[]]} LogRecord
 */

/**
 * @typedef {object} LoggingConsoleKit
 * @property {VirtualConsole} loggingConsole
 * @property {() => readonly LogRecord[]} takeLog
 */

/**
 * @typedef {object} MakeLoggingConsoleKitOptions
 * @property {boolean=} shouldResetForDebugging
 */

/**
 * @callback MakeLoggingConsoleKit
 *
 * A logging console just accumulates the contents of all permitted calls,
 * making them available to callers of `takeLog()`. Calling `takeLog()`
 * consumes these, so later calls to `takeLog()` will only provide a log of
 * calls that have happened since then.
 *
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @param {MakeLoggingConsoleKitOptions=} options
 * @returns {LoggingConsoleKit}
 */

/**
 * @typedef {{
 *   NOTE: 'ERROR_NOTE:',
 *   MESSAGE: 'ERROR_MESSAGE:',
 *   CAUSE: 'cause:',
 *   ERRORS: 'errors:',
 * }} ErrorInfo
 */

/**
 * @typedef {ErrorInfo[keyof ErrorInfo]} ErrorInfoKind
 */

/**
 * @callback MakeCausalConsole
 *
 * Makes a causal console wrapper of a `baseConsole`, where the causal console
 * calls methods of the `loggedErrorHandler` to customize how it handles logged
 * errors.
 *
 * @param {VirtualConsole | undefined} baseConsole
 * @param {LoggedErrorHandler} loggedErrorHandler
 * @returns {VirtualConsole | undefined}
 */
})()
,
// === 10. cache-map ./src/cachemap.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);// @ts-check
/* global globalThis */
/* eslint-disable @endo/no-polymorphic-call */

// eslint-disable-next-line no-restricted-globals
const { Error, TypeError, WeakMap } = globalThis;
// eslint-disable-next-line no-restricted-globals
const { parse, stringify } = JSON;
// eslint-disable-next-line no-restricted-globals
const { isSafeInteger } = Number;
// eslint-disable-next-line no-restricted-globals
const { freeze } = Object;
// eslint-disable-next-line no-restricted-globals
const { toStringTag: toStringTagSymbol } = Symbol;

// eslint-disable-next-line no-restricted-globals
const UNKNOWN_KEY = Symbol('UNKNOWN_KEY');

/**
 * @template T
 * @typedef {T extends object ? { -readonly [K in keyof T]: T[K] } : never} WritableDeep
 *   Intentionally limited to local needs; refer to
 *   https://github.com/sindresorhus/type-fest if insufficient.
 */

/**
 * @template T
 * @param {T} value
 * @param {<U,>(name: string, value: U) => U} [reviver]
 * @returns {WritableDeep<T>}
 */
const deepCopyJsonable = (value, reviver) => {
  const encoded = stringify(value);
  const decoded = parse(encoded, reviver);
  return decoded;
};

const freezingReviver = (_name, value) => freeze(value);

/** @type {<T,>(value: T) => T} */
const deepCopyAndFreezeJsonable = value =>
  deepCopyJsonable(value, freezingReviver);

/**
 * A cache of bounded size, implementing the WeakMap interface but holding keys
 * strongly if created with a non-weak `makeMap` option of
 * {@link makeCacheMapKit}.
 *
 * @template K
 * @template V
 * @typedef {Pick<Map<K, V>, Exclude<keyof WeakMap<WeakKey, *>, 'set'>> & {set: (key: K, value: V) => WeakMapAPI<K, V>}} WeakMapAPI
 */

/**
 * @template K
 * @template V
 * @typedef {WeakMapAPI<K, V> & ({clear?: undefined} | Pick<Map<K, V>, 'clear'>)} SingleEntryMap
 */

/**
 * A cell of a doubly-linked ring (circular list) for a cache map.
 * Instances are not frozen, and so should be closely encapsulated.
 *
 * @template K
 * @template V
 * @typedef {object} CacheMapCell
 * @property {number} id for debugging
 * @property {CacheMapCell<K, V>} next
 * @property {CacheMapCell<K, V>} prev
 * @property {SingleEntryMap<K, V>} data
 */

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} prev
 * @param {number} id
 * @param {SingleEntryMap<K, V>} data
 * @returns {CacheMapCell<K, V>}
 */
const appendNewCell = (prev, id, data) => {
  const next = prev?.next;
  const cell = { id, next, prev, data };
  prev.next = cell;
  next.prev = cell;
  return cell;
};

/**
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {CacheMapCell<K, V>} prev
 * @param {CacheMapCell<K, V>} [next]
 */
const moveCellAfter = (cell, prev, next = prev.next) => {
  if (cell === prev || cell === next) return; // already in position

  // Splice out cell.
  const { prev: oldPrev, next: oldNext } = cell;
  oldPrev.next = oldNext;
  oldNext.prev = oldPrev;

  // Splice in cell after prev.
  cell.prev = prev;
  cell.next = next;
  prev.next = cell;
  next.prev = cell;
};

/**
 * Clear out a cell to prepare it for future use. Its map is preserved when
 * possible, but must instead be replaced if the associated key is not known.
 *
 * @template K
 * @template V
 * @param {CacheMapCell<K, V>} cell
 * @param {K | UNKNOWN_KEY} oldKey
 * @param {() => SingleEntryMap<K, V>} [makeMap] required when the key is unknown
 */
const resetCell = (cell, oldKey, makeMap) => {
  if (oldKey !== UNKNOWN_KEY) {
    cell.data.delete(oldKey);
    return;
  }
  if (cell.data.clear) {
    cell.data.clear();
    return;
  }
  // WeakMap instances must be replaced when the key is unknown.
  if (!makeMap) {
    throw Error('internal: makeMap is required with UNKNOWN_KEY');
  }
  cell.data = makeMap();
};

const zeroMetrics = freeze({
  totalQueryCount: 0,
  totalHitCount: 0
  // TODO?
  // * method-specific counts
  // * liveTouchStats/evictedTouchStats { count, sum, mean, min, max }
  //   * p50/p90/p95/p99 via Ben-Haim/Tom-Tov streaming histograms
});
/** @typedef {typeof zeroMetrics} CacheMapMetrics */

/**
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @typedef {object} CacheMapKit
 * @property {WeakMapAPI<K, V>} cache
 * @property {() => CacheMapMetrics} getMetrics
 */

/**
 * Create a bounded-size cache having WeakMap-compatible
 * `has`/`get`/`set`/`delete` methods, capable of supporting SES (specifically
 * `assert` error notes).
 * Key validity, comparison, and referential strength are controlled by the
 * `makeMap` option, which defaults to `WeakMap` but can be set to any producer
 * of objects with those methods (e.g., using `Map` allows for arbitrary keys
 * which will be strongly held).
 * Cache eviction policy is not currently configurable, but strives for a hit
 * ratio at least as good as
 * [LRU](https://en.wikipedia.org/wiki/Cache_replacement_policies#LRU) (e.g., it
 * might be
 * [CLOCK](https://en.wikipedia.org/wiki/Page_replacement_algorithm#Clock)
 * or [SIEVE](https://sievecache.com/)).
 *
 * @template {MapConstructor | WeakMapConstructor} [C=WeakMapConstructor]
 * @template {Parameters<InstanceType<C>['set']>[0]} [K=Parameters<InstanceType<C>['set']>[0]]
 * @template {unknown} [V=unknown]
 * @param {number} capacity
 * @param {object} [options]
 * @param {C | (() => SingleEntryMap<K, V>)} [options.makeMap]
 * @returns {CacheMapKit<C, K, V>}
 */
       const makeCacheMapKit = (capacity, options = {}) => {
  if (!isSafeInteger(capacity) || capacity < 0) {
    throw TypeError(
      'capacity must be a non-negative safe integer number <= 2**53 - 1',
    );
  }

  /**
   * @template V
   * @type {<V,>() => SingleEntryMap<K, V>}
   */
  const makeMap = (MaybeCtor => {
    try {
      // @ts-expect-error
      MaybeCtor();
      return /** @type {any} */ (MaybeCtor);
    } catch (err) {
      // @ts-expect-error
      const constructNewMap = () => new MaybeCtor();
      return constructNewMap;
    }
  })(options.makeMap ?? WeakMap);
  const tag =
    /** @type {any} */ (makeMap()).clear === undefined
      ? 'WeakCacheMap'
      : 'CacheMap';

  /** @type {WeakMapAPI<K, CacheMapCell<K, V>>} */
  const keyToCell = makeMap();
  // @ts-expect-error this sentinel head is special
  const head = /** @type {CacheMapCell<K, V>} */ ({
    id: 0,
    // next and prev are established below as self-referential.
    next: undefined,
    prev: undefined,
    data: {
      has: () => {
        throw Error('internal: sentinel head cell has no data');
      },
    },
  });
  head.next = head;
  head.prev = head;
  let cellCount = 0;

  const metrics = deepCopyJsonable(zeroMetrics);
  const getMetrics = () => deepCopyAndFreezeJsonable(metrics);

  /**
   * Touching moves a cell to first position so LRU eviction can target the last
   * cell (`head.prev`).
   *
   * @type {(key: K) => (CacheMapCell<K, V> | undefined)}
   */
  const touchKey = key => {
    metrics.totalQueryCount += 1;
    const cell = keyToCell.get(key);
    if (!cell?.data.has(key)) return undefined;

    metrics.totalHitCount += 1;
    moveCellAfter(cell, head);
    return cell;
  };

  /** @type {WeakMapAPI<K, V>['has']} */
  const has = key => {
    const cell = touchKey(key);
    return cell !== undefined;
  };
  freeze(has);

  /** @type {WeakMapAPI<K, V>['get']} */
  const get = key => {
    const cell = touchKey(key);
    return cell?.data.get(key);
  };
  freeze(get);

  /** @type {WeakMapAPI<K, V>['set']} */
  const set = (key, value) => {
    let cell = touchKey(key);
    if (cell) {
      cell.data.set(key, value);
      // eslint-disable-next-line no-use-before-define
      return implementation;
    }

    if (cellCount < capacity) {
      // Add and use a new cell at first position.
      cell = appendNewCell(head, cellCount + 1, makeMap());
      cellCount += 1; // intentionally follows cell creation
      cell.data.set(key, value);
    } else if (capacity > 0) {
      // Reuse the current tail, moving it to first position.
      cell = head.prev;
      resetCell(/** @type {any} */ (cell), UNKNOWN_KEY, makeMap);
      cell.data.set(key, value);
      moveCellAfter(cell, head);
    }

    // Don't establish this entry until prior steps succeed.
    if (cell) keyToCell.set(key, cell);

    // eslint-disable-next-line no-use-before-define
    return implementation;
  };
  freeze(set);

  // "delete" is a keyword.
  const { delete: deleteEntry } = {
    /** @type {WeakMapAPI<K, V>['delete']} */
    delete: key => {
      const cell = keyToCell.get(key);
      if (!cell?.data.has(key)) {
        keyToCell.delete(key);
        return false;
      }
      moveCellAfter(cell, head.prev);
      resetCell(cell, key);
      keyToCell.delete(key);
      return true;
    },
  };
  freeze(deleteEntry);

  const implementation = /** @type {WeakMapAPI<K, V>} */ ({
    has,
    get,
    set,
    delete: deleteEntry,
    // eslint-disable-next-line jsdoc/check-types
    [/** @type {typeof Symbol.toStringTag} */ (toStringTagSymbol)]: tag,
  });
  freeze(implementation);

  const kit = { cache: implementation, getMetrics };
  return freeze(kit);
};$h͏_once.makeCacheMapKit(makeCacheMapKit);
freeze(makeCacheMapKit);
})()
,
// === 11. cache-map ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/cachemap.js", []]]);
})()
,
// === 12. ses ./src/error/note-log-args.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeCacheMapKit;$h͏_imports([["@endo/cache-map", [["makeCacheMapKit",[$h͏_a => (makeCacheMapKit = $h͏_a)]]]]]);





/**
 * @import {CacheMapKit} from '@endo/cache-map';
 * @import {LogArgs} from './internal-types.js';
 */

const { freeze } = Object;
const { isSafeInteger } = Number;

const defaultLoggedErrorsBudget = 1000;
const defaultArgsPerErrorBudget = 100;

/**
 * @param {number} [errorsBudget]
 * @param {number} [argsPerErrorBudget]
 */
       const makeNoteLogArgsArrayKit = (
  errorsBudget = defaultLoggedErrorsBudget,
  argsPerErrorBudget = defaultArgsPerErrorBudget,
) => {
  if (!isSafeInteger(argsPerErrorBudget) || argsPerErrorBudget < 1) {
    throw TypeError(
      'argsPerErrorBudget must be a safe positive integer number',
    );
  }

  /**
   * Maps from an error to an array of log args, where each log args is
   * remembered as an annotation on that error. This can be used, for example,
   * to keep track of additional causes of the error. The elements of any
   * log args may include errors which are associated with further annotations.
   * An augmented console, like the causal console of `console.js`, could
   * then retrieve the graph of such annotations.
   *
   * @type {CacheMapKit<WeakMapConstructor, Error, LogArgs[]>}
   */
  const { cache: noteLogArgsArrayMap } = makeCacheMapKit(errorsBudget);

  /**
   * @param {Error} error
   * @param {LogArgs} logArgs
   */
  const addLogArgs = (error, logArgs) => {
    const logArgsArray = noteLogArgsArrayMap.get(error);
    if (logArgsArray !== undefined) {
      if (logArgsArray.length >= argsPerErrorBudget) {
        logArgsArray.shift();
      }
      logArgsArray.push(logArgs);
    } else {
      noteLogArgsArrayMap.set(error, [logArgs]);
    }
  };
  freeze(addLogArgs);

  /**
   * @param {Error} error
   * @returns {LogArgs[] | undefined}
   */
  const takeLogArgsArray = error => {
    const result = noteLogArgsArrayMap.get(error);
    noteLogArgsArrayMap.delete(error);
    return result;
  };
  freeze(takeLogArgsArray);

  return freeze({
    addLogArgs,
    takeLogArgsArray,
  });
};$h͏_once.makeNoteLogArgsArrayKit(makeNoteLogArgsArrayKit);
freeze(makeNoteLogArgsArrayKit);
})()
,
// === 13. ses ./src/error/assert.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let RangeError,TypeError,WeakMap,arrayJoin,arrayMap,arrayPop,arrayPush,assign,freeze,defineProperty,globalThis,is,isError,regexpExec,regexpReplace,sealRegexp,stringIndexOf,stringSlice,stringStartsWith,weakmapDelete,weakmapGet,weakmapHas,weakmapSet,AggregateError,getOwnPropertyDescriptors,ownKeys,create,objectPrototype,hasOwn,an,bestEffortStringify,makeNoteLogArgsArrayKit;$h͏_imports([["../commons.js", [["RangeError",[$h͏_a => (RangeError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringIndexOf",[$h͏_a => (stringIndexOf = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringStartsWith",[$h͏_a => (stringStartsWith = $h͏_a)]],["weakmapDelete",[$h͏_a => (weakmapDelete = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["AggregateError",[$h͏_a => (AggregateError = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]],["./stringify-utils.js", [["an",[$h͏_a => (an = $h͏_a)]],["bestEffortStringify",[$h͏_a => (bestEffortStringify = $h͏_a)]]]],["./types.js", []],["./internal-types.js", []],["./note-log-args.js", [["makeNoteLogArgsArrayKit",[$h͏_a => (makeNoteLogArgsArrayKit = $h͏_a)]]]]]);
















































/**
 * @import {BaseAssert, Assert, AssertionFunctions, AssertionUtilities, DeprecatedAssertionUtilities, Stringable, DetailsToken, MakeAssert} from '../../types.js';
 * @import {LogArgs, NoteCallback, LoggedErrorHandler} from './internal-types.js';
 */

// For internal debugging purposes, uncomment
// const internalDebugConsole = console;

// /////////////////////////////////////////////////////////////////////////////

/**
 * Maps the result of a `quote` or `bare` call back to its input value.
 *
 * @type {WeakMap<Stringable, any>}
 */
const declassifiers = new WeakMap();

/** @type {AssertionUtilities['quote']} */
const quote = (value, spaces = undefined) => {
  const result = freeze({
    toString: freeze(() => bestEffortStringify(value, spaces)),
  });
  weakmapSet(declassifiers, result, value);
  return result;
};$h͏_once.quote(quote);
freeze(quote);

const canBeBare = freeze(/^[\w:-]( ?[\w:-])*$/);

/**
 * @type {AssertionUtilities['bare']}
 */
const bare = (text, spaces = undefined) => {
  if (typeof text !== 'string' || !regexpExec(canBeBare, text)) {
    return quote(text, spaces);
  }
  const result = freeze({
    toString: freeze(() => text),
  });
  weakmapSet(declassifiers, result, text);
  return result;
};$h͏_once.bare(bare);
freeze(bare);

// /////////////////////////////////////////////////////////////////////////////

/**
 * @typedef {{ template: TemplateStringsArray | string[], args: any[] }} DetailsParts
 *
 * The contents of a `details` template literal tag: literal strings (always at
 * least one) and arbitrary substitution values from in between them.
 *
 * Unquoted substitution values are sensitive (and are redacted in error
 * `message` strings), so a DetailsPart must not leak outside of this file.
 */

/**
 * Maps the result of a `details` tagged template literal back to a record of
 * that template literal's contents.
 *
 * @type {WeakMap<DetailsToken, DetailsParts>}
 */
const hiddenDetailsMap = new WeakMap();

/**
 * Construct an error message string from `details` template literal contents,
 * replacing unquoted substitution values with redactions.
 *
 * @param {DetailsParts} hiddenDetails
 * @returns {string}
 */
const getMessageString = ({ template, args }) => {
  const parts = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    const arg = args[i];
    let argStr;
    if (weakmapHas(declassifiers, arg)) {
      argStr = `${arg}`;
    } else if (isError(arg)) {
      argStr = `(${an(arg.name)})`;
    } else {
      argStr = `(${an(typeof arg)})`;
    }
    arrayPush(parts, argStr, template[i + 1]);
  }
  return arrayJoin(parts, '');
};

/**
 * Define `toString` behavior for DetailsToken. To minimize the overhead of
 * creating new instances, we do this with an inherited `this`-sensitive method,
 * even though we normally avoid such sensitivity. To protect the method from
 * inappropriate application, it verifies that `this` is registered in
 * `redactedDetails` before doing interesting work.
 *
 * The behavior must not reveal anything redacted, so we use `getMessageString`
 * to return the same value as the message for a thrown assertion-failure error.
 */
const DetailsTokenProto = freeze({
  toString() {
    const hiddenDetails = weakmapGet(hiddenDetailsMap, this);
    if (hiddenDetails === undefined) {
      return '[Not a DetailsToken]';
    }
    return getMessageString(hiddenDetails);
  },
});
freeze(DetailsTokenProto.toString);

/**
 * Normally this is the function exported as `assert.details` and often
 * spelled `X`. However, if the `{errorTaming: 'unsafe'}` or
 * `{errorTaming: 'unsafe-debug'}` option is
 * given to `lockdown`, then `unredactedDetails` is used instead.
 *
 * There are some unconditional uses of `redactedDetails` in this module. All
 * of them should be uses where the template literal has no redacted (unquoted)
 * substitution values. In those cases, `redactedDetails` is equivalent to
 * `unredactedDetails`.
 *
 * @type {AssertionUtilities['details']}
 */
const redactedDetails = (template, ...args) => {
  // In case the result of this call is never used, perform as little processing
  // as possible here to keep things fast.
  const detailsToken = freeze({ __proto__: DetailsTokenProto });
  weakmapSet(hiddenDetailsMap, detailsToken, { template, args });
  return /** @type {DetailsToken} */ (/** @type {unknown} */ (detailsToken));
};$h͏_once.redactedDetails(redactedDetails);
freeze(redactedDetails);

/**
 * `unredactedDetails` is like `details` except that it does not redact
 * anything. It acts like `details` would act if all substitution values
 * were wrapped with the `quote` function above (the function normally
 * spelled `q`). If the `{errorTaming: 'unsafe'}`
 * or `{errorTaming: 'unsafe-debug'}` option is given to
 * `lockdown`, then the lockdown-shim arranges for the global `assert` to be
 * one whose `details` property is `unredactedDetails`.
 * This setting optimizes the debugging and testing experience at the price
 * of safety. `unredactedDetails` also sacrifices the speed of `details`,
 * which is usually fine in debugging and testing.
 *
 * @type {AssertionUtilities['details']}
 */
const unredactedDetails = (template, ...args) => {
  args = arrayMap(args, arg =>
    weakmapHas(declassifiers, arg) ? arg : quote(arg),
  );
  return redactedDetails(template, ...args);
};$h͏_once.unredactedDetails(unredactedDetails);
freeze(unredactedDetails);


const leadingSpacePattern = sealRegexp(/^ /);
const trailingSpacePattern = sealRegexp(/ $/);

/**
 * Get arguments suitable for a console logger function (e.g., `console.error`)
 * from `details` template literal contents, unquoting quoted substitution
 * values.
 *
 * @param {DetailsParts} hiddenDetails
 * @returns {LogArgs}
 */
const getLogArgs = ({ template, args }) => {
  const logArgs = [template[0]];
  for (let i = 0; i < args.length; i += 1) {
    let arg = args[i];
    if (weakmapHas(declassifiers, arg)) {
      arg = weakmapGet(declassifiers, arg);
    }
    // Remove substitution-adjacent spaces from template fixed-string parts
    // (since console logging inserts its own argument-separating spaces).
    const prevLiteralPart = regexpReplace(
      trailingSpacePattern,
      arrayPop(logArgs) || '',
      '',
    );
    if (prevLiteralPart !== '') {
      arrayPush(logArgs, prevLiteralPart);
    }
    const nextLiteralPart = regexpReplace(
      leadingSpacePattern,
      template[i + 1],
      '',
    );
    arrayPush(logArgs, arg, nextLiteralPart);
  }
  if (logArgs[logArgs.length - 1] === '') {
    arrayPop(logArgs);
  }
  return logArgs;
};

/**
 * Maps from an error object to arguments suitable for a privileged console
 * logger function such as `console.error`, including values that may be
 * redacted in the error's `message`.
 *
 * @type {WeakMap<Error, LogArgs>}
 */
const hiddenMessageLogArgs = new WeakMap();

// So each error tag will be unique.
let errorTagNum = 0;

/**
 * @type {WeakMap<Error, string>}
 */
const errorTags = new WeakMap();

/**
 * @param {Error} err
 * @param {string=} optErrorName
 * @returns {string}
 */
const tagError = (err, optErrorName = err.name) => {
  let errorTag = weakmapGet(errorTags, err);
  if (errorTag !== undefined) {
    return errorTag;
  }
  errorTagNum += 1;
  errorTag = `${optErrorName}#${errorTagNum}`;
  weakmapSet(errorTags, err, errorTag);
  return errorTag;
};

/**
 * Make reasonable best efforts to make a `Passable` error.
 *   - `sanitizeError` will remove any "extraneous" own properties already added
 *     by the host,
 *     such as `fileName`,`lineNumber` on FireFox or `line` on Safari.
 *   - If any such "extraneous" properties were removed, `sanitizeError` will
 *     annotate
 *     the error with them, so they still appear on the causal console
 *     log output for diagnostic purposes, but not be otherwise visible.
 *   - `sanitizeError` will ensure that any expected properties already
 *     added by the host are data
 *     properties, converting accessor properties to data properties as needed,
 *     such as `stack` on v8 (Chrome, Brave, Edge?)
 *   - `sanitizeError` will freeze the error, preventing any correct engine from
 *     adding or
 *     altering any of the error's own properties `sanitizeError` is done.
 *
 * However, `sanitizeError` will not, for example, `harden`
 * (i.e., deeply freeze)
 * or ensure that the `cause` or `errors` property satisfy the `Passable`
 * constraints. The purpose of `sanitizeError` is only to protect against
 * mischief the host may have already added to the error as created,
 * not to ensure that the error is actually Passable. For that,
 * see `toPassableError` in `@endo/pass-style`.
 *
 * @param {Error} error
 */
       const sanitizeError = error => {
  const descs = getOwnPropertyDescriptors(error);
  const {
    name: _nameDesc,
    message: _messageDesc,
    errors: _errorsDesc = undefined,
    cause: _causeDesc = undefined,
    stack: _stackDesc = undefined,
    ...restDescs
  } = descs;

  const restNames = ownKeys(restDescs);
  if (restNames.length >= 1) {
    for (const name of restNames) {
      delete error[name];
    }
    const dropped = create(objectPrototype, restDescs);
    const droppedDetails = redactedDetails`originally with properties ${quote(dropped)}`;
    // eslint-disable-next-line no-use-before-define
    note(error, droppedDetails);
  }
  for (const name of ownKeys(error)) {
    // @ts-expect-error TypeScript is still confused by symbols as property keys
    const desc = descs[name];
    if (desc && hasOwn(desc, 'get')) {
      const value = error[name]; // invokes the getter
      defineProperty(error, name, { value });
    }
  }
  freeze(error);
};

/**
 * @type {AssertionUtilities['makeError']}
 */$h͏_once.sanitizeError(sanitizeError);
const makeError = (
  optDetails = redactedDetails`Assert failed`,
  errConstructor = globalThis.Error,
  {
    errorName = undefined,
    cause = undefined,
    errors = undefined,
    sanitize = true,
  } = {},
) => {
  // Promote string-valued `optDetails` into a minimal DetailsParts
  // consisting of that string as the sole literal part with no substitutions.
  if (typeof optDetails === 'string') {
    optDetails = redactedDetails([optDetails]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, optDetails);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(optDetails)}`);
  }
  const messageString = getMessageString(hiddenDetails);
  const opts = cause && { cause };
  let error;
  if (
    typeof AggregateError !== 'undefined' &&
    errConstructor === AggregateError
  ) {
    error = AggregateError(errors || [], messageString, opts);
  } else {
    const ErrorCtor = /** @type {ErrorConstructor} */ (errConstructor);
    error = ErrorCtor(messageString, opts);
    // Since we need to tolerate `errors` on an AggregateError, we may as well
    // tolerate it on all errors.
    if (errors !== undefined) {
      defineProperty(error, 'errors', {
        value: errors,
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }
  weakmapSet(hiddenMessageLogArgs, error, getLogArgs(hiddenDetails));
  if (errorName !== undefined) {
    tagError(error, errorName);
  }
  if (sanitize) {
    sanitizeError(error);
  }
  // The next line is a particularly fruitful place to put a breakpoint.
  return error;
};$h͏_once.makeError(makeError);
freeze(makeError);

// /////////////////////////////////////////////////////////////////////////////

const { addLogArgs: addNoteLogArgs, takeLogArgsArray: takeAllNoteLogArgs } =
  makeNoteLogArgsArrayKit();

/**
 * An augmented console will normally only take the hidden noteArgs array once,
 * when it logs the error being annotated. Once that happens, further
 * annotations of that error should go to the console immediately. We arrange
 * that by accepting a note-callback function from the console as an optional
 * part of that taking operation. Normally there will only be at most one
 * callback per error, but that depends on console behavior which we should not
 * assume. We make this an array of callbacks so multiple registrations
 * are independent.
 *
 * @type {WeakMap<Error, NoteCallback[]>}
 */
const hiddenNoteCallbacks = new WeakMap();

/** @type {AssertionUtilities['note']} */
const note = (error, detailsNote) => {
  // Promote string-valued `detailsNote` into a minimal DetailsParts consisting
  // of that string as the sole literal part with no substitutions.
  if (typeof detailsNote === 'string') {
    detailsNote = redactedDetails([detailsNote]);
  }
  const hiddenDetails = weakmapGet(hiddenDetailsMap, detailsNote);
  if (hiddenDetails === undefined) {
    throw TypeError(`unrecognized details ${quote(detailsNote)}`);
  }
  const logArgs = getLogArgs(hiddenDetails);
  const callbacks = weakmapGet(hiddenNoteCallbacks, error);
  if (callbacks !== undefined) {
    for (const callback of callbacks) {
      callback(error, logArgs);
    }
  } else {
    addNoteLogArgs(error, logArgs);
  }
};$h͏_once.note(note);
freeze(note);

/**
 * The unprivileged form that just uses the de facto `error.stack` property.
 * The start compartment normally has a privileged `globalThis.getStackString`
 * which should be preferred if present.
 *
 * @param {Error} error
 * @returns {string}
 */
const defaultGetStackString = error => {
  if (!('stack' in error)) {
    return '';
  }
  const stackString = `${error.stack}`;
  const pos = stringIndexOf(stackString, '\n');
  if (stringStartsWith(stackString, ' ') || pos === -1) {
    return stackString;
  }
  return stringSlice(stackString, pos + 1); // exclude the initial newline
};

/** @type {LoggedErrorHandler} */
const loggedErrorHandler = {
  getStackString: globalThis.getStackString || defaultGetStackString,
  tagError: error => tagError(error),
  resetErrorTagNum: () => {
    errorTagNum = 0;
  },
  getMessageLogArgs: error => weakmapGet(hiddenMessageLogArgs, error),
  takeMessageLogArgs: error => {
    const logArgs = weakmapGet(hiddenMessageLogArgs, error);
    weakmapDelete(hiddenMessageLogArgs, error);
    return logArgs;
  },
  takeNoteLogArgsArray: (error, callback) => {
    const logArgsArray = takeAllNoteLogArgs(error);
    if (callback !== undefined) {
      const callbacks = weakmapGet(hiddenNoteCallbacks, error);
      if (callbacks) {
        arrayPush(callbacks, callback);
      } else {
        weakmapSet(hiddenNoteCallbacks, error, [callback]);
      }
    }
    return logArgsArray || [];
  },
};$h͏_once.loggedErrorHandler(loggedErrorHandler);
freeze(loggedErrorHandler);


// /////////////////////////////////////////////////////////////////////////////

/**
 * @type {MakeAssert}
 */
       const makeAssert = (optRaise = undefined, unredacted = false) => {
  const details = unredacted ? unredactedDetails : redactedDetails;
  const assertFailedDetails = details`Check failed`;

  /** @type {AssertionFunctions['fail']} */
  const fail = (
    optDetails = assertFailedDetails,
    errConstructor = undefined,
    options = undefined,
  ) => {
    const reason = makeError(optDetails, errConstructor, options);
    if (optRaise !== undefined) {
      optRaise(reason);
    }
    throw reason;
  };
  freeze(fail);

  /** @type {AssertionUtilities['Fail']} */
  const Fail = (template, ...args) => fail(details(template, ...args));

  // Don't freeze or export `assert` until we add methods.
  /** @type {BaseAssert} */
  const assert = (
    condition,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) => {
    condition || fail(optDetails, errConstructor, options);
  };

  /** @type {AssertionFunctions['equal']} */
  const equal = (
    actual,
    expected,
    optDetails = undefined,
    errConstructor = undefined,
    options = undefined,
  ) => {
    is(actual, expected) ||
      fail(
        optDetails || details`Expected ${actual} is same as ${expected}`,
        errConstructor || RangeError,
        options,
      );
  };
  freeze(equal);

  /** @type {AssertionFunctions['typeof']} */
  const assertTypeof = (specimen, typename, optDetails) => {
    // This will safely fall through if typename is not a string,
    // which is what we want.
    // eslint-disable-next-line valid-typeof
    if (typeof specimen === typename) {
      return;
    }
    typeof typename === 'string' || Fail`${quote(typename)} must be a string`;

    if (optDetails === undefined) {
      // Embed the type phrase without quotes.
      const typeWithDeterminer = an(typename);
      optDetails = details`${specimen} must be ${bare(typeWithDeterminer)}`;
    }
    fail(optDetails, TypeError);
  };
  freeze(assertTypeof);

  /** @type {AssertionFunctions['string']} */
  const assertString = (specimen, optDetails = undefined) =>
    assertTypeof(specimen, 'string', optDetails);

  /** @type {Pick<AssertionFunctions, keyof AssertionFunctions>} */
  const assertionFunctions = {
    equal,
    typeof: assertTypeof,
    string: assertString,
    fail,
  };

  /** @type {AssertionUtilities} */
  const assertionUtilities = {
    makeError,
    note,
    details,
    Fail,
    quote,
    bare,
  };

  /** @type {DeprecatedAssertionUtilities} */
  const deprecated = { error: makeError, makeAssert };

  /** @type {Assert} */
  const finishedAssert = assign(assert, {
    ...assertionFunctions,
    ...assertionUtilities,
    ...deprecated,
  });
  return freeze(finishedAssert);
};$h͏_once.makeAssert(makeAssert);
freeze(makeAssert);

/** @type {Assert} */
const assert = makeAssert();$h͏_once.assert(assert);


// Internal, to obviate polymorphic dispatch, but may become rigorously
// consistent with @endo/error:

/** @type {AssertionFunctions['equal']} */
const assertEqual = assert.equal;$h͏_once.assertEqual(assertEqual);
})()
,
// === 14. ses ./src/make-hardener.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,WeakSet,globalThis,apply,arrayForEach,defineProperty,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,getPrototypeOf,isInteger,isPrimitive,hasOwn,ownKeys,preventExtensions,setAdd,setForEach,setHas,toStringTagSymbol,typedArrayPrototype,weaksetAdd,weaksetHas,FERAL_STACK_GETTER,FERAL_STACK_SETTER,isError,assert;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isInteger",[$h͏_a => (isInteger = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["preventExtensions",[$h͏_a => (preventExtensions = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["setForEach",[$h͏_a => (setForEach = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["typedArrayPrototype",[$h͏_a => (typedArrayPrototype = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["FERAL_STACK_GETTER",[$h͏_a => (FERAL_STACK_GETTER = $h͏_a)]],["FERAL_STACK_SETTER",[$h͏_a => (FERAL_STACK_SETTER = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);





















































/**
 * @import {Harden} from '../types.js'
 */

// Obtain the string tag accessor of of TypedArray so we can indirectly use the
// TypedArray brand check it employs.
const typedArrayToStringTag = getOwnPropertyDescriptor(
  typedArrayPrototype,
  toStringTagSymbol,
);
assert(typedArrayToStringTag);
const getTypedArrayToStringTag = typedArrayToStringTag.get;
assert(getTypedArrayToStringTag);

// Exported for tests.
/**
 * Duplicates packages/marshal/src/helpers/passStyle-helpers.js to avoid a dependency.
 *
 * @param {unknown} object
 */
       const isTypedArray = object => {
  // The object must pass a brand check or toStringTag will return undefined.
  const tag = apply(getTypedArrayToStringTag, object, []);
  return tag !== undefined;
};

/**
 * Tests if a property key is an integer-valued canonical numeric index.
 * https://tc39.es/ecma262/#sec-canonicalnumericindexstring
 *
 * @param {string | symbol} propertyKey
 */$h͏_once.isTypedArray(isTypedArray);
const isCanonicalIntegerIndexString = propertyKey => {
  const n = +String(propertyKey);
  return isInteger(n) && String(n) === propertyKey;
};

/**
 * @template T
 * @param {ArrayLike<T>} array
 */
const freezeTypedArray = array => {
  preventExtensions(array);

  // Downgrade writable expandos to readonly, even if non-configurable.
  // We get each descriptor individually rather than using
  // getOwnPropertyDescriptors in order to fail safe when encountering
  // an obscure GraalJS issue where getOwnPropertyDescriptor returns
  // undefined for a property that does exist.
  arrayForEach(ownKeys(array), (/** @type {string | symbol} */ name) => {
    const desc = getOwnPropertyDescriptor(array, name);
    assert(desc);
    // TypedArrays are integer-indexed exotic objects, which define special
    // treatment for property names in canonical numeric form:
    // integers in range are permanently writable and non-configurable.
    // https://tc39.es/ecma262/#sec-integer-indexed-exotic-objects
    //
    // This is analogous to the data of a hardened Map or Set,
    // so we carve out this exceptional behavior but make all other
    // properties non-configurable.
    if (!isCanonicalIntegerIndexString(name)) {
      defineProperty(array, name, {
        ...desc,
        writable: false,
        configurable: false,
      });
    }
  });
};

/**
 * Create a `harden` function.
 *
 * @returns {Harden}
 */
       const makeHardener = () => {
  // Use a native hardener if possible.
  if (typeof globalThis.harden === 'function') {
    const safeHarden = globalThis.harden;
    return safeHarden;
  }

  const hardened = new WeakSet();

  const { harden } = {
    /**
     * @template T
     * @param {T} root
     * @returns {T}
     */
    harden(root) {
      const toFreeze = new Set();

      // If val is something we should be freezing but aren't yet,
      // add it to toFreeze.
      /**
       * @param {any} val
       */
      function enqueue(val) {
        if (isPrimitive(val)) {
          // ignore primitives
          return;
        }
        const type = typeof val;
        if (type !== 'object' && type !== 'function') {
          // future proof: break until someone figures out what it should do
          throw TypeError(`Unexpected typeof: ${type}`);
        }
        if (weaksetHas(hardened, val) || setHas(toFreeze, val)) {
          // Ignore if this is an exit, or we've already visited it
          return;
        }
        // console.warn(`adding ${val} to toFreeze`, val);
        setAdd(toFreeze, val);
      }

      /**
       * @param {any} obj
       */
      const baseFreezeAndTraverse = obj => {
        // Now freeze the object to ensure reactive
        // objects such as proxies won't add properties
        // during traversal, before they get frozen.

        // Object are verified before being enqueued,
        // therefore this is a valid candidate.
        // Throws if this fails (strict mode).
        // Also throws if the object is an ArrayBuffer or any TypedArray.
        if (isTypedArray(obj)) {
          freezeTypedArray(obj);
        } else {
          freeze(obj);
        }

        // we rely upon certain commitments of Object.freeze and proxies here

        // get stable/immutable outbound links before a Proxy has a chance to do
        // something sneaky.
        const descs = getOwnPropertyDescriptors(obj);
        const proto = getPrototypeOf(obj);
        enqueue(proto);

        arrayForEach(ownKeys(descs), (/** @type {string | symbol} */ name) => {
          // The 'name' may be a symbol, and TypeScript doesn't like us to
          // index arbitrary symbols on objects, so we pretend they're just
          // strings.
          const desc = descs[/** @type {string} */ (name)];
          // getOwnPropertyDescriptors is guaranteed to return well-formed
          // descriptors, but they still inherit from Object.prototype. If
          // someone has poisoned Object.prototype to add 'value' or 'get'
          // properties, then a simple 'if ("value" in desc)' or 'desc.value'
          // test could be confused. We use hasOwnProperty to be sure about
          // whether 'value' is present or not, which tells us for sure that
          // this is a data property.
          if (hasOwn(desc, 'value')) {
            enqueue(desc.value);
          } else {
            enqueue(desc.get);
            enqueue(desc.set);
          }
        });
      };

      const freezeAndTraverse =
        FERAL_STACK_GETTER === undefined && FERAL_STACK_SETTER === undefined
          ? // On platforms without v8's error own stack accessor problem,
            // don't pay for any extra overhead.
            baseFreezeAndTraverse
          : obj => {
              if (isError(obj)) {
                // Only pay the overhead if it first passes this cheap isError
                // check. Otherwise, it will be unrepaired, but won't be judged
                // to be a passable error anyway, so will not be unsafe.
                const stackDesc = getOwnPropertyDescriptor(obj, 'stack');
                if (
                  stackDesc &&
                  stackDesc.get === FERAL_STACK_GETTER &&
                  stackDesc.configurable
                ) {
                  // Can only repair if it is configurable. Otherwise, leave
                  // unrepaired, in which case it will not be judged passable,
                  // avoiding a safety problem.
                  defineProperty(obj, 'stack', {
                    // NOTE: Calls getter during harden, which seems dangerous.
                    // But we're only calling the problematic getter whose
                    // hazards we think we understand.
                    // @ts-expect-error TS should know FERAL_STACK_GETTER
                    // cannot be `undefined` here.
                    // See https://github.com/endojs/endo/pull/2232#discussion_r1575179471
                    value: apply(FERAL_STACK_GETTER, obj, []),
                  });
                }
              }
              return baseFreezeAndTraverse(obj);
            };

      const dequeue = () => {
        // New values added before forEach() has finished will be visited.
        setForEach(toFreeze, freezeAndTraverse);
      };

      /** @param {any} value */
      const markHardened = value => {
        weaksetAdd(hardened, value);
      };

      const commit = () => {
        setForEach(toFreeze, markHardened);
      };

      enqueue(root);
      dequeue();
      // console.warn("toFreeze set:", toFreeze);
      commit();

      return root;
    },
  };

  return harden;
};$h͏_once.makeHardener(makeHardener);
})()
,
// === 15. ses ./src/cauterize-property.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let hasOwn;$h͏_imports([["./commons.js", [["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);

/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Delete `obj[prop]` or at least make it harmless.
 *
 * If the property was not expected, then emit a reporter-dependent warning
 * to bring attention to this case, so someone can determine what to do with it.
 *
 * If the property to be deleted is a function's `.prototype` property, this
 * will normally be because the function was supposed to be a
 * - builtin method or non-constructor function
 * - arrow function
 * - concise method
 *
 * all of whom are not supposed to have a `.prototype` property. Nevertheless,
 * on some platforms (like older versions of Hermes), or as a result of
 * some shim-based mods to the primordials (like core-js?), some of these
 * functions may accidentally be more like `function` functions with
 * an undeletable `.prototype` property. In these cases, if we can
 * set the value of that bogus `.prototype` property to `undefined`,
 * we do so, issuing a warning, rather than failing to initialize ses.
 *
 * @param {object} obj
 * @param {PropertyKey} prop
 * @param {boolean} known If deletion is expected, don't warn
 * @param {string} subPath Used for warning messages
 * @param {Reporter} reporter Where to issue warning or error.
 * @returns {void}
 */
       const cauterizeProperty = (
  obj,
  prop,
  known,
  subPath,
  { warn, error },
) => {
  // Either the object lacks a permit or the object doesn't match the
  // permit.
  // If the permit is specifically false, not merely undefined,
  // this is a property we expect to see because we know it exists in
  // some environments and we have expressly decided to exclude it.
  // Any other disallowed property is one we have not audited and we log
  // that we are removing it so we know to look into it, as happens when
  // the language evolves new features to existing intrinsics.
  if (!known) {
    warn(`Removing ${subPath}`);
  }
  try {
    delete obj[prop];
  } catch (err) {
    if (hasOwn(obj, prop)) {
      if (typeof obj === 'function' && prop === 'prototype') {
        obj.prototype = undefined;
        if (obj.prototype === undefined) {
          warn(`Tolerating undeletable ${subPath} === undefined`);
          return;
        }
      }
      error(`failed to delete ${subPath}`, err);
    } else {
      error(`deleting ${subPath} threw`, err);
    }
    throw err;
  }
};$h͏_once.cauterizeProperty(cauterizeProperty);
})()
,
// === 16. ses ./src/permits.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayPush,arrayForEach;$h͏_imports([["./commons.js", [["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]]]]]);




/** @import {GenericErrorConstructor} from '../types.js' */

/**
 * Exports {@code permits}, a recursively defined
 * JSON record enumerating all intrinsics and their properties
 * according to ECMA specs.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * constantProperties
 * non-configurable, non-writable data properties of all global objects.
 * Must be powerless.
 * Maps from property name to the actual value
 */
       const constantProperties = {
  // *** Value Properties of the Global Object

  Infinity,
  NaN,
  undefined,
};

/**
 * universalPropertyNames
 * Properties of all global objects.
 * Must be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.constantProperties(constantProperties);
       const universalPropertyNames = {
  // *** Function Properties of the Global Object

  isFinite: 'isFinite',
  isNaN: 'isNaN',
  parseFloat: 'parseFloat',
  parseInt: 'parseInt',

  decodeURI: 'decodeURI',
  decodeURIComponent: 'decodeURIComponent',
  encodeURI: 'encodeURI',
  encodeURIComponent: 'encodeURIComponent',

  // *** Constructor Properties of the Global Object

  Array: 'Array',
  ArrayBuffer: 'ArrayBuffer',
  BigInt: 'BigInt',
  BigInt64Array: 'BigInt64Array',
  BigUint64Array: 'BigUint64Array',
  Boolean: 'Boolean',
  DataView: 'DataView',
  EvalError: 'EvalError',
  // https://github.com/tc39/proposal-float16array
  Float16Array: 'Float16Array',
  Float32Array: 'Float32Array',
  Float64Array: 'Float64Array',
  Int8Array: 'Int8Array',
  Int16Array: 'Int16Array',
  Int32Array: 'Int32Array',
  Map: 'Map',
  Number: 'Number',
  Object: 'Object',
  Promise: 'Promise',
  Proxy: 'Proxy',
  RangeError: 'RangeError',
  ReferenceError: 'ReferenceError',
  Set: 'Set',
  String: 'String',
  SyntaxError: 'SyntaxError',
  TypeError: 'TypeError',
  Uint8Array: 'Uint8Array',
  Uint8ClampedArray: 'Uint8ClampedArray',
  Uint16Array: 'Uint16Array',
  Uint32Array: 'Uint32Array',
  URIError: 'URIError',
  WeakMap: 'WeakMap',
  WeakSet: 'WeakSet',
  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: 'Iterator',
  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: 'AsyncIterator',
  // https://github.com/endojs/endo/issues/550
  AggregateError: 'AggregateError',

  // https://github.com/tc39/proposal-explicit-resource-management
  // TODO DisposableStack, AsyncDisposableStack
  // DisposableStack: 'DisposableStack',
  // AsyncDisposableStack: 'AsyncDisposableStack',

  // https://tc39.es/proposal-shadowrealm/
  // TODO ShadowRealm
  // ShadowRealm: 'ShadowRealm',

  // *** Other Properties of the Global Object

  JSON: 'JSON',
  Reflect: 'Reflect',

  // *** Annex B

  escape: 'escape',
  unescape: 'unescape',

  // ESNext

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source
  ModuleSource: 'ModuleSource',

  lockdown: 'lockdown',
  harden: 'harden',

  HandledPromise: 'HandledPromise'  // TODO: Until Promise.delegate (see below).
};

/**
 * initialGlobalPropertyNames
 * Those found only on the initial global, i.e., the global of the
 * start compartment, as well as any compartments created before lockdown.
 * These may provide much of the power provided by the original.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.universalPropertyNames(universalPropertyNames);
       const initialGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%InitialDate%',
  Error: '%InitialError%',
  RegExp: '%InitialRegExp%',

  // Omit `Symbol`, because we want the original to appear on the
  // start compartment without passing through the permits mechanism, since
  // we want to preserve all its properties, even if we never heard of them.
  // Symbol: '%InitialSymbol%',

  // *** Other Properties of the Global Object

  Math: '%InitialMath%',

  // ESNext

  // From Error-stack proposal
  // Only on initial global. No corresponding
  // powerless form for other globals.
  getStackString: '%InitialGetStackString%'

  // TODO https://github.com/Agoric/SES-shim/issues/551
  // Need initial WeakRef and FinalizationGroup in
  // start compartment only.

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%InitialTemporal%' // with Temporal.Now
};

/**
 * sharedGlobalPropertyNames
 * Those found only on the globals of new compartments created after lockdown,
 * which must therefore be powerless.
 * Maps from property name to the intrinsic name in the permits.
 */$h͏_once.initialGlobalPropertyNames(initialGlobalPropertyNames);
       const sharedGlobalPropertyNames = {
  // *** Constructor Properties of the Global Object

  Date: '%SharedDate%',
  Error: '%SharedError%',
  RegExp: '%SharedRegExp%',
  Symbol: '%SharedSymbol%',

  // *** Other Properties of the Global Object

  Math: '%SharedMath%'

  // TODO Temporal
  // https://github.com/tc39/proposal-temporal
  // Temporal: '%SharedTemporal%' // without Temporal.Now
};

/**
 * uniqueGlobalPropertyNames
 * Those made separately for each global, including the initial global
 * of the start compartment.
 * Maps from property name to the intrinsic name in the permits
 * (which is currently always the same).
 */$h͏_once.sharedGlobalPropertyNames(sharedGlobalPropertyNames);
       const uniqueGlobalPropertyNames = {
  // *** Value Properties of the Global Object

  globalThis: '%UniqueGlobalThis%',

  // *** Function Properties of the Global Object

  eval: '%UniqueEval%',

  // *** Constructor Properties of the Global Object

  Function: '%UniqueFunction%',

  // *** Other Properties of the Global Object

  // ESNext

  Compartment: '%UniqueCompartment%'
  // According to current agreements, eventually the Realm constructor too.
  // 'Realm',
};

// All the "subclasses" of Error. These are collectively represented in the
// ECMAScript spec by the meta variable NativeError.
/** @type {GenericErrorConstructor[]} */$h͏_once.uniqueGlobalPropertyNames(uniqueGlobalPropertyNames);
const NativeErrors = [
  EvalError,
  RangeError,
  ReferenceError,
  SyntaxError,
  TypeError,
  URIError
  // https://github.com/endojs/endo/issues/550
  // Commented out to accommodate platforms prior to AggregateError.
  // Instead, conditional push below.
  // AggregateError,
];$h͏_once.NativeErrors(NativeErrors);

if (typeof AggregateError !== 'undefined') {
  // Conditional, to accommodate platforms prior to AggregateError
  arrayPush(NativeErrors, AggregateError);
}



/**
 * <p>Each JSON record enumerates the disposition of the properties on
 *    some corresponding intrinsic object.
 *
 * <p>All records are made of key-value pairs where the key
 *    is the property to process, and the value is the associated
 *    dispositions a.k.a. the "permit". Those permits can be:
 * <ul>
 * <li>The boolean value "false", in which case this property is
 *     blacklisted and simply removed. Properties not mentioned
 *     are also considered blacklisted and are removed.
 * <li>A string value equal to a primitive ("number", "string", etc),
 *     in which case the property is permitted if its value property
 *     is typeof the given type. For example, {@code "Infinity"} leads to
 *     "number" and property values that fail {@code typeof "number"}.
 *     are removed.
 * <li>A string value equal to an intinsic name ("ObjectPrototype",
 *     "Array", etc), in which case the property permitted if its
 *     value property is equal to the value of the corresponfing
 *     intrinsics. For example, {@code Map.prototype} leads to
 *     "MapPrototype" and the property is removed if its value is
 *     not equal to %MapPrototype%
 * <li>Another record, in which case this property is simply
 *     permitted and that next record represents the disposition of
 *     the object which is its value. For example, {@code "Object"}
 *     leads to another record explaining what properties {@code
 *     "Object"} may have and how each such property should be treated.
 *
 * <p>Notes:
 * <li>"[[Proto]]" is used to refer to the "[[Prototype]]" internal
 *     slot, which says which object this object inherits from.
 * <li>"--proto--" is used to refer to the "__proto__" property name,
 *     which is the name of an accessor property on Object.prototype.
 *     In practice, it is used to access the [[Proto]] internal slot,
 *     but is distinct from the internal slot itself. We use
 *     "--proto--" rather than "__proto__" below because "__proto__"
 *     in an object literal is special syntax rather than a normal
 *     property definition.
 * <li>"ObjectPrototype" is the default "[[Proto]]" (when not specified).
 * <li>Constants "fn" and "getter" are used to keep the structure DRY.
 * <li>Symbol properties are listed as follow:
 *     <li>Well-known symbols use the "@@name" form.
 *     <li>Registered symbols use the "RegisteredSymbol(key)" form.
 *     <li>Unique symbols use the "UniqueSymbol(description)" form.
 */

// Function Instances
       const FunctionInstance = {
  '[[Proto]]': '%FunctionPrototype%',
  length: 'number',
  name: 'string'
  // Do not specify "prototype" here, since only Function instances that can
  // be used as a constructor have a prototype property. For constructors,
  // since prototype properties are instance-specific, we define it there.
};

// AsyncFunction Instances
$h͏_once.FunctionInstance(FunctionInstance);const AsyncFunctionInstance={
  // This property is not mentioned in ECMA 262, but is present in V8 and
  // necessary for lockdown to succeed.
  '[[Proto]]': '%AsyncFunctionPrototype%',
};

// Aliases
$h͏_once.AsyncFunctionInstance(AsyncFunctionInstance);const fn=FunctionInstance;
const asyncFn = AsyncFunctionInstance;

const getter = {
  get: fn,
  set: 'undefined',
};

// Possible but not encountered in the specs
// export const setter = {
//   get: 'undefined',
//   set: fn,
// };

const accessor = {
  get: fn,
  set: fn,
};

// eslint-disable-next-line func-names
const strict = function () {
  'use strict';
};

// TODO Remove this once we no longer support the Hermes that needed this.
arrayForEach(['caller', 'arguments'], prop => {
  try {
    strict[prop];
  } catch (e) {
    // https://github.com/facebook/hermes/blob/main/test/hermes/function-non-strict.js
    if (e.message === 'Restricted in strict mode') {
      // Fixed in Static Hermes: https://github.com/facebook/hermes/issues/1582
      FunctionInstance[prop] = accessor;
    }
  }
});

       const isAccessorPermit = permit => {
  return permit === getter || permit === accessor;
};

// NativeError Object Structure
$h͏_once.isAccessorPermit(isAccessorPermit);function NativeError(prototype){
  return {
    // Properties of the NativeError Constructors
    '[[Proto]]': '%SharedError%',

    // NativeError.prototype
    prototype,
  };
}

function NativeErrorPrototype(constructor) {
  return {
    // Properties of the NativeError Prototype Objects
    '[[Proto]]': '%ErrorPrototype%',
    constructor,
    message: 'string',
    name: 'string',
    // Redundantly present only on v8. Safe to remove.
    toString: false,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  };
}

// The TypedArray Constructors
function TypedArray(prototype) {
  return {
    // Properties of the TypedArray Constructors
    '[[Proto]]': '%TypedArray%',
    BYTES_PER_ELEMENT: 'number',
    prototype,
  };
}

function TypedArrayPrototype(constructor) {
  return {
    // Properties of the TypedArray Prototype Objects
    '[[Proto]]': '%TypedArrayPrototype%',
    BYTES_PER_ELEMENT: 'number',
    constructor,
  };
}

// Without Math.random
const CommonMath = {
  E: 'number',
  LN10: 'number',
  LN2: 'number',
  LOG10E: 'number',
  LOG2E: 'number',
  PI: 'number',
  SQRT1_2: 'number',
  SQRT2: 'number',
  '@@toStringTag': 'string',
  abs: fn,
  acos: fn,
  acosh: fn,
  asin: fn,
  asinh: fn,
  atan: fn,
  atanh: fn,
  atan2: fn,
  cbrt: fn,
  ceil: fn,
  clz32: fn,
  cos: fn,
  cosh: fn,
  exp: fn,
  expm1: fn,
  floor: fn,
  fround: fn,
  hypot: fn,
  imul: fn,
  log: fn,
  log1p: fn,
  log10: fn,
  log2: fn,
  max: fn,
  min: fn,
  pow: fn,
  round: fn,
  sign: fn,
  sin: fn,
  sinh: fn,
  sqrt: fn,
  tan: fn,
  tanh: fn,
  trunc: fn,
  // https://github.com/tc39/proposal-float16array
  f16round: fn,
  // https://github.com/tc39/proposal-math-sum
  sumPrecise: fn,

  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  idivmod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  imuldiv: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  irem: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523
  mod: false,
  // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
  irandom: false,
};

       const permitted = {
  // ECMA https://tc39.es/ecma262

  // The intrinsics object has no prototype to avoid conflicts.
  '[[Proto]]': null,

  // %ThrowTypeError%
  '%ThrowTypeError%': fn,

  // *** The Global Object

  // *** Value Properties of the Global Object
  Infinity: 'number',
  NaN: 'number',
  undefined: 'undefined',

  // *** Function Properties of the Global Object

  // eval
  '%UniqueEval%': fn,
  isFinite: fn,
  isNaN: fn,
  parseFloat: fn,
  parseInt: fn,
  decodeURI: fn,
  decodeURIComponent: fn,
  encodeURI: fn,
  encodeURIComponent: fn,

  // *** Fundamental Objects

  Object: {
    // Properties of the Object Constructor
    '[[Proto]]': '%FunctionPrototype%',
    assign: fn,
    create: fn,
    defineProperties: fn,
    defineProperty: fn,
    entries: fn,
    freeze: fn,
    fromEntries: fn,
    getOwnPropertyDescriptor: fn,
    getOwnPropertyDescriptors: fn,
    getOwnPropertyNames: fn,
    getOwnPropertySymbols: fn,
    getPrototypeOf: fn,
    is: fn,
    isExtensible: fn,
    isFrozen: fn,
    isSealed: fn,
    keys: fn,
    preventExtensions: fn,
    prototype: '%ObjectPrototype%',
    seal: fn,
    setPrototypeOf: fn,
    values: fn,
    'RegisteredSymbol(harden)': {
      ...fn,
      // Installed with hardenTaming: 'unsafe'
      isFake: 'boolean',
    },
    // https://github.com/tc39/proposal-accessible-object-hasownproperty
    hasOwn: fn,
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
    // Seen on QuickJS
    __getClass: false,
  },

  '%ObjectPrototype%': {
    // Properties of the Object Prototype Object
    '[[Proto]]': null,
    constructor: 'Object',
    hasOwnProperty: fn,
    isPrototypeOf: fn,
    propertyIsEnumerable: fn,
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,

    // Annex B: Additional Properties of the Object.prototype Object

    // See note in header about the difference between [[Proto]] and --proto--
    // special notations.
    '--proto--': accessor,
    __defineGetter__: fn,
    __defineSetter__: fn,
    __lookupGetter__: fn,
    __lookupSetter__: fn,
  },

  '%UniqueFunction%': {
    // Properties of the Function Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%InertFunction%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%FunctionPrototype%',
  },

  '%FunctionPrototype%': {
    apply: fn,
    bind: fn,
    call: fn,
    constructor: '%InertFunction%',
    toString: fn,
    '@@hasInstance': fn,
    // proposed but not yet std. To be removed if there
    caller: false,
    // proposed but not yet std. To be removed if there
    arguments: false,
    // Seen on QuickJS. TODO grab getter for use by console
    fileName: false,
    // Seen on QuickJS. TODO grab getter for use by console
    lineNumber: false,
  },

  Boolean: {
    // Properties of the Boolean Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%BooleanPrototype%',
  },

  '%BooleanPrototype%': {
    constructor: 'Boolean',
    toString: fn,
    valueOf: fn,
  },

  '%SharedSymbol%': {
    // Properties of the Symbol Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asyncIterator: 'symbol',
    for: fn,
    hasInstance: 'symbol',
    isConcatSpreadable: 'symbol',
    iterator: 'symbol',
    keyFor: fn,
    match: 'symbol',
    matchAll: 'symbol',
    prototype: '%SymbolPrototype%',
    replace: 'symbol',
    search: 'symbol',
    species: 'symbol',
    split: 'symbol',
    toPrimitive: 'symbol',
    toStringTag: 'symbol',
    unscopables: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    asyncDispose: 'symbol',
    // https://github.com/tc39/proposal-explicit-resource-management
    dispose: 'symbol',
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSimple: false,
    // Seen at core-js https://github.com/zloirock/core-js#ecmascript-symbol
    useSetter: false,
    // Seen on QuickJS
    operatorSet: false,
  },

  '%SymbolPrototype%': {
    // Properties of the Symbol Prototype Object
    constructor: '%SharedSymbol%',
    description: getter,
    toString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,
    '@@toStringTag': 'string',
  },

  '%InitialError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%SharedError%': {
    // Properties of the Error Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%ErrorPrototype%',
    // Non standard, v8 only, used by tap
    captureStackTrace: fn,
    // Non standard, v8 only, used by tap, tamed to accessor
    stackTraceLimit: accessor,
    // Non standard, v8 only, used by several, tamed to accessor
    prepareStackTrace: accessor,
    // https://github.com/tc39/proposal-is-error
    isError: fn,
  },

  '%ErrorPrototype%': {
    constructor: '%SharedError%',
    message: 'string',
    name: 'string',
    toString: fn,
    // proposed de-facto, assumed TODO
    // Seen on FF Nightly 88.0a1
    at: false,
    // Seen on FF and XS
    stack: accessor,
    // Superfluously present in some versions of V8.
    // https://github.com/tc39/notes/blob/master/meetings/2021-10/oct-26.md#:~:text=However%2C%20Chrome%2093,and%20node%2016.11.
    cause: false,
  },

  // NativeError

  EvalError: NativeError('%EvalErrorPrototype%'),
  RangeError: NativeError('%RangeErrorPrototype%'),
  ReferenceError: NativeError('%ReferenceErrorPrototype%'),
  SyntaxError: NativeError('%SyntaxErrorPrototype%'),
  TypeError: NativeError('%TypeErrorPrototype%'),
  URIError: NativeError('%URIErrorPrototype%'),
  // https://github.com/endojs/endo/issues/550
  AggregateError: NativeError('%AggregateErrorPrototype%'),

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // SuppressedError: NativeError('%SuppressedErrorPrototype%'),

  '%EvalErrorPrototype%': NativeErrorPrototype('EvalError'),
  '%RangeErrorPrototype%': NativeErrorPrototype('RangeError'),
  '%ReferenceErrorPrototype%': NativeErrorPrototype('ReferenceError'),
  '%SyntaxErrorPrototype%': NativeErrorPrototype('SyntaxError'),
  '%TypeErrorPrototype%': NativeErrorPrototype('TypeError'),
  '%URIErrorPrototype%': NativeErrorPrototype('URIError'),
  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': NativeErrorPrototype('AggregateError'),
  // TODO AggregateError .errors

  // TODO SuppressedError
  // https://github.com/tc39/proposal-explicit-resource-management
  // '%SuppressedErrorPrototype%': NativeErrorPrototype('SuppressedError'),
  // TODO SuppressedError .error
  // TODO SuppressedError .suppressed

  // *** Numbers and Dates

  Number: {
    // Properties of the Number Constructor
    '[[Proto]]': '%FunctionPrototype%',
    EPSILON: 'number',
    isFinite: fn,
    isInteger: fn,
    isNaN: fn,
    isSafeInteger: fn,
    MAX_SAFE_INTEGER: 'number',
    MAX_VALUE: 'number',
    MIN_SAFE_INTEGER: 'number',
    MIN_VALUE: 'number',
    NaN: 'number',
    NEGATIVE_INFINITY: 'number',
    parseFloat: fn,
    parseInt: fn,
    POSITIVE_INFINITY: 'number',
    prototype: '%NumberPrototype%',
  },

  '%NumberPrototype%': {
    // Properties of the Number Prototype Object
    constructor: 'Number',
    toExponential: fn,
    toFixed: fn,
    toLocaleString: fn,
    toPrecision: fn,
    toString: fn,
    valueOf: fn,
  },

  BigInt: {
    // Properties of the BigInt Constructor
    '[[Proto]]': '%FunctionPrototype%',
    asIntN: fn,
    asUintN: fn,
    prototype: '%BigIntPrototype%',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    bitLength: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
    // Seen on QuickJS
    tdiv: false,
    // Seen on QuickJS
    fdiv: false,
    // Seen on QuickJS
    cdiv: false,
    // Seen on QuickJS
    ediv: false,
    // Seen on QuickJS
    tdivrem: false,
    // Seen on QuickJS
    fdivrem: false,
    // Seen on QuickJS
    cdivrem: false,
    // Seen on QuickJS
    edivrem: false,
    // Seen on QuickJS
    sqrt: false,
    // Seen on QuickJS
    sqrtrem: false,
    // Seen on QuickJS
    floorLog2: false,
    // Seen on QuickJS
    ctz: false,
  },

  '%BigIntPrototype%': {
    constructor: 'BigInt',
    toLocaleString: fn,
    toString: fn,
    valueOf: fn,
    '@@toStringTag': 'string',
  },

  '%InitialMath%': {
    ...CommonMath,
    // `%InitialMath%.random()` has the standard unsafe behavior
    random: fn,
  },

  '%SharedMath%': {
    ...CommonMath,
    // `%SharedMath%.random()` is tamed to always throw
    random: fn,
  },

  '%InitialDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%SharedDate%': {
    // Properties of the Date Constructor
    '[[Proto]]': '%FunctionPrototype%',
    // `%SharedDate%.now()` is tamed to always throw
    now: fn,
    parse: fn,
    prototype: '%DatePrototype%',
    UTC: fn,
  },

  '%DatePrototype%': {
    constructor: '%SharedDate%',
    getDate: fn,
    getDay: fn,
    getFullYear: fn,
    getHours: fn,
    getMilliseconds: fn,
    getMinutes: fn,
    getMonth: fn,
    getSeconds: fn,
    getTime: fn,
    getTimezoneOffset: fn,
    getUTCDate: fn,
    getUTCDay: fn,
    getUTCFullYear: fn,
    getUTCHours: fn,
    getUTCMilliseconds: fn,
    getUTCMinutes: fn,
    getUTCMonth: fn,
    getUTCSeconds: fn,
    setDate: fn,
    setFullYear: fn,
    setHours: fn,
    setMilliseconds: fn,
    setMinutes: fn,
    setMonth: fn,
    setSeconds: fn,
    setTime: fn,
    setUTCDate: fn,
    setUTCFullYear: fn,
    setUTCHours: fn,
    setUTCMilliseconds: fn,
    setUTCMinutes: fn,
    setUTCMonth: fn,
    setUTCSeconds: fn,
    toDateString: fn,
    toISOString: fn,
    toJSON: fn,
    toLocaleDateString: fn,
    toLocaleString: fn,
    toLocaleTimeString: fn,
    toString: fn,
    toTimeString: fn,
    toUTCString: fn,
    valueOf: fn,
    '@@toPrimitive': fn,

    // Annex B: Additional Properties of the Date.prototype Object
    getYear: fn,
    setYear: fn,
    toGMTString: fn,
  },

  // Text Processing

  String: {
    // Properties of the String Constructor
    '[[Proto]]': '%FunctionPrototype%',
    fromCharCode: fn,
    fromCodePoint: fn,
    prototype: '%StringPrototype%',
    raw: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromArrayBuffer: false,
  },

  '%StringPrototype%': {
    // Properties of the String Prototype Object
    length: 'number',
    charAt: fn,
    charCodeAt: fn,
    codePointAt: fn,
    concat: fn,
    constructor: 'String',
    endsWith: fn,
    includes: fn,
    indexOf: fn,
    lastIndexOf: fn,
    localeCompare: fn,
    match: fn,
    matchAll: fn,
    normalize: fn,
    padEnd: fn,
    padStart: fn,
    repeat: fn,
    replace: fn,
    replaceAll: fn, // ES2021
    search: fn,
    slice: fn,
    split: fn,
    startsWith: fn,
    substring: fn,
    toLocaleLowerCase: fn,
    toLocaleUpperCase: fn,
    toLowerCase: fn,
    toString: fn,
    toUpperCase: fn,
    trim: fn,
    trimEnd: fn,
    trimStart: fn,
    valueOf: fn,
    '@@iterator': fn,
    // Failed tc39 proposal
    // https://github.com/tc39/proposal-relative-indexing-method
    at: fn,
    // https://github.com/tc39/proposal-is-usv-string
    isWellFormed: fn,
    toWellFormed: fn,
    unicodeSets: fn,

    // Annex B: Additional Properties of the String.prototype Object
    substr: fn,
    anchor: fn,
    big: fn,
    blink: fn,
    bold: fn,
    fixed: fn,
    fontcolor: fn,
    fontsize: fn,
    italics: fn,
    link: fn,
    small: fn,
    strike: fn,
    sub: fn,
    sup: fn,
    trimLeft: fn,
    trimRight: fn,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    compare: false,
    // Seen on QuickJS
    __quote: false,
  },

  '%StringIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  '%InitialRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,

    // The https://github.com/tc39/proposal-regexp-legacy-features
    // are all optional, unsafe, and omitted
    input: false,
    $_: false,
    lastMatch: false,
    '$&': false,
    lastParen: false,
    '$+': false,
    leftContext: false,
    '$`': false,
    rightContext: false,
    "$'": false,
    $1: false,
    $2: false,
    $3: false,
    $4: false,
    $5: false,
    $6: false,
    $7: false,
    $8: false,
    $9: false,
  },

  '%SharedRegExp%': {
    // Properties of the RegExp Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%RegExpPrototype%',
    '@@species': getter,
    // https://github.com/tc39/proposal-regex-escaping
    escape: fn,
  },

  '%RegExpPrototype%': {
    // Properties of the RegExp Prototype Object
    constructor: '%SharedRegExp%',
    exec: fn,
    dotAll: getter,
    flags: getter,
    global: getter,
    hasIndices: getter,
    ignoreCase: getter,
    '@@match': fn,
    '@@matchAll': fn,
    multiline: getter,
    '@@replace': fn,
    '@@search': fn,
    source: getter,
    '@@split': fn,
    sticky: getter,
    test: fn,
    toString: fn,
    unicode: getter,
    unicodeSets: getter,

    // Annex B: Additional Properties of the RegExp.prototype Object
    compile: false  // UNSAFE and suppressed.
  },

  '%RegExpStringIteratorPrototype%': {
    // The %RegExpStringIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // Indexed Collections

  Array: {
    // Properties of the Array Constructor
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    isArray: fn,
    of: fn,
    prototype: '%ArrayPrototype%',
    '@@species': getter,

    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // https://tc39.es/proposal-array-from-async/
    fromAsync: fn,
  },

  '%ArrayPrototype%': {
    // Properties of the Array Prototype Object
    length: 'number',
    concat: fn,
    constructor: 'Array',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    flat: fn,
    flatMap: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    map: fn,
    pop: fn,
    push: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    shift: fn,
    slice: fn,
    some: fn,
    sort: fn,
    splice: fn,
    toLocaleString: fn,
    toString: fn,
    unshift: fn,
    values: fn,
    '@@iterator': fn,
    '@@unscopables': {
      '[[Proto]]': null,
      copyWithin: 'boolean',
      entries: 'boolean',
      fill: 'boolean',
      find: 'boolean',
      findIndex: 'boolean',
      flat: 'boolean',
      flatMap: 'boolean',
      includes: 'boolean',
      keys: 'boolean',
      values: 'boolean',
      // Failed tc39 proposal
      // https://tc39.es/proposal-relative-indexing-method/
      // Seen on FF Nightly 88.0a1
      at: 'boolean',
      // See https://github.com/tc39/proposal-array-find-from-last
      findLast: 'boolean',
      findLastIndex: 'boolean',
      // https://github.com/tc39/proposal-change-array-by-copy
      toReversed: 'boolean',
      toSorted: 'boolean',
      toSpliced: 'boolean',
      with: 'boolean',
      // https://github.com/tc39/proposal-array-grouping
      group: 'boolean',
      groupToMap: 'boolean',
      groupBy: 'boolean',
    },
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    toSpliced: fn,
    with: fn,
    // https://github.com/tc39/proposal-array-grouping
    group: fn, // Not in proposal? Where?
    groupToMap: fn, // Not in proposal? Where?
    groupBy: fn,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
  },

  '%ArrayIteratorPrototype%': {
    // The %ArrayIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  // *** TypedArray Objects

  '%TypedArray%': {
    // Properties of the %TypedArray% Intrinsic Object
    '[[Proto]]': '%FunctionPrototype%',
    from: fn,
    of: fn,
    prototype: '%TypedArrayPrototype%',
    '@@species': getter,
  },

  '%TypedArrayPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: '%TypedArray%',
    copyWithin: fn,
    entries: fn,
    every: fn,
    fill: fn,
    filter: fn,
    find: fn,
    findIndex: fn,
    forEach: fn,
    includes: fn,
    indexOf: fn,
    join: fn,
    keys: fn,
    lastIndexOf: fn,
    length: getter,
    map: fn,
    reduce: fn,
    reduceRight: fn,
    reverse: fn,
    set: fn,
    slice: fn,
    some: fn,
    sort: fn,
    subarray: fn,
    toLocaleString: fn,
    toString: fn,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': getter,
    // Failed tc39 proposal
    // https://tc39.es/proposal-relative-indexing-method/
    at: fn,
    // See https://github.com/tc39/proposal-array-find-from-last
    findLast: fn,
    findLastIndex: fn,
    // https://github.com/tc39/proposal-change-array-by-copy
    toReversed: fn,
    toSorted: fn,
    with: fn,
  },

  // The TypedArray Constructors

  BigInt64Array: TypedArray('%BigInt64ArrayPrototype%'),
  BigUint64Array: TypedArray('%BigUint64ArrayPrototype%'),
  // https://github.com/tc39/proposal-float16array
  Float16Array: TypedArray('%Float16ArrayPrototype%'),
  Float32Array: TypedArray('%Float32ArrayPrototype%'),
  Float64Array: TypedArray('%Float64ArrayPrototype%'),
  Int16Array: TypedArray('%Int16ArrayPrototype%'),
  Int32Array: TypedArray('%Int32ArrayPrototype%'),
  Int8Array: TypedArray('%Int8ArrayPrototype%'),
  Uint16Array: TypedArray('%Uint16ArrayPrototype%'),
  Uint32Array: TypedArray('%Uint32ArrayPrototype%'),
  Uint8ClampedArray: TypedArray('%Uint8ClampedArrayPrototype%'),
  Uint8Array: {
    ...TypedArray('%Uint8ArrayPrototype%'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    fromHex: fn,
  },

  '%BigInt64ArrayPrototype%': TypedArrayPrototype('BigInt64Array'),
  '%BigUint64ArrayPrototype%': TypedArrayPrototype('BigUint64Array'),
  // https://github.com/tc39/proposal-float16array
  '%Float16ArrayPrototype%': TypedArrayPrototype('Float16Array'),
  '%Float32ArrayPrototype%': TypedArrayPrototype('Float32Array'),
  '%Float64ArrayPrototype%': TypedArrayPrototype('Float64Array'),
  '%Int16ArrayPrototype%': TypedArrayPrototype('Int16Array'),
  '%Int32ArrayPrototype%': TypedArrayPrototype('Int32Array'),
  '%Int8ArrayPrototype%': TypedArrayPrototype('Int8Array'),
  '%Uint16ArrayPrototype%': TypedArrayPrototype('Uint16Array'),
  '%Uint32ArrayPrototype%': TypedArrayPrototype('Uint32Array'),
  '%Uint8ClampedArrayPrototype%': TypedArrayPrototype('Uint8ClampedArray'),
  '%Uint8ArrayPrototype%': {
    ...TypedArrayPrototype('Uint8Array'),
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    setFromHex: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toBase64: fn,
    // https://github.com/tc39/proposal-arraybuffer-base64
    toHex: fn,
  },

  // *** Keyed Collections

  Map: {
    // Properties of the Map Constructor
    '[[Proto]]': '%FunctionPrototype%',
    '@@species': getter,
    prototype: '%MapPrototype%',
    // https://github.com/tc39/proposal-array-grouping
    groupBy: fn,
  },

  '%MapPrototype%': {
    clear: fn,
    constructor: 'Map',
    delete: fn,
    entries: fn,
    forEach: fn,
    get: fn,
    has: fn,
    keys: fn,
    set: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
  },

  '%MapIteratorPrototype%': {
    // The %MapIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  Set: {
    // Properties of the Set Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%SetPrototype%',
    '@@species': getter,
    // Seen on QuickJS
    groupBy: false,
  },

  '%SetPrototype%': {
    add: fn,
    clear: fn,
    constructor: 'Set',
    delete: fn,
    entries: fn,
    forEach: fn,
    has: fn,
    keys: fn,
    size: getter,
    values: fn,
    '@@iterator': fn,
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-set-methods
    intersection: fn,
    // See https://github.com/tc39/proposal-set-methods
    union: fn,
    // See https://github.com/tc39/proposal-set-methods
    difference: fn,
    // See https://github.com/tc39/proposal-set-methods
    symmetricDifference: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSubsetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isSupersetOf: fn,
    // See https://github.com/tc39/proposal-set-methods
    isDisjointFrom: fn,
  },

  '%SetIteratorPrototype%': {
    // The %SetIteratorPrototype% Object
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    '@@toStringTag': 'string',
  },

  WeakMap: {
    // Properties of the WeakMap Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakMapPrototype%',
  },

  '%WeakMapPrototype%': {
    constructor: 'WeakMap',
    delete: fn,
    get: fn,
    has: fn,
    set: fn,
    '@@toStringTag': 'string',
  },

  WeakSet: {
    // Properties of the WeakSet Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%WeakSetPrototype%',
  },

  '%WeakSetPrototype%': {
    add: fn,
    constructor: 'WeakSet',
    delete: fn,
    has: fn,
    '@@toStringTag': 'string',
  },

  // *** Structured Data

  ArrayBuffer: {
    // Properties of the ArrayBuffer Constructor
    '[[Proto]]': '%FunctionPrototype%',
    isView: fn,
    prototype: '%ArrayBufferPrototype%',
    '@@species': getter,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromString: false,
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    fromBigInt: false,
  },

  '%ArrayBufferPrototype%': {
    byteLength: getter,
    constructor: 'ArrayBuffer',
    slice: fn,
    '@@toStringTag': 'string',
    // See https://github.com/Moddable-OpenSource/moddable/issues/523
    concat: false,
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // If this exists, it is purely an artifact of how we currently shim
  // `transferToImmutable`. As natively implemented, there would be no
  // such extra prototype.
  '%ImmutableArrayBufferPrototype%': {
    '[[Proto]]': '%ArrayBufferPrototype%',
    byteLength: getter,
    slice: fn,
    // See https://github.com/endojs/endo/tree/master/packages/immutable-arraybuffer#purposeful-violation
    '@@toStringTag': 'string',
    // See https://github.com/tc39/proposal-resizablearraybuffer
    transfer: fn,
    resize: fn,
    resizable: getter,
    maxByteLength: getter,
    // https://github.com/tc39/proposal-arraybuffer-transfer
    transferToFixedLength: fn,
    detached: getter,
    // https://github.com/endojs/endo/pull/2309#issuecomment-2155513240
    // to be proposed
    transferToImmutable: fn,
    sliceToImmutable: fn,
    immutable: getter,
  },

  // SharedArrayBuffer Objects
  SharedArrayBuffer: false, // UNSAFE and purposely suppressed.
  '%SharedArrayBufferPrototype%': false, // UNSAFE and purposely suppressed.

  DataView: {
    // Properties of the DataView Constructor
    '[[Proto]]': '%FunctionPrototype%',
    BYTES_PER_ELEMENT: 'number', // Non std but undeletable on Safari.
    prototype: '%DataViewPrototype%',
  },

  '%DataViewPrototype%': {
    buffer: getter,
    byteLength: getter,
    byteOffset: getter,
    constructor: 'DataView',
    getBigInt64: fn,
    getBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    getFloat16: fn,
    getFloat32: fn,
    getFloat64: fn,
    getInt8: fn,
    getInt16: fn,
    getInt32: fn,
    getUint8: fn,
    getUint16: fn,
    getUint32: fn,
    setBigInt64: fn,
    setBigUint64: fn,
    // https://github.com/tc39/proposal-float16array
    setFloat16: fn,
    setFloat32: fn,
    setFloat64: fn,
    setInt8: fn,
    setInt16: fn,
    setInt32: fn,
    setUint8: fn,
    setUint16: fn,
    setUint32: fn,
    '@@toStringTag': 'string',
  },

  // Atomics
  Atomics: false, // UNSAFE and suppressed.

  JSON: {
    parse: fn,
    stringify: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-json-parse-with-source/
    rawJSON: fn,
    isRawJSON: fn,
  },

  // *** Control Abstraction Objects

  // https://github.com/tc39/proposal-iterator-helpers
  Iterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%IteratorPrototype%',
    from: fn,
    // https://github.com/tc39/proposal-joint-iteration
    zip: fn,
    zipKeyed: fn,
    // https://github.com/tc39/proposal-iterator-sequencing
    concat: fn,
  },

  '%IteratorPrototype%': {
    // The %IteratorPrototype% Object
    '@@iterator': fn,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: 'Iterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-async-iterator-helpers
    toAsync: fn,
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@dispose': false,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%WrapForValidIteratorPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-iterator-helpers
  '%IteratorHelperPrototype%': {
    '[[Proto]]': '%IteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  AsyncIterator: {
    // Properties of the Iterator Constructor
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AsyncIteratorPrototype%',
    from: fn,
  },

  '%AsyncIteratorPrototype%': {
    // The %AsyncIteratorPrototype% Object
    '@@asyncIterator': fn,
    // https://github.com/tc39/proposal-async-iterator-helpers
    constructor: 'AsyncIterator',
    map: fn,
    filter: fn,
    take: fn,
    drop: fn,
    flatMap: fn,
    reduce: fn,
    toArray: fn,
    forEach: fn,
    some: fn,
    every: fn,
    find: fn,
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-explicit-resource-management
    // See https://github.com/Moddable-OpenSource/moddable/issues/523#issuecomment-1942904505
    '@@asyncDispose': false,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%WrapForValidAsyncIteratorPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
  },

  // https://github.com/tc39/proposal-async-iterator-helpers
  '%AsyncIteratorHelperPrototype%': {
    '[[Proto]]': '%AsyncIteratorPrototype%',
    next: fn,
    return: fn,
    '@@toStringTag': 'string',
  },

  '%InertGeneratorFunction%': {
    // Properties of the GeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%Generator%',
  },

  '%Generator%': {
    // Properties of the GeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertGeneratorFunction%',
    prototype: '%GeneratorPrototype%',
    '@@toStringTag': 'string',
  },

  '%InertAsyncGeneratorFunction%': {
    // Properties of the AsyncGeneratorFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncGenerator%',
  },

  '%AsyncGenerator%': {
    // Properties of the AsyncGeneratorFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncGeneratorFunction%',
    prototype: '%AsyncGeneratorPrototype%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  '%GeneratorPrototype%': {
    // Properties of the Generator Prototype Object
    '[[Proto]]': '%IteratorPrototype%',
    constructor: '%Generator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  '%AsyncGeneratorPrototype%': {
    // Properties of the AsyncGenerator Prototype Object
    '[[Proto]]': '%AsyncIteratorPrototype%',
    constructor: '%AsyncGenerator%',
    next: fn,
    return: fn,
    throw: fn,
    '@@toStringTag': 'string',
  },

  // TODO: To be replaced with Promise.delegate
  //
  // The HandledPromise global variable shimmed by `@agoric/eventual-send/shim`
  // implements an initial version of the eventual send specification at:
  // https://github.com/tc39/proposal-eventual-send
  //
  // We will likely change this to add a property to Promise called
  // Promise.delegate and put static methods on it, which will necessitate
  // another permits change to update to the current proposed standard.
  HandledPromise: {
    '[[Proto]]': 'Promise',
    applyFunction: fn,
    applyFunctionSendOnly: fn,
    applyMethod: fn,
    applyMethodSendOnly: fn,
    get: fn,
    getSendOnly: fn,
    prototype: '%PromisePrototype%',
    resolve: fn,
  },

  // https://github.com/tc39/proposal-source-phase-imports?tab=readme-ov-file#js-module-source

  ModuleSource: {
    '[[Proto]]': '%AbstractModuleSource%',
    prototype: '%ModuleSourcePrototype%',
  },

  '%ModuleSourcePrototype%': {
    '[[Proto]]': '%AbstractModuleSourcePrototype%',
    constructor: 'ModuleSource',
    '@@toStringTag': 'string',
    // https://github.com/tc39/proposal-compartments
    bindings: getter,
    needsImport: getter,
    needsImportMeta: getter,
    // @endo/module-source provides a legacy interface
    imports: getter,
    exports: getter,
    reexports: getter,
  },

  '%AbstractModuleSource%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%AbstractModuleSourcePrototype%',
  },

  '%AbstractModuleSourcePrototype%': {
    constructor: '%AbstractModuleSource%',
  },

  Promise: {
    // Properties of the Promise Constructor
    '[[Proto]]': '%FunctionPrototype%',
    all: fn,
    allSettled: fn,
    // https://github.com/Agoric/SES-shim/issues/550
    any: fn,
    prototype: '%PromisePrototype%',
    race: fn,
    reject: fn,
    resolve: fn,
    // https://github.com/tc39/proposal-promise-with-resolvers
    withResolvers: fn,
    '@@species': getter,
    // https://github.com/tc39/proposal-promise-try
    try: fn,
  },

  '%PromisePrototype%': {
    // Properties of the Promise Prototype Object
    catch: fn,
    constructor: 'Promise',
    finally: fn,
    then: fn,
    '@@toStringTag': 'string',
    // Non-standard, used in node to prevent async_hooks from breaking
    'UniqueSymbol(async_id_symbol)': accessor,
    'UniqueSymbol(trigger_async_id_symbol)': accessor,
    'UniqueSymbol(destroyed)': accessor,
  },

  '%InertAsyncFunction%': {
    // Properties of the AsyncFunction Constructor
    '[[Proto]]': '%InertFunction%',
    prototype: '%AsyncFunctionPrototype%',
  },

  '%AsyncFunctionPrototype%': {
    // Properties of the AsyncFunction Prototype Object
    '[[Proto]]': '%FunctionPrototype%',
    constructor: '%InertAsyncFunction%',
    // length prop added here for React Native jsc-android
    // https://github.com/endojs/endo/issues/660
    // https://github.com/react-native-community/jsc-android-buildscripts/issues/181
    length: 'number',
    '@@toStringTag': 'string',
  },

  // Reflection

  Reflect: {
    // The Reflect Object
    // Not a function object.
    apply: fn,
    construct: fn,
    defineProperty: fn,
    deleteProperty: fn,
    get: fn,
    getOwnPropertyDescriptor: fn,
    getPrototypeOf: fn,
    has: fn,
    isExtensible: fn,
    ownKeys: fn,
    preventExtensions: fn,
    set: fn,
    setPrototypeOf: fn,
    '@@toStringTag': 'string',
  },

  Proxy: {
    // Properties of the Proxy Constructor
    '[[Proto]]': '%FunctionPrototype%',
    revocable: fn,
  },

  // Appendix B

  // Annex B: Additional Properties of the Global Object

  escape: fn,
  unescape: fn,

  // Proposed

  '%UniqueCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%InertCompartment%': {
    '[[Proto]]': '%FunctionPrototype%',
    prototype: '%CompartmentPrototype%',
    toString: fn,
  },

  '%CompartmentPrototype%': {
    constructor: '%InertCompartment%',
    evaluate: fn,
    globalThis: getter,
    name: getter,
    import: asyncFn,
    load: asyncFn,
    importNow: fn,
    module: fn,
    '@@toStringTag': 'string',
  },

  lockdown: fn,
  harden: { ...fn, isFake: 'boolean' },

  '%InitialGetStackString%': fn,
};$h͏_once.permitted(permitted);
})()
,
// === 17. ses ./src/intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let cauterizeProperty,TypeError,WeakSet,arrayFilter,create,defineProperty,entries,freeze,getOwnPropertyDescriptor,getOwnPropertyDescriptors,globalThis,is,isPrimitive,hasOwn,values,weaksetHas,constantProperties,sharedGlobalPropertyNames,universalPropertyNames,permitted;$h͏_imports([["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]],["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]],["permitted",[$h͏_a => (permitted = $h͏_a)]]]]]);

























/**
 * @import {Reporter} from './reporting-types.js'
 */

const isFunction = obj => typeof obj === 'function';

// Like defineProperty, but throws if it would modify an existing property.
// We use this to ensure that two conflicting attempts to define the same
// property throws, causing SES initialization to fail. Otherwise, a
// conflict between, for example, two of SES's internal permits might
// get masked as one overwrites the other. Accordingly, the thrown error
// complains of a "Conflicting definition".
function initProperty(obj, name, desc) {
  if (hasOwn(obj, name)) {
    const preDesc = getOwnPropertyDescriptor(obj, name);
    if (
      !preDesc ||
      !is(preDesc.value, desc.value) ||
      preDesc.get !== desc.get ||
      preDesc.set !== desc.set ||
      preDesc.writable !== desc.writable ||
      preDesc.enumerable !== desc.enumerable ||
      preDesc.configurable !== desc.configurable
    ) {
      throw TypeError(`Conflicting definitions of ${name}`);
    }
  }
  defineProperty(obj, name, desc);
}

// Like defineProperties, but throws if it would modify an existing property.
// This ensures that the intrinsics added to the intrinsics collector object
// graph do not overlap.
function initProperties(obj, descs) {
  for (const [name, desc] of entries(descs)) {
    initProperty(obj, name, desc);
  }
}

// sampleGlobals creates an intrinsics object, suitable for
// interinsicsCollector.addIntrinsics, from the named properties of a global
// object.
function sampleGlobals(globalObject, newPropertyNames) {
  const newIntrinsics = { __proto__: null };
  for (const [globalName, intrinsicName] of entries(newPropertyNames)) {
    if (hasOwn(globalObject, globalName)) {
      newIntrinsics[intrinsicName] = globalObject[globalName];
    }
  }
  return newIntrinsics;
}

/**
 * @param {Reporter} reporter
 */
       const makeIntrinsicsCollector = reporter => {
  /** @type {Record<any, any>} */
  const intrinsics = create(null);
  let pseudoNatives;

  const addIntrinsics = newIntrinsics => {
    initProperties(intrinsics, getOwnPropertyDescriptors(newIntrinsics));
  };
  freeze(addIntrinsics);

  // For each intrinsic, if it has a `.prototype` property, use the
  // permits to find out the intrinsic name for that prototype and add it
  // to the intrinsics.
  const completePrototypes = () => {
    for (const [name, intrinsic] of entries(intrinsics)) {
      if (isPrimitive(intrinsic)) {
        // eslint-disable-next-line no-continue
        continue;
      }
      if (!hasOwn(intrinsic, 'prototype')) {
        // eslint-disable-next-line no-continue
        continue;
      }
      const permit = permitted[name];
      if (typeof permit !== 'object') {
        throw TypeError(`Expected permit object at permits.${name}`);
      }
      const namePrototype = permit.prototype;
      if (!namePrototype) {
        cauterizeProperty(
          intrinsic,
          'prototype',
          false,
          `${name}.prototype`,
          reporter,
        );
        // eslint-disable-next-line no-continue
        continue;
      }
      if (
        typeof namePrototype !== 'string' ||
        !hasOwn(permitted, namePrototype)
      ) {
        throw TypeError(`Unrecognized ${name}.prototype permits entry`);
      }
      const intrinsicPrototype = intrinsic.prototype;
      if (hasOwn(intrinsics, namePrototype)) {
        if (intrinsics[namePrototype] !== intrinsicPrototype) {
          throw TypeError(`Conflicting bindings of ${namePrototype}`);
        }
        // eslint-disable-next-line no-continue
        continue;
      }
      intrinsics[namePrototype] = intrinsicPrototype;
    }
  };
  freeze(completePrototypes);

  const finalIntrinsics = () => {
    freeze(intrinsics);
    pseudoNatives = new WeakSet(arrayFilter(values(intrinsics), isFunction));
    return intrinsics;
  };
  freeze(finalIntrinsics);

  const isPseudoNative = obj => {
    if (!pseudoNatives) {
      throw TypeError(
        'isPseudoNative can only be called after finalIntrinsics',
      );
    }
    return weaksetHas(pseudoNatives, obj);
  };
  freeze(isPseudoNative);

  const intrinsicsCollector = {
    addIntrinsics,
    completePrototypes,
    finalIntrinsics,
    isPseudoNative,
  };
  freeze(intrinsicsCollector);

  addIntrinsics(constantProperties);
  addIntrinsics(sampleGlobals(globalThis, universalPropertyNames));

  return intrinsicsCollector;
};

/**
 * getGlobalIntrinsics()
 * Doesn't tame, delete, or modify anything. Samples globalObject to create an
 * intrinsics record containing only the permitted global variables, listed
 * by the intrinsic names appropriate for new globals, i.e., the globals of
 * newly constructed compartments.
 *
 * WARNING:
 * If run before lockdown, the returned intrinsics record will carry the
 * *original* unsafe (feral, untamed) bindings of these global variables.
 *
 * @param {object} globalObject
 * @param {Reporter} reporter
 */$h͏_once.makeIntrinsicsCollector(makeIntrinsicsCollector);
       const getGlobalIntrinsics = (globalObject, reporter) => {
  // TODO pass a proper reporter to `makeIntrinsicsCollector`
  const { addIntrinsics, finalIntrinsics } = makeIntrinsicsCollector(reporter);

  addIntrinsics(sampleGlobals(globalObject, sharedGlobalPropertyNames));

  return finalIntrinsics();
};$h͏_once.getGlobalIntrinsics(getGlobalIntrinsics);
})()
,
// === 18. ses ./src/permits-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let permitted,FunctionInstance,isAccessorPermit,Map,String,Symbol,TypeError,arrayFilter,arrayIncludes,arrayMap,entries,getOwnPropertyDescriptor,getPrototypeOf,isPrimitive,mapGet,hasOwn,ownKeys,symbolKeyFor,cauterizeProperty;$h͏_imports([["./permits.js", [["permitted",[$h͏_a => (permitted = $h͏_a)]],["FunctionInstance",[$h͏_a => (FunctionInstance = $h͏_a)]],["isAccessorPermit",[$h͏_a => (isAccessorPermit = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["symbolKeyFor",[$h͏_a => (symbolKeyFor = $h͏_a)]]]],["./cauterize-property.js", [["cauterizeProperty",[$h͏_a => (cauterizeProperty = $h͏_a)]]]]]);
































































/**
 * @import {Reporter} from './reporting-types.js'
 */

/**
 * Removes all non-allowed properties found by recursively and
 * reflectively walking own property chains.
 *
 * @param {object} intrinsics
 * @param {(virtualizedNativeFunction: object) => void} markVirtualizedNativeFunction
 * @param {Reporter} reporter
 */
               function removeUnpermittedIntrinsics(
  intrinsics,
  markVirtualizedNativeFunction,
  reporter,
) {
  // These primitives are allowed for permits.
  const primitives = ['undefined', 'boolean', 'number', 'string', 'symbol'];

  // These symbols are allowed as well-known symbols
  const wellKnownSymbolNames = new Map(
    Symbol
      ? arrayMap(
          arrayFilter(
            entries(permitted['%SharedSymbol%']),
            ([name, permit]) =>
              permit === 'symbol' && typeof Symbol[name] === 'symbol',
          ),
          ([name]) => [Symbol[name], `@@${name}`],
        )
      : [],
  );

  /**
   * asStringPropertyName()
   *
   * @param {string} path
   * @param {string | symbol} prop
   */
  function asStringPropertyName(path, prop) {
    if (typeof prop === 'string') {
      return prop;
    }

    const wellKnownSymbol = mapGet(wellKnownSymbolNames, prop);

    if (typeof prop === 'symbol') {
      if (wellKnownSymbol) {
        return wellKnownSymbol;
      } else {
        const registeredKey = symbolKeyFor(prop);
        if (registeredKey !== undefined) {
          return `RegisteredSymbol(${registeredKey})`;
        } else {
          return `Unique${String(prop)}`;
        }
      }
    }

    throw TypeError(`Unexpected property name type ${path} ${prop}`);
  }

  /*
   * visitPrototype()
   * Validate the object's [[prototype]] against a permit.
   */
  function visitPrototype(path, obj, protoName) {
    if (isPrimitive(obj)) {
      throw TypeError(`Object expected: ${path}, ${String(obj)}, ${protoName}`);
    }
    const proto = getPrototypeOf(obj);

    // Null prototype.
    if (proto === null && protoName === null) {
      return;
    }

    // Assert: protoName, if provided, is a string.
    if (protoName !== undefined && typeof protoName !== 'string') {
      throw TypeError(`Malformed permit ${path}.__proto__`);
    }

    // If permit not specified, default to Object.prototype.
    if (proto === intrinsics[protoName || '%ObjectPrototype%']) {
      return;
    }

    // We can't clean [[Prototype]], therefore abort.
    throw TypeError(
      `Unexpected [[Prototype]] at ${path}.__proto__ (expected ${protoName || '%ObjectPrototype%'})`,
    );
  }

  /*
   * isAllowedPropertyValue()
   * enforce permit for a single property value.
   */
  function isAllowedPropertyValue(path, value, prop, permit) {
    if (typeof permit === 'object') {
      // eslint-disable-next-line no-use-before-define
      visitProperties(path, value, permit);
      // The property is allowed.
      return true;
    }

    if (permit === false) {
      // A boolan 'false' permit specifies the removal of a property.
      // We require a more specific permit instead of allowing 'true'.
      return false;
    }

    if (typeof permit === 'string') {
      // A string permit can have one of two meanings:

      if (prop === 'prototype' || prop === 'constructor') {
        // For prototype and constructor value properties, the permit
        // is the name of an intrinsic.
        // Assumption: prototype and constructor cannot be primitives.
        // Assert: the permit is the name of an intrinsic.
        // Assert: the property value is equal to that intrinsic.

        if (hasOwn(intrinsics, permit)) {
          if (value !== intrinsics[permit]) {
            throw TypeError(`Does not match permit for ${path}`);
          }
          return true;
        }
      } else {
        // For all other properties, the permit is the name of a primitive.
        // Assert: the permit is the name of a primitive.
        // Assert: the property value type is equal to that primitive.

        // eslint-disable-next-line no-lonely-if
        if (arrayIncludes(primitives, permit)) {
          // eslint-disable-next-line valid-typeof
          if (typeof value !== permit) {
            throw TypeError(
              `At ${path} expected ${permit} not ${typeof value}`,
            );
          }
          return true;
        }
      }
    }

    throw TypeError(
      `Unexpected property ${prop} with permit ${permit} at ${path}`,
    );
  }

  /*
   * isAllowedProperty()
   * Check whether a single property is allowed.
   */
  function isAllowedProperty(path, obj, prop, permit) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      throw TypeError(`Property ${prop} not found at ${path}`);
    }

    // Is this a value property?
    if (hasOwn(desc, 'value')) {
      if (isAccessorPermit(permit)) {
        throw TypeError(`Accessor expected at ${path}`);
      }
      return isAllowedPropertyValue(path, desc.value, prop, permit);
    }
    if (!isAccessorPermit(permit)) {
      throw TypeError(`Accessor not expected at ${path}`);
    }
    return (
      isAllowedPropertyValue(`${path}<get>`, desc.get, prop, permit.get) &&
      isAllowedPropertyValue(`${path}<set>`, desc.set, prop, permit.set)
    );
  }

  /*
   * getSubPermit()
   */
  function getSubPermit(obj, permit, prop) {
    const permitProp = prop === '__proto__' ? '--proto--' : prop;
    if (hasOwn(permit, permitProp)) {
      return permit[permitProp];
    }

    if (typeof obj === 'function') {
      if (hasOwn(FunctionInstance, permitProp)) {
        return FunctionInstance[permitProp];
      }
    }

    return undefined;
  }

  /*
   * visitProperties()
   * Visit all properties for a permit.
   */
  function visitProperties(path, obj, permit) {
    if (obj === undefined || obj === null) {
      return;
    }

    const protoName = permit['[[Proto]]'];
    visitPrototype(path, obj, protoName);

    if (typeof obj === 'function') {
      markVirtualizedNativeFunction(obj);
    }

    for (const prop of ownKeys(obj)) {
      const propString = asStringPropertyName(path, prop);
      const subPath = `${path}.${propString}`;
      const subPermit = getSubPermit(obj, permit, propString);

      if (!subPermit || !isAllowedProperty(subPath, obj, prop, subPermit)) {
        cauterizeProperty(obj, prop, subPermit === false, subPath, reporter);
      }
    }
  }

  // Start path with 'intrinsics' to clarify that properties are not
  // removed from the global object by the permitting operation.
  visitProperties('intrinsics', intrinsics, permitted);
}$h͏_once.default(      removeUnpermittedIntrinsics);
})()
,
// === 19. ses ./src/tame-function-constructors.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,SyntaxError,TypeError,defineProperties,getPrototypeOf,setPrototypeOf,freeze,AsyncGeneratorFunctionInstance;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]]]]]);










// This module replaces the original `Function` constructor, and the original
// `%GeneratorFunction%`, `%AsyncFunction%` and `%AsyncGeneratorFunction%`,
// with safe replacements that throw if invoked.
//
// These are all reachable via syntax, so it isn't sufficient to just
// replace global properties with safe versions. Our main goal is to prevent
// access to the `Function` constructor through these starting points.
//
// After modules block is done, the originals must no longer be reachable,
// unless a copy has been made, and functions can only be created by syntax
// (using eval) or by invoking a previously saved reference to the originals.
//
// Typically, this module will not be used directly, but via the
// [lockdown - shim] which handles all necessary repairs and taming in SES.
//
// Relation to ECMA specifications
//
// The taming of constructors really wants to be part of the standard, because
// new constructors may be added in the future, reachable from syntax, and this
// list must be updated to match.
//
// In addition, the standard needs to define four new intrinsics for the safe
// replacement functions. See [./permits-intrinsics.js].
//
// Adapted from SES/Caja
// Copyright (C) 2011 Google Inc.
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/startSES.js
// https://github.com/google/caja/blob/master/src/com/google/caja/ses/repairES5.js

/**
 * tameFunctionConstructors()
 * This block replaces the original Function constructor, and the original
 * %GeneratorFunction% %AsyncFunction% and %AsyncGeneratorFunction%, with
 * safe replacements that throw if invoked.
 */
               function tameFunctionConstructors() {
  try {
    // Verify that the method is not callable.
    // eslint-disable-next-line @endo/no-polymorphic-call
    FERAL_FUNCTION.prototype.constructor('return 1');
  } catch (ignore) {
    // Throws, no need to patch.
    return freeze({});
  }

  const newIntrinsics = {};

  /*
   * The process to repair constructors:
   * 1. Create an instance of the function by evaluating syntax
   * 2. Obtain the prototype from the instance
   * 3. Create a substitute tamed constructor
   * 4. Replace the original constructor with the tamed constructor
   * 5. Replace tamed constructor prototype property with the original one
   * 6. Replace its [[Prototype]] slot with the tamed constructor of Function
   */
  function repairFunction(name, intrinsicName, declaration) {
    let FunctionInstance;
    try {
      // eslint-disable-next-line no-eval, no-restricted-globals
      FunctionInstance = (0, eval)(declaration);
    } catch (e) {
      if (e instanceof SyntaxError) {
        // Prevent failure on platforms where async and/or generators
        // are not supported.
        return;
      }
      // Re-throw
      throw e;
    }
    const FunctionPrototype = getPrototypeOf(FunctionInstance);

    // Prevents the evaluation of source when calling constructor on the
    // prototype of functions.
    // eslint-disable-next-line func-names
    const InertConstructor = function () {
      throw TypeError(
        'Function.prototype.constructor is not a valid constructor.',
      );
    };
    defineProperties(InertConstructor, {
      prototype: { value: FunctionPrototype },
      name: {
        value: name,
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });

    defineProperties(FunctionPrototype, {
      constructor: { value: InertConstructor },
    });

    // Reconstructs the inheritance among the new tamed constructors
    // to mirror the original specified in normal JS.
    if (InertConstructor !== FERAL_FUNCTION.prototype.constructor) {
      setPrototypeOf(InertConstructor, FERAL_FUNCTION.prototype.constructor);
    }

    newIntrinsics[intrinsicName] = InertConstructor;
  }

  // Here, the order of operation is important: Function needs to be repaired
  // first since the other repaired constructors need to inherit from the
  // tamed Function function constructor.

  repairFunction('Function', '%InertFunction%', '(function(){})');
  repairFunction(
    'GeneratorFunction',
    '%InertGeneratorFunction%',
    '(function*(){})',
  );
  repairFunction(
    'AsyncFunction',
    '%InertAsyncFunction%',
    '(async function(){})',
  );

  if (AsyncGeneratorFunctionInstance !== undefined) {
    repairFunction(
      'AsyncGeneratorFunction',
      '%InertAsyncGeneratorFunction%',
      '(async function*(){})',
    );
  }

  return newIntrinsics;
}$h͏_once.default(      tameFunctionConstructors);
})()
,
// === 20. ses ./src/tame-date-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Date,TypeError,apply,construct,defineProperties;$h͏_imports([["./commons.js", [["Date",[$h͏_a => (Date = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]]]]]);









               function tameDateConstructor() {
  const OriginalDate = Date;
  const DatePrototype = OriginalDate.prototype;

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedDate%.now()` throw a `TypeError` starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    now() {
      throw TypeError('secure mode Calling %SharedDate%.now() throws');
    },
  };

  /**
   * Tame the Date constructor.
   * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
   *
   * Common behavior
   *   * `new Date(x)` coerces x into a number and then returns a Date
   *     for that number of millis since the epoch
   *   * `new Date(NaN)` returns a Date object which stringifies to
   *     'Invalid Date'
   *   * `new Date(undefined)` returns a Date object which stringifies to
   *     'Invalid Date'
   *
   * OriginalDate (normal standard) behavior preserved by
   * `%InitialDate%`.
   *   * `Date(anything)` gives a string with the current time
   *   * `new Date()` returns the current time, as a Date object
   *
   * `%SharedDate%` behavior
   *   * `Date(anything)` throws a TypeError starting with "secure mode"
   *   * `new Date()` throws a TypeError starting with "secure mode"
   *
   * @param {{powers?: string}} [opts]
   */
  const makeDateConstructor = ({ powers = 'none' } = {}) => {
    let ResultDate;
    if (powers === 'original') {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          return apply(OriginalDate, undefined, rest);
        }
        return construct(OriginalDate, rest, new.target);
      };
    } else {
      // eslint-disable-next-line no-shadow
      ResultDate = function Date(...rest) {
        if (new.target === undefined) {
          throw TypeError(
            'secure mode Calling %SharedDate% constructor as a function throws',
          );
        }
        if (rest.length === 0) {
          throw TypeError(
            'secure mode Calling new %SharedDate%() with no arguments throws',
          );
        }
        return construct(OriginalDate, rest, new.target);
      };
    }

    defineProperties(ResultDate, {
      length: { value: 7 },
      prototype: {
        value: DatePrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
      parse: {
        value: OriginalDate.parse,
        writable: true,
        enumerable: false,
        configurable: true,
      },
      UTC: {
        value: OriginalDate.UTC,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });
    return ResultDate;
  };
  const InitialDate = makeDateConstructor({ powers: 'original' });
  const SharedDate = makeDateConstructor({ powers: 'none' });

  defineProperties(InitialDate, {
    now: {
      value: OriginalDate.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });
  defineProperties(SharedDate, {
    now: {
      value: tamedMethods.now,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  defineProperties(DatePrototype, {
    constructor: { value: SharedDate },
  });

  return {
    '%InitialDate%': InitialDate,
    '%SharedDate%': SharedDate,
  };
}$h͏_once.default(      tameDateConstructor);
})()
,
// === 21. ses ./src/tame-math-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Math,TypeError,create,getOwnPropertyDescriptors,objectPrototype;$h͏_imports([["./commons.js", [["Math",[$h͏_a => (Math = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]]]]]);







               function tameMathObject() {
  const originalMath = Math;
  const initialMath = originalMath; // to follow the naming pattern

  const { random: _, ...otherDescriptors } =
    getOwnPropertyDescriptors(originalMath);

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    /**
     * `%SharedMath%.random()` throws a TypeError starting with "secure mode".
     * See https://github.com/endojs/endo/issues/910#issuecomment-1581855420
     */
    random() {
      throw TypeError('secure mode %SharedMath%.random() throws');
    },
  };

  const sharedMath = create(objectPrototype, {
    ...otherDescriptors,
    random: {
      value: tamedMethods.random,
      writable: true,
      enumerable: false,
      configurable: true,
    },
  });

  return {
    '%InitialMath%': initialMath,
    '%SharedMath%': sharedMath,
  };
}$h͏_once.default(      tameMathObject);
})()
,
// === 22. ses ./src/tame-regexp-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,TypeError,construct,defineProperties,getOwnPropertyDescriptor,speciesSymbol;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["speciesSymbol",[$h͏_a => (speciesSymbol = $h͏_a)]]]]]);








               function tameRegExpConstructor(regExpTaming = 'safe') {
  const RegExpPrototype = FERAL_REG_EXP.prototype;

  const makeRegExpConstructor = (_ = {}) => {
    // RegExp has non-writable static properties we need to omit.
    /**
     * @param  {Parameters<typeof FERAL_REG_EXP>} rest
     */
    const ResultRegExp = function RegExp(...rest) {
      if (new.target === undefined) {
        return FERAL_REG_EXP(...rest);
      }
      return construct(FERAL_REG_EXP, rest, new.target);
    };

    defineProperties(ResultRegExp, {
      length: { value: 2 },
      prototype: {
        value: RegExpPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    // Hermes does not have `Symbol.species`. We should support such platforms.
    if (speciesSymbol) {
      const speciesDesc = getOwnPropertyDescriptor(
        FERAL_REG_EXP,
        speciesSymbol,
      );
      if (!speciesDesc) {
        throw TypeError('no RegExp[Symbol.species] descriptor');
      }
      defineProperties(ResultRegExp, {
        [speciesSymbol]: speciesDesc,
      });
    }
    return ResultRegExp;
  };

  const InitialRegExp = makeRegExpConstructor();
  const SharedRegExp = makeRegExpConstructor();

  if (regExpTaming !== 'unsafe') {
    // @ts-expect-error Deleted properties must be optional
    delete RegExpPrototype.compile;
  }
  defineProperties(RegExpPrototype, {
    constructor: { value: SharedRegExp },
  });

  return {
    '%InitialRegExp%': InitialRegExp,
    '%SharedRegExp%': SharedRegExp,
  };
}$h͏_once.default(      tameRegExpConstructor);
})()
,
// === 23. ses ./src/enablements.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let toStringTagSymbol,iteratorSymbol;$h͏_imports([["./commons.js", [["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]]]]]);

/**
 * Exports {@code enablements}, a recursively defined
 * JSON record defining the optimum set of intrinsics properties
 * that need to be "repaired" before hardening is applied on
 * enviromments subject to the override mistake.
 *
 * @author JF Paradis
 * @author Mark S. Miller
 *
 * @module
 */

/**
 * <p>Because "repairing" replaces data properties with accessors, every
 * time a repaired property is accessed, the associated getter is invoked,
 * which degrades the runtime performance of all code executing in the
 * repaired enviromment, compared to the non-repaired case. In order
 * to maintain performance, we only repair the properties of objects
 * for which hardening causes a breakage of their normal intended usage.
 *
 * There are three unwanted cases:
 * <ul>
 * <li>Overriding properties on objects typically used as records,
 *     namely {@code "Object"} and {@code "Array"}. In the case of arrays,
 *     the situation is unintentional, a given program might not be aware
 *     that non-numerical properties are stored on the underlying object
 *     instance, not on the array. When an object is typically used as a
 *     map, we repair all of its prototype properties.
 * <li>Overriding properties on objects that provide defaults on their
 *     prototype and that programs typically set using an assignment, such as
 *     {@code "Error.prototype.message"} and {@code "Function.prototype.name"}
 *     (both default to "").
 * <li>Setting-up a prototype chain, where a constructor is set to extend
 *     another one. This is typically set by assignment, for example
 *     {@code "Child.prototype.constructor = Child"}, instead of invoking
 *     Object.defineProperty();
 *
 * <p>Each JSON record enumerates the disposition of the properties on
 * some corresponding intrinsic object.
 *
 * <p>For each such record, the values associated with its property
 * names can be:
 * <ul>
 * <li>true, in which case this property is simply repaired. The
 *     value associated with that property is not traversed. For
 *     example, {@code "Function.prototype.name"} leads to true,
 *     meaning that the {@code "name"} property of {@code
 *     "Function.prototype"} should be repaired (which is needed
 *     when inheriting from @code{Function} and setting the subclass's
 *     {@code "prototype.name"} property). If the property is
 *     already an accessor property, it is not repaired (because
 *     accessors are not subject to the override mistake).
 * <li>"*", in which case this property is not repaired but the
 *     value associated with that property are traversed and repaired.
 * <li>Another record, in which case this property is not repaired
 *     and that next record represents the disposition of the object
 *     which is its value. For example,{@code "FunctionPrototype"}
 *     leads to another record explaining which properties {@code
 *     Function.prototype} need to be repaired.
 */

/**
 * Minimal enablements when all the code is modern and known not to
 * step into the override mistake, except for the following pervasive
 * cases.
 */
       const minEnablements = {
  '%ObjectPrototype%': {
    toString: true,
  },

  '%FunctionPrototype%': {
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    name: true  // set by "precond", "ava", "node-fetch"
  },

  '%IteratorPrototype%': {
    toString: true,
    // https://github.com/tc39/proposal-iterator-helpers
    constructor: true,
    // https://github.com/tc39/proposal-iterator-helpers
    [toStringTagSymbol]: true,
  },
};

/**
 * Moderate enablements are usually good enough for legacy compat.
 */$h͏_once.minEnablements(minEnablements);
       const moderateEnablements = {
  ...minEnablements,

  '%ObjectPrototype%': {
    toString: true,
    valueOf: true,
  },

  '%ArrayPrototype%': {
    toString: true,
    push: true, // set by "Google Analytics"
    concat: true, // set by mobx generated code (old TS compiler?)
    [iteratorSymbol]: true  // set by mobx generated code (old TS compiler?)
  },

  '%IteratorPrototype%': {
    [iteratorSymbol]: true  // is sometimes used in custom iterators and generators implementations eg. @rive-app/canvas
  },

  // Function.prototype has no 'prototype' property to enable.
  // Function instances have their own 'name' and 'length' properties
  // which are configurable and non-writable. Thus, they are already
  // non-assignable anyway.
  '%FunctionPrototype%': {
    constructor: true, // set by "regenerator-runtime"
    bind: true, // set by "underscore", "express"
    toString: true  // set by "rollup"
  },

  '%ErrorPrototype%': {
    constructor: true, // set by "fast-json-patch", "node-fetch"
    message: true,
    name: true, // set by "precond", "ava", "node-fetch", "node 14"
    toString: true  // set by "bluebird"
  },

  '%TypeErrorPrototype%': {
    constructor: true, // set by "readable-stream"
    message: true, // set by "tape"
    name: true  // set by "readable-stream", "node 14"
  },

  '%SyntaxErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%RangeErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%URIErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%EvalErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  '%ReferenceErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"
  },

  // https://github.com/endojs/endo/issues/550
  '%AggregateErrorPrototype%': {
    message: true, // to match TypeErrorPrototype.message
    name: true  // set by "node 14"?
  },

  '%PromisePrototype%': {
    constructor: true  // set by "core-js"
  },

  '%TypedArrayPrototype%': '*', // set by https://github.com/feross/buffer

  '%Generator%': {
    constructor: true,
    name: true,
    toString: true,
  },
};

/**
 * The 'severe' enablement are needed because of issues tracked at
 * https://github.com/endojs/endo/issues/576
 *
 * They are like the `moderate` enablements except for the entries below.
 */$h͏_once.moderateEnablements(moderateEnablements);
       const severeEnablements = {
  ...moderateEnablements,

  /**
   * Rollup (as used at least by vega) and webpack
   * (as used at least by regenerator) both turn exports into assignments
   * to a big `exports` object that inherits directly from
   * `Object.prototype`. Some of the exported names we've seen include
   * `hasOwnProperty`, `constructor`, and `toString`. But the strategy used
   * by rollup and webpack potentionally turns any exported name
   * into an assignment rejected by the override mistake. That's why
   * the `severe` enablements takes the extreme step of enabling
   * everything on `Object.prototype`.
   *
   * In addition, code doing inheritance manually will often override
   * the `constructor` property on the new prototype by assignment. We've
   * seen this several times.
   *
   * The cost of enabling all these is that they create a miserable debugging
   * experience specifically on Node.
   * https://github.com/Agoric/agoric-sdk/issues/2324
   * explains how it confused the Node console.
   *
   * (TODO Reexamine the vscode situation. I think it may have improved
   * since the following paragraph was written.)
   *
   * The vscode debugger's object inspector shows the own data properties of
   * an object, which is typically what you want, but also shows both getter
   * and setter for every accessor property whether inherited or own.
   * With the `'*'` setting here, all the properties inherited from
   * `Object.prototype` are accessors, creating an unusable display as seen
   * at As explained at
   * https://github.com/endojs/endo/blob/master/packages/ses/docs/lockdown.md#overridetaming-options
   * Open the triangles at the bottom of that section.
   */
  '%ObjectPrototype%': '*',

  /**
   * The widely used Buffer defined at https://github.com/feross/buffer
   * on initialization, manually creates the equivalent of a subclass of
   * `TypedArray`, which it then initializes by assignment. These assignments
   * include enough of the `TypeArray` methods that here, the `severe`
   * enablements just enable them all.
   */
  '%TypedArrayPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%MapPrototype%': '*',

  /**
   * Needed to work with Immer before https://github.com/immerjs/immer/pull/914
   * is accepted.
   */
  '%SetPrototype%': '*',
};$h͏_once.severeEnablements(severeEnablements);
})()
,
// === 24. ses ./src/enable-property-overrides.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Set,String,TypeError,arrayForEach,defineProperty,getOwnPropertyDescriptor,getOwnPropertyDescriptors,isPrimitive,hasOwn,ownKeys,setHas,minEnablements,moderateEnablements,severeEnablements;$h͏_imports([["./commons.js", [["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]],["./enablements.js", [["minEnablements",[$h͏_a => (minEnablements = $h͏_a)]],["moderateEnablements",[$h͏_a => (moderateEnablements = $h͏_a)]],["severeEnablements",[$h͏_a => (severeEnablements = $h͏_a)]]]]]);
























/** @import {Reporter} from './reporting-types.js' */

/**
 * For a special set of properties defined in the `enablement` list,
 * `enablePropertyOverrides` ensures that the effect of freezing does not
 * suppress the ability to override these properties on derived objects by
 * simple assignment.
 *
 * Because of lack of sufficient foresight at the time, ES5 unfortunately
 * specified that a simple assignment to a non-existent property must fail if
 * it would override an non-writable data property of the same name in the
 * shadow of the prototype chain. In retrospect, this was a mistake, the
 * so-called "override mistake". But it is now too late and we must live with
 * the consequences.
 *
 * As a result, simply freezing an object to make it tamper proof has the
 * unfortunate side effect of breaking previously correct code that is
 * considered to have followed JS best practices, if this previous code used
 * assignment to override.
 *
 * For the enabled properties, `enablePropertyOverrides` effectively shims what
 * the assignment behavior would have been in the absence of the override
 * mistake. However, the shim produces an imperfect emulation. It shims the
 * behavior by turning these data properties into accessor properties, where
 * the accessor's getter and setter provide the desired behavior. For
 * non-reflective operations, the illusion is perfect. However, reflective
 * operations like `getOwnPropertyDescriptor` see the descriptor of an accessor
 * property rather than the descriptor of a data property. At the time of this
 * writing, this is the best we know how to do.
 *
 * To the getter of the accessor we add a property named
 * `'originalValue'` whose value is, as it says, the value that the
 * data property had before being converted to an accessor property. We add
 * this extra property to the getter for two reason:
 *
 * The harden algorithm walks the own properties reflectively, i.e., with
 * `getOwnPropertyDescriptor` semantics, rather than `[[Get]]` semantics. When
 * it sees an accessor property, it does not invoke the getter. Rather, it
 * proceeds to walk both the getter and setter as part of its transitive
 * traversal. Without this extra property, `enablePropertyOverrides` would have
 * hidden the original data property value from `harden`, which would be bad.
 * Instead, by exposing that value in an own data property on the getter,
 * `harden` finds and walks it anyway.
 *
 * We enable a form of cooperative emulation, giving reflective code an
 * opportunity to cooperate in upholding the illusion. When such cooperative
 * reflective code sees an accessor property, where the accessor's getter
 * has an `originalValue` property, it knows that the getter is
 * alleging that it is the result of the `enablePropertyOverrides` conversion
 * pattern, so it can decide to cooperatively "pretend" that it sees a data
 * property with that value.
 *
 * @param {Record<string, any>} intrinsics
 * @param {'min' | 'moderate' | 'severe'} overrideTaming
 * @param {Reporter} reporter
 * @param {Iterable<string | symbol>} [overrideDebug]
 */
               function enablePropertyOverrides(
  intrinsics,
  overrideTaming,
  { warn },
  overrideDebug = [],
) {
  const debugProperties = new Set(overrideDebug);
  function enable(path, obj, prop, desc) {
    if ('value' in desc && desc.configurable) {
      const { value } = desc;

      const isDebug = setHas(debugProperties, prop);

      // We use concise method syntax to be `this` sensitive, but still
      // omit a prototype property or [[Construct]] behavior.
      // @ts-expect-error We know there is an accessor descriptor there
      const { get: getter, set: setter } = getOwnPropertyDescriptor(
        {
          get [prop]() {
            return value;
          },
          set [prop](newValue) {
            if (obj === this) {
              throw TypeError(
                `Cannot assign to read only property '${String(
                  prop,
                )}' of '${path}'`,
              );
            }
            if (hasOwn(this, prop)) {
              this[prop] = newValue;
            } else {
              if (isDebug) {
                warn(TypeError(`Override property ${prop}`));
              }
              defineProperty(this, prop, {
                value: newValue,
                writable: true,
                enumerable: true,
                configurable: true,
              });
            }
          },
        },
        prop,
      );

      defineProperty(getter, 'originalValue', {
        value,
        writable: false,
        enumerable: false,
        configurable: false,
      });

      defineProperty(obj, prop, {
        get: getter,
        set: setter,
        enumerable: desc.enumerable,
        configurable: desc.configurable,
      });
    }
  }

  function enableProperty(path, obj, prop) {
    const desc = getOwnPropertyDescriptor(obj, prop);
    if (!desc) {
      return;
    }
    enable(path, obj, prop, desc);
  }

  function enableAllProperties(path, obj) {
    const descs = getOwnPropertyDescriptors(obj);
    if (!descs) {
      return;
    }
    // TypeScript does not allow symbols to be used as indexes because it
    // cannot recokon types of symbolized properties.
    arrayForEach(ownKeys(descs), prop => enable(path, obj, prop, descs[prop]));
  }

  function enableProperties(path, obj, plan) {
    for (const prop of ownKeys(plan)) {
      const desc = getOwnPropertyDescriptor(obj, prop);
      if (!desc || desc.get || desc.set) {
        // No not a value property, nothing to do.
        // eslint-disable-next-line no-continue
        continue;
      }

      // In case `prop` is a symbol, we first coerce it with `String`,
      // purely for diagnostic purposes.
      const subPath = `${path}.${String(prop)}`;
      const subPlan = plan[prop];

      if (subPlan === true) {
        enableProperty(subPath, obj, prop);
      } else if (subPlan === '*') {
        enableAllProperties(subPath, desc.value);
      } else if (!isPrimitive(subPlan)) {
        enableProperties(subPath, desc.value, subPlan);
      } else {
        throw TypeError(`Unexpected override enablement plan ${subPath}`);
      }
    }
  }

  let plan;
  switch (overrideTaming) {
    case 'min': {
      plan = minEnablements;
      break;
    }
    case 'moderate': {
      plan = moderateEnablements;
      break;
    }
    case 'severe': {
      plan = severeEnablements;
      break;
    }
    default: {
      throw TypeError(`unrecognized overrideTaming ${overrideTaming}`);
    }
  }

  // Do the repair.
  enableProperties('root', intrinsics, plan);
}$h͏_once.default(      enablePropertyOverrides);
})()
,
// === 25. ses ./src/tame-locale-methods.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Number,String,TypeError,defineProperty,getOwnPropertyNames,isPrimitive,regexpExec,assert;$h͏_imports([["./commons.js", [["Number",[$h͏_a => (Number = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

const localePattern = /^(\w*[a-z])Locale([A-Z]\w*)$/;

// Use concise methods to obtain named functions without constructor
// behavior or `.prototype` property.
const tamedMethods = {
  // See https://tc39.es/ecma262/#sec-string.prototype.localecompare
  localeCompare(arg) {
    if (this === null || this === undefined) {
      throw TypeError(
        'Cannot localeCompare with null or undefined "this" value',
      );
    }
    const s = `${this}`;
    const that = `${arg}`;
    if (s < that) {
      return -1;
    }
    if (s > that) {
      return 1;
    }
    s === that || Fail`expected ${q(s)} and ${q(that)} to compare`;
    return 0;
  },

  toString() {
    return `${this}`;
  },
};

const nonLocaleCompare = tamedMethods.localeCompare;
const numberToString = tamedMethods.toString;

               function tameLocaleMethods(intrinsics, localeTaming = 'safe') {
  if (localeTaming === 'unsafe') {
    return;
  }

  defineProperty(String.prototype, 'localeCompare', {
    value: nonLocaleCompare,
  });

  for (const intrinsicName of getOwnPropertyNames(intrinsics)) {
    const intrinsic = intrinsics[intrinsicName];
    if (!isPrimitive(intrinsic)) {
      for (const methodName of getOwnPropertyNames(intrinsic)) {
        const match = regexpExec(localePattern, methodName);
        if (match) {
          typeof intrinsic[methodName] === 'function' ||
            Fail`expected ${q(methodName)} to be a function`;
          const nonLocaleMethodName = `${match[1]}${match[2]}`;
          const method = intrinsic[nonLocaleMethodName];
          typeof method === 'function' ||
            Fail`function ${q(nonLocaleMethodName)} not found`;
          defineProperty(intrinsic, methodName, { value: method });
        }
      }
    }
  }

  // Numbers are special because toString accepts a radix instead of ignoring
  // all of the arguments that we would otherwise forward.
  defineProperty(Number.prototype, 'toLocaleString', {
    value: numberToString,
  });
}$h͏_once.default(      tameLocaleMethods);
})()
,
// === 26. ses ./src/make-eval-function.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([]);/**
 * makeEvalFunction()
 * A safe version of the native eval function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 *
 * @param {Function} evaluator
 */
       const makeEvalFunction = evaluator => {
  // We use the concise method syntax to create an eval without a
  // [[Construct]] behavior (such that the invocation "new eval()" throws
  // TypeError: eval is not a constructor"), but which still accepts a
  // 'this' binding.
  const newEval = {
    eval(source) {
      if (typeof source !== 'string') {
        // As per the runtime semantic of PerformEval [ECMAScript 18.2.1.1]:
        // If Type(source) is not String, return source.
        // TODO Recent proposals from Mike Samuel may change this non-string
        // rule. Track.
        return source;
      }
      return evaluator(source);
    },
  }.eval;

  return newEval;
};$h͏_once.makeEvalFunction(makeEvalFunction);
})()
,
// === 27. ses ./src/make-function-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,arrayPop,defineProperties,getPrototypeOf,assert;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);








const { Fail } = assert;

/*
 * makeFunctionConstructor()
 * A safe version of the native Function which relies on
 * the safety of `safe-eval` for confinement, unless `no-eval`
 * is specified (then a TypeError is thrown on use).
 */
       const makeFunctionConstructor = evaluator => {
  // Define an unused parameter to ensure Function.length === 1
  const newFunction = function Function(_body) {
    // Sanitize all parameters at the entry point.
    // eslint-disable-next-line prefer-rest-params
    const bodyText = `${arrayPop(arguments) || ''}`;
    // eslint-disable-next-line prefer-rest-params
    const parameters = `${arrayJoin(arguments, ',')}`;

    // Are parameters and bodyText valid code, or is someone
    // attempting an injection attack? This will throw a SyntaxError if:
    // - parameters doesn't parse as parameters
    // - bodyText doesn't parse as a function body
    // - either contain a call to super() or references a super property.
    //
    // It seems that XS may still be vulnerable to the attack explained at
    // https://github.com/tc39/ecma262/pull/2374#issuecomment-813769710
    // where `new Function('/*', '*/ ) {')` would incorrectly validate.
    // Before we worried about this, we check the parameters and bodyText
    // together in one call
    // ```js
    // new FERAL_FUNCTION(parameters, bodyTest);
    // ```
    // However, this check is vulnerable to that bug. Aside from that case,
    // all engines do seem to validate the parameters, taken by themselves,
    // correctly. And all engines do seem to validate the bodyText, taken
    // by itself correctly. So with the following two checks, SES builds a
    // correct safe `Function` constructor by composing two calls to an
    // original unsafe `Function` constructor that may suffer from this bug
    // but is otherwise correctly validating.
    //
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(parameters, '');
    // eslint-disable-next-line no-new
    new FERAL_FUNCTION(bodyText);

    // Safe to be combined. Defeat potential trailing comments.
    // TODO: since we create an anonymous function, the 'this' value
    // isn't bound to the global object as per specs, but set as undefined.
    const src = `(function anonymous(${parameters}\n) {\n${bodyText}\n})`;
    return evaluator(src);
  };

  defineProperties(newFunction, {
    // Ensure that any function created in any evaluator in a realm is an
    // instance of Function in any evaluator of the same realm.
    prototype: {
      value: FERAL_FUNCTION.prototype,
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });

  // Assert identity of Function.__proto__ accross all compartments
  getPrototypeOf(FERAL_FUNCTION) === FERAL_FUNCTION.prototype ||
    Fail`Function prototype is the same accross compartments`;
  getPrototypeOf(newFunction) === FERAL_FUNCTION.prototype ||
    Fail`Function constructor prototype is the same across compartments`;

  return newFunction;
};$h͏_once.makeFunctionConstructor(makeFunctionConstructor);
})()
,
// === 28. ses ./src/global-object.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,assign,create,defineProperty,entries,freeze,hasOwn,unscopablesSymbol,makeEvalFunction,makeFunctionConstructor,constantProperties,universalPropertyNames;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["unscopablesSymbol",[$h͏_a => (unscopablesSymbol = $h͏_a)]]]],["./make-eval-function.js", [["makeEvalFunction",[$h͏_a => (makeEvalFunction = $h͏_a)]]]],["./make-function-constructor.js", [["makeFunctionConstructor",[$h͏_a => (makeFunctionConstructor = $h͏_a)]]]],["./permits.js", [["constantProperties",[$h͏_a => (constantProperties = $h͏_a)]],["universalPropertyNames",[$h͏_a => (universalPropertyNames = $h͏_a)]]]]]);













/**
 * The host's ordinary global object is not provided by a `with` block, so
 * assigning to Symbol.unscopables has no effect.
 * Since this shim uses `with` blocks to create a confined lexical scope for
 * guest programs, we cannot emulate the proper behavior.
 * With this shim, assigning Symbol.unscopables causes the given lexical
 * names to fall through to the terminal scope proxy.
 * But, we can install this setter to prevent a program from proceding on
 * this false assumption.
 *
 * @param {object} globalObject
 */
       const setGlobalObjectSymbolUnscopables = globalObject => {
  defineProperty(
    globalObject,
    unscopablesSymbol,
    freeze(
      assign(create(null), {
        set: freeze(() => {
          throw TypeError(
            `Cannot set Symbol.unscopables of a Compartment's globalThis`,
          );
        }),
        enumerable: false,
        configurable: false,
      }),
    ),
  );
};

/**
 * setGlobalObjectConstantProperties()
 * Initializes a new global object using a process similar to ECMA specifications
 * (SetDefaultGlobalBindings). This process is split between this function and
 * `setGlobalObjectMutableProperties`.
 *
 * @param {object} globalObject
 */$h͏_once.setGlobalObjectSymbolUnscopables(setGlobalObjectSymbolUnscopables);
       const setGlobalObjectConstantProperties = globalObject => {
  for (const [name, constant] of entries(constantProperties)) {
    defineProperty(globalObject, name, {
      value: constant,
      writable: false,
      enumerable: false,
      configurable: false,
    });
  }
};

/**
 * setGlobalObjectMutableProperties()
 * Create new global object using a process similar to ECMA specifications
 * (portions of SetRealmGlobalObject and SetDefaultGlobalBindings).
 * `newGlobalPropertyNames` should be either `initialGlobalPropertyNames` or
 * `sharedGlobalPropertyNames`.
 *
 * @param {object} globalObject
 * @param {object} args
 * @param {object} args.intrinsics
 * @param {object} args.newGlobalPropertyNames
 * @param {Function} args.makeCompartmentConstructor
 * @param {(object) => void} args.markVirtualizedNativeFunction
 * @param {Compartment} [args.parentCompartment]
 */$h͏_once.setGlobalObjectConstantProperties(setGlobalObjectConstantProperties);
       const setGlobalObjectMutableProperties = (
  globalObject,
  {
    intrinsics,
    newGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
    parentCompartment,
  },
) => {
  for (const [name, intrinsicName] of entries(universalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  for (const [name, intrinsicName] of entries(newGlobalPropertyNames)) {
    if (hasOwn(intrinsics, intrinsicName)) {
      defineProperty(globalObject, name, {
        value: intrinsics[intrinsicName],
        writable: true,
        enumerable: false,
        configurable: true,
      });
    }
  }

  const perCompartmentGlobals = {
    globalThis: globalObject,
  };

  perCompartmentGlobals.Compartment = freeze(
    makeCompartmentConstructor(
      makeCompartmentConstructor,
      intrinsics,
      markVirtualizedNativeFunction,
      {
        parentCompartment,
        enforceNew: true,
      },
    ),
  );

  // TODO These should still be tamed according to the permits before
  // being made available.
  for (const [name, value] of entries(perCompartmentGlobals)) {
    defineProperty(globalObject, name, {
      value,
      writable: true,
      enumerable: false,
      configurable: true,
    });
    if (typeof value === 'function') {
      markVirtualizedNativeFunction(value);
    }
  }
};

/**
 * setGlobalObjectEvaluators()
 * Set the eval and the Function evaluator on the global object with given evalTaming policy.
 *
 * @param {object} globalObject
 * @param {Function} evaluator
 * @param {(object) => void} markVirtualizedNativeFunction
 */$h͏_once.setGlobalObjectMutableProperties(setGlobalObjectMutableProperties);
       const setGlobalObjectEvaluators = (
  globalObject,
  evaluator,
  markVirtualizedNativeFunction,
) => {
  {
    const f = freeze(makeEvalFunction(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'eval', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
  {
    const f = freeze(makeFunctionConstructor(evaluator));
    markVirtualizedNativeFunction(f);
    defineProperty(globalObject, 'Function', {
      value: f,
      writable: true,
      enumerable: false,
      configurable: true,
    });
  }
};$h͏_once.setGlobalObjectEvaluators(setGlobalObjectEvaluators);
})()
,
// === 29. ses ./src/strict-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,String,TypeError,ReferenceError,create,freeze,getOwnPropertyDescriptors,assert;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail, quote: q } = assert;

/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/**
 * alwaysThrowHandler
 * This is an object that throws if any property is called. It's used as
 * a proxy handler which throws on any trap called.
 * It's made from a proxy with a get trap that throws. It's safe to
 * create one and share it between all Proxy handlers.
 */
       const alwaysThrowHandler = new Proxy(
  objTarget,
  freeze({
    get(_shadow, prop) {
      Fail`Please report unexpected scope handler trap: ${q(String(prop))}`;
    },
  }),
);

/*
 * scopeProxyHandlerProperties
 * scopeTerminatorHandler manages a strictScopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals".
 */$h͏_once.alwaysThrowHandler(alwaysThrowHandler);
const scopeProxyHandlerProperties = {
  get(_shadow, _prop) {
    return undefined;
  },

  set(_shadow, prop, _value) {
    // We should only hit this if the has() hook returned true matches the v8
    // ReferenceError message "Uncaught ReferenceError: xyz is not defined"
    throw ReferenceError(`${String(prop)} is not defined`);
  },

  has(_shadow, prop) {
    // we must at least return true for all properties on the realm globalThis
    return true;
  },

  // note: this is likely a bug of safari
  // https://bugs.webkit.org/show_bug.cgi?id=195534
  getPrototypeOf(_shadow) {
    return null;
  },

  // See https://github.com/endojs/endo/issues/1510
  // TODO: report as bug to v8 or Chrome, and record issue link here.
  getOwnPropertyDescriptor(_shadow, prop) {
    // Coerce with `String` in case prop is a symbol.
    const quotedProp = q(String(prop));
    // eslint-disable-next-line @endo/no-polymorphic-call
    console.warn(
      `getOwnPropertyDescriptor trap on scopeTerminatorHandler for ${quotedProp}`,
      TypeError().stack,
    );
    return undefined;
  },

  // See https://github.com/endojs/endo/issues/1490
  // TODO Report bug to JSC or Safari
  ownKeys(_shadow) {
    return [];
  },
};

// The scope handler's prototype is a proxy that throws if any trap other
// than get/set/has are run (like getOwnPropertyDescriptors, apply,
// getPrototypeOf).
       const strictScopeTerminatorHandler = freeze(
  create(
    alwaysThrowHandler,
    getOwnPropertyDescriptors(scopeProxyHandlerProperties),
  ),
);$h͏_once.strictScopeTerminatorHandler(strictScopeTerminatorHandler);

       const strictScopeTerminator = new Proxy(
  objTarget,
  strictScopeTerminatorHandler,
);$h͏_once.strictScopeTerminator(strictScopeTerminator);
})()
,
// === 30. ses ./src/sloppy-globals-scope-terminator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Proxy,create,freeze,getOwnPropertyDescriptors,reflectSet,strictScopeTerminatorHandler,alwaysThrowHandler;$h͏_imports([["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminatorHandler",[$h͏_a => (strictScopeTerminatorHandler = $h͏_a)]],["alwaysThrowHandler",[$h͏_a => (alwaysThrowHandler = $h͏_a)]]]]]);











/**
 * `freeze` but not `harden` the proxy target so it remains trapping.
 * Thus, it should not be shared outside this module.
 *
 * @see https://github.com/endojs/endo/blob/master/packages/ses/docs/preparing-for-stabilize.md
 */
const objTarget = freeze({ __proto__: null });

/*
 * createSloppyGlobalsScopeTerminator()
 * strictScopeTerminatorHandler manages a scopeTerminator Proxy which serves as
 * the final scope boundary that will always return "undefined" in order
 * to prevent access to "start compartment globals". When "sloppyGlobalsMode"
 * is true, the Proxy will perform sets on the "globalObject".
 */
       const createSloppyGlobalsScopeTerminator = globalObject => {
  const scopeProxyHandlerProperties = {
    // inherit scopeTerminator behavior
    ...strictScopeTerminatorHandler,

    // Redirect set properties to the globalObject.
    set(_shadow, prop, value) {
      return reflectSet(globalObject, prop, value);
    },

    // Always claim to have a potential property in order to be the recipient of a set
    has(_shadow, _prop) {
      return true;
    },
  };

  // The scope handler's prototype is a proxy that throws if any trap other
  // than get/set/has are run (like getOwnPropertyDescriptors, apply,
  // getPrototypeOf).
  const sloppyGlobalsScopeTerminatorHandler = freeze(
    create(
      alwaysThrowHandler,
      getOwnPropertyDescriptors(scopeProxyHandlerProperties),
    ),
  );

  const sloppyGlobalsScopeTerminator = new Proxy(
    objTarget,
    sloppyGlobalsScopeTerminatorHandler,
  );

  return sloppyGlobalsScopeTerminator;
};$h͏_once.createSloppyGlobalsScopeTerminator(createSloppyGlobalsScopeTerminator);
freeze(createSloppyGlobalsScopeTerminator);
})()
,
// === 31. ses ./src/eval-scope.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_EVAL,create,defineProperties,freeze,assert;$h͏_imports([["./commons.js", [["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);



const { Fail } = assert;

// We attempt to frustrate stack bumping attacks on the safe evaluator
// (`make-safe-evaluator.js`).
// A stack bumping attack forces an API call to throw a stack overflow
// `RangeError` at an inopportune time.
// The attacker arranges for the stack to be sufficiently deep that the API
// consumes exactly enough stack frames to throw an exception.
//
// For the safe evaluator, an exception thrown between adding and then deleting
// `eval` on `evalScope` could leak the real `eval` to an attacker's lexical
// scope.
// This would be sufficiently disastrous that we guard against it twice.
// First, we delete `eval` from `evalScope` immediately before rendering it to
// the guest program's lexical scope.
//
// If the attacker manages to arrange for `eval` to throw an exception after we
// call `allowNextEvalToBeUnsafe` but before the guest program accesses `eval`,
// it would be able to access `eval` once more in its own code.
// Although they could do no harm with a direct `eval`, they would be able to
// escape to the true global scope with an indirect `eval`.
//
//   prepareStack(depth, () => {
//     (eval)('');
//   });
//   const unsafeEval = (eval);
//   const safeEval = (eval);
//   const realGlobal = unsafeEval('globalThis');
//
// To protect against that case, we also delete `eval` from the `evalScope` in
// a `finally` block surrounding the call to the safe evaluator.
// The only way to reach this case is if `eval` remains on `evalScope` due to
// an attack, so we assume that attack would have have invalided our isolation
// and revoke all future access to the evaluator.
//
// To defeat a stack bumping attack, we must use fewer stack frames to recover
// in that `finally` block than we used in the `try` block.
// We have no reliable guarantees about how many stack frames a block of
// JavaScript will consume.
// Function inlining, tail-call optimization, variations in the size of a stack
// frame, and block scopes may affect the depth of the stack.
// The only number of acceptable stack frames to use in the finally block is
// zero.
// We only use property assignment and deletion in the safe evaluator's
// `finally` block.
// We use `delete evalScope.eval` to withhold the evaluator.
// We assign an envelope object over `evalScopeKit.revoked` to revoke the
// evaluator.
//
// This is why we supply a meaningfully named function for
// `allowNextEvalToBeUnsafe` but do not provide a corresponding
// `revokeAccessToUnsafeEval` or even simply `revoke`.
// These recovery routines are expressed inline in the safe evaluator.

       const makeEvalScopeKit = () => {
  const evalScope = create(null);
  const oneTimeEvalProperties = freeze({
    eval: {
      get() {
        delete evalScope.eval;
        return FERAL_EVAL;
      },
      enumerable: false,
      configurable: true,
    },
  });

  const evalScopeKit = {
    evalScope,
    allowNextEvalToBeUnsafe() {
      const { revoked } = evalScopeKit;
      if (revoked !== null) {
        Fail`a handler did not reset allowNextEvalToBeUnsafe ${revoked.err}`;
      }
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // We avoid defineProperty because it consumes an extra stack frame taming
      // its return value.
      defineProperties(evalScope, oneTimeEvalProperties);
    },
    /** @type {null | { err: any }} */
    revoked: null,
  };

  return evalScopeKit;
};$h͏_once.makeEvalScopeKit(makeEvalScopeKit);
})()
,
// === 32. ses ./src/get-source-url.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,regexpExec,stringSlice;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]]]]]);

// Captures a key and value of the form #key=value or @key=value
const sourceMetaEntryRegExp =
  '\\s*[@#]\\s*([a-zA-Z][a-zA-Z0-9]*)\\s*=\\s*([^\\s\\*]*)';
// Captures either a one-line or multi-line comment containing
// one #key=value or @key=value.
// Produces two pairs of capture groups, but the initial two may be undefined.
// On account of the mechanics of regular expressions, scanning from the end
// does not allow us to capture every pair, so getSourceURL must capture and
// trim until there are no matching comments.
const sourceMetaEntriesRegExp = new FERAL_REG_EXP(
  `(?:\\s*//${sourceMetaEntryRegExp}|/\\*${sourceMetaEntryRegExp}\\s*\\*/)\\s*$`,
);

/**
 * @param {string} src
 */
       const getSourceURL = src => {
  let sourceURL = '<unknown>';

  // Our regular expression matches the last one or two comments with key value
  // pairs at the end of the source, avoiding a scan over the entire length of
  // the string, but at the expense of being able to capture all the (key,
  // value) pair meta comments at the end of the source, which may include
  // sourceMapURL in addition to sourceURL.
  // So, we sublimate the comments out of the source until no source or no
  // comments remain.
  while (src.length > 0) {
    const match = regexpExec(sourceMetaEntriesRegExp, src);
    if (match === null) {
      break;
    }
    src = stringSlice(src, 0, src.length - match[0].length);

    // We skip $0 since it contains the entire match.
    // The match contains four capture groups,
    // two (key, value) pairs, the first of which
    // may be undefined.
    // On the off-chance someone put two sourceURL comments in their code with
    // different commenting conventions, the latter has precedence.
    if (match[3] === 'sourceURL') {
      sourceURL = match[4];
    } else if (match[1] === 'sourceURL') {
      sourceURL = match[2];
    }
  }

  return sourceURL;
};$h͏_once.getSourceURL(getSourceURL);
})()
,
// === 33. ses ./src/transforms.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_REG_EXP,SyntaxError,regexpReplace,sealRegexp,stringSearch,stringSlice,stringSplit,freeze,getSourceURL;$h͏_imports([["./commons.js", [["FERAL_REG_EXP",[$h͏_a => (FERAL_REG_EXP = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["regexpReplace",[$h͏_a => (regexpReplace = $h͏_a)]],["sealRegexp",[$h͏_a => (sealRegexp = $h͏_a)]],["stringSearch",[$h͏_a => (stringSearch = $h͏_a)]],["stringSlice",[$h͏_a => (stringSlice = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]]]],["./get-source-url.js", [["getSourceURL",[$h͏_a => (getSourceURL = $h͏_a)]]]]]);













/**
 * Find the first occurence of the given pattern and return
 * the location as the approximate line number.
 *
 * @param {string} src
 * @param {RegExp} pattern
 * @returns {number}
 */
function getLineNumber(src, pattern) {
  const index = stringSearch(src, pattern);
  if (index < 0) {
    return -1;
  }

  // The importPattern incidentally captures an initial \n in
  // an attempt to reject a . prefix, so we need to offset
  // the line number in that case.
  const adjustment = src[index] === '\n' ? 1 : 0;

  return stringSplit(stringSlice(src, 0, index), '\n').length + adjustment;
}

// /////////////////////////////////////////////////////////////////////////////

const htmlCommentPattern = sealRegexp(
  new FERAL_REG_EXP(`(?:${'<'}!--|--${'>'})`, 'g'),
);

/**
 * Conservatively reject the source text if it may contain text that some
 * JavaScript parsers may treat as an html-like comment. To reject without
 * parsing, `rejectHtmlComments` will also reject some other text as well.
 *
 * https://www.ecma-international.org/ecma-262/9.0/index.html#sec-html-like-comments
 * explains that JavaScript parsers may or may not recognize html
 * comment tokens "<" immediately followed by "!--" and "--"
 * immediately followed by ">" in non-module source text, and treat
 * them as a kind of line comment. Since otherwise both of these can
 * appear in normal JavaScript source code as a sequence of operators,
 * we have the terrifying possibility of the same source code parsing
 * one way on one correct JavaScript implementation, and another way
 * on another.
 *
 * This shim takes the conservative strategy of just rejecting source
 * text that contains these strings anywhere. Note that this very
 * source file is written strangely to avoid mentioning these
 * character strings explicitly.
 *
 * We do not write the regexp in a straightforward way, so that an
 * apparennt html comment does not appear in this file. Thus, we avoid
 * rejection by the overly eager rejectDangerousSources.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectHtmlComments = src => {
  const lineNumber = getLineNumber(src, htmlCommentPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_HTML_COMMENT_REJECTED.md
  throw SyntaxError(
    `Possible HTML comment rejected at ${name}:${lineNumber}. (SES_HTML_COMMENT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectHtmlComments` to evade *that*
 * rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each alleged html comment with the space-separated
 * JavaScript operator sequence that it may mean, assuming that it appears
 * outside of a comment or literal string, in source code where the JS
 * parser makes no special case for html comments (like module source code).
 * In that case, this evasion preserves the meaning of the program, though it
 * does change the souce column numbers on each effected line.
 *
 * If the html comment appeared in a literal (a string literal, regexp literal,
 * or a template literal), then this evasion will change the meaning of the
 * program by changing the text of that literal.
 *
 * If the html comment appeared in a JavaScript comment, then this evasion does
 * not change the meaning of the program because it only changes the contents of
 * those comments.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectHtmlComments(rejectHtmlComments);
       const evadeHtmlCommentTest = src => {
  const replaceFn = match => (match[0] === '<' ? '< ! --' : '-- >');
  return regexpReplace(htmlCommentPattern, src, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeHtmlCommentTest(evadeHtmlCommentTest);
const importPattern = sealRegexp(
  new FERAL_REG_EXP('(^|[^.]|\\.\\.\\.)\\bimport(\\s*(?:\\(|/[/*]))', 'g'),
);

/**
 * Conservatively reject the source text if it may contain a dynamic
 * import expression. To reject without parsing, `rejectImportExpressions` will
 * also reject some other text as well.
 *
 * The proposed dynamic import expression is the only syntax currently
 * proposed, that can appear in non-module JavaScript code, that
 * enables direct access to the outside world that cannot be
 * suppressed or intercepted without parsing and rewriting. Instead,
 * this shim conservatively rejects any source text that seems to
 * contain such an expression. To do this safely without parsing, we
 * must also reject some valid programs, i.e., those containing
 * apparent import expressions in literal strings or comments.
 *
 * The current conservative rule looks for the identifier "import"
 * followed by either an open paren or something that looks like the
 * beginning of a comment. We assume that we do not need to worry
 * about html comment syntax because that was already rejected by
 * rejectHtmlComments.
 *
 * this \s *must* match all kinds of syntax-defined whitespace. If e.g.
 * U+2028 (LINE SEPARATOR) or U+2029 (PARAGRAPH SEPARATOR) is treated as
 * whitespace by the parser, but not matched by /\s/, then this would admit
 * an attack like: import\u2028('power.js') . We're trying to distinguish
 * something like that from something like importnotreally('power.js') which
 * is perfectly safe.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectImportExpressions = src => {
  const lineNumber = getLineNumber(src, importPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_IMPORT_REJECTED.md
  throw SyntaxError(
    `Possible import expression rejected at ${name}:${lineNumber}. (SES_IMPORT_REJECTED)`,
  );
};

/**
 * An optional transform to place ahead of `rejectImportExpressions` to evade
 * *that* rejection. However, it may change the meaning of the program.
 *
 * This evasion replaces each suspicious `import` identifier with `__import__`.
 * If the alleged import expression appears in a JavaScript comment, this
 * evasion will not change the meaning of the program. If it appears in a
 * literal (string literal, regexp literal, or a template literal), then this
 * evasion will change the contents of that literal. If it appears as code
 * where it would be parsed as an expression, then it might or might not change
 * the meaning of the program, depending on the binding, if any, of the lexical
 * variable `__import__`.
 *
 * @param {string} src
 * @returns {string}
 */$h͏_once.rejectImportExpressions(rejectImportExpressions);
       const evadeImportExpressionTest = src => {
  const replaceFn = (_, p1, p2) => `${p1}__import__${p2}`;
  return regexpReplace(importPattern, src, replaceFn);
};

// /////////////////////////////////////////////////////////////////////////////
$h͏_once.evadeImportExpressionTest(evadeImportExpressionTest);
const someDirectEvalPattern = new FERAL_REG_EXP(
  '(^|[^.])\\beval(\\s*\\()',
  'g',
);

/**
 * Heuristically reject some text that seems to contain a direct eval
 * expression, with both false positives and false negavives. To reject without
 * parsing, `rejectSomeDirectEvalExpressions` may will also reject some other
 * text as well. It may also accept source text that contains a direct eval
 * written oddly, such as `(eval)(src)`. This false negative is not a security
 * vulnerability. Rather it is a compat hazard because it will execute as
 * an indirect eval under the SES-shim but as a direct eval on platforms that
 * support SES directly (like XS).
 *
 * The shim cannot correctly emulate a direct eval as explained at
 * https://github.com/Agoric/realms-shim/issues/12
 * If we did not reject direct eval syntax, we would
 * accidentally evaluate these with an emulation of indirect eval. To
 * prevent future compatibility problems, in shifting from use of the
 * shim to genuine platform support for the proposal, we should
 * instead statically reject code that seems to contain a direct eval
 * expression.
 *
 * As with the dynamic import expression, to avoid a full parse, we do
 * this approximately with a regexp, that will also reject strings
 * that appear safely in comments or strings. Unlike dynamic import,
 * if we miss some, this only creates future compat problems, not
 * security problems. Thus, we are only trying to catch innocent
 * occurrences, not malicious one. In particular, `(eval)(...)` is
 * direct eval syntax that would not be caught by the following regexp.
 *
 * Exported for unit tests.
 *
 * @param {string} src
 * @returns {string}
 */
       const rejectSomeDirectEvalExpressions = src => {
  const lineNumber = getLineNumber(src, someDirectEvalPattern);
  if (lineNumber < 0) {
    return src;
  }
  const name = getSourceURL(src);
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_EVAL_REJECTED.md
  throw SyntaxError(
    `Possible direct eval expression rejected at ${name}:${lineNumber}. (SES_EVAL_REJECTED)`,
  );
};

// /////////////////////////////////////////////////////////////////////////////

/**
 * A transform that bundles together the transforms that must unconditionally
 * happen last in order to ensure safe evaluation without parsing.
 *
 * @param {string} source
 * @returns {string}
 */$h͏_once.rejectSomeDirectEvalExpressions(rejectSomeDirectEvalExpressions);
       const mandatoryTransforms = source => {
  source = rejectHtmlComments(source);
  source = rejectImportExpressions(source);
  return source;
};

/**
 * Starting with `source`, apply each transform to the result of the
 * previous one, returning the result of the last transformation.
 *
 * @param {string} source
 * @param {((str: string) => string)[]} transforms
 * @returns {string}
 */$h͏_once.mandatoryTransforms(mandatoryTransforms);
       const applyTransforms = (source, transforms) => {
  for (let i = 0, l = transforms.length; i < l; i += 1) {
    const transform = transforms[i];
    source = transform(source);
  }
  return source;
};

// export all as a frozen object
$h͏_once.applyTransforms(applyTransforms);const transforms=freeze({
  rejectHtmlComments: freeze(rejectHtmlComments),
  evadeHtmlCommentTest: freeze(evadeHtmlCommentTest),
  rejectImportExpressions: freeze(rejectImportExpressions),
  evadeImportExpressionTest: freeze(evadeImportExpressionTest),
  rejectSomeDirectEvalExpressions: freeze(rejectSomeDirectEvalExpressions),
  mandatoryTransforms: freeze(mandatoryTransforms),
  applyTransforms: freeze(applyTransforms),
});$h͏_once.transforms(transforms);
})()
,
// === 34. ses ./src/scope-constants.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let arrayFilter,arrayIncludes,getOwnPropertyDescriptor,getOwnPropertyNames,hasOwn,regexpExec,Set,setHas;$h͏_imports([["./commons.js", [["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["setHas",[$h͏_a => (setHas = $h͏_a)]]]]]);










/**
 * reservedNames
 * In JavaScript you cannot use reserved words as variable names (except for
 * "eval", which is specially reserved to prevent shadowing).
 * https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#sec-identifier-names
 */
const reservedNames = new Set([
  // 11.6.2.1 Keywords
  'await',
  'break',
  'case',
  'catch',
  'class',
  'const',
  'continue',
  'debugger',
  'default',
  'delete',
  'do',
  'else',
  'export',
  'extends',
  'finally',
  'for',
  'function',
  'if',
  'import',
  'in',
  'instanceof',
  'new',
  'return',
  'super',
  'switch',
  'this',
  'throw',
  'try',
  'typeof',
  'var',
  'void',
  'while',
  'with',
  'yield',

  // Also reserved when parsing strict mode code
  'let',
  'static',

  // 11.6.2.2 Future Reserved Words
  'enum',

  // Also reserved when parsing strict mode code
  'implements',
  'package',
  'protected',
  'interface',
  'private',
  'public',

  // Reserved but not mentioned in specs
  'await',

  'null',
  'true',
  'false',

  'this',
  'arguments',

  // Reserved by us
  'eval',
]);

/**
 * identifierPattern
 * Simplified validation of identifier names: may only contain alphanumeric
 * characters (or "$" or "_"), and may not start with a digit. This is safe
 * and does not reduces the compatibility of the shim. The motivation for
 * this limitation was to decrease the complexity of the implementation,
 * and to maintain a resonable level of performance.
 * Note: \w is equivalent [a-zA-Z_0-9]
 * See 11.6.1 Identifier Names
 */
const identifierPattern = /^[a-zA-Z_$][\w$]*$/;

/**
 * isValidIdentifierName()
 * Is a value allowed as an arbitrary identifier name?
 *
 * @param {string} name
 */
       const isValidIdentifierName = name =>
  !setHas(reservedNames, name) && !!regexpExec(identifierPattern, name);

/*
 * isImmutableDataProperty
 */$h͏_once.isValidIdentifierName(isValidIdentifierName);

function isImmutableDataProperty(obj, name) {
  const desc = getOwnPropertyDescriptor(obj, name);
  return (
    desc &&
    //
    // The getters will not have .writable, don't let the falsyness of
    // 'undefined' trick us: test with === false, not ! . However descriptors
    // inherit from the (potentially poisoned) global object, so we might see
    // extra properties which weren't really there. Accessor properties have
    // 'get/set/enumerable/configurable', while data properties have
    // 'value/writable/enumerable/configurable'.
    desc.configurable === false &&
    desc.writable === false &&
    //
    // Checks for data properties because they're the only ones we can
    // optimize (accessors are most likely non-constant). Descriptors can't
    // can't have accessors and value properties at the same time, therefore
    // this check is sufficient. Using explicit own property deal with the
    // case where Object.prototype has been poisoned.
    hasOwn(desc, 'value')
  );
}

/**
 * getScopeConstants()
 * What variable names might be brought into scope? These include all
 * property names which can be variable names, including the names
 * of inherited properties. It excludes symbols and names which are
 * keywords. We drop symbols safely. Currently, this shim refuses
 * service if any of the names are keywords or keyword-like. This is
 * safe and only affects performance optimization.
 *
 * @param {object} globalObject
 * @param {object} moduleLexicals
 */
       const getScopeConstants = (globalObject, moduleLexicals = {}) => {
  // getOwnPropertyNames() does ignore Symbols so we don't need to
  // filter them out.
  const globalObjectNames = getOwnPropertyNames(globalObject);
  const moduleLexicalNames = getOwnPropertyNames(moduleLexicals);

  // Collect all valid & immutable identifiers from the endowments.
  const moduleLexicalConstants = arrayFilter(
    moduleLexicalNames,
    name =>
      isValidIdentifierName(name) &&
      isImmutableDataProperty(moduleLexicals, name),
  );

  // Collect all valid & immutable identifiers from the global that
  // are also not present in the endowments (immutable or not).
  const globalObjectConstants = arrayFilter(
    globalObjectNames,
    name =>
      // Can't define a constant: it would prevent a
      // lookup on the endowments.
      !arrayIncludes(moduleLexicalNames, name) &&
      isValidIdentifierName(name) &&
      isImmutableDataProperty(globalObject, name),
  );

  return {
    globalObjectConstants,
    moduleLexicalConstants,
  };
};$h͏_once.getScopeConstants(getScopeConstants);
})()
,
// === 35. ses ./src/make-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,arrayJoin,apply,getScopeConstants;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]]]],["./scope-constants.js", [["getScopeConstants",[$h͏_a => (getScopeConstants = $h͏_a)]]]]]);




/**
 * buildOptimizer()
 * Given an array of identifiers, the optimizer returns a `const` declaration
 * destructuring `this.${name}`.
 *
 * @param {Array<string>} constants
 * @param {string} name
 */
function buildOptimizer(constants, name) {
  // No need to build an optimizer when there are no constants.
  if (constants.length === 0) return '';
  // Use 'this' to avoid going through the scope proxy, which is unnecessary
  // since the optimizer only needs references to the safe global.
  // Destructure the constants from the target scope object.
  return `const {${arrayJoin(constants, ',')}} = this.${name};`;
}

/**
 * makeEvaluate()
 * Create an 'evaluate' function with the correct optimizer inserted.
 *
 * @param {object} context
 * @param {object} context.evalScope
 * @param {object} context.moduleLexicals
 * @param {object} context.globalObject
 * @param {object} context.scopeTerminator
 */
       const makeEvaluate = context => {
  const { globalObjectConstants, moduleLexicalConstants } = getScopeConstants(
    context.globalObject,
    context.moduleLexicals,
  );
  const globalObjectOptimizer = buildOptimizer(
    globalObjectConstants,
    'globalObject',
  );
  const moduleLexicalOptimizer = buildOptimizer(
    moduleLexicalConstants,
    'moduleLexicals',
  );

  // Create a function in sloppy mode, so that we can use 'with'. It returns
  // a function in strict mode that evaluates the provided code using direct
  // eval, and thus in strict mode in the same scope. We must be very careful
  // to not create new names in this scope

  // 1: we use multiple nested 'with' to catch all free variable names. The
  // `this` value of the outer sloppy function holds the different scope
  // layers, from inner to outer:
  //    a) `evalScope` which must release the `FERAL_EVAL` as 'eval' once for
  //       every invocation of the inner `evaluate` function in order to
  //       trigger direct eval. The direct eval semantics is what allows the
  //       evaluated code to lookup free variable names on the other scope
  //       objects and not in global scope.
  //    b) `moduleLexicals` which provide a way to introduce free variables
  //       that are not available on the globalObject.
  //    c) `globalObject` is the global scope object of the evaluator, aka the
  //       Compartment's `globalThis`.
  //    d) `scopeTerminator` is a proxy object which prevents free variable
  //       lookups to escape to the start compartment's global object.
  // 2: `optimizer`s catch constant variable names for speed.
  // 3: The inner strict `evaluate` function should be passed two parameters:
  //    a) its arguments[0] is the source to be directly evaluated.
  //    b) its 'this' is the this binding seen by the code being
  //       directly evaluated (the globalObject).

  // Notes:
  // - The `optimizer` strings only lookup values on the `globalObject` and
  //   `moduleLexicals` objects by construct. Keywords like 'function' are
  //   reserved and cannot be used as a variable, so they are excluded from the
  //   optimizer. Furthermore to prevent shadowing 'eval', while a valid
  //   identifier, that name is also explicitly excluded.
  // - when 'eval' is looked up in the `evalScope`, the powerful unsafe eval
  //   intrinsic is returned after automatically removing it from the
  //   `evalScope`. Any further reference to 'eval' in the evaluate string will
  //   get the tamed evaluator from the `globalObject`, if any.

  // TODO https://github.com/endojs/endo/issues/816
  // The optimizer currently runs under sloppy mode, and although we doubt that
  // there is any vulnerability introduced just by running the optimizer
  // sloppy, we are much more confident in the semantics of strict mode.
  // The `evaluate` function can be and is reused across multiple evaluations.
  // Since the optimizer should not be re-evaluated every time, it cannot be
  // inside the `evaluate` closure. While we could potentially nest an
  // intermediate layer of `() => {'use strict'; ${optimizers}; ...`, it
  // doesn't seem worth the overhead and complexity.
  const evaluateFactory = FERAL_FUNCTION(`
    with (this.scopeTerminator) {
      with (this.globalObject) {
        with (this.moduleLexicals) {
          with (this.evalScope) {
            ${globalObjectOptimizer}
            ${moduleLexicalOptimizer}
            return function() {
              'use strict';
              return eval(arguments[0]);
            };
          }
        }
      }
    }
  `);

  return apply(evaluateFactory, context, []);
};$h͏_once.makeEvaluate(makeEvaluate);
})()
,
// === 36. ses ./src/make-safe-evaluator.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let apply,arrayFlatMap,freeze,identity,strictScopeTerminator,createSloppyGlobalsScopeTerminator,makeEvalScopeKit,applyTransforms,mandatoryTransforms,makeEvaluate,assert;$h͏_imports([["./commons.js", [["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]]]],["./strict-scope-terminator.js", [["strictScopeTerminator",[$h͏_a => (strictScopeTerminator = $h͏_a)]]]],["./sloppy-globals-scope-terminator.js", [["createSloppyGlobalsScopeTerminator",[$h͏_a => (createSloppyGlobalsScopeTerminator = $h͏_a)]]]],["./eval-scope.js", [["makeEvalScopeKit",[$h͏_a => (makeEvalScopeKit = $h͏_a)]]]],["./transforms.js", [["applyTransforms",[$h͏_a => (applyTransforms = $h͏_a)]],["mandatoryTransforms",[$h͏_a => (mandatoryTransforms = $h͏_a)]]]],["./make-evaluate.js", [["makeEvaluate",[$h͏_a => (makeEvaluate = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);










const { Fail } = assert;

/**
 * makeSafeEvaluator()
 * Build the low-level operation used by all evaluators:
 * eval(), Function(), Compartment.prototype.evaluate().
 *
 * @param {object} options
 * @param {object} options.globalObject
 * @param {object} [options.moduleLexicals]
 * @param {Array<import('./lockdown.js').Transform>} [options.globalTransforms]
 * @param {boolean} [options.sloppyGlobalsMode]
 */
       const makeSafeEvaluator = ({
  globalObject,
  moduleLexicals = {},
  globalTransforms = [],
  sloppyGlobalsMode = false,
}) => {
  const scopeTerminator = sloppyGlobalsMode
    ? createSloppyGlobalsScopeTerminator(globalObject)
    : strictScopeTerminator;
  const evalScopeKit = makeEvalScopeKit();
  const { evalScope } = evalScopeKit;

  const evaluateContext = freeze({
    evalScope,
    moduleLexicals,
    globalObject,
    scopeTerminator,
  });

  // Defer creating the actual evaluator to first use.
  // Creating a compartment should be possible in no-eval environments
  // It also allows more global constants to be captured by the optimizer
  let evaluate;
  const provideEvaluate = () => {
    if (!evaluate) {
      evaluate = makeEvaluate(evaluateContext);
    }
  };

  /**
   * @param {string} source
   * @param {object} [options]
   * @param {Array<import('./lockdown.js').Transform>} [options.localTransforms]
   */
  const safeEvaluate = (source, options) => {
    const { localTransforms = [] } = options || {};
    provideEvaluate();

    // Execute the mandatory transforms last to ensure that any rewritten code
    // meets those mandatory requirements.
    source = applyTransforms(
      source,
      arrayFlatMap(
        [localTransforms, globalTransforms, [mandatoryTransforms]],
        identity,
      ),
    );

    let err;
    try {
      // Allow next reference to eval produce the unsafe FERAL_EVAL.
      // eslint-disable-next-line @endo/no-polymorphic-call
      evalScopeKit.allowNextEvalToBeUnsafe();

      // Ensure that "this" resolves to the safe global.
      return apply(evaluate, globalObject, [source]);
    } catch (e) {
      // stash the child-code error in hopes of debugging the internal failure
      err = e;
      throw e;
    } finally {
      const unsafeEvalWasStillExposed = 'eval' in evalScope;
      delete evalScope.eval;
      if (unsafeEvalWasStillExposed) {
        // Barring a defect in the SES shim, the evalScope should allow the
        // powerful, unsafe  `eval` to be used by `evaluate` exactly once, as the
        // very first name that it attempts to access from the lexical scope.
        // A defect in the SES shim could throw an exception after we set
        // `evalScope.eval` and before `evaluate` calls `eval` internally.
        // If we get here, SES is very broken.
        // This condition is one where this vat is now hopelessly confused, and
        // the vat as a whole should be aborted.
        // No further code should run.
        // All immediately reachable state should be abandoned.
        // However, that is not yet possible, so we at least prevent further
        // variable resolution via the scopeHandler, and throw an error with
        // diagnostic info including the thrown error if any from evaluating the
        // source code.
        evalScopeKit.revoked = { err };
        // TODO A GOOD PLACE TO PANIC(), i.e., kill the vat incarnation.
        // See https://github.com/Agoric/SES-shim/issues/490
        Fail`handler did not reset allowNextEvalToBeUnsafe ${err}`;
      }
    }
  };

  return { safeEvaluate };
};$h͏_once.makeSafeEvaluator(makeSafeEvaluator);
})()
,
// === 37. ses ./src/tame-function-tostring.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,defineProperty,freeze,functionPrototype,functionToString,stringEndsWith,weaksetAdd,weaksetHas;$h͏_imports([["./commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["functionToString",[$h͏_a => (functionToString = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);










const nativeSuffix = ') { [native code] }';

// Note: Top level mutable state. Does not make anything worse, since the
// patching of `Function.prototype.toString` is also globally stateful. We
// use this top level state so that multiple calls to `tameFunctionToString` are
// idempotent, rather than creating redundant indirections.
let markVirtualizedNativeFunction;

/**
 * Replace `Function.prototype.toString` with one that recognizes
 * shimmed functions as honorary native functions.
 */
       const tameFunctionToString = () => {
  if (markVirtualizedNativeFunction === undefined) {
    const virtualizedNativeFunctions = new WeakSet();

    const tamingMethods = {
      toString() {
        const str = functionToString(this);
        if (
          stringEndsWith(str, nativeSuffix) ||
          !weaksetHas(virtualizedNativeFunctions, this)
        ) {
          return str;
        }
        return `function ${this.name}() { [native code] }`;
      },
    };

    defineProperty(functionPrototype, 'toString', {
      value: tamingMethods.toString,
    });

    markVirtualizedNativeFunction = freeze(func =>
      weaksetAdd(virtualizedNativeFunctions, func),
    );
  }
  return markVirtualizedNativeFunction;
};$h͏_once.tameFunctionToString(tameFunctionToString);
})()
,
// === 38. ses ./src/tame-domains.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,globalThis,getOwnPropertyDescriptor,defineProperty;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);Object.defineProperty(tameDomains,'name',{value:"tameDomains"});$h͏_once.tameDomains(tameDomains);








       function tameDomains(domainTaming = 'safe') {
  if (domainTaming === 'unsafe') {
    return;
  }

  // Protect against the hazard presented by Node.js domains.
  const globalProcess = globalThis.process || undefined;
  if (typeof globalProcess === 'object') {
    // Check whether domains were initialized.
    const domainDescriptor = getOwnPropertyDescriptor(globalProcess, 'domain');
    if (domainDescriptor !== undefined && domainDescriptor.get !== undefined) {
      // The domain descriptor on Node.js initially has value: null, which
      // becomes a get, set pair after domains initialize.
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_NO_DOMAINS.md
      throw TypeError(
        `SES failed to lockdown, Node.js domains have been initialized (SES_NO_DOMAINS)`,
      );
    }
    // Prevent domains from initializing.
    // This is clunky because the exception thrown from the domains package does
    // not direct the user's gaze toward a knowledge base about the problem.
    // The domain module merely throws an exception when it attempts to define
    // the domain property of the process global during its initialization.
    // We have no better recourse because Node.js uses defineProperty too.
    defineProperty(globalProcess, 'domain', {
      value: null,
      configurable: false,
      writable: false,
      enumerable: false,
    });
  }
}
})()
,
// === 39. ses ./src/tame-module-source.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let functionPrototype,getPrototypeOf,globalThis,objectPrototype,setPrototypeOf;$h͏_imports([["./commons.js", [["functionPrototype",[$h͏_a => (functionPrototype = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["objectPrototype",[$h͏_a => (objectPrototype = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]]]]]);







       const tameModuleSource = () => {
  const newIntrinsics = {};

  const ModuleSource = globalThis.ModuleSource;
  if (ModuleSource !== undefined) {
    newIntrinsics.ModuleSource = ModuleSource;

    // We introduce ModuleSource.[[Proto]] === AbstractModuleSource
    // and ModuleSource.prototype.[[Proto]] === AbstractModuleSource.prototype
    // if that layer is absent because the permitting system can more
    // gracefully tolerate the absence of an expected prototype than the
    // presence of an unexpected prototype,.
    function AbstractModuleSource() {
      // no-op safe to super()
    }

    const ModuleSourceProto = getPrototypeOf(ModuleSource);
    if (ModuleSourceProto === functionPrototype) {
      setPrototypeOf(ModuleSource, AbstractModuleSource);
      newIntrinsics['%AbstractModuleSource%'] = AbstractModuleSource;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        AbstractModuleSource.prototype;
    } else {
      newIntrinsics['%AbstractModuleSource%'] = ModuleSourceProto;
      newIntrinsics['%AbstractModuleSourcePrototype%'] =
        ModuleSourceProto.prototype;
    }

    const ModuleSourcePrototype = ModuleSource.prototype;
    if (ModuleSourcePrototype !== undefined) {
      newIntrinsics['%ModuleSourcePrototype%'] = ModuleSourcePrototype;

      // ModuleSource.prototype.__proto__ should be the
      // AbstractModuleSource.prototype.
      const ModuleSourcePrototypeProto = getPrototypeOf(ModuleSourcePrototype);
      if (ModuleSourcePrototypeProto === objectPrototype) {
        setPrototypeOf(ModuleSource.prototype, AbstractModuleSource.prototype);
      }
    }
  }

  return newIntrinsics;
};$h͏_once.tameModuleSource(tameModuleSource);
})()
,
// === 40. ses ./src/error/console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakSet,arrayFilter,arrayFlatMap,arrayMap,arrayPop,arrayPush,defineProperty,freeze,fromEntries,isError,stringEndsWith,stringIncludes,stringSplit,weaksetAdd,weaksetHas;$h͏_imports([["../commons.js", [["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPop",[$h͏_a => (arrayPop = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["isError",[$h͏_a => (isError = $h͏_a)]],["stringEndsWith",[$h͏_a => (stringEndsWith = $h͏_a)]],["stringIncludes",[$h͏_a => (stringIncludes = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]]]]]);
























/**
 * @import {FilterConsole, LogSeverity, VirtualConsole} from './types.js'
 * @import {ErrorInfo, ErrorInfoKind, LogRecord, NoteCallback, LoggedErrorHandler, MakeCausalConsole, MakeLoggingConsoleKit} from "./internal-types.js";
 */

/**
 * Explicitly set a function's name, supporting use of arrow functions for which
 * source text doesn't include a name and no initial name is set by
 * NamedEvaluation
 * https://tc39.es/ecma262/multipage/syntax-directed-operations.html#sec-runtime-semantics-namedevaluation
 * Instead, we hope that tooling uses only the explicit `name` property.
 *
 * @template {Function} F
 * @param {string} name
 * @param {F} fn
 * @returns {F}
 */
const defineName = (name, fn) => defineProperty(fn, 'name', { value: name });

// For our internal debugging purposes, uncomment
// const internalDebugConsole = console;

// The permitted console methods, from:
// Whatwg "living standard" https://console.spec.whatwg.org/
// Node https://nodejs.org/dist/latest-v14.x/docs/api/console.html
// MDN https://developer.mozilla.org/en-US/docs/Web/API/Console_API
// TypeScript https://openstapps.gitlab.io/projectmanagement/interfaces/_node_modules__types_node_globals_d_.console.html
// Chrome https://developers.google.com/web/tools/chrome-devtools/console/api

// All console level methods have parameters (fmt?, ...args)
// where the argument sequence `fmt?, ...args` formats args according to
// fmt if fmt is a format string. Otherwise, it just renders them all as values
// separated by spaces.
// https://console.spec.whatwg.org/#formatter
// https://nodejs.org/docs/latest/api/util.html#util_util_format_format_args

// For the causal console, all occurrences of `fmt, ...args` or `...args` by
// itself must check for the presence of an error to ask the
// `loggedErrorHandler` to handle.
// In theory we should do a deep inspection to detect for example an array
// containing an error. We currently do not detect these and may never.

/** @typedef {keyof VirtualConsole | 'profile' | 'profileEnd'} ConsoleProps */

/**
 * Those console methods whose actual parameters are `(fmt?, ...args)`
 * even if their TypeScript types claim otherwise.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */
       const consoleLevelMethods = freeze([
  ['debug', 'debug'], // (fmt?, ...args) verbose level on Chrome
  ['log', 'log'], // (fmt?, ...args) info level on Chrome
  ['info', 'info'], // (fmt?, ...args)
  ['warn', 'warn'], // (fmt?, ...args)
  ['error', 'error'], // (fmt?, ...args)

  ['trace', 'log'], // (fmt?, ...args)
  ['dirxml', 'log'], // (fmt?, ...args)          but TS typed (...data)
  ['group', 'log'], // (fmt?, ...args)           but TS typed (...label)
  ['groupCollapsed', 'log']  // (fmt?, ...args)  but TS typed (...label)
]);

/**
 * Those console methods other than those already enumerated by
 * `consoleLevelMethods`.
 *
 * Each is paired with what we consider to be their log severity level.
 * This is the same as the log severity of these on other
 * platform console implementations when they all agree.
 *
 * @type {readonly [ConsoleProps, LogSeverity | undefined][]}
 */$h͏_once.consoleLevelMethods(consoleLevelMethods);
       const consoleOtherMethods = freeze([
  ['assert', 'error'], // (value, fmt?, ...args)
  ['timeLog', 'log'], // (label?, ...args) no fmt string

  // Insensitive to whether any argument is an error. All arguments can pass
  // thru to baseConsole as is.
  ['clear', undefined], // ()
  ['count', 'info'], // (label?)
  ['countReset', undefined], // (label?)
  ['dir', 'log'], // (item, options?)
  ['groupEnd', 'log'], // ()
  // In theory tabular data may be or contain an error. However, we currently
  // do not detect these and may never.
  ['table', 'log'], // (tabularData, properties?)
  ['time', 'info'], // (label?)
  ['timeEnd', 'info'], // (label?)

  // Node Inspector only, MDN, and TypeScript, but not whatwg
  ['profile', undefined], // (label?)
  ['profileEnd', undefined], // (label?)
  ['timeStamp', undefined]  // (label?)
]);

/** @type {readonly [ConsoleProps, LogSeverity | undefined][]} */$h͏_once.consoleOtherMethods(consoleOtherMethods);
const consoleMethodPermits = freeze([
  ...consoleLevelMethods,
  ...consoleOtherMethods,
]);

/**
 * consoleOmittedProperties is currently unused. I record and maintain it here
 * with the intention that it be treated like the `false` entries in the main
 * SES permits: that seeing these on the original console is expected, but
 * seeing anything else that's outside the permits is surprising and should
 * provide a diagnostic.
 *
 * const consoleOmittedProperties = freeze([
 *   'memory', // Chrome
 *   'exception', // FF, MDN
 *   '_ignoreErrors', // Node
 *   '_stderr', // Node
 *   '_stderrErrorHandler', // Node
 *   '_stdout', // Node
 *   '_stdoutErrorHandler', // Node
 *   '_times', // Node
 *   'context', // Chrome, Node
 *   'record', // Safari
 *   'recordEnd', // Safari
 *
 *   'screenshot', // Safari
 *   // Symbols
 *   '@@toStringTag', // Chrome: "Object", Safari: "Console"
 *   // A variety of other symbols also seen on Node
 * ]);
 */

// //////////////////////////// Logging Console ////////////////////////////////

/** @type {MakeLoggingConsoleKit} */
       const makeLoggingConsoleKit = (
  loggedErrorHandler,
  { shouldResetForDebugging = false } = {},
) => {
  if (shouldResetForDebugging) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    loggedErrorHandler.resetErrorTagNum();
  }

  // Not frozen!
  let logArray = [];

  const loggingConsole = fromEntries(
    arrayMap(consoleMethodPermits, ([name, _]) => {
      /**
       * @param {...any} args
       */
      const method = defineName(name, (...args) => {
        arrayPush(logArray, [name, ...args]);
      });
      return [name, freeze(method)];
    }),
  );
  freeze(loggingConsole);

  const takeLog = () => {
    const result = freeze(logArray);
    logArray = [];
    return result;
  };
  freeze(takeLog);

  const typedLoggingConsole = /** @type {VirtualConsole} */ (loggingConsole);

  return freeze({ loggingConsole: typedLoggingConsole, takeLog });
};$h͏_once.makeLoggingConsoleKit(makeLoggingConsoleKit);
freeze(makeLoggingConsoleKit);

/**
 * Makes the same calls on a `baseConsole` that were made on a
 * `loggingConsole` to produce this `log`. In this way, a logging console
 * can be used as a buffer to delay the application of these calls to a
 * `baseConsole`.
 *
 * @param {LogRecord[]} log
 * @param {VirtualConsole} baseConsole
 */
       const pumpLogToConsole = (log, baseConsole) => {
  for (const [name, ...args] of log) {
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[name](...args);
  }
};
// //////////////////////////// Causal Console /////////////////////////////////

/** @type {ErrorInfo} */$h͏_once.pumpLogToConsole(pumpLogToConsole);
const ErrorInfo = {
  NOTE: 'ERROR_NOTE:',
  MESSAGE: 'ERROR_MESSAGE:',
  CAUSE: 'cause:',
  ERRORS: 'errors:',
};
freeze(ErrorInfo);

/** @type {MakeCausalConsole} */
       const makeCausalConsole = (baseConsole, loggedErrorHandler) => {
  if (!baseConsole) {
    return undefined;
  }

  const { getStackString, tagError, takeMessageLogArgs, takeNoteLogArgsArray } =
    loggedErrorHandler;

  /**
   * @param {ReadonlyArray<any>} logArgs
   * @param {Array<any>} subErrorsSink
   * @returns {any}
   */
  const extractErrorArgs = (logArgs, subErrorsSink) => {
    const argTags = arrayMap(logArgs, arg => {
      if (isError(arg)) {
        arrayPush(subErrorsSink, arg);
        return `(${tagError(arg)})`;
      }
      return arg;
    });
    return argTags;
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   * @param {ErrorInfoKind} kind
   * @param {readonly any[]} logArgs
   * @param {Array<Error>} subErrorsSink
   */
  const logErrorInfo = (severity, error, kind, logArgs, subErrorsSink) => {
    const errorTag = tagError(error);
    const errorName =
      kind === ErrorInfo.MESSAGE ? `${errorTag}:` : `${errorTag} ${kind}`;
    const argTags = extractErrorArgs(logArgs, subErrorsSink);
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](errorName, ...argTags);
  };

  /**
   * Logs the `subErrors` within a group name mentioning `optTag`.
   *
   * @param {LogSeverity} severity
   * @param {Error[]} subErrors
   * @param {string | undefined} optTag
   * @returns {void}
   */
  const logSubErrors = (severity, subErrors, optTag = undefined) => {
    if (subErrors.length === 0) {
      return;
    }
    if (subErrors.length === 1 && optTag === undefined) {
      // eslint-disable-next-line no-use-before-define
      logError(severity, subErrors[0]);
      return;
    }
    let label;
    if (subErrors.length === 1) {
      label = `Nested error`;
    } else {
      label = `Nested ${subErrors.length} errors`;
    }
    if (optTag !== undefined) {
      label = `${label} under ${optTag}`;
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole.group(label);
    try {
      for (const subError of subErrors) {
        // eslint-disable-next-line no-use-before-define
        logError(severity, subError);
      }
    } finally {
      if (baseConsole.groupEnd) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole.groupEnd();
      }
    }
  };

  const errorsLogged = new WeakSet();

  /** @type {(severity: LogSeverity) => NoteCallback} */
  const makeNoteCallback = severity => (error, noteLogArgs) => {
    const subErrors = [];
    // Annotation arrived after the error has already been logged,
    // so just log the annotation immediately, rather than remembering it.
    logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    logSubErrors(severity, subErrors, tagError(error));
  };

  /**
   * @param {LogSeverity} severity
   * @param {Error} error
   */
  const logError = (severity, error) => {
    if (weaksetHas(errorsLogged, error)) {
      return;
    }
    const errorTag = tagError(error);
    weaksetAdd(errorsLogged, error);
    const subErrors = [];
    const messageLogArgs = takeMessageLogArgs(error);
    const noteLogArgsArray = takeNoteLogArgsArray(
      error,
      makeNoteCallback(severity),
    );
    // Show the error's most informative error message
    if (messageLogArgs === undefined) {
      // If there is no message log args, then just show the message that
      // the error itself carries.
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[severity](`${errorTag}:`, error.message);
    } else {
      // If there is one, we take it to be strictly more informative than the
      // message string carried by the error, so show it *instead*.
      logErrorInfo(
        severity,
        error,
        ErrorInfo.MESSAGE,
        messageLogArgs,
        subErrors,
      );
    }
    // After the message but before any other annotations, show the stack.
    let stackString = getStackString(error);
    if (
      typeof stackString === 'string' &&
      stackString.length >= 1 &&
      !stringEndsWith(stackString, '\n')
    ) {
      stackString += '\n';
    }
    // eslint-disable-next-line @endo/no-polymorphic-call
    baseConsole[severity](stackString);
    // Show the other annotations on error
    if (error.cause) {
      logErrorInfo(severity, error, ErrorInfo.CAUSE, [error.cause], subErrors);
    }
    // @ts-expect-error AggregateError has an `errors` property.
    if (error.errors) {
      // @ts-expect-error AggregateError has an `errors` property.
      logErrorInfo(severity, error, ErrorInfo.ERRORS, error.errors, subErrors);
    }
    for (const noteLogArgs of noteLogArgsArray) {
      logErrorInfo(severity, error, ErrorInfo.NOTE, noteLogArgs, subErrors);
    }
    // explain all the errors seen in the messages already emitted.
    logSubErrors(severity, subErrors, errorTag);
  };

  const levelMethods = arrayMap(consoleLevelMethods, ([level, _]) => {
    /**
     * @param {...any} logArgs
     */
    const levelMethod = defineName(level, (...logArgs) => {
      const subErrors = [];
      const argTags = extractErrorArgs(logArgs, subErrors);
      if (baseConsole[level]) {
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[level](...argTags);
      }
      // @ts-expect-error ConsoleProp vs LogSeverity mismatch
      logSubErrors(level, subErrors);
    });
    return [level, freeze(levelMethod)];
  });
  const otherMethodNames = arrayFilter(
    consoleOtherMethods,
    ([name, _]) => name in baseConsole,
  );
  const otherMethods = arrayMap(otherMethodNames, ([name, _]) => {
    /**
     * @param {...any} args
     */
    const otherMethod = defineName(name, (...args) => {
      // @ts-ignore
      // eslint-disable-next-line @endo/no-polymorphic-call
      baseConsole[name](...args);
      return undefined;
    });
    return [name, freeze(otherMethod)];
  });

  const causalConsole = fromEntries([...levelMethods, ...otherMethods]);
  return /** @type {VirtualConsole} */ (freeze(causalConsole));
};$h͏_once.makeCausalConsole(makeCausalConsole);
freeze(makeCausalConsole);

/**
 * @typedef {(...args: unknown[]) => void} Logger
 */

/**
 * This is a rather horrible kludge to indent the output to a logger in
 * the case where some arguments are strings containing newlines. Part of
 * the problem is that console-like loggers, including the one in ava,
 * join the string arguments of the log message with a space.
 * Because of this, there's an extra space at the beginning of each of
 * the split lines. So this kludge compensated by putting an extra empty
 * string at the beginning, so that the logger will add the same extra
 * joiner.
 * TODO: Fix this horrible kludge, and indent in a sane manner.
 *
 * @param {string} str
 * @param {string} sep
 * @param {string[]} indents
 * @returns {string[]}
 */
const indentAfterAllSeps = (str, sep, indents) => {
  const [firstLine, ...restLines] = stringSplit(str, sep);
  const indentedRest = arrayFlatMap(restLines, line => [sep, ...indents, line]);
  return ['', firstLine, ...indentedRest];
};

/**
 * @param {LoggedErrorHandler} loggedErrorHandler
 */
       const defineCausalConsoleFromLogger = loggedErrorHandler => {
  /**
   * Implement the `VirtualConsole` API badly by turning all calls into
   * calls on `tlogger`. We need to do this to have `console` logging
   * turn into calls to Ava's `t.log`, so these console log messages
   * are output in the right place.
   *
   * @param {Logger} tlogger
   * @returns {VirtualConsole}
   */
  const makeCausalConsoleFromLogger = tlogger => {
    const indents = [];
    const logWithIndent = (...args) => {
      if (indents.length > 0) {
        args = arrayFlatMap(args, arg =>
          typeof arg === 'string' && stringIncludes(arg, '\n')
            ? indentAfterAllSeps(arg, '\n', indents)
            : [arg],
        );
        args = [...indents, ...args];
      }
      return tlogger(...args);
    };

    const baseConsole = fromEntries([
      ...arrayMap(consoleLevelMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(...args)),
      ]),
      ...arrayMap(consoleOtherMethods, ([name]) => [
        name,
        defineName(name, (...args) => logWithIndent(name, ...args)),
      ]),
    ]);
    // https://console.spec.whatwg.org/#grouping
    for (const name of ['group', 'groupCollapsed']) {
      if (baseConsole[name]) {
        baseConsole[name] = defineName(name, (...args) => {
          if (args.length >= 1) {
            // Prefix the logged data with "group" or "groupCollapsed".
            logWithIndent(...args);
          }
          // A single space is enough;
          // the host console will separate them with additional spaces.
          arrayPush(indents, ' ');
        });
      } else {
        baseConsole[name] = defineName(name, () => {});
      }
    }
    baseConsole.groupEnd = defineName(
      'groupEnd',
      baseConsole.groupEnd
        ? (...args) => {
            arrayPop(indents);
          }
        : () => {},
    );
    harden(baseConsole);
    const causalConsole = makeCausalConsole(
      /** @type {VirtualConsole} */ (baseConsole),
      loggedErrorHandler,
    );
    return /** @type {VirtualConsole} */ (causalConsole);
  };
  return freeze(makeCausalConsoleFromLogger);
};$h͏_once.defineCausalConsoleFromLogger(defineCausalConsoleFromLogger);
freeze(defineCausalConsoleFromLogger);

// ///////////////////////// Filter Console ////////////////////////////////////

/** @type {FilterConsole} */
       const filterConsole = (baseConsole, filter, _topic = undefined) => {
  // TODO do something with optional topic string
  const methodPermits = arrayFilter(
    consoleMethodPermits,
    ([name, _]) => name in baseConsole,
  );
  const methods = arrayMap(methodPermits, ([name, severity]) => {
    /**
     * @param {...any} args
     */
    const method = defineName(name, (...args) => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      if (severity === undefined || filter.canLog(severity)) {
        // @ts-ignore
        // eslint-disable-next-line @endo/no-polymorphic-call
        baseConsole[name](...args);
      }
    });
    return [name, freeze(method)];
  });
  const filteringConsole = fromEntries(methods);
  return /** @type {VirtualConsole} */ (freeze(filteringConsole));
};$h͏_once.filterConsole(filterConsole);
freeze(filterConsole);
})()
,
// === 41. ses ./src/error/unhandled-rejection.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FinalizationRegistry,Map,mapGet,mapDelete,WeakMap,mapSet,finalizationRegistryRegister,weakmapSet,weakmapGet,mapEntries,mapHas;$h͏_imports([["../commons.js", [["FinalizationRegistry",[$h͏_a => (FinalizationRegistry = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapDelete",[$h͏_a => (mapDelete = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["finalizationRegistryRegister",[$h͏_a => (finalizationRegistryRegister = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["mapEntries",[$h͏_a => (mapEntries = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]]]]]);














/**
 * Create rejection-tracking machinery compatible with Node.js and browsers.
 *
 * Note that modern browsers *prevent* access to the 'unhandledrejection' and
 * 'rejectionhandled' events needed:
 * - in cross-origin mode, like when served from file://
 * - in the browser console (interactively typed-in code)
 * - in the debugger
 *
 * Then, they just look like: `Uncaught (in promise) Error: ...` and don't
 * implement the machinery.
 *
 * The solution is to serve your web page from an http:// or https:// web server
 * and execute actual code.
 *
 * @param {(reason: unknown) => void} reportReason report the reason for an
 * unhandled rejection.
 */
       const makeRejectionHandlers = reportReason => {
  if (FinalizationRegistry === undefined) {
    return undefined;
  }

  /** @typedef {number} ReasonId */
  let lastReasonId = 0;

  /** @type {Map<ReasonId, unknown>} */
  const idToReason = new Map();

  /** @type {(() => void) | undefined} */
  let cancelChecking;

  const removeReasonId = reasonId => {
    mapDelete(idToReason, reasonId);
    if (cancelChecking && idToReason.size === 0) {
      // No more unhandled rejections to check, just cancel the check.
      cancelChecking();
      cancelChecking = undefined;
    }
  };

  /** @type {WeakMap<Promise, ReasonId>} */
  const promiseToReasonId = new WeakMap();

  /**
   * Clean up and report the reason for a GCed unhandled rejection.
   *
   * @param {ReasonId} heldReasonId
   */
  const finalizeDroppedPromise = heldReasonId => {
    if (mapHas(idToReason, heldReasonId)) {
      const reason = mapGet(idToReason, heldReasonId);
      removeReasonId(heldReasonId);
      reportReason(reason);
    }
  };

  /** @type {FinalizationRegistry<ReasonId>} */
  const promiseToReason = new FinalizationRegistry(finalizeDroppedPromise);

  /**
   * Track a rejected promise and its corresponding reason if there is no
   * rejection handler synchronously attached.
   *
   * @param {unknown} reason
   * @param {Promise} pr
   */
  const unhandledRejectionHandler = (reason, pr) => {
    lastReasonId += 1;
    const reasonId = lastReasonId;

    // Update bookkeeping.
    mapSet(idToReason, reasonId, reason);
    weakmapSet(promiseToReasonId, pr, reasonId);
    finalizationRegistryRegister(promiseToReason, pr, reasonId, pr);
  };

  /**
   * Deal with the addition of a handler to a previously rejected promise.
   *
   * Just remove it from our list.  Let the FinalizationRegistry or
   * processTermination report any GCed unhandled rejected promises.
   *
   * @param {Promise} pr
   */
  const rejectionHandledHandler = pr => {
    const reasonId = weakmapGet(promiseToReasonId, pr);
    removeReasonId(reasonId);
  };

  /**
   * Report all the unhandled rejections, now that we are abruptly terminating
   * the agent cluster.
   */
  const processTerminationHandler = () => {
    for (const [reasonId, reason] of mapEntries(idToReason)) {
      removeReasonId(reasonId);
      reportReason(reason);
    }
  };

  return {
    rejectionHandledHandler,
    unhandledRejectionHandler,
    processTerminationHandler,
  };
};$h͏_once.makeRejectionHandlers(makeRejectionHandlers);
})()
,
// === 42. ses ./src/error/tame-console.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,apply,defineProperty,freeze,globalThis,defaultHandler,makeCausalConsole,makeRejectionHandlers;$h͏_imports([["../commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./assert.js", [["loggedErrorHandler",[$h͏_a => (defaultHandler = $h͏_a)]]]],["./console.js", [["makeCausalConsole",[$h͏_a => (makeCausalConsole = $h͏_a)]]]],["./unhandled-rejection.js", [["makeRejectionHandlers",[$h͏_a => (makeRejectionHandlers = $h͏_a)]]]]]);













/**
 * @import {VirtualConsole} from './types.js'
 * @import {GetStackString} from './internal-types.js';
 */

const failFast = message => {
  throw TypeError(message);
};

const wrapLogger = (logger, thisArg) =>
  freeze((...args) => apply(logger, thisArg, args));

/**
 * Wrap console unless suppressed.
 * At the moment, the console is considered a host power in the start
 * compartment, and not a primordial. Hence it is absent from the whilelist
 * and bypasses the intrinsicsCollector.
 *
 * @param {"safe" | "unsafe"} consoleTaming
 * @param {"platform" | "exit" | "abort" | "report" | "none"} [errorTrapping]
 * @param {"report" | "none"} [unhandledRejectionTrapping]
 * @param {GetStackString=} optGetStackString
 */
       const tameConsole = (
  consoleTaming = 'safe',
  errorTrapping = 'platform',
  unhandledRejectionTrapping = 'report',
  optGetStackString = undefined,
) => {
  let loggedErrorHandler;
  if (optGetStackString === undefined) {
    loggedErrorHandler = defaultHandler;
  } else {
    loggedErrorHandler = {
      ...defaultHandler,
      getStackString: optGetStackString,
    };
  }

  // eslint-disable-next-line no-restricted-globals
  const originalConsole = /** @type {VirtualConsole} */ (
    // eslint-disable-next-line no-nested-ternary
    typeof globalThis.console !== 'undefined'
      ? globalThis.console
      : typeof globalThis.print === 'function'
        ? // Make a good-enough console for eshost (including only functions that
          // log at a specific level with no special argument interpretation).
          // https://console.spec.whatwg.org/#logging
          (p => freeze({ debug: p, log: p, info: p, warn: p, error: p }))(
            // eslint-disable-next-line no-undef
            wrapLogger(globalThis.print),
          )
        : undefined
  );

  // Upgrade a log-only console (as in `eshost -h SpiderMonkey`).
  if (originalConsole && originalConsole.log) {
    for (const methodName of ['warn', 'error']) {
      if (!originalConsole[methodName]) {
        defineProperty(originalConsole, methodName, {
          value: wrapLogger(originalConsole.log, originalConsole),
        });
      }
    }
  }

  const ourConsole = /** @type {VirtualConsole} */ (
    consoleTaming === 'unsafe'
      ? originalConsole
      : makeCausalConsole(originalConsole, loggedErrorHandler)
  );

  // Attach platform-specific error traps such that any error that gets thrown
  // at top-of-turn (the bottom of stack) will get logged by our causal
  // console, revealing the diagnostic information associated with the error,
  // including the stack from when the error was created.

  // In the following Node.js and web browser cases, `process` and `window` are
  // spelled as `globalThis` properties to avoid the overweaning gaze of
  // Parcel, which dutifully installs an unnecessary `process` shim if we ever
  // utter that. That unnecessary shim forces the whole bundle into sloppy mode,
  // which in turn breaks SES's strict mode invariant.

  // Disable the polymorphic check for the rest of this file.  It's too noisy
  // when dealing with platform APIs.
  /* eslint-disable @endo/no-polymorphic-call */

  // Node.js
  const globalProcess = globalThis.process || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    let terminate;
    if (errorTrapping === 'platform' || errorTrapping === 'exit') {
      const { exit } = globalProcess;
      // If there is a function-valued process.on but no function-valued process.exit,
      // fail early without caring whether errorTrapping is "platform" only by default.
      typeof exit === 'function' || failFast('missing process.exit');
      terminate = () => exit(globalProcess.exitCode || -1);
    } else if (errorTrapping === 'abort') {
      terminate = globalProcess.abort;
      typeof terminate === 'function' || failFast('missing process.abort');
    }

    globalProcess.on('uncaughtException', error => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', error);
      if (terminate) {
        terminate();
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalProcess === 'object' &&
    typeof globalProcess.on === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
      // 'platform' and 'report' just log the reason.
    };
    // Maybe track unhandled promise rejections.
    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalProcess.on('unhandledRejection', h.unhandledRejectionHandler);
      globalProcess.on('rejectionHandled', h.rejectionHandledHandler);
      globalProcess.on('exit', h.processTerminationHandler);
    }
  }

  // Browser
  const globalWindow = globalThis.window || undefined;
  if (
    errorTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    globalWindow.addEventListener('error', event => {
      event.preventDefault();
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNCAUGHT_EXCEPTION.md
      ourConsole.error('SES_UNCAUGHT_EXCEPTION:', event.error);
      // 'platform' and 'report' just log the reason.
      if (errorTrapping === 'exit' || errorTrapping === 'abort') {
        globalWindow.location.href = `about:blank`;
      }
    });
  }
  if (
    unhandledRejectionTrapping !== 'none' &&
    typeof globalWindow === 'object' &&
    typeof globalWindow.addEventListener === 'function'
  ) {
    const handleRejection = reason => {
      // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_UNHANDLED_REJECTION.md
      ourConsole.error('SES_UNHANDLED_REJECTION:', reason);
    };

    const h = makeRejectionHandlers(handleRejection);
    if (h) {
      // Rejection handlers are supported.
      globalWindow.addEventListener('unhandledrejection', event => {
        event.preventDefault();
        h.unhandledRejectionHandler(event.reason, event.promise);
      });

      globalWindow.addEventListener('rejectionhandled', event => {
        event.preventDefault();
        h.rejectionHandledHandler(event.promise);
      });

      globalWindow.addEventListener('beforeunload', _event => {
        h.processTerminationHandler();
      });
    }
  }
  /* eslint-enable @endo/no-polymorphic-call */

  return { console: ourConsole };
};$h͏_once.tameConsole(tameConsole);
})()
,
// === 43. ses ./src/error/tame-v8-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let WeakMap,WeakSet,apply,arrayFilter,arrayJoin,arrayMap,arraySlice,create,defineProperties,fromEntries,reflectSet,regexpExec,weakmapGet,weakmapSet,weaksetAdd,weaksetHas,TypeError;$h͏_imports([["../commons.js", [["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["WeakSet",[$h͏_a => (WeakSet = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arraySlice",[$h͏_a => (arraySlice = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["reflectSet",[$h͏_a => (reflectSet = $h͏_a)]],["regexpExec",[$h͏_a => (regexpExec = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]],["weaksetAdd",[$h͏_a => (weaksetAdd = $h͏_a)]],["weaksetHas",[$h͏_a => (weaksetHas = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]]]]]);



















// Permit names from https://v8.dev/docs/stack-trace-api
// Permiting only the names used by error-stack-shim/src/v8StackFrames
// callSiteToFrame to shim the error stack proposal.
const safeV8CallSiteMethodNames = [
  // suppress 'getThis' definitely
  'getTypeName',
  // suppress 'getFunction' definitely
  'getFunctionName',
  'getMethodName',
  'getFileName',
  'getLineNumber',
  'getColumnNumber',
  'getEvalOrigin',
  'isToplevel',
  'isEval',
  'isNative',
  'isConstructor',
  'isAsync',
  // suppress 'isPromiseAll' for now
  // suppress 'getPromiseIndex' for now

  // Additional names found by experiment, absent from
  // https://v8.dev/docs/stack-trace-api
  'getPosition',
  'getScriptNameOrSourceURL',

  'toString'  // TODO replace to use only permitted info
];

// TODO this is a ridiculously expensive way to attenuate callsites.
// Before that matters, we should switch to a reasonable representation.
const safeV8CallSiteFacet = callSite => {
  const methodEntry = name => {
    const method = callSite[name];
    return [name, () => apply(method, callSite, [])];
  };
  const o = fromEntries(arrayMap(safeV8CallSiteMethodNames, methodEntry));
  return create(o, {});
};

const safeV8SST = sst => arrayMap(sst, safeV8CallSiteFacet);

// If it has `/node_modules/` anywhere in it, on Node it is likely
// to be a dependent package of the current package, and so to
// be an infrastructure frame to be dropped from concise stack traces.
const FILENAME_NODE_DEPENDENTS_CENSOR = /\/node_modules\//;

// If it begins with `internal/` or `node:internal` then it is likely
// part of the node infrustructre itself, to be dropped from concise
// stack traces.
const FILENAME_NODE_INTERNALS_CENSOR = /^(?:node:)?internal\//;

// Frames within SES `assert.js` should be dropped from concise stack traces, as
// these are just steps towards creating the error object in question.
const FILENAME_ASSERT_CENSOR = /\/packages\/ses\/src\/error\/assert\.js$/;

// Frames within the `eventual-send` shim should be dropped so that concise
// deep stacks omit the internals of the eventual-sending mechanism causing
// asynchronous messages to be sent.
// Note that the eventual-send package will move from agoric-sdk to
// Endo, so this rule will be of general interest.
const FILENAME_EVENTUAL_SEND_CENSOR = /\/packages\/eventual-send\/src\//;

// Frames within the `ses-ava` package should be dropped from concise stack
// traces, as they just support exposing error details to AVA.
const FILENAME_SES_AVA_CENSOR = /\/packages\/ses-ava\/src\/ses-ava-test\.js$/;

// Any stack frame whose `fileName` matches any of these censor patterns
// will be omitted from concise stacks.
// TODO Enable users to configure FILENAME_CENSORS via `lockdown` options.
const FILENAME_CENSORS = [
  FILENAME_NODE_DEPENDENTS_CENSOR,
  FILENAME_NODE_INTERNALS_CENSOR,
  FILENAME_ASSERT_CENSOR,
  FILENAME_EVENTUAL_SEND_CENSOR,
  FILENAME_SES_AVA_CENSOR,
];

// Should a stack frame with this as its fileName be included in a concise
// stack trace?
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
       const filterFileName = fileName => {
  if (fileName === null) {
    // Seems to suppress builtins like `Array.every (<anonymous>)`
    return false;
  }
  for (const filter of FILENAME_CENSORS) {
    if (regexpExec(filter, fileName)) {
      return false;
    }
  }
  return true;
};

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `/.../` is kept. Thus
// `'Object.bar (/vat-v1/.../errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (errors/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
$h͏_once.filterFileName(filterFileName);const CALLSITE_ELLIPSIS_PATTERN1=/^((?:.*[( ])?)[:/\w_-]*\/\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix consisting of `.../` should get dropped.
// Anything to the left of the likely path text is kept.
// Everything to the right of `.../` is kept. Thus
// `'Object.bar (.../errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (errors/test/deep-send.test.js:13:21)'`.
//
// See thread starting at
// https://github.com/Agoric/agoric-sdk/issues/2326#issuecomment-773020389
const CALLSITE_ELLIPSIS_PATTERN2 = /^((?:.*[( ])?)\.\.\.\/(.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix, ending in a `/` and prior to `package/` should get
// dropped.
// Anything to the left of the likely path prefix text is kept. `package/` and
// everything to its right is kept. Thus
// `'Object.bar (/Users/markmiller/src/ongithub/agoric/agoric-sdk/packages/errors/test/deep-send.test.js:13:21)'`
// simplifies to
// `'Object.bar (packages/errors/test/deep-send.test.js:13:21)'`.
// Note that `/packages/` is a convention for monorepos encouraged by
// lerna.
const CALLSITE_PACKAGES_PATTERN = /^((?:.*[( ])?)[:/\w_-]*\/(packages\/.+)$/;

// The ad-hoc rule of the current pattern is that any likely-file-path or
// likely url-path prefix of the form `file://` but not `file:///` gets
// dropped.
// Anything to the left of the likely path prefix text is kept. Everything to
// the right of `file://` is kept. Thus
// `'Object.bar (file:///Users/markmiller/src/ongithub/endojs/endo/packages/errors/test/deep-send.test.js:13:21)'` is unchanged but
// `'Object.bar (file://test/deep-send.test.js:13:21)'`

// simplifies to
// `'Object.bar (test/deep-send.test.js:13:21)'`.
// The reason is that `file:///` usually precedes an absolute path which is
// clickable without removing the `file:///`, whereas `file://` usually precedes
// a relative path which, for whatever vscode reason, is not clickable until the
// `file://` is removed.
const CALLSITE_FILE_2SLASH_PATTERN = /^((?:.*[( ])?)file:\/\/([^/].*)$/;

// The use of these callSite patterns below assumes that any match will bind
// capture groups containing the parts of the original string we want
// to keep. The parts outside those capture groups will be dropped from concise
// stacks.
// TODO Enable users to configure CALLSITE_PATTERNS via `lockdown` options.
const CALLSITE_PATTERNS = [
  CALLSITE_ELLIPSIS_PATTERN1,
  CALLSITE_ELLIPSIS_PATTERN2,
  CALLSITE_PACKAGES_PATTERN,
  CALLSITE_FILE_2SLASH_PATTERN,
];

// For a stack frame that should be included in a concise stack trace, if
// `callSiteString` is the original stringified stack frame, return the
// possibly-shorter stringified stack frame that should be shown instead.
// Exported only so it can be unit tested.
// TODO Move so that it applies not just to v8.
/**
 * @param {string} callSiteString
 */
       const shortenCallSiteString = callSiteString => {
  for (const filter of CALLSITE_PATTERNS) {
    const match = regexpExec(filter, callSiteString);
    if (match) {
      return arrayJoin(arraySlice(match, 1), '');
    }
  }
  return callSiteString;
};$h͏_once.shortenCallSiteString(shortenCallSiteString);

       const tameV8ErrorConstructor = (
  OriginalError,
  InitialError,
  errorTaming,
  stackFiltering,
) => {
  if (errorTaming === 'unsafe-debug') {
    throw TypeError(
      'internal: v8+unsafe-debug special case should already be done',
    );
  }
  // TODO: Proper CallSite types
  /** @typedef {{}} CallSite */

  const originalCaptureStackTrace = OriginalError.captureStackTrace;

  const omitFrames =
    stackFiltering === 'concise' || stackFiltering === 'omit-frames';

  const shortenPaths =
    stackFiltering === 'concise' || stackFiltering === 'shorten-paths';

  // const callSiteFilter = _callSite => true;
  const callSiteFilter = callSite => {
    if (omitFrames) {
      // eslint-disable-next-line @endo/no-polymorphic-call
      if (callSite.getFunctionName()?.startsWith('__HIDE_')) {
        return false;
      }
      // eslint-disable-next-line @endo/no-polymorphic-call
      return filterFileName(callSite.getFileName());
    }
    return true;
  };

  const callSiteStringifier = callSite => {
    let callSiteString = `${callSite}`;
    if (shortenPaths) {
      callSiteString = shortenCallSiteString(callSiteString);
    }
    return `\n  at ${callSiteString}`;
  };

  const stackStringFromSST = (_error, sst) =>
    arrayJoin(
      arrayMap(arrayFilter(sst, callSiteFilter), callSiteStringifier),
      '',
    );

  /**
   * @typedef {object} StructuredStackInfo
   * @property {CallSite[]} callSites
   * @property {undefined} [stackString]
   */

  /**
   * @typedef {object} ParsedStackInfo
   * @property {undefined} [callSites]
   * @property {string} stackString
   */

  // Mapping from error instance to the stack for that instance.
  // The stack info is either the structured stack trace
  // or the generated tamed stack string
  /** @type {WeakMap<Error, ParsedStackInfo | StructuredStackInfo>} */
  const stackInfos = new WeakMap();

  // Use concise methods to obtain named functions without constructors.
  const tamedMethods = {
    // The optional `optFn` argument is for cutting off the bottom of
    // the stack --- for capturing the stack only above the topmost
    // call to that function. Since this isn't the "real" captureStackTrace
    // but instead calls the real one, if no other cutoff is provided,
    // we cut this one off.
    captureStackTrace(error, optFn = tamedMethods.captureStackTrace) {
      if (typeof originalCaptureStackTrace === 'function') {
        // OriginalError.captureStackTrace is only on v8
        apply(originalCaptureStackTrace, OriginalError, [error, optFn]);
        return;
      }
      reflectSet(error, 'stack', '');
    },
    // Shim of proposed special power, to reside by default only
    // in the start compartment, for getting the stack traceback
    // string associated with an error.
    // See https://tc39.es/proposal-error-stacks/
    getStackString(error) {
      let stackInfo = weakmapGet(stackInfos, error);

      if (stackInfo === undefined) {
        // The following will call `prepareStackTrace()` synchronously
        // which will populate stackInfos
        // eslint-disable-next-line no-void
        void error.stack;
        stackInfo = weakmapGet(stackInfos, error);
        if (!stackInfo) {
          stackInfo = { stackString: '' };
          weakmapSet(stackInfos, error, stackInfo);
        }
      }

      // prepareStackTrace() may generate the stackString
      // if errorTaming === 'unsafe'

      if (stackInfo.stackString !== undefined) {
        return stackInfo.stackString;
      }

      const stackString = stackStringFromSST(error, stackInfo.callSites);
      weakmapSet(stackInfos, error, { stackString });

      return stackString;
    },
    prepareStackTrace(error, sst) {
      if (errorTaming === 'unsafe') {
        const stackString = stackStringFromSST(error, sst);
        weakmapSet(stackInfos, error, { stackString });
        return `${error}${stackString}`;
      } else {
        weakmapSet(stackInfos, error, { callSites: sst });
        return '';
      }
    },
  };

  // A prepareFn is a prepareStackTrace function.
  // An sst is a `structuredStackTrace`, which is an array of
  // callsites.
  // A user prepareFn is a prepareFn defined by a client of this API,
  // and provided by assigning to `Error.prepareStackTrace`.
  // A user prepareFn should only receive an attenuated sst, which
  // is an array of attenuated callsites.
  // A system prepareFn is the prepareFn created by this module to
  // be installed on the real `Error` constructor, to receive
  // an original sst, i.e., an array of unattenuated callsites.
  // An input prepareFn is a function the user assigns to
  // `Error.prepareStackTrace`, which might be a user prepareFn or
  // a system prepareFn previously obtained by reading
  // `Error.prepareStackTrace`.

  const defaultPrepareFn = tamedMethods.prepareStackTrace;

  OriginalError.prepareStackTrace = defaultPrepareFn;

  // A weakset branding some functions as system prepareFns, all of which
  // must be defined by this module, since they can receive an
  // unattenuated sst.
  const systemPrepareFnSet = new WeakSet([defaultPrepareFn]);

  const systemPrepareFnFor = inputPrepareFn => {
    if (weaksetHas(systemPrepareFnSet, inputPrepareFn)) {
      return inputPrepareFn;
    }
    // Use concise methods to obtain named functions without constructors.
    const systemMethods = {
      prepareStackTrace(error, sst) {
        weakmapSet(stackInfos, error, { callSites: sst });
        return inputPrepareFn(error, safeV8SST(sst));
      },
    };
    weaksetAdd(systemPrepareFnSet, systemMethods.prepareStackTrace);
    return systemMethods.prepareStackTrace;
  };

  // Note `stackTraceLimit` accessor already defined by
  // tame-error-constructor.js
  defineProperties(InitialError, {
    captureStackTrace: {
      value: tamedMethods.captureStackTrace,
      writable: true,
      enumerable: false,
      configurable: true,
    },
    prepareStackTrace: {
      get() {
        return OriginalError.prepareStackTrace;
      },
      set(inputPrepareStackTraceFn) {
        if (typeof inputPrepareStackTraceFn === 'function') {
          const systemPrepareFn = systemPrepareFnFor(inputPrepareStackTraceFn);
          OriginalError.prepareStackTrace = systemPrepareFn;
        } else {
          OriginalError.prepareStackTrace = defaultPrepareFn;
        }
      },
      enumerable: false,
      configurable: true,
    },
  });

  return tamedMethods.getStackString;
};$h͏_once.tameV8ErrorConstructor(tameV8ErrorConstructor);
})()
,
// === 44. ses ./src/error/tame-error-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_ERROR,apply,construct,defineProperties,setPrototypeOf,getOwnPropertyDescriptor,defineProperty,getOwnPropertyDescriptors,NativeErrors,tameV8ErrorConstructor;$h͏_imports([["../commons.js", [["FERAL_ERROR",[$h͏_a => (FERAL_ERROR = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["construct",[$h͏_a => (construct = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["setPrototypeOf",[$h͏_a => (setPrototypeOf = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["../permits.js", [["NativeErrors",[$h͏_a => (NativeErrors = $h͏_a)]]]],["./tame-v8-error-constructor.js", [["tameV8ErrorConstructor",[$h͏_a => (tameV8ErrorConstructor = $h͏_a)]]]]]);












// Present on at least FF and XS. Proposed by Error-proposal. The original
// is dangerous, so tameErrorConstructor replaces it with a safe one.
// We grab the original here before it gets replaced.
const stackDesc = getOwnPropertyDescriptor(FERAL_ERROR.prototype, 'stack');
const stackGetter = stackDesc && stackDesc.get;

// Use concise methods to obtain named functions without constructors.
const tamedMethods = {
  getStackString(error) {
    if (typeof stackGetter === 'function') {
      return apply(stackGetter, error, []);
    } else if ('stack' in error) {
      // The fallback is to just use the de facto `error.stack` if present
      return `${error.stack}`;
    }
    return '';
  },
};
let initialGetStackString = tamedMethods.getStackString;

               function tameErrorConstructor(
  errorTaming = 'safe',
  stackFiltering = 'concise',
) {
  const ErrorPrototype = FERAL_ERROR.prototype;

  const { captureStackTrace: originalCaptureStackTrace } = FERAL_ERROR;
  const platform =
    typeof originalCaptureStackTrace === 'function' ? 'v8' : 'unknown';

  const makeErrorConstructor = (_ = {}) => {
    // eslint-disable-next-line no-shadow
    const ResultError = function Error(...rest) {
      let error;
      if (new.target === undefined) {
        error = apply(FERAL_ERROR, this, rest);
      } else {
        error = construct(FERAL_ERROR, rest, new.target);
      }
      if (platform === 'v8') {
        // TODO Likely expensive!
        apply(originalCaptureStackTrace, FERAL_ERROR, [error, ResultError]);
      }
      return error;
    };
    defineProperties(ResultError, {
      length: { value: 1 },
      prototype: {
        value: ErrorPrototype,
        writable: false,
        enumerable: false,
        configurable: false,
      },
    });
    return ResultError;
  };
  const InitialError = makeErrorConstructor({ powers: 'original' });
  const SharedError = makeErrorConstructor({ powers: 'none' });
  defineProperties(ErrorPrototype, {
    constructor: { value: SharedError },
  });

  for (const NativeError of NativeErrors) {
    setPrototypeOf(NativeError, SharedError);
  }

  // https://v8.dev/docs/stack-trace-api#compatibility advises that
  // programmers can "always" set `Error.stackTraceLimit`
  // even on non-v8 platforms. On non-v8
  // it will have no effect, but this advice only makes sense
  // if the assignment itself does not fail, which it would
  // if `Error` were naively frozen. Hence, we add setters that
  // accept but ignore the assignment on non-v8 platforms.
  defineProperties(InitialError, {
    stackTraceLimit: {
      get() {
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          return FERAL_ERROR.stackTraceLimit;
        }
        return undefined;
      },
      set(newLimit) {
        if (typeof newLimit !== 'number') {
          // silently do nothing. This behavior doesn't precisely
          // emulate v8 edge-case behavior. But given the purpose
          // of this emulation, having edge cases err towards
          // harmless seems the safer option.
          return;
        }
        if (typeof FERAL_ERROR.stackTraceLimit === 'number') {
          // FERAL_ERROR.stackTraceLimit is only on v8
          FERAL_ERROR.stackTraceLimit = newLimit;
          // We place the useless return on the next line to ensure
          // that anything we place after the if in the future only
          // happens if the then-case does not.
          // eslint-disable-next-line no-useless-return
          return;
        }
      },
      // WTF on v8 stackTraceLimit is enumerable
      enumerable: false,
      configurable: true,
    },
  });

  if (errorTaming === 'unsafe-debug' && platform === 'v8') {
    // This case is a kludge to work around
    // https://github.com/endojs/endo/issues/1798
    // https://github.com/endojs/endo/issues/2348
    // https://github.com/Agoric/agoric-sdk/issues/8662

    defineProperties(InitialError, {
      prepareStackTrace: {
        get() {
          return FERAL_ERROR.prepareStackTrace;
        },
        set(newPrepareStackTrace) {
          FERAL_ERROR.prepareStackTrace = newPrepareStackTrace;
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: FERAL_ERROR.captureStackTrace,
        writable: true,
        enumerable: false,
        configurable: true,
      },
    });

    const descs = getOwnPropertyDescriptors(InitialError);
    defineProperties(SharedError, {
      stackTraceLimit: descs.stackTraceLimit,
      prepareStackTrace: descs.prepareStackTrace,
      captureStackTrace: descs.captureStackTrace,
    });

    return {
      '%InitialGetStackString%': initialGetStackString,
      '%InitialError%': InitialError,
      '%SharedError%': SharedError,
    };
  }

  // The default SharedError much be completely powerless even on v8,
  // so the lenient `stackTraceLimit` accessor does nothing on all
  // platforms.
  defineProperties(SharedError, {
    stackTraceLimit: {
      get() {
        return undefined;
      },
      set(_newLimit) {
        // do nothing
      },
      enumerable: false,
      configurable: true,
    },
  });

  if (platform === 'v8') {
    // `SharedError.prepareStackTrace`, if it exists, must also be
    // powerless. However, from what we've heard, depd expects to be able to
    // assign to it without the assignment throwing. It is normally a function
    // that returns a stack string to be magically added to error objects.
    // However, as long as we're adding a lenient standin, we may as well
    // accommodate any who expect to get a function they can call and get
    // a string back. This prepareStackTrace is a do-nothing function that
    // always returns the empty string.
    defineProperties(SharedError, {
      prepareStackTrace: {
        get() {
          return () => '';
        },
        set(_prepareFn) {
          // do nothing
        },
        enumerable: false,
        configurable: true,
      },
      captureStackTrace: {
        value: (errorish, _constructorOpt) => {
          defineProperty(errorish, 'stack', {
            value: '',
          });
        },
        writable: false,
        enumerable: false,
        configurable: true,
      },
    });
  }

  if (platform === 'v8') {
    initialGetStackString = tameV8ErrorConstructor(
      FERAL_ERROR,
      InitialError,
      errorTaming,
      stackFiltering,
    );
  } else if (errorTaming === 'unsafe' || errorTaming === 'unsafe-debug') {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8

    // Error.prototype.stack property as proposed at
    // https://tc39.es/proposal-error-stacks/
    // with the fix proposed at
    // https://github.com/tc39/proposal-error-stacks/issues/46
    // On others, this still protects from the override mistake,
    // essentially like enable-property-overrides.js would
    // once this accessor property itself is frozen, as will happen
    // later during lockdown.
    //
    // However, there is here a change from the intent in the current
    // state of the proposal. If experience tells us whether this change
    // is a good idea, we should modify the proposal accordingly. There is
    // much code in the world that assumes `error.stack` is a string. So
    // where the proposal accommodates secure operation by making the
    // property optional, we instead accommodate secure operation by
    // having the secure form always return only the stable part, the
    // stringified error instance, and omitting all the frame information
    // rather than omitting the property.
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          return initialGetStackString(this);
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  } else {
    // v8 has too much magic around their 'stack' own property for it to
    // coexist cleanly with this accessor. So only install it on non-v8
    defineProperties(ErrorPrototype, {
      stack: {
        get() {
          // https://github.com/tc39/proposal-error-stacks/issues/46
          // allows this to not add an unpleasant newline. Otherwise
          // we should fix this.
          return `${this}`;
        },
        set(newValue) {
          defineProperties(this, {
            stack: {
              value: newValue,
              writable: true,
              enumerable: true,
              configurable: true,
            },
          });
        },
      },
    });
  }

  return {
    '%InitialGetStackString%': initialGetStackString,
    '%InitialError%': InitialError,
    '%SharedError%': SharedError,
  };
}$h͏_once.default(      tameErrorConstructor);
})()
,
// === 45. ses ./src/module-load.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,Map,Set,TypeError,arrayJoin,arrayMap,arrayPush,arraySome,create,freeze,generatorNext,generatorThrow,getOwnPropertyNames,isArray,isPrimitive,mapGet,mapHas,mapSet,promiseThen,setAdd,values,weakmapGet,weakmapHas,makeError,annotateError,q,b,X;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayJoin",[$h͏_a => (arrayJoin = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["generatorNext",[$h͏_a => (generatorNext = $h͏_a)]],["generatorThrow",[$h͏_a => (generatorThrow = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["setAdd",[$h͏_a => (setAdd = $h͏_a)]],["values",[$h͏_a => (values = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapHas",[$h͏_a => (weakmapHas = $h͏_a)]]]],["./error/assert.js", [["makeError",[$h͏_a => (makeError = $h͏_a)]],["annotateError",[$h͏_a => (annotateError = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]],["b",[$h͏_a => (b = $h͏_a)]],["X",[$h͏_a => (X = $h͏_a)]]]]]);


























const noop = () => {};

const asyncTrampoline = async (generatorFunc, args, errorWrapper) => {
  await null;
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      // eslint-disable-next-line no-await-in-loop
      const val = await result.value;
      result = generatorNext(iterator, val);
    } catch (error) {
      result = generatorThrow(iterator, errorWrapper(error));
    }
  }
  return result.value;
};

const syncTrampoline = (generatorFunc, args) => {
  const iterator = generatorFunc(...args);
  let result = generatorNext(iterator);
  while (!result.done) {
    try {
      result = generatorNext(iterator, result.value);
    } catch (error) {
      result = generatorThrow(iterator, error);
    }
  }
  return result.value;
};

// `makeAlias` constructs compartment specifier tuples for the `aliases`
// private field of compartments.
// These aliases allow a compartment to alias an internal module specifier to a
// module specifier in an external compartment, and also to create internal
// aliases.
// Both are facilitated by the moduleMap Compartment constructor option.
       const makeAlias = (compartment, specifier) =>
  freeze({ compartment, specifier });

// `resolveAll` pre-computes resolutions of all imports within the compartment
// in which a module was loaded.
$h͏_once.makeAlias(makeAlias);const resolveAll=(imports,resolveHook,fullReferrerSpecifier)=>{
  const resolvedImports = create(null);
  for (const importSpecifier of imports) {
    const fullSpecifier = resolveHook(importSpecifier, fullReferrerSpecifier);
    resolvedImports[importSpecifier] = fullSpecifier;
  }
  return freeze(resolvedImports);
};

const loadModuleSource = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  moduleSource,
  enqueueJob,
  selectImplementation,
  moduleLoads,
  importMeta,
) => {
  const { resolveHook, name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const { imports } = moduleSource;
  if (
    !isArray(imports) ||
    arraySome(imports, specifier => typeof specifier !== 'string')
  ) {
    throw makeError(
      X`Invalid module source: 'imports' must be an array of strings, got ${imports} for module ${q(moduleSpecifier)} of compartment ${q(compartmentName)}`,
    );
  }

  // resolve all imports relative to this referrer module.
  const resolvedImports = resolveAll(imports, resolveHook, moduleSpecifier);
  const moduleRecord = freeze({
    compartment,
    moduleSource,
    moduleSpecifier,
    resolvedImports,
    importMeta,
  });

  // Enqueue jobs to load this module's shallow dependencies.
  for (const fullSpecifier of values(resolvedImports)) {
    // Behold: recursion.
    // eslint-disable-next-line no-use-before-define
    enqueueJob(memoizedLoadWithErrorAnnotation, [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      fullSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ]);
  }

  return moduleRecord;
};

function* loadWithoutErrorAnnotation(
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) {
  const {
    importHook,
    importNowHook,
    moduleMap,
    moduleMapHook,
    moduleRecords,
    parentCompartment,
  } = weakmapGet(compartmentPrivateFields, compartment);

  if (mapHas(moduleRecords, moduleSpecifier)) {
    return mapGet(moduleRecords, moduleSpecifier);
  }

  // Follow moduleMap, or moduleMapHook if present.
  let moduleDescriptor = moduleMap[moduleSpecifier];
  if (moduleDescriptor === undefined && moduleMapHook !== undefined) {
    moduleDescriptor = moduleMapHook(moduleSpecifier);
  }
  if (moduleDescriptor === undefined) {
    const moduleHook = selectImplementation(importHook, importNowHook);
    if (moduleHook === undefined) {
      const moduleHookName = selectImplementation(
        'importHook',
        'importNowHook',
      );
      throw makeError(
        X`${b(moduleHookName)} needed to load module ${q(
          moduleSpecifier,
        )} in compartment ${q(compartment.name)}`,
      );
    }
    moduleDescriptor = moduleHook(moduleSpecifier);
    // Uninitialized module namespaces throw if we attempt to coerce them into
    // promises.
    if (!weakmapHas(moduleAliases, moduleDescriptor)) {
      moduleDescriptor = yield moduleDescriptor;
    }
  }

  if (typeof moduleDescriptor === 'string') {
    // eslint-disable-next-line @endo/no-polymorphic-call
    throw makeError(
      X`Cannot map module ${q(moduleSpecifier)} to ${q(
        moduleDescriptor,
      )} in parent compartment, use {source} module descriptor`,
      TypeError,
    );
  } else if (!isPrimitive(moduleDescriptor)) {
    // In this shim (and not in XS, and not in the standard we imagine), we
    // allow a module namespace object to stand in for a module descriptor that
    // describes its original {compartment, specifier} so that it can be used
    // to create a link.
    let aliasDescriptor = weakmapGet(moduleAliases, moduleDescriptor);
    if (aliasDescriptor !== undefined) {
      moduleDescriptor = aliasDescriptor;
    }

    if (moduleDescriptor.namespace !== undefined) {
      // { namespace: string, compartment?: Compartment }
      // Namespace module descriptors link to a module instance.

      if (typeof moduleDescriptor.namespace === 'string') {
        // The default compartment is the *parent*, not this child compartment.
        // This is a difference from the legacy {specifier, compartment} module
        // descriptor.
        const {
          compartment: aliasCompartment = parentCompartment,
          namespace: aliasSpecifier,
        } = moduleDescriptor;
        if (
          isPrimitive(aliasCompartment) ||
          !weakmapHas(compartmentPrivateFields, aliasCompartment)
        ) {
          throw makeError(
            X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
          );
        }
        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const aliasRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          aliasCompartment,
          aliasSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }

      // All remaining objects must either be a module namespace, or be
      // promoted into a module namespace with a virtual module source.
      if (!isPrimitive(moduleDescriptor.namespace)) {
        const { namespace } = moduleDescriptor;
        // Brand-check SES shim module exports namespaces:
        aliasDescriptor = weakmapGet(moduleAliases, namespace);
        if (aliasDescriptor !== undefined) {
          moduleDescriptor = aliasDescriptor;
          // Fall through to processing the resulting {compartment, specifier}
          // alias.
        } else {
          // Promote an arbitrary object to a module namespace with a virtual
          // module source.
          // { namespace: Object }
          const exports = getOwnPropertyNames(namespace);
          /** @type {import('../types.js').VirtualModuleSource} */
          const moduleSource = {
            imports: [],
            exports,
            execute(env) {
              for (const name of exports) {
                env[name] = namespace[name];
              }
            },
          };
          const importMeta = undefined;
          const moduleRecord = loadModuleSource(
            compartmentPrivateFields,
            moduleAliases,
            compartment,
            moduleSpecifier,
            moduleSource,
            enqueueJob,
            selectImplementation,
            moduleLoads,
            importMeta,
          );
          mapSet(moduleRecords, moduleSpecifier, moduleRecord);
          return moduleRecord;
        }
      } else {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
    }

    if (moduleDescriptor.source !== undefined) {
      // Module source descriptors create an instance from a module source.
      // The descriptor may contain the module source, or refer to a source
      // loaded in a particular compartment.

      if (typeof moduleDescriptor.source === 'string') {
        // { source: string, importMeta?, specifier?: string, compartment? }
        // A string source is the specifier for a different module source.
        // That source may come from this compartment's parent (default), or
        // from a specified compartment, and the specified compartment may be
        // this compartment to make a duplicate.

        const {
          source: loaderSpecifier,
          specifier: instanceSpecifier = moduleSpecifier,
          compartment: loaderCompartment = parentCompartment,
          importMeta = undefined,
        } = moduleDescriptor;

        // Induce the compartment, possibly a different compartment
        // to load a module source.

        // Behold: recursion.
        // eslint-disable-next-line no-use-before-define
        const loaderRecord = yield memoizedLoadWithErrorAnnotation(
          compartmentPrivateFields,
          moduleAliases,
          loaderCompartment,
          loaderSpecifier,
          enqueueJob,
          selectImplementation,
          moduleLoads,
        );

        // Extract the source of the module from the loader compartment's
        // record.
        const { moduleSource } = loaderRecord;

        // Instantiate that source in our own compartment, possibly with a
        // different specifier for resolving its own imports.
        const moduleRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          instanceSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, moduleRecord);
        return moduleRecord;
      } else {
        // { source: ModuleSource, importMeta?, specifier?: string }
        // We assume all non-string module sources are any of the supported
        // kinds of module source: PrecompiledModuleSource,
        // VirtualModuleSource, or a native ModuleSource.

        const {
          source: moduleSource,
          specifier: aliasSpecifier = moduleSpecifier,
          importMeta,
        } = moduleDescriptor;

        const aliasRecord = loadModuleSource(
          compartmentPrivateFields,
          moduleAliases,
          compartment,
          aliasSpecifier,
          moduleSource,
          enqueueJob,
          selectImplementation,
          moduleLoads,
          importMeta,
        );
        mapSet(moduleRecords, moduleSpecifier, aliasRecord);
        return aliasRecord;
      }
    }

    if (moduleDescriptor.archive !== undefined) {
      // { archive: Archive, path: string }
      // We do not support this XS-native module descriptor.
      throw makeError(
        X`Unsupported archive module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
      );
    }

    // { record, specifier?, compartment?, importMeta? }
    // A (legacy) module descriptor for when we find the module source (record)
    // but at a different specifier than requested.
    // Providing this {specifier, record} descriptor serves as an ergonomic
    // short-hand for stashing the record, returning a {compartment, specifier}
    // reference, bouncing the module hook, then producing the source (record)
    // when module hook receives the response specifier.
    if (moduleDescriptor.record !== undefined) {
      const {
        compartment: aliasCompartment = compartment,
        specifier: aliasSpecifier = moduleSpecifier,
        record: moduleSource,
        importMeta,
      } = moduleDescriptor;

      const aliasRecord = loadModuleSource(
        compartmentPrivateFields,
        moduleAliases,
        aliasCompartment,
        aliasSpecifier,
        moduleSource,
        enqueueJob,
        selectImplementation,
        moduleLoads,
        importMeta,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      mapSet(moduleRecords, aliasSpecifier, aliasRecord);
      return aliasRecord;
    }

    // { specifier: string, compartment: Compartment }
    // A (legacy) module descriptor that describes a link to a module instance
    // in a specified compartment.
    if (
      moduleDescriptor.compartment !== undefined &&
      moduleDescriptor.specifier !== undefined
    ) {
      if (
        isPrimitive(moduleDescriptor.compartment) ||
        !weakmapHas(compartmentPrivateFields, moduleDescriptor.compartment) ||
        typeof moduleDescriptor.specifier !== 'string'
      ) {
        throw makeError(
          X`Invalid compartment in module descriptor for specifier ${q(moduleSpecifier)} in compartment ${q(compartment.name)}`,
        );
      }
      // Behold: recursion.
      // eslint-disable-next-line no-use-before-define
      const aliasRecord = yield memoizedLoadWithErrorAnnotation(
        compartmentPrivateFields,
        moduleAliases,
        moduleDescriptor.compartment,
        moduleDescriptor.specifier,
        enqueueJob,
        selectImplementation,
        moduleLoads,
      );
      mapSet(moduleRecords, moduleSpecifier, aliasRecord);
      return aliasRecord;
    }

    // A (legacy) behavior: If we do not recognize the module descriptor as a
    // module descriptor, we assume that it is a module source (record):
    const moduleSource = moduleDescriptor;
    const moduleRecord = loadModuleSource(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      moduleSource,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    );
    // Memoize.
    mapSet(moduleRecords, moduleSpecifier, moduleRecord);
    return moduleRecord;
  } else {
    throw makeError(
      X`module descriptor must be a string or object for specifier ${q(
        moduleSpecifier,
      )} in compartment ${q(compartment.name)}`,
    );
  }
}

const memoizedLoadWithErrorAnnotation = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  enqueueJob,
  selectImplementation,
  moduleLoads,
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  // Prevent data-lock from recursion into branches visited in dependent loads.
  let compartmentLoading = mapGet(moduleLoads, compartment);
  if (compartmentLoading === undefined) {
    compartmentLoading = new Map();
    mapSet(moduleLoads, compartment, compartmentLoading);
  }
  let moduleLoading = mapGet(compartmentLoading, moduleSpecifier);
  if (moduleLoading !== undefined) {
    return moduleLoading;
  }

  moduleLoading = selectImplementation(asyncTrampoline, syncTrampoline)(
    loadWithoutErrorAnnotation,
    [
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      moduleSpecifier,
      enqueueJob,
      selectImplementation,
      moduleLoads,
    ],
    error => {
      // eslint-disable-next-line @endo/no-polymorphic-call
      annotateError(
        error,
        X`${error.message}, loading ${q(moduleSpecifier)} in compartment ${q(
          compartmentName,
        )}`,
      );
      throw error;
    },
  );

  mapSet(compartmentLoading, moduleSpecifier, moduleLoading);

  return moduleLoading;
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the fulfilled object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const asyncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  /** @type {Set<Promise<undefined>>} */
  const pendingJobs = new Set();

  /**
   * Enqueues a job that starts immediately but won't be awaited until drainQueue is called.
   *
   * @template {(...args: any[]) => Promise<void>} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    setAdd(
      pendingJobs,
      promiseThen(func(...args), noop, error => {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }),
    );
  };
  /**
   * Sequentially awaits pending jobs and returns an array of errors
   */
  const drainQueue = async () => {
    await null;
    for (const job of pendingJobs) {
      // eslint-disable-next-line no-await-in-loop
      await job;
    }
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * If `aggregateErrors` is `false`, the `errors` property of the returned object
 * will always be empty.
 * @param {{errors?: Error[], noAggregateErrors?: boolean}} [options]
 */
const syncJobQueue = ({ errors = [], noAggregateErrors = false } = {}) => {
  let current = [];
  let next = [];

  /**
   * Enqueues a job
   *
   * @template {(...args: any[]) => void} F
   * @param {F} func - An async function to execute
   * @param {Parameters<F>} args - Arguments to pass to the function
   * @returns {void}
   */
  const enqueueJob = (func, args) => {
    arrayPush(next, [func, args]);
  };
  const drainQueue = () => {
    // Attention: load bearing flow order. Calling another enqueued function in the
    // synchronous usecase must happen after the one that enqueued it has finished.
    // Jobs enqueued in one pass do not interleave with jobs resulting from them.
    // It's necessary for efficient memoization and to break cycles.
    for (const [func, args] of current) {
      try {
        func(...args);
      } catch (error) {
        if (noAggregateErrors) {
          throw error;
        } else {
          arrayPush(errors, error);
        }
      }
    }
    current = next;
    next = [];
    if (current.length > 0) drainQueue();
  };
  return { enqueueJob, drainQueue, errors };
};

/**
 * @param {object} options
 * @param {Array<Error>} options.errors
 * @param {string} options.errorPrefix
 */
const throwAggregateError = ({ errors, errorPrefix }) => {
  // Throw an aggregate error if there were any errors.
  if (errors.length > 0) {
    const verbose =
      /** @type {'' | 'verbose'} */
      (getenv('COMPARTMENT_LOAD_ERRORS', '', ['verbose'])) === 'verbose';
    throw TypeError(
      `${errorPrefix} (${errors.length} underlying failures: ${arrayJoin(
        arrayMap(errors, error => error.message + (verbose ? error.stack : '')),
        ', ',
      )}`,
    );
  }
};

const preferSync = (_asyncImpl, syncImpl) => syncImpl;
const preferAsync = (asyncImpl, _syncImpl) => asyncImpl;

/**
 * `load` asynchronously gathers the module records for a module and its
 * transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */
       const load = async (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = asyncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferAsync,
    moduleLoads,
  ]);

  await drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};

/**
 * `loadNow` synchronously gathers the module records for a specified module
 * and its transitive dependencies.
 * The module records refer to each other by a reference to the dependency's
 * compartment and the specifier of the module within its own compartment.
 * This graph is then ready to be synchronously linked and executed.
 * @param {WeakMap<Compartment, any>} compartmentPrivateFields
 * @param {WeakMap<object, object>} moduleAliases
 * @param {Compartment} compartment
 * @param {string} moduleSpecifier - The module specifier to load.
 * @param {{ noAggregateErrors?: boolean}} options
 */$h͏_once.load(load);

       const loadNow = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
  { noAggregateErrors = false } = {},
) => {
  const { name: compartmentName } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  /** @type {Map<object, Map<string, Promise<Record<any, any>>>>} */
  const moduleLoads = new Map();

  const { enqueueJob, drainQueue, errors } = syncJobQueue({
    noAggregateErrors,
  });

  enqueueJob(memoizedLoadWithErrorAnnotation, [
    compartmentPrivateFields,
    moduleAliases,
    compartment,
    moduleSpecifier,
    enqueueJob,
    preferSync,
    moduleLoads,
  ]);

  drainQueue();

  throwAggregateError({
    errors,
    errorPrefix: `Failed to load module ${q(moduleSpecifier)} in package ${q(
      compartmentName,
    )}`,
  });
};$h͏_once.loadNow(loadNow);
})()
,
// === 46. ses ./src/module-proxy.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let makeAlias,Proxy,TypeError,create,freeze,mapGet,mapHas,mapSet,ownKeys,reflectGet,reflectGetOwnPropertyDescriptor,reflectHas,reflectIsExtensible,reflectPreventExtensions,toStringTagSymbol,weakmapSet,assert;$h͏_imports([["./module-load.js", [["makeAlias",[$h͏_a => (makeAlias = $h͏_a)]]]],["./commons.js", [["Proxy",[$h͏_a => (Proxy = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["reflectGet",[$h͏_a => (reflectGet = $h͏_a)]],["reflectGetOwnPropertyDescriptor",[$h͏_a => (reflectGetOwnPropertyDescriptor = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["reflectIsExtensible",[$h͏_a => (reflectIsExtensible = $h͏_a)]],["reflectPreventExtensions",[$h͏_a => (reflectPreventExtensions = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);































const { quote: q } = assert;

// `deferExports` creates a module's exports proxy, proxied exports, and
// activator.
// A `Compartment` can create a module for any module specifier, regardless of
// whether it is loadable or executable, and use that object as a token that
// can be fed into another compartment's module map.
// Only after the specified module has been analyzed is it possible for the
// module namespace proxy to behave properly, so it throws exceptions until
// after the compartment has begun executing the module.
// The module instance must freeze the proxied exports and activate the exports
// proxy before executing the module.
//
// The module exports proxy's behavior differs from the ECMAScript 262
// specification for "module namespace exotic objects" only in that according
// to the specification value property descriptors have a non-writable "value"
// and this implementation models all properties with accessors.
//
// https://tc39.es/ecma262/#sec-module-namespace-exotic-objects
//
       const deferExports = () => {
  let active = false;
  const exportsTarget = create(null, {
    // Make this appear like an ESM module namespace object.
    [toStringTagSymbol]: {
      value: 'Module',
      writable: false,
      enumerable: false,
      configurable: false,
    },
  });
  return freeze({
    activate() {
      active = true;
    },
    exportsTarget,
    exportsProxy: new Proxy(exportsTarget, {
      get(_target, name, receiver) {
        if (!active) {
          throw TypeError(
            `Cannot get property ${q(
              name,
            )} of module exports namespace, the module has not yet begun to execute`,
          );
        }
        return reflectGet(exportsTarget, name, receiver);
      },
      set(_target, name, _value) {
        throw TypeError(
          `Cannot set property ${q(name)} of module exports namespace`,
        );
      },
      has(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot check property ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectHas(exportsTarget, name);
      },
      deleteProperty(_target, name) {
        throw TypeError(
          `Cannot delete property ${q(name)}s of module exports namespace`,
        );
      },
      ownKeys(_target) {
        if (!active) {
          throw TypeError(
            'Cannot enumerate keys, the module has not yet begun to execute',
          );
        }
        return ownKeys(exportsTarget);
      },
      getOwnPropertyDescriptor(_target, name) {
        if (!active) {
          throw TypeError(
            `Cannot get own property descriptor ${q(
              name,
            )}, the module has not yet begun to execute`,
          );
        }
        return reflectGetOwnPropertyDescriptor(exportsTarget, name);
      },
      preventExtensions(_target) {
        if (!active) {
          throw TypeError(
            'Cannot prevent extensions of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectPreventExtensions(exportsTarget);
      },
      isExtensible() {
        if (!active) {
          throw TypeError(
            'Cannot check extensibility of module exports namespace, the module has not yet begun to execute',
          );
        }
        return reflectIsExtensible(exportsTarget);
      },
      getPrototypeOf(_target) {
        return null;
      },
      setPrototypeOf(_target, _proto) {
        throw TypeError('Cannot set prototype of module exports namespace');
      },
      defineProperty(_target, name, _descriptor) {
        throw TypeError(
          `Cannot define property ${q(name)} of module exports namespace`,
        );
      },
      apply(_target, _thisArg, _args) {
        throw TypeError(
          'Cannot call module exports namespace, it is not a function',
        );
      },
      construct(_target, _args) {
        throw TypeError(
          'Cannot construct module exports namespace, it is not a constructor',
        );
      },
    }),
  });
};

/**
 * @typedef {object} DeferredExports
 * @property {Record<string, any>} exportsTarget - The object to which a
 * module's exports will be added.
 * @property {Record<string, any>} exportsProxy - A proxy over the `exportsTarget`,
 * used to expose its "exports" to other compartments.
 * @property {() => void} activate - Activate the `exportsProxy` such that it can
 * be used as a module namespace object.
 */

/**
 * Memoizes the creation of a deferred module exports namespace proxy for any
 * arbitrary full specifier in a compartment. It also records the compartment
 * and specifier affiliated with that module exports namespace proxy so it
 * can be used as an alias into another compartment when threaded through
 * a compartment's `moduleMap` argument.
 *
 * @param {*} compartment - The compartment to retrieve deferred exports from.
 * @param {*} compartmentPrivateFields - The private fields of the compartment.
 * @param {*} moduleAliases - The module aliases of the compartment.
 * @param {string} specifier - The module specifier to retrieve deferred exports for.
 * @returns {DeferredExports} - The deferred exports for the module specifier of
 * the compartment.
 */$h͏_once.deferExports(deferExports);
       const getDeferredExports = (
  compartment,
  compartmentPrivateFields,
  moduleAliases,
  specifier,
) => {
  const { deferredExports } = compartmentPrivateFields;
  if (!mapHas(deferredExports, specifier)) {
    const deferred = deferExports();
    weakmapSet(
      moduleAliases,
      deferred.exportsProxy,
      makeAlias(compartment, specifier),
    );
    mapSet(deferredExports, specifier, deferred);
  }
  return mapGet(deferredExports, specifier);
};$h͏_once.getDeferredExports(getDeferredExports);
})()
,
// === 47. ses ./src/compartment-evaluate.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let TypeError,arrayPush,create,getOwnPropertyDescriptors,evadeHtmlCommentTest,evadeImportExpressionTest,rejectSomeDirectEvalExpressions,makeSafeEvaluator;$h͏_imports([["./commons.js", [["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]]]],["./transforms.js", [["evadeHtmlCommentTest",[$h͏_a => (evadeHtmlCommentTest = $h͏_a)]],["evadeImportExpressionTest",[$h͏_a => (evadeImportExpressionTest = $h͏_a)]],["rejectSomeDirectEvalExpressions",[$h͏_a => (rejectSomeDirectEvalExpressions = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);













       const provideCompartmentEvaluator = (compartmentFields, options) => {
  const { sloppyGlobalsMode = false, __moduleShimLexicals__ = undefined } =
    options;

  let safeEvaluate;

  if (__moduleShimLexicals__ === undefined && !sloppyGlobalsMode) {
    ({ safeEvaluate } = compartmentFields);
  } else {
    // The scope proxy or global lexicals are different from the
    // shared evaluator so we need to build a new one

    let { globalTransforms } = compartmentFields;
    const { globalObject } = compartmentFields;

    let moduleLexicals;
    if (__moduleShimLexicals__ !== undefined) {
      // When using `evaluate` for ESM modules, as should only occur from the
      // module-shim's module-instance.js, we do not reveal the SES-shim's
      // module-to-program translation, as this is not standardizable behavior.
      // However, the `localTransforms` will come from the `__shimTransforms__`
      // Compartment option in this case, which is a non-standardizable escape
      // hatch so programs designed specifically for the SES-shim
      // implementation may opt-in to use the same transforms for `evaluate`
      // and `import`, at the expense of being tightly coupled to SES-shim.
      globalTransforms = undefined;

      moduleLexicals = create(
        null,
        getOwnPropertyDescriptors(__moduleShimLexicals__),
      );
    }

    ({ safeEvaluate } = makeSafeEvaluator({
      globalObject,
      moduleLexicals,
      globalTransforms,
      sloppyGlobalsMode,
    }));
  }

  return { safeEvaluate };
};$h͏_once.provideCompartmentEvaluator(provideCompartmentEvaluator);

       const compartmentEvaluate = (compartmentFields, source, options) => {
  // Perform this check first to avoid unnecessary sanitizing.
  // TODO Maybe relax string check and coerce instead:
  // https://github.com/tc39/proposal-dynamic-code-brand-checks
  if (typeof source !== 'string') {
    throw TypeError('first argument of evaluate() must be a string');
  }

  // Extract options, and shallow-clone transforms.
  const {
    transforms = [],
    __evadeHtmlCommentTest__ = false,
    __evadeImportExpressionTest__ = false,
    __rejectSomeDirectEvalExpressions__ = true  // Note default on
  } = options;
  const localTransforms = [...transforms];
  if (__evadeHtmlCommentTest__ === true) {
    arrayPush(localTransforms, evadeHtmlCommentTest);
  }
  if (__evadeImportExpressionTest__ === true) {
    arrayPush(localTransforms, evadeImportExpressionTest);
  }
  if (__rejectSomeDirectEvalExpressions__ === true) {
    arrayPush(localTransforms, rejectSomeDirectEvalExpressions);
  }

  const { safeEvaluate } = provideCompartmentEvaluator(
    compartmentFields,
    options,
  );

  return safeEvaluate(source, {
    localTransforms,
  });
};$h͏_once.compartmentEvaluate(compartmentEvaluate);
})()
,
// === 48. ses ./src/module-instance.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,getDeferredExports,ReferenceError,SyntaxError,TypeError,arrayForEach,arrayIncludes,arrayPush,arraySome,arraySort,create,defineProperty,entries,freeze,isArray,keys,mapGet,weakmapGet,reflectHas,assign,compartmentEvaluate;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./commons.js", [["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["SyntaxError",[$h͏_a => (SyntaxError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayForEach",[$h͏_a => (arrayForEach = $h͏_a)]],["arrayIncludes",[$h͏_a => (arrayIncludes = $h͏_a)]],["arrayPush",[$h͏_a => (arrayPush = $h͏_a)]],["arraySome",[$h͏_a => (arraySome = $h͏_a)]],["arraySort",[$h͏_a => (arraySort = $h͏_a)]],["create",[$h͏_a => (create = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["freeze",[$h͏_a => (freeze = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["keys",[$h͏_a => (keys = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["reflectHas",[$h͏_a => (reflectHas = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]]]);

























const { quote: q } = assert;

       const makeVirtualModuleInstance = (
  compartmentPrivateFields,
  moduleSource,
  compartment,
  moduleAliases,
  moduleSpecifier,
  resolvedImports,
) => {
  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    weakmapGet(compartmentPrivateFields, compartment),
    moduleAliases,
    moduleSpecifier,
  );

  const notifiers = create(null);

  if (moduleSource.exports) {
    if (
      !isArray(moduleSource.exports) ||
      arraySome(moduleSource.exports, name => typeof name !== 'string')
    ) {
      throw TypeError(
        `SES virtual module source "exports" property must be an array of strings for module ${moduleSpecifier}`,
      );
    }
    arrayForEach(moduleSource.exports, name => {
      let value = exportsTarget[name];
      const updaters = [];

      const get = () => value;

      const set = newValue => {
        value = newValue;
        for (const updater of updaters) {
          updater(newValue);
        }
      };

      defineProperty(exportsTarget, name, {
        get,
        set,
        enumerable: true,
        configurable: false,
      });

      notifiers[name] = update => {
        arrayPush(updaters, update);
        update(value);
      };
    });
    // This is enough to support import * from cjs - the '*' field doesn't need to be in exports nor exportsTarget because import will only ever access it via notifiers
    notifiers['*'] = update => {
      update(exportsTarget);
    };
  }

  const localState = {
    activated: false,
  };
  return freeze({
    notifiers,
    exportsProxy,
    execute() {
      if (reflectHas(localState, 'errorFromExecute')) {
        throw localState.errorFromExecute;
      }
      if (!localState.activated) {
        activate();
        localState.activated = true;
        try {
          // eslint-disable-next-line @endo/no-polymorphic-call
          moduleSource.execute(exportsTarget, compartment, resolvedImports);
        } catch (err) {
          localState.errorFromExecute = err;
          throw err;
        }
      }
    },
  });
};

// `makeModuleInstance` takes a module's compartment record, the live import
// namespace, and a global object; and produces a module instance.
// The module instance carries the proxied module exports namespace (the
// "exports"), notifiers to update the module's internal import namespace, and
// an idempotent execute function.
// The module exports namespace is a proxy to the proxied exports namespace
// that the execution of the module instance populates.
$h͏_once.makeVirtualModuleInstance(makeVirtualModuleInstance);const makeModuleInstance=(
  privateFields,
  moduleAliases,
  moduleRecord,
  importedInstances,
) => {
  const {
    compartment,
    moduleSpecifier,
    moduleSource,
    importMeta: moduleRecordMeta,
  } = moduleRecord;
  const {
    reexports: exportAlls = [],
    __syncModuleProgram__: functorSource,
    __fixedExportMap__: fixedExportMap = {},
    __liveExportMap__: liveExportMap = {},
    __reexportMap__: reexportMap = {},
    __needsImport__: needsImport = false,
    __needsImportMeta__: needsImportMeta = false,
    __syncModuleFunctor__,
  } = moduleSource;

  const compartmentFields = weakmapGet(privateFields, compartment);

  const { __shimTransforms__, resolveHook, importMetaHook, compartmentImport } =
    compartmentFields;

  const { exportsProxy, exportsTarget, activate } = getDeferredExports(
    compartment,
    compartmentFields,
    moduleAliases,
    moduleSpecifier,
  );

  // {_exportName_: getter} module exports namespace
  // object (eventually proxied).
  const exportsProps = create(null);

  // {_localName_: accessor} proxy traps for moduleLexicals and live bindings.
  // The moduleLexicals object is frozen and the corresponding properties of
  // moduleLexicals must be immutable, so we copy the descriptors.
  const moduleLexicals = create(null);

  // {_localName_: init(initValue) -> initValue} used by the
  // rewritten code to initialize exported fixed bindings.
  const onceVar = create(null);

  // {_localName_: update(newValue)} used by the rewritten code to
  // both initialize and update live bindings.
  const liveVar = create(null);

  const importMeta = create(null);
  if (moduleRecordMeta) {
    assign(importMeta, moduleRecordMeta);
  }
  if (needsImportMeta && importMetaHook) {
    importMetaHook(moduleSpecifier, importMeta);
  }

  /** @type {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} */
  let dynamicImport;
  if (needsImport) {
    /** @param {string} importSpecifier */
    dynamicImport = async importSpecifier =>
      compartmentImport(resolveHook(importSpecifier, moduleSpecifier));
  }

  // {_localName_: [{get, set, notify}]} used to merge all the export updaters.
  const localGetNotify = create(null);

  // {[importName: string]: notify(update(newValue))} Used by code that imports
  // one of this module's exports, so that their update function will
  // be notified when this binding is initialized or updated.
  const notifiers = create(null);

  arrayForEach(entries(fixedExportMap), ([fixedExportName, [localName]]) => {
    let fixedGetNotify = localGetNotify[localName];
    if (!fixedGetNotify) {
      // fixed binding state
      let value;
      let tdz = true;
      /** @type {null | Array<(value: any) => void>} */
      let optUpdaters = [];

      // tdz sensitive getter
      const get = () => {
        if (tdz) {
          throw ReferenceError(`binding ${q(localName)} not yet initialized`);
        }
        return value;
      };

      // leave tdz once
      const init = freeze(initValue => {
        // init with initValue of a declared const binding, and return
        // it.
        if (!tdz) {
          throw TypeError(
            `Internal: binding ${q(localName)} already initialized`,
          );
        }
        value = initValue;
        const updaters = optUpdaters;
        optUpdaters = null;
        tdz = false;
        for (const updater of updaters || []) {
          updater(initValue);
        }
        return initValue;
      });

      // If still tdz, register update for notification later.
      // Otherwise, update now.
      const notify = updater => {
        if (updater === init) {
          // Prevent recursion.
          return;
        }
        if (tdz) {
          arrayPush(optUpdaters || [], updater);
        } else {
          updater(value);
        }
      };

      // Need these for additional exports of the local variable.
      fixedGetNotify = {
        get,
        notify,
      };
      localGetNotify[localName] = fixedGetNotify;
      onceVar[localName] = init;
    }

    exportsProps[fixedExportName] = {
      get: fixedGetNotify.get,
      set: undefined,
      enumerable: true,
      configurable: false,
    };

    notifiers[fixedExportName] = fixedGetNotify.notify;
  });

  arrayForEach(
    entries(liveExportMap),
    ([liveExportName, [localName, setProxyTrap]]) => {
      let liveGetNotify = localGetNotify[localName];
      if (!liveGetNotify) {
        // live binding state
        let value;
        let tdz = true;
        const updaters = [];

        // tdz sensitive getter
        const get = () => {
          if (tdz) {
            throw ReferenceError(
              `binding ${q(liveExportName)} not yet initialized`,
            );
          }
          return value;
        };

        // This must be usable locally for the translation of initializing
        // a declared local live binding variable.
        //
        // For reexported variable, this is also an update function to
        // register for notification with the downstream import, which we
        // must assume to be live. Thus, it can be called independent of
        // tdz but always leaves tdz. Such reexporting creates a tree of
        // bindings. This lets the tree be hooked up even if the imported
        // module instance isn't initialized yet, as may happen in cycles.
        const update = freeze(newValue => {
          value = newValue;
          tdz = false;
          for (const updater of updaters) {
            updater(newValue);
          }
        });

        // tdz sensitive setter
        const set = newValue => {
          if (tdz) {
            throw ReferenceError(`binding ${q(localName)} not yet initialized`);
          }
          value = newValue;
          for (const updater of updaters) {
            updater(newValue);
          }
        };

        // Always register the updater function.
        // If not in tdz, also update now.
        const notify = updater => {
          if (updater === update) {
            // Prevent recursion.
            return;
          }
          arrayPush(updaters, updater);
          if (!tdz) {
            updater(value);
          }
        };

        liveGetNotify = {
          get,
          notify,
        };

        localGetNotify[localName] = liveGetNotify;
        if (setProxyTrap) {
          defineProperty(moduleLexicals, localName, {
            get,
            set,
            enumerable: true,
            configurable: false,
          });
        }
        liveVar[localName] = update;
      }

      exportsProps[liveExportName] = {
        get: liveGetNotify.get,
        set: undefined,
        enumerable: true,
        configurable: false,
      };

      notifiers[liveExportName] = liveGetNotify.notify;
    },
  );

  const notifyStar = update => {
    update(exportsTarget);
  };
  notifiers['*'] = notifyStar;

  const wireUpExportNotifier = (exportName, notify) => {
    if (!notifiers[exportName] && notify !== false) {
      notifiers[exportName] = notify;

      // exported live binding state
      let value;
      const update = newValue => (value = newValue);
      notify(update);
      exportsProps[exportName] = {
        get() {
          return value;
        },
        set: undefined,
        enumerable: true,
        configurable: false,
      };
    }
  };

  // Per the calling convention for the moduleFunctor generated from
  // an ESM, the `imports` function gets called once up front
  // to populate or arrange the population of imports and reexports.
  // The generated code produces an `updateRecord`: the means for
  // the linker to update the imports and exports of the module.
  // The updateRecord must conform to moduleAnalysis.imports
  // updateRecord = Map<specifier, importUpdaters>
  // importUpdaters = Map<importName, [update(newValue)*]>
  function imports(updateRecord) {
    // By the time imports is called, the importedInstances should already be
    // initialized with module instances that satisfy
    // imports.
    // importedInstances = Map[_specifier_, { notifiers, module, execute }]
    // notifiers = { [importName: string]: notify(update(newValue))}

    // export * cannot export default.
    const candidateAll = create(null);
    candidateAll.default = false;
    for (const [specifier, importUpdaters] of updateRecord) {
      const instance = mapGet(importedInstances, specifier);
      // The module instance object is an internal literal, does not bind this,
      // and never revealed outside the SES shim.
      // There are two instantiation sites for instances and they are both in
      // this module.
      // eslint-disable-next-line @endo/no-polymorphic-call
      instance.execute(); // bottom up cycle tolerant
      const { notifiers: importNotifiers } = instance;
      for (const [importName, updaters] of importUpdaters) {
        const importNotify = importNotifiers[importName];
        if (!importNotify) {
          throw SyntaxError(
            `The requested module '${specifier}' does not provide an export named '${importName}'`,
          );
        }
        for (const updater of updaters) {
          importNotify(updater);
        }
      }
      if (arrayIncludes(exportAlls, specifier)) {
        // Make all these imports candidates.
        // Note names don't change in reexporting all
        for (const [importAndExportName, importNotify] of entries(
          importNotifiers,
        )) {
          if (candidateAll[importAndExportName] === undefined) {
            candidateAll[importAndExportName] = importNotify;
          } else {
            // Already a candidate: remove ambiguity.
            candidateAll[importAndExportName] = false;
          }
        }
      }
      if (reexportMap[specifier]) {
        // Set up reexport notifiers instantly so they are available in cycles.
        for (const [localName, exportedName] of reexportMap[specifier]) {
          wireUpExportNotifier(exportedName, importNotifiers[localName]);
        }
      }
    }

    for (const [exportName, notify] of entries(candidateAll)) {
      wireUpExportNotifier(exportName, notify);
    }

    // Sort the module exports namespace as per spec.
    // The module exports namespace will be wrapped in a module namespace
    // exports proxy which will serve as a "module exports namespace exotic
    // object".
    // Sorting properties is not generally reliable because some properties may
    // be symbols, and symbols do not have an inherent relative order, but
    // since all properties of the exports namespace must be keyed by a string
    // and the string must correspond to a valid identifier, sorting these
    // properties works for this specific case.
    arrayForEach(arraySort(keys(exportsProps)), k =>
      defineProperty(exportsTarget, k, exportsProps[k]),
    );

    freeze(exportsTarget);
    activate();
  }

  let optFunctor;
  if (__syncModuleFunctor__ !== undefined) {
    optFunctor = __syncModuleFunctor__;
  } else {
    optFunctor = compartmentEvaluate(compartmentFields, functorSource, {
      globalObject: compartment.globalThis,
      transforms: __shimTransforms__,
      __moduleShimLexicals__: moduleLexicals,
    });
  }
  let didThrow = false;
  let thrownError;
  function execute() {
    if (optFunctor) {
      // uninitialized
      const functor = optFunctor;
      optFunctor = null;
      // initializing - call with `this` of `undefined`.
      try {
        functor(
          freeze({
            imports: freeze(imports),
            onceVar: freeze(onceVar),
            liveVar: freeze(liveVar),
            import: dynamicImport,
            importMeta,
          }),
        );
      } catch (e) {
        didThrow = true;
        thrownError = e;
      }
      // initialized
    }
    if (didThrow) {
      throw thrownError;
    }
  }

  return freeze({
    notifiers,
    exportsProxy,
    execute,
  });
};$h͏_once.makeModuleInstance(makeModuleInstance);
})()
,
// === 49. ses ./src/module-link.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let assert,makeModuleInstance,makeVirtualModuleInstance,Map,ReferenceError,TypeError,entries,isArray,isPrimitive,mapGet,mapHas,mapSet,weakmapGet;$h͏_imports([["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]],["./module-instance.js", [["makeModuleInstance",[$h͏_a => (makeModuleInstance = $h͏_a)]],["makeVirtualModuleInstance",[$h͏_a => (makeVirtualModuleInstance = $h͏_a)]]]],["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["ReferenceError",[$h͏_a => (ReferenceError = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["isArray",[$h͏_a => (isArray = $h͏_a)]],["isPrimitive",[$h͏_a => (isPrimitive = $h͏_a)]],["mapGet",[$h͏_a => (mapGet = $h͏_a)]],["mapHas",[$h͏_a => (mapHas = $h͏_a)]],["mapSet",[$h͏_a => (mapSet = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]]]]]);



















const { Fail, quote: q } = assert;

// `link` creates `ModuleInstances` and `ModuleNamespaces` for a module and its
// transitive dependencies and connects their imports and exports.
// After linking, the resulting working set is ready to be executed.
// The linker only concerns itself with module namespaces that are objects with
// property descriptors for their exports, which the Compartment proxies with
// the actual `ModuleNamespace`.
       const link = (
  compartmentPrivateFields,
  moduleAliases,
  compartment,
  moduleSpecifier,
) => {
  const { name: compartmentName, moduleRecords } = weakmapGet(
    compartmentPrivateFields,
    compartment,
  );

  const moduleRecord = mapGet(moduleRecords, moduleSpecifier);
  if (moduleRecord === undefined) {
    throw ReferenceError(
      `Missing link to module ${q(moduleSpecifier)} from compartment ${q(
        compartmentName,
      )}`,
    );
  }

  // Mutual recursion so there's no confusion about which
  // compartment is in context: the module record may be in another
  // compartment, denoted by moduleRecord.compartment.
  // eslint-disable-next-line no-use-before-define
  return instantiate(compartmentPrivateFields, moduleAliases, moduleRecord);
};$h͏_once.link(link);

function mayBePrecompiledModuleSource(moduleSource) {
  return typeof moduleSource.__syncModuleProgram__ === 'string';
}

function validatePrecompiledModuleSource(moduleSource, moduleSpecifier) {
  const { __fixedExportMap__, __liveExportMap__ } = moduleSource;
  !isPrimitive(__fixedExportMap__) ||
    Fail`Property '__fixedExportMap__' of a precompiled module source must be an object, got ${q(
      __fixedExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
  !isPrimitive(__liveExportMap__) ||
    Fail`Property '__liveExportMap__' of a precompiled module source must be an object, got ${q(
      __liveExportMap__,
    )}, for module ${q(moduleSpecifier)}`;
}

function mayBeVirtualModuleSource(moduleSource) {
  return typeof moduleSource.execute === 'function';
}

function validateVirtualModuleSource(moduleSource, moduleSpecifier) {
  const { exports } = moduleSource;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' of a virtual module source must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
}

function validateModuleSource(moduleSource, moduleSpecifier) {
  !isPrimitive(moduleSource) ||
    Fail`Invalid module source: must be of type object, got ${q(
      moduleSource,
    )}, for module ${q(moduleSpecifier)}`;
  const { imports, exports, reexports = [] } = moduleSource;
  isArray(imports) ||
    Fail`Invalid module source: 'imports' must be an array, got ${q(
      imports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(exports) ||
    Fail`Invalid module source: 'exports' must be an array, got ${q(
      exports,
    )}, for module ${q(moduleSpecifier)}`;
  isArray(reexports) ||
    Fail`Invalid module source: 'reexports' must be an array if present, got ${q(
      reexports,
    )}, for module ${q(moduleSpecifier)}`;
}

       const instantiate = (
  compartmentPrivateFields,
  moduleAliases,
  moduleRecord,
) => {
  const { compartment, moduleSpecifier, resolvedImports, moduleSource } =
    moduleRecord;
  const { instances } = weakmapGet(compartmentPrivateFields, compartment);

  // Memoize.
  if (mapHas(instances, moduleSpecifier)) {
    return mapGet(instances, moduleSpecifier);
  }

  validateModuleSource(moduleSource, moduleSpecifier);

  const importedInstances = new Map();
  let moduleInstance;
  if (mayBePrecompiledModuleSource(moduleSource)) {
    validatePrecompiledModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeModuleInstance(
      compartmentPrivateFields,
      moduleAliases,
      moduleRecord,
      importedInstances,
    );
  } else if (mayBeVirtualModuleSource(moduleSource)) {
    validateVirtualModuleSource(moduleSource, moduleSpecifier);
    moduleInstance = makeVirtualModuleInstance(
      compartmentPrivateFields,
      moduleSource,
      compartment,
      moduleAliases,
      moduleSpecifier,
      resolvedImports,
    );
  } else {
    throw TypeError(`Invalid module source, got ${q(moduleSource)}`);
  }

  // Memoize.
  mapSet(instances, moduleSpecifier, moduleInstance);

  // Link dependency modules.
  for (const [importSpecifier, resolvedSpecifier] of entries(resolvedImports)) {
    const importedInstance = link(
      compartmentPrivateFields,
      moduleAliases,
      compartment,
      resolvedSpecifier,
    );
    mapSet(importedInstances, importSpecifier, importedInstance);
  }

  return moduleInstance;
};$h͏_once.instantiate(instantiate);
})()
,
// === 50. ses ./src/compartment.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Map,TypeError,WeakMap,arrayFlatMap,assign,defineProperties,identity,promiseThen,toStringTagSymbol,weakmapGet,weakmapSet,setGlobalObjectSymbolUnscopables,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,assert,assertEqual,q,sharedGlobalPropertyNames,load,loadNow,link,getDeferredExports,compartmentEvaluate,makeSafeEvaluator;$h͏_imports([["./commons.js", [["Map",[$h͏_a => (Map = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["WeakMap",[$h͏_a => (WeakMap = $h͏_a)]],["arrayFlatMap",[$h͏_a => (arrayFlatMap = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["identity",[$h͏_a => (identity = $h͏_a)]],["promiseThen",[$h͏_a => (promiseThen = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]],["weakmapGet",[$h͏_a => (weakmapGet = $h͏_a)]],["weakmapSet",[$h͏_a => (weakmapSet = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectSymbolUnscopables",[$h͏_a => (setGlobalObjectSymbolUnscopables = $h͏_a)]],["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["assertEqual",[$h͏_a => (assertEqual = $h͏_a)]],["q",[$h͏_a => (q = $h͏_a)]]]],["./permits.js", [["sharedGlobalPropertyNames",[$h͏_a => (sharedGlobalPropertyNames = $h͏_a)]]]],["./module-load.js", [["load",[$h͏_a => (load = $h͏_a)]],["loadNow",[$h͏_a => (loadNow = $h͏_a)]]]],["./module-link.js", [["link",[$h͏_a => (link = $h͏_a)]]]],["./module-proxy.js", [["getDeferredExports",[$h͏_a => (getDeferredExports = $h͏_a)]]]],["./compartment-evaluate.js", [["compartmentEvaluate",[$h͏_a => (compartmentEvaluate = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]]]);




































































/**
 * @import {ImportHook, ImportMetaHook, ImportNowHook, ModuleDescriptor, ModuleExportsNamespace, ModuleMap, ModuleMapHook, ResolveHook, ModuleSource, CompartmentOptions} from '../types.js'
 * @import {Transform} from './lockdown.js'
 * @import {DeferredExports} from './module-proxy.js'
 */

/**
 * Associates every public module exports namespace with its corresponding
 * compartment and specifier so they can be used to link modules across
 * compartments. The mechanism to thread an alias is to use the
 * {@link Compartment.module} function to obtain the exports namespace of a foreign
 * module and pass it into another compartment's `moduleMap` constructor option
 * @type {WeakMap<ModuleExportsNamespace, Compartment>}
 *
 */
const moduleAliases = new WeakMap();

/**
 * Private fields for `Compartment` instances
 * @typedef {object} CompartmentFields
 * @property {string} name
 * @property {object} globalObject
 * @property {Array<Transform>} globalTransforms
 * @property {(source: string, options?: {localTransforms?: Array<Transform>}) => void} safeEvaluate
 * @property {ResolveHook} resolveHook
 * @property {ImportHook} importHook
 * @property {ImportNowHook} importNowHook
 * @property {ModuleMap} moduleMap
 * @property {ModuleMapHook} moduleMapHook
 * @property {ImportMetaHook} importMetaHook
 * @property {Map<string, ModuleSource>} moduleRecords
 * @property {Array<Transform>} __shimTransforms__
 * @property {DeferredExports} deferredExports
 * @property {Map<string, ModuleDescriptor>} instances
 * @property {Compartment} [parentCompartment]
 * @property {boolean} noNamespaceBox
 * @property {(fullSpecifier: string) => Promise<ModuleExportsNamespace>} compartmentImport
 * @property {boolean} [noAggregateLoadErrors]
 */

/**
 * Captures the private state for each {@link Compartment}
 * @type {WeakMap<Compartment, CompartmentFields>}
 */
const privateFields = new WeakMap();

       const InertCompartment = function Compartment(
  _endowments = {},
  _modules = {},
  _options = {},
) {
  throw TypeError(
    'Compartment.prototype.constructor is not a valid constructor.',
  );
};

/**
 * @param {Compartment} compartment
 * @param {string} specifier
 * @returns {{namespace: ModuleExportsNamespace}}
 */$h͏_once.InertCompartment(InertCompartment);
const compartmentImportNow = (compartment, specifier) => {
  const { execute, exportsProxy } = link(
    privateFields,
    moduleAliases,
    compartment,
    specifier,
  );
  execute();
  return exportsProxy;
};

/** @type {Compartment & {constructor: typeof InertCompartment}} */
       const CompartmentPrototype = {
  constructor: InertCompartment,

  get globalThis() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .globalObject;
  },

  get name() {
    return /** @type {CompartmentFields} */ (weakmapGet(privateFields, this))
      .name;
  },

  evaluate(source, options = {}) {
    const compartmentFields = weakmapGet(privateFields, this);
    return compartmentEvaluate(compartmentFields, source, options);
  },

  module(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of module() must be a string');
    }

    const { exportsProxy } = getDeferredExports(
      this,
      weakmapGet(privateFields, this),
      moduleAliases,
      specifier,
    );

    return exportsProxy;
  },

  async import(specifier) {
    const { noNamespaceBox, noAggregateLoadErrors } =
      /** @type {CompartmentFields} */ (weakmapGet(privateFields, this));

    if (typeof specifier !== 'string') {
      throw TypeError('first argument of import() must be a string');
    }

    return promiseThen(
      load(privateFields, moduleAliases, this, specifier, {
        noAggregateErrors: noAggregateLoadErrors,
      }),
      () => {
        // The namespace box is a contentious design and likely to be a breaking
        // change in an appropriately numbered future version.
        const namespace = compartmentImportNow(
          /** @type {Compartment} */ (this),
          specifier,
        );
        if (noNamespaceBox) {
          return namespace;
        }
        // Legacy behavior: box the namespace object so that thenable modules
        // do not get coerced into a promise accidentally.
        return { namespace };
      },
    );
  },

  async load(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of load() must be a string');
    }

    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    return load(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
  },

  importNow(specifier) {
    if (typeof specifier !== 'string') {
      throw TypeError('first argument of importNow() must be a string');
    }
    const { noAggregateLoadErrors } = /** @type {CompartmentFields} */ (
      weakmapGet(privateFields, this)
    );

    loadNow(privateFields, moduleAliases, this, specifier, {
      noAggregateErrors: noAggregateLoadErrors,
    });
    return compartmentImportNow(/** @type {Compartment} */ (this), specifier);
  },
};

// This causes `String(new Compartment())` to evaluate to `[object Compartment]`.
// The descriptor follows the conventions of other globals with @@toStringTag
// properties, e.g. Math.
$h͏_once.CompartmentPrototype(CompartmentPrototype);defineProperties(CompartmentPrototype,{
  [toStringTagSymbol]: {
    value: 'Compartment',
    writable: false,
    enumerable: false,
    configurable: true,
  },
});

defineProperties(InertCompartment, {
  prototype: { value: CompartmentPrototype },
});

/**
 * @callback MakeCompartmentConstructor
 * @param {MakeCompartmentConstructor} targetMakeCompartmentConstructor
 * @param {Record<string, any>} intrinsics
 * @param {(object: object) => void} markVirtualizedNativeFunction
 * @param {object} [options]
 * @param {Compartment} [options.parentCompartment]
 * @param {boolean} [options.enforceNew]
 * @returns {Compartment['constructor']}
 */

/**
 * "Options bag"-style `Compartment` constructor arguments.
 * @typedef {[options?: CompartmentOptions & { __options__: true }]} CompartmentOptionsArgs
 */

/**
 * Legacy `Compartment` constructor arguments.
 *
 * @deprecated
 * @typedef {[globals?: Map<string, any>, modules?: Map<string, ModuleDescriptor>, options?: CompartmentOptions]} LegacyCompartmentOptionsArgs
 */

/**
 * In order to facilitate migration from the deprecated signature of the
 * compartment constructor,
 *
 * `new Compartent(globals?, modules?, options?)`
 *
 * to the new signature:
 *
 * `new Compartment(options?)`
 *
 * ...where globals and modules are expressed in the options bag instead of
 * positional arguments, this function detects the temporary sigil __options__
 * on the first argument and coerces compartments arguments into a single
 * compartments object.
 * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
 * @returns {CompartmentOptions}
 */
       const compartmentOptions = (...args) => {
  if (args.length === 0) {
    return {};
  }
  if (
    args.length === 1 &&
    typeof args[0] === 'object' &&
    args[0] !== null &&
    '__options__' in args[0]
  ) {
    const { __options__, ...options } = args[0];
    assert(
      __options__ === true,
      `Compartment constructor only supports true __options__ sigil, got ${__options__}`,
    );
    return options;
  } else {
    const [
      globals = /** @type {Map<string, any>} */ ({}),
      modules = /** @type {Map<string, ModuleDescriptor>} */ ({}),
      options = {},
    ] = /** @type {LegacyCompartmentOptionsArgs} */ (args);
    assertEqual(
      options.modules,
      undefined,
      `Compartment constructor must receive either a module map argument or modules option, not both`,
    );
    assertEqual(
      options.globals,
      undefined,
      `Compartment constructor must receive either globals argument or option, not both`,
    );
    return {
      ...options,
      globals,
      modules,
    };
  }
};

/** @type {MakeCompartmentConstructor} */$h͏_once.compartmentOptions(compartmentOptions);
       const makeCompartmentConstructor = (
  targetMakeCompartmentConstructor,
  intrinsics,
  markVirtualizedNativeFunction,
  { parentCompartment = undefined, enforceNew = false } = {},
) => {
  /**
   *
   * @param {CompartmentOptionsArgs|LegacyCompartmentOptionsArgs} args
   */
  function Compartment(...args) {
    if (enforceNew && new.target === undefined) {
      throw TypeError(
        "Class constructor Compartment cannot be invoked without 'new'",
      );
    }

    // Extract options, and shallow-clone transforms.
    const {
      name = '<unknown>',
      transforms = [],
      __shimTransforms__ = [],
      globals: endowmentsOption = {},
      modules: moduleMapOption = {},
      resolveHook,
      importHook,
      importNowHook,
      moduleMapHook,
      importMetaHook,
      __noNamespaceBox__: noNamespaceBox = false,
      noAggregateLoadErrors = false,
    } = compartmentOptions(...args);
    const globalTransforms = arrayFlatMap(
      [transforms, __shimTransforms__],
      identity,
    );
    const endowments = { __proto__: null, ...endowmentsOption };
    const moduleMap = { __proto__: null, ...moduleMapOption };

    // Map<FullSpecifier, ModuleCompartmentRecord>
    const moduleRecords = new Map();
    // Map<FullSpecifier, ModuleInstance>
    const instances = new Map();
    // Map<FullSpecifier, {ExportsProxy, ProxiedExports, activate()}>
    const deferredExports = new Map();

    const globalObject = {};

    const compartment = this;

    setGlobalObjectSymbolUnscopables(globalObject);

    // We must initialize all constant properties first because
    // `makeSafeEvaluator` may use them to create optimized bindings
    // in the evaluator.
    // TODO: consider merging into a single initialization if internal
    // evaluator is no longer eagerly created
    setGlobalObjectConstantProperties(globalObject);

    const { safeEvaluate } = makeSafeEvaluator({
      globalObject,
      globalTransforms,
      sloppyGlobalsMode: false,
    });

    setGlobalObjectMutableProperties(globalObject, {
      intrinsics,
      newGlobalPropertyNames: sharedGlobalPropertyNames,
      makeCompartmentConstructor: targetMakeCompartmentConstructor,
      parentCompartment: this,
      markVirtualizedNativeFunction,
    });

    // TODO: maybe add evalTaming to the Compartment constructor 3rd options?
    setGlobalObjectEvaluators(
      globalObject,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );

    assign(globalObject, endowments);

    /**
     * In support dynamic import in a module source loaded by this compartment,
     * like `await import(importSpecifier)`, induces this compartment to import
     * a module, returning a promise for the resulting module exports
     * namespace.
     * Unlike `compartment.import`, never creates a box object for the
     * namespace as that behavior is deprecated and inconsistent with the
     * standard behavior of dynamic import.
     * Obliges the caller to resolve import specifiers to their corresponding
     * full specifier.
     * That is, every module must have its own dynamic import function that
     * closes over the surrounding module's full module specifier and calls
     * through to this function.
     * @param {string} fullSpecifier - A full specifier is a key in the
     * compartment's module memo.
     * The method `compartment.import` accepts a full specifier, but dynamic
     * import accepts an import specifier and resolves it to a full specifier
     * relative to the calling module's full specifier.
     * @returns {Promise<ModuleExportsNamespace>}
     */
    const compartmentImport = async fullSpecifier => {
      if (typeof resolveHook !== 'function') {
        throw TypeError(
          `Compartment does not support dynamic import: no configured resolveHook for compartment ${q(name)}`,
        );
      }
      await load(privateFields, moduleAliases, compartment, fullSpecifier, {
        noAggregateErrors: noAggregateLoadErrors,
      });
      const { execute, exportsProxy } = link(
        privateFields,
        moduleAliases,
        compartment,
        fullSpecifier,
      );
      execute();
      return exportsProxy;
    };

    weakmapSet(privateFields, this, {
      name: `${name}`,
      globalTransforms,
      globalObject,
      safeEvaluate,
      resolveHook,
      importHook,
      importNowHook,
      moduleMap,
      moduleMapHook,
      importMetaHook,
      moduleRecords,
      __shimTransforms__,
      deferredExports,
      instances,
      parentCompartment,
      noNamespaceBox,
      compartmentImport,
      noAggregateLoadErrors,
    });
  }

  Compartment.prototype = CompartmentPrototype;

  return Compartment;
};$h͏_once.makeCompartmentConstructor(makeCompartmentConstructor);
})()
,
// === 51. ses ./src/get-anonymous-intrinsics.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let FERAL_FUNCTION,Float32Array,Map,Set,String,getOwnPropertyDescriptor,getPrototypeOf,iterateArray,iterateMap,iterateSet,iterateString,matchAllRegExp,matchAllSymbol,regexpPrototype,globalThis,assign,AsyncGeneratorFunctionInstance,ArrayBuffer,InertCompartment;$h͏_imports([["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["Float32Array",[$h͏_a => (Float32Array = $h͏_a)]],["Map",[$h͏_a => (Map = $h͏_a)]],["Set",[$h͏_a => (Set = $h͏_a)]],["String",[$h͏_a => (String = $h͏_a)]],["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]],["iterateArray",[$h͏_a => (iterateArray = $h͏_a)]],["iterateMap",[$h͏_a => (iterateMap = $h͏_a)]],["iterateSet",[$h͏_a => (iterateSet = $h͏_a)]],["iterateString",[$h͏_a => (iterateString = $h͏_a)]],["matchAllRegExp",[$h͏_a => (matchAllRegExp = $h͏_a)]],["matchAllSymbol",[$h͏_a => (matchAllSymbol = $h͏_a)]],["regexpPrototype",[$h͏_a => (regexpPrototype = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["assign",[$h͏_a => (assign = $h͏_a)]],["AsyncGeneratorFunctionInstance",[$h͏_a => (AsyncGeneratorFunctionInstance = $h͏_a)]],["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]]]],["./compartment.js", [["InertCompartment",[$h͏_a => (InertCompartment = $h͏_a)]]]]]);





















/**
 * Object.getConstructorOf()
 * Helper function to improve readability, similar to Object.getPrototypeOf().
 *
 * @param {object} obj
 */
function getConstructorOf(obj) {
  return getPrototypeOf(obj).constructor;
}

// getAnonymousIntrinsics uses a utility function to construct an arguments
// object, since it cannot have one of its own and also be a const export.
function makeArguments() {
  // eslint-disable-next-line prefer-rest-params
  return arguments;
}

/**
 * getAnonymousIntrinsics()
 * Get the intrinsics not otherwise reachable by named own property
 * traversal from the global object.
 *
 * @returns {object}
 */
       const getAnonymousIntrinsics = () => {
  const InertFunction = FERAL_FUNCTION.prototype.constructor;

  // 9.2.4.1 %ThrowTypeError%

  const argsCalleeDesc = getOwnPropertyDescriptor(makeArguments(), 'callee');
  const ThrowTypeError = argsCalleeDesc && argsCalleeDesc.get;

  // 21.1.5.2 The %StringIteratorPrototype% Object

  // eslint-disable-next-line no-new-wrappers
  const StringIteratorObject = iterateString(new String());
  const StringIteratorPrototype = getPrototypeOf(StringIteratorObject);

  // 21.2.7.1 The %RegExpStringIteratorPrototype% Object
  const RegExpStringIterator =
    regexpPrototype[matchAllSymbol] && matchAllRegExp(/./);
  const RegExpStringIteratorPrototype =
    RegExpStringIterator && getPrototypeOf(RegExpStringIterator);

  // 22.1.5.2 The %ArrayIteratorPrototype% Object

  // eslint-disable-next-line no-array-constructor
  const ArrayIteratorObject = iterateArray([]);
  const ArrayIteratorPrototype = getPrototypeOf(ArrayIteratorObject);

  // 22.2.1 The %TypedArray% Intrinsic Object

  const TypedArray = getPrototypeOf(Float32Array);

  // 23.1.5.2 The %MapIteratorPrototype% Object

  const MapIteratorObject = iterateMap(new Map());
  const MapIteratorPrototype = getPrototypeOf(MapIteratorObject);

  // 23.2.5.2 The %SetIteratorPrototype% Object

  const SetIteratorObject = iterateSet(new Set());
  const SetIteratorPrototype = getPrototypeOf(SetIteratorObject);

  // 25.1.2 The %IteratorPrototype% Object

  const IteratorPrototype = getPrototypeOf(ArrayIteratorPrototype);

  // 25.2.1 The GeneratorFunction Constructor

  // eslint-disable-next-line no-empty-function
  function* GeneratorFunctionInstance() {}
  const GeneratorFunction = getConstructorOf(GeneratorFunctionInstance);

  // 25.2.3 Properties of the GeneratorFunction Prototype Object

  const Generator = GeneratorFunction.prototype;

  // 25.7.1 The AsyncFunction Constructor

  // eslint-disable-next-line no-empty-function
  async function AsyncFunctionInstance() {}
  const AsyncFunction = getConstructorOf(AsyncFunctionInstance);

  const intrinsics = {
    '%InertFunction%': InertFunction,
    '%ArrayIteratorPrototype%': ArrayIteratorPrototype,
    '%InertAsyncFunction%': AsyncFunction,
    '%Generator%': Generator,
    '%InertGeneratorFunction%': GeneratorFunction,
    '%IteratorPrototype%': IteratorPrototype,
    '%MapIteratorPrototype%': MapIteratorPrototype,
    '%RegExpStringIteratorPrototype%': RegExpStringIteratorPrototype,
    '%SetIteratorPrototype%': SetIteratorPrototype,
    '%StringIteratorPrototype%': StringIteratorPrototype,
    '%ThrowTypeError%': ThrowTypeError,
    '%TypedArray%': TypedArray,
    '%InertCompartment%': InertCompartment,
  };

  if (AsyncGeneratorFunctionInstance !== undefined) {
    // 25.3.1 The AsyncGeneratorFunction Constructor

    const AsyncGeneratorFunction = getConstructorOf(
      AsyncGeneratorFunctionInstance,
    );

    // 25.3.2.2 AsyncGeneratorFunction.prototype
    const AsyncGenerator = AsyncGeneratorFunction.prototype;
    // 25.5.1 Properties of the AsyncGenerator Prototype Object
    const AsyncGeneratorPrototype = AsyncGenerator.prototype;
    const AsyncIteratorPrototype = getPrototypeOf(AsyncGeneratorPrototype);

    assign(intrinsics, {
      '%AsyncGenerator%': AsyncGenerator,
      '%InertAsyncGeneratorFunction%': AsyncGeneratorFunction,
      '%AsyncGeneratorPrototype%': AsyncGeneratorPrototype,
      '%AsyncIteratorPrototype%': AsyncIteratorPrototype,
    });
  }

  if (globalThis.Iterator) {
    intrinsics['%IteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from([]).take(0),
    );
    intrinsics['%WrapForValidIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.Iterator.from({
        next() {
          return { value: undefined };
        },
      }),
    );
  }

  if (globalThis.AsyncIterator) {
    intrinsics['%AsyncIteratorHelperPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from([]).take(0),
    );
    intrinsics['%WrapForValidAsyncIteratorPrototype%'] = getPrototypeOf(
      // eslint-disable-next-line @endo/no-polymorphic-call
      globalThis.AsyncIterator.from({ next() {} }),
    );
  }

  const ab = new ArrayBuffer(0);
  // eslint-disable-next-line @endo/no-polymorphic-call
  const iab = ab.sliceToImmutable();
  const iabProto = getPrototypeOf(iab);
  if (iabProto !== ArrayBuffer.prototype) {
    // In a native implementation, these will be the same prototype
    intrinsics['%ImmutableArrayBufferPrototype%'] = iabProto;
  }

  return intrinsics;
};$h͏_once.getAnonymousIntrinsics(getAnonymousIntrinsics);
})()
,
// === 52. ses ./src/tame-harden.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let freeze;$h͏_imports([["./commons.js", [["freeze",[$h͏_a => (freeze = $h͏_a)]]]]]);


/** @import {Harden} from '../types.js'; */

/** @type {(safeHarden: Harden, hardenTaming: 'safe' | 'unsafe') => Harden} */
       const tameHarden = (safeHarden, hardenTaming) => {
  if (hardenTaming === 'safe') {
    return safeHarden;
  }

  // In on the joke
  Object.isExtensible = () => false;
  Object.isFrozen = () => true;
  Object.isSealed = () => true;
  Reflect.isExtensible = () => false;

  // @ts-expect-error secret property
  if (safeHarden.isFake) {
    // The "safe" hardener is already a fake hardener.
    // Just use it.
    return safeHarden;
  }

  const fakeHarden = arg => arg;
  fakeHarden.isFake = true;
  return freeze(fakeHarden);
};$h͏_once.tameHarden(tameHarden);
freeze(tameHarden);
})()
,
// === 53. ses ./src/tame-symbol-constructor.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let Symbol,entries,fromEntries,getOwnPropertyDescriptors,defineProperties,arrayMap,functionBind;$h͏_imports([["./commons.js", [["Symbol",[$h͏_a => (Symbol = $h͏_a)]],["entries",[$h͏_a => (entries = $h͏_a)]],["fromEntries",[$h͏_a => (fromEntries = $h͏_a)]],["getOwnPropertyDescriptors",[$h͏_a => (getOwnPropertyDescriptors = $h͏_a)]],["defineProperties",[$h͏_a => (defineProperties = $h͏_a)]],["arrayMap",[$h͏_a => (arrayMap = $h͏_a)]],["functionBind",[$h͏_a => (functionBind = $h͏_a)]]]]]);









/**
 * This taming provides a tamed alternative to the original `Symbol` constructor
 * that starts off identical, except that all its properties are "temporarily"
 * configurable. The original `Symbol` constructor remains unmodified on
 * the start compartment's global. The tamed alternative is used as the shared
 * `Symbol` constructor on constructed compartments.
 *
 * Starting these properties as configurable assumes two succeeding phases of
 * processing: A permit enforcement phase, that
 * removes all properties not on the permits (which requires them to be
 * configurable) and a global hardening step that freezes all primordials,
 * returning these properties to their expected non-configurable status.
 *
 * The ses shim is constructed to eventually enable vetted shims to run between
 * repair and global hardening. However, such vetted shims would normally
 * run in the start compartment, which continues to use the original unmodified
 * `Symbol`, so they should not normally be affected by the temporary
 * configurability of these properties.
 *
 * Note that the spec refers to the global `Symbol` function as the
 * ["Symbol Constructor"](https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-symbol-constructor)
 * even though it has a call behavior (can be called as a function) and does not
 * not have a construct behavior (cannot be called with `new`). Accordingly,
 * to tame it, we must replace it with a function without a construct
 * behavior.
 */
       const tameSymbolConstructor = () => {
  const OriginalSymbol = Symbol;
  const SymbolPrototype = OriginalSymbol.prototype;

  // Bypass Hermes bug, fixed in: https://github.com/facebook/hermes/commit/00f18c89c720e1c34592bb85a1a8d311e6e99599
  // Make a "copy" of the primordial [Symbol "constructor"](https://tc39.es/ecma262/#sec-symbol-description) which maintains all observable behavior. The primordial explicitly throws on `[[Construct]]` and has a `[[Call]]` which ignores the receiver. Binding also maintains the `toString` source as a native function. The `name` is restored below when copying own properties.
  const SharedSymbol = functionBind(Symbol, undefined);

  defineProperties(SymbolPrototype, {
    constructor: {
      value: SharedSymbol
      // leave other `constructor` attributes as is
    },
  });

  const originalDescsEntries = entries(
    getOwnPropertyDescriptors(OriginalSymbol),
  );
  const descs = fromEntries(
    arrayMap(originalDescsEntries, ([name, desc]) => [
      name,
      { ...desc, configurable: true },
    ]),
  );
  defineProperties(SharedSymbol, descs);

  return { '%SharedSymbol%': SharedSymbol };
};$h͏_once.tameSymbolConstructor(tameSymbolConstructor);
})()
,
// === 54. ses ./src/tame-faux-data-properties.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getOwnPropertyDescriptor,apply,defineProperty,toStringTagSymbol;$h͏_imports([["./commons.js", [["getOwnPropertyDescriptor",[$h͏_a => (getOwnPropertyDescriptor = $h͏_a)]],["apply",[$h͏_a => (apply = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["toStringTagSymbol",[$h͏_a => (toStringTagSymbol = $h͏_a)]]]]]);






const throws = thunk => {
  try {
    thunk();
    return false;
  } catch (er) {
    return true;
  }
};

/**
 * Exported for convenience of unit testing. Harmless, but not expected
 * to be useful by itself.
 *
 * @param {any} obj
 * @param {string|symbol} prop
 * @param {any} expectedValue
 * @returns {boolean}
 * Returns whether `tameFauxDataProperty` turned the property in question
 * from an apparent faux data property into the actual data property it
 * seemed to emulate.
 * If this function returns `false`, then we hope no effects happened.
 * However, sniffing out if an accessor property seems to be a faux data
 * property requires invoking the getter and setter functions that might
 * possibly have side effects.
 * `tameFauxDataProperty` is not in a position to tell.
 */
       const tameFauxDataProperty = (obj, prop, expectedValue) => {
  if (obj === undefined) {
    // The object does not exist in this version of the platform
    return false;
  }
  const desc = getOwnPropertyDescriptor(obj, prop);
  if (!desc || 'value' in desc) {
    // The property either doesn't exist, or is already an actual data property.
    return false;
  }
  const { get, set } = desc;
  if (typeof get !== 'function' || typeof set !== 'function') {
    // A faux data property has both a getter and a setter
    return false;
  }
  if (get() !== expectedValue) {
    // The getter called by itself should produce the expectedValue
    return false;
  }
  if (apply(get, obj, []) !== expectedValue) {
    // The getter called with `this === obj` should also return the
    // expectedValue.
    return false;
  }
  const testValue = 'Seems to be a setter';
  const subject1 = { __proto__: null };
  apply(set, subject1, [testValue]);
  if (subject1[prop] !== testValue) {
    // The setter called with an unrelated object as `this` should
    // set the property on the object.
    return false;
  }
  const subject2 = { __proto__: obj };
  apply(set, subject2, [testValue]);
  if (subject2[prop] !== testValue) {
    // The setter called on an object that inherits from `obj` should
    // override the property from `obj` as if by assignment.
    return false;
  }
  if (!throws(() => apply(set, obj, [expectedValue]))) {
    // The setter called with `this === obj` should throw without having
    // caused any effect.
    // This is the test that has the greatest danger of leaving behind some
    // persistent side effect. The most obvious one is to emulate a
    // successful assignment to the property. That's why this test
    // uses `expectedValue`, so that case is likely not to actually
    // change anything.
    return false;
  }
  if ('originalValue' in get) {
    // The ses-shim uniquely, as far as we know, puts an `originalValue`
    // property on the getter, so that reflect property tranversal algorithms,
    // like `harden`, will traverse into the enulated value without
    // calling the getter. That does not happen until `permits-intrinsics.js`
    // which is much later. So if we see one this early, we should
    // not assume we understand what's going on.
    return false;
  }

  // We assume that this code runs before any untrusted code runs, so
  // we do not need to worry about the above conditions passing because of
  // malicious intent. In fact, it runs even before vetted shims are supposed
  // to run, between repair and hardening. Given that, after all these tests
  // pass, we have adequately validated that the property in question is
  // an accessor function whose purpose is suppressing the override mistake,
  // i.e., enabling a non-writable property to be overridden by assignment.
  // In that case, here we *temporarily* turn it into the data property
  // it seems to emulate, but writable so that it does not trigger the
  // override mistake while in this temporary state.

  // For those properties that are also listed in `enablements.js`,
  // that phase will re-enable override for these properties, but
  // via accessor functions that SES controls, so we know what they are
  // doing. In addition, the getter functions installed by
  // `enable-property-overrides.js` have an `originalValue` field
  // enabling meta-traversal code like harden to visit the original value
  // without calling the getter.

  if (desc.configurable === false) {
    // Even though it seems to be a faux data property, we're unable to fix it.
    return false;
  }

  // Many of the `return false;` cases above plausibly should be turned into
  // errors, or an least generate warnings. However, for those, the checks
  // following this phase are likely to signal an error anyway.

  // At this point, we have passed all our sniff checks for validating that
  // it seems to be a faux data property with the expected value. Turn
  // it into the actual data property it emulates, but writable so there is
  // not yet an override mistake problem.

  defineProperty(obj, prop, {
    value: expectedValue,
    writable: true,
    enumerable: desc.enumerable,
    configurable: true,
  });

  return true;
};

/**
 * In JavaScript, the so-called "override mistake" is the inability to
 * override an inherited non-writable data property by assignment. A common
 * workaround is to instead define an accessor property that acts like
 * a non-writable data property, except that it allows an object that
 * inherits this property to override it by assignment. Let's call
 * an access property that acts this way a "faux data property". In this
 * ses-shim, `enable-property-overrides.js` makes the properties listed in
 * `enablements.js` into faux data properties.
 *
 * But the ses-shim is not alone in use of this trick. Starting with the
 * [Iterator Helpers proposal](https://github.com/tc39/proposal-iterator-helpers),
 * some properties are defined as (what we call) faux data properties.
 * Some of these are new properties (`Interator.prototype.constructor`) and
 * some are old data properties converted to accessor properties
 * (`Iterator.prototype[String.toStringTag]`). So the ses-shim needs to be
 * prepared for some enumerated set of properties to already be faux data
 * properties in the platform prior to our initialization.
 *
 * For these possible faux data properties, it is important that
 * `permits.js` describe each as a data property, so that it can further
 * constrain the apparent value (that allegedly would be returned by the
 * getter) according to its own permits.
 *
 * However, at the time of this writing, the precise behavior specified
 * by the iterator-helpers proposal for these faux data properties is
 * novel. We should not be too confident that all further such platform
 * additions do what we would now expect. So, for each of these possible
 * faux data properties, we do some sniffing to see if it behaves as we
 * currently expect a faux data property to act. If not, then
 * `tameFauxDataProperties` tries not to modify it, leaving it to later
 * checks, especially `permits-intrinsics.js`, to error when it sees an
 * unexpected accessor.
 *
 * If one of these enumerated accessor properties does seem to be
 * a faithful faux data property, then `tameFauxDataProperties` itself
 * *tempoarily* turns it into the actual data property that it seems to emulate.
 * This data property starts as writable, so that in this state it will
 * not trigger the override mistake, i.e., assignment to an object inheriting
 * this property is allowed to succeed at overriding this property.
 *
 * For those properties that should be a faux data property rather than an
 * actual one, such as those from the iterator-helpers proposal,
 * they should be listed as such in `enablements.js`, so
 * `enable-property-overrides.js` will turn it back into a faux data property.
 * But one controlled by the ses-shim, whose behavior we understand.
 *
 * `tameFauxDataProperties`, which turns these into actual data properties,
 * happens during the `repairIntrinsics` phase
 * of `lockdown`, before even vetted shim are supposed to run.
 * `enable-property-overrides.js` runs after vetted shims, turning the
 * appropriate ones back into faux data properties. Thus vetted shims
 * can observe the possibly non-conforming state where these are temporarily
 * actual data properties, rather than faux data properties.
 *
 * Coordinate the property enumeration here
 * with `enablements.js`, so the appropriate properties are
 * turned back to faux data properties.
 *
 * @param {Record<any,any>} intrinsics
 */$h͏_once.tameFauxDataProperty(tameFauxDataProperty);
       const tameFauxDataProperties = intrinsics => {
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    'constructor',
    intrinsics.Iterator,
  );
  // https://github.com/tc39/proposal-iterator-helpers
  tameFauxDataProperty(
    intrinsics['%IteratorPrototype%'],
    toStringTagSymbol,
    'Iterator',
  );
};$h͏_once.tameFauxDataProperties(tameFauxDataProperties);
})()
,
// === 55. ses ./src/tame-regenerator-runtime.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let defineProperty,iteratorPrototype,iteratorSymbol,hasOwn;$h͏_imports([["./commons.js", [["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]],["iteratorPrototype",[$h͏_a => (iteratorPrototype = $h͏_a)]],["iteratorSymbol",[$h͏_a => (iteratorSymbol = $h͏_a)]],["hasOwn",[$h͏_a => (hasOwn = $h͏_a)]]]]]);






       const tameRegeneratorRuntime = () => {
  const iter = iteratorPrototype[iteratorSymbol];
  defineProperty(iteratorPrototype, iteratorSymbol, {
    configurable: true,
    get() {
      return iter;
    },
    set(value) {
      // ignore the assignment on IteratorPrototype
      if (this === iteratorPrototype) return;
      if (hasOwn(this, iteratorSymbol)) {
        this[iteratorSymbol] = value;
      }
      defineProperty(this, iteratorSymbol, {
        value,
        writable: true,
        enumerable: true,
        configurable: true,
      });
    },
  });
};$h͏_once.tameRegeneratorRuntime(tameRegeneratorRuntime);
})()
,
// === 56. ses ./src/shim-arraybuffer-transfer.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let ArrayBuffer,arrayBufferPrototype,arrayBufferSlice,arrayBufferGetByteLength,Uint8Array,typedArraySet,globalThis,TypeError,defineProperty;$h͏_imports([["./commons.js", [["ArrayBuffer",[$h͏_a => (ArrayBuffer = $h͏_a)]],["arrayBufferPrototype",[$h͏_a => (arrayBufferPrototype = $h͏_a)]],["arrayBufferSlice",[$h͏_a => (arrayBufferSlice = $h͏_a)]],["arrayBufferGetByteLength",[$h͏_a => (arrayBufferGetByteLength = $h͏_a)]],["Uint8Array",[$h͏_a => (Uint8Array = $h͏_a)]],["typedArraySet",[$h͏_a => (typedArraySet = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["defineProperty",[$h͏_a => (defineProperty = $h͏_a)]]]]]);











       const shimArrayBufferTransfer = () => {
  if (typeof arrayBufferPrototype.transfer === 'function') {
    // Assume already exists so does not need to be shimmed.
    // Such conditional shimming is ok in this case since ArrayBuffer.p.transfer
    // is already officially part of JS.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
  }
  const clone = globalThis.structuredClone;
  if (typeof clone !== 'function') {
    // On a platform with neither `Array.prototype.transfer`
    // nor `structuredClone`, this shim does nothing.
    // For example, Node <= 16 has neither.
    //
    // Empty object because this shim has nothing for `addIntrinsics` to add.
    return {};
    // TODO Rather than doing nothing, should the endo ses-shim throw
    // in this case?
    // throw TypeError(
    //   `Can only shim missing ArrayBuffer.prototype.transfer on a platform with "structuredClone"`,
    // );
    // For example, endo no longer supports Node <= 16. All browsers have
    // `structuredClone`. XS has `Array.prototype.transfer`. Are there still
    // any platforms without both that Endo should still support?
    // What about Hermes?
  }

  /**
   * @type {ThisType<ArrayBuffer>}
   */
  const methods = {
    /**
     * @param {number} [newLength]
     */
    transfer(newLength = undefined) {
      // Using this builtin getter also ensures that `this` is a genuine
      // ArrayBuffer.
      const oldLength = arrayBufferGetByteLength(this);
      if (newLength === undefined || newLength === oldLength) {
        return clone(this, { transfer: [this] });
      }
      if (typeof newLength !== 'number') {
        throw TypeError(`transfer newLength if provided must be a number`);
      }
      if (newLength > oldLength) {
        const result = new ArrayBuffer(newLength);
        const taOld = new Uint8Array(this);
        const taNew = new Uint8Array(result);
        typedArraySet(taNew, taOld);
        // Using clone only to detach, and only after the copy succeeds
        clone(this, { transfer: [this] });
        return result;
      } else {
        const result = arrayBufferSlice(this, 0, newLength);
        // Using clone only to detach, and only after the slice succeeds
        clone(this, { transfer: [this] });
        return result;
      }
    },
  };

  defineProperty(arrayBufferPrototype, 'transfer', {
    // @ts-expect-error
    value: methods.transfer,
    writable: true,
    enumerable: false,
    configurable: true,
  });

  // Empty object because this shim has nothing for `addIntrinsics` to add.
  return {};
};$h͏_once.shimArrayBufferTransfer(shimArrayBufferTransfer);
})()
,
// === 57. ses ./src/reporting.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,assert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]]]]]);


/**
 * @import {Reporter, GroupReporter} from './reporting-types.js'
 */

/* eslint-disable @endo/no-polymorphic-call */
/**
 * To address https://github.com/endojs/endo/issues/2908,
 * the `consoleReporter` uses the current `console` rather
 * than the original one.
 *
 * @type {GroupReporter}
 */
const consoleReporter = {
  warn(...args) {
    globalThis.console.warn(...args);
  },
  error(...args) {
    globalThis.console.error(...args);
  },
  ...(globalThis.console?.groupCollapsed
    ? {
        groupCollapsed(...args) {
          globalThis.console.groupCollapsed(...args);
        },
      }
    : undefined),
  ...(globalThis.console?.groupEnd
    ? {
        groupEnd() {
          globalThis.console.groupEnd();
        },
      }
    : undefined),
};
/* eslint-enable @endo/no-polymorphic-call */

/**
 * Creates a suitable reporter for internal errors and warnings out of the
 * Node.js console.error to ensure all messages go to stderr, including the
 * group label.
 * Accounts for the extra space introduced by console.error as a delimiter
 * between the indent and subsequent arguments.
 *
 * @param {(...message: Array<any>) => void} print
 */
const makeReportPrinter = print => {
  let indent = false;
  /** @param {Array<any>} args */
  const printIndent = (...args) => {
    if (indent) {
      print(' ', ...args);
    } else {
      print(...args);
    }
  };
  return /** @type {GroupReporter} */ ({
    warn(...args) {
      printIndent(...args);
    },
    error(...args) {
      printIndent(...args);
    },
    groupCollapsed(...args) {
      assert(!indent);
      print(...args);
      indent = true;
    },
    groupEnd() {
      indent = false;
    },
  });
};

const mute = () => {};

/**
 * @param {"platform" | "console" | "none"} reporting
 */
       const chooseReporter = reporting => {
  if (reporting === 'none') {
    return makeReportPrinter(mute);
  }
  if (globalThis.console !== undefined) {
    if (
      reporting === 'console' || // asks for console explicitly
      globalThis.window === globalThis || // likely on browser
      globalThis.importScripts !== undefined // likely on worker
    ) {
      // reporter just delegates directly to the current console
      return consoleReporter;
    }
    assert(reporting === 'platform');
    // On Node.js, we send all feedback to stderr, regardless of purported level.
    // This uses `consoleReporter.error` instead of `console.error` because we
    // want the constructed reporter to use the `console.error` of the current
    // `console`, not the `console` that was installed when the reporter
    // was created.
    return makeReportPrinter(consoleReporter.error);
  }
  if (globalThis.print !== undefined) {
    return makeReportPrinter(globalThis.print);
  }
  return makeReportPrinter(mute);
};

/**
 * @param {string} groupLabel
 * @param {GroupReporter} console
 * @param {(internalConsole: Reporter) => void} callback
 */$h͏_once.chooseReporter(chooseReporter);
       const reportInGroup = (groupLabel, console, callback) => {
  const { warn, error, groupCollapsed, groupEnd } = console;
  const grouping = groupCollapsed && groupEnd;
  let groupStarted = false;
  try {
    return callback({
      warn(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        warn(...args);
      },
      error(...args) {
        if (grouping && !groupStarted) {
          groupCollapsed(groupLabel);
          groupStarted = true;
        }
        error(...args);
      },
    });
  } finally {
    if (grouping && groupStarted) {
      groupEnd();
      groupStarted = false;
    }
  }
};$h͏_once.reportInGroup(reportInGroup);
})()
,
// === 58. ses ./src/lockdown.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let getenv,FERAL_FUNCTION,FERAL_EVAL,TypeError,arrayFilter,globalThis,is,ownKeys,stringSplit,symbolFor,noEvalEvaluate,getOwnPropertyNames,getPrototypeOf,makeHardener,makeIntrinsicsCollector,removeUnpermittedIntrinsics,tameFunctionConstructors,tameDateConstructor,tameMathObject,tameRegExpConstructor,enablePropertyOverrides,tameLocaleMethods,setGlobalObjectConstantProperties,setGlobalObjectMutableProperties,setGlobalObjectEvaluators,makeSafeEvaluator,initialGlobalPropertyNames,tameFunctionToString,tameDomains,tameModuleSource,tameConsole,tameErrorConstructor,assert,makeAssert,getAnonymousIntrinsics,makeCompartmentConstructor,tameHarden,tameSymbolConstructor,tameFauxDataProperties,tameRegeneratorRuntime,shimArrayBufferTransfer,reportInGroup,chooseReporter;$h͏_imports([["@endo/env-options", [["getEnvironmentOption",[$h͏_a => (getenv = $h͏_a)]]]],["@endo/immutable-arraybuffer/shim.js", []],["./commons.js", [["FERAL_FUNCTION",[$h͏_a => (FERAL_FUNCTION = $h͏_a)]],["FERAL_EVAL",[$h͏_a => (FERAL_EVAL = $h͏_a)]],["TypeError",[$h͏_a => (TypeError = $h͏_a)]],["arrayFilter",[$h͏_a => (arrayFilter = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]],["is",[$h͏_a => (is = $h͏_a)]],["ownKeys",[$h͏_a => (ownKeys = $h͏_a)]],["stringSplit",[$h͏_a => (stringSplit = $h͏_a)]],["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["noEvalEvaluate",[$h͏_a => (noEvalEvaluate = $h͏_a)]],["getOwnPropertyNames",[$h͏_a => (getOwnPropertyNames = $h͏_a)]],["getPrototypeOf",[$h͏_a => (getPrototypeOf = $h͏_a)]]]],["./make-hardener.js", [["makeHardener",[$h͏_a => (makeHardener = $h͏_a)]]]],["./intrinsics.js", [["makeIntrinsicsCollector",[$h͏_a => (makeIntrinsicsCollector = $h͏_a)]]]],["./permits-intrinsics.js", [["default",[$h͏_a => (removeUnpermittedIntrinsics = $h͏_a)]]]],["./tame-function-constructors.js", [["default",[$h͏_a => (tameFunctionConstructors = $h͏_a)]]]],["./tame-date-constructor.js", [["default",[$h͏_a => (tameDateConstructor = $h͏_a)]]]],["./tame-math-object.js", [["default",[$h͏_a => (tameMathObject = $h͏_a)]]]],["./tame-regexp-constructor.js", [["default",[$h͏_a => (tameRegExpConstructor = $h͏_a)]]]],["./enable-property-overrides.js", [["default",[$h͏_a => (enablePropertyOverrides = $h͏_a)]]]],["./tame-locale-methods.js", [["default",[$h͏_a => (tameLocaleMethods = $h͏_a)]]]],["./global-object.js", [["setGlobalObjectConstantProperties",[$h͏_a => (setGlobalObjectConstantProperties = $h͏_a)]],["setGlobalObjectMutableProperties",[$h͏_a => (setGlobalObjectMutableProperties = $h͏_a)]],["setGlobalObjectEvaluators",[$h͏_a => (setGlobalObjectEvaluators = $h͏_a)]]]],["./make-safe-evaluator.js", [["makeSafeEvaluator",[$h͏_a => (makeSafeEvaluator = $h͏_a)]]]],["./permits.js", [["initialGlobalPropertyNames",[$h͏_a => (initialGlobalPropertyNames = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./tame-domains.js", [["tameDomains",[$h͏_a => (tameDomains = $h͏_a)]]]],["./tame-module-source.js", [["tameModuleSource",[$h͏_a => (tameModuleSource = $h͏_a)]]]],["./error/tame-console.js", [["tameConsole",[$h͏_a => (tameConsole = $h͏_a)]]]],["./error/tame-error-constructor.js", [["default",[$h͏_a => (tameErrorConstructor = $h͏_a)]]]],["./error/assert.js", [["assert",[$h͏_a => (assert = $h͏_a)]],["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]],["./get-anonymous-intrinsics.js", [["getAnonymousIntrinsics",[$h͏_a => (getAnonymousIntrinsics = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-harden.js", [["tameHarden",[$h͏_a => (tameHarden = $h͏_a)]]]],["./tame-symbol-constructor.js", [["tameSymbolConstructor",[$h͏_a => (tameSymbolConstructor = $h͏_a)]]]],["./tame-faux-data-properties.js", [["tameFauxDataProperties",[$h͏_a => (tameFauxDataProperties = $h͏_a)]]]],["./tame-regenerator-runtime.js", [["tameRegeneratorRuntime",[$h͏_a => (tameRegeneratorRuntime = $h͏_a)]]]],["./shim-arraybuffer-transfer.js", [["shimArrayBufferTransfer",[$h͏_a => (shimArrayBufferTransfer = $h͏_a)]]]],["./reporting.js", [["reportInGroup",[$h͏_a => (reportInGroup = $h͏_a)]],["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);































































/** @import {LockdownOptions} from '../types.js' */

const { Fail, details: X, quote: q } = assert;

/** @type {Error=} */
let priorRepairIntrinsics;

/** @type {Error=} */
let priorHardenIntrinsics;

// Build a harden() with an empty fringe.
// Gate it on lockdown.
/**
 * @template T
 * @param {T} ref
 * @returns {T}
 */
const safeHarden = makeHardener();

/**
 * @callback Transform
 * @param {string} source
 * @returns {string}
 */

/**
 * @callback CompartmentConstructor
 * @param {object} endowments
 * @param {object} moduleMap
 * @param {object} [options]
 * @param {Array<Transform>} [options.transforms]
 * @param {Array<Transform>} [options.__shimTransforms__]
 */

// TODO https://github.com/endojs/endo/issues/814
// Lockdown currently allows multiple calls provided that the specified options
// of every call agree.  With experience, we have observed that lockdown should
// only ever need to be called once and that simplifying lockdown will improve
// the quality of audits.

const probeHostEvaluators = () => {
  let functionAllowed;
  try {
    functionAllowed = FERAL_FUNCTION('return true')();
  } catch (_error) {
    // We reach here if the Function() constructor is outright forbidden by a
    // strict Content Security Policy (containing either a `default-src` or a
    // `script-src` directive), not been implemented in the host, or the host
    // is configured to throw an exception instead of `new Function`.
    functionAllowed = false;
  }

  let evalAllowed;
  try {
    evalAllowed = FERAL_EVAL('true');
  } catch (_error) {
    // We reach here if `eval` is outright forbidden by a strict Content Security Policy,
    // not implemented in the host, or the host is configured to throw an exception.
    // We allow this for SES usage that delegates the responsibility to isolate
    // guest code to production code generation.
    evalAllowed = false;
  }

  let directEvalAllowed;
  if (functionAllowed && evalAllowed) {
    directEvalAllowed = FERAL_FUNCTION(
      'eval',
      'SES_changed',
      `\
        eval("SES_changed = true");
        return SES_changed;
      `,
    )(FERAL_EVAL, false);
    // If we get here and SES_changed stayed false, that means the eval was sloppy
    // and indirect, which generally creates a new global.
    // We are going to throw an exception for failing to initialize SES, but
    // good neighbors clean up.
    if (!directEvalAllowed) {
      delete globalThis.SES_changed;
    }
  }

  return { functionAllowed, evalAllowed, directEvalAllowed };
};

/**
 * @param {LockdownOptions} [options]
 */
       const repairIntrinsics = (options = {}) => {
  // First time, absent options default to 'safe'.
  // Subsequent times, absent options default to first options.
  // Thus, all present options must agree with first options.
  // Reconstructing `option` here also ensures that it is a well
  // behaved record, with only own data properties.
  //
  // The `overrideTaming` is not a safety issue. Rather it is a tradeoff
  // between code compatibility, which is better with the `'moderate'`
  // setting, and tool compatibility, which is better with the `'min'`
  // setting. See
  // https://github.com/Agoric/SES-shim/blob/master/packages/ses/README.md#enabling-override-by-assignment)
  // for an explanation of when to use which.
  //
  // The `stackFiltering` is not a safety issue. Rather it is a tradeoff
  // between relevance and completeness of the stack frames shown on the
  // console. Setting`stackFiltering` to `'verbose'` applies no filters, providing
  // the raw stack frames that can be quite verbose. Setting
  // `stackFrameFiltering` to`'concise'` limits the display to the stack frame
  // information most likely to be relevant, eliminating distracting frames
  // such as those from the infrastructure. However, the bug you're trying to
  // track down might be in the infrastructure, in which case the `'verbose'` setting
  // is useful. See
  // [`stackFiltering` options](https://github.com/Agoric/SES-shim/blob/master/packages/ses/docs/lockdown.md#stackfiltering-options)
  // for an explanation.

  const {
    errorTaming = /** @type {'safe' | 'unsafe' | 'unsafe-debug'} */ (
      getenv('LOCKDOWN_ERROR_TAMING', 'safe', ['unsafe', 'unsafe-debug'])
    ),
    errorTrapping = /** @type {'platform' | 'none' | 'report' | 'abort' | 'exit'} */ (
      getenv('LOCKDOWN_ERROR_TRAPPING', 'platform', [
        'none',
        'report',
        'abort',
        'exit',
      ])
    ),
    reporting = /** @type {'platform' | 'console' | 'none'} */ (
      getenv('LOCKDOWN_REPORTING', 'platform', ['console', 'none'])
    ),
    unhandledRejectionTrapping = /** @type {'none' | 'report'} */ (
      getenv('LOCKDOWN_UNHANDLED_REJECTION_TRAPPING', 'report', ['none'])
    ),
    regExpTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_REGEXP_TAMING', 'safe', ['unsafe'])
    ),
    localeTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_LOCALE_TAMING', 'safe', ['unsafe'])
    ),
    consoleTaming = /** @type {'unsafe' | 'safe'} */ (
      getenv('LOCKDOWN_CONSOLE_TAMING', 'safe', ['unsafe'])
    ),
    overrideTaming = /** @type {'moderate' | 'min' | 'severe'} */ (
      getenv('LOCKDOWN_OVERRIDE_TAMING', 'moderate', ['min', 'severe'])
    ),
    stackFiltering = /** @type {'concise' | 'omit-frames' | 'shorten-paths' | 'verbose'} */ (
      getenv('LOCKDOWN_STACK_FILTERING', 'concise', [
        'omit-frames',
        'shorten-paths',
        'verbose',
      ])
    ),
    domainTaming = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_DOMAIN_TAMING', 'safe', ['unsafe'])
    ),
    evalTaming = /** @type {'safe-eval' | 'unsafe-eval' | 'no-eval'} */ (
      getenv('LOCKDOWN_EVAL_TAMING', 'safe-eval', [
        'unsafe-eval',
        'no-eval',
        // deprecated
        'safeEval',
        'unsafeEval',
        'noEval',
      ])
    ),
    overrideDebug = /** @type {string[]} */ (
      arrayFilter(
        stringSplit(getenv('LOCKDOWN_OVERRIDE_DEBUG', ''), ','),
        /** @param {string} debugName */
        debugName => debugName !== '',
      )
    ),
    legacyRegeneratorRuntimeTaming = /** @type {'safe' | 'unsafe-ignore'} */ (
      getenv('LOCKDOWN_LEGACY_REGENERATOR_RUNTIME_TAMING', 'safe', [
        'unsafe-ignore',
      ])
    ),
    __hardenTaming__ = /** @type {'safe' | 'unsafe'} */ (
      getenv('LOCKDOWN_HARDEN_TAMING', 'safe', ['unsafe'])
    ),
    dateTaming, // deprecated
    mathTaming, // deprecated
    ...extraOptions
  } = options;

  // Assert that only supported options were passed.
  // Use Reflect.ownKeys to reject symbol-named properties as well.
  const extraOptionsNames = ownKeys(extraOptions);
  extraOptionsNames.length === 0 ||
    Fail`lockdown(): non supported option ${q(extraOptionsNames)}`;

  const reporter = chooseReporter(reporting);
  const { warn } = reporter;

  if (dateTaming !== undefined) {
    warn(
      `SES The 'dateTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }
  if (mathTaming !== undefined) {
    warn(
      `SES The 'mathTaming' option is deprecated and does nothing. In the future specifying it will be an error.`,
    );
  }

  priorRepairIntrinsics === undefined ||
    // eslint-disable-next-line @endo/no-polymorphic-call
    assert.fail(
      X`Already locked down at ${priorRepairIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
      TypeError,
    );
  // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
  priorRepairIntrinsics = TypeError('Prior lockdown (SES_ALREADY_LOCKED_DOWN)');
  // Tease V8 to generate the stack string and release the closures the stack
  // trace retained:
  priorRepairIntrinsics.stack;

  const { functionAllowed, evalAllowed, directEvalAllowed } =
    probeHostEvaluators();

  if (
    directEvalAllowed === false &&
    evalTaming === 'safe-eval' &&
    (functionAllowed || evalAllowed)
  ) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_DIRECT_EVAL.md
    throw TypeError(
      "SES cannot initialize unless 'eval' is the original intrinsic 'eval', suitable for direct eval (dynamically scoped eval) (SES_DIRECT_EVAL)",
    );
  }

  /**
   * Because of packagers and bundlers, etc, multiple invocations of lockdown
   * might happen in separate instantiations of the source of this module.
   * In that case, each one sees its own `firstOptions` variable, so the test
   * above will not detect that lockdown has already happened. We
   * unreliably test some telltale signs that lockdown has run, to avoid
   * trying to lock down a locked down environment. Although the test is
   * unreliable, this is consistent with the SES threat model. SES provides
   * security only if it runs first in a given realm, or if everything that
   * runs before it is SES-aware and cooperative. Neither SES nor anything
   * can protect itself from corrupting code that runs first. For these
   * purposes, code that turns a realm into something that passes these
   * tests without actually locking down counts as corrupting code.
   *
   * The specifics of what this tests for may change over time, but it
   * should be consistent with any setting of the lockdown options.
   */
  const seemsToBeLockedDown = () => {
    return (
      globalThis.Function.prototype.constructor !== globalThis.Function &&
      // @ts-ignore harden is absent on globalThis type def.
      typeof globalThis.harden === 'function' &&
      // @ts-ignore lockdown is absent on globalThis type def.
      typeof globalThis.lockdown === 'function' &&
      globalThis.Date.prototype.constructor !== globalThis.Date &&
      typeof globalThis.Date.now === 'function' &&
      // @ts-ignore does not recognize that Date constructor is a special
      // Function.
      // eslint-disable-next-line @endo/no-polymorphic-call
      is(globalThis.Date.prototype.constructor.now(), NaN)
    );
  };

  if (seemsToBeLockedDown()) {
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_MULTIPLE_INSTANCES.md
    throw TypeError(
      `Already locked down but not by this SES instance (SES_MULTIPLE_INSTANCES)`,
    );
  }

  /**
   * 1. TAME powers & gather intrinsics first.
   */

  tameDomains(domainTaming);

  // Replace Function.prototype.toString with one that recognizes
  // shimmed functions as honorary native functions.
  const markVirtualizedNativeFunction = tameFunctionToString();

  const { addIntrinsics, completePrototypes, finalIntrinsics } =
    makeIntrinsicsCollector(reporter);

  const tamedHarden = tameHarden(safeHarden, __hardenTaming__);
  addIntrinsics({ harden: tamedHarden });

  addIntrinsics(tameFunctionConstructors());

  addIntrinsics(tameDateConstructor());
  addIntrinsics(tameErrorConstructor(errorTaming, stackFiltering));
  addIntrinsics(tameMathObject());
  addIntrinsics(tameRegExpConstructor(regExpTaming));
  addIntrinsics(tameSymbolConstructor());
  addIntrinsics(shimArrayBufferTransfer());
  addIntrinsics(tameModuleSource());

  addIntrinsics(getAnonymousIntrinsics());

  completePrototypes();

  const intrinsics = finalIntrinsics();

  // Install Object[@harden] or abort.
  const symbolForHarden = symbolFor('harden');
  const priorHarden = intrinsics.Object[symbolForHarden];
  if (priorHarden) {
    // By convention, if a module like @endo/harden gets used before lockdown,
    // it will install itself as a non-configurable, non-writable property over
    // Object[@harden] so that versions of SES predating the introduction of
    // Object[@harden] will fail to lockdown because they cannot remove an
    // unknown intrinsic.
    // All newer versions explicitly check for Object[@harden] (here).
    // The @endo/harden implementation additionally captures a stack trace
    // where harden was first used to assist developers in tracking down the
    // hardened module that was initialized before lockdown.
    if (priorHarden.lockdownError) {
      throw priorHarden.lockdownError;
    }
    // And in the event a library installs Object[@harden] without leaving a
    // hint, we fall back to a generic lockdown error.
    throw new TypeError(
      'Cannot lockdown (repairIntrinsics) if a prior harden implementation has been used and installed. Check for libraries using @endo/harden before lockdown.',
    );
  }
  intrinsics.Object[symbolForHarden] = tamedHarden;

  const hostIntrinsics = { __proto__: null };

  // The Node.js Buffer is a derived class of Uint8Array, and as such is often
  // passed around where a Uint8Array is expected.
  if (typeof globalThis.Buffer === 'function') {
    hostIntrinsics.Buffer = globalThis.Buffer;
  }

  /**
   * Wrap console unless suppressed.
   * At the moment, the console is considered a host power in the start
   * compartment, and not a primordial. Hence it is absent from the whilelist
   * and bypasses the intrinsicsCollector.
   *
   * @type {((error: any) => string | undefined) | undefined}
   */
  let optGetStackString;
  if (errorTaming === 'safe') {
    optGetStackString = intrinsics['%InitialGetStackString%'];
  }
  const consoleRecord = tameConsole(
    consoleTaming,
    errorTrapping,
    unhandledRejectionTrapping,
    optGetStackString,
  );
  globalThis.console = /** @type {Console} */ (consoleRecord.console);

  // The untamed Node.js console cannot itself be hardened as it has mutable
  // internal properties, but some of these properties expose internal versions
  // of classes from node's "primordials" concept.
  // eslint-disable-next-line no-underscore-dangle
  if (typeof (/** @type {any} */ (consoleRecord.console)._times) === 'object') {
    // SafeMap is a derived Map class used internally by Node
    // There doesn't seem to be a cleaner way to reach it.
    hostIntrinsics.SafeMap = getPrototypeOf(
      // eslint-disable-next-line no-underscore-dangle
      /** @type {any} */ (consoleRecord.console)._times,
    );
  }

  // The default `assert` installed by `assert-shim.js` does not redact errors,
  // leaving `lockdown` or `repairIntrinsics` with the obligation to replace it
  // with a redacting version, unless the caller opts-out with errorTaming set
  // to `unsafe` or `unsafe-debug`.
  // The inverse was true through version 1.13.0, except the configuration
  // was disregarded and the redacting `assert` left in place if lexical
  // `assert` differed from `globalThis.assert`.
  // @ts-ignore assert is absent on globalThis type def.
  if (errorTaming !== 'unsafe' && errorTaming !== 'unsafe-debug') {
    globalThis.assert = makeAssert();
  }

  // Replace *Locale* methods with their non-locale equivalents
  tameLocaleMethods(intrinsics, localeTaming);

  tameFauxDataProperties(intrinsics);

  /**
   * 2. Enforce PERMITS on shared intrinsics
   */

  // Remove non-standard properties.
  // All remaining functions encountered during whitelisting are
  // branded as honorary native functions.
  reportInGroup(
    'SES Removing unpermitted intrinsics',
    reporter,
    groupReporter =>
      removeUnpermittedIntrinsics(
        intrinsics,
        markVirtualizedNativeFunction,
        groupReporter,
      ),
  );

  // Initialize the powerful initial global, i.e., the global of the
  // start compartment, from the intrinsics.

  setGlobalObjectConstantProperties(globalThis);

  setGlobalObjectMutableProperties(globalThis, {
    intrinsics,
    newGlobalPropertyNames: initialGlobalPropertyNames,
    makeCompartmentConstructor,
    markVirtualizedNativeFunction,
  });

  if (
    evalTaming === 'no-eval' ||
    // deprecated
    evalTaming === 'noEval'
  ) {
    setGlobalObjectEvaluators(
      globalThis,
      noEvalEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'safe-eval' ||
    // deprecated
    evalTaming === 'safeEval'
  ) {
    const { safeEvaluate } = makeSafeEvaluator({ globalObject: globalThis });
    setGlobalObjectEvaluators(
      globalThis,
      safeEvaluate,
      markVirtualizedNativeFunction,
    );
  } else if (
    evalTaming === 'unsafe-eval' ||
    // deprecated
    evalTaming === 'unsafeEval'
  ) {
    // Leave eval function and Function constructor of the initial
    // compartment intact.
    // Other compartments will not have access to these evaluators unless a
    // guest program escapes containment.
  }

  /**
   * 3. HARDEN to share the intrinsics.
   *
   * We define hardenIntrinsics here so that options are in scope, but return
   * it to the caller because we intend to eventually allow vetted shims to run
   * between repairs and the hardening of intrinsics and so we can benchmark
   * repair separately from hardening.
   */

  const hardenIntrinsics = () => {
    priorHardenIntrinsics === undefined ||
      // eslint-disable-next-line @endo/no-polymorphic-call
      assert.fail(
        X`Already locked down at ${priorHardenIntrinsics} (SES_ALREADY_LOCKED_DOWN)`,
        TypeError,
      );
    // See https://github.com/endojs/endo/blob/master/packages/ses/error-codes/SES_ALREADY_LOCKED_DOWN.md
    priorHardenIntrinsics = TypeError(
      'Prior lockdown (SES_ALREADY_LOCKED_DOWN)',
    );
    // Tease V8 to generate the stack string and release the closures the stack
    // trace retained:
    priorHardenIntrinsics.stack;

    // Circumvent the override mistake.
    // TODO consider moving this to the end of the repair phase, and
    // therefore before vetted shims rather than afterwards. It is not
    // clear yet which is better.
    // @ts-ignore enablePropertyOverrides does its own input validation
    reportInGroup('SES Enabling property overrides', reporter, groupReporter =>
      enablePropertyOverrides(
        intrinsics,
        overrideTaming,
        groupReporter,
        overrideDebug,
      ),
    );
    if (legacyRegeneratorRuntimeTaming === 'unsafe-ignore') {
      tameRegeneratorRuntime();
    }

    // Finally register and optionally freeze all the intrinsics. This
    // must be the operation that modifies the intrinsics.
    const toHarden = {
      intrinsics,
      hostIntrinsics,
      globals: {
        // Harden evaluators
        Function: globalThis.Function,
        eval: globalThis.eval,
        // @ts-ignore Compartment does exist on globalThis
        Compartment: globalThis.Compartment,

        // Harden Symbol
        Symbol: globalThis.Symbol,
      },
    };

    // Harden Symbol and properties for initialGlobalPropertyNames in the host realm
    for (const prop of getOwnPropertyNames(initialGlobalPropertyNames)) {
      toHarden.globals[prop] = globalThis[prop];
    }

    tamedHarden(toHarden);

    return tamedHarden;
  };

  return hardenIntrinsics;
};$h͏_once.repairIntrinsics(repairIntrinsics);
})()
,
// === 59. ses ./src/lockdown-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,repairIntrinsics;$h͏_imports([["./assert-sloppy-mode.js", []],["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./lockdown.js", [["repairIntrinsics",[$h͏_a => (repairIntrinsics = $h͏_a)]]]]]);








/** @import {LockdownOptions} from '../types.js' */

/**
 * @param {LockdownOptions} [options]
 */
globalThis.lockdown = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  globalThis.harden = hardenIntrinsics();
};

/**
 * @param {LockdownOptions} [options]
 */
globalThis.repairIntrinsics = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  // Reveal hardenIntrinsics after repairs.
  globalThis.hardenIntrinsics = () => {
    // Reveal harden after hardenIntrinsics.
    // Harden is dangerous before hardenIntrinsics because hardening just
    // about anything will inadvertently render intrinsics irreparable.
    // Also, for modules that must work both before or after lockdown (code
    // that is portable between JS and SES), the existence of harden in global
    // scope signals whether such code should attempt to use harden in the
    // defense of its own API.
    // @ts-ignore harden not yet recognized on globalThis.
    globalThis.harden = hardenIntrinsics();
  };
};
})()
,
// === 60. ses ./src/compartment-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeCompartmentConstructor,tameFunctionToString,getGlobalIntrinsics,chooseReporter;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./compartment.js", [["makeCompartmentConstructor",[$h͏_a => (makeCompartmentConstructor = $h͏_a)]]]],["./tame-function-tostring.js", [["tameFunctionToString",[$h͏_a => (tameFunctionToString = $h͏_a)]]]],["./intrinsics.js", [["getGlobalIntrinsics",[$h͏_a => (getGlobalIntrinsics = $h͏_a)]]]],["./reporting.js", [["chooseReporter",[$h͏_a => (chooseReporter = $h͏_a)]]]]]);





const markVirtualizedNativeFunction = tameFunctionToString();

const muteReporter = chooseReporter('none');

// @ts-ignore Compartment is definitely on globalThis.
globalThis.Compartment = makeCompartmentConstructor(
  makeCompartmentConstructor,
  // Any reporting that would need to be done should have already been done
  // during `lockdown()`.
  // See https://github.com/endojs/endo/pull/2624#discussion_r1840979770
  getGlobalIntrinsics(globalThis, muteReporter),
  markVirtualizedNativeFunction,
  {
    enforceNew: true,
  },
);
})()
,
// === 61. ses ./src/assert-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let globalThis,makeAssert;$h͏_imports([["./commons.js", [["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/assert.js", [["makeAssert",[$h͏_a => (makeAssert = $h͏_a)]]]]]);


globalThis.assert = makeAssert(undefined, true);
})()
,
// === 62. ses ./src/console-shim.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';let symbolFor,globalThis,defineCausalConsoleFromLogger,loggedErrorHandler;$h͏_imports([["./commons.js", [["symbolFor",[$h͏_a => (symbolFor = $h͏_a)]],["globalThis",[$h͏_a => (globalThis = $h͏_a)]]]],["./error/console.js", [["defineCausalConsoleFromLogger",[$h͏_a => (defineCausalConsoleFromLogger = $h͏_a)]]]],["./error/assert.js", [["loggedErrorHandler",[$h͏_a => (loggedErrorHandler = $h͏_a)]]]]]);



// TODO possible additional exports. Some are privileged.
// export { loggedErrorHandler };
// export {
//   makeCausalConsole,
//   consoleLevelMethods,
//   consoleOtherMethods,
//   makeLoggingConsoleKit,
//   filterConsole,
//   pumpLogToConsole,
// } from './src/error/console.js';
// export { assertLogs, throwsAndLogs } from './src/error/throws-and-logs.js';

/**
 * Makes a Console like the
 * [SES causal `console`](https://github.com/endojs/endo/blob/master/packages/ses/src/error/README.md)
 * but whose output is redirected to the supplied `logger` function.
 */
const makeCausalConsoleFromLoggerForSesAva =
  defineCausalConsoleFromLogger(loggedErrorHandler);

/**
 *`makeCausalConsoleFromLoggerForSesAva` is privileged because it exposes
 * unredacted error info onto the `Logger` provided by the caller. It
 * should not be made available to non-privileged code.
 *
 * Further, we consider this particular API choice to be experimental
 * and may change in the future. It is currently only intended for use by
 * `@endo/ses-ava`, with which it will be co-maintained.
 *
 * Thus, this `console-shim.js` makes `makeCausalConsoleFromLoggerForSesAva`
 * available on `globalThis` which it *assumes* is the global of the start
 * compartment and is therefore allowed to hold powers that should not be
 * available in constructed compartments. It makes it available as the value of
 * a global property named by a registered symbol named
 * `MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA`.
 *
 * Anyone accessing this, including `@endo/ses-ava`, should feature test for
 * this and be tolerant of its absence. It may indeed disappear from later
 * versions of the ses-shim.
 */
const MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA = symbolFor(
  'MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA',
);

globalThis[MAKE_CAUSAL_CONSOLE_FROM_LOGGER_KEY_FOR_SES_AVA] =
  makeCausalConsoleFromLoggerForSesAva;
})()
,
// === 63. ses ./index.js ===
({imports:$h͏_imports,liveVar:$h͏_live,onceVar:$h͏_once,import:$h͏_import,importMeta:$h͏____meta})=>(function(){'use strict';$h͏_imports([["./src/lockdown-shim.js", []],["./src/compartment-shim.js", []],["./src/assert-shim.js", []],["./src/console-shim.js", []]]);
})()
,
])()
;/*! end SES */
(()=>{var __webpack_modules__={6877(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Q$:()=>m,bp:()=>E});var e=__webpack_require__(413279);var t=__webpack_require__.n(e);var r=__webpack_require__(927785);var n=__webpack_require__(541726);var a=__webpack_require__.n(n);var i=__webpack_require__(252334);__webpack_require__.n(i);var s=__webpack_require__(48050);__webpack_require__.n(s);var o=__webpack_require__(745085);var l=__webpack_require__(177540);var u=__webpack_require__(500855);var c=__webpack_require__(299150);var h=__webpack_require__(797095);var f=__webpack_require__(932791);let m=u.g.some(e=>e===window.location.origin);let d,p,g,b,y,k;function w(e){let t=new r.UI({name:h.SM,target:"CookieHandlerPage",targetOrigin:e});(d=new(a())).setMaxListeners(25);let n=()=>{!d.destroyed&&!d.writableEnded&&d.end()};t.once?.("close",n),t.once?.("end",n),(0,i.pipeline)(d,t,d,e=>(0,f.R)("MetaMask Inpage Multiplex",e)),p=d.createStream(h.em),d.ignoreStream(h.xQ),d.ignoreStream(h.om),d.ignoreStream(h.s$),d.ignoreStream(h.ZU),d.ignoreStream(h.VD),d.ignoreStream(h.Yo)}let v=()=>{g=t().runtime.connect({name:h.SM}),b=new s.ExtensionPortStream(g,{chunkSize:0}),(y=new(a())).setMaxListeners(25);let e=()=>{!y.destroyed&&!y.writableEnded&&y.end()};b?.once?.("close",e),b?.once?.("end",e),(0,i.pipeline)(y,b,y,e=>{(0,f.R)("MetaMask Background Multiplex",e),window.postMessage({target:"CookieHandlerPage",data:{name:h.em,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}),k=y.createStream(h.em),y.ignoreStream(h.xQ),y.ignoreStream(h.om),y.ignoreStream(h.s$),y.ignoreStream(h.ZU),y.ignoreStream(h.VD),y.ignoreStream(h.Yo),(0,i.pipeline)(p,k,p,e=>console.debug(`MetaMask: Muxed traffic for channel "${h.em}" failed.`,e)),g.onDisconnect.addListener(_)};let _=()=>{let e=(0,c.Cg)();g.onDisconnect.removeListener(_),p.removeAllListeners(),y.removeAllListeners(),y.destroy(),k.removeAllListeners(),k.destroy(),b=null,e&&(console.warn(`${e} Resetting the cookie streams.`),setTimeout(v,1e3))};let S=e=>{return(0,o.Gv)(e)&&e.name===l.X.READY?(!b&&v(),Promise.resolve(`MetaMask: handled "${l.X.READY}" for cookie streams`)):(0,undefined)};let E=()=>{let{origin:e}=window.location;w(e),v(),t().runtime.onMessage.addListener(S)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},14631(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>e});class e{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:(0,this.reason)}}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},15394(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=o;var e=__webpack_require__(304208).F,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0;var i=__webpack_require__(108694);function s(e,t){var n=this._transformState;n.transforming=!1;var a=n.writecb;if(a===null)return this.emit("error",new r);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),a(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);i.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?u(this,null,null):this._flush(function(t,r){u(e,t,r)})}function u(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new n;return e.push(null)}__webpack_require__(985738)(o,i),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},o.prototype._transform=function(e,r,n){n(new t("_transform()"))},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},o.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,function(e){t(e)})}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},16905(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{f:()=>e,z:()=>t});let e={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};let t={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},"4001":{standard:"EIP-1193",message:"User rejected the request."},"4100":{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},"4200":{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},"4900":{standard:"EIP-1193",message:"The provider is disconnected from all chains."},"4901":{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_exports__,__webpack_require__}))()},26319(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{O_:()=>M,Qf:()=>N,co:()=>I,jf:()=>C});var e=__webpack_require__(541726);var t=__webpack_require__.n(e);var r=__webpack_require__(927785);var n=__webpack_require__(252334);__webpack_require__.n(n);var a=__webpack_require__(413279);var i=__webpack_require__.n(a);var s=__webpack_require__(48050);__webpack_require__.n(s);var o=__webpack_require__(745085);var l=__webpack_require__(797095);var u=__webpack_require__(177540);var c=__webpack_require__(299150);var h=__webpack_require__(833878);var f=__webpack_require__(932791);var m=__webpack_require__(76184);let d,p,g,b,y,k,w;let v,_,S,E,j,T,x,A;let R=!1;let M=()=>{R=!0,E=i().runtime.connect({name:l.SM}),(j=new s.ExtensionPortStream(E,{chunkSize:0})).on("data",D),(v=new(t())).setMaxListeners(25),v.ignoreStream(l.xQ);let e=()=>{!v.destroyed&&!v.writableEnded&&v.end()};j?.once?.("close",e),j?.once?.("end",e),(0,n.pipeline)(v,j,v,e=>{(0,f.R)("MetaMask Background Multiplex",e),B()}),_=v.createStream(l.s$),(0,n.pipeline)(x,_,x,e=>console.debug(`MetaMask: Muxed traffic for channel "${l.s$}" failed.`,e)),S=v.createStream(l.ZU),(0,n.pipeline)(A,S,A,e=>console.debug(`MetaMask: Muxed traffic for channel "${l.ZU}" failed.`,e)),(0,m.M6)(v),E.onDisconnect.addListener(C)};let O=()=>{(d=new(t())).setMaxListeners(25),w=P(),(0,n.pipeline)(d,j,w,d,e=>{(0,f.R)("MetaMask Background Legacy Multiplex",e),B()}),p=d.createStream(l.s$),(0,n.pipeline)(y,p,y,e=>console.debug(`MetaMask: Muxed traffic between channels "${l.om}" and "${l.s$}" failed.`,e)),g=d.createStream(l.xQ),(0,n.pipeline)(k,g,k,e=>console.debug(`MetaMask: Muxed traffic for channel "${l.xQ}" failed.`,e)),d.ignoreStream(l.ZU),d.ignoreStream(l.em),d.ignoreStream(l.om),d.ignoreStream(l.VD),d.ignoreStream(l.Yo)};let L=e=>{return(0,o.Gv)(e)&&e.name===u.X.READY?(!j&&(M(),O()),Promise.resolve(`MetaMask: handled ${u.X.READY}`)):(0,undefined)};function I(){if(!E)return;E.onDisconnect.removeListener(C),x.removeAllListeners(),v.removeAllListeners(),v.destroy(),_.removeAllListeners(),_.destroy(),S.removeAllListeners(),S.destroy(),j=null,y.removeAllListeners(),k.removeAllListeners(),d.removeAllListeners(),d.destroy(),p.removeAllListeners(),p.destroy(),g.removeAllListeners(),g.destroy(),E.disconnect(),E=null,R=!1}function C(e){let t=e||(0,c.Cg)();I(),t&&(console.warn(`${t} Resetting the streams.`),setTimeout(M,1e3))}let N=()=>{let e=new r.UI({name:l.SM,target:l.jf});(T=new(t())).setMaxListeners(25);let a=()=>{!T.destroyed&&!T.writableEnded&&T.end()};e.once?.("close",a),e.once?.("end",a),(0,n.pipeline)(T,e,T,e=>(0,f.R)("MetaMask Inpage Multiplex",e)),x=T.createStream(l.s$),A=T.createStream(l.ZU),T.ignoreStream(l.em),T.ignoreStream(l.om),T.ignoreStream(l.xQ),T.ignoreStream(l.VD),T.ignoreStream(l.Yo);let s=new r.UI({name:l.ur,target:l.Xy});(b=new(t())).setMaxListeners(25),(0,n.pipeline)(b,s,b,e=>(0,f.R)("MetaMask Legacy Inpage Multiplex",e)),y=b.createStream(l.om),k=b.createStream(l.xQ),b.ignoreStream(l.em),b.ignoreStream(l.s$),b.ignoreStream(l.ZU),b.ignoreStream(l.VD),b.ignoreStream(l.Yo),M(),O(),i().runtime.onMessage.addListener(L),!0&&i().runtime.onMessage.addListener(h.a)};function P(){return new n.Transform({highWaterMark:16,objectMode:!0,transform:(e,t,r)=>{e?.name===l.s$&&e.data?.method==="metamask_accountsChanged"&&(e.data.method="wallet_accountsChanged",e.data.result=e.data.params,delete e.data.params),r(null,e)}})}function D(e){R&&e.data.method==="metamask_chainChanged"&&(R=!1,window.postMessage({target:l.jf,data:{name:l.s$,data:{jsonrpc:"2.0",method:"METAMASK_EXTENSION_CONNECT_CAN_RETRY"}}},window.location.origin))}function B(){window.postMessage({target:l.jf,data:{name:l.s$,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},29947(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P:()=>u});var e=__webpack_require__(552558);var t=undefined||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var r=undefined||function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r};var n,a,i,s,o;let l=["clearState","addSubjectMetadata","getSubjectMetadata","trimMetadataState"];var u;var c;(c=u||(u={}))["Extension"]="extension",c["Internal"]="internal",c["Unknown"]="unknown",c["Website"]="website",c["Snap"]="snap";let h={subjectMetadata:{includeInStateLogs:!0,persist:!0,includeInDebugSnapshot:!1,usedInUi:!0}};let f={subjectMetadata:{}};class m extends e.w{constructor({messenger:e,subjectCacheLimit:u,state:c={}}){if(!Number.isInteger(u)||u<1)throw new Error(`subjectCacheLimit must be a positive integer. Received: "${u}"`);let f=t=>{return e.call("PermissionController:hasPermissions",t)};super({name:"SubjectMetadataController",metadata:h,messenger:e,state:{...t(n,n,"m",o).call(n,c,f)}}),a.set(this,void 0),i.set(this,void 0),s.set(this,void 0),r(this,s,f,"f"),r(this,a,u,"f"),r(this,i,new Set,"f"),this.messenger.registerMethodActionHandlers(this,l)}clearState(){t(this,i,"f").clear(),this.update(e=>{return{...f}})}addSubjectMetadata(e){let{origin:r}=e;let n={...e,extensionId:e.extensionId??null,iconUrl:e.iconUrl??null,name:e.name??null,subjectType:e.subjectType??null};let o=null;if(t(this,i,"f").size>=t(this,a,"f")){let e=t(this,i,"f").values().next().value;t(this,i,"f").delete(e),!t(this,s,"f").call(this,e)&&(o=e)}t(this,i,"f").add(r),this.update(e=>{e.subjectMetadata[r]=n,typeof o=="string"&&delete e.subjectMetadata[o]})}getSubjectMetadata(e){return this.state.subjectMetadata[e]}trimMetadataState(){this.update(()=>{return t(n,n,"m",o).call(n,this.state,t(this,s,"f"))})}}n=m,a=new WeakMap,i=new WeakMap,s=new WeakMap,o=function(e,t){let{subjectMetadata:r={}}=e;return{subjectMetadata:Object.keys(r).reduce((e,n)=>{return t(n)&&(e[n]=r[n]),e},{})}}}}).call(__webpack_require__._LM_("@metamask/permission-controller",{__webpack_require__,__webpack_exports__}))()},45217(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{t:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let a=(0,t.kp)(n.Wu,(0,e.Ik)({type:(0,r.eu)(n.Z6.Spinner)}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},48050(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__classPrivateFieldGet||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var t=this&&this.__classPrivateFieldSet||function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r};var r,n,a,i,s,o,l,u,c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExtensionPortStream=exports.CHUNK_SIZE=void 0;let h=__webpack_require__(252334);let f=__webpack_require__(770467);let m=__webpack_require__(803058);let d=__webpack_require__(283079);var p=__webpack_require__(770467);Object.defineProperty(exports,"CHUNK_SIZE",{enumerable:!0,get:function(){return p.CHUNK_SIZE}});class g extends h.Duplex{getChunkSize(){return e(this,s,"f")}constructor(u,{chunkSize:c,log:h,...d}={}){if(c&&c<f.MIN_CHUNK_SIZE)throw new Error(`Cannot chunk messages smaller than the min chunk size, ${f.MIN_CHUNK_SIZE}`);super({objectMode:!0,highWaterMark:256,...d}),r.add(this),n.set(this,void 0),a.set(this,void 0),i.set(this,new Map),s.set(this,void 0),o.set(this,(t,r)=>{if(e(this,s,"f")>0){let e=(0,m.maybeParseAsChunkFrame)(t);if(e!==null){this.handleChunk(e);return}}e(this,a,"f").call(this,t,!1),this.push(t)}),l.set(this,t=>{if(e(this,i,"f").clear(),this.destroyed)return;if(this.push(null),this.writableFinished)this.destroy();else{let e=()=>{this.removeListener("finish",e),this.removeListener("error",e),!this.destroyed&&this.destroy()};this.once("finish",e),this.once("error",e),!this.writableEnded&&this.end()}}),t(this,n,u,"f"),u.onMessage.addListener(e(this,o,"f")),u.onDisconnect.addListener(e(this,l,"f")),t(this,a,h??(()=>undefined),"f"),t(this,s,c??f.CHUNK_SIZE,"f")}_read(){}async _write(t,n,i){if(n&&n!=="utf8"&&n!=="utf-8"){e(this,r,"m",u).call(this,i,new Error("ExtensionPortStream only supports UTF-8 encoding"));return}try{e(this,r,"m",c).call(this,t),e(this,a,"f").call(this,t,!0),e(this,r,"m",u).call(this,i)}catch(n){if(n instanceof Error){if(g.ErrorMessages.includes(n.message)){let o=e(this,s,"f");if(this.emit("message-too-large",{message:t,chunkSize:o,originalError:n}),o>0){try{for await(let n of(0,d.toFrames)(t,o))e(this,r,"m",c).call(this,n);e(this,a,"f").call(this,t,!0),e(this,r,"m",u).call(this,i)}catch(t){e(this,r,"m",u).call(this,i,new AggregateError([t],"ExtensionPortStream chunked postMessage failed"))}return}}e(this,r,"m",u).call(this,i,new AggregateError([n],"ExtensionPortStream postMessage failed"))}else e(this,r,"m",u).call(this,i,new AggregateError([new Error(String(n))],"ExtensionPortStream postMessage failed"))}}setLogger(e){t(this,a,e,"f")}handleChunk(t){let{id:r,seq:n,fin:s,source:o,dataIndex:l}=t;let u=e(this,i,"f").get(r);if(u===undefined&&(u={parts:[],expected:0},e(this,i,"f").set(r,u)),s===1&&(u.expected=n+1),u.parts[n]=[o,l],u.expected&&u.parts.filter(Boolean).length===u.expected){e(this,i,"f").delete(r);let{parts:t}=u;let{length:n}=t;let s=new Array(n);for(let e=0;e<n;e++){let[r,n]=t[e];s[e]=r.slice(n)}let o=JSON.parse(s.join(""));this.push(o),e(this,a,"f").call(this,o,!1)}}}exports.ExtensionPortStream=g,n=new WeakMap,a=new WeakMap,i=new WeakMap,s=new WeakMap,o=new WeakMap,l=new WeakMap,r=new WeakSet,u=function(e,t){queueMicrotask(()=>e(t))},c=function(t){e(this,n,"f").postMessage(t)},g.ErrorMessages=["Message exceeded maximum allowed size of 64MiB.","Message length exceeded maximum allowed length."]}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__})).bind(exports)()},67395(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=o;var e=__webpack_require__(158647).F,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0;var i=__webpack_require__(128093);function s(e,t){var n=this._transformState;n.transforming=!1;var a=n.writecb;if(a===null)return this.emit("error",new r);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),a(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);i.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;typeof this._flush!="function"||this._readableState.destroyed?u(this,null,null):this._flush(function(t,r){u(e,t,r)})}function u(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new n;return e.push(null)}__webpack_require__(985738)(o,i),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},o.prototype._transform=function(e,r,n){n(new t("_transform()"))},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},o.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,function(e){t(e)})}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},68266(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:t,ObjectKeys:r,ObjectSetPrototypeOf:n}=__webpack_require__(708566);module.exports=s;let a=__webpack_require__(699960);let i=__webpack_require__(777352);n(s.prototype,a.prototype),n(s,a);{let e=r(i.prototype);for(let t=0;t<e.length;t++){let r=e[t];!s.prototype[r]&&(s.prototype[r]=i.prototype[r])}}function s(e){if(!(this instanceof s))return new s(e);a.call(this,e),i.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(s.prototype,{writable:{__proto__:null,...t(i.prototype,"writable")},writableHighWaterMark:{__proto__:null,...t(i.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...t(i.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...t(i.prototype,"writableBuffer")},writableLength:{__proto__:null,...t(i.prototype,"writableLength")},writableFinished:{__proto__:null,...t(i.prototype,"writableFinished")},writableCorked:{__proto__:null,...t(i.prototype,"writableCorked")},writableEnded:{__proto__:null,...t(i.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...t(i.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});let o;function l(){return o===undefined&&(o={}),o}s.fromWeb=function(e,t){return l().newStreamDuplexFromReadableWritablePair(e,t)},s.toWeb=function(e){return l().newReadableWritablePairFromDuplex(e)};let u;s.from=function(e){return!u&&(u=__webpack_require__(809090)),u(e,"body")}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},74883(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(107927);__webpack_require__(524382);var t,r;e.l,t=new WeakMap,r=new WeakMap}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},75284(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t;module.exports=j,j.ReadableState=E,__webpack_require__(780063).EventEmitter;var r=function(e,t){return e.listeners(t).length};var n=__webpack_require__(593545);var a=__webpack_require__(971567).Buffer;var i=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function o(e){return a.isBuffer(e)||e instanceof i}var l=__webpack_require__(639266);var u;u=l&&l.debuglog?l.debuglog("stream"):function(){};var c=__webpack_require__(478633);var h=__webpack_require__(934344);var f=__webpack_require__(446267).getHighWaterMark;var m=__webpack_require__(304208).F,d=m.ERR_INVALID_ARG_TYPE,p=m.ERR_STREAM_PUSH_AFTER_EOF,g=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var y;var k;var w;__webpack_require__(985738)(j,n);var v=h.errorOrDestroy;var _=["error","close","destroy","pause","resume"];function S(e,t,r){if(typeof e.prependListener=="function")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)}function E(e,r,n){t=t||__webpack_require__(108694),e=e||{},typeof n!=="boolean"&&(n=r instanceof t),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=f(this,e,"readableHighWaterMark",n),this.buffer=new c,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(!y&&(y=__webpack_require__(938453).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function j(e){if(t=t||__webpack_require__(108694),!(this instanceof j))return new j(e);var r=this instanceof t;this._readableState=new E(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),n.call(this)}function T(e,t,r,n,i){u("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,O(e,o);else{var l;if(!i&&(l=A(o,t)),l)v(e,l);else if(o.objectMode||t&&t.length>0)if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),n)o.endEmitted?v(e,new b):x(e,o,t,!0);else if(o.ended)v(e,new p);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?x(e,o,t,!1):C(e,o)):x(e,o,t,!1);else!n&&(o.reading=!1,C(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function x(e,t,r,n){t.flowing&&t.length===0&&!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&&L(e)),C(e,t)}function A(e,t){var r;return!o(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode&&(r=new d("chunk",["string","Buffer","Uint8Array"],t)),r}function R(e){return e>=0x40000000?e=0x40000000:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:(0,t.objectMode)?1:(0,e!=e)?t.flowing&&t.length?t.buffer.head.data.length:(0,t.length):(0,(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:(0,!t.ended)?(t.needReadable=!0,0):(0,t.length))}function O(e,t){if(u("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?L(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,I(e)))}function L(t){var r=t._readableState;u("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(u("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(I,t))}function I(e){var t=e._readableState;u("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,U(e)}function C(t,r){!r.readingMore&&(r.readingMore=!0,e.nextTick(N,t,r))}function N(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function P(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,"data")&&(t.flowing=!0,U(e))}}function D(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 B(e){u("readable nexttick read 0"),e.read(0)}function F(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(q,t,r))}function q(e,t){u("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;u("flow",t.flowing);while(t.flowing&&e.read()!==null);}function $(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function z(t){var r=t._readableState;u("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(W,r,t))}function W(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined?!1:(0,this._readableState.destroyed)},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}}),j.prototype.destroy=h.destroy,j.prototype._undestroy=h.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r=this._readableState;var n;return r.objectMode?n=!0:typeof e=="string"&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),T(this,e,t,!1,n)},j.prototype.unshift=function(e){return T(this,e,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(e){!y&&(y=__webpack_require__(938453).StringDecoder);var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head;var n="";while(r!==null)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},j.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?z(this):L(this),null;if((e=M(e,t))===0&&t.ended)return t.length===0&&z(this),null;var n=t.needReadable;var a;return u("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&u("length less than watermark",n=!0),t.ended||t.reading?u("reading or ended",n=!1):n&&(u("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,!t.reading&&(e=M(r,t))),(a=e>0?$(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(!t.ended&&(t.needReadable=!0),r!==e&&t.ended&&z(this)),a!==null&&this.emit("data",a),a},j.prototype._read=function(e){v(this,new g("_read()"))},j.prototype.pipe=function(t,n){var a=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,n);var s=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr?l:b;function o(e,t){u("onunpipe"),e===a&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,f())}function l(){u("onend"),t.end()}i.endEmitted?e.nextTick(s):a.once("end",s),t.on("unpipe",o);var c=P(a);t.on("drain",c);var h=!1;function f(){u("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",o),a.removeListener("end",l),a.removeListener("end",b),a.removeListener("data",m),h=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c()}function m(e){u("ondata");var r=t.write(e);u("dest.write",r),r===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&H(i.pipes,t)!==-1)&&!h&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),a.pause())}function d(e){u("onerror",e),b(),t.removeListener("error",d),r(t,"error")===0&&v(t,e)}function p(){t.removeListener("finish",g),b()}function g(){u("onfinish"),t.removeListener("close",p),b()}function b(){u("unpipe"),a.unpipe(t)}return a.on("data",m),S(t,"error",d),t.once("close",p),t.once("finish",g),t.emit("pipe",a),!i.flowing&&(u("pipe resume"),a.resume()),t},j.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)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;var a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=H(t.pipes,e);return s===-1||(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(t,r){var a=n.prototype.on.call(this,t,r);var i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?L(this):!i.reading&&e.nextTick(B,this)),a},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(t,r){var a=n.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(D,this),a},j.prototype.removeAllListeners=function(t){var r=n.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(D,this),r},j.prototype.resume=function(){var e=this._readableState;return!e.flowing&&(u("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=!1;for(var a in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){if((u("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&(a===null||a===undefined))||!r.objectMode&&(!a||!a.length))return;!t.push(a)&&(n=!0,e.pause())}),e)this[a]===undefined&&typeof e[a]=="function"&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},typeof Symbol=="function"&&(j.prototype[Symbol.asyncIterator]=function(){return k===undefined&&(k=__webpack_require__(181531)),k(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=$,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(j.from=function(e,t){return w===undefined&&(w=__webpack_require__(258565)),w(j,e,t)})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},76184(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{M6:()=>T,MB:()=>E,qS:()=>x});var e=__webpack_require__(927785);var t=__webpack_require__(541726);var r=__webpack_require__.n(t);var n=__webpack_require__(252334);__webpack_require__.n(n);var a=__webpack_require__(413279);var i=__webpack_require__.n(a);var s=__webpack_require__(48050);__webpack_require__.n(s);var o=__webpack_require__(745085);var l=__webpack_require__(299150);var u=__webpack_require__(177540);var c=__webpack_require__(797095);var h=__webpack_require__(932791);let f=new URL("https://metamask.github.io/phishing-warning/v5.1.0/");let m,d,p,g,b,y,k;function w(){let t=new e.UI({name:c.SM,target:c.uA});(y=new(r())).setMaxListeners(25);let a=()=>{!y.destroyed&&!y.writableEnded&&y.end()};t.once?.("close",a),t.once?.("end",a),(0,n.pipeline)(y,t,y,e=>(0,h.R)("MetaMask Inpage Multiplex",e)),b=y.createStream(c.VD),y.ignoreStream(c.em),y.ignoreStream(c.xQ),y.ignoreStream(c.om),y.ignoreStream(c.s$),y.ignoreStream(c.ZU),y.ignoreStream(c.Yo)}let v=()=>{p=i().runtime.connect({name:c.SM}),g=new s.ExtensionPortStream(p,{chunkSize:0}),(d=new(r())).setMaxListeners(25);let e=()=>{!d.destroyed&&!d.writableEnded&&d.end()};g?.once?.("close",e),g?.once?.("end",e),(0,n.pipeline)(d,g,d,e=>{(0,h.R)("MetaMask Background Multiplex",e),window.postMessage({target:c.uA,data:{name:c.VD,data:{jsonrpc:"2.0",method:"METAMASK_STREAM_FAILURE"}}},window.location.origin)}),m=d.createStream(c.VD),(0,n.pipeline)(b,m,b,e=>console.debug(`MetaMask: Muxed traffic for channel "${c.VD}" failed.`,e)),d.ignoreStream(c.em),d.ignoreStream(c.xQ),d.ignoreStream(c.om),d.ignoreStream(c.s$),d.ignoreStream(c.ZU),d.ignoreStream(c.Yo),p.onDisconnect.addListener(_)};let _=()=>{let e=(0,l.Cg)();p.onDisconnect.removeListener(_),b.removeAllListeners(),d.removeAllListeners(),d.destroy(),m.removeAllListeners(),m.destroy(),g=null,e&&(console.warn(`${e} Resetting the phishing streams.`),setTimeout(v,1e3))};let S=e=>{return(0,o.Gv)(e)&&e.name===u.X.READY?(!g&&v(),Promise.resolve(`MetaMask: handled "${u.X.READY}" for phishing streams`)):(0,undefined)};let E=window.location.origin===f.origin&&window.location.pathname===f.pathname;function j(){console.debug("MetaMask: Routing to Phishing Warning page.");let{hostname:e,href:t}=window.location;let r=new URLSearchParams({hostname:e,href:t});window.location.href=`${"https://metamask.github.io/phishing-warning/v5.1.0/"}#${r}`;while(1)console.log("MetaMask: Locking js execution, redirection will complete shortly")}function T(e){k=e.createStream(c.Yo),e.ignoreStream(c.em),e.ignoreStream(c.om),e.ignoreStream(c.VD),k.once("data",j)}let x=()=>{w(),v(),i().runtime.onMessage.addListener(S)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},78565(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(600473);function t(t,r){let n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(r)-n(t);return Math.floor(e.Ay.fromMillis(a).as("days"))}function r(e,r,n){let a={};let i=e;let s,o;for(let[l,u]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,r)=>{let n=t(e,r);return(n-n%7)/7}],["days",t]])n.indexOf(l)>=0&&(s=l,a[l]=u(e,r),(o=i.plus(a))>r?(a[l]--,(e=i.plus(a))>r&&(o=e,a[l]--,e=i.plus(a))):e=o);return[e,a,o,s]}function n(t,n,a,i){let[s,o,l,u]=r(t,n,a);let c=n-s;let h=a.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);h.length===0&&(l<n&&(l=s.plus({[u]:1})),l!==s&&(o[u]=(o[u]||0)+c/(l-s)));let f=e.Ay.fromObject(o,i);return h.length>0?e.Ay.fromMillis(c,i).shiftTo(...h).plus(f):(0,f)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},100209(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{w:()=>i});var e=__webpack_require__(115691);var t=undefined||function(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r};var r=undefined||function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)};var n,a;(0,e.YT)();class i{constructor({messenger:i,metadata:s,name:o,state:l}){n.set(this,void 0),a.set(this,void 0),t(this,a,i,"f"),this.messenger=i,this.name=o,t(this,n,(0,e.CN)(l,!0),"f"),this.metadata=s,r(this,a,"f").registerActionHandler(`${o}:getState`,()=>this.state),r(this,a,"f").registerInitialEventPayload({eventType:`${o}:stateChange`,getPayload:()=>[this.state,[]]}),r(this,a,"f").registerInitialEventPayload({eventType:`${o}:stateChanged`,getPayload:()=>[this.state,[]]})}get state(){return r(this,n,"f")}set state(e){throw new Error(`Controller state cannot be directly mutated; use 'update' method instead.`)}update(i){let[s,o,l]=(0,e.vI)(r(this,n,"f"),i);return o.length>0&&(t(this,n,s,"f"),r(this,a,"f").publish(`${this.name}:stateChange`,s,o),r(this,a,"f").publish(`${this.name}:stateChanged`,s,o)),{nextState:s,patches:o,inversePatches:l}}applyPatches(i){let s=(0,e.$i)(r(this,n,"f"),i);t(this,n,s,"f"),r(this,a,"f").publish(`${this.name}:stateChange`,s,i),r(this,a,"f").publish(`${this.name}:stateChanged`,s,i)}destroy(){this.messenger.clearEventSubscriptions(`${this.name}:stateChange`),this.messenger.clearEventSubscriptions(`${this.name}:stateChanged`)}}n=new WeakMap,a=new WeakMap}}).call(__webpack_require__._LM_("@metamask/base-controller",{__webpack_require__,__webpack_exports__}))()},101274(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(107927);__webpack_require__(524382);e.l}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},103508(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;module.exports=E,E.WritableState=_;var n={deprecate:__webpack_require__(381763)};var a=__webpack_require__(593545);var i=__webpack_require__(971567).Buffer;var s=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function o(e){return i.from(e)}function l(e){return i.isBuffer(e)||e instanceof s}var u=__webpack_require__(934344);var c=__webpack_require__(446267).getHighWaterMark;var h=__webpack_require__(304208).F,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,d=h.ERR_MULTIPLE_CALLBACK,p=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,k=h.ERR_UNKNOWN_ENCODING;var w=u.errorOrDestroy;function v(){}function _(e,n,a){r=r||__webpack_require__(108694),e=e||{},typeof a!=="boolean"&&(a=n instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=c(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}__webpack_require__(985738)(E,a),_.prototype.getBuffer=function(){var e=this.bufferedRequest;var t=[];while(e)t.push(e),e=e.next;return t};try{Object.defineProperty(_.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}var S;function E(e){var t=this instanceof(r=r||__webpack_require__(108694));if(!t&&!S.call(E,this))return new E(e);this._writableState=new _(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),a.call(this)}function j(t,r){var n=new y;w(t,n),e.nextTick(r,n)}function T(t,r,n,a){var i;return(n===null?i=new b:typeof n!=="string"&&!r.objectMode&&(i=new f("chunk",["string","Buffer"],n)),i)?(w(t,i),e.nextTick(a,i),!1):(0,!0)}function x(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=i.from(t,r)),t}function A(e,t,r,n,a,i){if(!r){var s=x(t,n,a);n!==s&&(r=!0,a="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var l=t.length<t.highWaterMark;if(!l&&(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,o,n,a,i);return l}function R(e,t,r,n,a,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function M(t,r,n,a,i){--r.pendingcb,n?(e.nextTick(i,a),e.nextTick(F,t,r),t._writableState.errorEmitted=!0,w(t,a)):(i(a),t._writableState.errorEmitted=!0,w(t,a),F(t,r))}function O(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(t,r){var n=t._writableState;var a=n.sync;var i=n.writecb;if(typeof i!=="function")throw new d;if(O(n),r)M(t,n,a,r,i);else{var s=P(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&N(t,n),a?e.nextTick(I,t,n,s,i):I(t,n,s,i)}}function I(e,t,r,n){!r&&C(e,t),t.pendingcb--,n(),F(e,t)}function C(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var a=new Array(r.bufferedRequestCount);var i=r.corkedRequestsFree;i.entry=n;var s=0;var o=!0;while(n)a[s]=n,!n.isBuf&&(o=!1),n=n.next,s+=1;a.allBuffers=o,R(e,r,!0,r.length,a,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{while(n){var l=n.chunk;var u=n.encoding;var c=n.callback;var h=r.objectMode?1:l.length;if(R(e,r,!1,h,l,u,c),n=n.next,r.bufferedRequestCount--,r.writing)break}n===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function P(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function D(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),F(e,t)})}function B(t,r){!r.prefinished&&!r.finalCalled&&(typeof t._final!="function"||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,e.nextTick(D,t,r)))}function F(e,t){var r=P(t);if(r){if(B(e,t),t.pendingcb===0){if(t.finished=!0,e.emit("finish"),t.autoDestroy){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}}}return r}function q(t,r,n){r.ending=!0,F(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n)),r.ended=!0,t.writable=!1}function U(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return S.call(this,e)?!0:(0,this!==E)?!1:(0,e&&e._writableState instanceof _)}})):S=function(e){return e instanceof this},E.prototype.pipe=function(){w(this,new p)},E.prototype.write=function(e,t,r){var n=this._writableState;var a=!1;var s=!n.objectMode&&l(e);return s&&!i.isBuffer(e)&&(e=o(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":!t&&(t=n.defaultEncoding),typeof r!=="function"&&(r=v),n.ending?j(this,r):(s||T(this,n,e,r))&&(n.pendingcb++,a=A(this,n,s,e,t,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},E.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!==null&&e!==undefined&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),!n.ending&&q(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===undefined?!1:(0,this._writableState.destroyed)},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(e,t){t(e)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},107927(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{l:()=>r});var e=__webpack_require__(456224);let t=()=>undefined;class r extends e.Duplex{constructor(e){super(Object.assign({objectMode:!0},e)),this._init=!1,this._haveSyn=!1,this._log=()=>null}_handshake(){this._write("SYN",null,t),this.cork()}_onData(e){if(this._init)try{this.push(e),this._log(e,!1)}catch(e){this.emit("error",e)}else e==="SYN"?(this._haveSyn=!0,this._write("ACK",null,t)):e==="ACK"&&(this._init=!0,!this._haveSyn&&this._write("ACK",null,t),this.uncork())}_read(){return undefined}_write(e,t,r){e!=="ACK"&&e!=="SYN"&&this._log(e,!0),this._postMessage(e),r()}_setLogger(e){this._log=e}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},108694(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=o;var r=__webpack_require__(75284);var n=__webpack_require__(103508);__webpack_require__(985738)(o,r);{var a=t(n.prototype);for(var i=0;i<a.length;i++){var s=a[i];!o.prototype[s]&&(o.prototype[s]=n.prototype[s])}}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){if(this._writableState.ended)return;e.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){if(this._readableState===undefined||this._writableState===undefined)return;this._readableState.destroyed=e,this._writableState.destroyed=e}})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},115691(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw!1,Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(e){return!!e&&!!e[W]}function r(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===G}(e)||Array.isArray(e)||!!e[z]||!!((t=e.constructor)==null?void 0:t[z])||u(e)||c(e))}function n(e,t,r){void 0===r&&(r=!1),0===a(e)?(r?Object.keys:V)(e).forEach(function(n){r&&"symbol"==typeof n||t(n,e[n],e)}):e.forEach(function(r,n){return t(n,r,e)})}function a(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:u(e)?2:c(e)?3:0}function i(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function s(e,t){return 2===a(e)?e.get(t):e[t]}function o(e,t,r){var n=a(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e){return F&&e instanceof Map}function c(e){return q&&e instanceof Set}function h(e){return e.o||e.t}function f(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y(e);delete t[W];for(var r=V(t),n=0;n<r.length;n++){var a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,i){return void 0===i&&(i=!1),p(e)||t(e)||!r(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=d),Object.freeze(e),i&&n(e,function(e,t){return m(t,!0)},!0)),e}function d(){e(2)}function p(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(t){var r=Z[t];return r||e(18,t),r}function b(e,t){Z[e]||(Z[e]=t)}function y(){return!0,D}function k(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){v(e),e.p.forEach(S),e.p=null}function v(e){e===D&&(D=e.l)}function _(e){return D={p:[],l:D,h:e,m:!0,_:0}}function S(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function E(t,n){n._=n.p.length;var a=n.p[0],i=void 0!==t&&t!==a;return n.h.O||g("ES5").S(n,t,i),i?(a[W].P&&(w(n),e(4)),r(t)&&(t=j(n,t),n.l||x(n,t)),n.u&&g("Patches").M(a[W].t,t,n.u,n.s)):t=j(n,a,[]),w(n),n.u&&n.v(n.u,n.s),t!==$?t:void 0}function j(e,t,r){if(p(t))return t;var a=t[W];if(!a)return n(t,function(n,i){return T(e,a,t,n,i,r)},!0),t;if(a.A!==e)return t;if(!a.P)return x(e,a.t,!0),a.t;if(!a.I){a.I=!0,a.A._--;var i=4===a.i||5===a.i?a.o=f(a.k):a.o,s=i,o=!1;3===a.i&&(s=new Set(i),i.clear(),o=!0),n(s,function(t,n){return T(e,a,i,t,n,r,o)}),x(e,i,!1),r&&e.u&&g("Patches").N(a,r,e.u,e.s)}return a.o}function T(e,n,a,s,l,u,c){if(!1,t(l)){var h=j(e,l,u&&n&&3!==n.i&&!i(n.R,s)?u.concat(s):void 0);if(o(a,s,h),!t(h))return;e.m=!1}else c&&a.add(l);if(r(l)&&!p(l)){if(!e.h.D&&e._<1)return;j(e,l),n&&n.A.l||x(e,l)}}function x(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&m(t,r)}function A(e,t){var r=e[W];return(r?h(r):e)[t]}function R(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function M(e){e.P||(e.P=!0,e.l&&M(e.l))}function O(e){e.o||(e.o=f(e.t))}function L(e,t,r){;var n,a,i,s;var o,l,h;var f=u(t)?g("MapSet").F(t,r):c(t)?g("MapSet").T(t,r):e.O?(t,r,i=a={i:(n=Array.isArray(t))?1:0,A:r?r.A:y(),P:!1,I:!1,R:{},l:r,t:t,k:null,o:null,j:null,C:!1},s=K,n&&(i=[a],s=J),l=(o=Proxy.revocable(i,s)).revoke,a.k=h=o.proxy,a.j=l,h):g("ES5").J(t,r);return(r?r.A:y()).p.push(f),f}function I(i){return t(i)||e(22,i),function e(t){if(!r(t))return t;var i,l=t[W],u=a(t);if(l){if(!l.P&&(l.i<4||!g("ES5").K(l)))return l.t;l.I=!0,i=C(t,u),l.I=!1}else i=C(t,u);return n(i,function(t,r){l&&s(l.t,t)===r||o(i,t,e(r))}),3===u?new Set(i):i}(i)}function C(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f(e)}__webpack_require__.d(__webpack_exports__,{$i:()=>ee,CN:()=>m,YT:()=>N,vI:()=>Q});function N(){function o(e){if(!r(e))return e;if(Array.isArray(e))return e.map(o);if(u(e))return new Map(Array.from(e.entries()).map(function(e){return[e[0],o(e[1])]}));if(c(e))return new Set(Array.from(e).map(o));var t=Object.create(Object.getPrototypeOf(e));for(var n in e)t[n]=o(e[n]);return i(e,z)&&(t[z]=e[z]),t}function l(e){return t(e)?o(e):e}b("Patches",{$:function(t,r){return r.forEach(function(r){for(var n=r.path,i=r.op,l=t,u=0;u<n.length-1;u++){var c=a(l),h=n[u];"string"!=typeof h&&"number"!=typeof h&&(h=""+h),0!==c&&1!==c||"__proto__"!==h&&"constructor"!==h||e(24),"function"==typeof l&&"prototype"===h&&e(24),"object"!=typeof(l=s(l,h))&&e(15,n.join("/"))}var f=a(l),m=o(r.value),d=n[n.length-1];switch(i){case"replace":switch(f){case 2:return l.set(d,m);case 3:e(16);default:return l[d]=m}case"add":switch(f){case 1:return"-"===d?l.push(m):l.splice(d,0,m);case 2:return l.set(d,m);case 3:return l.add(m);default:return l[d]=m}case"remove":switch(f){case 1:return l.splice(d,1);case 2:return l.delete(d);case 3:return l.delete(r.value);default:return delete l[d]}default:e(17,i)}}),t},N:function(e,t,r,a){switch(e.i){case 0:case 4:case 2:;var o,u;return e,t,r,a,o=e.t,u=e.o,void n(e.R,function(e,n){var c=s(o,e),h=s(u,e),f=n?i(o,e)?"replace":"add":"remove";if(c!==h||"replace"!==f){var m=t.concat(e);r.push("remove"===f?{op:f,path:m}:{op:f,path:m,value:h}),a.push(f==="add"?{op:"remove",path:m}:"remove"===f?{op:"add",path:m,value:l(c)}:{op:"replace",path:m,value:l(c)})}});case 5:case 1:return function(e,t,r,n){var a=e.t,i=e.R,s=e.o;if(s.length<a.length){var o=[s,a];a=o[0],s=o[1];var u=[n,r];r=u[0],n=u[1]}for(var c=0;c<a.length;c++)if(i[c]&&s[c]!==a[c]){var h=t.concat([c]);r.push({op:"replace",path:h,value:l(s[c])}),n.push({op:"replace",path:h,value:l(a[c])})}for(var f=a.length;f<s.length;f++){var m=t.concat([f]);r.push({op:"add",path:m,value:l(s[f])})}a.length<s.length&&n.push({op:"replace",path:t.concat(["length"]),value:a.length})}(e,t,r,a);case 3:;var c,h,f;return e,t,r,a,c=e.t,h=e.o,f=0,void(c.forEach(function(e){if(!h.has(e)){var n=t.concat([f]);r.push({op:"remove",path:n,value:e}),a.unshift({op:"add",path:n,value:e})}f++}),f=0,h.forEach(function(e){if(!c.has(e)){var n=t.concat([f]);r.push({op:"add",path:n,value:e}),a.unshift({op:"remove",path:n,value:e})}f++}))}},M:function(e,t,r,n){r.push({op:"replace",path:[],value:t===$?void 0:t}),n.push({op:"replace",path:[],value:e})}})}var P,D,B="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,q="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,$=B?Symbol.for("immer-nothing"):((P={})["immer-nothing"]=!0,P),z=B?Symbol.for("immer-draftable"):"__$immer_draftable",W=B?Symbol.for("immer-state"):"__$immer_state",H="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",G=""+Object.prototype.constructor,V="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Y=Object.getOwnPropertyDescriptors||function(e){var t={};return V(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Z={},K={get:function(e,t){if(t===W)return e;var n=h(e);if(!i(n,t)){;var a,s;return e,(s=R(n,t))?"value"in s?s.value:(a=s.get)==null?void 0:a.call(e.k):void 0}var o=n[t];return e.I||!r(o)?o:o===A(e.t,t)?(O(e),e.o[t]=L(e.A.h,o,e)):o},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,r){var n=R(h(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var a=A(h(e),t),s=null==a?void 0:a[W];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(l(r,a)&&(void 0!==r||i(e.t,t)))return!0;O(e),M(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==A(e.t,t)||t in e.t?(e.R[t]=!1,O(e),M(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=h(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){e(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){e(12)}},J={};n(K,function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),J.deleteProperty=function(e,t){return!1,J.set.call(this,e,t,void 0)},J.set=function(e,t,r){return!1,K.set.call(this,e[0],t,r,e[0])};var X=new(function(){function n(t){var n=this;this.O=U,this.D=!0,this.produce=function(t,a,i){if("function"==typeof t&&"function"!=typeof a){var s=a;return(a=t),function(e){var t=this;void 0===e&&(e=s);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.produce(e,function(e){var r;return(r=a).call.apply(r,[t,e].concat(i))})}}var o;if("function"!=typeof a&&e(6),void 0!==i&&"function"!=typeof i&&e(7),r(t)){var l=_(n),u=L(n,t,void 0),c=!0;try{o=a(u),c=!1}finally{c?w(l):v(l)}return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return k(l,i),E(e,l)},function(e){throw w(l),e}):(k(l,i),E(o,l))}if(!t||"object"!=typeof t){if(void 0===(o=a(t))&&(o=t),o===$&&(o=void 0),n.D&&m(o,!0),i){var h=[],f=[];g("Patches").M(t,o,h,f),i(h,f)}return o}e(21,t)},this.produceWithPatches=function(e,t){if("function"==typeof e)return function(t){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.produceWithPatches(t,function(t){return e.apply(void 0,[t].concat(a))})};var r,a,i=n.produce(e,t,function(e,t){r=e,a=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,a]}):[i,r,a]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var a=n.prototype;return a.createDraft=function(n){r(n)||e(8),t(n)&&(n=I(n));var a=_(this),i=L(this,n,void 0);return i[W].C=!0,v(a),i},a.finishDraft=function(e,t){var r=(e&&e[W]).A;return k(r,t),E(void 0,r)},a.setAutoFreeze=function(e){this.D=e},a.setUseProxies=function(t){t&&!U&&e(20),this.O=t},a.applyPatches=function(e,r){var n;for(n=r.length-1;n>=0;n--){var a=r[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>-1&&(r=r.slice(n+1));var i=g("Patches").$;return t(e)?i(e,r):this.produce(e,function(e){return i(e,r)})},n}()),Q=(X.produce,X.produceWithPatches.bind(X)),ee=(X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X));X.createDraft.bind(X),X.finishDraft.bind(X)}}).call(__webpack_require__._LM_("immer",{__webpack_exports__,__webpack_require__}))()},122552(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ci:()=>i,DJ:()=>d,US:()=>n,fw:()=>b,mx:()=>o,qH:()=>f,s$:()=>t,s7:()=>a,tz:()=>m,us:()=>l,xS:()=>g,zH:()=>p}),__webpack_require__(891728),__webpack_require__(512986);let e=["January","February","March","April","May","June","July","August","September","October","November","December"];let t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];let r=["J","F","M","A","M","J","J","A","S","O","N","D"];function n(n){switch(n){case"narrow":return[...r];case"short":return[...t];case"long":return[...e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let a=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];let i=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];let s=["M","T","W","T","F","S","S"];function o(e){switch(e){case"narrow":return[...s];case"short":return[...i];case"long":return[...a];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let l=["AM","PM"];let u=["Before Christ","Anno Domini"];let c=["BC","AD"];let h=["B","A"];function f(e){switch(e){case"narrow":return[...h];case"short":return[...c];case"long":return[...u];default:return null}}function m(e){return l[e.hour<12?0:1]}function d(e,t){return o(t)[e.weekday-1]}function p(e,t){return n(t)[e.month-1]}function g(e,t){return f(t)[e.year<0?0:1]}function b(e,t,r="always",n=!1){let a={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]};let i=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&i){let r=e==="days";switch(t){case 1:return r?"tomorrow":`next ${a[e][0]}`;case-1:return r?"yesterday":`last ${a[e][0]}`;case 0:return r?"today":`this ${a[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,o=Math.abs(t),l=o===1,u=a[e],c=n?l?u[1]:u[2]||u[1]:l?a[e][0]:e;return s?`${o} ${c} ago`:`in ${o} ${c}`}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},122587(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;function t(e){var t=!1;return function(){if(t)return;t=!0,e.apply(void 0,arguments)}}var r=__webpack_require__(158647).F,n=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function i(e){if(e)throw e}function s(e){return e.setHeader&&typeof e.abort=="function"}function o(r,n,i,o){o=t(o);var l=!1;r.on("close",function(){l=!0}),e===undefined&&(e=__webpack_require__(490137)),e(r,{readable:n,writable:i},function(e){if(e)return o(e);l=!0,o()});var u=!1;return function(e){return l||u?void 0:(u=!0,s(r))?r.abort():(0,typeof r.destroy=="function")?r.destroy():(0,void o(e||new a("pipe")))}}function l(e){e()}function u(e,t){return e.pipe(t)}function c(e){return!e.length||typeof e[e.length-1]!=="function"?i:(0,e.pop())}module.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=c(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new n("streams");var i;var s=t.map(function(e,r){var n=r<t.length-1;return o(e,n,r>0,function(e){if(!i&&(i=e),e&&s.forEach(l),n)return;s.forEach(l),a(i)})});return t.reduce(u)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},128093(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};module.exports=o;var r=__webpack_require__(387923);var n=__webpack_require__(976199);__webpack_require__(985738)(o,r);{var a=t(n.prototype);for(var i=0;i<a.length;i++){var s=a[i];!o.prototype[s]&&(o.prototype[s]=n.prototype[s])}}function o(e){if(!(this instanceof o))return new o(e);r.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){if(this._writableState.ended)return;e.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined||this._writableState===undefined?!1:(0,this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){if(this._readableState===undefined||this._writableState===undefined)return;this._readableState.destroyed=e,this._writableState.destroyed=e}})}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},138292(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{dO:()=>s,o_:()=>n,wO:()=>i});let e={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"};let t={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]};let r=e.hanidec.replace(/[\[|\]]/g,"").split("");function n(n){let a=parseInt(n,10);if(!isNaN(a))return a;{a="";for(let i=0;i<n.length;i++){let s=n.charCodeAt(i);if(n[i].search(e.hanidec)!==-1)a+=r.indexOf(n[i]);else for(let e in t){let[r,n]=t[e];s>=r&&s<=n&&(a+=s-r)}}return parseInt(a,10)}}let a={};function i(){a={}}function s({numberingSystem:t},r=""){let n=t||"latn";return!a[n]&&(a[n]={}),!a[n][r]&&(a[n][r]=new RegExp(`${e[n]}${r}`)),a[n][r]}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},142282(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Dz:()=>g,FX:()=>h,Ts:()=>b,dg:()=>c,jx:()=>f,rW:()=>p,wV:()=>m});var e=__webpack_require__(705025);let t=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u;let r=/^[-a-z0-9]{3,8}$/u;let n=/^[-_a-zA-Z0-9]{1,32}$/u;let a=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u;let i=/^[-.%a-zA-Z0-9]{1,128}$/u;let s=/^[-a-z0-9]{3,8}$/u;let o=/^[-.%a-zA-Z0-9]{1,128}$/u;let l=/^[-.%a-zA-Z0-9]{1,78}$/u;let u=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u;let c=(0,e.s)("CaipChainId",t);(0,e.s)("CaipNamespace",r),(0,e.s)("CaipReference",n);let h=(0,e.s)("CaipAccountId",a);(0,e.s)("CaipAccountAddress",i),(0,e.s)("CaipAssetNamespace",s),(0,e.s)("CaipAssetReference",o),(0,e.s)("CaipTokenId",l);let f=(0,e.s)("CaipAssetType",u);var m;var d;(0,e.s)("CaipAssetId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u),(0,e.s)("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u),(d=m=m||(m={}))["Bip122"]="bip122",d["Solana"]="solana",d["Stellar"]="stellar",d["Tron"]="tron",d["Eip155"]="eip155",d["Wallet"]="wallet";function p(e){let r=t.exec(e);if(!r?.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:r.groups.namespace,reference:r.groups.reference}}function g(e){let t=a.exec(e);if(!t?.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}function b(e){let t=u.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset type.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},142827(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E8:()=>n,RZ:()=>a,kp:()=>r});var e=__webpack_require__(356583);var t=__webpack_require__(342672);function r(...e){let n=e[0]?.type==="type";let a=Object.assign({},...e.map(({schema:e})=>e));return n?(0,t.NW)(a):(0,t.Ik)(a)}function n(t,r){return new e._k({type:t,schema:null,validator:r})}function a(t){let r;return new e._k({type:"lazy",schema:null,*entries(e,n){r??(r=t()),yield*r.entries(e,n)},validator(e,n){return r??(r=t()),r.validator(e,n)},coercer(e,n){return r??(r=t()),r.coercer(e,n)},refiner(e,n){return r??(r=t()),r.refiner(e,n)}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},144008(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{DW:()=>a,_K:()=>l,el:()=>c});var e=__webpack_require__(908743);var t=__webpack_require__(745085);var r=__webpack_require__(16905);let n=r.f.rpc.internal;function a(e,n="Unspecified error message. This is a bug, please report it."){if(i(e)){let n=e.toString();if((0,t.i5)(r.z,n))return r.z[n].message;if(o(e))return"Unspecified server error."}return n}function i(e){return Number.isInteger(e)}a(n);function s(e){return isObject(e)&&hasProperty(e,"message")&&typeof e.message=="string"&&e.message.length>0?e.message:(0,undefined)}function o(e){return e>=-32099&&e<=-32e3}function l(r){return Array.isArray(r)?r.map(r=>{return(0,e.jU)(r)?r:(0,(0,t.Gv)(r))?u(r):(0,null)}):(0,(0,t.Gv)(r))?u(r):(0,(0,e.jU)(r))?r:(0,null)}function u(t){return Object.getOwnPropertyNames(t).reduce((r,n)=>{let a=t[n];return(0,e.jU)(a)&&(r[n]=a),r},{})}function c(e){return(0,t.Gv)(e)&&(0,t.i5)(e,"cause")&&(0,t.Gv)(e.cause)}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},149890(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t;function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){var t=a(e,"string");return typeof t=="symbol"?t:String(t)}function a(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=__webpack_require__(490137);var s=Symbol("lastResolve");var o=Symbol("lastReject");var l=Symbol("error");var u=Symbol("ended");var c=Symbol("lastPromise");var h=Symbol("handlePromise");var f=Symbol("stream");function m(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(t!==null){var r=e[f].read();r!==null&&(e[c]=null,e[s]=null,e[o]=null,t(m(r,!1)))}}function p(t){e.nextTick(d,t)}function g(e,t){return function(r,n){e.then(function(){if(t[u]){r(m(undefined,!0));return}t[h](r,n)},n)}}var b=Object.getPrototypeOf(function(){});var y=Object.setPrototypeOf((r(t={get stream(){return this[f]},next:function(){var t=this;var r=this[l];if(r!==null)return Promise.reject(r);if(this[u])return Promise.resolve(m(undefined,!0));if(this[f].destroyed)return new Promise(function(r,n){e.nextTick(function(){t[l]?n(t[l]):r(m(undefined,!0))})});var n=this[c];var a;if(n)a=new Promise(g(n,this));else{var i=this[f].read();if(i!==null)return Promise.resolve(m(i,!1));a=new Promise(this[h])}return this[c]=a,a}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e){r(e);return}t(m(undefined,!0))})})}),t),b);module.exports=function(e){var t;var n=Object.create(y,(r(t={},f,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,h,{value:function(e,t){var r=n[f].read();r?(n[c]=null,n[s]=null,n[o]=null,e(m(r,!1))):(n[s]=e,n[o]=t)},writable:!0}),t));return n[c]=null,i(e,function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=n[o];t!==null&&(n[c]=null,n[s]=null,n[o]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[c]=null,n[s]=null,n[o]=null,r(m(undefined,!0))),n[u]=!0}),e.on("readable",p.bind(null,n)),n}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},158647(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function r(r,n,a){function i(e,t,r){return typeof n=="string"?n:(0,n(e,t,r))}!a&&(a=Error);var s=function(t){function r(e,r,n){return t.call(this,i(e,r,n))||this}return e(r,t),r}(a);s.prototype.name=a.name,s.prototype.code=r,t[r]=s}function n(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));{var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:(0,r===2)?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return(typeof r!=="number"&&(r=0),r+t.length>e.length)?!1:(0,e.indexOf(t,r)!==-1)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o;var l;if(typeof t=="string"&&a(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",i(e," argument"))l="The ".concat(e," ").concat(o," ").concat(n(t,"type"));else{var u=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(o," ").concat(n(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.F=t}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},170059(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";exports.read=function(e,t,r,n,a){var i,s;var o=a*8-n-1;var l=(1<<o)-1;var u=l>>1;var c=-7;var h=r?a-1:0;var f=r?-1:1;var m=e[t+h];for(h+=f,i=m&(1<<-c)-1,m>>=-c,c+=o;c>0;i=i*256+e[t+h],h+=f,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=s*256+e[t+h],h+=f,c-=8);if(i===0)i=1-u;else if(i===l)return s?NaN:(m?-1:1)*Infinity;else s=s+Math.pow(2,n),i=i-u;return(m?-1:1)*s*Math.pow(2,i-n)},exports.write=function(e,t,r,n,a,i){var s,o,l;var u=i*8-a-1;var c=(1<<u)-1;var h=c>>1;var f=a===23?5960464477539063e-23-6617444900424222e-39:0;var m=n?0:i-1;var d=n?1:-1;var p=t<0||t===0&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===Infinity?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?t+=f/l:t+=f*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=c?(o=0,s=c):s+h>=1?(o=(t*l-1)*Math.pow(2,a),s=s+h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;e[r+m]=o&255,m+=d,o/=256,a-=8);for(s=s<<a|o,u+=a;u>0;e[r+m]=s&255,m+=d,s/=256,u-=8);e[r+m-d]|=p*128}}}).call(__webpack_require__._LM_("buffer>ieee754",{exports,__webpack_require__}))()},171097(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;var t;t=function(){var e=function(){};var t="undefined";var r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent);var n=["trace","debug","info","warn","error"];var a={};var i=null;function s(e,t){var r=e[t];if(typeof r.bind=="function")return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return(n==="debug"&&(n="log"),typeof console===t)?!1:(0,n==="trace"&&r)?o:(0,console[n]!==undefined)?s(console,n):(0,console.log!==undefined)?s(console,"log"):e}function u(){var r=this.getLevel();for(var a=0;a<n.length;a++){var i=n[a];this[i]=a<r?e:this.methodFactory(i,r,this.name)}if(this.log=this.debug,typeof console===t&&r<this.levels.SILENT)return"No console available for logging"}function c(e){return function(){typeof console!==t&&(u.call(this),this[e].apply(this,arguments))}}function h(e,t,r){return l(e)||c.apply(this,arguments)}function f(e,r){var s=this;var o;var l;var c;var f="loglevel";function m(e){var r=(n[e]||"silent").toUpperCase();if(typeof window===t||!f)return;try{window.localStorage[f]=r;return}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(e){}}function d(){var e;if(typeof window===t||!f)return;try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var r=window.document.cookie;var n=encodeURIComponent(f);var a=r.indexOf(n+"=");a!==-1&&(e=/^([^;]+)/.exec(r.slice(a+n.length+1))[1])}catch(e){}return s.levels[e]===undefined&&(e=undefined),e}function p(){if(typeof window===t||!f)return;try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}function g(e){var t=e;if(typeof t=="string"&&s.levels[t.toUpperCase()]!==undefined&&(t=s.levels[t.toUpperCase()]),typeof t=="number"&&t>=0&&t<=s.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}typeof e=="string"?f+=":"+e:typeof e=="symbol"&&(f=undefined),s.name=e,s.levels={"TRACE":0,"DEBUG":1,"INFO":2,"WARN":3,"ERROR":4,"SILENT":5},s.methodFactory=r||h,s.getLevel=function(){return c!=null?c:(0,l!=null)?l:o},s.setLevel=function(e,t){return c=g(e),t!==!1&&m(c),u.call(s)},s.setDefaultLevel=function(e){l=g(e),!d()&&s.setLevel(e,!1)},s.resetLevel=function(){c=null,p(),u.call(s)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)},s.rebuild=function(){if(i!==s&&(o=g(i.getLevel())),u.call(s),i===s)for(var e in a)a[e].rebuild()},o=g(i?i.getLevel():"WARN");var b=d();b!=null&&(c=g(b)),u.call(s)}(i=new f).getLogger=function(e){if(typeof e!=="symbol"&&typeof e!=="string"||e==="")throw new TypeError("You must supply a name when creating a logger.");var t=a[e];return!t&&(t=a[e]=new f(e,i.methodFactory)),t};var m=typeof window!==t?window.log:undefined;return i.noConflict=function(){return typeof window!==t&&window.log===i&&(window.log=m),i},i.getLoggers=function(){return a},i["default"]=i,i},!0&&(e="function"=="function"?t.call(exports,__webpack_require__,exports,module):t)!==undefined&&(module.exports=e)}}).call(__webpack_require__._LM_("loglevel",{__webpack_require__,exports,module})).bind(exports)()},174638(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>i});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(760184);var n=__webpack_require__(879771);var a=__webpack_require__(676358);let i=(0,t.kp)(a.Tl,(0,e.Ik)({type:(0,n.eu)(a.Z6.Address),value:r.UG}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},177540(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{X:()=>e});let e={READY:"METAMASK_EXTENSION_READY",OPEN_SIDEPANEL:"OPEN_SIDEPANEL",REQUEST_OPEN_SIDEPANEL:"REQUEST_OPEN_SIDEPANEL",OPEN_ROUTE:"METAMASK_OPEN_ROUTE"}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},181531(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t;function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){var t=a(e,"string");return typeof t=="symbol"?t:String(t)}function a(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=__webpack_require__(838926);var s=Symbol("lastResolve");var o=Symbol("lastReject");var l=Symbol("error");var u=Symbol("ended");var c=Symbol("lastPromise");var h=Symbol("handlePromise");var f=Symbol("stream");function m(e,t){return{value:e,done:t}}function d(e){var t=e[s];if(t!==null){var r=e[f].read();r!==null&&(e[c]=null,e[s]=null,e[o]=null,t(m(r,!1)))}}function p(t){e.nextTick(d,t)}function g(e,t){return function(r,n){e.then(function(){if(t[u]){r(m(undefined,!0));return}t[h](r,n)},n)}}var b=Object.getPrototypeOf(function(){});var y=Object.setPrototypeOf((r(t={get stream(){return this[f]},next:function(){var t=this;var r=this[l];if(r!==null)return Promise.reject(r);if(this[u])return Promise.resolve(m(undefined,!0));if(this[f].destroyed)return new Promise(function(r,n){e.nextTick(function(){t[l]?n(t[l]):r(m(undefined,!0))})});var n=this[c];var a;if(n)a=new Promise(g(n,this));else{var i=this[f].read();if(i!==null)return Promise.resolve(m(i,!1));a=new Promise(this[h])}return this[c]=a,a}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){if(e){r(e);return}t(m(undefined,!0))})})}),t),b);module.exports=function(e){var t;var n=Object.create(y,(r(t={},f,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,o,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,h,{value:function(e,t){var r=n[f].read();r?(n[c]=null,n[s]=null,n[o]=null,e(m(r,!1))):(n[s]=e,n[o]=t)},writable:!0}),t));return n[c]=null,i(e,function(e){if(e&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var t=n[o];t!==null&&(n[c]=null,n[s]=null,n[o]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[c]=null,n[s]=null,n[o]=null,r(m(undefined,!0))),n[u]=!0}),e.on("readable",p.bind(null,n)),n}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},186119(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{_g:()=>i,j6:()=>n,s1:()=>a});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(142282);let n=(0,e.YP)((0,t.YO)(r.FX),"Non-EIP-155 Matching Addresses Account ID List",e=>{let t=e.map(e=>(0,r.Dz)(e));return!t.every(({address:e,chain:{namespace:r}})=>e===t[0].address&&r===t[0].chain.namespace)?"All account IDs must have the same address and namespace.":(0,t.some(({chain:{namespace:e}})=>{return e===r.wV.Eip155}))?"All account IDs must have non-EIP-155 namespaces.":(0,!0)});let a=(0,e.YP)(r.dg,"Non-EIP-155 Chain ID",e=>{let{namespace:t}=(0,r.rW)(e);return t===r.wV.Eip155?"Chain ID must not be an EIP-155 chain ID.":(0,!0)});let i=(0,e.YP)(r.jx,"Non-EIP-155 Asset Type",e=>{let{chain:{namespace:t}}=(0,r.Ts)(e);return t===r.wV.Eip155?"Asset type must not be an EIP-155 asset type.":(0,!0)})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},188320(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>t});var e=__webpack_require__(818365);var t;var r;(r=t||(t={}))["Accessibility"]="accessibility",r["Activity"]="activity",r["AddCard"]="add-card",r["AddCircle"]="add-circle",r["AddSquare"]="add-square",r["Add"]="add",r["Ai"]="ai",r["AlternateEmail"]="alternate-email",r["Apple"]="apple",r["Apps"]="apps",r["Arrow2Down"]="arrow-2-down",r["Arrow2Left"]="arrow-2-left",r["Arrow2Right"]="arrow-2-right",r["Arrow2UpRight"]="arrow-2-up-right",r["Arrow2Up"]="arrow-2-up",r["ArrowCircleDown"]="arrow-circle-down",r["ArrowCircleUp"]="arrow-circle-up",r["ArrowDoubleLeft"]="arrow-double-left",r["ArrowDoubleRight"]="arrow-double-right",r["ArrowDown"]="arrow-down",r["ArrowDropDownCircle"]="arrow-drop-down-circle",r["ArrowLeft"]="arrow-left",r["ArrowRight"]="arrow-right",r["ArrowUp"]="arrow-up",r["Attachment"]="attachment",r["Ban"]="ban",r["BankAssured"]="bank-assured",r["Bank"]="bank",r["Bold"]="bold",r["Book"]="book",r["Bookmark"]="bookmark",r["Bridge"]="bridge",r["Briefcase"]="briefcase",r["Bulb"]="bulb",r["BuySell"]="buy-sell",r["Cake"]="cake",r["Calculator"]="calculator",r["Calendar"]="calendar",r["Call"]="call",r["Camera"]="camera",r["Campaign"]="campaign",r["CardPos"]="card-pos",r["Card"]="card",r["Cash"]="cash",r["Category"]="category",r["Chart"]="chart",r["CheckBold"]="check-bold",r["Check"]="check",r["CircleX"]="circle-x",r["ClockFilled"]="clock-filled",r["Clock"]="clock",r["Close"]="close",r["CloudDownload"]="cloud-download",r["CloudUpload"]="cloud-upload",r["Cloud"]="cloud",r["CodeCircle"]="code-circle",r["Code"]="code",r["Coin"]="coin",r["Collapse"]="collapse",r["Confirmation"]="confirmation",r["Connect"]="connect",r["CopySuccess"]="copy-success",r["Copy"]="copy",r["CreditCheck"]="credit-check",r["CurrencyFranc"]="currency-franc",r["CurrencyLira"]="currency-lira",r["CurrencyPound"]="currency-pound",r["CurrencyYuan"]="currency-yuan",r["Customize"]="customize",r["Danger"]="danger",r["DarkFilled"]="dark-filled",r["Dark"]="dark",r["Data"]="data",r["Description"]="description",r["Details"]="details",r["Diagram"]="diagram",r["DocumentCode"]="document-code",r["Download"]="download",r["Draft"]="draft",r["EcoLeaf"]="eco-leaf",r["EditSquare"]="edit-square",r["Edit"]="edit",r["EncryptedAdd"]="encrypted-add",r["Eraser"]="eraser",r["Error"]="error",r["Ethereum"]="ethereum",r["Exchange"]="exchange",r["ExpandVertical"]="expand-vertical",r["Expand"]="expand",r["ExploreFilled"]="explore-filled",r["Explore"]="explore",r["Export"]="export",r["Extension"]="extension",r["EyeSlash"]="eye-slash",r["Eye"]="eye",r["FaceId"]="face-id",r["Feedback"]="feedback",r["File"]="file",r["Filter"]="filter",r["Fingerprint"]="fingerprint",r["Fire"]="fire",r["FirstPage"]="first-page",r["Flag"]="flag",r["FlashSlash"]="flash-slash",r["Flash"]="flash",r["Flask"]="flask",r["Flower"]="flower",r["Folder"]="folder",r["Forest"]="forest",r["FullCircle"]="full-circle",r["Gas"]="gas",r["Gift"]="gift",r["GlobalSearch"]="global-search",r["Global"]="global",r["Graph"]="graph",r["Hardware"]="hardware",r["HashTag"]="hash-tag",r["HeartFilled"]="heart-filled",r["Heart"]="heart",r["Hierarchy"]="hierarchy",r["HomeFilled"]="home-filled",r["Home"]="home",r["Image"]="image",r["Info"]="info",r["Inventory"]="inventory",r["Joystick"]="joystick",r["KeepFilled"]="keep-filled",r["Keep"]="keep",r["Key"]="key",r["LastPage"]="last-page",r["LightFilled"]="light-filled",r["Light"]="light",r["Link"]="link",r["Loading"]="loading",r["Location"]="location",r["LockSlash"]="lock-slash",r["Lock"]="lock",r["LockedFilled"]="locked-filled",r["Login"]="login",r["Logout"]="logout",r["Mail"]="mail",r["Map"]="map",r["Menu"]="menu",r["MessageQuestion"]="message-question",r["Messages"]="messages",r["Mic"]="mic",r["MinusBold"]="minus-bold",r["MinusSquare"]="minus-square",r["Minus"]="minus",r["Mobile"]="mobile",r["MoneyBag"]="money-bag",r["Money"]="money",r["Monitor"]="monitor",r["MoreHorizontal"]="more-horizontal",r["MoreVertical"]="more-vertical",r["MountainFlag"]="mountain-flag",r["MusicNote"]="music-note",r["Notification"]="notification",r["PageInfo"]="page-info",r["Palette"]="palette",r["PasswordCheck"]="password-check",r["Pending"]="pending",r["People"]="people",r["PersonCancel"]="person-cancel",r["Pin"]="pin",r["Plant"]="plant",r["Plug"]="plug",r["PlusAndMinus"]="plus-and-minus",r["PolicyAlert"]="policy-alert",r["Print"]="print",r["PriorityHigh"]="priority-high",r["PrivacyTip"]="privacy-tip",r["ProgrammingArrows"]="programming-arrows",r["Publish"]="publish",r["QrCode"]="qr-code",r["Question"]="question",r["Receive"]="receive",r["Received"]="received",r["Refresh"]="refresh",r["RemoveMinus"]="remove-minus",r["Report"]="report",r["Rocket"]="rocket",r["SaveFilled"]="save-filled",r["Save"]="save",r["Saving"]="saving",r["ScanBarcode"]="scan-barcode",r["ScanFocus"]="scan-focus",r["Scan"]="scan",r["Search"]="search",r["SecurityAlert"]="security-alert",r["SecurityCross"]="security-cross",r["SecurityKey"]="security-key",r["SecuritySearch"]="security-search",r["SecuritySlash"]="security-slash",r["SecurityTick"]="security-tick",r["SecurityTime"]="security-time",r["SecurityUser"]="security-user",r["Security"]="security",r["Send"]="send",r["SentimentDissatisfied"]="sentiment-dissatisfied",r["SentimentNeutral"]="sentiment-neutral",r["SentimentSatisfied"]="sentiment-satisfied",r["SentimentVerySatisfied"]="sentiment-very-satisfied",r["SettingFilled"]="setting-filled",r["Setting"]="setting",r["Share"]="share",r["ShieldLock"]="shield-lock",r["ShoppingBag"]="shopping-bag",r["ShoppingCart"]="shopping-cart",r["SignalCellular"]="signal-cellular",r["Slash"]="slash",r["Sms"]="sms",r["SnapsMobile"]="snaps-mobile",r["SnapsPlus"]="snaps-plus",r["SnapsRound"]="snaps-round",r["Snaps"]="snaps",r["SortByAlpha"]="sort-by-alpha",r["Sort"]="sort",r["Sparkle"]="sparkle",r["Speed"]="speed",r["Speedometer"]="speedometer",r["Square"]="square",r["Stake"]="stake",r["StarFilled"]="star-filled",r["Star"]="star",r["Start"]="start",r["Storefront"]="storefront",r["Student"]="student",r["SwapHorizontal"]="swap-horizontal",r["SwapVertical"]="swap-vertical",r["TabClose"]="tab-close",r["TableRow"]="table-row",r["Tablet"]="tablet",r["Tag"]="tag",r["ThumbDownFilled"]="thumb-down-filled",r["ThumbDown"]="thumb-down",r["ThumbUpFilled"]="thumb-up-filled",r["ThumbUp"]="thumb-up",r["Tint"]="tint",r["Tooltip"]="tooltip",r["Translate"]="translate",r["Trash"]="trash",r["TrendDown"]="trend-down",r["TrendUp"]="trend-up",r["TriangleUp"]="triangle-up",r["TriangleDown"]="triangle-down",r["Undo"]="undo",r["Unfold"]="unfold",r["UnlockedFilled"]="unlocked-filled",r["Unpin"]="unpin",r["UploadFile"]="upload-file",r["Upload"]="upload",r["Usb"]="usb",r["UserCheck"]="user-check",r["UserCircleAdd"]="user-circle-add",r["UserCircleRemove"]="user-circle-remove",r["UserCircle"]="user-circle",r["User"]="user",r["VerifiedFilled"]="verified-filled",r["Verified"]="verified",r["Videocam"]="videocam",r["ViewColumn"]="view-column",r["ViewInAr"]="view-in-ar",r["VolumeOff"]="volume-off",r["VolumeUp"]="volume-up",r["WalletFilled"]="wallet-filled",r["Wallet"]="wallet",r["Warning"]="warning",r["WebTraffic"]="web-traffic",r["Widgets"]="widgets",r["WifiOff"]="wifi-off",r["Wifi"]="wifi",r["X"]="x",(0,e.K)("Icon")}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},194535(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=globalThis.AbortController||__webpack_require__(581808).AbortController;let{codes:{ERR_INVALID_ARG_VALUE:t,ERR_INVALID_ARG_TYPE:r,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:a},AbortError:i}=__webpack_require__(868387);let{validateAbortSignal:s,validateInteger:o,validateObject:l}=__webpack_require__(827525);let u=__webpack_require__(708566).Symbol("kWeak");let c=__webpack_require__(708566).Symbol("kResistStopPropagation");let{finished:h}=__webpack_require__(816718);let f=__webpack_require__(613318);let{addAbortSignalNoValidate:m}=__webpack_require__(452547);let{isWritable:d,isNodeStream:p}=__webpack_require__(831171);let{deprecate:g}=__webpack_require__(769584);let{ArrayPrototypePush:b,Boolean:y,MathFloor:k,Number:w,NumberIsNaN:v,Promise:_,PromiseReject:S,PromiseResolve:E,PromisePrototypeThen:j,Symbol:T}=__webpack_require__(708566);let x=T("kEmpty");let A=T("kEof");function R(e,r){if(r!=null&&l(r,"options"),(r===null||r===undefined?undefined:r.signal)!=null&&s(r.signal,"options.signal"),p(e)&&!d(e))throw new t("stream",e,"must be writable");let n=f(this,e);return r!==null&&r!==undefined&&r.signal&&m(r.signal,n),n}function M(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&s(t.signal,"options.signal");let n=1;(t===null||t===undefined?undefined:t.concurrency)!=null&&(n=k(t.concurrency));let a=n-1;return(t===null||t===undefined?undefined:t.highWaterMark)!=null&&(a=k(t.highWaterMark)),o(n,"options.concurrency",1),o(a,"options.highWaterMark",0),a+=n,(async function*(){let r=__webpack_require__(769584).AbortSignalAny([t===null||t===undefined?undefined:t.signal].filter(y));let s=this;let o=[];let l={signal:r};let u;let c;let h=!1;let f=0;function m(){h=!0,d()}function d(){f-=1,p()}function p(){c&&!h&&f<n&&o.length<a&&(c(),c=null)}!async function(){try{for await(let t of s){if(h)return;if(r.aborted)throw new i;try{if((t=e(t,l))===x)continue;t=E(t)}catch(e){t=S(e)}f+=1,j(t,d,m),o.push(t),u&&(u(),u=null),!h&&(o.length>=a||f>=n)&&await new _(e=>{c=e})}o.push(A)}catch(t){let e=S(t);j(e,d,m),o.push(e)}finally{h=!0,u&&(u(),u=null)}}();try{while(!0){while(o.length>0){let e=await o[0];if(e===A)return;if(r.aborted)throw new i;e!==x&&(yield e),o.shift(),p()}await new _(e=>{u=e})}}finally{h=!0,c&&(c(),c=null)}}).call(this)}function O(e=undefined){return e!=null&&l(e,"options"),(e===null||e===undefined?undefined:e.signal)!=null&&s(e.signal,"options.signal"),(async function*(){let t=0;for await(let n of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted)throw new i({cause:e.signal.reason});yield[t++,n]}}).call(this)}async function L(e,t=undefined){for await(let r of P.call(this,e,t))return!0;return!1}async function I(e,t=undefined){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);return!await L.call(this,async(...t)=>{return!await e(...t)},t)}async function C(e,t){for await(let r of P.call(this,e,t))return r;return undefined}async function N(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);async function n(t,r){return await e(t,r),x}for await(let e of M.call(this,n,t));}function P(e,t){if(typeof e!=="function")throw new r("fn",["Function","AsyncFunction"],e);async function n(t,r){return await e(t,r)?t:(0,x)}return M.call(this,n,t)}class D extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function B(t,n,a){var o;if(typeof t!=="function")throw new r("reducer",["Function","AsyncFunction"],t);a!=null&&l(a,"options"),(a===null||a===undefined?undefined:a.signal)!=null&&s(a.signal,"options.signal");let f=arguments.length>1;if(a!==null&&a!==undefined&&(o=a.signal)!==null&&o!==undefined&&o.aborted){let e=new i(undefined,{cause:a.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(e)),e}let m=new e;let d=m.signal;a!==null&&a!==undefined&&a.signal&&a.signal.addEventListener("abort",()=>m.abort(),{once:!0,[u]:this,[c]:!0});let p=!1;try{for await(let e of this){var g;if(p=!0,a!==null&&a!==undefined&&(g=a.signal)!==null&&g!==undefined&&g.aborted)throw new i;f?n=await t(n,e,{signal:d}):(n=e,f=!0)}if(!p&&!f)throw new D}finally{m.abort()}return n}async function F(e){e!=null&&l(e,"options"),(e===null||e===undefined?undefined:e.signal)!=null&&s(e.signal,"options.signal");let t=[];for await(let n of this){var r;if(e!==null&&e!==undefined&&(r=e.signal)!==null&&r!==undefined&&r.aborted)throw new i(undefined,{cause:e.signal.reason});b(t,n)}return t}function q(e,t){let r=M.call(this,e,t);return(async function*(){for await(let e of r)yield*e}).call(this)}function U(e){if(v(e=w(e)))return 0;if(e<0)throw new a("number",">= 0",e);return e}function $(e,t=undefined){return t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&s(t.signal,"options.signal"),e=U(e),(async function*(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted)throw new i;for await(let r of this){var n;if(t!==null&&t!==undefined&&(n=t.signal)!==null&&n!==undefined&&n.aborted)throw new i;e--<=0&&(yield r)}}).call(this)}function z(e,t=undefined){return t!=null&&l(t,"options"),(t===null||t===undefined?undefined:t.signal)!=null&&s(t.signal,"options.signal"),e=U(e),(async function*(){var r;if(t!==null&&t!==undefined&&(r=t.signal)!==null&&r!==undefined&&r.aborted)throw new i;for await(let r of this){var n;if(t!==null&&t!==undefined&&(n=t.signal)!==null&&n!==undefined&&n.aborted)throw new i;if(e-- >0&&(yield r),e<=0)return}}).call(this)}module.exports.streamReturningOperators={asIndexedPairs:g(O,"readable.asIndexedPairs will be removed in a future version."),drop:$,filter:P,flatMap:q,map:M,take:z,compose:R},module.exports.promiseReturningOperators={every:I,forEach:N,reduce:B,toArray:F,some:L,find:C}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},201783(){},208554(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>c});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(174638);var n=__webpack_require__(861913);var a=__webpack_require__(955187);var i=__webpack_require__(879771);var s=__webpack_require__(676358);var o;var l;(l=o||(o={}))["Default"]="default",l["Critical"]="critical",l["Warning"]="warning";let u=(0,e.KC)([n.x,a.z,r.A]);let c=(0,t.kp)(s.Tl,(0,e.Ik)({type:(0,i.eu)(s.Z6.Row),variant:(0,e.lq)((0,e.KC)([(0,i.$9)(o.Default),(0,i.$9)(o.Critical),(0,i.$9)(o.Warning)])),label:(0,e.Yj)(),value:u}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},210164(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J5:()=>H,QE:()=>Z,_E:()=>Q,a8:()=>G,lA:()=>W,rB:()=>V});var e=__webpack_require__(512986);var t=__webpack_require__(122552);var r=__webpack_require__(774810);var n=__webpack_require__(750628);let a=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function i(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function s(...e){return t=>e.reduce(([e,r,n],a)=>{let[i,s,o]=a(t,n);return[{...e,...i},s||r,o]},[{},null,1]).slice(0,2)}function o(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let t=r.exec(e);if(t)return n(t)}return[null,null]}function l(...t){return(r,n)=>{let a={};let i;for(i=0;i<t.length;i++)a[t[i]]=(0,e.cG)(r[n+i]);return[a,null,n+i]}}let u=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/;let c=`(?:${u.source}?(?:\\[(${a.source})\\])?)?`;let h=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/;let f=RegExp(`${h.source}${c}`);let m=RegExp(`(?:T${f.source})?`);let d=l("weekYear","weekNumber","weekDay");let p=l("year","ordinal");let g=RegExp(`${h.source} ?(?:${u.source}|(${a.source}))?`);let b=RegExp(`(?: ${g.source})?`);function y(t,r,n){let a=t[r];return(0,e.b0)(a)?n:(0,e.cG)(a)}function k(e,t){return[{year:y(e,t),month:y(e,t+1,1),day:y(e,t+2,1)},null,t+3]}function w(t,r){return[{hours:y(t,r,0),minutes:y(t,r+1,0),seconds:y(t,r+2,0),milliseconds:(0,e.m3)(t[r+3])},null,r+4]}function v(t,n){let a=!t[n]&&!t[n+1],i=(0,e.gu)(t[n+1],t[n+2]);return[{},a?null:r.A.instance(i),n+3]}function _(e,t){return[{},e[t]?n.A.create(e[t]):null,t+1]}let S=RegExp(`^T?${h.source}$`);let E=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function j(t){let[r,n,a,i,s,o,l,u,c]=t;let h=r[0]==="-";let f=u&&u[0]==="-";let m=(e,t=!1)=>e!==undefined&&(t||e&&h)?-e:e;return[{years:m((0,e.mp)(n)),months:m((0,e.mp)(a)),weeks:m((0,e.mp)(i)),days:m((0,e.mp)(s)),hours:m((0,e.mp)(o)),minutes:m((0,e.mp)(l)),seconds:m((0,e.mp)(u),u==="-0"),milliseconds:m((0,e.m3)(c),f)}]}let T={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function x(r,n,a,i,s,o,l){let u={year:n.length===2?(0,e.fT)((0,e.cG)(n)):(0,e.cG)(n),month:t.s$.indexOf(a)+1,day:(0,e.cG)(i),hour:(0,e.cG)(s),minute:(0,e.cG)(o)};return l&&(u.second=(0,e.cG)(l)),r&&(u.weekday=r.length>3?t.s7.indexOf(r)+1:t.Ci.indexOf(r)+1),u}let A=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function R(t){let[,n,a,i,s,o,l,u,c,h,f,m]=t,d=x(n,s,i,a,o,l,u);let p;return p=c?T[c]:h?0:(0,e.gu)(f,m),[d,new r.A(p)]}function M(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}let O=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,L=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,I=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function C(e){let[,t,n,a,i,s,o,l]=e;return[x(t,i,a,n,s,o,l),r.A.utcInstance]}function N(e){let[,t,n,a,i,s,o,l]=e;return[x(t,l,n,a,i,s,o),r.A.utcInstance]}let P=i(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,m);let D=i(/(\d{4})-?W(\d\d)(?:-?(\d))?/,m);let B=i(/(\d{4})-?(\d{3})/,m);let F=i(f);let q=s(k,w,v,_);let U=s(d,w,v,_);let $=s(p,w,v,_);let z=s(w,v,_);function W(e){return o(e,[P,q],[D,U],[B,$],[F,z])}function H(e){return o(M(e),[A,R])}function G(e){return o(e,[O,C],[L,C],[I,N])}function V(e){return o(e,[E,j])}let Y=s(w);function Z(e){return o(e,[S,Y])}let K=i(/(\d{4})-(\d\d)-(\d\d)/,b);let J=i(g);let X=s(w,v,_);function Q(e){return o(e,[K,q],[J,X])}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},232712(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{q:()=>s});var e=__webpack_require__(835203);var t=__webpack_require__(750628);var r=__webpack_require__(774810);var n=__webpack_require__(948972);var a=__webpack_require__(512986);var i=__webpack_require__(597054);function s(s,o){if((0,a.b0)(s)||s===null)return o;if(s instanceof e.A)return s;if((0,a.Kg)(s)){let e=s.toLowerCase();return e==="default"?o:(0,e==="local"||e==="system")?i.A.instance:(0,e==="utc"||e==="gmt")?r.A.utcInstance:r.A.parseSpecifier(e)||t.A.create(s)}if((0,a.Et)(s))return r.A.instance(s);if(typeof s=="object"&&"offset"in s&&typeof s.offset=="function")return s;else return new n.A(s)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},241361(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;var t;__webpack_require__.d(__webpack_exports__,{eZ:()=>e}),(t=e||(e={}))["RestrictedMethod"]="RestrictedMethod",t["Endowment"]="Endowment"}}).call(__webpack_require__._LM_("@metamask/permission-controller",{__webpack_exports__,__webpack_require__}))()},244231(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return t(e)&&typeof e[Symbol.iterator]=="function"}function t(e){return typeof e=="object"&&e!==null}function r(e){return typeof e=="symbol"?e.toString():(0,typeof e=="string"?JSON.stringify(e):`${e}`)}function n(e){let{done:t,value:r}=e.next();return t?undefined:r}function a(e,t,n,a){if(e===!0)return undefined;e===!1?e={}:typeof e=="string"&&(e={message:e});let{path:i,branch:s}=t;let{type:o}=n;let{refinement:l,message:u=`Expected a value of type \`${o}\`${l?` with refinement \`${l}\``:""}, but received: \`${r(a)}\``}=e;return{value:a,type:o,refinement:l,key:i[i.length-1],path:i,branch:s,...e,message:u}}function*i(t,r,n,i){for(let s of(!e(t)&&(t=[t]),t)){let e=a(s,r,n,i);e&&(yield e)}}function*s(e,r,n={}){let{path:a=[],branch:i=[e],coerce:o=!1,mask:l=!1}=n;let u={path:a,branch:i};if(o){if(e=r.coercer(e,u),l&&r.type!=="type"&&t(r.schema)&&t(e)&&!Array.isArray(e))for(let t in e)r.schema[t]===undefined&&delete e[t]}let c="valid";for(let t of r.validator(e,u))t.explanation=n.message,c="not_valid",yield[t,undefined];for(let[h,f,m]of r.entries(e,u))for(let r of s(f,m,{path:h===undefined?a:[...a,h],branch:h===undefined?i:[...i,f],coerce:o,mask:l,message:n.message}))r[0]?(c=r[0].refinement===null||r[0].refinement===undefined?"not_valid":"not_refined",yield[r[0],undefined]):o&&(f=r[1],h===undefined?e=f:e instanceof Map?e.set(h,f):e instanceof Set?e.add(f):t(e)&&(f!==undefined||h in e)&&(e[h]=f));if(c!=="not_valid")for(let t of r.refiner(e,u))t.explanation=n.message,c="not_refined",yield[t,undefined];c==="valid"&&(yield[undefined,e])}__webpack_require__.d(__webpack_exports__,{Gv:()=>t,RF:()=>i,eF:()=>s,jT:()=>n,yy:()=>r})}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_exports__,__webpack_require__}))()},252334(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(632914);let t=__webpack_require__(294855);let r=e.Readable.destroy;module.exports=e.Readable,module.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,module.exports._isUint8Array=e._isUint8Array,module.exports.isDisturbed=e.isDisturbed,module.exports.isErrored=e.isErrored,module.exports.isReadable=e.isReadable,module.exports.Readable=e.Readable,module.exports.Writable=e.Writable,module.exports.Duplex=e.Duplex,module.exports.Transform=e.Transform,module.exports.PassThrough=e.PassThrough,module.exports.addAbortSignal=e.addAbortSignal,module.exports.finished=e.finished,module.exports.destroy=e.destroy,module.exports.destroy=r,module.exports.pipeline=e.pipeline,module.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),module.exports.Stream=e.Stream,module.exports["default"]=module.exports}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},252859(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{MathFloor:e,NumberIsInteger:t}=__webpack_require__(708566);let{validateInteger:r}=__webpack_require__(827525);let{ERR_INVALID_ARG_VALUE:n}=__webpack_require__(868387).codes;let a=16*1024;let i=16;function s(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function o(e){return e?i:a}module.exports={getHighWaterMark:function(r,a,i,l){let u=s(a,l,i);if(u!=null){if(!t(u)||u<0)throw new n(l?`options.${i}`:"options.highWaterMark",u);return e(u)}return o(r.objectMode)},getDefaultHighWaterMark:o,setDefaultHighWaterMark:function(e,t){r(t,"value",0),e?i=t:a=t}}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},258565(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=function(){throw new Error("Readable.from is not available in the browser")}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},283079(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toFrames=s;let e=0|0;function t(){return e=e+1&0x7fffffff}let r=1e3/60/2;let n=globalThis.scheduler?.yield?globalThis.scheduler.yield.bind(globalThis.scheduler):async()=>await new Promise(e=>setTimeout(e,0));function a(e){return e<=127?1:(0,e<=2047)?2:(0,e<=65535)?3:(0,4)}function i(e,t,r){let n=2;let i=t;while(i<e.length){let t=n;let s=e.codePointAt(i);let o=s>65535?2:1;if(s===34||s===92?n+=2:n+=a(s),n>r){n=t;break}i+=o}return i}async function*s(e,a){let s=performance.now();let o=JSON.stringify(e);let l=o.length;let u=t();let c=0;let h=0;do{performance.now()-s>=r&&(await n(),s=performance.now());let e=`${u}|${h}|`;let t=a-(e.length+1);let f;let m=(f=(l-c)*3+2<=t?l:i(o,c,t))===l?1:0;let d=`${e}${m}${o.slice(c,f)}`;yield d,c=f,h++}while(c<l)}}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},294855(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayPrototypePop:e,Promise:t}=__webpack_require__(708566);let{isIterable:r,isNodeStream:n,isWebStream:a}=__webpack_require__(831171);let{pipelineImpl:i}=__webpack_require__(425934);let{finished:s}=__webpack_require__(816718);__webpack_require__(632914),module.exports={finished:s,pipeline:function(...s){return new t((t,o)=>{let l;let u;let c=s[s.length-1];if(c&&typeof c=="object"&&!n(c)&&!r(c)&&!a(c)){let t=e(s);l=t.signal,u=t.end}i(s,(e,r)=>{e?o(e):t(r)},{signal:l,end:u})})}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},299150(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Cg:()=>s,zM:()=>o});var e=__webpack_require__(598640);var t=__webpack_require__.n(e);var r=__webpack_require__(413279);var n=__webpack_require__.n(r);var a=__webpack_require__(171097);__webpack_require__.n(a),__webpack_require__(796213);var i=__webpack_require__(311734);function s(){let{lastError:e}=n().runtime;return!e?undefined:(0,"stack"in e&&e.stack&&e.message)?e:(0,new Error(e.message))}function o(e=t().getParser(window.navigator.userAgent)){return(e.satisfies(i.tT)&&!e.satisfies(i.SC))??!1}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},304208(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function r(r,n,a){function i(e,t,r){return typeof n=="string"?n:(0,n(e,t,r))}!a&&(a=Error);var s=function(t){function r(e,r,n){return t.call(this,i(e,r,n))||this}return e(r,t),r}(a);s.prototype.name=a.name,s.prototype.code=r,t[r]=s}function n(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));{var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:(0,r===2)?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}}function a(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i(e,t,r){return(r===undefined||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function s(e,t,r){return(typeof r!=="number"&&(r=0),r+t.length>e.length)?!1:(0,e.indexOf(t,r)!==-1)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){var o;var l;if(typeof t=="string"&&a(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",i(e," argument"))l="The ".concat(e," ").concat(o," ").concat(n(t,"type"));else{var u=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(o," ").concat(n(t,"type"))}return l+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),module.exports.F=t}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},307059(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{OJ:()=>n,bL:()=>i});var e=__webpack_require__(356583);var t=__webpack_require__(244231);let r=Symbol.for("superstruct.sensitive");function n(e){return Object.prototype.hasOwnProperty.call(e,r)}function a(e,t){let r={...e};for(let e of t)e in r&&(r[e]="***");return r}function i(r,n,s){function*o(e){for(let r of e){if(!(0,t.Gv)(n)){yield r;continue}let e=r.branch.indexOf(n);if(e===-1){yield r;continue}let i=[...r.branch];i[e]=a(n,s);for(let n=e-1;n>=0;n--){let e=i[n];if(!(0,t.Gv)(e))break;let a=r.branch[n+1];let s=i[n+1];if(Array.isArray(e)){let t=e.indexOf(a);if(t===-1)break;let r=[...e];r[t]=s,i[n]=r}else if(e instanceof Map){let t=!1;let r;for(let[n,i]of e)if(i===a){r=n,t=!0;break}if(!t)break;let o=new Map(e);o.set(r,s),i[n]=o}else{let t=Object.keys(e).find(t=>e[t]===a);if(t===undefined)break;i[n]={...e,[t]:s}}}yield{...r,branch:i}}}return new e._k({...r,validator(e,t){return o(r.validator(e,t))},refiner(e,t){return o(r.refiner(e,t))},*entries(e,t){for(let a of r.entries(e,t)){let[e,t,r]=a;yield[e,t,i(r,n,s)]}}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},311734(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{SC:()=>r,tT:()=>t});var e=__webpack_require__(378831);e.A.CONTRACT_ADDRESS_WARNING,e.A.TRANSACTION_SHIELD,e.A.FIND_TRANSACTION_HASH,e.A.METAMETRICS_SETTINGS;let t={chrome:">=113",edge:">=113"};let r={windows:{chrome:">=120",edge:">=120"},macos:{chrome:">=120",edge:">=120"},chrome:">=121",edge:">=121"}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},317588(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>u});var e=__webpack_require__(835060);var t=__webpack_require__(600473);var r=__webpack_require__(603476);var n=__webpack_require__(695358);var a=__webpack_require__(14631);var i=__webpack_require__(868766);var s=__webpack_require__(891728);let o="Invalid Interval";function l(e,t){return!e||!e.isValid?u.invalid("missing or invalid start"):(0,!t||!t.isValid)?u.invalid("missing or invalid end"):(0,t<e)?u.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):(0,null)}class u{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new n.Di("need to specify a reason the Interval is invalid");let i=e instanceof a.A?e:new a.A(e,t);if(!r.A.throwOnInvalid)return new u({invalid:i});throw new n.hq(i)}static fromDateTimes(t,r){let n=(0,e.R)(t),a=(0,e.R)(r);let i=l(n,a);return i==null?new u({start:n,end:a}):(0,i)}static after(r,n){let a=t.Ay.fromDurationLike(n),i=(0,e.R)(r);return u.fromDateTimes(i,i.plus(a))}static before(r,n){let a=t.Ay.fromDurationLike(n),i=(0,e.R)(r);return u.fromDateTimes(i.minus(a),i)}static fromISO(r,n){let[a,i]=(r||"").split("/",2);if(a&&i){let r,s;try{s=(r=e.A.fromISO(a,n)).isValid}catch(e){s=!1}let o,l;try{l=(o=e.A.fromISO(i,n)).isValid}catch(e){l=!1}if(s&&l)return u.fromDateTimes(r,o);if(s){let e=t.Ay.fromISO(i,n);if(e.isValid)return u.after(r,e)}else if(l){let e=t.Ay.fromISO(a,n);if(e.isValid)return u.before(o,e)}}return u.invalid("unparsable",`the input "${r}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(...[e]).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let r=this.start.startOf(e,t);let n;return Math.floor((n=(n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end).startOf(e,t)).diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!this.isValid?!1:(0,this.s>e)}isBefore(e){return!this.isValid?!1:(0,this.e<=e)}contains(e){return!this.isValid?!1:(0,this.s<=e&&this.e>e)}set({start:e,end:t}={}){return!this.isValid?this:(0,u.fromDateTimes(e||this.s,t||this.e))}splitAt(...t){if(!this.isValid)return[];let r=t.map(e.R).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),n=[];let{s:a}=this,i=0;while(a<this.e){let e=r[i]||this.e,t=+e>+this.e?this.e:e;n.push(u.fromDateTimes(a,t)),a=t,i+=1}return n}splitBy(e){let r=t.Ay.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,a=1,i;let s=[];while(n<this.e){let e=this.start.plus(r.mapUnits(e=>e*a));i=+e>+this.e?this.e:e,s.push(u.fromDateTimes(n,i)),n=i,a+=1}return s}divideEqually(e){return!this.isValid?[]:(0,this.splitBy(this.length()/e).slice(0,e))}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!this.isValid?!1:(0,+this.e==+e.s)}abutsEnd(e){return!this.isValid?!1:(0,+e.e==+this.s)}engulfs(e){return!this.isValid?!1:(0,this.s<=e.s&&this.e>=e.e)}equals(e){return!this.isValid||!e.isValid?!1:(0,this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:(0,u.fromDateTimes(t,r))}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return u.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>{return!t?[e,r]:(0,t.overlaps(r)||t.abutsStart(r))?[e,t.union(r)]:[e.concat([t]),r]},[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;let n=[],a=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...a).sort((e,t)=>e.time-t.time))(r+=e.type==="s"?1:-1)===1?t=e.time:(t&&+t!==+e.time&&n.push(u.fromDateTimes(t,e.time)),t=null);return u.merge(n)}difference(...e){return u.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return!this.isValid?o:(0,`[${this.s.toISO()} – ${this.e.toISO()})`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:(0,`Interval { Invalid, reason: ${this.invalidReason} }`)}toLocaleString(e=s.aY,t={}){return this.isValid?i.A.create(this.s.loc.clone(t),e).formatInterval(this):o}toISO(e){return!this.isValid?o:(0,`${this.s.toISO(e)}/${this.e.toISO(e)}`)}toISODate(){return!this.isValid?o:(0,`${this.s.toISODate()}/${this.e.toISODate()}`)}toISOTime(e){return!this.isValid?o:(0,`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`)}toFormat(e,{separator:t=" – "}={}){return!this.isValid?o:(0,`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`)}toDuration(e,r){return!this.isValid?t.Ay.invalid(this.invalidReason):(0,this.e.diff(this.s,e,r))}mapEndpoints(e){return u.fromDateTimes(e(this.s),e(this.e))}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},335562(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{y:()=>s});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);var a;var i;(i=a||(a={}))["Text"]="text",i["Number"]="number",i["Password"]="password";let s=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Input),value:(0,e.lq)((0,e.Yj)()),name:(0,e.Yj)(),inputType:(0,e.lq)((0,e.KC)([(0,r.$9)(a.Text),(0,r.$9)(a.Password),(0,r.$9)(a.Number)])),placeholder:(0,e.lq)((0,e.Yj)()),label:(0,e.lq)((0,e.Yj)()),error:(0,e.lq)((0,e.Yj)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},338568(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{aggregateTwoErrors:t,codes:{ERR_MULTIPLE_CALLBACK:r},AbortError:n}=__webpack_require__(868387);let{Symbol:a}=__webpack_require__(708566);let{kIsDestroyed:i,isDestroyed:s,isFinished:o,isServerRequest:l}=__webpack_require__(831171);let u=a("kDestroy");let c=a("kConstruct");function h(e,t,r){e&&(e.stack,t&&!t.errored&&(t.errored=e),r&&!r.errored&&(r.errored=e))}function f(t,r,n){let a=!1;function i(r){if(a)return;a=!0;let i=t._readableState;let s=t._writableState;h(r,s,i),s&&(s.closed=!0),i&&(i.closed=!0),typeof n=="function"&&n(r),r?e.nextTick(m,t,r):e.nextTick(d,t)}try{t._destroy(r||null,i)}catch(e){i(e)}}function m(e,t){p(e,t),d(e)}function d(e){let t=e._readableState;let r=e._writableState;r&&(r.closeEmitted=!0),t&&(t.closeEmitted=!0),(r!==null&&r!==undefined&&r.emitClose||t!==null&&t!==undefined&&t.emitClose)&&e.emit("close")}function p(e,t){let r=e._readableState;let n=e._writableState;if(n!==null&&n!==undefined&&n.errorEmitted||r!==null&&r!==undefined&&r.errorEmitted)return;n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),e.emit("error",t)}function g(t,r,n){let a=t._readableState;let i=t._writableState;if(i!==null&&i!==undefined&&i.destroyed||a!==null&&a!==undefined&&a.destroyed)return this;a!==null&&a!==undefined&&a.autoDestroy||i!==null&&i!==undefined&&i.autoDestroy?t.destroy(r):r&&(r.stack,i&&!i.errored&&(i.errored=r),a&&!a.errored&&(a.errored=r),n?e.nextTick(p,t,r):p(t,r))}function b(t){let n=!1;function a(a){if(n){g(t,a!==null&&a!==undefined?a:new r);return}n=!0;let i=t._readableState;let s=t._writableState;let o=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(u,a):a?g(t,a,!0):e.nextTick(y,t)}try{t._construct(t=>{e.nextTick(a,t)})}catch(t){e.nextTick(a,t)}}function y(e){e.emit(c)}function k(e){return(e===null||e===undefined?undefined:e.setHeader)&&typeof e.abort=="function"}function w(e){e.emit("close")}function v(t,r){t.emit("error",r),e.nextTick(w,t)}module.exports={construct:function(t,r){if(typeof t._construct!=="function")return;let n=t._readableState;let a=t._writableState;if(n&&(n.constructed=!1),a&&(a.constructed=!1),t.once(c,r),t.listenerCount(c)>1)return;e.nextTick(b,t)},destroyer:function(t,r){if(!t||s(t))return;!r&&!o(t)&&(r=new n),l(t)?(t.socket=null,t.destroy(r)):k(t)?t.abort():k(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(r):typeof t.close=="function"?t.close():r?e.nextTick(v,t,r):e.nextTick(w,t),!t.destroyed&&(t[i]=!0)},destroy:function(e,r){let n=this._readableState;let a=this._writableState;let i=a||n;return a!==null&&a!==undefined&&a.destroyed||n!==null&&n!==undefined&&n.destroyed?typeof r=="function"&&r():(h(e,a,n),a&&(a.destroyed=!0),n&&(n.destroyed=!0),i.constructed?f(this,e,r):this.once(u,function(n){f(this,t(n,e),r)})),this},undestroy:function(){let e=this._readableState;let t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)},errorOrDestroy:g}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},342672(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ik:()=>m,KC:()=>k,L5:()=>w,NW:()=>y,PV:()=>b,YO:()=>s,Yj:()=>g,ai:()=>f,bz:()=>i,eu:()=>u,g1:()=>p,lq:()=>d,me:()=>h,nd:()=>l,zM:()=>o});var e=__webpack_require__(356583);var t=__webpack_require__(244231);var r=__webpack_require__(307059);var n=__webpack_require__(142827);function a(t,n){let a=Object.keys(n).filter(e=>n[e]!==undefined&&(0,r.OJ)(n[e]));return a.length===0?t:(0,new e._k({...t,*entries(e,n){let i=n.branch[n.branch.length-1]??e;for(let s of t.entries(e,n)){let[e,t,n]=s;yield[e,t,(0,r.bL)(n,i,a)]}}}))}function i(){return(0,n.E8)("any",()=>!0)}function s(r){return new e._k({type:"array",schema:r,*entries(e){if(r&&Array.isArray(e))for(let[t,n]of e.entries())yield[t,n,r]},coercer(e){return Array.isArray(e)?e.slice():e},validator(e){return Array.isArray(e)||`Expected an array value, but received: ${(0,t.yy)(e)}`}})}function o(){return(0,n.E8)("boolean",e=>{return typeof e=="boolean"})}function l(){return(0,n.E8)("integer",e=>{return typeof e=="number"&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${(0,t.yy)(e)}`})}function u(r){let n=(0,t.yy)(r);let a=typeof r;return new e._k({type:"literal",schema:a==="string"||a==="number"||a==="boolean"?r:null,validator(e){return e===r||`Expected the literal \`${n}\`, but received: ${(0,t.yy)(e)}`}})}function c(){return(0,n.E8)("never",()=>!1)}function h(t){return new e._k({...t,validator:(e,r)=>e===null||t.validator(e,r),refiner:(e,r)=>e===null||t.refiner(e,r)})}function f(){return(0,n.E8)("number",e=>{return typeof e=="number"&&!isNaN(e)||`Expected a number, but received: ${(0,t.yy)(e)}`})}function m(r){let n=r?Object.keys(r):[];let i=c();let s=new e._k({type:"object",schema:r??null,*entries(a){if(r&&(0,t.Gv)(a)){let t=new Set(Object.keys(a));for(let i of n){t.delete(i);let n=r[i];if(e.P$.isExactOptional(n)&&!Object.prototype.hasOwnProperty.call(a,i))continue;yield[i,a[i],r[i]]}for(let e of t)yield[e,a[e],i]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`},coercer(e){return(0,t.Gv)(e)?{...e}:e}});return!r?s:(0,a(s,r))}function d(t){return new e._k({...t,validator:(e,r)=>e===undefined||t.validator(e,r),refiner:(e,r)=>e===undefined||t.refiner(e,r)})}function p(r,n){return new e._k({type:"record",schema:null,*entries(e){if((0,t.Gv)(e))for(let t in e){let a=e[t];yield[t,t,r],yield[t,a,n]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`}})}function g(){return(0,n.E8)("string",e=>{return typeof e=="string"||`Expected a string, but received: ${(0,t.yy)(e)}`})}function b(r){let n=c();return new e._k({type:"tuple",schema:null,*entries(e){if(Array.isArray(e)){let t=Math.max(r.length,e.length);for(let a=0;a<t;a++)yield[a,e[a],r[a]||n]}},validator(e){return Array.isArray(e)||`Expected an array, but received: ${(0,t.yy)(e)}`}})}function y(r){let n=Object.keys(r);return a(new e._k({type:"type",schema:r,*entries(a){if((0,t.Gv)(a))for(let t of n){if(e.P$.isExactOptional(r[t])&&!Object.prototype.hasOwnProperty.call(a,t))continue;yield[t,a[t],r[t]]}},validator(e){return(0,t.Gv)(e)||`Expected an object, but received: ${(0,t.yy)(e)}`},coercer(e){return(0,t.Gv)(e)?{...e}:e}}),r)}function k(r){let n=r.map(e=>e.type).join(" | ");return new e._k({type:"union",schema:null,coercer(e){for(let t of r){let[r,n]=t.validate(e,{coerce:!0});if(!r)return n}return e},validator(e,a){let i=[];for(let n of r){let[...r]=(0,t.eF)(e,n,a);let[s]=r;if(!s?.[0])return[];for(let[e]of r)e&&i.push(e)}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${(0,t.yy)(e)}`,...i]}})}function w(){return(0,n.E8)("unknown",()=>!0)}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},355608(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{au:()=>t});var e=__webpack_require__(356583);function t(t,r,n){return new e._k({...t,coercer:(a,i)=>{return(0,e.is)(a,r)?t.coercer(n(a,i),i):t.coercer(a,i)}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},356583(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{P$:()=>a,_k:()=>r,is:()=>l,vA:()=>i,vt:()=>s});var e=__webpack_require__(449070);var t=__webpack_require__(244231);class r{constructor(e){let{type:r,schema:n,validator:a,refiner:i,coercer:s=e=>e,entries:o=function*(){}}=e;for(let l of(this.type=r,this.schema=n,this.entries=o,this.coercer=s,a?this.validator=(e,r)=>{let n=a(e,r);return(0,t.RF)(n,r,this,e)}:this.validator=()=>[],i?this.refiner=(e,r)=>{let n=i(e,r);return(0,t.RF)(n,r,this,e)}:this.refiner=()=>[],Object.getOwnPropertySymbols(e)))Object.defineProperty(this,l,Object.getOwnPropertyDescriptor(e,l))}assert(e,t){return i(e,this,t)}create(e,t){return s(e,this,t)}is(e){return l(e,this)}mask(e,t){return o(e,this,t)}validate(e,t={}){return u(e,this,t)}}let n="EXACT_OPTIONAL";class a extends r{constructor(e){super({...e,type:`exact optional ${e.type}`}),this.brand=n}static isExactOptional(e){return(0,t.Gv)(e)&&"brand"in e&&e.brand===n}}function i(e,t,r){let n=u(e,t,{message:r});if(n[0])throw n[0]}function s(e,t,r){let n=u(e,t,{coerce:!0,message:r});if(!n[0])return n[1];throw n[0]}function o(e,t,r){let n=u(e,t,{coerce:!0,mask:!0,message:r});if(!n[0])return n[1];throw n[0]}function l(e,t){return!u(e,t)[0]}function u(r,n,a={}){let i=(0,t.eF)(r,n,a);let s=(0,t.jT)(i);return s[0]?[new e.C(s[0],function*(){for(let e of i)e[0]&&(yield e[0])}),undefined]:(0,[undefined,s[1]])}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},377228(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(158647).F.ERR_INVALID_OPT_VALUE;function t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}module.exports={getHighWaterMark:function(r,n,a,i){var s=t(n,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new e(i?a:"highWaterMark",s);return Math.floor(s)}return r.objectMode?16:16*1024}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},378326(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=module.exports={};var t;var r;function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{t=typeof setTimeout=="function"?setTimeout:n}catch(e){t=n}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch(e){r=a}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function s(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}var o=[];var l=!1;var u;var c=-1;function h(){if(!l||!u)return;l=!1,u.length?o=u.concat(o):c=-1,o.length&&f()}function f(){if(l)return;var e=i(h);l=!0;var t=o.length;while(t){u=o,o=[];while(++c<t)u&&u[c].run();c=-1,t=o.length}u=null,l=!1,s(e)}function m(e,t){this.fun=e,this.array=t}function d(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new m(e,t)),o.length===1&&!l&&i(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.prependListener=d,e.prependOnceListener=d,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}}}).call(__webpack_require__._LM_("process",{module,__webpack_require__}))()},378831(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>e});let e={ACCOUNT_UPGRADE:"https://support.metamask.io/configure/accounts/what-is-a-smart-account/?utm_source=extension#what-are-metamask-smart-accounts",ADD_CUSTOM_TOKENS:"https://support.metamask.io/managing-my-tokens/custom-tokens/how-to-display-tokens-in-metamask/?utm_source=extension",ADD_SOLANA_ACCOUNTS:"https://support.metamask.io/configure/accounts/how-to-add-accounts-in-your-wallet/?utm_source=extension#solana-accounts",CUSTOMIZE_NONCE:"https://support.metamask.io/transactions-and-gas/transactions/how-to-customize-a-transaction-nonce/?utm_source=extension",GAS_FEES:"https://support.metamask.io/transactions-and-gas/gas-fees/?utm_source=extension",HARDWARE_CONNECTION:"https://support.metamask.io/privacy-and-security/hardware-wallet-hub/?utm_source=extension",HARDWARE_QR_WALLETS:"https://support.metamask.io/more-web3/wallets/hardware-wallet-hub/?utm_source=extension#qr-codeair-gapped-wallets",HARDWARE_CONNECTION_TREZOR_LEDGER:"https://support.metamask.io/more-web3/wallets/how-to-connect-a-trezor-or-ledger-hardware-wallet/?utm_source=extension",IMPORT_ACCOUNT_MOBILE:"https://support.metamask.io/start/use-an-existing-wallet?client=mobile&utm_source=extension",IMPORTED_ACCOUNTS:"https://support.metamask.io/managing-my-wallet/accounts-and-addresses/what-are-imported-accounts-/?utm_source=extension",IMPORTED_ACCOUNT_JSON:"https://support.metamask.io/start/how-to-import-an-account/?utm_source=extension#how-can-i-import-my-private-key-using-a-json-file",IMPORTED_ACCOUNTS_PRIVATE_KEY:"https://support.metamask.io/start/use-an-existing-wallet/?utm_source=extension#import-using-a-private-key",INFURA_BLOCKAGE:"https://support.metamask.io/troubleshooting/why-infura-cannot-serve-certain-areas/?utm_source=extension",LEDGER_FIREFOX_U2F_GUIDE:"https://support.ledger.com/hc/en-us/articles/10371387758493-MetaMask-Firefox-Ledger-Integration-Issue?support=true",LEGACY_WEB3:"https://support.metamask.io/third-party-platforms-and-dapps/metamask-legacy-web3/?utm_source=extension",PASSKEYS:"https://support.metamask.io/configure/wallet/passkeys/?utm_source=extension",PASSWORD_ARTICLE:"https://support.metamask.io/configure/wallet/passwords-and-metamask/?utm_source=extension",PASSWORD_AND_SRP_ARTICLE:"https://support.metamask.io/getting-started/user-guide-secret-recovery-phrase-password-and-private-keys/?utm_source=extension",PRIVATE_KEY_GUIDE:"https://support.metamask.io/start/user-guide-secret-recovery-phrase-password-and-private-keys/?utm_source=extension#private-keys",PASSWORD_RESET:"https://support.metamask.io/configure/wallet/how-can-i-reset-my-password/?utm_source=extension",SECRET_RECOVERY_PHRASE:"https://support.metamask.io/privacy-and-security/what-is-a-secret-recovery-phrase-and-how-to-keep-your-crypto-wallet-secure/?utm_source=extension",NON_CUSTODIAL_WALLET:"https://support.metamask.io/getting-started/metamask-is-a-self-custodial-wallet/?utm_source=extension",SPEEDUP_CANCEL:"https://support.metamask.io/transactions-and-gas/transactions/how-to-speed-up-or-cancel-a-pending-transaction/?utm_source=extension",SUPPORT_URL:"https://support.metamask.io/?utm_source=extension",TOKEN_SAFETY_PRACTICES:"https://support.metamask.io/managing-my-tokens/token-safety-practices/?utm_source=extension",UNKNOWN_NETWORK:"https://support.metamask.io/networks-and-sidechains/managing-networks/the-risks-of-connecting-to-an-unknown-network/?utm_source=extension",USER_GUIDE_CUSTOM_NETWORKS:"https://support.metamask.io/networks-and-sidechains/managing-networks/user-guide-custom-networks-and-sidechains/?utm_source=extension",USER_GUIDE_DAPPS:"https://support.metamask.io/third-party-platforms-and-dapps/user-guide-dapps/?utm_source=extension",USER_GUIDE_GAS:"https://support.metamask.io/transactions-and-gas/gas-fees/user-guide-gas/?utm_source=extension",VERIFY_CUSTOM_NETWORK:"https://support.metamask.io/networks-and-sidechains/managing-networks/verifying-custom-network-information/?utm_source=extension",NETWORK_DEPRECATED:"https://support.metamask.io/networks-and-sidechains/eth-on-testnets/?utm_source=extension",SOLANA_ACCOUNTS:"https://support.metamask.io/configure/accounts/how-to-add-accounts-in-your-wallet/?utm_source=extension#solana-accounts",METAMETRICS_SETTINGS:"https://support.metamask.io/privacy-and-security/how-to-manage-your-metametrics-settings/?utm_source=extension",PROFILE_PRIVACY:"https://support.metamask.io/privacy-and-security/profile-privacy/?utm_source=extension",CONTRACT_ADDRESS_WARNING:"https://support.metamask.io/managing-my-tokens/moving-your-tokens/why-am-i-being-warned-about-sending-tokens-to-a-contract/?utm_source=extension",TRANSACTION_SHIELD:"https://support.metamask.io/manage-crypto/transactions/transaction-shield/?utm_source=extension",FIND_TRANSACTION_HASH:"https://support.metamask.io/manage-crypto/transactions/how-to-find-a-transaction-id/?utm_source=extension",MULTICHAIN_ACCOUNTS:"https://support.metamask.io/configure/accounts/multichain-accounts/?utm_source=extension",CONNECTING_TO_DAPP:"https://support.metamask.io/more-web3/dapps/connecting-to-a-dapp/?utm_source=extension",PRIVACY_BEST_PRACTICES:"https://support.metamask.io/privacy-and-security/privacy-best-practices/?utm_source=extension",BASIC_SAFETY_TIPS:"https://support.metamask.io/stay-safe/safety-in-web3/basic-safety-and-security-tips-for-metamask/?utm_source=extension",METAMASK_REWARDS:"https://support.metamask.io/manage-crypto/metamask-rewards/?utm_source=extension",DECEPTIVE_SITE:"https://support.metamask.io/troubleshooting/deceptive-site-ahead-when-trying-to-connect-to-a-site/?utm_source=extension",SWAPS_USER_GUIDE:"https://support.metamask.io/token-swaps/user-guide-swaps/?utm_source=extension",UPDATE_VERSION:"https://support.metamask.io/configure/wallet/how-to-update-the-version-of-metamask/?utm_source=extension"}}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},381763(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){try{if(!globalThis.localStorage)return!1}catch(e){return!1}var t=globalThis.localStorage[e];return null==t?!1:(0,String(t).toLowerCase()==="true")}module.exports=function t(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}}}}).call(__webpack_require__._LM_("@storybook/react>util-deprecate",{module,__webpack_require__}))()},382906(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s3:()=>l});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);var a;var i;var s;var o;(i=a||(a={}))["Primary"]="primary",i["Secondary"]="secondary",(o=s||(s={}))["Button"]="button",o["Submit"]="submit";let l=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Button),value:(0,e.Yj)(),variant:(0,e.lq)((0,e.KC)([(0,r.$9)(a.Primary),(0,r.$9)(a.Secondary)])),buttonType:(0,e.lq)((0,e.KC)([(0,r.$9)(s.Button),(0,r.$9)(s.Submit)])),name:(0,e.lq)((0,e.Yj)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},387923(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);var t;module.exports=j,j.ReadableState=E,__webpack_require__(780063).EventEmitter;var r=function(e,t){return e.listeners(t).length};var n=__webpack_require__(506348);var a=__webpack_require__(971567).Buffer;var i=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function s(e){return a.from(e)}function o(e){return a.isBuffer(e)||e instanceof i}var l=__webpack_require__(201783);var u;u=l&&l.debuglog?l.debuglog("stream"):function(){};var c=__webpack_require__(508142);var h=__webpack_require__(430723);var f=__webpack_require__(377228).getHighWaterMark;var m=__webpack_require__(158647).F,d=m.ERR_INVALID_ARG_TYPE,p=m.ERR_STREAM_PUSH_AFTER_EOF,g=m.ERR_METHOD_NOT_IMPLEMENTED,b=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var y;var k;var w;__webpack_require__(985738)(j,n);var v=h.errorOrDestroy;var _=["error","close","destroy","pause","resume"];function S(e,t,r){if(typeof e.prependListener=="function")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)}function E(e,r,n){t=t||__webpack_require__(128093),e=e||{},typeof n!=="boolean"&&(n=r instanceof t),this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=f(this,e,"readableHighWaterMark",n),this.buffer=new c,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=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(!y&&(y=__webpack_require__(938453).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function j(e){if(t=t||__webpack_require__(128093),!(this instanceof j))return new j(e);var r=this instanceof t;this._readableState=new E(e,this,r),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),n.call(this)}function T(e,t,r,n,i){u("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,O(e,o);else{var l;if(!i&&(l=A(o,t)),l)v(e,l);else if(o.objectMode||t&&t.length>0)if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),n)o.endEmitted?v(e,new b):x(e,o,t,!0);else if(o.ended)v(e,new p);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?x(e,o,t,!1):C(e,o)):x(e,o,t,!1);else!n&&(o.reading=!1,C(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function x(e,t,r,n){t.flowing&&t.length===0&&!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&&L(e)),C(e,t)}function A(e,t){var r;return!o(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode&&(r=new d("chunk",["string","Buffer","Uint8Array"],t)),r}function R(e){return e>=0x40000000?e=0x40000000:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:(0,t.objectMode)?1:(0,e!=e)?t.flowing&&t.length?t.buffer.head.data.length:(0,t.length):(0,(e>t.highWaterMark&&(t.highWaterMark=R(e)),e<=t.length)?e:(0,!t.ended)?(t.needReadable=!0,0):(0,t.length))}function O(e,t){if(u("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?L(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,I(e)))}function L(t){var r=t._readableState;u("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(u("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(I,t))}function I(e){var t=e._readableState;u("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,U(e)}function C(t,r){!r.readingMore&&(r.readingMore=!0,e.nextTick(N,t,r))}function N(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function P(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,"data")&&(t.flowing=!0,U(e))}}function D(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 B(e){u("readable nexttick read 0"),e.read(0)}function F(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(q,t,r))}function q(e,t){u("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;u("flow",t.flowing);while(t.flowing&&e.read()!==null);}function $(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function z(t){var r=t._readableState;u("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(W,r,t))}function W(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}}function H(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===undefined?!1:(0,this._readableState.destroyed)},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}}),j.prototype.destroy=h.destroy,j.prototype._undestroy=h.undestroy,j.prototype._destroy=function(e,t){t(e)},j.prototype.push=function(e,t){var r=this._readableState;var n;return r.objectMode?n=!0:typeof e=="string"&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),T(this,e,t,!1,n)},j.prototype.unshift=function(e){return T(this,e,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(e){!y&&(y=__webpack_require__(938453).StringDecoder);var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head;var n="";while(r!==null)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},j.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?z(this):L(this),null;if((e=M(e,t))===0&&t.ended)return t.length===0&&z(this),null;var n=t.needReadable;var a;return u("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&u("length less than watermark",n=!0),t.ended||t.reading?u("reading or ended",n=!1):n&&(u("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,!t.reading&&(e=M(r,t))),(a=e>0?$(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(!t.ended&&(t.needReadable=!0),r!==e&&t.ended&&z(this)),a!==null&&this.emit("data",a),a},j.prototype._read=function(e){v(this,new g("_read()"))},j.prototype.pipe=function(t,n){var a=this;var i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,n);var s=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr?l:b;function o(e,t){u("onunpipe"),e===a&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,f())}function l(){u("onend"),t.end()}i.endEmitted?e.nextTick(s):a.once("end",s),t.on("unpipe",o);var c=P(a);t.on("drain",c);var h=!1;function f(){u("cleanup"),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",o),a.removeListener("end",l),a.removeListener("end",b),a.removeListener("data",m),h=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&c()}function m(e){u("ondata");var r=t.write(e);u("dest.write",r),r===!1&&((i.pipesCount===1&&i.pipes===t||i.pipesCount>1&&H(i.pipes,t)!==-1)&&!h&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),a.pause())}function d(e){u("onerror",e),b(),t.removeListener("error",d),r(t,"error")===0&&v(t,e)}function p(){t.removeListener("finish",g),b()}function g(){u("onfinish"),t.removeListener("close",p),b()}function b(){u("unpipe"),a.unpipe(t)}return a.on("data",m),S(t,"error",d),t.once("close",p),t.once("finish",g),t.emit("pipe",a),!i.flowing&&(u("pipe resume"),a.resume()),t},j.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)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;var a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<a;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var s=H(t.pipes,e);return s===-1||(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},j.prototype.on=function(t,r){var a=n.prototype.on.call(this,t,r);var i=this._readableState;return t==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):t==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?L(this):!i.reading&&e.nextTick(B,this)),a},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(t,r){var a=n.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(D,this),a},j.prototype.removeAllListeners=function(t){var r=n.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(D,this),r},j.prototype.resume=function(){var e=this._readableState;return!e.flowing&&(u("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this;var r=this._readableState;var n=!1;for(var a in e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){if((u("wrapped data"),r.decoder&&(a=r.decoder.write(a)),r.objectMode&&(a===null||a===undefined))||!r.objectMode&&(!a||!a.length))return;!t.push(a)&&(n=!0,e.pause())}),e)this[a]===undefined&&typeof e[a]=="function"&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var i=0;i<_.length;i++)e.on(_[i],this.emit.bind(this,_[i]));return this._read=function(t){u("wrapped _read",t),n&&(n=!1,e.resume())},this},typeof Symbol=="function"&&(j.prototype[Symbol.asyncIterator]=function(){return k===undefined&&(k=__webpack_require__(149890)),k(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),j._fromList=$,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(j.from=function(e,t){return w===undefined&&(w=__webpack_require__(864992)),w(j,e,t)})}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},413279(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e,t;var r,n;r=typeof globalThis!=="undefined"&&globalThis,n=function(e){if(!(globalThis.chrome&&globalThis.chrome.runtime&&globalThis.chrome.runtime.id))throw new Error("This script should only be loaded in a browser extension.");globalThis.browser&&globalThis.browser.runtime&&globalThis.browser.runtime.id?e.exports=globalThis.browser:e.exports=(e=>{let t={"alarms":{"clear":{"minArgs":0,"maxArgs":1},"clearAll":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0}},"bookmarks":{"create":{"minArgs":1,"maxArgs":1},"get":{"minArgs":1,"maxArgs":1},"getChildren":{"minArgs":1,"maxArgs":1},"getRecent":{"minArgs":1,"maxArgs":1},"getSubTree":{"minArgs":1,"maxArgs":1},"getTree":{"minArgs":0,"maxArgs":0},"move":{"minArgs":2,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeTree":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}},"browserAction":{"disable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"enable":{"minArgs":0,"maxArgs":1,"fallbackToNoCallback":!0},"getBadgeBackgroundColor":{"minArgs":1,"maxArgs":1},"getBadgeText":{"minArgs":1,"maxArgs":1},"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"openPopup":{"minArgs":0,"maxArgs":0},"setBadgeBackgroundColor":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setBadgeText":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"browsingData":{"remove":{"minArgs":2,"maxArgs":2},"removeCache":{"minArgs":1,"maxArgs":1},"removeCookies":{"minArgs":1,"maxArgs":1},"removeDownloads":{"minArgs":1,"maxArgs":1},"removeFormData":{"minArgs":1,"maxArgs":1},"removeHistory":{"minArgs":1,"maxArgs":1},"removeLocalStorage":{"minArgs":1,"maxArgs":1},"removePasswords":{"minArgs":1,"maxArgs":1},"removePluginData":{"minArgs":1,"maxArgs":1},"settings":{"minArgs":0,"maxArgs":0}},"commands":{"getAll":{"minArgs":0,"maxArgs":0}},"contextMenus":{"remove":{"minArgs":1,"maxArgs":1},"removeAll":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"cookies":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":1,"maxArgs":1},"getAllCookieStores":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"devtools":{"inspectedWindow":{"eval":{"minArgs":1,"maxArgs":2,"singleCallbackArg":!1}},"panels":{"create":{"minArgs":3,"maxArgs":3,"singleCallbackArg":!0},"elements":{"createSidebarPane":{"minArgs":1,"maxArgs":1}}}},"downloads":{"cancel":{"minArgs":1,"maxArgs":1},"download":{"minArgs":1,"maxArgs":1},"erase":{"minArgs":1,"maxArgs":1},"getFileIcon":{"minArgs":1,"maxArgs":2},"open":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"pause":{"minArgs":1,"maxArgs":1},"removeFile":{"minArgs":1,"maxArgs":1},"resume":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"extension":{"isAllowedFileSchemeAccess":{"minArgs":0,"maxArgs":0},"isAllowedIncognitoAccess":{"minArgs":0,"maxArgs":0}},"history":{"addUrl":{"minArgs":1,"maxArgs":1},"deleteAll":{"minArgs":0,"maxArgs":0},"deleteRange":{"minArgs":1,"maxArgs":1},"deleteUrl":{"minArgs":1,"maxArgs":1},"getVisits":{"minArgs":1,"maxArgs":1},"search":{"minArgs":1,"maxArgs":1}},"i18n":{"detectLanguage":{"minArgs":1,"maxArgs":1},"getAcceptLanguages":{"minArgs":0,"maxArgs":0}},"identity":{"launchWebAuthFlow":{"minArgs":1,"maxArgs":1}},"idle":{"queryState":{"minArgs":1,"maxArgs":1}},"management":{"get":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"getSelf":{"minArgs":0,"maxArgs":0},"setEnabled":{"minArgs":2,"maxArgs":2},"uninstallSelf":{"minArgs":0,"maxArgs":1}},"notifications":{"clear":{"minArgs":1,"maxArgs":1},"create":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":0},"getPermissionLevel":{"minArgs":0,"maxArgs":0},"update":{"minArgs":2,"maxArgs":2}},"pageAction":{"getPopup":{"minArgs":1,"maxArgs":1},"getTitle":{"minArgs":1,"maxArgs":1},"hide":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setIcon":{"minArgs":1,"maxArgs":1},"setPopup":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"setTitle":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0},"show":{"minArgs":1,"maxArgs":1,"fallbackToNoCallback":!0}},"permissions":{"contains":{"minArgs":1,"maxArgs":1},"getAll":{"minArgs":0,"maxArgs":0},"remove":{"minArgs":1,"maxArgs":1},"request":{"minArgs":1,"maxArgs":1}},"runtime":{"getBackgroundPage":{"minArgs":0,"maxArgs":0},"getPlatformInfo":{"minArgs":0,"maxArgs":0},"openOptionsPage":{"minArgs":0,"maxArgs":0},"requestUpdateCheck":{"minArgs":0,"maxArgs":0},"sendMessage":{"minArgs":1,"maxArgs":3},"sendNativeMessage":{"minArgs":2,"maxArgs":2},"setUninstallURL":{"minArgs":1,"maxArgs":1}},"sessions":{"getDevices":{"minArgs":0,"maxArgs":1},"getRecentlyClosed":{"minArgs":0,"maxArgs":1},"restore":{"minArgs":0,"maxArgs":1}},"storage":{"local":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}},"managed":{"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1}},"sync":{"clear":{"minArgs":0,"maxArgs":0},"get":{"minArgs":0,"maxArgs":1},"getBytesInUse":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"set":{"minArgs":1,"maxArgs":1}}},"tabs":{"captureVisibleTab":{"minArgs":0,"maxArgs":2},"create":{"minArgs":1,"maxArgs":1},"detectLanguage":{"minArgs":0,"maxArgs":1},"discard":{"minArgs":0,"maxArgs":1},"duplicate":{"minArgs":1,"maxArgs":1},"executeScript":{"minArgs":1,"maxArgs":2},"get":{"minArgs":1,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":0},"getZoom":{"minArgs":0,"maxArgs":1},"getZoomSettings":{"minArgs":0,"maxArgs":1},"goBack":{"minArgs":0,"maxArgs":1},"goForward":{"minArgs":0,"maxArgs":1},"highlight":{"minArgs":1,"maxArgs":1},"insertCSS":{"minArgs":1,"maxArgs":2},"move":{"minArgs":2,"maxArgs":2},"query":{"minArgs":1,"maxArgs":1},"reload":{"minArgs":0,"maxArgs":2},"remove":{"minArgs":1,"maxArgs":1},"removeCSS":{"minArgs":1,"maxArgs":2},"sendMessage":{"minArgs":2,"maxArgs":3},"setZoom":{"minArgs":1,"maxArgs":2},"setZoomSettings":{"minArgs":1,"maxArgs":2},"update":{"minArgs":1,"maxArgs":2}},"topSites":{"get":{"minArgs":0,"maxArgs":0}},"webNavigation":{"getAllFrames":{"minArgs":1,"maxArgs":1},"getFrame":{"minArgs":1,"maxArgs":1}},"webRequest":{"handlerBehaviorChanged":{"minArgs":0,"maxArgs":0}},"windows":{"create":{"minArgs":0,"maxArgs":1},"get":{"minArgs":1,"maxArgs":2},"getAll":{"minArgs":0,"maxArgs":1},"getCurrent":{"minArgs":0,"maxArgs":1},"getLastFocused":{"minArgs":0,"maxArgs":1},"remove":{"minArgs":1,"maxArgs":1},"update":{"minArgs":2,"maxArgs":2}}};if(Object.keys(t).length===0)throw new Error("api-metadata.json has not been included in browser-polyfill");class r extends WeakMap{constructor(e,t=undefined){super(t),this.createItem=e}get(e){return!this.has(e)&&this.set(e,this.createItem(e)),super.get(e)}}let n=(t,r)=>{return(...n)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):r.singleCallbackArg||n.length<=1&&r.singleCallbackArg!==!1?t.resolve(n[0]):t.resolve(n)}};let a=e=>e==1?"argument":"arguments";let i=(e,t,r)=>{return new Proxy(t,{apply(t,n,a){return r.call(n,e,...a)}})};let s=Function.call.bind(Object.prototype.hasOwnProperty);let o=(e,t={},r={})=>{let l=Object.create(null);return new Proxy(Object.create(e),{has(t,r){return r in e||r in l},get(u,c,h){if(c in l)return l[c];if(!(c in e))return undefined;let f=e[c];if(typeof f=="function")if(typeof t[c]=="function")f=i(e,e[c],t[c]);else if(s(r,c)){var m;let t=(c,m=r[c],function(e,...t){if(t.length<m.minArgs)throw new Error(`Expected at least ${m.minArgs} ${a(m.minArgs)} for ${c}(), got ${t.length}`);if(t.length>m.maxArgs)throw new Error(`Expected at most ${m.maxArgs} ${a(m.maxArgs)} for ${c}(), got ${t.length}`);return new Promise((r,a)=>{if(m.fallbackToNoCallback)try{e[c](...t,n({resolve:r,reject:a},m))}catch(n){console.warn(`${c} API method doesn't seem to support the callback parameter, `+"falling back to call it without a callback: ",n),e[c](...t),m.fallbackToNoCallback=!1,m.noCallback=!0,r()}else m.noCallback?(e[c](...t),r()):e[c](...t,n({resolve:r,reject:a},m))})});f=i(e,e[c],t)}else f=f.bind(e);else if(typeof f=="object"&&f!==null&&(s(t,c)||s(r,c)))f=o(f,t[c],r[c]);else if(!s(r,"*"))return Object.defineProperty(l,c,{configurable:!0,enumerable:!0,get(){return e[c]},set(t){e[c]=t}}),f;else f=o(f,t[c],r["*"]);return l[c]=f,f},set(t,r,n,a){return r in l?l[r]=n:e[r]=n,!0},defineProperty(e,t,r){return Reflect.defineProperty(l,t,r)},deleteProperty(e,t){return Reflect.deleteProperty(l,t)}})};let l=e=>({addListener(t,r,...n){t.addListener(e.get(r),...n)},hasListener(t,r){return t.hasListener(e.get(r))},removeListener(t,r){t.removeListener(e.get(r))}});let u=new r(e=>{return typeof e!=="function"?e:(0,function(t){e(o(t,{},{getContent:{minArgs:0,maxArgs:0}}))})});let c=new r(e=>{return typeof e!=="function"?e:(0,function(t,r,n){let a=!1;let i;let s=new Promise(e=>{i=function(t){a=!0,e(t)}});let o;try{o=e(t,r,i)}catch(e){o=Promise.reject(e)}var l;let u=o!==!0&&(l=o)&&typeof l=="object"&&typeof l.then=="function";if(o!==!0&&!u&&!a)return!1;return(u?o:s).then(e=>{n(e)},e=>{let t;n({__mozWebExtensionPolyfillReject__:!0,message:t=e&&(e instanceof Error||typeof e.message=="string")?e.message:"An unexpected error occurred"})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)}),!0})});let h=({reject:t,resolve:r},n)=>{e.runtime.lastError?e.runtime.lastError.message==="The message port closed before a response was received."?r():t(new Error(e.runtime.lastError.message)):n&&n.__mozWebExtensionPolyfillReject__?t(new Error(n.message)):r(n)};let f=(e,t,r,...n)=>{if(n.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${a(t.minArgs)} for ${e}(), got ${n.length}`);if(n.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${a(t.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,t)=>{let a=h.bind(null,{resolve:e,reject:t});n.push(a),r.sendMessage(...n)})};let m={devtools:{network:{onRequestFinished:l(u)}},runtime:{onMessage:l(c),onMessageExternal:l(c),sendMessage:f.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:f.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}};let d={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return t.privacy={network:{"*":d},services:{"*":d},websites:{"*":d}},o(e,m,t)})(chrome)},!0&&(e=[module],(t="function"=="function"?n.apply(exports,e):n)!==undefined&&(module.exports=t))}}).call(__webpack_require__._LM_("webextension-polyfill",{module,exports,__webpack_require__})).bind(exports)()},425934(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{ArrayIsArray:t,Promise:r,SymbolAsyncIterator:n,SymbolDispose:a}=__webpack_require__(708566);let i=__webpack_require__(816718);let{once:s}=__webpack_require__(769584);let o=__webpack_require__(338568);let l=__webpack_require__(68266);let{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:c,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:f,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:d},AbortError:p}=__webpack_require__(868387);let{validateFunction:g,validateAbortSignal:b}=__webpack_require__(827525);let{isIterable:y,isReadable:k,isReadableNodeStream:w,isNodeStream:v,isTransformStream:_,isWebStream:S,isReadableStream:E,isReadableFinished:j}=__webpack_require__(831171);let T=globalThis.AbortController||__webpack_require__(581808).AbortController;let x;let A;let R;function M(e,t,r){let n=!1;return e.on("close",()=>{n=!0}),{destroy:t=>{if(n)return;n=!0,o.destroyer(e,t||new m("pipe"))},cleanup:i(e,{readable:t,writable:r},e=>{n=!e})}}function O(e){return g(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function L(e){if(y(e))return e;if(w(e))return I(e);throw new c("val",["Readable","Iterable","AsyncIterable"],e)}async function*I(e){!A&&(A=__webpack_require__(699960)),yield*A.prototype[n].call(e)}async function C(e,t,n,{end:a}){let s;let o=null;let l=e=>{if(e&&(s=e),o){let e=o;o=null,e()}};let c=()=>new r((e,t)=>{s?t(s):o=()=>{s?t(s):e()}});t.on("drain",l);let h=i(t,{readable:!1},l);try{for await(let r of(t.writableNeedDrain&&await c(),e))!t.write(r)&&await c();a&&(t.end(),await c()),n()}catch(e){n(s!==e?u(s,e):e)}finally{h(),t.off("drain",l)}}async function N(e,t,r,{end:n}){_(t)&&(t=t.writable);let a=t.getWriter();try{for await(let t of e)await a.ready,a.write(t).catch(()=>{});await a.ready,n&&await a.close(),r()}catch(e){try{await a.abort(e),r(e)}catch(e){r(e)}}}function P(...e){return D(e,s(O(e)))}function D(r,n,i){if(r.length===1&&t(r[0])&&(r=r[0]),r.length<2)throw new f("streams");let s=new T;let o=s.signal;let u=i===null||i===undefined?undefined:i.signal;let m=[];function d(){D(new p)}b(u,"options.signal"),R=R||__webpack_require__(769584).addAbortListener;let g;u&&(g=R(u,d));let j;let A;let O=[];let I=0;function P(e){D(e,--I==0)}function D(t,r){var i;if(t&&(!j||j.code==="ERR_STREAM_PREMATURE_CLOSE")&&(j=t),!j&&!r)return;while(O.length)O.shift()(j);(i=g)===null||i===undefined||i[a](),s.abort(),r&&(!j&&m.forEach(e=>e()),e.nextTick(n,j,A))}let F;for(let t=0;t<r.length;t++){let n=r[t];let a=t<r.length-1;let s=t>0;let u=a||(i===null||i===undefined?undefined:i.end)!==!1;let f=t===r.length-1;if(v(n)){if(u){let{destroy:e,cleanup:t}=M(n,a,s);O.push(e),k(n)&&f&&m.push(t)}function q(e){e&&e.name!=="AbortError"&&e.code!=="ERR_STREAM_PREMATURE_CLOSE"&&P(e)}n.on("error",q),k(n)&&f&&m.push(()=>{n.removeListener("error",q)})}if(t===0)if(typeof n=="function"){if(!y(F=n({signal:o})))throw new h("Iterable, AsyncIterable or Stream","source",F)}else F=y(n)||w(n)||_(n)?n:l.from(n);else if(typeof n=="function"){if(_(F)){var U;F=L((U=F)===null||U===undefined?undefined:U.readable)}else F=L(F);if(F=n(F,{signal:o}),a){if(!y(F,!0))throw new h("AsyncIterable",`transform[${t-1}]`,F)}else{var $;!x&&(x=__webpack_require__(448492));let t=new x({objectMode:!0});let r=($=F)===null||$===undefined?undefined:$.then;if(typeof r=="function")I++,r.call(F,r=>{A=r,r!=null&&t.write(r),u&&t.end(),e.nextTick(P)},r=>{t.destroy(r),e.nextTick(P,r)});else if(y(F,!0))I++,C(F,t,P,{end:u});else if(E(F)||_(F)){let e=F.readable||F;I++,C(e,t,P,{end:u})}else throw new h("AsyncIterable or Promise","destination",F);let{destroy:n,cleanup:a}=M(F=t,!1,!0);O.push(n),f&&m.push(a)}}else if(v(n)){if(w(F)){I+=2;let e=B(F,n,P,{end:u});k(n)&&f&&m.push(e)}else if(_(F)||E(F)){let e=F.readable||F;I++,C(e,n,P,{end:u})}else if(y(F))I++,C(F,n,P,{end:u});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],F);F=n}else if(S(n)){if(w(F))I++,N(L(F),n,P,{end:u});else if(E(F)||y(F))I++,N(F,n,P,{end:u});else if(_(F))I++,N(F.readable,n,P,{end:u});else throw new c("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],F);F=n}else F=l.from(n)}return(o!==null&&o!==undefined&&o.aborted||u!==null&&u!==undefined&&u.aborted)&&e.nextTick(d),F}function B(t,r,n,{end:a}){let s=!1;if(r.on("close",()=>{!s&&n(new d)}),t.pipe(r,{end:!1}),a){function o(){s=!0,r.end()}j(t)?e.nextTick(o):t.once("end",o)}else n();return i(t,{readable:!0,writable:!1},e=>{let r=t._readableState;e&&e.code==="ERR_STREAM_PREMATURE_CLOSE"&&r&&r.ended&&!r.errored&&!r.errorEmitted?t.once("end",n).once("error",n):n(e)}),i(r,{readable:!1,writable:!0},n)}module.exports={pipelineImpl:D,pipeline:P}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},430723(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);function t(e,t){n(e,t),r(e)}function r(e){if(e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function n(e,t){e.emit("error",t)}module.exports={destroy:function(a,i){var s=this;var o=this._readableState&&this._readableState.destroyed;var l=this._writableState&&this._writableState.destroyed;return o||l?i?i(a):a&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(n,this,a)):e.nextTick(n,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(n){!i&&n?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(t,s,n)):e.nextTick(t,s,n):i?(e.nextTick(r,s),i(n)):e.nextTick(r,s)})),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;var n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},443697(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Qi:()=>c});var e=__webpack_require__(342672);var t=__webpack_require__(142282);var r=__webpack_require__(908743);var n=__webpack_require__(745085);var a=__webpack_require__(647388);var i=__webpack_require__(879771);var s=__webpack_require__(937053);var o=__webpack_require__(484068);let l=(0,e.KC)([a.rI,a.Es,a.ux,(0,e.Yj)(),(0,e.zM)(),t.FX]);let u=(0,e.g1)((0,e.Yj)(),(0,e.me)(l));(0,e.g1)((0,e.Yj)(),(0,e.KC)([u,(0,e.me)(l)]));let c=(0,i.E$)(e=>{return(0,n.Gv)(e)&&!(0,n.i5)(e,"props")?o.vb:(0,s.Pm)});var h;var f;(0,e.g1)((0,e.Yj)(),r.zC),(f=h||(h={}))["Insight"]="Insight",f["Dialog"]="Dialog",f["Notification"]="Notification",f["HomePage"]="HomePage"}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},446267(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(304208).F.ERR_INVALID_OPT_VALUE;function t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}module.exports={getHighWaterMark:function(r,n,a,i){var s=t(n,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0)throw new e(i?a:"highWaterMark",s);return Math.floor(s)}return r.objectMode?16:16*1024}}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},448492(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectSetPrototypeOf:e}=__webpack_require__(708566);module.exports=r;let t=__webpack_require__(631222);function r(e){if(!(this instanceof r))return new r(e);t.call(this,e)}e(r.prototype,t.prototype),e(r,t),r.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},449070(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>e});class e extends TypeError{constructor(e,t){let r;let{message:n,explanation:a,...i}=e;let{path:s}=e;let o=s.length===0?n:`At path: ${s.join(".")} -- ${n}`;super(a??o),a!==null&&a!==undefined&&(this.cause=o),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{return r??(r=[e,...t()])}}}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_exports__,__webpack_require__}))()},449219(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayIsArray:e,ObjectSetPrototypeOf:t}=__webpack_require__(708566);let{EventEmitter:r}=__webpack_require__(780063);function n(e){r.call(this,e)}function a(t,r,n){if(typeof t.prependListener=="function")return t.prependListener(r,n);t._events&&t._events[r]?e(t._events[r])?t._events[r].unshift(n):t._events[r]=[n,t._events[r]]:t.on(r,n)}t(n.prototype,r.prototype),t(n,r),n.prototype.pipe=function(e,t){let n=this;function i(t){e.writable&&e.write(t)===!1&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",s),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",l),n.on("close",u));let o=!1;function l(){if(o)return;o=!0,e.end()}function u(){if(o)return;o=!0,typeof e.destroy=="function"&&e.destroy()}function c(e){h(),r.listenerCount(this,"error")===0&&this.emit("error",e)}function h(){n.removeListener("data",i),e.removeListener("drain",s),n.removeListener("end",l),n.removeListener("close",u),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",h),n.removeListener("close",h),e.removeListener("close",h)}return a(n,"error",c),a(e,"error",c),n.on("end",h),n.on("close",h),e.on("close",h),e.emit("pipe",n),e},module.exports={Stream:n,prependListener:a}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},452547(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{SymbolDispose:e}=__webpack_require__(708566);let{AbortError:t,codes:r}=__webpack_require__(868387);let{isNodeStream:n,isWebStream:a,kControllerErrorFunction:i}=__webpack_require__(831171);let s=__webpack_require__(816718);let{ERR_INVALID_ARG_TYPE:o}=r;let l;module.exports.addAbortSignal=function(e,t){if(typeof e!=="object"||!("aborted"in e))throw new o("signal","AbortSignal",e);if(!n(t)&&!a(t))throw new o("stream",["ReadableStream","WritableStream","Stream"],t);return module.exports.addAbortSignalNoValidate(e,t)},module.exports.addAbortSignalNoValidate=function(r,a){if(typeof r!=="object"||!("aborted"in r))return a;let o=n(a)?()=>{a.destroy(new t(undefined,{cause:r.reason}))}:()=>{a[i](new t(undefined,{cause:r.reason}))};return r.aborted?o():s(a,(l=l||__webpack_require__(769584).addAbortListener)(r,o)[e]),a}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},453945(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let a=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Copyable),value:(0,e.Yj)(),sensitive:(0,e.lq)((0,e.zM)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},456224(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";(exports=module.exports=__webpack_require__(387923)).Stream=exports,exports.Readable=exports,exports.Writable=__webpack_require__(976199),exports.Duplex=__webpack_require__(128093),exports.Transform=__webpack_require__(67395),exports.PassThrough=__webpack_require__(938361),exports.finished=__webpack_require__(490137),exports.pipeline=__webpack_require__(122587)}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{exports,module,__webpack_require__}))()},456895(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;module=__webpack_require__.nmd(module),(function(){var t;var r="Expected a function";var n="__lodash_hash_undefined__";var a="__lodash_placeholder__";var i=1/0,s=0/0;var o=0xffffffff-1,l=0xffffffff>>>1;var u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var c="[object Arguments]",h="[object Array]",f="[object Boolean]",m="[object Date]",d="[object Error]",p="[object Function]",g="[object GeneratorFunction]",b="[object Map]",y="[object Number]",k="[object Object]",w="[object Promise]",v="[object RegExp]",_="[object Set]",S="[object String]",E="[object Symbol]",j="[object WeakMap]";var T="[object ArrayBuffer]",x="[object DataView]",A="[object Float32Array]",R="[object Float64Array]",M="[object Int8Array]",O="[object Int16Array]",L="[object Int32Array]",I="[object Uint8Array]",C="[object Uint8ClampedArray]",N="[object Uint16Array]",P="[object Uint32Array]";var D=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,F=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var q=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,$=RegExp(q.source),z=RegExp(U.source);var W=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g;var V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var K=/[\\^$.*+?()[\]{}|]/g,J=RegExp(K.source);var X=/^\s+/;var Q=/\s/;var ee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,et=/\{\n\/\* \[wrapped with (.+)\] \*/,er=/,? & /;var en=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ea=/[()=,{}\[\]\/\s]/;var ei=/\\(\\)?/g;var es=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var eo=/\w*$/;var el=/^[-+]0x[0-9a-f]+$/i;var eu=/^0b[01]+$/i;var ec=/^\[object .+?Constructor\]$/;var eh=/^0o[0-7]+$/i;var ef=/^(?:0|[1-9]\d*)$/;var em=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var ed=/($^)/;var ep=/['\n\r\u2028\u2029\\]/g;var eg="\ud800-\udfff",eb="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",ey="\\u2700-\\u27bf",ek="a-z\\xdf-\\xf6\\xf8-\\xff",ew="A-Z\\xc0-\\xd6\\xd8-\\xde",ev="\\ufe0e\\ufe0f",e_="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";var eS="['’]",eE="["+e_+"]",ej="["+eb+"]",eT="["+ek+"]",ex="[^"+eg+e_+"\\d+"+ey+ek+ew+"]",eA="\ud83c[\udffb-\udfff]",eR="[^"+eg+"]",eM="(?:\ud83c[\udde6-\uddff]){2}",eO="[\ud800-\udbff][\udc00-\udfff]",eL="["+ew+"]",eI="\\u200d";var eC="(?:"+eT+"|"+ex+")",eN="(?:"+eL+"|"+ex+")",eP="(?:"+eS+"(?:d|ll|m|re|s|t|ve))?",eD="(?:"+eS+"(?:D|LL|M|RE|S|T|VE))?",eB="(?:"+ej+"|"+eA+")"+"?",eF="["+ev+"]?",eq="(?:"+eI+"(?:"+[eR,eM,eO].join("|")+")"+eF+eB+")*",eU=eF+eB+eq,e$="(?:"+["["+ey+"]",eM,eO].join("|")+")"+eU,ez="(?:"+[eR+ej+"?",ej,eM,eO,"["+eg+"]"].join("|")+")";var eW=RegExp(eS,"g");var eH=RegExp(ej,"g");var eG=RegExp(eA+"(?="+eA+")|"+ez+eU,"g");var eV=RegExp([eL+"?"+eT+"+"+eP+"(?="+[eE,eL,"$"].join("|")+")",eN+"+"+eD+"(?="+[eE,eL+eC,"$"].join("|")+")",eL+"?"+eC+"+"+eP,eL+"+"+eD,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",e$].join("|"),"g");var eY=RegExp("["+eI+eg+eb+ev+"]");var eZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var eK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var eJ=-1;var eX={};eX[A]=eX[R]=eX[M]=eX[O]=eX[L]=eX[I]=eX[C]=eX[N]=eX[P]=!0,eX[c]=eX[h]=eX[T]=eX[f]=eX[x]=eX[m]=eX[d]=eX[p]=eX[b]=eX[y]=eX[k]=eX[v]=eX[_]=eX[S]=eX[j]=!1;var eQ={};eQ[c]=eQ[h]=eQ[T]=eQ[x]=eQ[f]=eQ[m]=eQ[A]=eQ[R]=eQ[M]=eQ[O]=eQ[L]=eQ[b]=eQ[y]=eQ[k]=eQ[v]=eQ[_]=eQ[S]=eQ[E]=eQ[I]=eQ[C]=eQ[N]=eQ[P]=!0,eQ[d]=eQ[p]=eQ[j]=!1;var e0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var e1=parseFloat,e2=parseInt;var e6=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;var e3=typeof self=="object"&&self&&self.Object===Object&&self;var e8=e6||e3||Function("return this")();var e5=!0&&exports&&!exports.nodeType&&exports;var e7=e5&&"object"=="object"&&module&&!module.nodeType&&module;var e4=e7&&e7.exports===e5;var e9=e4&&e6.process;var te=function(){try{var e=e7&&e7.require&&e7.require("util").types;if(e)return e;return e9&&e9.binding&&e9.binding("util")}catch(e){}}();var tt=te&&te.isArrayBuffer,tr=te&&te.isDate,tn=te&&te.isMap,ta=te&&te.isRegExp,ti=te&&te.isSet,ts=te&&te.isTypedArray;function to(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tl(e,t,r,n){var a=-1,i=e==null?0:e.length;while(++a<i){var s=e[a];t(n,s,r(s),e)}return n}function tu(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(t(e[r],r,e)===!1)break;return e}function tc(e,t){var r=e==null?0:e.length;while(r--)if(t(e[r],r,e)===!1)break;return e}function th(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(!t(e[r],r,e))return!1;return!0}function tf(e,t){var r=-1,n=e==null?0:e.length,a=0,i=[];while(++r<n){var s=e[r];t(s,r,e)&&(i[a++]=s)}return i}function tm(e,t){return!!(e==null?0:e.length)&&tj(e,t,0)>-1}function td(e,t,r){var n=-1,a=e==null?0:e.length;while(++n<a)if(r(t,e[n]))return!0;return!1}function tp(e,t){var r=-1,n=e==null?0:e.length,a=Array(n);while(++r<n)a[r]=t(e[r],r,e);return a}function tg(e,t){var r=-1,n=t.length,a=e.length;while(++r<n)e[a+r]=t[r];return e}function tb(e,t,r,n){var a=-1,i=e==null?0:e.length;n&&i&&(r=e[++a]);while(++a<i)r=t(r,e[a],a,e);return r}function ty(e,t,r,n){var a=e==null?0:e.length;n&&a&&(r=e[--a]);while(a--)r=t(r,e[a],a,e);return r}function tk(e,t){var r=-1,n=e==null?0:e.length;while(++r<n)if(t(e[r],r,e))return!0;return!1}var tw=tR("length");function tv(e){return e.split("")}function t_(e){return e.match(en)||[]}function tS(e,t,r){var n;return r(e,function(e,r,a){if(t(e,r,a))return n=r,!1}),n}function tE(e,t,r,n){var a=e.length,i=r+(n?1:-1);while(n?i--:++i<a)if(t(e[i],i,e))return i;return-1}function tj(e,t,r){return t==t?t1(e,t,r):tE(e,tx,r)}function tT(e,t,r,n){var a=r-1,i=e.length;while(++a<i)if(n(e[a],t))return a;return-1}function tx(e){return e!=e}function tA(e,t){var r=e==null?0:e.length;return r?tI(e,t)/r:s}function tR(e){return function(r){return r==null?t:r[e]}}function tM(e){return function(r){return e==null?t:e[r]}}function tO(e,t,r,n,a){return a(e,function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)}),r}function tL(e,t){var r=e.length;e.sort(t);while(r--)e[r]=e[r].value;return e}function tI(e,r){var n,a=-1,i=e.length;while(++a<i){var s=r(e[a]);s!==t&&(n=n===t?s:n+s)}return n}function tC(e,t){var r=-1,n=Array(e);while(++r<e)n[r]=t(r);return n}function tN(e,t){return tp(t,function(t){return[t,e[t]]})}function tP(e){return e?e.slice(0,t8(e)+1).replace(X,""):e}function tD(e){return function(t){return e(t)}}function tB(e,t){return tp(t,function(t){return e[t]})}function tF(e,t){return e.has(t)}function tq(e,t){var r=-1,n=e.length;while(++r<n&&tj(t,e[r],0)>-1);return r}function tU(e,t){var r=e.length;while(r--&&tj(t,e[r],0)>-1);return r}function t$(e,t){var r=e.length,n=0;while(r--)e[r]===t&&++n;return n}var tz=tM({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"});var tW=tM({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tH(e){return"\\"+e0[e]}function tG(e,r){return e==null?t:e[r]}function tV(e){return eY.test(e)}function tY(e){return eZ.test(e)}function tZ(e){var t,r=[];while(!(t=e.next()).done)r.push(t.value);return r}function tK(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tJ(e,t){return function(r){return e(t(r))}}function tX(e,t){var r=-1,n=e.length,i=0,s=[];while(++r<n){var o=e[r];(o===t||o===a)&&(e[r]=a,s[i++]=r)}return s}function tQ(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function t0(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function t1(e,t,r){var n=r-1,a=e.length;while(++n<a)if(e[n]===t)return n;return-1}function t2(e,t,r){var n=r+1;while(n--)if(e[n]===t)return n;return n}function t6(e){return tV(e)?t7(e):tw(e)}function t3(e){return tV(e)?t4(e):tv(e)}function t8(e){var t=e.length;while(t--&&Q.test(e.charAt(t)));return t}var t5=tM({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});function t7(e){var t=eG.lastIndex=0;while(eG.test(e))++t;return t}function t4(e){return e.match(eG)||[]}function t9(e){return e.match(eV)||[]}var re=function e(Q){var en=(Q=Q==null?e8:re.defaults(e8.Object(),Q,re.pick(e8,eK))).Array,eg=Q.Date,eb=Q.Error,ey=Q.Function,ek=Q.Math,ew=Q.Object,ev=Q.RegExp,e_=Q.String,eS=Q.TypeError;var eE=en.prototype,ej=ey.prototype,eT=ew.prototype;var ex=Q["__core-js_shared__"];var eA=ej.toString;var eR=eT.hasOwnProperty;var eM=0;var eO;var eL=(eO=/[^.]+$/.exec(ex&&ex.keys&&ex.keys.IE_PROTO||""))?"Symbol(src)_1."+eO:"";var eI=eT.toString;var eC=eA.call(ew);var eN=e8._;var eP=ev("^"+eA.call(eR).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var eD=e4?Q.Buffer:t,eB=Q.Symbol,eF=Q.Uint8Array,eq=eD?eD.allocUnsafe:t,eU=tJ(ew.getPrototypeOf,ew),e$=ew.create,ez=eT.propertyIsEnumerable,eG=eE.splice,eV=eB?eB.isConcatSpreadable:t,eY=eB?eB.iterator:t,eZ=eB?eB.toStringTag:t;var e0=function(){try{var e=ip(ew,"defineProperty");return e({},"",{}),e}catch(e){}}();var e6=Q.clearTimeout!==e8.clearTimeout&&Q.clearTimeout,e3=eg&&eg.now!==e8.Date.now&&eg.now,e5=Q.setTimeout!==e8.setTimeout&&Q.setTimeout;var e7=ek.ceil,e9=ek.floor,te=ew.getOwnPropertySymbols,tw=eD?eD.isBuffer:t,tv=Q.isFinite,tM=eE.join,t1=tJ(ew.keys,ew),t7=ek.max,t4=ek.min,rt=eg.now,rr=Q.parseInt,rn=ek.random,ra=eE.reverse;var ri=ip(Q,"DataView"),rs=ip(Q,"Map"),ro=ip(Q,"Promise"),rl=ip(Q,"Set"),ru=ip(Q,"WeakMap"),rc=ip(ew,"create");var rh=ru&&new ru;var rf={};var rm=i0(ri),rd=i0(rs),rp=i0(ro),rg=i0(rl),rb=i0(ru);var ry=eB?eB.prototype:t,rk=ry?ry.valueOf:t,rw=ry?ry.toString:t;function rv(e){if(lb(e)&&!le(e)&&!(e instanceof rj)){if(e instanceof rE)return e;if(eR.call(e,"__wrapped__"))return i2(e)}return new rE(e)}var r_=function(){function e(){}return function(r){if(!lg(r))return{};if(e$)return e$(r);e.prototype=r;var n=new e;return e.prototype=t,n}}();function rS(){}function rE(e,r){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function rj(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rT(){var e=new rj(this.__wrapped__);return e.__actions__=aC(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=aC(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=aC(this.__views__),e}function rx(){if(this.__filtered__){var e=new rj(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function rA(){var e=this.__wrapped__.value(),t=this.__dir__,r=le(e),n=t<0,a=r?e.length:0,i=iw(0,a,this.__views__),s=i.start,o=i.end,l=o-s,u=n?o:s-1,c=this.__iteratees__,h=c.length,f=0,m=t4(l,this.__takeCount__);if(!r||!n&&a==l&&m==l)return ag(e,this.__actions__);var d=[];e:while(l--&&f<m){var p=-1,g=e[u+=t];while(++p<h){var b=c[p],y=b.iteratee,k=b.type,w=y(g);if(k==2)g=w;else if(!w){if(k==1)continue e;break e}}d[f++]=g}return d}function rR(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function rM(){this.__data__=rc?rc(null):{},this.size=0}function rO(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function rL(e){var r=this.__data__;if(rc){var a=r[e];return a===n?t:a}return eR.call(r,e)?r[e]:t}function rI(e){var r=this.__data__;return rc?r[e]!==t:eR.call(r,e)}function rC(e,r){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=rc&&r===t?n:r,this}function rN(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function rP(){this.__data__=[],this.size=0}function rD(e){var t=this.__data__,r=r4(t,e);return r<0?!1:(r==t.length-1?t.pop():eG.call(t,r,1),--this.size,!0)}function rB(e){var r=this.__data__,n=r4(r,e);return n<0?t:r[n][1]}function rF(e){return r4(this.__data__,e)>-1}function rq(e,t){var r=this.__data__,n=r4(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function rU(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function r$(){this.size=0,this.__data__={"hash":new rR,"map":new(rs||rN),"string":new rR}}function rz(e){var t=im(this,e)["delete"](e);return this.size-=t?1:0,t}function rW(e){return im(this,e).get(e)}function rH(e){return im(this,e).has(e)}function rG(e,t){var r=im(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function rV(e){var t=-1,r=e==null?0:e.length;this.__data__=new rU;while(++t<r)this.add(e[t])}function rY(e){return this.__data__.set(e,n),this}function rZ(e){return this.__data__.has(e)}function rK(e){var t=this.__data__=new rN(e);this.size=t.size}function rJ(){this.__data__=new rN,this.size=0}function rX(e){var t=this.__data__,r=t["delete"](e);return this.size=t.size,r}function rQ(e){return this.__data__.get(e)}function r0(e){return this.__data__.has(e)}function r1(e,t){var r=this.__data__;if(r instanceof rN){var n=r.__data__;if(!rs||n.length<200-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rU(n)}return r.set(e,t),this.size=r.size,this}function r2(e,t){var r=le(e),n=!r&&o9(e),a=!r&&!n&&li(e),i=!r&&!n&&!a&&lL(e),s=r||n||a||i,o=s?tC(e.length,e_):[],l=o.length;for(var u in e)(t||eR.call(e,u))&&!(s&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||iA(u,l)))&&o.push(u);return o}function r6(e){var r=e.length;return r?e[n8(0,r-1)]:t}function r3(e,t){return iJ(aC(e),na(t,0,e.length))}function r8(e){return iJ(aC(e))}function r5(e,r,n){(n!==t&&!o5(e[r],n)||n===t&&!(r in e))&&nr(e,r,n)}function r7(e,r,n){var a=e[r];(!(eR.call(e,r)&&o5(a,n))||n===t&&!(r in e))&&nr(e,r,n)}function r4(e,t){var r=e.length;while(r--)if(o5(e[r][0],t))return r;return-1}function r9(e,t,r,n){return nc(e,function(e,a,i){t(n,e,r(e),i)}),n}function ne(e,t){return e&&aN(t,ua(t),e)}function nt(e,t){return e&&aN(t,ui(t),e)}function nr(e,t,r){t=="__proto__"&&e0?e0(e,t,{"configurable":!0,"enumerable":!0,"value":r,"writable":!0}):e[t]=r}function nn(e,r){var n=-1,a=r.length,i=en(a),s=e==null;while(++n<a)i[n]=s?t:l4(e,r[n]);return i}function na(e,r,n){return e==e&&(n!==t&&(e=e<=n?e:n),r!==t&&(e=e>=r?e:r)),e}function ni(e,r,n,a,i,s){var o,l=r&1,u=r&2,h=r&4;if(n&&(o=i?n(e,a,i,s):n(e)),o!==t)return o;if(!lg(e))return e;var f=le(e);if(f){if(o=iS(e),!l)return aC(e,o)}else{var m=ik(e),d=m==p||m==g;if(li(e))return aE(e,l);if(m==k||m==c||d&&!i){if(o=u||d?{}:iE(e),!l)return u?aD(e,nt(o,e)):aP(e,ne(o,e))}else{if(!eQ[m])return i?e:{};o=ij(e,m,l)}}s||(s=new rK);var b=s.get(e);if(b)return b;s.set(e,o),lR(e)?e.forEach(function(t){o.add(ni(t,r,n,t,e,s))}):ly(e)&&e.forEach(function(t,a){o.set(a,ni(t,r,n,a,e,s))});var y=h?u?io:is:u?ui:ua;var w=f?t:y(e);return tu(w||e,function(t,a){w&&(t=e[a=t]),r7(o,a,ni(t,r,n,a,e,s))}),o}function ns(e){var t=ua(e);return function(r){return no(r,e,t)}}function no(e,r,n){var a=n.length;if(e==null)return!a;e=ew(e);while(a--){var i=n[a],s=r[i],o=e[i];if(o===t&&!(i in e)||!s(o))return!1}return!0}function nl(e,n,a){if(typeof e!="function")throw new eS(r);return iV(function(){e.apply(t,a)},n)}function nu(e,t,r,n){var a=-1,i=tm,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;r&&(t=tp(t,tD(r))),n?(i=td,s=!1):t.length>=200&&(i=tF,s=!1,t=new rV(t));e:while(++a<o){var c=e[a],h=r==null?c:r(c);if(c=n||c!==0?c:0,s&&h==h){var f=u;while(f--)if(t[f]===h)continue e;l.push(c)}else!i(t,h,n)&&l.push(c)}return l}rv.templateSettings={"escape":W,"evaluate":H,"interpolate":G,"variable":"","imports":{"_":rv}},rv.prototype=rS.prototype,rv.prototype.constructor=rv,rE.prototype=r_(rS.prototype),rE.prototype.constructor=rE,rj.prototype=r_(rS.prototype),rj.prototype.constructor=rj,rR.prototype.clear=rM,rR.prototype["delete"]=rO,rR.prototype.get=rL,rR.prototype.has=rI,rR.prototype.set=rC,rN.prototype.clear=rP,rN.prototype["delete"]=rD,rN.prototype.get=rB,rN.prototype.has=rF,rN.prototype.set=rq,rU.prototype.clear=r$,rU.prototype["delete"]=rz,rU.prototype.get=rW,rU.prototype.has=rH,rU.prototype.set=rG,rV.prototype.add=rV.prototype.push=rY,rV.prototype.has=rZ,rK.prototype.clear=rJ,rK.prototype["delete"]=rX,rK.prototype.get=rQ,rK.prototype.has=r0,rK.prototype.set=r1;var nc=aq(nk);var nh=aq(nw,!0);function nf(e,t){var r=!0;return nc(e,function(e,n,a){return r=!!t(e,n,a)}),r}function nm(e,r,n){var a=-1,i=e.length;while(++a<i){var s=e[a],o=r(s);if(o!=null&&(l===t?o==o&&!lO(o):n(o,l)))var l=o,u=s}return u}function nd(e,r,n,a){var i=e.length;(n=lq(n))<0&&(n=-n>i?0:i+n),(a=a===t||a>i?i:lq(a))<0&&(a+=i),a=n>a?0:lU(a);while(n<a)e[n++]=r;return e}function np(e,t){var r=[];return nc(e,function(e,n,a){t(e,n,a)&&r.push(e)}),r}function ng(e,t,r,n,a){var i=-1,s=e.length;r||(r=ix),a||(a=[]);while(++i<s){var o=e[i];t>0&&r(o)?t>1?ng(o,t-1,r,n,a):tg(a,o):!n&&(a[a.length]=o)}return a}var nb=aU();var ny=aU(!0);function nk(e,t){return e&&nb(e,t,ua)}function nw(e,t){return e&&ny(e,t,ua)}function nv(e,t){return tf(t,function(t){return lm(e[t])})}function n_(e,r){r=av(r,e);var n=0,a=r.length;while(e!=null&&n<a)e=e[iQ(r[n++])];return n&&n==a?e:t}function nS(e,t,r){var n=t(e);return le(e)?n:tg(n,r(e))}function nE(e){return e==null?e===t?"[object Undefined]":"[object Null]":(0,eZ&&eZ in ew(e)?ig(e):iU(e))}function nj(e,t){return e>t}function nT(e,t){return e!=null&&eR.call(e,t)}function nx(e,t){return e!=null&&t in ew(e)}function nA(e,t,r){return e>=t4(t,r)&&e<t7(t,r)}function nR(e,r,n){var a=n?td:tm,i=e[0].length,s=e.length,o=s,l=en(s),u=Infinity,c=[];while(o--){var h=e[o];o&&r&&(h=tp(h,tD(r))),u=t4(h.length,u),l[o]=!n&&(r||i>=120&&h.length>=120)?new rV(o&&h):t}h=e[0];var f=-1,m=l[0];e:while(++f<i&&c.length<u){var d=h[f],p=r?r(d):d;if(d=n||d!==0?d:0,!(m?tF(m,p):a(c,p,n))){o=s;while(--o){var g=l[o];if(!(g?tF(g,p):a(e[o],p,n)))continue e}m&&m.push(p),c.push(d)}}return c}function nM(e,t,r,n){return nk(e,function(e,a,i){t(n,r(e),a,i)}),n}function nO(e,r,n){r=av(r,e);var a=(e=iz(e,r))==null?e:e[iQ(sb(r))];return a==null?t:to(a,e,n)}function nL(e){return lb(e)&&nE(e)==c}function nI(e){return lb(e)&&nE(e)==T}function nC(e){return lb(e)&&nE(e)==m}function nN(e,t,r,n,a){return e===t?!0:(0,e==null||t==null||!lb(e)&&!lb(t))?e!=e&&t!=t:(0,nP(e,t,r,n,nN,a))}function nP(e,t,r,n,a,i){var s=le(e),o=le(t),l=s?h:ik(e),u=o?h:ik(t);l=l==c?k:l,u=u==c?k:u;var f=l==k,m=u==k,d=l==u;if(d&&li(e)){if(!li(t))return!1;s=!0,f=!1}if(d&&!f)return i||(i=new rK),s||lL(e)?it(e,t,r,n,a,i):ir(e,t,l,r,n,a,i);if(!(r&1)){var p=f&&eR.call(e,"__wrapped__"),g=m&&eR.call(t,"__wrapped__");if(p||g){var b=p?e.value():e,y=g?t.value():t;return i||(i=new rK),a(b,y,r,n,i)}}return!d?!1:(i||(i=new rK),ia(e,t,r,n,a,i))}function nD(e){return lb(e)&&ik(e)==b}function nB(e,r,n,a){var i=n.length,s=i,o=!a;if(e==null)return!s;e=ew(e);while(i--){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++i<s){var u=(l=n[i])[0],c=e[u],h=l[1];if(o&&l[2]){if(c===t&&!(u in e))return!1}else{var f=new rK;if(a)var m=a(c,h,u,e,r,f);if(!(m===t?nN(h,c,1|2,a,f):m))return!1}}return!0}function nF(e){return!lg(e)||iI(e)?!1:(0,(lm(e)?eP:ec).test(i0(e)))}function nq(e){return lb(e)&&nE(e)==v}function nU(e){return lb(e)&&ik(e)==_}function n$(e){return lb(e)&&lp(e.length)&&!!eX[nE(e)]}function nz(e){return typeof e=="function"?e:(0,e==null)?cr:(0,typeof e=="object")?le(e)?nZ(e[0],e[1]):nY(e):(0,cp(e))}function nW(e){if(!iN(e))return t1(e);var t=[];for(var r in ew(e))eR.call(e,r)&&r!="constructor"&&t.push(r);return t}function nH(e){if(!lg(e))return iq(e);var t=iN(e),r=[];for(var n in e)!(n=="constructor"&&(t||!eR.call(e,n)))&&r.push(n);return r}function nG(e,t){return e<t}function nV(e,t){var r=-1,n=lr(e)?en(e.length):[];return nc(e,function(e,a,i){n[++r]=t(e,a,i)}),n}function nY(e){var t=id(e);return t.length==1&&t[0][2]?iD(t[0][0],t[0][1]):(0,function(r){return r===e||nB(r,e,t)})}function nZ(e,r){return iM(e)&&iP(r)?iD(iQ(e),r):(0,function(n){var a=l4(n,e);return a===t&&a===r?ue(n,e):nN(r,a,1|2)})}function nK(e,r,n,a,i){if(e===r)return;nb(r,function(s,o){if(i||(i=new rK),lg(s))nJ(e,r,o,n,nK,a,i);else{var l=a?a(iH(e,o),s,o+"",e,r,i):t;l===t&&(l=s),r5(e,o,l)}},ui)}function nJ(e,r,n,a,i,s,o){var l=iH(e,n),u=iH(r,n),c=o.get(u);if(c){r5(e,n,c);return}var h=s?s(l,u,n+"",e,r,o):t;var f=h===t;if(f){var m=le(u),d=!m&&li(u),p=!m&&!d&&lL(u);h=u,m||d||p?le(l)?h=l:ln(l)?h=aC(l):d?(f=!1,h=aE(u,!0)):p?(f=!1,h=aR(u,!0)):h=[]:lT(u)||o9(u)?(h=l,o9(l)?h=lz(l):(!lg(l)||lm(l))&&(h=iE(u))):f=!1}f&&(o.set(u,h),i(h,u,a,s,o),o["delete"](u)),r5(e,n,h)}function nX(e,r){var n=e.length;if(!n)return;return iA(r+=r<0?n:0,n)?e[r]:t}function nQ(e,t,r){t=t.length?tp(t,function(e){return le(e)?function(t){return n_(t,e.length===1?e[0]:e)}:(0,e)}):[cr];var n=-1;return t=tp(t,tD(ih())),tL(nV(e,function(e,r,a){return{"criteria":tp(t,function(t){return t(e)}),"index":++n,"value":e}}),function(e,t){return aO(e,t,r)})}function n0(e,t){return n1(e,t,function(t,r){return ue(e,r)})}function n1(e,t,r){var n=-1,a=t.length,i={};while(++n<a){var s=t[n],o=n_(e,s);r(o,s)&&at(i,av(s,e),o)}return i}function n2(e){return function(t){return n_(t,e)}}function n6(e,t,r,n){var a=n?tT:tj,i=-1,s=t.length,o=e;e===t&&(t=aC(t)),r&&(o=tp(e,tD(r)));while(++i<s){var l=0,u=t[i],c=r?r(u):u;while((l=a(o,c,l,n))>-1)o!==e&&eG.call(o,l,1),eG.call(e,l,1)}return e}function n3(e,t){var r=e?t.length:0,n=r-1;while(r--){var a=t[r];if(r==n||a!==i){var i=a;iA(a)?eG.call(e,a,1):am(e,a)}}return e}function n8(e,t){return e+e9(rn()*(t-e+1))}function n5(e,t,r,n){var a=-1,i=t7(e7((t-e)/(r||1)),0),s=en(i);while(i--)s[n?i:++a]=e,e+=r;return s}function n7(e,t){var r="";if(!e||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=e),(t=e9(t/2))&&(e+=e);while(t)return r}function n4(e,t){return iY(i$(e,t,cr),e+"")}function n9(e){return r6(uS(e))}function ae(e,t){var r=uS(e);return iJ(r,na(t,0,r.length))}function at(e,r,n,a){if(!lg(e))return e;r=av(r,e);var i=-1,s=r.length,o=s-1,l=e;while(l!=null&&++i<s){var u=iQ(r[i]),c=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=l[u];(c=a?a(h,u,l):t)===t&&(c=lg(h)?h:iA(r[i+1])?[]:{})}r7(l,u,c),l=l[u]}return e}var ar=!rh?cr:function(e,t){return rh.set(e,t),e};var an=!e0?cr:function(e,t){return e0(e,"toString",{"configurable":!0,"enumerable":!1,"value":u4(t),"writable":!0})};function aa(e){return iJ(uS(e))}function ai(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;var i=en(a);while(++n<a)i[n]=e[n+t];return i}function as(e,t){var r;return nc(e,function(e,n,a){return!(r=t(e,n,a))}),!!r}function ao(e,t,r){var n=0,a=e==null?n:e.length;if(typeof t=="number"&&t==t&&a<=l){while(n<a){var i=n+a>>>1,s=e[i];s!==null&&!lO(s)&&(r?s<=t:s<t)?n=i+1:a=i}return a}return al(e,t,cr,r)}function al(e,r,n,a){var i=0,s=e==null?0:e.length;if(s===0)return 0;var l=(r=n(r))!=r,u=r===null,c=lO(r),h=r===t;while(i<s){var f=e9((i+s)/2),m=n(e[f]),d=m!==t,p=m===null,g=m==m,b=lO(m);if(l)var y=a||g;else y=h?g&&(a||d):u?g&&d&&(a||!p):c?g&&d&&!p&&(a||!b):p||b?!1:a?m<=r:m<r;y?i=f+1:s=f}return t4(s,o)}function au(e,t){var r=-1,n=e.length,a=0,i=[];while(++r<n){var s=e[r],o=t?t(s):s;if(!r||!o5(o,l)){var l=o;i[a++]=s===0?0:s}}return i}function ac(e){return typeof e=="number"?e:(0,lO(e))?s:(0,+e)}function ah(e){if(typeof e=="string")return e;if(le(e))return tp(e,ah)+"";if(lO(e))return rw?rw.call(e):"";var t=e+"";return t=="0"&&1/e==-i?"-0":t}function af(e,t,r){var n=-1,a=tm,i=e.length,s=!0,o=[],l=o;if(r)s=!1,a=td;else if(i>=200){var u=t?null:a8(e);if(u)return tQ(u);s=!1,a=tF,l=new rV}else l=t?[]:o;e:while(++n<i){var c=e[n],h=t?t(c):c;if(c=r||c!==0?c:0,s&&h==h){var f=l.length;while(f--)if(l[f]===h)continue e;t&&l.push(h),o.push(c)}else!a(l,h,r)&&(l!==o&&l.push(h),o.push(c))}return o}function am(e,t){t=av(t,e);var r=-1,n=t.length;if(!n)return!0;while(++r<n){var a=iQ(t[r]);if(a==="__proto__"&&!eR.call(e,"__proto__")||(a==="constructor"||a==="prototype")&&r<n-1)return!1}var i=iz(e,t);return i==null||delete i[iQ(sb(t))]}function ad(e,t,r,n){return at(e,t,r(n_(e,t)),n)}function ap(e,t,r,n){var a=e.length,i=n?a:-1;while((n?i--:++i<a)&&t(e[i],i,e));return r?ai(e,n?0:i,n?i+1:a):ai(e,n?i+1:0,n?a:i)}function ag(e,t){var r=e;return r instanceof rj&&(r=r.value()),tb(t,function(e,t){return t.func.apply(t.thisArg,tg([e],t.args))},r)}function ab(e,t,r){var n=e.length;if(n<2)return n?af(e[0]):[];var a=-1,i=en(n);while(++a<n){var s=e[a],o=-1;while(++o<n)o!=a&&(i[a]=nu(i[a]||s,e[o],t,r))}return af(ng(i,1),t,r)}function ay(e,r,n){var a=-1,i=e.length,s=r.length,o={};while(++a<i){var l=a<s?r[a]:t;n(o,e[a],l)}return o}function ak(e){return ln(e)?e:[]}function aw(e){return typeof e=="function"?e:cr}function av(e,t){return le(e)?e:(0,iM(e,t)?[e]:iX(lH(e)))}function a_(e,r,n){var a=e.length;return n=n===t?a:n,!r&&n>=a?e:ai(e,r,n)}var aS=e6||function(e){return e8.clearTimeout(e)};function aE(e,t){if(t)return e.slice();var r=e.length,n=eq?eq(r):new e.constructor(r);return e.copy(n),n}function aj(e){var t=new e.constructor(e.byteLength);return new eF(t).set(new eF(e)),t}function aT(e,t){var r=t?aj(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ax(e){var t=new e.constructor(e.source,eo.exec(e));return t.lastIndex=e.lastIndex,t}function aA(e){return rk?ew(rk.call(e)):{}}function aR(e,t){var r=t?aj(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function aM(e,r){if(e!==r){var n=e!==t,a=e===null,i=e==e,s=lO(e);var o=r!==t,l=r===null,u=r==r,c=lO(r);if(!l&&!c&&!s&&e>r||s&&o&&u&&!l&&!c||a&&o&&u||!n&&u||!i)return 1;if(!a&&!s&&!c&&e<r||c&&n&&i&&!a&&!s||l&&n&&i||!o&&i||!u)return-1}return 0}function aO(e,t,r){var n=-1,a=e.criteria,i=t.criteria,s=a.length,o=r.length;while(++n<s){var l=aM(a[n],i[n]);if(l){if(n>=o)return l;return l*(r[n]=="desc"?-1:1)}}return e.index-t.index}function aL(e,t,r,n){var a=-1,i=e.length,s=r.length,o=-1,l=t.length,u=t7(i-s,0),c=en(l+u),h=!n;while(++o<l)c[o]=t[o];while(++a<s)(h||a<i)&&(c[r[a]]=e[a]);while(u--)c[o++]=e[a++];return c}function aI(e,t,r,n){var a=-1,i=e.length,s=-1,o=r.length,l=-1,u=t.length,c=t7(i-o,0),h=en(c+u),f=!n;while(++a<c)h[a]=e[a];var m=a;while(++l<u)h[m+l]=t[l];while(++s<o)(f||a<i)&&(h[m+r[s]]=e[a++]);return h}function aC(e,t){var r=-1,n=e.length;t||(t=en(n));while(++r<n)t[r]=e[r];return t}function aN(e,r,n,a){var i=!n;n||(n={});var s=-1,o=r.length;while(++s<o){var l=r[s];var u=a?a(n[l],e[l],l,n,e):t;u===t&&(u=e[l]),i?nr(n,l,u):r7(n,l,u)}return n}function aP(e,t){return aN(e,ib(e),t)}function aD(e,t){return aN(e,iy(e),t)}function aB(e,t){return function(r,n){var a=le(r)?tl:r9,i=t?t():{};return a(r,e,ih(n,2),i)}}function aF(e){return n4(function(r,n){var a=-1,i=n.length,s=i>1?n[i-1]:t,o=i>2?n[2]:t;s=e.length>3&&typeof s=="function"?(i--,s):t,o&&iR(n[0],n[1],o)&&(s=i<3?t:s,i=1),r=ew(r);while(++a<i){var l=n[a];l&&e(r,l,a,s)}return r})}function aq(e,t){return function(r,n){if(r==null)return r;if(!lr(r))return e(r,n);var a=r.length,i=t?a:-1,s=ew(r);while(t?i--:++i<a)if(n(s[i],i,s)===!1)break;return r}}function aU(e){return function(t,r,n){var a=-1,i=ew(t),s=n(t),o=s.length;while(o--){var l=s[e?o:++a];if(r(i[l],l,i)===!1)break}return t}}function a$(e,t,r){var n=t&1,a=aH(e);function i(){return(this&&this!==e8&&this instanceof i?a:e).apply(n?r:this,arguments)}return i}function az(e){return function(r){var n=tV(r=lH(r))?t3(r):t;var a=n?n[0]:r.charAt(0);var i=n?a_(n,1).join(""):r.slice(1);return a[e]()+i}}function aW(e){return function(t){return tb(u6(uM(t).replace(eW,"")),e,"")}}function aH(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=r_(e.prototype),n=e.apply(r,t);return lg(n)?n:r}}function aG(e,r,n){var a=aH(e);function i(){var s=arguments.length,o=en(s),l=s,u=ic(i);while(l--)o[l]=arguments[l];var c=s<3&&o[0]!==u&&o[s-1]!==u?[]:tX(o,u);return(s-=c.length)<n?a6(e,r,aZ,i.placeholder,t,o,c,t,t,n-s):(0,to(this&&this!==e8&&this instanceof i?a:e,this,o))}return i}function aV(e){return function(r,n,a){var i=ew(r);if(!lr(r)){var s=ih(n,3);r=ua(r),n=function(e){return s(i[e],e,i)}}var o=e(r,n,a);return o>-1?i[s?r[o]:o]:t}}function aY(e){return ii(function(n){var a=n.length,i=a,s=rE.prototype.thru;e&&n.reverse();while(i--){var o=n[i];if(typeof o!="function")throw new eS(r);if(s&&!l&&iu(o)=="wrapper")var l=new rE([],!0)}i=l?i:a;while(++i<a){var u=iu(o=n[i]),c=u=="wrapper"?il(o):t;l=c&&iL(c[0])&&c[1]==(128|8|32|256)&&!c[4].length&&c[9]==1?l[iu(c[0])].apply(l,c[3]):o.length==1&&iL(o)?l[u]():l.thru(o)}return function(){var e=arguments,t=e[0];if(l&&e.length==1&&le(t))return l.plant(t).value();var r=0,i=a?n[r].apply(this,e):t;while(++r<a)i=n[r].call(this,i);return i}})}function aZ(e,r,n,a,i,s,o,l,u,c){var h=r&128,f=r&1,m=r&2,d=r&(8|16),p=r&512,g=m?t:aH(e);function b(){var t=arguments.length,y=en(t),k=t;while(k--)y[k]=arguments[k];if(d)var w=ic(b),v=t$(y,w);if(a&&(y=aL(y,a,i,d)),s&&(y=aI(y,s,o,d)),t-=v,d&&t<c){var _=tX(y,w);return a6(e,r,aZ,b.placeholder,n,y,_,l,u,c-t)}var S=f?n:this,E=m?S[e]:e;return t=y.length,l?y=iW(y,l):p&&t>1&&y.reverse(),h&&u<t&&(y.length=u),this&&this!==e8&&this instanceof b&&(E=g||aH(E)),E.apply(S,y)}return b}function aK(e,t){return function(r,n){return nM(r,e,t(n),{})}}function aJ(e,r){return function(n,a){var i;if(n===t&&a===t)return r;if(n!==t&&(i=n),a!==t){if(i===t)return a;typeof n=="string"||typeof a=="string"?(n=ah(n),a=ah(a)):(n=ac(n),a=ac(a)),i=e(n,a)}return i}}function aX(e){return ii(function(t){return t=tp(t,tD(ih())),n4(function(r){var n=this;return e(t,function(e){return to(e,n,r)})})})}function aQ(e,r){var n=(r=r===t?" ":ah(r)).length;if(n<2)return n?n7(r,e):r;var a=n7(r,e7(e/t6(r)));return tV(r)?a_(t3(a),0,e).join(""):a.slice(0,e)}function a0(e,t,r,n){var a=t&1,i=aH(e);function s(){var t=-1,o=arguments.length,l=-1,u=n.length,c=en(u+o),h=this&&this!==e8&&this instanceof s?i:e;while(++l<u)c[l]=n[l];while(o--)c[l++]=arguments[++t];return to(h,a?r:this,c)}return s}function a1(e){return function(r,n,a){return a&&typeof a!="number"&&iR(r,n,a)&&(n=a=t),r=lF(r),n===t?(n=r,r=0):n=lF(n),a=a===t?r<n?1:-1:lF(a),n5(r,n,a,e)}}function a2(e){return function(t,r){return!(typeof t=="string"&&typeof r=="string")&&(t=l$(t),r=l$(r)),e(t,r)}}function a6(e,r,n,a,i,s,o,l,u,c){var h=r&8,f=h?o:t,m=h?t:o,d=h?s:t,p=h?t:s;r|=h?32:64,!((r&=~(h?64:32))&4)&&(r&=~(1|2));var g=[e,r,i,d,f,p,m,l,u,c];var b=n.apply(t,g);return iL(e)&&iG(b,g),b.placeholder=a,iZ(b,e,r)}function a3(e){var t=ek[e];return function(e,r){if(e=l$(e),(r=r==null?0:t4(lq(r),292))&&tv(e)){var n=(lH(e)+"e").split("e");return+((n=(lH(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var a8=!(rl&&1/tQ(new rl([,-0]))[1]==i)?cc:function(e){return new rl(e)};function a5(e){return function(t){var r=ik(t);return r==b?tK(t):(0,r==_)?t0(t):(0,tN(t,e(t)))}}function a7(e,n,a,i,s,o,l,u){var c=n&2;if(!c&&typeof e!="function")throw new eS(r);var h=i?i.length:0;if(!h&&(n&=~(32|64),i=s=t),l=l===t?l:t7(lq(l),0),u=u===t?u:lq(u),h-=s?s.length:0,n&64){var f=i,m=s;i=s=t}var d=c?t:il(e);var p=[e,n,a,i,s,f,m,o,l,u];if(d&&iF(p,d),e=p[0],n=p[1],a=p[2],i=p[3],s=p[4],!(u=p[9]=p[9]===t?c?0:e.length:t7(p[9]-h,0))&&n&(8|16)&&(n&=~(8|16)),n&&n!=1)g=n==8||n==16?aG(e,n,u):n!=32&&n!=(1|32)||s.length?aZ.apply(t,p):a0(e,n,a,i);else var g=a$(e,n,a);return iZ((d?ar:iG)(g,p),e,n)}function a4(e,r,n,a){return e===t||o5(e,eT[n])&&!eR.call(a,n)?r:(0,e)}function a9(e,r,n,a,i,s){return lg(e)&&lg(r)&&(s.set(r,e),nK(e,r,t,a9,s),s["delete"](r)),e}function ie(e){return lT(e)?t:e}function it(e,r,n,a,i,s){var o=n&1,l=e.length,u=r.length;if(l!=u&&!(o&&u>l))return!1;var c=s.get(e);var h=s.get(r);if(c&&h)return c==r&&h==e;var f=-1,m=!0,d=n&2?new rV:t;s.set(e,r),s.set(r,e);while(++f<l){var p=e[f],g=r[f];if(a)var b=o?a(g,p,f,r,e,s):a(p,g,f,e,r,s);if(b!==t){if(b)continue;m=!1;break}if(d){if(!tk(r,function(e,t){if(!tF(d,t)&&(p===e||i(p,e,n,a,s)))return d.push(t)})){m=!1;break}}else if(!(p===g||i(p,g,n,a,s))){m=!1;break}}return s["delete"](e),s["delete"](r),m}function ir(e,t,r,n,a,i,s){switch(r){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:if(e.byteLength!=t.byteLength||!i(new eF(e),new eF(t)))return!1;return!0;case f:case m:case y:return o5(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case S:return e==t+"";case b:var o=tK;case _:var l=n&1;if(o||(o=tQ),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=2,s.set(e,t);var c=it(o(e),o(t),n,a,i,s);return s["delete"](e),c;case E:if(rk)return rk.call(e)==rk.call(t)}return!1}function ia(e,r,n,a,i,s){var o=n&1,l=is(e),u=l.length;if(u!=is(r).length&&!o)return!1;var c=u;while(c--){var h=l[c];if(!(o?h in r:eR.call(r,h)))return!1}var f=s.get(e);var m=s.get(r);if(f&&m)return f==r&&m==e;var d=!0;s.set(e,r),s.set(r,e);var p=o;while(++c<u){var g=e[h=l[c]],b=r[h];if(a)var y=o?a(b,g,h,r,e,s):a(g,b,h,e,r,s);if(!(y===t?g===b||i(g,b,n,a,s):y)){d=!1;break}p||(p=h=="constructor")}if(d&&!p){var k=e.constructor,w=r.constructor;k!=w&&"constructor"in e&&"constructor"in r&&!(typeof k=="function"&&k instanceof k&&typeof w=="function"&&w instanceof w)&&(d=!1)}return s["delete"](e),s["delete"](r),d}function ii(e){return iY(i$(e,t,ss),e+"")}function is(e){return nS(e,ua,ib)}function io(e){return nS(e,ui,iy)}var il=!rh?cc:function(e){return rh.get(e)};function iu(e){var t=e.name+"",r=rf[t],n=eR.call(rf,t)?r.length:0;while(n--){var a=r[n],i=a.func;if(i==null||i==e)return a.name}return t}function ic(e){return(eR.call(rv,"placeholder")?rv:e).placeholder}function ih(){var e=rv.iteratee||cn;return e=e===cn?nz:e,arguments.length?e(arguments[0],arguments[1]):e}function im(e,t){var r=e.__data__;return iO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function id(e){var t=ua(e),r=t.length;while(r--){var n=t[r],a=e[n];t[r]=[n,a,iP(a)]}return t}function ip(e,r){var n=tG(e,r);return nF(n)?n:t}function ig(e){var r=eR.call(e,eZ),n=e[eZ];try{e[eZ]=t;var a=!0}catch(e){}var i=eI.call(e);return a&&(r?e[eZ]=n:delete e[eZ]),i}var ib=!te?ck:function(e){return e==null?[]:(0,tf(te(e=ew(e)),function(t){return ez.call(e,t)}))};var iy=!te?ck:function(e){var t=[];while(e)tg(t,ib(e)),e=eU(e);return t};var ik=nE;function iw(e,t,r){var n=-1,a=r.length;while(++n<a){var i=r[n],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=t4(t,e+s);break;case"takeRight":e=t7(e,t-s);break}}return{"start":e,"end":t}}function iv(e){var t=e.match(et);return t?t[1].split(er):[]}function i_(e,t,r){t=av(t,e);var n=-1,a=t.length,i=!1;while(++n<a){var s=iQ(t[n]);if(!(i=e!=null&&r(e,s)))break;e=e[s]}return i||++n!=a?i:(0,!!(a=e==null?0:e.length)&&lp(a)&&iA(s,a)&&(le(e)||o9(e)))}function iS(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&eR.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function iE(e){return typeof e.constructor=="function"&&!iN(e)?r_(eU(e)):{}}function ij(e,t,r){var n=e.constructor;switch(t){case T:return aj(e);case f:case m:return new n(+e);case x:return aT(e,r);case A:case R:case M:case O:case L:case I:case C:case N:case P:return aR(e,r);case b:return new n;case y:case S:return new n(e);case v:return ax(e);case _:return new n;case E:return aA(e)}}function iT(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ee,`{
/* [wrapped with `+t+`] */
`)}function ix(e){return le(e)||o9(e)||!!(eV&&e&&e[eV])}function iA(e,t){var r=typeof e;return!!(t=t==null?0x1fffffffffffff:t)&&(r=="number"||r!="symbol"&&ef.test(e))&&e>-1&&e%1==0&&e<t}function iR(e,t,r){if(!lg(r))return!1;var n=typeof t;return(n=="number"?lr(r)&&iA(t,r.length):n=="string"&&t in r)?o5(r[t],e):(0,!1)}function iM(e,t){if(le(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||lO(e)?!0:(0,Y.test(e)||!V.test(e)||t!=null&&e in ew(t))}function iO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function iL(e){var t=iu(e),r=rv[t];if(typeof r!="function"||!(t in rj.prototype))return!1;if(e===r)return!0;var n=il(r);return!!n&&e===n[0]}function iI(e){return!!eL&&eL in e}(ri&&ik(new ri(new ArrayBuffer(1)))!=x||rs&&ik(new rs)!=b||ro&&ik(ro.resolve())!=w||rl&&ik(new rl)!=_||ru&&ik(new ru)!=j)&&(ik=function(e){var r=nE(e),n=r==k?e.constructor:t,a=n?i0(n):"";if(a)switch(a){case rm:return x;case rd:return b;case rp:return w;case rg:return _;case rb:return j}return r});var iC=ex?lm:cw;function iN(e){var t=e&&e.constructor;return e===(typeof t=="function"&&t.prototype||eT)}function iP(e){return e==e&&!lg(e)}function iD(e,r){return function(n){return n==null?!1:(0,n[e]===r&&(r!==t||e in ew(n)))}}function iB(e){var t=o$(e,function(e){return r.size===500&&r.clear(),e});var r=t.cache;return t}function iF(e,t){var r=e[1],n=t[1],i=r|n,s=i<(1|2|128);var o=n==128&&r==8||n==128&&r==256&&e[7].length<=t[8]||n==(128|256)&&t[7].length<=t[8]&&r==8;if(!(s||o))return e;n&1&&(e[2]=t[2],i|=r&1?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?aL(u,l,t[4]):l,e[4]=u?tX(e[3],a):t[4]}return(l=t[5])&&(u=e[5],e[5]=u?aI(u,l,t[6]):l,e[6]=u?tX(e[5],a):t[6]),(l=t[7])&&(e[7]=l),n&128&&(e[8]=e[8]==null?t[8]:t4(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function iq(e){var t=[];if(e!=null)for(var r in ew(e))t.push(r);return t}function iU(e){return eI.call(e)}function i$(e,r,n){return r=t7(r===t?e.length-1:r,0),function(){var t=arguments,a=-1,i=t7(t.length-r,0),s=en(i);while(++a<i)s[a]=t[r+a];a=-1;var o=en(r+1);while(++a<r)o[a]=t[a];return o[r]=n(s),to(e,this,o)}}function iz(e,t){return t.length<2?e:n_(e,ai(t,0,-1))}function iW(e,r){var n=e.length,a=t4(r.length,n),i=aC(e);while(a--){var s=r[a];e[a]=iA(s,n)?i[s]:t}return e}function iH(e,t){if(t==="constructor"&&typeof e[t]=="function"||t=="__proto__")return;return e[t]}var iG=iK(ar);var iV=e5||function(e,t){return e8.setTimeout(e,t)};var iY=iK(an);function iZ(e,t,r){var n=t+"";return iY(e,iT(n,i1(iv(n),r)))}function iK(e){var r=0,n=0;return function(){var a=rt(),i=16-(a-n);if(n=a,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(t,arguments)}}function iJ(e,r){var n=-1,a=e.length,i=a-1;r=r===t?a:r;while(++n<r){var s=n8(n,i),o=e[s];e[s]=e[n],e[n]=o}return e.length=r,e}var iX=iB(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Z,function(e,r,n,a){t.push(n?a.replace(ei,"$1"):r||e)}),t});function iQ(e){if(typeof e=="string"||lO(e))return e;var t=e+"";return t=="0"&&1/e==-i?"-0":t}function i0(e){if(e!=null){try{return eA.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function i1(e,t){return tu(u,function(r){var n="_."+r[0];t&r[1]&&!tm(e,n)&&e.push(n)}),e.sort()}function i2(e){if(e instanceof rj)return e.clone();var t=new rE(e.__wrapped__,e.__chain__);return t.__actions__=aC(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function i6(e,r,n){r=(n?iR(e,r,n):r===t)?1:t7(lq(r),0);var a=e==null?0:e.length;if(!a||r<1)return[];var i=0,s=0,o=en(e7(a/r));while(i<a)o[s++]=ai(e,i,i+=r);return o}function i3(e){var t=-1,r=e==null?0:e.length,n=0,a=[];while(++t<r){var i=e[t];i&&(a[n++]=i)}return a}function i8(){var e=arguments.length;if(!e)return[];var t=en(e-1),r=arguments[0],n=e;while(n--)t[n-1]=arguments[n];return tg(le(r)?aC(r):[r],ng(t,1))}var i5=n4(function(e,t){return ln(e)?nu(e,ng(t,1,ln,!0)):[]});var i7=n4(function(e,r){var n=sb(r);return ln(n)&&(n=t),ln(e)?nu(e,ng(r,1,ln,!0),ih(n,2)):[]});var i4=n4(function(e,r){var n=sb(r);return ln(n)&&(n=t),ln(e)?nu(e,ng(r,1,ln,!0),t,n):[]});function i9(e,r,n){var a=e==null?0:e.length;return!a?[]:(0,ai(e,(r=n||r===t?1:lq(r))<0?0:r,a))}function se(e,r,n){var a=e==null?0:e.length;return!a?[]:(0,ai(e,0,(r=a-(r=n||r===t?1:lq(r)))<0?0:r))}function st(e,t){return e&&e.length?ap(e,ih(t,3),!0,!0):[]}function sr(e,t){return e&&e.length?ap(e,ih(t,3),!0):[]}function sn(e,t,r,n){var a=e==null?0:e.length;return!a?[]:(r&&typeof r!="number"&&iR(e,t,r)&&(r=0,n=a),nd(e,t,r,n))}function sa(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:lq(r);return a<0&&(a=t7(n+a,0)),tE(e,ih(t,3),a)}function si(e,r,n){var a=e==null?0:e.length;if(!a)return-1;var i=a-1;return n!==t&&(i=lq(n),i=n<0?t7(a+i,0):t4(i,a-1)),tE(e,ih(r,3),i,!0)}function ss(e){return(e==null?0:e.length)?ng(e,1):[]}function so(e){return(e==null?0:e.length)?ng(e,i):[]}function sl(e,r){return!(e==null?0:e.length)?[]:(0,ng(e,r=r===t?1:lq(r)))}function su(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var a=e[t];nr(n,a[0],a[1])}return n}function sc(e){return e&&e.length?e[0]:t}function sh(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:lq(r);return a<0&&(a=t7(n+a,0)),tj(e,t,a)}function sf(e){return(e==null?0:e.length)?ai(e,0,-1):[]}var sm=n4(function(e){var t=tp(e,ak);return t.length&&t[0]===e[0]?nR(t):[]});var sd=n4(function(e){var r=sb(e),n=tp(e,ak);return r===sb(n)?r=t:n.pop(),n.length&&n[0]===e[0]?nR(n,ih(r,2)):[]});var sp=n4(function(e){var r=sb(e),n=tp(e,ak);return(r=typeof r=="function"?r:t)&&n.pop(),n.length&&n[0]===e[0]?nR(n,t,r):[]});function sg(e,t){return e==null?"":tM.call(e,t)}function sb(e){var r=e==null?0:e.length;return r?e[r-1]:t}function sy(e,r,n){var a=e==null?0:e.length;if(!a)return-1;var i=a;return n!==t&&(i=(i=lq(n))<0?t7(a+i,0):t4(i,a-1)),r==r?t2(e,r,i):tE(e,tx,i,!0)}function sk(e,r){return e&&e.length?nX(e,lq(r)):t}var sw=n4(sv);function sv(e,t){return e&&e.length&&t&&t.length?n6(e,t):e}function s_(e,t,r){return e&&e.length&&t&&t.length?n6(e,t,ih(r,2)):e}function sS(e,r,n){return e&&e.length&&r&&r.length?n6(e,r,t,n):e}var sE=ii(function(e,t){var r=e==null?0:e.length,n=nn(e,t);return n3(e,tp(t,function(e){return iA(e,r)?+e:e}).sort(aM)),n});function sj(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,a=[],i=e.length;t=ih(t,3);while(++n<i){var s=e[n];t(s,n,e)&&(r.push(s),a.push(n))}return n3(e,a),r}function sT(e){return e==null?e:ra.call(e)}function sx(e,r,n){var a=e==null?0:e.length;return!a?[]:(n&&typeof n!="number"&&iR(e,r,n)?(r=0,n=a):(r=r==null?0:lq(r),n=n===t?a:lq(n)),ai(e,r,n))}function sA(e,t){return ao(e,t)}function sR(e,t,r){return al(e,t,ih(r,2))}function sM(e,t){var r=e==null?0:e.length;if(r){var n=ao(e,t);if(n<r&&o5(e[n],t))return n}return-1}function sO(e,t){return ao(e,t,!0)}function sL(e,t,r){return al(e,t,ih(r,2),!0)}function sI(e,t){if(e==null?0:e.length){var r=ao(e,t,!0)-1;if(o5(e[r],t))return r}return-1}function sC(e){return e&&e.length?au(e):[]}function sN(e,t){return e&&e.length?au(e,ih(t,2)):[]}function sP(e){var t=e==null?0:e.length;return t?ai(e,1,t):[]}function sD(e,r,n){return!(e&&e.length)?[]:(0,ai(e,0,(r=n||r===t?1:lq(r))<0?0:r))}function sB(e,r,n){var a=e==null?0:e.length;return!a?[]:(0,ai(e,(r=a-(r=n||r===t?1:lq(r)))<0?0:r,a))}function sF(e,t){return e&&e.length?ap(e,ih(t,3),!1,!0):[]}function sq(e,t){return e&&e.length?ap(e,ih(t,3)):[]}var sU=n4(function(e){return af(ng(e,1,ln,!0))});var s$=n4(function(e){var r=sb(e);return ln(r)&&(r=t),af(ng(e,1,ln,!0),ih(r,2))});var sz=n4(function(e){var r=sb(e);return r=typeof r=="function"?r:t,af(ng(e,1,ln,!0),t,r)});function sW(e){return e&&e.length?af(e):[]}function sH(e,t){return e&&e.length?af(e,ih(t,2)):[]}function sG(e,r){return r=typeof r=="function"?r:t,e&&e.length?af(e,t,r):[]}function sV(e){if(!(e&&e.length))return[];var t=0;return e=tf(e,function(e){if(ln(e))return t=t7(e.length,t),!0}),tC(t,function(t){return tp(e,tR(t))})}function sY(e,r){if(!(e&&e.length))return[];var n=sV(e);return r==null?n:(0,tp(n,function(e){return to(r,t,e)}))}var sZ=n4(function(e,t){return ln(e)?nu(e,t):[]});var sK=n4(function(e){return ab(tf(e,ln))});var sJ=n4(function(e){var r=sb(e);return ln(r)&&(r=t),ab(tf(e,ln),ih(r,2))});var sX=n4(function(e){var r=sb(e);return r=typeof r=="function"?r:t,ab(tf(e,ln),t,r)});var sQ=n4(sV);function s0(e,t){return ay(e||[],t||[],r7)}function s1(e,t){return ay(e||[],t||[],at)}var s2=n4(function(e){var r=e.length,n=r>1?e[r-1]:t;return n=typeof n=="function"?(e.pop(),n):t,sY(e,n)});function s6(e){var t=rv(e);return t.__chain__=!0,t}function s3(e,t){return t(e),e}function s8(e,t){return t(e)}var s5=ii(function(e){var r=e.length,n=r?e[0]:0,a=this.__wrapped__,i=function(t){return nn(t,e)};return r>1||this.__actions__.length||!(a instanceof rj)||!iA(n)?this.thru(i):((a=a.slice(n,+n+(r?1:0))).__actions__.push({"func":s8,"args":[i],"thisArg":t}),new rE(a,this.__chain__).thru(function(e){return r&&!e.length&&e.push(t),e}))});function s7(){return s6(this)}function s4(){return new rE(this.value(),this.__chain__)}function s9(){this.__values__===t&&(this.__values__=lB(this.value()));var e=this.__index__>=this.__values__.length,r=e?t:this.__values__[this.__index__++];return{"done":e,"value":r}}function oe(){return this}function ot(e){var r,n=this;while(n instanceof rS){var a=i2(n);a.__index__=0,a.__values__=t,r?i.__wrapped__=a:r=a;var i=a;n=n.__wrapped__}return i.__wrapped__=e,r}function or(){var e=this.__wrapped__;if(e instanceof rj){var r=e;return this.__actions__.length&&(r=new rj(this)),(r=r.reverse()).__actions__.push({"func":s8,"args":[sT],"thisArg":t}),new rE(r,this.__chain__)}return this.thru(sT)}function on(){return ag(this.__wrapped__,this.__actions__)}var oa=aB(function(e,t,r){eR.call(e,r)?++e[r]:nr(e,r,1)});function oi(e,r,n){var a=le(e)?th:nf;return n&&iR(e,r,n)&&(r=t),a(e,ih(r,3))}function os(e,t){return(le(e)?tf:np)(e,ih(t,3))}var oo=aV(sa);var ol=aV(si);function ou(e,t){return ng(oy(e,t),1)}function oc(e,t){return ng(oy(e,t),i)}function oh(e,r,n){return n=n===t?1:lq(n),ng(oy(e,r),n)}function of(e,t){return(le(e)?tu:nc)(e,ih(t,3))}function om(e,t){return(le(e)?tc:nh)(e,ih(t,3))}var od=aB(function(e,t,r){eR.call(e,r)?e[r].push(t):nr(e,r,[t])});function op(e,t,r,n){e=lr(e)?e:uS(e),r=r&&!n?lq(r):0;var a=e.length;return r<0&&(r=t7(a+r,0)),lM(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&tj(e,t,r)>-1}var og=n4(function(e,t,r){var n=-1,a=typeof t=="function",i=lr(e)?en(e.length):[];return nc(e,function(e){i[++n]=a?to(t,e,r):nO(e,t,r)}),i});var ob=aB(function(e,t,r){nr(e,r,t)});function oy(e,t){return(le(e)?tp:nV)(e,ih(t,3))}function ok(e,r,n,a){return e==null?[]:(!le(r)&&(r=r==null?[]:[r]),!le(n=a?t:n)&&(n=n==null?[]:[n]),nQ(e,r,n))}var ow=aB(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function ov(e,t,r){var n=le(e)?tb:tO,a=arguments.length<3;return n(e,ih(t,4),r,a,nc)}function o_(e,t,r){var n=le(e)?ty:tO,a=arguments.length<3;return n(e,ih(t,4),r,a,nh)}function oS(e,t){return(le(e)?tf:np)(e,oz(ih(t,3)))}function oE(e){return(le(e)?r6:n9)(e)}function oj(e,r,n){return r=(n?iR(e,r,n):r===t)?1:lq(r),(le(e)?r3:ae)(e,r)}function oT(e){return(le(e)?r8:aa)(e)}function ox(e){if(e==null)return 0;if(lr(e))return lM(e)?t6(e):e.length;var t=ik(e);return t==b||t==_?e.size:(0,nW(e).length)}function oA(e,r,n){var a=le(e)?tk:as;return n&&iR(e,r,n)&&(r=t),a(e,ih(r,3))}var oR=n4(function(e,t){if(e==null)return[];var r=t.length;return r>1&&iR(e,t[0],t[1])?t=[]:r>2&&iR(t[0],t[1],t[2])&&(t=[t[0]]),nQ(e,ng(t,1),[])});var oM=e3||function(){return e8.Date.now()};function oO(e,t){if(typeof t!="function")throw new eS(r);return e=lq(e),function(){if(--e<1)return t.apply(this,arguments)}}function oL(e,r,n){return r=n?t:r,r=e&&r==null?e.length:r,a7(e,128,t,t,t,t,r)}function oI(e,n){var a;if(typeof n!="function")throw new eS(r);return e=lq(e),function(){return--e>0&&(a=n.apply(this,arguments)),e<=1&&(n=t),a}}var oC=n4(function(e,t,r){var n=1;if(r.length){var a=tX(r,ic(oC));n|=32}return a7(e,n,t,r,a)});var oN=n4(function(e,t,r){var n=1|2;if(r.length){var a=tX(r,ic(oN));n|=32}return a7(t,n,e,r,a)});function oP(e,r,n){r=n?t:r;var a=a7(e,8,t,t,t,t,t,r);return a.placeholder=oP.placeholder,a}function oD(e,r,n){r=n?t:r;var a=a7(e,16,t,t,t,t,t,r);return a.placeholder=oD.placeholder,a}function oB(e,n,a){var i,s,o,l,u,c,h=0,f=!1,m=!1,d=!0;if(typeof e!="function")throw new eS(r);function p(r){var n=i,a=s;return i=s=t,h=r,l=e.apply(a,n)}function g(e){return h=e,u=iV(k,n),f?p(e):l}function b(e){var t=e-c,r=e-h,a=n-t;return m?t4(a,o-r):a}function y(e){var r=e-c,a=e-h;return c===t||r>=n||r<0||m&&a>=o}function k(){var e=oM();if(y(e))return w(e);u=iV(k,b(e))}function w(e){return(u=t,d&&i)?p(e):(i=s=t,l)}function v(){return u===t?l:w(oM())}function _(){var e=oM(),r=y(e);if(i=arguments,s=this,c=e,r){if(u===t)return g(c);if(m)return aS(u),u=iV(k,n),p(c)}return u===t&&(u=iV(k,n)),l}return n=l$(n)||0,lg(a)&&(f=!!a.leading,o=(m="maxWait"in a)?t7(l$(a.maxWait)||0,n):o,d="trailing"in a?!!a.trailing:d),_.cancel=function(){u!==t&&aS(u),h=0,i=c=s=u=t},_.flush=v,_}var oF=n4(function(e,t){return nl(e,1,t)});var oq=n4(function(e,t,r){return nl(e,l$(t)||0,r)});function oU(e){return a7(e,512)}function o$(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new eS(r);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(o$.Cache||rU),n}function oz(e){if(typeof e!="function")throw new eS(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function oW(e){return oI(2,e)}o$.Cache=rU;var oH=n4(function(e,t){var r=(t=t.length==1&&le(t[0])?tp(t[0],tD(ih())):tp(ng(t,1),tD(ih()))).length;return n4(function(n){var a=-1,i=t4(n.length,r);while(++a<i)n[a]=t[a].call(this,n[a]);return to(e,this,n)})});var oG=n4(function(e,r){var n=tX(r,ic(oG));return a7(e,32,t,r,n)});var oV=n4(function(e,r){var n=tX(r,ic(oV));return a7(e,64,t,r,n)});var oY=ii(function(e,r){return a7(e,256,t,t,t,r)});function oZ(e,n){if(typeof e!="function")throw new eS(r);return n4(e,n=n===t?n:lq(n))}function oK(e,t){if(typeof e!="function")throw new eS(r);return t=t==null?0:t7(lq(t),0),n4(function(r){var n=r[t],a=a_(r,0,t);return n&&tg(a,n),to(e,this,a)})}function oJ(e,t,n){var a=!0,i=!0;if(typeof e!="function")throw new eS(r);return lg(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),oB(e,t,{"leading":a,"maxWait":t,"trailing":i})}function oX(e){return oL(e,1)}function oQ(e,t){return oG(aw(t),e)}function o0(){if(!arguments.length)return[];var e=arguments[0];return le(e)?e:[e]}function o1(e){return ni(e,4)}function o2(e,r){return ni(e,4,r=typeof r=="function"?r:t)}function o6(e){return ni(e,1|4)}function o3(e,r){return ni(e,1|4,r=typeof r=="function"?r:t)}function o8(e,t){return t==null||no(e,t,ua(t))}function o5(e,t){return e===t||e!=e&&t!=t}var o7=a2(nj);var o4=a2(function(e,t){return e>=t});var o9=nL(function(){return arguments}())?nL:function(e){return lb(e)&&eR.call(e,"callee")&&!ez.call(e,"callee")};var le=en.isArray;var lt=tt?tD(tt):nI;function lr(e){return e!=null&&lp(e.length)&&!lm(e)}function ln(e){return lb(e)&&lr(e)}function la(e){return e===!0||e===!1||lb(e)&&nE(e)==f}var li=tw||cw;var ls=tr?tD(tr):nC;function lo(e){return lb(e)&&e.nodeType===1&&!lT(e)}function ll(e){if(e==null)return!0;if(lr(e)&&(le(e)||typeof e=="string"||typeof e.splice=="function"||li(e)||lL(e)||o9(e)))return!e.length;var t=ik(e);if(t==b||t==_)return!e.size;if(iN(e))return!nW(e).length;for(var r in e)if(eR.call(e,r))return!1;return!0}function lu(e,t){return nN(e,t)}function lc(e,r,n){var a=(n=typeof n=="function"?n:t)?n(e,r):t;return a===t?nN(e,r,t,n):!!a}function lh(e){if(!lb(e))return!1;var t=nE(e);return t==d||t=="[object DOMException]"||typeof e.message=="string"&&typeof e.name=="string"&&!lT(e)}function lf(e){return typeof e=="number"&&tv(e)}function lm(e){if(!lg(e))return!1;var t=nE(e);return t==p||t==g||t=="[object AsyncFunction]"||t=="[object Proxy]"}function ld(e){return typeof e=="number"&&e==lq(e)}function lp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function lg(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function lb(e){return e!=null&&typeof e=="object"}var ly=tn?tD(tn):nD;function lk(e,t){return e===t||nB(e,t,id(t))}function lw(e,r,n){return n=typeof n=="function"?n:t,nB(e,r,id(r),n)}function lv(e){return lj(e)&&e!=+e}function l_(e){if(iC(e))throw new eb("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return nF(e)}function lS(e){return e===null}function lE(e){return e==null}function lj(e){return typeof e=="number"||lb(e)&&nE(e)==y}function lT(e){if(!lb(e)||nE(e)!=k)return!1;var t=eU(e);if(t===null)return!0;var r=eR.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&eA.call(r)==eC}var lx=ta?tD(ta):nq;function lA(e){return ld(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff}var lR=ti?tD(ti):nU;function lM(e){return typeof e=="string"||!le(e)&&lb(e)&&nE(e)==S}function lO(e){return typeof e=="symbol"||lb(e)&&nE(e)==E}var lL=ts?tD(ts):n$;function lI(e){return e===t}function lC(e){return lb(e)&&ik(e)==j}function lN(e){return lb(e)&&nE(e)=="[object WeakSet]"}var lP=a2(nG);var lD=a2(function(e,t){return e<=t});function lB(e){if(!e)return[];if(lr(e))return lM(e)?t3(e):aC(e);if(eY&&e[eY])return tZ(e[eY]());var t=ik(e);return(t==b?tK:t==_?tQ:uS)(e)}function lF(e){return!e?e===0?e:0:(0,(e=l$(e))===i||e===-i)?(e<0?-1:1)*17976931348623157e292:(0,e==e?e:0)}function lq(e){var t=lF(e),r=t%1;return t==t?r?t-r:t:0}function lU(e){return e?na(lq(e),0,0xffffffff):0}function l$(e){if(typeof e=="number")return e;if(lO(e))return s;if(lg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=tP(e);var r=eu.test(e);return r||eh.test(e)?e2(e.slice(2),r?2:8):el.test(e)?s:+e}function lz(e){return aN(e,ui(e))}function lW(e){return e?na(lq(e),-0x1fffffffffffff,0x1fffffffffffff):e===0?e:0}function lH(e){return e==null?"":ah(e)}var lG=aF(function(e,t){if(iN(t)||lr(t)){aN(t,ua(t),e);return}for(var r in t)eR.call(t,r)&&r7(e,r,t[r])});var lV=aF(function(e,t){aN(t,ui(t),e)});var lY=aF(function(e,t,r,n){aN(t,ui(t),e,n)});var lZ=aF(function(e,t,r,n){aN(t,ua(t),e,n)});var lK=ii(nn);function lJ(e,t){var r=r_(e);return t==null?r:ne(r,t)}var lX=n4(function(e,r){e=ew(e);var n=-1;var a=r.length;var i=a>2?r[2]:t;i&&iR(r[0],r[1],i)&&(a=1);while(++n<a){var s=r[n];var o=ui(s);var l=-1;var u=o.length;while(++l<u){var c=o[l];var h=e[c];(h===t||o5(h,eT[c])&&!eR.call(e,c))&&(e[c]=s[c])}}return e});var lQ=n4(function(e){return e.push(t,a9),to(uu,t,e)});function l0(e,t){return tS(e,ih(t,3),nk)}function l1(e,t){return tS(e,ih(t,3),nw)}function l2(e,t){return e==null?e:nb(e,ih(t,3),ui)}function l6(e,t){return e==null?e:ny(e,ih(t,3),ui)}function l3(e,t){return e&&nk(e,ih(t,3))}function l8(e,t){return e&&nw(e,ih(t,3))}function l5(e){return e==null?[]:nv(e,ua(e))}function l7(e){return e==null?[]:nv(e,ui(e))}function l4(e,r,n){var a=e==null?t:n_(e,r);return a===t?n:a}function l9(e,t){return e!=null&&i_(e,t,nT)}function ue(e,t){return e!=null&&i_(e,t,nx)}var ut=aK(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=eI.call(t)),e[t]=r},u4(cr));var ur=aK(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=eI.call(t)),eR.call(e,t)?e[t].push(r):e[t]=[r]},ih);var un=n4(nO);function ua(e){return lr(e)?r2(e):nW(e)}function ui(e){return lr(e)?r2(e,!0):nH(e)}function us(e,t){var r={};return t=ih(t,3),nk(e,function(e,n,a){nr(r,t(e,n,a),e)}),r}function uo(e,t){var r={};return t=ih(t,3),nk(e,function(e,n,a){nr(r,n,t(e,n,a))}),r}var ul=aF(function(e,t,r){nK(e,t,r)});var uu=aF(function(e,t,r,n){nK(e,t,r,n)});var uc=ii(function(e,t){var r={};if(e==null)return r;var n=!1;t=tp(t,function(t){return t=av(t,e),n||(n=t.length>1),t}),aN(e,io(e),r),n&&(r=ni(r,1|2|4,ie));var a=t.length;while(a--)am(r,t[a]);return r});function uh(e,t){return um(e,oz(ih(t)))}var uf=ii(function(e,t){return e==null?{}:n0(e,t)});function um(e,t){if(e==null)return{};var r=tp(io(e),function(e){return[e]});return t=ih(t),n1(e,r,function(e,r){return t(e,r[0])})}function ud(e,r,n){r=av(r,e);var a=-1,i=r.length;!i&&(i=1,e=t);while(++a<i){var s=e==null?t:e[iQ(r[a])];s===t&&(a=i,s=n),e=lm(s)?s.call(e):s}return e}function up(e,t,r){return e==null?e:at(e,t,r)}function ug(e,r,n,a){return a=typeof a=="function"?a:t,e==null?e:at(e,r,n,a)}var ub=a5(ua);var uy=a5(ui);function uk(e,t,r){var n=le(e),a=n||li(e)||lL(e);if(t=ih(t,4),r==null){var i=e&&e.constructor;r=a?n?new i:[]:lg(e)&&lm(i)?r_(eU(e)):{}}return(a?tu:nk)(e,function(e,n,a){return t(r,e,n,a)}),r}function uw(e,t){return e==null?!0:am(e,t)}function uv(e,t,r){return e==null?e:ad(e,t,aw(r))}function u_(e,r,n,a){return a=typeof a=="function"?a:t,e==null?e:ad(e,r,aw(n),a)}function uS(e){return e==null?[]:tB(e,ua(e))}function uE(e){return e==null?[]:tB(e,ui(e))}function uj(e,r,n){return n===t&&(n=r,r=t),n!==t&&(n=(n=l$(n))==n?n:0),r!==t&&(r=(r=l$(r))==r?r:0),na(l$(e),r,n)}function uT(e,r,n){return r=lF(r),n===t?(n=r,r=0):n=lF(n),nA(e=l$(e),r,n)}function ux(e,r,n){if(n&&typeof n!="boolean"&&iR(e,r,n)&&(r=n=t),n===t&&(typeof r=="boolean"?(n=r,r=t):typeof e=="boolean"&&(n=e,e=t)),e===t&&r===t?(e=0,r=1):(e=lF(e),r===t?(r=e,e=0):r=lF(r)),e>r){var a=e;e=r,r=a}if(n||e%1||r%1){var i=rn();return t4(e+i*(r-e+e1("1e-"+((i+"").length-1))),r)}return n8(e,r)}var uA=aW(function(e,t,r){return t=t.toLowerCase(),e+(r?uR(t):t)});function uR(e){return u2(lH(e).toLowerCase())}function uM(e){return(e=lH(e))&&e.replace(em,tz).replace(eH,"")}function uO(e,r,n){e=lH(e),r=ah(r);var a=e.length;var i=n=n===t?a:na(lq(n),0,a);return(n-=r.length)>=0&&e.slice(n,i)==r}function uL(e){return(e=lH(e))&&z.test(e)?e.replace(U,tW):e}function uI(e){return(e=lH(e))&&J.test(e)?e.replace(K,"\\$&"):e}var uC=aW(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});var uN=aW(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()});var uP=az("toLowerCase");function uD(e,t,r){e=lH(e);var n=(t=lq(t))?t6(e):0;if(!t||n>=t)return e;var a=(t-n)/2;return aQ(e9(a),r)+e+aQ(e7(a),r)}function uB(e,t,r){e=lH(e);var n=(t=lq(t))?t6(e):0;return t&&n<t?e+aQ(t-n,r):e}function uF(e,t,r){e=lH(e);var n=(t=lq(t))?t6(e):0;return t&&n<t?aQ(t-n,r)+e:e}function uq(e,t,r){return r||t==null?t=0:t&&(t=+t),rr(lH(e).replace(X,""),t||0)}function uU(e,r,n){return r=(n?iR(e,r,n):r===t)?1:lq(r),n7(lH(e),r)}function u$(){var e=arguments,t=lH(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var uz=aW(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function uW(e,r,n){if(n&&typeof n!="number"&&iR(e,r,n)&&(r=n=t),!(n=n===t?0xffffffff:n>>>0))return[];if((e=lH(e))&&(typeof r=="string"||r!=null&&!lx(r))){if(!(r=ah(r))&&tV(e))return a_(t3(e),0,n)}return e.split(r,n)}var uH=aW(function(e,t,r){return e+(r?" ":"")+u2(t)});function uG(e,t,r){return e=lH(e),r=r==null?0:na(lq(r),0,e.length),t=ah(t),e.slice(r,r+t.length)==t}function uV(e,r,n){var a=rv.templateSettings;n&&iR(e,r,n)&&(r=t),e=lH(e),r=lZ({},r,a,a4);var i=lZ({},r.imports,a.imports,a4),s=ua(i),o=tB(i,s);tu(s,function(e){if(ea.test(e))throw new eb("Invalid `imports` option passed into `_.template`")});var l,u,c=0,h=r.interpolate||ed,f="__p += '";var m=ev((r.escape||ed).source+"|"+h.source+"|"+(h===G?es:ed).source+"|"+(r.evaluate||ed).source+"|$","g");var d="//# sourceURL="+(eR.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eJ+"]")+`
`;e.replace(m,function(t,r,n,a,i,s){return n||(n=a),f+=e.slice(c,s).replace(ep,tH),r&&(l=!0,f+=`' +
__e(`+r+`) +
'`),i&&(u=!0,f+=`';
`+i+`;
__p += '`),n&&(f+=`' +
((__t = (`+n+`)) == null ? '' : __t) +
'`),c=s+t.length,t}),f+=`';
`;var p=eR.call(r,"variable")&&r.variable;if(p){if(ea.test(p))throw new eb("Invalid `variable` option passed into `_.template`")}else f=`with (obj) {
`+f+`
}
`;f=(u?f.replace(D,""):f).replace(B,"$1").replace(F,"$1;"),f="function("+(p||"obj")+`) {
`+(p?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(l?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
`+`function print() { __p += __j.call(arguments, '') }
`:`;
`)+f+`return __p
}`;var g=u3(function(){return ey(s,d+"return "+f).apply(t,o)});if(g.source=f,lh(g))throw g;return g}function uY(e){return lH(e).toLowerCase()}function uZ(e){return lH(e).toUpperCase()}function uK(e,r,n){if((e=lH(e))&&(n||r===t))return tP(e);if(!e||!(r=ah(r)))return e;var a=t3(e),i=t3(r),s=tq(a,i),o=tU(a,i)+1;return a_(a,s,o).join("")}function uJ(e,r,n){if((e=lH(e))&&(n||r===t))return e.slice(0,t8(e)+1);if(!e||!(r=ah(r)))return e;var a=t3(e),i=tU(a,t3(r))+1;return a_(a,0,i).join("")}function uX(e,r,n){if((e=lH(e))&&(n||r===t))return e.replace(X,"");if(!e||!(r=ah(r)))return e;var a=t3(e),i=tq(a,t3(r));return a_(a,i).join("")}function uQ(e,r){var n=30,a="...";if(lg(r)){var i="separator"in r?r.separator:i;n="length"in r?lq(r.length):n,a="omission"in r?ah(r.omission):a}var s=(e=lH(e)).length;if(tV(e)){var o=t3(e);s=o.length}if(n>=s)return e;var l=n-t6(a);if(l<1)return a;var u=o?a_(o,0,l).join(""):e.slice(0,l);if(i===t)return u+a;if(o&&(l+=u.length-l),lx(i)){if(e.slice(l).search(i)){var c,h=u;!i.global&&(i=ev(i.source,lH(eo.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(h))var f=c.index;u=u.slice(0,f===t?l:f)}}else if(e.indexOf(ah(i),l)!=l){var m=u.lastIndexOf(i);m>-1&&(u=u.slice(0,m))}return u+a}function u0(e){return(e=lH(e))&&$.test(e)?e.replace(q,t5):e}var u1=aW(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()});var u2=az("toUpperCase");function u6(e,r,n){return(e=lH(e),(r=n?t:r)===t)?tY(e)?t9(e):t_(e):(0,e.match(r)||[])}var u3=n4(function(e,r){try{return to(e,t,r)}catch(e){return lh(e)?e:new eb(e)}});var u8=ii(function(e,t){return tu(t,function(t){nr(e,t=iQ(t),oC(e[t],e))}),e});function u5(e){var t=e==null?0:e.length,n=ih();return e=!t?[]:tp(e,function(e){if(typeof e[1]!="function")throw new eS(r);return[n(e[0]),e[1]]}),n4(function(r){var n=-1;while(++n<t){var a=e[n];if(to(a[0],this,r))return to(a[1],this,r)}})}function u7(e){return ns(ni(e,1))}function u4(e){return function(){return e}}function u9(e,t){return e==null||e!=e?t:e}var ce=aY();var ct=aY(!0);function cr(e){return e}function cn(e){return nz(typeof e=="function"?e:ni(e,1))}function ca(e){return nY(ni(e,1))}function ci(e,t){return nZ(e,ni(t,1))}var cs=n4(function(e,t){return function(r){return nO(r,e,t)}});var co=n4(function(e,t){return function(r){return nO(e,r,t)}});function cl(e,t,r){var n=ua(t),a=nv(t,n);r==null&&!(lg(t)&&(a.length||!n.length))&&(r=t,t=e,e=this,a=nv(t,ua(t)));var i=!(lg(r)&&"chain"in r)||!!r.chain,s=lm(e);return tu(a,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=aC(this.__actions__)).push({"func":n,"args":arguments,"thisArg":e}),r.__chain__=t,r}return n.apply(e,tg([this.value()],arguments))})}),e}function cu(){return e8._===this&&(e8._=eN),this}function cc(){}function ch(e){return e=lq(e),n4(function(t){return nX(t,e)})}var cf=aX(tp);var cm=aX(th);var cd=aX(tk);function cp(e){return iM(e)?tR(iQ(e)):n2(e)}function cg(e){return function(r){return e==null?t:n_(e,r)}}var cb=a1();var cy=a1(!0);function ck(){return[]}function cw(){return!1}function cv(){return{}}function c_(){return""}function cS(){return!0}function cE(e,t){if((e=lq(e))<1||e>0x1fffffffffffff)return[];var r=0xffffffff,n=t4(e,0xffffffff);t=ih(t),e-=0xffffffff;var a=tC(n,t);while(++r<e)t(r);return a}function cj(e){return le(e)?tp(e,iQ):(0,lO(e)?[e]:aC(iX(lH(e))))}function cT(e){var t=++eM;return lH(e)+t}var cx=aJ(function(e,t){return e+t},0);var cA=a3("ceil");var cR=aJ(function(e,t){return e/t},1);var cM=a3("floor");function cO(e){return e&&e.length?nm(e,cr,nj):t}function cL(e,r){return e&&e.length?nm(e,ih(r,2),nj):t}function cI(e){return tA(e,cr)}function cC(e,t){return tA(e,ih(t,2))}function cN(e){return e&&e.length?nm(e,cr,nG):t}function cP(e,r){return e&&e.length?nm(e,ih(r,2),nG):t}var cD=aJ(function(e,t){return e*t},1);var cB=a3("round");var cF=aJ(function(e,t){return e-t},0);function cq(e){return e&&e.length?tI(e,cr):0}function cU(e,t){return e&&e.length?tI(e,ih(t,2)):0}var c$;return rv.after=oO,rv.ary=oL,rv.assign=lG,rv.assignIn=lV,rv.assignInWith=lY,rv.assignWith=lZ,rv.at=lK,rv.before=oI,rv.bind=oC,rv.bindAll=u8,rv.bindKey=oN,rv.castArray=o0,rv.chain=s6,rv.chunk=i6,rv.compact=i3,rv.concat=i8,rv.cond=u5,rv.conforms=u7,rv.constant=u4,rv.countBy=oa,rv.create=lJ,rv.curry=oP,rv.curryRight=oD,rv.debounce=oB,rv.defaults=lX,rv.defaultsDeep=lQ,rv.defer=oF,rv.delay=oq,rv.difference=i5,rv.differenceBy=i7,rv.differenceWith=i4,rv.drop=i9,rv.dropRight=se,rv.dropRightWhile=st,rv.dropWhile=sr,rv.fill=sn,rv.filter=os,rv.flatMap=ou,rv.flatMapDeep=oc,rv.flatMapDepth=oh,rv.flatten=ss,rv.flattenDeep=so,rv.flattenDepth=sl,rv.flip=oU,rv.flow=ce,rv.flowRight=ct,rv.fromPairs=su,rv.functions=l5,rv.functionsIn=l7,rv.groupBy=od,rv.initial=sf,rv.intersection=sm,rv.intersectionBy=sd,rv.intersectionWith=sp,rv.invert=ut,rv.invertBy=ur,rv.invokeMap=og,rv.iteratee=cn,rv.keyBy=ob,rv.keys=ua,rv.keysIn=ui,rv.map=oy,rv.mapKeys=us,rv.mapValues=uo,rv.matches=ca,rv.matchesProperty=ci,rv.memoize=o$,rv.merge=ul,rv.mergeWith=uu,rv.method=cs,rv.methodOf=co,rv.mixin=cl,rv.negate=oz,rv.nthArg=ch,rv.omit=uc,rv.omitBy=uh,rv.once=oW,rv.orderBy=ok,rv.over=cf,rv.overArgs=oH,rv.overEvery=cm,rv.overSome=cd,rv.partial=oG,rv.partialRight=oV,rv.partition=ow,rv.pick=uf,rv.pickBy=um,rv.property=cp,rv.propertyOf=cg,rv.pull=sw,rv.pullAll=sv,rv.pullAllBy=s_,rv.pullAllWith=sS,rv.pullAt=sE,rv.range=cb,rv.rangeRight=cy,rv.rearg=oY,rv.reject=oS,rv.remove=sj,rv.rest=oZ,rv.reverse=sT,rv.sampleSize=oj,rv.set=up,rv.setWith=ug,rv.shuffle=oT,rv.slice=sx,rv.sortBy=oR,rv.sortedUniq=sC,rv.sortedUniqBy=sN,rv.split=uW,rv.spread=oK,rv.tail=sP,rv.take=sD,rv.takeRight=sB,rv.takeRightWhile=sF,rv.takeWhile=sq,rv.tap=s3,rv.throttle=oJ,rv.thru=s8,rv.toArray=lB,rv.toPairs=ub,rv.toPairsIn=uy,rv.toPath=cj,rv.toPlainObject=lz,rv.transform=uk,rv.unary=oX,rv.union=sU,rv.unionBy=s$,rv.unionWith=sz,rv.uniq=sW,rv.uniqBy=sH,rv.uniqWith=sG,rv.unset=uw,rv.unzip=sV,rv.unzipWith=sY,rv.update=uv,rv.updateWith=u_,rv.values=uS,rv.valuesIn=uE,rv.without=sZ,rv.words=u6,rv.wrap=oQ,rv.xor=sK,rv.xorBy=sJ,rv.xorWith=sX,rv.zip=sQ,rv.zipObject=s0,rv.zipObjectDeep=s1,rv.zipWith=s2,rv.entries=ub,rv.entriesIn=uy,rv.extend=lV,rv.extendWith=lY,cl(rv,rv),rv.add=cx,rv.attempt=u3,rv.camelCase=uA,rv.capitalize=uR,rv.ceil=cA,rv.clamp=uj,rv.clone=o1,rv.cloneDeep=o6,rv.cloneDeepWith=o3,rv.cloneWith=o2,rv.conformsTo=o8,rv.deburr=uM,rv.defaultTo=u9,rv.divide=cR,rv.endsWith=uO,rv.eq=o5,rv.escape=uL,rv.escapeRegExp=uI,rv.every=oi,rv.find=oo,rv.findIndex=sa,rv.findKey=l0,rv.findLast=ol,rv.findLastIndex=si,rv.findLastKey=l1,rv.floor=cM,rv.forEach=of,rv.forEachRight=om,rv.forIn=l2,rv.forInRight=l6,rv.forOwn=l3,rv.forOwnRight=l8,rv.get=l4,rv.gt=o7,rv.gte=o4,rv.has=l9,rv.hasIn=ue,rv.head=sc,rv.identity=cr,rv.includes=op,rv.indexOf=sh,rv.inRange=uT,rv.invoke=un,rv.isArguments=o9,rv.isArray=le,rv.isArrayBuffer=lt,rv.isArrayLike=lr,rv.isArrayLikeObject=ln,rv.isBoolean=la,rv.isBuffer=li,rv.isDate=ls,rv.isElement=lo,rv.isEmpty=ll,rv.isEqual=lu,rv.isEqualWith=lc,rv.isError=lh,rv.isFinite=lf,rv.isFunction=lm,rv.isInteger=ld,rv.isLength=lp,rv.isMap=ly,rv.isMatch=lk,rv.isMatchWith=lw,rv.isNaN=lv,rv.isNative=l_,rv.isNil=lE,rv.isNull=lS,rv.isNumber=lj,rv.isObject=lg,rv.isObjectLike=lb,rv.isPlainObject=lT,rv.isRegExp=lx,rv.isSafeInteger=lA,rv.isSet=lR,rv.isString=lM,rv.isSymbol=lO,rv.isTypedArray=lL,rv.isUndefined=lI,rv.isWeakMap=lC,rv.isWeakSet=lN,rv.join=sg,rv.kebabCase=uC,rv.last=sb,rv.lastIndexOf=sy,rv.lowerCase=uN,rv.lowerFirst=uP,rv.lt=lP,rv.lte=lD,rv.max=cO,rv.maxBy=cL,rv.mean=cI,rv.meanBy=cC,rv.min=cN,rv.minBy=cP,rv.stubArray=ck,rv.stubFalse=cw,rv.stubObject=cv,rv.stubString=c_,rv.stubTrue=cS,rv.multiply=cD,rv.nth=sk,rv.noConflict=cu,rv.noop=cc,rv.now=oM,rv.pad=uD,rv.padEnd=uB,rv.padStart=uF,rv.parseInt=uq,rv.random=ux,rv.reduce=ov,rv.reduceRight=o_,rv.repeat=uU,rv.replace=u$,rv.result=ud,rv.round=cB,rv.runInContext=e,rv.sample=oE,rv.size=ox,rv.snakeCase=uz,rv.some=oA,rv.sortedIndex=sA,rv.sortedIndexBy=sR,rv.sortedIndexOf=sM,rv.sortedLastIndex=sO,rv.sortedLastIndexBy=sL,rv.sortedLastIndexOf=sI,rv.startCase=uH,rv.startsWith=uG,rv.subtract=cF,rv.sum=cq,rv.sumBy=cU,rv.template=uV,rv.times=cE,rv.toFinite=lF,rv.toInteger=lq,rv.toLength=lU,rv.toLower=uY,rv.toNumber=l$,rv.toSafeInteger=lW,rv.toString=lH,rv.toUpper=uZ,rv.trim=uK,rv.trimEnd=uJ,rv.trimStart=uX,rv.truncate=uQ,rv.unescape=u0,rv.uniqueId=cT,rv.upperCase=u1,rv.upperFirst=u2,rv.each=of,rv.eachRight=om,rv.first=sc,cl(rv,(c$={},nk(rv,function(e,t){!eR.call(rv.prototype,t)&&(c$[t]=e)}),c$),{"chain":!1}),rv.VERSION="4.18.1",tu(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rv[e].placeholder=rv}),tu(["drop","take"],function(e,r){rj.prototype[e]=function(n){n=n===t?1:t7(lq(n),0);var a=this.__filtered__&&!r?new rj(this):this.clone();return a.__filtered__?a.__takeCount__=t4(n,a.__takeCount__):a.__views__.push({"size":t4(n,0xffffffff),"type":e+(a.__dir__<0?"Right":"")}),a},rj.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tu(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==1||r==3;rj.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({"iteratee":ih(e,3),"type":r}),t.__filtered__=t.__filtered__||n,t}}),tu(["head","last"],function(e,t){var r="take"+(t?"Right":"");rj.prototype[e]=function(){return this[r](1).value()[0]}}),tu(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rj.prototype[e]=function(){return this.__filtered__?new rj(this):this[r](1)}}),rj.prototype.compact=function(){return this.filter(cr)},rj.prototype.find=function(e){return this.filter(e).head()},rj.prototype.findLast=function(e){return this.reverse().find(e)},rj.prototype.invokeMap=n4(function(e,t){return typeof e=="function"?new rj(this):(0,this.map(function(r){return nO(r,e,t)}))}),rj.prototype.reject=function(e){return this.filter(oz(ih(e)))},rj.prototype.slice=function(e,r){e=lq(e);var n=this;return n.__filtered__&&(e>0||r<0)?new rj(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),r!==t&&(n=(r=lq(r))<0?n.dropRight(-r):n.take(r-e)),n)},rj.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rj.prototype.toArray=function(){return this.take(0xffffffff)},nk(rj.prototype,function(e,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),a=/^(?:head|last)$/.test(r),i=rv[a?"take"+(r=="last"?"Right":""):r],s=a||/^find/.test(r);if(!i)return;rv.prototype[r]=function(){var r=this.__wrapped__,o=a?[1]:arguments,l=r instanceof rj,u=o[0],c=l||le(r);var h=function(e){var t=i.apply(rv,tg([e],o));return a&&f?t[0]:t};c&&n&&typeof u=="function"&&u.length!=1&&(l=c=!1);var f=this.__chain__,m=!!this.__actions__.length,d=s&&!f,p=l&&!m;if(!s&&c){r=p?r:new rj(this);var g=e.apply(r,o);return g.__actions__.push({"func":s8,"args":[h],"thisArg":t}),new rE(g,f)}return d&&p?e.apply(this,o):(g=this.thru(h),d?a?g.value()[0]:g.value():g)}}),tu(["pop","push","shift","sort","splice","unshift"],function(e){var t=eE[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rv.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var a=this.value();return t.apply(le(a)?a:[],e)}return this[r](function(r){return t.apply(le(r)?r:[],e)})}}),nk(rj.prototype,function(e,t){var r=rv[t];if(r){var n=r.name+"";!eR.call(rf,n)&&(rf[n]=[]),rf[n].push({"name":t,"func":r})}}),rf[aZ(t,2).name]=[{"name":"wrapper","func":t}],rj.prototype.clone=rT,rj.prototype.reverse=rx,rj.prototype.value=rA,rv.prototype.at=s5,rv.prototype.chain=s7,rv.prototype.commit=s4,rv.prototype.next=s9,rv.prototype.plant=ot,rv.prototype.reverse=or,rv.prototype.toJSON=rv.prototype.valueOf=rv.prototype.value=on,rv.prototype.first=rv.prototype.head,eY&&(rv.prototype[eY]=oe),rv}();!0&&(e8._=re,(e=(function(){return re}).call(exports,__webpack_require__,exports,module))!==t&&(module.exports=e))}).call(this)}}).call(__webpack_require__._LM_("lodash",{exports,module,__webpack_require__})).bind(exports)()},461893(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let a=(0,t.kp)(n.Wu,(0,e.Ik)({type:(0,r.eu)(n.Z6.Divider)}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},477964(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function t(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function r(t,...n){if(!e(t))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function n(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function a(e,t){r(e);let n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function i(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function s(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function o(e){return e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255}function l(e){for(let t=0;t<e.length;t++)e[t]=o(e[t]);return e}__webpack_require__.d(__webpack_exports__,{CC:()=>n,DH:()=>i,DO:()=>r,Fe:()=>t,Ht:()=>a,Vw:()=>f,ZJ:()=>h,fd:()=>u,qj:()=>m,uH:()=>s});let u=(0,new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]===68)?e=>e:l;Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){if(typeof e!=="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function h(e){return typeof e=="string"&&(e=c(e)),r(e),e}class f{}function m(e){let t=t=>e().update(h(t)).digest();let r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_exports__,__webpack_require__}))()},478633(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(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 t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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,s(n.key),n)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=o(e,"string");return typeof t=="symbol"?t:String(t)}function o(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=__webpack_require__(971567).Buffer;var u=__webpack_require__(667544).inspect;var c=u&&u.custom||"inspect";function h(e,t,r){l.prototype.copy.call(e,t,r)}module.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return i(e,[{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};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var e=this.head.data;return this.length===1?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(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(this.length===0)return l.alloc(0);var t=l.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r)h(r.data,t,n),n+=r.data.length,r=r.next;return t}},{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;var r=1;var n=t.data;e-=n.length;while(t=t.next){var a=t.data;var i=e>a.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),(e-=i)==0){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var a=r.data;var i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),(e-=i)==0){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,r){return u(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}()}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},484068(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{vb:()=>b});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(174638);var n=__webpack_require__(382906);var a=__webpack_require__(453945);var i=__webpack_require__(461893);var s=__webpack_require__(706524);var o=__webpack_require__(515828);var l=__webpack_require__(861913);var u=__webpack_require__(335562);var c=__webpack_require__(208554);var h=__webpack_require__(45217);var f=__webpack_require__(955187);var m=__webpack_require__(879771);var d=__webpack_require__(676358);let p=(0,t.kp)(d.Wu,(0,e.Ik)({children:(0,e.YO)((0,t.RZ)(()=>b))}));let g=(0,t.kp)(p,(0,e.Ik)({type:(0,m.eu)(d.Z6.Panel)}));let b=(0,m.i5)([a.$,i.z,o.Y,l.x,g,h.t,f.z,c.E,r.A,u.y,s.W,n.s3])}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},490137(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(158647).F.ERR_STREAM_PREMATURE_CLOSE;function t(e){var t=!1;return function(){if(t)return;t=!0;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.apply(this,n)}}function r(){}function n(e){return e.setHeader&&typeof e.abort=="function"}function a(i,s,o){if(typeof s=="function")return a(i,null,s);!s&&(s={}),o=t(o||r);var l=s.readable||s.readable!==!1&&i.readable;var u=s.writable||s.writable!==!1&&i.writable;var c=function(){!i.writable&&f()};var h=i._writableState&&i._writableState.finished;var f=function(){u=!1,h=!0,!l&&o.call(i)};var m=i._readableState&&i._readableState.endEmitted;var d=function(){l=!1,m=!0,!u&&o.call(i)};var p=function(e){o.call(i,e)};var g=function(){var t;return l&&!m?((!i._readableState||!i._readableState.ended)&&(t=new e),o.call(i,t)):(0,u&&!h)?((!i._writableState||!i._writableState.ended)&&(t=new e),o.call(i,t)):void 0};var b=function(){i.req.on("finish",f)};return n(i)?(i.on("complete",f),i.on("abort",g),i.req?b():i.on("request",b)):u&&!i._writableState&&(i.on("end",c),i.on("close",c)),i.on("end",d),i.on("finish",f),s.error!==!1&&i.on("error",p),i.on("close",g),function(){i.removeListener("complete",f),i.removeListener("abort",g),i.removeListener("request",b),i.req&&i.req.removeListener("finish",f),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",f),i.removeListener("end",d),i.removeListener("error",p),i.removeListener("close",g)}}module.exports=a}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{__webpack_require__,module}))()},499490(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{u1:()=>n});var e=__webpack_require__(745085);function t(r,n,a=null){return(0,e.Gv)(r)&&(0,e.i5)(r,n)?r[n]:(0,a)}function r(e,n,a=String(e)){let i=t(e,n);return typeof i=="string"?i:(0,a)}function n(e){return r(e,"message")}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},500855(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{g:()=>e});let e=["https://metamask.io","https://learn.metamask.io","https://mmi-support.zendesk.com","https://community.metamask.io","https://support.metamask.io"].map(e=>new URL(e).origin)}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},506348(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(780063).EventEmitter}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},508142(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(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 t(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach(function(e){r(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function r(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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,s(n.key),n)}}function i(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=o(e,"string");return typeof t=="symbol"?t:String(t)}function o(e,t){if(typeof e!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=__webpack_require__(971567).Buffer;var u=__webpack_require__(902731).inspect;var c=u&&u.custom||"inspect";function h(e,t,r){l.prototype.copy.call(e,t,r)}module.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return i(e,[{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};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var e=this.head.data;return this.length===1?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(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next)r+=e+t.data;return r}},{key:"concat",value:function(e){if(this.length===0)return l.alloc(0);var t=l.allocUnsafe(e>>>0);var r=this.head;var n=0;while(r)h(r.data,t,n),n+=r.data.length,r=r.next;return t}},{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;var r=1;var n=t.data;e-=n.length;while(t=t.next){var a=t.data;var i=e>a.length?a.length:e;if(i===a.length?n+=a:n+=a.slice(0,e),(e-=i)==0){i===a.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e);var r=this.head;var n=1;r.data.copy(t),e-=r.data.length;while(r=r.next){var a=r.data;var i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),(e-=i)==0){i===a.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=a.slice(i));break}++n}return this.length-=n,t}},{key:c,value:function(e,r){return u(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}()}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},512986(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$P:()=>o,B9:()=>C,CF:()=>b,El:()=>c,Et:()=>a,Fl:()=>L,Fq:()=>i,GB:()=>v,Iw:()=>h,JZ:()=>j,Kg:()=>s,Ki:()=>S,L3:()=>E,U_:()=>_,_v:()=>d,ac:()=>x,b0:()=>n,cG:()=>y,f8:()=>p,fT:()=>A,gu:()=>M,h3:()=>l,i:()=>O,jv:()=>u,m3:()=>w,mQ:()=>m,mp:()=>k,wG:()=>R,xS:()=>I});var e=__webpack_require__(695358);var t=__webpack_require__(603476);var r=__webpack_require__(686333);function n(e){return e===void 0}function a(e){return typeof e=="number"}function i(e){return typeof e=="number"&&e%1==0}function s(e){return typeof e=="string"}function o(e){return Object.prototype.toString.call(e)==="[object Date]"}function l(){try{return typeof Intl!=="undefined"&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function u(){try{return typeof Intl!=="undefined"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function c(e){return Array.isArray(e)?e:[e]}function h(e,t,r){return e.length===0?undefined:(0,e.reduce((e,n)=>{let a=[t(n),n];return!e?a:(0,r(e[0],a[0])===e[0])?e:a},null)[1])}function f(e,t){return t.reduce((t,r)=>{return t[r]=e[r],t},{})}function m(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(t){if(t==null)return null;if(typeof t!=="object")throw new e.Di("Week settings must be an object");{if(!p(t.firstDay,1,7)||!p(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!p(e,1,7)))throw new e.Di("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}}function p(e,t,r){return i(e)&&e>=t&&e<=r}function g(e,t){return e-t*Math.floor(e/t)}function b(e,t=2){let r;return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function y(e){return n(e)||e===null||e===""?undefined:(0,parseInt(e,10))}function k(e){return n(e)||e===null||e===""?undefined:(0,parseFloat(e))}function w(e){return n(e)||e===null||e===""?undefined:(0,Math.floor(parseFloat("0."+e)*1e3))}function v(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function _(e){return e%4==0&&(e%100!==0||e%400==0)}function S(e){return _(e)?366:365}function E(e,t){let r=g(t-1,12)+1;return r===2?_(e+(t-r)/12)?29:28:(0,[31,null,31,30,31,30,31,31,30,31,30,31][r-1])}function j(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function T(e,t,n){return-(0,r.ui)((0,r.mK)(e,1,t),n)+t-1}function x(e,t=4,r=1){let n=T(e,t,r);let a=T(e+1,t,r);return(S(e)-n+a)/7}function A(e){return e>99?e:(0,e>t.A.twoDigitCutoffYear?1900+e:2e3+e)}function R(e,t,r,n=null){let a=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);let s={timeZoneName:t,...i};let o=new Intl.DateTimeFormat(r,s).formatToParts(a).find(e=>e.type.toLowerCase()==="timezonename");return o?o.value:null}function M(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,a=r<0||Object.is(r,-0)?-n:n;return r*60+a}function O(t){let r=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(r))throw new e.Di(`Invalid unit value ${t}`);return r}function L(e,t){let r={};for(let n in e)if(m(e,n)){let a=e[n];if(a===undefined||a===null)continue;r[t(n)]=O(a)}return r}function I(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(t){case"short":return`${a}${b(r,2)}:${b(n,2)}`;case"narrow":return`${a}${r}${n>0?`:${n}`:""}`;case"techie":return`${a}${b(r,2)}${b(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function C(e){return f(e,["hour","minute","second","millisecond"])}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},515828(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Y:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let a=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Heading),value:(0,e.Yj)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},524382(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{E:()=>r,z:()=>t});var e=__webpack_require__(745085);let t="dedicatedWorker";function r(t){return(0,e.Gv)(t)&&Boolean(t.data)&&(typeof t.data=="number"||typeof t.data=="object"||typeof t.data=="string")}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},540031(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";(exports=module.exports=__webpack_require__(75284)).Stream=exports,exports.Readable=exports,exports.Writable=__webpack_require__(103508),exports.Duplex=__webpack_require__(108694),exports.Transform=__webpack_require__(15394),exports.PassThrough=__webpack_require__(666688),exports.finished=__webpack_require__(838926),exports.pipeline=__webpack_require__(979662)}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{exports,module,__webpack_require__}))()},541726(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(657887).ObjectMultiplex}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{module,__webpack_require__}))()},542780(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(){return t(new URL(window.location))&&a()}function t(e){return r(e)&&!n(e)}function r({pathname:e}){let t=[/\.xml$/u,/\.pdf$/u];for(let r=0;r<t.length;r++)if(t[r].test(e))return!1;return!0}function n(e){let{hostname:t,pathname:r}=e;let n=e=>e.endsWith("/")?e.slice(0,-1):e;return["execution.consensys.io","execution.metamask.io","uscourts.gov","dropbox.com","webbyawards.com","adyen.com","gravityforms.com","harbourair.com","ani.gamer.com.tw","blueskybooking.com","sharefile.com","battle.net","accounts.google.com","accounts.youtube.com","appleid.apple.com"].some(e=>e===t||t.endsWith(`.${e}`))||["cdn.shopify.com/s/javascripts/tricorder/xtld-read-only-frame.html"].some(e=>n(e)===n(t+r))}function a(){return i()&&s()}function i(){let{doctype:e}=window.document;return e?e.name==="html":(0,!0)}function s(){let e=document.documentElement.nodeName;return e?e.toLowerCase()==="html":(0,!0)}__webpack_require__.d(__webpack_exports__,{Ay:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},544299(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{H:()=>i});var e=__webpack_require__(449070);var t=__webpack_require__(356583);var r=__webpack_require__(784225);var n=__webpack_require__(342672);var a=__webpack_require__(499490);let i=(i={})=>(0,r.YP)((0,n.Yj)(),"uri",r=>{try{let e=new URL(r);let a=(0,n.NW)(i);return(0,t.vA)(e,a),!0}catch(t){if(t instanceof e.C)return(0,a.u1)(t);return`Expected URL, got "${r.toString()}"`}})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},552558(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{w:()=>e.w});var e=__webpack_require__(100209)}}).call(__webpack_require__._LM_("@metamask/base-controller",{__webpack_require__,__webpack_exports__}))()},581327(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B:()=>s,G:()=>i});var e=__webpack_require__(745085);var t=__webpack_require__(754255);var r=__webpack_require__(144008);var n;let a=(n=t,n?.__esModule?n.default:(0,n));class i extends Error{constructor(t,n,a){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!n||typeof n!=="string")throw new Error('"message" must be a non-empty string.');(0,r.el)(a)?(super(n,{cause:a.cause}),!(0,e.i5)(this,"cause")&&Object.assign(this,{cause:a.cause})):super(n),a!==undefined&&(this.data=a),this.code=t}serialize(){let t={code:this.code,message:this.message};return this.data!==undefined&&(t.data=this.data,(0,e.Qd)(this.data)&&(t.data.cause=(0,r._K)(this.data.cause))),this.stack&&(t.stack=this.stack),t}toString(){return a(this.serialize(),l,2)}}class s extends i{constructor(e,t,r){if(!o(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}function o(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function l(e,t){return t==="[Circular]"?undefined:(0,t)}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},581808(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{AbortController:e}=globalThis;module.exports={AbortController:e}}}).call(__webpack_require__._LM_("openai>abort-controller",{module,__webpack_require__}))()},588847(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[e,r]){let n=t.shift();if(r==="f")return n.toFixed(6);if(r==="j")return JSON.stringify(n);if(r!=="s"||typeof n!="object")return n.toString();{let e=n.constructor!==Object?n.constructor.name:"";return`${e} {}`.trim()}})},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"'))return`"${e}"`;if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}return`'${e}'`;case"number":if(isNaN(e))return"NaN";if(Object.is(e,-0))return String(e);return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},593545(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=__webpack_require__(780063).EventEmitter}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},597054(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r=null;class n extends t.A{static get instance(){return r===null&&(r=new n),r}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return(0,e.wG)(t,r,n)}formatOffset(t,r){return(0,e.xS)(this.offset(t),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},598640(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";!0&&(module.exports=function(){var e={17:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=r(18);t.default=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var a=e.getVersionPrecision(t),i=e.getVersionPrecision(r),s=Math.max(a,i),o=0,l=e.map([t,r],function(t){var r=s-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(n&&(o=s-Math.min(a,i)),s-=1;s>=o;){if(l[0][s]>l[1][s])return 1;if(l[0][s]===l[1][s]){if(s===o)return 0;s-=1}else if(l[0][s]<l[1][s])return-1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var a=e[r];if(t(a,r))return a}},e.assign=function(e){for(var t,r,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));for(t=0,r=a.length;t<r;t+=1)!function(){var r=a[t];"object"==typeof r&&null!==r&&Object.keys(r).forEach(function(t){e[t]=r[t]})}();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}(),e.exports=t.default},18:function(e,t,r){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(91))&&n.__esModule?n:{default:n},i=r(18);function s(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,n.key,n)}}t.default=function(){function e(){}var t;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new a.default(e,t)},e.parse=function(e){return new a.default(e).getResult()},e,t=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],null&&s(e.prototype,null),t&&s(e,t),e}(),e.exports=t.default},91:function(e,t,r){t.__esModule=!0,t.default=void 0;var n=l(r(92)),a=l(r(93)),i=l(r(94)),s=l(r(95)),o=l(r(17));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=o.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=o.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=o.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=o.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return o.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,a={},i=0;if(Object.keys(e).forEach(function(t){var s=e[t];"string"==typeof s?(a[t]=s,i+=1):"object"==typeof s&&(r[t]=s,n+=1)}),n>0){var s=Object.keys(r),l=o.default.find(s,function(e){return t.isOS(e)});if(l){var u=this.satisfies(r[l]);if(void 0!==u)return u}var c=o.default.find(s,function(e){return t.isPlatform(e)});if(c){var h=this.satisfies(r[c]);if(void 0!==h)return h}}if(i>0){var f=Object.keys(a),m=o.default.find(f,function(e){return t.isBrowser(e,!0)});if(void 0!==m)return this.compareVersion(a[m])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),a=o.default.getBrowserTypeByAlias(n);return t&&a&&(n=a.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,a=this.getBrowserVersion();if("string"==typeof a)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(a,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}(),e.exports=t.default},92:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n};var i=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=a.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=a.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=a.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=a.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=a.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=a.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=a.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=a.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=a.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=a.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=a.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=a.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=a.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=a.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=a.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=a.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=a.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=a.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=a.default.getFirstMatch(i,e)||a.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=a.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=a.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=a.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=a.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=a.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=a.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=a.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=a.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=a.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=a.default.getFirstMatch(i,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:a.default.getFirstMatch(t,e),version:a.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){var t=a.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=a.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=a.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=a.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},r=a.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=a.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=a.default.getMacOSVersionName(t),n={name:i.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=a.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=a.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=a.default.getAndroidVersionName(t),n={name:i.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=a.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:i.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=a.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||a.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||a.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=a.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=a.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=a.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}],e.exports=t.default},94:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=a.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=a.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,r){t.__esModule=!0,t.default=void 0;var n,a=(n=r(17))&&n.__esModule?n:{default:n},i=r(18);t.default=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=a.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},r=a.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},r=a.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},r=a.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},r=a.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}],e.exports=t.default}};var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if((1&t&&(e=r(e)),8&t)||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,(function(t){return e[t]}).bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}())}}).call(__webpack_require__._LM_("bowser",{module,__webpack_require__})).bind(module.exports)()},600473(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ay:()=>y});var e=__webpack_require__(695358);var t=__webpack_require__(868766);var r=__webpack_require__(14631);var n=__webpack_require__(912276);var a=__webpack_require__(210164);var i=__webpack_require__(512986);var s=__webpack_require__(603476);var o=__webpack_require__(835060);let l="Invalid Duration";let u={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},c={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...u},h={years:{quarters:4,months:12,weeks:146097/400/7,days:146097/400,hours:146097/400*24,minutes:146097/400*24*60,seconds:146097/400*24*60*60,milliseconds:146097/400*24*60*60*1e3},quarters:{months:3,weeks:146097/400/28,days:146097/400/4,hours:146097/400*24/4,minutes:146097/400*24*60/4,seconds:146097/400*24*60*60/4,milliseconds:146097/400*24*60*60*1e3/4},months:{weeks:146097/4800/7,days:146097/4800,hours:146097/4800*24,minutes:146097/4800*24*60,seconds:146097/4800*24*60*60,milliseconds:146097/4800*24*60*60*1e3},...u};let f=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"];let m=f.slice(0).reverse();function d(e,t,r=!1){return new y({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function p(e,t){let r=t.milliseconds??0;for(let n of m.slice(1))t[n]&&(r+=t[n]*e[n]["milliseconds"]);return r}function g(e,t){let r=p(e,t)<0?-1:1;f.reduceRight((n,a)=>{if((0,i.b0)(t[a]))return n;{if(n){let i=t[n]*r;let s=e[a][n];let o=Math.floor(i/s);t[a]+=o*r,t[n]-=o*s*r}return a}},null),f.reduce((r,n)=>{if((0,i.b0)(t[n]))return r;{if(r){let a=t[r]%1;t[r]-=a,t[n]+=a*e[r][n]}return n}},null)}function b(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}class y{constructor(e){let t=e.conversionAccuracy==="longterm";let r=t?h:c;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||n.A.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return y.fromObject({milliseconds:e},t)}static fromObject(t,r={}){if(t==null||typeof t!=="object")throw new e.Di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new y({values:(0,i.Fl)(t,y.normalizeUnit),loc:n.A.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if((0,i.Et)(t))return y.fromMillis(t);if(y.isDuration(t))return t;if(typeof t=="object")return y.fromObject(t);throw new e.Di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(e,t){let[r]=(0,a.rB)(e);return r?y.fromObject(r,t):(0,y.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`))}static fromISOTime(e,t){let[r]=(0,a.QE)(e);return r?y.fromObject(r,t):(0,y.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`))}static invalid(t,n=null){if(!t)throw new e.Di("need to specify a reason the Duration is invalid");let a=t instanceof r.A?t:new r.A(t,n);if(!s.A.throwOnInvalid)return new y({invalid:a});throw new e.Op(a)}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!r)throw new e.iq(t);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?t.A.create(this.loc,n).formatDurationFromString(this,e):l}toHuman(e={}){if(!this.isValid)return l;let t=f.map(t=>{let r=this.values[t];return(0,i.b0)(r)?null:(0,this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r))}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return!this.isValid?{}:(0,{...this.values})}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=(0,i.GB)(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},o.A.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:(0,`Duration { Invalid, reason: ${this.invalidReason} }`)}toMillis(){return!this.isValid?NaN:(0,p(this.matrix,this.values))}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=y.fromDurationLike(e),r={};for(let e of f)((0,i.mQ)(t.values,e)||(0,i.mQ)(this.values,e))&&(r[e]=t.get(e)+this.get(e));return d(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=y.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=(0,i.i)(e(this.values[r],r));return d(this,{values:t},!0)}get(e){return this[y.normalizeUnit(e)]}set(e){return!this.isValid?this:(0,d(this,{values:{...this.values,...(0,i.Fl)(e,y.normalizeUnit)}}))}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return d(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return g(this.matrix,e),d(this,{values:e},!0)}rescale(){return!this.isValid?this:(0,d(this,{values:b(this.normalize().shiftToAll().toObject())},!0))}shiftTo(...e){if(!this.isValid||e.length===0)return this;e=e.map(e=>y.normalizeUnit(e));let t={},r={},n=this.toObject();let a;for(let s of f)if(e.indexOf(s)>=0){a=s;let e=0;for(let t in r)e+=this.matrix[t][s]*r[t],r[t]=0;(0,i.Et)(n[s])&&(e+=n[s]);let o=Math.trunc(e);t[s]=o,r[s]=(e*1e3-o*1e3)/1e3}else(0,i.Et)(n[s])&&(r[s]=n[s]);for(let e in r)r[e]!==0&&(t[a]+=e===a?r[e]:r[e]/this.matrix[a][e]);return g(this.matrix,t),d(this,{values:t},!0)}shiftToAll(){return!this.isValid?this:(0,this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"))}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return d(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(e,t){return e===undefined||e===0?t===undefined||t===0:(0,e===t)}for(let r of f)if(!t(this.values[r],e.values[r]))return!1;return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},603476(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>p});var e=__webpack_require__(597054);var t=__webpack_require__(750628);var r=__webpack_require__(912276);var n=__webpack_require__(835060);var a=__webpack_require__(232712);var i=__webpack_require__(512986);var s=__webpack_require__(138292);let o=()=>Date.now(),l="system",u=null,c=null,h=null,f=60,m,d=null;class p{static get now(){return o}static set now(e){o=e}static set defaultZone(e){l=e}static get defaultZone(){return(0,a.q)(l,e.A.instance)}static get defaultLocale(){return u}static set defaultLocale(e){u=e}static get defaultNumberingSystem(){return c}static set defaultNumberingSystem(e){c=e}static get defaultOutputCalendar(){return h}static set defaultOutputCalendar(e){h=e}static get defaultWeekSettings(){return d}static set defaultWeekSettings(e){d=(0,i._v)(e)}static get twoDigitCutoffYear(){return f}static set twoDigitCutoffYear(e){f=e%100}static get throwOnInvalid(){return m}static set throwOnInvalid(e){m=e}static resetCaches(){r.A.resetCache(),t.A.resetCache(),n.A.resetCache(),(0,s.wO)()}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},609948(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>a});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(984381);let n=/Z|([+-]\d{2}:?\d{2})$/u;let a=(0,e.YP)((0,t.Yj)(),"ISO 8601 date",e=>{return!r.c9.fromISO(e).isValid?"Not a valid ISO 8601 date":(0,!n.test(e))?"ISO 8601 date must have timezone information":(0,!0)})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},613318(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{pipeline:e}=__webpack_require__(425934);let t=__webpack_require__(68266);let{destroyer:r}=__webpack_require__(338568);let{isNodeStream:n,isReadable:a,isWritable:i,isWebStream:s,isTransformStream:o,isWritableStream:l,isReadableStream:u}=__webpack_require__(831171);let{AbortError:c,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:f}}=__webpack_require__(868387);let m=__webpack_require__(816718);module.exports=function(...d){if(d.length===0)throw new f("streams");if(d.length===1)return t.from(d[0]);let p=[...d];if(typeof d[0]=="function"&&(d[0]=t.from(d[0])),typeof d[d.length-1]=="function"){let e=d.length-1;d[e]=t.from(d[e])}for(let e=0;e<d.length;++e){if(!n(d[e])&&!s(d[e]))continue;if(e<d.length-1&&!(a(d[e])||u(d[e])||o(d[e])))throw new h(`streams[${e}]`,p[e],"must be readable");if(e>0&&!(i(d[e])||l(d[e])||o(d[e])))throw new h(`streams[${e}]`,p[e],"must be writable")}let g;let b;let y;let k;let w;function v(e){let t=k;k=null,t?t(e):e?w.destroy(e):!j&&!E&&w.destroy()}let _=d[0];let S=e(d,v);let E=!!(i(_)||l(_)||o(_));let j=!!(a(S)||u(S)||o(S));if(w=new t({writableObjectMode:!!(_!==null&&_!==undefined&&_.writableObjectMode),readableObjectMode:!!(S!==null&&S!==undefined&&S.readableObjectMode),writable:E,readable:j}),E){if(n(_))w._write=function(e,t,r){_.write(e,t)?r():g=r},w._final=function(e){_.end(),b=e},_.on("drain",function(){if(g){let e=g;g=null,e()}});else if(s(_)){let e=(o(_)?_.writable:_).getWriter();w._write=async function(t,r,n){try{await e.ready,e.write(t).catch(()=>{}),n()}catch(e){n(e)}},w._final=async function(t){try{await e.ready,e.close().catch(()=>{}),b=t}catch(e){t(e)}}}m(o(S)?S.readable:S,()=>{if(b){let e=b;b=null,e()}})}if(j){if(n(S))S.on("readable",function(){if(y){let e=y;y=null,e()}}),S.on("end",function(){w.push(null)}),w._read=function(){while(!0){let e=S.read();if(e===null){y=w._read;return}if(!w.push(e))return}};else if(s(S)){let e=(o(S)?S.readable:S).getReader();w._read=async function(){while(!0)try{let{value:t,done:r}=await e.read();if(!w.push(t))return;if(r){w.push(null);return}}catch{return}}}}return w._destroy=function(e,t){!e&&k!==null&&(e=new c),y=null,g=null,b=null,k===null?t(e):(k=t,n(S)&&r(S,e))},w}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},614130(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>t});var e=__webpack_require__(879771);function t(t){return(0,e.KC)(t)}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},620498(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(107927);__webpack_require__(524382),e.l}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},631222(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ObjectSetPrototypeOf:e,Symbol:t}=__webpack_require__(708566);module.exports=s;let{ERR_METHOD_NOT_IMPLEMENTED:r}=__webpack_require__(868387).codes;let n=__webpack_require__(68266);let{getHighWaterMark:a}=__webpack_require__(252859);e(s.prototype,n.prototype),e(s,n);let i=t("kCallback");function s(e){if(!(this instanceof s))return new s(e);let t=e?a(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),n.call(this,e),this._readableState.sync=!1,this[i]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",l)}function o(e){typeof this._flush!="function"||this.destroyed?(this.push(null),e&&e()):this._flush((t,r)=>{if(t){e?e(t):this.destroy(t);return}r!=null&&this.push(r),this.push(null),e&&e()})}function l(){this._final!==o&&o.call(this)}s.prototype._final=o,s.prototype._transform=function(e,t,n){throw new r("_transform()")},s.prototype._write=function(e,t,r){let n=this._readableState;let a=this._writableState;let s=n.length;this._transform(e,t,(e,t)=>{if(e){r(e);return}t!=null&&this.push(t),a.ended||s===n.length||n.length<n.highWaterMark?r():this[i]=r})},s.prototype._read=function(){if(this[i]){let e=this[i];this[i]=null,e()}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},632914(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{Buffer:e}=__webpack_require__(971567);let{ObjectDefineProperty:t,ObjectKeys:r,ReflectApply:n}=__webpack_require__(708566);let{promisify:{custom:a}}=__webpack_require__(769584);let{streamReturningOperators:i,promiseReturningOperators:s}=__webpack_require__(194535);let{codes:{ERR_ILLEGAL_CONSTRUCTOR:o}}=__webpack_require__(868387);let l=__webpack_require__(613318);let{setDefaultHighWaterMark:u,getDefaultHighWaterMark:c}=__webpack_require__(252859);let{pipeline:h}=__webpack_require__(425934);let{destroyer:f}=__webpack_require__(338568);let m=__webpack_require__(816718);let d=__webpack_require__(294855);let p=__webpack_require__(831171);let g=module.exports=__webpack_require__(449219).Stream;for(let e of(g.isDestroyed=p.isDestroyed,g.isDisturbed=p.isDisturbed,g.isErrored=p.isErrored,g.isReadable=p.isReadable,g.isWritable=p.isWritable,g.Readable=__webpack_require__(699960),r(i))){let r=i[e];function b(...e){if(new.target)throw o();return g.Readable.from(n(r,this,e))}t(b,"name",{__proto__:null,value:r.name}),t(b,"length",{__proto__:null,value:r.length}),t(g.Readable.prototype,e,{__proto__:null,value:b,enumerable:!1,configurable:!0,writable:!0})}for(let e of r(s)){let r=s[e];function y(...e){if(new.target)throw o();return n(r,this,e)}t(y,"name",{__proto__:null,value:r.name}),t(y,"length",{__proto__:null,value:r.length}),t(g.Readable.prototype,e,{__proto__:null,value:y,enumerable:!1,configurable:!0,writable:!0})}g.Writable=__webpack_require__(777352),g.Duplex=__webpack_require__(68266),g.Transform=__webpack_require__(631222),g.PassThrough=__webpack_require__(448492),g.pipeline=h;let{addAbortSignal:k}=__webpack_require__(452547);g.addAbortSignal=k,g.finished=m,g.destroy=f,g.compose=l,g.setDefaultHighWaterMark=u,g.getDefaultHighWaterMark=c,t(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return d}}),t(h,a,{__proto__:null,enumerable:!0,get(){return d.pipeline}}),t(m,a,{__proto__:null,enumerable:!0,get(){return d.finished}}),g.Stream=g,g._isUint8Array=function(e){return e instanceof Uint8Array},g._uint8ArrayToBuffer=function(t){return e.from(t.buffer,t.byteOffset,t.byteLength)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},639266(){},647388(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Es:()=>c,rI:()=>l,ux:()=>u});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(142282);var n=__webpack_require__(879771);var a;var i;(i=a||(a={}))["ButtonClickEvent"]="ButtonClickEvent",i["FormSubmitEvent"]="FormSubmitEvent",i["InputChangeEvent"]="InputChangeEvent",i["FileUploadEvent"]="FileUploadEvent";let s=(0,e.Ik)({type:(0,e.Yj)(),name:(0,e.lq)((0,e.Yj)())});let o=(0,t.kp)(s,(0,e.Ik)({type:(0,n.eu)(a.ButtonClickEvent),name:(0,e.lq)((0,e.Yj)())}));let l=(0,e.Ik)({accountId:(0,e.Yj)(),addresses:(0,e.YO)(r.FX)});let u=(0,e.Ik)({name:(0,e.Yj)(),size:(0,e.ai)(),contentType:(0,e.Yj)(),contents:(0,e.Yj)()});let c=(0,e.Ik)({asset:r.jx,name:(0,e.Yj)(),symbol:(0,e.Yj)()});let h=(0,t.kp)(s,(0,e.Ik)({type:(0,n.eu)(a.FormSubmitEvent),value:(0,e.g1)((0,e.Yj)(),(0,e.me)((0,e.KC)([(0,e.Yj)(),u,(0,e.zM)(),l,c]))),name:(0,e.Yj)()}));let f=(0,t.kp)(s,(0,e.Ik)({type:(0,n.eu)(a.InputChangeEvent),name:(0,e.Yj)(),value:(0,e.me)((0,e.KC)([(0,e.Yj)(),(0,e.zM)(),l,c]))}));let m=(0,t.kp)(s,(0,e.Ik)({type:(0,n.eu)(a.FileUploadEvent),name:(0,e.Yj)(),file:(0,e.me)(u)}));(0,n.i5)([o,h,f,m])}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},657887(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ObjectMultiplex=void 0;let t=__webpack_require__(540031);let r=e(__webpack_require__(688655));let n=__webpack_require__(967744);let a=Symbol("IGNORE_SUBSTREAM");class i extends t.Duplex{constructor(e={}){super(Object.assign({objectMode:!0},e)),this._substreams={}}createStream(e,t={}){if(this.destroyed)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already destroyed`);if(this._readableState.ended||this._writableState.ended)throw new Error(`ObjectMultiplex - parent stream for name "${e}" already ended`);if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);let r=new n.Substream(Object.assign({name:e,parent:this},t));return this._substreams[e]=r,s(this,e=>{return r.destroy(e||undefined)}),r}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error(`ObjectMultiplex - Substream for name "${e}" already exists`);this._substreams[e]=a}_read(){return undefined}_write(e,t,r){let{name:n,data:i}=e;if(!n)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),r();let s=this._substreams[n];return!s?console.warn(`ObjectMultiplex - orphaned data for stream "${n}"`):(0,s!==a&&s.push(i)),r()}}function s(e,n){let a=(0,r.default)(n);(0,t.finished)(e,{readable:!1},a),(0,t.finished)(e,{writable:!1},a)}exports.ObjectMultiplex=i}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{exports,__webpack_require__})).bind(exports)()},661330(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{lY:()=>k});var e=__webpack_require__(671955);var t=__webpack_require__(477964);let r=BigInt(0);let n=BigInt(1);let a=BigInt(2);let i=BigInt(7);let s=BigInt(256);let o=BigInt(113);let l=[];let u=[];let c=[];for(let e=0,t=n,h=1,f=0;e<24;e++){[h,f]=[f,(2*h+3*f)%5],l.push(2*(5*f+h)),u.push((e+1)*(e+2)/2%64);let m=r;for(let e=0;e<7;e++)(t=(t<<n^(t>>i)*o)%s)&a&&(m^=n<<(n<<BigInt(e))-n);c.push(m)}let h=(0,e.lD)(c,!0);let f=h[0];let m=h[1];let d=(t,r,n)=>n>32?(0,e.WM)(t,r,n):(0,e.P5)(t,r,n);let p=(t,r,n)=>n>32?(0,e.im)(t,r,n):(0,e.B4)(t,r,n);function g(e,r=24){let n=new Uint32Array(5*2);for(let t=24-r;t<24;t++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10;let a=(t+2)%10;let i=n[a];let s=n[a+1];let o=d(i,s,1)^n[r];let l=p(i,s,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=l}let r=e[2];let a=e[3];for(let t=0;t<24;t++){let n=u[t];let i=d(r,a,n);let s=p(r,a,n);let o=l[t];r=e[o],a=e[o+1],e[o]=i,e[o+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=f[t],e[1]^=m[t]}(0,t.uH)(n)}class b extends t.Vw{constructor(e,r,n,a=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=a,this.rounds=i,(0,t.Fe)(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,t.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,t.fd)(this.state32),g(this.state32,this.rounds),(0,t.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,t.CC)(this),e=(0,t.ZJ)(e),(0,t.DO)(e);let{blockLen:r,state:n}=this;let a=e.length;for(let t=0;t<a;){let i=Math.min(r-this.pos,a-t);for(let r=0;r<i;r++)n[this.pos++]^=e[t++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(t&128)!==0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,t.CC)(this,!1),(0,t.DO)(e),this.finish();let r=this.state;let{blockLen:n}=this;for(let t=0,a=e.length;t<a;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,a-t);e.set(r.subarray(this.posOut,this.posOut+i),t),this.posOut+=i,t+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,t.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,t.Ht)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,t.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new b(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let y;let k=(y=256/8,(0,t.qj)(()=>new b(136,1,y)))}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_require__,__webpack_exports__}))()},666688(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=t;var e=__webpack_require__(15394);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}__webpack_require__(985738)(t,e),t.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{module,__webpack_require__}))()},667544(){},671955(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{B4:()=>i,P5:()=>a,WM:()=>s,im:()=>o,lD:()=>n});let e=BigInt(0x100000000-1);let t=BigInt(32);function r(n,a=!1){return a?{h:Number(n&e),l:Number(n>>t&e)}:(0,{h:Number(n>>t&e)|0,l:Number(n&e)|0})}function n(e,t=!1){let a=e.length;let i=new Uint32Array(a);let s=new Uint32Array(a);for(let n=0;n<a;n++){let{h:a,l:o}=r(e[n],t);[i[n],s[n]]=[a,o]}return[i,s]}let a=(e,t,r)=>e<<r|t>>>32-r;let i=(e,t,r)=>t<<r|e>>>32-r;let s=(e,t,r)=>t<<r-32|e>>>64-r;let o=(e,t,r)=>e<<r-32|t>>>64-r}}).call(__webpack_require__._LM_("@noble/hashes",{__webpack_exports__,__webpack_require__}))()},676358(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Tl:()=>i,Wu:()=>a,Z6:()=>r});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r;var n;(n=r||(r={}))["Copyable"]="copyable",n["Divider"]="divider",n["Heading"]="heading",n["Panel"]="panel",n["Spinner"]="spinner",n["Text"]="text",n["Image"]="image",n["Row"]="row",n["Address"]="address",n["Button"]="button",n["Input"]="input",n["Form"]="form";let a=(0,e.Ik)({type:(0,e.Yj)()});let i=(0,t.kp)(a,(0,e.Ik)({value:(0,e.L5)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},677197(module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(971567);var t=e.Buffer;function r(e,t){for(var r in e)t[r]=e[r]}function n(e,r,n){return t(e,r,n)}t.from&&t.alloc&&t.allocUnsafe&&t.allocUnsafeSlow?module.exports=e:(r(e,exports),exports.Buffer=n),n.prototype=Object.create(t.prototype),r(t,n),n.from=function(e,r,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return t(e,r,n)},n.alloc=function(e,r,n){if(typeof e!=="number")throw new TypeError("Argument must be a number");var a=t(e);return r!==undefined?typeof n=="string"?a.fill(r,n):a.fill(r):a.fill(0),a},n.allocUnsafe=function(e){if(typeof e!=="number")throw new TypeError("Argument must be a number");return t(e)},n.allocUnsafeSlow=function(t){if(typeof t!=="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(t)}}}).call(__webpack_require__._LM_("mockttp>express>safe-buffer",{module,exports,__webpack_require__}))()},685590(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";exports.byteLength=o,exports.toByteArray=u,exports.fromByteArray=f;var e=[];var t=[];var r=typeof Uint8Array!=="undefined"?Uint8Array:Array;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var a=0,i=n.length;a<i;++a)e[a]=n[a],t[n.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function o(e){var t=s(e);var r=t[0];var n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function u(e){var n;var a=s(e);var i=a[0];var o=a[1];var u=new r(l(e,i,o));var c=0;var h=o>0?i-4:i;var f;for(f=0;f<h;f+=4)n=t[e.charCodeAt(f)]<<18|t[e.charCodeAt(f+1)]<<12|t[e.charCodeAt(f+2)]<<6|t[e.charCodeAt(f+3)],u[c++]=n>>16&255,u[c++]=n>>8&255,u[c++]=n&255;return o===2&&(n=t[e.charCodeAt(f)]<<2|t[e.charCodeAt(f+1)]>>4,u[c++]=n&255),o===1&&(n=t[e.charCodeAt(f)]<<10|t[e.charCodeAt(f+1)]<<4|t[e.charCodeAt(f+2)]>>2,u[c++]=n>>8&255,u[c++]=n&255),u}function c(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[t&63]}function h(e,t,r){;var n=[];for(var a=t;a<r;a+=3)n.push(c((e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(e[a+2]&255)));return n.join("")}function f(t){var r;var n=t.length;var a=n%3;var i=[];for(var s=0,o=n-a;s<o;s+=16383)i.push(h(t,s,s+16383>o?o:s+16383));return a===1?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):a===2&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63}}).call(__webpack_require__._LM_("base64-js",{exports,__webpack_require__}))()},686333(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{C9:()=>c,De:()=>g,EG:()=>b,WF:()=>p,WO:()=>h,_3:()=>d,d3:()=>f,fZ:()=>m,mK:()=>s,nM:()=>y,ui:()=>u});var e=__webpack_require__(512986);var t=__webpack_require__(14631);var r=__webpack_require__(695358);let n=[0,31,59,90,120,151,181,212,243,273,304,334],a=[0,31,60,91,121,152,182,213,244,274,305,335];function i(e,r){return new t.A("unit out of range",`you specified ${r} (of type ${typeof r}) as a ${e}, which is invalid`)}function s(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let a=n.getUTCDay();return a===0?7:a}function o(t,r,i){return i+((0,e.U_)(t)?a:n)[r-1]}function l(t,r){let i=(0,e.U_)(t)?a:n,s=i.findIndex(e=>e<r),o=r-i[s];return{month:s+1,day:o}}function u(e,t){return(e-t+7)%7+1}function c(t,r=4,n=1){let{year:a,month:i,day:l}=t,h=o(a,i,l),f=u(s(a,i,l),n);let m=Math.floor((h-f+14-r)/7),d;return m<1?(d=a-1,m=(0,e.ac)(d,r,n)):m>(0,e.ac)(a,r,n)?(d=a+1,m=1):d=a,{weekYear:d,weekNumber:m,weekday:f,...(0,e.B9)(t)}}function h(t,r=4,n=1){let{weekYear:a,weekNumber:i,weekday:o}=t,c=u(s(a,1,r),n),f=(0,e.Ki)(a);let m=i*7+o-c-7+r,d;m<1?(d=a-1,m+=(0,e.Ki)(d)):m>f?(d=a+1,m-=(0,e.Ki)(a)):d=a;let{month:p,day:g}=l(d,m);return{year:d,month:p,day:g,...(0,e.B9)(t)}}function f(t){let{year:r,month:n,day:a}=t;let i=o(r,n,a);return{year:r,ordinal:i,...(0,e.B9)(t)}}function m(t){let{year:r,ordinal:n}=t;let{month:a,day:i}=l(r,n);return{year:r,month:a,day:i,...(0,e.B9)(t)}}function d(t,n){if(!(!(0,e.b0)(t.localWeekday)||!(0,e.b0)(t.localWeekNumber)||!(0,e.b0)(t.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};{if(!(0,e.b0)(t.weekday)||!(0,e.b0)(t.weekNumber)||!(0,e.b0)(t.weekYear))throw new r.gN("Cannot mix locale-based week fields with ISO-based week fields");return!(0,e.b0)(t.localWeekday)&&(t.weekday=t.localWeekday),!(0,e.b0)(t.localWeekNumber)&&(t.weekNumber=t.localWeekNumber),!(0,e.b0)(t.localWeekYear)&&(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:n.getMinDaysInFirstWeek(),startOfWeek:n.getStartOfWeek()}}}function p(t,r=4,n=1){let a=(0,e.Fq)(t.weekYear),s=(0,e.f8)(t.weekNumber,1,(0,e.ac)(t.weekYear,r,n)),o=(0,e.f8)(t.weekday,1,7);return!a?i("weekYear",t.weekYear):(0,!s)?i("week",t.weekNumber):(0,!o)?i("weekday",t.weekday):(0,!1)}function g(t){let r=(0,e.Fq)(t.year),n=(0,e.f8)(t.ordinal,1,(0,e.Ki)(t.year));return!r?i("year",t.year):(0,!n)?i("ordinal",t.ordinal):!1}function b(t){let r=(0,e.Fq)(t.year),n=(0,e.f8)(t.month,1,12),a=(0,e.f8)(t.day,1,(0,e.L3)(t.year,t.month));return!r?i("year",t.year):(0,!n)?i("month",t.month):(0,!a)?i("day",t.day):(0,!1)}function y(t){let{hour:r,minute:n,second:a,millisecond:s}=t;let o=(0,e.f8)(r,0,23)||r===24&&n===0&&a===0&&s===0,l=(0,e.f8)(n,0,59),u=(0,e.f8)(a,0,59),c=(0,e.f8)(s,0,999);return!o?i("hour",r):(0,!l)?i("minute",n):(0,!u)?i("second",a):(0,!c)?i("millisecond",s):!1}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},688655(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(885067);function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}module.exports=e(t),module.exports.strict=e(r),t.proto=t(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})})}}).call(__webpack_require__._LM_("@metamask/object-multiplex>once",{module,__webpack_require__}))()},689132(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{rW:()=>h});var e=__webpack_require__(241361);var t=__webpack_require__(29947);var r=__webpack_require__(805248);var n=__webpack_require__(722837);var a=__webpack_require__(879771);var i=__webpack_require__(443697);var s=__webpack_require__(356583);var o=__webpack_require__(784225);var l=__webpack_require__(342672);var u=__webpack_require__(745085);let c="snap_dialog";let h={[n.h.Alert]:`${c}:alert`,[n.h.Confirmation]:`${c}:confirmation`,[n.h.Prompt]:`${c}:prompt`,default:c};let f=(0,l.lq)((0,o.Ej)((0,l.Yj)(),1,40));Object.freeze({targetName:c,specificationBuilder:({allowedCaveats:r=null,messenger:n})=>{return{permissionType:e.eZ.RestrictedMethod,targetName:c,allowedCaveats:r,methodImplementation:T({messenger:n}),subjectTypes:[t.P.Snap]}},actionNames:["ApprovalController:addRequest","SnapInterfaceController:createInterface","SnapInterfaceController:getInterface","SnapInterfaceController:setInterfaceDisplayed"]});let m=(0,l.Ik)({type:(0,a.$9)(n.h.Alert),content:i.Qi});let d=(0,l.Ik)({type:(0,a.$9)(n.h.Alert),id:(0,l.Yj)()});let p=(0,a.E$)(e=>{return(0,u.Qd)(e)&&(0,u.i5)(e,"id")?d:(0,m)});let g=(0,l.Ik)({type:(0,a.$9)(n.h.Confirmation),content:i.Qi});let b=(0,l.Ik)({type:(0,a.$9)(n.h.Confirmation),id:(0,l.Yj)()});let y=(0,a.E$)(e=>{return(0,u.Qd)(e)&&(0,u.i5)(e,"id")?b:(0,g)});let k=(0,l.Ik)({type:(0,a.$9)(n.h.Prompt),content:i.Qi,placeholder:f});let w=(0,l.Ik)({type:(0,a.$9)(n.h.Prompt),id:(0,l.Yj)(),placeholder:f});let v=(0,a.E$)(e=>{return(0,u.Qd)(e)&&(0,u.i5)(e,"id")?w:(0,k)});let _=(0,l.Ik)({content:i.Qi});let S=(0,l.Ik)({id:(0,l.Yj)()});let E=(0,a.E$)(e=>{return(0,u.Qd)(e)&&(0,u.i5)(e,"id")?S:(0,_)});let j=(0,a.E$)(e=>{if((0,u.Qd)(e)&&(0,u.i5)(e,"type"))switch(e.type){case n.h.Alert:return p;case n.h.Confirmation:return y;case n.h.Prompt:return v;default:throw new Error(`The "type" property must be one of: ${Object.values(n.h).join(", ")}.`)}return E});function T({messenger:e}){return async function(t){let{params:n,context:{origin:a}}=t;if(!(0,u.Gv)(n))throw r.r.invalidParams({message:"Invalid params: Expected params to be a single object."});let i=M(n);let s=R(i)?i.placeholder:undefined;let o=h[(0,u.i5)(i,"type")?i.type:"default"];if((0,u.i5)(i,"content")){let t=e.call("SnapInterfaceController:createInterface",a,i.content);return e.call("SnapInterfaceController:setInterfaceDisplayed",a,t),e.call("ApprovalController:addRequest",{id:o===h.default?t:undefined,origin:a,type:o,requestData:{id:t,placeholder:s}},!0)}return x(a,i.id,e),e.call("SnapInterfaceController:setInterfaceDisplayed",a,i.id),e.call("ApprovalController:addRequest",{id:o===h.default?i.id:undefined,origin:a,type:o,requestData:{id:i.id,placeholder:s}},!0)}}function x(e,t,n){try{n.call("SnapInterfaceController:getInterface",e,t)}catch(e){throw r.r.invalidParams({message:`Invalid params: ${e.message}`})}}function A(e){return(0,u.i5)(e,"type")?e.type:undefined}function R(e){return A(e)===n.h.Prompt}function M(e){try{return(0,s.vt)(e,j)}catch(e){throw r.r.invalidParams({message:`Invalid params: ${e.message}`})}}}}).call(__webpack_require__._LM_("@metamask/snaps-rpc-methods",{__webpack_require__,__webpack_exports__}))()},695358(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Di:()=>s,Op:()=>n,gN:()=>a,hq:()=>r,iq:()=>i,jP:()=>o,t:()=>t});class e extends Error{}class t extends e{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class r extends e{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class n extends e{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class a extends e{}class i extends e{constructor(e){super(`Invalid unit ${e}`)}}class s extends e{}class o extends e{constructor(){super("Zone is an abstract class")}}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},699960(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{ArrayPrototypeIndexOf:t,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:a,ObjectDefineProperties:i,ObjectKeys:s,ObjectSetPrototypeOf:o,Promise:l,SafeSet:u,SymbolAsyncDispose:c,SymbolAsyncIterator:h,Symbol:f}=__webpack_require__(708566);module.exports=Z,Z.ReadableState=Y;let{EventEmitter:m}=__webpack_require__(780063);let{Stream:d,prependListener:p}=__webpack_require__(449219);let{Buffer:g}=__webpack_require__(971567);let{addAbortSignal:b}=__webpack_require__(452547);let y=__webpack_require__(816718);let k=__webpack_require__(769584).debuglog("stream",e=>{k=e});let w=__webpack_require__(900457);let v=__webpack_require__(338568);let{getHighWaterMark:_,getDefaultHighWaterMark:S}=__webpack_require__(252859);let{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:j,ERR_METHOD_NOT_IMPLEMENTED:T,ERR_OUT_OF_RANGE:x,ERR_STREAM_PUSH_AFTER_EOF:A,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:R},AbortError:M}=__webpack_require__(868387);let{validateObject:O}=__webpack_require__(827525);let L=f("kPaused");let{StringDecoder:I}=__webpack_require__(938453);let C=__webpack_require__(761124);o(Z.prototype,d.prototype),o(Z,d);let N=()=>{};let{errorOrDestroy:P}=v;let D=1<<0;let B=1<<2;let F=1<<3;let q=1<<4;let U=1<<5;let $=1<<6;let z=1<<7;let W=1<<11;let H=1<<12;let G=1<<16;function V(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}function Y(e,t,r){typeof r!=="boolean"&&(r=t instanceof __webpack_require__(68266)),this.state=W|H|q|U,e&&e.objectMode&&(this.state|=D),r&&e&&e.readableObjectMode&&(this.state|=D),this.highWaterMark=e?_(this,e,"readableHighWaterMark",r):S(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[L]=null,e&&e.emitClose===!1&&(this.state&=~W),e&&e.autoDestroy===!1&&(this.state&=~H),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new I(e.encoding),this.encoding=e.encoding)}function Z(e){if(!(this instanceof Z))return new Z(e);let t=this instanceof __webpack_require__(68266);this._readableState=new Y(e,this,t),e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&!t&&b(e.signal,this)),d.call(this,e),v.construct(this,()=>{this._readableState.needReadable&&en(this,this._readableState)})}function K(e,t,r,n){k("readableAddChunk",t);let a=e._readableState;let i;if((a.state&D)==0&&(typeof t=="string"?(r=r||a.defaultEncoding,a.encoding!==r&&(n&&a.encoding?t=g.from(t,r).toString(a.encoding):(t=g.from(t,r),r=""))):t instanceof g?r="":d._isUint8Array(t)?(t=d._uint8ArrayToBuffer(t),r=""):t!=null&&(i=new j("chunk",["string","Buffer","Uint8Array"],t))),i)P(e,i);else if(t===null)a.state&=~F,ee(e,a);else if((a.state&D)!==0||t&&t.length>0)if(n)if((a.state&B)!==0)P(e,new R);else if(a.destroyed||a.errored)return!1;else J(e,a,t,!0);else if(a.ended)P(e,new A);else if(a.destroyed||a.errored)return!1;else a.state&=~F,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?J(e,a,t,!1):en(e,a)):J(e,a,t,!1);else!n&&(a.state&=~F,en(e,a));return!a.ended&&(a.length<a.highWaterMark||a.length===0)}function J(e,t,r,n){t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0?((t.state&G)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),(t.state&$)!==0&&et(e)),en(e,t)}function X(e){if(e>0x40000000)throw new x("size","<= 1GiB",e);return(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Q(e,t){return e<=0||t.length===0&&t.ended?0:(0,(t.state&D)!==0)?1:(0,n(e))?t.flowing&&t.length?t.buffer.first().length:(0,t.length):(0,e<=t.length?e:(0,t.ended?t.length:0))}function ee(e,t){if(k("onEofChunk"),t.ended)return;if(t.decoder){let e=t.decoder.end();e&&e.length&&(t.buffer.push(e),t.length+=t.objectMode?1:e.length)}t.ended=!0,t.sync?et(e):(t.needReadable=!1,t.emittedReadable=!0,er(e))}function et(t){let r=t._readableState;k("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,!r.emittedReadable&&(k("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(er,t))}function er(e){let t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ec(e)}function en(t,r){!r.readingMore&&r.constructed&&(r.readingMore=!0,e.nextTick(ea,t,r))}function ea(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){let r=t.length;if(k("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function ei(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(k("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(k("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount("data")&&e.resume()}}function es(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&t[L]===!1?t.flowing=!0:e.listenerCount("data")>0?e.resume():!t.readableListening&&(t.flowing=null)}function eo(e){k("readable nexttick read 0"),e.read(0)}function el(t,r){!r.resumeScheduled&&(r.resumeScheduled=!0,e.nextTick(eu,t,r))}function eu(e,t){k("resume",t.reading),!t.reading&&e.read(0),t.resumeScheduled=!1,e.emit("resume"),ec(e),t.flowing&&!t.reading&&e.read(0)}function ec(e){let t=e._readableState;k("flow",t.flowing);while(t.flowing&&e.read()!==null);}function eh(e,t){typeof e.read!=="function"&&(e=Z.wrap(e,{objectMode:!0}));let r=ef(e,t);return r.stream=e,r}async function*ef(e,t){let r=N;function n(t){this===e?(r(),r=N):r=t}e.on("readable",n);let a;let i=y(e,{writable:!1},e=>{a=e?E(a,e):null,r(),r=N});try{while(!0){let t=e.destroyed?null:e.read();if(t!==null)yield t;else if(a)throw a;else if(a===null)return;else await new l(n)}}catch(e){throw a=E(a,e)}finally{(a||(t===null||t===undefined?undefined:t.destroyOnReturn)!==!1)&&(a===undefined||e._readableState.autoDestroy)?v.destroyer(e,null):(e.off("readable",n),i())}}function em(e,t){if(t.length===0)return null;let r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ed(t){let r=t._readableState;k("endReadable",r.endEmitted),!r.endEmitted&&(r.ended=!0,e.nextTick(ep,r,t))}function ep(t,r){if(k("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,r.emit("end"),r.writable&&r.allowHalfOpen===!1)e.nextTick(eg,r);else if(t.autoDestroy){let e=r._writableState;(!e||e.autoDestroy&&(e.finished||e.writable===!1))&&r.destroy()}}}function eg(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}i(Y.prototype,{objectMode:V(D),ended:V(1<<1),endEmitted:V(B),reading:V(F),constructed:V(q),sync:V(U),needReadable:V($),emittedReadable:V(z),readableListening:V(1<<8),resumeScheduled:V(1<<9),errorEmitted:V(1<<10),emitClose:V(W),autoDestroy:V(H),destroyed:V(1<<13),closed:V(1<<14),closeEmitted:V(1<<15),multiAwaitDrain:V(G),readingMore:V(1<<17),dataEmitted:V(1<<18)}),Z.prototype.destroy=v.destroy,Z.prototype._undestroy=v.undestroy,Z.prototype._destroy=function(e,t){t(e)},Z.prototype[m.captureRejectionSymbol]=function(e){this.destroy(e)},Z.prototype[c]=function(){let e;return!this.destroyed&&(e=this.readableEnded?null:new M,this.destroy(e)),new l((t,r)=>y(this,n=>n&&n!==e?r(n):t(null)))},Z.prototype.push=function(e,t){return K(this,e,t,!1)},Z.prototype.unshift=function(e,t){return K(this,e,t,!0)},Z.prototype.isPaused=function(){let e=this._readableState;return e[L]===!0||e.flowing===!1},Z.prototype.setEncoding=function(e){let t=new I(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let r=this._readableState.buffer;let n="";for(let e of r)n+=t.write(e);return r.clear(),n!==""&&r.push(n),this._readableState.length=n.length,this},Z.prototype.read=function(e){k("read",e),e===undefined?e=NaN:!r(e)&&(e=a(e,10));let t=this._readableState;let n=e;if(e>t.highWaterMark&&(t.highWaterMark=X(e)),e!==0&&(t.state&=~z),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return k("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ed(this):et(this),null;if((e=Q(e,t))===0&&t.ended)return t.length===0&&ed(this),null;let i=(t.state&$)!==0;if(k("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&k("length less than watermark",i=!0),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)k("reading, ended or constructing",i=!1);else if(i){k("do read"),t.state|=F|U,t.length===0&&(t.state|=$);try{this._read(t.highWaterMark)}catch(e){P(this,e)}t.state&=~U,!t.reading&&(e=Q(n,t))}let s;return(s=e>0?em(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(!t.ended&&(t.needReadable=!0),n!==e&&t.ended&&ed(this)),s!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",s)),s},Z.prototype._read=function(e){throw new T("_read()")},Z.prototype.pipe=function(t,r){let n=this;let a=this._readableState;a.pipes.length===1&&!a.multiAwaitDrain&&(a.multiAwaitDrain=!0,a.awaitDrainWriters=new u(a.awaitDrainWriters?[a.awaitDrainWriters]:[])),a.pipes.push(t),k("pipe count=%d opts=%j",a.pipes.length,r);let i=(!r||r.end!==!1)&&t!==e.stdout&&t!==e.stderr?o:y;function s(e,t){k("onunpipe"),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,h())}function o(){k("onend"),t.end()}a.endEmitted?e.nextTick(i):n.once("end",i),t.on("unpipe",s);let l;let c=!1;function h(){k("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),l&&t.removeListener("drain",l),t.removeListener("error",d),t.removeListener("unpipe",s),n.removeListener("end",o),n.removeListener("end",y),n.removeListener("data",m),c=!0,l&&a.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function f(){!c&&(a.pipes.length===1&&a.pipes[0]===t?(k("false write response, pause",0),a.awaitDrainWriters=t,a.multiAwaitDrain=!1):a.pipes.length>1&&a.pipes.includes(t)&&(k("false write response, pause",a.awaitDrainWriters.size),a.awaitDrainWriters.add(t)),n.pause()),!l&&(l=ei(n,t),t.on("drain",l))}function m(e){k("ondata");let r=t.write(e);k("dest.write",r),r===!1&&f()}function d(e){if(k("onerror",e),y(),t.removeListener("error",d),t.listenerCount("error")===0){let r=t._writableState||t._readableState;r&&!r.errorEmitted?P(t,e):t.emit("error",e)}}function g(){t.removeListener("finish",b),y()}function b(){k("onfinish"),t.removeListener("close",g),y()}function y(){k("unpipe"),n.unpipe(t)}return n.on("data",m),p(t,"error",d),t.once("close",g),t.once("finish",b),t.emit("pipe",n),t.writableNeedDrain===!0?f():!a.flowing&&(k("pipe resume"),n.resume()),t},Z.prototype.unpipe=function(e){let r=this._readableState;if(r.pipes.length===0)return this;if(!e){let e=r.pipes;r.pipes=[],this.pause();for(let t=0;t<e.length;t++)e[t].emit("unpipe",this,{hasUnpiped:!1});return this}let n=t(r.pipes,e);return n===-1||(r.pipes.splice(n,1),r.pipes.length===0&&this.pause(),e.emit("unpipe",this,{hasUnpiped:!1})),this},Z.prototype.on=function(t,r){let n=d.prototype.on.call(this,t,r);let a=this._readableState;return t==="data"?(a.readableListening=this.listenerCount("readable")>0,a.flowing!==!1&&this.resume()):t==="readable"&&!a.endEmitted&&!a.readableListening&&(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,k("on readable",a.length,a.reading),a.length?et(this):!a.reading&&e.nextTick(eo,this)),n},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(t,r){let n=d.prototype.removeListener.call(this,t,r);return t==="readable"&&e.nextTick(es,this),n},Z.prototype.off=Z.prototype.removeListener,Z.prototype.removeAllListeners=function(t){let r=d.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===undefined)&&e.nextTick(es,this),r},Z.prototype.resume=function(){let e=this._readableState;return!e.flowing&&(k("resume"),e.flowing=!e.readableListening,el(this,e)),e[L]=!1,this},Z.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[L]=!0,this},Z.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",e=>{P(this,e)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let r=s(e);for(let t=1;t<r.length;t++){let n=r[t];this[n]===undefined&&typeof e[n]=="function"&&(this[n]=e[n].bind(e))}return this},Z.prototype[h]=function(){return eh(this)},Z.prototype.iterator=function(e){return e!==undefined&&O(e,"options"),eh(this,e)},i(Z.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){if(!this._readableState)return;this._readableState.destroyed=e}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),i(Y.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[L]!==!1},set(e){this[L]=!!e}}}),Z._fromList=em,Z.from=function(e,t){return C(Z,e,t)};let eb;function ey(){return eb===undefined&&(eb={}),eb}Z.fromWeb=function(e,t){return ey().newStreamReadableFromReadableStream(e,t)},Z.toWeb=function(e,t){return ey().newReadableStreamFromStreamReadable(e,t)},Z.wrap=function(e,t){var r,n;return new Z({objectMode:(r=(n=e.readableObjectMode)!==null&&n!==undefined?n:e.objectMode)!==null&&r!==undefined?r:!0,...t,destroy(t,r){v.destroyer(e,t),r(t)}}).wrap(e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},705025(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{s:()=>t});var e=__webpack_require__(142827);function t(t,r){return(0,e.E8)(t,e=>{return typeof e=="string"&&r.test(e)})}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},706524(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>o});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(382906);var n=__webpack_require__(335562);var a=__webpack_require__(879771);var i=__webpack_require__(676358);let s=(0,e.KC)([n.y,r.s3]);let o=(0,t.kp)(i.Wu,(0,e.Ik)({type:(0,a.eu)(i.Z6.Form),children:(0,e.YO)(s),name:(0,e.Yj)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},708566(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";class e extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let t="";for(let r=0;r<e.length;r++)t+=`    ${e[r].stack}
`;super(t),this.name="AggregateError",this.errors=e}}module.exports={AggregateError:e,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},722837(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;var t;__webpack_require__.d(__webpack_exports__,{h:()=>e}),(t=e||(e={}))["Alert"]="alert",t["Confirmation"]="confirmation",t["Prompt"]="prompt"}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_exports__,__webpack_require__}))()},745085(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Boolean(e)&&typeof e=="object"&&!Array.isArray(e)}__webpack_require__.d(__webpack_exports__,{Gv:()=>e,Qd:()=>a,i5:()=>t});let t=(e,t)=>Object.hasOwnProperty.call(e,t);var r;var n;(n=r=r||(r={}))[n["Null"]=4]="Null",n[n["Comma"]=1]="Comma",n[n["Wrapper"]=1]="Wrapper",n[n["True"]=4]="True",n[n["False"]=5]="False",n[n["Quote"]=1]="Quote",n[n["Colon"]=1]="Colon",n[n["Date"]=24]="Date";function a(e){if(typeof e!=="object"||e===null)return!1;try{let t=e;while(Object.getPrototypeOf(t)!==null)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_exports__,__webpack_require__}))()},750628(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>l});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r={};function n(e){return!r[e]&&(r[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),r[e]}let a={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function i(e,t){let r=e.format(t).replace(/\u200E/g,""),[,n,a,i,s,o,l,u]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r);return[i,n,a,s,o,l,u]}function s(t,r){let n=t.formatToParts(r);let i=[];for(let t=0;t<n.length;t++){let{type:r,value:s}=n[t];let o=a[r];r==="era"?i[o]=s:!(0,e.b0)(o)&&(i[o]=parseInt(s,10))}return i}let o={};class l extends t.A{static create(e){return!o[e]&&(o[e]=new l(e)),o[e]}static resetCache(){o={},r={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=l.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return(0,e.wG)(t,r,n,this.name)}formatOffset(t,r){return(0,e.xS)(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let a=n(this.name);let[o,l,u,c,h,f,m]=a.formatToParts?s(a,r):i(a,r);c==="BC"&&(o=-Math.abs(o)+1);let d=(0,e.JZ)({year:o,month:l,day:u,hour:h===24?0:h,minute:f,second:m,millisecond:0});let p=+r;let g=p%1e3;return(d-(p-=g>=0?g:1e3+g))/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},754255(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=i,i.default=i,i.stable=u,i.stableStringify=u;var e="[...]";var t="[Circular]";var r=[];var n=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(e,t,i,s){var l;s===void 0&&(s=a()),o(e,"",0,[],undefined,0,s);try{l=n.length===0?JSON.stringify(e,t,i):JSON.stringify(e,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(r.length!==0){var u=r.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return l}function s(e,t,a,i){var s=Object.getOwnPropertyDescriptor(i,a);s.get!==undefined?s.configurable?(Object.defineProperty(i,a,{value:e}),r.push([i,a,t,s])):n.push([t,a,e]):(i[a]=e,r.push([i,a,t]))}function o(r,n,a,i,l,u,c){var h;if(u+=1,typeof r=="object"&&r!==null){for(h=0;h<i.length;h++)if(i[h]===r){s(t,r,n,l);return}if(c.depthLimit!==void 0&&u>c.depthLimit||c.edgesLimit!==void 0&&a+1>c.edgesLimit){s(e,r,n,l);return}if(i.push(r),Array.isArray(r))for(h=0;h<r.length;h++)o(r[h],h,h,i,r,u,c);else{var f=Object.keys(r);for(h=0;h<f.length;h++){var m=f[h];o(r[m],m,h,i,r,u,c)}}i.pop()}}function l(e,t){return e<t?-1:(0,e>t)?1:(0,0)}function u(e,t,i,s){s===void 0&&(s=a());var o=c(e,"",0,[],undefined,0,s)||e;var l;try{l=n.length===0?JSON.stringify(o,t,i):JSON.stringify(o,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(r.length!==0){var u=r.pop();u.length===4?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return l}function c(n,a,i,o,u,h,f){var m;if(h+=1,typeof n=="object"&&n!==null){for(m=0;m<o.length;m++)if(o[m]===n){s(t,n,a,u);return}try{if(typeof n.toJSON=="function")return}catch(e){return}if(f.depthLimit!==void 0&&h>f.depthLimit||f.edgesLimit!==void 0&&i+1>f.edgesLimit){s(e,n,a,u);return}if(o.push(n),Array.isArray(n))for(m=0;m<n.length;m++)c(n[m],m,m,o,n,h,f);else{var d={};var p=Object.keys(n).sort(l);for(m=0;m<p.length;m++){var g=p[m];c(n[g],g,m,o,n,h,f),d[g]=n[g]}if(u===void 0)return d;r.push([u,a,n]),u[a]=d}o.pop()}}function h(e){return e=e!==void 0?e:function(e,t){return t},function(t,r){if(n.length>0)for(var a=0;a<n.length;a++){var i=n[a];if(i[1]===t&&i[0]===r){r=i[2],n.splice(a,1);break}}return e.call(this,t,r)}}}}).call(__webpack_require__._LM_("@metamask/rpc-errors>fast-safe-stringify",{module,__webpack_require__}))()},755593(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{U:()=>l});var e=__webpack_require__(896639);var t=__webpack_require__(107927);var r=__webpack_require__(524382);var n=undefined||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};var a,i;let s=(a=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"source"))===null||a===void 0?void 0:a.get;(0,e.vA)(s,"MessageEvent.prototype.source getter is not defined.");let o=(i=Object.getOwnPropertyDescriptor(MessageEvent.prototype,"origin"))===null||i===void 0?void 0:i.get;(0,e.vA)(o,"MessageEvent.prototype.origin getter is not defined.");class l extends t.l{constructor(e){var{name:t,target:r,targetOrigin:a=location.origin,targetWindow:i=window}=e;if(super(n(e,["name","target","targetOrigin","targetWindow"])),typeof window=="undefined"||typeof window.postMessage!=="function")throw new Error("window.postMessage is not a function. This class should only be instantiated in a Window.");this._name=t,this._target=r,this._targetOrigin=a,this._targetWindow=i,this._onMessage=this._onMessage.bind(this),window.addEventListener("message",this._onMessage,!1),this._handshake()}_postMessage(e){this._targetWindow.postMessage({target:this._target,data:e},this._targetOrigin)}_onMessage(e){let t=e.data;if(this._targetOrigin!=="*"&&o.call(e)!==this._targetOrigin||s.call(e)!==this._targetWindow||!(0,r.E)(t)||t.target!==this._name)return;this._onData(t.data)}_destroy(){window.removeEventListener("message",this._onMessage,!1)}}}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},760184(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{UG:()=>c});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(661330);var n=__webpack_require__(456895);var a=__webpack_require__(896639);let{memoize:i}=n;let s=/^(?:0x)?[0-9a-f]+$/iu;let o=/^0x[0-9a-f]+$/iu;let l=/^0x[0-9a-f]{40}$/u;let u=/^0x[0-9a-fA-F]{40}$/u;(0,e.T1)((0,t.Yj)(),s),(0,e.T1)((0,t.Yj)(),o),(0,e.T1)((0,t.Yj)(),l);let c=(0,e.T1)((0,t.Yj)(),u);function h(e){return(0,typeof e=="string")&&l.test(e)}function f(e){return(0,typeof e=="string")&&u.test(e)}let m=i(function(e){(0,a.vA)(f(e),"Invalid hex address.");let t=p(e).toLowerCase();let n=(0,r.lY)(t);let{length:i}=t;let s=new Array(i);for(let e=0;e<i;e++){let r=e>>1;let a=e&1;let i=n[r];let o=a===0?i>>4:i&15;s[e]=o>=8?t[e].toUpperCase():t[e]}return`0x${s.join("")}`});let d=i(function(e){return!f(e)?!1:(0,m(e)===e)});function p(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):(0,e)}i(function(e){return h(e)||d(e)})}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},761124(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{PromisePrototypeThen:t,SymbolAsyncIterator:r,SymbolIterator:n}=__webpack_require__(708566);let{Buffer:a}=__webpack_require__(971567);let{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:s}=__webpack_require__(868387).codes;module.exports=function(o,l,u){let c;if(typeof l=="string"||l instanceof a)return new o({objectMode:!0,...u,read(){this.push(l),this.push(null)}});let h;if(l&&l[r])h=!0,c=l[r]();else if(l&&l[n])h=!1,c=l[n]();else throw new i("iterable",["Iterable"],l);let f=new o({objectMode:!0,highWaterMark:1,...u});let m=!1;async function d(e){let t=e!==undefined&&e!==null;let r=typeof c.throw=="function";if(t&&r){let{value:t,done:r}=await c.throw(e);if(await t,r)return}if(typeof c.return=="function"){let{value:e}=await c.return();await e}}async function p(){for(;;){try{let{value:e,done:t}=h?await c.next():c.next();if(t)f.push(null);else{let t=e&&typeof e.then=="function"?await e:e;if(t===null)throw m=!1,new s;if(f.push(t))continue;m=!1}}catch(e){f.destroy(e)}break}}return f._read=function(){!m&&(m=!0,p())},f._destroy=function(r,n){t(d(r),()=>e.nextTick(n,r),t=>e.nextTick(n,t||r))},f}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},769584(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(971567);let{format:t,inspect:r}=__webpack_require__(588847);let{codes:{ERR_INVALID_ARG_TYPE:n}}=__webpack_require__(868387);let{kResistStopPropagation:a,AggregateError:i,SymbolDispose:s}=__webpack_require__(708566);let o=globalThis.AbortSignal||__webpack_require__(581808).AbortSignal;let l=globalThis.AbortController||__webpack_require__(581808).AbortController;let u=Object.getPrototypeOf(async function(){}).constructor;let c=globalThis.Blob||e.Blob;let h=(e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e)))throw new n(t,"AbortSignal",e)};module.exports={AggregateError:i,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...r){if(t)return;t=!0,e.apply(this,r)}},createDeferredPromise:function(){let e;let t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}},promisify(e){return new Promise((t,r)=>{e((e,...n)=>{return e?r(e):(0,t(...n))})})},debuglog(){return function(){}},format:t,inspect:r,types:{isAsyncFunction(e){return e instanceof u},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:c!==void 0?function(e){return e instanceof c}:function(e){return!1},deprecate(e,t){return e},addAbortListener:__webpack_require__(780063).addAbortListener||function(e,t){if(e===undefined)throw new n("signal","AbortSignal",e);h(e,"signal");if(typeof t!=="function")throw new n("listener","Function",t);let r;return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[a]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[s](){var e;(e=r)===null||e===undefined||e()}}},AbortSignalAny:o.any||function(e){if(e.length===1)return e[0];let t=new l;let r=()=>t.abort();return e.forEach(e=>{h(e,"signals"),e.addEventListener("abort",r,{once:!0})}),t.signal.addEventListener("abort",()=>{e.forEach(e=>e.removeEventListener("abort",r))},{once:!0}),t.signal}},module.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},770467(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MIN_CHUNK_SIZE=exports.CHUNK_SIZE=void 0,exports.CHUNK_SIZE=globalThis.navigator.userAgent.includes("Firefox")?0:1<<26,exports.MIN_CHUNK_SIZE=24}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},774810(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>n});var e=__webpack_require__(512986);var t=__webpack_require__(835203);let r=null;class n extends t.A{static get utcInstance(){return r===null&&(r=new n(0)),r}static instance(e){return e===0?n.utcInstance:new n(e)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new n((0,e.gu)(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${(0,e.xS)(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":(0,`Etc/GMT${(0,e.xS)(-this.fixed,"narrow")}`)}offsetName(){return this.name}formatOffset(t,r){return(0,e.xS)(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},775158(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{GR:()=>A,Z7:()=>M,np:()=>T,ws:()=>R,zb:()=>x});var e=__webpack_require__(512986);var t=__webpack_require__(868766);var r=__webpack_require__(774810);var n=__webpack_require__(750628);var a=__webpack_require__(835060);var i=__webpack_require__(138292);var s=__webpack_require__(695358);function o(e,t=e=>e){return{regex:e,deser:([e])=>t((0,i.o_)(e))}}let l=String.fromCharCode(160);let u=`[ ${l}]`;let c=new RegExp(u,"g");function h(e){return e.replace(/\./g,"\\.?").replace(c,u)}function f(e){return e.replace(/\./g,"").replace(c," ").toLowerCase()}function m(e,t){return e===null?null:(0,{regex:RegExp(e.map(h).join("|")),deser:([r])=>e.findIndex(e=>f(r)===f(e))+t})}function d(t,r){return{regex:t,deser:([,t,r])=>(0,e.gu)(t,r),groups:r}}function p(e){return{regex:e,deser:([e])=>e}}function g(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function b(t,r){let n=(0,i.dO)(r),a=(0,i.dO)(r,"{2}"),s=(0,i.dO)(r,"{3}"),l=(0,i.dO)(r,"{4}"),u=(0,i.dO)(r,"{6}"),c=(0,i.dO)(r,"{1,2}"),h=(0,i.dO)(r,"{1,3}"),f=(0,i.dO)(r,"{1,6}"),b=(0,i.dO)(r,"{1,9}"),y=(0,i.dO)(r,"{2,4}"),k=(0,i.dO)(r,"{4,6}"),w=e=>({regex:RegExp(g(e.val)),deser:([e])=>e,literal:!0});let v=(i=>{if(t.literal)return w(i);switch(i.val){case"G":return m(r.eras("short"),0);case"GG":return m(r.eras("long"),0);case"y":return o(f);case"yy":return o(y,e.fT);case"yyyy":return o(l);case"yyyyy":return o(k);case"yyyyyy":return o(u);case"M":return o(c);case"MM":return o(a);case"MMM":return m(r.months("short",!0),1);case"MMMM":return m(r.months("long",!0),1);case"L":return o(c);case"LL":return o(a);case"LLL":return m(r.months("short",!1),1);case"LLLL":return m(r.months("long",!1),1);case"d":return o(c);case"dd":return o(a);case"o":return o(h);case"ooo":return o(s);case"HH":return o(a);case"H":return o(c);case"hh":return o(a);case"h":return o(c);case"mm":return o(a);case"m":return o(c);case"q":return o(c);case"qq":return o(a);case"s":return o(c);case"ss":return o(a);case"S":return o(h);case"SSS":return o(s);case"u":return p(b);case"uu":return p(c);case"uuu":return o(n);case"a":return m(r.meridiems(),0);case"kkkk":return o(l);case"kk":return o(y,e.fT);case"W":return o(c);case"WW":return o(a);case"E":case"c":return o(n);case"EEE":return m(r.weekdays("short",!1),1);case"EEEE":return m(r.weekdays("long",!1),1);case"ccc":return m(r.weekdays("short",!0),1);case"cccc":return m(r.weekdays("long",!0),1);case"Z":case"ZZ":return d(new RegExp(`([+-]${c.source})(?::(${a.source}))?`),2);case"ZZZ":return d(new RegExp(`([+-]${c.source})(${a.source})?`),2);case"z":return p(/[a-z_+-/]{1,256}?/i);case" ":return p(/[^\S\n\r]/);default:return w(i)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return v.token=t,v}let y={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function k(e,t,r){let{type:n,value:a}=e;if(n==="literal"){let e=/^\s+$/.test(a);return{literal:!e,val:e?" ":a}}let i=t[n];let s=n;n==="hour"&&(s=t.hour12!=null?t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?"hour12":"hour24":r.hour12?"hour12":"hour24");let o=y[s];return(typeof o=="object"&&(o=o[i]),o)?{literal:!1,val:o}:(0,undefined)}function w(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}function v(t,r,n){let a=t.match(r);if(!a)return[a,{}];{let t={};let r=1;for(let i in n)if((0,e.mQ)(n,i)){let e=n[i],s=e.groups?e.groups+1:1;!e.literal&&e.token&&(t[e.token.val[0]]=e.deser(a.slice(r,r+s))),r+=s}return[a,t]}}function _(t){let a=null;let i;return!(0,e.b0)(t.z)&&(a=n.A.create(t.z)),!(0,e.b0)(t.Z)&&(!a&&(a=new r.A(t.Z)),i=t.Z),!(0,e.b0)(t.q)&&(t.M=(t.q-1)*3+1),!(0,e.b0)(t.h)&&(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),!(0,e.b0)(t.u)&&(t.S=(0,e.m3)(t.u)),[Object.keys(t).reduce((e,r)=>{let n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(e[n]=t[r]),e},{}),a,i]}let S=null;function E(){return!S&&(S=a.A.fromMillis(0x16a2e5618e3)),S}function j(e,r){if(e.literal)return e;let n=M(t.A.macroTokenToFormatOpts(e.val),r);return n==null||n.includes(undefined)?e:(0,n)}function T(e,t){return Array.prototype.concat(...e.map(e=>j(e,t)))}class x{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=T(t.A.parseFormat(r),e),this.units=this.tokens.map(t=>b(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=w(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(t){if(!this.isValid)return{input:t,tokens:this.tokens,invalidReason:this.invalidReason};{let[r,n]=v(t,this.regex,this.handlers),[a,i,o]=n?_(n):[null,null,undefined];if((0,e.mQ)(n,"a")&&(0,e.mQ)(n,"H"))throw new s.gN("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:a,zone:i,specificOffset:o}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function A(e,t,r){return new x(e,r).explainFromTokens(t)}function R(e,t,r){let{result:n,zone:a,specificOffset:i,invalidReason:s}=A(e,t,r);return[n,a,i,s]}function M(e,r){if(!e)return null;let n=t.A.create(r,e).dtFormatter(E());let a=n.formatToParts();let i=n.resolvedOptions();return a.map(t=>k(t,e,i))}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},777352(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{ArrayPrototypeSlice:t,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:a,ObjectDefineProperties:i,ObjectSetPrototypeOf:s,StringPrototypeToLowerCase:o,Symbol:l,SymbolHasInstance:u}=__webpack_require__(708566);module.exports=O,O.WritableState=R;let{EventEmitter:c}=__webpack_require__(780063);let h=__webpack_require__(449219).Stream;let{Buffer:f}=__webpack_require__(971567);let m=__webpack_require__(338568);let{addAbortSignal:d}=__webpack_require__(452547);let{getHighWaterMark:p,getDefaultHighWaterMark:g}=__webpack_require__(252859);let{ERR_INVALID_ARG_TYPE:b,ERR_METHOD_NOT_IMPLEMENTED:y,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:v,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:S,ERR_STREAM_WRITE_AFTER_END:E,ERR_UNKNOWN_ENCODING:j}=__webpack_require__(868387).codes;let{errorOrDestroy:T}=m;function x(){}s(O.prototype,h.prototype),s(O,h);let A=l("kOnFinished");function R(e,t,r){typeof r!=="boolean"&&(r=t instanceof __webpack_require__(68266)),this.objectMode=!!(e&&e.objectMode),r&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?p(this,e,"writableHighWaterMark",r):g(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let n=!!(e&&e.decodeStrings===!1);this.decodeStrings=!n,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=P.bind(undefined,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[A]=[]}function M(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}function O(e){let t=this instanceof __webpack_require__(68266);if(!t&&!n(O,this))return new O(e);this._writableState=new R(e,this,t),e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&d(e.signal,this)),h.call(this,e),m.construct(this,()=>{let e=this._writableState;!e.writing&&q(this,e),W(this,e)})}function L(t,r,n,a){let i=t._writableState;if(typeof n=="function")a=n,n=i.defaultEncoding;else{if(n){if(n!=="buffer"&&!f.isEncoding(n))throw new j(n)}else n=i.defaultEncoding;typeof a!=="function"&&(a=x)}if(r===null)throw new S;if(!i.objectMode)if(typeof r=="string")i.decodeStrings!==!1&&(r=f.from(r,n),n="buffer");else if(r instanceof f)n="buffer";else if(h._isUint8Array(r))r=h._uint8ArrayToBuffer(r),n="buffer";else throw new b("chunk",["string","Buffer","Uint8Array"],r);let s;return(i.ending?s=new E:i.destroyed&&(s=new v("write")),s)?(e.nextTick(a,s),T(t,s,!0),s):(i.pendingcb++,I(t,i,r,n,a))}function I(e,t,r,n,a){let i=t.objectMode?1:r.length;t.length+=i;let s=t.length<t.highWaterMark;return!s&&(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:r,encoding:n,callback:a}),t.allBuffers&&n!=="buffer"&&(t.allBuffers=!1),t.allNoop&&a!==x&&(t.allNoop=!1)):(t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,e._write(r,n,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function C(e,t,r,n,a,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function N(e,t,r,n){--t.pendingcb,n(r),F(t),T(e,r)}function P(t,r){let n=t._writableState;let a=n.sync;let i=n.writecb;if(typeof i!=="function"){T(t,new k);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,r?(r.stack,!n.errored&&(n.errored=r),t._readableState&&!t._readableState.errored&&(t._readableState.errored=r),a?e.nextTick(N,t,n,r,i):N(t,n,r,i)):(n.buffered.length>n.bufferedIndex&&q(t,n),a?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:t,state:n},e.nextTick(D,n.afterWriteTickInfo)):B(t,n,1,i))}function D({stream:e,state:t,count:r,cb:n}){return t.afterWriteTickInfo=null,B(e,t,r,n)}function B(e,t,r,n){!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));while(r-- >0)t.pendingcb--,n();t.destroyed&&F(t),W(e,t)}function F(e){if(e.writing)return;for(let r=e.bufferedIndex;r<e.buffered.length;++r){var t;let{chunk:n,callback:a}=e.buffered[r];let i=e.objectMode?1:n.length;e.length-=i,a((t=e.errored)!==null&&t!==undefined?t:new v("write"))}let r=e[A].splice(0);for(let t=0;t<r.length;t++){var n;r[t]((n=e.errored)!==null&&n!==undefined?n:new v("end"))}M(e)}function q(e,r){if(r.corked||r.bufferProcessing||r.destroyed||!r.constructed)return;let{buffered:n,bufferedIndex:a,objectMode:i}=r;let s=n.length-a;if(!s)return;let o=a;if(r.bufferProcessing=!0,s>1&&e._writev){r.pendingcb-=s-1;let a=r.allNoop?x:e=>{for(let t=o;t<n.length;++t)n[t].callback(e)};let i=r.allNoop&&o===0?n:t(n,o);i.allBuffers=r.allBuffers,C(e,r,!0,r.length,i,"",a),M(r)}else{do{let{chunk:t,encoding:a,callback:s}=n[o];n[o++]=null,C(e,r,!1,i?1:t.length,t,a,s)}while(o<n.length&&!r.writing)o===n.length?M(r):o>256?(n.splice(0,o),r.bufferedIndex=0):r.bufferedIndex=o}r.bufferProcessing=!1}function U(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function $(t,r){let n=!1;function a(a){if(n){T(t,a!==null&&a!==undefined?a:k());return}if(n=!0,r.pendingcb--,a){let e=r[A].splice(0);for(let t=0;t<e.length;t++)e[t](a);T(t,a,r.sync)}else U(r)&&(r.prefinished=!0,t.emit("prefinish"),r.pendingcb++,e.nextTick(H,t,r))}r.sync=!0,r.pendingcb++;try{t._final(a)}catch(e){a(e)}r.sync=!1}function z(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final!="function"||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.finalCalled=!0,$(e,t)))}function W(t,r,n){U(r)&&(z(t,r),r.pendingcb===0&&(n?(r.pendingcb++,e.nextTick((e,t)=>{U(t)?H(e,t):t.pendingcb--},t,r)):U(r)&&(r.pendingcb++,H(t,r))))}function H(e,t){t.pendingcb--,t.finished=!0;let r=t[A].splice(0);for(let e=0;e<r.length;e++)r[e]();if(e.emit("finish"),t.autoDestroy){let t=e._readableState;(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))&&e.destroy()}}R.prototype.getBuffer=function(){return t(this.buffered,this.bufferedIndex)},a(R.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}}),a(O,u,{__proto__:null,value:function(e){return n(this,e)?!0:(0,this!==O)?!1:(0,e&&e._writableState instanceof R)}}),O.prototype.pipe=function(){T(this,new w)},O.prototype.write=function(e,t,r){return L(this,e,t,r)===!0},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,!e.writing&&q(this,e))},O.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=o(e)),!f.isEncoding(e))throw new j(e);return this._writableState.defaultEncoding=e,this},O.prototype._write=function(e,t,r){if(this._writev)this._writev([{chunk:e,encoding:t}],r);else throw new y("_write()")},O.prototype._writev=null,O.prototype.end=function(t,n,a){let i=this._writableState;typeof t=="function"?(a=t,t=null,n=null):typeof n=="function"&&(a=n,n=null);let s;if(t!==null&&t!==undefined){let e=L(this,t,n);e instanceof r&&(s=e)}return i.corked&&(i.corked=1,this.uncork()),s||(i.errored||i.ending?i.finished?s=new _("end"):i.destroyed&&(s=new v("end")):(i.ending=!0,W(this,i,!0),i.ended=!0)),typeof a=="function"&&(s||i.finished?e.nextTick(a,s):i[A].push(a)),this},i(O.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return!e?!1:(0,!e.destroyed&&!e.ending&&e.needDrain)}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});let G=m.destroy;O.prototype.destroy=function(t,r){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[A].length)&&e.nextTick(F,n),G.call(this,t,r),this},O.prototype._undestroy=m.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype[c.captureRejectionSymbol]=function(e){this.destroy(e)};let V;function Y(){return V===undefined&&(V={}),V}O.fromWeb=function(e,t){return Y().newStreamWritableFromWritableStream(e,t)},O.toWeb=function(e){return Y().newWritableStreamFromStreamWritable(e)}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},777544(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";Object.freeze({"endowment:network-access":"endowment:network-access","endowment:transaction-insight":"endowment:transaction-insight","endowment:cronjob":"endowment:cronjob","endowment:ethereum-provider":"endowment:ethereum-provider","endowment:rpc":"endowment:rpc","endowment:webassembly":"endowment:webassembly","endowment:lifecycle-hooks":"endowment:lifecycle-hooks","endowment:messenger":"endowment:messenger","endowment:multichain-provider":"endowment:multichain-provider","endowment:page-home":"endowment:page-home","endowment:page-settings":"endowment:page-settings","endowment:signature-insight":"endowment:signature-insight","endowment:name-lookup":"endowment:name-lookup","endowment:assets":"endowment:assets","endowment:protocol":"endowment:protocol","endowment:keyring":"endowment:keyring"}),Object.freeze({}),Object.freeze({"endowment:caip25":"eth_accounts is disabled. For more information please see https://github.com/MetaMask/snaps/issues/990."}),Object.freeze(["endowment:caip25"])}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},780063(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=typeof Reflect=="object"?Reflect:null;var t=e&&typeof e.apply=="function"?e.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};var r;function n(e){console&&console.warn&&console.warn(e)}r=e&&typeof e.ownKeys=="function"?e.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}module.exports=i,module.exports.once=b,i.EventEmitter=i,i.prototype._events=undefined,i.prototype._eventsCount=0,i.prototype._maxListeners=undefined;var s=10;function o(e){if(typeof e!=="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return e._maxListeners===undefined?i.defaultMaxListeners:(0,e._maxListeners)}function u(e,t,r,a){var i;var s;var u;if(o(r),(s=e._events)===undefined?(s=e._events=Object.create(null),e._eventsCount=0):(s.newListener!==undefined&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),u=s[t]),u===undefined)u=s[t]=r,++e._eventsCount;else if(typeof u=="function"?u=s[t]=a?[r,u]:[u,r]:a?u.unshift(r):u.push(r),(i=l(e))>0&&u.length>i&&!u.warned){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners "+"added. Use emitter.setMaxListeners() to "+"increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,n(c)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length==0)?this.listener.call(this.target):(0,this.listener.apply(this.target,arguments))}function h(e,t,r){var n={fired:!1,wrapFn:undefined,target:e,type:t,listener:r};var a=c.bind(n);return a.listener=r,n.wrapFn=a,a}function f(e,t,r){var n=e._events;if(n===undefined)return[];var a=n[t];return a===undefined?[]:(0,typeof a=="function")?r?[a.listener||a]:[a]:(0,r?g(a):d(a,a.length))}function m(e){var t=this._events;if(t!==undefined){var r=t[e];if(typeof r=="function")return 1;if(r!==undefined)return r.length}return 0}function d(e,t){var r=new Array(t);for(var n=0;n<t;++n)r[n]=e[n];return r}function p(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g(e){var t=new Array(e.length);for(var r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,n){function a(r){e.removeListener(t,i),n(r)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",a),r([].slice.call(arguments))}k(e,t,i,{once:!0}),t!=="error"&&y(e,a,{once:!0})})}function y(e,t,r){typeof e.on=="function"&&k(e,"error",t,r)}function k(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(i){n.once&&e.removeEventListener(t,a),r(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if(typeof e!=="number"||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){(this._events===undefined||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||undefined},i.prototype.setMaxListeners=function(e){if(typeof e!=="number"||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){var r=[];for(var n=1;n<arguments.length;n++)r.push(arguments[n]);var a=e==="error";var i=this._events;if(i!==undefined)a=a&&i.error===undefined;else if(!a)return!1;if(a){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=i[e];if(l===undefined)return!1;if(typeof l=="function")t(l,this,r);else{var u=l.length;var c=d(l,u);for(var n=0;n<u;++n)t(c[n],this,r)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,h(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,h(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,a,i,s;if(o(t),(n=this._events)===undefined||(r=n[e])===undefined)return this;if(r===t||r.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if(typeof r!=="function"){for(a=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,a=i;break}if(a<0)return this;a===0?r.shift():p(r,a),r.length===1&&(n[e]=r[0]),n.removeListener!==undefined&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if((r=this._events)===undefined)return this;if(r.removeListener===undefined)return arguments.length==0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==undefined&&(--this._eventsCount==0?this._events=Object.create(null):delete r[e]),this;if(arguments.length==0){var a=Object.keys(r);var i;for(n=0;n<a.length;++n){if((i=a[n])==="removeListener")continue;this.removeAllListeners(i)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=r[e])=="function")this.removeListener(e,t);else if(t!==undefined)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return f(this,e,!0)},i.prototype.rawListeners=function(e){return f(this,e,!1)},i.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):(0,m.call(e,t))},i.prototype.listenerCount=m,i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}).call(__webpack_require__._LM_("webpack>events",{module,__webpack_require__}))()},784225(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Ej:()=>n,T1:()=>r,YP:()=>a});var e=__webpack_require__(356583);var t=__webpack_require__(244231);function r(e,t){return a(e,"pattern",r=>{return t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`})}function n(e,t,r=t){let i=`Expected a ${e.type}`;let s=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return a(e,"size",e=>{if(typeof e=="number"||e instanceof Date)return t<=e&&e<=r||`${i} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:n}=e;return t<=n&&n<=r||`${i} with a size ${s} but received one with a size of \`${n}\``}let{length:n}=e;return t<=n&&n<=r||`${i} with a length ${s} but received one with a length of \`${n}\``})}function a(r,n,a){return new e._k({...r,*refiner(e,i){yield*r.refiner(e,i);let s=a(e,i);for(let a of(0,t.RF)(s,i,r,e))yield{...a,refinement:n}}})}}}).call(__webpack_require__._LM_("@metamask/superstruct",{__webpack_require__,__webpack_exports__}))()},796213(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(689132);let t={ADD_ETHEREUM_CHAIN:"wallet_addEthereumChain",ETH_ACCOUNTS:__webpack_require__(886418).wq.eth_accounts,ETH_DECRYPT:"eth_decrypt",ETH_CHAIN_ID:"eth_chainId",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_GET_BLOCK_BY_NUMBER:"eth_getBlockByNumber",ETH_REQUEST_ACCOUNTS:"eth_requestAccounts",ETH_SEND_TRANSACTION:"eth_sendTransaction",ETH_SEND_RAW_TRANSACTION:"eth_sendRawTransaction",ETH_SIGN_TRANSACTION:"eth_signTransaction",ETH_SIGN_TYPED_DATA:"eth_signTypedData",ETH_SIGN_TYPED_DATA_V1:"eth_signTypedData_v1",ETH_SIGN_TYPED_DATA_V3:"eth_signTypedData_v3",ETH_SIGN_TYPED_DATA_V4:"eth_signTypedData_v4",GET_PROVIDER_STATE:"metamask_getProviderState",LOG_WEB3_SHIM_USAGE:"metamask_logWeb3ShimUsage",PERSONAL_SIGN:"personal_sign",SEND_METADATA:"metamask_sendDomainMetadata",SWITCH_ETHEREUM_CHAIN:"wallet_switchEthereumChain",TRANSACTION:"transaction",WALLET_CREATE_SESSION:"wallet_createSession",WALLET_GET_CALLS_STATUS:"wallet_getCallsStatus",WALLET_GET_CAPABILITIES:"wallet_getCapabilities",WALLET_GET_SESSION:"wallet_getSession",WALLET_INVOKE_METHOD:"wallet_invokeMethod",WALLET_REQUEST_PERMISSIONS:"wallet_requestPermissions",WALLET_REVOKE_SESSION:"wallet_revokeSession",WALLET_SEND_CALLS:"wallet_sendCalls",WALLET_SESSION_CHANGED:"wallet_sessionChanged",WALLET_REQUEST_EXECUTION_PERMISSIONS:"wallet_requestExecutionPermissions",WALLET_GET_SUPPORTED_EXECUTION_PERMISSIONS:"wallet_getSupportedExecutionPermissions",WALLET_GET_GRANTED_EXECUTION_PERMISSIONS:"wallet_getGrantedExecutionPermissions",WATCH_ASSET:"wallet_watchAsset",WATCH_ASSET_LEGACY:"metamask_watchAsset",SNAP_DIALOG_ALERT:e.rW.alert,SNAP_DIALOG_CONFIRMATION:e.rW.confirmation,SNAP_DIALOG_PROMPT:e.rW.prompt,SNAP_DIALOG_DEFAULT:e.rW.default,HYPERLIQUID_REFERRAL_CONSENT:"hyperliquid_referral_consent",ASTERDEX_REFERRAL_CONSENT:"asterdex_referral_consent",GMX_REFERRAL_CONSENT:"gmx_referral_consent",VARIATIONAL_REFERRAL_CONSENT:"variational_referral_consent"};t.HYPERLIQUID_REFERRAL_CONSENT,t.ASTERDEX_REFERRAL_CONSENT,t.GMX_REFERRAL_CONSENT,t.VARIATIONAL_REFERRAL_CONSENT,t.ETH_SIGN_TYPED_DATA,t.ETH_SIGN_TYPED_DATA_V1,t.ETH_SIGN_TYPED_DATA_V3,t.ETH_SIGN_TYPED_DATA_V4,t.PERSONAL_SIGN}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},797095(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{SM:()=>e,VD:()=>s,Xy:()=>u,Yo:()=>o,ZU:()=>i,em:()=>n,jf:()=>t,om:()=>c,s$:()=>a,uA:()=>r,ur:()=>l,xQ:()=>h});let e="metamask-contentscript";let t="metamask-inpage";let r="metamask-phishing-warning-page";let n="metamask-cookie-handler";let a="metamask-provider";let i="metamask-multichain-provider";let s="metamask-phishing-safelist";let o="phishing";let l="contentscript";let u="inpage";let c="provider";let h="publicConfig"}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},797999(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{J:()=>r});var e=__webpack_require__(784225);var t=__webpack_require__(342672);function r(){return(0,e.YP)((0,t.Yj)(),"SVG",e=>{return!e.includes("<svg")?"Value is not a valid SVG.":(0,!0)})}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},803058(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){let r=e.charCodeAt(0);let n=r^48|0;if(n>9)return null;let a=1|0;for(;;){if(a===t)return null;let r=e.charCodeAt(a)^48|0;if(r>9){if(r===76){a++;break}return null}a++,n=n*10+r}if(a===t)return null;let i=(r=e.charCodeAt(a))^48|0;if(i>9)return null;for(a++;;){if(a>=t)return null;let r=e.charCodeAt(a)^48|0;if(r>9){if(r===76){a++;break}return null}a++,i=i*10+r}if(a===t)return null;let s=e.charCodeAt(a)^48|0;return s>>>1!==0?null:(0,{id:n,seq:i,fin:s,source:e,dataIndex:a+1})}function t(t){if(typeof t!=="string")return null;let{length:r}=t;return r<6?null:(0,e(t,r))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.maybeParseAsChunkFrame=t}}).call(__webpack_require__._LM_("extension-port-stream",{exports,__webpack_require__}))()},805248(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{r:()=>n});var e=__webpack_require__(581327);var t=__webpack_require__(16905);var r=__webpack_require__(144008);let n={parse:e=>a(t.f.rpc.parse,e),invalidRequest:e=>a(t.f.rpc.invalidRequest,e),invalidParams:e=>a(t.f.rpc.invalidParams,e),methodNotFound:e=>a(t.f.rpc.methodNotFound,e),internal:e=>a(t.f.rpc.internal,e),server:e=>{if(!e||typeof e!=="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(t,e)},invalidInput:e=>a(t.f.rpc.invalidInput,e),resourceNotFound:e=>a(t.f.rpc.resourceNotFound,e),resourceUnavailable:e=>a(t.f.rpc.resourceUnavailable,e),transactionRejected:e=>a(t.f.rpc.transactionRejected,e),methodNotSupported:e=>a(t.f.rpc.methodNotSupported,e),limitExceeded:e=>a(t.f.rpc.limitExceeded,e)};function a(t,n){let[a,s]=i(n);return new e.G(t,a??(0,r.DW)(t),s)}function i(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){let{message:t,data:r}=e;if(t&&typeof t!=="string")throw new Error("Must specify string message.");return[t??undefined,r]}}return[]}}}).call(__webpack_require__._LM_("@metamask/rpc-errors",{__webpack_require__,__webpack_exports__}))()},809090(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let t=__webpack_require__(971567);let{isReadable:r,isWritable:n,isIterable:a,isNodeStream:i,isReadableNodeStream:s,isWritableNodeStream:o,isDuplexNodeStream:l,isReadableStream:u,isWritableStream:c}=__webpack_require__(831171);let h=__webpack_require__(816718);let{AbortError:f,codes:{ERR_INVALID_ARG_TYPE:m,ERR_INVALID_RETURN_VALUE:d}}=__webpack_require__(868387);let{destroyer:p}=__webpack_require__(338568);let g=__webpack_require__(68266);let b=__webpack_require__(699960);let y=__webpack_require__(777352);let{createDeferredPromise:k}=__webpack_require__(769584);let w=__webpack_require__(761124);let v=globalThis.Blob||t.Blob;let _=v!==void 0?function(e){return e instanceof v}:function(e){return!1};let S=globalThis.AbortController||__webpack_require__(581808).AbortController;let{FunctionPrototypeCall:E}=__webpack_require__(708566);class j extends g{constructor(e){super(e),(e===null||e===undefined?undefined:e.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(e===null||e===undefined?undefined:e.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}function T(t){let{promise:r,resolve:n}=k();let a=new S;let i=a.signal;return{value:t(async function*(){while(!0){let t=r;r=null;let{chunk:a,done:s,cb:o}=await t;if(e.nextTick(o),s)return;if(i.aborted)throw new f(undefined,{cause:i.reason});({promise:r,resolve:n}=k()),yield a}}(),{signal:i}),write(e,t,r){let a=n;n=null,a({chunk:e,done:!1,cb:r})},final(e){let t=n;n=null,t({done:!0,cb:e})},destroy(e,t){a.abort(),t(e)}}}function x(e){let t=e.readable&&typeof e.readable.read!=="function"?b.wrap(e.readable):e.readable;let a=e.writable;let i=!!r(t);let s=!!n(a);let o;let l;let u;let c;let m;function d(e){let t=c;c=null,t?t(e):e&&m.destroy(e)}return m=new j({readableObjectMode:!!(t!==null&&t!==undefined&&t.readableObjectMode),writableObjectMode:!!(a!==null&&a!==undefined&&a.writableObjectMode),readable:i,writable:s}),s&&(h(a,e=>{s=!1,e&&p(t,e),d(e)}),m._write=function(e,t,r){a.write(e,t)?r():o=r},m._final=function(e){a.end(),l=e},a.on("drain",function(){if(o){let e=o;o=null,e()}}),a.on("finish",function(){if(l){let e=l;l=null,e()}})),i&&(h(t,e=>{i=!1,e&&p(t,e),d(e)}),t.on("readable",function(){if(u){let e=u;u=null,e()}}),t.on("end",function(){m.push(null)}),m._read=function(){while(!0){let e=t.read();if(e===null){u=m._read;return}if(!m.push(e))return}}),m._destroy=function(e,r){!e&&c!==null&&(e=new f),u=null,o=null,l=null,c===null?r(e):(c=r,p(a,e),p(t,e))},m}module.exports=function t(r,n){if(l(r))return r;if(s(r))return x({readable:r});if(o(r))return x({writable:r});if(i(r))return x({writable:!1,readable:!1});if(u(r))return x({readable:b.fromWeb(r)});if(c(r))return x({writable:y.fromWeb(r)});if(typeof r=="function"){let{value:t,write:i,final:s,destroy:o}=T(r);if(a(t))return w(j,t,{objectMode:!0,write:i,final:s,destroy:o});let l=t===null||t===undefined?undefined:t.then;if(typeof l=="function"){let r;let n=E(l,t,e=>{if(e!=null)throw new d("nully","body",e)},e=>{p(r,e)});return r=new j({objectMode:!0,readable:!1,write:i,final(t){s(async()=>{try{await n,e.nextTick(t,null)}catch(r){e.nextTick(t,r)}})},destroy:o})}throw new d("Iterable, AsyncIterable or AsyncFunction",n,t)}if(_(r))return t(r.arrayBuffer());if(a(r))return w(j,r,{objectMode:!0,writable:!1});if(u(r===null||r===undefined?undefined:r.readable)&&c(r===null||r===undefined?undefined:r.writable))return j.fromWeb(r);if(typeof(r===null||r===undefined?undefined:r.writable)=="object"||typeof(r===null||r===undefined?undefined:r.readable)=="object")return x({readable:r!==null&&r!==undefined&&r.readable?s(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:t(r.readable):undefined,writable:r!==null&&r!==undefined&&r.writable?o(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:t(r.writable):undefined});let h=r===null||r===undefined?undefined:r.then;if(typeof h=="function"){let e;return E(h,r,t=>{t!=null&&e.push(t),e.push(null)},t=>{p(e,t)}),e=new j({objectMode:!0,writable:!1,read(){}})}throw new m(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},816718(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(378326);let{AbortError:t,codes:r}=__webpack_require__(868387);let{ERR_INVALID_ARG_TYPE:n,ERR_STREAM_PREMATURE_CLOSE:a}=r;let{kEmptyObject:i,once:s}=__webpack_require__(769584);let{validateAbortSignal:o,validateFunction:l,validateObject:u,validateBoolean:c}=__webpack_require__(827525);let{Promise:h,PromisePrototypeThen:f,SymbolDispose:m}=__webpack_require__(708566);let{isClosed:d,isReadable:p,isReadableNodeStream:g,isReadableStream:b,isReadableFinished:y,isReadableErrored:k,isWritable:w,isWritableNodeStream:v,isWritableStream:_,isWritableFinished:S,isWritableErrored:E,isNodeStream:j,willEmitClose:T,kIsClosedPromise:x}=__webpack_require__(831171);let A;function R(e){return e.setHeader&&typeof e.abort=="function"}let M=()=>{};function O(r,c,h){var f,x;if(arguments.length==2?(h=c,c=i):c==null?c=i:u(c,"options"),l(h,"callback"),o(c.signal,"options.signal"),h=s(h),b(r)||_(r))return L(r,c,h);if(!j(r))throw new n("stream",["ReadableStream","WritableStream","Stream"],r);let O=(f=c.readable)!==null&&f!==undefined?f:g(r);let I=(x=c.writable)!==null&&x!==undefined?x:v(r);let C=r._writableState;let N=r._readableState;let P=()=>{!r.writable&&F()};let D=T(r)&&g(r)===O&&v(r)===I;let B=S(r,!1);let F=()=>{if(B=!0,r.destroyed&&(D=!1),D&&(!r.readable||O))return;(!O||q)&&h.call(r)};let q=y(r,!1);let U=()=>{if(q=!0,r.destroyed&&(D=!1),D&&(!r.writable||I))return;(!I||B)&&h.call(r)};let $=e=>{h.call(r,e)};let z=d(r);let W=()=>{z=!0;let e=E(r)||k(r);if(e&&typeof e!=="boolean")return h.call(r,e);if(O&&!q&&g(r,!0)){if(!y(r,!1))return h.call(r,new a)}if(I&&!B){if(!S(r,!1))return h.call(r,new a)}h.call(r)};let H=()=>{z=!0;let e=E(r)||k(r);if(e&&typeof e!=="boolean")return h.call(r,e);h.call(r)};let G=()=>{r.req.on("finish",F)};R(r)?(r.on("complete",F),!D&&r.on("abort",W),r.req?G():r.on("request",G)):I&&!C&&(r.on("end",P),r.on("close",P)),!D&&typeof r.aborted=="boolean"&&r.on("aborted",W),r.on("end",U),r.on("finish",F),c.error!==!1&&r.on("error",$),r.on("close",W),z?e.nextTick(W):C!==null&&C!==undefined&&C.errorEmitted||N!==null&&N!==undefined&&N.errorEmitted?!D&&e.nextTick(H):!O&&(!D||p(r))&&(B||w(r)===!1)||!I&&(!D||w(r))&&(q||p(r)===!1)?e.nextTick(H):N&&r.req&&r.aborted&&e.nextTick(H);let V=()=>{h=M,r.removeListener("aborted",W),r.removeListener("complete",F),r.removeListener("abort",W),r.removeListener("request",G),r.req&&r.req.removeListener("finish",F),r.removeListener("end",P),r.removeListener("close",P),r.removeListener("finish",F),r.removeListener("end",U),r.removeListener("error",$),r.removeListener("close",W)};if(c.signal&&!z){let n=()=>{let e=h;V(),e.call(r,new t(undefined,{cause:c.signal.reason}))};if(c.signal.aborted)e.nextTick(n);else{let e=(A=A||__webpack_require__(769584).addAbortListener)(c.signal,n);let t=h;h=s((...n)=>{e[m](),t.apply(r,n)})}}return V}function L(r,n,a){let i=!1;let o=M;if(n.signal)if(o=()=>{i=!0,a.call(r,new t(undefined,{cause:n.signal.reason}))},n.signal.aborted)e.nextTick(o);else{let e=(A=A||__webpack_require__(769584).addAbortListener)(n.signal,o);let t=a;a=s((...n)=>{e[m](),t.apply(r,n)})}let l=(...t)=>{!i&&e.nextTick(()=>a.apply(r,t))};return f(r[x].promise,l,l),M}function I(e,t){var r;let n=!1;return t===null&&(t=i),(r=t)!==null&&r!==undefined&&r.cleanup&&(c(t.cleanup,"cleanup"),n=t.cleanup),new h((r,a)=>{let i=O(e,t,e=>{n&&i(),e?a(e):r()})})}module.exports=O,module.exports.finished=I}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},818365(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==undefined))}function t(t){return r=>{let{key:n=null,...a}=r;return{type:t,props:e(a),key:n}}}__webpack_require__.d(__webpack_exports__,{K:()=>t})}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_exports__,__webpack_require__}))()},827525(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{ArrayIsArray:e,ArrayPrototypeIncludes:t,ArrayPrototypeJoin:r,ArrayPrototypeMap:n,NumberIsInteger:a,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:s,NumberMIN_SAFE_INTEGER:o,NumberParseInt:l,ObjectPrototypeHasOwnProperty:u,RegExpPrototypeExec:c,String:h,StringPrototypeToUpperCase:f,StringPrototypeTrim:m}=__webpack_require__(708566);let{hideStackFrames:d,codes:{ERR_SOCKET_BAD_PORT:p,ERR_INVALID_ARG_TYPE:g,ERR_INVALID_ARG_VALUE:b,ERR_OUT_OF_RANGE:y,ERR_UNKNOWN_SIGNAL:k}}=__webpack_require__(868387);let{normalizeEncoding:w}=__webpack_require__(769584);let{isAsyncFunction:v,isArrayBufferView:_}=__webpack_require__(769584).types;let S={};function E(e){return e===(e|0)}function j(e){return e===e>>>0}let T=/^[0-7]+$/;function x(e,t,r){if(e===void 0&&(e=r),typeof e=="string"){if(c(T,e)===null)throw new b(t,e,"must be a 32-bit unsigned integer or an octal string");e=l(e,8)}return M(e,t),e}let A=d((e,t,r=o,n=s)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!a(e))throw new y(t,"an integer",e);if(e<r||e>n)throw new y(t,`>= ${r} && <= ${n}`,e)});let R=d((e,t,r=-0x80000000,n=0x7fffffff)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!a(e))throw new y(t,"an integer",e);if(e<r||e>n)throw new y(t,`>= ${r} && <= ${n}`,e)});let M=d((e,t,r=!1)=>{if(typeof e!=="number")throw new g(t,"number",e);if(!a(e))throw new y(t,"an integer",e);let n=r?1:0;if(e<n||e>0xffffffff)throw new y(t,`>= ${n} && <= ${"4294967295"}`,e)});function O(e,t){if(typeof e!=="string")throw new g(t,"string",e)}function L(e,t,r=undefined,n){if(typeof e!=="number")throw new g(t,"number",e);if(r!=null&&e<r||n!=null&&e>n||(r!=null||n!=null)&&i(e))throw new y(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}let I=d((e,a,i)=>{if(!t(i,e))throw new b(a,e,"must be one of: "+r(n(i,e=>typeof e=="string"?`'${e}'`:h(e)),", "))});function C(e,t){if(typeof e!=="boolean")throw new g(t,"boolean",e)}function N(e,t,r){return e==null||!u(e,t)?r:e[t]}let P=d((t,r,n=null)=>{let a=N(n,"allowArray",!1);let i=N(n,"allowFunction",!1);if(!N(n,"nullable",!1)&&t===null||!a&&e(t)||typeof t!=="object"&&(!i||typeof t!=="function"))throw new g(r,"Object",t)});let D=d((e,t)=>{if(e!=null&&typeof e!=="object"&&typeof e!=="function")throw new g(t,"a dictionary",e)});let B=d((t,r,n=0)=>{if(!e(t))throw new g(r,"Array",t);if(t.length<n)throw new b(r,t,`must be longer than ${n}`)});function F(e,t){B(e,t);for(let r=0;r<e.length;r++)O(e[r],`${t}[${r}]`)}function q(e,t){B(e,t);for(let r=0;r<e.length;r++)C(e[r],`${t}[${r}]`)}function U(e,t){B(e,t);for(let r=0;r<e.length;r++){let n=e[r];let a=`${t}[${r}]`;if(n==null)throw new g(a,"AbortSignal",n);G(n,a)}}function $(e,t="signal"){if(O(e,t),S[e]===undefined){if(S[f(e)]!==undefined)throw new k(e+" (signals must use all capital letters)");throw new k(e)}}let z=d((e,t="buffer")=>{if(!_(e))throw new g(t,["Buffer","TypedArray","DataView"],e)});function W(e,t){let r=w(t);let n=e.length;if(r==="hex"&&n%2!==0)throw new b("encoding",t,`is invalid for data of length ${n}`)}function H(e,t="Port",r=!0){if(typeof e!=="number"&&typeof e!=="string"||typeof e=="string"&&m(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r)throw new p(t,e,r);return e|0}let G=d((e,t)=>{if(e!==undefined&&(e===null||typeof e!=="object"||!("aborted"in e)))throw new g(t,"AbortSignal",e)});let V=d((e,t)=>{if(typeof e!=="function")throw new g(t,"Function",e)});let Y=d((e,t)=>{if(typeof e!=="function"||v(e))throw new g(t,"Function",e)});let Z=d((e,t)=>{if(e!==undefined)throw new g(t,"undefined",e)});let K=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function J(e,t){if(e===void 0||!c(K,e))throw new b(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}module.exports={isInt32:E,isUint32:j,parseFileMode:x,validateArray:B,validateStringArray:F,validateBooleanArray:q,validateAbortSignalArray:U,validateBoolean:C,validateBuffer:z,validateDictionary:D,validateEncoding:W,validateFunction:V,validateInt32:R,validateInteger:A,validateNumber:L,validateObject:P,validateOneOf:I,validatePlainFunction:Y,validatePort:H,validateSignalName:$,validateString:O,validateUint32:M,validateUndefined:Z,validateUnion:function(e,n,a){if(!t(a,e))throw new g(n,`('${r(a,"|")}')`,e)},validateAbortSignal:G,validateLinkHeaderValue:function(t){if(typeof t=="string")return J(t,"hints"),t;if(e(t)){let e=t.length;let r="";if(e===0)return r;for(let n=0;n<e;n++){let a=t[n];J(a,"hints"),r+=a,n!==e-1&&(r+=", ")}return r}throw new b("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}}}).call(__webpack_require__._LM_("readable-stream",{__webpack_require__,module}))()},831171(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{SymbolAsyncIterator:e,SymbolIterator:t,SymbolFor:r}=__webpack_require__(708566);let n=r("nodejs.stream.destroyed");let a=r("nodejs.stream.errored");let i=r("nodejs.stream.readable");let s=r("nodejs.stream.writable");let o=r("nodejs.stream.disturbed");function l(e,t=!1){var r;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((r=e._readableState)===null||r===undefined?undefined:r.readable)!==!1)&&(!e._writableState||e._readableState))}function u(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===undefined?undefined:t.writable)!==!1))}function c(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function h(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function f(e){return!!(e&&!h(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function m(e){return!!(e&&!h(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function d(e){return!!(e&&!h(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function p(e){return f(e)||m(e)||d(e)}function g(r,n){return r==null?!1:(0,n===!0)?typeof r[e]=="function":(0,n===!1)?typeof r[t]=="function":(0,typeof r[e]=="function"||typeof r[t]=="function")}function b(e){if(!h(e))return null;let t=e._writableState;let r=e._readableState;let a=t||r;return!!(e.destroyed||e[n]||a!==null&&a!==undefined&&a.destroyed)}function y(e){if(!u(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!==null&&t!==undefined&&t.errored?!1:(0,typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")?null:(0,t.ended)}function k(e,t){if(!u(e))return null;if(e.writableFinished===!0)return!0;let r=e._writableState;return r!==null&&r!==undefined&&r.errored?!1:(0,typeof(r===null||r===undefined?undefined:r.finished)!=="boolean")?null:(0,!!(r.finished||t===!1&&r.ended===!0&&r.length===0))}function w(e){if(!l(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:(0,typeof(t===null||t===undefined?undefined:t.ended)!=="boolean")?null:(0,t.ended)}function v(e,t){if(!l(e))return null;let r=e._readableState;return r!==null&&r!==undefined&&r.errored?!1:(0,typeof(r===null||r===undefined?undefined:r.endEmitted)!=="boolean")?null:(0,!!(r.endEmitted||t===!1&&r.ended===!0&&r.length===0))}function _(e){return e&&e[i]!=null?e[i]:(0,typeof(e===null||e===undefined?undefined:e.readable)!=="boolean")?null:(0,b(e))?!1:(0,l(e)&&e.readable&&!v(e))}function S(e){return e&&e[s]!=null?e[s]:(0,typeof(e===null||e===undefined?undefined:e.writable)!=="boolean")?null:(0,b(e))?!1:(0,u(e)&&e.writable&&!y(e))}function E(e,t){return!h(e)?null:(0,b(e))?!0:(0,(t===null||t===undefined?undefined:t.readable)!==!1&&_(e)||(t===null||t===undefined?undefined:t.writable)!==!1&&S(e))?!1:(0,!0)}function j(e){var t,r;return!h(e)?null:(0,e.writableErrored)?e.writableErrored:(0,(t=(r=e._writableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null)}function T(e){var t,r;return!h(e)?null:(0,e.readableErrored)?e.readableErrored:(0,(t=(r=e._readableState)===null||r===undefined?undefined:r.errored)!==null&&t!==undefined?t:null)}function x(e){if(!h(e))return null;if(typeof e.closed=="boolean")return e.closed;let t=e._writableState;let r=e._readableState;return typeof(t===null||t===undefined?undefined:t.closed)=="boolean"||typeof(r===null||r===undefined?undefined:r.closed)=="boolean"?(t===null||t===undefined?undefined:t.closed)||(r===null||r===undefined?undefined:r.closed):(0,typeof e._closed=="boolean"&&A(e))?e._closed:(0,null)}function A(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function R(e){return typeof e._sent100=="boolean"&&A(e)}function M(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===undefined?undefined:t.upgradeOrConnect)===undefined}function O(e){if(!h(e))return null;let t=e._writableState;let r=e._readableState;let n=t||r;return!n&&R(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}module.exports={isDestroyed:b,kIsDestroyed:n,isDisturbed:function(e){var t;return!!(e&&((t=e[o])!==null&&t!==undefined?t:e.readableDidRead||e.readableAborted))},kIsDisturbed:o,isErrored:function(e){var t,r,n,i,s,o,l,u,c,h;return!!(e&&((t=(r=(n=(i=(s=(o=e[a])!==null&&o!==undefined?o:e.readableErrored)!==null&&s!==undefined?s:e.writableErrored)!==null&&i!==undefined?i:(l=e._readableState)===null||l===undefined?undefined:l.errorEmitted)!==null&&n!==undefined?n:(u=e._writableState)===null||u===undefined?undefined:u.errorEmitted)!==null&&r!==undefined?r:(c=e._readableState)===null||c===undefined?undefined:c.errored)!==null&&t!==undefined?t:(h=e._writableState)===null||h===undefined?undefined:h.errored))},kIsErrored:a,isReadable:_,kIsReadable:i,kIsClosedPromise:r("nodejs.webstream.isClosedPromise"),kControllerErrorFunction:r("nodejs.webstream.controllerErrorFunction"),kIsWritable:s,isClosed:x,isDuplexNodeStream:c,isFinished:E,isIterable:g,isReadableNodeStream:l,isReadableStream:f,isReadableEnded:w,isReadableFinished:v,isReadableErrored:T,isNodeStream:h,isWebStream:p,isWritable:S,isWritableNodeStream:u,isWritableStream:m,isWritableEnded:y,isWritableFinished:k,isWritableErrored:j,isServerRequest:M,isServerResponse:R,willEmitClose:O,isTransformStream:d}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},833878(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{a:()=>a});var e=__webpack_require__(413279);var t=__webpack_require__.n(e);var r=__webpack_require__(745085);var n=__webpack_require__(177540);function a(e){if(!(0,r.Gv)(e)||e.type!==n.X.REQUEST_OPEN_SIDEPANEL||typeof e.nonce!=="string"||!navigator.userActivation?.isActive)return;t().runtime.sendMessage({type:n.X.OPEN_SIDEPANEL,nonce:e.nonce}).catch(()=>undefined)}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},835060(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>z,R:()=>W});var e=__webpack_require__(600473);var t=__webpack_require__(317588);var r=__webpack_require__(603476);var n=__webpack_require__(991213);var a=__webpack_require__(868766);var i=__webpack_require__(774810);var s=__webpack_require__(912276);var o=__webpack_require__(512986);var l=__webpack_require__(232712);var u=__webpack_require__(78565);var c=__webpack_require__(210164);var h=__webpack_require__(775158);var f=__webpack_require__(686333);var m=__webpack_require__(891728);var d=__webpack_require__(695358);var p=__webpack_require__(14631);let g="Invalid DateTime";function b(e){return new p.A("unsupported zone",`the zone "${e.name}" is not supported`)}function y(e){return e.weekData===null&&(e.weekData=(0,f.C9)(e.c)),e.weekData}function k(e){return e.localWeekData===null&&(e.localWeekData=(0,f.C9)(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function w(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new z({...r,...t,old:r})}function v(e,t,r){let n=e-t*60*1e3;let a=r.offset(n);if(t===a)return[n,t];n-=(a-t)*60*1e3;let i=r.offset(n);return a===i?[n,a]:(0,[e-Math.min(a,i)*60*1e3,Math.max(a,i)])}function _(e,t){let r=new Date(e+=t*60*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function S(e,t,r){return v((0,o.JZ)(e),t,r)}function E(t,r){let n=t.o,a=t.c.year+Math.trunc(r.years),i=t.c.month+Math.trunc(r.months)+Math.trunc(r.quarters)*3,s={...t.c,year:a,month:i,day:Math.min(t.c.day,(0,o.L3)(a,i))+Math.trunc(r.days)+Math.trunc(r.weeks)*7},l=e.Ay.fromObject({years:r.years-Math.trunc(r.years),quarters:r.quarters-Math.trunc(r.quarters),months:r.months-Math.trunc(r.months),weeks:r.weeks-Math.trunc(r.weeks),days:r.days-Math.trunc(r.days),hours:r.hours,minutes:r.minutes,seconds:r.seconds,milliseconds:r.milliseconds}).as("milliseconds");let[u,c]=v((0,o.JZ)(s),n,t.zone);return l!==0&&(u+=l,c=t.zone.offset(u)),{ts:u,o:c}}function j(e,t,r,n,a,i){let{setZone:s,zone:o}=r;if((!e||Object.keys(e).length===0)&&!t)return z.invalid(new p.A("unparsable",`the input "${a}" can't be parsed as ${n}`));{let n=z.fromObject(e,{...r,zone:t||o,specificOffset:i});return s?n:n.setZone(o)}}function T(e,t,r=!0){return e.isValid?a.A.create(s.A.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function x(e,t){let r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=(0,o.CF)(e.c.year,r?6:4),t?(n+="-",n+=(0,o.CF)(e.c.month),n+="-"):n+=(0,o.CF)(e.c.month),n+=(0,o.CF)(e.c.day)}function A(e,t,r,n,a,i){let s=(0,o.CF)(e.c.hour);return t?(s+=":",s+=(0,o.CF)(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=(0,o.CF)(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=(0,o.CF)(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=(0,o.CF)(e.c.millisecond,3))),a&&(e.isOffsetFixed&&e.offset===0&&!i?s+="Z":e.o<0?(s+="-",s+=(0,o.CF)(Math.trunc(-e.o/60)),s+=":",s+=(0,o.CF)(Math.trunc(-e.o%60))):(s+="+",s+=(0,o.CF)(Math.trunc(e.o/60)),s+=":",s+=(0,o.CF)(Math.trunc(e.o%60)))),i&&(s+="["+e.zone.ianaName+"]"),s}let R={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},M={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},O={ordinal:1,hour:0,minute:0,second:0,millisecond:0};let L=["year","month","day","hour","minute","second","millisecond"],I=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],C=["year","ordinal","hour","minute","second","millisecond"];function N(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new d.iq(e);return t}function P(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return N(e)}}function D(e){return!$[e]&&(U===undefined&&(U=r.A.now()),$[e]=e.offset(U)),$[e]}function B(e,t){let n=(0,l.q)(t.zone,r.A.defaultZone);if(!n.isValid)return z.invalid(b(n));let a=s.A.fromObject(t);let i,u;if((0,o.b0)(e.year))i=r.A.now();else{for(let t of L)(0,o.b0)(e[t])&&(e[t]=R[t]);let t=(0,f.EG)(e)||(0,f.nM)(e);if(t)return z.invalid(t);let r=D(n);[i,u]=S(e,r,n)}return new z({ts:i,zone:n,loc:a,o:u})}function F(e,t,r){let n=(0,o.b0)(r.round)?!0:r.round,a=(e,a)=>{return e=(0,o.GB)(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,a)},i=n=>{return!r.calendary?t.diff(e,n).get(n):(0,!t.hasSame(e,n)?t.startOf(n).diff(e.startOf(n),n).get(n):(0,0))};if(r.unit)return a(i(r.unit),r.unit);for(let e of r.units){let t=i(e);if(Math.abs(t)>=1)return a(t,e)}return a(e>t?-0:0,r.units[r.units.length-1])}function q(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let U;let $={};class z{constructor(e){let t=e.zone||r.A.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new p.A("invalid input"):null)||(!t.isValid?b(t):null);this.ts=(0,o.b0)(e.ts)?r.A.now():e.ts;let a=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[a,i]=[e.old.c,e.old.o];else{let r=(0,o.Et)(e.o)&&!e.old?e.o:t.offset(this.ts);a=(n=Number.isNaN((a=_(this.ts,r)).year)?new p.A("invalid input"):null)?null:a,i=n?null:r}this._zone=t,this.loc=e.loc||s.A.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}static now(){return new z({})}static local(){let[e,t]=q(arguments),[r,n,a,i,s,o,l]=t;return B({year:r,month:n,day:a,hour:i,minute:s,second:o,millisecond:l},e)}static utc(){let[e,t]=q(arguments),[r,n,a,s,o,l,u]=t;return e.zone=i.A.utcInstance,B({year:r,month:n,day:a,hour:s,minute:o,second:l,millisecond:u},e)}static fromJSDate(e,t={}){let n=(0,o.$P)(e)?e.valueOf():NaN;if(Number.isNaN(n))return z.invalid("invalid input");let a=(0,l.q)(t.zone,r.A.defaultZone);return!a.isValid?z.invalid(b(a)):(0,new z({ts:n,zone:a,loc:s.A.fromObject(t)}))}static fromMillis(e,t={}){if((0,o.Et)(e))if(e<-864e13||e>864e13)return z.invalid("Timestamp out of range");else return new z({ts:e,zone:(0,l.q)(t.zone,r.A.defaultZone),loc:s.A.fromObject(t)});throw new d.Di(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if((0,o.Et)(e))return new z({ts:e*1e3,zone:(0,l.q)(t.zone,r.A.defaultZone),loc:s.A.fromObject(t)});throw new d.Di("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=(0,l.q)(t.zone,r.A.defaultZone);if(!n.isValid)return z.invalid(b(n));let a=s.A.fromObject(t);let i=(0,o.Fl)(e,P);let{minDaysInFirstWeek:u,startOfWeek:c}=(0,f._3)(i,a);let h=r.A.now(),m=!(0,o.b0)(t.specificOffset)?t.specificOffset:n.offset(h),p=!(0,o.b0)(i.ordinal),g=!(0,o.b0)(i.year),y=!(0,o.b0)(i.month)||!(0,o.b0)(i.day),k=g||y,w=i.weekYear||i.weekNumber;if((k||p)&&w)throw new d.gN("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&p)throw new d.gN("Can't mix ordinal dates with month/day");let v=w||i.weekday&&!k;let E,j,T=_(h,m);v?(E=I,j=M,T=(0,f.C9)(T,u,c)):p?(E=C,j=O,T=(0,f.d3)(T)):(E=L,j=R);let x=!1;for(let e of E){let t=i[e];(0,o.b0)(t)?x?i[e]=j[e]:i[e]=T[e]:x=!0}let A=(v?(0,f.WF)(i,u,c):p?(0,f.De)(i):(0,f.EG)(i))||(0,f.nM)(i);if(A)return z.invalid(A);let[N,D]=S(v?(0,f.WO)(i,u,c):p?(0,f.fZ)(i):i,m,n),B=new z({ts:N,zone:n,o:D,loc:a});return i.weekday&&k&&e.weekday!==B.weekday?z.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${B.toISO()}`):(0,!B.isValid)?z.invalid(B.invalid):(0,B)}static fromISO(e,t={}){let[r,n]=(0,c.lA)(e);return j(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,n]=(0,c.J5)(e);return j(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,n]=(0,c.a8)(e);return j(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if((0,o.b0)(e)||(0,o.b0)(t))throw new d.Di("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:a=null}=r,i=s.A.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0}),[l,u,c,f]=(0,h.ws)(i,e,t);return f?z.invalid(f):(0,j(l,u,r,`format ${t}`,e,c))}static fromString(e,t,r={}){return z.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,n]=(0,c._E)(e);return j(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new d.Di("need to specify a reason the DateTime is invalid");let n=e instanceof p.A?e:new p.A(e,t);if(!r.A.throwOnInvalid)return new z({invalid:n});throw new d.t(n)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=(0,h.Z7)(e,s.A.fromObject(t));return!r?null:r.map(e=>e?e.val:null).join("")}static expandFormat(e,t={}){return(0,h.np)(a.A.parseFormat(e),s.A.fromObject(t)).map(e=>e.val).join("")}static resetCache(){U=undefined,$={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?y(this).weekYear:NaN}get weekNumber(){return this.isValid?y(this).weekNumber:NaN}get weekday(){return this.isValid?y(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?k(this).weekday:NaN}get localWeekNumber(){return this.isValid?k(this).weekNumber:NaN}get localWeekYear(){return this.isValid?k(this).weekYear:NaN}get ordinal(){return this.isValid?(0,f.d3)(this.c).ordinal:NaN}get monthShort(){return this.isValid?n.A.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?n.A.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?n.A.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?n.A.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):(0,null)}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):(0,null)}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:(0,this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=(0,o.JZ)(this.c);let t=this.zone.offset(e-864e5);let r=this.zone.offset(e+864e5);let n=this.zone.offset(e-t*6e4);let a=this.zone.offset(e-r*6e4);if(n===a)return[this];let i=e-n*6e4;let s=e-a*6e4;let l=_(i,n);let u=_(s,a);return l.hour===u.hour&&l.minute===u.minute&&l.second===u.second&&l.millisecond===u.millisecond?[w(this,{ts:i}),w(this,{ts:s})]:(0,[this])}get isInLeapYear(){return(0,o.U_)(this.year)}get daysInMonth(){return(0,o.L3)(this.year,this.month)}get daysInYear(){return this.isValid?(0,o.Ki)(this.year):NaN}get weeksInWeekYear(){return this.isValid?(0,o.ac)(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?(0,o.ac)(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:n}=a.A.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(i.A.instance(e),t)}toLocal(){return this.setZone(r.A.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=(0,l.q)(e,r.A.defaultZone)).equals(this.zone))return this;if(!e.isValid)return z.invalid(b(e));{let r=this.ts;if(t||n){let t=e.offset(this.ts);let n=this.toObject();[r]=S(n,t,e)}return w(this,{ts:r,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return w(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=(0,o.Fl)(e,P);let{minDaysInFirstWeek:r,startOfWeek:n}=(0,f._3)(t,this.loc);let a=!(0,o.b0)(t.weekYear)||!(0,o.b0)(t.weekNumber)||!(0,o.b0)(t.weekday),i=!(0,o.b0)(t.ordinal),s=!(0,o.b0)(t.year),l=!(0,o.b0)(t.month)||!(0,o.b0)(t.day),u=t.weekYear||t.weekNumber;if((s||l||i)&&u)throw new d.gN("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&i)throw new d.gN("Can't mix ordinal dates with month/day");let c;a?c=(0,f.WO)({...(0,f.C9)(this.c,r,n),...t},r,n):(0,o.b0)(t.ordinal)?(c={...this.toObject(),...t},(0,o.b0)(t.day)&&(c.day=Math.min((0,o.L3)(c.year,c.month),c.day))):c=(0,f.fZ)({...(0,f.d3)(this.c),...t});let[h,m]=S(c,this.o,this.zone);return w(this,{ts:h,o:m})}plus(t){return!this.isValid?this:(0,w(this,E(this,e.Ay.fromDurationLike(t))))}minus(t){return!this.isValid?this:(0,w(this,E(this,e.Ay.fromDurationLike(t).negate())))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},a=e.Ay.normalizeUnit(t);switch(a){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(a==="weeks")if(r){let e=this.loc.getStartOfWeek();let{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;return a==="quarters"&&(n.month=(Math.ceil(this.month/3)-1)*3+1),this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?a.A.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):g}toLocaleString(e=m.aY,t={}){return this.isValid?a.A.create(this.loc.clone(t),e).formatDateTime(this):g}toLocaleParts(e={}){return this.isValid?a.A.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;let i=e==="extended";let s=x(this,i);return s+="T",s+=A(this,i,t,r,n,a)}toISODate({format:e="extended"}={}){return!this.isValid?null:(0,x(this,e==="extended"))}toISOWeekDate(){return T(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:a=!1,format:i="extended"}={}){return!this.isValid?null:(0,(n?"T":"")+A(this,i==="extended",t,e,r,a))}toRFC2822(){return T(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return T(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return!this.isValid?null:(0,x(this,!0))}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),T(this,n,!0)}toSQL(e={}){return!this.isValid?null:(0,`${this.toSQLDate()} ${this.toSQLTime(e)}`)}toString(){return this.isValid?this.toISO():g}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:(0,`DateTime { Invalid, reason: ${this.invalidReason} }`)}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return e.Ay.invalid("created by diffing an invalid DateTime");let a={locale:this.locale,numberingSystem:this.numberingSystem,...n};let i=(0,o.El)(r).map(e.Ay.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,c=s?t:this,h=(0,u.A)(l,c,i,a);return s?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(z.now(),e,t)}until(e){return this.isValid?t.A.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;let n=e.valueOf();let a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t,r)<=n&&n<=a.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||z.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"];let a=e.unit;return Array.isArray(e.unit)&&(n=e.unit,a=undefined),F(t,this.plus(r),{...e,numeric:"always",units:n,unit:a})}toRelativeCalendar(e={}){return!this.isValid?null:(0,F(e.base||z.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}))}static min(...e){if(!e.every(z.isDateTime))throw new d.Di("min requires all arguments be DateTimes");return(0,o.Iw)(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(z.isDateTime))throw new d.Di("max requires all arguments be DateTimes");return(0,o.Iw)(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:n=null,numberingSystem:a=null}=r,i=s.A.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0});return(0,h.GR)(i,e,t)}static fromStringExplain(e,t,r={}){return z.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){let{locale:r=null,numberingSystem:n=null}=t,a=s.A.fromOpts({locale:r,numberingSystem:n,defaultToEN:!0});return new h.zb(a,e)}static fromFormatParser(e,t,r={}){if((0,o.b0)(e)||(0,o.b0)(t))throw new d.Di("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:a=null}=r,i=s.A.fromOpts({locale:n,numberingSystem:a,defaultToEN:!0});if(!i.equals(t.locale))throw new d.Di(`fromFormatParser called with a locale of ${i}, `+`but the format parser was created for ${t.locale}`);let{result:l,zone:u,specificOffset:c,invalidReason:h}=t.explainFromTokens(e);return h?z.invalid(h):(0,j(l,u,r,`format ${t.format}`,e,c))}static get DATE_SHORT(){return m.aY}static get DATE_MED(){return m.g5}static get DATE_MED_WITH_WEEKDAY(){return m.M$}static get DATE_FULL(){return m.Rb}static get DATE_HUGE(){return m.d6}static get TIME_SIMPLE(){return m.dz}static get TIME_WITH_SECONDS(){return m.hF}static get TIME_WITH_SHORT_OFFSET(){return m.oq}static get TIME_WITH_LONG_OFFSET(){return m.o}static get TIME_24_SIMPLE(){return m.My}static get TIME_24_WITH_SECONDS(){return m.cE}static get TIME_24_WITH_SHORT_OFFSET(){return m.dO}static get TIME_24_WITH_LONG_OFFSET(){return m.FX}static get DATETIME_SHORT(){return m.DN}static get DATETIME_SHORT_WITH_SECONDS(){return m.h0}static get DATETIME_MED(){return m.pM}static get DATETIME_MED_WITH_SECONDS(){return m.AX}static get DATETIME_MED_WITH_WEEKDAY(){return m.fO}static get DATETIME_FULL(){return m.Al}static get DATETIME_FULL_WITH_SECONDS(){return m.h3}static get DATETIME_HUGE(){return m.MC}static get DATETIME_HUGE_WITH_SECONDS(){return m.nt}}function W(e){if(z.isDateTime(e))return e;if(e&&e.valueOf&&(0,o.Et)(e.valueOf()))return z.fromJSDate(e);if(e&&typeof e=="object")return z.fromObject(e);throw new d.Di(`Unknown datetime argument: ${e}, of type ${typeof e}`)}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},835203(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(695358);class t{get type(){throw new e.jP}get name(){throw new e.jP}get ianaName(){return this.name}get isUniversal(){throw new e.jP}offsetName(t,r){throw new e.jP}formatOffset(t,r){throw new e.jP}offset(t){throw new e.jP}equals(t){throw new e.jP}get isValid(){throw new e.jP}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},838926(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(304208).F.ERR_STREAM_PREMATURE_CLOSE;function t(e){var t=!1;return function(){if(t)return;t=!0;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];e.apply(this,n)}}function r(){}function n(e){return e.setHeader&&typeof e.abort=="function"}function a(i,s,o){if(typeof s=="function")return a(i,null,s);!s&&(s={}),o=t(o||r);var l=s.readable||s.readable!==!1&&i.readable;var u=s.writable||s.writable!==!1&&i.writable;var c=function(){!i.writable&&f()};var h=i._writableState&&i._writableState.finished;var f=function(){u=!1,h=!0,!l&&o.call(i)};var m=i._readableState&&i._readableState.endEmitted;var d=function(){l=!1,m=!0,!u&&o.call(i)};var p=function(e){o.call(i,e)};var g=function(){var t;return l&&!m?((!i._readableState||!i._readableState.ended)&&(t=new e),o.call(i,t)):(0,u&&!h)?((!i._writableState||!i._writableState.ended)&&(t=new e),o.call(i,t)):void 0};var b=function(){i.req.on("finish",f)};return n(i)?(i.on("complete",f),i.on("abort",g),i.req?b():i.on("request",b)):u&&!i._writableState&&(i.on("end",c),i.on("close",c)),i.on("end",d),i.on("finish",f),s.error!==!1&&i.on("error",p),i.on("close",g),function(){i.removeListener("complete",f),i.removeListener("abort",g),i.removeListener("request",b),i.req&&i.req.removeListener("finish",f),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",f),i.removeListener("end",d),i.removeListener("error",p),i.removeListener("close",g)}}module.exports=a}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},861913(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{x:()=>i});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(797999);var a=__webpack_require__(676358);let i=(0,t.kp)(a.Wu,(0,e.Ik)({type:(0,r.eu)(a.Z6.Image),value:(0,n.J)()}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},864992(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=function(){throw new Error("Readable.from is not available in the browser")}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},868387(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{format:e,inspect:t}=__webpack_require__(588847);let{AggregateError:r}=__webpack_require__(708566);let n=globalThis.AggregateError||r;let a=Symbol("kIsNodeError");let i=["string","function","number","object","Function","Object","boolean","bigint","symbol"];let s=/^([A-Z][a-z0-9]*)+$/;let o={};function l(e,t){if(!e)throw new o.ERR_INTERNAL_ASSERTION(t)}function u(e){let t="";let r=e.length;let n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function c(t,r,n){if(typeof r=="function")return l(r.length<=n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${r.length}).`),r(...n);let a=(r.match(/%[dfijoOs]/g)||[]).length;return(l(a===n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${a}).`),n.length===0)?r:(0,e(r,...n))}function h(e,t,r){!r&&(r=Error);class n extends r{constructor(...r){super(c(e,t,r))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=e,n.prototype[a]=!0,o[e]=n}function f(e){let t="__node_internal_"+e.name;return Object.defineProperty(e,"name",{value:t}),e}function m(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let r=new n([t,e],t.message);return r.code=t.code,r}return e||t}class d extends Error{constructor(e="The operation was aborted",t=undefined){if(t!==undefined&&typeof t!=="object")throw new o.ERR_INVALID_ARG_TYPE("options","Object",t);super(e,t),this.code="ABORT_ERR",this.name="AbortError"}}h("ERR_ASSERTION","%s",Error),h("ERR_INVALID_ARG_TYPE",(e,r,n)=>{l(typeof e=="string","'name' must be a string"),!Array.isArray(r)&&(r=[r]);let a="The ";e.endsWith(" argument")?a+=`${e} `:a+=`"${e}" ${e.includes(".")?"property":"argument"} `,a+="must be ";let o=[];let u=[];let c=[];for(let e of r)l(typeof e=="string","All expected entries have to be of type string"),i.includes(e)?o.push(e.toLowerCase()):s.test(e)?u.push(e):(l(e!=="object",'The value "object" should be written as "Object"'),c.push(e));if(u.length>0){let e=o.indexOf("object");e!==-1&&(o.splice(o,e,1),u.push("Object"))}if(o.length>0){switch(o.length){case 1:a+=`of type ${o[0]}`;break;case 2:a+=`one of type ${o[0]} or ${o[1]}`;break;default:{let e=o.pop();a+=`one of type ${o.join(", ")}, or ${e}`}}(u.length>0||c.length>0)&&(a+=" or ")}if(u.length>0){switch(u.length){case 1:a+=`an instance of ${u[0]}`;break;case 2:a+=`an instance of ${u[0]} or ${u[1]}`;break;default:{let e=u.pop();a+=`an instance of ${u.join(", ")}, or ${e}`}}c.length>0&&(a+=" or ")}switch(c.length){case 0:break;case 1:c[0].toLowerCase()!==c[0]&&(a+="an "),a+=`${c[0]}`;break;case 2:a+=`one of ${c[0]} or ${c[1]}`;break;default:{let e=c.pop();a+=`one of ${c.join(", ")}, or ${e}`}}if(n==null)a+=`. Received ${n}`;else if(typeof n=="function"&&n.name)a+=`. Received function ${n.name}`;else if(typeof n=="object"){var h;if((h=n.constructor)!==null&&h!==undefined&&h.name)a+=`. Received an instance of ${n.constructor.name}`;else{let e=t(n,{depth:-1});a+=`. Received ${e}`}}else{let e=t(n,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),a+=`. Received type ${typeof n} (${e})`}return a},TypeError),h("ERR_INVALID_ARG_VALUE",(e,r,n="is invalid")=>{let a=t(r);a.length>128&&(a=a.slice(0,128)+"...");let i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${n}. Received ${a}`},TypeError),h("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;let a=r!==null&&r!==undefined&&(n=r.constructor)!==null&&n!==undefined&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}"`+` function but got ${a}.`},TypeError),h("ERR_MISSING_ARGS",(...e)=>{l(e.length>0,"At least one arg needs to be specified");let t;let r=e.length;switch(e=(Array.isArray(e)?e:[e]).map(e=>`"${e}"`).join(" or "),r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError),h("ERR_OUT_OF_RANGE",(e,r,n)=>{l(r,'Missing "range" argument');let a;if(Number.isInteger(n)&&Math.abs(n)>0x100000000)a=u(String(n));else if(typeof n=="bigint"){a=String(n);let e=BigInt(2)**BigInt(32);(n>e||n<-e)&&(a=u(a)),a+="n"}else a=t(n);return`The value of "${e}" is out of range. It must be ${r}. Received ${a}`},RangeError),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),h("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),h("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),h("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),h("ERR_STREAM_WRITE_AFTER_END","write after end",Error),h("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),module.exports={AbortError:d,aggregateTwoErrors:f(m),hideStackFrames:f,codes:o}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},868766(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>i});var e=__webpack_require__(122552);var t=__webpack_require__(891728);var r=__webpack_require__(512986);function n(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}let a={D:t.aY,DD:t.g5,DDD:t.Rb,DDDD:t.d6,t:t.dz,tt:t.hF,ttt:t.oq,tttt:t.o,T:t.My,TT:t.cE,TTT:t.dO,TTTT:t.FX,f:t.DN,ff:t.pM,fff:t.Al,ffff:t.MC,F:t.h0,FF:t.AX,FFF:t.h3,FFFF:t.nt};class i{static create(e,t={}){return new i(e,t)}static parseFormat(e){let t=null,r="",n=!1;let a=[];for(let i=0;i<e.length;i++){let s=e.charAt(i);s==="'"?(r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||s===t?r+=s:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=s,t=s)}return r.length>0&&a.push({literal:n||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(e){return a[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return(0,r.CF)(e,t);let n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(t,r){let a=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(e,r)=>this.loc.extract(t,e,r),l=e=>{return t.isOffsetFixed&&t.offset===0&&e.allowZ?"Z":(0,t.isValid?t.zone.formatOffset(t.ts,e.format):"")},u=(r,n)=>a?e.zH(t,r):o(n?{month:r}:{month:r,day:"numeric"},"month"),c=(r,n)=>a?e.DJ(t,r):o(n?{weekday:r}:{weekday:r,month:"long",day:"numeric"},"weekday"),h=e=>{let r=i.macroTokenToFormatOpts(e);return r?this.formatWithSystemDefault(t,r):(0,e)},f=r=>a?e.xS(t,r):o({era:r},"era"),m=r=>{switch(r){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return l({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return l({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return l({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return 0,a?e.tz(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?o({day:"numeric"},"day"):this.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(r)}};return n(i.parseFormat(r),m)}formatDurationFromString(e,t){let r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=e=>t=>{let n=r(t);return n?this.num(e.get(n),t.length):(0,t)},s=i.parseFormat(t),o=s.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]);return n(s,a(e.shiftTo(...o.map(r).filter(e=>e))))}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},879771(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{$9:()=>s,E$:()=>l,KC:()=>i,eu:()=>a,i5:()=>o});var e=__webpack_require__(356583);var t=__webpack_require__(342672);var r=__webpack_require__(142827);var n=__webpack_require__(745085);function a(e){return(0,r.E8)(JSON.stringify(e),(0,t.eu)(e).validator)}function i([r,...n]){let a=(0,t.KC)([r,...n]);return new e._k({...a,schema:[r,...n]})}function s(e){return a(e)}function o(t){let r=t.map(e=>e.type==="union"&&Array.isArray(e.schema)?e.schema:e).flat(Infinity);let a=r.map(({schema:e})=>e.type.type);let i=r.reduce((e,t)=>{return e[JSON.parse(t.schema.type.type)]=t,e},{});return new e._k({type:"union",schema:r,*entries(e,t){if(!(0,n.Gv)(e)||!(0,n.i5)(e,"type")||typeof e.type!=="string")return;let{type:r}=e;let a=i[r];if(!a)return;for(let r of a.entries(e,t))yield r},coercer(e,t){if(!(0,n.Gv)(e)||!(0,n.i5)(e,"type")||typeof e.type!=="string")return e;let{type:r}=e;let a=i[r];return a?a.coercer(e,t):(0,e)},*refiner(e,t){let r=i[e.type];yield*r.refiner(e,t)},validator(e,t){if(!(0,n.Gv)(e)||!(0,n.i5)(e,"type")||typeof e.type!=="string")return`Expected type to be one of: ${a.join(", ")}, but received: undefined`;let{type:r}=e;let s=i[r];return s?s.validator(e,t):(0,`Expected type to be one of: ${a.join(", ")}, but received: "${r}"`)}})}function l(t){return new e._k({type:"union",schema:null,*entries(e,r){for(let n of t(e).entries(e,r))yield n},*refiner(e,r){let n=t(e);yield*n.refiner(e,r)},coercer(e,r){return t(e).coercer(e,r)},validator(e,r){return t(e).validator(e,r)}})}}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},885067(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(t,r){if(t&&r)return e(t)(r);if(typeof t!=="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e);var a=e[e.length-1];return typeof n=="function"&&n!==a&&Object.keys(a).forEach(function(e){n[e]=a[e]}),n}}module.exports=e}}).call(__webpack_require__._LM_("@metamask/object-multiplex>once>wrappy",{module,__webpack_require__}))()},886418(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{wq:()=>e}),__webpack_require__(777544),Object.freeze({restrictReturnedAccounts:"restrictReturnedAccounts",restrictNetworkSwitching:"restrictNetworkSwitching"}),Object.freeze({permittedChains:"endowment:permitted-chains"}),Object.freeze({eth_accounts:"eth_accounts"});let e=Object.freeze({eth_accounts:"eth_accounts",snap_dialog:"snap_dialog",snap_notify:"snap_notify",snap_manageState:"snap_manageState",snap_getBip32PublicKey:"snap_getBip32PublicKey",snap_getBip32Entropy:"snap_getBip32Entropy",snap_getBip44Entropy:"snap_getBip44Entropy",snap_getEntropy:"snap_getEntropy",snap_getLocale:"snap_getLocale",snap_getPreferences:"snap_getPreferences",wallet_snap:"wallet_snap",snap_manageAccounts:"snap_manageAccounts"});Object.freeze({connection_permission:"connection_permission"}),Object.freeze({snapInstall:3,snapUpdateApprovedPermissions:3}),Object.freeze({eth_accounts:3,permittedChains:3,snap_dialog:4,snap_notify:4,snap_getBip32PublicKey:3,snap_getBip32Entropy:1,snap_getBip44Entropy:1,snap_getEntropy:3,snap_manageState:4,snap_getLocale:4,wallet_snap:4,endowment_networkAccess:3,endowment_assets:3,endowment_protocol:3,endowment_webassembly:4,endowment_transactionInsight:4,endowment_cronjob:4,endowment_ethereumProvider:4,endowment_multichainProvider:4,endowment_rpc:4,endowment_lifecycleHooks:4,endowment_pageHome:4,snap_manageAccounts:3,endowment_keyring:4,endowment_nameLookup:3,endowment_signatureInsight:4,connection_permission:3,unknown_permission:3})}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()},891728(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{AX:()=>k,Al:()=>v,DN:()=>g,FX:()=>p,M$:()=>i,MC:()=>S,My:()=>f,Rb:()=>s,aY:()=>n,cE:()=>m,d6:()=>o,dO:()=>d,dz:()=>l,fO:()=>w,g5:()=>a,h0:()=>b,h3:()=>_,hF:()=>u,nt:()=>E,o:()=>h,oq:()=>c,pM:()=>y});let e="numeric",t="short",r="long";let n={year:e,month:e,day:e};let a={year:e,month:t,day:e};let i={year:e,month:t,day:e,weekday:t};let s={year:e,month:r,day:e};let o={year:e,month:r,day:e,weekday:r};let l={hour:e,minute:e};let u={hour:e,minute:e,second:e};let c={hour:e,minute:e,second:e,timeZoneName:t};let h={hour:e,minute:e,second:e,timeZoneName:r};let f={hour:e,minute:e,hourCycle:"h23"};let m={hour:e,minute:e,second:e,hourCycle:"h23"};let d={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:t};let p={hour:e,minute:e,second:e,hourCycle:"h23",timeZoneName:r};let g={year:e,month:e,day:e,hour:e,minute:e};let b={year:e,month:e,day:e,hour:e,minute:e,second:e};let y={year:e,month:t,day:e,hour:e,minute:e};let k={year:e,month:t,day:e,hour:e,minute:e,second:e};let w={year:e,month:t,day:e,weekday:t,hour:e,minute:e};let v={year:e,month:r,day:e,hour:e,minute:e,timeZoneName:t};let _={year:e,month:r,day:e,hour:e,minute:e,second:e,timeZoneName:t};let S={year:e,month:r,day:e,weekday:r,hour:e,minute:e,timeZoneName:r};let E={year:e,month:r,day:e,weekday:r,hour:e,minute:e,second:e,timeZoneName:r}}}).call(__webpack_require__._LM_("luxon",{__webpack_exports__,__webpack_require__}))()},896639(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e){return Boolean(typeof e?.prototype?.constructor?.name=="string")}function t(t,r){return e(t)?new t({message:r}):(0,t({message:r}))}__webpack_require__.d(__webpack_exports__,{vA:()=>n});class r extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}function n(e,a="Assertion failed.",i=r){if(!e){if(a instanceof Error)throw a;throw t(i,a)}}}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_exports__,__webpack_require__}))()},900457(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let{StringPrototypeSlice:e,SymbolIterator:t,TypedArrayPrototypeSet:r,Uint8Array:n}=__webpack_require__(708566);let{Buffer:a}=__webpack_require__(971567);let{inspect:i}=__webpack_require__(769584);module.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}unshift(e){let t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let t=this.head;let r=""+t.data;while((t=t.next)!==null)r+=e+t.data;return r}concat(e){if(this.length===0)return a.alloc(0);let t=a.allocUnsafe(e>>>0);let n=this.head;let i=0;while(n)r(t,n.data,i),i+=n.data.length,n=n.next;return t}consume(e,t){let r=this.head.data;if(e<r.length){let t=r.slice(0,e);return this.head.data=r.slice(e),t}return e===r.length?this.shift():(0,t?this._getString(e):this._getBuffer(e))}first(){return this.head.data}*[t](){for(let e=this.head;e;e=e.next)yield e.data}_getString(t){let r="";let n=this.head;let a=0;do{let i=n.data;if(t>i.length)r+=i,t-=i.length;else{t===i.length?(r+=i,++a,n.next?this.head=n.next:this.head=this.tail=null):(r+=e(i,0,t),this.head=n,n.data=e(i,t));break}++a}while((n=n.next)!==null)return this.length-=a,r}_getBuffer(e){let t=a.allocUnsafe(e);let i=e;let s=this.head;let o=0;do{let a=s.data;if(e>a.length)r(t,a,i-e),e-=a.length;else{e===a.length?(r(t,a,i-e),++o,s.next?this.head=s.next:this.head=this.tail=null):(r(t,new n(a.buffer,a.byteOffset,e),i-e),this.head=s,s.data=a.slice(e));break}++o}while((s=s.next)!==null)return this.length-=o,t}[Symbol.for("nodejs.util.inspect.custom")](e,t){return i(this,{...t,depth:0,customInspect:!1})}}}}).call(__webpack_require__._LM_("readable-stream",{module,__webpack_require__}))()},902731(){},908743(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{jU:()=>f,zC:()=>h});var e=__webpack_require__(356583);var t=__webpack_require__(355608);var r=__webpack_require__(784225);var n=__webpack_require__(342672);var a=__webpack_require__(142827);var i=__webpack_require__(745085);let s=e=>(0,n.Ik)(e);function o({path:e,branch:t}){let r=e[e.length-1];return(0,i.i5)(t[t.length-2],r)}function l(t){return new e._k({...t,type:`optional ${t.type}`,validator:(e,r)=>!o(r)||t.validator(e,r),refiner:(e,r)=>!o(r)||t.refiner(e,r)})}function u(e){if(e===null||typeof e=="boolean"||typeof e=="string"||typeof e=="number"&&Number.isFinite(e))return!0;if(typeof e=="object"){let t=!0;if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(!u(e[r])){t=!1;break}return t}let r=Object.entries(e);for(let e=0;e<r.length;e++)if(typeof r[e][0]!=="string"||!u(r[e][1])){t=!1;break}return t}return!1}let c=(0,a.E8)("JSON",e=>u(e));let h=(0,t.au)(c,(0,r.YP)((0,n.bz)(),"JSON",t=>(0,e.is)(t,c)),e=>JSON.parse(JSON.stringify(e,(e,t)=>{return e==="__proto__"||e==="constructor"?undefined:(0,t)})));function f(e){try{return m(e),!0}catch{return!1}}function m(t){return(0,e.vt)(t,h)}let d=(0,n.eu)("2.0");let p=(0,n.me)((0,n.KC)([(0,n.ai)(),(0,n.Yj)()]));let g=s({code:(0,n.nd)(),message:(0,n.Yj)(),data:l(h),stack:l((0,n.Yj)())});let b=(0,n.KC)([(0,n.g1)((0,n.Yj)(),h),(0,n.YO)(h)]);s({id:p,jsonrpc:d,method:(0,n.Yj)(),params:l(b)}),s({jsonrpc:d,method:(0,n.Yj)(),params:l(b)}),(0,n.Ik)({id:p,jsonrpc:d,result:(0,n.lq)((0,n.L5)()),error:(0,n.lq)(g)});let y=s({id:p,jsonrpc:d,result:h});let k=s({id:p,jsonrpc:d,error:g});(0,n.KC)([y,k])}}).call(__webpack_require__._LM_("@metamask/utils",{__webpack_require__,__webpack_exports__}))()},912276(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>x});var e=__webpack_require__(512986);var t=__webpack_require__(122552);var r=__webpack_require__(603476);var n=__webpack_require__(835060);var a=__webpack_require__(750628);let i={};function s(e,t={}){let r=JSON.stringify([e,t]);let n=i[r];return!n&&(n=new Intl.ListFormat(e,t),i[r]=n),n}let o={};function l(e,t={}){let r=JSON.stringify([e,t]);let n=o[r];return!n&&(n=new Intl.DateTimeFormat(e,t),o[r]=n),n}let u={};function c(e,t={}){let r=JSON.stringify([e,t]);let n=u[r];return!n&&(n=new Intl.NumberFormat(e,t),u[r]=n),n}let h={};function f(e,t={}){let{base:r,...n}=t;let a=JSON.stringify([e,n]);let i=h[a];return!i&&(i=new Intl.RelativeTimeFormat(e,t),h[a]=i),i}let m=null;function d(){return m||(0,m=new Intl.DateTimeFormat().resolvedOptions().locale)}let p={};function g(e){let t=p[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,p[e]=t}return t}function b(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let t;let n;try{t=l(e).resolvedOptions(),n=e}catch(i){let a=e.substring(0,r);t=l(a).resolvedOptions(),n=a}let{numberingSystem:a,calendar:i}=t;return[n,a,i]}}function y(e,t,r){return r||t?(!e.includes("-u-")&&(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)):void 0,e}function k(e){let t=[];for(let r=1;r<=12;r++){let a=n.A.utc(2009,r,1);t.push(e(a))}return t}function w(e){let t=[];for(let r=1;r<=7;r++){let a=n.A.utc(2016,11,13+r);t.push(e(a))}return t}function v(e,t,r,n){let a=e.listingMode();return a==="error"?null:(0,a==="en")?r(t):n(t)}function _(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:(0,e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn")}class S{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:n,floor:a,...i}=r;if(!t||Object.keys(i).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=c(e,t)}}format(t){if(this.inf){let e=this.floor?Math.floor(t):t;return this.inf.format(e)}{let r=this.floor?Math.floor(t):(0,e.GB)(t,3);return(0,e.CF)(r,this.padTo)}}}class E{constructor(e,t,r){this.opts=r,this.originalZone=undefined;let n;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let t=-1*(e.offset/60);let r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;e.offset!==0&&a.A.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=l(t,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):(0,this.dtf.format(this.dt.toJSDate()))}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if(e.type!=="timeZoneName")return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):(0,e)}resolvedOptions(){return this.dtf.resolvedOptions()}}class j{constructor(t,r,n){this.opts={style:"long",...n},!r&&(0,e.h3)()&&(this.rtf=f(t,n))}format(e,r){return this.rtf?this.rtf.format(e,r):(0,t.fw(r,e,this.opts.numeric,this.opts.style!=="long"))}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):(0,[])}}let T={firstDay:1,minimalDays:4,weekend:[6,7]};class x{static fromOpts(e){return x.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(t,n,a,i,s=!1){let o=t||r.A.defaultLocale;let l=o||(s?"en-US":d());let u=n||r.A.defaultNumberingSystem;return new x(l,u,a||r.A.defaultOutputCalendar,(0,e._v)(i)||r.A.defaultWeekSettings,o)}static resetCache(){m=null,o={},u={},h={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return x.create(e,t,r,n)}constructor(e,t,r,n,a){let[i,s,o]=b(e);this.locale=i,this.numberingSystem=t||s||null,this.outputCalendar=r||o||null,this.weekSettings=n,this.intl=y(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=_(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish();let t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:(0,x.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,(0,e._v)(t.weekSettings)||this.weekSettings,t.defaultToEN||!1))}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return v(this,e,t.US,()=>{let t=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";return!this.monthsCache[n][e]&&(this.monthsCache[n][e]=k(e=>this.extract(e,t,"month"))),this.monthsCache[n][e]})}weekdays(e,r=!1){return v(this,e,t.mx,()=>{let t=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=r?"format":"standalone";return!this.weekdaysCache[n][e]&&(this.weekdaysCache[n][e]=w(e=>this.extract(e,t,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return v(this,undefined,()=>t.us,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[n.A.utc(2016,11,13,9),n.A.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return v(this,e,t.qH,()=>{let t={era:e};return!this.eraCache[e]&&(this.eraCache[e]=[n.A.utc(-40,1,1),n.A.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]})}extract(e,t,r){let n=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return n?n.value:null}numberFormatter(e={}){return new S(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new E(e,this.intl,t)}relFormatter(e={}){return new j(this.intl,this.isEnglish(),e)}listFormatter(e={}){return s(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:(0,!(0,e.jv)())?T:g(this.locale)}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},927785(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{UI:()=>e.U});var e=__webpack_require__(755593);__webpack_require__(620498),__webpack_require__(101274),__webpack_require__(74883),__webpack_require__(107927)}}).call(__webpack_require__._LM_("@metamask/post-message-stream",{__webpack_require__,__webpack_exports__}))()},932791(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";function e(e,t){console.debug(`MetaMask: Content script lost connection to "${e}".`,t)}__webpack_require__.d(__webpack_exports__,{R:()=>e})}}).call(__webpack_require__._LM_("$root$",{__webpack_exports__,__webpack_require__}))()},934344(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);function t(e,t){n(e,t),r(e)}function r(e){if(e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function n(e,t){e.emit("error",t)}module.exports={destroy:function(a,i){var s=this;var o=this._readableState&&this._readableState.destroyed;var l=this._writableState&&this._writableState.destroyed;return o||l?i?i(a):a&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(n,this,a)):e.nextTick(n,this,a)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(n){!i&&n?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(t,s,n)):e.nextTick(t,s,n):i?(e.nextTick(r,s),i(n)):e.nextTick(r,s)})),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;var n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},937053(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{Pm:()=>e_});var e=__webpack_require__(784225);var t=__webpack_require__(342672);var r=__webpack_require__(142827);var n=__webpack_require__(142282);var a=__webpack_require__(760184);var i=__webpack_require__(908743);var s=__webpack_require__(745085);var o=__webpack_require__(188320);var l=__webpack_require__(879771);var u=__webpack_require__(614130);var c=__webpack_require__(797999);var h=__webpack_require__(609948);var f=__webpack_require__(544299);var m=__webpack_require__(186119);let d=(0,u.J)([(0,t.Yj)(),(0,t.ai)()]);let p=b([(0,t.Yj)()]);function g(e){let n=(0,l.E$)(a=>{return Array.isArray(a)?(0,t.YO)((0,r.RZ)(()=>n)):(0,e)});return n}function b(e){let r=e.length===1?e[0]:(0,u.J)(e);return g((0,t.me)((0,l.E$)(e=>{return typeof e=="boolean"?(0,t.zM)():(0,r)})))}function y(e){return(0,t.me)((0,l.E$)(r=>{return typeof r=="boolean"?(0,t.zM)():(0,e)}))}function k(e,r={}){return(0,t.Ik)({type:(0,l.eu)(e),props:(0,t.Ik)(r),key:(0,t.me)(d)})}function w(e,r){return(0,t.Ik)({type:(0,l.eu)(e),props:(0,l.E$)(r),key:(0,t.me)(d)})}(0,t.Ik)({type:(0,t.Yj)(),props:(0,t.g1)((0,t.Yj)(),i.zC),key:(0,t.me)(d)});let v=(0,u.J)([(0,l.eu)("none"),(0,l.eu)("medium"),(0,l.eu)("full")]);let _=k("Image",{src:(0,u.J)([(0,c.J)(),(0,f.H)({protocol:(0,l.eu)("https:")})]),alt:(0,t.lq)((0,t.Yj)()),borderRadius:(0,t.lq)(v),width:(0,t.lq)((0,t.ai)()),height:(0,t.lq)((0,t.ai)())});let S=k("Icon",{name:(0,u.J)(Object.values(o.$).map(e=>(0,l.eu)(e))),color:(0,t.lq)((0,u.J)([(0,l.eu)("default"),(0,l.eu)("primary"),(0,l.eu)("muted"),(0,l.eu)("error"),(0,l.eu)("success"),(0,l.eu)("warning")])),size:(0,t.lq)((0,u.J)([(0,l.eu)("md"),(0,l.eu)("inherit")]))});let E=k("Button",{children:b([p,_,S]),name:(0,t.lq)((0,t.Yj)()),type:(0,t.lq)((0,u.J)([(0,l.eu)("button"),(0,l.eu)("submit")])),variant:(0,t.lq)((0,u.J)([(0,l.eu)("primary"),(0,l.eu)("destructive")])),size:(0,t.lq)((0,u.J)([(0,l.eu)("sm"),(0,l.eu)("md")])),disabled:(0,t.lq)((0,t.zM)()),loading:(0,t.lq)((0,t.zM)()),form:(0,t.lq)((0,t.Yj)())});let j=k("Checkbox",{name:(0,t.Yj)(),checked:(0,t.lq)((0,t.zM)()),label:(0,t.lq)((0,t.Yj)()),variant:(0,t.lq)((0,u.J)([(0,l.eu)("default"),(0,l.eu)("toggle")])),disabled:(0,t.lq)((0,t.zM)())});let T=(0,t.Ik)({name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)())});let x=(0,r.kp)(T,(0,t.Ik)({type:(0,l.eu)("text")}));let A=(0,r.kp)(T,(0,t.Ik)({type:(0,l.eu)("password")}));let R=(0,r.kp)(T,(0,t.Ik)({type:(0,l.eu)("number"),min:(0,t.lq)((0,t.ai)()),max:(0,t.lq)((0,t.ai)()),step:(0,t.lq)((0,t.ai)())}));let M=w("Input",e=>{if((0,s.Qd)(e)&&(0,s.i5)(e,"type"))switch(e.type){case"text":return x;case"password":return A;case"number":return R;default:return T}return T});let O=k("AddressInput",{name:(0,t.Yj)(),chainId:n.dg,value:(0,t.lq)((0,t.Yj)()),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)()),displayAvatar:(0,t.lq)((0,t.zM)())});let L=k("Option",{value:(0,t.Yj)(),children:(0,t.Yj)(),disabled:(0,t.lq)((0,t.zM)())});let I=k("Dropdown",{name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:b([L]),disabled:(0,t.lq)((0,t.zM)())});let C=k("DateTimePicker",{name:(0,t.Yj)(),type:(0,t.lq)((0,u.J)([(0,l.eu)("date"),(0,l.eu)("time"),(0,l.eu)("datetime")])),placeholder:(0,t.lq)((0,t.Yj)()),disabled:(0,t.lq)((0,t.zM)()),disablePast:(0,t.lq)((0,t.zM)()),disableFuture:(0,t.lq)((0,t.zM)()),value:(0,t.lq)(h.U)});let N=k("Address",{address:(0,l.E$)(e=>{return typeof e=="string"&&e.startsWith("0x")?a.UG:(0,n.FX)}),truncate:(0,t.lq)((0,t.zM)()),displayName:(0,t.lq)((0,t.zM)()),avatar:(0,t.lq)((0,t.zM)())});let P=k("AccountSelector",{name:(0,t.Yj)(),hideExternalAccounts:(0,t.lq)((0,t.zM)()),chainIds:(0,t.lq)((0,t.YO)(n.dg)),switchGlobalAccount:(0,t.lq)((0,t.zM)()),value:(0,t.lq)(n.FX),disabled:(0,t.lq)((0,t.zM)())});let D=k("Card",{image:(0,t.lq)((0,t.Yj)()),title:(0,l.E$)(e=>{return typeof e=="object"?N:(0,(0,t.Yj)())}),description:(0,t.lq)((0,t.Yj)()),value:(0,t.Yj)(),extra:(0,t.lq)((0,t.Yj)())});let B=k("SelectorOption",{value:(0,t.Yj)(),children:D,disabled:(0,t.lq)((0,t.zM)())});let F=k("Selector",{name:(0,t.Yj)(),title:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:b([B]),disabled:(0,t.lq)((0,t.zM)())});let q=k("AssetSelector",{name:(0,t.Yj)(),addresses:m.j6,chainIds:(0,t.lq)((0,t.YO)(m.s1)),value:(0,t.lq)(m._g),disabled:(0,t.lq)((0,t.zM)())});let U=k("Radio",{value:(0,t.Yj)(),children:(0,t.Yj)(),disabled:(0,t.lq)((0,t.zM)())});let $=k("RadioGroup",{name:(0,t.Yj)(),value:(0,t.lq)((0,t.Yj)()),children:b([U]),disabled:(0,t.lq)((0,t.zM)())});let z=k("FileInput",{name:(0,t.Yj)(),accept:(0,u.J)([(0,t.lq)((0,t.YO)((0,t.Yj)()))]),compact:(0,t.lq)((0,t.zM)()),disabled:(0,t.lq)((0,t.zM)())});let W=[y((0,r.RZ)(()=>ew)),M];let H=[M,y((0,r.RZ)(()=>ew))];let G=[y((0,r.RZ)(()=>ew)),M,y((0,r.RZ)(()=>ew))];let V=[q,O,P,M,I,$,z,j,F,C];(0,u.J)([...V,...W,...H,...G]);let Y=(0,l.E$)(e=>{let r=Array.isArray(e);return r&&e.length===3?(0,t.PV)(G):(0,r&&e.length===2)?e[0]?.type==="Box"?(0,t.PV)(W):(0,t.PV)(H):(0,(0,l.i5)(V))});let Z=k("Field",{label:(0,t.lq)((0,t.Yj)()),error:(0,t.lq)((0,t.Yj)()),children:Y});let K=k("Bold",{children:b([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,J)})])});let J=k("Italic",{children:b([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,K)})])});let X=(0,l.i5)([K,J]);let Q=k("Avatar",{address:n.FX,size:(0,t.lq)((0,u.J)([(0,l.eu)("sm"),(0,l.eu)("md"),(0,l.eu)("lg")]))});let ee=b([(0,r.RZ)(()=>ew)]);let et=k("Box",{children:ee,direction:(0,t.lq)((0,u.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,u.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")])),crossAlignment:(0,t.lq)((0,u.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end")])),center:(0,t.lq)((0,t.zM)())});let er=k("Form",{children:ee,name:(0,t.Yj)()});let en=(0,e.YP)(E,"FooterButton",e=>{if(typeof e.props.children=="string"||typeof e.props.children=="boolean"||e.props.children===null)return!0;if(Array.isArray(e.props.children)){if(!e.props.children.some(e=>typeof e!=="string"&&typeof e!=="boolean"&&e!==null))return!0}return"Footer buttons may only contain text."});let ea=k("Section",{children:ee,direction:(0,t.lq)((0,u.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,u.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")]))});let ei=k("CollapsibleSection",{children:ee,label:(0,t.Yj)(),isLoading:(0,t.lq)((0,t.zM)()),isExpanded:(0,t.lq)((0,t.zM)()),direction:(0,t.lq)((0,u.J)([(0,l.eu)("horizontal"),(0,l.eu)("vertical")])),alignment:(0,t.lq)((0,u.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end"),(0,l.eu)("space-between"),(0,l.eu)("space-around")]))});let es=k("Footer",{children:(0,l.E$)(e=>{return Array.isArray(e)?(0,t.PV)([en,en]):(0,en)})});let eo=k("Copyable",{value:(0,t.Yj)(),sensitive:(0,t.lq)((0,t.zM)())});let el=k("Divider");let eu=k("Heading",{children:p,size:(0,t.lq)((0,u.J)([(0,l.eu)("sm"),(0,l.eu)("md"),(0,l.eu)("lg")]))});let ec=k("Link",{href:(0,t.Yj)(),children:b([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([X,S,_,N]))})])});let eh=k("Skeleton",{width:(0,t.lq)((0,t.KC)([(0,t.ai)(),(0,t.Yj)()])),height:(0,t.lq)((0,t.KC)([(0,t.ai)(),(0,t.Yj)()])),borderRadius:(0,t.lq)(v)});let ef=k("Text",{children:b([(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([K,J,ec,S,eh]))})]),alignment:(0,t.lq)((0,u.J)([(0,l.eu)("start"),(0,l.eu)("center"),(0,l.eu)("end")])),color:(0,t.lq)((0,u.J)([(0,l.eu)("default"),(0,l.eu)("alternative"),(0,l.eu)("muted"),(0,l.eu)("error"),(0,l.eu)("success"),(0,l.eu)("warning")])),size:(0,t.lq)((0,u.J)([(0,l.eu)("sm"),(0,l.eu)("md")])),fontWeight:(0,t.lq)((0,u.J)([(0,l.eu)("regular"),(0,l.eu)("medium"),(0,l.eu)("bold")]))});let em=k("Value",{value:(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,ef)}),extra:(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,ef)})});let ed=(0,l.E$)(e=>{return typeof e=="boolean"?(0,t.zM)():(0,(0,l.i5)([ef,K,J,ec,_,S]))});let ep=(0,l.E$)(e=>{return typeof e=="string"?(0,t.Yj)():(0,(0,l.i5)([ef,K,J,ec,S]))});let eg=k("Tooltip",{children:(0,t.me)(ed),content:ep});let eb=k("Banner",{children:b([(0,l.i5)([ef,ec,S,E,K,J,eh])]),title:(0,t.Yj)(),severity:(0,t.KC)([(0,l.eu)("danger"),(0,l.eu)("info"),(0,l.eu)("success"),(0,l.eu)("warning")])});let ey=k("Row",{label:(0,t.Yj)(),children:(0,r.RZ)(()=>(0,l.i5)([em,ew])),variant:(0,t.lq)((0,u.J)([(0,l.eu)("default"),(0,l.eu)("warning"),(0,l.eu)("critical")])),tooltip:(0,t.lq)((0,t.Yj)())});let ek=k("Spinner");let ew=(0,l.i5)([P,N,q,O,K,et,E,eo,C,el,I,$,Z,z,er,eu,M,_,J,ec,ey,ek,ef,eg,j,D,S,F,ea,Q,eb,eh,ei]);let ev=k("Container",{children:(0,l.E$)(e=>{return Array.isArray(e)?(0,t.PV)([ew,es]):(0,ew)}),backgroundColor:(0,t.lq)((0,u.J)([(0,l.eu)("default"),(0,l.eu)("alternative")]))});let e_=(0,l.i5)([ew,ev]);let eS=(0,l.i5)([q,O,P,E,M,z,Z,er,K,J,N,et,eo,C,el,eu,_,ec,ey,ek,ef,I,L,$,U,em,eg,j,es,ev,D,S,F,B,ea,Q,eb,eh,ei])}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},938361(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";module.exports=t;var e=__webpack_require__(67395);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}__webpack_require__(985738)(t,e),t.prototype._transform=function(e,t,r){r(null,e)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},938453(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(677197).Buffer;var t=e.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 r(e){if(!e)return"utf8";var t;while(!0)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}}function n(n){var a=r(n);if(typeof a!=="string"&&(e.isEncoding===t||!t(n)))throw new Error("Unknown encoding: "+n);return a||n}function a(t){var r;switch(this.encoding=n(t),this.encoding){case"utf16le":this.text=h,this.end=f,r=4;break;case"utf8":this.fillLast=l,r=4;break;case"base64":this.text=m,this.end=d,r=3;break;default:this.write=p,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(r)}function i(e){return e<=127?0:(0,e>>5==6)?2:(0,e>>4==14)?3:(0,e>>3==30)?4:(0,e>>6==2?-1:-2)}function s(e,t,r){var n=t.length-1;if(n<r)return 0;var a=i(t[n]);return a>=0?(a>0&&(e.lastNeed=a-1),a):(0,--n<r||a===-2)?0:(0,(a=i(t[n]))>=0)?(a>0&&(e.lastNeed=a-2),a):(0,--n<r||a===-2)?0:(0,(a=i(t[n]))>=0)?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):(0,0)}function o(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128)return e.lastNeed=2,"�"}}}function l(e){var t=this.lastTotal-this.lastNeed;var r=o(this,e,t);return r!==undefined?r:(0,this.lastNeed<=e.length)?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(0,void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length))}function u(e,t){var r=s(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)}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":(0,t)}function h(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 f(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 m(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?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):(0,t)}function p(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}exports.StringDecoder=a,a.prototype.write=function(e){if(e.length===0)return"";var t;var 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):(0,t||"")},a.prototype.end=c,a.prototype.text=u,a.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}}}).call(__webpack_require__._LM_("browserify>string_decoder",{__webpack_require__,exports}))()},948972(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>t});var e=__webpack_require__(835203);class t extends e.A{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},955187(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{z:()=>a});var e=__webpack_require__(342672);var t=__webpack_require__(142827);var r=__webpack_require__(879771);var n=__webpack_require__(676358);let a=(0,t.kp)(n.Tl,(0,e.Ik)({type:(0,r.eu)(n.Z6.Text),value:(0,e.Yj)(),markdown:(0,e.lq)((0,e.zM)())}))}}).call(__webpack_require__._LM_("@metamask/snaps-sdk",{__webpack_require__,__webpack_exports__}))()},967744(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Substream=void 0;let t=__webpack_require__(540031);class r extends t.Duplex{constructor(t){var{parent:r,name:n}=t;super(Object.assign({objectMode:!0},e(t,["parent","name"]))),this._parent=r,this._name=n}_read(){return undefined}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}}exports.Substream=r}}).call(__webpack_require__._LM_("@metamask/object-multiplex",{exports,__webpack_require__})).bind(exports)()},971567(__unused_webpack_module,exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";let e=__webpack_require__(685590);let t=__webpack_require__(170059);let r=typeof Symbol=="function"&&typeof Symbol["for"]=="function"?Symbol["for"]("nodejs.util.inspect.custom"):null;function n(){try{let e=new Uint8Array(1);let t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}function a(e){if(e>0x7fffffff)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if(typeof e=="string")return c(e,t);if(ArrayBuffer.isView(e))return f(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e);if(et(e,ArrayBuffer)||e&&et(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!=="undefined"&&(et(e,SharedArrayBuffer)||e&&et(e.buffer,SharedArrayBuffer)))return m(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return i.from(n,t,r);let a=d(e);if(a)return a;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}function o(e){if(typeof e!=="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(o(e),e<=0)?a(e):(0,t!==undefined)?typeof r=="string"?a(e).fill(t,r):a(e).fill(t):(0,a(e))}function u(e){return o(e),a(e<0?0:p(e)|0)}function c(e,t){if((typeof t!=="string"||t==="")&&(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=b(e,t)|0;let n=a(r);let s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}function h(e){let t=e.length<0?0:p(e.length)|0;let r=a(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function f(e){if(et(e,Uint8Array)){let t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return h(e)}function m(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return Object.setPrototypeOf(n=t===undefined&&r===undefined?new Uint8Array(e):r===undefined?new Uint8Array(e,t):new Uint8Array(e,t,r),i.prototype),n}function d(e){if(i.isBuffer(e)){let t=p(e.length)|0;let r=a(t);return r.length===0||(0,e.copy(r,0,0,t)),r}return e.length!==undefined?typeof e.length!=="number"||er(e.length)?a(0):(0,h(e)):(0,e.type==="Buffer"&&Array.isArray(e.data))?h(e.data):void 0}function p(e){if(e>=0x7fffffff)throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+0x7fffffff.toString(16)+" bytes");return e|0}function g(e){return+e!=e&&(e=0),i.alloc(+e)}function b(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||et(e,ArrayBuffer))return e.byteLength;if(typeof e!=="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. '+"Received type "+typeof e);let r=e.length;let n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(a)return n?-1:K(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,r){let n=!1;if(((t===undefined||t<0)&&(t=0),t>this.length)||((r===undefined||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";!e&&(e="utf8");while(!0)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function k(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,a){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),er(r=+r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if(typeof t=="string"&&(t=i.from(t,n)),i.isBuffer(t))return t.length===0?-1:(0,v(e,t,r,n,a));if(typeof t=="number"){return(t=t&255,typeof Uint8Array.prototype.indexOf=="function")?a?Uint8Array.prototype.indexOf.call(e,t,r):(0,Uint8Array.prototype.lastIndexOf.call(e,t,r)):(0,v(e,[t],r,n,a))}throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,a){let i=1;let s=e.length;let o=t.length;if(n!==undefined){if((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2)return-1;i=2,s/=2,o/=2,r/=2}}function l(e,t){return i===1?e[t]:(0,e.readUInt16BE(t*i))}let u;if(a){let n=-1;for(u=r;u<s;u++)if(l(e,u)===l(t,n===-1?0:u-n)){if(n===-1&&(n=u),u-n+1===o)return n*i}else n!==-1&&(u-=u-n),n=-1}else for(r+o>s&&(r=s-o),u=r;u>=0;u--){let r=!0;for(let n=0;n<o;n++)if(l(e,u+n)!==l(t,n)){r=!1;break}if(r)return u}return-1}function _(e,t,r,n){r=Number(r)||0;let a=e.length-r;n?(n=Number(n))>a&&(n=a):n=a;let i=t.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let n=parseInt(t.substr(s*2,2),16);if(er(n))return s;e[r+s]=n}return s}function S(e,t,r,n){return ee(K(t,e.length-r),e,r,n)}function E(e,t,r,n){return ee(J(t),e,r,n)}function j(e,t,r,n){return ee(Q(t),e,r,n)}function T(e,t,r,n){return ee(X(t,e.length-r),e,r,n)}function x(t,r,n){return r===0&&n===t.length?e.fromByteArray(t):(0,e.fromByteArray(t.slice(r,n)))}function A(e,t,r){r=Math.min(e.length,r);let n=[];let a=t;while(a<r){let t=e[a];let i=null;let s=t>239?4:t>223?3:t>191?2:1;if(a+s<=r){let r,n,o,l;switch(s){case 1:t<128&&(i=t);break;case 2:((r=e[a+1])&192)==128&&(l=(t&31)<<6|r&63)>127&&(i=l);break;case 3:r=e[a+1],n=e[a+2],(r&192)==128&&(n&192)==128&&(l=(t&15)<<12|(r&63)<<6|n&63)>2047&&(l<55296||l>57343)&&(i=l);break;case 4:r=e[a+1],n=e[a+2],o=e[a+3],(r&192)==128&&(n&192)==128&&(o&192)==128&&(l=(t&15)<<18|(r&63)<<12|(n&63)<<6|o&63)>65535&&l<1114112&&(i=l)}}i===null?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|i&1023),n.push(i),a+=s}return R(n)}function R(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="";let n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}function M(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;a<r;++a)n+=String.fromCharCode(e[a]&127);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let a=t;a<r;++a)n+=String.fromCharCode(e[a]);return n}function L(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n<r;++n)a+=en[e[n]];return a}function I(e,t,r){let n=e.slice(t,r);let a="";for(let e=0;e<n.length-1;e+=2)a+=String.fromCharCode(n[e]+n[e+1]*256);return a}function C(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,a,s){if(!i.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,a){H(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i,i=i>>8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,s=s>>8,e[r++]=s,r}function D(e,t,r,n,a){H(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r+7]=i,i=i>>8,e[r+6]=i,i=i>>8,e[r+5]=i,i=i>>8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s=s>>8,e[r+2]=s,s=s>>8,e[r+1]=s,s=s>>8,e[r]=s,r+8}function B(e,t,r,n,a,i){if(r+n>e.length||r<0)throw new RangeError("Index out of range")}function F(e,r,n,a,i){return r=+r,n=n>>>0,!i&&B(e,r,n,4,34028234663852886e22,-34028234663852886e22),t.write(e,r,n,a,23,4),n+4}function q(e,r,n,a,i){return r=+r,n=n>>>0,!i&&B(e,r,n,8,17976931348623157e292,-17976931348623157e292),t.write(e,r,n,a,52,8),n+8}exports.Buffer=i,exports.SlowBuffer=g,exports.INSPECT_MAX_BYTES=50,exports.kMaxLength=0x7fffffff,i.TYPED_ARRAY_SUPPORT=n(),!i.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by "+"`buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(i.prototype,"parent",{enumerable:!0,get:function(){return!i.isBuffer(this)?undefined:(0,this.buffer)}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){return!i.isBuffer(this)?undefined:(0,this.byteOffset)}}),i.poolSize=8192,i.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(e,t,r){return l(e,t,r)},i.allocUnsafe=function(e){return u(e)},i.allocUnsafeSlow=function(e){return u(e)},i.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==i.prototype},i.compare=function(e,t){if(et(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),et(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(e)||!i.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length;let n=t.length;for(let a=0,i=Math.min(r,n);a<i;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:(0,n<r)?1:(0,0)},i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return i.alloc(0);let r;if(t===undefined)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=i.allocUnsafe(t);let a=0;for(r=0;r<e.length;++r){let t=e[r];if(et(t,Uint8Array))a+t.length>n.length?(!i.isBuffer(t)&&(t=i.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else if(i.isBuffer(t))t.copy(n,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=t.length}return n},i.byteLength=b,i.prototype._isBuffer=!0,i.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)k(this,t,t+1);return this},i.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},i.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},i.prototype.toString=function(){let e=this.length;return e===0?"":(0,arguments.length==0)?A(this,0,e):(0,y.apply(this,arguments))},i.prototype.toLocaleString=i.prototype.toString,i.prototype.equals=function(e){if(!i.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:(0,i.compare(this,e)===0)},i.prototype.inspect=function(){let e="";let t=exports.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},r&&(i.prototype[r]=i.prototype.inspect),i.prototype.compare=function(e,t,r,n,a){if(et(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof e);if(t===undefined&&(t=0),r===undefined&&(r=e?e.length:0),n===undefined&&(n=0),a===undefined&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;let s=a-n;let o=r-t;let l=Math.min(s,o);let u=this.slice(n,a);let c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){s=u[e],o=c[e];break}return s<o?-1:(0,o<s)?1:(0,0)},i.prototype.includes=function(e,t,r){return this.indexOf(e,t,r)!==-1},i.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},i.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},i.prototype.write=function(e,t,r,n){if(t===undefined)n="utf8",r=this.length,t=0;else if(r===undefined&&typeof t=="string")n=t,r=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(r)?(r=r>>>0,n===undefined&&(n="utf8")):(n=r,r=undefined);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-t;if((r===undefined||r>a)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");!n&&(n="utf8");let i=!1;for(;;)switch(n){case"hex":return _(this,e,t,r);case"utf8":case"utf-8":return S(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return j(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(e,t){let r=this.length;e=~~e,t=t===undefined?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,i.prototype),n},i.prototype.readUintLE=i.prototype.readUIntLE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&C(e,t,this.length);let n=this[e];let a=1;let i=0;while(++i<t&&(a*=256))n+=this[e+i]*a;return n},i.prototype.readUintBE=i.prototype.readUIntBE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&C(e,t,this.length);let n=this[e+--t];let a=1;while(t>0&&(a*=256))n+=this[e+--t]*a;return n},i.prototype.readUint8=i.prototype.readUInt8=function(e,t){return e=e>>>0,!t&&C(e,1,this.length),this[e]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(e,t){return e=e>>>0,!t&&C(e,2,this.length),this[e]|this[e+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(e,t){return e=e>>>0,!t&&C(e,2,this.length),this[e]<<8|this[e+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(e,t){return e=e>>>0,!t&&C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*0x1000000},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(e,t){return e=e>>>0,!t&&C(e,4,this.length),this[e]*0x1000000+(this[e+1]<<16|this[e+2]<<8|this[e+3])},i.prototype.readBigUInt64LE=ea(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];(t===undefined||r===undefined)&&V(e,this.length-8);let n=t+this[++e]*256+this[++e]*65536+this[++e]*0x1000000;let a=this[++e]+this[++e]*256+this[++e]*65536+r*0x1000000;return BigInt(n)+(BigInt(a)<<BigInt(32))}),i.prototype.readBigUInt64BE=ea(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];(t===undefined||r===undefined)&&V(e,this.length-8);let n=t*0x1000000+this[++e]*65536+this[++e]*256+this[++e];let a=this[++e]*0x1000000+this[++e]*65536+this[++e]*256+r;return(BigInt(n)<<BigInt(32))+BigInt(a)}),i.prototype.readIntLE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&C(e,t,this.length);let n=this[e];let a=1;let i=0;while(++i<t&&(a*=256))n+=this[e+i]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},i.prototype.readIntBE=function(e,t,r){e=e>>>0,t=t>>>0,!r&&C(e,t,this.length);let n=t;let a=1;let i=this[e+--n];while(n>0&&(a*=256))i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},i.prototype.readInt8=function(e,t){return(e=e>>>0,!t&&C(e,1,this.length),!(this[e]&128))?this[e]:(0,(255-this[e]+1)*-1)},i.prototype.readInt16LE=function(e,t){e=e>>>0,!t&&C(e,2,this.length);let r=this[e]|this[e+1]<<8;return r&32768?r|0xffff0000:r},i.prototype.readInt16BE=function(e,t){e=e>>>0,!t&&C(e,2,this.length);let r=this[e+1]|this[e]<<8;return r&32768?r|0xffff0000:r},i.prototype.readInt32LE=function(e,t){return e=e>>>0,!t&&C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},i.prototype.readInt32BE=function(e,t){return e=e>>>0,!t&&C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},i.prototype.readBigInt64LE=ea(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];return(t===undefined||r===undefined)&&V(e,this.length-8),(BigInt(this[e+4]+this[e+5]*256+this[e+6]*65536+(r<<24))<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*65536+this[++e]*0x1000000)}),i.prototype.readBigInt64BE=ea(function(e){G(e=e>>>0,"offset");let t=this[e];let r=this[e+7];return(t===undefined||r===undefined)&&V(e,this.length-8),(BigInt((t<<24)+this[++e]*65536+this[++e]*256+this[++e])<<BigInt(32))+BigInt(this[++e]*0x1000000+this[++e]*65536+this[++e]*256+r)}),i.prototype.readFloatLE=function(e,r){return e=e>>>0,!r&&C(e,4,this.length),t.read(this,e,!0,23,4)},i.prototype.readFloatBE=function(e,r){return e=e>>>0,!r&&C(e,4,this.length),t.read(this,e,!1,23,4)},i.prototype.readDoubleLE=function(e,r){return e=e>>>0,!r&&C(e,8,this.length),t.read(this,e,!0,52,8)},i.prototype.readDoubleBE=function(e,r){return e=e>>>0,!r&&C(e,8,this.length),t.read(this,e,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let n=Math.pow(2,8*r)-1;N(this,e,t,r,n,0)}let a=1;let i=0;this[t]=e&255;while(++i<r&&(a*=256))this[t+i]=e/a&255;return t+r},i.prototype.writeUintBE=i.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,r=r>>>0,!n){let n=Math.pow(2,8*r)-1;N(this,e,t,r,n,0)}let a=r-1;let i=1;this[t+a]=e&255;while(--a>=0&&(i*=256))this[t+a]=e/i&255;return t+r},i.prototype.writeUint8=i.prototype.writeUInt8=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,1,255,0),this[t]=e&255,t+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeBigUInt64LE=ea(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=ea(function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let a=0;let i=1;let s=0;this[t]=e&255;while(++a<r&&(i*=256))e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},i.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t=t>>>0,!n){let n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let a=r-1;let i=1;let s=0;this[t+a]=e&255;while(--a>=0&&(i*=256))e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},i.prototype.writeInt8=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},i.prototype.writeInt16LE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},i.prototype.writeInt16BE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},i.prototype.writeInt32LE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,4,0x7fffffff,-0x80000000),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},i.prototype.writeInt32BE=function(e,t,r){return e=+e,t=t>>>0,!r&&N(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},i.prototype.writeBigInt64LE=ea(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=ea(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},i.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},i.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},i.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},i.prototype.copy=function(e,t,r,n){if(!i.isBuffer(e))throw new TypeError("argument should be a Buffer");if(!r&&(r=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),!t&&(t=0),n>0&&n<r&&(n=r),n===r||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let a=n-r;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),a},i.prototype.fill=function(e,t,r,n){if(typeof e=="string"){if(typeof t=="string"?(n=t,t=0,r=this.length):typeof r=="string"&&(n=r,r=this.length),n!==undefined&&typeof n!=="string")throw new TypeError("encoding must be a string");if(typeof n=="string"&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(e.length===1){let t=e.charCodeAt(0);(n==="utf8"&&t<128||n==="latin1")&&(e=t)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;t=t>>>0,r=r===undefined?this.length:r>>>0,!e&&(e=0);let a;if(typeof e=="number")for(a=t;a<r;++a)this[a]=e;else{let s=i.isBuffer(e)?e:i.from(e,n);let o=s.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<r-t;++a)this[a+t]=s[a%o]}return this};let U={};function $(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="";let r=e.length;let n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r){G(t,"offset"),(e[t]===undefined||e[t+r]===undefined)&&V(t,e.length-(r+1))}function H(e,t,r,n,a,i){if(e>r||e<t){let n=typeof t=="bigint"?"n":"";let a;throw a=i>3?t===0||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${(i+1)*8}${n}`:`>= -(2${n} ** ${(i+1)*8-1}${n}) and < 2 ** `+`${(i+1)*8-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",a,e)}W(n,a,i)}function G(e,t){if(typeof e!=="number")throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,r){if(Math.floor(e)!==e)throw G(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}$("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:(0,"Attempt to access memory outside buffer bounds")},RangeError),$("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),$("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`;let a=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?a=z(String(r)):typeof r=="bigint"&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=z(a)),a+="n"),n+=` It must be ${t}. Received ${a}`},RangeError);let Y=/[^+/0-9A-Za-z-_]/g;function Z(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";while(e.length%4!==0)e=e+"=";return e}function K(e,t){t=t||Infinity;let r;let n=e.length;let a=null;let i=[];for(let s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function J(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function X(e,t){let r,n,a;let i=[];for(let s=0;s<e.length;++s){if((t-=2)<0)break;n=(r=e.charCodeAt(s))>>8,a=r%256,i.push(a),i.push(n)}return i}function Q(t){return e.toByteArray(Z(t))}function ee(e,t,r,n){let a;for(a=0;a<n;++a){if(a+r>=t.length||a>=e.length)break;t[a+r]=e[a]}return a}function et(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function er(e){return e!=e}let en=function(){let e="0123456789abcdef";let t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function ea(e){return typeof BigInt=="undefined"?ei:e}function ei(){throw new Error("BigInt not supported")}}}).call(__webpack_require__._LM_("buffer",{exports,__webpack_require__}))()},976199(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(378326);function t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var r;module.exports=E,E.WritableState=_;var n={deprecate:__webpack_require__(381763)};var a=__webpack_require__(506348);var i=__webpack_require__(971567).Buffer;var s=(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:self!==void 0?self:{}).Uint8Array||function(){};function o(e){return i.from(e)}function l(e){return i.isBuffer(e)||e instanceof s}var u=__webpack_require__(430723);var c=__webpack_require__(377228).getHighWaterMark;var h=__webpack_require__(158647).F,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,d=h.ERR_MULTIPLE_CALLBACK,p=h.ERR_STREAM_CANNOT_PIPE,g=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,y=h.ERR_STREAM_WRITE_AFTER_END,k=h.ERR_UNKNOWN_ENCODING;var w=u.errorOrDestroy;function v(){}function _(e,n,a){r=r||__webpack_require__(128093),e=e||{},typeof a!=="boolean"&&(a=n instanceof r),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=c(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){L(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}__webpack_require__(985738)(E,a),_.prototype.getBuffer=function(){var e=this.bufferedRequest;var t=[];while(e)t.push(e),e=e.next;return t};try{Object.defineProperty(_.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}var S;function E(e){var t=this instanceof(r=r||__webpack_require__(128093));if(!t&&!S.call(E,this))return new E(e);this._writableState=new _(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),a.call(this)}function j(t,r){var n=new y;w(t,n),e.nextTick(r,n)}function T(t,r,n,a){var i;return(n===null?i=new b:typeof n!=="string"&&!r.objectMode&&(i=new f("chunk",["string","Buffer"],n)),i)?(w(t,i),e.nextTick(a,i),!1):(0,!0)}function x(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=i.from(t,r)),t}function A(e,t,r,n,a,i){if(!r){var s=x(t,n,a);n!==s&&(r=!0,a="buffer",n=s)}var o=t.objectMode?1:n.length;t.length+=o;var l=t.length<t.highWaterMark;if(!l&&(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else R(e,t,!1,o,n,a,i);return l}function R(e,t,r,n,a,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):r?e._writev(a,t.onwrite):e._write(a,i,t.onwrite),t.sync=!1}function M(t,r,n,a,i){--r.pendingcb,n?(e.nextTick(i,a),e.nextTick(F,t,r),t._writableState.errorEmitted=!0,w(t,a)):(i(a),t._writableState.errorEmitted=!0,w(t,a),F(t,r))}function O(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function L(t,r){var n=t._writableState;var a=n.sync;var i=n.writecb;if(typeof i!=="function")throw new d;if(O(n),r)M(t,n,a,r,i);else{var s=P(n)||t.destroyed;!s&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&N(t,n),a?e.nextTick(I,t,n,s,i):I(t,n,s,i)}}function I(e,t,r,n){!r&&C(e,t),t.pendingcb--,n(),F(e,t)}function C(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function N(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var a=new Array(r.bufferedRequestCount);var i=r.corkedRequestsFree;i.entry=n;var s=0;var o=!0;while(n)a[s]=n,!n.isBuf&&(o=!1),n=n.next,s+=1;a.allBuffers=o,R(e,r,!0,r.length,a,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new t(r),r.bufferedRequestCount=0}else{while(n){var l=n.chunk;var u=n.encoding;var c=n.callback;var h=r.objectMode?1:l.length;if(R(e,r,!1,h,l,u,c),n=n.next,r.bufferedRequestCount--,r.writing)break}n===null&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function P(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function D(e,t){e._final(function(r){t.pendingcb--,r&&w(e,r),t.prefinished=!0,e.emit("prefinish"),F(e,t)})}function B(t,r){!r.prefinished&&!r.finalCalled&&(typeof t._final!="function"||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,e.nextTick(D,t,r)))}function F(e,t){var r=P(t);if(r){if(B(e,t),t.pendingcb===0){if(t.finished=!0,e.emit("finish"),t.autoDestroy){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}}}return r}function q(t,r,n){r.ending=!0,F(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n)),r.ended=!0,t.writable=!1}function U(e,t,r){var n=e.entry;e.entry=null;while(n){var a=n.callback;t.pendingcb--,a(r),n=n.next}t.corkedRequestsFree.next=e}typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return S.call(this,e)?!0:(0,this!==E)?!1:(0,e&&e._writableState instanceof _)}})):S=function(e){return e instanceof this},E.prototype.pipe=function(){w(this,new p)},E.prototype.write=function(e,t,r){var n=this._writableState;var a=!1;var s=!n.objectMode&&l(e);return s&&!i.isBuffer(e)&&(e=o(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":!t&&(t=n.defaultEncoding),typeof r!=="function"&&(r=v),n.ending?j(this,r):(s||T(this,n,e,r))&&(n.pendingcb++,a=A(this,n,s,e,t,r)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&N(this,e))},E.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!==null&&e!==undefined&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),!n.ending&&q(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===undefined?!1:(0,this._writableState.destroyed)},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(e,t){t(e)}}}).call(__webpack_require__._LM_("@metamask/post-message-stream>readable-stream",{module,__webpack_require__}))()},979662(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e;function t(e){var t=!1;return function(){if(t)return;t=!0,e.apply(void 0,arguments)}}var r=__webpack_require__(304208).F,n=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function i(e){if(e)throw e}function s(e){return e.setHeader&&typeof e.abort=="function"}function o(r,n,i,o){o=t(o);var l=!1;r.on("close",function(){l=!0}),e===undefined&&(e=__webpack_require__(838926)),e(r,{readable:n,writable:i},function(e){if(e)return o(e);l=!0,o()});var u=!1;return function(e){return l||u?void 0:(u=!0,s(r))?r.abort():(0,typeof r.destroy=="function")?r.destroy():(0,void o(e||new a("pipe")))}}function l(e){e()}function u(e,t){return e.pipe(t)}function c(e){return!e.length||typeof e[e.length-1]!=="function"?i:(0,e.pop())}module.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=c(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new n("streams");var i;var s=t.map(function(e,r){var n=r<t.length-1;return o(e,n,r>0,function(e){if(!i&&(i=e),e&&s.forEach(l),n)return;s.forEach(l),a(i)})});return t.reduce(u)}}}).call(__webpack_require__._LM_("@metamask/object-multiplex>readable-stream",{__webpack_require__,module}))()},984381(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{c9:()=>e.A});var e=__webpack_require__(835060);__webpack_require__(600473),__webpack_require__(317588),__webpack_require__(991213),__webpack_require__(835203),__webpack_require__(774810),__webpack_require__(750628),__webpack_require__(948972),__webpack_require__(597054),__webpack_require__(603476)}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()},985738(module,__unused_webpack_exports,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";typeof Object.create=="function"?module.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:module.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}}).call(__webpack_require__._LM_("duplexify>inherits",{module,__webpack_require__}))()},991213(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>s});var e=__webpack_require__(835060);var t=__webpack_require__(603476);var r=__webpack_require__(912276);var n=__webpack_require__(750628);var a=__webpack_require__(232712);var i=__webpack_require__(512986);class s{static hasDST(r=t.A.defaultZone){let n=e.A.now().setZone(r).set({month:12});return!r.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return n.A.isValidZone(e)}static normalizeZone(e){return(0,a.q)(e,t.A.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||r.A.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||r.A.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null,outputCalendar:i="gregory"}={}){return(a||r.A.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null}={}){return(a||r.A.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null}={}){return(a||r.A.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return r.A.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return r.A.create(t,null,"gregory").eras(e)}static features(){return{relative:(0,i.h3)(),localeWeek:(0,i.jv)()}}}}}).call(__webpack_require__._LM_("luxon",{__webpack_require__,__webpack_exports__}))()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}var location=globalThis.location,setTimeout=globalThis.setTimeout,clearTimeout=globalThis.clearTimeout,document=globalThis.document,trustedTypes=globalThis.trustedTypes,self=globalThis.self;let LOCKDOWN_SHIMS=[];__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{let e=Object.create(null);e.root="$root$",e.idmap=[["$root$",[100008,100055,100320,100573,100862,100978,101719,101743,102190,102320,102609,102801,102905,102985,103261,103321,103396,103651,104231,104429,104758,105049,105178,105241,105522,105557,106105,106356,106828,107048,107230,107284,107381,107580,107804,107874,107886,108116,108120,108178,108439,108474,108611,108700,108933,110010,11021,110303,110407,110456,110814,110927,111644,111790,111985,111986,112094,11233,112487,11253,112604,112652,113337,113366,113737,113956,114168,114174,114199,114274,115726,115782,115884,116048,116255,116372,116739,116882,117253,117567,11775,117903,11795,118055,118670,118834,118997,119023,11917,119278,119457,119681,119939,120054,120584,12074,120776,120808,120925,121216,121854,122119,122175,122536,123231,123391,123455,12353,12376,123784,123799,124599,125393,125623,12569,125894,126142,126177,126660,126980,127015,127388,127565,128364,128567,130289,130428,130780,130920,131074,13126,131276,131666,131669,13176,131811,132019,132516,13286,13296,133195,133601,133714,134236,134727,135047,136088,136272,136303,136426,136447,136862,137184,137557,137622,137737,137937,137983,1381,138409,138623,138865,138915,139,139284,139354,139768,139833,139842,139976,14029,140775,140778,141057,141573,141784,142014,142064,143195,143394,143472,14416,144586,144944,144988,145034,145102,145502,145657,145865,14600,146188,146194,146740,146759,146802,146869,147099,147133,147278,147599,148099,148249,148496,148887,149040,149177,149235,149235,149235,149235,149861,150320,150350,151235,15151,151958,152256,152336,15250,15289,153059,153068,153294,153692,153753,15392,154260,154565,155180,155246,155309,155862,156292,156540,156549,156760,156852,157187,157234,157395,157479,157770,157794,157944,157960,157962,158175,158221,158259,158265,158308,158332,158374,158637,158843,15890,159163,159229,15923,159307,159315,159454,159472,159667,160002,160087,160099,160237,16026,160461,160873,161356,161413,161863,162393,162444,162560,163305,163310,163636,163723,16415,16467,164684,164777,164899,164983,16512,16530,165404,165454,165788,165851,165927,165937,165972,166034,166133,166352,166879,166939,167290,167472,167484,16750,167643,16809,168671,168798,168960,168994,16930,169518,169727,16979,169816,17e4,170024,170232,170237,170450,170455,170490,170524,170687,17079,170904,170951,171090,171209,171229,17198,172013,172153,172745,173030,173249,173381,173611,174131,174199,174520,174869,17513,175150,175436,175449,175917,17691,177505,177540,177540,178100,178121,17856,178665,178712,178755,179099,179113,179408,179564,17967,179913,179946,180415,180589,181231,181443,181726,181768,181798,181824,182020,182321,182711,182721,182747,182824,18361,183876,184024,184790,184899,185119,185127,185331,185362,185433,185458,185517,185615,185734,185878,186030,186050,186324,186339,186362,186495,186644,186943,187090,187306,188175,188189,188221,188614,18921,189241,189249,189332,189383,189596,189622,189692,189726,190032,190236,192238,192361,192449,192671,192732,19293,193035,193055,19374,193945,193969,194181,194351,194510,194735,194895,195348,195439,195603,195993,196201,196240,196358,196425,19684,197067,197081,197356,197852,197875,197921,198339,198444,198494,198588,199170,199238,199448,199488,199715,200006,200266,201029,201242,201249,201631,201686,201690,202064,202214,202431,202561,202565,202716,20317,20327,203531,204007,204168,20429,204427,20450,204502,204582,205009,205009,205009,205009,205033,205136,205756,205818,206252,206260,206436,206538,206611,207542,20760,208566,208750,208830,208889,209062,209234,209284,209417,209469,210147,210296,210462,210509,210615,210771,21084,211157,212290,212517,212528,212814,212971,213650,213666,213751,213906,213948,214592,214597,215353,216415,216939,217702,217768,217865,217890,218033,218033,218033,218033,218033,218033,218033,218725,21873,218924,219115,21920,219336,219500,220031,220202,220236,220313,220372,220464,220562,220566,220693,220893,220964,221349,221475,221526,221527,221656,221677,222236,222455,22249,22335,223450,224031,224052,224259,224451,224610,225002,225087,225133,225792,225813,226183,226535,226535,226535,226535,22677,227323,227481,227598,227662,227858,227894,22793,227980,228153,228394,228677,228816,229326,229499,22958,229640,229871,229880,2299,230027,230562,230879,231008,231728,23176,232853,232989,233651,234456,234852,234958,235029,23560,235633,23565,235807,236123,236301,236538,236622,236669,236940,236954,237095,237106,237154,237219,237719,237837,237997,238175,238304,23876,238886,239116,239231,240066,240314,240474,240497,240501,240541,240735,240854,24094,241797,241912,242100,242326,242376,24296,243160,243176,243403,243549,243562,244174,244497,244894,244970,245806,24609,246260,247042,247392,247404,247435,247722,247755,247786,247924,247938,24809,248313,248463,248866,249071,249257,249824,250095,250286,25038,250594,250670,251008,25102,251087,251239,251474,25183,251845,251922,252446,252552,253042,253127,253320,253410,253529,253573,253601,253628,253707,253814,254042,254113,254174,254239,254518,25456,254612,254629,254735,255018,255301,255544,255734,256080,256102,256638,257375,258380,25860,258833,259016,259416,259623,259859,25990,26,260105,260133,260199,260263,260467,260523,260723,261523,261645,262371,262541,262667,263022,26319,263294,263458,263738,263831,263880,264013,264070,264085,264198,264258,264259,264377,264466,264607,264727,265396,265649,265724,266180,266203,266391,266452,266692,266892,266923,267069,267208,26765,267782,268282,268718,268916,269185,269243,269256,26956,269627,26973,270006,270204,27057,270642,270692,270965,271077,271326,271525,271641,272,272189,27223,272323,272342,272491,272675,272721,273136,273370,273404,273573,273978,274068,274584,275024,275059,275148,276814,277121,277258,277315,277336,277463,277933,278072,278332,278356,278438,278441,278457,27906,279170,279323,279623,280560,280821,280838,280889,281351,281753,281790,281995,282078,282644,282834,282835,283003,283010,283042,283122,283756,283802,283875,283941,2841,2844,284999,284999,284999,284999,285053,28508,285133,285217,285412,285554,285749,285820,285921,286206,286418,286434,286524,286545,286683,286831,287075,287838,287867,287961,288157,288166,288827,289127,289561,289648,289750,2899,290185,290194,290254,290944,291319,291319,291323,291680,291705,291960,2920,292106,292485,292830,293460,294150,294151,294155,294366,29438,29472,294777,294935,294938,295494,295627,29563,295857,296053,296260,29667,296780,297075,297177,297292,298079,298136,298191,298298,298789,298914,299150,299150,299211,299401,299539,29963,299871,300046,300047,300110,300425,300652,300798,300833,301622,302390,302684,302764,302876,302939,30294,303124,303374,303643,303727,303879,304002,304473,304614,304961,306120,306214,30642,306544,306585,306639,306650,306814,307136,307201,308203,308206,308734,308989,309013,309026,309037,309114,309172,309198,309281,30943,30943,30943,30943,309724,309750,309950,310311,310728,311441,311532,311734,311734,311736,311770,31213,312332,31234,312584,312641,312680,312710,312787,313085,31309,313400,313418,31342,313484,313535,313847,3139,31402,314793,314876,315282,315313,315816,316358,316555,317021,317095,317161,318443,318630,318768,318800,318808,319381,319424,319961,320059,320175,320337,32052,320821,321194,321505,321545,321602,322064,322170,322244,322369,322600,323291,324039,324143,324357,324396,324457,324575,325135,326162,326325,32667,32667,32667,32667,327253,327563,328123,328436,328746,328861,329444,329825,329904,330519,330965,331118,331134,331276,331329,331351,331651,331722,331726,331747,331822,332028,332116,332133,332414,332427,332471,332567,332647,332764,332825,332831,333332,333530,333592,33397,334111,334205,334265,334823,334836,334959,334990,335115,335270,335480,335517,335683,336572,336576,336680,336795,336866,337214,337735,337736,338028,338060,338184,338865,339169,33922,339566,339745,339829,34045,340687,340737,340976,34121,34125,341441,341595,341613,341616,341695,342598,342951,343415,344248,344531,344531,344617,34474,344815,344827,345297,345661,345791,345949,346375,346667,346706,348227,348228,348264,348632,348826,348826,348826,348826,348826,348826,348826,34899,349450,349465,349723,350072,350241,350527,35091,350924,351309,351441,351609,351793,351794,351806,352136,352996,353183,354699,354779,355123,355816,355852,355933,356743,357262,357470,357594,357801,358202,358254,358343,358383,358623,35986,360184,360402,361179,361507,361705,361713,361719,361734,362254,362418,362705,363086,363910,364289,364496,364679,364756,365161,365337,365377,365521,365919,366756,36690,367058,367149,367611,367699,36779,36830,368519,368656,368872,369107,36915,369920,370236,37083,371052,371312,371379,372171,372222,372363,372908,37315,373177,373208,373472,373492,373748,373889,374064,37408,374195,374371,374470,374753,375185,37557,375837,376012,376081,37615,376577,376906,377109,377163,377204,377652,377946,37803,378033,378247,378456,37855,378715,378831,378831,37902,379049,379144,379277,379336,379738,380076,380127,380855,380980,381122,382043,382045,382583,383026,383046,383073,383145,383280,383282,383687,383708,384043,38439,38439,385319,385672,386019,386344,386516,386522,386645,386691,387131,387192,387517,387651,38780,388064,388205,388296,389097,389316,389345,389610,389726,390340,390764,391049,391163,391327,391677,39226,392275,392667,392838,392968,393177,39321,39357,393582,393740,39377,393822,393980,394502,394579,394749,394810,395448,395648,396132,396277,396602,396973,397171,39719,397361,397773,398011,398612,398778,398785,399151,399431,399475,399680,400078,400566,401138,401379,401515,401624,401781,401864,401870,402143,402711,402735,402987,403225,403416,403485,403634,403803,403933,404186,404437,404475,404499,405593,405970,406363,406515,406639,406861,407365,407711,407740,408359,408866,409325,409493,409566,409629,409721,409823,410006,410111,410716,41073,410931,411290,411360,411419,411449,41189,411926,411969,412079,412522,412750,413441,41348,413700,413802,414016,414131,4142,414410,414437,414454,414483,414580,414744,414774,41488,415021,415221,415344,41601,416211,416595,416606,418092,418254,418635,419309,419362,41937,419654,420151,420497,420562,420736,420765,421093,422113,422132,42250,422607,422638,422909,423262,423533,423650,423694,42395,424068,424073,424075,424584,424727,424731,424898,425195,425324,425337,425348,425462,425784,426021,426021,426171,426195,426613,426639,426898,426939,427290,427495,42768,428050,428484,42885,428907,429120,429176,429184,42972,429752,429758,429780,429866,429891,430167,430480,430560,430679,430801,43089,430900,431218,431423,431618,43186,431877,432121,432514,433285,433917,434024,434062,434062,434062,434062,434188,434268,434296,434424,434599,434663,434718,435e3,435210,435602,435766,43588,435956,435964,436199,436232,436649,436892,436954,437054,43710,437165,437173,437313,4374,437622,437628,438174,438376,438552,438749,438797,438835,438839,439081,439113,439117,439122,439212,439281,439728,439748,439786,439984,440193,440369,440490,44056,440770,440776,440900,440948,440952,440976,441,44135,441670,442058,442104,442722,442938,443068,443634,443780,443820,443900,444375,444504,444655,444837,445272,445274,445495,44585,446068,446084,446649,447213,447238,447521,447614,448138,448139,448350,4486,448849,449024,449367,449540,44970,449802,450060,450143,450190,450595,450951,451069,451083,451249,451432,451753,45181,451881,452489,452614,45294,453189,453450,453643,454050,454293,454704,454735,454744,454752,454867,455122,455333,455478,455918,456201,456292,456401,456447,456568,456614,456641,4568,456825,456827,45779,457965,458156,458261,458416,458417,458446,45851,45851,458527,458606,45901,459766,459837,459979,460333,460383,46127,46128,461297,461386,461487,46164,461698,462893,463885,464183,464478,464795,465188,465243,465581,465594,466199,466213,467468,46754,467648,467907,46847,468966,469104,469496,46985,469885,469964,470796,471326,471620,471641,471957,472094,47255,472961,473025,473327,473377,473385,473550,473625,473907,474185,474637,474787,475112,475165,475252,475274,475281,475308,476407,476637,476813,476857,477055,477082,477232,477305,477479,477738,478106,478110,478271,478367,478420,478976,47913,479248,479376,479447,479720,47988,480021,480031,480242,481108,481343,481382,481394,481654,481753,482118,482133,482284,482442,482465,482747,482903,483388,483405,483596,483801,483885,483906,484157,484179,484302,484332,485516,485597,48569,486840,487115,487135,487208,487429,48750,488450,488862,488951,489019,489060,489076,489096,489220,489242,49025,490335,491305,491698,491754,492949,4930,493059,493063,493070,493332,493404,493701,493816,493999,494142,494508,494641,494750,495560,495749,495958,496017,496324,496775,496920,497023,497305,497432,497825,497913,497946,498603,498615,498624,498784,498785,498970,499129,499421,499685,499749,499937,499985,500330,500602,500655,500855,500855,501047,501056,501100,501115,501239,50133,502459,503157,503344,503740,503741,504423,504507,504580,504622,50468,504732,505060,505071,505180,50550,506126,506484,506620,507003,507096,507206,507307,507321,507335,507408,507475,507604,507837,508112,508874,509289,509486,509589,510172,510353,510888,510995,511357,511475,511619,511716,511848,512115,512364,512620,512664,512755,513143,513449,514254,514509,514715,514753,514800,514919,514981,515405,515672,515923,516020,516463,516776,517186,517299,517452,517846,517899,518176,518307,518332,518684,518706,518805,518833,518992,519001,519128,519136,519387,51953,519632,51966,519740,519939,520124,520143,520169,520201,520425,520803,520989,521112,521128,521276,52158,52158,521607,521640,521650,521981,52212,522317,522442,523162,523311,523315,523391,523414,523781,523891,524080,524182,524512,524670,525126,525721,52599,527011,52705,527122,528804,528889,529,529023,52918,5292,529244,529247,529807,529840,529944,529979,530175,530690,530932,530953,530980,531004,531325,531381,531728,531888,532115,532203,532690,532747,532912,533035,533132,533346,533363,5338,534115,5343,534863,535177,535411,536006,536084,536112,536188,536266,536327,536529,53659,536694,536827,537127,537238,537324,537610,537931,538093,538710,538874,539322,539645,539870,539906,540603,540866,541417,541421,541909,542159,542386,542429,5427,542780,543007,543061,54309,54318,543246,543366,543427,543960,544187,544323,545149,545423,545654,545791,546219,546243,546399,546690,546938,54724,547928,547950,548153,548764,549169,549991,550141,55035,550624,551044,552122,552342,55236,55258,55273,553038,553346,553607,553827,554218,554376,554435,554606,554659,555426,555850,556097,556109,556354,55638,556888,557213,557213,558072,558203,558726,55902,559133,559167,559384,559873,560304,560670,561012,561092,561864,562421,56256,562833,563451,563632,563712,564039,564130,564260,564570,564993,565478,565654,565795,565843,565861,56675,566805,567064,567107,567230,567637,5685,568615,568893,568936,569337,5696,569805,570029,570330,570601,570668,570914,571090,571745,572056,572213,572330,572356,57260,572640,573139,573630,573713,574193,574211,574356,574618,575214,575217,575353,575483,575510,57562,575738,575774,575790,57593,576384,576988,577205,577237,577265,577279,577300,577560,577576,577683,578032,578350,578423,578926,578944,579303,579847,580250,580253,580445,580585,580610,580832,581207,581716,581831,581843,582304,582495,583064,583078,584243,584358,584444,584603,584614,585134,585152,585178,585258,585453,585658,585670,58568,585844,585876,585928,586143,586297,586297,586297,586297,58631,586577,586614,586677,587,587295,588298,58836,588498,588575,588914,588917,589022,58925,589562,589569,589628,589642,590151,590343,590446,591049,591058,591197,591301,591425,592181,592492,592671,59293,592990,593130,593226,593258,593457,59391,594108,594450,594756,595468,595502,596271,596364,596396,596414,596472,596790,596829,597436,598667,599e3,599224,59939,599425,599645,599898,599948,599962,600275,600369,60046,600537,600540,600776,600831,601392,601504,60192,602183,602201,602532,602668,603343,603534,603555,603735,603742,604239,604331,605868,606122,606308,606582,606760,606807,606965,607335,607777,607967,608182,608416,608639,608639,608670,60872,608972,609654,609670,609706,609949,609989,610332,610378,610597,610696,610923,611012,611205,611727,611770,612050,6121,612650,61283,612994,613518,613987,614323,614596,614781,614821,614852,614855,614988,615087,615924,616212,616245,61625,616367,616713,617209,617318,617651,617936,618052,618277,618693,618830,618932,619140,619232,619454,619469,619470,619486,619602,619745,619926,619928,620329,62037,621069,621125,621294,621358,621902,621956,622077,622713,622784,622922,623654,624034,624250,624393,624404,624720,625526,625564,625862,626041,626410,626438,626481,627009,62718,627339,627682,6280,628367,628478,628530,629265,629273,629434,629456,629650,629735,629909,630496,630841,631193,631275,631442,63260,632690,633090,63342,633683,633690,633785,634120,634419,635299,635349,635577,635607,635800,635876,635944,636447,63681,63682,636925,636925,636925,636925,636934,637241,637312,637330,63739,637778,638063,638228,638593,638670,638846,638927,638932,638940,638953,639036,639049,639498,639550,639698,639700,639898,64006,640421,640469,640469,640469,640469,640655,640674,640758,641315,641316,641334,641540,641663,641762,64235,642350,642540,643246,644757,644854,645086,645444,646083,646178,646241,646289,646552,646826,64713,647168,647731,647775,648210,648273,64858,648954,649071,649564,649597,649614,649853,649943,650,65068,650836,651095,651571,651625,652119,652167,652318,652499,653098,653107,653107,653346,654046,654270,654352,654639,655170,655204,655335,655850,656054,656244,656252,656317,656615,656685,656860,657218,65725,657700,657754,65785,657927,658116,658152,658684,658718,658805,658924,65896,659173,659195,659579,659677,660063,660770,660955,661287,661377,661692,661796,661867,662067,662090,662509,662664,66305,663870,66406,664254,665028,665309,66542,665541,666011,666499,666499,666766,666771,66681,666869,667202,667436,667551,66760,667618,667629,667855,66822,668673,668751,668795,668852,6690,669165,669217,669378,669909,670342,670402,67093,671054,671075,671656,671839,672487,672632,672673,672911,673265,673913,674108,674156,674342,674382,674551,674621,674857,674924,675274,675616,675620,675656,67606,676333,676432,676525,67661,676864,677203,677245,677465,677890,678558,678606,678863,678999,67906,679140,679228,67925,679545,67957,680201,680245,680440,680927,68102,681186,681292,682428,682504,682566,682685,682705,682984,682988,683,68306,683061,683676,683683,683996,684289,684748,684835,684936,685641,685780,685986,686834,686898,686898,686898,686898,687165,687507,6877,68772,689786,689851,690109,690134,690223,690294,690554,691232,691241,691897,692002,692322,692499,693281,694,694027,694068,694212,695094,695598,696054,696128,696278,696570,696778,696914,697136,697141,697179,697363,69738,697397,697798,697880,698097,698208,698694,699201,699452,69953,700046,700124,700159,700485,700823,700850,700898,700900,70094,700985,701611,701814,702176,70229,702294,702768,702802,702980,703279,703303,703346,703613,703796,704169,70435,704588,704901,705098,705120,705195,705406,705612,706439,70686,706890,706902,706928,706990,707330,707380,707455,707797,708468,70935,709562,709723,709971,710100,710124,7103,710308,710335,710362,710795,711023,711024,711055,711139,711457,711496,711540,711615,711994,712177,712383,71239,712587,712777,712894,713117,713376,71353,713633,713633,713700,713856,71427,714725,714879,71507,715276,715303,715390,715918,716004,716122,716134,716214,716229,716297,716304,716650,717058,71707,717271,71801,718246,71826,718807,719008,719069,719842,72e3,720063,720159,720262,720578,720698,721127,721755,72187,722198,72297,722999,723061,724180,724194,724270,724593,724803,724935,725018,725103,725115,725131,725411,725528,725613,725629,725736,725873,726126,72617,726249,726607,726999,727008,727300,727975,728211,72828,728284,728497,728620,728857,728966,729021,729866,730021,730027,730155,730280,73050,730597,73095,730968,730994,731047,731136,731174,731409,731728,732006,732186,732462,732623,733072,73338,733679,733686,733814,734041,734221,734811,734845,734910,734915,734918,735191,735311,735434,735641,73579,735929,736054,736170,736172,736552,736711,736897,737117,737185,737186,737513,737739,738,738012,738215,738315,738663,738749,738903,739164,739195,739472,739610,739646,740242,740366,740674,740764,740953,740953,740953,740953,740966,741070,741212,741347,742303,742830,743207,743241,743771,743890,744093,744191,744239,744690,744850,745e3,745095,745110,745259,745332,745565,745671,745766,746461,746503,746769,746828,747598,747707,747748,747835,748049,748222,748717,748792,748811,748994,749035,749153,749201,749279,749728,749965,7500,750001,751430,751490,751557,751741,752271,752351,752870,7533,75359,753642,753808,753908,75433,754486,754615,754720,755047,755057,755059,75514,755520,755935,756028,756036,756098,756147,756497,756509,757011,757305,757330,757559,757867,758007,758363,758438,758918,759027,759595,759791,760191,760264,760994,761649,76184,761906,762115,762370,762418,762430,762526,762550,762661,762780,763052,763073,76318,763220,763548,763639,763797,763985,764130,764522,764540,764670,764960,765124,765844,765919,766204,766322,766372,766597,766707,767248,767807,767902,768110,768132,768344,768427,768466,768968,769091,769196,769604,769682,770100,770399,770418,770845,771042,771085,771201,771669,771800,772294,772364,772409,772638,772961,773318,773417,773864,774153,774206,774243,774281,774346,774510,775072,77526,775444,775481,775775,776077,776077,776077,776077,776141,776320,776500,776598,776844,77691,777006,777051,777544,777544,777732,778063,778093,778368,779370,779719,779865,780094,780305,78052,780555,780572,780578,780671,780829,780991,781342,781448,781687,782113,782189,782219,782343,782399,782895,783058,783096,783169,783431,783566,783714,784108,784289,784598,784671,784686,785015,785449,785591,785859,785935,786748,786881,78714,787544,787561,787631,78766,788289,788614,788787,788854,788932,789006,789151,790453,790803,790804,790882,791774,791791,791796,791842,792172,79222,792570,792757,793017,793174,793574,793735,793923,794163,794360,79443,794646,794857,794921,795223,795792,796056,796178,796213,796213,796267,796404,796404,796404,796404,796404,796404,796404,797056,797095,797095,797300,797438,797948,798328,798384,798625,798660,798806,798975,799580,800014,800609,800877,801121,801189,801214,801251,80127,80157,801689,802184,8024,802700,802700,802870,80339,803402,804154,805102,805326,805527,805626,80583,806084,806201,806625,806806,806852,806911,807605,807720,807895,808069,808075,808227,808681,809120,80931,809581,809654,809726,809745,810263,810437,810462,810649,810814,810839,810964,811077,811437,811491,81170,811940,812045,812199,812259,812312,812433,812553,812582,81283,81283,812994,813210,813221,813278,813321,813366,813444,813498,813586,813897,813908,814086,814378,814393,815201,81523,815268,815583,815614,815629,815765,815841,815953,81598,816245,816402,816402,816402,816402,816467,816519,816752,817008,817111,817653,817856,818658,818798,818881,818906,81892,819073,819157,81943,820311,821328,821781,821858,822376,82353,82358,823673,824017,824240,824759,824781,82488,825057,825066,825133,825361,825461,825617,825745,826042,826596,827013,827368,827370,827460,828079,828126,828305,828787,829751,83014,830377,83046,83062,830636,83075,831125,831329,83149,831553,831703,831878,832065,832430,832514,832670,832678,833628,833671,833878,834018,83432,834923,835391,83555,835623,835729,835738,836293,836401,836441,836658,836665,83679,837112,837287,8375,837844,837926,838048,838269,838517,839248,839272,839622,839812,840374,840446,840483,841103,841612,841646,841759,841929,841972,841993,842004,842634,84274,842856,843570,843579,844418,845382,845551,8456,846442,846475,846974,84701,847258,847486,847824,84789,847993,84849,84852,848587,848843,84886,848894,848896,849177,849443,84955,850089,850891,851365,851389,851711,851887,851987,852480,852991,85317,853249,853619,854029,854110,854353,854598,854759,854912,855451,855635,855637,855769,856034,856928,857172,857243,857665,858032,858067,858270,858323,858493,858572,858753,858863,858928,859075,859504,85965,859689,859830,859870,860007,860339,860603,86098,861029,86111,862862,863294,863373,863459,863566,863635,86428,864468,865070,865137,865179,865210,865797,865985,866428,866625,86664,866708,866766,866814,866900,866952,866991,867092,868415,86907,869348,86965,869782,870087,870445,870543,870721,871008,871251,871291,87191,87203,872200,872350,872582,873084,87314,8737,873702,874037,874088,87488,875258,875372,875408,875450,875532,877073,877223,877258,878066,878202,878469,878875,878946,879011,879271,879429,879850,879932,879958,879974,87998,880009,880416,88060,880687,880724,88087,880909,880933,881061,881245,881270,881882,882016,882298,882409,88247,882584,88320,883540,883682,883775,883931,885175,885276,885662,885711,885830,886018,886067,886125,886363,886376,886418,886418,886705,887267,887281,887590,887717,887773,888120,88834,888780,888867,889767,889814,890051,890154,890194,890393,891402,891545,892014,892267,892776,893081,893638,894123,894193,894220,894521,894521,894521,894521,894521,894521,894521,895055,895109,895175,89540,895462,896090,896123,896289,896290,896336,896686,897097,897226,89724,897277,897360,898837,899184,899210,899414,899497,899869,90004,900311,900463,901497,901506,901773,90260,902635,902820,90317,9035,9038,904120,904247,904249,904346,904438,904445,904497,904573,904678,90507,905226,905369,905564,905687,905883,906057,906153,906283,906309,906588,906980,907109,907168,907545,907606,907781,907824,907830,908226,908328,908355,908881,909122,909344,909381,909478,909521,909581,909764,909904,91050,910606,910689,910894,910919,910935,911134,911361,911455,911485,911552,911873,911878,912047,912200,912231,912445,91348,913620,913702,913887,913897,914022,914125,914475,914515,914703,914826,914827,914878,915021,915699,915742,915785,915925,916174,916272,916398,916595,916824,916926,917167,917214,918190,918227,918449,918540,918691,918935,919074,91909,919388,920038,920117,920122,920342,920427,920499,920540,920623,920695,921239,921754,921787,921828,921836,922047,922455,922458,922749,92326,923286,923381,923484,923682,923956,924056,924066,924327,924736,92491,924968,92513,92531,926266,92627,926412,926745,926791,926912,927038,927166,927534,927737,92786,928062,92807,928113,928710,929354,929366,929371,92984,92988,930171,930291,930574,930626,931025,931043,931507,932209,932586,932791,933887,934381,934460,934644,934812,934837,934899,935082,935276,93534,935603,935614,935892,936007,936112,936276,936618,936854,936912,937380,937403,937510,93769,937746,938191,938603,938685,938732,938742,939036,939195,939284,939777,93990,94061,94094,940962,941311,941485,941503,941543,941581,941731,941920,942236,942895,943202,943398,943804,943819,943908,943912,943971,944220,944661,944674,944833,944976,945519,946235,946251,94630,946502,946554,946802,946899,94722,947266,947276,947290,947374,947446,947446,948219,948362,948569,948835,949320,949928,950230,950544,950659,950887,950913,9510,9510,9510,9510,9510,9510,9510,951238,951407,95180,951903,953118,953215,95350,953626,954280,954349,954376,954574,954726,954870,955546,955706,955944,956166,956345,956452,956517,956761,956853,956861,957355,957449,957604,957854,957948,958345,958709,958871,958927,959519,959588,959614,960085,960117,960178,960315,960540,961276,962331,962728,962857,962986,963266,963407,963493,964451,964779,965130,96537,965519,965639,965657,966383,966631,967142,96735,967369,967746,968055,968255,968565,968829,9690,969124,969210,969402,969617,969716,969866,969898,970276,970945,970962,971158,971301,971919,972160,972165,972238,972380,972443,972866,972896,972962,973258,973629,973802,974209,974280,97441,974415,974535,974672,975269,975434,975762,975908,976894,976907,97695,97719,977222,97740,97813,978512,978512,978595,978969,979493,979536,97966,980062,980124,980234,980276,980385,9805,980785,980865,981119,981344,981834,981909,982287,982587,982622,982629,982773,983375,983556,983736,983916,984409,984423,984580,984688,985132,985728,986848,986905,986998,98703,987462,987701,988110,988600,988847,989052,989288,98934,989433,989530,989885,990076,990087,990105,99027,99076,990790,991074,991134,991697,992377,992396,992565,992582,993051,994682,994864,99490,994970,995451,995477,9957,995850,996294,99643,996525,996526,996697,996788,997100,997403,997468,997595,997783,998125,998797,998879,999156,999394,99981,999920]],["@babel/runtime",[124255,127119,138312,266103,34276,369953,387539,406527,440484,449859,451055,45735,457812,463565,474658,498421,500069,502349,560458,562954,612823,6490,688947,709371,71586,757709,779786,783093,800928,810356,824076,841024,854717,871820,877159,896478,935191,979245,98105,999227]],["@blockaid/ppom_release",[635675,635675,89962]],["@emotion/react",[230908,954541]],["@emotion/react>@emotion/cache",[145319]],["@emotion/react>@emotion/cache>@emotion/memoize",[880657]],["@emotion/react>@emotion/cache>@emotion/sheet",[849159]],["@emotion/react>@emotion/cache>stylis",[176154,272480,292907,709823,857267,985114]],["@emotion/react>@emotion/serialize",[612093]],["@emotion/react>@emotion/serialize>@emotion/hash",[866385]],["@emotion/react>@emotion/serialize>@emotion/unitless",[591217]],["@emotion/react>@emotion/use-insertion-effect-with-fallbacks",[128999]],["@emotion/react>@emotion/utils",[839145]],["@emotion/styled",[266708,551187]],["@emotion/styled>@emotion/is-prop-valid",[262835]],["@ensdomains/content-hash",[509411,575298,761166]],["@ensdomains/content-hash>cids",[332906,342757]],["@ensdomains/content-hash>cids>multibase",[234746,436281,835652,856745,930699]],["@ensdomains/content-hash>cids>multibase>@multiformats/base-x",[196780]],["@ensdomains/content-hash>cids>multihashes",[341718,417971]],["@ensdomains/content-hash>cids>multihashes>uint8arrays",[395294,509085,959154]],["@ensdomains/content-hash>cids>multihashes>varint",[286240,662984,846980,886826]],["@ensdomains/content-hash>cids>uint8arrays",[186967,589996,868149]],["@ensdomains/content-hash>js-base64",[192943]],["@ensdomains/content-hash>multicodec",[291901,624245,675970,982917]],["@ensdomains/content-hash>multicodec>uint8arrays",[115686,218737,263454,297907,406611,985066]],["@ensdomains/content-hash>multihashes",[588856,632145]],["@ensdomains/content-hash>multihashes>buffer",[972417]],["@ensdomains/content-hash>multihashes>multibase",[199431,217597,276626,555403,966920]],["@ensdomains/content-hash>multihashes>multibase>base-x",[874484]],["@ensdomains/content-hash>multihashes>varint",[264713,371057,752263,987067]],["@ensdomains/content-hash>multihashes>web-encoding",[580731]],["@ethereumjs/tx",[100452,126896,127314,127469,155e3,215366,242676,279528,282703,325733,407539,443901,571637,815357,830723,986319,988296]],["@ethereumjs/tx>@ethereumjs/common",[138049,207769,428097,440598,617778,77547,921628,932733]],["@ethereumjs/tx>@ethereumjs/rlp",[626536,971047]],["@ethereumjs/tx>@ethereumjs/util",[160942,18546,197133,199456,211645,262336,29433,296648,310188,336422,341872,349456,384377,388655,416527,437881,448578,478459,47909,543178,580203,586720,596187,632496,657076,671762,741736,783798,83895,855224,874349,881019,888838,890415,892667,898069,899217,906238,932477,99683]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography",[110377,219828,301302,401868,452197,535309,567417,732]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves",[107004,108099,224981,266786,278956,495448,617072,622643,671003,678298,710609,762871,796262]],["@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[10780,224683,285861,321705,359750,445115,447856,476244,481449,533968,543657,610068,813303,915253,929920,963426]],["@ethereumjs/tx>ethereum-cryptography",[271465,81446]],["@ethereumjs/tx>ethereum-cryptography>@noble/hashes",[130407,224661,362180,532953]],["@ethersproject/abi",[207619,2720,290117,380106,393718,402741,403119,408505,450337,485050,552281,552364,611782,651911,715904,871050]],["@ethersproject/bignumber",[323489,367302,631229,726731]],["@ethersproject/bytes",[524443,993558]],["@ethersproject/contracts",[264926,295523]],["@ethersproject/hdnode",[42014,563965]],["@ethersproject/providers",[144240,203284,235086,272585,286156,375693,380392,396515,416895,504409,675682,683411,702541,728024,732500,806355,819790,930847,935424,981328]],["@ethersproject/providers>bech32",[579841]],["@ethersproject/transactions",[482925,894e3]],["@fortawesome/fontawesome-free",[1527,1527,1527,1527,411525,411525,411525,411525,70035,70035,70035,70035]],["@google/genai>protobufjs",[119463,151942,179394,19298,218825,233393,265120,275867,277049,28e3,281537,299467,31787,350553,35271,411124,481277,488703,540186,54984,550602,649399,677694,762632,792509,798572,817362,829594,864122,929078,960613,961051]],["@google/genai>protobufjs>@protobufjs/aspromise",[35757]],["@google/genai>protobufjs>@protobufjs/base64",[380567]],["@google/genai>protobufjs>@protobufjs/codegen",[80225]],["@google/genai>protobufjs>@protobufjs/eventemitter",[846230]],["@google/genai>protobufjs>@protobufjs/fetch",[890554,895260]],["@google/genai>protobufjs>@protobufjs/float",[179442]],["@google/genai>protobufjs>@protobufjs/path",[437271]],["@google/genai>protobufjs>@protobufjs/pool",[476366]],["@google/genai>protobufjs>@protobufjs/utf8",[843255]],["@google/genai>protobufjs>long",[35849]],["@hello-pangea/dnd",[300039]],["@hello-pangea/dnd>css-box-model",[200635]],["@hello-pangea/dnd>css-box-model>tiny-invariant",[387325]],["@hello-pangea/dnd>memoize-one",[62147]],["@hello-pangea/dnd>raf-schd",[930197]],["@hello-pangea/dnd>use-memo-one",[214897]],["@keystonehq/bc-ur-registry-eth",[2593,544829]],["@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[124e3,191052,231626,249615,265655,2977,459024,467722,527355,534855,564315,573995,57636,646539,67798,682001,747747,773884,794735,804119,867283,883483,927029,939286,976399,987339]],["@lavamoat/lavadome-react",[494708]],["@lavamoat/webpack>json-stable-stringify>isarray",[664074]],["@lavamoat/webpack>json-stable-stringify>object-keys",[266165,69051,910229]],["@ledgerhq/errors",[30649,315100]],["@ledgerhq/hw-app-eth>@ledgerhq/logs",[878528]],["@ledgerhq/hw-transport",[912015]],["@metamask/7715-permission-types",[337378]],["@metamask/abi-utils",[104527,252332,29607,311312,367419,479238,502414,548249,553588,601499,627674,743732,756330,785400,833750,838797,961858,968912,974538,986563]],["@metamask/account-api",[360726,462357,531819,674288,689812,716904,809904]],["@metamask/account-tree-controller",[212369,270718,294987,321902,335349,370246,384983,402561,41997,422719,424752,436829,460699,517113,550321,564758,564855,599500,662092,687542,788527,81909,827362,93043,992452]],["@metamask/accounts-controller",[53178,569831,836207]],["@metamask/accounts-controller>ethereum-cryptography",[586390,671508]],["@metamask/accounts-controller>ethereum-cryptography>@noble/hashes",[407105,655163,700931,872574]],["@metamask/address-book-controller",[108072]],["@metamask/analytics-controller",[170639,383081,440901,996874]],["@metamask/announcement-controller",[820437]],["@metamask/approval-controller",[394813,65997]],["@metamask/assets-controller",[143147,147759,159200,169086,241943,253139,26522,266468,267269,286306,347263,370534,37479,391638,405369,44327,496414,500016,528304,532612,535325,603342,631549,659933,685951,740487,745908,747837,754049,78089,810628,811752,820927,860645,87715,889133,91937,979117,983918]],["@metamask/assets-controller>bignumber.js",[694204]],["@metamask/assets-controller>p-limit",[336741]],["@metamask/assets-controller>p-limit>yocto-queue",[632773]],["@metamask/assets-controllers",[100852,110276,158252,167851,171001,172686,173840,177676,227866,228231,237906,238761,244955,252816,27351,288409,343126,361938,361938,374902,390625,405850,417222,439753,469817,482139,496218,508644,577053,626171,629210,642238,650464,650726,700704,702071,713383,717283,72342,80006,80576,855536,886040,99926]],["@metamask/assets-controllers>@metamask/abi-utils",[104009,226133,266222,308585,338588,392577,403883,482771,489936,514103,520679,609803,646930,72774,733541,788957,793925,937732,957092,990511]],["@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils",[109103,109103,109103,109103,109103,109103,109103,180082,180082,180082,180082,180082,180082,180082,222167,222167,222167,222167,222167,222167,222167,264180,264180,264180,264180,264180,264180,264180,293255,293255,293255,293255,293255,293255,293255,388024,388024,388024,388024,388024,388024,388024,426254,426254,426254,426254,426254,426254,426254,442491,442491,442491,442491,442491,442491,442491,511868,511868,511868,511868,511868,511868,511868,576264,576264,576264,576264,576264,576264,576264,610036,610036,610036,610036,610036,610036,610036,748292,748292,748292,748292,748292,748292,748292,772184,772184,772184,772184,772184,772184,772184,814636,814636,814636,814636,814636,814636,814636,820218,820218,820218,820218,820218,820218,820218,850268,850268,850268,850268,850268,850268,850268,851018,851018,851018,851018,851018,851018,851018,867089,867089,867089,867089,867089,867089,867089,911136,911136,911136,911136,911136,911136,911136,929290,929290,929290,929290,929290,929290,929290,958918,958918,958918,958918,958918,958918,958918]],["@metamask/assets-controllers>@tanstack/query-core",[159849,326642,365821,404408,440941,521982,54537,578764,674183,689635,7871,836668,850856,885625,965953]],["@metamask/assets-controllers>multiformats",[148156,255843,293394,323487,333102,371330,374668,385376,427475,441965,448335,526898,588626,62677,64844,649495,67680,748102,814198,952101,963547,964097,97286,992647]],["@metamask/assets-controllers>single-call-balance-checker-abi",[800904]],["@metamask/authenticated-user-storage",[280078,366552,385890]],["@metamask/base-controller",[100209,100209,293889,35747,35747,418920,552558,552558,777386,777386]],["@metamask/bitcoin-wallet-snap",[709397,709397]],["@metamask/bitcoin-wallet-standard",[243229,337874,467743,500285,63130,747555,776179,789365,880287,884948,921950,985447]],["@metamask/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard-core>@exodus/bitcoin-wallet-standard-chains",[467062]],["@metamask/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard>@exodus/bitcoin-wallet-standard-core>@exodus/bitcoin-wallet-standard-features",[157519]],["@metamask/bitcoin-wallet-standard>@wallet-standard/wallet",[491867,856492]],["@metamask/bridge-controller",[108398,16340,175070,182317,182317,182332,182348,213142,229718,269405,32792,334204,338084,360862,383442,404283,436243,446545,458622,475583,527704,550293,563197,570610,572586,572839,598062,599076,602910,619489,66216,664697,688326,709096,723591,732082,748512,750237,789302,812080,878370,891024,908029,925343,964088,989387]],["@metamask/bridge-controller>bignumber.js",[990088]],["@metamask/bridge-status-controller",[106065,119059,121155,131997,181294,274039,283450,303911,336779,39609,492986,515578,521066,533891,556520,607105,635769,637401,676522,679218,689270,707009,745440,816670,856770,864924,865350,89579,90083,910758,917434,917662,922645,957050,962123,996435,996688]],["@metamask/bridge-status-controller>bignumber.js",[752819]],["@metamask/browser-passworder",[5875]],["@metamask/chain-agnostic-permission",[145096,267603,296639,381375,431324,562708,712765,721077,739999,77523,825365,849231,85904,942824]],["@metamask/chain-agnostic-permission>@metamask/api-specs",[751601,934683,934683,934683,934683,934683,934683,934683,99790,99790,99790,99790,99790,99790,99790]],["@metamask/claims-controller",[131779,178566,39193,41181,515813,518553]],["@metamask/client-controller",[214101,599726]],["@metamask/client-utils",[126062,252047,262519,466639,535284,550515,570113,917237,937508]],["@metamask/compliance-controller",[332771,361978,6362,713765]],["@metamask/config-registry-controller",[116382,377130,792770]],["@metamask/connectivity-controller",[440931,685901,732374]],["@metamask/contract-metadata",[243179,243179,243179,243179,243179,243179,243179,988313]],["@metamask/controller-utils",[17605,30018,30018,496705,51664,644174,657638,657638,672307]],["@metamask/controller-utils>@metamask/eth-query",[605895]],["@metamask/controller-utils>@metamask/ethjs-unit",[886634]],["@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn",[360646]],["@metamask/controller-utils>@spruceid/siwe-parser",[129409,129409,751528,751528,890577,890577]],["@metamask/controller-utils>@spruceid/siwe-parser>apg-js",[118675,118675,1305,1305,133543,133543,135322,135322,151097,151097,190686,190686,204777,204777,216202,216202,245981,245981,283691,283691,383737,383737,397721,397721,431304,431304,442480,442480,46509,46509,469328,469328,488665,488665,548907,548907,622282,622282,670078,670078,810722,810722,820724,820724,872735,872735,965892,965892]],["@metamask/controller-utils>@spruceid/siwe-parser>valid-url",[378477]],["@metamask/core-backend",[209656,213997,234697,396880,440116,64637,646372,818082,852281,926115]],["@metamask/core-backend>@tanstack/query-core",[183364,191522,194019,229461,232318,277754,32014,400632,480615,483152,490130,576455,759119,790381,835468]],["@metamask/delegation-controller",[413600,561716,666903]],["@metamask/delegation-core",[846404]],["@metamask/delegation-deployments",[721785]],["@metamask/design-system-react",[100791,101545,104095,108379,111700,112038,112120,116791,118991,124856,126134,126528,139911,146950,147602,148696,153108,153472,154468,157783,157994,158250,158317,160370,160687,166537,168743,170533,173556,174795,17635,179218,180219,180781,181657,181902,183745,185194,186304,192794,195120,197951,201718,205278,212504,21263,21292,216346,216793,21875,219384,221371,222496,223901,227485,237405,237457,241686,243877,244569,244701,248477,250778,254465,255145,255196,261181,266965,268870,27150,274207,2762,276277,281051,281244,282311,283931,287002,287721,289055,290070,290605,296263,302175,303362,305955,306392,309111,310583,311698,314356,314756,323966,327468,330793,331498,33539,3372,339262,340390,343043,344809,346414,34997,353187,353438,355670,35721,364588,367792,376193,380917,381150,382707,385780,386745,38914,392800,395528,398412,40106,403015,405165,407554,407699,409644,410701,411275,412524,424341,424502,428504,431037,432914,434186,435684,437840,439295,439550,443273,445973,446947,449341,449565,450435,451902,452304,452668,454831,455836,457302,458646,459182,460390,465560,466770,47233,479746,480116,486359,48845,488581,492670,493611,49421,494800,498677,502676,50627,507803,508323,508533,510243,514816,516438,518206,518491,519559,520430,524405,526447,527442,529775,531462,533632,534408,53669,537119,53784,538324,539783,540463,541292,544020,544944,546947,559099,563376,564250,566707,568085,576040,578429,579952,581745,582814,585701,588106,588156,592479,593902,594664,596940,600838,60209,602435,608887,60938,609415,616203,618485,621719,622832,623197,627871,630125,632419,633400,634850,635860,639263,640713,641816,644493,65093,652230,655301,657580,65874,661447,671492,672992,67493,675319,676513,679085,679968,68323,68593,687513,687949,68940,689401,690034,694394,705776,709071,712964,719082,720483,72180,723576,729079,738935,742351,746005,746150,746812,748507,75451,756741,757654,758832,759310,762644,772737,773742,775075,779749,783088,783173,785016,785427,78990,790558,793216,797460,799163,804968,805600,806198,80649,81120,811571,814520,823445,827933,828116,829471,831404,832190,836726,838175,838490,842111,844326,845022,845417,848365,848558,849803,852336,853169,855034,865740,86660,866927,868118,870677,87288,874176,876365,877291,879575,879638,884056,890954,895370,903273,904306,907319,912629,913802,913807,922726,926968,927951,931231,93278,934509,935664,937069,938132,942959,949098,955662,958152,962428,963245,964414,966455,966872,970443,972938,976849,982635,983857,985268,990900,992164,995163,998246]],["@metamask/design-system-react>@radix-ui/react-slot",[700694]],["@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs",[128659]],["@metamask/design-system-react>blo",[150609,749193,904710,999084]],["@metamask/design-system-react>tailwind-merge",[704044]],["@metamask/design-system-shared",[152886,206576,220719,305142,365678,506410,520858,556734,568894,584942,683772,706794,73804,75734,789292,79038,807374,831198,833304,848574,918070,918318,994650]],["@metamask/design-tokens",[158967,167203,225344,284253,288228,347861,377043,394478,4796,482988,500944,522686,610707,619893,633612,681561,690691,711582,783158,784672,82737,868103,870912,875644,914025,91504,92071,972017]],["@metamask/eip-5792-middleware",[128263,203268,357659,399703,456200,736462,752916,800324,965456]],["@metamask/eip-5792-middleware>@metamask/transaction-controller",[408401]],["@metamask/eip-7702-internal-rpc-middleware",[346583,353243,528171,755975,930635]],["@metamask/ens-resolver-snap",[830316,830316]],["@metamask/eth-hd-keyring",[739583,780268]],["@metamask/eth-hd-keyring>ethereum-cryptography",[731631,780922]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves",[187339,275501,354273,862530,86744,987385]],["@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes",[147274,248241,459303,474660,536710,546308,592843,612378,628989,701194]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32",[66889]],["@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base",[907904]],["@metamask/eth-json-rpc-filters",[278719,330124,413157,514940,64118,680785,784897,793971,801961]],["@metamask/eth-json-rpc-middleware",[175448,38375,389642,422581,563755,686162,804404,81650,974732,994521]],["@metamask/eth-json-rpc-middleware>safe-stable-stringify",[330764,612980]],["@metamask/eth-json-rpc-provider",[55711,884465]],["@metamask/eth-ledger-bridge-keyring",[324398,517652,64822,764413,77193]],["@metamask/eth-money-keyring",[206329,888272]],["@metamask/eth-money-keyring>@metamask/eth-hd-keyring",[339860]],["@metamask/eth-money-keyring>@metamask/keyring-sdk",[131658,418679,63753,805700]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography",[409607,434810,540591]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/curves",[10306,205400,286253,645451,728121,829409]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes",[289626,321291,353990,369639,465009,506429,66570,691876,849348,875402]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32",[238985]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32>@scure/base",[332928]],["@metamask/eth-money-keyring>@metamask/keyring-sdk>uuid",[303905,830552,86665,893433]],["@metamask/eth-qr-keyring",[35653,360209,807147,995456]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth",[11448,545448]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util",[106166,184430,242063,287160,317236,365684,413456,416838,451854,463212,499760,650359,910697,924906,977461]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp",[506783]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography",[613096,748037,837272]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves",[158115,23489,291818,397454,774223,889447,933636]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[245326,274209,402728,408688,562204,772775,778756,860498]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry",[115358,122720,133557,161856,177355,182666,261574,456406,461683,470297,470600,550736,648167,67503,675722,700095,782172,791890,816816,879846,887673,934292,949592,961101,99602,996720]],["@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid",[241376,242547,260475,301443,506592,544660,68131,695274,695305,713983,724869,743621,751815,76104,946844]],["@metamask/eth-qr-keyring>hdkey",[821827]],["@metamask/eth-qr-keyring>uuid",[329214,579133,611514,646280,852884,995985]],["@metamask/eth-sig-util",[162924,371046,47994,57209,876521,937867]],["@metamask/eth-sig-util>@ethereumjs/rlp",[799901]],["@metamask/eth-sig-util>@ethereumjs/util",[193298,209472,212876,227526,374639,415846,495838,627626,670186,729945,7824,789337,789352,853979,952208]],["@metamask/eth-sig-util>@scure/base",[96959]],["@metamask/eth-sig-util>ethereum-cryptography",[369916,457095,519021]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/curves",[173752,394542,416989,498307,591346,629229,790586]],["@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes",[122679,173646,337099,570641,59242,755859,760501,845139]],["@metamask/eth-snap-keyring",[177652,349088,388443,390321,425508,607629,610606,703288,707671,712790,871947,930342,991965]],["@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client",[372483,64018]],["@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk",[946281]],["@metamask/eth-snap-keyring>uuid",[424171,769267,973046,990075]],["@metamask/eth-token-tracker",[255353,521476,767110]],["@metamask/eth-token-tracker>@metamask/eth-block-tracker",[46097,607723,614362,624895,696478]],["@metamask/eth-token-tracker>deep-equal",[747174]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator",[89048]],["@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map",[107274]],["@metamask/eth-token-tracker>deep-equal>is-date-object",[952632]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive",[114003]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint",[1771]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object",[841928]],["@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object",[523543]],["@metamask/eth-token-tracker>deep-equal>which-collection",[539681]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap",[46066]],["@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset",[954136]],["@metamask/eth-trezor-keyring",[159997,185396,251723,400458,421774,425995,484999]],["@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum",[357361]],["@metamask/etherscan-link",[314846,450656,633713,64025,759868,947264,971443]],["@metamask/gas-fee-controller",[431866,65293,899051]],["@metamask/gator-permissions-controller",[11195,131172,150360,206790,313748,346138,364202,392566,400486,431157,431529,514156,523105,537206,558096,580639,585733,650818,667144,717682,847931,904390,918794]],["@metamask/gator-permissions-controller>@metamask/abi-utils",[16970,202648,207569,223647,330407,339537,407854,491968,559645,598578,600451,607603,64269,647513,652275,702395,722802,797092,842691,927929]],["@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils",[119802,119802,136777,136777,147660,147660,180886,180886,279513,279513,329974,329974,375721,375721,430416,430416,49982,49982,504225,504225,646277,646277,719844,719844,723518,723518,778635,778635,789370,789370,794274,794274,869658,869658,881058,881058,916184,916184,926428,926428,937724,937724]],["@metamask/gator-permissions-controller>@metamask/transaction-controller",[283051]],["@metamask/gator-permissions-snap",[454989,454989]],["@metamask/geolocation-controller",[443136,899513,909614]],["@metamask/hw-wallet-sdk",[393293,649775,784717,853955]],["@metamask/institutional-wallet-snap",[654294,654294]],["@metamask/jazzicon",[256985,762823,983303]],["@metamask/jazzicon>color",[805512]],["@metamask/jazzicon>color>clone",[901347]],["@metamask/jazzicon>color>color-convert",[39752,812025,982168]],["@metamask/jazzicon>color>color-convert>color-name",[521513]],["@metamask/jazzicon>color>color-string",[362611]],["@metamask/jazzicon>mersenne-twister",[760322]],["@metamask/json-rpc-engine",[129385,140667,157637,19352,19352,19352,19352,19352,19352,19352,199481,314307,350026,354466,354466,354466,354466,354466,354466,354466,368371,372429,395037,422356,438025,482742,482742,482742,482742,482742,482742,482742,556620,556620,556620,556620,556620,556620,556620,574527,574527,574527,574527,574527,574527,574527,647553,647553,647553,647553,647553,647553,647553,69388,742547,742547,742547,742547,742547,742547,742547,787307,797561,813216,813216,813216,813216,813216,813216,813216,858594,858594,858594,858594,858594,858594,858594,894454,895171,896558,897312,897312,897312,897312,897312,897312,897312,905416,905416,905416,905416,905416,905416,905416,96214,96214,96214,96214,96214,96214,96214,97002,97002,97002,97002,97002,97002,97002,993793]],["@metamask/json-rpc-engine>klona",[699479,810045]],["@metamask/json-rpc-middleware-stream",[273342,407394,643984]],["@metamask/json-rpc-middleware-stream>readable-stream",[104760,123210,156997,235139,278031,304983,306788,329687,424983,558254,63063,682145,700528,710347,724843,752314,813254,820213,825326,839868,847866,859321,867208,906781,915142,925777,942412,942755,960094,979496]],["@metamask/keyring-api",[105672,139918,161271,161934,185632,201831,242317,250727,286141,312699,341483,348554,360041,373585,39610,418569,467236,477322,536805,592653,595704,612293,670158,674397,711298,751817,853429,861320,867525,867525,871089,886319,892191,896322,906646,957740,960661,970519,979855]],["@metamask/keyring-controller",[280501,511133,869959]],["@metamask/keyring-controller>@metamask/eth-simple-keyring",[232031,688668]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography",[11305,460532]],["@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes",[223880,310270,741197,828940]],["@metamask/keyring-controller>ethereumjs-wallet",[512249,562210,610527]],["@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography",[143313,267378,283155,361274,51747,564783,585825,61648,723983,748852,749005]],["@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util",[206354,255583,303999,388918,531412,681551,681987,701971,75560,851954,892253,945458]],["@metamask/keyring-controller>ethereumjs-wallet>utf8",[670655]],["@metamask/keyring-controller>ulid",[31299,599794]],["@metamask/keyring-internal-api",[362408]],["@metamask/keyring-sdk",[142233,210385,314527,693228,698214,754058,932754,984228]],["@metamask/keyring-sdk>ethereum-cryptography",[103525,824745]],["@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes",[245633,250134,694868,819290]],["@metamask/keyring-sdk>uuid",[280255,345719,682642,905303]],["@metamask/keyring-snap-client",[656228,809693]],["@metamask/keyring-snap-client>uuid",[210603,292899,580723,724414]],["@metamask/keyring-utils",[156635,364524,510930,551277,61683]],["@metamask/logging-controller",[197372,841177]],["@metamask/logo",[663411,739929,844113]],["@metamask/logo>gl-mat4",[58879,717641,733652,740435,974021,979173]],["@metamask/logo>gl-vec3",[239384]],["@metamask/message-manager",[229690,306128,307179,672657]],["@metamask/message-manager>jsonschema",[143064,144276,227698,47847,52805]],["@metamask/message-signing-snap",[423752,423752]],["@metamask/messenger",[324960,446337,446337,446337,446337,446337,446337,446337,547368,547368,547368,547368,547368,547368,547368]],["@metamask/metamask-eth-abis",[285981,409227,571397,632915,785012]],["@metamask/mobile-wallet-protocol-core",[174397]],["@metamask/mobile-wallet-protocol-core>centrifuge",[219212]],["@metamask/mobile-wallet-protocol-core>eventemitter3",[674596]],["@metamask/mobile-wallet-protocol-core>uuid",[103256,174472,198095,216339,286030,337212,350614,396216,484813,504997,554847,633642,666415,704071,745266,758385,810631,813636,834264,894289,992226]],["@metamask/mobile-wallet-protocol-dapp-client",[968261]],["@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils",[121993,357250]],["@metamask/mobile-wallet-protocol-dapp-client>uuid",[120511,378778,403687,582799]],["@metamask/money-account-api-data-service",[433150,517405,547719,627632,738526]],["@metamask/money-account-balance-service",[134949,212100,257627,754408,816460,911280,961161]],["@metamask/money-account-controller",[255684,424209,828080]],["@metamask/money-account-controller>@metamask/eth-money-keyring",[60065]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring",[563505]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography",[3190,476665]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves",[156076,229680,335131,555418,737340,771857]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes",[106832,170743,185356,272297,402153,68688,719851,792532,814245,943657]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32",[263470]],["@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base",[610401]],["@metamask/money-account-utils",[447551,939319]],["@metamask/multichain-account-service",[111916,150102,180209,185216,236917,273316,380849,425842,431389,468013,560102,608891,705268,761340,831261,891847,913889,960168]],["@metamask/multichain-api-client",[220677,366196,412454,4712,56710,675768,676687,991999]],["@metamask/multichain-api-middleware",[116462,398575,446882,573993,677044,774329,951474,960364,993285]],["@metamask/multichain-api-middleware>@metamask/api-specs",[340968,340968,72215,89361,89361]],["@metamask/multichain-network-controller",[131831,15549,270913,328063,590026,951493]],["@metamask/multichain-transactions-controller",[809882]],["@metamask/name-controller",[122859,138904,140701,206320,265209,394168,479088,530451]],["@metamask/name-controller>@metamask/controller-utils",[812830]],["@metamask/network-connection-banner-controller",[272913,436136,721899]],["@metamask/network-controller",[339710,418084,469233,552682,636061,762180,841191,871933,877882,964084]],["@metamask/network-controller>@metamask/eth-block-tracker",[336767,601556]],["@metamask/network-controller>@metamask/eth-json-rpc-infura",[196288,391341,597837,717129,975366]],["@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider",[139596,139596,139596,139596,139596,139596,139596,163433,163433,163433,163433,163433,163433,163433,357480,357480,357480,357480,357480,357480,357480,666594,666594,666594,666594,666594,666594,666594]],["@metamask/network-controller>@metamask/eth-json-rpc-middleware",[305066,328044,340602,350706,37718,392337,584057,732128,785761,826090,896366]],["@metamask/network-controller>@metamask/swappable-obj-proxy",[101126,480251,832336,871023]],["@metamask/network-enablement-controller",[238785,27340,540012,65352,912351]],["@metamask/notification-services-controller",[152282,19676,221890,291105,303728,308033,344533,390923,432592,47250,523176,543884,565553,599565,619024,621095,713351,749512,767678,795086,914806,916866,923231,989029]],["@metamask/notification-services-controller>@contentful/rich-text-html-renderer",[777316]],["@metamask/notification-services-controller>bignumber.js",[807275]],["@metamask/notification-services-controller>firebase",[406131,624267,958250]],["@metamask/notification-services-controller>firebase>@firebase/app",[116089]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component",[517177]],["@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger",[829036]],["@metamask/notification-services-controller>firebase>@firebase/app>idb",[171560,757110]],["@metamask/notification-services-controller>firebase>@firebase/installations",[716395]],["@metamask/notification-services-controller>firebase>@firebase/messaging",[102932,78712]],["@metamask/notification-services-controller>firebase>@firebase/util",[771927]],["@metamask/object-multiplex",[136940,373445,541726,541726,657887,657887,967744,967744,993027]],["@metamask/object-multiplex>once",[688655,688655,842744]],["@metamask/object-multiplex>once>wrappy",[368616,885067,885067]],["@metamask/object-multiplex>readable-stream",[103508,103508,108694,108694,15394,15394,181531,181531,183588,258565,258565,284911,292787,304208,304208,319353,446267,446267,472387,478633,478633,540031,540031,554907,593545,593545,659909,66066,666688,666688,691259,729063,737465,75284,75284,835990,838926,838926,839488,846686,884578,934344,934344,979662,979662]],["@metamask/obs-store",[196157,293729,29584,452512,792410,960742]],["@metamask/obs-store>readable-stream",[13938,14474,189861,263502,264222,3024,316879,693971,725397,803178,843604,88819,893812,957452,981313]],["@metamask/passkey-controller",[178690,17925,365833,632839,677490,717386,749002,776700,778393,804622,865122,868088,914998,933441,980167,981155]],["@metamask/passkey-controller>@levischuck/tiny-cbor",[301947,600752,710278]],["@metamask/permission-controller",[241361,241361,253990,29947,29947,408613,431297,441099,462105,766840,775377,831851]],["@metamask/permission-log-controller",[157908,648391]],["@metamask/permissions-kernel-snap",[18171,18171]],["@metamask/perps-controller",[121592,162729,163243,166861,16793,173800,186957,192206,222750,235108,248394,282514,292666,334323,348124,373663,388843,416431,445301,478880,479133,486232,519226,522187,54381,562832,585609,607653,616395,625845,757506,760057,760837,760900,78776,793434,798777,810634,835078,848964,858623,872652,911430,926180,931150,932811,937640,942225,970671,97487,979587]],["@metamask/perps-controller>@metamask/abi-utils",[1395,145325,290001,330383,356515,406653,496476,573613,575115,626417,631673,634810,66343,675964,7157,752774,7896,797470,814660,874415]],["@metamask/perps-controller>@metamask/abi-utils>@metamask/utils",[100561,100561,110588,110588,11850,11850,26208,26208,328370,328370,346740,346740,387655,387655,436443,436443,437194,437194,455639,455639,470584,470584,53690,53690,590779,590779,622982,622982,773167,773167,830852,830852,84376,84376,912455,912455,962924,962924,965340,965340,974158,974158]],["@metamask/perps-controller>@nktkas/hyperliquid",[103126,105127,112351,117010,126180,126395,131866,134419,148979,150071,153029,159933,163233,164804,172911,188787,192010,193627,195272,199046,218443,225748,226558,227950,228473,229283,229429,233610,23515,238744,241285,257601,285553,293277,303136,304870,315268,324992,343506,344312,345315,35806,360957,363677,368180,373757,378925,38110,381777,390780,404556,405059,41211,42496,427825,431012,435792,44952,452769,454562,455292,456534,462694,471017,47196,486223,494484,500496,502201,505976,51482,51740,519233,526682,52690,542120,542761,544850,557372,558063,558104,559249,569411,571859,57553,576832,584584,610245,610840,611842,618007,618304,626017,630647,633194,633696,633725,634075,643865,649665,651942,653028,655477,660706,661771,667682,669276,675625,676534,676931,684309,686046,686370,687464,689459,692013,696528,704368,704438,710754,710771,720305,721641,724758,725801,727275,728697,743095,747035,748536,75889,759865,766618,768687,769195,770685,771236,778570,778826,781479,786292,789330,792392,79928,80091,801240,805168,811803,821129,822863,829781,84237,842396,845751,847775,853528,853711,855283,85779,860366,86915,870484,881273,88298,883713,884152,89088,892100,895194,915050,918049,923512,924140,92669,930182,939914,942311,949685,952359,952915,952958,957435,960981,965469,966297,980484,988554,991255,998272,999572]],["@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews",[221836]],["@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes",[394621,575241,71896]],["@metamask/perps-controller>@nktkas/hyperliquid>valibot",[254803]],["@metamask/perps-controller>bignumber.js",[16039]],["@metamask/phishing-controller",[257881,311290,318392,382182,48142,794847,851610]],["@metamask/phishing-controller>ethereum-cryptography",[295810,994752]],["@metamask/phishing-controller>ethereum-cryptography>@noble/hashes",[217551,420730,464551,679709]],["@metamask/polling-controller",[729986,816571,937882]],["@metamask/post-message-stream",[101274,101274,107927,107927,23400,359799,379148,411515,465868,524382,524382,543433,620498,620498,74883,74883,755593,755593,822105,927785,927785]],["@metamask/post-message-stream>readable-stream",[122587,122587,128093,128093,149890,149890,158647,158647,164196,280932,335992,365149,377228,377228,387923,387923,430723,430723,437116,450432,456224,456224,490137,490137,506348,506348,508142,508142,525366,538997,621123,67395,67395,68193,702682,742819,846471,85990,864992,864992,883886,938361,938361,976199,976199]],["@metamask/ppom-validator",[177674,289357,560797,802625]],["@metamask/ppom-validator>@metamask/controller-utils",[139624,139624,173631,173631,292844,292844,53568,53568,561277,561277,629867,629867,958344,958344]],["@metamask/ppom-validator>await-semaphore",[972622]],["@metamask/ppom-validator>crypto-js",[136152,156953,212122,28681,299772,316531,388593,416696,467074,495238,496468,546210,554120,605410,626217,63691,648024,659663,67012,706799,736059,741309,756836,782539,812436,826321,833881,848140,851069,855049,857468,863576,925909,936517,939493,954177]],["@metamask/ppom-validator>json-rpc-random-id",[84187]],["@metamask/profile-metrics-controller",[535484,752112,887335,947913]],["@metamask/profile-sync-controller",[119324,125054,131602,145811,158486,163269,175526,208614,214084,285815,408685,411475,412247,536073,583513,60095,710448,731171,751944,760234,763204,784140,871229,881381,911075,911443,936070,941764,958387,96556,978337]],["@metamask/profile-sync-controller>siwe",[250783,345447,499052,771035,966691]],["@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser",[651193,692745,916624]],["@metamask/profile-sync-controller>siwe>@stablelib/random",[605021,669716,839148,960997]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary",[472652]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int",[692672]],["@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe",[716903]],["@metamask/providers",[116263,152704,178618,482392,604632,611766,683527,725087,733762,748698,78279,798563,944401,946170,946822,958440]],["@metamask/providers>is-stream",[84773,902544]],["@metamask/providers>readable-stream",[125282,131581,167911,206930,217247,272419,275885,31329,31356,352992,360996,366175,373035,406951,433634,478694,577916,609843,616714,655772,660418,670086,719599,769499,777480,789321,817741,834278,871965,919766]],["@metamask/ramps-controller",[311997,384540,384540,384540,384540,384540,384540,384540,605437,62498,80081]],["@metamask/rate-limit-controller",[859998]],["@metamask/react-data-query",[574018,719013]],["@metamask/react-data-query>@metamask/base-data-service",[124456]],["@metamask/remote-feature-flag-controller",[110809,229582,502008,556814,56558,874810]],["@metamask/rpc-errors",[132002,132002,135299,135299,135299,135299,135299,135299,135299,144008,144008,16905,16905,195057,195057,195057,195057,195057,195057,195057,207534,207534,207534,207534,207534,207534,207534,353959,353959,581327,581327,584553,584553,703640,703640,703640,703640,703640,703640,703640,711210,711210,805248,805248,875088,875088,875088,875088,875088,875088,875088]],["@metamask/rpc-errors>fast-safe-stringify",[101292,101292,754255,754255]],["@metamask/safe-event-emitter",[177805,532596,664053]],["@metamask/scure-bip39",[592190,595876]],["@metamask/scure-bip39>@noble/hashes",[239227,401576,494981,614013,835673,879240,88469,938735,980895]],["@metamask/scure-bip39>@scure/base",[763261]],["@metamask/seedless-onboarding-controller",[189780,2809,364870,437762,627122,949340,987160,987160]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils",[845414]],["@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants",[901527]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup",[113685,17564,242335,284271,327293,553072,568412,635124,706026,787309,812995,878813,917364]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils",[170422,229468,286031,288582,336355,716362,781036,83789]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details",[859723]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base",[15531,262620,579858,928075]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers",[65983]],["@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers",[779159]],["@metamask/selected-network-controller",[269068,69796]],["@metamask/sentinel-api-service",[22415,733222,755210,82322,94831]],["@metamask/shield-controller",[181547,182405,479456,742033,751037]],["@metamask/signature-controller",[328640,415436,467521,743605,931899,951912,999926]],["@metamask/signature-controller>@metamask/logging-controller",[462097,883785]],["@metamask/smart-transactions-controller",[261426,407608,541149,612157,631561,729118,729118,810961,847512]],["@metamask/smart-transactions-controller>@metamask/transaction-controller",[636964]],["@metamask/smart-transactions-controller>bignumber.js",[143984]],["@metamask/snap-account-service",[215877,521635,546574,694652,775810]],["@metamask/snaps-controllers",[112990,133884,142700,183940,196833,271855,349990,387855,419414,44384,529460,548552,571594,590831,6940,752077,791368,792124,82215,834155,935494,937038,937580,94502,971587,999342]],["@metamask/snaps-controllers>@xstate/fsm",[497792]],["@metamask/snaps-controllers>concat-stream",[157651]],["@metamask/snaps-controllers>get-npm-tarball-url",[25608]],["@metamask/snaps-controllers>readable-stream",[155001,16879,201291,276622,383198,389521,441790,457020,485102,507985,552197,656451,678257,777816,855501]],["@metamask/snaps-controllers>readable-web-to-node-stream",[868278]],["@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream",[11491,195581,295951,326381,34895,409259,469959,521720,632698,763609,792400,807140,835479,857844,928302]],["@metamask/snaps-controllers>tar-stream",[214199,452762,641710,743849,840318]],["@metamask/snaps-controllers>tar-stream>b4a",[121745,510209,520395,534895,656807,673362,701623]],["@metamask/snaps-controllers>tar-stream>fast-fifo",[7296,849774]],["@metamask/snaps-controllers>tar-stream>streamx",[858076,953792]],["@metamask/snaps-controllers>tar-stream>streamx>events-universal",[466141]],["@metamask/snaps-controllers>tar-stream>streamx>text-decoder",[117783,37629,856483]],["@metamask/snaps-registry",[505884,79693]],["@metamask/snaps-rpc-methods",[114318,178407,195708,199366,205001,210734,222338,236665,241348,302380,315290,333166,343817,357986,371340,378210,380297,385099,387402,388488,396164,397212,398683,410219,412629,430664,434878,46547,470992,481255,488678,494652,505073,516787,524792,537210,540524,551053,56439,574861,580594,58474,597776,602876,615146,636064,646071,647629,655673,657454,689132,689132,715543,71570,725625,751854,758290,784846,814266,817226,819596,840672,857982,863675,869128,899342,919854,925443,956834,985615,992061]],["@metamask/snaps-sdk",[101940,105626,115412,137750,157392,159167,174638,174638,186119,186119,188320,188320,191699,208554,208554,254995,297416,300005,310408,33029,335562,335562,382906,382906,392154,402644,414221,416877,434322,443697,443697,45217,45217,453945,453945,461893,461893,484068,484068,499490,499490,515828,515828,524390,544299,544299,564534,564534,5654,597361,609948,609948,614130,614130,633089,642015,647388,647388,652384,676358,676358,68318,689686,694729,704340,706524,706524,711073,721117,722837,722837,728195,746658,759742,773466,777040,780947,78121,785876,797999,797999,80332,807925,809633,814006,818365,818365,833399,833414,834788,861913,861913,869864,879516,879771,879771,931217,936435,937053,937053,955187,955187,971188,98414,98414,984524,988068]],["@metamask/snaps-sdk>@metamask/key-tree",[100468,141769,224378,256046,268988,379669,410574,476536,480665,508238,53921,568607,64263,650475,693932,697917,732112,920131,94947,949840,963624]],["@metamask/snaps-utils",[116243,135006,156828,15948,172112,180559,237825,252164,260184,296148,355433,355897,358e3,374955,392380,431050,448372,504536,529638,54872,58473,619193,62099,630249,631524,635843,650976,665797,66580,676798,685502,723807,761368,793671,797549,90157,90404,914420,939912,968074,97324,985338,988931,988950]],["@metamask/snaps-utils>@metamask/slip44",[847408,847408,847408,847408,847408,847408,847408]],["@metamask/snaps-utils>fast-xml-parser",[141844,311041,434627,490105,632435,637724,712175,905874,942721]],["@metamask/snaps-utils>fast-xml-parser>@nodable/entities",[733501,9845]],["@metamask/snaps-utils>fast-xml-parser>path-expression-matcher",[360912,702374,723880]],["@metamask/snaps-utils>fast-xml-parser>strnum",[243320]],["@metamask/snaps-utils>marked",[44747]],["@metamask/snaps-utils>rfdc",[397348]],["@metamask/snaps-utils>validate-npm-package-name",[226237]],["@metamask/snaps-utils>validate-npm-package-name>builtins",[81481]],["@metamask/solana-wallet-snap",[245743,245743]],["@metamask/solana-wallet-standard",[158133,29645,309289,819292,876553]],["@metamask/solana-wallet-standard>@solana/wallet-standard-features",[45444,527170,598497,943760]],["@metamask/solana-wallet-standard>@wallet-standard/features",[694718,716207,986059]],["@metamask/solana-wallet-standard>@wallet-standard/wallet",[295412,302163]],["@metamask/storage-service",[12851,652919,68978]],["@metamask/subscription-controller",[135109,297399,419686,60607,663425,690474,932821]],["@metamask/subscription-controller>bignumber.js",[591268]],["@metamask/superstruct",[142827,142827,147698,147698,147698,147698,147698,147698,147698,179379,179379,179379,179379,179379,179379,179379,244231,244231,290266,290266,307059,307059,315560,315560,315560,315560,315560,315560,315560,342672,342672,355608,355608,356583,356583,400619,400619,411554,411554,448967,448967,449070,449070,497177,497177,497177,497177,497177,497177,497177,5136,5136,5136,5136,5136,5136,5136,545203,545203,599805,599805,599805,599805,599805,599805,599805,612815,612815,628674,628674,628674,628674,628674,628674,628674,638737,638737,638737,638737,638737,638737,638737,652825,652825,728522,728522,728522,728522,728522,728522,728522,784225,784225,982944,982944]],["@metamask/test-dapp-solana>@solana/wallet-standard-chains",[826167]],["@metamask/transaction-controller",[129438,133660,145895,15420,158388,174838,200881,204471,24889,317525,348372,354166,405070,420762,454515,491993,493646,523615,53002,546292,579150,592361,607402,619783,622702,623476,637434,660227,660502,685128,71530,730691,731521,755199,780690,788457,795886,80667,850156,857157,8862,900682,907315,910368,963648,976022,978561]],["@metamask/transaction-controller>@metamask/nonce-tracker",[775896,877795]],["@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex",[420968,751816,793012,857279,955353,997852]],["@metamask/transaction-controller>bignumber.js",[717341]],["@metamask/transaction-controller>ethereum-cryptography",[415792,659891]],["@metamask/transaction-controller>ethereum-cryptography>@noble/hashes",[239887,620099,891613,931318]],["@metamask/transaction-pay-controller",[101009,105313,123646,13475,158487,158511,184549,210220,219848,222065,24139,250500,287083,297689,313295,3413,346329,364985,372027,381432,385374,407825,41150,41417,450293,452543,481511,500762,512802,513265,514996,577857,600740,621834,62324,63322,66246,696073,706442,709890,710432,722273,748603,758848,760465,764976,780512,787865,791378,798718,83447,840766,86794,868446,881283,902177,93161,955429,95614,963432,963584,964544,97797,986092,99916]],["@metamask/transaction-pay-controller>@metamask/ramps-controller",[764022,764400,764400]],["@metamask/transaction-pay-controller>bignumber.js",[722906]],["@metamask/tron-wallet-snap",[990306,990306]],["@metamask/user-operation-controller",[177720,44032,462451,527333,565720,651451,769743,775170,798208,904617,974289,997651]],["@metamask/user-operation-controller>@metamask/transaction-controller",[36674]],["@metamask/utils",[103453,103453,103453,103453,103453,103453,103453,142282,142282,155499,166378,166378,166378,166378,166378,166378,166378,204179,204179,204179,204179,204179,204179,204179,211600,230855,230855,230855,230855,230855,230855,230855,258862,269530,269530,269530,269530,269530,269530,269530,297564,301885,301885,301885,301885,301885,301885,301885,334031,334031,334031,334031,334031,334031,334031,364705,364705,364705,364705,364705,364705,364705,379054,379054,379054,379054,379054,379054,379054,38333,38333,38333,38333,38333,38333,38333,418021,418021,418021,418021,418021,418021,418021,432315,432315,432315,432315,432315,432315,432315,447519,447519,481009,481009,481009,481009,481009,481009,481009,502257,502257,502257,502257,502257,502257,502257,507060,507060,507060,507060,507060,507060,507060,536560,536560,536560,536560,536560,536560,536560,549140,554839,554839,570302,570302,570302,570302,570302,570302,570302,572433,572433,572433,572433,572433,572433,572433,691991,691991,691991,691991,691991,691991,691991,699844,699844,699844,699844,699844,699844,699844,705025,705025,745085,745085,745928,755244,755244,755244,755244,755244,755244,755244,760184,760184,761788,812805,812805,818337,832018,851754,870601,870601,870601,870601,870601,870601,870601,889333,889333,889333,889333,889333,889333,889333,896639,896639,908743,908743,933647,933647,933647,933647,933647,933647,933647,934538,935406,971968,973594]],["@metamask/utils>pony-cause",[178430,207912,341875,67282,762565]],["@metamask/wallet",[184390,211820,308220,347008,382908,39684,406040,423728,456100,567352,57700,635028,665236,732574,768748,801440,822774,883693,904376,918298,976020,997476]],["@mui/material",[104312,11577,11847,127519,131770,133546,133610,134295,138369,149615,153167,156273,157655,162330,165360,166451,167754,167889,178627,181078,181235,189302,191831,203048,210303,226316,236307,255651,259731,26139,2653,282411,301846,307879,310781,313877,324435,332447,332703,336669,341331,35299,35395,365663,368447,370166,378470,379241,38422,398360,412251,413825,416935,425277,431563,436002,440400,450283,452141,454296,465673,471225,473091,479487,501597,514651,519621,531344,538827,548057,551018,55753,569241,57703,578155,57903,590551,591867,597805,599115,6059,609711,61123,614039,624277,62485,632116,640422,641503,648848,654282,656872,661831,663415,66571,671692,676437,678803,682879,685075,689227,700221,714326,715498,767335,768420,812063,818175,819181,822498,834867,836235,852735,860482,867615,879514,886401,895557,901045,90255,909476,91357,917195,920763,925855,928405,933304,94413,945520,945831,955653,963413,965979,97417,989167,989507,991447,999946]],["@mui/system",[112307,157747,170487,223596,260499,292499,337791,382928,508125,51009,518028,521462,559495,571389,573633,613431,627531,740860,75139,752367,759456,767479,768766,773517,800001,801105,828135,87567,884047,901626,927296,961052,967443,97900]],["@mui/system>@mui/private-theming",[57094,573456,603025,82634]],["@mui/system>@mui/styled-engine",[184884,472395,669950]],["@mui/system>@mui/utils",[103354,184229,1975,20613,214359,230793,246517,282805,291577,305397,319,331467,331569,394779,418965,439189,448157,486545,487849,498525,503031,510163,540913,554911,557889,599139,632271,650543,711433,727645,768304,781887,79181,843102,850845,856709,875719,902965,958525,991061,996063]],["@mui/system>@mui/utils>react-is",[254918]],["@mui/x-date-pickers",[10168,10283,109947,111395,122804,123803,126836,129352,135,137138,143620,14500,193795,207533,217914,232699,236e3,240425,252109,253626,256113,276833,28014,282147,286591,291798,296702,297337,299813,306965,312931,31307,31610,324552,346464,347478,360213,367588,371017,373436,407675,409265,427557,428868,43945,439705,449361,450172,456280,462684,465385,471109,472329,475479,481776,493444,495730,509819,516586,531919,534334,535112,549645,559442,560807,57035,575472,575759,576361,591276,613923,621225,62313,636789,637605,644658,645967,664886,684598,696035,696877,722351,731545,735574,743304,748043,76734,777039,79095,794182,794335,797343,802198,802583,804689,807381,81821,836036,837819,842867,844151,847094,860107,861581,864041,868232,872762,881645,883161,888956,903160,904440,909821,916237,918664,922167,922940,923449,92574,931514,939733,946300,948710,983447,984247,995814]],["@mui/x-date-pickers>@mui/utils",[119651,197021,248723,261091,302419,340611,352023,365965,48343,529819,586991,63207,646853,676243,677617,73013,77457,789905,803499,86397]],["@ngraveio/bc-ur",[10198,216814,334683,347103,526436,585651,608778,669916,715987,816060,912490,916561]],["@ngraveio/bc-ur>@keystonehq/alias-sampling",[836484]],["@ngraveio/bc-ur>assert",[100734,158196,215851,784333]],["@ngraveio/bc-ur>assert>is-nan",[247643,277973,461010,924544]],["@ngraveio/bc-ur>assert>object-is",[129730,331205,628587,827856]],["@ngraveio/bc-ur>bignumber.js",[574149]],["@ngraveio/bc-ur>cbor-sync",[632362]],["@ngraveio/bc-ur>crc",[136322,219649,274359,389601,457640,524523,633555,739574,761450,852556,858449,878551,888882,946884]],["@ngraveio/bc-ur>crc>buffer",[797843]],["@ngraveio/bc-ur>jsbi",[847743]],["@ngraveio/bc-ur>sha.js",[132806,158146,240184,363368,381195,576585,588986,774747]],["@ngraveio/bc-ur>sha.js>to-buffer",[715425]],["@noble/ciphers",[10785,127626,2081,363798,378150,43634,466239,578394,626400,679332,801112,90917,949593]],["@noble/curves",[117286,158163,211945,215644,298465,36773,446266,465386,489928,526286,58340,584681,589072,605835,610537,792499,821014,912303,923959,927500,951297]],["@noble/hashes",[117154,128961,163684,237402,277206,279307,362108,367013,38578,399502,41903,477964,477964,496153,505886,533275,617711,661330,661330,671955,671955,716070,770999,772169,850479,85428,921178,943940,945794,975651]],["@open-rpc/meta-schema",[696281]],["@open-rpc/schema-utils-js",[178112,286865,498746]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer",[247747,839041]],["@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse",[300427]],["@open-rpc/schema-utils-js>@json-schema-tools/meta-schema",[6989]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver",[213505,27476,707120,870923,915941]],["@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer",[298824]],["@open-rpc/schema-utils-js>is-url",[324673]],["@open-rpc/test-coverage>isomorphic-fetch",[207672]],["@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch",[645680]],["@popperjs/core",[104262,120185,131500,134115,149922,172285,183817,201918,206556,218858,226744,25019,262272,289140,302530,326635,330629,335526,33565,351475,3598,400267,492560,50696,513223,532874,553918,568598,589833,638543,659638,674110,680243,70361,750319,757155,762019,773577,790791,794063,814127,815258,818832,826916,843022,864542,872787,886298,891016,908905,925448,947862,954239,978752]],["@reduxjs/toolkit",[55820]],["@reduxjs/toolkit>reselect",[317341,93958]],["@rive-app/react-canvas",[913965]],["@rive-app/react-canvas>@rive-app/canvas",[236494,236494,236494,236494,236494,888132]],["@scure/base",[54584,591315]],["@segment/analytics-node",[135879,163263,23300,279322,32883,335978,340597,34948,499454,521632,617928,653229,668435,677885,679751,703484,744764,778153,881020,885160,950625]],["@segment/analytics-node>@lukeed/uuid",[43220]],["@segment/analytics-node>@segment/analytics-core",[12916,160021,171519,184523,243329,265654,395707,416644,58131,599055,681279,706813,70932,781258,858693,863234,946716,956877]],["@segment/analytics-node>@segment/analytics-core>dset",[433864]],["@segment/analytics-node>@segment/analytics-generic-utils",[927339,958351]],["@segment/analytics-node>jose",[115208,116941,171121,222891,260779,378729,463860,527336,53295,577658,589323,615640,663478,67737,678296,732642,755924,796358,8143,850867,851454,896511,936995,953385,968646,989618]],["@sentry/browser",[106484,121744,124675,13623,152254,152660,156081,164928,165362,167467,172275,173368,179687,19727,2033,204399,214536,22674,276880,281977,320160,321437,329055,331990,33632,354281,361508,381324,384984,390076,402702,404809,43114,444971,453827,478535,484413,487419,501757,504399,523152,532344,543411,548502,563310,566078,570181,574003,5937,609495,611865,64329,643814,650110,65366,681853,686791,691576,703138,718191,73075,747170,760538,762975,774791,791729,793052,79931,800440,805677,816291,821299,841456,85422,855790,879010,885305,885436,889613,889843,89899,899341,928751,928906,953524,956902,972599,972991,993039,994398]],["@sentry/browser>@sentry-internal/browser-utils",[104168,117127,117529,12796,132076,133481,138716,153799,184748,185335,185746,19467,225669,234512,234598,238559,259463,303818,310529,314408,327140,33040,3321,339535,417860,456247,459517,495242,51450,515400,528962,533858,566632,56680,57324,580436,599534,604160,617067,621827,662925,676979,681747,694581,702053,71337,714599,74342,756025,764651,765698,768571,772879,793419,814601,821396,847768,858586,863531,879954,882555,898026,903217,913111,932294,944117,945582,956354,956742,958084,963334,975431,978802,993671]],["@sentry/browser>@sentry-internal/feedback",[178066,666012]],["@sentry/browser>@sentry-internal/replay",[117172,949306]],["@sentry/browser>@sentry-internal/replay-canvas",[928535,986415]],["@sentry/core",[100873,104403,105388,114765,118644,118840,122411,123532,125617,127022,128485,136244,14072,140722,144770,145834,147687,151011,152198,153836,15505,155682,156398,15797,160312,161562,16278,16462,166105,16686,169869,17072,172900,173177,173345,175384,178061,178130,179184,180121,180739,187474,187763,18898,189193,191895,192279,195612,198066,19891,200019,20945,233817,236175,240647,242391,24708,248609,253523,254759,257357,260516,26584,267276,276435,285459,286343,290134,290264,294970,295088,298556,303065,306981,334726,342741,351996,352158,352745,356313,357180,358496,377271,381699,392316,396102,39859,400273,403378,404770,405971,410464,410710,411335,419142,425294,426886,427581,43701,441227,444284,456403,463580,466737,468417,476745,480303,484945,486023,488560,488897,498658,503053,503206,504855,506820,509279,513234,5152,516223,516431,518727,52018,525162,528713,532725,532756,533837,534098,537464,538979,545407,546155,550664,550866,563023,567074,571268,573091,576883,577102,579010,584222,587044,590041,597014,59824,598723,599573,60184,603373,605816,608119,612717,620697,620772,625919,627413,631918,632356,636534,637748,641729,643826,646093,65251,652751,658257,659976,660483,663834,664746,665016,671480,676108,67904,67912,679351,679356,682631,686595,691963,6929,702742,704776,707808,709356,711403,713966,71409,717231,718385,718800,719509,724666,729815,730074,734289,735784,736733,737010,762018,764006,76427,765695,76838,768881,778552,78463,788241,79203,793111,802518,808106,812842,812863,818747,827284,828564,836164,837113,843379,844822,848294,848795,858481,86429,864807,865961,866319,868307,868464,87776,879085,881167,881635,882688,884405,889462,889736,901814,901889,902309,902470,903226,910140,911216,917009,920938,920942,921305,92376,925075,928431,931263,933190,934379,939543,943924,944887,948643,95069,960196,960767,96219,96331,968721,973234,98154,986746,991688,997858]],["@simplewebauthn/browser",[134797,173983,216354,311050,322193,328784,345592,454807,50783,537185,600306,80287,891367,931567,955988]],["@solana/addresses",[500089]],["@solana/addresses>@solana/codecs-core",[531837]],["@solana/addresses>@solana/codecs-strings",[726472]],["@solana/addresses>@solana/errors",[410059]],["@storybook/addon-docs>remark-external-links>mdast-util-definitions",[603936]],["@storybook/react>util-deprecate",[381763,381763,79894]],["@tanstack/react-query",[224732,237278,493565,511705,559260,599973,630844,842109,866471,940025,967358]],["@tanstack/react-query>@tanstack/query-core",[100980,140390,248801,286636,330821,377322,530095,536570,586235,612194,645876,656599,665,753269,78174,858515,92190]],["@tanstack/react-virtual",[207896]],["@tanstack/react-virtual>@tanstack/virtual-core",[282889,737520]],["@toruslabs/eccrypto",[840752]],["@toruslabs/eccrypto>elliptic",[206133,31289,385483,431844,439410,505841,520526,56160,595344,598866,671066,756924,834229,917768,917768,917768,917768,917768,917768,917768,97907,995991]],["@toruslabs/eccrypto>elliptic>brorand",[700493]],["@toruslabs/eccrypto>elliptic>hmac-drbg",[178403]],["@toruslabs/eccrypto>elliptic>minimalistic-assert",[147749]],["@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils",[178175]],["@trezor/connect-web",[161947,264637,448771,475227,511005,676994,777401,802974,883249,932425,942600,948414]],["@trezor/connect-web>@trezor/connect",[108752,122517,151165,195279,203181,266718,274388,283080,314251,329191,3467,347648,381398,390491,40275,40574,416188,43960,507351,515009,531360,565501,644936,646784,659703,686693,699779,715952,728359,740975,767847,773642,792108,794554,799799,823473,832029,841885,845438,860263,878923,896867,92633,941442,945725,95052,965279,996616]],["@trezor/connect-web>@trezor/connect-common",[32142,439606,494623,556102]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils",[410764,53958,759514]],["@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js",[959498]],["@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client",[34818,47679,487483]],["@trezor/connect-web>@trezor/connect>@trezor/device-utils",[292761,358991,389452,406597,586775,886318,913937]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf",[192040,311145,534276,669094,783184,969356,974893]],["@trezor/connect-web>@trezor/connect>@trezor/protobuf>long",[229996]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils",[122668,261702,342180,463685,508198,585053,736876,948506]],["@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox",[10071,100733,103796,118003,119200,147967,156134,159565,16791,168041,169820,170758,171039,172991,174218,188342,194706,200299,201099,206718,208399,214286,216042,219050,239055,242637,257519,257695,260556,265631,268431,271739,274396,301031,304363,31199,318295,32976,329881,331519,331682,335570,341314,343978,345602,34641,346487,349811,351009,364835,367026,373225,379348,381147,382219,383298,387371,393392,394828,405919,406295,407776,408619,409603,410500,412896,415827,421427,430971,433803,436271,447676,448635,449922,454835,465701,469696,471615,481167,482649,48745,489560,49638,503150,50320,504217,50501,505749,50615,50686,50892,51314,51590,526787,538011,538649,54028,549475,557183,559614,560885,561224,561555,562097,572055,575449,57744,583492,588569,596773,606394,607170,608015,621097,630094,63092,632188,634166,637094,638924,652547,652606,655535,657502,664900,668354,670079,671534,672327,673921,684089,685526,687162,688581,689850,691341,712099,717272,719546,720281,725168,731968,732863,747896,751934,753591,757749,760170,760233,761770,769314,778184,780967,781247,791780,792063,798959,804806,806053,810711,813970,8156,834141,836330,842900,843683,846752,848123,848245,850066,851479,853339,854521,859079,859375,861799,86775,868260,876464,878559,880937,888891,891552,893015,896175,897100,901930,905518,906404,913407,925046,929194,93690,937600,951275,955668,957389,96495,971233,972457,976667,980367,980539,988942,99035,994890]],["@trezor/connect-web>@trezor/connect>@trezor/transport",[10733]],["@trezor/connect-web>@trezor/utils",[105122,114422,118452,140895,151988,152458,163960,168562,193114,240990,245471,297908,303251,309599,312634,312898,315922,317668,3283,360391,377702,386474,38717,391697,402625,468313,473116,486057,488143,507929,514914,540608,551151,562303,610477,618189,635766,639474,662552,671958,673885,682727,686691,700160,702946,706191,707446,707804,746311,755685,763770,773861,777833,805328,814213,842779,897150,961652,97101,977779]],["@trezor/connect-web>@trezor/utils>bignumber.js",[549083]],["@zxing/browser",[145953,147414,301448,342264,585117,594168,657902,717209,729074,754576,855256,877446]],["@zxing/library",[102076,104640,105846,10967,118907,130552,131671,135525,13619,137253,147843,148535,157062,161840,162502,165773,173036,177378,177605,181600,182358,1880,192328,200985,204042,211185,214711,217403,220502,222151,225176,226658,226843,231804,245348,245586,256598,265347,267647,281891,283130,283402,290294,290552,292589,30383,305577,30700,312627,313691,318681,322242,326170,330187,33047,331102,342062,344837,344937,348944,350023,350110,353827,35702,358354,36393,364077,366804,367456,37933,382336,38382,384185,389157,391484,395347,398079,398319,403738,410854,413135,414480,420387,426748,429613,447649,448751,448788,452848,454274,467294,470216,475173,476225,480383,48100,4886,490735,491694,495292,511410,512766,51355,517495,520474,524483,533622,543903,545034,550786,5641,567973,568293,576257,579657,58251,595812,599545,602724,604879,605398,606450,608296,618081,618221,628824,628900,633971,633978,636179,638450,639014,643367,643977,659159,66029,670237,674724,689980,690012,693466,696602,696739,701767,702808,70813,7139,715814,717651,720949,723205,726724,731223,731411,73343,734567,739843,744838,754217,762947,764246,770429,77429,781645,795293,805428,805970,809671,810595,812056,812169,826170,845566,84931,849943,853708,862070,863850,865388,873614,879385,881821,887588,887774,888951,895334,902900,907072,923877,935419,935949,939171,943402,946912,959134,96263,964206,966391,972327,978368,980892,981228,992729,993255,993733,99546,996484]],["@zxing/library>ts-custom-error",[325932]],["addons-linter>deepmerge",[239016]],["async-mutex",[1310,34965,553002,563013,906263,946806,983482]],["base32-encode",[334106]],["base32-encode>to-data-view",[265887]],["base64-js",[223159,685590,685590]],["bignumber.js",[60746]],["bitcoin-address-validation",[272909]],["bitcoin-address-validation>bech32",[938807]],["bowser",[598640,598640]],["browserify>concat-stream>buffer-from",[539690]],["browserify>concat-stream>typedarray",[528568]],["browserify>has>function-bind",[500185,819495]],["browserify>string_decoder",[242714,938453,938453]],["browserify>url",[558163]],["browserify>url>punycode",[646246]],["browserify>util",[204191,333961,807928]],["browserify>util>is-arguments",[790588]],["browserify>util>is-generator-function",[664264]],["browserify>util>is-typed-array",[242256]],["browserify>util>which-typed-array",[708759]],["browserify>util>which-typed-array>for-each",[541290]],["browserify>xtend",[445334]],["bs58",[121295,753815]],["bs58>base-x",[772079,908463]],["buffer",[916794,971567,971567]],["buffer>ieee754",[170059,170059,305992]],["chalk",[289568,620047,995050]],["chalk>ansi-styles",[780723]],["chalk>ansi-styles>color-convert",[179422,286427,969867]],["chalk>supports-color",[469146]],["chart.js",[137490,464071]],["chart.js>@kurkle/color",[283251]],["clsx",[92288]],["cockatiel",[144226,229411,286985,324161,342467,350209,380736,496021,50519,507271,519577,576549,606424,670456,671151,690468,755020,791579,821411,826585,897560,906022,974971,991321,999124,999985]],["core-js-pure",[120990,12759,151859,188366,194094,20560,207845,227607,258224,25884,277064,277389,278892,303606,305727,330035,330636,347599,35086,353883,356579,360330,370579,400874,407322,413491,42848,465210,468876,485365,508591,536708,54840,55696,576773,587510,613408,646878,655559,662482,665216,666050,673319,702630,719418,739256,747440,748841,752223,782214,792385,828095,850958,856768,878832,884024,885109,895202,907471,928937,978775,985456]],["cron-parser",[212712,433256,439869,495081,528063]],["crypto-browserify",[554365]],["crypto-browserify>browserify-cipher",[647133]],["crypto-browserify>browserify-cipher>browserify-des",[213314,769094]],["crypto-browserify>browserify-cipher>browserify-des>des.js",[104109,398216,609466,699112,731279,762931]],["crypto-browserify>browserify-cipher>evp_bytestokey",[626238]],["crypto-browserify>browserify-sign",[184715,184715,184715,184715,184715,184715,184715,210639,370063,373124,661841,661841,661841,661841,661841,661841,661841,750771]],["crypto-browserify>browserify-sign>readable-stream",[207368,24961,34862,389274,400143,49634,728536,85840,954630]],["crypto-browserify>browserify-sign>readable-stream>isarray",[828544]],["crypto-browserify>browserify-sign>readable-stream>safe-buffer",[228612]],["crypto-browserify>browserify-sign>readable-stream>string_decoder",[813931]],["crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer",[791641]],["crypto-browserify>create-ecdh",[65084]],["crypto-browserify>create-hmac",[209475,954968]],["crypto-browserify>diffie-hellman",[487876,53365,53365,53365,53365,53365,53365,53365,678158,7702]],["crypto-browserify>diffie-hellman>miller-rabin",[434884]],["crypto-browserify>pbkdf2",[2216,303271,428172,696696,86900,910166]],["crypto-browserify>pbkdf2>create-hash",[205939,396674]],["crypto-browserify>pbkdf2>ripemd160",[652176]],["crypto-browserify>pbkdf2>ripemd160>hash-base",[571210]],["crypto-browserify>public-encrypt",[139006,574303,576758,584160,889634,97677]],["crypto-browserify>public-encrypt>browserify-rsa",[172788]],["crypto-browserify>public-encrypt>parse-asn1",[657421,756021,890535,890535,890535,890535,890535,890535,890535,910026,996481]],["crypto-browserify>public-encrypt>parse-asn1>asn1.js",[208103,42905,502048,540274,542561,561813,597323,600205,61716,728554,8083,853593,933023,964662]],["crypto-browserify>randombytes",[883369]],["crypto-browserify>randomfill",[96103]],["currency-formatter",[160041,187270,758533,758533,758533,758533,758533,888624,888624,888624,888624,888624]],["currency-formatter>accounting",[241927]],["currency-formatter>locale-currency",[789077,802055]],["deep-freeze-strict",[627685]],["dompurify",[88174]],["duplexify>inherits",[509847,985738,985738]],["eciesjs",[181727,32623,331778,354473,363326,424205,660260,692733,854674,893884,970208]],["eciesjs>@ecies/ciphers",[138430,797235]],["eslint-plugin-react>array-includes>is-string",[118857]],["eslint-plugin-react>array-includes>math-intrinsics",[439486,608107,662346,742296,779452,877e3,963442,96533]],["eslint-plugin-react>es-iterator-helpers>has-property-descriptors",[584368]],["eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto",[826936]],["eslint-plugin-react>hasown",[704149]],["eslint>ajv",[131366,137731,142193,14526,146906,148126,14967,17331,180699,194730,194730,203214,25665,282790,287943,288874,32177,330861,359044,473645,515098,528051,556118,611462,61206,61605,653970,666470,675796,739168,753098,765230,781032,781280,786702,796418,852187,862680,862680,873752,882600,903529,978511,997646]],["eslint>ajv>json-schema-traverse",[376018]],["eslint>fast-deep-equal",[170210,932993]],["eslint>json-stable-stringify-without-jsonify",[959573]],["eth-chainlist",[39576,445016]],["eth-ens-namehash",[558791]],["eth-ens-namehash>idna-uts46-hx",[593891,683712]],["eth-ens-namehash>idna-uts46-hx>punycode",[33245]],["eth-ens-namehash>js-sha3",[227864]],["eth-lattice-keyring",[778701]],["eth-lattice-keyring>@ethereumjs/util",[110708,137578,143792,158480,201653,208236,25076,279095,397318,402447,499832,639721,664526,892270,923318]],["eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp",[487263]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography",[635567,719201,905742]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves",[105354,381439,438817,620416,808364,837643,949148]],["eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes",[10417,22861,233921,35068,561423,604080,6161,761144]],["eth-lattice-keyring>@ethereumjs/util>micro-ftch",[203639]],["eth-lattice-keyring>gridplus-sdk",[255181]],["eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp",[514853,802378]],["eth-lattice-keyring>gridplus-sdk>aes-js",[972828]],["eth-lattice-keyring>gridplus-sdk>bignumber.js",[602169,766891]],["eth-lattice-keyring>gridplus-sdk>bs58check",[401492,745787]],["eth-lattice-keyring>gridplus-sdk>cbor",[155756,173863,18685,374457,529311,559008,637552,641797,643569,744141,813859,83725,911305]],["eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal",[510225]],["eth-lattice-keyring>gridplus-sdk>cbor>nofilter",[4664]],["eth-lattice-keyring>gridplus-sdk>crc-32",[534918]],["eth-lattice-keyring>gridplus-sdk>ox",[23680,359095,400540,406022,416962,469001,767363,934820,962690]],["eth-lattice-keyring>gridplus-sdk>secp256k1",[333376,647984,842388]],["eth-lattice-keyring>rlp",[513680]],["eth-method-registry",[243922,243922,243922,243922,243922,243922,243922,432999,852032,852032,852032,852032,852032,852032,852032]],["eth-method-registry>@metamask/ethjs-contract",[149490,171151,814390]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter",[9590]],["eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util",[820764]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi",[43470,452332]],["eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn",[545984]],["eth-method-registry>@metamask/ethjs-query",[883348]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format",[407843]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema",[613122,613122,613122,613122,613122,613122,613122]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed",[433028]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix",[341529]],["eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc",[482131]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback",[587668]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn",[754084]],["eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim",[408243]],["ethereum-cryptography",[208098,945639]],["ethereumjs-util",[260161,362242,500520,512477,527514,567856,57111,7201,756854,801305,822020,850844]],["ethereumjs-util>bn.js",[461532]],["ethereumjs-util>create-hash",[765236,825936]],["ethereumjs-util>create-hash>cipher-base",[372024]],["ethereumjs-util>create-hash>md5.js",[689828]],["ethereumjs-util>create-hash>md5.js>hash-base",[368942]],["ethereumjs-util>create-hash>md5.js>hash-base>readable-stream",[138273,160302,271873,295891,377502,388078,555963,556543,614793,646997,700460,703581,708830,938792,973505]],["ethereumjs-util>create-hash>ripemd160",[777899]],["ethereumjs-util>create-hash>ripemd160>hash-base",[346203]],["ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream",[172368,379370,409345,43604,438430,462220,493940,516851,551538,567434,605971,682597,816462,952405,972431]],["ethereumjs-util>ethereum-cryptography",[110404,496988,894002,95453]],["ethereumjs-util>ethereum-cryptography>browserify-aes",[104667,120362,160855,166623,194324,328328,425693,496770,564143,564395,589543,589543,589543,589543,589543,589543,589543,626996,652708,766738,787881,825934,958896]],["ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor",[64679]],["ethereumjs-util>ethereum-cryptography>bs58check",[283092,767265]],["ethereumjs-util>ethereum-cryptography>bs58check>bs58",[411447]],["ethereumjs-util>ethereum-cryptography>keccak",[188166,2560,289124,399137,599140,883926]],["ethereumjs-util>ethereum-cryptography>keccak>readable-stream",[141293,234258,236194,261453,364924,43819,527114,535004,611239,618502,7176,722326,731291,751113,972964]],["ethereumjs-util>ethereum-cryptography>secp256k1",[524053,634699,667525]],["ethereumjs-util>rlp",[724840]],["ethers",[164293,201248,523321,631426,964052]],["ethers>@ethersproject/abstract-provider",[211701,445174]],["ethers>@ethersproject/abstract-signer",[230706,654687]],["ethers>@ethersproject/address",[317262,998381]],["ethers>@ethersproject/base64",[384786,893747]],["ethers>@ethersproject/basex",[873202]],["ethers>@ethersproject/constants",[101866,490622,714372,738178,885644]],["ethers>@ethersproject/hash",[130488,248528,410943,412718,578030,580813,79978,886384,974082]],["ethers>@ethersproject/json-wallets",[156057,37426,459908,580226,611720,749805]],["ethers>@ethersproject/json-wallets>aes-js",[302968]],["ethers>@ethersproject/json-wallets>scrypt-js",[305583]],["ethers>@ethersproject/keccak256",[453002]],["ethers>@ethersproject/logger",[329882,697489]],["ethers>@ethersproject/networks",[332071,484058]],["ethers>@ethersproject/pbkdf2",[25643]],["ethers>@ethersproject/properties",[338777,830724]],["ethers>@ethersproject/random",[247023,401282,862331,942107]],["ethers>@ethersproject/rlp",[603988,820707]],["ethers>@ethersproject/sha2",[116409,323064,451058,805929]],["ethers>@ethersproject/sha2>hash.js",[132485,179206,283376,387824,438047,439794,466610,567879,57764,80193,88054,970813]],["ethers>@ethersproject/signing-key",[234380,255468,629441]],["ethers>@ethersproject/solidity",[743720,911877]],["ethers>@ethersproject/strings",[340519,465085,795768,855040,936523]],["ethers>@ethersproject/units",[315087,91170]],["ethers>@ethersproject/wallet",[309353,923412]],["ethers>@ethersproject/web",[254712,55410,699423]],["ethers>@ethersproject/wordlists",[400906,760345,792456,995917]],["extension-port-stream",[283079,283079,48050,48050,770467,770467,803058,803058]],["fast-json-patch",[191787,343337,533298,767584]],["fast-json-stable-stringify",[323260]],["fuse.js",[863985]],["gulp>vinyl-fs>object.assign",[302547,461066,724264,983725]],["he",[106115]],["https-browserify",[965339]],["human-standard-token-abi",[944211]],["humanize-duration",[477355]],["immer",[115691,115691,319222,92365,950515]],["ip-regex",[357910]],["jest-canvas-mock>moo-color>color-name",[469804]],["jsdom>form-data>es-set-tostringtag>has-tostringtag",[197300]],["lightweight-charts",[194859]],["lightweight-charts>fancy-canvas",[128943,243582,418818,443436,631652]],["localforage",[544654]],["lodash",[104045,108041,109528,112437,11616,122368,127750,133527,135471,136471,137234,138115,145831,14786,15361,164325,166136,168474,169811,170906,174506,180624,184084,186049,188312,197614,202665,21937,223116,225953,236872,23879,241297,241421,245780,247835,250846,254517,255991,257776,271916,272175,276617,281657,284431,286210,289577,29025,295215,296033,298730,305256,308731,310326,311588,319805,323304,323904,328821,33586,339886,358633,361178,366931,369940,376972,37766,378768,380279,383565,386042,394939,422966,423,428926,433702,433752,433789,436820,438993,440477,447201,456895,456895,458916,459722,461663,463851,471378,476031,481585,481803,485063,487091,497208,498256,500610,502503,504273,510185,517141,522306,524621,529090,533439,553939,556600,55750,558909,563252,564009,576629,580484,58095,586053,605271,616685,618431,623755,631293,631328,633411,641229,647294,653160,653552,655367,655676,658647,665697,667537,668205,671945,68055,685209,685544,690007,695038,699180,700365,702879,704597,709499,722604,726927,72890,72999,733395,744305,758387,759045,760824,7640,769956,771366,79662,799648,807822,80830,810914,813523,821432,822539,826448,830728,83454,834725,835792,837054,844065,845341,851077,859340,861862,868080,871429,871614,891013,895615,910005,91158,919816,920277,922462,927445,928442,928863,933290,935487,938312,939132,944880,945343,953568,964653,968001,978696,981561,982070,983297,995922,997225,998084]],["loglevel",[171097,171097,681050]],["lottie-web",[908216]],["luxon",[122552,122552,138292,138292,14631,14631,208570,210164,210164,232712,232712,263496,283707,305921,316244,317588,317588,347022,352134,360569,392134,419186,442525,446655,451798,493104,512986,512986,525037,597054,597054,600473,600473,603476,603476,640846,686333,686333,695358,695358,731318,750628,750628,774810,774810,775158,775158,78565,78565,794204,821213,831022,835060,835060,835203,835203,85013,868766,868766,891728,891728,912276,912276,925752,938102,948972,948972,951906,961520,984381,984381,991213,991213]],["mocha>ms",[134281,254660]],["mocha>yargs-unparser>is-plain-obj",[119552]],["mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable",[795713,992594]],["mockttp>express>qs",[169116,315677,556189,717698,80776]],["mockttp>express>safe-buffer",[495670,677197,677197]],["nanoid",[531589]],["nock>debug",[465273,617648,683075,952574]],["openai>abort-controller",[113795,581808,581808]],["openai>zod",[313290,352058,419871,430217,481718,489540,564224,599872,648154,66871,725519,805536,828308,832821,856773,87669,885593,986491]],["path-browserify",[386023]],["pify",[256723]],["process",[208835,208835,378326,378326]],["prop-types",[557789,787332,991606]],["prop-types>object-assign",[858524]],["punycode",[478759]],["qrcode-generator",[929736]],["qrcode.react",[174799]],["react",[23591,276592,336620,860012]],["react-chartjs-2",[173127]],["react-compiler-runtime",[303280]],["react-devtools-core",[38588]],["react-dom",[1159,879505,9610]],["react-dom>scheduler",[117047,594158]],["react-focus-lock",[124676,171702,304417,59129,679770,921718,977522]],["react-focus-lock>focus-lock",[130680,135719,153956,176839,296640,341413,360116,365187,367975,417071,578063,653567,664882,697295,716734,750025,780392,826111,837793,906089,997295]],["react-focus-lock>react-clientside-effect",[132165]],["react-focus-lock>use-callback-ref",[334392,415976,989992]],["react-focus-lock>use-sidecar",[886509]],["react-hot-toast",[638891]],["react-hot-toast>goober",[656304]],["react-idle-timer",[282382]],["react-markdown",[66117,909295,966680,973839]],["react-markdown>comma-separated-tokens",[142527]],["react-markdown>property-information",[109794,136933,222985,287738,293780,403493,403939,489890,625821,651420,709064,709064,709064,709064,709064,713726,815182,887583,897558,918358,927244,95526,993601]],["react-markdown>react-is",[287916,848688]],["react-markdown>remark-parse",[11815]],["react-markdown>remark-parse>mdast-util-from-markdown",[284865,839200]],["react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string",[350350]],["react-markdown>remark-parse>mdast-util-from-markdown>micromark",[115271,122266,129245,13320,144508,147528,156518,158366,160413,166022,167141,191006,236757,255771,300725,32735,345752,350100,367096,369e3,386920,387601,415431,429198,432225,434122,465465,472696,50096,50571,505862,513233,517015,542008,55976,588891,596678,619258,619473,626280,646592,667890,677964,678462,68733,703367,725077,749567,754388,757024,763528,779357,784573,804392,835101,852994,857909,861137,877216,89161,913200,91494,920522,935714,942864,961766,970745,971206,971933,993242,995783]],["react-markdown>remark-rehype",[607537]],["react-markdown>remark-rehype>mdast-util-to-hast",[127017,130453,157984,191532,195532,215432,235812,247600,281038,317058,361014,370310,467157,532167,540226,542795,55227,56788,571047,577504,645553,646177,658367,694268,695298,712147,866355,868166,943308,964922]],["react-markdown>remark-rehype>mdast-util-to-hast>mdurl",[590387]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-builder",[7900]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated",[602721]],["react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position",[679975]],["react-markdown>space-separated-tokens",[127668]],["react-markdown>style-to-object",[230916]],["react-markdown>style-to-object>inline-style-parser",[395196]],["react-markdown>unified",[286837]],["react-markdown>unified>bail",[370001]],["react-markdown>unified>extend",[203585]],["react-markdown>unified>is-buffer",[287094]],["react-markdown>unified>trough",[652804]],["react-markdown>unist-util-visit",[498679]],["react-markdown>unist-util-visit>unist-util-is",[498559]],["react-markdown>unist-util-visit>unist-util-visit-parents",[776279,949742]],["react-markdown>vfile",[461651,621468]],["react-markdown>vfile>is-buffer",[444576]],["react-markdown>vfile>replace-ext",[68215]],["react-markdown>vfile>unist-util-stringify-position",[296107]],["react-markdown>vfile>vfile-message",[166301]],["react-popper",[646948,897908]],["react-popper>react-fast-compare",[101875]],["react-redux",[176578,23106,235140,314701,369148,405347,416408,421859,470995,473584,48084,525300,52906,5637,62629,684723,701844,721075,742216,745865,772362,956152]],["react-redux>hoist-non-react-statics",[339394]],["react-redux>hoist-non-react-statics>react-is",[113132,337392]],["react-redux>react-is",[714527,753371]],["react-redux>use-sync-external-store",[11853,837954,897866,941760]],["react-router-dom",[994112]],["react-router-dom>@remix-run/router",[682660]],["react-router-dom>react-router",[107495]],["react-simple-file-input",[742431]],["react-syntax-highlighter>refractor>parse-entities",[512920]],["react-tippy",[971180]],["react-tippy>popper.js",[975427]],["react-toggle-button",[490926]],["react-transition-group",[131350,284003,639130,829556,84954,936137,996331]],["react-transition-group>dom-helpers",[475843,815834,819347]],["readable-stream",[153089,181536,194535,194535,22250,252334,252334,252859,252859,259290,261069,294855,294855,338568,338568,425493,425934,425934,443305,44565,448492,448492,449219,449219,452547,452547,464812,485697,494639,548444,568577,586805,588847,588847,602416,613318,613318,631222,631222,632914,632914,68266,68266,683024,699960,699960,703102,708566,708566,730636,73701,754857,761124,761124,769584,769584,770587,777352,777352,809090,809090,816718,816718,827525,827525,831171,831171,837911,868387,868387,895890,900457,900457,930607,978529]],["readable-stream-2>core-util-is",[711510]],["readable-stream-2>process-nextick-args",[102393]],["redux",[60416]],["redux-thunk",[488961]],["remote-redux-devtools",[120443,398548,417589,712044]],["remote-redux-devtools>jsan",[151109,341696,425053,427767,965556]],["remote-redux-devtools>redux-devtools-core",[172251,650496,778624]],["remote-redux-devtools>redux-devtools-core>get-params",[31908]],["remote-redux-devtools>redux-devtools-core>nanoid",[659269]],["remote-redux-devtools>redux-devtools-core>remotedev-serialize",[205061,274996,464435]],["remote-redux-devtools>redux-devtools-instrument",[217867]],["remote-redux-devtools>rn-host-detect",[653154]],["remote-redux-devtools>socketcluster-client",[280959,46337,672552,701487,844684,94862,963198]],["remote-redux-devtools>socketcluster-client>buffer",[627940]],["remote-redux-devtools>socketcluster-client>clone",[430638]],["remote-redux-devtools>socketcluster-client>component-emitter",[372675]],["remote-redux-devtools>socketcluster-client>linked-list",[262580,759067]],["remote-redux-devtools>socketcluster-client>querystring",[29941,554315,676013]],["remote-redux-devtools>socketcluster-client>sc-channel",[891709]],["remote-redux-devtools>socketcluster-client>sc-errors",[520309,601342]],["remote-redux-devtools>socketcluster-client>sc-formatter",[38652]],["remote-redux-devtools>socketcluster-client>uuid",[107216,192925,648025,905155,998316]],["reselect",[491616]],["sass-embedded>varint",[16253,217115,357733,587107]],["semver",[102998,130698,159585,212669,213832,223550,248391,250377,282429,297891,300736,315317,343546,348400,36974,400386,458014,467260,469878,481665,526710,563167,568925,605657,606005,618315,630655,645178,673188,685987,692636,712800,74207,780433,783212,801015,829373,843432,846768,869544,872547,884499,908975,9090,917098,980803]],["stream-browserify",[594950]],["stream-browserify>readable-stream",[109279,305685,311802,312964,500040,522422,525412,52799,588091,69755,699075,719265,794353,836603]],["stream-http",[162465,482901,683392,99248]],["stream-http>builtin-status-codes",[535522]],["stream-http>readable-stream",[113306,184437,189546,193050,201511,331753,408375,410939,493781,512565,626160,665564,790745,874757,930722]],["string.prototype.matchall>call-bind",[567943,705035]],["string.prototype.matchall>call-bind>call-bind-apply-helpers",[26796,635101,647304,653002,870079,873110]],["string.prototype.matchall>call-bind>es-define-property",[861807]],["string.prototype.matchall>call-bind>set-function-length",[874449]],["string.prototype.matchall>call-bound",[727164]],["string.prototype.matchall>define-properties",[919684]],["string.prototype.matchall>define-properties>define-data-property",[562089]],["string.prototype.matchall>es-abstract>array-buffer-byte-length",[664167]],["string.prototype.matchall>es-abstract>available-typed-arrays",[94121]],["string.prototype.matchall>es-abstract>es-to-primitive>is-symbol",[613340]],["string.prototype.matchall>es-abstract>get-proto",[193624,622892,744104]],["string.prototype.matchall>es-abstract>is-array-buffer",[78062]],["string.prototype.matchall>es-abstract>is-callable",[76176]],["string.prototype.matchall>es-abstract>is-regex",[969219]],["string.prototype.matchall>es-abstract>is-set",[275840]],["string.prototype.matchall>es-abstract>is-shared-array-buffer",[610558]],["string.prototype.matchall>es-abstract>object-inspect",[427195]],["string.prototype.matchall>es-abstract>safe-regex-test",[92025]],["string.prototype.matchall>es-abstract>stop-iteration-iterator",[181996]],["string.prototype.matchall>es-abstract>typed-array-buffer",[813364]],["string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names",[267058]],["string.prototype.matchall>es-abstract>unbox-primitive>has-bigints",[733838]],["string.prototype.matchall>es-errors",[331300,382711,444699,492449,529354,592005,701026]],["string.prototype.matchall>es-object-atoms",[588684]],["string.prototype.matchall>get-intrinsic",[933]],["string.prototype.matchall>get-intrinsic>async-function",[779198]],["string.prototype.matchall>get-intrinsic>async-generator-function",[998538]],["string.prototype.matchall>get-intrinsic>generator-function",[735833]],["string.prototype.matchall>gopd",[377379,768613]],["string.prototype.matchall>has-symbols",[160055,694053]],["string.prototype.matchall>internal-slot",[228431]],["string.prototype.matchall>regexp.prototype.flags",[167986,330037,739552,85627]],["string.prototype.matchall>set-function-name",[81814]],["string.prototype.matchall>set-function-name>functions-have-names",[645102]],["string.prototype.matchall>side-channel",[800360]],["string.prototype.matchall>side-channel>side-channel-list",[592227]],["string.prototype.matchall>side-channel>side-channel-map",[344459]],["string.prototype.matchall>side-channel>side-channel-weakmap",[176959]],["stylelint>fastest-levenshtein",[776723]],["ts-mixer",[96481]],["tslib",[92295]],["tweetnacl",[990115]],["unicode-confusables",[531743,531743,531743,531743,531743,540270]],["uri-js",[925475]],["uuid",[106555,112471,123628,123628,16478,299896,301170,38401,485791,516074,585925,620897,621501,659008,659008,739070,761366,834669,834669,849401,921766,921766,923533,951545,951545]],["viem",[109283,133439,170754,176951,17781,181165,181839,181970,203852,242291,248702,284942,288047,294566,299752,348256,367906,380497,387686,392145,46780,476054,494336,499306,538319,541207,547451,583075,586426,598064,60105,602791,626919,640941,665693,697501,741399,745694,753791,778539,826861,842576,886900,89410,897539,906341,91048,922438,950129,953083,95580,991716,992227]],["viem>abitype",[189896,248061,26408,334360,364861,437022,663035,689160,748850,856641,861977,87327,948657]],["web-vitals",[811870]],["webextension-polyfill",[392248,413279,413279]],["webpack>events",[780063,780063,998088]]],e.unenforceable=[121455,121455,20168,20168,20168,20168,20168,20168,20168,20168,201783,201783,201783,201783,236305,236305,245672,245672,245672,245672,245672,245672,245672,337994,337994,337994,337994,337994,337994,337994,343966,343966,343966,343966,343966,343966,343966,371173,371173,383972,383972,383972,383972,383972,383972,383972,400495,400495,400495,400495,400495,400495,400495,439181,439181,440830,440830,440830,440830,440830,440830,446179,446179,490513,490513,490513,490513,490513,490513,490513,492752,492752,531854,531854,531854,531854,531854,531854,531854,588776,588776,588776,588776,588776,588776,588776,619200,619200,623661,623661,623661,623661,623661,623661,623661,638581,638581,638581,638581,638581,638581,638581,639266,639266,639266,639266,639266,639266,639266,639266,639266,667544,667544,667544,667544,667544,667544,667544,667544,667544,685066,685066,685066,685066,685066,685066,685066,68724,68724,68724,68724,68724,68724,705444,705444,715050,715050,715050,715050,715050,715050,715050,733258,733258,733258,733258,733258,733258,733258,744643,744643,744643,744643,744643,744643,744643,74754,74754,762634,762634,762634,762634,762634,762634,762634,792981,792981,792981,792981,792981,792981,792981,794832,794832,801874,801874,833028,901409,901409,901409,901409,901409,901409,901409,902731,902731,902731,902731,950514,950514,950514,950514,950514,950514,950514,950514,960548,960548,960548,960548,960548,960548,960548,980564,980564,980564,980564,980564,980564,980564,999154,999154],e.ctxm=[],e.kch=[110,1105,1122,1290,1309,1312,133,1331,1391,1474,1476,1491,1507,1523,1598,166,1768,1791,1818,1822,1826,1864,1887,1938,2004,2118,2160,2186,2189,2203,2213,2222,2250,229,2317,2370,2445,2449,2514,2584,2598,2638,2664,2669,2710,2721,2747,2776,285,2962,3047,305,308,3139,337,3375,339,3404,343,3602,3740,3756,3785,3809,3885,3931,3956,4016,4052,407,4073,4113,418,425,427,4274,4294,4307,4323,4377,4520,4549,4579,4593,46,4603,461,463,4634,4655,4753,4781,483,4859,4910,497,5087,5098,5151,5175,5250,5297,5337,5350,5404,5407,5454,5458,5466,5593,5657,5671,5680,5762,5796,5925,5964,5981,6023,6053,6091,6115,614,6141,6201,6209,6358,6401,6471,6565,659,6622,6649,6660,670,6723,6802,6828,6906,6915,6994,6996,6998,7064,7091,7098,7115,7133,7145,7160,7202,7219,7356,7449,7480,7514,7547,7555,7614,7651,7679,7755,7899,7962,8015,8034,8063,8093,8359,836,8427,8620,8650,870,8734,8789,8792,8811,887,891,8927,8935,8946,8994,9013,9038,904,9060,9121,9165,9232,9289,9293,9354,9506,9597,9600,9689,9737,9949,9957,9984],e.externals={},e.options={lockdown:{consoleTaming:"unsafe",errorTaming:"unsafe",errorTrapping:"none",localeTaming:"unsafe",overrideTaming:"severe",reporting:"none",stackFiltering:"verbose"},scuttleGlobalThis:{enabled:!0,exceptions:["browser","chrome","btoa","webpackChunk"]}},(()=>{let t={exports:{}};t.exports;let{Object:r,Array:n,Error:a,RegExp:i,Set:s,console:o,Proxy:l,Reflect:u}=globalThis,{assign:c,getOwnPropertyNames:h,getOwnPropertyDescriptor:f,create:m,defineProperty:d}=r,p=function(e,t){return r.getOwnPropertyNames(e).filter(r=>e[r]===t[r]).concat(["Compartment","Error","globalThis"])}(new Compartment().globalThis,globalThis),{isArray:g,from:b}=n,{getPrototypeOf:y}=u,{warn:k}=o;function w(e){return{get:r,set:t};function t(){k(`LavaMoat - property "${e}" of globalThis cannot be set under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}function r(){throw new a(`LavaMoat - property "${e}" of globalThis is inaccessible under scuttling mode. To learn more visit https://github.com/LavaMoat/LavaMoat/pull/360.`)}}function v(e,t=m(null)){let r={enabled:!0,exceptions:[],scuttlerName:""},n=c(m(null),!0===t?r:t,{scuttlerFunc:(e,t)=>t(e)},{exceptions:(t?.exceptions||r.exceptions).map(e=>s(e))});if(n.scuttlerName){if(!e[n.scuttlerName])throw new a(`LavaMoat - 'scuttlerName' function "${n.scuttlerName}" expected on globalRef.To learn more visit https://github.com/LavaMoat/LavaMoat/pull/462.`);n.scuttlerFunc=e[n.scuttlerName]}return n;function s(e){if(!e.startsWith("/"))return e;let t=e.split("/");return new i(t.slice(1,-1).join("/"),t[t.length-1])}}function _(e,t=[]){let r=[];E(e).forEach(e=>r.push(...h(e)));let n=new s([...p,...t]),a=m(null);r.forEach(t=>{let{get:r,set:i}=w(t);if(S(n,t))return;let s=f(e,t);if(s?.configurable===!0)s={configurable:!1,set:i,get:r};else{if(s?.writable!==!0)return;s={configurable:!1,writable:!1,value:new l(a,{getPrototypeOf:r,get:r,set:i})}}d(e,t,s)})}let S=(e,t)=>b(e).some(e=>"string"==typeof e&&e===t||e instanceof i&&e.test(t));function E(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=y(r);return t}t.exports={scuttle:function(e,t){let r=v(e,t);if(r.enabled){if(!g(r.exceptions))throw new a(`LavaMoat - exceptions must be an array, got ${typeof r.exceptions}`);r.scuttlerFunc(e,e=>_(e,r.exceptions))}}},e.scuttling=t.exports})(),e.policy={resources:{"@babel/runtime":{globals:{regeneratorRuntime:"write"}},"@emotion/react":{globals:{HTMLElement:!0,"document.querySelector":!0},packages:{"@babel/runtime":!0,"@emotion/react>@emotion/cache":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":!0,"@emotion/react>@emotion/utils":!0,"@emotion/react>@emotion/weak-memoize":!0,react:!0,"react-redux>hoist-non-react-statics":!0}},"@emotion/react>@emotion/cache":{globals:{"document.head":!0,"document.querySelectorAll":!0},packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0,"@emotion/react>@emotion/cache>@emotion/sheet":!0,"@emotion/react>@emotion/cache>stylis":!0,"@emotion/react>@emotion/weak-memoize":!0}},"@emotion/react>@emotion/cache>@emotion/sheet":{globals:{"document.createElement":!0,"document.createTextNode":!0,"document.styleSheets":!0}},"@emotion/react>@emotion/serialize":{packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0,"@emotion/react>@emotion/serialize>@emotion/hash":!0,"@emotion/react>@emotion/serialize>@emotion/unitless":!0}},"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":{packages:{react:!0}},"@emotion/styled":{packages:{"@babel/runtime":!0,"@emotion/react":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/react>@emotion/use-insertion-effect-with-fallbacks":!0,"@emotion/react>@emotion/utils":!0,"@emotion/styled>@emotion/is-prop-valid":!0,react:!0}},"@emotion/styled>@emotion/is-prop-valid":{packages:{"@emotion/react>@emotion/cache>@emotion/memoize":!0}},"@ensdomains/content-hash":{globals:{"Buffer.from":!0,"console.warn":!0},packages:{"@ensdomains/content-hash>cids":!0,"@ensdomains/content-hash>js-base64":!0,"@ensdomains/content-hash>multicodec":!0,"@ensdomains/content-hash>multihashes":!0,"@ensdomains/content-hash>multihashes>buffer":!0}},"@ensdomains/content-hash>cids":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>cids>multihashes":!0,"@ensdomains/content-hash>cids>uint8arrays":!0,"@ensdomains/content-hash>multicodec":!0}},"@ensdomains/content-hash>cids>multibase":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase>@multiformats/base-x":!0}},"@ensdomains/content-hash>cids>multihashes":{packages:{"@ensdomains/content-hash>cids>multibase":!0,"@ensdomains/content-hash>cids>multihashes>uint8arrays":!0,"@ensdomains/content-hash>cids>multihashes>varint":!0}},"@ensdomains/content-hash>cids>multihashes>uint8arrays":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@ensdomains/content-hash>cids>uint8arrays":{globals:{TextDecoder:!0},packages:{"@ensdomains/content-hash>cids>multibase":!0}},"@ensdomains/content-hash>js-base64":{globals:{Base64:"write",Buffer:!0,TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0,define:!0},packages:{buffer:!0}},"@ensdomains/content-hash>multicodec":{packages:{"@ensdomains/content-hash>multicodec>uint8arrays":!0,"sass-embedded>varint":!0}},"@ensdomains/content-hash>multicodec>uint8arrays":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/assets-controllers>multiformats":!0}},"@ensdomains/content-hash>multihashes":{packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>multibase":!0,"@ensdomains/content-hash>multihashes>varint":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>multihashes>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@ensdomains/content-hash>multihashes>multibase":{packages:{"@ensdomains/content-hash>multihashes>buffer":!0,"@ensdomains/content-hash>multihashes>multibase>base-x":!0,"@ensdomains/content-hash>multihashes>web-encoding":!0}},"@ensdomains/content-hash>multihashes>multibase>base-x":{packages:{"mockttp>express>safe-buffer":!0}},"@ensdomains/content-hash>multihashes>web-encoding":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"browserify>util":!0}},"@ethereumjs/tx":{packages:{"@ethereumjs/tx>@ethereumjs/common":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ethereumjs/tx>ethereum-cryptography":!0}},"@ethereumjs/tx>@ethereumjs/common":{packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"webpack>events":!0}},"@ethereumjs/tx>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@ethereumjs/tx>@ethereumjs/util":{globals:{"console.warn":!0,fetch:!0},packages:{"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>ethereum-cryptography>@noble/curves":!0,"webpack>events":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@ethereumjs/tx>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":!0}},"@ethereumjs/tx>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@ethersproject/abi":{globals:{"console.log":!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"@ethersproject/bignumber":{packages:{"@ethersproject/bytes":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/logger":!0}},"@ethersproject/bytes":{packages:{"ethers>@ethersproject/logger":!0}},"@ethersproject/contracts":{globals:{setTimeout:!0},packages:{"@ethersproject/abi":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"@ethersproject/hdnode":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/wordlists":!0}},"@ethersproject/providers":{globals:{WebSocket:!0,clearInterval:!0,clearTimeout:!0,"console.log":!0,"console.warn":!0,setInterval:!0,setTimeout:!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/providers>bech32":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/networks":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/web":!0}},"@ethersproject/transactions":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/signing-key":!0}},"@google/genai>protobufjs":{globals:{process:!0,setTimeout:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0,"@google/genai>protobufjs>@protobufjs/base64":!0,"@google/genai>protobufjs>@protobufjs/codegen":!0,"@google/genai>protobufjs>@protobufjs/eventemitter":!0,"@google/genai>protobufjs>@protobufjs/fetch":!0,"@google/genai>protobufjs>@protobufjs/float":!0,"@google/genai>protobufjs>@protobufjs/path":!0,"@google/genai>protobufjs>@protobufjs/pool":!0,"@google/genai>protobufjs>@protobufjs/utf8":!0,"@google/genai>protobufjs>long":!0}},"@google/genai>protobufjs>@protobufjs/codegen":{globals:{"console.log":!0}},"@google/genai>protobufjs>@protobufjs/fetch":{globals:{XMLHttpRequest:!0},packages:{"@google/genai>protobufjs>@protobufjs/aspromise":!0}},"@google/genai>protobufjs>long":{globals:{"WebAssembly.Instance":!0,"WebAssembly.Module":!0,define:!0}},"@hello-pangea/dnd":{globals:{"Element.prototype":!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,addEventListener:!0,cancelAnimationFrame:!0,clearTimeout:!0,console:!0,document:!0,getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0,removeEventListener:!0,requestAnimationFrame:!0,scrollBy:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@hello-pangea/dnd>css-box-model":!0,"@hello-pangea/dnd>memoize-one":!0,"@hello-pangea/dnd>raf-schd":!0,"@hello-pangea/dnd>use-memo-one":!0,react:!0,"react-dom":!0,"react-redux":!0,redux:!0}},"@hello-pangea/dnd>css-box-model":{globals:{getComputedStyle:!0,pageXOffset:!0,pageYOffset:!0},packages:{"@hello-pangea/dnd>css-box-model>tiny-invariant":!0}},"@hello-pangea/dnd>raf-schd":{globals:{cancelAnimationFrame:!0,requestAnimationFrame:!0}},"@hello-pangea/dnd>use-memo-one":{packages:{react:!0}},"@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,"@metamask/eth-qr-keyring>hdkey":!0,buffer:!0,uuid:!0}},"@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,buffer:!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,tslib:!0}},"@lavamoat/lavadome-react":{globals:{Array:!0,Clipboard:!0,Document:!0,DocumentFragment:!0,Element:!0,Event:!0,EventTarget:!0,Function:!0,JSON:!0,NavigateEvent:!0,NavigationDestination:!0,Node:!0,Number:!0,Object:!0,String:!0,Weakmap:!0,"console.warn":!0,document:!0,navigation:!0},packages:{react:!0}},"@ledgerhq/errors":{globals:{"console.warn":!0}},"@ledgerhq/hw-app-eth>@ledgerhq/logs":{globals:{__ledgerLogsListen:"write","console.error":!0}},"@ledgerhq/hw-transport":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,"console.warn":!0,setTimeout:!0},packages:{"@ledgerhq/errors":!0,"@ledgerhq/hw-app-eth>@ledgerhq/logs":!0,buffer:!0,"webpack>events":!0}},"@metamask/7715-permission-types":{packages:{"@metamask/delegation-core":!0,"@metamask/utils":!0}},"@metamask/abi-utils":{packages:{"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/account-api":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-utils":!0}},"@metamask/account-tree-controller":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/account-api":!0,"@metamask/accounts-controller":!0,"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"eslint>fast-deep-equal":!0}},"@metamask/accounts-controller":{globals:{"console.warn":!0},packages:{"@metamask/accounts-controller>ethereum-cryptography":!0,"@metamask/base-controller":!0,"@metamask/eth-snap-keyring":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-sdk":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/accounts-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/accounts-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/address-book-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0}},"@metamask/analytics-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/announcement-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/approval-controller":{globals:{"console.info":!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,nanoid:!0}},"@metamask/assets-controller":{globals:{clearInterval:!0,clearTimeout:!0,"console.error":!0,"fetch.bind":!0,"performance.now":!0,"performance.timeOrigin":!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/abi":!0,"@ethersproject/providers":!0,"@metamask/assets-controller>bignumber.js":!0,"@metamask/assets-controller>p-limit":!0,"@metamask/assets-controllers":!0,"@metamask/base-controller":!0,"@metamask/client-controller":!0,"@metamask/controller-utils":!0,"@metamask/core-backend":!0,"@metamask/keyring-snap-client":!0,"@metamask/phishing-controller":!0,"@metamask/polling-controller":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,lodash:!0}},"@metamask/assets-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/assets-controller>p-limit":{packages:{"@metamask/assets-controller>p-limit>yocto-queue":!0}},"@metamask/assets-controllers":{globals:{AbortController:!0,URL:!0,URLSearchParams:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/account-api":!0,"@metamask/assets-controllers>@metamask/abi-utils":!0,"@metamask/assets-controllers>@tanstack/query-core":!0,"@metamask/assets-controllers>multiformats":!0,"@metamask/assets-controllers>single-call-balance-checker-abi":!0,"@metamask/base-controller":!0,"@metamask/contract-metadata":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/core-backend":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/metamask-eth-abis":!0,"@metamask/phishing-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/address":!0,immer:!0,lodash:!0,reselect:!0,uuid:!0}},"@metamask/assets-controllers>@metamask/abi-utils":{packages:{"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/assets-controllers>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/assets-controllers>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,"console.error":!0,document:!1,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@metamask/assets-controllers>multiformats":{globals:{TextDecoder:!0,TextEncoder:!0,"console.warn":!0,"crypto.subtle.digest":!0}},"@metamask/authenticated-user-storage":{globals:{fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0}},"@metamask/base-controller":{globals:{"console.error":!0},packages:{immer:!0}},"@metamask/bridge-controller":{globals:{AbortController:!0,"Buffer.from":!0,TextDecoder:!0,URLSearchParams:!0,"console.error":!0,"console.log":!0,"console.warn":!0},packages:{"@ethersproject/bignumber":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/bridge-controller>@metamask/multichain-network-controller":!0,"@metamask/bridge-controller>bignumber.js":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/metamask-eth-abis":!0,"@metamask/multichain-network-controller":!0,"@metamask/polling-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,buffer:!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/constants":!0,lodash:!0,reselect:!0,uuid:!0}},"@metamask/bridge-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/bridge-status-controller":{globals:{URLSearchParams:!0,clearInterval:!0,"console.error":!0,"console.warn":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/bridge-controller":!0,"@metamask/bridge-status-controller>bignumber.js":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/polling-controller":!0,"@metamask/snaps-controllers":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/bridge-status-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/browser-passworder":{globals:{"Buffer.from":!0,CryptoKey:!0,btoa:!0,"crypto.getRandomValues":!0,"crypto.subtle.decrypt":!0,"crypto.subtle.deriveKey":!0,"crypto.subtle.encrypt":!0,"crypto.subtle.exportKey":!0,"crypto.subtle.importKey":!0},packages:{"@metamask/utils":!0,buffer:!0}},"@metamask/chain-agnostic-permission":{packages:{"@metamask/chain-agnostic-permission>@metamask/api-specs":!0,"@metamask/controller-utils":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/claims-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/client-controller":{packages:{"@metamask/base-controller":!0}},"@metamask/client-utils":{globals:{"Intl.DateTimeFormat":!0,"Intl.NumberFormat":!0},packages:{"@metamask/contract-metadata":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,"eth-chainlist":!0}},"@metamask/compliance-controller":{globals:{URL:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/superstruct":!0,reselect:!0}},"@metamask/config-registry-controller":{globals:{fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/connectivity-controller":{packages:{"@metamask/base-controller":!0,reselect:!0}},"@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/abi":!0,"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"@metamask/utils":!0,buffer:!0,cockatiel:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/controller-utils>@metamask/eth-query":{packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"browserify>xtend":!0}},"@metamask/controller-utils>@metamask/ethjs-unit":{packages:{"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"ethereumjs-util>bn.js":!0}},"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0,"ethereumjs-util>bn.js":!0}},"@metamask/controller-utils>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0,"@noble/hashes":!0}},"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":{packages:{buffer:!0}},"@metamask/core-backend":{globals:{URL:!0,WebSocket:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils":!0,"@metamask/core-backend>@tanstack/query-core":!0,"@metamask/utils":!0,cockatiel:!0,uuid:!0}},"@metamask/core-backend>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,"console.error":!0,document:!1,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@metamask/delegation-controller":{packages:{"@metamask/base-controller":!0,"@metamask/keyring-controller":!0,"@metamask/utils":!0}},"@metamask/delegation-core":{packages:{"@metamask/abi-utils":!0,"@metamask/utils":!0,"@noble/hashes":!0}},"@metamask/design-system-react":{globals:{"console.warn":!0,"document.addEventListener":!0,"document.body":!0,"document.removeEventListener":!0},packages:{"@metamask/design-system-react>@radix-ui/react-slot":!0,"@metamask/design-system-react>blo":!0,"@metamask/design-system-react>tailwind-merge":!0,"@metamask/design-system-shared":!0,"@metamask/jazzicon":!0,react:!0,"react-dom":!0,"react-focus-lock":!0}},"@metamask/design-system-react>@radix-ui/react-slot":{packages:{"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":!0,react:!0}},"@metamask/design-system-react>@radix-ui/react-slot>@radix-ui/react-compose-refs":{packages:{react:!0}},"@metamask/design-system-react>blo":{globals:{btoa:!0}},"@metamask/design-system-shared":{packages:{"@metamask/utils":!0,react:!0}},"@metamask/eip-5792-middleware":{packages:{"@metamask/eip-5792-middleware>@metamask/transaction-controller":!0,"@metamask/keyring-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0,uuid:!0}},"@metamask/eip-7702-internal-rpc-middleware":{packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/eth-hd-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-hd-keyring>ethereum-cryptography":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/scure-bip39":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":{packages:{"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0,"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":!0}},"@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-json-rpc-filters":{globals:{"console.error":!0},packages:{"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/json-rpc-engine":!0,"@metamask/safe-event-emitter":!0,"async-mutex":!0,pify:!0}},"@metamask/eth-json-rpc-middleware":{globals:{TextEncoder:!0},packages:{"@metamask/eth-sig-util":!0,"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0}},"@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,nanoid:!0}},"@metamask/eth-ledger-bridge-keyring":{globals:{addEventListener:!0,"document.createElement":!0,"document.head.appendChild":!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ledgerhq/hw-transport":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-sig-util":!0,"@metamask/hw-wallet-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-money-keyring":{packages:{"@metamask/eth-money-keyring>@metamask/eth-hd-keyring":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk":!0,"@metamask/keyring-api":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/eth-money-keyring>@metamask/eth-hd-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32":!0,"@metamask/eth-sig-util":!0,"@metamask/scure-bip39":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk":{packages:{"@ethereumjs/tx":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>uuid":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32":{packages:{"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":!0,"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32>@scure/base":!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>ethereum-cryptography>@scure/bip32>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-money-keyring>@metamask/keyring-sdk>uuid":{globals:{crypto:!0}},"@metamask/eth-qr-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-qr-keyring>uuid":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth":{globals:{"Buffer.from":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":!0,"@metamask/eth-qr-keyring>hdkey":!0,buffer:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":!0,buffer:!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>@keystonehq/bc-ur-registry":{globals:{Buffer:!0,define:!0},packages:{"@ngraveio/bc-ur":!0,buffer:!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,tslib:!0}},"@metamask/eth-qr-keyring>@keystonehq/bc-ur-registry-eth>uuid":{globals:{crypto:!0,msCrypto:!0}},"@metamask/eth-qr-keyring>hdkey":{packages:{"@ngraveio/bc-ur>assert":!0,"crypto-browserify":!0,"ethereumjs-util>create-hash>ripemd160":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0,"mockttp>express>safe-buffer":!0}},"@metamask/eth-qr-keyring>uuid":{globals:{crypto:!0}},"@metamask/eth-sig-util":{globals:{"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0},packages:{"@metamask/abi-utils":!0,"@metamask/eth-sig-util>@ethereumjs/rlp":!0,"@metamask/eth-sig-util>@ethereumjs/util":!0,"@metamask/eth-sig-util>@scure/base":!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,"@metamask/utils":!0,buffer:!0,tweetnacl:!0}},"@metamask/eth-sig-util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"@metamask/eth-sig-util>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{"@metamask/eth-sig-util>@ethereumjs/rlp":!0,"@metamask/eth-sig-util>ethereum-cryptography":!0,buffer:!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"@metamask/eth-sig-util>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/eth-sig-util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":!0,"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":!0}},"@metamask/eth-sig-util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/eth-snap-keyring":{globals:{URL:!0,"console.error":!0,"console.info":!0,"console.warn":!0},packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":!0,"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":!0,"@metamask/eth-snap-keyring>uuid":!0,"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-sdk":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-internal-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/keyring-utils":!0}},"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":{packages:{"@metamask/superstruct":!0}},"@metamask/eth-snap-keyring>uuid":{globals:{crypto:!0}},"@metamask/eth-token-tracker":{globals:{"console.warn":!0},packages:{"@babel/runtime":!0,"@ethersproject/bignumber":!0,"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/eth-token-tracker>@metamask/eth-block-tracker":!0,"@metamask/eth-token-tracker>deep-equal":!0,"@metamask/safe-event-emitter":!0,"ethereumjs-util>bn.js":!0,"human-standard-token-abi":!0}},"@metamask/eth-token-tracker>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/eth-token-tracker>deep-equal":{packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator":!0,"@metamask/eth-token-tracker>deep-equal>is-date-object":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":!0,"@metamask/eth-token-tracker>deep-equal>which-collection":!0,"@ngraveio/bc-ur>assert>object-is":!0,"browserify>util>is-arguments":!0,"browserify>util>which-typed-array":!0,"gulp>vinyl-fs>object.assign":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>es-abstract>array-buffer-byte-length":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0,"string.prototype.matchall>es-abstract>is-regex":!0,"string.prototype.matchall>es-abstract>is-shared-array-buffer":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>regexp.prototype.flags":!0,"string.prototype.matchall>side-channel":!0}},"@metamask/eth-token-tracker>deep-equal>es-get-iterator":{globals:{process:!0},packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"browserify>util>is-arguments":!0,"eslint-plugin-react>array-includes>is-string":!0,process:!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>es-abstract>is-set":!0,"string.prototype.matchall>es-abstract>stop-iteration-iterator":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>has-symbols":!0}},"@metamask/eth-token-tracker>deep-equal>is-date-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive":{packages:{"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":!0,"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":!0,"eslint-plugin-react>array-includes>is-string":!0,"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-bigint":{packages:{"string.prototype.matchall>es-abstract>unbox-primitive>has-bigints":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-boolean-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-boxed-primitive>is-number-object":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection":{packages:{"@metamask/eth-token-tracker>deep-equal>es-get-iterator>is-map":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakmap":!0,"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":!0,"string.prototype.matchall>es-abstract>is-set":!0}},"@metamask/eth-token-tracker>deep-equal>which-collection>is-weakset":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"@metamask/eth-trezor-keyring":{globals:{"Buffer.from":!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-qr-keyring>hdkey":!0,"@metamask/eth-sig-util":!0,"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":!0,"@metamask/hw-wallet-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/eth-trezor-keyring>@trezor/connect-plugin-ethereum":{packages:{"@metamask/eth-sig-util":!0,tslib:!0}},"@metamask/etherscan-link":{globals:{URL:!0}},"@metamask/gas-fee-controller":{globals:{clearInterval:!0,"console.error":!0,setInterval:!0},packages:{"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"ethereumjs-util>bn.js":!0,uuid:!0}},"@metamask/gator-permissions-controller":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/delegation-core":!0,"@metamask/delegation-deployments":!0,"@metamask/gator-permissions-controller>@metamask/abi-utils":!0,"@metamask/gator-permissions-controller>@metamask/transaction-controller":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0}},"@metamask/gator-permissions-controller>@metamask/abi-utils":{packages:{"@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/gator-permissions-controller>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/geolocation-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0}},"@metamask/jazzicon":{globals:{"document.createElement":!0,"document.createElementNS":!0},packages:{"@metamask/jazzicon>color":!0,"@metamask/jazzicon>mersenne-twister":!0}},"@metamask/jazzicon>color":{packages:{"@metamask/jazzicon>color>clone":!0,"@metamask/jazzicon>color>color-convert":!0,"@metamask/jazzicon>color>color-string":!0}},"@metamask/jazzicon>color>clone":{globals:{Buffer:!0},packages:{buffer:!0}},"@metamask/jazzicon>color>color-convert":{packages:{"@metamask/jazzicon>color>color-convert>color-name":!0}},"@metamask/jazzicon>color>color-string":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"@metamask/json-rpc-engine":{packages:{"@metamask/json-rpc-engine>klona":!0,"@metamask/messenger":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"deep-freeze-strict":!0}},"@metamask/json-rpc-middleware-stream":{globals:{"console.warn":!0,setTimeout:!0},packages:{"@metamask/json-rpc-middleware-stream>readable-stream":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/json-rpc-middleware-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/keyring-api":{packages:{"@metamask/keyring-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"bitcoin-address-validation":!0}},"@metamask/keyring-controller":{globals:{"console.error":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/base-controller":!0,"@metamask/eth-hd-keyring":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring":!0,"@metamask/keyring-controller>ethereumjs-wallet":!0,"@metamask/keyring-controller>ulid":!0,"@metamask/utils":!0,"async-mutex":!0,lodash:!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":!0,"@metamask/keyring-sdk":!0,"@metamask/utils":!0,buffer:!0,"crypto-browserify>randombytes":!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/keyring-controller>@metamask/eth-simple-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/keyring-controller>ethereumjs-wallet":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":!0,"@metamask/keyring-controller>ethereumjs-wallet>utf8":!0,buffer:!0,"crypto-browserify":!0,"crypto-browserify>randombytes":!0,"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0,uuid:!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>assert":!0,buffer:!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>ethereum-cryptography>bs58check":!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0,"ethers>@ethersproject/sha2>hash.js":!0,"mockttp>express>safe-buffer":!0}},"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util":{globals:{Buffer:!0},packages:{"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography":!0,"@ngraveio/bc-ur>assert":!0,buffer:!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>rlp":!0}},"@metamask/keyring-controller>ulid":{globals:{"console.error":!0,crypto:!0,require:!0}},"@metamask/keyring-internal-api":{packages:{"@metamask/keyring-api":!0,"@metamask/superstruct":!0}},"@metamask/keyring-sdk":{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@ethereumjs/tx":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-api":!0,"@metamask/keyring-sdk>ethereum-cryptography":!0,"@metamask/keyring-sdk>uuid":!0,"@metamask/keyring-utils":!0,"@metamask/scure-bip39":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/hashes":!0,"async-mutex":!0}},"@metamask/keyring-sdk>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":!0}},"@metamask/keyring-sdk>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/keyring-sdk>uuid":{globals:{crypto:!0}},"@metamask/keyring-snap-client":{packages:{"@metamask/keyring-api":!0,"@metamask/keyring-snap-client>uuid":!0,"@metamask/keyring-utils":!0,"@metamask/superstruct":!0}},"@metamask/keyring-snap-client>uuid":{globals:{crypto:!0}},"@metamask/keyring-utils":{globals:{URL:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"bitcoin-address-validation":!0}},"@metamask/logging-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/logo":{globals:{addEventListener:!0,"document.body.appendChild":!0,"document.createElementNS":!0,innerHeight:!0,innerWidth:!0,requestAnimationFrame:!0},packages:{"@metamask/logo>gl-mat4":!0,"@metamask/logo>gl-vec3":!0}},"@metamask/message-manager":{globals:{"Buffer.from":!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,buffer:!0,uuid:!0,"webpack>events":!0}},"@metamask/message-manager>jsonschema":{packages:{"browserify>url":!0}},"@metamask/messenger":{globals:{"console.error":!0}},"@metamask/mobile-wallet-protocol-core":{globals:{"Buffer.from":!0,"console.warn":!0,setImmediate:!0,setTimeout:!0},packages:{"@metamask/mobile-wallet-protocol-core>centrifuge":!0,"@metamask/mobile-wallet-protocol-core>eventemitter3":!0,"@metamask/mobile-wallet-protocol-core>uuid":!0,"async-mutex":!0,buffer:!0,"core-js-pure":!0}},"@metamask/mobile-wallet-protocol-core>centrifuge":{globals:{AbortController:!1,Event:!1,EventSource:!1,EventTarget:!1,MessageEvent:!1,ReadableStream:!1,SockJS:!1,SuppressedError:!1,TextDecoder:!0,TextEncoder:!0,URL:!1,WebSocket:!0,WebTransport:!1,addEventListener:!0,clearTimeout:!0,console:!1,"console.warn":!0,document:!1,fetch:!1,localStorage:!1,setTimeout:!0}},"@metamask/mobile-wallet-protocol-core>uuid":{globals:{crypto:!0}},"@metamask/mobile-wallet-protocol-dapp-client":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/mobile-wallet-protocol-core":!0,"@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils":!0,"@metamask/mobile-wallet-protocol-dapp-client>uuid":!0}},"@metamask/mobile-wallet-protocol-dapp-client>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@scure/base":!0,buffer:!0}},"@metamask/mobile-wallet-protocol-dapp-client>uuid":{globals:{crypto:!0}},"@metamask/money-account-api-data-service":{globals:{URL:!0,fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,cockatiel:!0}},"@metamask/money-account-balance-service":{globals:{URL:!0,fetch:!0},packages:{"@ethersproject/contracts":!0,"@ethersproject/providers":!0,"@metamask/controller-utils":!0,"@metamask/metamask-eth-abis":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,cockatiel:!0}},"@metamask/money-account-controller":{globals:{"console.warn":!0},packages:{"@metamask/accounts-controller":!0,"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring":{packages:{"@metamask/keyring-api":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring":!0,"@metamask/superstruct":!0,"async-mutex":!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,TextEncoder:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/eth-sig-util":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":!0,"@metamask/scure-bip39":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/utils":!0,buffer:!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32":{packages:{"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/curves":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@noble/hashes":!0,"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":!0}},"@metamask/money-account-controller>@metamask/eth-money-keyring>@metamask/eth-hd-keyring>ethereum-cryptography>@scure/bip32>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/money-account-utils":{packages:{"@ethersproject/abi":!0,"@ethersproject/contracts":!0,"@metamask/transaction-controller":!0}},"@metamask/multichain-account-service":{globals:{clearTimeout:!0,"console.error":!0,"console.warn":!0,"performance.now":!0,setTimeout:!0},packages:{"@ethereumjs/tx>@ethereumjs/util":!0,"@metamask/account-api":!0,"@metamask/eth-snap-keyring":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/keyring-snap-client":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/multichain-api-middleware":{globals:{"console.error":!0},packages:{"@metamask/chain-agnostic-permission":!0,"@metamask/controller-utils":!0,"@metamask/eth-json-rpc-filters":!0,"@metamask/json-rpc-engine":!0,"@metamask/message-manager>jsonschema":!0,"@metamask/multichain-api-middleware>@metamask/api-specs":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0,"@open-rpc/schema-utils-js":!0}},"@metamask/multichain-network-controller":{globals:{URL:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/multichain-network-controller>@metamask/keyring-api":!0,"@metamask/network-controller":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/multichain-transactions-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-api":!0,"@metamask/keyring-snap-client":!0,"@metamask/snaps-utils":!0}},"@metamask/name-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/name-controller>@metamask/controller-utils":!0,"@metamask/utils":!0,"async-mutex":!0}},"@metamask/name-controller>@metamask/controller-utils":{globals:{"Buffer.from":!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/utils":!0,buffer:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/network-connection-banner-controller":{globals:{clearTimeout:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/client-controller":!0,"@metamask/connectivity-controller":!0,"@metamask/network-controller":!0,"@metamask/network-enablement-controller":!0,"@metamask/utils":!0,reselect:!0}},"@metamask/network-controller":{globals:{"Intl.NumberFormat":!0,URL:!0,"btoa.bind":!0,"fetch.bind":!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/connectivity-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/eth-json-rpc-provider":!0,"@metamask/json-rpc-engine":!0,"@metamask/network-controller>@metamask/eth-block-tracker":!0,"@metamask/network-controller>@metamask/eth-json-rpc-infura":!0,"@metamask/network-controller>@metamask/eth-json-rpc-middleware":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0,"@metamask/remote-feature-flag-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"addons-linter>deepmerge":!0,cockatiel:!0,"eslint>fast-deep-equal":!0,immer:!0,lodash:!0,reselect:!0,"uri-js":!0,uuid:!0}},"@metamask/network-controller>@metamask/eth-block-tracker":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/ppom-validator>json-rpc-random-id":!0,"@metamask/safe-event-emitter":!0,"@metamask/utils":!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura":{globals:{fetch:!0,setTimeout:!0},packages:{"@metamask/json-rpc-engine":!0,"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider":{packages:{"@metamask/json-rpc-engine":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,uuid:!0}},"@metamask/network-controller>@metamask/eth-json-rpc-middleware":{globals:{setTimeout:!0},packages:{"@metamask/eth-json-rpc-middleware>safe-stable-stringify":!0,"@metamask/json-rpc-engine>klona":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/network-enablement-controller":{packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-api":!0,"@metamask/multichain-network-controller":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/utils":!0,reselect:!0}},"@metamask/notification-services-controller":{globals:{"Intl.NumberFormat":!0,addEventListener:!0,"console.error":!0,fetch:!0,registration:!0,removeEventListener:!0},packages:{"@metamask/authenticated-user-storage":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":!0,"@metamask/notification-services-controller>bignumber.js":!0,"@metamask/notification-services-controller>firebase":!0,"@metamask/utils":!0,lodash:!0,loglevel:!0,semver:!0,uuid:!0}},"@metamask/notification-services-controller>@contentful/rich-text-html-renderer":{globals:{SuppressedError:!0}},"@metamask/notification-services-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/notification-services-controller>firebase":{packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/messaging":!0}},"@metamask/notification-services-controller>firebase>@firebase/app":{globals:{FinalizationRegistry:!0,"console.warn":!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":{packages:{"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger":{globals:{console:!0}},"@metamask/notification-services-controller>firebase>@firebase/app>idb":{globals:{DOMException:!0,IDBCursor:!0,IDBDatabase:!0,IDBIndex:!0,IDBObjectStore:!0,IDBRequest:!0,IDBTransaction:!0,"indexedDB.deleteDatabase":!0,"indexedDB.open":!0}},"@metamask/notification-services-controller>firebase>@firebase/installations":{globals:{BroadcastChannel:!0,Headers:!0,btoa:!0,"console.error":!0,crypto:!0,fetch:!0,msCrypto:!0,"navigator.onLine":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/messaging":{globals:{Headers:!0,"Notification.maxActions":!0,"Notification.permission":!0,"Notification.requestPermission":!0,PushManager:!0,"PushSubscription.prototype.hasOwnProperty":!0,ServiceWorkerRegistration:!0,URL:!0,addEventListener:!0,atob:!0,btoa:!0,clearTimeout:!0,"clients.matchAll":!0,"clients.openWindow":!0,"console.warn":!0,document:!0,fetch:!0,indexedDB:!0,"location.href":!0,"location.origin":!0,navigator:!0,"origin.replace":!0,"registration.showNotification":!0,setTimeout:!0},packages:{"@metamask/notification-services-controller>firebase>@firebase/app":!0,"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component":!0,"@metamask/notification-services-controller>firebase>@firebase/app>idb":!0,"@metamask/notification-services-controller>firebase>@firebase/installations":!0,"@metamask/notification-services-controller>firebase>@firebase/util":!0}},"@metamask/notification-services-controller>firebase>@firebase/util":{globals:{WorkerGlobalScope:!0,atob:!0,browser:!0,btoa:!0,chrome:!0,console:!0,document:!0,indexedDB:!0,navigator:!0,process:!0,setTimeout:!0},packages:{process:!0}},"@metamask/object-multiplex":{globals:{"console.warn":!0},packages:{"@metamask/object-multiplex>once":!0,"@metamask/object-multiplex>readable-stream":!0}},"@metamask/object-multiplex>once":{packages:{"@metamask/object-multiplex>once>wrappy":!0}},"@metamask/object-multiplex>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/obs-store":{packages:{"@metamask/obs-store>readable-stream":!0,"@metamask/safe-event-emitter":!0}},"@metamask/obs-store>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/passkey-controller":{globals:{TextDecoder:!0,TextEncoder:!0,"crypto.subtle.importKey":!0,"crypto.subtle.verify":!0},packages:{"@metamask/base-controller":!0,"@metamask/passkey-controller>@levischuck/tiny-cbor":!0,"@metamask/utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"async-mutex":!0}},"@metamask/passkey-controller>@levischuck/tiny-cbor":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/permission-controller":{globals:{"console.error":!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/json-rpc-engine":!0,"@metamask/messenger":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0,"deep-freeze-strict":!0,immer:!0,nanoid:!0}},"@metamask/permission-log-controller":{packages:{"@metamask/base-controller":!0,"@metamask/utils":!0}},"@metamask/perps-controller":{globals:{AbortController:!0,URLSearchParams:!0,clearInterval:!0,clearTimeout:!0,fetch:!0,"performance.now":!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/perps-controller>@metamask/abi-utils":!0,"@metamask/perps-controller>@nktkas/hyperliquid":!0,"@metamask/perps-controller>bignumber.js":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/perps-controller>@metamask/abi-utils":{packages:{"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":!0,"@metamask/superstruct":!0}},"@metamask/perps-controller>@metamask/abi-utils>@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,"nock>debug":!0,semver:!0}},"@metamask/perps-controller>@nktkas/hyperliquid":{globals:{AbortController:!0,AbortSignal:!0,CustomEvent:!0,DOMException:!0,DecompressionStream:!0,Event:!0,EventTarget:!0,Headers:!0,Response:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,atob:!0,clearInterval:!0,clearTimeout:!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":!0,"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":!0,"@metamask/perps-controller>@nktkas/hyperliquid>valibot":!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@nktkas/rews":{globals:{AbortController:!0,Blob:!0,CloseEvent:!0,DOMException:!0,Event:!0,EventTarget:!0,MessageEvent:!0,TextEncoder:!0,URL:!0,WebSocket:!0,clearTimeout:!0,setTimeout:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/perps-controller>@nktkas/hyperliquid>valibot":{globals:{Blob:!0,File:!0,"Intl.Segmenter":!0,TextEncoder:!0,URL:!0}},"@metamask/perps-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/phishing-controller":{globals:{TextEncoder:!0,URL:!0,"console.error":!0,"console.warn":!0,fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/phishing-controller>ethereum-cryptography":!0,"@metamask/transaction-controller":!0,"@noble/hashes":!0,punycode:!0,"stylelint>fastest-levenshtein":!0}},"@metamask/phishing-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/phishing-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/polling-controller":{globals:{clearTimeout:!0,"console.error":!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"fast-json-stable-stringify":!0,uuid:!0}},"@metamask/post-message-stream":{globals:{"MessageEvent.prototype":!0,WorkerGlobalScope:!0,addEventListener:!0,browser:!0,chrome:!0,"location.origin":!0,postMessage:!0,removeEventListener:!0},packages:{"@metamask/post-message-stream>readable-stream":!0,"@metamask/utils":!0}},"@metamask/post-message-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/ppom-validator":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,crypto:!0},packages:{"@metamask/base-controller":!0,"@metamask/ppom-validator>@metamask/controller-utils":!0,"@metamask/ppom-validator>await-semaphore":!0,"@metamask/ppom-validator>crypto-js":!0,"@metamask/ppom-validator>json-rpc-random-id":!0,"@toruslabs/eccrypto>elliptic":!0,buffer:!0}},"@metamask/ppom-validator>@metamask/controller-utils":{globals:{"Buffer.from":!0,URL:!0,"console.error":!0,fetch:!0,setTimeout:!0},packages:{"@metamask/controller-utils>@metamask/ethjs-unit":!0,"@metamask/controller-utils>@spruceid/siwe-parser":!0,"@metamask/utils":!0,buffer:!0,cockatiel:!0,"eslint>fast-deep-equal":!0,"eth-ens-namehash":!0,"ethereumjs-util>bn.js":!0,lodash:!0}},"@metamask/ppom-validator>await-semaphore":{globals:{process:!0,setImmediate:!0},packages:{"core-js-pure":!0,process:!0}},"@metamask/ppom-validator>crypto-js":{globals:{crypto:!0,define:!0,msCrypto:!0}},"@metamask/profile-metrics-controller":{globals:{URL:!0,"console.error":!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/profile-sync-controller":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"async-mutex":!0,uuid:!0}},"@metamask/profile-sync-controller":{globals:{"Buffer.from":!0,Event:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,addEventListener:!0,atob:!0,"console.error":!0,"console.warn":!0,dispatchEvent:!0,fetch:!0,removeEventListener:!0,setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/keyring-controller":!0,"@metamask/profile-sync-controller>siwe":!0,"@noble/ciphers":!0,"@noble/hashes":!0,buffer:!0}},"@metamask/profile-sync-controller>siwe":{globals:{"console.error":!0,"console.warn":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>valid-url":!0,"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random":!0,ethers:!0}},"@metamask/profile-sync-controller>siwe>@spruceid/siwe-parser":{globals:{"console.error":!0,"console.log":!0},packages:{"@metamask/controller-utils>@spruceid/siwe-parser>apg-js":!0,"@noble/hashes":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random":{globals:{crypto:!0,msCrypto:!0},packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":!0,"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/wipe":!0}},"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary":{packages:{"@metamask/profile-sync-controller>siwe>@stablelib/random>@stablelib/binary>@stablelib/int":!0}},"@metamask/providers":{globals:{console:!0},packages:{"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/providers>is-stream":!0,"@metamask/providers>readable-stream":!0,"@metamask/rpc-errors":!0,"@metamask/safe-event-emitter":!0,"eslint>fast-deep-equal":!0}},"@metamask/providers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/ramps-controller":{globals:{AbortController:!0,URL:!0,clearInterval:!0,setInterval:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,cockatiel:!0}},"@metamask/rate-limit-controller":{globals:{setTimeout:!0},packages:{"@metamask/base-controller":!0,"@metamask/rpc-errors":!0,"@metamask/utils":!0}},"@metamask/react-data-query":{packages:{"@metamask/utils":!0,"@tanstack/react-query":!0,"@tanstack/react-query>@tanstack/query-core":!0}},"@metamask/react-data-query>@metamask/base-data-service":{packages:{"@metamask/controller-utils":!0,"@metamask/messenger":!0,"@metamask/utils":!0,"@tanstack/react-query>@tanstack/query-core":!0,"eslint>fast-deep-equal":!0}},"@metamask/remote-feature-flag-controller":{globals:{TextEncoder:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/utils":!0,uuid:!0}},"@metamask/rpc-errors":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@metamask/utils":!0}},"@metamask/safe-event-emitter":{globals:{setTimeout:!0},packages:{"webpack>events":!0}},"@metamask/scure-bip39":{globals:{TextEncoder:!0},packages:{"@metamask/scure-bip39>@noble/hashes":!0,"@metamask/scure-bip39>@scure/base":!0}},"@metamask/scure-bip39>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"@metamask/scure-bip39>@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/seedless-onboarding-controller":{packages:{"@metamask/base-controller":!0,"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":!0,"@metamask/utils":!0,"@noble/ciphers":!0,"@noble/curves":!0,"async-mutex":!0}},"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils":{globals:{"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/hashes":!0,buffer:!0,"eslint>json-stable-stringify-without-jsonify":!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup":{globals:{Buffer:!0,URL:!0,"console.error":!0,fetch:!0},packages:{"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":!0,"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"@toruslabs/eccrypto":!0,buffer:!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@metamask/auth-network-utils":{globals:{"Buffer.concat":!0,"Buffer.from":!0,clearTimeout:!0,setTimeout:!0},packages:{"@noble/curves":!0,"@noble/hashes":!0,"@toruslabs/eccrypto>elliptic":!0,buffer:!0,"eslint>json-stable-stringify-without-jsonify":!0,"ethereumjs-util>bn.js":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details":{packages:{"@babel/runtime":!0,"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":!0,"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/fnd-base":{packages:{"@metamask/seedless-onboarding-controller>@metamask/auth-network-utils>@toruslabs/constants":!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/fetch-node-details>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@metamask/seedless-onboarding-controller>@metamask/toprf-secure-backup>@toruslabs/http-helpers":{globals:{URL:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"addons-linter>deepmerge":!0,loglevel:!0}},"@metamask/selected-network-controller":{packages:{"@metamask/base-controller":!0,"@metamask/network-controller>@metamask/swappable-obj-proxy":!0}},"@metamask/sentinel-api-service":{globals:{fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,cockatiel:!0}},"@metamask/shield-controller":{globals:{AbortController:!0,fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/signature-controller":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,cockatiel:!0,lodash:!0}},"@metamask/signature-controller":{globals:{"Buffer.from":!0,fetch:!0},packages:{"@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/eth-sig-util":!0,"@metamask/keyring-controller":!0,"@metamask/message-manager>jsonschema":!0,"@metamask/signature-controller>@metamask/logging-controller":!0,"@metamask/utils":!0,buffer:!0,uuid:!0,"webpack>events":!0}},"@metamask/smart-transactions-controller":{globals:{URLSearchParams:!0,clearInterval:!0,"console.error":!0,"console.log":!0,fetch:!0,setInterval:!0},packages:{"@ethersproject/bytes":!0,"@ethersproject/transactions":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/polling-controller":!0,"@metamask/smart-transactions-controller>@metamask/transaction-controller":!0,"@metamask/smart-transactions-controller>bignumber.js":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"ethers>@ethersproject/keccak256":!0,lodash:!0,reselect:!0}},"@metamask/smart-transactions-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/snap-account-service":{globals:{"console.error":!0},packages:{"@metamask/eth-snap-keyring":!0,"@metamask/eth-snap-keyring>@metamask/keyring-internal-snap-client":!0,"@metamask/eth-snap-keyring>@metamask/keyring-snap-sdk":!0,"@metamask/keyring-api":!0,"@metamask/keyring-controller":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/snaps-controllers":{globals:{DecompressionStream:!0,URL:!0,WebSocket:!0,clearTimeout:!0,"document.getElementById":!0,"fetch.bind":!0,setTimeout:!0},packages:{"@metamask/approval-controller":!0,"@metamask/base-controller":!0,"@metamask/json-rpc-engine":!0,"@metamask/json-rpc-middleware-stream":!0,"@metamask/object-multiplex":!0,"@metamask/permission-controller":!0,"@metamask/post-message-stream":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-controllers>@xstate/fsm":!0,"@metamask/snaps-controllers>concat-stream":!0,"@metamask/snaps-controllers>get-npm-tarball-url":!0,"@metamask/snaps-controllers>readable-stream":!0,"@metamask/snaps-controllers>readable-web-to-node-stream":!0,"@metamask/snaps-controllers>tar-stream":!0,"@metamask/snaps-registry":!0,"@metamask/snaps-rpc-methods":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-utils":!0,"@metamask/utils":!0,"async-mutex":!0,"cron-parser":!0,"eslint>fast-deep-equal":!0,immer:!0,luxon:!0,nanoid:!0,semver:!0}},"@metamask/snaps-controllers>concat-stream":{globals:{"Buffer.concat":!0,"Buffer.isBuffer":!0},packages:{"@metamask/snaps-controllers>readable-stream":!0,"browserify>concat-stream>buffer-from":!0,"browserify>concat-stream>typedarray":!0,buffer:!0,"duplexify>inherits":!0}},"@metamask/snaps-controllers>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream":{packages:{"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":!0}},"@metamask/snaps-controllers>readable-web-to-node-stream>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"@metamask/snaps-controllers>tar-stream":{packages:{"@metamask/snaps-controllers>tar-stream>b4a":!0,"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx":!0}},"@metamask/snaps-controllers>tar-stream>b4a":{globals:{TextDecoder:!0,TextEncoder:!0}},"@metamask/snaps-controllers>tar-stream>streamx":{globals:{"process.nextTick":!0,queueMicrotask:!0},packages:{"@metamask/snaps-controllers>tar-stream>fast-fifo":!0,"@metamask/snaps-controllers>tar-stream>streamx>events-universal":!0,"@metamask/snaps-controllers>tar-stream>streamx>text-decoder":!0}},"@metamask/snaps-controllers>tar-stream>streamx>events-universal":{packages:{"webpack>events":!0}},"@metamask/snaps-controllers>tar-stream>streamx>text-decoder":{packages:{"@metamask/snaps-controllers>tar-stream>b4a":!0}},"@metamask/snaps-registry":{globals:{crypto:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0}},"@metamask/snaps-rpc-methods":{packages:{"@metamask/json-rpc-engine":!0,"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/snaps-utils":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@noble/hashes":!0,"async-mutex":!0}},"@metamask/snaps-sdk":{globals:{URL:!0},packages:{"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,luxon:!0}},"@metamask/snaps-sdk>@metamask/key-tree":{globals:{"crypto.subtle":!0,ed25519:!0,ed25519Bip32:!0,secp256k1:!0},packages:{"@metamask/scure-bip39":!0,"@metamask/utils":!0,"@noble/curves":!0,"@noble/hashes":!0,"@scure/base":!0}},"@metamask/snaps-utils":{globals:{File:!0,FileReader:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,"console.error":!0,"console.log":!0,"console.warn":!0,"document.body.appendChild":!0,"document.createElement":!0,fetch:!0,navigator:!0},packages:{"@metamask/permission-controller":!0,"@metamask/rpc-errors":!0,"@metamask/snaps-sdk":!0,"@metamask/snaps-sdk>@metamask/key-tree":!0,"@metamask/snaps-utils>@metamask/slip44":!0,"@metamask/snaps-utils>fast-xml-parser":!0,"@metamask/snaps-utils>marked":!0,"@metamask/snaps-utils>rfdc":!0,"@metamask/snaps-utils>validate-npm-package-name":!0,"@metamask/superstruct":!0,"@metamask/utils":!0,"@scure/base":!0,chalk:!0,"cron-parser":!0,"fast-json-stable-stringify":!0,luxon:!0,semver:!0}},"@metamask/snaps-utils>fast-xml-parser":{globals:{"exports.isExist":!0},packages:{"@metamask/snaps-utils>fast-xml-parser>@nodable/entities":!0,"@metamask/snaps-utils>fast-xml-parser>path-expression-matcher":!0,"@metamask/snaps-utils>fast-xml-parser>strnum":!0}},"@metamask/snaps-utils>marked":{globals:{"console.error":!0,"console.warn":!0}},"@metamask/snaps-utils>rfdc":{globals:{Buffer:!0},packages:{buffer:!0}},"@metamask/snaps-utils>validate-npm-package-name":{packages:{"@metamask/snaps-utils>validate-npm-package-name>builtins":!0}},"@metamask/snaps-utils>validate-npm-package-name>builtins":{globals:{"process.version":!0},packages:{process:!0,semver:!0}},"@metamask/storage-service":{globals:{"console.error":!0,"console.warn":!0}},"@metamask/subscription-controller":{globals:{URL:!0,fetch:!0},packages:{"@metamask/controller-utils":!0,"@metamask/polling-controller":!0,"@metamask/react-data-query>@metamask/base-data-service":!0,"@metamask/subscription-controller>bignumber.js":!0,"@metamask/superstruct":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0,cockatiel:!0}},"@metamask/subscription-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-controller":{globals:{"Buffer.from":!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,fetch:!0,setInterval:!0,setTimeout:!0},packages:{"@ethereumjs/tx":!0,"@ethereumjs/tx>@ethereumjs/common":!0,"@ethereumjs/tx>@ethereumjs/rlp":!0,"@ethereumjs/tx>@ethereumjs/util":!0,"@ethersproject/abi":!0,"@ethersproject/contracts":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/gas-fee-controller":!0,"@metamask/metamask-eth-abis":!0,"@metamask/network-controller":!0,"@metamask/rpc-errors":!0,"@metamask/transaction-controller>@metamask/nonce-tracker":!0,"@metamask/transaction-controller>bignumber.js":!0,"@metamask/transaction-controller>ethereum-cryptography":!0,"@metamask/utils":!0,"async-mutex":!0,buffer:!0,"eth-method-registry":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/wallet":!0,lodash:!0,uuid:!0,"webpack>events":!0}},"@metamask/transaction-controller>@metamask/nonce-tracker":{packages:{"@ethersproject/providers":!0,"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":!0,"@ngraveio/bc-ur>assert":!0}},"@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"@metamask/transaction-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/transaction-controller>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0,module:!0},packages:{"@metamask/transaction-controller>ethereum-cryptography>@noble/hashes":!0}},"@metamask/transaction-controller>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0}},"@metamask/transaction-pay-controller":{globals:{AbortController:!0,URLSearchParams:!0,clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/abi":!0,"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/keyring-controller":!0,"@metamask/metamask-eth-abis":!0,"@metamask/network-controller":!0,"@metamask/sentinel-api-service":!0,"@metamask/transaction-controller":!0,"@metamask/transaction-pay-controller>@metamask/ramps-controller":!0,"@metamask/transaction-pay-controller>bignumber.js":!0,"@metamask/utils":!0,lodash:!0}},"@metamask/transaction-pay-controller>@metamask/ramps-controller":{globals:{URL:!0},packages:{"@metamask/controller-utils":!0}},"@metamask/transaction-pay-controller>bignumber.js":{globals:{crypto:!0}},"@metamask/user-operation-controller":{globals:{fetch:!0},packages:{"@metamask/base-controller":!0,"@metamask/controller-utils":!0,"@metamask/controller-utils>@metamask/eth-query":!0,"@metamask/gas-fee-controller":!0,"@metamask/polling-controller":!0,"@metamask/rpc-errors":!0,"@metamask/superstruct":!0,"@metamask/user-operation-controller>@metamask/transaction-controller":!0,"@metamask/utils":!0,"ethereumjs-util>bn.js":!0,lodash:!0,uuid:!0,"webpack>events":!0}},"@metamask/utils":{globals:{Buffer:!0,TextDecoder:!0,TextEncoder:!0,crypto:!0},packages:{"@metamask/superstruct":!0,"@metamask/utils>pony-cause":!0,"@noble/hashes":!0,"@scure/base":!0,buffer:!0,lodash:!0,"nock>debug":!0,semver:!0}},"@metamask/wallet":{packages:{"@metamask/accounts-controller":!0,"@metamask/address-book-controller":!0,"@metamask/approval-controller":!0,"@metamask/browser-passworder":!0,"@metamask/claims-controller":!0,"@metamask/connectivity-controller":!0,"@metamask/controller-utils":!0,"@metamask/gas-fee-controller":!0,"@metamask/keyring-controller":!0,"@metamask/messenger":!0,"@metamask/network-controller":!0,"@metamask/passkey-controller":!0,"@metamask/remote-feature-flag-controller":!0,"@metamask/seedless-onboarding-controller":!0,"@metamask/shield-controller":!0,"@metamask/storage-service":!0,"@metamask/subscription-controller":!0,"@metamask/transaction-controller":!0,"@metamask/utils":!0}},"@mui/material":{globals:{CSS:!0,DocumentFragment:!0,IntersectionObserver:!0,MutationObserver:!0,ResizeObserver:!0,addEventListener:!0,cancelAnimationFrame:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,"document.activeElement":!0,"document.body":!0,getSelection:!0,navigator:!0,"performance.now":!0,removeEventListener:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@emotion/react":!0,"@mui/material>react-is":!0,"@mui/system":!0,"@mui/system>@mui/utils":!0,clsx:!0,"prop-types":!0,react:!0,"react-dom":!0,"react-transition-group":!0}},"@mui/system":{globals:{"console.error":!0,"console.warn":!0,"document.createElement":!0,"document.querySelector":!0,matchMedia:!0},packages:{"@babel/runtime":!0,"@emotion/react":!0,"@mui/system>@mui/private-theming":!0,"@mui/system>@mui/styled-engine":!0,"@mui/system>@mui/utils":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/private-theming":{globals:{"console.error":!0},packages:{"@babel/runtime":!0,"@mui/system>@mui/utils":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/styled-engine":{globals:{"console.error":!0,document:!0},packages:{"@emotion/react":!0,"@emotion/react>@emotion/cache":!0,"@emotion/react>@emotion/serialize":!0,"@emotion/styled":!0,"prop-types":!0,react:!0}},"@mui/system>@mui/utils":{globals:{clearTimeout:!0,"console.error":!0,document:!0,innerWidth:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@mui/system>@mui/utils>react-is":!0,clsx:!0,react:!0}},"@mui/x-date-pickers":{globals:{Intl:!0,Range:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,innerHeight:!0,navigator:!0,orientation:!0,removeEventListener:!0,screen:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"@mui/material":!0,"@mui/system":!0,"@mui/x-date-pickers>@mui/utils":!0,"@mui/x-date-pickers>@mui/x-internals":!0,clsx:!0,luxon:!0,"prop-types":!0,react:!0,"react-transition-group":!0}},"@mui/x-date-pickers>@mui/utils":{globals:{URL:!0,"console.error":!0},packages:{clsx:!0,"prop-types":!0,react:!0}},"@ngraveio/bc-ur":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{"@ngraveio/bc-ur>@keystonehq/alias-sampling":!0,"@ngraveio/bc-ur>assert":!0,"@ngraveio/bc-ur>bignumber.js":!0,"@ngraveio/bc-ur>cbor-sync":!0,"@ngraveio/bc-ur>crc":!0,"@ngraveio/bc-ur>jsbi":!0,"@ngraveio/bc-ur>sha.js":!0,buffer:!0}},"@ngraveio/bc-ur>assert":{globals:{console:!0,"process.emitWarning":!0,"process.stderr":!0},packages:{"@ngraveio/bc-ur>assert>is-nan":!0,"@ngraveio/bc-ur>assert>object-is":!0,"browserify>util":!0,"gulp>vinyl-fs>object.assign":!0,process:!0,"string.prototype.matchall>call-bind":!0}},"@ngraveio/bc-ur>assert>is-nan":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"@ngraveio/bc-ur>assert>object-is":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0}},"@ngraveio/bc-ur>bignumber.js":{globals:{crypto:!0,define:!0}},"@ngraveio/bc-ur>cbor-sync":{globals:{Buffer:!0,define:!0},packages:{buffer:!0}},"@ngraveio/bc-ur>crc":{packages:{"@ngraveio/bc-ur>crc>buffer":!0}},"@ngraveio/bc-ur>crc>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"@ngraveio/bc-ur>jsbi":{globals:{define:!0}},"@ngraveio/bc-ur>sha.js":{packages:{"@ngraveio/bc-ur>sha.js>to-buffer":!0,"duplexify>inherits":!0,"mockttp>express>safe-buffer":!0}},"@ngraveio/bc-ur>sha.js>to-buffer":{packages:{"@lavamoat/webpack>json-stable-stringify>isarray":!0,"mockttp>express>safe-buffer":!0,"string.prototype.matchall>es-abstract>typed-array-buffer":!0}},"@noble/ciphers":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@noble/curves":{packages:{"@noble/hashes":!0}},"@noble/hashes":{globals:{TextDecoder:!0,TextEncoder:!0,crypto:!0}},"@open-rpc/schema-utils-js":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@open-rpc/meta-schema":!0,"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":!0,"@open-rpc/schema-utils-js>@json-schema-tools/meta-schema":!0,"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0,"@open-rpc/schema-utils-js>is-url":!0,"eslint>ajv":!0}},"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer":{packages:{"@metamask/rpc-errors>fast-safe-stringify":!0,"@open-rpc/schema-utils-js>@json-schema-tools/dereferencer>@json-schema-tools/traverse":!0,"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":!0}},"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver":{packages:{"@open-rpc/schema-utils-js>@json-schema-tools/reference-resolver>@json-schema-spec/json-pointer":!0,"@open-rpc/test-coverage>isomorphic-fetch":!0}},"@open-rpc/test-coverage>isomorphic-fetch":{globals:{"fetch.bind":!0},packages:{"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":!0}},"@open-rpc/test-coverage>isomorphic-fetch>whatwg-fetch":{globals:{AbortController:!0,Blob:!0,DOMException:!0,FileReader:!0,FormData:!0,"URLSearchParams.prototype.isPrototypeOf":!0,XMLHttpRequest:!0,"console.warn":!0,fetch:!0,setTimeout:!0}},"@popperjs/core":{globals:{Element:!0,HTMLElement:!0,ShadowRoot:!0,devicePixelRatio:!0,document:!0,"navigator.userAgent":!0,"navigator.userAgentData":!0}},"@reduxjs/toolkit":{globals:{AbortController:!0,__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:!0,__REDUX_DEVTOOLS_EXTENSION__:!0,console:!0,process:!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"@reduxjs/toolkit>reselect":!0,immer:!0,process:!0,redux:!0,"redux-thunk":!0}},"@rive-app/react-canvas":{globals:{IntersectionObserver:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,devicePixelRatio:!0,"document.documentElement.clientHeight":!0,"document.documentElement.clientWidth":!0,innerHeight:!0,innerWidth:!0,matchMedia:!0,removeEventListener:!0,setTimeout:!0},packages:{"@rive-app/react-canvas>@rive-app/canvas":!0,react:!0}},"@rive-app/react-canvas>@rive-app/canvas":{globals:{AudioContext:!1,Blob:!0,DOMMatrix:!1,FinalizationRegistry:!1,HTMLCanvasElement:!0,Image:!0,Iterator:!1,MouseEvent:!1,Path2D:!0,Request:!0,ResizeObserver:!1,TextDecoder:!0,"URL.createObjectURL":!0,"URL.revokeObjectURL":!0,WebAssembly:!0,XMLHttpRequest:!1,cancelAnimationFrame:!0,clearInterval:!0,clearTimeout:!0,console:!0,crypto:!1,define:!1,devicePixelRatio:!0,document:!1,"document.createElement":!0,fetch:!1,h:!1,importScripts:!1,location:!1,navigator:!1,"navigator.userAgent":!0,"performance.now":!0,prompt:!1,readline:!1,requestAnimationFrame:!0,setTimeout:!0,webkitAudioContext:!1}},"@scure/base":{globals:{TextDecoder:!0,TextEncoder:!0}},"@segment/analytics-node":{globals:{AbortController:!0,EdgeRuntime:!1,URL:!0,WebSocketPair:!1,WorkerGlobalScope:!1,clearTimeout:!0,"console.warn":!0,fetch:!0,importScripts:!1,process:!0,setTimeout:!0},packages:{"@segment/analytics-node>@lukeed/uuid":!0,"@segment/analytics-node>@segment/analytics-core":!0,"@segment/analytics-node>@segment/analytics-generic-utils":!0,"@segment/analytics-node>jose":!0,process:!0}},"@segment/analytics-node>@segment/analytics-core":{globals:{clearTimeout:!0,console:!0,setTimeout:!0},packages:{"@segment/analytics-node>@lukeed/uuid":!0,"@segment/analytics-node>@segment/analytics-core>dset":!0,"@segment/analytics-node>@segment/analytics-generic-utils":!0,tslib:!0}},"@segment/analytics-node>@segment/analytics-generic-utils":{globals:{"console.warn":!0}},"@segment/analytics-node>jose":{globals:{CryptoKey:!0,TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0,crypto:!0}},"@sentry/browser":{globals:{Headers:!0,"PerformanceObserver.supportedEntryTypes":!0,Request:!0,URL:!0,WebAssembly:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,__SENTRY_RELEASE__:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,fetch:!0,importScripts:!0,"indexedDB.open":!0,"performance.timeOrigin":!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/browser>@sentry-internal/feedback":!0,"@sentry/browser>@sentry-internal/replay":!0,"@sentry/browser>@sentry-internal/replay-canvas":!0,"@sentry/core":!0}},"@sentry/browser>@sentry-internal/browser-utils":{globals:{FormData:!0,PerformanceEventTiming:!0,PerformanceObserver:!0,Request:!0,URL:!0,URLSearchParams:!0,"XMLHttpRequest.prototype":!0,__SENTRY_DEBUG__:!0,addEventListener:!0,clearTimeout:!0,performance:!0,setTimeout:!0},packages:{"@sentry/core":!0}},"@sentry/browser>@sentry-internal/feedback":{globals:{FormData:!0,HTMLFormElement:!0,__SENTRY_DEBUG__:!0,cancelAnimationFrame:!0,clearTimeout:!0,"document.createElement":!0,"document.createElementNS":!0,"document.createTextNode":!0,getComputedStyle:!0,isSecureContext:!0,matchMedia:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"@sentry/core":!0}},"@sentry/browser>@sentry-internal/replay":{globals:{Blob:!0,CSSConditionRule:!0,CSSGroupingRule:!0,CSSMediaRule:!0,CSSRule:!0,CSSSupportsRule:!0,Document:!0,DragEvent:!0,Element:!0,FormData:!0,HTMLElement:!0,HTMLFormElement:!0,Headers:!0,MouseEvent:!0,MutationObserver:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.prototype.contains":!0,PointerEvent:!0,Request:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,Worker:!0,"Zone.__symbol__":!0,__RRWEB_EXCLUDE_IFRAME__:!0,__RRWEB_EXCLUDE_SHADOW_DOM__:!0,__SENTRY_DEBUG__:!0,__SENTRY_EXCLUDE_REPLAY_WORKER__:!0,__rrMutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.warn":!0,"customElements.get":!0,document:!0,innerHeight:!0,innerWidth:!0,"location.href":!0,"location.origin":!0,parent:!0,setTimeout:!0},packages:{"@sentry/browser>@sentry-internal/browser-utils":!0,"@sentry/core":!0}},"@sentry/browser>@sentry-internal/replay-canvas":{globals:{Blob:!0,HTMLCanvasElement:!0,HTMLImageElement:!0,ImageData:!0,"URL.createObjectURL":!0,WeakRef:!0,Worker:!0,cancelAnimationFrame:!0,"console.debug":!0,"console.error":!0,createImageBitmap:!0,document:!0,"performance.now":!0},packages:{"@sentry/core":!0}},"@sentry/core":{globals:{CustomEvent:!0,DOMError:!0,DOMException:!0,EdgeRuntime:!0,Element:!0,ErrorEvent:!0,Event:!0,HTMLElement:!0,Headers:!0,Request:!0,Response:!0,TextDecoder:!0,TextEncoder:!0,URL:!0,URLSearchParams:!0,__SENTRY_BROWSER_BUNDLE__:!0,__SENTRY_DEBUG__:!0,__SENTRY_TRACING__:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,module:!0,process:!0,setTimeout:!0},packages:{process:!0}},"@simplewebauthn/browser":{globals:{AbortController:!0,AbortSignal:!0,PublicKeyCredential:!0,atob:!0,btoa:!0,"console.warn":!0,"document.querySelectorAll":!0,"location.hostname":!0,"navigator.credentials.create":!0,"navigator.credentials.get":!0}},"@solana/addresses":{globals:{"Intl.Collator":!0,TextEncoder:!0,"crypto.subtle.digest":!0,"crypto.subtle.exportKey":!0},packages:{"@solana/addresses>@solana/assertions":!0,"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/codecs-strings":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-core":{packages:{"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/codecs-strings":{globals:{TextDecoder:!0,TextEncoder:!0,atob:!0,btoa:!0},packages:{"@solana/addresses>@solana/codecs-core":!0,"@solana/addresses>@solana/errors":!0}},"@solana/addresses>@solana/errors":{globals:{btoa:!0}},"@storybook/addon-docs>remark-external-links>mdast-util-definitions":{packages:{"react-markdown>unist-util-visit":!0}},"@storybook/react>util-deprecate":{globals:{"console.trace":!0,"console.warn":!0,localStorage:!0}},"@tanstack/react-query":{globals:{ReactQueryClientContext:"write"},packages:{"@tanstack/react-query>@tanstack/query-core":!0,react:!0,"react-redux>use-sync-external-store":!0}},"@tanstack/react-query>@tanstack/query-core":{globals:{AbortController:!0,addEventListener:!1,clearInterval:!0,clearTimeout:!0,console:!0,document:!1,navigator:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0}},"@tanstack/react-virtual":{globals:{document:!0,scrollY:!0},packages:{"@tanstack/react-virtual>@tanstack/virtual-core":!0,react:!0,"react-dom":!0}},"@tanstack/react-virtual>@tanstack/virtual-core":{globals:{"console.info":!0,"console.warn":!0,requestAnimationFrame:!0}},"@toruslabs/eccrypto":{globals:{"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,crypto:!0,msCrypto:!0},packages:{"@toruslabs/eccrypto>elliptic":!0,buffer:!0}},"@toruslabs/eccrypto>elliptic":{packages:{"@toruslabs/eccrypto>elliptic>brorand":!0,"@toruslabs/eccrypto>elliptic>hmac-drbg":!0,"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"@toruslabs/eccrypto>elliptic>brorand":{globals:{crypto:!0,msCrypto:!0}},"@toruslabs/eccrypto>elliptic>hmac-drbg":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"@toruslabs/eccrypto>elliptic>minimalistic-crypto-utils":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"@trezor/connect-web":{globals:{URLSearchParams:!0,__TREZOR_CONNECT_SRC:!0,addEventListener:!0,btoa:!0,chrome:!0,clearInterval:!0,clearTimeout:!0,"console.warn":!0,"document.body":!0,"document.createElement":!0,"document.createTextNode":!0,"document.getElementById":!0,"document.querySelectorAll":!0,"location.origin":!0,navigator:!0,open:!0,origin:!0,removeEventListener:!0,setInterval:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/connect":!0,"@trezor/connect-web>@trezor/connect-common":!0,"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/connect":{packages:{"@trezor/connect-web>@trezor/connect>@trezor/device-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf":!0,"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,"@trezor/connect-web>@trezor/connect>@trezor/transport":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect-common":{globals:{"console.warn":!0,"localStorage.getItem":!0,"localStorage.setItem":!0,navigator:!0,setTimeout:!0,window:!0},packages:{"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":!0,"@trezor/connect-web>@trezor/utils":!0,tslib:!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils":{globals:{innerHeight:!0,innerWidth:!0,"location.hostname":!0,"location.origin":!0,"navigator.languages":!0,"navigator.platform":!0,"navigator.userAgent":!0,process:!0,"screen.height":!0,"screen.width":!0},packages:{"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":!0,process:!0}},"@trezor/connect-web>@trezor/connect-common>@trezor/env-utils>ua-parser-js":{globals:{define:!0,"navigator.userAgentData":!0}},"@trezor/connect-web>@trezor/connect>@trezor/blockchain-link>@trezor/websocket-client":{globals:{WebSocket:!0,clearTimeout:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/utils":!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/connect>@trezor/device-utils":{packages:{tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf":{globals:{"Buffer.from":!0},packages:{"@google/genai>protobufjs":!0,"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long":!0,"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":!0,buffer:!0,tslib:!0}},"@trezor/connect-web>@trezor/connect>@trezor/protobuf>long":{globals:{"WebAssembly.Instance":!0,"WebAssembly.Module":!0,define:!0}},"@trezor/connect-web>@trezor/connect>@trezor/schema-utils":{globals:{Buffer:!0,"console.warn":!0},packages:{"@trezor/connect-web>@trezor/connect>@trezor/schema-utils>@sinclair/typebox":!0,buffer:!0,"ts-mixer":!0}},"@trezor/connect-web>@trezor/utils":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Intl.NumberFormat":!0,TextEncoder:!0,clearInterval:!0,clearTimeout:!0,"console.error":!0,"console.info":!0,"console.log":!0,"console.warn":!0,"crypto.getRandomValues":!0,setInterval:!0,setTimeout:!0},packages:{"@trezor/connect-web>@trezor/utils>bignumber.js":!0,buffer:!0,tslib:!0,"webpack>events":!0}},"@trezor/connect-web>@trezor/utils>bignumber.js":{globals:{crypto:!0,define:!0}},"@zxing/browser":{globals:{HTMLElement:!0,HTMLImageElement:!0,HTMLVideoElement:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library":!0}},"@zxing/library":{globals:{HTMLImageElement:!0,HTMLVideoElement:!0,TextDecoder:!0,TextEncoder:!0,"URL.createObjectURL":!0,btoa:!0,"console.log":!0,"console.warn":!0,document:!0,navigator:!0,setTimeout:!0},packages:{"@zxing/library>ts-custom-error":!0}},"async-mutex":{globals:{clearTimeout:!0,setTimeout:!0},packages:{tslib:!0}},"base32-encode":{packages:{"base32-encode>to-data-view":!0}},"bignumber.js":{globals:{crypto:!0,define:!0}},bowser:{globals:{define:!0}},"browserify>concat-stream>buffer-from":{globals:{Buffer:!0},packages:{buffer:!0}},"browserify>string_decoder":{packages:{"mockttp>express>safe-buffer":!0}},"browserify>url":{packages:{"browserify>url>punycode":!0,"mockttp>express>qs":!0}},"browserify>url>punycode":{globals:{define:!0}},"browserify>util":{globals:{SharedArrayBuffer:!0,"console.error":!0,"console.log":!0,"console.trace":!0,process:!0},packages:{"browserify>util>is-arguments":!0,"browserify>util>is-generator-function":!0,"browserify>util>is-typed-array":!0,"browserify>util>which-typed-array":!0,"duplexify>inherits":!0,process:!0}},"browserify>util>is-arguments":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bind":!0}},"browserify>util>is-generator-function":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0}},"browserify>util>is-typed-array":{packages:{"browserify>util>which-typed-array":!0}},"browserify>util>which-typed-array":{packages:{"browserify>util>which-typed-array>for-each":!0,"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>available-typed-arrays":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>gopd":!0}},"browserify>util>which-typed-array>for-each":{packages:{"string.prototype.matchall>es-abstract>is-callable":!0}},bs58:{packages:{"bs58>base-x":!0}},buffer:{globals:{SharedArrayBuffer:!0,console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},chalk:{packages:{"chalk>ansi-styles":!0,"chalk>supports-color":!0}},"chalk>ansi-styles":{packages:{"chalk>ansi-styles>color-convert":!0}},"chalk>ansi-styles>color-convert":{packages:{"jest-canvas-mock>moo-color>color-name":!0}},"chart.js":{globals:{"Intl.NumberFormat":!0,MutationObserver:!0,OffscreenCanvas:!0,Path2D:!0,ResizeObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,devicePixelRatio:!0,document:!0,removeEventListener:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"chart.js>@kurkle/color":!0}},cockatiel:{globals:{AbortController:!0,AbortSignal:!0,WeakRef:!0,clearTimeout:!0,performance:!0,"process.hrtime.bigint":!0,setTimeout:!0},packages:{process:!0}},"core-js-pure":{globals:{"Bun.version":!0,"Deno.version":!0,document:!0,setTimeout:!0}},"cron-parser":{packages:{luxon:!0}},"crypto-browserify":{packages:{"crypto-browserify>browserify-cipher":!0,"crypto-browserify>browserify-sign":!0,"crypto-browserify>create-ecdh":!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>diffie-hellman":!0,"crypto-browserify>pbkdf2":!0,"crypto-browserify>public-encrypt":!0,"crypto-browserify>randombytes":!0,"crypto-browserify>randomfill":!0,"ethereumjs-util>create-hash":!0}},"crypto-browserify>browserify-cipher":{packages:{"crypto-browserify>browserify-cipher>browserify-des":!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes":!0}},"crypto-browserify>browserify-cipher>browserify-des":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>browserify-cipher>browserify-des>des.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0}},"crypto-browserify>browserify-cipher>browserify-des>des.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"duplexify>inherits":!0}},"crypto-browserify>browserify-cipher>evp_bytestokey":{packages:{"ethereumjs-util>create-hash>md5.js":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>browserify-sign":{packages:{"@toruslabs/eccrypto>elliptic":!0,"crypto-browserify>browserify-sign>readable-stream":!0,"crypto-browserify>create-hmac":!0,"crypto-browserify>public-encrypt>browserify-rsa":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>browserify-sign>readable-stream":{globals:{"process.browser":!0,"process.stderr":!0,"process.stdout":!0,"process.version.slice":!0,setImmediate:!0},packages:{"@storybook/react>util-deprecate":!0,"core-js-pure":!0,"crypto-browserify>browserify-sign>readable-stream>isarray":!0,"crypto-browserify>browserify-sign>readable-stream>safe-buffer":!0,"crypto-browserify>browserify-sign>readable-stream>string_decoder":!0,"duplexify>inherits":!0,process:!0,"readable-stream-2>core-util-is":!0,"readable-stream-2>process-nextick-args":!0,"webpack>events":!0}},"crypto-browserify>browserify-sign>readable-stream>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder":{packages:{"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":!0}},"crypto-browserify>browserify-sign>readable-stream>string_decoder>safe-buffer":{packages:{buffer:!0}},"crypto-browserify>create-ecdh":{globals:{Buffer:!0},packages:{"@toruslabs/eccrypto>elliptic":!0,buffer:!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>create-hmac":{packages:{"@ngraveio/bc-ur>sha.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>create-hash>ripemd160":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>diffie-hellman":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>diffie-hellman>miller-rabin":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>diffie-hellman>miller-rabin":{packages:{"@toruslabs/eccrypto>elliptic>brorand":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>pbkdf2":{globals:{crypto:!0,process:!0,queueMicrotask:!0,setImmediate:!0,setTimeout:!0},packages:{"@ngraveio/bc-ur>sha.js":!0,"@ngraveio/bc-ur>sha.js>to-buffer":!0,"crypto-browserify>pbkdf2>create-hash":!0,"crypto-browserify>pbkdf2>ripemd160":!0,"mockttp>express>safe-buffer":!0,process:!0}},"crypto-browserify>pbkdf2>create-hash":{globals:{Buffer:!0},packages:{buffer:!0}},"crypto-browserify>pbkdf2>ripemd160":{globals:{Buffer:!0},packages:{buffer:!0,"crypto-browserify>pbkdf2>ripemd160>hash-base":!0,"duplexify>inherits":!0}},"crypto-browserify>pbkdf2>ripemd160>hash-base":{globals:{Buffer:!0},packages:{buffer:!0,"duplexify>inherits":!0,"stream-browserify":!0}},"crypto-browserify>public-encrypt":{packages:{"crypto-browserify>public-encrypt>browserify-rsa":!0,"crypto-browserify>public-encrypt>parse-asn1":!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>browserify-rsa":{packages:{"crypto-browserify>randombytes":!0,"ethereumjs-util>bn.js":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>parse-asn1":{packages:{"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"crypto-browserify>pbkdf2":!0,"crypto-browserify>public-encrypt>parse-asn1>asn1.js":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes":!0,"mockttp>express>safe-buffer":!0}},"crypto-browserify>public-encrypt>parse-asn1>asn1.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,buffer:!0,"duplexify>inherits":!0,"ethereumjs-util>bn.js":!0}},"crypto-browserify>randombytes":{globals:{crypto:!0,msCrypto:!0,"process.nextTick":!0},packages:{"mockttp>express>safe-buffer":!0,process:!0}},"crypto-browserify>randomfill":{globals:{crypto:!0,msCrypto:!0,"process.browser":!0,"process.nextTick":!0},packages:{"crypto-browserify>randombytes":!0,"mockttp>express>safe-buffer":!0,process:!0}},"currency-formatter":{packages:{"currency-formatter>accounting":!0,"currency-formatter>locale-currency":!0,"prop-types>object-assign":!0}},"currency-formatter>accounting":{globals:{define:!0}},"currency-formatter>locale-currency":{globals:{countryCode:!0}},dompurify:{globals:{"console.warn":!0}},eciesjs:{packages:{"@noble/ciphers":!0,"@noble/curves":!0,"@noble/hashes":!0,"eciesjs>@ecies/ciphers":!0}},"eciesjs>@ecies/ciphers":{packages:{"@noble/ciphers":!0}},"eslint-plugin-react>array-includes>is-string":{packages:{"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0}},"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0}},"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>gopd":!0}},"eslint-plugin-react>hasown":{packages:{"browserify>has>function-bind":!0}},"eslint>ajv":{globals:{console:!0},packages:{"eslint>ajv>json-schema-traverse":!0,"eslint>fast-deep-equal":!0,"fast-json-stable-stringify":!0,"uri-js":!0}},"eth-ens-namehash":{globals:{Buffer:!0,name:"write"},packages:{buffer:!0,"eth-ens-namehash>idna-uts46-hx":!0,"eth-ens-namehash>js-sha3":!0}},"eth-ens-namehash>idna-uts46-hx":{globals:{define:!0},packages:{"eth-ens-namehash>idna-uts46-hx>punycode":!0}},"eth-ens-namehash>js-sha3":{globals:{define:!0,process:!0},packages:{process:!0}},"eth-lattice-keyring":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,addEventListener:!0,browser:!0,clearInterval:!0,open:!0,setInterval:!0},packages:{"@ethereumjs/tx":!0,buffer:!0,"crypto-browserify":!0,"eth-lattice-keyring>@ethereumjs/util":!0,"eth-lattice-keyring>gridplus-sdk":!0,"eth-lattice-keyring>rlp":!0,"ethereumjs-util>bn.js":!0,"webpack>events":!0}},"eth-lattice-keyring>@ethereumjs/util":{globals:{"Buffer.alloc":!0,"Buffer.allocUnsafe":!0,"Buffer.byteLength":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,"console.warn":!0},packages:{buffer:!0,"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":!0,"eth-lattice-keyring>@ethereumjs/util>micro-ftch":!0,"webpack>events":!0}},"eth-lattice-keyring>@ethereumjs/util>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography":{globals:{TextDecoder:!0,crypto:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":!0,"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/curves":{globals:{TextEncoder:!0},packages:{"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":!0}},"eth-lattice-keyring>@ethereumjs/util>ethereum-cryptography>@noble/hashes":{globals:{TextEncoder:!0,crypto:!0}},"eth-lattice-keyring>@ethereumjs/util>micro-ftch":{globals:{"Buffer.concat":!0,Headers:!0,TextDecoder:!0,URL:!0,btoa:!0,fetch:!0,process:!0},packages:{"browserify>url":!0,"browserify>util":!0,buffer:!0,"https-browserify":!0,process:!0,"stream-http":!0}},"eth-lattice-keyring>gridplus-sdk":{globals:{AbortController:!0,"Buffer.alloc":!0,"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0,Request:!0,URL:!0,caches:!0,clearTimeout:!0,"console.debug":!0,"console.error":!0,"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0,structuredClone:!0},packages:{"@metamask/eth-sig-util":!0,"@toruslabs/eccrypto>elliptic":!0,"bitcoin-address-validation>bech32":!0,buffer:!0,"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":!0,"eth-lattice-keyring>gridplus-sdk>aes-js":!0,"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0,"eth-lattice-keyring>gridplus-sdk>bs58check":!0,"eth-lattice-keyring>gridplus-sdk>cbor":!0,"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":!0,"eth-lattice-keyring>gridplus-sdk>crc-32":!0,"eth-lattice-keyring>gridplus-sdk>ox":!0,"eth-lattice-keyring>gridplus-sdk>secp256k1":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/sha2>hash.js":!0,lodash:!0,"openai>zod":!0,uuid:!0,viem:!0,"viem>abitype":!0}},"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp":{globals:{TextEncoder:!0}},"eth-lattice-keyring>gridplus-sdk>aes-js":{globals:{define:!0}},"eth-lattice-keyring>gridplus-sdk>bignumber.js":{globals:{crypto:!0,define:!0}},"eth-lattice-keyring>gridplus-sdk>bs58check":{packages:{"@noble/hashes":!0,bs58:!0}},"eth-lattice-keyring>gridplus-sdk>cbor":{globals:{TextDecoder:!0,URL:!0},packages:{buffer:!0,"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":!0,"stream-browserify":!0}},"eth-lattice-keyring>gridplus-sdk>cbor-bigdecimal":{globals:{define:!0},packages:{"eth-lattice-keyring>gridplus-sdk>bignumber.js":!0}},"eth-lattice-keyring>gridplus-sdk>cbor>nofilter":{globals:{TextDecoder:!0},packages:{buffer:!0,"stream-browserify":!0}},"eth-lattice-keyring>gridplus-sdk>crc-32":{globals:{DO_NOT_EXPORT_CRC:!0,define:!0}},"eth-lattice-keyring>gridplus-sdk>ox":{globals:{TextDecoder:!0,TextEncoder:!0,"crypto.getRandomValues":!0},packages:{"@noble/hashes":!0,"eth-lattice-keyring>gridplus-sdk>ox>@noble/curves":!0}},"eth-lattice-keyring>gridplus-sdk>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},"eth-lattice-keyring>rlp":{globals:{TextEncoder:!0}},"eth-method-registry":{packages:{"eth-method-registry>@metamask/ethjs-contract":!0,"eth-method-registry>@metamask/ethjs-query":!0}},"eth-method-registry>@metamask/ethjs-contract":{packages:{"@babel/runtime":!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-filter":{globals:{clearInterval:!0,setInterval:!0}},"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":{globals:{"Buffer.byteLength":!0,"Buffer.from":!0},packages:{buffer:!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi":{globals:{Buffer:!0},packages:{buffer:!0,"eth-ens-namehash>js-sha3":!0,"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":!0,"ethereumjs-util>bn.js":!0}},"eth-method-registry>@metamask/ethjs-contract>ethjs-abi>number-to-bn":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0,"ethereumjs-util>bn.js":!0}},"eth-method-registry>@metamask/ethjs-query":{globals:{console:!0},packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format":{packages:{"@metamask/controller-utils>@metamask/ethjs-unit>@metamask/number-to-bn":!0,"eth-method-registry>@metamask/ethjs-contract>@metamask/ethjs-util":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>ethjs-schema":!0,"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>strip-hex-prefix":{packages:{"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-format>is-hex-prefixed":!0}},"eth-method-registry>@metamask/ethjs-query>@metamask/ethjs-rpc":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback":!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback":{packages:{"eth-method-registry>@metamask/ethjs-query>promise-to-callback>is-fn":!0,"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":!0}},"eth-method-registry>@metamask/ethjs-query>promise-to-callback>set-immediate-shim":{globals:{setImmediate:!0,"setTimeout.apply":!0},packages:{"core-js-pure":!0}},"ethereum-cryptography":{globals:{TextDecoder:!0},packages:{"@noble/hashes":!0,"ethereum-cryptography>@noble/curves":!0}},"ethereumjs-util":{globals:{Buffer:!0},packages:{"@ngraveio/bc-ur>assert":!0,buffer:!0,"ethereumjs-util>bn.js":!0,"ethereumjs-util>create-hash":!0,"ethereumjs-util>ethereum-cryptography":!0,"ethereumjs-util>rlp":!0}},"ethereumjs-util>bn.js":{globals:{Buffer:!0}},"ethereumjs-util>create-hash":{packages:{"@ngraveio/bc-ur>sha.js":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>create-hash>md5.js":!0,"ethereumjs-util>create-hash>ripemd160":!0}},"ethereumjs-util>create-hash>cipher-base":{packages:{"browserify>string_decoder":!0,"duplexify>inherits":!0,"mockttp>express>safe-buffer":!0,"stream-browserify":!0}},"ethereumjs-util>create-hash>md5.js":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>md5.js>hash-base":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>md5.js>hash-base":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>md5.js>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>create-hash>ripemd160":{packages:{buffer:!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>ripemd160>hash-base":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base":{packages:{"duplexify>inherits":!0,"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>create-hash>ripemd160>hash-base>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>ethereum-cryptography":{globals:{"Buffer.from":!0},packages:{buffer:!0,"crypto-browserify>randombytes":!0,"ethereumjs-util>ethereum-cryptography>keccak":!0,"ethereumjs-util>ethereum-cryptography>secp256k1":!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes":{globals:{"Buffer.concat":!0},packages:{buffer:!0,"crypto-browserify>browserify-cipher>evp_bytestokey":!0,"duplexify>inherits":!0,"ethereumjs-util>create-hash>cipher-base":!0,"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>ethereum-cryptography>browserify-aes>buffer-xor":{globals:{Buffer:!0},packages:{buffer:!0}},"ethereumjs-util>ethereum-cryptography>bs58check":{packages:{"ethereumjs-util>create-hash":!0,"ethereumjs-util>ethereum-cryptography>bs58check>bs58":!0,"mockttp>express>safe-buffer":!0}},"ethereumjs-util>ethereum-cryptography>bs58check>bs58":{packages:{"@ensdomains/content-hash>multihashes>multibase>base-x":!0}},"ethereumjs-util>ethereum-cryptography>keccak":{globals:{"Buffer.alloc":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":!0}},"ethereumjs-util>ethereum-cryptography>keccak>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"ethereumjs-util>ethereum-cryptography>secp256k1":{packages:{"@toruslabs/eccrypto>elliptic":!0}},"ethereumjs-util>rlp":{globals:{"Buffer.concat":!0,"Buffer.from":!0,"Buffer.isBuffer":!0},packages:{buffer:!0,"ethereumjs-util>bn.js":!0}},ethers:{packages:{"@ethersproject/abi":!0,"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"@ethersproject/contracts":!0,"@ethersproject/hdnode":!0,"@ethersproject/providers":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/basex":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/rlp":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/signing-key":!0,"ethers>@ethersproject/solidity":!0,"ethers>@ethersproject/strings":!0,"ethers>@ethersproject/units":!0,"ethers>@ethersproject/wallet":!0,"ethers>@ethersproject/web":!0,"ethers>@ethersproject/wordlists":!0}},"ethers>@ethersproject/abstract-provider":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/abstract-signer":{packages:{"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/address":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/rlp":!0}},"ethers>@ethersproject/base64":{globals:{atob:!0,btoa:!0},packages:{"@ethersproject/bytes":!0}},"ethers>@ethersproject/basex":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/properties":!0}},"ethers>@ethersproject/constants":{packages:{"@ethersproject/bignumber":!0}},"ethers>@ethersproject/hash":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/json-wallets":{packages:{"@ethersproject/bytes":!0,"@ethersproject/hdnode":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/json-wallets>aes-js":!0,"ethers>@ethersproject/json-wallets>scrypt-js":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/pbkdf2":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/json-wallets>aes-js":{globals:{define:!0}},"ethers>@ethersproject/json-wallets>scrypt-js":{globals:{define:!0,setImmediate:!0,setTimeout:!0},packages:{"core-js-pure":!0}},"ethers>@ethersproject/keccak256":{packages:{"@ethersproject/bytes":!0,"eth-ens-namehash>js-sha3":!0}},"ethers>@ethersproject/logger":{globals:{console:!0}},"ethers>@ethersproject/networks":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/pbkdf2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/sha2":!0}},"ethers>@ethersproject/properties":{packages:{"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/random":{globals:{"crypto.getRandomValues":!0},packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/rlp":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/sha2":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/sha2>hash.js":{packages:{"@toruslabs/eccrypto>elliptic>minimalistic-assert":!0,"duplexify>inherits":!0}},"ethers>@ethersproject/signing-key":{packages:{"@ethersproject/bytes":!0,"ethereumjs-util>bn.js":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/sha2>hash.js":!0}},"ethers>@ethersproject/solidity":{packages:{"@ethersproject/bignumber":!0,"@ethersproject/bytes":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/sha2":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/strings":{packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/constants":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/units":{packages:{"@ethersproject/bignumber":!0,"ethers>@ethersproject/logger":!0}},"ethers>@ethersproject/wallet":{packages:{"@ethersproject/bytes":!0,"@ethersproject/hdnode":!0,"@ethersproject/transactions":!0,"ethers>@ethersproject/abstract-provider":!0,"ethers>@ethersproject/abstract-signer":!0,"ethers>@ethersproject/address":!0,"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/json-wallets":!0,"ethers>@ethersproject/keccak256":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/random":!0,"ethers>@ethersproject/signing-key":!0}},"ethers>@ethersproject/web":{globals:{clearTimeout:!0,fetch:!0,setTimeout:!0},packages:{"@ethersproject/bytes":!0,"ethers>@ethersproject/base64":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0,"ethers>@ethersproject/strings":!0}},"ethers>@ethersproject/wordlists":{packages:{"ethers>@ethersproject/hash":!0,"ethers>@ethersproject/logger":!0,"ethers>@ethersproject/properties":!0}},"extension-port-stream":{globals:{AggregateError:!0,"navigator.userAgent.includes":!0,"performance.now":!0,queueMicrotask:!0,scheduler:!0,setTimeout:!0},packages:{"readable-stream":!0}},"fast-json-patch":{globals:{addEventListener:!0,clearTimeout:!0,removeEventListener:!0,setTimeout:!0}},"fuse.js":{globals:{console:!0,define:!0}},"gulp>vinyl-fs>object.assign":{packages:{"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-object-atoms":!0,"string.prototype.matchall>has-symbols":!0}},he:{globals:{define:!0}},"https-browserify":{packages:{"browserify>url":!0,"stream-http":!0}},"humanize-duration":{globals:{define:!0}},"jsdom>form-data>es-set-tostringtag>has-tostringtag":{packages:{"string.prototype.matchall>has-symbols":!0}},"lightweight-charts":{globals:{Image:!0,ResizeObserver:!0,URL:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,devicePixelRatio:!0,"document.activeElement":!0,"document.body":!0,"document.createElement":!0,"document.documentElement":!0,"document.getElementById":!0,"document.getSelection":!0,getComputedStyle:!0,"location.href":!0,"navigator.language":!0,"navigator.platform":!0,"navigator.userAgent.toLowerCase":!0,"navigator.userAgentData":!0,"performance.now":!0,queueMicrotask:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{"lightweight-charts>fancy-canvas":!0}},"lightweight-charts>fancy-canvas":{globals:{ResizeObserver:!0,"document.body":!0}},localforage:{globals:{Blob:!0,BlobBuilder:!0,FileReader:!0,IDBKeyRange:!0,MSBlobBuilder:!0,MozBlobBuilder:!0,OIndexedDB:!0,WebKitBlobBuilder:!0,atob:!0,btoa:!0,"console.error":!0,"console.info":!0,"console.warn":!0,define:!0,fetch:!0,indexedDB:!0,localStorage:!0,mozIndexedDB:!0,msIndexedDB:!0,"navigator.platform":!0,"navigator.userAgent":!0,openDatabase:!0,setTimeout:!0,webkitIndexedDB:!0}},lodash:{globals:{_:!0,clearTimeout:!0,define:!0,setTimeout:!0}},loglevel:{globals:{console:!0,define:!0,"document.cookie":!0,localStorage:!0,log:"write",navigator:!0}},"lottie-web":{globals:{Blob:!0,Howl:!0,OffscreenCanvas:!0,"URL.createObjectURL":!0,Worker:!0,XMLHttpRequest:!0,bodymovin:"write",clearInterval:!0,console:!0,define:!0,"document.body":!0,"document.createElement":!0,"document.createElementNS":!0,"document.getElementsByClassName":!0,"document.getElementsByTagName":!0,"document.querySelectorAll":!0,"document.readyState":!0,"location.origin":!0,"location.pathname":!0,navigator:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0}},luxon:{globals:{Intl:!0}},"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":{globals:{module:!0}},"mockttp>express>qs":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>side-channel":!0}},"mockttp>express>safe-buffer":{packages:{buffer:!0}},nanoid:{globals:{"crypto.getRandomValues":!0}},"nock>debug":{globals:{console:!0,document:!0,localStorage:!0,navigator:!0,process:!0},packages:{"mocha>ms":!0,process:!0}},"openai>abort-controller":{globals:{AbortController:!0}},"openai>zod":{globals:{File:!0,URL:!0,__zod_globalConfig:"write",__zod_globalRegistry:"write",atob:!0,btoa:!0,navigator:!0}},"path-browserify":{globals:{"process.cwd":!0},packages:{process:!0}},process:{globals:{clearTimeout:!0,setTimeout:!0}},"qrcode.react":{globals:{Path2D:!0,devicePixelRatio:!0},packages:{react:!0}},"react-chartjs-2":{globals:{setTimeout:!0},packages:{"chart.js":!0,react:!0}},"react-compiler-runtime":{globals:{"console.error":!0},packages:{react:!0}},"react-devtools-core":{globals:{CSSStyleRule:!0,ElementTypeClass:!0,ElementTypeForwardRef:!0,ElementTypeFunction:!0,ElementTypeMemo:!0,ElementTypeVirtual:!0,ErrorEvent:!0,HTMLElement:!0,LOCAL_STORAGE_COMPONENT_FILTER_PREFERENCES_KEY:!0,LOCAL_STORAGE_OPEN_IN_EDITOR_URL:!0,"Node.ELEMENT_NODE":!0,SESSION_STORAGE_RECORD_CHANGE_DESCRIPTIONS_KEY:!0,SESSION_STORAGE_RECORD_TIMELINE_KEY:!0,SESSION_STORAGE_RELOAD_AND_PROFILE_KEY:!0,URL:!0,WebSocket:!0,__REACT_DEVTOOLS_COMPONENT_FILTERS__:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,__REACT_DEVTOOLS_TARGET_WINDOW__:!0,cancelAnimationFrame:!0,chrome:!0,clearTimeout:!0,console:!0,define:!0,devicePixelRatio:!0,devtoolsJestTestScheduler:!0,dispatchEvent:!0,document:!0,getComputedStyle:!0,getInObject:!0,innerHeight:!0,innerWidth:!0,"localStorage.getItem":!0,"localStorage.removeItem":!0,"localStorage.setItem":!0,localStorageGetItem:!0,localStorageSetItem:!0,"navigator.userAgent":!0,performance:!0,queueMicrotask:!0,"regeneratorRuntime.mark":!0,"regeneratorRuntime.wrap":!0,reportError:!0,requestAnimationFrame:!0,"sessionStorage.getItem":!0,"sessionStorage.removeItem":!0,"sessionStorage.setItem":!0,sessionStorageGetItem:!0,sessionStorageRemoveItem:!0,sessionStorageSetItem:!0,setInObject:!0,setTimeout:!0}},"react-dom":{globals:{HTMLIFrameElement:!0,MSApp:!0,__REACT_DEVTOOLS_GLOBAL_HOOK__:!0,addEventListener:!0,clearTimeout:!0,clipboardData:!0,"console.error":!0,document:!0,event:!1,queueMicrotask:!0,removeEventListener:!0,reportError:!0,setTimeout:!0},packages:{react:!0,"react-dom>scheduler":!0}},"react-dom>scheduler":{globals:{MessageChannel:!0,SharedArrayBuffer:!0,clearTimeout:!0,"console.error":!0,navigator:!0,performance:!0,setImmediate:!0,setTimeout:!0},packages:{"core-js-pure":!0}},"react-focus-lock":{globals:{addEventListener:!0,"console.error":!0,"console.warn":!0,document:!0,removeEventListener:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"prop-types":!0,react:!0,"react-focus-lock>focus-lock":!0,"react-focus-lock>react-clientside-effect":!0,"react-focus-lock>use-callback-ref":!0,"react-focus-lock>use-sidecar":!0}},"react-focus-lock>focus-lock":{globals:{HTMLIFrameElement:!0,"Node.DOCUMENT_FRAGMENT_NODE":!0,"Node.DOCUMENT_NODE":!0,"Node.DOCUMENT_POSITION_CONTAINED_BY":!0,"Node.DOCUMENT_POSITION_CONTAINS":!0,"Node.ELEMENT_NODE":!0,"console.error":!0,"console.warn":!0,document:!0,getComputedStyle:!0,setTimeout:!0}},"react-focus-lock>react-clientside-effect":{packages:{"@babel/runtime":!0,react:!0}},"react-focus-lock>use-callback-ref":{packages:{react:!0}},"react-focus-lock>use-sidecar":{packages:{tslib:!0}},"react-hot-toast":{globals:{MutationObserver:!0,clearTimeout:!0,matchMedia:!0,setTimeout:!0},packages:{react:!0,"react-hot-toast>goober":!0}},"react-hot-toast>goober":{globals:{__nonce__:!0,_goober:!0,"document.createElement":!0,"document.head":!0}},"react-idle-timer":{globals:{clearTimeout:!0,document:!0,setTimeout:!0},packages:{"prop-types":!0,react:!0}},"react-markdown":{globals:{"console.warn":!0},packages:{"prop-types":!0,react:!0,"react-markdown>comma-separated-tokens":!0,"react-markdown>property-information":!0,"react-markdown>react-is":!0,"react-markdown>remark-parse":!0,"react-markdown>remark-rehype":!0,"react-markdown>space-separated-tokens":!0,"react-markdown>style-to-object":!0,"react-markdown>unified":!0,"react-markdown>unist-util-visit":!0,"react-markdown>vfile":!0}},"react-markdown>property-information":{packages:{"browserify>xtend":!0}},"react-markdown>remark-parse":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown":!0}},"react-markdown>remark-parse>mdast-util-from-markdown":{packages:{"react-markdown>remark-parse>mdast-util-from-markdown>mdast-util-to-string":!0,"react-markdown>remark-parse>mdast-util-from-markdown>micromark":!0,"react-markdown>vfile>unist-util-stringify-position":!0,"react-syntax-highlighter>refractor>parse-entities":!0}},"react-markdown>remark-parse>mdast-util-from-markdown>micromark":{packages:{"react-syntax-highlighter>refractor>parse-entities":!0}},"react-markdown>remark-rehype":{packages:{"react-markdown>remark-rehype>mdast-util-to-hast":!0}},"react-markdown>remark-rehype>mdast-util-to-hast":{globals:{"console.warn":!0},packages:{"@storybook/addon-docs>remark-external-links>mdast-util-definitions":!0,"react-markdown>remark-rehype>mdast-util-to-hast>mdurl":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-builder":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-generated":!0,"react-markdown>remark-rehype>mdast-util-to-hast>unist-util-position":!0,"react-markdown>unist-util-visit":!0}},"react-markdown>style-to-object":{packages:{"react-markdown>style-to-object>inline-style-parser":!0}},"react-markdown>unified":{packages:{"mocha>yargs-unparser>is-plain-obj":!0,"react-markdown>unified>bail":!0,"react-markdown>unified>extend":!0,"react-markdown>unified>is-buffer":!0,"react-markdown>unified>trough":!0,"react-markdown>vfile":!0}},"react-markdown>unist-util-visit":{packages:{"react-markdown>unist-util-visit>unist-util-visit-parents":!0}},"react-markdown>unist-util-visit>unist-util-visit-parents":{packages:{"react-markdown>unist-util-visit>unist-util-is":!0}},"react-markdown>vfile":{globals:{"process.cwd":!0},packages:{"path-browserify":!0,process:!0,"react-markdown>vfile>is-buffer":!0,"react-markdown>vfile>replace-ext":!0,"react-markdown>vfile>vfile-message":!0}},"react-markdown>vfile>replace-ext":{packages:{"path-browserify":!0}},"react-markdown>vfile>vfile-message":{packages:{"react-markdown>vfile>unist-util-stringify-position":!0}},"react-popper":{globals:{document:!0},packages:{"@popperjs/core":!0,react:!0,"react-popper>react-fast-compare":!0}},"react-popper>react-fast-compare":{globals:{Element:!0,"console.warn":!0}},"react-redux":{globals:{"console.warn":!0,document:!0},packages:{"@babel/runtime":!0,react:!0,"react-dom":!0,"react-redux>hoist-non-react-statics":!0,"react-redux>react-is":!0,"react-redux>use-sync-external-store":!0}},"react-redux>hoist-non-react-statics":{packages:{"react-redux>hoist-non-react-statics>react-is":!0}},"react-redux>use-sync-external-store":{globals:{document:!0},packages:{react:!0}},"react-router-dom":{globals:{FormData:!0,URL:!0,URLSearchParams:!0,__reactRouterVersion:"write",addEventListener:!0,confirm:!0,document:!0,history:!0,"location.href":!0,removeEventListener:!0,scrollTo:!0,scrollY:!0,"sessionStorage.getItem":!0,"sessionStorage.setItem":!0,setTimeout:!0},packages:{react:!0,"react-dom":!0,"react-router-dom>@remix-run/router":!0,"react-router-dom>react-router":!0}},"react-router-dom>@remix-run/router":{globals:{AbortController:!0,DOMException:!0,FormData:!0,Headers:!0,Request:!0,Response:!0,URL:!0,URLSearchParams:!0,console:!0,"document.defaultView":!0,history:!0}},"react-router-dom>react-router":{globals:{"console.error":!0,"console.warn":!0},packages:{react:!0,"react-router-dom>@remix-run/router":!0}},"react-simple-file-input":{globals:{File:!0,FileReader:!0,"console.warn":!0},packages:{"prop-types":!0,react:!0}},"react-syntax-highlighter>refractor>parse-entities":{globals:{"document.createElement":!0}},"react-tippy":{globals:{Element:!0,MSStream:!0,MutationObserver:!0,addEventListener:!0,clearTimeout:!0,"console.error":!0,"console.warn":!0,define:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.maxTouchPoints":!0,"navigator.msMaxTouchPoints":!0,"navigator.userAgent":!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{react:!0,"react-dom":!0,"react-tippy>popper.js":!0}},"react-tippy>popper.js":{globals:{MSInputMethodContext:!0,"Node.DOCUMENT_POSITION_FOLLOWING":!0,cancelAnimationFrame:!0,"console.warn":!0,devicePixelRatio:!0,document:!0,getComputedStyle:!0,innerHeight:!0,innerWidth:!0,"navigator.userAgent":!0,requestAnimationFrame:!0,setTimeout:!0}},"react-toggle-button":{globals:{cancelAnimationFrame:!0,clearTimeout:!0,"console.warn":!0,define:!0,performance:!0,requestAnimationFrame:!0,setTimeout:!0},packages:{react:!0}},"react-transition-group":{globals:{Element:!0,setTimeout:!0},packages:{"@babel/runtime":!0,"prop-types":!0,react:!0,"react-dom":!0,"react-transition-group>dom-helpers":!0}},"readable-stream":{globals:{AbortController:!0,AbortSignal:!0,AggregateError:!0,Blob:!0,queueMicrotask:!0},packages:{"browserify>string_decoder":!0,buffer:!0,"openai>abort-controller":!0,process:!0,"webpack>events":!0}},"readable-stream-2>core-util-is":{globals:{"Buffer.isBuffer":!0},packages:{buffer:!0}},"readable-stream-2>process-nextick-args":{globals:{process:!0},packages:{process:!0}},redux:{globals:{console:!0},packages:{"@babel/runtime":!0}},"remote-redux-devtools":{globals:{"console.log":!0,"console.warn":!0,fetch:!0,setTimeout:!0},packages:{"remote-redux-devtools>jsan":!0,"remote-redux-devtools>redux-devtools-core":!0,"remote-redux-devtools>redux-devtools-instrument":!0,"remote-redux-devtools>rn-host-detect":!0,"remote-redux-devtools>socketcluster-client":!0}},"remote-redux-devtools>jsan":{globals:{"console.warn":!0}},"remote-redux-devtools>redux-devtools-core":{globals:{ErrorUtils:!0,console:!0,devToolsOptions:!0,onerror:"write",serializeState:!0},packages:{lodash:!0,"remote-redux-devtools>jsan":!0,"remote-redux-devtools>redux-devtools-core>get-params":!0,"remote-redux-devtools>redux-devtools-core>nanoid":!0,"remote-redux-devtools>redux-devtools-core>remotedev-serialize":!0}},"remote-redux-devtools>redux-devtools-core>get-params":{globals:{GetParams:"write"}},"remote-redux-devtools>redux-devtools-instrument":{globals:{chrome:!0,"console.error":!0,process:!0,setTimeout:!0},packages:{lodash:!0,"mockttp>@httptoolkit/subscriptions-transport-ws>symbol-observable":!0,process:!0}},"remote-redux-devtools>rn-host-detect":{globals:{__DEV__:!0,__fbBatchedBridgeConfig:!0,console:!0}},"remote-redux-devtools>socketcluster-client":{globals:{WebSocket:!0,WorkerGlobalScope:!0,addEventListener:!0,clearTimeout:!0,localStorage:!0,location:!0,removeEventListener:!0,setTimeout:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0,"remote-redux-devtools>socketcluster-client>clone":!0,"remote-redux-devtools>socketcluster-client>component-emitter":!0,"remote-redux-devtools>socketcluster-client>linked-list":!0,"remote-redux-devtools>socketcluster-client>querystring":!0,"remote-redux-devtools>socketcluster-client>sc-channel":!0,"remote-redux-devtools>socketcluster-client>sc-errors":!0,"remote-redux-devtools>socketcluster-client>sc-formatter":!0,"remote-redux-devtools>socketcluster-client>uuid":!0}},"remote-redux-devtools>socketcluster-client>buffer":{globals:{console:!0},packages:{"base64-js":!0,"buffer>ieee754":!0}},"remote-redux-devtools>socketcluster-client>clone":{globals:{Buffer:!0},packages:{"remote-redux-devtools>socketcluster-client>buffer":!0}},"remote-redux-devtools>socketcluster-client>sc-channel":{packages:{"remote-redux-devtools>socketcluster-client>component-emitter":!0}},"remote-redux-devtools>socketcluster-client>sc-formatter":{globals:{Buffer:!0}},"remote-redux-devtools>socketcluster-client>uuid":{globals:{crypto:!0,msCrypto:!0}},reselect:{globals:{WeakRef:!0,"console.warn":!0}},semver:{globals:{"console.error":!0,process:!0},packages:{process:!0}},"stream-browserify":{packages:{"duplexify>inherits":!0,"stream-browserify>readable-stream":!0,"webpack>events":!0}},"stream-browserify>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"stream-http":{globals:{AbortController:!0,Blob:!0,"Buffer.alloc":!0,"Buffer.from":!0,MSStreamReader:!0,ReadableStream:!0,WritableStream:!0,XDomainRequest:!0,XMLHttpRequest:!0,clearTimeout:!0,fetch:!0,"location.protocol.search":!0,"process.nextTick":!0,setTimeout:!0},packages:{"browserify>url":!0,"browserify>xtend":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"stream-http>builtin-status-codes":!0,"stream-http>readable-stream":!0}},"stream-http>readable-stream":{globals:{"process.nextTick":!0,"process.stderr":!0,"process.stdout":!0},packages:{"@storybook/react>util-deprecate":!0,"browserify>string_decoder":!0,buffer:!0,"duplexify>inherits":!0,process:!0,"webpack>events":!0}},"string.prototype.matchall>call-bind":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>call-bind>set-function-length":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>call-bind>call-bind-apply-helpers":{packages:{"browserify>has>function-bind":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>call-bind>set-function-length":{packages:{"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>call-bound":{packages:{"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>define-properties":{packages:{"@lavamoat/webpack>json-stable-stringify>object-keys":!0,"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0}},"string.prototype.matchall>define-properties>define-data-property":{packages:{"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>es-abstract>array-buffer-byte-length":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>is-array-buffer":!0}},"string.prototype.matchall>es-abstract>available-typed-arrays":{packages:{"string.prototype.matchall>es-abstract>typed-array-length>possible-typed-array-names":!0}},"string.prototype.matchall>es-abstract>es-to-primitive>is-symbol":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>safe-regex-test":!0,"string.prototype.matchall>has-symbols":!0}},"string.prototype.matchall>es-abstract>get-proto":{packages:{"eslint-plugin-react>es-iterator-helpers>has-proto>dunder-proto":!0,"string.prototype.matchall>es-object-atoms":!0}},"string.prototype.matchall>es-abstract>is-array-buffer":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>es-abstract>is-callable":{globals:{document:!0}},"string.prototype.matchall>es-abstract>is-regex":{packages:{"eslint-plugin-react>hasown":!0,"jsdom>form-data>es-set-tostringtag>has-tostringtag":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>gopd":!0}},"string.prototype.matchall>es-abstract>is-shared-array-buffer":{packages:{"string.prototype.matchall>call-bound":!0}},"string.prototype.matchall>es-abstract>object-inspect":{globals:{HTMLElement:!0,WeakRef:!0}},"string.prototype.matchall>es-abstract>safe-regex-test":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>is-regex":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>es-abstract>stop-iteration-iterator":{globals:{StopIteration:!0},packages:{"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>internal-slot":!0}},"string.prototype.matchall>es-abstract>typed-array-buffer":{packages:{"browserify>util>is-typed-array":!0,"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>get-intrinsic":{globals:{AggregateError:!0,Atomics:!0,FinalizationRegistry:!0,Float16Array:!0,SharedArrayBuffer:!0,WeakRef:!0},packages:{"browserify>has>function-bind":!0,"eslint-plugin-react>array-includes>math-intrinsics":!0,"eslint-plugin-react>hasown":!0,"string.prototype.matchall>call-bind>call-bind-apply-helpers":!0,"string.prototype.matchall>call-bind>es-define-property":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>es-object-atoms":!0,"string.prototype.matchall>get-intrinsic>async-function":!0,"string.prototype.matchall>get-intrinsic>async-generator-function":!0,"string.prototype.matchall>get-intrinsic>generator-function":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>has-symbols":!0}},"string.prototype.matchall>internal-slot":{packages:{"eslint-plugin-react>hasown":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>side-channel":!0}},"string.prototype.matchall>regexp.prototype.flags":{packages:{"string.prototype.matchall>call-bind":!0,"string.prototype.matchall>define-properties":!0,"string.prototype.matchall>es-abstract>get-proto":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>gopd":!0,"string.prototype.matchall>set-function-name":!0}},"string.prototype.matchall>set-function-name":{packages:{"eslint-plugin-react>es-iterator-helpers>has-property-descriptors":!0,"string.prototype.matchall>define-properties>define-data-property":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>set-function-name>functions-have-names":!0}},"string.prototype.matchall>side-channel":{packages:{"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>side-channel>side-channel-list":!0,"string.prototype.matchall>side-channel>side-channel-map":!0,"string.prototype.matchall>side-channel>side-channel-weakmap":!0}},"string.prototype.matchall>side-channel>side-channel-list":{packages:{"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0}},"string.prototype.matchall>side-channel>side-channel-map":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0}},"string.prototype.matchall>side-channel>side-channel-weakmap":{packages:{"string.prototype.matchall>call-bound":!0,"string.prototype.matchall>es-abstract>object-inspect":!0,"string.prototype.matchall>es-errors":!0,"string.prototype.matchall>get-intrinsic":!0,"string.prototype.matchall>side-channel>side-channel-map":!0}},tslib:{globals:{SuppressedError:!0}},tweetnacl:{globals:{crypto:!0,msCrypto:!0,nacl:"write"}},"uri-js":{globals:{define:!0}},uuid:{globals:{crypto:!0,msCrypto:!0}},viem:{globals:{TextDecoder:!0,TextEncoder:!0},packages:{"@noble/hashes":!0}},"web-vitals":{globals:{"PerformanceEventTiming.prototype":!0,PerformanceObserver:!0,addEventListener:!0,"document.addEventListener":!0,"document.prerendering":!0,"document.readyState":!0,"document.visibilityState":!0,"document.wasDiscarded":!0,performance:!0,removeEventListener:!0,requestAnimationFrame:!0,requestIdleCallback:!0,setTimeout:!0}},"webextension-polyfill":{globals:{browser:!0,chrome:!0,"console.error":!0,"console.warn":!0,define:!0}},"webpack>events":{globals:{console:!0}}}},e.ENUM={NAME_globalThis:"G",NAME_scopeTerminator:"ST",NAME_runtimeHandler:"RH",RUNTIME_KEY:"_LM_"},(()=>{let t={exports:{}};function r({createFunctionWrapper:e=l,handleGlobalWrite:t=!1,knownWritableFields:u=new Set}={}){return{getEndowmentsForConfig:c,copyWrappedGlobals:k,getBuiltinForConfig:m,createFunctionWrapper:e,attenuateBuiltin:f,makeMinimalViewOfRef:h,copyValueAtPath:d,applyGetSetPropDescTransforms:g,applyEndowmentPropDescTransforms:p};function c(e,r,n,a){if(!r.globals)return{};let i=[],s=new Set,o=[];return Object.entries(r.globals).forEach(([e,r])=>{let n=e.split(".");if(n.some(e=>"__proto__"===e))throw Error(`Lavamoat - "__proto__" disallowed when creating minimal view. saw "${e}"`);if(!1===r)return void o.push(e);if("write"===r){if(!t)return;if(n.length>1)throw Error(`LavaMoat - write access is only allowed at the top level, saw "${e}"`);s.add(e),i.push(e);return}if(!0!==r)throw Error(`LavaMoat - unrecognizable policy value (${typeof r}) for path "${e}"`);i.push(e)}),i.sort((e,t)=>e.length-t.length),h(e,i,n,a,o,s)}function h(e,t,r,n,a=[],i=new Set){let l={};return t.forEach(t=>{let c=t.split(".");u.has(c[0])?i.has(c[0])?s(c[0],e,l):o(c,e,l):d("",c,a,e,l,r,n)}),l}function f(e,t,r=[]){return h(e,t.sort(),void 0,void 0,r)}function m(e,t,r){let n=[],a=[];return Object.entries(r).forEach(([e,r])=>{let i=e.split(".");if(t===i[0]){let e=i.slice(1).join(".");!0===r?n.push(e):!1===r&&a.push(e)}}),f(e,n,a)}function d(t,r,n,s,o,l=s,u=o){if(0===r.length)throw Error("unable to copy, must have pathParts, was empty");let[c,...h]=r,f=a(t,c),{prop:m}=y(s,c);if(i(m))return;let p=Reflect.getOwnPropertyDescriptor(o,c);if(p){if(!("value"in p))throw Error(`unable to copy on to targetRef, targetRef has a getter at "${f}"`);let e=typeof p.value;if("object"!==e&&"function"!==e)throw Error(`unable to copy on to targetRef, targetRef value is not an obj or func at "${f}"`)}if(h.length>0){let e,{sourceValue:t,sourceWritable:r}=w(m);if(p&&!n.includes(f))e=p.value;else{let t={};Reflect.defineProperty(o,c,{value:t,writable:r,enumerable:m.enumerable,configurable:m.configurable}),e=t}d(f,h,n,t,e);return}if(n.includes(f))return void console.warn(`LavaMoat - conflicting rules exist for "${f}"`);if(!("value"in m))return void Reflect.defineProperty(o,c,g(m,u,l));let{sourceValue:b,sourceWritable:k}=w(m);if("function"!=typeof b)return void Reflect.defineProperty(o,c,m);function w(e){let t,r;if("value"in e)t=e.value,r=e.writable;else if("get"in e&&e.get)t=e.get.call(l),r="set"in e;else throw Error("getEndowmentsForConfig - property descriptor missing a getter");return{sourceValue:t,sourceWritable:r}}Reflect.defineProperty(o,c,{value:e(b,e=>e===u,l),writable:k,enumerable:m.enumerable,configurable:m.configurable})}function p(e,t,r){let n=e;return g(n=b(n,t,r),t,r)}function g(t,r,n){let a={...t};return t.get&&(a.get=function(){let a=Reflect.apply(t.get,this===r?n:this,[]);return"function"==typeof a?e(a,e=>e===r,n):a}),t.set&&(a.set=function(e){let a=this===r?n:this;return Reflect.apply(t.set,a,[e])}),a}function b(t,r,n){if(!("value"in t&&"function"==typeof t.value))return t;let a=e(t.value,e=>e===r,n);return{...t,value:a}}function y(e,t){let r=e;for(;;){if(!r)return{prop:null,receiver:null};let e=typeof r;if("object"===e||"function"===e){let e=Reflect.getOwnPropertyDescriptor(r,t);if(e)return{receiver:r,prop:e};r=Reflect.getPrototypeOf(r)}else r=r.__proto__}}function k(e,t,r=["globalThis"]){let a=n(e),i=a.findIndex(e=>e===Object.prototype),s=-1===i;s&&(i=a.length);let o=a.slice(0,i);o.forEach(t=>{Object.values(Object.getOwnPropertyDescriptors(t)).forEach(t=>{if("get"in t&&t.get)try{Reflect.apply(t.get,e,[])}catch{}})});let l=o.map((e,t)=>{let r=Object.getOwnPropertyDescriptors(e);return s&&t===o.length-1?Object.fromEntries(Object.entries(r).filter(([e])=>!(e in Object.prototype))):r});for(let n of(Object.entries(Object.assign(Object.create(null),...l.reverse())).filter(([e])=>!(e in t)).filter(([e])=>!r.includes(e)).forEach(([r,n])=>{let a=p(n,t,e);Reflect.defineProperty(t,r,a)}),r))n in t||(t[n]=t);return t}}function n(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}function a(e,t){return e&&0!==e.length?`${e}.${t}`:t}function i(e){return!e}function s(e,t,r){let n=Reflect.getOwnPropertyDescriptor(t,e)?.enumerable;Reflect.defineProperty(r,e,{configurable:!1,enumerable:n,set(r){t[e]=r},get:()=>t[e]})}function o(e,t,r){let n=Reflect.getOwnPropertyDescriptor(t,e[0])?.enumerable,i=r,s="";for(let t=0;t<e.length-1;t++){s=a(s,e[t]);let r=e[t];if(Reflect.getOwnPropertyDescriptor(i,r)?.get)throw Error(`LavaMoat - "${e[0]}" is writeable elsewhere and both "${s}" and "${e.join(".")}" are allowed for one package. One of these entries is redundant.`);"object"!=typeof i[r]&&(i[r]={}),i=i[r]}Reflect.defineProperty(i,e[e.length-1],{get:()=>{let r=t[e[0]],n=t;for(let t=1;t<e.length;t++)n=r,r=r[e[t]];return"function"==typeof r&&(r=r.bind(n)),r},writeable:!1,enumerable:n,configurable:!1})}function l(e,t,r){let n=function(){return new.target?Reflect.construct(e,arguments,new.target):Reflect.apply(e,t(this)?r:this,arguments)};return Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)),Reflect.getPrototypeOf(n)!==Reflect.getPrototypeOf(e)&&Object.setPrototypeOf(n,Reflect.getPrototypeOf(e)),n}t.exports,t.exports=r,t.exports.defaultCreateFunctionWrapper=l,t.exports._test={instrumentDynamicValueAtPath:o},e.endowmentsToolkit=t.exports})(),(()=>{let t={exports:{}},r=t.exports;"event"in globalThis&&(globalThis.event=void 0);let{getOwnPropertyNames:n}=Object;function a(e){let t=[],r=e;for(;r&&("object"==typeof r||"function"==typeof r);)t.push(r),r=Reflect.getPrototypeOf(r);return t}!function(e){if("window"in e&&"object"==typeof e.window&&e!==e.window){let t=e.window,r=a(t),i=a(e);r.pop();let s=r.flatMap(e=>n(e)),o=new Set(i.flatMap(e=>n(e)));for(let r of s)if(!o.has(r)&&r in globalThis&&void 0!==t[r])try{e[r]=e[r]}catch{}}}(globalThis);let{defineProperty:i}=Object,{call:s}=Function.prototype,o=new WeakMap,l=globalThis,u=MessageEvent.prototype,c=new Compartment().globalThis,h=Object.getOwnPropertyDescriptor(u,"source");if(h&&h.get){let e=s.bind(h.get);i(u,"source",{...h,get(){let t=e(this);return t===l||t===l.window?o.get(this)||c:t}})}r.MessageEvent=(e,t,r)=>{let n=e.MessageEvent;n&&(e.MessageEvent=function(e,t){let a=new n(e,t);return o.set(a,r),a},e.MessageEvent.prototype=n.prototype)},r.addEventListener=(e,t,r)=>{let n=e.addEventListener;n&&(e.addEventListener=(e,a,i)=>"message"===e?n.call(t,e,e=>(o.set(e,r),a.call(r,e)),i):n.call(r,e,a,i))},e.repairs=t.exports})(),(()=>{let t,r={exports:{}};r.exports;let{repairIntrinsics:n}=globalThis,a="object"==typeof console?console.warn:()=>{},i=void 0!==n;i?(n(e.options.lockdown),LOCKDOWN_SHIMS.forEach(e=>{e()}),hardenIntrinsics()):a("LavaMoatPlugin: runtime execution started without SES present, switching to no-op.");let{keys:s,create:o,freeze:l,assign:u,defineProperty:c,defineProperties:h,getOwnPropertyDescriptors:f,fromEntries:m,entries:d,values:p}=Object,{Proxy:g,Math:b,Date:y}=globalThis,{harden:k}=globalThis,w=new Set;p(e.policy.resources).forEach(e=>{e.globals&&"object"==typeof e.globals&&d(e.globals).forEach(([e,t])=>{"write"===t&&w.add(e)})});let{getEndowmentsForConfig:v,copyWrappedGlobals:_,getBuiltinForConfig:S}=e.endowmentsToolkit({handleGlobalWrite:!0,knownWritableFields:w}),{NAME_globalThis:E,NAME_scopeTerminator:j,NAME_runtimeHandler:T}=e.ENUM,x=l(new g(l(o(null)),l({has:l(()=>!0)}))),A=globalThis,R=["window","self","global","globalThis","frames"],M=s(e.repairs||{}),O=new Map,L=t=>{let r=e.idmap.find(([,e])=>e.includes(t));if(r)return r[0]};e.defaultExport=l((r,n)=>{if(!i)return o(null);if(!O.has(r)){let n=new Compartment({Math:b,Date:y});((r,n)=>{if(r===e.root)_(A,t=n,R),e?.scuttling?.scuttle(A,e.options?.scuttleGlobalThis);else{let a=e.policy.resources[r]||{},i=v(t,a,globalThis,n);M.length>0&&a.globals&&s(a.globals).length>0&&M.forEach(t=>{if(i[t]){let r=e.repairs[t];r&&r(i,A,n)}}),h(n,{...f(i),...m(R.map(e=>[e,{value:n}]))}),e.debug&&e.debug.debugProxy(n,t,r)}})(r,n.globalThis),O.set(r,n)}let d=o(null),{__webpack_require__:p}=n,{module:w}=n;if(p){let t=function(t,...n){"number"!=typeof t&&(t=`${t}`);let a=p.bind(this,t,...n);var i=t;if(void 0===i)throw Error("Requested specifier is undefined");if(e.unenforceable.includes(i)||r===e.root)return a();let o=e.policy.resources[r]||{};if(e.externals[i]){let t=e.externals[i];if(o.builtin){if(o.builtin[t])return a();if(t&&!t.includes(".")&&s(o.builtin).some(e=>e.startsWith(`${t}.`)))return S(a(),t,o.builtin)}if(o.packages){let e=L(t);if(e&&o.packages[e])return a()}}let l=L(i);if(!l){if(e.ctxm.includes(i))throw Error(`'${r}' is trying to load a module dynamically from a dependency it has not been allowed using the following Webpack Context Module: '${i}'`);throw Error(`Requested specifier '${i}' is not allowed as a builtin and is not a known dependency of '${r}'; regenerate policy or add it to policy-override.json.`)}if(l===r||o.packages?.[l])return a();throw Error(`Policy does not allow importing ${l} from ${r}`)};for(let n of(t.e=t=>{if(!e.kch.includes(t))throw Error(`Attempt to load a chunk that was not known at compile time: ${t} from ${r}`);return p.e(t)},["O","n","d","o","r","s","t","b","j"]))t[n]=k(p[n]);t.m=new g({},{has:(e,t)=>(a(`A module attempted to read ${String(t)} directly from webpack's module cache`),!1)}),t.g=O.get(r).globalThis,t.nmd=e=>e===w?p.nmd(w):e,t.hmd=e=>e===w?p.hmd(w):e,d.__webpack_require__=t}let I=u(o(null),n,d);c(I,"module",{get:()=>w,set:()=>{}});let C=I.exports;return c(I,"exports",{get:()=>C,set:e=>{C=e}}),l(I),l(u(o(null),{[j]:x,[T]:I,[E]:O.get(r).globalThis}))}),e.runtime=r.exports})(),__webpack_require__._LM_=e.defaultExport,"undefined"!=typeof harden&&harden(__webpack_require__._LM_)})(),(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";var e=__webpack_require__(299150);var t=__webpack_require__(542780);var r=__webpack_require__(26319);var n=__webpack_require__(76184);var a=__webpack_require__(6877);(()=>{if(n.MB){(0,n.qS)();return}a.Q$&&(0,a.bp)(),(0,t.Ay)()&&((0,r.Qf)(),document.prerendering&&(0,e.zM)()&&document.addEventListener("prerenderingchange",()=>{(0,r.jf)(new Error("Prerendered page has become active."))}),window.addEventListener("pageshow",e=>{e.persisted&&(console.warn("BFCached page has become active. Restoring the streams."),(0,r.O_)())}),window.addEventListener("pagehide",e=>{e.persisted&&(console.warn("Page may become BFCached. Destroying the streams."),(0,r.co)())}))})()}}).call(__webpack_require__._LM_("$root$",{__webpack_require__}))()})();