403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.221
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/philiprehberger-nextjs/.next/static/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/philiprehberger-nextjs/.next/static/chunks/_cdba956c._.js.map
{
  "version": 3,
  "sources": [],
  "sections": [
    {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime-utils.ts"],"sourcesContent":["/**\r\n * This file contains runtime types and functions that are shared between all\r\n * TurboPack ECMAScript runtimes.\r\n *\r\n * It will be prepended to the runtime code of each runtime.\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\n/// <reference path=\"./runtime-types.d.ts\" />\r\n\r\ntype EsmNamespaceObject = Record<string, any>\r\n\r\n// @ts-ignore Defined in `dev-base.ts`\r\ndeclare function getOrInstantiateModuleFromParent<M>(\r\n  id: ModuleId,\r\n  sourceModule: M\r\n): M\r\n\r\nconst REEXPORTED_OBJECTS = new WeakMap<Module, ReexportedObjects>()\r\n\r\n/**\r\n * Constructs the `__turbopack_context__` object for a module.\r\n */\r\nfunction Context(\r\n  this: TurbopackBaseContext<Module>,\r\n  module: Module,\r\n  exports: Exports\r\n) {\r\n  this.m = module\r\n  // We need to store this here instead of accessing it from the module object to:\r\n  // 1. Make it available to factories directly, since we rewrite `this` to\r\n  //    `__turbopack_context__.e` in CJS modules.\r\n  // 2. Support async modules which rewrite `module.exports` to a promise, so we\r\n  //    can still access the original exports object from functions like\r\n  //    `esmExport`\r\n  // Ideally we could find a new approach for async modules and drop this property altogether.\r\n  this.e = exports\r\n}\r\nconst contextPrototype = Context.prototype as TurbopackBaseContext<Module>\r\n\r\ntype ModuleContextMap = Record<ModuleId, ModuleContextEntry>\r\n\r\ninterface ModuleContextEntry {\r\n  id: () => ModuleId\r\n  module: () => any\r\n}\r\n\r\ninterface ModuleContext {\r\n  // require call\r\n  (moduleId: ModuleId): Exports | EsmNamespaceObject\r\n\r\n  // async import call\r\n  import(moduleId: ModuleId): Promise<Exports | EsmNamespaceObject>\r\n\r\n  keys(): ModuleId[]\r\n\r\n  resolve(moduleId: ModuleId): ModuleId\r\n}\r\n\r\ntype GetOrInstantiateModuleFromParent<M extends Module> = (\r\n  moduleId: M['id'],\r\n  parentModule: M\r\n) => M\r\n\r\ndeclare function getOrInstantiateRuntimeModule(\r\n  chunkPath: ChunkPath,\r\n  moduleId: ModuleId\r\n): Module\r\n\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty\r\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\r\n\r\nfunction defineProp(\r\n  obj: any,\r\n  name: PropertyKey,\r\n  options: PropertyDescriptor & ThisType<any>\r\n) {\r\n  if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\r\n}\r\n\r\nfunction getOverwrittenModule(\r\n  moduleCache: ModuleCache<Module>,\r\n  id: ModuleId\r\n): Module {\r\n  let module = moduleCache[id]\r\n  if (!module) {\r\n    // This is invoked when a module is merged into another module, thus it wasn't invoked via\r\n    // instantiateModule and the cache entry wasn't created yet.\r\n    module = createModuleObject(id)\r\n    moduleCache[id] = module\r\n  }\r\n  return module\r\n}\r\n\r\n/**\r\n * Creates the module object. Only done here to ensure all module objects have the same shape.\r\n */\r\nfunction createModuleObject(id: ModuleId): Module {\r\n  return {\r\n    exports: {},\r\n    error: undefined,\r\n    id,\r\n    namespaceObject: undefined,\r\n  }\r\n}\r\n\r\n/**\r\n * Adds the getters to the exports object.\r\n */\r\nfunction esm(\r\n  exports: Exports,\r\n  getters: Array<string | (() => unknown) | ((v: unknown) => void)>\r\n) {\r\n  defineProp(exports, '__esModule', { value: true })\r\n  if (toStringTag) defineProp(exports, toStringTag, { value: 'Module' })\r\n  let i = 0\r\n  while (i < getters.length) {\r\n    const propName = getters[i++] as string\r\n    // TODO(luke.sandberg): we could support raw values here, but would need a discriminator beyond 'not a function'\r\n    const getter = getters[i++] as () => unknown\r\n    if (typeof getters[i] === 'function') {\r\n      // a setter\r\n      defineProp(exports, propName, {\r\n        get: getter,\r\n        set: getters[i++] as (v: unknown) => void,\r\n        enumerable: true,\r\n      })\r\n    } else {\r\n      defineProp(exports, propName, { get: getter, enumerable: true })\r\n    }\r\n  }\r\n  Object.seal(exports)\r\n}\r\n\r\n/**\r\n * Makes the module an ESM with exports\r\n */\r\nfunction esmExport(\r\n  this: TurbopackBaseContext<Module>,\r\n  getters: Array<string | (() => unknown) | ((v: unknown) => void)>,\r\n  id: ModuleId | undefined\r\n) {\r\n  let module: Module\r\n  let exports: Module['exports']\r\n  if (id != null) {\r\n    module = getOverwrittenModule(this.c, id)\r\n    exports = module.exports\r\n  } else {\r\n    module = this.m\r\n    exports = this.e\r\n  }\r\n  module.namespaceObject = exports\r\n  esm(exports, getters)\r\n}\r\ncontextPrototype.s = esmExport\r\n\r\ntype ReexportedObjects = Record<PropertyKey, unknown>[]\r\nfunction ensureDynamicExports(\r\n  module: Module,\r\n  exports: Exports\r\n): ReexportedObjects {\r\n  let reexportedObjects: ReexportedObjects | undefined =\r\n    REEXPORTED_OBJECTS.get(module)\r\n\r\n  if (!reexportedObjects) {\r\n    REEXPORTED_OBJECTS.set(module, (reexportedObjects = []))\r\n    module.exports = module.namespaceObject = new Proxy(exports, {\r\n      get(target, prop) {\r\n        if (\r\n          hasOwnProperty.call(target, prop) ||\r\n          prop === 'default' ||\r\n          prop === '__esModule'\r\n        ) {\r\n          return Reflect.get(target, prop)\r\n        }\r\n        for (const obj of reexportedObjects!) {\r\n          const value = Reflect.get(obj, prop)\r\n          if (value !== undefined) return value\r\n        }\r\n        return undefined\r\n      },\r\n      ownKeys(target) {\r\n        const keys = Reflect.ownKeys(target)\r\n        for (const obj of reexportedObjects!) {\r\n          for (const key of Reflect.ownKeys(obj)) {\r\n            if (key !== 'default' && !keys.includes(key)) keys.push(key)\r\n          }\r\n        }\r\n        return keys\r\n      },\r\n    })\r\n  }\r\n  return reexportedObjects\r\n}\r\n\r\n/**\r\n * Dynamically exports properties from an object\r\n */\r\nfunction dynamicExport(\r\n  this: TurbopackBaseContext<Module>,\r\n  object: Record<string, any>,\r\n  id: ModuleId | undefined\r\n) {\r\n  let module: Module\r\n  let exports: Module['exports']\r\n  if (id != null) {\r\n    module = getOverwrittenModule(this.c, id)\r\n    exports = module.exports\r\n  } else {\r\n    module = this.m\r\n    exports = this.e\r\n  }\r\n  const reexportedObjects = ensureDynamicExports(module, exports)\r\n\r\n  if (typeof object === 'object' && object !== null) {\r\n    reexportedObjects.push(object)\r\n  }\r\n}\r\ncontextPrototype.j = dynamicExport\r\n\r\nfunction exportValue(\r\n  this: TurbopackBaseContext<Module>,\r\n  value: any,\r\n  id: ModuleId | undefined\r\n) {\r\n  let module: Module\r\n  if (id != null) {\r\n    module = getOverwrittenModule(this.c, id)\r\n  } else {\r\n    module = this.m\r\n  }\r\n  module.exports = value\r\n}\r\ncontextPrototype.v = exportValue\r\n\r\nfunction exportNamespace(\r\n  this: TurbopackBaseContext<Module>,\r\n  namespace: any,\r\n  id: ModuleId | undefined\r\n) {\r\n  let module: Module\r\n  if (id != null) {\r\n    module = getOverwrittenModule(this.c, id)\r\n  } else {\r\n    module = this.m\r\n  }\r\n  module.exports = module.namespaceObject = namespace\r\n}\r\ncontextPrototype.n = exportNamespace\r\n\r\nfunction createGetter(obj: Record<string | symbol, any>, key: string | symbol) {\r\n  return () => obj[key]\r\n}\r\n\r\n/**\r\n * @returns prototype of the object\r\n */\r\nconst getProto: (obj: any) => any = Object.getPrototypeOf\r\n  ? (obj) => Object.getPrototypeOf(obj)\r\n  : (obj) => obj.__proto__\r\n\r\n/** Prototypes that are not expanded for exports */\r\nconst LEAF_PROTOTYPES = [null, getProto({}), getProto([]), getProto(getProto)]\r\n\r\n/**\r\n * @param raw\r\n * @param ns\r\n * @param allowExportDefault\r\n *   * `false`: will have the raw module as default export\r\n *   * `true`: will have the default property as default export\r\n */\r\nfunction interopEsm(\r\n  raw: Exports,\r\n  ns: EsmNamespaceObject,\r\n  allowExportDefault?: boolean\r\n) {\r\n  const getters: Array<string | (() => unknown) | ((v: unknown) => void)> = []\r\n  // The index of the `default` export if any\r\n  let defaultLocation = -1\r\n  for (\r\n    let current = raw;\r\n    (typeof current === 'object' || typeof current === 'function') &&\r\n    !LEAF_PROTOTYPES.includes(current);\r\n    current = getProto(current)\r\n  ) {\r\n    for (const key of Object.getOwnPropertyNames(current)) {\r\n      getters.push(key, createGetter(raw, key))\r\n      if (defaultLocation === -1 && key === 'default') {\r\n        defaultLocation = getters.length - 1\r\n      }\r\n    }\r\n  }\r\n\r\n  // this is not really correct\r\n  // we should set the `default` getter if the imported module is a `.cjs file`\r\n  if (!(allowExportDefault && defaultLocation >= 0)) {\r\n    // Replace the binding with one for the namespace itself in order to preserve iteration order.\r\n    if (defaultLocation >= 0) {\r\n      getters[defaultLocation] = () => raw\r\n    } else {\r\n      getters.push('default', () => raw)\r\n    }\r\n  }\r\n\r\n  esm(ns, getters)\r\n  return ns\r\n}\r\n\r\nfunction createNS(raw: Module['exports']): EsmNamespaceObject {\r\n  if (typeof raw === 'function') {\r\n    return function (this: any, ...args: any[]) {\r\n      return raw.apply(this, args)\r\n    }\r\n  } else {\r\n    return Object.create(null)\r\n  }\r\n}\r\n\r\nfunction esmImport(\r\n  this: TurbopackBaseContext<Module>,\r\n  id: ModuleId\r\n): Exclude<Module['namespaceObject'], undefined> {\r\n  const module = getOrInstantiateModuleFromParent(id, this.m)\r\n\r\n  // any ES module has to have `module.namespaceObject` defined.\r\n  if (module.namespaceObject) return module.namespaceObject\r\n\r\n  // only ESM can be an async module, so we don't need to worry about exports being a promise here.\r\n  const raw = module.exports\r\n  return (module.namespaceObject = interopEsm(\r\n    raw,\r\n    createNS(raw),\r\n    raw && (raw as any).__esModule\r\n  ))\r\n}\r\ncontextPrototype.i = esmImport\r\n\r\nfunction asyncLoader(\r\n  this: TurbopackBaseContext<Module>,\r\n  moduleId: ModuleId\r\n): Promise<Exports> {\r\n  const loader = this.r(moduleId) as (\r\n    importFunction: EsmImport\r\n  ) => Promise<Exports>\r\n  return loader(this.i.bind(this))\r\n}\r\ncontextPrototype.A = asyncLoader\r\n\r\n// Add a simple runtime require so that environments without one can still pass\r\n// `typeof require` CommonJS checks so that exports are correctly registered.\r\nconst runtimeRequire =\r\n  // @ts-ignore\r\n  typeof require === 'function'\r\n    ? // @ts-ignore\r\n      require\r\n    : function require() {\r\n        throw new Error('Unexpected use of runtime require')\r\n      }\r\ncontextPrototype.t = runtimeRequire\r\n\r\nfunction commonJsRequire(\r\n  this: TurbopackBaseContext<Module>,\r\n  id: ModuleId\r\n): Exports {\r\n  return getOrInstantiateModuleFromParent(id, this.m).exports\r\n}\r\ncontextPrototype.r = commonJsRequire\r\n\r\n/**\r\n * `require.context` and require/import expression runtime.\r\n */\r\nfunction moduleContext(map: ModuleContextMap): ModuleContext {\r\n  function moduleContext(id: ModuleId): Exports {\r\n    if (hasOwnProperty.call(map, id)) {\r\n      return map[id].module()\r\n    }\r\n\r\n    const e = new Error(`Cannot find module '${id}'`)\r\n    ;(e as any).code = 'MODULE_NOT_FOUND'\r\n    throw e\r\n  }\r\n\r\n  moduleContext.keys = (): ModuleId[] => {\r\n    return Object.keys(map)\r\n  }\r\n\r\n  moduleContext.resolve = (id: ModuleId): ModuleId => {\r\n    if (hasOwnProperty.call(map, id)) {\r\n      return map[id].id()\r\n    }\r\n\r\n    const e = new Error(`Cannot find module '${id}'`)\r\n    ;(e as any).code = 'MODULE_NOT_FOUND'\r\n    throw e\r\n  }\r\n\r\n  moduleContext.import = async (id: ModuleId) => {\r\n    return await (moduleContext(id) as Promise<Exports>)\r\n  }\r\n\r\n  return moduleContext\r\n}\r\ncontextPrototype.f = moduleContext\r\n\r\n/**\r\n * Returns the path of a chunk defined by its data.\r\n */\r\nfunction getChunkPath(chunkData: ChunkData): ChunkPath {\r\n  return typeof chunkData === 'string' ? chunkData : chunkData.path\r\n}\r\n\r\nfunction isPromise<T = any>(maybePromise: any): maybePromise is Promise<T> {\r\n  return (\r\n    maybePromise != null &&\r\n    typeof maybePromise === 'object' &&\r\n    'then' in maybePromise &&\r\n    typeof maybePromise.then === 'function'\r\n  )\r\n}\r\n\r\nfunction isAsyncModuleExt<T extends {}>(obj: T): obj is AsyncModuleExt & T {\r\n  return turbopackQueues in obj\r\n}\r\n\r\nfunction createPromise<T>() {\r\n  let resolve: (value: T | PromiseLike<T>) => void\r\n  let reject: (reason?: any) => void\r\n\r\n  const promise = new Promise<T>((res, rej) => {\r\n    reject = rej\r\n    resolve = res\r\n  })\r\n\r\n  return {\r\n    promise,\r\n    resolve: resolve!,\r\n    reject: reject!,\r\n  }\r\n}\r\n\r\n// Load the CompressedmoduleFactories of a chunk into the `moduleFactories` Map.\r\n// The CompressedModuleFactories format is\r\n// - 1 or more module ids\r\n// - a module factory function\r\n// So walking this is a little complex but the flat structure is also fast to\r\n// traverse, we can use `typeof` operators to distinguish the two cases.\r\nfunction installCompressedModuleFactories(\r\n  chunkModules: CompressedModuleFactories,\r\n  offset: number,\r\n  moduleFactories: ModuleFactories,\r\n  newModuleId?: (id: ModuleId) => void\r\n) {\r\n  let i = offset\r\n  while (i < chunkModules.length) {\r\n    let moduleId = chunkModules[i] as ModuleId\r\n    let end = i + 1\r\n    // Find our factory function\r\n    while (\r\n      end < chunkModules.length &&\r\n      typeof chunkModules[end] !== 'function'\r\n    ) {\r\n      end++\r\n    }\r\n    if (end === chunkModules.length) {\r\n      throw new Error('malformed chunk format, expected a factory function')\r\n    }\r\n    // Each chunk item has a 'primary id' and optional additional ids. If the primary id is already\r\n    // present we know all the additional ids are also present, so we don't need to check.\r\n    if (!moduleFactories.has(moduleId)) {\r\n      const moduleFactoryFn = chunkModules[end] as Function\r\n      applyModuleFactoryName(moduleFactoryFn)\r\n      newModuleId?.(moduleId)\r\n      for (; i < end; i++) {\r\n        moduleId = chunkModules[i] as ModuleId\r\n        moduleFactories.set(moduleId, moduleFactoryFn)\r\n      }\r\n    }\r\n    i = end + 1 // end is pointing at the last factory advance to the next id or the end of the array.\r\n  }\r\n}\r\n\r\n// everything below is adapted from webpack\r\n// https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\r\n\r\nconst turbopackQueues = Symbol('turbopack queues')\r\nconst turbopackExports = Symbol('turbopack exports')\r\nconst turbopackError = Symbol('turbopack error')\r\n\r\nconst enum QueueStatus {\r\n  Unknown = -1,\r\n  Unresolved = 0,\r\n  Resolved = 1,\r\n}\r\n\r\ntype AsyncQueueFn = (() => void) & { queueCount: number }\r\ntype AsyncQueue = AsyncQueueFn[] & {\r\n  status: QueueStatus\r\n}\r\n\r\nfunction resolveQueue(queue?: AsyncQueue) {\r\n  if (queue && queue.status !== QueueStatus.Resolved) {\r\n    queue.status = QueueStatus.Resolved\r\n    queue.forEach((fn) => fn.queueCount--)\r\n    queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\r\n  }\r\n}\r\n\r\ntype Dep = Exports | AsyncModulePromise | Promise<Exports>\r\n\r\ntype AsyncModuleExt = {\r\n  [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\r\n  [turbopackExports]: Exports\r\n  [turbopackError]?: any\r\n}\r\n\r\ntype AsyncModulePromise<T = Exports> = Promise<T> & AsyncModuleExt\r\n\r\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\r\n  return deps.map((dep): AsyncModuleExt => {\r\n    if (dep !== null && typeof dep === 'object') {\r\n      if (isAsyncModuleExt(dep)) return dep\r\n      if (isPromise(dep)) {\r\n        const queue: AsyncQueue = Object.assign([], {\r\n          status: QueueStatus.Unresolved,\r\n        })\r\n\r\n        const obj: AsyncModuleExt = {\r\n          [turbopackExports]: {},\r\n          [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\r\n        }\r\n\r\n        dep.then(\r\n          (res) => {\r\n            obj[turbopackExports] = res\r\n            resolveQueue(queue)\r\n          },\r\n          (err) => {\r\n            obj[turbopackError] = err\r\n            resolveQueue(queue)\r\n          }\r\n        )\r\n\r\n        return obj\r\n      }\r\n    }\r\n\r\n    return {\r\n      [turbopackExports]: dep,\r\n      [turbopackQueues]: () => {},\r\n    }\r\n  })\r\n}\r\n\r\nfunction asyncModule(\r\n  this: TurbopackBaseContext<Module>,\r\n  body: (\r\n    handleAsyncDependencies: (\r\n      deps: Dep[]\r\n    ) => Exports[] | Promise<() => Exports[]>,\r\n    asyncResult: (err?: any) => void\r\n  ) => void,\r\n  hasAwait: boolean\r\n) {\r\n  const module = this.m\r\n  const queue: AsyncQueue | undefined = hasAwait\r\n    ? Object.assign([], { status: QueueStatus.Unknown })\r\n    : undefined\r\n\r\n  const depQueues: Set<AsyncQueue> = new Set()\r\n\r\n  const { resolve, reject, promise: rawPromise } = createPromise<Exports>()\r\n\r\n  const promise: AsyncModulePromise = Object.assign(rawPromise, {\r\n    [turbopackExports]: module.exports,\r\n    [turbopackQueues]: (fn) => {\r\n      queue && fn(queue)\r\n      depQueues.forEach(fn)\r\n      promise['catch'](() => {})\r\n    },\r\n  } satisfies AsyncModuleExt)\r\n\r\n  const attributes: PropertyDescriptor = {\r\n    get(): any {\r\n      return promise\r\n    },\r\n    set(v: any) {\r\n      // Calling `esmExport` leads to this.\r\n      if (v !== promise) {\r\n        promise[turbopackExports] = v\r\n      }\r\n    },\r\n  }\r\n\r\n  Object.defineProperty(module, 'exports', attributes)\r\n  Object.defineProperty(module, 'namespaceObject', attributes)\r\n\r\n  function handleAsyncDependencies(deps: Dep[]) {\r\n    const currentDeps = wrapDeps(deps)\r\n\r\n    const getResult = () =>\r\n      currentDeps.map((d) => {\r\n        if (d[turbopackError]) throw d[turbopackError]\r\n        return d[turbopackExports]\r\n      })\r\n\r\n    const { promise, resolve } = createPromise<() => Exports[]>()\r\n\r\n    const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\r\n      queueCount: 0,\r\n    })\r\n\r\n    function fnQueue(q: AsyncQueue) {\r\n      if (q !== queue && !depQueues.has(q)) {\r\n        depQueues.add(q)\r\n        if (q && q.status === QueueStatus.Unresolved) {\r\n          fn.queueCount++\r\n          q.push(fn)\r\n        }\r\n      }\r\n    }\r\n\r\n    currentDeps.map((dep) => dep[turbopackQueues](fnQueue))\r\n\r\n    return fn.queueCount ? promise : getResult()\r\n  }\r\n\r\n  function asyncResult(err?: any) {\r\n    if (err) {\r\n      reject((promise[turbopackError] = err))\r\n    } else {\r\n      resolve(promise[turbopackExports])\r\n    }\r\n\r\n    resolveQueue(queue)\r\n  }\r\n\r\n  body(handleAsyncDependencies, asyncResult)\r\n\r\n  if (queue && queue.status === QueueStatus.Unknown) {\r\n    queue.status = QueueStatus.Unresolved\r\n  }\r\n}\r\ncontextPrototype.a = asyncModule\r\n\r\n/**\r\n * A pseudo \"fake\" URL object to resolve to its relative path.\r\n *\r\n * When UrlRewriteBehavior is set to relative, calls to the `new URL()` will construct url without base using this\r\n * runtime function to generate context-agnostic urls between different rendering context, i.e ssr / client to avoid\r\n * hydration mismatch.\r\n *\r\n * This is based on webpack's existing implementation:\r\n * https://github.com/webpack/webpack/blob/87660921808566ef3b8796f8df61bd79fc026108/lib/runtime/RelativeUrlRuntimeModule.js\r\n */\r\nconst relativeURL = function relativeURL(this: any, inputUrl: string) {\r\n  const realUrl = new URL(inputUrl, 'x:/')\r\n  const values: Record<string, any> = {}\r\n  for (const key in realUrl) values[key] = (realUrl as any)[key]\r\n  values.href = inputUrl\r\n  values.pathname = inputUrl.replace(/[?#].*/, '')\r\n  values.origin = values.protocol = ''\r\n  values.toString = values.toJSON = (..._args: Array<any>) => inputUrl\r\n  for (const key in values)\r\n    Object.defineProperty(this, key, {\r\n      enumerable: true,\r\n      configurable: true,\r\n      value: values[key],\r\n    })\r\n}\r\nrelativeURL.prototype = URL.prototype\r\ncontextPrototype.U = relativeURL\r\n\r\n/**\r\n * Utility function to ensure all variants of an enum are handled.\r\n */\r\nfunction invariant(never: never, computeMessage: (arg: any) => string): never {\r\n  throw new Error(`Invariant: ${computeMessage(never)}`)\r\n}\r\n\r\n/**\r\n * A stub function to make `require` available but non-functional in ESM.\r\n */\r\nfunction requireStub(_moduleId: ModuleId): never {\r\n  throw new Error('dynamic usage of require is not supported')\r\n}\r\ncontextPrototype.z = requireStub\r\n\r\n// Make `globalThis` available to the module in a way that cannot be shadowed by a local variable.\r\ncontextPrototype.g = globalThis\r\n\r\ntype ContextConstructor<M> = {\r\n  new (module: Module, exports: Exports): TurbopackBaseContext<M>\r\n}\r\n\r\nfunction applyModuleFactoryName(factory: Function) {\r\n  // Give the module factory a nice name to improve stack traces.\r\n  Object.defineProperty(factory, 'name', {\r\n    value: '__TURBOPACK__module__evaluation__',\r\n  })\r\n}\r\n"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,6CAA6C;AAU7C,MAAM,qBAAqB,IAAI;AAE/B;;CAEC,GACD,SAAS,QAEP,MAAc,EACd,OAAgB;IAEhB,IAAI,CAAC,CAAC,GAAG;IACT,gFAAgF;IAChF,yEAAyE;IACzE,+CAA+C;IAC/C,8EAA8E;IAC9E,sEAAsE;IACtE,iBAAiB;IACjB,4FAA4F;IAC5F,IAAI,CAAC,CAAC,GAAG;AACX;AACA,MAAM,mBAAmB,QAAQ,SAAS;AA+B1C,MAAM,iBAAiB,OAAO,SAAS,CAAC,cAAc;AACtD,MAAM,cAAc,OAAO,WAAW,eAAe,OAAO,WAAW;AAEvE,SAAS,WACP,GAAQ,EACR,IAAiB,EACjB,OAA2C;IAE3C,IAAI,CAAC,eAAe,IAAI,CAAC,KAAK,OA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B,OAAiB;IAC/C,+DAA+D;IAC/D,OAAO,cAAc,CAAC,SAAS,QAAQ;QACrC,OAAO;IACT;AACF","ignoreList":[0]}},
    {"offset": {"line": 480, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\r\n * This file contains runtime types and functions that are shared between all\r\n * Turbopack *development* ECMAScript runtimes.\r\n *\r\n * It will be appended to the runtime code of each runtime right after the\r\n * shared runtime utils.\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\n/// <reference path=\"../base/globals.d.ts\" />\r\n/// <reference path=\"../../../shared/runtime-utils.ts\" />\r\n\r\n// Used in WebWorkers to tell the runtime about the chunk base path\r\ndeclare var TURBOPACK_WORKER_LOCATION: string\r\n// Used in WebWorkers to tell the runtime about the current chunk url since it can't be detected via document.currentScript\r\n// Note it's stored in reversed order to use push and pop\r\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\r\n\r\n// Injected by rust code\r\ndeclare var CHUNK_BASE_PATH: string\r\ndeclare var CHUNK_SUFFIX_PATH: string\r\n\r\ninterface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> {\r\n  R: ResolvePathFromModule\r\n}\r\n\r\nconst browserContextPrototype =\r\n  Context.prototype as TurbopackBrowserBaseContext<unknown>\r\n\r\n// Provided by build or dev base\r\ndeclare function instantiateModule(\r\n  id: ModuleId,\r\n  sourceType: SourceType,\r\n  sourceData: SourceData\r\n): Module\r\n\r\ntype RuntimeParams = {\r\n  otherChunks: ChunkData[]\r\n  runtimeModuleIds: ModuleId[]\r\n}\r\n\r\ntype ChunkRegistration = [\r\n  chunkPath: ChunkScript,\r\n  ...([RuntimeParams] | CompressedModuleFactories),\r\n]\r\n\r\ntype ChunkList = {\r\n  script: ChunkListScript\r\n  chunks: ChunkData[]\r\n  source: 'entry' | 'dynamic'\r\n}\r\n\r\nenum SourceType {\r\n  /**\r\n   * The module was instantiated because it was included in an evaluated chunk's\r\n   * runtime.\r\n   * SourceData is a ChunkPath.\r\n   */\r\n  Runtime = 0,\r\n  /**\r\n   * The module was instantiated because a parent module imported it.\r\n   * SourceData is a ModuleId.\r\n   */\r\n  Parent = 1,\r\n  /**\r\n   * The module was instantiated because it was included in a chunk's hot module\r\n   * update.\r\n   * SourceData is an array of ModuleIds or undefined.\r\n   */\r\n  Update = 2,\r\n}\r\n\r\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\r\ninterface RuntimeBackend {\r\n  registerChunk: (chunkPath: ChunkPath, params?: RuntimeParams) => void\r\n  /**\r\n   * Returns the same Promise for the same chunk URL.\r\n   */\r\n  loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise<void>\r\n  loadWebAssembly: (\r\n    sourceType: SourceType,\r\n    sourceData: SourceData,\r\n    wasmChunkPath: ChunkPath,\r\n    edgeModule: () => WebAssembly.Module,\r\n    importsObj: WebAssembly.Imports\r\n  ) => Promise<Exports>\r\n  loadWebAssemblyModule: (\r\n    sourceType: SourceType,\r\n    sourceData: SourceData,\r\n    wasmChunkPath: ChunkPath,\r\n    edgeModule: () => WebAssembly.Module\r\n  ) => Promise<WebAssembly.Module>\r\n}\r\n\r\ninterface DevRuntimeBackend {\r\n  reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\r\n  unloadChunk?: (chunkUrl: ChunkUrl) => void\r\n  restart: () => void\r\n}\r\n\r\nconst moduleFactories: ModuleFactories = new Map()\r\ncontextPrototype.M = moduleFactories\r\n\r\nconst availableModules: Map<ModuleId, Promise<any> | true> = new Map()\r\n\r\nconst availableModuleChunks: Map<ChunkPath, Promise<any> | true> = new Map()\r\n\r\nfunction factoryNotAvailable(\r\n  moduleId: ModuleId,\r\n  sourceType: SourceType,\r\n  sourceData: SourceData\r\n): never {\r\n  let instantiationReason\r\n  switch (sourceType) {\r\n    case SourceType.Runtime:\r\n      instantiationReason = `as a runtime entry of chunk ${sourceData}`\r\n      break\r\n    case SourceType.Parent:\r\n      instantiationReason = `because it was required from module ${sourceData}`\r\n      break\r\n    case SourceType.Update:\r\n      instantiationReason = 'because of an HMR update'\r\n      break\r\n    default:\r\n      invariant(\r\n        sourceType,\r\n        (sourceType) => `Unknown source type: ${sourceType}`\r\n      )\r\n  }\r\n  throw new Error(\r\n    `Module ${moduleId} was instantiated ${instantiationReason}, but the module factory is not available. It might have been deleted in an HMR update.`\r\n  )\r\n}\r\n\r\nfunction loadChunk(\r\n  this: TurbopackBrowserBaseContext<Module>,\r\n  chunkData: ChunkData\r\n): Promise<void> {\r\n  return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\r\n}\r\nbrowserContextPrototype.l = loadChunk\r\n\r\nfunction loadInitialChunk(chunkPath: ChunkPath, chunkData: ChunkData) {\r\n  return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\r\n}\r\n\r\nasync function loadChunkInternal(\r\n  sourceType: SourceType,\r\n  sourceData: SourceData,\r\n  chunkData: ChunkData\r\n): Promise<void> {\r\n  if (typeof chunkData === 'string') {\r\n    return loadChunkPath(sourceType, sourceData, chunkData)\r\n  }\r\n\r\n  const includedList = chunkData.included || []\r\n  const modulesPromises = includedList.map((included) => {\r\n    if (moduleFactories.has(included)) return true\r\n    return availableModules.get(included)\r\n  })\r\n  if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\r\n    // When all included items are already loaded or loading, we can skip loading ourselves\r\n    await Promise.all(modulesPromises)\r\n    return\r\n  }\r\n\r\n  const includedModuleChunksList = chunkData.moduleChunks || []\r\n  const moduleChunksPromises = includedModuleChunksList\r\n    .map((included) => {\r\n      // TODO(alexkirsz) Do we need this check?\r\n      // if (moduleFactories[included]) return true;\r\n      return availableModuleChunks.get(included)\r\n    })\r\n    .filter((p) => p)\r\n\r\n  let promise: Promise<unknown>\r\n  if (moduleChunksPromises.length > 0) {\r\n    // Some module chunks are already loaded or loading.\r\n\r\n    if (moduleChunksPromises.length === includedModuleChunksList.length) {\r\n      // When all included module chunks are already loaded or loading, we can skip loading ourselves\r\n      await Promise.all(moduleChunksPromises)\r\n      return\r\n    }\r\n\r\n    const moduleChunksToLoad: Set<ChunkPath> = new Set()\r\n    for (const moduleChunk of includedModuleChunksList) {\r\n      if (!availableModuleChunks.has(moduleChunk)) {\r\n        moduleChunksToLoad.add(moduleChunk)\r\n      }\r\n    }\r\n\r\n    for (const moduleChunkToLoad of moduleChunksToLoad) {\r\n      const promise = loadChunkPath(sourceType, sourceData, moduleChunkToLoad)\r\n\r\n      availableModuleChunks.set(moduleChunkToLoad, promise)\r\n\r\n      moduleChunksPromises.push(promise)\r\n    }\r\n\r\n    promise = Promise.all(moduleChunksPromises)\r\n  } else {\r\n    promise = loadChunkPath(sourceType, sourceData, chunkData.path)\r\n\r\n    // Mark all included module chunks as loading if they are not already loaded or loading.\r\n    for (const includedModuleChunk of includedModuleChunksList) {\r\n      if (!availableModuleChunks.has(includedModuleChunk)) {\r\n        availableModuleChunks.set(includedModuleChunk, promise)\r\n      }\r\n    }\r\n  }\r\n\r\n  for (const included of includedList) {\r\n    if (!availableModules.has(included)) {\r\n      // It might be better to race old and new promises, but it's rare that the new promise will be faster than a request started earlier.\r\n      // In production it's even more rare, because the chunk optimization tries to deduplicate modules anyway.\r\n      availableModules.set(included, promise)\r\n    }\r\n  }\r\n\r\n  await promise\r\n}\r\n\r\nconst loadedChunk = Promise.resolve(undefined)\r\nconst instrumentedBackendLoadChunks = new WeakMap<\r\n  Promise<any>,\r\n  Promise<any> | typeof loadedChunk\r\n>()\r\n// Do not make this async. React relies on referential equality of the returned Promise.\r\nfunction loadChunkByUrl(\r\n  this: TurbopackBrowserBaseContext<Module>,\r\n  chunkUrl: ChunkUrl\r\n) {\r\n  return loadChunkByUrlInternal(SourceType.Parent, this.m.id, chunkUrl)\r\n}\r\nbrowserContextPrototype.L = loadChunkByUrl\r\n\r\n// Do not make this async. React relies on referential equality of the returned Promise.\r\nfunction loadChunkByUrlInternal(\r\n  sourceType: SourceType,\r\n  sourceData: SourceData,\r\n  chunkUrl: ChunkUrl\r\n): Promise<any> {\r\n  const thenable = BACKEND.loadChunkCached(sourceType, chunkUrl)\r\n  let entry = instrumentedBackendLoadChunks.get(thenable)\r\n  if (entry === undefined) {\r\n    const resolve = instrumentedBackendLoadChunks.set.bind(\r\n      instrumentedBackendLoadChunks,\r\n      thenable,\r\n      loadedChunk\r\n    )\r\n    entry = thenable.then(resolve).catch((error) => {\r\n      let loadReason: string\r\n      switch (sourceType) {\r\n        case SourceType.Runtime:\r\n          loadReason = `as a runtime dependency of chunk ${sourceData}`\r\n          break\r\n        case SourceType.Parent:\r\n          loadReason = `from module ${sourceData}`\r\n          break\r\n        case SourceType.Update:\r\n          loadReason = 'from an HMR update'\r\n          break\r\n        default:\r\n          invariant(\r\n            sourceType,\r\n            (sourceType) => `Unknown source type: ${sourceType}`\r\n          )\r\n      }\r\n      throw new Error(\r\n        `Failed to load chunk ${chunkUrl} ${loadReason}${\r\n          error ? `: ${error}` : ''\r\n        }`,\r\n        error\r\n          ? {\r\n              cause: error,\r\n            }\r\n          : undefined\r\n      )\r\n    })\r\n    instrumentedBackendLoadChunks.set(thenable, entry)\r\n  }\r\n\r\n  return entry\r\n}\r\n\r\n// Do not make this async. React relies on referential equality of the returned Promise.\r\nfunction loadChunkPath(\r\n  sourceType: SourceType,\r\n  sourceData: SourceData,\r\n  chunkPath: ChunkPath\r\n): Promise<void> {\r\n  const url = getChunkRelativeUrl(chunkPath)\r\n  return loadChunkByUrlInternal(sourceType, sourceData, url)\r\n}\r\n\r\n/**\r\n * Returns an absolute url to an asset.\r\n */\r\nfunction resolvePathFromModule(\r\n  this: TurbopackBaseContext<Module>,\r\n  moduleId: string\r\n): string {\r\n  const exported = this.r(moduleId)\r\n  return exported?.default ?? exported\r\n}\r\nbrowserContextPrototype.R = resolvePathFromModule\r\n\r\n/**\r\n * no-op for browser\r\n * @param modulePath\r\n */\r\nfunction resolveAbsolutePath(modulePath?: string): string {\r\n  return `/ROOT/${modulePath ?? ''}`\r\n}\r\nbrowserContextPrototype.P = resolveAbsolutePath\r\n\r\n/**\r\n * Returns a blob URL for the worker.\r\n * @param chunks list of chunks to load\r\n */\r\nfunction getWorkerBlobURL(chunks: ChunkPath[]): string {\r\n  // It is important to reverse the array so when bootstrapping we can infer what chunk is being\r\n  // evaluated by poping urls off of this array.  See `getPathFromScript`\r\n  let bootstrap = `self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};\r\nself.TURBOPACK_NEXT_CHUNK_URLS = ${JSON.stringify(chunks.reverse().map(getChunkRelativeUrl), null, 2)};\r\nimportScripts(...self.TURBOPACK_NEXT_CHUNK_URLS.map(c => self.TURBOPACK_WORKER_LOCATION + c).reverse());`\r\n  let blob = new Blob([bootstrap], { type: 'text/javascript' })\r\n  return URL.createObjectURL(blob)\r\n}\r\nbrowserContextPrototype.b = getWorkerBlobURL\r\n\r\n/**\r\n * Instantiates a runtime module.\r\n */\r\nfunction instantiateRuntimeModule(\r\n  moduleId: ModuleId,\r\n  chunkPath: ChunkPath\r\n): Module {\r\n  return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\r\n}\r\n/**\r\n * Returns the URL relative to the origin where a chunk can be fetched from.\r\n */\r\nfunction getChunkRelativeUrl(chunkPath: ChunkPath | ChunkListPath): ChunkUrl {\r\n  return `${CHUNK_BASE_PATH}${chunkPath\r\n    .split('/')\r\n    .map((p) => encodeURIComponent(p))\r\n    .join('/')}${CHUNK_SUFFIX_PATH}` as ChunkUrl\r\n}\r\n\r\n/**\r\n * Return the ChunkPath from a ChunkScript.\r\n */\r\nfunction getPathFromScript(chunkScript: ChunkPath | ChunkScript): ChunkPath\r\nfunction getPathFromScript(\r\n  chunkScript: ChunkListPath | ChunkListScript\r\n): ChunkListPath\r\nfunction getPathFromScript(\r\n  chunkScript: ChunkPath | ChunkListPath | ChunkScript | ChunkListScript\r\n): ChunkPath | ChunkListPath {\r\n  if (typeof chunkScript === 'string') {\r\n    return chunkScript as ChunkPath | ChunkListPath\r\n  }\r\n  const chunkUrl =\r\n    typeof TURBOPACK_NEXT_CHUNK_URLS !== 'undefined'\r\n      ? TURBOPACK_NEXT_CHUNK_URLS.pop()!\r\n      : chunkScript.getAttribute('src')!\r\n  const src = decodeURIComponent(chunkUrl.replace(/[?#].*$/, ''))\r\n  const path = src.startsWith(CHUNK_BASE_PATH)\r\n    ? src.slice(CHUNK_BASE_PATH.length)\r\n    : src\r\n  return path as ChunkPath | ChunkListPath\r\n}\r\n\r\nconst regexJsUrl = /\\.js(?:\\?[^#]*)?(?:#.*)?$/\r\n/**\r\n * Checks if a given path/URL ends with .js, optionally followed by ?query or #fragment.\r\n */\r\nfunction isJs(chunkUrlOrPath: ChunkUrl | ChunkPath): boolean {\r\n  return regexJsUrl.test(chunkUrlOrPath)\r\n}\r\n\r\nconst regexCssUrl = /\\.css(?:\\?[^#]*)?(?:#.*)?$/\r\n/**\r\n * Checks if a given path/URL ends with .css, optionally followed by ?query or #fragment.\r\n */\r\nfunction isCss(chunkUrl: ChunkUrl): boolean {\r\n  return regexCssUrl.test(chunkUrl)\r\n}\r\n\r\nfunction loadWebAssembly(\r\n  this: TurbopackBaseContext<Module>,\r\n  chunkPath: ChunkPath,\r\n  edgeModule: () => WebAssembly.Module,\r\n  importsObj: WebAssembly.Imports\r\n): Promise<Exports> {\r\n  return BACKEND.loadWebAssembly(\r\n    SourceType.Parent,\r\n    this.m.id,\r\n    chunkPath,\r\n    edgeModule,\r\n    importsObj\r\n  )\r\n}\r\ncontextPrototype.w = loadWebAssembly\r\n\r\nfunction loadWebAssemblyModule(\r\n  this: TurbopackBaseContext<Module>,\r\n  chunkPath: ChunkPath,\r\n  edgeModule: () => WebAssembly.Module\r\n): Promise<WebAssembly.Module> {\r\n  return BACKEND.loadWebAssemblyModule(\r\n    SourceType.Parent,\r\n    this.m.id,\r\n    chunkPath,\r\n    edgeModule\r\n  )\r\n}\r\ncontextPrototype.u = loadWebAssemblyModule\r\n"],"names":[],"mappings":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EACpB,UAAoC;IAEpC,OAAO,QAAQ,qBAAqB,IAElC,IAAI,CAAC,CAAC,CAAC,EAAE,EACT,WACA;AAEJ;AACA,iBAAiB,CAAC,GAAG","ignoreList":[0]}},
    {"offset": {"line": 704, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// <reference path=\"./dev-globals.d.ts\" />\r\n/// <reference path=\"./dev-protocol.d.ts\" />\r\n/// <reference path=\"./dev-extensions.ts\" />\r\n\r\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext<HotModule> {\r\n  k: RefreshContext\r\n}\r\n\r\nconst devContextPrototype = Context.prototype as TurbopackDevContext\r\n\r\n/**\r\n * This file contains runtime types and functions that are shared between all\r\n * Turbopack *development* ECMAScript runtimes.\r\n *\r\n * It will be appended to the runtime code of each runtime right after the\r\n * shared runtime utils.\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\nconst devModuleCache: ModuleCache<HotModule> = Object.create(null)\r\ndevContextPrototype.c = devModuleCache\r\n\r\n// This file must not use `import` and `export` statements. Otherwise, it\r\n// becomes impossible to augment interfaces declared in `<reference>`d files\r\n// (e.g. `Module`). Hence, the need for `import()` here.\r\ntype RefreshRuntimeGlobals =\r\n  import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\r\n\r\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\r\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\r\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\r\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\r\n\r\ntype RefreshContext = {\r\n  register: RefreshRuntimeGlobals['$RefreshReg$']\r\n  signature: RefreshRuntimeGlobals['$RefreshSig$']\r\n  registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\r\n}\r\n\r\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\r\n\r\ntype ModuleFactory = (\r\n  this: Module['exports'],\r\n  context: TurbopackDevContext\r\n) => unknown\r\n\r\ninterface DevRuntimeBackend {\r\n  reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\r\n  unloadChunk?: (chunkUrl: ChunkUrl) => void\r\n  restart: () => void\r\n}\r\n\r\nclass UpdateApplyError extends Error {\r\n  name = 'UpdateApplyError'\r\n\r\n  dependencyChain: ModuleId[]\r\n\r\n  constructor(message: string, dependencyChain: ModuleId[]) {\r\n    super(message)\r\n    this.dependencyChain = dependencyChain\r\n  }\r\n}\r\n\r\n/**\r\n * Module IDs that are instantiated as part of the runtime of a chunk.\r\n */\r\nconst runtimeModules: Set<ModuleId> = new Set()\r\n\r\n/**\r\n * Map from module ID to the chunks that contain this module.\r\n *\r\n * In HMR, we need to keep track of which modules are contained in which so\r\n * chunks. This is so we don't eagerly dispose of a module when it is removed\r\n * from chunk A, but still exists in chunk B.\r\n */\r\nconst moduleChunksMap: Map<ModuleId, Set<ChunkPath>> = new Map()\r\n/**\r\n * Map from a chunk path to all modules it contains.\r\n */\r\nconst chunkModulesMap: Map<ChunkPath, Set<ModuleId>> = new Map()\r\n/**\r\n * Chunk lists that contain a runtime. When these chunk lists receive an update\r\n * that can't be reconciled with the current state of the page, we need to\r\n * reload the runtime entirely.\r\n */\r\nconst runtimeChunkLists: Set<ChunkListPath> = new Set()\r\n/**\r\n * Map from a chunk list to the chunk paths it contains.\r\n */\r\nconst chunkListChunksMap: Map<ChunkListPath, Set<ChunkPath>> = new Map()\r\n/**\r\n * Map from a chunk path to the chunk lists it belongs to.\r\n */\r\nconst chunkChunkListsMap: Map<ChunkPath, Set<ChunkListPath>> = new Map()\r\n\r\n/**\r\n * Maps module IDs to persisted data between executions of their hot module\r\n * implementation (`hot.data`).\r\n */\r\nconst moduleHotData: Map<ModuleId, HotData> = new Map()\r\n/**\r\n * Maps module instances to their hot module state.\r\n */\r\nconst moduleHotState: Map<Module, HotState> = new Map()\r\n/**\r\n * Modules that call `module.hot.invalidate()` (while being updated).\r\n */\r\nconst queuedInvalidatedModules: Set<ModuleId> = new Set()\r\n\r\n/**\r\n * Gets or instantiates a runtime module.\r\n */\r\n// @ts-ignore\r\nfunction getOrInstantiateRuntimeModule(\r\n  chunkPath: ChunkPath,\r\n  moduleId: ModuleId\r\n): Module {\r\n  const module = devModuleCache[moduleId]\r\n  if (module) {\r\n    if (module.error) {\r\n      throw module.error\r\n    }\r\n    return module\r\n  }\r\n\r\n  // @ts-ignore\r\n  return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\r\n}\r\n\r\n/**\r\n * Retrieves a module from the cache, or instantiate it if it is not cached.\r\n */\r\n// @ts-ignore Defined in `runtime-utils.ts`\r\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\r\n  HotModule\r\n> = (id, sourceModule) => {\r\n  if (!sourceModule.hot.active) {\r\n    console.warn(\r\n      `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\r\n    )\r\n  }\r\n\r\n  const module = devModuleCache[id]\r\n\r\n  if (sourceModule.children.indexOf(id) === -1) {\r\n    sourceModule.children.push(id)\r\n  }\r\n\r\n  if (module) {\r\n    if (module.error) {\r\n      throw module.error\r\n    }\r\n\r\n    if (module.parents.indexOf(sourceModule.id) === -1) {\r\n      module.parents.push(sourceModule.id)\r\n    }\r\n\r\n    return module\r\n  }\r\n\r\n  return instantiateModule(id, SourceType.Parent, sourceModule.id)\r\n}\r\n\r\nfunction DevContext(\r\n  this: TurbopackDevContext,\r\n  module: HotModule,\r\n  exports: Exports,\r\n  refresh: RefreshContext\r\n) {\r\n  Context.call(this, module, exports)\r\n  this.k = refresh\r\n}\r\nDevContext.prototype = Context.prototype\r\n\r\ntype DevContextConstructor = {\r\n  new (\r\n    module: HotModule,\r\n    exports: Exports,\r\n    refresh: RefreshContext\r\n  ): TurbopackDevContext\r\n}\r\n\r\nfunction instantiateModule(\r\n  moduleId: ModuleId,\r\n  sourceType: SourceType,\r\n  sourceData: SourceData\r\n): Module {\r\n  // We are in development, this is always a string.\r\n  let id = moduleId as string\r\n\r\n  const moduleFactory = moduleFactories.get(id)\r\n  if (typeof moduleFactory !== 'function') {\r\n    // This can happen if modules incorrectly handle HMR disposes/updates,\r\n    // e.g. when they keep a `setTimeout` around which still executes old code\r\n    // and contains e.g. a `require(\"something\")` call.\r\n    factoryNotAvailable(id, sourceType, sourceData)\r\n  }\r\n\r\n  const hotData = moduleHotData.get(id)!\r\n  const { hot, hotState } = createModuleHot(id, hotData)\r\n\r\n  let parents: ModuleId[]\r\n  switch (sourceType) {\r\n    case SourceType.Runtime:\r\n      runtimeModules.add(id)\r\n      parents = []\r\n      break\r\n    case SourceType.Parent:\r\n      // No need to add this module as a child of the parent module here, this\r\n      // has already been taken care of in `getOrInstantiateModuleFromParent`.\r\n      parents = [sourceData as ModuleId]\r\n      break\r\n    case SourceType.Update:\r\n      parents = (sourceData as ModuleId[]) || []\r\n      break\r\n    default:\r\n      invariant(\r\n        sourceType,\r\n        (sourceType) => `Unknown source type: ${sourceType}`\r\n      )\r\n  }\r\n\r\n  const module: HotModule = createModuleObject(id) as HotModule\r\n  const exports = module.exports\r\n  module.parents = parents\r\n  module.children = []\r\n  module.hot = hot\r\n\r\n  devModuleCache[id] = module\r\n  moduleHotState.set(module, hotState)\r\n\r\n  // NOTE(alexkirsz) This can fail when the module encounters a runtime error.\r\n  try {\r\n    runModuleExecutionHooks(module, (refresh) => {\r\n      const context = new (DevContext as any as DevContextConstructor)(\r\n        module,\r\n        exports,\r\n        refresh\r\n      )\r\n      moduleFactory(context, module, exports)\r\n    })\r\n  } catch (error) {\r\n    module.error = error as any\r\n    throw error\r\n  }\r\n\r\n  if (module.namespaceObject && module.exports !== module.namespaceObject) {\r\n    // in case of a circular dependency: cjs1 -> esm2 -> cjs1\r\n    interopEsm(module.exports, module.namespaceObject)\r\n  }\r\n\r\n  return module\r\n}\r\n\r\nconst DUMMY_REFRESH_CONTEXT = {\r\n  register: (_type: unknown, _id: unknown) => {},\r\n  signature: () => (_type: unknown) => {},\r\n  registerExports: (_module: unknown, _helpers: unknown) => {},\r\n}\r\n\r\n/**\r\n * NOTE(alexkirsz) Webpack has a \"module execution\" interception hook that\r\n * Next.js' React Refresh runtime hooks into to add module context to the\r\n * refresh registry.\r\n */\r\nfunction runModuleExecutionHooks(\r\n  module: HotModule,\r\n  executeModule: (ctx: RefreshContext) => void\r\n) {\r\n  if (typeof globalThis.$RefreshInterceptModuleExecution$ === 'function') {\r\n    const cleanupReactRefreshIntercept =\r\n      globalThis.$RefreshInterceptModuleExecution$(module.id)\r\n    try {\r\n      executeModule({\r\n        register: globalThis.$RefreshReg$,\r\n        signature: globalThis.$RefreshSig$,\r\n        registerExports: registerExportsAndSetupBoundaryForReactRefresh,\r\n      })\r\n    } finally {\r\n      // Always cleanup the intercept, even if module execution failed.\r\n      cleanupReactRefreshIntercept()\r\n    }\r\n  } else {\r\n    // If the react refresh hooks are not installed we need to bind dummy functions.\r\n    // This is expected when running in a Web Worker.  It is also common in some of\r\n    // our test environments.\r\n    executeModule(DUMMY_REFRESH_CONTEXT)\r\n  }\r\n}\r\n\r\n/**\r\n * This is adapted from https://github.com/vercel/next.js/blob/3466862d9dc9c8bb3131712134d38757b918d1c0/packages/react-refresh-utils/internal/ReactRefreshModule.runtime.ts\r\n */\r\nfunction registerExportsAndSetupBoundaryForReactRefresh(\r\n  module: HotModule,\r\n  helpers: RefreshHelpers\r\n) {\r\n  const currentExports = module.exports\r\n  const prevExports = module.hot.data.prevExports ?? null\r\n\r\n  helpers.registerExportsForReactRefresh(currentExports, module.id)\r\n\r\n  // A module can be accepted automatically based on its exports, e.g. when\r\n  // it is a Refresh Boundary.\r\n  if (helpers.isReactRefreshBoundary(currentExports)) {\r\n    // Save the previous exports on update, so we can compare the boundary\r\n    // signatures.\r\n    module.hot.dispose((data) => {\r\n      data.prevExports = currentExports\r\n    })\r\n    // Unconditionally accept an update to this module, we'll check if it's\r\n    // still a Refresh Boundary later.\r\n    module.hot.accept()\r\n\r\n    // This field is set when the previous version of this module was a\r\n    // Refresh Boundary, letting us know we need to check for invalidation or\r\n    // enqueue an update.\r\n    if (prevExports !== null) {\r\n      // A boundary can become ineligible if its exports are incompatible\r\n      // with the previous exports.\r\n      //\r\n      // For example, if you add/remove/change exports, we'll want to\r\n      // re-execute the importing modules, and force those components to\r\n      // re-render. Similarly, if you convert a class component to a\r\n      // function, we want to invalidate the boundary.\r\n      if (\r\n        helpers.shouldInvalidateReactRefreshBoundary(\r\n          helpers.getRefreshBoundarySignature(prevExports),\r\n          helpers.getRefreshBoundarySignature(currentExports)\r\n        )\r\n      ) {\r\n        module.hot.invalidate()\r\n      } else {\r\n        helpers.scheduleUpdate()\r\n      }\r\n    }\r\n  } else {\r\n    // Since we just executed the code for the module, it's possible that the\r\n    // new exports made it ineligible for being a boundary.\r\n    // We only care about the case when we were _previously_ a boundary,\r\n    // because we already accepted this update (accidental side effect).\r\n    const isNoLongerABoundary = prevExports !== null\r\n    if (isNoLongerABoundary) {\r\n      module.hot.invalidate()\r\n    }\r\n  }\r\n}\r\n\r\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\r\n  return `Dependency chain: ${dependencyChain.join(' -> ')}`\r\n}\r\n\r\nfunction computeOutdatedModules(\r\n  added: Map<ModuleId, EcmascriptModuleEntry | undefined>,\r\n  modified: Map<ModuleId, EcmascriptModuleEntry>\r\n): {\r\n  outdatedModules: Set<ModuleId>\r\n  newModuleFactories: Map<ModuleId, ModuleFactory>\r\n} {\r\n  const newModuleFactories = new Map<ModuleId, ModuleFactory>()\r\n\r\n  for (const [moduleId, entry] of added) {\r\n    if (entry != null) {\r\n      newModuleFactories.set(moduleId, _eval(entry))\r\n    }\r\n  }\r\n\r\n  const outdatedModules = computedInvalidatedModules(modified.keys())\r\n\r\n  for (const [moduleId, entry] of modified) {\r\n    newModuleFactories.set(moduleId, _eval(entry))\r\n  }\r\n\r\n  return { outdatedModules, newModuleFactories }\r\n}\r\n\r\nfunction computedInvalidatedModules(\r\n  invalidated: Iterable<ModuleId>\r\n): Set<ModuleId> {\r\n  const outdatedModules = new Set<ModuleId>()\r\n\r\n  for (const moduleId of invalidated) {\r\n    const effect = getAffectedModuleEffects(moduleId)\r\n\r\n    switch (effect.type) {\r\n      case 'unaccepted':\r\n        throw new UpdateApplyError(\r\n          `cannot apply update: unaccepted module. ${formatDependencyChain(\r\n            effect.dependencyChain\r\n          )}.`,\r\n          effect.dependencyChain\r\n        )\r\n      case 'self-declined':\r\n        throw new UpdateApplyError(\r\n          `cannot apply update: self-declined module. ${formatDependencyChain(\r\n            effect.dependencyChain\r\n          )}.`,\r\n          effect.dependencyChain\r\n        )\r\n      case 'accepted':\r\n        for (const outdatedModuleId of effect.outdatedModules) {\r\n          outdatedModules.add(outdatedModuleId)\r\n        }\r\n        break\r\n      // TODO(alexkirsz) Dependencies: handle dependencies effects.\r\n      default:\r\n        invariant(effect, (effect) => `Unknown effect type: ${effect?.type}`)\r\n    }\r\n  }\r\n\r\n  return outdatedModules\r\n}\r\n\r\nfunction computeOutdatedSelfAcceptedModules(\r\n  outdatedModules: Iterable<ModuleId>\r\n): { moduleId: ModuleId; errorHandler: true | Function }[] {\r\n  const outdatedSelfAcceptedModules: {\r\n    moduleId: ModuleId\r\n    errorHandler: true | Function\r\n  }[] = []\r\n  for (const moduleId of outdatedModules) {\r\n    const module = devModuleCache[moduleId]\r\n    const hotState = moduleHotState.get(module)!\r\n    if (module && hotState.selfAccepted && !hotState.selfInvalidated) {\r\n      outdatedSelfAcceptedModules.push({\r\n        moduleId,\r\n        errorHandler: hotState.selfAccepted,\r\n      })\r\n    }\r\n  }\r\n  return outdatedSelfAcceptedModules\r\n}\r\n\r\n/**\r\n * Adds, deletes, and moves modules between chunks. This must happen before the\r\n * dispose phase as it needs to know which modules were removed from all chunks,\r\n * which we can only compute *after* taking care of added and moved modules.\r\n */\r\nfunction updateChunksPhase(\r\n  chunksAddedModules: Map<ChunkPath, Set<ModuleId>>,\r\n  chunksDeletedModules: Map<ChunkPath, Set<ModuleId>>\r\n): { disposedModules: Set<ModuleId> } {\r\n  for (const [chunkPath, addedModuleIds] of chunksAddedModules) {\r\n    for (const moduleId of addedModuleIds) {\r\n      addModuleToChunk(moduleId, chunkPath)\r\n    }\r\n  }\r\n\r\n  const disposedModules: Set<ModuleId> = new Set()\r\n  for (const [chunkPath, addedModuleIds] of chunksDeletedModules) {\r\n    for (const moduleId of addedModuleIds) {\r\n      if (removeModuleFromChunk(moduleId, chunkPath)) {\r\n        disposedModules.add(moduleId)\r\n      }\r\n    }\r\n  }\r\n\r\n  return { disposedModules }\r\n}\r\n\r\nfunction disposePhase(\r\n  outdatedModules: Iterable<ModuleId>,\r\n  disposedModules: Iterable<ModuleId>\r\n): { outdatedModuleParents: Map<ModuleId, Array<ModuleId>> } {\r\n  for (const moduleId of outdatedModules) {\r\n    disposeModule(moduleId, 'replace')\r\n  }\r\n\r\n  for (const moduleId of disposedModules) {\r\n    disposeModule(moduleId, 'clear')\r\n  }\r\n\r\n  // Removing modules from the module cache is a separate step.\r\n  // We also want to keep track of previous parents of the outdated modules.\r\n  const outdatedModuleParents = new Map()\r\n  for (const moduleId of outdatedModules) {\r\n    const oldModule = devModuleCache[moduleId]\r\n    outdatedModuleParents.set(moduleId, oldModule?.parents)\r\n    delete devModuleCache[moduleId]\r\n  }\r\n\r\n  // TODO(alexkirsz) Dependencies: remove outdated dependency from module\r\n  // children.\r\n\r\n  return { outdatedModuleParents }\r\n}\r\n\r\n/**\r\n * Disposes of an instance of a module.\r\n *\r\n * Returns the persistent hot data that should be kept for the next module\r\n * instance.\r\n *\r\n * NOTE: mode = \"replace\" will not remove modules from the devModuleCache\r\n * This must be done in a separate step afterwards.\r\n * This is important because all modules need to be disposed to update the\r\n * parent/child relationships before they are actually removed from the devModuleCache.\r\n * If this was done in this method, the following disposeModule calls won't find\r\n * the module from the module id in the cache.\r\n */\r\nfunction disposeModule(moduleId: ModuleId, mode: 'clear' | 'replace') {\r\n  const module = devModuleCache[moduleId]\r\n  if (!module) {\r\n    return\r\n  }\r\n\r\n  const hotState = moduleHotState.get(module)!\r\n  const data = {}\r\n\r\n  // Run the `hot.dispose` handler, if any, passing in the persistent\r\n  // `hot.data` object.\r\n  for (const disposeHandler of hotState.disposeHandlers) {\r\n    disposeHandler(data)\r\n  }\r\n\r\n  // This used to warn in `getOrInstantiateModuleFromParent` when a disposed\r\n  // module is still importing other modules.\r\n  module.hot.active = false\r\n\r\n  moduleHotState.delete(module)\r\n\r\n  // TODO(alexkirsz) Dependencies: delete the module from outdated deps.\r\n\r\n  // Remove the disposed module from its children's parent list.\r\n  // It will be added back once the module re-instantiates and imports its\r\n  // children again.\r\n  for (const childId of module.children) {\r\n    const child = devModuleCache[childId]\r\n    if (!child) {\r\n      continue\r\n    }\r\n\r\n    const idx = child.parents.indexOf(module.id)\r\n    if (idx >= 0) {\r\n      child.parents.splice(idx, 1)\r\n    }\r\n  }\r\n\r\n  switch (mode) {\r\n    case 'clear':\r\n      delete devModuleCache[module.id]\r\n      moduleHotData.delete(module.id)\r\n      break\r\n    case 'replace':\r\n      moduleHotData.set(module.id, data)\r\n      break\r\n    default:\r\n      invariant(mode, (mode) => `invalid mode: ${mode}`)\r\n  }\r\n}\r\n\r\nfunction applyPhase(\r\n  outdatedSelfAcceptedModules: {\r\n    moduleId: ModuleId\r\n    errorHandler: true | Function\r\n  }[],\r\n  newModuleFactories: Map<ModuleId, ModuleFactory>,\r\n  outdatedModuleParents: Map<ModuleId, Array<ModuleId>>,\r\n  reportError: (err: any) => void\r\n) {\r\n  // Update module factories.\r\n  for (const [moduleId, factory] of newModuleFactories.entries()) {\r\n    applyModuleFactoryName(factory)\r\n    moduleFactories.set(moduleId, factory)\r\n  }\r\n\r\n  // TODO(alexkirsz) Run new runtime entries here.\r\n\r\n  // TODO(alexkirsz) Dependencies: call accept handlers for outdated deps.\r\n\r\n  // Re-instantiate all outdated self-accepted modules.\r\n  for (const { moduleId, errorHandler } of outdatedSelfAcceptedModules) {\r\n    try {\r\n      instantiateModule(\r\n        moduleId,\r\n        SourceType.Update,\r\n        outdatedModuleParents.get(moduleId)\r\n      )\r\n    } catch (err) {\r\n      if (typeof errorHandler === 'function') {\r\n        try {\r\n          errorHandler(err, { moduleId, module: devModuleCache[moduleId] })\r\n        } catch (err2) {\r\n          reportError(err2)\r\n          reportError(err)\r\n        }\r\n      } else {\r\n        reportError(err)\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nfunction applyUpdate(update: PartialUpdate) {\r\n  switch (update.type) {\r\n    case 'ChunkListUpdate':\r\n      applyChunkListUpdate(update)\r\n      break\r\n    default:\r\n      invariant(update, (update) => `Unknown update type: ${update.type}`)\r\n  }\r\n}\r\n\r\nfunction applyChunkListUpdate(update: ChunkListUpdate) {\r\n  if (update.merged != null) {\r\n    for (const merged of update.merged) {\r\n      switch (merged.type) {\r\n        case 'EcmascriptMergedUpdate':\r\n          applyEcmascriptMergedUpdate(merged)\r\n          break\r\n        default:\r\n          invariant(merged, (merged) => `Unknown merged type: ${merged.type}`)\r\n      }\r\n    }\r\n  }\r\n\r\n  if (update.chunks != null) {\r\n    for (const [chunkPath, chunkUpdate] of Object.entries(\r\n      update.chunks\r\n    ) as Array<[ChunkPath, ChunkUpdate]>) {\r\n      const chunkUrl = getChunkRelativeUrl(chunkPath)\r\n\r\n      switch (chunkUpdate.type) {\r\n        case 'added':\r\n          BACKEND.loadChunkCached(SourceType.Update, chunkUrl)\r\n          break\r\n        case 'total':\r\n          DEV_BACKEND.reloadChunk?.(chunkUrl)\r\n          break\r\n        case 'deleted':\r\n          DEV_BACKEND.unloadChunk?.(chunkUrl)\r\n          break\r\n        case 'partial':\r\n          invariant(\r\n            chunkUpdate.instruction,\r\n            (instruction) =>\r\n              `Unknown partial instruction: ${JSON.stringify(instruction)}.`\r\n          )\r\n          break\r\n        default:\r\n          invariant(\r\n            chunkUpdate,\r\n            (chunkUpdate) => `Unknown chunk update type: ${chunkUpdate.type}`\r\n          )\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nfunction applyEcmascriptMergedUpdate(update: EcmascriptMergedUpdate) {\r\n  const { entries = {}, chunks = {} } = update\r\n  const { added, modified, chunksAdded, chunksDeleted } = computeChangedModules(\r\n    entries,\r\n    chunks\r\n  )\r\n  const { outdatedModules, newModuleFactories } = computeOutdatedModules(\r\n    added,\r\n    modified\r\n  )\r\n  const { disposedModules } = updateChunksPhase(chunksAdded, chunksDeleted)\r\n\r\n  applyInternal(outdatedModules, disposedModules, newModuleFactories)\r\n}\r\n\r\nfunction applyInvalidatedModules(outdatedModules: Set<ModuleId>) {\r\n  if (queuedInvalidatedModules.size > 0) {\r\n    computedInvalidatedModules(queuedInvalidatedModules).forEach((moduleId) => {\r\n      outdatedModules.add(moduleId)\r\n    })\r\n\r\n    queuedInvalidatedModules.clear()\r\n  }\r\n\r\n  return outdatedModules\r\n}\r\n\r\nfunction applyInternal(\r\n  outdatedModules: Set<ModuleId>,\r\n  disposedModules: Iterable<ModuleId>,\r\n  newModuleFactories: Map<ModuleId, ModuleFactory>\r\n) {\r\n  outdatedModules = applyInvalidatedModules(outdatedModules)\r\n\r\n  const outdatedSelfAcceptedModules =\r\n    computeOutdatedSelfAcceptedModules(outdatedModules)\r\n\r\n  const { outdatedModuleParents } = disposePhase(\r\n    outdatedModules,\r\n    disposedModules\r\n  )\r\n\r\n  // we want to continue on error and only throw the error after we tried applying all updates\r\n  let error: any\r\n\r\n  function reportError(err: any) {\r\n    if (!error) error = err\r\n  }\r\n\r\n  applyPhase(\r\n    outdatedSelfAcceptedModules,\r\n    newModuleFactories,\r\n    outdatedModuleParents,\r\n    reportError\r\n  )\r\n\r\n  if (error) {\r\n    throw error\r\n  }\r\n\r\n  if (queuedInvalidatedModules.size > 0) {\r\n    applyInternal(new Set(), [], new Map())\r\n  }\r\n}\r\n\r\nfunction computeChangedModules(\r\n  entries: Record<ModuleId, EcmascriptModuleEntry>,\r\n  updates: Record<ChunkPath, EcmascriptMergedChunkUpdate>\r\n): {\r\n  added: Map<ModuleId, EcmascriptModuleEntry | undefined>\r\n  modified: Map<ModuleId, EcmascriptModuleEntry>\r\n  deleted: Set<ModuleId>\r\n  chunksAdded: Map<ChunkPath, Set<ModuleId>>\r\n  chunksDeleted: Map<ChunkPath, Set<ModuleId>>\r\n} {\r\n  const chunksAdded = new Map()\r\n  const chunksDeleted = new Map()\r\n  const added: Map<ModuleId, EcmascriptModuleEntry> = new Map()\r\n  const modified = new Map()\r\n  const deleted: Set<ModuleId> = new Set()\r\n\r\n  for (const [chunkPath, mergedChunkUpdate] of Object.entries(updates) as Array<\r\n    [ChunkPath, EcmascriptMergedChunkUpdate]\r\n  >) {\r\n    switch (mergedChunkUpdate.type) {\r\n      case 'added': {\r\n        const updateAdded = new Set(mergedChunkUpdate.modules)\r\n        for (const moduleId of updateAdded) {\r\n          added.set(moduleId, entries[moduleId])\r\n        }\r\n        chunksAdded.set(chunkPath, updateAdded)\r\n        break\r\n      }\r\n      case 'deleted': {\r\n        // We could also use `mergedChunkUpdate.modules` here.\r\n        const updateDeleted = new Set(chunkModulesMap.get(chunkPath))\r\n        for (const moduleId of updateDeleted) {\r\n          deleted.add(moduleId)\r\n        }\r\n        chunksDeleted.set(chunkPath, updateDeleted)\r\n        break\r\n      }\r\n      case 'partial': {\r\n        const updateAdded = new Set(mergedChunkUpdate.added)\r\n        const updateDeleted = new Set(mergedChunkUpdate.deleted)\r\n        for (const moduleId of updateAdded) {\r\n          added.set(moduleId, entries[moduleId])\r\n        }\r\n        for (const moduleId of updateDeleted) {\r\n          deleted.add(moduleId)\r\n        }\r\n        chunksAdded.set(chunkPath, updateAdded)\r\n        chunksDeleted.set(chunkPath, updateDeleted)\r\n        break\r\n      }\r\n      default:\r\n        invariant(\r\n          mergedChunkUpdate,\r\n          (mergedChunkUpdate) =>\r\n            `Unknown merged chunk update type: ${mergedChunkUpdate.type}`\r\n        )\r\n    }\r\n  }\r\n\r\n  // If a module was added from one chunk and deleted from another in the same update,\r\n  // consider it to be modified, as it means the module was moved from one chunk to another\r\n  // AND has new code in a single update.\r\n  for (const moduleId of added.keys()) {\r\n    if (deleted.has(moduleId)) {\r\n      added.delete(moduleId)\r\n      deleted.delete(moduleId)\r\n    }\r\n  }\r\n\r\n  for (const [moduleId, entry] of Object.entries(entries)) {\r\n    // Modules that haven't been added to any chunk but have new code are considered\r\n    // to be modified.\r\n    // This needs to be under the previous loop, as we need it to get rid of modules\r\n    // that were added and deleted in the same update.\r\n    if (!added.has(moduleId)) {\r\n      modified.set(moduleId, entry)\r\n    }\r\n  }\r\n\r\n  return { added, deleted, modified, chunksAdded, chunksDeleted }\r\n}\r\n\r\ntype ModuleEffect =\r\n  | {\r\n      type: 'unaccepted'\r\n      dependencyChain: ModuleId[]\r\n    }\r\n  | {\r\n      type: 'self-declined'\r\n      dependencyChain: ModuleId[]\r\n      moduleId: ModuleId\r\n    }\r\n  | {\r\n      type: 'accepted'\r\n      moduleId: ModuleId\r\n      outdatedModules: Set<ModuleId>\r\n    }\r\n\r\nfunction getAffectedModuleEffects(moduleId: ModuleId): ModuleEffect {\r\n  const outdatedModules: Set<ModuleId> = new Set()\r\n\r\n  type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\r\n\r\n  const queue: QueueItem[] = [\r\n    {\r\n      moduleId,\r\n      dependencyChain: [],\r\n    },\r\n  ]\r\n\r\n  let nextItem\r\n  while ((nextItem = queue.shift())) {\r\n    const { moduleId, dependencyChain } = nextItem\r\n\r\n    if (moduleId != null) {\r\n      if (outdatedModules.has(moduleId)) {\r\n        // Avoid infinite loops caused by cycles between modules in the dependency chain.\r\n        continue\r\n      }\r\n\r\n      outdatedModules.add(moduleId)\r\n    }\r\n\r\n    // We've arrived at the runtime of the chunk, which means that nothing\r\n    // else above can accept this update.\r\n    if (moduleId === undefined) {\r\n      return {\r\n        type: 'unaccepted',\r\n        dependencyChain,\r\n      }\r\n    }\r\n\r\n    const module = devModuleCache[moduleId]\r\n    const hotState = moduleHotState.get(module)!\r\n\r\n    if (\r\n      // The module is not in the cache. Since this is a \"modified\" update,\r\n      // it means that the module was never instantiated before.\r\n      !module || // The module accepted itself without invalidating globalThis.\r\n      // TODO is that right?\r\n      (hotState.selfAccepted && !hotState.selfInvalidated)\r\n    ) {\r\n      continue\r\n    }\r\n\r\n    if (hotState.selfDeclined) {\r\n      return {\r\n        type: 'self-declined',\r\n        dependencyChain,\r\n        moduleId,\r\n      }\r\n    }\r\n\r\n    if (runtimeModules.has(moduleId)) {\r\n      queue.push({\r\n        moduleId: undefined,\r\n        dependencyChain: [...dependencyChain, moduleId],\r\n      })\r\n      continue\r\n    }\r\n\r\n    for (const parentId of module.parents) {\r\n      const parent = devModuleCache[parentId]\r\n\r\n      if (!parent) {\r\n        // TODO(alexkirsz) Is this even possible?\r\n        continue\r\n      }\r\n\r\n      // TODO(alexkirsz) Dependencies: check accepted and declined\r\n      // dependencies here.\r\n\r\n      queue.push({\r\n        moduleId: parentId,\r\n        dependencyChain: [...dependencyChain, moduleId],\r\n      })\r\n    }\r\n  }\r\n\r\n  return {\r\n    type: 'accepted',\r\n    moduleId,\r\n    outdatedModules,\r\n  }\r\n}\r\n\r\nfunction handleApply(chunkListPath: ChunkListPath, update: ServerMessage) {\r\n  switch (update.type) {\r\n    case 'partial': {\r\n      // This indicates that the update is can be applied to the current state of the application.\r\n      applyUpdate(update.instruction)\r\n      break\r\n    }\r\n    case 'restart': {\r\n      // This indicates that there is no way to apply the update to the\r\n      // current state of the application, and that the application must be\r\n      // restarted.\r\n      DEV_BACKEND.restart()\r\n      break\r\n    }\r\n    case 'notFound': {\r\n      // This indicates that the chunk list no longer exists: either the dynamic import which created it was removed,\r\n      // or the page itself was deleted.\r\n      // If it is a dynamic import, we simply discard all modules that the chunk has exclusive access to.\r\n      // If it is a runtime chunk list, we restart the application.\r\n      if (runtimeChunkLists.has(chunkListPath)) {\r\n        DEV_BACKEND.restart()\r\n      } else {\r\n        disposeChunkList(chunkListPath)\r\n      }\r\n      break\r\n    }\r\n    default:\r\n      throw new Error(`Unknown update type: ${update.type}`)\r\n  }\r\n}\r\n\r\nfunction createModuleHot(\r\n  moduleId: ModuleId,\r\n  hotData: HotData\r\n): { hot: Hot; hotState: HotState } {\r\n  const hotState: HotState = {\r\n    selfAccepted: false,\r\n    selfDeclined: false,\r\n    selfInvalidated: false,\r\n    disposeHandlers: [],\r\n  }\r\n\r\n  const hot: Hot = {\r\n    // TODO(alexkirsz) This is not defined in the HMR API. It was used to\r\n    // decide whether to warn whenever an HMR-disposed module required other\r\n    // modules. We might want to remove it.\r\n    active: true,\r\n\r\n    data: hotData ?? {},\r\n\r\n    // TODO(alexkirsz) Support full (dep, callback, errorHandler) form.\r\n    accept: (\r\n      modules?: string | string[] | AcceptErrorHandler,\r\n      _callback?: AcceptCallback,\r\n      _errorHandler?: AcceptErrorHandler\r\n    ) => {\r\n      if (modules === undefined) {\r\n        hotState.selfAccepted = true\r\n      } else if (typeof modules === 'function') {\r\n        hotState.selfAccepted = modules\r\n      } else {\r\n        throw new Error('unsupported `accept` signature')\r\n      }\r\n    },\r\n\r\n    decline: (dep) => {\r\n      if (dep === undefined) {\r\n        hotState.selfDeclined = true\r\n      } else {\r\n        throw new Error('unsupported `decline` signature')\r\n      }\r\n    },\r\n\r\n    dispose: (callback) => {\r\n      hotState.disposeHandlers.push(callback)\r\n    },\r\n\r\n    addDisposeHandler: (callback) => {\r\n      hotState.disposeHandlers.push(callback)\r\n    },\r\n\r\n    removeDisposeHandler: (callback) => {\r\n      const idx = hotState.disposeHandlers.indexOf(callback)\r\n      if (idx >= 0) {\r\n        hotState.disposeHandlers.splice(idx, 1)\r\n      }\r\n    },\r\n\r\n    invalidate: () => {\r\n      hotState.selfInvalidated = true\r\n      queuedInvalidatedModules.add(moduleId)\r\n    },\r\n\r\n    // NOTE(alexkirsz) This is part of the management API, which we don't\r\n    // implement, but the Next.js React Refresh runtime uses this to decide\r\n    // whether to schedule an update.\r\n    status: () => 'idle',\r\n\r\n    // NOTE(alexkirsz) Since we always return \"idle\" for now, these are no-ops.\r\n    addStatusHandler: (_handler) => {},\r\n    removeStatusHandler: (_handler) => {},\r\n\r\n    // NOTE(jridgewell) Check returns the list of updated modules, but we don't\r\n    // want the webpack code paths to ever update (the turbopack paths handle\r\n    // this already).\r\n    check: () => Promise.resolve(null),\r\n  }\r\n\r\n  return { hot, hotState }\r\n}\r\n\r\n/**\r\n * Removes a module from a chunk.\r\n * Returns `true` if there are no remaining chunks including this module.\r\n */\r\nfunction removeModuleFromChunk(\r\n  moduleId: ModuleId,\r\n  chunkPath: ChunkPath\r\n): boolean {\r\n  const moduleChunks = moduleChunksMap.get(moduleId)!\r\n  moduleChunks.delete(chunkPath)\r\n\r\n  const chunkModules = chunkModulesMap.get(chunkPath)!\r\n  chunkModules.delete(moduleId)\r\n\r\n  const noRemainingModules = chunkModules.size === 0\r\n  if (noRemainingModules) {\r\n    chunkModulesMap.delete(chunkPath)\r\n  }\r\n\r\n  const noRemainingChunks = moduleChunks.size === 0\r\n  if (noRemainingChunks) {\r\n    moduleChunksMap.delete(moduleId)\r\n  }\r\n\r\n  return noRemainingChunks\r\n}\r\n\r\n/**\r\n * Disposes of a chunk list and its corresponding exclusive chunks.\r\n */\r\nfunction disposeChunkList(chunkListPath: ChunkListPath): boolean {\r\n  const chunkPaths = chunkListChunksMap.get(chunkListPath)\r\n  if (chunkPaths == null) {\r\n    return false\r\n  }\r\n  chunkListChunksMap.delete(chunkListPath)\r\n\r\n  for (const chunkPath of chunkPaths) {\r\n    const chunkChunkLists = chunkChunkListsMap.get(chunkPath)!\r\n    chunkChunkLists.delete(chunkListPath)\r\n\r\n    if (chunkChunkLists.size === 0) {\r\n      chunkChunkListsMap.delete(chunkPath)\r\n      disposeChunk(chunkPath)\r\n    }\r\n  }\r\n\r\n  // We must also dispose of the chunk list's chunk itself to ensure it may\r\n  // be reloaded properly in the future.\r\n  const chunkListUrl = getChunkRelativeUrl(chunkListPath)\r\n\r\n  DEV_BACKEND.unloadChunk?.(chunkListUrl)\r\n\r\n  return true\r\n}\r\n\r\n/**\r\n * Disposes of a chunk and its corresponding exclusive modules.\r\n *\r\n * @returns Whether the chunk was disposed of.\r\n */\r\nfunction disposeChunk(chunkPath: ChunkPath): boolean {\r\n  const chunkUrl = getChunkRelativeUrl(chunkPath)\r\n  // This should happen whether the chunk has any modules in it or not.\r\n  // For instance, CSS chunks have no modules in them, but they still need to be unloaded.\r\n  DEV_BACKEND.unloadChunk?.(chunkUrl)\r\n\r\n  const chunkModules = chunkModulesMap.get(chunkPath)\r\n  if (chunkModules == null) {\r\n    return false\r\n  }\r\n  chunkModules.delete(chunkPath)\r\n\r\n  for (const moduleId of chunkModules) {\r\n    const moduleChunks = moduleChunksMap.get(moduleId)!\r\n    moduleChunks.delete(chunkPath)\r\n\r\n    const noRemainingChunks = moduleChunks.size === 0\r\n    if (noRemainingChunks) {\r\n      moduleChunksMap.delete(moduleId)\r\n      disposeModule(moduleId, 'clear')\r\n      availableModules.delete(moduleId)\r\n    }\r\n  }\r\n\r\n  return true\r\n}\r\n\r\n/**\r\n * Adds a module to a chunk.\r\n */\r\nfunction addModuleToChunk(moduleId: ModuleId, chunkPath: ChunkPath) {\r\n  let moduleChunks = moduleChunksMap.get(moduleId)\r\n  if (!moduleChunks) {\r\n    moduleChunks = new Set([chunkPath])\r\n    moduleChunksMap.set(moduleId, moduleChunks)\r\n  } else {\r\n    moduleChunks.add(chunkPath)\r\n  }\r\n\r\n  let chunkModules = chunkModulesMap.get(chunkPath)\r\n  if (!chunkModules) {\r\n    chunkModules = new Set([moduleId])\r\n    chunkModulesMap.set(chunkPath, chunkModules)\r\n  } else {\r\n    chunkModules.add(moduleId)\r\n  }\r\n}\r\n\r\n/**\r\n * Marks a chunk list as a runtime chunk list. There can be more than one\r\n * runtime chunk list. For instance, integration tests can have multiple chunk\r\n * groups loaded at runtime, each with its own chunk list.\r\n */\r\nfunction markChunkListAsRuntime(chunkListPath: ChunkListPath) {\r\n  runtimeChunkLists.add(chunkListPath)\r\n}\r\n\r\nfunction registerChunk(registration: ChunkRegistration) {\r\n  const chunkPath = getPathFromScript(registration[0])\r\n  let runtimeParams: RuntimeParams | undefined\r\n  // When bootstrapping we are passed a single runtimeParams object so we can distinguish purely based on length\r\n  if (registration.length === 2) {\r\n    runtimeParams = registration[1] as RuntimeParams\r\n  } else {\r\n    runtimeParams = undefined\r\n    installCompressedModuleFactories(\r\n      registration as CompressedModuleFactories,\r\n      /* offset= */ 1,\r\n      moduleFactories,\r\n      (id: ModuleId) => addModuleToChunk(id, chunkPath)\r\n    )\r\n  }\r\n  return BACKEND.registerChunk(chunkPath, runtimeParams)\r\n}\r\n\r\n/**\r\n * Subscribes to chunk list updates from the update server and applies them.\r\n */\r\nfunction registerChunkList(chunkList: ChunkList) {\r\n  const chunkListScript = chunkList.script\r\n  const chunkListPath = getPathFromScript(chunkListScript)\r\n  // The \"chunk\" is also registered to finish the loading in the backend\r\n  BACKEND.registerChunk(chunkListPath as string as ChunkPath)\r\n  globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS!.push([\r\n    chunkListPath,\r\n    handleApply.bind(null, chunkListPath),\r\n  ])\r\n\r\n  // Adding chunks to chunk lists and vice versa.\r\n  const chunkPaths = new Set(chunkList.chunks.map(getChunkPath))\r\n  chunkListChunksMap.set(chunkListPath, chunkPaths)\r\n  for (const chunkPath of chunkPaths) {\r\n    let chunkChunkLists = chunkChunkListsMap.get(chunkPath)\r\n    if (!chunkChunkLists) {\r\n      chunkChunkLists = new Set([chunkListPath])\r\n      chunkChunkListsMap.set(chunkPath, chunkChunkLists)\r\n    } else {\r\n      chunkChunkLists.add(chunkListPath)\r\n    }\r\n  }\r\n\r\n  if (chunkList.source === 'entry') {\r\n    markChunkListAsRuntime(chunkListPath)\r\n  }\r\n}\r\n\r\nglobalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS ??= []\r\n"],"names":[],"mappings":"AAAA,2CAA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K,GAAG;QAC7B,gBAAgB,YAAY,CAAC,EAAE;IACjC,OAAO;QACL,gBAAgB;QAChB,iCACE,cACA,WAAW,GAAG,GACd,iBACA,CAAC,KAAiB,iBAAiB,IAAI;IAE3C;IACA,OAAO,QAAQ,aAAa,CAAC,WAAW;AAC1C;AAEA;;CAEC,GACD,SAAS,kBAAkB,SAAoB;IAC7C,MAAM,kBAAkB,UAAU,MAAM;IACxC,MAAM,gBAAgB,kBAAkB;IACxC,sEAAsE;IACtE,QAAQ,aAAa,CAAC;IACtB,WAAW,gCAAgC,CAAE,IAAI,CAAC;QAChD;QACA,YAAY,IAAI,CAAC,MAAM;KACxB;IAED,+CAA+C;IAC/C,MAAM,aAAa,IAAI,IAAI,UAAU,MAAM,CAAC,GAAG,CAAC;IAChD,mBAAmB,GAAG,CAAC,eAAe;IACtC,KAAK,MAAM,aAAa,WAAY;QAClC,IAAI,kBAAkB,mBAAmB,GAAG,CAAC;QAC7C,IAAI,CAAC,iBAAiB;YACpB,kBAAkB,IAAI,IAAI;gBAAC;aAAc;YACzC,mBAAmB,GAAG,CAAC,WAAW;QACpC,OAAO;YACL,gBAAgB,GAAG,CAAC;QACtB;IACF;IAEA,IAAI,UAAU,MAAM,KAAK,SAAS;QAChC,uBAAuB;IACzB;AACF;AAEA,WAAW,gCAAgC,KAAK,EAAE","ignoreList":[0]}},
    {"offset": {"line": 1558, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\r\n * This file contains the runtime code specific to the Turbopack development\r\n * ECMAScript DOM runtime.\r\n *\r\n * It will be appended to the base development runtime code.\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\n/// <reference path=\"../../../browser/runtime/base/runtime-base.ts\" />\r\n/// <reference path=\"../../../shared/runtime-types.d.ts\" />\r\n\r\ntype ChunkResolver = {\r\n  resolved: boolean\r\n  loadingStarted: boolean\r\n  resolve: () => void\r\n  reject: (error?: Error) => void\r\n  promise: Promise<any>\r\n}\r\n\r\nlet BACKEND: RuntimeBackend\r\n\r\n/**\r\n * Maps chunk paths to the corresponding resolver.\r\n */\r\nconst chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map()\r\n\r\n;(() => {\r\n  BACKEND = {\r\n    async registerChunk(chunkPath, params) {\r\n      const chunkUrl = getChunkRelativeUrl(chunkPath)\r\n\r\n      const resolver = getOrCreateResolver(chunkUrl)\r\n      resolver.resolve()\r\n\r\n      if (params == null) {\r\n        return\r\n      }\r\n\r\n      for (const otherChunkData of params.otherChunks) {\r\n        const otherChunkPath = getChunkPath(otherChunkData)\r\n        const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\r\n\r\n        // Chunk might have started loading, so we want to avoid triggering another load.\r\n        getOrCreateResolver(otherChunkUrl)\r\n      }\r\n\r\n      // This waits for chunks to be loaded, but also marks included items as available.\r\n      await Promise.all(\r\n        params.otherChunks.map((otherChunkData) =>\r\n          loadInitialChunk(chunkPath, otherChunkData)\r\n        )\r\n      )\r\n\r\n      if (params.runtimeModuleIds.length > 0) {\r\n        for (const moduleId of params.runtimeModuleIds) {\r\n          getOrInstantiateRuntimeModule(chunkPath, moduleId)\r\n        }\r\n      }\r\n    },\r\n\r\n    /**\r\n     * Loads the given chunk, and returns a promise that resolves once the chunk\r\n     * has been loaded.\r\n     */\r\n    loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\r\n      return doLoadChunk(sourceType, chunkUrl)\r\n    },\r\n\r\n    async loadWebAssembly(\r\n      _sourceType: SourceType,\r\n      _sourceData: SourceData,\r\n      wasmChunkPath: ChunkPath,\r\n      _edgeModule: () => WebAssembly.Module,\r\n      importsObj: WebAssembly.Imports\r\n    ): Promise<Exports> {\r\n      const req = fetchWebAssembly(wasmChunkPath)\r\n\r\n      const { instance } = await WebAssembly.instantiateStreaming(\r\n        req,\r\n        importsObj\r\n      )\r\n\r\n      return instance.exports\r\n    },\r\n\r\n    async loadWebAssemblyModule(\r\n      _sourceType: SourceType,\r\n      _sourceData: SourceData,\r\n      wasmChunkPath: ChunkPath,\r\n      _edgeModule: () => WebAssembly.Module\r\n    ): Promise<WebAssembly.Module> {\r\n      const req = fetchWebAssembly(wasmChunkPath)\r\n\r\n      return await WebAssembly.compileStreaming(req)\r\n    },\r\n  }\r\n\r\n  function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\r\n    let resolver = chunkResolvers.get(chunkUrl)\r\n    if (!resolver) {\r\n      let resolve: () => void\r\n      let reject: (error?: Error) => void\r\n      const promise = new Promise<void>((innerResolve, innerReject) => {\r\n        resolve = innerResolve\r\n        reject = innerReject\r\n      })\r\n      resolver = {\r\n        resolved: false,\r\n        loadingStarted: false,\r\n        promise,\r\n        resolve: () => {\r\n          resolver!.resolved = true\r\n          resolve()\r\n        },\r\n        reject: reject!,\r\n      }\r\n      chunkResolvers.set(chunkUrl, resolver)\r\n    }\r\n    return resolver\r\n  }\r\n\r\n  /**\r\n   * Loads the given chunk, and returns a promise that resolves once the chunk\r\n   * has been loaded.\r\n   */\r\n  function doLoadChunk(sourceType: SourceType, chunkUrl: ChunkUrl) {\r\n    const resolver = getOrCreateResolver(chunkUrl)\r\n    if (resolver.loadingStarted) {\r\n      return resolver.promise\r\n    }\r\n\r\n    if (sourceType === SourceType.Runtime) {\r\n      // We don't need to load chunks references from runtime code, as they're already\r\n      // present in the DOM.\r\n      resolver.loadingStarted = true\r\n\r\n      if (isCss(chunkUrl)) {\r\n        // CSS chunks do not register themselves, and as such must be marked as\r\n        // loaded instantly.\r\n        resolver.resolve()\r\n      }\r\n\r\n      // We need to wait for JS chunks to register themselves within `registerChunk`\r\n      // before we can start instantiating runtime modules, hence the absence of\r\n      // `resolver.resolve()` in this branch.\r\n\r\n      return resolver.promise\r\n    }\r\n\r\n    if (typeof importScripts === 'function') {\r\n      // We're in a web worker\r\n      if (isCss(chunkUrl)) {\r\n        // ignore\r\n      } else if (isJs(chunkUrl)) {\r\n        self.TURBOPACK_NEXT_CHUNK_URLS!.push(chunkUrl)\r\n        importScripts(TURBOPACK_WORKER_LOCATION + chunkUrl)\r\n      } else {\r\n        throw new Error(\r\n          `can't infer type of chunk from URL ${chunkUrl} in worker`\r\n        )\r\n      }\r\n    } else {\r\n      // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\r\n      const decodedChunkUrl = decodeURI(chunkUrl)\r\n\r\n      if (isCss(chunkUrl)) {\r\n        const previousLinks = document.querySelectorAll(\r\n          `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\r\n        )\r\n        if (previousLinks.length > 0) {\r\n          // CSS chunks do not register themselves, and as such must be marked as\r\n          // loaded instantly.\r\n          resolver.resolve()\r\n        } else {\r\n          const link = document.createElement('link')\r\n          link.rel = 'stylesheet'\r\n          link.href = chunkUrl\r\n          link.onerror = () => {\r\n            resolver.reject()\r\n          }\r\n          link.onload = () => {\r\n            // CSS chunks do not register themselves, and as such must be marked as\r\n            // loaded instantly.\r\n            resolver.resolve()\r\n          }\r\n          // Append to the `head` for webpack compatibility.\r\n          document.head.appendChild(link)\r\n        }\r\n      } else if (isJs(chunkUrl)) {\r\n        const previousScripts = document.querySelectorAll(\r\n          `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\r\n        )\r\n        if (previousScripts.length > 0) {\r\n          // There is this edge where the script already failed loading, but we\r\n          // can't detect that. The Promise will never resolve in this case.\r\n          for (const script of Array.from(previousScripts)) {\r\n            script.addEventListener('error', () => {\r\n              resolver.reject()\r\n            })\r\n          }\r\n        } else {\r\n          const script = document.createElement('script')\r\n          script.src = chunkUrl\r\n          // We'll only mark the chunk as loaded once the script has been executed,\r\n          // which happens in `registerChunk`. Hence the absence of `resolve()` in\r\n          // this branch.\r\n          script.onerror = () => {\r\n            resolver.reject()\r\n          }\r\n          // Append to the `head` for webpack compatibility.\r\n          document.head.appendChild(script)\r\n        }\r\n      } else {\r\n        throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\r\n      }\r\n    }\r\n\r\n    resolver.loadingStarted = true\r\n    return resolver.promise\r\n  }\r\n\r\n  function fetchWebAssembly(wasmChunkPath: ChunkPath) {\r\n    return fetch(getChunkRelativeUrl(wasmChunkPath))\r\n  }\r\n})()\r\n"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,sEAAsE;AACtE,2DAA2D;AAU3D,IAAI;AAEJ;;CAEC,GACD,MAAM,iBAA+C,IAAI;AAExD,CAAC;IACA,UAAU;QACR,MAAM,eAAc,SAAS,EAAE,MAAM;YACnC,MAAM,WAAW,oBAAoB;YAErC,MAAM,WAAW,oBAAoB;YACrC,SAAS,OAAO;YAEhB,IAAI,UAAU,MAAM;gBAClB;YACF;YAEA,KAAK,MAAM,kBAAkB,OAAO,WAAW,CAAE;gBAC/C,MAAM,iBAAiB,aAAa;gBACpC,MAAM,gBAAgB,oBAAoB;gBAE1C,iFAAiF;gBACjF,oBAAoB;YACtB;YAEA,kFAAkF;YAClF,MAAM,QAAQ,GAAG,CACf,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,iBACtB,iBAAiB,WAAW;YAIhC,IAAI,OAAO,gBAAgB,CAAC,MAAM,GAAG,GAAG;gBACtC,KAAK,MAAM,YAAY,OAAO,gBAAgB,CAAE;oBAC9C,8BAA8B,WAAW;gBAC3C;YACF;QACF;QAEA;;;KAGC,GACD,iBAAgB,UAAsB,EAAE,QAAkB;YACxD,OAAO,YAAY,YAAY;QACjC;QAEA,MAAM,iBACJ,WAAuB,EACvB,WAAuB,EACvB,aAAwB,EACxB,WAAqC,EACrC,UAA+B;YAE/B,MAAM,MAAM,iBAAiB;YAE7B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,YAAY,oBAAoB,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c,GAAG;QAC1B,OAAO,SAAS,OAAO;IACzB;IAEA,SAAS,iBAAiB,aAAwB;QAChD,OAAO,MAAM,oBAAoB;IACnC;AACF,CAAC","ignoreList":[0]}},
    {"offset": {"line": 1720, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\r\n * This file contains the runtime code specific to the Turbopack development\r\n * ECMAScript DOM runtime.\r\n *\r\n * It will be appended to the base development runtime code.\r\n */\r\n\r\n/* eslint-disable @typescript-eslint/no-unused-vars */\r\n\r\n/// <reference path=\"../base/runtime-base.ts\" />\r\n/// <reference path=\"../base/dev-base.ts\" />\r\n/// <reference path=\"./runtime-backend-dom.ts\" />\r\n/// <reference path=\"../../../shared/require-type.d.ts\" />\r\n\r\nlet DEV_BACKEND: DevRuntimeBackend\r\n;(() => {\r\n  DEV_BACKEND = {\r\n    unloadChunk(chunkUrl) {\r\n      deleteResolver(chunkUrl)\r\n\r\n      // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\r\n      const decodedChunkUrl = decodeURI(chunkUrl)\r\n\r\n      if (isCss(chunkUrl)) {\r\n        const links = document.querySelectorAll(\r\n          `link[href=\"${chunkUrl}\"],link[href^=\"${chunkUrl}?\"],link[href=\"${decodedChunkUrl}\"],link[href^=\"${decodedChunkUrl}?\"]`\r\n        )\r\n        for (const link of Array.from(links)) {\r\n          link.remove()\r\n        }\r\n      } else if (isJs(chunkUrl)) {\r\n        // Unloading a JS chunk would have no effect, as it lives in the JS\r\n        // runtime once evaluated.\r\n        // However, we still want to remove the script tag from the DOM to keep\r\n        // the HTML somewhat consistent from the user's perspective.\r\n        const scripts = document.querySelectorAll(\r\n          `script[src=\"${chunkUrl}\"],script[src^=\"${chunkUrl}?\"],script[src=\"${decodedChunkUrl}\"],script[src^=\"${decodedChunkUrl}?\"]`\r\n        )\r\n        for (const script of Array.from(scripts)) {\r\n          script.remove()\r\n        }\r\n      } else {\r\n        throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\r\n      }\r\n    },\r\n\r\n    reloadChunk(chunkUrl) {\r\n      return new Promise<void>((resolve, reject) => {\r\n        if (!isCss(chunkUrl)) {\r\n          reject(new Error('The DOM backend can only reload CSS chunks'))\r\n          return\r\n        }\r\n\r\n        const decodedChunkUrl = decodeURI(chunkUrl)\r\n        const previousLinks = document.querySelectorAll(\r\n          `link[rel=stylesheet][href=\"${chunkUrl}\"],link[rel=stylesheet][href^=\"${chunkUrl}?\"],link[rel=stylesheet][href=\"${decodedChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedChunkUrl}?\"]`\r\n        )\r\n\r\n        if (previousLinks.length === 0) {\r\n          reject(new Error(`No link element found for chunk ${chunkUrl}`))\r\n          return\r\n        }\r\n\r\n        const link = document.createElement('link')\r\n        link.rel = 'stylesheet'\r\n\r\n        if (navigator.userAgent.includes('Firefox')) {\r\n          // Firefox won't reload CSS files that were previously loaded on the current page,\r\n          // we need to add a query param to make sure CSS is actually reloaded from the server.\r\n          //\r\n          // I believe this is this issue: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\r\n          //\r\n          // Safari has a similar issue, but only if you have a `<link rel=preload ... />` tag\r\n          // pointing to the same URL as the stylesheet: https://bugs.webkit.org/show_bug.cgi?id=187726\r\n          link.href = `${chunkUrl}?ts=${Date.now()}`\r\n        } else {\r\n          link.href = chunkUrl\r\n        }\r\n\r\n        link.onerror = () => {\r\n          reject()\r\n        }\r\n        link.onload = () => {\r\n          // First load the new CSS, then remove the old ones. This prevents visible\r\n          // flickering that would happen in-between removing the previous CSS and\r\n          // loading the new one.\r\n          for (const previousLink of Array.from(previousLinks))\r\n            previousLink.remove()\r\n\r\n          // CSS chunks do not register themselves, and as such must be marked as\r\n          // loaded instantly.\r\n          resolve()\r\n        }\r\n\r\n        // Make sure to insert the new CSS right after the previous one, so that\r\n        // its precedence is higher.\r\n        previousLinks[0].parentElement!.insertBefore(\r\n          link,\r\n          previousLinks[0].nextSibling\r\n        )\r\n      })\r\n    },\r\n\r\n    restart: () => self.location.reload(),\r\n  }\r\n\r\n  function deleteResolver(chunkUrl: ChunkUrl) {\r\n    chunkResolvers.delete(chunkUrl)\r\n  }\r\n})()\r\n\r\nfunction _eval({ code, url, map }: EcmascriptModuleEntry): ModuleFactory {\r\n  code += `\\n\\n//# sourceURL=${encodeURI(\r\n    location.origin + CHUNK_BASE_PATH + url + CHUNK_SUFFIX_PATH\r\n  )}`\r\n  if (map) {\r\n    code += `\\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,${btoa(\r\n      // btoa doesn't handle nonlatin characters, so escape them as \\x sequences\r\n      // See https://stackoverflow.com/a/26603875\r\n      unescape(encodeURIComponent(map))\r\n    )}`\r\n  }\r\n\r\n  // eslint-disable-next-line no-eval\r\n  return eval(code)\r\n}\r\n"],"names":[],"mappings":"AAAA;;;;;CAKC,GAED,oDAAoD,GAEpD,gDAAgD;AAChD,4CAA4C;AAC5C,iDAAiD;AACjD,0DAA0D;AAE1D,IAAI;AACH,CAAC;IACA,cAAc;QACZ,aAAY,QAAQ;YAClB,eAAe;YAEf,gFAAgF;YAChF,MAAM,kBAAkB,UAAU;YAElC,IAAI,MAAM,WAAW;gBACnB,MAAM,QAAQ,SAAS,gBAAgB,CACrC,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,SAAS,eAAe,EAAE,gBAAgB,eAAe,EAAE,gBAAgB,GAAG,CAAC;gBAEzH,KAAK,MAAM,QAAQ,MAAM,IAAI,CAAC,OAAQ;oBACpC,KAAK,MAAM;gBACb;YACF,OAAO,IAAI,KAAK,WAAW;gBACzB,mEAAmE;gBACnE,0BAA0B;gBAC1B,uEAAuE;gBACvE,4DAA4D;gBAC5D,MAAM,UAAU,SAAS,gBAAgB,CACvC,CAAC,YAAY,EAAE,SAAS,gBAAgB,EAAE,SAAS,gBAAgB,EAAE,gBAAgB,gBAAgB,EAAE,gBAAgB,GAAG,CAAC;gBAE7H,KAAK,MAAM,UAAU,MAAM,IA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