{"version":3,"file":"inspector.mjs","sources":["../lib-src/inspector/objects/primitives.mts","../lib-src/inspector/evaluator.mts","../lib-src/inspector/objects/function.mts","../lib-src/inspector/objects/objects.mts","../lib-src/inspector/objects/shadow-realms.mts","../lib-src/inspector/objects/modules.mts","../lib-src/inspector/objects/RegExp.mts","../lib-src/inspector/objects/proxies.mts","../lib-src/inspector/objects/promises.mts","../lib-src/inspector/objects/arrays.mts","../lib-src/inspector/objects/dates.mts","../lib-src/inspector/objects/collections.mts","../lib-src/inspector/objects/errors.mts","../lib-src/inspector/objects/index.mts","../lib-src/inspector/context.mts","../lib-src/inspector/internal-utils.mts","../lib-src/inspector/methods.mts","../lib-src/inspector/utils.mts","../lib-src/inspector/index.mts"],"sourcesContent":["import type { Inspector } from './index.mts';\nimport {\n  BigIntValue, SymbolDescriptiveString,\n  type BooleanValue,\n  type JSStringValue,\n  type NullValue,\n  type NumberValue,\n  type SymbolValue,\n  type UndefinedValue,\n} from '#self';\n\nexport const Null: Inspector<NullValue> = {\n  toRemoteObject: () => ({ type: 'object', subtype: 'null', value: null }),\n  toObjectPreview: () => ({\n    type: 'object', subtype: 'null', properties: [], overflow: false,\n  }),\n  toPropertyPreview: (name) => ({\n    name, type: 'object', subtype: 'null', value: 'null',\n  }),\n  toDescription: () => '',\n};\n\nexport const Undefined: Inspector<UndefinedValue> = {\n  toRemoteObject: () => ({ type: 'undefined' }),\n  toObjectPreview: () => ({\n    type: 'undefined', properties: [], overflow: false,\n  }),\n  toPropertyPreview: (name) => ({\n    name, type: 'undefined', value: 'undefined',\n  }),\n  toDescription: () => 'undefined',\n};\n\nexport const Boolean: Inspector<BooleanValue> = {\n  toRemoteObject: (value) => ({ type: 'boolean', value: value.booleanValue() }),\n  toPropertyPreview: (name, value) => ({\n    name, type: 'boolean', value: value.booleanValue().toString(),\n  }),\n  toObjectPreview(value) {\n    return {\n      type: 'boolean',\n      value: value.booleanValue(),\n      description: value.booleanValue().toString(),\n      overflow: false,\n      properties: [],\n    };\n  },\n  toDescription: (value) => value.booleanValue().toString(),\n};\n\nexport const Symbol: Inspector<SymbolValue> = {\n  toRemoteObject: (value, getObjectId) => ({\n    type: 'symbol',\n    description: SymbolDescriptiveString(value),\n    objectId: getObjectId(value),\n  }),\n  toPropertyPreview: (name, value) => ({\n    name, type: 'symbol', value: SymbolDescriptiveString(value),\n  }),\n  toObjectPreview: (value) => ({\n    type: 'symbol',\n    description: SymbolDescriptiveString(value),\n    overflow: false,\n    properties: [],\n  }),\n  toDescription: (value) => SymbolDescriptiveString(value),\n};\n\nexport const String: Inspector<JSStringValue> = {\n  toRemoteObject: (value) => ({ type: 'string', value: value.stringValue() }),\n  toPropertyPreview(name, value) {\n    return {\n      name, type: 'string', value: value.stringValue(),\n    };\n  },\n  toObjectPreview(value) {\n    return {\n      type: 'string',\n      description: value.stringValue(),\n      overflow: false,\n      properties: [],\n    };\n  },\n  toDescription: (value) => value.stringValue(),\n};\n\nexport const Number: Inspector<NumberValue> = {\n  toRemoteObject(value) {\n    const v = value.value;\n    let description = v.toString();\n    const isNeg0 = Object.is(v, -0);\n    // Includes values `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals.\n    if (isNeg0 || !globalThis.Number.isFinite(v)) {\n      if (typeof v === 'bigint') {\n        description += 'n';\n        return { type: 'bigint', unserializableValue: description, description };\n      }\n      return { type: 'number', unserializableValue: description, description: isNeg0 ? '-0' : description };\n    }\n    return { type: 'number', value: v, description };\n  },\n  toPropertyPreview(name, value, context) {\n    return {\n      name, type: 'number', value: this.toDescription(value, context),\n    };\n  },\n  toObjectPreview(value, context) {\n    return {\n      type: 'number',\n      description: this.toDescription(value, context),\n      overflow: false,\n      properties: [],\n    };\n  },\n  toDescription: (value) => {\n    const r = value.value;\n    return value instanceof BigIntValue ? `${r}n` : r.toString();\n  },\n};\n","import type { InspectorContext } from './context.mts';\nimport {\n  isEvaluator, ManagedRealm, skipDebugger, surroundingAgent, type PlainCompletion, type PlainEvaluator,\n} from '#self';\n\nexport function nativeEvalInAnyRealm<T>(enterPreview: boolean, context: InspectorContext, closure: (() => PlainCompletion<T>) | (() => PlainEvaluator<T>)): PlainCompletion<T> | undefined {\n  const realm = surroundingAgent.runningExecutionContext?.Realm as ManagedRealm || context.getAnyRealm()?.realm;\n  if (!realm) return undefined;\n\n  const exitPreview = enterPreview ? surroundingAgent.debugger_scopePreview() : undefined;\n  const pop = realm.pushTopContext();\n  let result = closure();\n  if (isEvaluator(result)) {\n    result = skipDebugger(result);\n  }\n  pop?.();\n  exitPreview?.[Symbol.dispose]();\n  return result;\n}\n","import type { Protocol } from 'devtools-protocol';\nimport type { Location } from '../../../src/parser/ParseNode.mts';\nimport { getDisplayObjectFromEnvironmentRecord } from '../context.mts';\nimport { nativeEvalInAnyRealm } from '../evaluator.mts';\nimport type { Inspector } from './index.mts';\nimport {\n  type FunctionObject, isWrappedFunctionExoticObject, IntrinsicsFunctionToString, isECMAScriptFunctionObject,\n  isBuiltinFunctionObject,\n  type DefaultConstructorBuiltinFunction,\n  EnvironmentRecord,\n  ObjectValue,\n  CreateArrayFromList,\n  X,\n  isBoundFunctionObject,\n} from '#self';\n\nfunction unwrapFunction(value: FunctionObject): FunctionObject {\n  if (isWrappedFunctionExoticObject(value)) {\n    return unwrapFunction(value.WrappedTargetFunction);\n  }\n  if (isBoundFunctionObject(value)) {\n    return unwrapFunction(value.BoundTargetFunction);\n  }\n  return value;\n}\n\nfunction toLocation(location: Location, scriptId: string | undefined): Protocol.Runtime.InternalPropertyDescriptor {\n  return {\n    name: '[[FunctionLocation]]',\n    value: {\n      type: 'object',\n      subtype: 'internal#location' as never,\n      description: 'Object',\n      value: {\n        columnNumber: location.start.column,\n        lineNumber: location.start.line - 1,\n        scriptId,\n      },\n    },\n  };\n}\n\nexport const Function: Inspector<FunctionObject> = {\n  toRemoteObject(value, getObjectId) {\n    const result: Protocol.Runtime.RemoteObject = {\n      type: 'function',\n      objectId: getObjectId(value),\n    };\n    value = unwrapFunction(value);\n    result.description = IntrinsicsFunctionToString(value);\n    if (isECMAScriptFunctionObject(value) && value.ECMAScriptCode) {\n      if (value.ECMAScriptCode.type === 'FunctionBody') {\n        result.className = 'Function';\n      } else if (value.ECMAScriptCode.type === 'GeneratorBody') {\n        result.className = 'GeneratorFunction';\n      } else if (value.ECMAScriptCode.type === 'AsyncBody') {\n        result.className = 'AsyncFunction';\n      } else if (value.ECMAScriptCode.type === 'AsyncGeneratorBody') {\n        result.className = 'AsyncGeneratorFunction';\n      }\n    } else {\n      result.className = 'Function';\n    }\n    return result;\n  },\n  toPropertyPreview: (name) => ({ name, type: 'function', value: '' }),\n  toObjectPreview(value) {\n    return {\n      type: 'function',\n      description: IntrinsicsFunctionToString(unwrapFunction(value)),\n      overflow: false,\n      properties: [],\n    };\n  },\n  toInternalProperties(value, getObjectId, context) {\n    const result: Protocol.Runtime.InternalPropertyDescriptor[] = [];\n\n    while (true) {\n      if (isWrappedFunctionExoticObject(value)) {\n        if (!result.some((p) => p.name === '[[WrappedTargetFunction]]')) {\n          result.push({\n            name: '[[WrappedTargetFunction]]',\n            value: context.toRemoteObject(value.WrappedTargetFunction, { generatePreview: true }),\n          });\n        }\n        value = value.WrappedTargetFunction;\n        continue;\n      }\n\n      if (isBoundFunctionObject(value)) {\n        const v = value;\n        if (!result.some((p) => p.name === '[[BoundTargetFunction]]')) {\n          result.push({\n            name: '[[BoundTargetFunction]]',\n            value: context.toRemoteObject(v.BoundTargetFunction, { generatePreview: true }),\n          }, {\n            name: '[[BoundThis]]',\n            value: context.toRemoteObject(v.BoundThis, { generatePreview: true }),\n          }, {\n            name: '[[BoundArguments]]',\n            value: context.toRemoteObject(\n              X(nativeEvalInAnyRealm(false, context, () => CreateArrayFromList(v.BoundArguments)))!,\n              { generatePreview: true },\n            ),\n          });\n        }\n        value = v.BoundTargetFunction;\n        continue;\n      }\n      break;\n    }\n\n    if (isECMAScriptFunctionObject(value)) {\n      if (!value.ECMAScriptCode) return [];\n\n      const scope: ObjectValue[] = [];\n      let env: EnvironmentRecord | null = value.Environment;\n      while (env instanceof EnvironmentRecord) {\n        const result = getDisplayObjectFromEnvironmentRecord(env);\n        if (result) {\n          scope.push(result.object);\n        }\n        env = env.OuterEnv;\n      }\n      const scopeObject = X(nativeEvalInAnyRealm(false, context, () => CreateArrayFromList(scope)));\n      const scopeDesc: Protocol.Runtime.RemoteObject | undefined = scopeObject ? {\n        className: 'Array',\n        description: `Scopes[${scope.length}]`,\n        objectId: getObjectId(scopeObject as ObjectValue),\n        subtype: 'internal#scopeList' as never,\n        type: 'object',\n      } : undefined;\n      result.push(toLocation(value.ECMAScriptCode.location, value.scriptId), { name: '[[Scopes]]', value: scopeDesc });\n    }\n\n    if (isBuiltinFunctionObject(value)) {\n      if ((value as DefaultConstructorBuiltinFunction).HostLocation) {\n        const [scriptId, location] = (value as DefaultConstructorBuiltinFunction).HostLocation;\n        result.push(toLocation(location, scriptId));\n      }\n      if (value.nativeFunction.section) {\n        result.push({\n          name: '[[Section]]',\n          value: {\n            type: 'string',\n            value: value.nativeFunction.section,\n          },\n        });\n      }\n    }\n    return result;\n  },\n  toDescription: () => 'Function',\n};\n","import type { Protocol } from 'devtools-protocol';\nimport type { InspectorContext } from '../context.mts';\nimport { getInspector, type Inspector } from './index.mts';\nimport {\n  Descriptor,\n  isTypedArrayObject, JSStringValue, ObjectValue, PrivateName, SymbolDescriptiveString, SymbolValue, UndefinedValue, Value, type MapObject, type PrivateElementRecord, type PropertyKeyValue, type SetObject,\n  DataBlock,\n  TypedArrayGetElement,\n  TypedArrayLength,\n  MakeTypedArrayWithBufferWitnessRecord,\n  ArrayExoticObjectInternalMethods,\n  F,\n} from '#self';\n\nexport type InternalPropertyItem = readonly [string, Value | MapObject['MapData'] | SetObject['SetData']];\nexport type AdditionalPropertyItem = readonly [string, Value];\n\nexport class ObjectInspector<T extends ObjectValue> implements Inspector<T> {\n  subtype: Protocol.Runtime.RemoteObject['subtype'];\n\n  className: string | ((value: Value) => string);\n\n  toDescription: (value: T, context: InspectorContext) => string;\n\n  toCustomPreview?: (value: T, getObjectId: (val: SymbolValue | ObjectValue) => string, context: InspectorContext) => Protocol.Runtime.CustomPreview | undefined;\n\n  private toEntries: ((value: T, context: InspectorContext) => Protocol.Runtime.ObjectPreview['entries']) | undefined;\n\n  private additionalProperties: ((value: T, context: InspectorContext) => Iterable<AdditionalPropertyItem>) | undefined;\n\n  private internalProperties: ((value: T, context: InspectorContext) => Iterable<InternalPropertyItem>) | undefined;\n\n  public exoticProperties: Inspector<T>['exoticProperties'] | undefined;\n\n  constructor(\n    className: ObjectInspector<T>['className'],\n    subtype: ObjectInspector<T>['subtype'],\n    toDescription: ObjectInspector<T>['toDescription'],\n    additionalOptions?: {\n      entries?: ObjectInspector<T>['toEntries'];\n      additionalProperties?: ObjectInspector<T>['additionalProperties'];\n      internalProperties?: ObjectInspector<T>['internalProperties'];\n      exoticProperties?: ObjectInspector<T>['exoticProperties'];\n      customPreview?: ObjectInspector<T>['toCustomPreview'];\n    },\n  ) {\n    this.className = className;\n    this.subtype = subtype;\n    this.toDescription = toDescription;\n    this.toEntries = additionalOptions?.entries;\n    this.additionalProperties = additionalOptions?.additionalProperties;\n    this.internalProperties = additionalOptions?.internalProperties;\n    this.exoticProperties = additionalOptions?.exoticProperties;\n    this.toCustomPreview = additionalOptions?.customPreview;\n  }\n\n  toRemoteObject(value: T, getObjectId: (val: ObjectValue | SymbolValue) => string, context: InspectorContext): Protocol.Runtime.RemoteObject {\n    const object: Protocol.Runtime.RemoteObject = {\n      type: 'object',\n      subtype: this.subtype,\n      objectId: getObjectId(value),\n      className: typeof this.className === 'string' ? this.className : this.className(value),\n      description: this.toDescription(value, context),\n      preview: this.toObjectPreview(value, context),\n    };\n    const customPreview = this.toCustomPreview?.(value, getObjectId, context);\n    if (customPreview) object.customPreview = customPreview;\n    return object;\n  }\n\n  toPropertyPreview(name: string, value: T, context: InspectorContext): Protocol.Runtime.PropertyPreview {\n    return {\n      name,\n      type: 'object',\n      subtype: this.subtype,\n      value: this.toDescription(value, context),\n    };\n  }\n\n  toInternalProperties(value: T, getObjectId: (val: ObjectValue | SymbolValue) => string, context: InspectorContext, generatePreview: boolean | undefined): Protocol.Runtime.InternalPropertyDescriptor[] {\n    const internalProperties = [...this.internalProperties?.(value, context) || []];\n    if (!internalProperties.length) {\n      return [];\n    }\n    return internalProperties.map(([name, val]): Protocol.Runtime.InternalPropertyDescriptor => {\n      let value: Protocol.Runtime.RemoteObject;\n      if (val instanceof Value) {\n        value = getInspector(val).toRemoteObject(val, getObjectId, context, generatePreview);\n      } else {\n        const array = new ObjectValue([]);\n        array.DefineOwnProperty = ArrayExoticObjectInternalMethods.DefineOwnProperty;\n        array.properties.set('length', Descriptor({ Value: F(val.length), Configurable: true, Enumerable: false, Writable: true }));\n        for (const [index, item] of val.entries()) {\n          let value;\n          if (item instanceof Value) {\n            value = item;\n          } else {\n            if (!item?.Key || !item.Value) {\n              continue;\n            }\n            value = new ObjectValue(['InspectorEntry']);\n            value.properties.set('key', Descriptor({ Value: item.Key, Configurable: true, Enumerable: false, Writable: true }));\n            value.properties.set('value', Descriptor({ Value: item.Value, Configurable: true, Enumerable: false, Writable: true }));\n          }\n          array.properties.set(Value(index.toString()), Descriptor({ Value: value, Configurable: true, Enumerable: false, Writable: true }));\n        }\n        value = getInspector(array).toRemoteObject(array, getObjectId, context, generatePreview);\n      }\n      return ({ name, value });\n    });\n  }\n\n  toObjectPreview(value: T, context: InspectorContext): Protocol.Runtime.ObjectPreview {\n    const e = this.toEntries?.(value, context);\n    return {\n      type: 'object',\n      subtype: this.subtype,\n      description: this.toDescription(value, context),\n      entries: e?.length ? e : undefined,\n      ...propertiesToPropertyPreview(\n        value,\n        [...this.internalProperties?.(value, context) || [], ...this.additionalProperties?.(value, context) || []],\n        context,\n      ),\n    };\n  }\n}\n\nexport const DefaultObject = new ObjectInspector<ObjectValue>('Object', undefined, (object) => {\n  const [ctor] = object.ConstructedBy;\n  if (!ctor) {\n    return 'Object';\n  }\n  return propertyNameToString(ctor.HostInitialName);\n});\n\nexport const InternalInspectorEntry = new ObjectInspector<ObjectValue>('Object', 'internal#entry' as never, (value, context) => {\n  const key = value.properties.get(Value('key'))!.Value!;\n  const val = value.properties.get(Value('value'))!.Value!;\n  return `{${getInspector(key).toDescription(key, context)} => ${getInspector(val).toDescription(val, context)}}`;\n});\n\nfunction propertyNameToString(value: PropertyKeyValue | PrivateName): string {\n  if (value instanceof JSStringValue) {\n    return value.stringValue();\n  } else if (value instanceof PrivateName) {\n    return value.Description;\n  } else {\n    return SymbolDescriptiveString(value);\n  }\n}\n\nexport function propertyToPropertyPreview(key: PropertyKeyValue | PrivateName, desc: Descriptor | PrivateElementRecord, context: InspectorContext): Protocol.Runtime.PropertyPreview {\n  const name = propertyNameToString(key);\n  if (desc.Get || desc.Set) {\n    return { name, type: 'accessor' };\n  } else {\n    return getInspector(desc.Value!).toPropertyPreview(name, desc.Value!, context);\n  }\n}\n\nfunction propertiesToPropertyPreview(value: ObjectValue, extra: undefined | Iterable<InternalPropertyItem>, context: InspectorContext, max = 5) {\n  let overflow = false;\n  const properties: Protocol.Runtime.PropertyPreview[] = [];\n  if (extra) {\n    for (const [key, value] of extra) {\n      if (value instanceof Value) {\n        properties.push(getInspector(value).toPropertyPreview(key, value, context));\n      }\n      // TODO:... handle Value[]\n    }\n  }\n  if (isTypedArrayObject(value) && value.ViewedArrayBuffer instanceof ObjectValue && value.ViewedArrayBuffer.ArrayBufferData instanceof DataBlock) {\n    const record = MakeTypedArrayWithBufferWitnessRecord(value, 'seq-cst');\n    const length = TypedArrayLength(record);\n    for (let index = 0; index < length; index += 1) {\n      const index_value = TypedArrayGetElement(value, Value(index));\n      if (index_value instanceof UndefinedValue) {\n        break;\n      }\n      if (properties.length > 100) {\n        overflow = true;\n        break;\n      }\n      properties.push(getInspector(index_value).toPropertyPreview(index.toString(), index_value, context));\n    }\n    properties.push(\n      {\n        name: 'buffer', type: 'object', subtype: 'arraybuffer', value: `ArrayBuffer(${value.ViewedArrayBuffer.ArrayBufferData.byteLength})`,\n      },\n      { name: 'byteLength', type: 'number', value: globalThis.String(value.ArrayLength) },\n      { name: 'byteOffset', type: 'number', value: globalThis.String(value.ByteOffset) },\n      { name: 'length', type: 'number', value: globalThis.String(length) },\n    );\n  }\n  for (const [key, desc] of value.properties) {\n    if (properties.length > max) {\n      overflow = true;\n      break;\n    }\n    properties.push(propertyToPropertyPreview(key, desc, context));\n  }\n  for (const desc of value.PrivateElements) {\n    if (properties.length > max) {\n      overflow = true;\n      break;\n    }\n    properties.push(propertyToPropertyPreview(desc.Key, desc, context));\n  }\n  return { overflow, properties };\n}\n","import { ObjectInspector } from './objects.mts';\nimport type { ShadowRealmObject } from '#self';\n\nexport const ShadowRealm = new ObjectInspector<ShadowRealmObject>('ShadowRealm', undefined, () => 'ShadowRealm', {\n  internalProperties: (realm) => [['[[GlobalObject]]', realm.ShadowRealm.GlobalObject]],\n});\n","import type { Protocol } from 'devtools-protocol';\nimport { nativeEvalInAnyRealm } from '../evaluator.mts';\nimport { ObjectInspector, type AdditionalPropertyItem } from './objects.mts';\nimport { getInspector } from './index.mts';\nimport {\n  type ModuleNamespaceObject, surroundingAgent, skipDebugger, EnsureCompletion, Get, NormalCompletion, Value, ManagedRealm,\n  CreateBuiltinFunction,\n} from '#self';\n\nexport const Module = new ObjectInspector<ModuleNamespaceObject>('Module', undefined, () => 'Module', {\n  additionalProperties: (module, context) => {\n    const result: AdditionalPropertyItem[] = [];\n    surroundingAgent.debugger_scopePreview(() => {\n      nativeEvalInAnyRealm(true, context, () => {\n        for (const key of module.Exports) {\n          const completion = EnsureCompletion(skipDebugger(Get(module, key)));\n          if (completion instanceof NormalCompletion) {\n            result.push([key, completion.Value!]);\n          }\n        }\n        return Value.undefined;\n      });\n    });\n    return result;\n  },\n  exoticProperties(module, getObjectId, context, generatePreview): Protocol.Runtime.PropertyDescriptor[] {\n    const result: Protocol.Runtime.PropertyDescriptor[] = [];\n    nativeEvalInAnyRealm(true, context, () => {\n      for (const key of module.Exports) {\n        const completion = EnsureCompletion(skipDebugger(Get(module, key)));\n        if (completion instanceof NormalCompletion) {\n          result.push({\n            name: key,\n            value: getInspector(completion.Value!).toRemoteObject(completion.Value!, getObjectId, context, generatePreview),\n            writable: false,\n            configurable: false,\n            enumerable: true,\n            isOwn: true,\n          });\n        } else {\n          const realm = module.Module.Realm as ManagedRealm;\n          const evaluate = CreateBuiltinFunction(function* evaluate() {\n            return yield* (Get(module, key));\n          }, 0, 'Module.evaluate', [], realm);\n          result.push({\n            name: key,\n            get: getInspector(evaluate).toRemoteObject(evaluate, getObjectId, context, generatePreview),\n            set: { type: 'undefined' },\n            writable: false,\n            configurable: false,\n            enumerable: true,\n            isOwn: true,\n          });\n        }\n      }\n      return Value.undefined;\n    });\n    return result;\n  },\n});\n","import { ObjectInspector } from './objects.mts';\nimport type { RegExpObject } from '#self';\n\nexport const RegExp = new ObjectInspector<RegExpObject>('RegExp', 'regexp', (value) => `/${value.OriginalSource}/${value.OriginalFlags}`);\n","import { ObjectInspector } from './objects.mts';\nimport { type ProxyObject, IsCallable, ObjectValue } from '#self';\n\nexport const Proxy = new ObjectInspector<ProxyObject>('Proxy', 'proxy', (value) => {\n  if (IsCallable(value.ProxyTarget)) {\n    return 'Proxy(Function)';\n  }\n  if (value.ProxyTarget instanceof ObjectValue) {\n    return 'Proxy(Object)';\n  }\n  return 'Proxy';\n});\n","import { ObjectInspector } from './objects.mts';\nimport { type PromiseObject, Value } from '#self';\n\nexport const Promise = new ObjectInspector<PromiseObject>('Promise', 'promise', () => 'Promise', {\n  internalProperties: (value) => [['[[PromiseState]]', Value(value.PromiseState)], ['[[PromiseResult]]', value.PromiseResult || Value.undefined]],\n});\n","import type { Protocol } from 'devtools-protocol';\nimport type { InspectorContext } from '../context.mts';\nimport { ObjectInspector, propertyToPropertyPreview } from './objects.mts';\nimport { type Inspector, getInspector } from './index.mts';\nimport {\n  DataBlock,\n  isIntegerIndex, JSStringValue, NumberValue, ObjectValue, R, Value, type ArrayBufferObject, type DataViewObject, type TypedArrayObject,\n} from '#self';\n\nexport const Array: Inspector<ObjectValue> = {\n  toRemoteObject(value, getObjectId, context) {\n    return {\n      type: 'object',\n      className: 'Array',\n      subtype: 'array',\n      objectId: getObjectId(value),\n      description: getInspector(value).toDescription(value, context),\n      preview: this.toObjectPreview?.(value, context),\n    };\n  },\n  toPropertyPreview(name, value, context) {\n    return {\n      name, type: 'object', subtype: 'array', value: this.toDescription(value, context),\n    };\n  },\n  toObjectPreview(value, context) {\n    const result: Protocol.Runtime.ObjectPreview = {\n      type: 'object',\n      subtype: 'array',\n      overflow: false,\n      properties: [],\n      description: this.toDescription(value, context),\n    };\n    const indexProp: Protocol.Runtime.PropertyPreview[] = [];\n    const otherProp: Protocol.Runtime.PropertyPreview[] = [];\n    for (const [key, desc] of value.properties) {\n      if (indexProp.length > 100) {\n        result.overflow = true;\n        break;\n      }\n      if (isIntegerIndex(key)) {\n        indexProp.push(propertyToPropertyPreview(key, desc, context));\n      } else if (!(key instanceof JSStringValue && key.stringValue() === 'length')) {\n        otherProp.push(propertyToPropertyPreview(key, desc, context));\n      }\n    }\n    result.properties = indexProp.concat(otherProp).slice(0, 100);\n    return result;\n  },\n  toDescription(value) {\n    const length = [...value.properties.entries()].find(([key]) => key instanceof JSStringValue && key.stringValue() === 'length');\n    if (!length || !(length[1].Value instanceof NumberValue)) {\n      throw new TypeError('Bad ArrayExoticObject');\n    }\n    return `Array(${R(length[1].Value)})`;\n  },\n};\n\nconst globalId = new WeakMap<InspectorContext, number>();\nconst id = new WeakMap<DataBlock, number>();\nexport const ArrayBuffer = new ObjectInspector<ArrayBufferObject>('ArrayBuffer', 'arraybuffer', (value) => `ArrayBuffer(${value.ArrayBufferByteLength})`, {\n  internalProperties(value, context) {\n    if (value.ArrayBufferData instanceof DataBlock) {\n      if (!id.has(value.ArrayBufferData)) id.set(value.ArrayBufferData, (globalId.get(context) ?? 1000) + 1);\n      const blockId = id.get(value.ArrayBufferData)!;\n      globalId.set(context, blockId);\n      return [\n        ['[[ArrayBufferByteLength]]', Value(value.ArrayBufferByteLength)],\n        ['[[ArrayBufferData]]', Value(blockId)],\n      ];\n    }\n    return [];\n  },\n});\n\nexport const DataView = new ObjectInspector<DataViewObject>('DataView', 'dataview', (value) => `DataView(${value.ByteLength})`);\n\nexport const TypedArray = new ObjectInspector<TypedArrayObject>('TypedArray', 'typedarray', (value) => `${value.TypedArrayName}(${value.ArrayLength})`);\n","import { ObjectInspector } from './objects.mts';\nimport {\n  type DateObject, DateProto_toISOString, Value, ValueOfNormalCompletion, NormalCompletion, JSStringValue, type TemporalInstantObject, TemporalInstantToString, type TemporalDurationObject, TemporalDurationToString, type TemporalPlainDateObject, TemporalDateToString, type TemporalPlainDateTimeObject, FormatISODateTime, type TemporalPlainMonthDayObject, TemporalMonthDayToString, type TemporalPlainTimeObject, TimeRecordToString, type TemporalPlainYearMonthObject, TemporalYearMonthToString, type TemporalZonedDateTimeObject, TemporalZonedDateTimeToString,\n} from '#self';\n\n\nexport const Date = new ObjectInspector<DateObject>('Date', 'date', ((value: DateObject) => {\n  if (!globalThis.Number.isFinite(value.DateValue)) {\n    return 'Invalid Date';\n  }\n  const val = DateProto_toISOString([], { thisValue: value, NewTarget: Value.undefined });\n  return ValueOfNormalCompletion(val as NormalCompletion<JSStringValue>).stringValue();\n}));\n\nexport const TemporalInstant = new ObjectInspector<TemporalInstantObject>(\n  'Temporal.Instant',\n  'date',\n  (value) => `Temporal.Instant <${TemporalInstantToString(value, undefined, 'auto')}>`,\n);\n\nexport const TemporalDuration = new ObjectInspector<TemporalDurationObject>('Temporal.Duration', 'date', (value) => `Temporal.Duration <${TemporalDurationToString(value, 'auto')}>`);\n\nexport const TemporalPlainDate = new ObjectInspector<TemporalPlainDateObject>('Temporal.PlainDate', 'date', (value) => `Temporal.PlainDate <${TemporalDateToString(value, 'auto')}>`);\n\nexport const TemporalPlainDateTime = new ObjectInspector<TemporalPlainDateTimeObject>(\n  'Temporal.PlainDateTime',\n  'date',\n  (value) => `Temporal.PlainDateTime <${FormatISODateTime(value.ISODateTime, value.Calendar, 'auto', 'auto')}>`,\n);\n\nexport const TemporalPlainMonthDay = new ObjectInspector<TemporalPlainMonthDayObject>(\n  'Temporal.PlainMonthDay',\n  'date',\n  (value) => `Temporal.PlainMonthDay <${TemporalMonthDayToString(value, 'auto')}>`,\n);\n\nexport const TemporalPlainTime = new ObjectInspector<TemporalPlainTimeObject>('Temporal.PlainTime', 'date', (value) => `Temporal.PlainTime <${TimeRecordToString(value.Time, 'auto')}>`);\n\nexport const TemporalPlainYearMonth = new ObjectInspector<TemporalPlainYearMonthObject>(\n  'Temporal.PlainYearMonth',\n  'date',\n  (value) => `Temporal.PlainYearMonth <${TemporalYearMonthToString(value, 'auto')}>`,\n);\n\nexport const TemporalZonedDateTime = new ObjectInspector<TemporalZonedDateTimeObject>(\n  'Temporal.ZonedDateTime',\n  'date',\n  (value) => `Temporal.ZonedDateTime <${TemporalZonedDateTimeToString(value, 'auto', 'auto', 'auto', 'auto')}>`,\n);\n","import { getInspector } from './index.mts';\nimport { ObjectInspector } from './objects.mts';\nimport {\n  type MapObject, Value, type SetObject, type WeakMapObject, type WeakSetObject,\n} from '#self';\n\nexport const Map = new ObjectInspector<MapObject>('Map', 'map', (value) => `Map(${value.MapData.filter((x) => !!x.Key).length})`, {\n  additionalProperties: (value) => [['size', Value(value.MapData.filter((x) => !!x.Key).length)]],\n  internalProperties: (value) => [['[[Entries]]', value.MapData]],\n  entries: (value, context) => value.MapData.filter((x) => x.Key).map(({ Key, Value }) => ({\n    key: getInspector(Key!).toObjectPreview(Key!, context),\n    value: getInspector(Value!).toObjectPreview(Value!, context),\n  })),\n});\n\nexport const Set = new ObjectInspector<SetObject>('Set', 'set', (value) => `Set(${value.SetData.filter(globalThis.Boolean).length})`, {\n  additionalProperties: (value) => [['size', Value(value.SetData.filter(globalThis.Boolean).length)]],\n  internalProperties: (value) => [['[[Entries]]', value.SetData]],\n  entries: (value, context) => value.SetData.filter(globalThis.Boolean).map((Value) => ({\n    value: getInspector(Value!).toObjectPreview(Value!, context),\n  })),\n});\n\nexport const WeakMap = new ObjectInspector<WeakMapObject>('WeakMap', 'weakmap', () => 'WeakMap', {\n  internalProperties: (value) => [['[[Entries]]', value.WeakMapData]],\n  entries: (value, context) => value.WeakMapData.filter((x) => x.Key).map(({ Key, Value }) => ({\n    key: getInspector(Key!).toObjectPreview(Key!, context),\n    value: getInspector(Value!).toObjectPreview(Value!, context),\n  })),\n});\n\nexport const WeakSet = new ObjectInspector<WeakSetObject>('WeakSet', 'weakset', () => 'WeakSet', {\n  internalProperties: (value) => [['[[Entries]]', value.WeakSetData]],\n  entries: (value, context) => value.WeakSetData.filter(globalThis.Boolean).map((Value) => ({\n    value: getInspector(Value!).toObjectPreview(Value!, context),\n  })),\n});\n","import { nativeEvalInAnyRealm } from '../evaluator.mts';\nimport { ObjectInspector } from './objects.mts';\nimport { getInspector } from './index.mts';\nimport {\n  ObjectValue, skipDebugger, Get, Value, getHostDefinedErrorDetails,\n  CreateArrayFromList,\n  X,\n  JSStringValue,\n  EnsureCompletion,\n  NormalCompletion,\n} from '#self';\n\nexport const Error = new ObjectInspector<ObjectValue>('Error', 'error', (value, context) => {\n  let text = '';\n  nativeEvalInAnyRealm(true, context, () => {\n    const completion = EnsureCompletion(skipDebugger(Get(value, 'stack')));\n    if (completion instanceof NormalCompletion && completion.Value instanceof JSStringValue) {\n      text = completion.Value.stringValue();\n      if (!text.includes('  at') && !text.includes('SyntaxError')) {\n        text = '';\n      }\n    }\n    return Value.undefined;\n  });\n  return text || 'Error';\n}, {\n  internalProperties: (error, context) => {\n    const unformattedMessage = getHostDefinedErrorDetails(error).message;\n    if (!unformattedMessage) return [];\n    const value = nativeEvalInAnyRealm(false, context, () => CreateArrayFromList(unformattedMessage.map((part) => (typeof part === 'string' ? Value(part) : part))));\n    if (!value) return [];\n    return [['[[UnformattedErrorMessage]]', X(value)]];\n  },\n  customPreview: (error, getObjectId, context) => {\n    const { message, stack, stackGetterValue } = getHostDefinedErrorDetails(error);\n    if (!message || !stackGetterValue) return undefined;\n\n    const stackC = EnsureCompletion(nativeEvalInAnyRealm(true, context, () => skipDebugger(Get(error, 'stack'))));\n    if (stackC instanceof NormalCompletion && stackC.Value instanceof JSStringValue) {\n      const stackMaybeModified = stackC.Value.stringValue();\n      if (stackMaybeModified !== stackGetterValue) return undefined;\n    }\n\n    let constructorName = 'Error';\n    const nameC = EnsureCompletion(nativeEvalInAnyRealm(true, context, () => skipDebugger(Get(error, 'name'))));\n    if (nameC instanceof NormalCompletion && nameC.Value instanceof JSStringValue) constructorName = nameC.Value.stringValue();\n\n    const header = JSON.stringify(['span', null,\n      constructorName,\n      ': ',\n      ...message.map((part) => (\n        typeof part === 'string' ? part : ['object', getInspector(part).toRemoteObject(part, getObjectId, context, false)]\n      )),\n      stack,\n    ]);\n    return { header };\n  },\n});\n","import type { Protocol } from 'devtools-protocol';\nimport type { InspectorContext } from '../context.mts';\nimport {\n  Null, Undefined, Boolean, Number, String, Symbol,\n} from './primitives.mts';\nimport { Function } from './function.mts';\nimport {\n  DefaultObject, InternalInspectorEntry,\n} from './objects.mts';\nimport { ShadowRealm } from './shadow-realms.mts';\nimport { Module } from './modules.mts';\nimport { RegExp } from './RegExp.mts';\nimport { Proxy } from './proxies.mts';\nimport { Promise } from './promises.mts';\nimport {\n  Array, TypedArray, ArrayBuffer, DataView,\n} from './arrays.mts';\nimport {\n  Date, TemporalDuration, TemporalInstant, TemporalPlainDate, TemporalPlainDateTime, TemporalPlainMonthDay, TemporalPlainTime, TemporalPlainYearMonth, TemporalZonedDateTime,\n} from './dates.mts';\nimport {\n  Map, Set, WeakMap, WeakSet,\n} from './collections.mts';\nimport { Error } from './errors.mts';\nimport {\n  BigIntValue,\n  isArrayBufferObject,\n  isArrayExoticObject,\n  IsCallable,\n  isDataViewObject,\n  isDateObject,\n  isErrorObject,\n  isMapObject,\n  isModuleNamespaceObject,\n  isPromiseObject,\n  isProxyExoticObject,\n  isRegExpObject,\n  isSetObject,\n  isShadowRealmObject,\n  isTemporalDurationObject,\n  isTemporalInstantObject,\n  isTemporalPlainDateObject,\n  isTemporalPlainDateTimeObject,\n  isTemporalPlainMonthDayObject,\n  isTemporalPlainTimeObject,\n  isTemporalPlainYearMonthObject,\n  isTemporalZonedDateTimeObject,\n  isTypedArrayObject,\n  isWeakMapObject,\n  isWeakSetObject,\n  JSStringValue,\n  NumberValue,\n  ObjectValue, SymbolValue, Value,\n} from '#self';\n\nexport interface Inspector<T extends Value> {\n  toRemoteObject(value: T, getObjectId: (val: SymbolValue | ObjectValue) => string, context: InspectorContext, generatePreview: boolean | undefined): Protocol.Runtime.RemoteObject;\n  toObjectPreview(value: T, context: InspectorContext): Protocol.Runtime.ObjectPreview;\n  toPropertyPreview(name: string, value: T, context: InspectorContext): Protocol.Runtime.PropertyPreview;\n  toDescription(value: T, context: InspectorContext): string;\n  toInternalProperties?(value: T, getObjectId: (val: SymbolValue | ObjectValue) => string, context: InspectorContext, generatePreview: boolean | undefined): Protocol.Runtime.InternalPropertyDescriptor[];\n  exoticProperties?(value: T, getObjectId: (val: SymbolValue | ObjectValue) => string, context: InspectorContext, generatePreview: boolean | undefined): Protocol.Runtime.PropertyDescriptor[];\n}\n\nexport function getInspector(value: Value): Inspector<Value> {\n  switch (true) {\n    case value === Value.null:\n      return Null;\n    case value === Value.undefined:\n      return Undefined;\n    case value === Value.true || value === Value.false:\n      return Boolean;\n    case value instanceof SymbolValue:\n      return Symbol;\n    case value instanceof JSStringValue:\n      return String;\n    case value instanceof NumberValue:\n    case value instanceof BigIntValue:\n      return Number;\n    case isProxyExoticObject(value):\n      return Proxy;\n    case IsCallable(value):\n      return Function;\n    case isArrayExoticObject(value):\n      return Array;\n    case isRegExpObject(value):\n      return RegExp;\n    case isDateObject(value):\n      return Date;\n    case isMapObject(value):\n      return Map;\n    case isSetObject(value):\n      return Set;\n    case isWeakMapObject(value):\n      return WeakMap;\n    case isWeakSetObject(value):\n      return WeakSet;\n    // generator\n    case isErrorObject(value):\n      return Error;\n    case isPromiseObject(value):\n      return Promise;\n    case isTypedArrayObject(value):\n      return TypedArray;\n    case isArrayBufferObject(value):\n      return ArrayBuffer;\n    case isDataViewObject(value):\n      return DataView;\n    case isModuleNamespaceObject(value):\n      return Module;\n    case isShadowRealmObject(value):\n      return ShadowRealm;\n    case isTemporalInstantObject(value):\n      return TemporalInstant;\n    case isTemporalDurationObject(value):\n      return TemporalDuration;\n    case isTemporalPlainDateObject(value):\n      return TemporalPlainDate;\n    case isTemporalPlainDateTimeObject(value):\n      return TemporalPlainDateTime;\n    case isTemporalPlainMonthDayObject(value):\n      return TemporalPlainMonthDay;\n    case isTemporalPlainTimeObject(value):\n      return TemporalPlainTime;\n    case isTemporalPlainYearMonthObject(value):\n      return TemporalPlainYearMonth;\n    case isTemporalZonedDateTimeObject(value):\n      return TemporalZonedDateTime;\n    case (value as ObjectValue).internalSlotsList.includes('InspectorEntry'):\n      return InternalInspectorEntry;\n    default:\n      return DefaultObject;\n  }\n}\n","import type { Protocol } from 'devtools-protocol';\nimport { getInspector } from './objects/index.mts';\nimport type { Inspector } from './index.mts';\nimport {\n  EnsureCompletion, JSStringValue, ManagedRealm, ObjectValue, SymbolValue, ThrowCompletion, Value,\n  getHostDefinedErrorDetails,\n  type Agent,\n  type CallFrame,\n  type CallSite,\n  type NullValue,\n  type ValueCompletion,\n  getCurrentStack,\n  isECMAScriptFunctionObject,\n  SymbolDescriptiveString,\n  type EnvironmentRecordWithThisBinding,\n  EnvironmentRecord,\n  DeclarativeEnvironmentRecord,\n  ObjectEnvironmentRecord,\n  FunctionEnvironmentRecord,\n  GlobalEnvironmentRecord,\n  ModuleEnvironmentRecord,\n  OrdinaryObjectCreate,\n  Descriptor,\n  isArgumentExoticObject,\n  surroundingAgent,\n  IsAccessorDescriptor,\n  isIntegerIndex,\n  type OrdinaryObject,\n} from '#self';\n\ninterface InspectedRealmDescriptor {\n  readonly realm: ManagedRealm;\n  readonly descriptor: Protocol.Runtime.ExecutionContextDescription;\n  readonly agent: Agent;\n  detach(): void;\n}\n\nexport class InspectorContext {\n  #io: Inspector;\n\n  constructor(io: Inspector) {\n    this.#io = io;\n  }\n\n  realms: (InspectedRealmDescriptor | undefined)[] = [];\n\n  attachRealm(realm: ManagedRealm, agent: Agent) {\n    const id = this.realms.length;\n    const descriptor: Protocol.Runtime.ExecutionContextDescription = {\n      id,\n      origin: realm.HostDefined.specifier || 'vm://repl',\n      name: realm.HostDefined.name || 'engine262',\n      uniqueId: id.toString(),\n    };\n    this.realms.push({\n      realm,\n      descriptor,\n      agent,\n      detach: () => {\n        realm.HostDefined.attachingInspector = oldInspector;\n        realm.HostDefined.attachingInspectorReportError = function attachingInspectorReportError(realm, error) {\n          if (this.attachingInspector && realm instanceof ManagedRealm) {\n            (this.attachingInspector as Inspector).console(realm, 'error' as Protocol.Runtime.ConsoleAPICalledEventType, [error]);\n          }\n        };\n      },\n    });\n    const oldInspector = realm.HostDefined.attachingInspector;\n    realm.HostDefined.attachingInspector = this.#io;\n    this.#io.sendEvent['Runtime.executionContextCreated']({ context: descriptor });\n  }\n\n  detachAgent(agent: Agent) {\n    for (const realm of this.realms) {\n      if (realm?.agent === agent) {\n        this.detachRealm(realm.realm);\n      }\n    }\n  }\n\n  detachRealm(realm: ManagedRealm) {\n    const index = this.realms.findIndex((c) => c?.realm === realm);\n    if (index === -1) {\n      return;\n    }\n    const { descriptor } = this.realms[index]!;\n    realm.HostDefined.attachingInspector = undefined;\n    realm.HostDefined.attachingInspectorReportError = undefined;\n    this.realms[index] = undefined;\n    this.#io.sendEvent['Runtime.executionContextDestroyed']({ executionContextId: descriptor.id, executionContextUniqueId: descriptor.uniqueId });\n  }\n\n  getRealm(realm: ManagedRealm | string | number | undefined) {\n    if (realm === undefined) {\n      if (surroundingAgent.runningExecutionContext && surroundingAgent.currentRealmRecord instanceof ManagedRealm) {\n        realm = surroundingAgent.currentRealmRecord;\n      } else {\n        return undefined;\n      }\n    }\n    if (typeof realm === 'string') {\n      return this.realms.find((c) => c?.descriptor.uniqueId === realm);\n    } else if (typeof realm === 'number') {\n      return this.realms[realm];\n    }\n    return this.realms.find((c) => c?.realm === realm);\n  }\n\n  /** @deprecated in this case we are guessing the realm should be using, which may create bad result */\n  getAnyRealm() {\n    return this.realms.find(Boolean);\n  }\n\n  #idToObject = new Map<string, ObjectValue | SymbolValue>();\n\n  #objectToId = new Map<ObjectValue | SymbolValue, string>();\n\n  #objectCounter = 1;\n\n  #internObject(object: ObjectValue | SymbolValue, group = 'default') {\n    if (this.#objectToId.has(object)) {\n      return this.#objectToId.get(object)!;\n    }\n    const id = `${group}:${this.#objectCounter}`;\n    this.#objectCounter += 1;\n    this.#idToObject.set(id, object);\n    this.#objectToId.set(object, id);\n    return id;\n  }\n\n  releaseObject(id: string) {\n    const object = this.#idToObject.get(id);\n    if (object) {\n      this.#idToObject.delete(id);\n      this.#objectToId.delete(object);\n    }\n  }\n\n  releaseObjectGroup(group: string) {\n    for (const [id, object] of this.#idToObject.entries()) {\n      if (id.startsWith(group)) {\n        this.#idToObject.delete(id);\n        this.#objectToId.delete(object);\n      }\n    }\n  }\n\n  getObject(objectId: string) {\n    return this.#idToObject.get(objectId);\n  }\n\n  toRemoteObject(value: Value, options: { objectGroup?: string, generatePreview?: boolean }): Protocol.Runtime.RemoteObject {\n    return getInspector(value).toRemoteObject(value, (val) => this.#internObject(val, options.objectGroup), this, options.generatePreview);\n  }\n\n  getProperties({\n    objectId, accessorPropertiesOnly, generatePreview, nonIndexedPropertiesOnly, ownProperties,\n  }: Protocol.Runtime.GetPropertiesRequest): Protocol.Runtime.GetPropertiesResponse {\n    const object = this.getObject(objectId);\n    if (!(object instanceof ObjectValue)) {\n      return { result: [] };\n    }\n    const wrap = (v: Value) => this.toRemoteObject(v, { generatePreview });\n\n    const properties: Protocol.Runtime.PropertyDescriptor[] = [];\n    const internalProperties: Protocol.Runtime.InternalPropertyDescriptor[] = [];\n    const privateProperties: Protocol.Runtime.PrivatePropertyDescriptor[] = [];\n\n    if (!accessorPropertiesOnly) {\n      object.PrivateElements.forEach((value) => {\n        const desc: Protocol.Runtime.PrivatePropertyDescriptor = {\n          name: value.Key.Description,\n        };\n        if (value.Value) desc.value = wrap(value.Value);\n        if (value.Get) desc.get = wrap(value.Get);\n        if (value.Set) desc.set = wrap(value.Set);\n        privateProperties.push(desc);\n      });\n\n      const exoticProperties = getInspector(object).exoticProperties?.(object, (val) => this.#internObject(val), this, generatePreview);\n      if (exoticProperties) {\n        properties.push(...exoticProperties);\n      }\n    }\n\n    (() => {\n      let p: NullValue | ObjectValue = object;\n      while (p instanceof ObjectValue) {\n        for (const key of p.properties.keys()) {\n          if (nonIndexedPropertiesOnly && isIntegerIndex(key)) {\n            continue;\n          }\n          const desc = p.properties.get(key);\n          if (!desc) {\n            return;\n          }\n          if (accessorPropertiesOnly && !IsAccessorDescriptor(desc)) {\n            continue;\n          }\n          const descriptor: Protocol.Runtime.PropertyDescriptor = {\n            name: key instanceof JSStringValue\n              ? key.stringValue()\n              : SymbolDescriptiveString(key),\n            writable: desc.Writable ?? false,\n            configurable: desc.Configurable,\n            enumerable: desc.Enumerable,\n            isOwn: p === object,\n          };\n          if (desc.Value && !('HostUninitializedBindingMarkerObject' in desc.Value)) descriptor.value = wrap(desc.Value);\n          if (desc.Get) descriptor.get = wrap(desc.Get);\n          if (desc.Set) descriptor.set = wrap(desc.Set);\n          if (key instanceof SymbolValue) descriptor.symbol = wrap(key);\n          properties.push(descriptor);\n        }\n\n        if (ownProperties) {\n          break;\n        }\n        if ('Prototype' in p) {\n          p = (p as OrdinaryObject).Prototype;\n        } else {\n          p = Value.null;\n        }\n      }\n    })();\n\n    const additionalInternalFields = getInspector(object).toInternalProperties?.(object, (val) => this.#internObject(val, 'default'), this, generatePreview);\n    if (additionalInternalFields) {\n      internalProperties.push(...additionalInternalFields);\n    }\n\n    if ('Prototype' in object) {\n      internalProperties.push({\n        name: '[[Prototype]]',\n        value: wrap(object.Prototype as Value),\n      });\n    }\n\n    return { result: properties, internalProperties, privateProperties };\n  }\n\n  createExceptionDetails(completion: ThrowCompletion | Value, isPromise: boolean): Protocol.Runtime.ExceptionDetails {\n    const value = completion instanceof ThrowCompletion ? completion.Value : completion;\n    const { callStack } = getHostDefinedErrorDetails(value);\n    const frames = InspectorContext.callSiteToCallFrame(callStack);\n    const exceptionId = this.#objectCounter;\n    this.#objectCounter += 1;\n    return {\n      text: isPromise ? 'Uncaught (in promise)' : 'Uncaught',\n      stackTrace: callStack ? { callFrames: frames } : undefined,\n      exception: getInspector(value).toRemoteObject(value, (val) => this.#internObject(val), this, false),\n      lineNumber: frames[0]?.lineNumber || 0,\n      columnNumber: frames[0]?.columnNumber || 0,\n      exceptionId,\n      scriptId: frames[0]?.scriptId,\n      url: frames[0]?.url,\n    };\n  }\n\n  static callSiteToCallFrame(callSite: readonly (CallSite | CallFrame)[] | undefined): Protocol.Runtime.CallFrame[] {\n    return callSite?.map((call) => call.toCallFrame()!).filter(Boolean) || [];\n  }\n\n  createEvaluationResult(completion: ValueCompletion): Protocol.Runtime.EvaluateResponse {\n    completion = EnsureCompletion(completion);\n    if (!(completion.Value instanceof Value)) {\n      throw new RangeError('Invalid completion value');\n    }\n    return {\n      exceptionDetails: completion instanceof ThrowCompletion ? this.createExceptionDetails(completion, false) : undefined,\n      result: this.toRemoteObject(completion.Value, {}),\n    };\n  }\n\n  getDebuggerCallFrame(): Protocol.Debugger.CallFrame[] {\n    const stacks = getCurrentStack(false);\n    const length = surroundingAgent.executionContextStack.length;\n    return stacks.map((stack, index): Protocol.Debugger.CallFrame => {\n      if (!stack.getScriptId()) {\n        return undefined!;\n      }\n      const scopeChain: Protocol.Debugger.Scope[] = [];\n      let env: EnvironmentRecord | null = stack.context.LexicalEnvironment;\n      while (env instanceof EnvironmentRecord) {\n        const result = getDisplayObjectFromEnvironmentRecord(env);\n        if (result) {\n          scopeChain.push({ type: result.type, object: this.toRemoteObject(result.object, {}) });\n        }\n        env = env.OuterEnv;\n      }\n      return {\n        callFrameId: String(length - index - 1),\n        functionName: stack.getFunctionName() || '<anonymous>',\n        location: {\n          scriptId: stack.getScriptId()!,\n          lineNumber: (stack.lineNumber || 1) - 1,\n          columnNumber: (stack.columnNumber || 1) - 1,\n        },\n        this: this.toRemoteObject(HostGetThisEnvironment(stack.context.LexicalEnvironment), {}),\n        url: stack.getSpecifier() || '',\n        canBeRestarted: false,\n        functionLocation: isECMAScriptFunctionObject(stack.context.Function) ? {\n          lineNumber: (stack.context.Function.ECMAScriptCode?.location.start.line || 1) - 1,\n          columnNumber: (stack.context.Function.ECMAScriptCode?.location.start.column || 1) - 1,\n          scriptId: stack.getScriptId() || '',\n        } : undefined,\n        scopeChain,\n      };\n    }).filter(Boolean);\n  }\n\n  evaluateMode: 'script' | 'module' | 'console' = 'script';\n}\n\nfunction HostGetThisEnvironment(env: EnvironmentRecord | null): Value {\n  while (env !== null) {\n    const exists = env.HasThisBinding();\n    if (exists) {\n      const value = (env as EnvironmentRecordWithThisBinding).GetThisBinding();\n      if (value instanceof ThrowCompletion) {\n        return Value.undefined;\n      }\n      return value as Value;\n    }\n    const outer = env.OuterEnv;\n    env = outer;\n  }\n  throw new ReferenceError('No this environment found');\n}\n\nexport function getDisplayObjectFromEnvironmentRecord(record: EnvironmentRecord): undefined | { type: Protocol.Debugger.Scope['type'], object: ObjectValue } {\n  if (record instanceof DeclarativeEnvironmentRecord) {\n    const object = OrdinaryObjectCreate(Value.null, ['HostInspectorScopePreview']);\n    for (const [key, binding] of record.bindings) {\n      const value = binding.initialized ? binding.value! : OrdinaryObjectCreate(Value.null, ['HostUninitializedBindingMarkerObject']);\n      if (isArgumentExoticObject(value)) {\n        continue;\n      }\n      object.properties.set(key, Descriptor({\n        Enumerable: isArgumentExoticObject(value) ? false : true,\n        Value: value,\n        Writable: binding.mutable || false,\n        Configurable: true,\n      }));\n    }\n    let type: Protocol.Debugger.Scope['type'] = 'block';\n    if (record instanceof FunctionEnvironmentRecord) {\n      type = 'local';\n    } else if (record instanceof ModuleEnvironmentRecord) {\n      type = 'module';\n    }\n    if (type !== 'local' && !object.properties.size) {\n      return undefined;\n    }\n    return { type, object };\n  } else if (record instanceof ObjectEnvironmentRecord) {\n    return { type: record.IsWithEnvironment ? 'with' : 'global', object: record.BindingObject };\n  } else if (record instanceof GlobalEnvironmentRecord) {\n    return { type: 'global', object: record.GlobalThisValue };\n  }\n  throw new TypeError('Unknown environment record');\n}\n","import type { Protocol } from 'devtools-protocol';\nimport { SourceTextModuleRecord, type DynamicParsedCodeRecord, type ScriptRecord } from '#self';\n\nexport function getParsedEvent(source: ScriptRecord | SourceTextModuleRecord | DynamicParsedCodeRecord, id: string, executionContextId: number): Protocol.Debugger.ScriptParsedEvent {\n  const lines = source.ECMAScriptCode.sourceText.split('\\n');\n  return {\n    isModule: source instanceof SourceTextModuleRecord,\n    scriptId: id,\n    url: source.HostDefined?.specifier || `vm:///${id}`,\n    startLine: 0,\n    startColumn: 0,\n    endLine: lines.length,\n    endColumn: lines.pop()!.length,\n    executionContextId,\n    hash: '',\n    buildId: '',\n  };\n}\n","import type { Protocol } from 'devtools-protocol';\nimport type {\n  DebuggerContext,\n  DebuggerNamespace, HeapProfilerNamespace, ProfilerNamespace, RuntimeNamespace,\n  TargetNamespace,\n} from './types.mts';\nimport { getParsedEvent } from './internal-utils.mts';\nimport { InspectorContext } from './context.mts';\nimport {\n  Call, NormalCompletion, ObjectValue, ParseScript, ScriptRecord, surroundingAgent, ThrowCompletion, skipDebugger, Value, type FunctionObject,\n  ParseModule,\n  SourceTextModuleRecord,\n  ValueOfNormalCompletion,\n  JSStringValue,\n  evalQ,\n  Assert,\n  kInternal,\n  captureStack,\n  isEvaluator,\n  getBreakpointCandidateNodes,\n  parseNodeToBreakpointLocation,\n  performDevtoolsEval,\n  isFunctionObject,\n  ModuleRecord,\n  GetModuleNamespace,\n  X,\n} from '#self';\n\nexport const Debugger: DebuggerNamespace = {\n  enable(_req, context) {\n    context.onDebuggerConnect();\n    return { debuggerId: 'debugger.0' };\n  },\n  disable(_req, context) {\n    context.onDebuggerDisconnect();\n  },\n  getScriptSource({ scriptId }) {\n    const source = surroundingAgent.parsedSources.get(scriptId);\n    if (!source) {\n      throw new Error('Not found');\n    }\n    return { scriptSource: source.ECMAScriptCode.sourceText };\n  },\n  setAsyncCallStackDepth() { },\n  setBlackboxPatterns() { },\n  setBlackboxExecutionContexts() { },\n\n  // #region breakpoints\n  getPossibleBreakpoints({ start, end, restrictToFunction }) {\n    return {\n      locations: [...getBreakpointCandidateNodes(start, end, restrictToFunction)]\n        .map((node) => parseNodeToBreakpointLocation(start.scriptId, node)),\n    };\n  },\n  removeBreakpoint({ breakpointId }) {\n    surroundingAgent?.removeBreakpoint(breakpointId);\n  },\n  setBreakpoint(req) {\n    return surroundingAgent.addBreakpointByLocation(req);\n  },\n  setBreakpointByUrl(req) {\n    return surroundingAgent.addBreakpointByUrl(req);\n  },\n  setBreakpointOnFunctionCall(req, context) {\n    const f = context.context.getObject(req.objectId);\n    if (!f || !isFunctionObject(f)) return { breakpointId: null! };\n    return surroundingAgent.addBreakpointOnFunctionCall(f, req.condition);\n  },\n  setInstrumentationBreakpoint(req) {\n    return surroundingAgent.addInstrumentationBreakpoint(req);\n  },\n  setBreakpointsActive({ active }) {\n    surroundingAgent.breakpointsEnabled = active;\n  },\n  setPauseOnExceptions({ state }) {\n    if (surroundingAgent) {\n      surroundingAgent.pauseOnExceptions = state === 'none' ? undefined : state;\n    }\n  },\n  // #endregion\n\n  stepInto(_, { sendEvent }) {\n    sendEvent['Debugger.resumed']();\n    surroundingAgent.resumeEvaluate({ pauseAt: 'step-in' });\n  },\n  resume(_, { sendEvent }) {\n    sendEvent['Debugger.resumed']();\n    surroundingAgent.resumeEvaluate();\n  },\n  stepOver(_req, { sendEvent }) {\n    sendEvent['Debugger.resumed']();\n    surroundingAgent.resumeEvaluate({ pauseAt: 'step-over' });\n  },\n  stepOut(_req, { sendEvent }) {\n    sendEvent['Debugger.resumed']();\n    surroundingAgent.resumeEvaluate({ pauseAt: 'step-out' });\n  },\n  evaluateOnCallFrame(req, context) {\n    return evaluate({\n      ...req,\n      uniqueContextId: context.context.getRealm(undefined)!.descriptor.uniqueId,\n      evalMode: context.context.evaluateMode,\n    }, context);\n  },\n  engine262_setEvaluateMode({ mode }, { context }) {\n    if (mode === 'module' || mode === 'script' || mode === 'console') {\n      context.evaluateMode = mode;\n    }\n  },\n  engine262_setFeatures() {\n    throw new Error('Method should not be implemented here.');\n  },\n};\nexport const Profiler: ProfilerNamespace = {\n  enable() { },\n};\nexport const Runtime: RuntimeNamespace = {\n  discardConsoleEntries() { },\n  enable() {},\n  compileScript(options, { context, sendEvent }) {\n    let parsed!: ScriptRecord | SourceTextModuleRecord | ObjectValue[];\n    let realm = context.getRealm(options.executionContextId);\n    if (!realm && !options.persistScript) {\n      realm = context.getAnyRealm();\n    }\n    if (!realm) {\n      return unsupportedError;\n    }\n    const pop = realm.realm.pushTopContext();\n    if (context.evaluateMode === 'module') {\n      parsed = ParseModule(options.expression, realm.realm, { specifier: options.sourceURL, doNotTrackScriptId: !options.persistScript });\n    } else {\n      parsed = ParseScript(options.expression, realm.realm, { specifier: options.sourceURL, doNotTrackScriptId: !options.persistScript, [kInternal]: { allowAllPrivateNames: true, allowAwait: true } });\n    }\n    pop?.();\n    if (!parsed) {\n      throw new Error('No parsed result');\n    }\n    if (Array.isArray(parsed)) {\n      const e = context.createExceptionDetails(ThrowCompletion(parsed[0]), false);\n      // Note: it has to be this message to trigger devtools' line wrap.\n      e.exception!.description = 'SyntaxError: Unexpected end of input';\n      return { exceptionDetails: e };\n    }\n    if (options.persistScript) {\n      if (realm?.descriptor.id === undefined) {\n        throw new Error('No realm id found');\n      }\n      const event = getParsedEvent(parsed, parsed.HostDefined!.scriptId!, realm.descriptor.id);\n      sendEvent['Debugger.scriptParsed'](event);\n      return { scriptId: event.scriptId };\n    }\n    return {};\n  },\n  callFunctionOn(options, { context }): Protocol.Runtime.CallFunctionOnResponse {\n    const realmDesc = context.getRealm(options.uniqueContextId || options.executionContextId) || context.getAnyRealm();\n    if (!realmDesc) {\n      throw new Error('No realm found');\n    }\n    const { Value: F } = realmDesc.realm.evaluateScriptSkipDebugger(`(${options.functionDeclaration})`, { doNotTrackScriptId: true }) as NormalCompletion<FunctionObject>;\n    const thisValue = options.objectId\n      ? context.getObject(options.objectId)!\n      : Value.undefined;\n    const args = options.arguments?.map((a) => {\n      // TODO: revisit\n      if ('value' in a) {\n        return Value(a.value);\n      }\n      if (a.objectId) {\n        return context.getObject(a.objectId)!;\n      }\n      if ('unserializableValue' in a) {\n        throw new RangeError();\n      }\n      return Value.undefined;\n    });\n    const pop = realmDesc.realm.pushTopContext();\n    const completion = evalQ((Q): Protocol.Runtime.CallFunctionOnResponse => {\n      const r = Q(skipDebugger(Call(F, thisValue, args || [])));\n      if (options.returnByValue) {\n        const value = X(Call(realmDesc.realm.Intrinsics['%JSON.stringify%'], Value.undefined, [r]));\n        if (value instanceof JSStringValue) {\n          const valueRealized = JSON.parse(value.stringValue());\n          return { result: { type: typeof value, value: valueRealized } };\n        }\n      }\n      return context.createEvaluationResult(r);\n    });\n    pop?.();\n    if (completion instanceof ThrowCompletion) {\n      return { result: { type: 'undefined' }, exceptionDetails: context.createExceptionDetails(completion, false) };\n    }\n    return completion.Value;\n  },\n  evaluate(options, context) {\n    return evaluate({\n      ...options,\n      evalMode: context.context.evaluateMode,\n      uniqueContextId: options.uniqueContextId!,\n    }, context);\n  },\n  getExceptionDetails(req, { context }) {\n    const object = context.getObject(req.errorObjectId)!;\n    if (object instanceof ObjectValue) {\n      return {\n        exceptionDetails: context.createExceptionDetails(ThrowCompletion(object), false),\n      };\n    }\n    return {\n      exceptionDetails: {\n        text: 'unsupported', lineNumber: 0, columnNumber: 0, exceptionId: 0,\n      },\n    };\n  },\n  getHeapUsage() {\n    return {\n      usedSize: 0, totalSize: 0, backingStorageSize: 0, embedderHeapUsedSize: 0,\n    };\n  },\n  getIsolateId() {\n    return { id: 'isolate.0' };\n  },\n  getProperties(options, { context }) {\n    return context.getProperties(options);\n  },\n  globalLexicalScopeNames({ executionContextId }, { context }) {\n    const global = context.getRealm(executionContextId)?.realm.GlobalObject;\n    if (!global) {\n      return { names: [] };\n    }\n    const keys = skipDebugger(global.OwnPropertyKeys());\n    if (keys instanceof ThrowCompletion) {\n      return { names: [] };\n    }\n    return { names: ValueOfNormalCompletion(keys).map((k) => (k instanceof JSStringValue ? k.stringValue() : null!)).filter(Boolean) };\n  },\n  releaseObject(req, { context }) {\n    context.releaseObject(req.objectId);\n  },\n  releaseObjectGroup({ objectGroup }, { context }) {\n    context.releaseObjectGroup(objectGroup);\n  },\n  runIfWaitingForDebugger() { },\n};\nexport const HeapProfiler: HeapProfilerNamespace = {\n  enable() { },\n  collectGarbage() { },\n};\n\nexport const Target: TargetNamespace = {\n  setDiscoverTargets() { },\n  // @ts-expect-error no doc\n  setRemoteLocations() { },\n};\n\nconst unsupportedError: Protocol.Runtime.EvaluateResponse = {\n  result: { type: 'undefined' },\n  exceptionDetails: {\n    text: 'unsupported', lineNumber: 0, columnNumber: 0, exceptionId: 0,\n  },\n};\nfunction evaluate(options: {\n  uniqueContextId: string,\n  expression: string,\n  evalMode: InspectorContext['evaluateMode'],\n  throwOnSideEffect?: boolean,\n  awaitPromise?: boolean,\n  callFrameId?: string,\n}, inspectorContext: DebuggerContext): Protocol.Runtime.EvaluateResponse | Promise<Protocol.Runtime.EvaluateResponse> {\n  const { context } = inspectorContext;\n  const isPreview = options.throwOnSideEffect;\n  if (options.awaitPromise) {\n    return unsupportedError;\n  }\n  const realm = context.getRealm(options.uniqueContextId);\n  if (!realm) {\n    return unsupportedError;\n  }\n\n  const isCallOnFrame = typeof options.callFrameId === 'string';\n  let callOnFramePoppedLevel = 0;\n  const oldExecutionStack = [...surroundingAgent.executionContextStack];\n  if (isCallOnFrame) {\n    const frame = surroundingAgent.executionContextStack[options.callFrameId as `${number}`];\n    if (!frame) {\n      inspectorContext.sendEvent['Runtime.exceptionThrown']({\n        timestamp: Date.now(),\n        exceptionDetails: {\n          columnNumber: 0,\n          exceptionId: 0,\n          lineNumber: 0,\n          text: `Execution context not found for callFrameId ${options.callFrameId}`,\n        },\n      });\n      return unsupportedError;\n    }\n    for (const currentFrame of [...surroundingAgent.executionContextStack].reverse()) {\n      if (currentFrame === frame) {\n        break;\n      }\n      callOnFramePoppedLevel += 1;\n      surroundingAgent.executionContextStack.pop(currentFrame);\n    }\n  }\n  const promise = new Promise<Protocol.Runtime.EvaluateResponse>((resolve) => {\n    let toBeEvaluated;\n    if (isPreview || options.evalMode === 'console' || isCallOnFrame) {\n      toBeEvaluated = performDevtoolsEval(options.expression, realm.realm, false, !!(isPreview || isCallOnFrame));\n    } else {\n      let parsed!: ScriptRecord | SourceTextModuleRecord | ObjectValue[];\n      const realm = context.getRealm(options.uniqueContextId);\n      if (!realm) {\n        resolve(unsupportedError);\n        return;\n      }\n      if (options.evalMode === 'module') {\n        parsed = ParseModule(options.expression, realm.realm);\n      } else {\n        parsed = ParseScript(options.expression, realm.realm);\n      }\n      if (Array.isArray(parsed)) {\n        const e = context.createExceptionDetails(ThrowCompletion(parsed[0]), false);\n        resolve({ exceptionDetails: e, result: { type: 'undefined' } });\n        return;\n      }\n      toBeEvaluated = parsed;\n    }\n\n    const noDebuggerEvaluate = () => {\n      if (!isEvaluator(toBeEvaluated)) {\n        throw new Assert.Error('Unexpected');\n      }\n      resolve(context.createEvaluationResult(skipDebugger(toBeEvaluated)));\n    };\n    if (isPreview) {\n      surroundingAgent.debugger_scopePreview(noDebuggerEvaluate);\n      return;\n    }\n    if (isCallOnFrame) {\n      noDebuggerEvaluate();\n      return;\n    }\n\n    if (toBeEvaluated instanceof ModuleRecord) {\n      realm.realm.evaluateModule(toBeEvaluated, undefined, (completion) => {\n        if (completion instanceof ThrowCompletion) {\n          resolve(context.createEvaluationResult(completion));\n        } else {\n          resolve(context.createEvaluationResult(NormalCompletion(GetModuleNamespace(toBeEvaluated, 'evaluation'))));\n        }\n      });\n    } else if (toBeEvaluated instanceof ScriptRecord) {\n      realm.realm.evaluateScript(toBeEvaluated, {}, (completion) => {\n        resolve(context.createEvaluationResult(completion));\n      });\n    } else {\n      let completion;\n      surroundingAgent.evaluate(toBeEvaluated, (c) => {\n        completion = c;\n        resolve(context.createEvaluationResult(c));\n      });\n      if (!completion) surroundingAgent.resumeEvaluate();\n    }\n  });\n  promise.then(() => {\n    if (callOnFramePoppedLevel) {\n      Assert(oldExecutionStack.length - callOnFramePoppedLevel === surroundingAgent.executionContextStack.length);\n      for (const [newIndex, newStack] of surroundingAgent.executionContextStack.entries()) {\n        Assert(newStack === oldExecutionStack[newIndex]);\n      }\n      surroundingAgent.executionContextStack.length = 0;\n      for (const stack of oldExecutionStack) {\n        surroundingAgent.executionContextStack.push(stack);\n      }\n    }\n  }, (err): Protocol.Runtime.EvaluateResponse => {\n    const expr = surroundingAgent.runningExecutionContext?.callSite.lastNode?.sourceText;\n    const frame = InspectorContext.callSiteToCallFrame(captureStack().stack);\n    // @ts-expect-error\n    // eslint-disable-next-line no-console, @typescript-eslint/no-explicit-any\n    declare const console: any;\n    if (typeof console === 'object') console.error(err);\n    inspectorContext.sendEvent['Runtime.exceptionThrown']({\n      timestamp: Date.now(),\n      exceptionDetails: {\n        stackTrace: frame.length ? { callFrames: frame } : undefined,\n        text: `engine262 error when evaluating the following node:\\n\\n    ${expr}\\n\\n${err.constructor.name}: ${err.message}\\n${err.stack.slice(err.stack.indexOf(err.message) + err.message.length).split('\\n').map((line: string) => `  ${line}`).join('\\n')}\\n\\nFrom now on, the engine262 VM state is broken, please press the reload button.`,\n        columnNumber: frame[0]?.columnNumber,\n        lineNumber: frame[0]?.lineNumber,\n        scriptId: frame[0]?.scriptId,\n        url: frame[0]?.url,\n        exceptionId: 0,\n      },\n    });\n    return {\n      result: { type: 'undefined' },\n    };\n  });\n  return promise;\n}\n","import type Protocol from 'devtools-protocol';\nimport type { Inspector } from './index.mts';\nimport {\n  CreateBuiltinFunction, CreateDataProperty, DefinePropertyOrThrow, Descriptor, OrdinaryObjectCreate, surroundingAgent, ThrowCompletion, Value, type Arguments, type ManagedRealm,\n  type PlainEvaluator,\n  type PlainCompletion,\n  isEvaluator,\n  X,\n} from '#self';\n\nexport const consoleMethods = [\n  'log',\n  'debug',\n  'info',\n  'error',\n  'warning',\n  'dir',\n  'dirxml',\n  'table',\n  'trace',\n  'clear',\n  'startGroup',\n  'startGroupCollapsed',\n  'endGroup',\n  'assert',\n  'profile',\n  'profileEnd',\n  'count',\n  'timeEnd',\n] as const;\nexport type ConsoleMethod = typeof consoleMethods[number];\nexport function createConsole(\n  realm: ManagedRealm,\n  defaultBehaviour: Partial<Record<ConsoleMethod, (args: Arguments) => void | PlainCompletion<void> | PlainEvaluator<void>>> & { default?: (method: ConsoleMethod, args: Arguments) => void | PlainCompletion<void> | PlainEvaluator<void> },\n) {\n  const pop = realm.pushTopContext();\n  const console = OrdinaryObjectCreate(realm.Intrinsics['%Object.prototype%']);\n  X(DefinePropertyOrThrow(\n    realm.GlobalObject,\n    'console',\n    Descriptor({\n      Configurable: true,\n      Enumerable: false,\n      Writable: true,\n      Value: console,\n    }),\n  ));\n  consoleMethods.forEach((method) => {\n    const f = CreateBuiltinFunction(\n      function* Console(args): PlainEvaluator<Value> {\n        if (surroundingAgent.debugger_isPreviewing) {\n          return Value.undefined;\n        }\n\n        let completion;\n        if (defaultBehaviour[method]) {\n          completion = defaultBehaviour[method](args);\n        } else if (defaultBehaviour.default) {\n          completion = defaultBehaviour.default(method, args);\n        }\n\n        if (completion) {\n          if (isEvaluator(completion)) {\n            completion = yield* completion;\n          }\n          // Do not use Q(host) here. A host may return something invalid like ReturnCompletion.\n          if (completion instanceof ThrowCompletion) {\n            return completion;\n          }\n        }\n        if (realm.HostDefined.attachingInspector) {\n          (realm.HostDefined.attachingInspector as Inspector).console(realm, method as Protocol.Protocol.Runtime.ConsoleAPICalledEventType, args);\n        }\n        return Value.undefined;\n      },\n      1,\n      Value(method),\n      [],\n    );\n    X(CreateDataProperty(console, Value(method), f));\n  });\n  pop?.();\n}\n","import type { Protocol } from 'devtools-protocol';\nimport { InspectorContext } from './context.mts';\nimport * as impl from './methods.mts';\nimport type { DebuggerContext, DebuggerPreference, DevtoolEvents } from './types.mts';\nimport { getParsedEvent } from './internal-utils.mts';\nimport type {\n  Agent, Arguments, HostPromiseRejectionTracker, ManagedRealm, Realm, Value,\n} from '#self';\n\nconst ignoreNamespaces = ['Network'];\nconst ignoreMethods: string[] = [];\n\nexport type { DebuggerPreference, DevtoolEvents } from './types.mts';\nexport { consoleMethods, type ConsoleMethod } from './utils.mts';\nexport { createConsole } from './utils.mts';\n\ninterface AgentRecord {\n  readonly agent: Agent;\n  onDetach(): void;\n}\nexport abstract class Inspector {\n  #context = new InspectorContext(this);\n\n  #agents: AgentRecord[] = [];\n\n  #unhandledExceptionIds = new WeakMap<Value, number>();\n\n  attachAgent(agent: Agent, priorRealms: ManagedRealm[]) {\n    const oldOnDebugger = agent.hostDefinedOptions.onDebugger;\n    agent.hostDefinedOptions.onDebugger = (reason) => {\n      oldOnDebugger?.(reason);\n      const pausedEvent: Protocol.Debugger.PausedEvent = {\n        reason: reason?.reason ?? 'debugCommand',\n        callFrames: this.#context.getDebuggerCallFrame(),\n      };\n      if (reason?.hitBreakpoints) {\n        pausedEvent.hitBreakpoints = [...reason.hitBreakpoints];\n      }\n      this.sendEvent['Debugger.paused'](pausedEvent);\n    };\n\n    agent.hostDefinedOptions.hostHooks ??= {};\n    agent.hostDefinedOptions.hostHooks.HostPromiseRejectionTrackers ??= new Set();\n    const tracker: HostPromiseRejectionTracker = (promise, operation) => {\n      if (operation === 'reject') {\n        const detail = this.#context.createExceptionDetails(promise, true);\n        this.#unhandledExceptionIds.set(promise, detail.exceptionId);\n        this.sendEvent['Runtime.exceptionThrown']({\n          timestamp: Date.now(),\n          exceptionDetails: detail,\n        });\n      } else {\n        const id = this.#unhandledExceptionIds.get(promise);\n        if (id) {\n          this.sendEvent['Runtime.exceptionRevoked']({\n            reason: 'Handler added to rejected promise',\n            exceptionId: id,\n          });\n        }\n      }\n    };\n    agent.hostDefinedOptions.hostHooks.HostPromiseRejectionTrackers.add(tracker);\n\n    const oldOnRealmCreated = agent.hostDefinedOptions.onRealmCreated;\n    agent.hostDefinedOptions.onRealmCreated = (realm) => {\n      oldOnRealmCreated?.(realm);\n      this.#context.attachRealm(realm, agent);\n    };\n\n    const oldOnScriptParsed = agent.hostDefinedOptions.onScriptParsed;\n    agent.hostDefinedOptions.onScriptParsed = (script, id) => {\n      oldOnScriptParsed?.(script, id);\n      const realmId = this.#context.getRealm(script.Realm as ManagedRealm)?.descriptor.id;\n      if (realmId === undefined) {\n        return;\n      }\n      this.sendEvent['Debugger.scriptParsed'](getParsedEvent(script, id, realmId));\n    };\n    this.#agents.push({\n      agent,\n      onDetach: () => {\n        agent.hostDefinedOptions.onDebugger = oldOnDebugger;\n        agent.hostDefinedOptions.onRealmCreated = oldOnRealmCreated;\n        agent.hostDefinedOptions.onScriptParsed = oldOnScriptParsed;\n        agent.hostDefinedOptions.hostHooks!.HostPromiseRejectionTrackers!.delete(tracker);\n        this.#agents = this.#agents.filter((x) => x.agent !== agent);\n      },\n    });\n    priorRealms.forEach((realm) => {\n      this.#context.attachRealm(realm, agent);\n    });\n  }\n\n  detachAgent(agent: Agent) {\n    const record = this.#agents.find((x) => x.agent === agent);\n    record?.onDetach();\n    this.#context.detachAgent(agent);\n  }\n\n  protected abstract send(data: object): void;\n\n  readonly preference: DebuggerPreference = { previewDebug: false };\n\n  protected onMessage(id: unknown, methodArg: string, params: unknown): void {\n    if (ignoreMethods.includes(methodArg)) {\n      return;\n    }\n    const [namespace, method] = methodArg.split('.');\n    if (ignoreNamespaces.includes(namespace)) {\n      return;\n    }\n    if (!(namespace in impl)) {\n      this.sendEvent['Runtime.consoleAPICalled']({\n        timestamp: Date.now(),\n        type: 'warning',\n        executionContextId: 0,\n        args: [{\n          type: 'string',\n          value: `engine262 internal error: Namespace not implemented: ${namespace}.*`,\n        }],\n      });\n      return;\n    }\n    const ns = (impl as Record<string, object>)[namespace];\n    if (!(method in ns)) {\n      this.sendEvent['Runtime.consoleAPICalled']({\n        timestamp: Date.now(),\n        type: 'warning',\n        executionContextId: 0,\n        args: [{\n          type: 'string',\n          value: `engine262 internal error: Method not implemented: ${namespace}.${method}`,\n        }],\n      });\n      return;\n    }\n\n    const f = (ns as Record<string, (args: unknown, context: DebuggerContext) => unknown>)[method];\n    new Promise((resolve) => {\n      resolve(f(params, this.#debugContext));\n    }).then((result = {}) => {\n      this.send({ id, result });\n    });\n  }\n\n  sendEvent: DevtoolEvents = Object.create(new Proxy({}, {\n    get: (_, key: string) => {\n      const f = (params: Record<string, unknown>) => {\n        if (this.#debuggerAttached) {\n          this.send({ method: key, params });\n        }\n      };\n      Object.defineProperty(this.sendEvent, key, { value: f });\n      return f;\n    },\n  }));\n\n  console(realm: Realm, type: Protocol.Runtime.ConsoleAPICalledEventType, args: Arguments) {\n    const context = this.#context.getRealm(realm as ManagedRealm);\n    if (!context) {\n      return;\n    }\n    this.sendEvent['Runtime.consoleAPICalled']({\n      type,\n      args: args.map((x) => this.#context.toRemoteObject(x, { })),\n      executionContextId: context.descriptor.id,\n      timestamp: Date.now(),\n    });\n  }\n\n  #debuggerAttached = false;\n\n  onDebuggerDisconnect() {\n    this.#debuggerAttached = false;\n  }\n\n  #onDebuggerConnected() {\n    this.#context.realms.forEach((realm) => {\n      if (realm) {\n        this.sendEvent['Runtime.executionContextCreated']({\n          context: realm.descriptor,\n        });\n      }\n    });\n    this.#agents.forEach(({ agent }) => {\n      agent.parsedSources.forEach((script, id) => {\n        const realmId = this.#context.getRealm(script.Realm as ManagedRealm)?.descriptor.id;\n        if (realmId === undefined) {\n          return;\n        }\n        this.sendEvent['Debugger.scriptParsed'](getParsedEvent(script, id, realmId));\n      });\n    });\n  }\n\n  #debugContext: DebuggerContext = {\n    sendEvent: this.sendEvent,\n    preference: this.preference,\n    context: this.#context,\n    onDebuggerConnect: () => {\n      if (!this.#debuggerAttached) {\n        this.#debuggerAttached = true;\n        this.#onDebuggerConnected();\n      }\n    },\n    onDebuggerDisconnect: () => {\n      this.#debuggerAttached = false;\n    },\n  };\n}\n"],"names":["Boolean","Symbol","String","Proxy","Promise","Array","Date","Map","Set","WeakMap","Error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,IAA0B,GAAG;AACxC,EAAA,cAAc,EAAE,OAAO;AAAE,IAAA,IAAI,EAAE,QAAQ;AAAE,IAAA,OAAO,EAAE,MAAM;AAAE,IAAA,KAAK,EAAE;AAAK,GAAC,CAAC;AACxE,EAAA,eAAe,EAAE,OAAO;AACtB,IAAA,IAAI,EAAE,QAAQ;AAAE,IAAA,OAAO,EAAE,MAAM;AAAE,IAAA,UAAU,EAAE,EAAE;AAAE,IAAA,QAAQ,EAAE;AAC7D,GAAC,CAAC;EACF,iBAAiB,EAAG,IAAI,KAAM;IAC5B,IAAI;AAAE,IAAA,IAAI,EAAE,QAAQ;AAAE,IAAA,OAAO,EAAE,MAAM;AAAE,IAAA,KAAK,EAAE;AAChD,GAAC,CAAC;AACF,EAAA,aAAa,EAAE,MAAM;AACvB,CAAC;AAEM,MAAM,SAAoC,GAAG;AAClD,EAAA,cAAc,EAAE,OAAO;AAAE,IAAA,IAAI,EAAE;AAAY,GAAC,CAAC;AAC7C,EAAA,eAAe,EAAE,OAAO;AACtB,IAAA,IAAI,EAAE,WAAW;AAAE,IAAA,UAAU,EAAE,EAAE;AAAE,IAAA,QAAQ,EAAE;AAC/C,GAAC,CAAC;EACF,iBAAiB,EAAG,IAAI,KAAM;IAC5B,IAAI;AAAE,IAAA,IAAI,EAAE,WAAW;AAAE,IAAA,KAAK,EAAE;AAClC,GAAC,CAAC;AACF,EAAA,aAAa,EAAE,MAAM;AACvB,CAAC;AAEM,MAAMA,SAAgC,GAAG;EAC9C,cAAc,EAAG,KAAK,KAAM;AAAE,IAAA,IAAI,EAAE,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