{"version":3,"file":"use-cache-probe-worker-turbo.runtime.dev.js","sources":["webpack://next/./dist/compiled/@edge-runtime/cookies/index.js","webpack://next/./dist/compiled/cookie/index.js","webpack://next/./dist/compiled/p-queue/index.js","webpack://next/./dist/compiled/react-dom/cjs/react-dom.react-server.development.js","webpack://next/./dist/compiled/react-dom/react-dom.react-server.js","webpack://next/./dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-server.node.development.js","webpack://next/./dist/compiled/react-server-dom-turbopack/server.node.js","webpack://next/./dist/compiled/react/cjs/react.react-server.development.js","webpack://next/./dist/compiled/react/react.react-server.js","webpack://next/./src/server/node-environment-baseline.ts","webpack://next/./src/shared/lib/modern-browserslist-target.js","webpack://next/webpack/runtime/compat_get_default_export","webpack://next/webpack/runtime/define_property_getters","webpack://next/webpack/runtime/has_own_property","webpack://next/webpack/runtime/make_namespace_object","webpack://next/./src/server/node-environment-extensions/web-crypto.tsx","webpack://next/./src/server/patch-error-inspect.ts","webpack://next/./src/server/require-hook.ts","webpack://next/./src/server/app-render/staged-rendering.ts","webpack://next/./src/server/node-environment-extensions/date.tsx","webpack://next/./src/server/lib/trace/constants.ts","webpack://next/./src/lib/picocolors.ts","webpack://next/./src/server/lib/lru-cache.ts","webpack://next/./src/server/lib/source-maps.ts","webpack://next/./src/server/lib/parse-stack.ts","webpack://next/./src/server/node-environment-extensions/error-inspect.tsx","webpack://next/./src/server/dev/browser-logs/file-logger.ts","webpack://next/./src/client/lib/console.ts","webpack://next/./src/server/node-environment-extensions/console-file.tsx","webpack://next/./src/server/node-environment-extensions/console-exit.tsx","webpack://next/./src/shared/lib/invariant-error.ts","webpack://next/./src/server/dynamic-rendering-utils.ts","webpack://next/./src/server/app-render/dynamic-rendering.ts","webpack://next/./src/server/app-render/sync-io-messages.ts","webpack://next/./src/server/node-environment-extensions/io-utils.tsx","webpack://next/./src/server/node-environment-extensions/random.tsx","webpack://next/./src/server/node-environment-extensions/node-crypto.tsx","webpack://next/./src/server/use-cache/handlers.ts","webpack://next/./src/server/revalidation-utils.ts","webpack://next/./src/server/app-render/async-local-storage.ts","webpack://next/./src/server/after/after-context.ts","webpack://next/./src/shared/lib/is-thenable.ts","webpack://next/./src/lib/scheduler.ts","webpack://next/./src/shared/lib/constants.ts","webpack://next/./src/shared/lib/i18n/normalize-locale-path.ts","webpack://next/./src/shared/lib/page-path/ensure-leading-slash.ts","webpack://next/./src/shared/lib/router/utils/app-paths.ts","webpack://next/./src/shared/lib/segment.ts","webpack://next/./src/shared/lib/router/utils/interception-routes.ts","webpack://next/./src/shared/lib/router/utils/is-dynamic.ts","webpack://next/./src/shared/lib/utils.ts","webpack://next/./src/shared/lib/page-path/normalize-page-path.ts","webpack://next/./src/shared/lib/page-path/normalize-path-sep.ts","webpack://next/./src/server/require.ts","webpack://next/./src/shared/lib/page-path/denormalize-page-path.ts","webpack://next/./src/lib/interop-default.ts","webpack://next/./src/lib/wait.ts","webpack://next/./src/shared/lib/utils/reflect-utils.ts","webpack://next/./src/server/app-render/manifests-singleton.ts","webpack://next/./src/lib/metadata/is-metadata-route.ts","webpack://next/./src/server/load-components.ts","webpack://next/./src/lib/is-app-route-route.ts","webpack://next/./src/shared/lib/server-reference-info.ts","webpack://next/./src/shared/lib/router/utils/path-has-prefix.ts","webpack://next/./src/shared/lib/router/utils/parse-path.ts","webpack://next/./src/server/web/spec-extension/adapters/reflect.ts","webpack://next/./src/server/web/spec-extension/adapters/headers.ts","webpack://next/./src/server/web/spec-extension/adapters/request-cookies.ts","webpack://next/./src/shared/lib/action-revalidation-kind.ts","webpack://next/./src/lib/constants.ts","webpack://next/./src/server/api-utils/index.ts","webpack://next/./src/server/async-storage/draft-mode-provider.ts","webpack://next/./src/server/async-storage/request-store.ts","webpack://next/./src/client/components/app-router-headers.ts","webpack://next/./src/server/web/utils.ts","webpack://next/./src/server/dev/use-cache-probe-worker.ts","webpack://next/./src/server/setup-http-agent-env.ts"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\n__export(src_exports, {\n  RequestCookies: () => RequestCookies,\n  ResponseCookies: () => ResponseCookies,\n  parseCookie: () => parseCookie,\n  parseSetCookie: () => parseSetCookie,\n  stringifyCookie: () => stringifyCookie\n});\nmodule.exports = __toCommonJS(src_exports);\n\n// src/serialize.ts\nfunction stringifyCookie(c) {\n  var _a;\n  const attrs = [\n    \"path\" in c && c.path && `Path=${c.path}`,\n    \"expires\" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === \"number\" ? new Date(c.expires) : c.expires).toUTCString()}`,\n    \"maxAge\" in c && typeof c.maxAge === \"number\" && `Max-Age=${c.maxAge}`,\n    \"domain\" in c && c.domain && `Domain=${c.domain}`,\n    \"secure\" in c && c.secure && \"Secure\",\n    \"httpOnly\" in c && c.httpOnly && \"HttpOnly\",\n    \"sameSite\" in c && c.sameSite && `SameSite=${c.sameSite}`,\n    \"partitioned\" in c && c.partitioned && \"Partitioned\",\n    \"priority\" in c && c.priority && `Priority=${c.priority}`\n  ].filter(Boolean);\n  const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : \"\")}`;\n  return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join(\"; \")}`;\n}\nfunction parseCookie(cookie) {\n  const map = /* @__PURE__ */ new Map();\n  for (const pair of cookie.split(/; */)) {\n    if (!pair)\n      continue;\n    const splitAt = pair.indexOf(\"=\");\n    if (splitAt === -1) {\n      map.set(pair, \"true\");\n      continue;\n    }\n    const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];\n    try {\n      map.set(key, decodeURIComponent(value != null ? value : \"true\"));\n    } catch {\n    }\n  }\n  return map;\n}\nfunction parseSetCookie(setCookie) {\n  if (!setCookie) {\n    return void 0;\n  }\n  const [[name, value], ...attributes] = parseCookie(setCookie);\n  const {\n    domain,\n    expires,\n    httponly,\n    maxage,\n    path,\n    samesite,\n    secure,\n    partitioned,\n    priority\n  } = Object.fromEntries(\n    attributes.map(([key, value2]) => [\n      key.toLowerCase().replace(/-/g, \"\"),\n      value2\n    ])\n  );\n  const cookie = {\n    name,\n    value: decodeURIComponent(value),\n    domain,\n    ...expires && { expires: new Date(expires) },\n    ...httponly && { httpOnly: true },\n    ...typeof maxage === \"string\" && { maxAge: Number(maxage) },\n    path,\n    ...samesite && { sameSite: parseSameSite(samesite) },\n    ...secure && { secure: true },\n    ...priority && { priority: parsePriority(priority) },\n    ...partitioned && { partitioned: true }\n  };\n  return compact(cookie);\n}\nfunction compact(t) {\n  const newT = {};\n  for (const key in t) {\n    if (t[key]) {\n      newT[key] = t[key];\n    }\n  }\n  return newT;\n}\nvar SAME_SITE = [\"strict\", \"lax\", \"none\"];\nfunction parseSameSite(string) {\n  string = string.toLowerCase();\n  return SAME_SITE.includes(string) ? string : void 0;\n}\nvar PRIORITY = [\"low\", \"medium\", \"high\"];\nfunction parsePriority(string) {\n  string = string.toLowerCase();\n  return PRIORITY.includes(string) ? string : void 0;\n}\nfunction splitCookiesString(cookiesString) {\n  if (!cookiesString)\n    return [];\n  var cookiesStrings = [];\n  var pos = 0;\n  var start;\n  var ch;\n  var lastComma;\n  var nextStart;\n  var cookiesSeparatorFound;\n  function skipWhitespace() {\n    while (pos < cookiesString.length && /\\s/.test(cookiesString.charAt(pos))) {\n      pos += 1;\n    }\n    return pos < cookiesString.length;\n  }\n  function notSpecialChar() {\n    ch = cookiesString.charAt(pos);\n    return ch !== \"=\" && ch !== \";\" && ch !== \",\";\n  }\n  while (pos < cookiesString.length) {\n    start = pos;\n    cookiesSeparatorFound = false;\n    while (skipWhitespace()) {\n      ch = cookiesString.charAt(pos);\n      if (ch === \",\") {\n        lastComma = pos;\n        pos += 1;\n        skipWhitespace();\n        nextStart = pos;\n        while (pos < cookiesString.length && notSpecialChar()) {\n          pos += 1;\n        }\n        if (pos < cookiesString.length && cookiesString.charAt(pos) === \"=\") {\n          cookiesSeparatorFound = true;\n          pos = nextStart;\n          cookiesStrings.push(cookiesString.substring(start, lastComma));\n          start = pos;\n        } else {\n          pos = lastComma + 1;\n        }\n      } else {\n        pos += 1;\n      }\n    }\n    if (!cookiesSeparatorFound || pos >= cookiesString.length) {\n      cookiesStrings.push(cookiesString.substring(start, cookiesString.length));\n    }\n  }\n  return cookiesStrings;\n}\n\n// src/request-cookies.ts\nvar RequestCookies = class {\n  constructor(requestHeaders) {\n    /** @internal */\n    this._parsed = /* @__PURE__ */ new Map();\n    this._headers = requestHeaders;\n    const header = requestHeaders.get(\"cookie\");\n    if (header) {\n      const parsed = parseCookie(header);\n      for (const [name, value] of parsed) {\n        this._parsed.set(name, { name, value });\n      }\n    }\n  }\n  [Symbol.iterator]() {\n    return this._parsed[Symbol.iterator]();\n  }\n  /**\n   * The amount of cookies received from the client\n   */\n  get size() {\n    return this._parsed.size;\n  }\n  get(...args) {\n    const name = typeof args[0] === \"string\" ? args[0] : args[0].name;\n    return this._parsed.get(name);\n  }\n  getAll(...args) {\n    var _a;\n    const all = Array.from(this._parsed);\n    if (!args.length) {\n      return all.map(([_, value]) => value);\n    }\n    const name = typeof args[0] === \"string\" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;\n    return all.filter(([n]) => n === name).map(([_, value]) => value);\n  }\n  has(name) {\n    return this._parsed.has(name);\n  }\n  set(...args) {\n    const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;\n    const map = this._parsed;\n    map.set(name, { name, value });\n    this._headers.set(\n      \"cookie\",\n      Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join(\"; \")\n    );\n    return this;\n  }\n  /**\n   * Delete the cookies matching the passed name or names in the request.\n   */\n  delete(names) {\n    const map = this._parsed;\n    const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));\n    this._headers.set(\n      \"cookie\",\n      Array.from(map).map(([_, value]) => stringifyCookie(value)).join(\"; \")\n    );\n    return result;\n  }\n  /**\n   * Delete all the cookies in the cookies in the request.\n   */\n  clear() {\n    this.delete(Array.from(this._parsed.keys()));\n    return this;\n  }\n  /**\n   * Format the cookies in the request as a string for logging\n   */\n  [Symbol.for(\"edge-runtime.inspect.custom\")]() {\n    return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;\n  }\n  toString() {\n    return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join(\"; \");\n  }\n};\n\n// src/response-cookies.ts\nvar ResponseCookies = class {\n  constructor(responseHeaders) {\n    /** @internal */\n    this._parsed = /* @__PURE__ */ new Map();\n    var _a, _b, _c;\n    this._headers = responseHeaders;\n    const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get(\"set-cookie\")) != null ? _c : [];\n    const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);\n    for (const cookieString of cookieStrings) {\n      const parsed = parseSetCookie(cookieString);\n      if (parsed)\n        this._parsed.set(parsed.name, parsed);\n    }\n  }\n  /**\n   * {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.\n   */\n  get(...args) {\n    const key = typeof args[0] === \"string\" ? args[0] : args[0].name;\n    return this._parsed.get(key);\n  }\n  /**\n   * {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.\n   */\n  getAll(...args) {\n    var _a;\n    const all = Array.from(this._parsed.values());\n    if (!args.length) {\n      return all;\n    }\n    const key = typeof args[0] === \"string\" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;\n    return all.filter((c) => c.name === key);\n  }\n  has(name) {\n    return this._parsed.has(name);\n  }\n  /**\n   * {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.\n   */\n  set(...args) {\n    const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;\n    const map = this._parsed;\n    map.set(name, normalizeCookie({ name, value, ...cookie }));\n    replace(map, this._headers);\n    return this;\n  }\n  /**\n   * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.\n   */\n  delete(...args) {\n    const [name, options] = typeof args[0] === \"string\" ? [args[0]] : [args[0].name, args[0]];\n    return this.set({ ...options, name, value: \"\", expires: /* @__PURE__ */ new Date(0) });\n  }\n  [Symbol.for(\"edge-runtime.inspect.custom\")]() {\n    return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;\n  }\n  toString() {\n    return [...this._parsed.values()].map(stringifyCookie).join(\"; \");\n  }\n};\nfunction replace(bag, headers) {\n  headers.delete(\"set-cookie\");\n  for (const [, value] of bag) {\n    const serialized = stringifyCookie(value);\n    headers.append(\"set-cookie\", serialized);\n  }\n}\nfunction normalizeCookie(cookie = { name: \"\", value: \"\" }) {\n  if (typeof cookie.expires === \"number\") {\n    cookie.expires = new Date(cookie.expires);\n  }\n  if (cookie.maxAge) {\n    cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);\n  }\n  if (cookie.path === null || cookie.path === void 0) {\n    cookie.path = \"/\";\n  }\n  return cookie;\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  RequestCookies,\n  ResponseCookies,\n  parseCookie,\n  parseSetCookie,\n  stringifyCookie\n});\n","(()=>{\"use strict\";if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var e={};(()=>{var r=e;\n/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */r.parse=parse;r.serialize=serialize;var i=decodeURIComponent;var t=encodeURIComponent;var a=/; */;var n=/^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;function parse(e,r){if(typeof e!==\"string\"){throw new TypeError(\"argument str must be a string\")}var t={};var n=r||{};var o=e.split(a);var s=n.decode||i;for(var p=0;p<o.length;p++){var f=o[p];var u=f.indexOf(\"=\");if(u<0){continue}var v=f.substr(0,u).trim();var c=f.substr(++u,f.length).trim();if('\"'==c[0]){c=c.slice(1,-1)}if(undefined==t[v]){t[v]=tryDecode(c,s)}}return t}function serialize(e,r,i){var a=i||{};var o=a.encode||t;if(typeof o!==\"function\"){throw new TypeError(\"option encode is invalid\")}if(!n.test(e)){throw new TypeError(\"argument name is invalid\")}var s=o(r);if(s&&!n.test(s)){throw new TypeError(\"argument val is invalid\")}var p=e+\"=\"+s;if(null!=a.maxAge){var f=a.maxAge-0;if(isNaN(f)||!isFinite(f)){throw new TypeError(\"option maxAge is invalid\")}p+=\"; Max-Age=\"+Math.floor(f)}if(a.domain){if(!n.test(a.domain)){throw new TypeError(\"option domain is invalid\")}p+=\"; Domain=\"+a.domain}if(a.path){if(!n.test(a.path)){throw new TypeError(\"option path is invalid\")}p+=\"; Path=\"+a.path}if(a.expires){if(typeof a.expires.toUTCString!==\"function\"){throw new TypeError(\"option expires is invalid\")}p+=\"; Expires=\"+a.expires.toUTCString()}if(a.httpOnly){p+=\"; HttpOnly\"}if(a.secure){p+=\"; Secure\"}if(a.sameSite){var u=typeof a.sameSite===\"string\"?a.sameSite.toLowerCase():a.sameSite;switch(u){case true:p+=\"; SameSite=Strict\";break;case\"lax\":p+=\"; SameSite=Lax\";break;case\"strict\":p+=\"; SameSite=Strict\";break;case\"none\":p+=\"; SameSite=None\";break;default:throw new TypeError(\"option sameSite is invalid\")}}return p}function tryDecode(e,r){try{return r(e)}catch(r){return e}}})();module.exports=e})();","(()=>{\"use strict\";var e={234:e=>{var t=Object.prototype.hasOwnProperty,n=\"~\";function Events(){}if(Object.create){Events.prototype=Object.create(null);if(!(new Events).__proto__)n=false}function EE(e,t,n){this.fn=e;this.context=t;this.once=n||false}function addListener(e,t,r,i,s){if(typeof r!==\"function\"){throw new TypeError(\"The listener must be a function\")}var o=new EE(r,i||e,s),u=n?n+t:t;if(!e._events[u])e._events[u]=o,e._eventsCount++;else if(!e._events[u].fn)e._events[u].push(o);else e._events[u]=[e._events[u],o];return e}function clearEvent(e,t){if(--e._eventsCount===0)e._events=new Events;else delete e._events[t]}function EventEmitter(){this._events=new Events;this._eventsCount=0}EventEmitter.prototype.eventNames=function eventNames(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events){if(t.call(r,i))e.push(n?i.slice(1):i)}if(Object.getOwnPropertySymbols){return e.concat(Object.getOwnPropertySymbols(r))}return e};EventEmitter.prototype.listeners=function listeners(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);i<s;i++){o[i]=r[i].fn}return o};EventEmitter.prototype.listenerCount=function listenerCount(e){var t=n?n+e:e,r=this._events[t];if(!r)return 0;if(r.fn)return 1;return r.length};EventEmitter.prototype.emit=function emit(e,t,r,i,s,o){var u=n?n+e:e;if(!this._events[u])return false;var a=this._events[u],l=arguments.length,c,h;if(a.fn){if(a.once)this.removeListener(e,a.fn,undefined,true);switch(l){case 1:return a.fn.call(a.context),true;case 2:return a.fn.call(a.context,t),true;case 3:return a.fn.call(a.context,t,r),true;case 4:return a.fn.call(a.context,t,r,i),true;case 5:return a.fn.call(a.context,t,r,i,s),true;case 6:return a.fn.call(a.context,t,r,i,s,o),true}for(h=1,c=new Array(l-1);h<l;h++){c[h-1]=arguments[h]}a.fn.apply(a.context,c)}else{var _=a.length,f;for(h=0;h<_;h++){if(a[h].once)this.removeListener(e,a[h].fn,undefined,true);switch(l){case 1:a[h].fn.call(a[h].context);break;case 2:a[h].fn.call(a[h].context,t);break;case 3:a[h].fn.call(a[h].context,t,r);break;case 4:a[h].fn.call(a[h].context,t,r,i);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++){c[f-1]=arguments[f]}a[h].fn.apply(a[h].context,c)}}}return true};EventEmitter.prototype.on=function on(e,t,n){return addListener(this,e,t,n,false)};EventEmitter.prototype.once=function once(e,t,n){return addListener(this,e,t,n,true)};EventEmitter.prototype.removeListener=function removeListener(e,t,r,i){var s=n?n+e:e;if(!this._events[s])return this;if(!t){clearEvent(this,s);return this}var o=this._events[s];if(o.fn){if(o.fn===t&&(!i||o.once)&&(!r||o.context===r)){clearEvent(this,s)}}else{for(var u=0,a=[],l=o.length;u<l;u++){if(o[u].fn!==t||i&&!o[u].once||r&&o[u].context!==r){a.push(o[u])}}if(a.length)this._events[s]=a.length===1?a[0]:a;else clearEvent(this,s)}return this};EventEmitter.prototype.removeAllListeners=function removeAllListeners(e){var t;if(e){t=n?n+e:e;if(this._events[t])clearEvent(this,t)}else{this._events=new Events;this._eventsCount=0}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.addListener=EventEmitter.prototype.on;EventEmitter.prefixed=n;EventEmitter.EventEmitter=EventEmitter;if(true){e.exports=EventEmitter}},274:e=>{e.exports=(e,t)=>{t=t||(()=>{});return e.then((e=>new Promise((e=>{e(t())})).then((()=>e))),(e=>new Promise((e=>{e(t())})).then((()=>{throw e}))))}},294:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:true});function lowerBound(e,t,n){let r=0;let i=e.length;while(i>0){const s=i/2|0;let o=r+s;if(n(e[o],t)<=0){r=++o;i-=s+1}else{i=s}}return r}t[\"default\"]=lowerBound},838:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:true});const r=n(294);class PriorityQueue{constructor(){this._queue=[]}enqueue(e,t){t=Object.assign({priority:0},t);const n={priority:t.priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority){this._queue.push(n);return}const i=r.default(this._queue,n,((e,t)=>t.priority-e.priority));this._queue.splice(i,0,n)}dequeue(){const e=this._queue.shift();return e===null||e===void 0?void 0:e.run}filter(e){return this._queue.filter((t=>t.priority===e.priority)).map((e=>e.run))}get size(){return this._queue.length}}t[\"default\"]=PriorityQueue},138:(e,t,n)=>{const r=n(274);class TimeoutError extends Error{constructor(e){super(e);this.name=\"TimeoutError\"}}const pTimeout=(e,t,n)=>new Promise(((i,s)=>{if(typeof t!==\"number\"||t<0){throw new TypeError(\"Expected `milliseconds` to be a positive number\")}if(t===Infinity){i(e);return}const o=setTimeout((()=>{if(typeof n===\"function\"){try{i(n())}catch(e){s(e)}return}const r=typeof n===\"string\"?n:`Promise timed out after ${t} milliseconds`;const o=n instanceof Error?n:new TimeoutError(r);if(typeof e.cancel===\"function\"){e.cancel()}s(o)}),t);r(e.then(i,s),(()=>{clearTimeout(o)}))}));e.exports=pTimeout;e.exports[\"default\"]=pTimeout;e.exports.TimeoutError=TimeoutError}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var i=t[n]={exports:{}};var s=true;try{e[n](i,i.exports,__nccwpck_require__);s=false}finally{if(s)delete t[n]}return i.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var n={};(()=>{var e=n;Object.defineProperty(e,\"__esModule\",{value:true});const t=__nccwpck_require__(234);const r=__nccwpck_require__(138);const i=__nccwpck_require__(838);const empty=()=>{};const s=new r.TimeoutError;class PQueue extends t{constructor(e){var t,n,r,s;super();this._intervalCount=0;this._intervalEnd=0;this._pendingCount=0;this._resolveEmpty=empty;this._resolveIdle=empty;e=Object.assign({carryoverConcurrencyCount:false,intervalCap:Infinity,interval:0,concurrency:Infinity,autoStart:true,queueClass:i.default},e);if(!(typeof e.intervalCap===\"number\"&&e.intervalCap>=1)){throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${(n=(t=e.intervalCap)===null||t===void 0?void 0:t.toString())!==null&&n!==void 0?n:\"\"}\\` (${typeof e.intervalCap})`)}if(e.interval===undefined||!(Number.isFinite(e.interval)&&e.interval>=0)){throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${(s=(r=e.interval)===null||r===void 0?void 0:r.toString())!==null&&s!==void 0?s:\"\"}\\` (${typeof e.interval})`)}this._carryoverConcurrencyCount=e.carryoverConcurrencyCount;this._isIntervalIgnored=e.intervalCap===Infinity||e.interval===0;this._intervalCap=e.intervalCap;this._interval=e.interval;this._queue=new e.queueClass;this._queueClass=e.queueClass;this.concurrency=e.concurrency;this._timeout=e.timeout;this._throwOnTimeout=e.throwOnTimeout===true;this._isPaused=e.autoStart===false}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--;this._tryToStartAnother();this.emit(\"next\")}_resolvePromises(){this._resolveEmpty();this._resolveEmpty=empty;if(this._pendingCount===0){this._resolveIdle();this._resolveIdle=empty;this.emit(\"idle\")}}_onResumeInterval(){this._onInterval();this._initializeIntervalIfNeeded();this._timeoutId=undefined}_isIntervalPaused(){const e=Date.now();if(this._intervalId===undefined){const t=this._intervalEnd-e;if(t<0){this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}else{if(this._timeoutId===undefined){this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)}return true}}return false}_tryToStartAnother(){if(this._queue.size===0){if(this._intervalId){clearInterval(this._intervalId)}this._intervalId=undefined;this._resolvePromises();return false}if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();if(!t){return false}this.emit(\"active\");t();if(e){this._initializeIntervalIfNeeded()}return true}}return false}_initializeIntervalIfNeeded(){if(this._isIntervalIgnored||this._intervalId!==undefined){return}this._intervalId=setInterval((()=>{this._onInterval()}),this._interval);this._intervalEnd=Date.now()+this._interval}_onInterval(){if(this._intervalCount===0&&this._pendingCount===0&&this._intervalId){clearInterval(this._intervalId);this._intervalId=undefined}this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;this._processQueue()}_processQueue(){while(this._tryToStartAnother()){}}get concurrency(){return this._concurrency}set concurrency(e){if(!(typeof e===\"number\"&&e>=1)){throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${e}\\` (${typeof e})`)}this._concurrency=e;this._processQueue()}async add(e,t={}){return new Promise(((n,i)=>{const run=async()=>{this._pendingCount++;this._intervalCount++;try{const o=this._timeout===undefined&&t.timeout===undefined?e():r.default(Promise.resolve(e()),t.timeout===undefined?this._timeout:t.timeout,(()=>{if(t.throwOnTimeout===undefined?this._throwOnTimeout:t.throwOnTimeout){i(s)}return undefined}));n(await o)}catch(e){i(e)}this._next()};this._queue.enqueue(run,t);this._tryToStartAnother();this.emit(\"add\")}))}async addAll(e,t){return Promise.all(e.map((async e=>this.add(e,t))))}start(){if(!this._isPaused){return this}this._isPaused=false;this._processQueue();return this}pause(){this._isPaused=true}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size===0){return}return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t();e()}}))}async onIdle(){if(this._pendingCount===0&&this._queue.size===0){return}return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t();e()}}))}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}e[\"default\"]=PQueue})();module.exports=n})();","/**\n * @license React\n * react-dom.react-server.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function noop() {}\n    function getCrossOriginStringAs(as, input) {\n      if (\"font\" === as) return \"\";\n      if (\"string\" === typeof input)\n        return \"use-credentials\" === input ? input : \"\";\n    }\n    function getValueDescriptorExpectingObjectForWarning(thing) {\n      return null === thing\n        ? \"`null`\"\n        : void 0 === thing\n          ? \"`undefined`\"\n          : \"\" === thing\n            ? \"an empty string\"\n            : 'something with type \"' + typeof thing + '\"';\n    }\n    function getValueDescriptorExpectingEnumForWarning(thing) {\n      return null === thing\n        ? \"`null`\"\n        : void 0 === thing\n          ? \"`undefined`\"\n          : \"\" === thing\n            ? \"an empty string\"\n            : \"string\" === typeof thing\n              ? JSON.stringify(thing)\n              : \"number\" === typeof thing\n                ? \"`\" + thing + \"`\"\n                : 'something with type \"' + typeof thing + '\"';\n    }\n    var React = require(\"next/dist/compiled/react\"),\n      Internals = {\n        d: {\n          f: noop,\n          r: function () {\n            throw Error(\n              \"Invalid form element. requestFormReset must be passed a form that was rendered by React.\"\n            );\n          },\n          D: noop,\n          C: noop,\n          L: noop,\n          m: noop,\n          X: noop,\n          S: noop,\n          M: noop\n        },\n        p: 0,\n        findDOMNode: null\n      };\n    if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)\n      throw Error(\n        'The \"react\" package in this environment is not configured correctly. The \"react-server\" condition must be enabled in any environment that runs React Server Components.'\n      );\n    (\"function\" === typeof Map &&\n      null != Map.prototype &&\n      \"function\" === typeof Map.prototype.forEach &&\n      \"function\" === typeof Set &&\n      null != Set.prototype &&\n      \"function\" === typeof Set.prototype.clear &&\n      \"function\" === typeof Set.prototype.forEach) ||\n      console.error(\n        \"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills\"\n      );\n    exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n      Internals;\n    exports.preconnect = function (href, options) {\n      \"string\" === typeof href && href\n        ? null != options && \"object\" !== typeof options\n          ? console.error(\n              \"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.\",\n              getValueDescriptorExpectingEnumForWarning(options)\n            )\n          : null != options &&\n            \"string\" !== typeof options.crossOrigin &&\n            console.error(\n              \"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.\",\n              getValueDescriptorExpectingObjectForWarning(options.crossOrigin)\n            )\n        : console.error(\n            \"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n            getValueDescriptorExpectingObjectForWarning(href)\n          );\n      \"string\" === typeof href &&\n        (options\n          ? ((options = options.crossOrigin),\n            (options =\n              \"string\" === typeof options\n                ? \"use-credentials\" === options\n                  ? options\n                  : \"\"\n                : void 0))\n          : (options = null),\n        Internals.d.C(href, options));\n    };\n    exports.prefetchDNS = function (href) {\n      if (\"string\" !== typeof href || !href)\n        console.error(\n          \"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n          getValueDescriptorExpectingObjectForWarning(href)\n        );\n      else if (1 < arguments.length) {\n        var options = arguments[1];\n        \"object\" === typeof options && options.hasOwnProperty(\"crossOrigin\")\n          ? console.error(\n              \"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",\n              getValueDescriptorExpectingEnumForWarning(options)\n            )\n          : console.error(\n              \"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.\",\n              getValueDescriptorExpectingEnumForWarning(options)\n            );\n      }\n      \"string\" === typeof href && Internals.d.D(href);\n    };\n    exports.preinit = function (href, options) {\n      \"string\" === typeof href && href\n        ? null == options || \"object\" !== typeof options\n          ? console.error(\n              \"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.\",\n              getValueDescriptorExpectingEnumForWarning(options)\n            )\n          : \"style\" !== options.as &&\n            \"script\" !== options.as &&\n            console.error(\n              'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are \"style\" and \"script\".',\n              getValueDescriptorExpectingEnumForWarning(options.as)\n            )\n        : console.error(\n            \"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.\",\n            getValueDescriptorExpectingObjectForWarning(href)\n          );\n      if (\n        \"string\" === typeof href &&\n        options &&\n        \"string\" === typeof options.as\n      ) {\n        var as = options.as,\n          crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n          integrity =\n            \"string\" === typeof options.integrity ? options.integrity : void 0,\n          fetchPriority =\n            \"string\" === typeof options.fetchPriority\n              ? options.fetchPriority\n              : void 0;\n        \"style\" === as\n          ? Internals.d.S(\n              href,\n              \"string\" === typeof options.precedence\n                ? options.precedence\n                : void 0,\n              {\n                crossOrigin: crossOrigin,\n                integrity: integrity,\n                fetchPriority: fetchPriority\n              }\n            )\n          : \"script\" === as &&\n            Internals.d.X(href, {\n              crossOrigin: crossOrigin,\n              integrity: integrity,\n              fetchPriority: fetchPriority,\n              nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n            });\n      }\n    };\n    exports.preinitModule = function (href, options) {\n      var encountered = \"\";\n      (\"string\" === typeof href && href) ||\n        (encountered +=\n          \" The `href` argument encountered was \" +\n          getValueDescriptorExpectingObjectForWarning(href) +\n          \".\");\n      void 0 !== options && \"object\" !== typeof options\n        ? (encountered +=\n            \" The `options` argument encountered was \" +\n            getValueDescriptorExpectingObjectForWarning(options) +\n            \".\")\n        : options &&\n          \"as\" in options &&\n          \"script\" !== options.as &&\n          (encountered +=\n            \" The `as` option encountered was \" +\n            getValueDescriptorExpectingEnumForWarning(options.as) +\n            \".\");\n      if (encountered)\n        console.error(\n          \"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s\",\n          encountered\n        );\n      else\n        switch (\n          ((encountered =\n            options && \"string\" === typeof options.as ? options.as : \"script\"),\n          encountered)\n        ) {\n          case \"script\":\n            break;\n          default:\n            (encountered =\n              getValueDescriptorExpectingEnumForWarning(encountered)),\n              console.error(\n                'ReactDOM.preinitModule(): Currently the only supported \"as\" type for this function is \"script\" but received \"%s\" instead. This warning was generated for `href` \"%s\". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',\n                encountered,\n                href\n              );\n        }\n      if (\"string\" === typeof href)\n        if (\"object\" === typeof options && null !== options) {\n          if (null == options.as || \"script\" === options.as)\n            (encountered = getCrossOriginStringAs(\n              options.as,\n              options.crossOrigin\n            )),\n              Internals.d.M(href, {\n                crossOrigin: encountered,\n                integrity:\n                  \"string\" === typeof options.integrity\n                    ? options.integrity\n                    : void 0,\n                nonce:\n                  \"string\" === typeof options.nonce ? options.nonce : void 0,\n                fetchPriority:\n                  \"string\" === typeof options.fetchPriority\n                    ? options.fetchPriority\n                    : void 0\n              });\n        } else null == options && Internals.d.M(href);\n    };\n    exports.preload = function (href, options) {\n      var encountered = \"\";\n      (\"string\" === typeof href && href) ||\n        (encountered +=\n          \" The `href` argument encountered was \" +\n          getValueDescriptorExpectingObjectForWarning(href) +\n          \".\");\n      null == options || \"object\" !== typeof options\n        ? (encountered +=\n            \" The `options` argument encountered was \" +\n            getValueDescriptorExpectingObjectForWarning(options) +\n            \".\")\n        : (\"string\" === typeof options.as && options.as) ||\n          (encountered +=\n            \" The `as` option encountered was \" +\n            getValueDescriptorExpectingObjectForWarning(options.as) +\n            \".\");\n      encountered &&\n        console.error(\n          'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel=\"preload\" as=\"...\" />` tag.%s',\n          encountered\n        );\n      if (\n        \"string\" === typeof href &&\n        \"object\" === typeof options &&\n        null !== options &&\n        \"string\" === typeof options.as\n      ) {\n        encountered = options.as;\n        var crossOrigin = getCrossOriginStringAs(\n          encountered,\n          options.crossOrigin\n        );\n        Internals.d.L(href, encountered, {\n          crossOrigin: crossOrigin,\n          integrity:\n            \"string\" === typeof options.integrity ? options.integrity : void 0,\n          nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n          type: \"string\" === typeof options.type ? options.type : void 0,\n          fetchPriority:\n            \"string\" === typeof options.fetchPriority\n              ? options.fetchPriority\n              : void 0,\n          referrerPolicy:\n            \"string\" === typeof options.referrerPolicy\n              ? options.referrerPolicy\n              : void 0,\n          imageSrcSet:\n            \"string\" === typeof options.imageSrcSet\n              ? options.imageSrcSet\n              : void 0,\n          imageSizes:\n            \"string\" === typeof options.imageSizes\n              ? options.imageSizes\n              : void 0,\n          media: \"string\" === typeof options.media ? options.media : void 0\n        });\n      }\n    };\n    exports.preloadModule = function (href, options) {\n      var encountered = \"\";\n      (\"string\" === typeof href && href) ||\n        (encountered +=\n          \" The `href` argument encountered was \" +\n          getValueDescriptorExpectingObjectForWarning(href) +\n          \".\");\n      void 0 !== options && \"object\" !== typeof options\n        ? (encountered +=\n            \" The `options` argument encountered was \" +\n            getValueDescriptorExpectingObjectForWarning(options) +\n            \".\")\n        : options &&\n          \"as\" in options &&\n          \"string\" !== typeof options.as &&\n          (encountered +=\n            \" The `as` option encountered was \" +\n            getValueDescriptorExpectingObjectForWarning(options.as) +\n            \".\");\n      encountered &&\n        console.error(\n          'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel=\"modulepreload\" as=\"...\" />` tag.%s',\n          encountered\n        );\n      \"string\" === typeof href &&\n        (options\n          ? ((encountered = getCrossOriginStringAs(\n              options.as,\n              options.crossOrigin\n            )),\n            Internals.d.m(href, {\n              as:\n                \"string\" === typeof options.as && \"script\" !== options.as\n                  ? options.as\n                  : void 0,\n              crossOrigin: encountered,\n              integrity:\n                \"string\" === typeof options.integrity\n                  ? options.integrity\n                  : void 0,\n              nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n              fetchPriority:\n                \"string\" === typeof options.fetchPriority\n                  ? options.fetchPriority\n                  : void 0\n            }))\n          : Internals.d.m(href));\n    };\n    exports.version = \"19.3.0-canary-cbb046ab-20260731\";\n  })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react-dom.react-server.production.js');\n} else {\n  module.exports = require('./cjs/react-dom.react-server.development.js');\n}\n","/**\n * @license React\n * react-server-dom-turbopack-server.node.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function voidHandler() {}\n    function noop() {}\n    function getIteratorFn(maybeIterable) {\n      if (null === maybeIterable || \"object\" !== typeof maybeIterable)\n        return null;\n      maybeIterable =\n        (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n        maybeIterable[\"@@iterator\"];\n      return \"function\" === typeof maybeIterable ? maybeIterable : null;\n    }\n    function flushBuffered(destination) {\n      \"function\" === typeof destination.flush && destination.flush();\n    }\n    function writeChunk(destination, chunk) {\n      if (\"string\" === typeof chunk) {\n        if (0 !== chunk.length)\n          if (4096 < 3 * chunk.length)\n            0 < writtenBytes &&\n              (writeToDestination(\n                destination,\n                currentView.subarray(0, writtenBytes)\n              ),\n              (currentView = new Uint8Array(4096)),\n              (writtenBytes = 0)),\n              writeToDestination(destination, chunk);\n          else {\n            var target = currentView;\n            0 < writtenBytes && (target = currentView.subarray(writtenBytes));\n            target = textEncoder.encodeInto(chunk, target);\n            var read = target.read;\n            writtenBytes += target.written;\n            read < chunk.length &&\n              (writeToDestination(\n                destination,\n                currentView.subarray(0, writtenBytes)\n              ),\n              (currentView = new Uint8Array(4096)),\n              (writtenBytes = textEncoder.encodeInto(\n                chunk.slice(read),\n                currentView\n              ).written));\n            4096 === writtenBytes &&\n              (writeToDestination(destination, currentView),\n              (currentView = new Uint8Array(4096)),\n              (writtenBytes = 0));\n          }\n      } else\n        0 !== chunk.byteLength &&\n          (4096 < chunk.byteLength\n            ? (0 < writtenBytes &&\n                (writeToDestination(\n                  destination,\n                  currentView.subarray(0, writtenBytes)\n                ),\n                (currentView = new Uint8Array(4096)),\n                (writtenBytes = 0)),\n              writeToDestination(destination, chunk))\n            : ((target = currentView.length - writtenBytes),\n              target < chunk.byteLength &&\n                (0 === target\n                  ? writeToDestination(destination, currentView)\n                  : (currentView.set(chunk.subarray(0, target), writtenBytes),\n                    (writtenBytes += target),\n                    writeToDestination(destination, currentView),\n                    (chunk = chunk.subarray(target))),\n                (currentView = new Uint8Array(4096)),\n                (writtenBytes = 0)),\n              currentView.set(chunk, writtenBytes),\n              (writtenBytes += chunk.byteLength),\n              4096 === writtenBytes &&\n                (writeToDestination(destination, currentView),\n                (currentView = new Uint8Array(4096)),\n                (writtenBytes = 0))));\n    }\n    function writeToDestination(destination, view) {\n      destination = destination.write(view);\n      destinationHasCapacity = destinationHasCapacity && destination;\n    }\n    function writeChunkAndReturn(destination, chunk) {\n      writeChunk(destination, chunk);\n      return destinationHasCapacity;\n    }\n    function completeWriting(destination) {\n      currentView &&\n        0 < writtenBytes &&\n        destination.write(currentView.subarray(0, writtenBytes));\n      currentView = null;\n      writtenBytes = 0;\n      destinationHasCapacity = !0;\n    }\n    function byteLengthOfChunk(chunk) {\n      return \"string\" === typeof chunk\n        ? Buffer.byteLength(chunk, \"utf8\")\n        : chunk.byteLength;\n    }\n    function isClientReference(reference) {\n      return reference.$$typeof === CLIENT_REFERENCE_TAG$1;\n    }\n    function registerClientReferenceImpl(proxyImplementation, id, async) {\n      return Object.defineProperties(proxyImplementation, {\n        $$typeof: { value: CLIENT_REFERENCE_TAG$1 },\n        $$id: { value: id },\n        $$async: { value: async }\n      });\n    }\n    function bind() {\n      var newFn = FunctionBind.apply(this, arguments);\n      if (this.$$typeof === SERVER_REFERENCE_TAG) {\n        null != arguments[0] &&\n          console.error(\n            'Cannot bind \"this\" of a Server Action. Pass null or undefined as the first argument to .bind().'\n          );\n        var args = ArraySlice.call(arguments, 1),\n          $$typeof = { value: SERVER_REFERENCE_TAG },\n          $$id = { value: this.$$id };\n        args = { value: this.$$bound ? this.$$bound.concat(args) : args };\n        return Object.defineProperties(newFn, {\n          $$typeof: $$typeof,\n          $$id: $$id,\n          $$bound: args,\n          $$location: { value: this.$$location, configurable: !0 },\n          bind: { value: bind, configurable: !0 }\n        });\n      }\n      return newFn;\n    }\n    function getReference(target, name) {\n      switch (name) {\n        case \"$$typeof\":\n          return target.$$typeof;\n        case \"$$id\":\n          return target.$$id;\n        case \"$$async\":\n          return target.$$async;\n        case \"name\":\n          return target.name;\n        case \"defaultProps\":\n          return;\n        case \"_debugInfo\":\n          return;\n        case \"toJSON\":\n          return;\n        case Symbol.toPrimitive:\n          return Object.prototype[Symbol.toPrimitive];\n        case Symbol.toStringTag:\n          return Object.prototype[Symbol.toStringTag];\n        case \"__esModule\":\n          var moduleId = target.$$id;\n          target.default = registerClientReferenceImpl(\n            function () {\n              throw Error(\n                \"Attempted to call the default export of \" +\n                  moduleId +\n                  \" from the server but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"\n              );\n            },\n            target.$$id + \"#\",\n            target.$$async\n          );\n          return !0;\n        case \"then\":\n          if (target.then) return target.then;\n          if (target.$$async) return;\n          var clientReference = registerClientReferenceImpl(\n              {},\n              target.$$id,\n              !0\n            ),\n            proxy = new Proxy(clientReference, proxyHandlers$1);\n          target.status = \"fulfilled\";\n          target.value = proxy;\n          return (target.then = registerClientReferenceImpl(\n            function (resolve) {\n              return Promise.resolve(resolve(proxy));\n            },\n            target.$$id + \"#then\",\n            !1\n          ));\n      }\n      if (\"symbol\" === typeof name)\n        throw Error(\n          \"Cannot read Symbol exports. Only named exports are supported on a client module imported on the server.\"\n        );\n      clientReference = target[name];\n      clientReference ||\n        ((clientReference = registerClientReferenceImpl(\n          function () {\n            throw Error(\n              \"Attempted to call \" +\n                String(name) +\n                \"() from the server but \" +\n                String(name) +\n                \" is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"\n            );\n          },\n          target.$$id + \"#\" + name,\n          target.$$async\n        )),\n        Object.defineProperty(clientReference, \"name\", { value: name }),\n        (clientReference = target[name] =\n          new Proxy(clientReference, deepProxyHandlers)));\n      return clientReference;\n    }\n    function resolveClientReferenceMetadata(config, clientReference) {\n      var modulePath = clientReference.$$id,\n        name = \"\",\n        resolvedModuleData = config[modulePath];\n      if (resolvedModuleData) name = resolvedModuleData.name;\n      else {\n        var idx = modulePath.lastIndexOf(\"#\");\n        -1 !== idx &&\n          ((name = modulePath.slice(idx + 1)),\n          (resolvedModuleData = config[modulePath.slice(0, idx)]));\n        if (!resolvedModuleData)\n          throw Error(\n            'Could not find the module \"' +\n              modulePath +\n              '\" in the React Client Manifest. This is probably a bug in the React Server Components bundler.'\n          );\n      }\n      if (!0 === resolvedModuleData.async && !0 === clientReference.$$async)\n        throw Error(\n          'The module \"' +\n            modulePath +\n            '\" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.'\n        );\n      return !0 === resolvedModuleData.async || !0 === clientReference.$$async\n        ? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]\n        : [resolvedModuleData.id, resolvedModuleData.chunks, name];\n    }\n    function preload(href, as, options) {\n      if (\"string\" === typeof href) {\n        var request = resolveRequest();\n        if (request) {\n          var hints = request.hints,\n            key = \"L\";\n          if (\"image\" === as && options) {\n            var imageSrcSet = options.imageSrcSet,\n              imageSizes = options.imageSizes,\n              uniquePart = \"\";\n            \"string\" === typeof imageSrcSet && \"\" !== imageSrcSet\n              ? ((uniquePart += \"[\" + imageSrcSet + \"]\"),\n                \"string\" === typeof imageSizes &&\n                  (uniquePart += \"[\" + imageSizes + \"]\"))\n              : (uniquePart += \"[][]\" + href);\n            key += \"[image]\" + uniquePart;\n          } else key += \"[\" + as + \"]\" + href;\n          hints.has(key) ||\n            (hints.add(key),\n            (options = trimOptions(options))\n              ? emitHint(request, \"L\", [href, as, options])\n              : emitHint(request, \"L\", [href, as]));\n        } else previousDispatcher.L(href, as, options);\n      }\n    }\n    function preloadModule$1(href, options) {\n      if (\"string\" === typeof href) {\n        var request = resolveRequest();\n        if (request) {\n          var hints = request.hints,\n            key = \"m|\" + href;\n          if (hints.has(key)) return;\n          hints.add(key);\n          return (options = trimOptions(options))\n            ? emitHint(request, \"m\", [href, options])\n            : emitHint(request, \"m\", href);\n        }\n        previousDispatcher.m(href, options);\n      }\n    }\n    function trimOptions(options) {\n      if (null == options) return null;\n      var hasProperties = !1,\n        trimmed = {},\n        key;\n      for (key in options)\n        null != options[key] &&\n          ((hasProperties = !0), (trimmed[key] = options[key]));\n      return hasProperties ? trimmed : null;\n    }\n    function getChildFormatContext(parentContext, type, props) {\n      switch (type) {\n        case \"img\":\n          type = props.src;\n          var srcSet = props.srcSet;\n          if (\n            !(\n              \"lazy\" === props.loading ||\n              (!type && !srcSet) ||\n              (\"string\" !== typeof type && null != type) ||\n              (\"string\" !== typeof srcSet && null != srcSet) ||\n              \"low\" === props.fetchPriority ||\n              parentContext & 3\n            ) &&\n            (\"string\" !== typeof type ||\n              \":\" !== type[4] ||\n              (\"d\" !== type[0] && \"D\" !== type[0]) ||\n              (\"a\" !== type[1] && \"A\" !== type[1]) ||\n              (\"t\" !== type[2] && \"T\" !== type[2]) ||\n              (\"a\" !== type[3] && \"A\" !== type[3])) &&\n            (\"string\" !== typeof srcSet ||\n              \":\" !== srcSet[4] ||\n              (\"d\" !== srcSet[0] && \"D\" !== srcSet[0]) ||\n              (\"a\" !== srcSet[1] && \"A\" !== srcSet[1]) ||\n              (\"t\" !== srcSet[2] && \"T\" !== srcSet[2]) ||\n              (\"a\" !== srcSet[3] && \"A\" !== srcSet[3]))\n          ) {\n            var sizes = \"string\" === typeof props.sizes ? props.sizes : void 0;\n            var input = props.crossOrigin;\n            preload(type || \"\", \"image\", {\n              imageSrcSet: srcSet,\n              imageSizes: sizes,\n              crossOrigin:\n                \"string\" === typeof input\n                  ? \"use-credentials\" === input\n                    ? input\n                    : \"\"\n                  : void 0,\n              integrity: props.integrity,\n              type: props.type,\n              fetchPriority: props.fetchPriority,\n              referrerPolicy: props.referrerPolicy\n            });\n          }\n          return parentContext;\n        case \"link\":\n          type = props.rel;\n          srcSet = props.href;\n          if (\n            !(\n              parentContext & 1 ||\n              null != props.itemProp ||\n              \"string\" !== typeof type ||\n              \"string\" !== typeof srcSet ||\n              \"\" === srcSet\n            )\n          )\n            switch (type) {\n              case \"preload\":\n                preload(srcSet, props.as, {\n                  crossOrigin: props.crossOrigin,\n                  integrity: props.integrity,\n                  nonce: props.nonce,\n                  type: props.type,\n                  fetchPriority: props.fetchPriority,\n                  referrerPolicy: props.referrerPolicy,\n                  imageSrcSet: props.imageSrcSet,\n                  imageSizes: props.imageSizes,\n                  media: props.media\n                });\n                break;\n              case \"modulepreload\":\n                preloadModule$1(srcSet, {\n                  as: props.as,\n                  crossOrigin: props.crossOrigin,\n                  integrity: props.integrity,\n                  nonce: props.nonce\n                });\n                break;\n              case \"stylesheet\":\n                preload(srcSet, \"style\", {\n                  crossOrigin: props.crossOrigin,\n                  integrity: props.integrity,\n                  nonce: props.nonce,\n                  type: props.type,\n                  fetchPriority: props.fetchPriority,\n                  referrerPolicy: props.referrerPolicy,\n                  media: props.media\n                });\n            }\n          return parentContext;\n        case \"picture\":\n          return parentContext | 2;\n        case \"noscript\":\n          return parentContext | 1;\n        default:\n          return parentContext;\n      }\n    }\n    function resolveOwner() {\n      if (currentOwner) return currentOwner;\n      var owner = componentStorage.getStore();\n      return owner ? owner : null;\n    }\n    function resolvePromiseOrAwaitNode(unresolvedNode, endTime) {\n      unresolvedNode.tag = 3 === unresolvedNode.tag ? 1 : 2;\n      unresolvedNode.end = endTime;\n      return unresolvedNode;\n    }\n    function getAsyncSequenceFromPromise(promise) {\n      try {\n        var asyncId = getAsyncId.call(promise);\n      } catch (x) {}\n      if (void 0 === asyncId) return null;\n      promise = pendingOperations.get(asyncId);\n      return void 0 === promise ? null : promise;\n    }\n    function collectStackTracePrivate(error, structuredStackTrace) {\n      error = [];\n      for (var i = framesToSkip; i < structuredStackTrace.length; i++) {\n        var callSite = structuredStackTrace[i],\n          name = callSite.getFunctionName() || \"<anonymous>\";\n        if (name.includes(\"react_stack_bottom_frame\")) break;\n        else if (callSite.isNative())\n          (callSite = callSite.isAsync()),\n            error.push([name, \"\", 0, 0, 0, 0, callSite]);\n        else {\n          if (callSite.isConstructor()) name = \"new \" + name;\n          else if (!callSite.isToplevel()) {\n            var callSite$jscomp$0 = callSite;\n            name = callSite$jscomp$0.getTypeName();\n            var methodName = callSite$jscomp$0.getMethodName();\n            callSite$jscomp$0 = callSite$jscomp$0.getFunctionName();\n            var result = \"\";\n            callSite$jscomp$0\n              ? (name &&\n                  identifierRegExp.test(callSite$jscomp$0) &&\n                  callSite$jscomp$0 !== name &&\n                  (result += name + \".\"),\n                (result += callSite$jscomp$0),\n                !methodName ||\n                  callSite$jscomp$0 === methodName ||\n                  callSite$jscomp$0.endsWith(\".\" + methodName) ||\n                  callSite$jscomp$0.endsWith(\" \" + methodName) ||\n                  (result += \" [as \" + methodName + \"]\"))\n              : (name && (result += name + \".\"),\n                (result = methodName\n                  ? result + methodName\n                  : result + \"<anonymous>\"));\n            name = result;\n          }\n          \"<anonymous>\" === name && (name = \"\");\n          methodName = callSite.getScriptNameOrSourceURL() || \"<anonymous>\";\n          \"<anonymous>\" === methodName &&\n            ((methodName = \"\"),\n            callSite.isEval() &&\n              (callSite$jscomp$0 = callSite.getEvalOrigin()) &&\n              (methodName = callSite$jscomp$0.toString() + \", <anonymous>\"));\n          callSite$jscomp$0 = callSite.getLineNumber() || 0;\n          result = callSite.getColumnNumber() || 0;\n          var enclosingLine =\n              \"function\" === typeof callSite.getEnclosingLineNumber\n                ? callSite.getEnclosingLineNumber() || 0\n                : 0,\n            enclosingCol =\n              \"function\" === typeof callSite.getEnclosingColumnNumber\n                ? callSite.getEnclosingColumnNumber() || 0\n                : 0;\n          callSite = callSite.isAsync();\n          error.push([\n            name,\n            methodName,\n            callSite$jscomp$0,\n            result,\n            enclosingLine,\n            enclosingCol,\n            callSite\n          ]);\n        }\n      }\n      collectedStackTrace = error;\n      return \"\";\n    }\n    function collectStackTrace(error, structuredStackTrace) {\n      collectStackTracePrivate(error, structuredStackTrace);\n      error = (error.name || \"Error\") + \": \" + (error.message || \"\");\n      for (var i = 0; i < structuredStackTrace.length; i++)\n        error += \"\\n    at \" + structuredStackTrace[i].toString();\n      return error;\n    }\n    function parseStackTracePrivate(error, skipFrames) {\n      collectedStackTrace = null;\n      framesToSkip = skipFrames;\n      skipFrames = Error.prepareStackTrace;\n      Error.prepareStackTrace = collectStackTracePrivate;\n      try {\n        if (\"\" !== error.stack) return null;\n      } finally {\n        Error.prepareStackTrace = skipFrames;\n      }\n      return collectedStackTrace;\n    }\n    function parseStackTrace(error, skipFrames) {\n      var existing = stackTraceCache.get(error);\n      if (void 0 !== existing) return existing;\n      collectedStackTrace = null;\n      framesToSkip = skipFrames;\n      existing = Error.prepareStackTrace;\n      Error.prepareStackTrace = collectStackTrace;\n      try {\n        var stack = String(error.stack);\n      } finally {\n        Error.prepareStackTrace = existing;\n      }\n      if (null !== collectedStackTrace)\n        return (\n          (stack = collectedStackTrace),\n          (collectedStackTrace = null),\n          stackTraceCache.set(error, stack),\n          stack\n        );\n      stack.startsWith(\"Error: react-stack-top-frame\\n\") &&\n        (stack = stack.slice(29));\n      existing = stack.indexOf(\"react_stack_bottom_frame\");\n      -1 !== existing && (existing = stack.lastIndexOf(\"\\n\", existing));\n      -1 !== existing && (stack = stack.slice(0, existing));\n      stack = stack.split(\"\\n\");\n      for (existing = []; skipFrames < stack.length; skipFrames++) {\n        var parsed = frameRegExp.exec(stack[skipFrames]);\n        if (parsed) {\n          var name = parsed[1] || \"\",\n            isAsync = \"async \" === parsed[8];\n          \"<anonymous>\" === name\n            ? (name = \"\")\n            : name.startsWith(\"async \") &&\n              ((name = name.slice(5)), (isAsync = !0));\n          var filename = parsed[2] || parsed[5] || \"\";\n          \"<anonymous>\" === filename && (filename = \"\");\n          existing.push([\n            name,\n            filename,\n            +(parsed[3] || parsed[6]),\n            +(parsed[4] || parsed[7]),\n            0,\n            0,\n            isAsync\n          ]);\n        }\n      }\n      stackTraceCache.set(error, existing);\n      return existing;\n    }\n    function createTemporaryReference(temporaryReferences, id) {\n      var reference = Object.defineProperties(\n        function () {\n          throw Error(\n            \"Attempted to call a temporary Client Reference from the server but it is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"\n          );\n        },\n        { $$typeof: { value: TEMPORARY_REFERENCE_TAG } }\n      );\n      reference = new Proxy(reference, proxyHandlers);\n      temporaryReferences.set(reference, id);\n      return reference;\n    }\n    function trackUsedThenable(thenableState, thenable, index) {\n      index = thenableState[index];\n      void 0 === index\n        ? (thenableState.push(thenable),\n          (thenableState._stacks || (thenableState._stacks = [])).push(Error()))\n        : index !== thenable && (thenable.then(noop, noop), (thenable = index));\n      switch (thenable.status) {\n        case \"fulfilled\":\n          return thenable.value;\n        case \"rejected\":\n          thenableState = thenable.reason;\n          if (void 0 === thenableState && !(\"reason\" in thenable))\n            throw Error(\n              \"A rejected Promise was passed to React without a `reason` property. React threw a generic error from where the Promise was used to assist in identifying the problematic Promise. Make sure that instrumented Promises correctly set the `reason` property when setting `status` to `'rejected'`.\"\n            );\n          throw thenableState;\n        default:\n          \"string\" === typeof thenable.status\n            ? thenable.then(noop, noop)\n            : ((thenableState = thenable),\n              (thenableState.status = \"pending\"),\n              thenableState.then(\n                function (fulfilledValue) {\n                  if (\"pending\" === thenable.status) {\n                    var fulfilledThenable = thenable;\n                    fulfilledThenable.status = \"fulfilled\";\n                    fulfilledThenable.value = fulfilledValue;\n                  }\n                },\n                function (error) {\n                  if (\"pending\" === thenable.status) {\n                    var rejectedThenable = thenable;\n                    rejectedThenable.status = \"rejected\";\n                    rejectedThenable.reason = error;\n                  }\n                }\n              ));\n          switch (thenable.status) {\n            case \"fulfilled\":\n              return thenable.value;\n            case \"rejected\":\n              throw thenable.reason;\n          }\n          suspendedThenable = thenable;\n          throw SuspenseException;\n      }\n    }\n    function getSuspendedThenable() {\n      if (null === suspendedThenable)\n        throw Error(\n          \"Expected a suspended thenable. This is a bug in React. Please file an issue.\"\n        );\n      var thenable = suspendedThenable;\n      suspendedThenable = null;\n      return thenable;\n    }\n    function getThenableStateAfterSuspending() {\n      var state = thenableState || [];\n      state._componentDebugInfo = currentComponentDebugInfo;\n      thenableState = currentComponentDebugInfo = null;\n      return state;\n    }\n    function unsupportedHook() {\n      throw Error(\"This Hook is not supported in Server Components.\");\n    }\n    function unsupportedRefresh() {\n      throw Error(\n        \"Refreshing the cache is not supported in Server Components.\"\n      );\n    }\n    function unsupportedContext() {\n      throw Error(\"Cannot read a Client Context from a Server Component.\");\n    }\n    function prepareStackTrace(error, structuredStackTrace) {\n      error = (error.name || \"Error\") + \": \" + (error.message || \"\");\n      for (var i = 0; i < structuredStackTrace.length; i++)\n        error += \"\\n    at \" + structuredStackTrace[i].toString();\n      return error;\n    }\n    function resetOwnerStackLimit() {\n      var now = getCurrentTime();\n      1e3 < now - lastResetTime &&\n        ((ReactSharedInternalsServer.recentlyCreatedOwnerStacks = 0),\n        (lastResetTime = now));\n    }\n    function isObjectPrototype(object) {\n      if (!object) return !1;\n      var ObjectPrototype = Object.prototype;\n      if (object === ObjectPrototype) return !0;\n      if (getPrototypeOf(object)) return !1;\n      object = Object.getOwnPropertyNames(object);\n      for (var i = 0; i < object.length; i++)\n        if (!(object[i] in ObjectPrototype)) return !1;\n      return !0;\n    }\n    function isGetter(object, name) {\n      if (object === Object.prototype || null === object) return !1;\n      var descriptor = Object.getOwnPropertyDescriptor(object, name);\n      return void 0 === descriptor\n        ? isGetter(getPrototypeOf(object), name)\n        : \"function\" === typeof descriptor.get;\n    }\n    function isSimpleObject(object) {\n      if (!isObjectPrototype(getPrototypeOf(object))) return !1;\n      for (\n        var names = Object.getOwnPropertyNames(object), i = 0;\n        i < names.length;\n        i++\n      ) {\n        var descriptor = Object.getOwnPropertyDescriptor(object, names[i]);\n        if (\n          !descriptor ||\n          (!descriptor.enumerable &&\n            ((\"key\" !== names[i] && \"ref\" !== names[i]) ||\n              \"function\" !== typeof descriptor.get))\n        )\n          return !1;\n      }\n      return !0;\n    }\n    function objectName(object) {\n      object = Object.prototype.toString.call(object);\n      return object.slice(8, object.length - 1);\n    }\n    function describeKeyForErrorMessage(key) {\n      var encodedKey = JSON.stringify(key);\n      return '\"' + key + '\"' === encodedKey ? key : encodedKey;\n    }\n    function describeValueForErrorMessage(value) {\n      switch (typeof value) {\n        case \"string\":\n          return JSON.stringify(\n            10 >= value.length ? value : value.slice(0, 10) + \"...\"\n          );\n        case \"object\":\n          if (isArrayImpl(value)) return \"[...]\";\n          if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)\n            return \"client\";\n          value = objectName(value);\n          return \"Object\" === value ? \"{...}\" : value;\n        case \"function\":\n          return value.$$typeof === CLIENT_REFERENCE_TAG\n            ? \"client\"\n            : (value = value.displayName || value.name)\n              ? \"function \" + value\n              : \"function\";\n        default:\n          return String(value);\n      }\n    }\n    function describeElementType(type) {\n      if (\"string\" === typeof type) return type;\n      switch (type) {\n        case REACT_SUSPENSE_TYPE:\n          return \"Suspense\";\n        case REACT_SUSPENSE_LIST_TYPE:\n          return \"SuspenseList\";\n        case REACT_VIEW_TRANSITION_TYPE:\n          return \"ViewTransition\";\n      }\n      if (\"object\" === typeof type)\n        switch (type.$$typeof) {\n          case REACT_FORWARD_REF_TYPE:\n            return describeElementType(type.render);\n          case REACT_MEMO_TYPE:\n            return describeElementType(type.type);\n          case REACT_LAZY_TYPE:\n            var payload = type._payload;\n            type = type._init;\n            try {\n              return describeElementType(type(payload));\n            } catch (x) {}\n        }\n      return \"\";\n    }\n    function describeObjectForErrorMessage(objectOrArray, expandedName) {\n      var objKind = objectName(objectOrArray);\n      if (\"Object\" !== objKind && \"Array\" !== objKind) return objKind;\n      var start = -1,\n        length = 0;\n      if (isArrayImpl(objectOrArray))\n        if (jsxChildrenParents.has(objectOrArray)) {\n          var type = jsxChildrenParents.get(objectOrArray);\n          objKind = \"<\" + describeElementType(type) + \">\";\n          for (var i = 0; i < objectOrArray.length; i++) {\n            var value = objectOrArray[i];\n            value =\n              \"string\" === typeof value\n                ? value\n                : \"object\" === typeof value && null !== value\n                  ? \"{\" + describeObjectForErrorMessage(value) + \"}\"\n                  : \"{\" + describeValueForErrorMessage(value) + \"}\";\n            \"\" + i === expandedName\n              ? ((start = objKind.length),\n                (length = value.length),\n                (objKind += value))\n              : (objKind =\n                  15 > value.length && 40 > objKind.length + value.length\n                    ? objKind + value\n                    : objKind + \"{...}\");\n          }\n          objKind += \"</\" + describeElementType(type) + \">\";\n        } else {\n          objKind = \"[\";\n          for (type = 0; type < objectOrArray.length; type++)\n            0 < type && (objKind += \", \"),\n              (i = objectOrArray[type]),\n              (i =\n                \"object\" === typeof i && null !== i\n                  ? describeObjectForErrorMessage(i)\n                  : describeValueForErrorMessage(i)),\n              \"\" + type === expandedName\n                ? ((start = objKind.length),\n                  (length = i.length),\n                  (objKind += i))\n                : (objKind =\n                    10 > i.length && 40 > objKind.length + i.length\n                      ? objKind + i\n                      : objKind + \"...\");\n          objKind += \"]\";\n        }\n      else if (objectOrArray.$$typeof === REACT_ELEMENT_TYPE)\n        objKind = \"<\" + describeElementType(objectOrArray.type) + \"/>\";\n      else {\n        if (objectOrArray.$$typeof === CLIENT_REFERENCE_TAG) return \"client\";\n        if (jsxPropsParents.has(objectOrArray)) {\n          objKind = jsxPropsParents.get(objectOrArray);\n          objKind = \"<\" + (describeElementType(objKind) || \"...\");\n          type = Object.keys(objectOrArray);\n          for (i = 0; i < type.length; i++) {\n            objKind += \" \";\n            value = type[i];\n            objKind += describeKeyForErrorMessage(value) + \"=\";\n            var _value2 = objectOrArray[value];\n            var _substr2 =\n              value === expandedName &&\n              \"object\" === typeof _value2 &&\n              null !== _value2\n                ? describeObjectForErrorMessage(_value2)\n                : describeValueForErrorMessage(_value2);\n            \"string\" !== typeof _value2 && (_substr2 = \"{\" + _substr2 + \"}\");\n            value === expandedName\n              ? ((start = objKind.length),\n                (length = _substr2.length),\n                (objKind += _substr2))\n              : (objKind =\n                  10 > _substr2.length && 40 > objKind.length + _substr2.length\n                    ? objKind + _substr2\n                    : objKind + \"...\");\n          }\n          objKind += \">\";\n        } else {\n          objKind = \"{\";\n          type = Object.keys(objectOrArray);\n          for (i = 0; i < type.length; i++)\n            0 < i && (objKind += \", \"),\n              (value = type[i]),\n              (objKind += describeKeyForErrorMessage(value) + \": \"),\n              (_value2 = objectOrArray[value]),\n              (_value2 =\n                \"object\" === typeof _value2 && null !== _value2\n                  ? describeObjectForErrorMessage(_value2)\n                  : describeValueForErrorMessage(_value2)),\n              value === expandedName\n                ? ((start = objKind.length),\n                  (length = _value2.length),\n                  (objKind += _value2))\n                : (objKind =\n                    10 > _value2.length && 40 > objKind.length + _value2.length\n                      ? objKind + _value2\n                      : objKind + \"...\");\n          objKind += \"}\";\n        }\n      }\n      return void 0 === expandedName\n        ? objKind\n        : -1 < start && 0 < length\n          ? ((objectOrArray = \" \".repeat(start) + \"^\".repeat(length)),\n            \"\\n  \" + objKind + \"\\n  \" + objectOrArray)\n          : \"\\n  \" + objKind;\n    }\n    function defaultFilterStackFrame(filename) {\n      return (\n        \"\" !== filename &&\n        !filename.startsWith(\"node:\") &&\n        !filename.includes(\"node_modules\")\n      );\n    }\n    function devirtualizeURL(url) {\n      if (url.startsWith(\"about://React/\")) {\n        var envIdx = url.indexOf(\"/\", 14),\n          suffixIdx = url.lastIndexOf(\"?\");\n        if (-1 < envIdx && -1 < suffixIdx)\n          return decodeURI(url.slice(envIdx + 1, suffixIdx));\n      }\n      return url;\n    }\n    function isPromiseCreationInternal(url, functionName) {\n      if (\"node:internal/async_hooks\" === url) return !0;\n      if (\"\" !== url) return !1;\n      switch (functionName) {\n        case \"new Promise\":\n        case \"Function.withResolvers\":\n        case \"Promise.withResolvers\":\n        case \"Function.reject\":\n        case \"Promise.reject\":\n        case \"Function.resolve\":\n        case \"Promise.resolve\":\n        case \"Function.all\":\n        case \"Promise.all\":\n        case \"Function.allSettled\":\n        case \"Promise.allSettled\":\n        case \"Function.race\":\n        case \"Promise.race\":\n        case \"Function.try\":\n        case \"Promise.try\":\n          return !0;\n        default:\n          return !1;\n      }\n    }\n    function filterStackTrace(request, stack) {\n      request = request.filterStackFrame;\n      for (var filteredStack = [], i = 0; i < stack.length; i++) {\n        var callsite = stack[i],\n          functionName = callsite[0],\n          url = devirtualizeURL(callsite[1]);\n        request(url, functionName, callsite[2], callsite[3]) &&\n          ((callsite = callsite.slice(0)),\n          (callsite[1] = url),\n          filteredStack.push(callsite));\n      }\n      return filteredStack;\n    }\n    function hasUnfilteredFrame(request, stack) {\n      request = request.filterStackFrame;\n      for (var i = 0; i < stack.length; i++) {\n        var callsite = stack[i],\n          functionName = callsite[0],\n          url = devirtualizeURL(callsite[1]),\n          lineNumber = callsite[2],\n          columnNumber = callsite[3];\n        if (\n          !callsite[6] &&\n          request(url, functionName, lineNumber, columnNumber) &&\n          \"\" !== url\n        )\n          return !0;\n      }\n      return !1;\n    }\n    function isPromiseAwaitInternal(url, functionName) {\n      if (\"node:internal/async_hooks\" === url) return !0;\n      if (\"\" !== url) return !1;\n      switch (functionName) {\n        case \"Promise.then\":\n        case \"Promise.catch\":\n        case \"Promise.finally\":\n        case \"Function.reject\":\n        case \"Promise.reject\":\n        case \"Function.resolve\":\n        case \"Promise.resolve\":\n        case \"Function.all\":\n        case \"Promise.all\":\n        case \"Function.allSettled\":\n        case \"Promise.allSettled\":\n        case \"Function.any\":\n        case \"Promise.any\":\n        case \"Function.race\":\n        case \"Promise.race\":\n        case \"Function.try\":\n        case \"Promise.try\":\n        case \"Function.withResolvers\":\n        case \"Promise.withResolvers\":\n          return !0;\n        default:\n          return !1;\n      }\n    }\n    function isAwaitInUserspace(request, stack) {\n      for (\n        var firstFrame = 0;\n        stack.length > firstFrame &&\n        isPromiseAwaitInternal(stack[firstFrame][1], stack[firstFrame][0]);\n\n      )\n        firstFrame++;\n      if (stack.length > firstFrame) {\n        request = request.filterStackFrame;\n        stack = stack[firstFrame];\n        firstFrame = stack[0];\n        var url = devirtualizeURL(stack[1]);\n        return request(url, firstFrame, stack[2], stack[3]) && \"\" !== url;\n      }\n      return !1;\n    }\n    function patchConsole(consoleInst, methodName) {\n      var descriptor = Object.getOwnPropertyDescriptor(consoleInst, methodName);\n      if (\n        descriptor &&\n        (descriptor.configurable || descriptor.writable) &&\n        \"function\" === typeof descriptor.value\n      ) {\n        var originalMethod = descriptor.value;\n        descriptor = Object.getOwnPropertyDescriptor(originalMethod, \"name\");\n        var wrapperMethod = function () {\n          var request = resolveRequest();\n          if ((\"assert\" !== methodName || !arguments[0]) && null !== request) {\n            var stack = filterStackTrace(\n              request,\n              parseStackTracePrivate(Error(\"react-stack-top-frame\"), 1) || []\n            );\n            request.pendingDebugChunks++;\n            var owner = resolveOwner(),\n              args = Array.from(arguments);\n            a: {\n              var env = 0;\n              switch (methodName) {\n                case \"dir\":\n                case \"dirxml\":\n                case \"groupEnd\":\n                case \"table\":\n                  env = null;\n                  break a;\n                case \"assert\":\n                  env = 1;\n              }\n              var format = args[env],\n                style = args[env + 1],\n                badge = args[env + 2];\n              \"string\" === typeof format &&\n              format.startsWith(\"\\u001b[0m\\u001b[7m%c%s\\u001b[0m%c\") &&\n              \"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px\" ===\n                style &&\n              \"string\" === typeof badge\n                ? ((format = format.slice(18)),\n                  \" \" === format[0] && (format = format.slice(1)),\n                  args.splice(env, 4, format),\n                  (env = badge.slice(1, badge.length - 1)))\n                : (env = null);\n            }\n            null === env && (env = (0, request.environmentName)());\n            null != owner && outlineComponentInfo(request, owner);\n            badge = [methodName, stack, owner, env];\n            badge.push.apply(badge, args);\n            args = serializeDebugModel(\n              request,\n              (null === request.deferredDebugObjects ? 500 : 10) + stack.length,\n              badge\n            );\n            \"[\" !== args[0] &&\n              (args = serializeDebugModel(request, 10 + stack.length, [\n                methodName,\n                stack,\n                owner,\n                env,\n                \"Unknown Value: React could not send it from the server.\"\n              ]));\n            request.completedDebugChunks.push(\":W\" + args + \"\\n\");\n          }\n          return originalMethod.apply(this, arguments);\n        };\n        descriptor && Object.defineProperty(wrapperMethod, \"name\", descriptor);\n        Object.defineProperty(consoleInst, methodName, {\n          value: wrapperMethod\n        });\n      }\n    }\n    function getCurrentStackInDEV() {\n      var owner = resolveOwner();\n      if (null === owner) return \"\";\n      try {\n        var info = \"\";\n        if (owner.owner || \"string\" !== typeof owner.name) {\n          for (; owner; ) {\n            var ownerStack = owner.debugStack;\n            if (null != ownerStack) {\n              if ((owner = owner.owner)) {\n                var JSCompiler_temp_const = info;\n                var error = ownerStack,\n                  prevPrepareStackTrace = Error.prepareStackTrace;\n                Error.prepareStackTrace = prepareStackTrace;\n                var stack = error.stack;\n                Error.prepareStackTrace = prevPrepareStackTrace;\n                stack.startsWith(\"Error: react-stack-top-frame\\n\") &&\n                  (stack = stack.slice(29));\n                var idx = stack.indexOf(\"\\n\");\n                -1 !== idx && (stack = stack.slice(idx + 1));\n                idx = stack.indexOf(\"react_stack_bottom_frame\");\n                -1 !== idx && (idx = stack.lastIndexOf(\"\\n\", idx));\n                var JSCompiler_inline_result =\n                  -1 !== idx ? (stack = stack.slice(0, idx)) : \"\";\n                info =\n                  JSCompiler_temp_const + (\"\\n\" + JSCompiler_inline_result);\n              }\n            } else break;\n          }\n          var JSCompiler_inline_result$jscomp$0 = info;\n        } else {\n          JSCompiler_temp_const = owner.name;\n          if (void 0 === prefix)\n            try {\n              throw Error();\n            } catch (x) {\n              (prefix =\n                ((error = x.stack.trim().match(/\\n( *(at )?)/)) && error[1]) ||\n                \"\"),\n                (suffix =\n                  -1 < x.stack.indexOf(\"\\n    at\")\n                    ? \" (<anonymous>)\"\n                    : -1 < x.stack.indexOf(\"@\")\n                      ? \"@unknown:0:0\"\n                      : \"\");\n            }\n          JSCompiler_inline_result$jscomp$0 =\n            \"\\n\" + prefix + JSCompiler_temp_const + suffix;\n        }\n      } catch (x) {\n        JSCompiler_inline_result$jscomp$0 =\n          \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n      }\n      return JSCompiler_inline_result$jscomp$0;\n    }\n    function defaultErrorHandler(error) {\n      console.error(error);\n    }\n    function RequestInstance(\n      type,\n      model,\n      bundlerConfig,\n      onError,\n      onAllReady,\n      onFatalError,\n      identifierPrefix,\n      temporaryReferences,\n      debugStartTime,\n      environmentName,\n      filterStackFrame,\n      keepDebugAlive\n    ) {\n      if (\n        null !== ReactSharedInternalsServer.A &&\n        ReactSharedInternalsServer.A !== DefaultAsyncDispatcher\n      )\n        throw Error(\n          \"Currently React only supports one RSC renderer at a time.\"\n        );\n      ReactSharedInternalsServer.A = DefaultAsyncDispatcher;\n      ReactSharedInternalsServer.getCurrentStack = getCurrentStackInDEV;\n      var abortSet = new Set(),\n        pingedTasks = [],\n        hints = new Set();\n      this.type = type;\n      this.status = OPENING;\n      this.flushScheduled = !1;\n      this.destination = this.fatalError = null;\n      this.bundlerConfig = bundlerConfig;\n      this.cache = new Map();\n      this.cacheController = new AbortController();\n      this.pendingChunks = this.nextChunkId = 0;\n      this.hints = hints;\n      this.abortableTasks = abortSet;\n      this.pingedTasks = pingedTasks;\n      this.completedImportChunks = [];\n      this.completedHintChunks = [];\n      this.completedRegularChunks = [];\n      this.completedErrorChunks = [];\n      this.writtenSymbols = new Map();\n      this.writtenClientReferences = new Map();\n      this.writtenServerReferences = new Map();\n      this.writtenObjects = new WeakMap();\n      this.temporaryReferences = temporaryReferences;\n      this.identifierPrefix = identifierPrefix || \"\";\n      this.identifierCount = 1;\n      this.taintCleanupQueue = [];\n      this.onError = void 0 === onError ? defaultErrorHandler : onError;\n      this.onAllReady = onAllReady;\n      this.onFatalError = onFatalError;\n      this.pendingDebugChunks = 0;\n      this.completedDebugChunks = [];\n      this.debugDestination = null;\n      this.environmentName =\n        void 0 === environmentName\n          ? function () {\n              return \"Server\";\n            }\n          : \"function\" !== typeof environmentName\n            ? function () {\n                return environmentName;\n              }\n            : environmentName;\n      this.filterStackFrame =\n        void 0 === filterStackFrame\n          ? defaultFilterStackFrame\n          : filterStackFrame;\n      this.didWarnForKey = null;\n      this.writtenDebugObjects = new WeakMap();\n      this.deferredDebugObjects = keepDebugAlive\n        ? { retained: new Map(), existing: new Map() }\n        : null;\n      type =\n        \"number\" === typeof debugStartTime\n          ? (this.timeOrigin = debugStartTime - performance.timeOrigin)\n          : (this.timeOrigin = performance.now());\n      emitTimeOriginChunk(this, type + performance.timeOrigin);\n      this.abortTime = -0;\n      model = createTask(\n        this,\n        model,\n        null,\n        !1,\n        0,\n        abortSet,\n        type,\n        null,\n        null,\n        null\n      );\n      pingedTasks.push(model);\n    }\n    function createRequest(\n      model,\n      bundlerConfig,\n      onError,\n      identifierPrefix,\n      temporaryReferences,\n      debugStartTime,\n      environmentName,\n      filterStackFrame,\n      keepDebugAlive\n    ) {\n      resetOwnerStackLimit();\n      return new RequestInstance(\n        20,\n        model,\n        bundlerConfig,\n        onError,\n        noop,\n        noop,\n        identifierPrefix,\n        temporaryReferences,\n        debugStartTime,\n        environmentName,\n        filterStackFrame,\n        keepDebugAlive\n      );\n    }\n    function createPrerenderRequest(\n      model,\n      bundlerConfig,\n      onAllReady,\n      onFatalError,\n      onError,\n      identifierPrefix,\n      temporaryReferences,\n      debugStartTime,\n      environmentName,\n      filterStackFrame,\n      keepDebugAlive\n    ) {\n      resetOwnerStackLimit();\n      return new RequestInstance(\n        PRERENDER,\n        model,\n        bundlerConfig,\n        onError,\n        onAllReady,\n        onFatalError,\n        identifierPrefix,\n        temporaryReferences,\n        debugStartTime,\n        environmentName,\n        filterStackFrame,\n        keepDebugAlive\n      );\n    }\n    function resolveRequest() {\n      if (currentRequest) return currentRequest;\n      var store = requestStorage.getStore();\n      return store ? store : null;\n    }\n    function serializeDebugThenable(request, counter, thenable) {\n      request.pendingDebugChunks++;\n      var id = request.nextChunkId++,\n        ref = \"$@\" + id.toString(16);\n      request.writtenDebugObjects.set(thenable, ref);\n      switch (thenable.status) {\n        case \"fulfilled\":\n          return (\n            emitOutlinedDebugModelChunk(request, id, counter, thenable.value),\n            ref\n          );\n        case \"rejected\":\n          return (\n            emitErrorChunk(request, id, \"\", thenable.reason, !0, null), ref\n          );\n      }\n      if (request.status === ABORTING)\n        return emitDebugHaltChunk(request, id), ref;\n      var deferredDebugObjects = request.deferredDebugObjects;\n      if (null !== deferredDebugObjects)\n        return (\n          deferredDebugObjects.retained.set(id, thenable),\n          (ref = \"$Y@\" + id.toString(16)),\n          request.writtenDebugObjects.set(thenable, ref),\n          ref\n        );\n      var cancelled = !1;\n      thenable.then(\n        function (value) {\n          cancelled ||\n            ((cancelled = !0),\n            request.status === ABORTING\n              ? emitDebugHaltChunk(request, id)\n              : (isArrayImpl(value) && 200 < value.length) ||\n                  ((value instanceof ArrayBuffer ||\n                    value instanceof Int8Array ||\n                    value instanceof Uint8Array ||\n                    value instanceof Uint8ClampedArray ||\n                    value instanceof Int16Array ||\n                    value instanceof Uint16Array ||\n                    value instanceof Int32Array ||\n                    value instanceof Uint32Array ||\n                    value instanceof Float32Array ||\n                    value instanceof Float64Array ||\n                    value instanceof BigInt64Array ||\n                    value instanceof BigUint64Array ||\n                    value instanceof DataView) &&\n                    1e3 < value.byteLength)\n                ? emitDebugHaltChunk(request, id)\n                : emitOutlinedDebugModelChunk(request, id, counter, value),\n            enqueueFlush(request));\n        },\n        function (reason) {\n          cancelled ||\n            ((cancelled = !0),\n            request.status === ABORTING\n              ? emitDebugHaltChunk(request, id)\n              : emitErrorChunk(request, id, \"\", reason, !0, null),\n            enqueueFlush(request));\n        }\n      );\n      Promise.resolve().then(function () {\n        cancelled ||\n          ((cancelled = !0),\n          emitDebugHaltChunk(request, id),\n          enqueueFlush(request),\n          (counter = request = null));\n      });\n      return ref;\n    }\n    function emitRequestedDebugThenable(request, id, counter, thenable) {\n      thenable.then(\n        function (value) {\n          request.status === ABORTING\n            ? emitDebugHaltChunk(request, id)\n            : emitOutlinedDebugModelChunk(request, id, counter, value);\n          enqueueFlush(request);\n        },\n        function (reason) {\n          request.status === ABORTING\n            ? emitDebugHaltChunk(request, id)\n            : emitErrorChunk(request, id, \"\", reason, !0, null);\n          enqueueFlush(request);\n        }\n      );\n    }\n    function serializeThenable(request, task, thenable) {\n      var newTask = createTask(\n        request,\n        thenable,\n        task.keyPath,\n        task.implicitSlot,\n        task.formatContext,\n        request.abortableTasks,\n        task.time,\n        task.debugOwner,\n        task.debugStack,\n        task.debugTask\n      );\n      switch (thenable.status) {\n        case \"fulfilled\":\n          return (\n            forwardDebugInfoFromThenable(\n              request,\n              newTask,\n              thenable,\n              null,\n              null\n            ),\n            (newTask.model = thenable.value),\n            pingTask(request, newTask),\n            newTask.id\n          );\n        case \"rejected\":\n          return (\n            forwardDebugInfoFromThenable(\n              request,\n              newTask,\n              thenable,\n              null,\n              null\n            ),\n            erroredTask(request, newTask, thenable.reason),\n            newTask.id\n          );\n        default:\n          if (request.status === ABORTING)\n            return (\n              request.abortableTasks.delete(newTask),\n              request.type === PRERENDER\n                ? (haltTask(newTask), finishHaltedTask(newTask, request))\n                : ((task = request.fatalError),\n                  abortTask(newTask),\n                  finishAbortedTask(newTask, request, task)),\n              newTask.id\n            );\n          \"string\" !== typeof thenable.status &&\n            ((thenable.status = \"pending\"),\n            thenable.then(\n              function (fulfilledValue) {\n                \"pending\" === thenable.status &&\n                  ((thenable.status = \"fulfilled\"),\n                  (thenable.value = fulfilledValue));\n              },\n              function (error) {\n                \"pending\" === thenable.status &&\n                  ((thenable.status = \"rejected\"), (thenable.reason = error));\n              }\n            ));\n      }\n      thenable.then(\n        function (value) {\n          forwardDebugInfoFromCurrentContext(request, newTask, thenable);\n          newTask.model = value;\n          pingTask(request, newTask);\n        },\n        function (reason) {\n          newTask.status === PENDING$1 &&\n            ((newTask.timed = !0),\n            erroredTask(request, newTask, reason),\n            enqueueFlush(request));\n        }\n      );\n      return newTask.id;\n    }\n    function serializeReadableStream(request, task, stream) {\n      function progress(entry) {\n        if (streamTask.status === PENDING$1)\n          if (entry.done)\n            (streamTask.status = COMPLETED),\n              (entry = streamTask.id.toString(16) + \":C\\n\"),\n              request.completedRegularChunks.push(entry),\n              request.abortableTasks.delete(streamTask),\n              request.cacheController.signal.removeEventListener(\n                \"abort\",\n                abortStream\n              ),\n              enqueueFlush(request),\n              callOnAllReadyIfReady(request);\n          else\n            try {\n              request.pendingChunks++,\n                (streamTask.model = entry.value),\n                isByteStream\n                  ? emitTypedArrayChunk(\n                      request,\n                      streamTask.id,\n                      \"b\",\n                      streamTask.model,\n                      !1\n                    )\n                  : tryStreamTask(request, streamTask),\n                enqueueFlush(request),\n                reader.read().then(progress, error);\n            } catch (x$6) {\n              error(x$6);\n            }\n      }\n      function error(reason) {\n        streamTask.status === PENDING$1 &&\n          (request.cacheController.signal.removeEventListener(\n            \"abort\",\n            abortStream\n          ),\n          erroredTask(request, streamTask, reason),\n          enqueueFlush(request),\n          reader.cancel(reason).then(error, error));\n      }\n      function abortStream() {\n        if (streamTask.status === PENDING$1) {\n          var signal = request.cacheController.signal;\n          signal.removeEventListener(\"abort\", abortStream);\n          signal = signal.reason;\n          request.type === PRERENDER\n            ? (request.abortableTasks.delete(streamTask),\n              haltTask(streamTask),\n              finishHaltedTask(streamTask, request))\n            : (erroredTask(request, streamTask, signal), enqueueFlush(request));\n          reader.cancel(signal).then(error, error);\n        }\n      }\n      var supportsBYOB = stream.supportsBYOB;\n      if (void 0 === supportsBYOB)\n        try {\n          stream.getReader({ mode: \"byob\" }).releaseLock(), (supportsBYOB = !0);\n        } catch (x) {\n          supportsBYOB = !1;\n        }\n      var isByteStream = supportsBYOB,\n        reader = stream.getReader(),\n        streamTask = createTask(\n          request,\n          task.model,\n          task.keyPath,\n          task.implicitSlot,\n          task.formatContext,\n          request.abortableTasks,\n          task.time,\n          task.debugOwner,\n          task.debugStack,\n          task.debugTask\n        );\n      request.pendingChunks++;\n      task =\n        streamTask.id.toString(16) + \":\" + (isByteStream ? \"r\" : \"R\") + \"\\n\";\n      request.completedRegularChunks.push(task);\n      request.cacheController.signal.addEventListener(\"abort\", abortStream);\n      reader.read().then(progress, error);\n      return serializeByValueID(streamTask.id);\n    }\n    function serializeAsyncIterable(request, task, iterable, iterator) {\n      function progress(entry) {\n        if (streamTask.status === PENDING$1)\n          if (entry.done) {\n            streamTask.status = COMPLETED;\n            if (void 0 === entry.value)\n              var endStreamRow = streamTask.id.toString(16) + \":C\\n\";\n            else\n              try {\n                var chunkId = outlineModel(request, entry.value);\n                endStreamRow =\n                  streamTask.id.toString(16) +\n                  \":C\" +\n                  stringify(serializeByValueID(chunkId)) +\n                  \"\\n\";\n              } catch (x) {\n                error(x);\n                return;\n              }\n            request.completedRegularChunks.push(endStreamRow);\n            request.abortableTasks.delete(streamTask);\n            request.cacheController.signal.removeEventListener(\n              \"abort\",\n              abortIterable\n            );\n            enqueueFlush(request);\n            callOnAllReadyIfReady(request);\n          } else\n            try {\n              (streamTask.model = entry.value),\n                request.pendingChunks++,\n                tryStreamTask(request, streamTask),\n                enqueueFlush(request),\n                callIteratorInDEV(iterator, progress, error);\n            } catch (x$7) {\n              error(x$7);\n            }\n      }\n      function error(reason) {\n        streamTask.status === PENDING$1 &&\n          (request.cacheController.signal.removeEventListener(\n            \"abort\",\n            abortIterable\n          ),\n          erroredTask(request, streamTask, reason),\n          enqueueFlush(request),\n          \"function\" === typeof iterator.throw &&\n            iterator.throw(reason).then(noop, noop));\n      }\n      function abortIterable() {\n        if (streamTask.status === PENDING$1) {\n          var signal = request.cacheController.signal;\n          signal.removeEventListener(\"abort\", abortIterable);\n          var reason = signal.reason;\n          request.type === PRERENDER\n            ? (request.abortableTasks.delete(streamTask),\n              haltTask(streamTask),\n              finishHaltedTask(streamTask, request))\n            : (erroredTask(request, streamTask, signal.reason),\n              enqueueFlush(request));\n          \"function\" === typeof iterator.throw &&\n            iterator.throw(reason).then(noop, noop);\n        }\n      }\n      var isIterator = iterable === iterator,\n        streamTask = createTask(\n          request,\n          task.model,\n          task.keyPath,\n          task.implicitSlot,\n          task.formatContext,\n          request.abortableTasks,\n          task.time,\n          task.debugOwner,\n          task.debugStack,\n          task.debugTask\n        );\n      (task = iterable._debugInfo) &&\n        forwardDebugInfo(request, streamTask, task);\n      request.pendingChunks++;\n      isIterator =\n        streamTask.id.toString(16) + \":\" + (isIterator ? \"x\" : \"X\") + \"\\n\";\n      request.completedRegularChunks.push(isIterator);\n      request.cacheController.signal.addEventListener(\"abort\", abortIterable);\n      callIteratorInDEV(iterator, progress, error);\n      return serializeByValueID(streamTask.id);\n    }\n    function emitHint(request, code, model) {\n      model = stringify(model);\n      request.completedHintChunks.push(\":H\" + code + model + \"\\n\");\n      enqueueFlush(request);\n    }\n    function readThenable(thenable) {\n      if (\"fulfilled\" === thenable.status) return thenable.value;\n      if (\"rejected\" === thenable.status) throw thenable.reason;\n      throw thenable;\n    }\n    function createLazyWrapperAroundWakeable(request, task, wakeable) {\n      switch (wakeable.status) {\n        case \"fulfilled\":\n          return (\n            forwardDebugInfoFromThenable(request, task, wakeable, null, null),\n            wakeable.value\n          );\n        case \"rejected\":\n          forwardDebugInfoFromThenable(request, task, wakeable, null, null);\n          break;\n        default:\n          \"string\" !== typeof wakeable.status &&\n            ((wakeable.status = \"pending\"),\n            wakeable.then(\n              function (fulfilledValue) {\n                forwardDebugInfoFromCurrentContext(request, task, wakeable);\n                \"pending\" === wakeable.status &&\n                  ((wakeable.status = \"fulfilled\"),\n                  (wakeable.value = fulfilledValue));\n              },\n              function (error) {\n                forwardDebugInfoFromCurrentContext(request, task, wakeable);\n                \"pending\" === wakeable.status &&\n                  ((wakeable.status = \"rejected\"), (wakeable.reason = error));\n              }\n            ));\n      }\n      return {\n        $$typeof: REACT_LAZY_TYPE,\n        _payload: wakeable,\n        _init: readThenable\n      };\n    }\n    function callWithDebugContextInDEV(request, task, callback, arg) {\n      var componentDebugInfo = {\n        name: \"\",\n        env: task.environmentName,\n        key: null,\n        owner: task.debugOwner\n      };\n      componentDebugInfo.stack =\n        null === task.debugStack\n          ? null\n          : filterStackTrace(request, parseStackTrace(task.debugStack, 1));\n      componentDebugInfo.debugStack = task.debugStack;\n      request = componentDebugInfo.debugTask = task.debugTask;\n      currentOwner = componentDebugInfo;\n      try {\n        return request ? request.run(callback.bind(null, arg)) : callback(arg);\n      } finally {\n        currentOwner = null;\n      }\n    }\n    function processServerComponentReturnValue(\n      request,\n      task,\n      Component,\n      result\n    ) {\n      if (\n        \"object\" !== typeof result ||\n        null === result ||\n        isClientReference(result)\n      )\n        return result;\n      if (\"function\" === typeof result.then)\n        return (\n          result.then(function (resolvedValue) {\n            \"object\" === typeof resolvedValue &&\n              null !== resolvedValue &&\n              resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&\n              (resolvedValue._store.validated = 1);\n          }, voidHandler),\n          createLazyWrapperAroundWakeable(request, task, result)\n        );\n      result.$$typeof === REACT_ELEMENT_TYPE && (result._store.validated = 1);\n      var iteratorFn = getIteratorFn(result);\n      if (iteratorFn) {\n        var $jscomp$compprop0 = {};\n        $jscomp$compprop0 =\n          (($jscomp$compprop0[Symbol.iterator] = function () {\n            var iterator = iteratorFn.call(result);\n            iterator !== result ||\n              (\"[object GeneratorFunction]\" ===\n                Object.prototype.toString.call(Component) &&\n                \"[object Generator]\" ===\n                  Object.prototype.toString.call(result)) ||\n              callWithDebugContextInDEV(request, task, function () {\n                console.error(\n                  \"Returning an Iterator from a Server Component is not supported since it cannot be looped over more than once. \"\n                );\n              });\n            return iterator;\n          }),\n          $jscomp$compprop0);\n        $jscomp$compprop0._debugInfo = result._debugInfo;\n        return $jscomp$compprop0;\n      }\n      return \"function\" !== typeof result[ASYNC_ITERATOR] ||\n        (\"function\" === typeof ReadableStream &&\n          result instanceof ReadableStream)\n        ? result\n        : (($jscomp$compprop0 = {}),\n          ($jscomp$compprop0 =\n            (($jscomp$compprop0[ASYNC_ITERATOR] = function () {\n              var iterator = result[ASYNC_ITERATOR]();\n              iterator !== result ||\n                (\"[object AsyncGeneratorFunction]\" ===\n                  Object.prototype.toString.call(Component) &&\n                  \"[object AsyncGenerator]\" ===\n                    Object.prototype.toString.call(result)) ||\n                callWithDebugContextInDEV(request, task, function () {\n                  console.error(\n                    \"Returning an AsyncIterator from a Server Component is not supported since it cannot be looped over more than once. \"\n                  );\n                });\n              return iterator;\n            }),\n            $jscomp$compprop0)),\n          ($jscomp$compprop0._debugInfo = result._debugInfo),\n          $jscomp$compprop0);\n    }\n    function renderFunctionComponent(\n      request,\n      task,\n      key,\n      Component,\n      props,\n      validated\n    ) {\n      var prevThenableState = task.thenableState;\n      task.thenableState = null;\n      if (canEmitDebugInfo)\n        if (null !== prevThenableState)\n          var componentDebugInfo = prevThenableState._componentDebugInfo;\n        else {\n          var componentDebugID = task.id;\n          componentDebugInfo = Component.displayName || Component.name || \"\";\n          var componentEnv = (0, request.environmentName)();\n          request.pendingChunks++;\n          componentDebugInfo = {\n            name: componentDebugInfo,\n            env: componentEnv,\n            key: key,\n            owner: task.debugOwner\n          };\n          componentDebugInfo.stack =\n            null === task.debugStack\n              ? null\n              : filterStackTrace(request, parseStackTrace(task.debugStack, 1));\n          componentDebugInfo.props = props;\n          componentDebugInfo.debugStack = task.debugStack;\n          componentDebugInfo.debugTask = task.debugTask;\n          outlineComponentInfo(request, componentDebugInfo);\n          advanceTaskTime(request, task, performance.now());\n          emitDebugChunk(request, componentDebugID, componentDebugInfo);\n          task.environmentName = componentEnv;\n          2 === validated &&\n            warnForMissingKey(request, key, componentDebugInfo, task.debugTask);\n        }\n      else return outlineTask(request, task);\n      thenableIndexCounter = 0;\n      thenableState = prevThenableState;\n      currentComponentDebugInfo = componentDebugInfo;\n      props = task.debugTask\n        ? task.debugTask.run(\n            componentStorage.run.bind(\n              componentStorage,\n              componentDebugInfo,\n              callComponentInDEV,\n              Component,\n              props,\n              componentDebugInfo\n            )\n          )\n        : componentStorage.run(\n            componentDebugInfo,\n            callComponentInDEV,\n            Component,\n            props,\n            componentDebugInfo\n          );\n      if (request.status === ABORTING)\n        throw (\n          (\"object\" !== typeof props ||\n            null === props ||\n            \"function\" !== typeof props.then ||\n            isClientReference(props) ||\n            props.then(voidHandler, voidHandler),\n          null)\n        );\n      validated = thenableState;\n      if (null !== validated)\n        for (\n          prevThenableState = validated._stacks || (validated._stacks = []),\n            componentDebugID = 0;\n          componentDebugID < validated.length;\n          componentDebugID++\n        )\n          forwardDebugInfoFromThenable(\n            request,\n            task,\n            validated[componentDebugID],\n            componentDebugInfo,\n            prevThenableState[componentDebugID]\n          );\n      props = processServerComponentReturnValue(\n        request,\n        task,\n        Component,\n        props\n      );\n      task.debugOwner = componentDebugInfo;\n      task.debugStack = null;\n      task.debugTask = null;\n      Component = task.keyPath;\n      componentDebugInfo = task.implicitSlot;\n      null !== key\n        ? (task.keyPath =\n            key === REACT_OPTIMISTIC_KEY || Component === REACT_OPTIMISTIC_KEY\n              ? REACT_OPTIMISTIC_KEY\n              : null === Component\n                ? key\n                : Component + \",\" + key)\n        : null === Component && (task.implicitSlot = !0);\n      request = renderModelDestructive(request, task, emptyRoot, \"\", props);\n      task.keyPath = Component;\n      task.implicitSlot = componentDebugInfo;\n      return request;\n    }\n    function warnForMissingKey(request, key, componentDebugInfo, debugTask) {\n      function logKeyError() {\n        console.error(\n          'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.',\n          \"\",\n          \"\"\n        );\n      }\n      key = request.didWarnForKey;\n      null == key && (key = request.didWarnForKey = new WeakSet());\n      request = componentDebugInfo.owner;\n      if (null != request) {\n        if (key.has(request)) return;\n        key.add(request);\n      }\n      debugTask\n        ? debugTask.run(\n            componentStorage.run.bind(\n              componentStorage,\n              componentDebugInfo,\n              callComponentInDEV,\n              logKeyError,\n              null,\n              componentDebugInfo\n            )\n          )\n        : componentStorage.run(\n            componentDebugInfo,\n            callComponentInDEV,\n            logKeyError,\n            null,\n            componentDebugInfo\n          );\n    }\n    function renderFragment(request, task, children) {\n      for (var i = 0; i < children.length; i++) {\n        var child = children[i];\n        null === child ||\n          \"object\" !== typeof child ||\n          child.$$typeof !== REACT_ELEMENT_TYPE ||\n          null !== child.key ||\n          child._store.validated ||\n          (child._store.validated = 2);\n      }\n      if (null !== task.keyPath)\n        return (\n          (request = [\n            REACT_ELEMENT_TYPE,\n            REACT_FRAGMENT_TYPE,\n            task.keyPath,\n            { children: children },\n            null,\n            null,\n            0\n          ]),\n          task.implicitSlot ? [request] : request\n        );\n      if ((i = children._debugInfo)) {\n        if (canEmitDebugInfo) forwardDebugInfo(request, task, i);\n        else return outlineTask(request, task);\n        children = Array.from(children);\n      }\n      return children;\n    }\n    function renderAsyncFragment(request, task, children, getAsyncIterator) {\n      if (null !== task.keyPath)\n        return (\n          (request = [\n            REACT_ELEMENT_TYPE,\n            REACT_FRAGMENT_TYPE,\n            task.keyPath,\n            { children: children },\n            null,\n            null,\n            0\n          ]),\n          task.implicitSlot ? [request] : request\n        );\n      getAsyncIterator = getAsyncIterator.call(children);\n      return serializeAsyncIterable(request, task, children, getAsyncIterator);\n    }\n    function deferTask(request, task) {\n      task = createTask(\n        request,\n        task.model,\n        task.keyPath,\n        task.implicitSlot,\n        task.formatContext,\n        request.abortableTasks,\n        task.time,\n        task.debugOwner,\n        task.debugStack,\n        task.debugTask\n      );\n      pingTask(request, task);\n      return serializeLazyID(task.id);\n    }\n    function outlineTask(request, task) {\n      task = createTask(\n        request,\n        task.model,\n        task.keyPath,\n        task.implicitSlot,\n        task.formatContext,\n        request.abortableTasks,\n        task.time,\n        task.debugOwner,\n        task.debugStack,\n        task.debugTask\n      );\n      retryTask(request, task);\n      return task.status === COMPLETED\n        ? serializeByValueID(task.id)\n        : serializeLazyID(task.id);\n    }\n    function renderElement(request, task, type, key, ref, props, validated) {\n      if (null !== ref && void 0 !== ref)\n        throw Error(\n          \"Refs cannot be used in Server Components, nor passed to Client Components.\"\n        );\n      jsxPropsParents.set(props, type);\n      \"object\" === typeof props.children &&\n        null !== props.children &&\n        jsxChildrenParents.set(props.children, type);\n      if (\n        \"function\" !== typeof type ||\n        isClientReference(type) ||\n        type.$$typeof === TEMPORARY_REFERENCE_TAG\n      ) {\n        if (type === REACT_FRAGMENT_TYPE && null === key)\n          return (\n            2 === validated &&\n              ((validated = {\n                name: \"Fragment\",\n                env: (0, request.environmentName)(),\n                key: key,\n                owner: task.debugOwner,\n                stack:\n                  null === task.debugStack\n                    ? null\n                    : filterStackTrace(\n                        request,\n                        parseStackTrace(task.debugStack, 1)\n                      ),\n                props: props,\n                debugStack: task.debugStack,\n                debugTask: task.debugTask\n              }),\n              warnForMissingKey(request, key, validated, task.debugTask)),\n            (validated = task.implicitSlot),\n            null === task.keyPath && (task.implicitSlot = !0),\n            (request = renderModelDestructive(\n              request,\n              task,\n              emptyRoot,\n              \"\",\n              props.children\n            )),\n            (task.implicitSlot = validated),\n            request\n          );\n        if (\n          null != type &&\n          \"object\" === typeof type &&\n          !isClientReference(type)\n        )\n          switch (type.$$typeof) {\n            case REACT_LAZY_TYPE:\n              type = callLazyInitInDEV(type);\n              if (request.status === ABORTING) throw null;\n              return renderElement(\n                request,\n                task,\n                type,\n                key,\n                ref,\n                props,\n                validated\n              );\n            case REACT_FORWARD_REF_TYPE:\n              return renderFunctionComponent(\n                request,\n                task,\n                key,\n                type.render,\n                props,\n                validated\n              );\n            case REACT_MEMO_TYPE:\n              return renderElement(\n                request,\n                task,\n                type.type,\n                key,\n                ref,\n                props,\n                validated\n              );\n            case REACT_ELEMENT_TYPE:\n              type._store.validated = 1;\n          }\n        else if (\"string\" === typeof type) {\n          ref = task.formatContext;\n          var newFormatContext = getChildFormatContext(ref, type, props);\n          ref !== newFormatContext &&\n            null != props.children &&\n            outlineModelWithFormatContext(\n              request,\n              props.children,\n              newFormatContext\n            );\n        }\n      } else\n        return renderFunctionComponent(\n          request,\n          task,\n          key,\n          type,\n          props,\n          validated\n        );\n      ref = task.keyPath;\n      null === key\n        ? (key = ref)\n        : null !== ref &&\n          (key =\n            ref === REACT_OPTIMISTIC_KEY || key === REACT_OPTIMISTIC_KEY\n              ? REACT_OPTIMISTIC_KEY\n              : ref + \",\" + key);\n      newFormatContext = null;\n      ref = task.debugOwner;\n      null !== ref && outlineComponentInfo(request, ref);\n      if (null !== task.debugStack) {\n        newFormatContext = filterStackTrace(\n          request,\n          parseStackTrace(task.debugStack, 1)\n        );\n        var id = outlineDebugModel(\n          request,\n          { objectLimit: 2 * newFormatContext.length + 1 },\n          newFormatContext\n        );\n        request.writtenObjects.set(newFormatContext, serializeByValueID(id));\n      }\n      request = [\n        REACT_ELEMENT_TYPE,\n        type,\n        key,\n        props,\n        ref,\n        newFormatContext,\n        validated\n      ];\n      task = task.implicitSlot && null !== key ? [request] : request;\n      return task;\n    }\n    function visitAsyncNode(\n      request,\n      task$jscomp$0,\n      node$jscomp$0,\n      visited,\n      cutOff\n    ) {\n      for (\n        var chain = [];\n        null !== node$jscomp$0 && !visited.has(node$jscomp$0);\n\n      )\n        chain.push(node$jscomp$0), (node$jscomp$0 = node$jscomp$0.previous);\n      var previousIONode =\n        null !== node$jscomp$0 ? visited.get(node$jscomp$0) : null;\n      for (\n        node$jscomp$0 = chain.length - 1;\n        0 <= node$jscomp$0;\n        node$jscomp$0--\n      ) {\n        var n = chain[node$jscomp$0];\n        visited.set(n, null);\n        var result = request;\n        var task = task$jscomp$0,\n          node = n,\n          visited$jscomp$0 = visited,\n          cutOff$jscomp$0 = cutOff;\n        if (0 <= node.end && node.end <= result.timeOrigin) result = null;\n        else\n          switch (node.tag) {\n            case 0:\n              result = node;\n              break;\n            case 3:\n              result = previousIONode;\n              break;\n            case 1:\n              var awaited = node.awaited,\n                promise = node.promise.deref();\n              if (null !== awaited)\n                if (\n                  ((cutOff$jscomp$0 = visitAsyncNode(\n                    result,\n                    task,\n                    awaited,\n                    visited$jscomp$0,\n                    cutOff$jscomp$0\n                  )),\n                  void 0 === cutOff$jscomp$0)\n                ) {\n                  result = void 0;\n                  break;\n                } else\n                  null !== cutOff$jscomp$0\n                    ? (previousIONode =\n                        1 === cutOff$jscomp$0.tag\n                          ? cutOff$jscomp$0\n                          : (null !== node.stack &&\n                                hasUnfilteredFrame(result, node.stack)) ||\n                              (void 0 !== promise &&\n                                \"string\" === typeof promise.displayName &&\n                                (null === cutOff$jscomp$0.stack ||\n                                  !hasUnfilteredFrame(\n                                    result,\n                                    cutOff$jscomp$0.stack\n                                  )))\n                            ? node\n                            : cutOff$jscomp$0)\n                    : result.status === ABORTING &&\n                      node.start < result.abortTime &&\n                      node.end > result.abortTime &&\n                      ((null !== node.stack &&\n                        hasUnfilteredFrame(result, node.stack)) ||\n                        (void 0 !== promise &&\n                          \"string\" === typeof promise.displayName)) &&\n                      (previousIONode = node);\n              void 0 !== promise &&\n                ((node = promise._debugInfo),\n                null == node ||\n                  visited$jscomp$0.has(node) ||\n                  (visited$jscomp$0.set(node, null),\n                  forwardDebugInfo(result, task, node)));\n              result = previousIONode;\n              break;\n            case 4:\n              result = previousIONode;\n              break;\n            case 2:\n              awaited = node.awaited;\n              if (null !== awaited)\n                if (\n                  ((promise = visitAsyncNode(\n                    result,\n                    task,\n                    awaited,\n                    visited$jscomp$0,\n                    cutOff$jscomp$0\n                  )),\n                  void 0 === promise)\n                ) {\n                  result = void 0;\n                  break;\n                } else if (null !== promise) {\n                  var startTime = node.start,\n                    endTime = node.end;\n                  startTime < cutOff$jscomp$0\n                    ? ((previousIONode = promise),\n                      null !== node.stack &&\n                        isAwaitInUserspace(result, node.stack) &&\n                        void 0 !==\n                          (null === awaited.promise\n                            ? void 0\n                            : awaited.promise.deref()) &&\n                        serializeIONode(result, promise, awaited.promise))\n                    : null !== node.stack &&\n                        isAwaitInUserspace(result, node.stack)\n                      ? (result.status === ABORTING &&\n                          startTime > result.abortTime) ||\n                        (serializeIONode(result, promise, awaited.promise),\n                        visited$jscomp$0.set(promise, null),\n                        null != node.owner &&\n                          outlineComponentInfo(result, node.owner),\n                        (cutOff$jscomp$0 = (0, result.environmentName)()),\n                        advanceTaskTime(result, task, startTime),\n                        result.pendingChunks++,\n                        emitDebugChunk(result, task.id, {\n                          awaited: promise,\n                          env: cutOff$jscomp$0,\n                          owner: node.owner,\n                          stack:\n                            null === node.stack\n                              ? null\n                              : filterStackTrace(result, node.stack)\n                        }),\n                        markOperationEndTime(result, task, endTime),\n                        result.status === ABORTING && (previousIONode = void 0))\n                      : (previousIONode = promise);\n                }\n              node = node.promise.deref();\n              void 0 !== node &&\n                ((node = node._debugInfo),\n                null == node ||\n                  visited$jscomp$0.has(node) ||\n                  (visited$jscomp$0.set(node, null),\n                  forwardDebugInfo(result, task, node)));\n              result = previousIONode;\n              break;\n            default:\n              throw Error(\"Unknown AsyncSequence tag. This is a bug in React.\");\n          }\n        null !== result && visited.set(n, result);\n        if (void 0 === result) return;\n        previousIONode = result;\n      }\n      return previousIONode;\n    }\n    function emitAsyncSequence(\n      request,\n      task,\n      node,\n      alreadyForwardedDebugInfo,\n      owner,\n      stack\n    ) {\n      var visited = new Map();\n      alreadyForwardedDebugInfo && visited.set(alreadyForwardedDebugInfo, null);\n      node = visitAsyncNode(request, task, node, visited, task.time);\n      void 0 !== node &&\n        null !== node &&\n        (serializeIONode(request, node, node.promise),\n        request.pendingChunks++,\n        (alreadyForwardedDebugInfo = (0, request.environmentName)()),\n        (alreadyForwardedDebugInfo = {\n          awaited: node,\n          env: alreadyForwardedDebugInfo\n        }),\n        null === owner && null === stack\n          ? (null !== task.debugOwner &&\n              (alreadyForwardedDebugInfo.owner = task.debugOwner),\n            null !== task.debugStack &&\n              (alreadyForwardedDebugInfo.stack = filterStackTrace(\n                request,\n                parseStackTrace(task.debugStack, 1)\n              )))\n          : (null != owner && (alreadyForwardedDebugInfo.owner = owner),\n            null != stack &&\n              (alreadyForwardedDebugInfo.stack = filterStackTrace(\n                request,\n                parseStackTrace(stack, 1)\n              ))),\n        advanceTaskTime(request, task, task.time),\n        emitDebugChunk(request, task.id, alreadyForwardedDebugInfo),\n        markOperationEndTime(request, task, node.end));\n    }\n    function pingTask(request, task) {\n      task.timed = !0;\n      var pingedTasks = request.pingedTasks;\n      pingedTasks.push(task);\n      1 === pingedTasks.length &&\n        ((request.flushScheduled = null !== request.destination),\n        request.type === PRERENDER || request.status === OPENING\n          ? scheduleMicrotask(function () {\n              return performWork(request);\n            })\n          : setImmediate(function () {\n              return performWork(request);\n            }));\n    }\n    function createTask(\n      request,\n      model,\n      keyPath,\n      implicitSlot,\n      formatContext,\n      abortSet,\n      lastTimestamp,\n      debugOwner,\n      debugStack,\n      debugTask\n    ) {\n      request.pendingChunks++;\n      var id = request.nextChunkId++;\n      \"object\" !== typeof model ||\n        null === model ||\n        null !== keyPath ||\n        implicitSlot ||\n        request.writtenObjects.set(model, serializeByValueID(id));\n      var task = {\n        id: id,\n        status: PENDING$1,\n        model: model,\n        keyPath: keyPath,\n        implicitSlot: implicitSlot,\n        formatContext: formatContext,\n        ping: function () {\n          return pingTask(request, task);\n        },\n        thenableState: null,\n        timed: !1\n      };\n      task.time = lastTimestamp;\n      task.environmentName = request.environmentName();\n      task.debugOwner = debugOwner;\n      task.debugStack = debugStack;\n      task.debugTask = debugTask;\n      abortSet.add(task);\n      return task;\n    }\n    function resolveModel(request, task, parent, parentPropertyName, value) {\n      var jsonValue = value;\n      null !== value &&\n        \"object\" === typeof value &&\n        \"function\" === typeof value.toJSON &&\n        (jsonValue = value.toJSON(parentPropertyName));\n      var originalValue = parent[parentPropertyName];\n      \"object\" !== typeof originalValue ||\n        originalValue === jsonValue ||\n        originalValue instanceof Date ||\n        callWithDebugContextInDEV(request, task, function () {\n          ArrayBuffer.isView(originalValue)\n            ? console.error(\n                \"Binary data with a toJSON method, such as a Node.js Buffer, is serialized through toJSON instead of as binary. Pass a Uint8Array or ArrayBuffer to send binary data.%s\",\n                describeObjectForErrorMessage(parent, parentPropertyName)\n              )\n            : \"Object\" !== objectName(originalValue)\n              ? \"string\" === typeof jsxChildrenParents.get(parent)\n                ? console.error(\n                    \"%s objects cannot be rendered as text children. Try formatting it using toString().%s\",\n                    objectName(originalValue),\n                    describeObjectForErrorMessage(parent, parentPropertyName)\n                  )\n                : console.error(\n                    \"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s\",\n                    objectName(originalValue),\n                    describeObjectForErrorMessage(parent, parentPropertyName)\n                  )\n              : console.error(\n                  \"Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.%s\",\n                  describeObjectForErrorMessage(parent, parentPropertyName)\n                );\n        });\n      value = renderModel(request, task, parent, parentPropertyName, jsonValue);\n      if (null === value || \"object\" !== typeof value) return value;\n      if (isArrayImpl(value)) {\n        var _resolved = [];\n        for (jsonValue = 0; jsonValue < value.length; jsonValue++)\n          _resolved[jsonValue] = resolveModel(\n            request,\n            task,\n            value,\n            \"\" + jsonValue,\n            value[jsonValue]\n          );\n        return _resolved;\n      }\n      jsonValue = {};\n      for (_resolved in value)\n        if (hasOwnProperty.call(value, _resolved)) {\n          var resolvedValue = resolveModel(\n            request,\n            task,\n            value,\n            _resolved,\n            value[_resolved]\n          );\n          _resolved === __PROTO__$1\n            ? Object.defineProperty(jsonValue, _resolved, {\n                value: resolvedValue,\n                enumerable: !0,\n                writable: !0,\n                configurable: !0\n              })\n            : (jsonValue[_resolved] = resolvedValue);\n        }\n      return jsonValue;\n    }\n    function serializeByValueID(id) {\n      return \"$\" + id.toString(16);\n    }\n    function serializeLazyID(id) {\n      return \"$L\" + id.toString(16);\n    }\n    function serializeDeferredObject(request, value) {\n      var deferredDebugObjects = request.deferredDebugObjects;\n      return null !== deferredDebugObjects\n        ? (request.pendingDebugChunks++,\n          (request = request.nextChunkId++),\n          deferredDebugObjects.existing.set(value, request),\n          deferredDebugObjects.retained.set(request, value),\n          \"$Y\" + request.toString(16))\n        : \"$Y\";\n    }\n    function serializeNumber(number) {\n      return Number.isFinite(number)\n        ? 0 === number && -Infinity === 1 / number\n          ? \"$-0\"\n          : number\n        : Infinity === number\n          ? \"$Infinity\"\n          : -Infinity === number\n            ? \"$-Infinity\"\n            : \"$NaN\";\n    }\n    function encodeReferenceChunk(request, id, reference) {\n      request = stringify(reference);\n      return id.toString(16) + \":\" + request + \"\\n\";\n    }\n    function serializeClientReference(\n      request,\n      parent,\n      parentPropertyName,\n      clientReference\n    ) {\n      var clientReferenceKey = clientReference.$$async\n          ? clientReference.$$id + \"#async\"\n          : clientReference.$$id,\n        writtenClientReferences = request.writtenClientReferences,\n        existingId = writtenClientReferences.get(clientReferenceKey);\n      if (void 0 !== existingId)\n        return parent[0] === REACT_ELEMENT_TYPE && \"1\" === parentPropertyName\n          ? serializeLazyID(existingId)\n          : serializeByValueID(existingId);\n      try {\n        var clientReferenceMetadata = resolveClientReferenceMetadata(\n          request.bundlerConfig,\n          clientReference\n        );\n        request.pendingChunks++;\n        var importId = request.nextChunkId++;\n        emitImportChunk(request, importId, clientReferenceMetadata, !1);\n        writtenClientReferences.set(clientReferenceKey, importId);\n        return parent[0] === REACT_ELEMENT_TYPE && \"1\" === parentPropertyName\n          ? serializeLazyID(importId)\n          : serializeByValueID(importId);\n      } catch (x) {\n        return (\n          request.pendingChunks++,\n          (parent = request.nextChunkId++),\n          (parentPropertyName = logRecoverableError(request, x, null)),\n          emitErrorChunk(request, parent, parentPropertyName, x, !1, null),\n          serializeByValueID(parent)\n        );\n      }\n    }\n    function serializeDebugClientReference(\n      request,\n      parent,\n      parentPropertyName,\n      clientReference\n    ) {\n      var existingId = request.writtenClientReferences.get(\n        clientReference.$$async\n          ? clientReference.$$id + \"#async\"\n          : clientReference.$$id\n      );\n      if (void 0 !== existingId)\n        return parent[0] === REACT_ELEMENT_TYPE && \"1\" === parentPropertyName\n          ? serializeLazyID(existingId)\n          : serializeByValueID(existingId);\n      try {\n        var clientReferenceMetadata = resolveClientReferenceMetadata(\n          request.bundlerConfig,\n          clientReference\n        );\n        request.pendingDebugChunks++;\n        var importId = request.nextChunkId++;\n        emitImportChunk(request, importId, clientReferenceMetadata, !0);\n        return parent[0] === REACT_ELEMENT_TYPE && \"1\" === parentPropertyName\n          ? serializeLazyID(importId)\n          : serializeByValueID(importId);\n      } catch (x) {\n        return (\n          request.pendingDebugChunks++,\n          (parent = request.nextChunkId++),\n          (parentPropertyName = logRecoverableError(request, x, null)),\n          emitErrorChunk(request, parent, parentPropertyName, x, !0, null),\n          serializeByValueID(parent)\n        );\n      }\n    }\n    function outlineModel(request, value) {\n      return outlineModelWithFormatContext(request, value, 0);\n    }\n    function outlineModelWithFormatContext(request, value, formatContext) {\n      value = createTask(\n        request,\n        value,\n        null,\n        !1,\n        formatContext,\n        request.abortableTasks,\n        performance.now(),\n        null,\n        null,\n        null\n      );\n      retryTask(request, value);\n      return value.id;\n    }\n    function serializeServerReference(request, serverReference) {\n      var writtenServerReferences = request.writtenServerReferences,\n        existingId = writtenServerReferences.get(serverReference);\n      if (void 0 !== existingId) return \"$h\" + existingId.toString(16);\n      existingId = serverReference.$$bound;\n      existingId = null === existingId ? null : Promise.resolve(existingId);\n      var id = serverReference.$$id,\n        location = null,\n        error = serverReference.$$location;\n      error &&\n        ((error = parseStackTrace(error, 1)),\n        0 < error.length &&\n          ((location = error[0]),\n          (location = [location[0], location[1], location[2], location[3]])));\n      existingId =\n        null !== location\n          ? {\n              id: id,\n              bound: existingId,\n              name:\n                \"function\" === typeof serverReference\n                  ? serverReference.name\n                  : \"\",\n              env: (0, request.environmentName)(),\n              location: location\n            }\n          : { id: id, bound: existingId };\n      request = outlineModel(request, existingId);\n      writtenServerReferences.set(serverReference, request);\n      return \"$h\" + request.toString(16);\n    }\n    function serializeLargeTextString(request, text) {\n      request.pendingChunks++;\n      var textId = request.nextChunkId++;\n      emitTextChunk(request, textId, text, !1);\n      return serializeByValueID(textId);\n    }\n    function serializeMap(request, map) {\n      map = Array.from(map);\n      return \"$Q\" + outlineModel(request, map).toString(16);\n    }\n    function serializeFormData(request, formData) {\n      formData = Array.from(formData.entries());\n      return \"$K\" + outlineModel(request, formData).toString(16);\n    }\n    function serializeSet(request, set) {\n      set = Array.from(set);\n      return \"$W\" + outlineModel(request, set).toString(16);\n    }\n    function serializeTypedArray(request, tag, typedArray) {\n      request.pendingChunks++;\n      var bufferId = request.nextChunkId++;\n      emitTypedArrayChunk(request, bufferId, tag, typedArray, !1);\n      return serializeByValueID(bufferId);\n    }\n    function serializeDebugTypedArray(request, tag, typedArray) {\n      if (1e3 < typedArray.byteLength && !doNotLimit.has(typedArray))\n        return serializeDeferredObject(request, typedArray);\n      request.pendingDebugChunks++;\n      var bufferId = request.nextChunkId++;\n      emitTypedArrayChunk(request, bufferId, tag, typedArray, !0);\n      return serializeByValueID(bufferId);\n    }\n    function serializeDebugBlob(request, blob) {\n      function progress(entry) {\n        if (entry.done)\n          emitOutlinedDebugModelChunk(\n            request,\n            id,\n            { objectLimit: model.length + 2 },\n            model\n          ),\n            enqueueFlush(request);\n        else\n          return (\n            model.push(entry.value), reader.read().then(progress).catch(error)\n          );\n      }\n      function error(reason) {\n        emitErrorChunk(request, id, \"\", reason, !0, null);\n        enqueueFlush(request);\n        reader.cancel(reason).then(noop, noop);\n      }\n      var model = [blob.type],\n        reader = blob.stream().getReader();\n      request.pendingDebugChunks++;\n      var id = request.nextChunkId++;\n      reader.read().then(progress).catch(error);\n      return \"$B\" + id.toString(16);\n    }\n    function serializeBlob(request, blob) {\n      function progress(entry) {\n        if (newTask.status === PENDING$1)\n          if (entry.done)\n            request.cacheController.signal.removeEventListener(\n              \"abort\",\n              abortBlob\n            ),\n              pingTask(request, newTask);\n          else\n            return (\n              model.push(entry.value), reader.read().then(progress).catch(error)\n            );\n      }\n      function error(reason) {\n        newTask.status === PENDING$1 &&\n          (request.cacheController.signal.removeEventListener(\n            \"abort\",\n            abortBlob\n          ),\n          erroredTask(request, newTask, reason),\n          enqueueFlush(request),\n          reader.cancel(reason).then(error, error));\n      }\n      function abortBlob() {\n        if (newTask.status === PENDING$1) {\n          var signal = request.cacheController.signal;\n          signal.removeEventListener(\"abort\", abortBlob);\n          signal = signal.reason;\n          request.type === PRERENDER\n            ? (request.abortableTasks.delete(newTask),\n              haltTask(newTask),\n              finishHaltedTask(newTask, request))\n            : (erroredTask(request, newTask, signal), enqueueFlush(request));\n          reader.cancel(signal).then(error, error);\n        }\n      }\n      var model = [blob.type],\n        newTask = createTask(\n          request,\n          model,\n          null,\n          !1,\n          0,\n          request.abortableTasks,\n          performance.now(),\n          null,\n          null,\n          null\n        ),\n        reader = blob.stream().getReader();\n      request.cacheController.signal.addEventListener(\"abort\", abortBlob);\n      reader.read().then(progress).catch(error);\n      return \"$B\" + newTask.id.toString(16);\n    }\n    function renderModel(request, task, parent, key, value) {\n      serializedSize += key.length;\n      var prevKeyPath = task.keyPath,\n        prevImplicitSlot = task.implicitSlot;\n      try {\n        return renderModelDestructive(request, task, parent, key, value);\n      } catch (thrownValue) {\n        parent = task.model;\n        parent =\n          \"object\" === typeof parent &&\n          null !== parent &&\n          (parent.$$typeof === REACT_ELEMENT_TYPE ||\n            parent.$$typeof === REACT_LAZY_TYPE);\n        if (request.status === ABORTING) {\n          task.status = ABORTED;\n          if (request.type === PRERENDER)\n            return (\n              (task = request.nextChunkId++),\n              (task = parent\n                ? serializeLazyID(task)\n                : serializeByValueID(task)),\n              task\n            );\n          task = request.fatalError;\n          return parent ? serializeLazyID(task) : serializeByValueID(task);\n        }\n        key =\n          thrownValue === SuspenseException\n            ? getSuspendedThenable()\n            : thrownValue;\n        if (\n          \"object\" === typeof key &&\n          null !== key &&\n          \"function\" === typeof key.then\n        )\n          return (\n            (request = createTask(\n              request,\n              task.model,\n              task.keyPath,\n              task.implicitSlot,\n              task.formatContext,\n              request.abortableTasks,\n              task.time,\n              task.debugOwner,\n              task.debugStack,\n              task.debugTask\n            )),\n            (value = request.ping),\n            key.then(value, value),\n            (request.thenableState = getThenableStateAfterSuspending()),\n            (task.keyPath = prevKeyPath),\n            (task.implicitSlot = prevImplicitSlot),\n            parent\n              ? serializeLazyID(request.id)\n              : serializeByValueID(request.id)\n          );\n        task.keyPath = prevKeyPath;\n        task.implicitSlot = prevImplicitSlot;\n        request.pendingChunks++;\n        prevKeyPath = request.nextChunkId++;\n        prevImplicitSlot = logRecoverableError(request, key, task);\n        emitErrorChunk(\n          request,\n          prevKeyPath,\n          prevImplicitSlot,\n          key,\n          !1,\n          task.debugOwner\n        );\n        return parent\n          ? serializeLazyID(prevKeyPath)\n          : serializeByValueID(prevKeyPath);\n      }\n    }\n    function renderModelDestructive(\n      request,\n      task,\n      parent,\n      parentPropertyName,\n      value\n    ) {\n      task.model = value;\n      parentPropertyName === __PROTO__$1 &&\n        callWithDebugContextInDEV(request, task, function () {\n          console.error(\n            \"Expected not to serialize an object with own property `__proto__`. When parsed this property will be omitted.%s\",\n            describeObjectForErrorMessage(parent, parentPropertyName)\n          );\n        });\n      if (value === REACT_ELEMENT_TYPE) return \"$\";\n      if (null === value) return null;\n      if (\"object\" === typeof value) {\n        switch (value.$$typeof) {\n          case REACT_ELEMENT_TYPE:\n            var elementReference = null,\n              _writtenObjects = request.writtenObjects;\n            if (null === task.keyPath && !task.implicitSlot) {\n              var _existingReference = _writtenObjects.get(value);\n              if (void 0 !== _existingReference)\n                if (modelRoot === value) modelRoot = null;\n                else return _existingReference;\n              else\n                -1 === parentPropertyName.indexOf(\":\") &&\n                  ((_existingReference = _writtenObjects.get(parent)),\n                  void 0 !== _existingReference &&\n                    ((elementReference =\n                      _existingReference + \":\" + parentPropertyName),\n                    _writtenObjects.set(value, elementReference)));\n            }\n            if (serializedSize > MAX_ROW_SIZE) return deferTask(request, task);\n            if ((_existingReference = value._debugInfo))\n              if (canEmitDebugInfo)\n                forwardDebugInfo(request, task, _existingReference);\n              else return outlineTask(request, task);\n            _existingReference = value.props;\n            var refProp = _existingReference.ref;\n            refProp = void 0 !== refProp ? refProp : null;\n            task.debugOwner = value._owner;\n            task.debugStack = value._debugStack;\n            task.debugTask = value._debugTask;\n            if (\n              void 0 === value._owner ||\n              void 0 === value._debugStack ||\n              void 0 === value._debugTask\n            ) {\n              var key = \"\";\n              null !== value.key &&\n                value.key !== REACT_OPTIMISTIC_KEY &&\n                (key = ' key=\"' + value.key + '\"');\n              console.error(\n                \"Attempted to render <%s%s> without development properties. This is not supported. It can happen if:\\n- The element is created with a production version of React but rendered in development.\\n- The element was cloned with a custom function instead of `React.cloneElement`.\\nThe props of this element may help locate this element: %o\",\n                value.type,\n                key,\n                value.props\n              );\n            }\n            request = renderElement(\n              request,\n              task,\n              value.type,\n              value.key,\n              refProp,\n              _existingReference,\n              value._store.validated\n            );\n            \"object\" === typeof request &&\n              null !== request &&\n              null !== elementReference &&\n              (_writtenObjects.has(request) ||\n                _writtenObjects.set(request, elementReference));\n            return request;\n          case REACT_LAZY_TYPE:\n            if (serializedSize > MAX_ROW_SIZE) return deferTask(request, task);\n            task.thenableState = null;\n            elementReference = callLazyInitInDEV(value);\n            if (request.status === ABORTING) throw null;\n            if ((_writtenObjects = value._debugInfo))\n              if (canEmitDebugInfo)\n                forwardDebugInfo(request, task, _writtenObjects);\n              else return outlineTask(request, task);\n            return renderModelDestructive(\n              request,\n              task,\n              parent,\n              parentPropertyName,\n              elementReference\n            );\n          case REACT_LEGACY_ELEMENT_TYPE:\n            throw Error(\n              'A React Element from an older version of React was rendered. This is not supported. It can happen if:\\n- Multiple copies of the \"react\" package is used.\\n- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n- A compiler tries to \"inline\" JSX instead of using the runtime.'\n            );\n        }\n        if (isClientReference(value))\n          return serializeClientReference(\n            request,\n            parent,\n            parentPropertyName,\n            value\n          );\n        if (\n          void 0 !== request.temporaryReferences &&\n          ((elementReference = request.temporaryReferences.get(value)),\n          void 0 !== elementReference)\n        )\n          return \"$T\" + elementReference;\n        elementReference = request.writtenObjects;\n        _writtenObjects = elementReference.get(value);\n        if (\"function\" === typeof value.then) {\n          if (void 0 !== _writtenObjects) {\n            if (null !== task.keyPath || task.implicitSlot)\n              return (\n                \"$@\" + serializeThenable(request, task, value).toString(16)\n              );\n            if (modelRoot === value) modelRoot = null;\n            else return _writtenObjects;\n          }\n          request = \"$@\" + serializeThenable(request, task, value).toString(16);\n          elementReference.set(value, request);\n          return request;\n        }\n        if (void 0 !== _writtenObjects)\n          if (modelRoot === value) {\n            if (_writtenObjects !== serializeByValueID(task.id))\n              return _writtenObjects;\n            modelRoot = null;\n          } else return _writtenObjects;\n        else if (\n          -1 === parentPropertyName.indexOf(\":\") &&\n          ((_writtenObjects = elementReference.get(parent)),\n          void 0 !== _writtenObjects)\n        ) {\n          _existingReference = parentPropertyName;\n          if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)\n            switch (parentPropertyName) {\n              case \"1\":\n                _existingReference = \"type\";\n                break;\n              case \"2\":\n                _existingReference = \"key\";\n                break;\n              case \"3\":\n                _existingReference = \"props\";\n                break;\n              case \"4\":\n                _existingReference = \"_owner\";\n            }\n          elementReference.set(\n            value,\n            _writtenObjects + \":\" + _existingReference\n          );\n        }\n        if (isArrayImpl(value)) return renderFragment(request, task, value);\n        if (value instanceof Map) return serializeMap(request, value);\n        if (value instanceof Set) return serializeSet(request, value);\n        if (\"function\" === typeof FormData && value instanceof FormData)\n          return serializeFormData(request, value);\n        if (value instanceof Error) return serializeErrorValue(request, value);\n        if (value instanceof ArrayBuffer)\n          return serializeTypedArray(request, \"A\", new Uint8Array(value));\n        if (value instanceof Int8Array)\n          return serializeTypedArray(request, \"O\", value);\n        if (value instanceof Uint8Array)\n          return serializeTypedArray(request, \"o\", value);\n        if (value instanceof Uint8ClampedArray)\n          return serializeTypedArray(request, \"U\", value);\n        if (value instanceof Int16Array)\n          return serializeTypedArray(request, \"S\", value);\n        if (value instanceof Uint16Array)\n          return serializeTypedArray(request, \"s\", value);\n        if (value instanceof Int32Array)\n          return serializeTypedArray(request, \"L\", value);\n        if (value instanceof Uint32Array)\n          return serializeTypedArray(request, \"l\", value);\n        if (value instanceof Float32Array)\n          return serializeTypedArray(request, \"G\", value);\n        if (value instanceof Float64Array)\n          return serializeTypedArray(request, \"g\", value);\n        if (value instanceof BigInt64Array)\n          return serializeTypedArray(request, \"M\", value);\n        if (value instanceof BigUint64Array)\n          return serializeTypedArray(request, \"m\", value);\n        if (value instanceof DataView)\n          return serializeTypedArray(request, \"V\", value);\n        if (\"function\" === typeof Blob && value instanceof Blob)\n          return serializeBlob(request, value);\n        if ((elementReference = getIteratorFn(value)))\n          return (\n            (elementReference = elementReference.call(value)),\n            elementReference === value\n              ? \"$i\" +\n                outlineModel(request, Array.from(elementReference)).toString(16)\n              : renderFragment(request, task, Array.from(elementReference))\n          );\n        if (\n          \"function\" === typeof ReadableStream &&\n          value instanceof ReadableStream\n        )\n          return serializeReadableStream(request, task, value);\n        elementReference = value[ASYNC_ITERATOR];\n        if (\"function\" === typeof elementReference)\n          return renderAsyncFragment(request, task, value, elementReference);\n        if (value instanceof Date) return \"$D\" + value.toJSON();\n        elementReference = getPrototypeOf(value);\n        if (\n          elementReference !== ObjectPrototype$1 &&\n          (null === elementReference ||\n            null !== getPrototypeOf(elementReference))\n        )\n          throw Error(\n            \"Only plain objects, and a few built-ins, can be passed to Client Components from Server Components. Classes or null prototypes are not supported.\" +\n              describeObjectForErrorMessage(parent, parentPropertyName)\n          );\n        if (\"Object\" !== objectName(value))\n          callWithDebugContextInDEV(request, task, function () {\n            console.error(\n              \"Only plain objects can be passed to Client Components from Server Components. %s objects are not supported.%s\",\n              objectName(value),\n              describeObjectForErrorMessage(parent, parentPropertyName)\n            );\n          });\n        else if (!isSimpleObject(value))\n          callWithDebugContextInDEV(request, task, function () {\n            console.error(\n              \"Only plain objects can be passed to Client Components from Server Components. Classes or other objects with methods are not supported.%s\",\n              describeObjectForErrorMessage(parent, parentPropertyName)\n            );\n          });\n        else if (Object.getOwnPropertySymbols) {\n          var symbols = Object.getOwnPropertySymbols(value);\n          0 < symbols.length &&\n            callWithDebugContextInDEV(request, task, function () {\n              console.error(\n                \"Only plain objects can be passed to Client Components from Server Components. Objects with symbol properties like %s are not supported.%s\",\n                symbols[0].description,\n                describeObjectForErrorMessage(parent, parentPropertyName)\n              );\n            });\n        }\n        return value;\n      }\n      if (\"string\" === typeof value)\n        return (\n          (serializedSize += value.length),\n          \"Z\" === value[value.length - 1] &&\n          parent[parentPropertyName] instanceof Date\n            ? \"$D\" + value\n            : 1024 <= value.length && null !== byteLengthOfChunk\n              ? serializeLargeTextString(request, value)\n              : \"$\" === value[0]\n                ? \"$\" + value\n                : value\n        );\n      if (\"boolean\" === typeof value) return value;\n      if (\"number\" === typeof value) return serializeNumber(value);\n      if (\"undefined\" === typeof value) return \"$undefined\";\n      if (\"function\" === typeof value) {\n        if (isClientReference(value))\n          return serializeClientReference(\n            request,\n            parent,\n            parentPropertyName,\n            value\n          );\n        if (value.$$typeof === SERVER_REFERENCE_TAG)\n          return serializeServerReference(request, value);\n        if (\n          void 0 !== request.temporaryReferences &&\n          ((request = request.temporaryReferences.get(value)),\n          void 0 !== request)\n        )\n          return \"$T\" + request;\n        if (value.$$typeof === TEMPORARY_REFERENCE_TAG)\n          throw Error(\n            \"Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.\"\n          );\n        if (/^on[A-Z]/.test(parentPropertyName))\n          throw Error(\n            \"Event handlers cannot be passed to Client Component props.\" +\n              describeObjectForErrorMessage(parent, parentPropertyName) +\n              \"\\nIf you need interactivity, consider converting part of this to a Client Component.\"\n          );\n        if (\n          jsxChildrenParents.has(parent) ||\n          (jsxPropsParents.has(parent) && \"children\" === parentPropertyName)\n        )\n          throw (\n            ((request = value.displayName || value.name || \"Component\"),\n            Error(\n              \"Functions are not valid as a child of Client Components. This may happen if you return \" +\n                request +\n                \" instead of <\" +\n                request +\n                \" /> from render. Or maybe you meant to call this function rather than return it.\" +\n                describeObjectForErrorMessage(parent, parentPropertyName)\n            ))\n          );\n        throw Error(\n          'Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with \"use server\". Or maybe you meant to call this function rather than return it.' +\n            describeObjectForErrorMessage(parent, parentPropertyName)\n        );\n      }\n      if (\"symbol\" === typeof value) {\n        task = request.writtenSymbols;\n        elementReference = task.get(value);\n        if (void 0 !== elementReference)\n          return serializeByValueID(elementReference);\n        elementReference = value.description;\n        if (Symbol.for(elementReference) !== value)\n          throw Error(\n            \"Only global symbols received from Symbol.for(...) can be passed to Client Components. The symbol Symbol.for(\" +\n              (value.description + \") cannot be found among global symbols.\") +\n              describeObjectForErrorMessage(parent, parentPropertyName)\n          );\n        request.pendingChunks++;\n        _writtenObjects = request.nextChunkId++;\n        emitSymbolChunk(request, _writtenObjects, elementReference);\n        task.set(value, _writtenObjects);\n        return serializeByValueID(_writtenObjects);\n      }\n      if (\"bigint\" === typeof value) return \"$n\" + value.toString(10);\n      throw Error(\n        \"Type \" +\n          typeof value +\n          \" is not supported in Client Component props.\" +\n          describeObjectForErrorMessage(parent, parentPropertyName)\n      );\n    }\n    function logRecoverableError(request, error, task) {\n      var prevRequest = currentRequest;\n      currentRequest = null;\n      try {\n        var onError = request.onError;\n        var errorDigest =\n          null !== task\n            ? requestStorage.run(\n                void 0,\n                callWithDebugContextInDEV,\n                request,\n                task,\n                onError,\n                error\n              )\n            : requestStorage.run(void 0, onError, error);\n      } finally {\n        currentRequest = prevRequest;\n      }\n      if (null != errorDigest && \"string\" !== typeof errorDigest)\n        throw Error(\n          'onError returned something with a type other than \"string\". onError should return a string and may return null or undefined but must not return anything else. It received something of type \"' +\n            typeof errorDigest +\n            '\" instead'\n        );\n      return errorDigest || \"\";\n    }\n    function fatalError(request, error) {\n      var onFatalError = request.onFatalError;\n      onFatalError(error);\n      null !== request.destination\n        ? ((request.status = CLOSED), request.destination.destroy(error))\n        : ((request.status = CLOSING), (request.fatalError = error));\n      request.cacheController.abort(\n        Error(\"The render was aborted due to a fatal error.\", { cause: error })\n      );\n    }\n    function serializeErrorValue(request, error) {\n      var name = \"Error\",\n        env = (0, request.environmentName)();\n      try {\n        name = error.name;\n        var message = String(error.message);\n        var stack = filterStackTrace(request, parseStackTrace(error, 0));\n        var errorEnv = error.environmentName;\n        \"string\" === typeof errorEnv && (env = errorEnv);\n      } catch (x) {\n        (message =\n          \"An error occurred but serializing the error message failed.\"),\n          (stack = []);\n      }\n      name = { name: name, message: message, stack: stack, env: env };\n      \"cause\" in error &&\n        ((message = outlineModel(request, error.cause)),\n        (name.cause = serializeByValueID(message)));\n      \"undefined\" !== typeof AggregateError &&\n        error instanceof AggregateError &&\n        ((error = outlineModel(request, error.errors)),\n        (name.errors = serializeByValueID(error)));\n      return \"$Z\" + outlineModel(request, name).toString(16);\n    }\n    function emitErrorChunk(request, id, digest, error, debug, owner) {\n      var name = \"Error\",\n        env = (0, request.environmentName)(),\n        causeReference = null,\n        errorsReference = null;\n      try {\n        if (error instanceof Error) {\n          name = error.name;\n          var message = String(error.message);\n          var stack = filterStackTrace(request, parseStackTrace(error, 0));\n          var errorEnv = error.environmentName;\n          \"string\" === typeof errorEnv && (env = errorEnv);\n          if (\"cause\" in error) {\n            var cause = error.cause,\n              causeId = debug\n                ? outlineDebugModel(request, { objectLimit: 5 }, cause)\n                : outlineModel(request, cause);\n            causeReference = serializeByValueID(causeId);\n          }\n          if (\n            \"undefined\" !== typeof AggregateError &&\n            error instanceof AggregateError\n          ) {\n            var errors = error.errors,\n              errorsId = debug\n                ? outlineDebugModel(request, { objectLimit: 5 }, errors)\n                : outlineModel(request, errors);\n            errorsReference = serializeByValueID(errorsId);\n          }\n        } else\n          (message =\n            \"object\" === typeof error && null !== error\n              ? describeObjectForErrorMessage(error)\n              : String(error)),\n            (stack = []);\n      } catch (x) {\n        (message =\n          \"An error occurred but serializing the error message failed.\"),\n          (stack = []);\n      }\n      error = null == owner ? null : outlineComponentInfo(request, owner);\n      digest = {\n        digest: digest,\n        name: name,\n        message: message,\n        stack: stack,\n        env: env,\n        owner: error\n      };\n      null !== causeReference && (digest.cause = causeReference);\n      null !== errorsReference && (digest.errors = errorsReference);\n      id = id.toString(16) + \":E\" + stringify(digest) + \"\\n\";\n      debug\n        ? request.completedDebugChunks.push(id)\n        : request.completedErrorChunks.push(id);\n    }\n    function emitImportChunk(request, id, clientReferenceMetadata, debug) {\n      clientReferenceMetadata = stringify(clientReferenceMetadata);\n      id = id.toString(16) + \":I\" + clientReferenceMetadata + \"\\n\";\n      debug\n        ? request.completedDebugChunks.push(id)\n        : request.completedImportChunks.push(id);\n    }\n    function emitSymbolChunk(request, id, name) {\n      id = encodeReferenceChunk(request, id, \"$S\" + name);\n      request.completedImportChunks.push(id);\n    }\n    function emitDebugHaltChunk(request, id) {\n      id = id.toString(16) + \":\\n\";\n      request.completedDebugChunks.push(id);\n    }\n    function emitDebugChunk(request, id, debugInfo) {\n      var json = serializeDebugModel(request, 500, debugInfo);\n      null !== request.debugDestination\n        ? '\"' === json[0] && \"$\" === json[1]\n          ? ((id = id.toString(16) + \":D\" + json + \"\\n\"),\n            request.completedRegularChunks.push(id))\n          : ((debugInfo = request.nextChunkId++),\n            (json = debugInfo.toString(16) + \":\" + json + \"\\n\"),\n            request.pendingDebugChunks++,\n            request.completedDebugChunks.push(json),\n            (id = id.toString(16) + ':D\"$' + debugInfo.toString(16) + '\"\\n'),\n            request.completedRegularChunks.push(id))\n        : ((id = id.toString(16) + \":D\" + json + \"\\n\"),\n          request.completedRegularChunks.push(id));\n    }\n    function outlineComponentInfo(request, componentInfo) {\n      var existingRef = request.writtenDebugObjects.get(componentInfo);\n      if (void 0 !== existingRef) return existingRef;\n      null != componentInfo.owner &&\n        outlineComponentInfo(request, componentInfo.owner);\n      existingRef = 10;\n      null != componentInfo.stack &&\n        (existingRef += componentInfo.stack.length);\n      existingRef = { objectLimit: existingRef };\n      var componentDebugInfo = {\n        name: componentInfo.name,\n        key: componentInfo.key\n      };\n      null != componentInfo.env && (componentDebugInfo.env = componentInfo.env);\n      null != componentInfo.owner &&\n        (componentDebugInfo.owner = componentInfo.owner);\n      null == componentInfo.stack && null != componentInfo.debugStack\n        ? (componentDebugInfo.stack = filterStackTrace(\n            request,\n            parseStackTrace(componentInfo.debugStack, 1)\n          ))\n        : null != componentInfo.stack &&\n          (componentDebugInfo.stack = componentInfo.stack);\n      componentDebugInfo.props = componentInfo.props;\n      existingRef = outlineDebugModel(request, existingRef, componentDebugInfo);\n      existingRef = serializeByValueID(existingRef);\n      request.writtenDebugObjects.set(componentInfo, existingRef);\n      request.writtenObjects.set(componentInfo, existingRef);\n      return existingRef;\n    }\n    function emitIOInfoChunk(\n      request,\n      id,\n      name,\n      start,\n      end,\n      value,\n      env,\n      owner,\n      stack\n    ) {\n      var objectLimit = 10;\n      stack && (objectLimit += stack.length);\n      name = {\n        name: name,\n        start: start - request.timeOrigin,\n        end: end - request.timeOrigin\n      };\n      null != env && (name.env = env);\n      null != stack && (name.stack = stack);\n      null != owner && (name.owner = owner);\n      void 0 !== value && (name.value = value);\n      value = serializeDebugModel(request, objectLimit, name);\n      id = id.toString(16) + \":J\" + value + \"\\n\";\n      request.completedDebugChunks.push(id);\n    }\n    function serializeIONode(request, ioNode, promiseRef) {\n      var existingRef = request.writtenDebugObjects.get(ioNode);\n      if (void 0 !== existingRef) return existingRef;\n      existingRef = null;\n      var name = \"\";\n      if (null !== ioNode.promise) {\n        var promise = ioNode.promise.deref();\n        void 0 !== promise &&\n          \"string\" === typeof promise.displayName &&\n          (name = promise.displayName);\n      }\n      if (null !== ioNode.stack) {\n        a: {\n          existingRef = ioNode.stack;\n          for (promise = 0; promise < existingRef.length; promise++) {\n            var callsite = existingRef[promise];\n            if (!isPromiseCreationInternal(callsite[1], callsite[0])) {\n              promise = 0 < promise ? existingRef.slice(promise) : existingRef;\n              break a;\n            }\n          }\n          promise = [];\n        }\n        existingRef = filterStackTrace(request, promise);\n        if (\"\" === name) {\n          a: {\n            name = promise;\n            promise = \"\";\n            callsite = request.filterStackFrame;\n            for (var i = 0; i < name.length; i++) {\n              var callsite$jscomp$0 = name[i],\n                functionName = callsite$jscomp$0[0],\n                url = devirtualizeURL(callsite$jscomp$0[1]);\n              if (\n                callsite(\n                  url,\n                  functionName,\n                  callsite$jscomp$0[2],\n                  callsite$jscomp$0[3]\n                ) &&\n                \"\" !== url\n              ) {\n                if (\"\" === promise) {\n                  name = functionName;\n                  break a;\n                }\n                name = promise;\n                break a;\n              } else promise = functionName;\n            }\n            name = \"\";\n          }\n          name.startsWith(\"Window.\")\n            ? (name = name.slice(7))\n            : name.startsWith(\"<anonymous>.\") && (name = name.slice(7));\n        }\n      }\n      promise = ioNode.owner;\n      null != promise && outlineComponentInfo(request, promise);\n      callsite = void 0;\n      null !== promiseRef && (callsite = promiseRef.deref());\n      promiseRef = (0, request.environmentName)();\n      i = 3 === ioNode.tag ? request.abortTime : ioNode.end;\n      request.pendingDebugChunks++;\n      callsite$jscomp$0 = request.nextChunkId++;\n      emitIOInfoChunk(\n        request,\n        callsite$jscomp$0,\n        name,\n        ioNode.start,\n        i,\n        callsite,\n        promiseRef,\n        promise,\n        existingRef\n      );\n      promiseRef = serializeByValueID(callsite$jscomp$0);\n      request.writtenDebugObjects.set(ioNode, promiseRef);\n      return promiseRef;\n    }\n    function emitTypedArrayChunk(request, id, tag, typedArray, debug) {\n      debug ? request.pendingDebugChunks++ : request.pendingChunks++;\n      typedArray = new Uint8Array(\n        typedArray.buffer,\n        typedArray.byteOffset,\n        typedArray.byteLength\n      );\n      var binaryLength = typedArray.byteLength;\n      id = id.toString(16) + \":\" + tag + binaryLength.toString(16) + \",\";\n      debug\n        ? request.completedDebugChunks.push(\n            NEXT_TWO_CHUNKS_ARE_ATOMIC,\n            id,\n            typedArray\n          )\n        : request.completedRegularChunks.push(\n            NEXT_TWO_CHUNKS_ARE_ATOMIC,\n            id,\n            typedArray\n          );\n    }\n    function emitTextChunk(request, id, text, debug) {\n      if (null === byteLengthOfChunk)\n        throw Error(\n          \"Existence of byteLengthOfChunk should have already been checked. This is a bug in React.\"\n        );\n      debug ? request.pendingDebugChunks++ : request.pendingChunks++;\n      var binaryLength = byteLengthOfChunk(text);\n      id = id.toString(16) + \":T\" + binaryLength.toString(16) + \",\";\n      debug\n        ? request.completedDebugChunks.push(\n            NEXT_TWO_CHUNKS_ARE_ATOMIC,\n            id,\n            text\n          )\n        : request.completedRegularChunks.push(\n            NEXT_TWO_CHUNKS_ARE_ATOMIC,\n            id,\n            text\n          );\n    }\n    function renderDebugModel(\n      request,\n      counter,\n      parent,\n      parentPropertyName,\n      value\n    ) {\n      if (null === value) return null;\n      if (value === REACT_ELEMENT_TYPE) return \"$\";\n      if (\"object\" === typeof value) {\n        if (isClientReference(value))\n          return serializeDebugClientReference(\n            request,\n            parent,\n            parentPropertyName,\n            value\n          );\n        if (value.$$typeof === CONSTRUCTOR_MARKER) {\n          value = value.constructor;\n          var ref = request.writtenDebugObjects.get(value);\n          void 0 === ref &&\n            ((request = outlineDebugModel(request, counter, value)),\n            (ref = serializeByValueID(request)));\n          return \"$P\" + ref.slice(1);\n        }\n        if (void 0 !== request.temporaryReferences) {\n          var tempRef = request.temporaryReferences.get(value);\n          if (void 0 !== tempRef) return \"$T\" + tempRef;\n        }\n        tempRef = request.writtenDebugObjects;\n        var existingDebugReference = tempRef.get(value);\n        if (void 0 !== existingDebugReference)\n          if (debugModelRoot === value) debugModelRoot = null;\n          else return existingDebugReference;\n        else if (-1 === parentPropertyName.indexOf(\":\"))\n          if (\n            ((existingDebugReference = tempRef.get(parent)),\n            void 0 !== existingDebugReference)\n          ) {\n            if (0 >= counter.objectLimit && !doNotLimit.has(value))\n              return serializeDeferredObject(request, value);\n            var propertyName = parentPropertyName;\n            if (isArrayImpl(parent) && parent[0] === REACT_ELEMENT_TYPE)\n              switch (parentPropertyName) {\n                case \"1\":\n                  propertyName = \"type\";\n                  break;\n                case \"2\":\n                  propertyName = \"key\";\n                  break;\n                case \"3\":\n                  propertyName = \"props\";\n                  break;\n                case \"4\":\n                  propertyName = \"_owner\";\n              }\n            tempRef.set(value, existingDebugReference + \":\" + propertyName);\n          } else if (debugNoOutline !== value) {\n            if (\"function\" === typeof value.then)\n              return serializeDebugThenable(request, counter, value);\n            request = outlineDebugModel(request, counter, value);\n            return serializeByValueID(request);\n          }\n        parent = request.writtenObjects.get(value);\n        if (void 0 !== parent) return parent;\n        if (0 >= counter.objectLimit && !doNotLimit.has(value))\n          return serializeDeferredObject(request, value);\n        counter.objectLimit--;\n        parent = request.deferredDebugObjects;\n        if (\n          null !== parent &&\n          ((parentPropertyName = parent.existing.get(value)),\n          void 0 !== parentPropertyName)\n        )\n          return (\n            parent.existing.delete(value),\n            parent.retained.delete(parentPropertyName),\n            emitOutlinedDebugModelChunk(\n              request,\n              parentPropertyName,\n              counter,\n              value\n            ),\n            serializeByValueID(parentPropertyName)\n          );\n        switch (value.$$typeof) {\n          case REACT_ELEMENT_TYPE:\n            null != value._owner && outlineComponentInfo(request, value._owner);\n            \"object\" === typeof value.type &&\n              null !== value.type &&\n              doNotLimit.add(value.type);\n            \"object\" === typeof value.key &&\n              null !== value.key &&\n              doNotLimit.add(value.key);\n            doNotLimit.add(value.props);\n            null !== value._owner && doNotLimit.add(value._owner);\n            counter = null;\n            if (null != value._debugStack)\n              for (\n                counter = filterStackTrace(\n                  request,\n                  parseStackTrace(value._debugStack, 1)\n                ),\n                  doNotLimit.add(counter),\n                  request = 0;\n                request < counter.length;\n                request++\n              )\n                doNotLimit.add(counter[request]);\n            return [\n              REACT_ELEMENT_TYPE,\n              value.type,\n              value.key,\n              value.props,\n              value._owner,\n              counter,\n              value._store.validated\n            ];\n          case REACT_LAZY_TYPE:\n            value = value._payload;\n            if (null !== value && \"object\" === typeof value) {\n              switch (value._status) {\n                case 1:\n                  return (\n                    (request = outlineDebugModel(\n                      request,\n                      counter,\n                      value._result\n                    )),\n                    serializeLazyID(request)\n                  );\n                case 2:\n                  return (\n                    (counter = request.nextChunkId++),\n                    emitErrorChunk(\n                      request,\n                      counter,\n                      \"\",\n                      value._result,\n                      !0,\n                      null\n                    ),\n                    serializeLazyID(counter)\n                  );\n              }\n              switch (value.status) {\n                case \"fulfilled\":\n                  return (\n                    (request = outlineDebugModel(\n                      request,\n                      counter,\n                      value.value\n                    )),\n                    serializeLazyID(request)\n                  );\n                case \"rejected\":\n                  return (\n                    (counter = request.nextChunkId++),\n                    emitErrorChunk(\n                      request,\n                      counter,\n                      \"\",\n                      value.reason,\n                      !0,\n                      null\n                    ),\n                    serializeLazyID(counter)\n                  );\n              }\n            }\n            request.pendingDebugChunks++;\n            value = request.nextChunkId++;\n            emitDebugHaltChunk(request, value);\n            return serializeLazyID(value);\n        }\n        if (\"function\" === typeof value.then)\n          return serializeDebugThenable(request, counter, value);\n        if (isArrayImpl(value))\n          return 200 < value.length && !doNotLimit.has(value)\n            ? serializeDeferredObject(request, value)\n            : value;\n        if (value instanceof Date) return \"$D\" + value.toJSON();\n        if (value instanceof Map) {\n          value = Array.from(value);\n          counter.objectLimit++;\n          for (ref = 0; ref < value.length; ref++) {\n            var entry = value[ref];\n            doNotLimit.add(entry);\n            var key = entry[0];\n            entry = entry[1];\n            \"object\" === typeof key && null !== key && doNotLimit.add(key);\n            \"object\" === typeof entry &&\n              null !== entry &&\n              doNotLimit.add(entry);\n          }\n          return \"$Q\" + outlineDebugModel(request, counter, value).toString(16);\n        }\n        if (value instanceof Set) {\n          value = Array.from(value);\n          counter.objectLimit++;\n          for (ref = 0; ref < value.length; ref++)\n            (key = value[ref]),\n              \"object\" === typeof key && null !== key && doNotLimit.add(key);\n          return \"$W\" + outlineDebugModel(request, counter, value).toString(16);\n        }\n        if (\"function\" === typeof FormData && value instanceof FormData)\n          return (\n            (value = Array.from(value.entries())),\n            \"$K\" +\n              outlineDebugModel(\n                request,\n                { objectLimit: 2 * value.length + 1 },\n                value\n              ).toString(16)\n          );\n        if (value instanceof Error) {\n          var name = \"Error\";\n          parent = (0, request.environmentName)();\n          try {\n            (name = value.name),\n              (key = String(value.message)),\n              (ref = filterStackTrace(request, parseStackTrace(value, 0))),\n              (entry = value.environmentName),\n              \"string\" === typeof entry && (parent = entry);\n          } catch (x) {\n            (key =\n              \"An error occurred but serializing the error message failed.\"),\n              (ref = []);\n          }\n          key = { name: name, message: key, stack: ref, env: parent };\n          \"cause\" in value &&\n            (counter.objectLimit--,\n            (entry = outlineDebugModel(request, counter, value.cause)),\n            (key.cause = serializeByValueID(entry)));\n          \"undefined\" !== typeof AggregateError &&\n            value instanceof AggregateError &&\n            (counter.objectLimit--,\n            (value = outlineDebugModel(request, counter, value.errors)),\n            (key.errors = serializeByValueID(value)));\n          request =\n            \"$Z\" +\n            outlineDebugModel(\n              request,\n              { objectLimit: 2 * ref.length + 1 },\n              key\n            ).toString(16);\n          return request;\n        }\n        if (value instanceof ArrayBuffer)\n          return serializeDebugTypedArray(request, \"A\", new Uint8Array(value));\n        if (value instanceof Int8Array)\n          return serializeDebugTypedArray(request, \"O\", value);\n        if (value instanceof Uint8Array)\n          return serializeDebugTypedArray(request, \"o\", value);\n        if (value instanceof Uint8ClampedArray)\n          return serializeDebugTypedArray(request, \"U\", value);\n        if (value instanceof Int16Array)\n          return serializeDebugTypedArray(request, \"S\", value);\n        if (value instanceof Uint16Array)\n          return serializeDebugTypedArray(request, \"s\", value);\n        if (value instanceof Int32Array)\n          return serializeDebugTypedArray(request, \"L\", value);\n        if (value instanceof Uint32Array)\n          return serializeDebugTypedArray(request, \"l\", value);\n        if (value instanceof Float32Array)\n          return serializeDebugTypedArray(request, \"G\", value);\n        if (value instanceof Float64Array)\n          return serializeDebugTypedArray(request, \"g\", value);\n        if (value instanceof BigInt64Array)\n          return serializeDebugTypedArray(request, \"M\", value);\n        if (value instanceof BigUint64Array)\n          return serializeDebugTypedArray(request, \"m\", value);\n        if (value instanceof DataView)\n          return serializeDebugTypedArray(request, \"V\", value);\n        if (\"function\" === typeof Blob && value instanceof Blob)\n          return serializeDebugBlob(request, value);\n        if (getIteratorFn(value)) return Array.from(value);\n        request = getPrototypeOf(value);\n        if (request !== ObjectPrototype$1 && null !== request) {\n          counter = Object.create(null);\n          for (name in value)\n            if (hasOwnProperty.call(value, name) || isGetter(request, name))\n              counter[name] = value[name];\n          ref = request.constructor;\n          \"function\" !== typeof ref ||\n            ref.prototype !== request ||\n            hasOwnProperty.call(value, \"\") ||\n            isGetter(request, \"\") ||\n            (counter[\"\"] = { $$typeof: CONSTRUCTOR_MARKER, constructor: ref });\n          return counter;\n        }\n        return value;\n      }\n      if (\"string\" === typeof value) {\n        if (1e6 < value.length)\n          return (\n            \"This string of length \" +\n            value.length +\n            \" has been omitted by React to avoid sending too much data from the server.\"\n          );\n        if (1024 <= value.length) {\n          if (0 >= counter.objectLimit)\n            return serializeDeferredObject(request, value);\n          counter.objectLimit--;\n          request.pendingDebugChunks++;\n          counter = request.nextChunkId++;\n          emitTextChunk(request, counter, value, !0);\n          return serializeByValueID(counter);\n        }\n        return \"$\" === value[0] ? \"$\" + value : value;\n      }\n      if (\"boolean\" === typeof value) return value;\n      if (\"number\" === typeof value) return serializeNumber(value);\n      if (\"undefined\" === typeof value) return \"$undefined\";\n      if (\"function\" === typeof value) {\n        if (isClientReference(value))\n          return serializeDebugClientReference(\n            request,\n            parent,\n            parentPropertyName,\n            value\n          );\n        if (\n          void 0 !== request.temporaryReferences &&\n          ((counter = request.temporaryReferences.get(value)),\n          void 0 !== counter)\n        )\n          return \"$T\" + counter;\n        counter = request.writtenDebugObjects;\n        ref = counter.get(value);\n        if (void 0 !== ref) return ref;\n        ref = Function.prototype.toString.call(value);\n        key = value.name;\n        key =\n          \"$E\" +\n          (\"string\" === typeof key\n            ? \"Object.defineProperty(\" +\n              ref +\n              ',\"name\",{value:' +\n              JSON.stringify(key) +\n              \"})\"\n            : \"(\" + ref + \")\");\n        request.pendingDebugChunks++;\n        ref = request.nextChunkId++;\n        key = encodeReferenceChunk(request, ref, key);\n        request.completedDebugChunks.push(key);\n        request = serializeByValueID(ref);\n        counter.set(value, request);\n        return request;\n      }\n      if (\"symbol\" === typeof value) {\n        counter = request.writtenSymbols.get(value);\n        if (void 0 !== counter) return serializeByValueID(counter);\n        value = value.description;\n        request.pendingChunks++;\n        counter = request.nextChunkId++;\n        emitSymbolChunk(request, counter, value);\n        return serializeByValueID(counter);\n      }\n      return \"bigint\" === typeof value\n        ? \"$n\" + value.toString(10)\n        : \"unknown type \" + typeof value;\n    }\n    function serializeDebugModel(request, objectLimit, model) {\n      function replacer(parentPropertyName) {\n        try {\n          return renderDebugModel(\n            request,\n            counter,\n            this,\n            parentPropertyName,\n            this[parentPropertyName]\n          );\n        } catch (x) {\n          return (\n            \"Unknown Value: React could not send it from the server.\\n\" +\n            x.message\n          );\n        }\n      }\n      var counter = { objectLimit: objectLimit };\n      objectLimit = debugNoOutline;\n      debugNoOutline = model;\n      try {\n        return stringify(model, replacer);\n      } catch (x) {\n        return stringify(\n          \"Unknown Value: React could not send it from the server.\\n\" +\n            x.message\n        );\n      } finally {\n        debugNoOutline = objectLimit;\n      }\n    }\n    function emitOutlinedDebugModelChunk(request, id, counter, model) {\n      function replacer(parentPropertyName) {\n        try {\n          return renderDebugModel(\n            request,\n            counter,\n            this,\n            parentPropertyName,\n            this[parentPropertyName]\n          );\n        } catch (x) {\n          return (\n            \"Unknown Value: React could not send it from the server.\\n\" +\n            x.message\n          );\n        }\n      }\n      \"object\" === typeof model && null !== model && doNotLimit.add(model);\n      var prevModelRoot = debugModelRoot;\n      debugModelRoot = model;\n      \"object\" === typeof model &&\n        null !== model &&\n        request.writtenDebugObjects.set(model, serializeByValueID(id));\n      try {\n        var json = stringify(model, replacer);\n      } catch (x) {\n        json = stringify(\n          \"Unknown Value: React could not send it from the server.\\n\" +\n            x.message\n        );\n      } finally {\n        debugModelRoot = prevModelRoot;\n      }\n      id = id.toString(16) + \":\" + json + \"\\n\";\n      request.completedDebugChunks.push(id);\n    }\n    function outlineDebugModel(request, counter, model) {\n      var id = request.nextChunkId++;\n      request.pendingDebugChunks++;\n      emitOutlinedDebugModelChunk(request, id, counter, model);\n      return id;\n    }\n    function emitTimeOriginChunk(request, timeOrigin) {\n      request.pendingDebugChunks++;\n      request.completedDebugChunks.push(\":N\" + timeOrigin + \"\\n\");\n    }\n    function forwardDebugInfo(request$jscomp$0, task, debugInfo) {\n      for (var id = task.id, i = 0; i < debugInfo.length; i++) {\n        var info = debugInfo[i];\n        if (\"number\" === typeof info.time)\n          markOperationEndTime(request$jscomp$0, task, info.time);\n        else if (\"string\" === typeof info.name)\n          outlineComponentInfo(request$jscomp$0, info),\n            request$jscomp$0.pendingChunks++,\n            emitDebugChunk(request$jscomp$0, id, info);\n        else if (info.awaited) {\n          var ioInfo = info.awaited;\n          if (!(ioInfo.end <= request$jscomp$0.timeOrigin)) {\n            var request = request$jscomp$0,\n              ioInfo$jscomp$0 = ioInfo;\n            if (!request.writtenObjects.has(ioInfo$jscomp$0)) {\n              request.pendingDebugChunks++;\n              var id$jscomp$0 = request.nextChunkId++,\n                owner = ioInfo$jscomp$0.owner;\n              null != owner && outlineComponentInfo(request, owner);\n              var debugStack =\n                null == ioInfo$jscomp$0.stack &&\n                null != ioInfo$jscomp$0.debugStack\n                  ? filterStackTrace(\n                      request,\n                      parseStackTrace(ioInfo$jscomp$0.debugStack, 1)\n                    )\n                  : ioInfo$jscomp$0.stack;\n              var env = ioInfo$jscomp$0.env;\n              null == env && (env = (0, request.environmentName)());\n              emitIOInfoChunk(\n                request,\n                id$jscomp$0,\n                ioInfo$jscomp$0.name,\n                ioInfo$jscomp$0.start,\n                ioInfo$jscomp$0.end,\n                ioInfo$jscomp$0.value,\n                env,\n                owner,\n                debugStack\n              );\n              request.writtenDebugObjects.set(\n                ioInfo$jscomp$0,\n                serializeByValueID(id$jscomp$0)\n              );\n            }\n            null != info.owner &&\n              outlineComponentInfo(request$jscomp$0, info.owner);\n            debugStack =\n              null == info.stack && null != info.debugStack\n                ? filterStackTrace(\n                    request$jscomp$0,\n                    parseStackTrace(info.debugStack, 1)\n                  )\n                : info.stack;\n            ioInfo = { awaited: ioInfo };\n            ioInfo.env =\n              null != info.env\n                ? info.env\n                : (0, request$jscomp$0.environmentName)();\n            null != info.owner && (ioInfo.owner = info.owner);\n            null != debugStack && (ioInfo.stack = debugStack);\n            request$jscomp$0.pendingChunks++;\n            emitDebugChunk(request$jscomp$0, id, ioInfo);\n          }\n        } else\n          request$jscomp$0.pendingChunks++,\n            emitDebugChunk(request$jscomp$0, id, info);\n      }\n    }\n    function forwardDebugInfoFromThenable(\n      request,\n      task,\n      thenable,\n      owner,\n      stack\n    ) {\n      var debugInfo;\n      (debugInfo = thenable._debugInfo) &&\n        forwardDebugInfo(request, task, debugInfo);\n      thenable = getAsyncSequenceFromPromise(thenable);\n      null !== thenable &&\n        emitAsyncSequence(request, task, thenable, debugInfo, owner, stack);\n    }\n    function forwardDebugInfoFromCurrentContext(request, task, thenable) {\n      (thenable = thenable._debugInfo) &&\n        forwardDebugInfo(request, task, thenable);\n      var sequence = pendingOperations.get(async_hooks.executionAsyncId());\n      sequence = void 0 === sequence ? null : sequence;\n      null !== sequence &&\n        emitAsyncSequence(request, task, sequence, thenable, null, null);\n    }\n    function forwardDebugInfoFromAbortedTask(request, task) {\n      var model = task.model;\n      if (\"object\" === typeof model && null !== model) {\n        var debugInfo;\n        (debugInfo = model._debugInfo) &&\n          forwardDebugInfo(request, task, debugInfo);\n        var thenable = null;\n        \"function\" === typeof model.then\n          ? (thenable = model)\n          : model.$$typeof === REACT_LAZY_TYPE &&\n            ((model = model._payload),\n            \"function\" === typeof model.then && (thenable = model));\n        if (\n          null !== thenable &&\n          ((model = getAsyncSequenceFromPromise(thenable)), null !== model)\n        ) {\n          for (\n            thenable = model;\n            4 === thenable.tag && null !== thenable.awaited;\n\n          )\n            thenable = thenable.awaited;\n          3 === thenable.tag\n            ? (serializeIONode(request, thenable, null),\n              request.pendingChunks++,\n              (debugInfo = (0, request.environmentName)()),\n              (debugInfo = { awaited: thenable, env: debugInfo }),\n              advanceTaskTime(request, task, task.time),\n              emitDebugChunk(request, task.id, debugInfo))\n            : emitAsyncSequence(request, task, model, debugInfo, null, null);\n        }\n      }\n    }\n    function emitTimingChunk(request, id, timestamp) {\n      request.pendingChunks++;\n      var json = '{\"time\":' + (timestamp - request.timeOrigin) + \"}\";\n      null !== request.debugDestination\n        ? ((timestamp = request.nextChunkId++),\n          (json = timestamp.toString(16) + \":\" + json + \"\\n\"),\n          request.pendingDebugChunks++,\n          request.completedDebugChunks.push(json),\n          (id = id.toString(16) + ':D\"$' + timestamp.toString(16) + '\"\\n'),\n          request.completedRegularChunks.push(id))\n        : ((id = id.toString(16) + \":D\" + json + \"\\n\"),\n          request.completedRegularChunks.push(id));\n    }\n    function advanceTaskTime(request, task, timestamp) {\n      timestamp > task.time\n        ? (emitTimingChunk(request, task.id, timestamp),\n          (task.time = timestamp))\n        : task.timed || emitTimingChunk(request, task.id, task.time);\n      task.timed = !0;\n    }\n    function markOperationEndTime(request, task, timestamp) {\n      (request.status === ABORTING && timestamp > request.abortTime) ||\n        (timestamp > task.time\n          ? (emitTimingChunk(request, task.id, timestamp),\n            (task.time = timestamp))\n          : emitTimingChunk(request, task.id, task.time));\n    }\n    function emitChunk(request, task, value) {\n      var id = task.id;\n      \"string\" === typeof value && null !== byteLengthOfChunk\n        ? emitTextChunk(request, id, value, !1)\n        : value instanceof ArrayBuffer\n          ? emitTypedArrayChunk(request, id, \"A\", new Uint8Array(value), !1)\n          : value instanceof Int8Array\n            ? emitTypedArrayChunk(request, id, \"O\", value, !1)\n            : value instanceof Uint8Array\n              ? emitTypedArrayChunk(request, id, \"o\", value, !1)\n              : value instanceof Uint8ClampedArray\n                ? emitTypedArrayChunk(request, id, \"U\", value, !1)\n                : value instanceof Int16Array\n                  ? emitTypedArrayChunk(request, id, \"S\", value, !1)\n                  : value instanceof Uint16Array\n                    ? emitTypedArrayChunk(request, id, \"s\", value, !1)\n                    : value instanceof Int32Array\n                      ? emitTypedArrayChunk(request, id, \"L\", value, !1)\n                      : value instanceof Uint32Array\n                        ? emitTypedArrayChunk(request, id, \"l\", value, !1)\n                        : value instanceof Float32Array\n                          ? emitTypedArrayChunk(request, id, \"G\", value, !1)\n                          : value instanceof Float64Array\n                            ? emitTypedArrayChunk(request, id, \"g\", value, !1)\n                            : value instanceof BigInt64Array\n                              ? emitTypedArrayChunk(request, id, \"M\", value, !1)\n                              : value instanceof BigUint64Array\n                                ? emitTypedArrayChunk(\n                                    request,\n                                    id,\n                                    \"m\",\n                                    value,\n                                    !1\n                                  )\n                                : value instanceof DataView\n                                  ? emitTypedArrayChunk(\n                                      request,\n                                      id,\n                                      \"V\",\n                                      value,\n                                      !1\n                                    )\n                                  : ((value = resolveModel(\n                                      request,\n                                      task,\n                                      { \"\": value },\n                                      \"\",\n                                      value\n                                    )),\n                                    (value = stringify(value)),\n                                    (task =\n                                      task.id.toString(16) +\n                                      \":\" +\n                                      value +\n                                      \"\\n\"),\n                                    request.completedRegularChunks.push(task));\n    }\n    function erroredTask(request, task, error) {\n      task.timed && markOperationEndTime(request, task, performance.now());\n      task.status = ERRORED$1;\n      var digest = logRecoverableError(request, error, task);\n      emitErrorChunk(request, task.id, digest, error, !1, task.debugOwner);\n      request.abortableTasks.delete(task);\n      callOnAllReadyIfReady(request);\n    }\n    function retryTask(request, task) {\n      if (task.status === PENDING$1) {\n        var prevCanEmitDebugInfo = canEmitDebugInfo;\n        task.status = RENDERING;\n        var parentSerializedSize = serializedSize;\n        try {\n          modelRoot = task.model;\n          canEmitDebugInfo = !0;\n          var resolvedModel = renderModelDestructive(\n            request,\n            task,\n            emptyRoot,\n            \"\",\n            task.model\n          );\n          canEmitDebugInfo = !1;\n          modelRoot = resolvedModel;\n          task.keyPath = null;\n          task.implicitSlot = !1;\n          var currentEnv = (0, request.environmentName)();\n          currentEnv !== task.environmentName &&\n            (request.pendingChunks++,\n            emitDebugChunk(request, task.id, { env: currentEnv }));\n          task.timed && markOperationEndTime(request, task, performance.now());\n          if (\"object\" === typeof resolvedModel && null !== resolvedModel)\n            request.writtenObjects.set(\n              resolvedModel,\n              serializeByValueID(task.id)\n            ),\n              emitChunk(request, task, resolvedModel);\n          else {\n            var json = stringify(resolvedModel),\n              processedChunk = task.id.toString(16) + \":\" + json + \"\\n\";\n            request.completedRegularChunks.push(processedChunk);\n          }\n          task.status = COMPLETED;\n          request.abortableTasks.delete(task);\n          callOnAllReadyIfReady(request);\n        } catch (thrownValue) {\n          if (request.status === ABORTING)\n            if (\n              (request.abortableTasks.delete(task),\n              (task.status = PENDING$1),\n              request.type === PRERENDER)\n            )\n              haltTask(task), finishHaltedTask(task, request);\n            else {\n              var errorId = request.fatalError;\n              abortTask(task);\n              finishAbortedTask(task, request, errorId);\n            }\n          else {\n            var x =\n              thrownValue === SuspenseException\n                ? getSuspendedThenable()\n                : thrownValue;\n            if (\n              \"object\" === typeof x &&\n              null !== x &&\n              \"function\" === typeof x.then\n            ) {\n              task.status = PENDING$1;\n              task.thenableState = getThenableStateAfterSuspending();\n              var ping = task.ping;\n              x.then(ping, ping);\n            } else erroredTask(request, task, x);\n          }\n        } finally {\n          (canEmitDebugInfo = prevCanEmitDebugInfo),\n            (serializedSize = parentSerializedSize);\n        }\n      }\n    }\n    function tryStreamTask(request, task) {\n      var prevCanEmitDebugInfo = canEmitDebugInfo;\n      canEmitDebugInfo = !1;\n      var parentSerializedSize = serializedSize;\n      try {\n        emitChunk(request, task, task.model);\n      } finally {\n        (serializedSize = parentSerializedSize),\n          (canEmitDebugInfo = prevCanEmitDebugInfo);\n      }\n    }\n    function performWork(request) {\n      pendingOperations.delete(async_hooks.executionAsyncId());\n      var prevDispatcher = ReactSharedInternalsServer.H;\n      ReactSharedInternalsServer.H = HooksDispatcher;\n      var prevRequest = currentRequest;\n      currentRequest$1 = currentRequest = request;\n      try {\n        var pingedTasks = request.pingedTasks;\n        request.pingedTasks = [];\n        for (var i = 0; i < pingedTasks.length; i++)\n          retryTask(request, pingedTasks[i]);\n        flushCompletedChunks(request);\n      } catch (error) {\n        logRecoverableError(request, error, null), fatalError(request, error);\n      } finally {\n        (ReactSharedInternalsServer.H = prevDispatcher),\n          (currentRequest$1 = null),\n          (currentRequest = prevRequest);\n      }\n    }\n    function abortTask(task) {\n      task.status === PENDING$1 && (task.status = ABORTED);\n    }\n    function finishAbortedTask(task, request, errorId) {\n      task.status === ABORTED &&\n        (forwardDebugInfoFromAbortedTask(request, task),\n        task.timed && markOperationEndTime(request, task, request.abortTime),\n        (errorId = serializeByValueID(errorId)),\n        (task = encodeReferenceChunk(request, task.id, errorId)),\n        request.completedErrorChunks.push(task));\n    }\n    function haltTask(task) {\n      task.status === PENDING$1 && (task.status = ABORTED);\n    }\n    function finishHaltedTask(task, request) {\n      task.status === ABORTED &&\n        (forwardDebugInfoFromAbortedTask(request, task),\n        request.pendingChunks--);\n    }\n    function flushCompletedChunks(request) {\n      if (null !== request.debugDestination) {\n        var debugDestination = request.debugDestination;\n        currentView = new Uint8Array(4096);\n        writtenBytes = 0;\n        destinationHasCapacity = !0;\n        try {\n          for (\n            var debugChunks = request.completedDebugChunks, i = 0;\n            i < debugChunks.length;\n            i++\n          ) {\n            var item = debugChunks[i];\n            if (item === NEXT_TWO_CHUNKS_ARE_ATOMIC) {\n              if (i + 2 >= debugChunks.length)\n                throw Error(\n                  \"A chunk pair is incomplete. This is a bug in React.\"\n                );\n              request.pendingDebugChunks -= 2;\n              writeChunk(debugDestination, debugChunks[i + 1]);\n              writeChunk(debugDestination, debugChunks[i + 2]);\n              i += 2;\n            } else\n              request.pendingDebugChunks--, writeChunk(debugDestination, item);\n          }\n          debugChunks.splice(0, i);\n        } finally {\n          completeWriting(debugDestination);\n        }\n        flushBuffered(debugDestination);\n      }\n      debugDestination = request.destination;\n      if (null !== debugDestination) {\n        currentView = new Uint8Array(4096);\n        writtenBytes = 0;\n        destinationHasCapacity = !0;\n        try {\n          var importsChunks = request.completedImportChunks;\n          for (\n            debugChunks = 0;\n            debugChunks < importsChunks.length;\n            debugChunks++\n          )\n            if (\n              (request.pendingChunks--,\n              !writeChunkAndReturn(\n                debugDestination,\n                importsChunks[debugChunks]\n              ))\n            ) {\n              request.destination = null;\n              debugChunks++;\n              break;\n            }\n          importsChunks.splice(0, debugChunks);\n          var hintChunks = request.completedHintChunks;\n          for (debugChunks = 0; debugChunks < hintChunks.length; debugChunks++)\n            if (\n              !writeChunkAndReturn(debugDestination, hintChunks[debugChunks])\n            ) {\n              request.destination = null;\n              debugChunks++;\n              break;\n            }\n          hintChunks.splice(0, debugChunks);\n          if (null === request.debugDestination) {\n            var _debugChunks = request.completedDebugChunks;\n            for (\n              debugChunks = 0;\n              debugChunks < _debugChunks.length;\n              debugChunks++\n            ) {\n              var _item = _debugChunks[debugChunks];\n              importsChunks = void 0;\n              if (_item === NEXT_TWO_CHUNKS_ARE_ATOMIC) {\n                if (debugChunks + 2 >= _debugChunks.length)\n                  throw Error(\n                    \"A chunk pair is incomplete. This is a bug in React.\"\n                  );\n                request.pendingDebugChunks -= 2;\n                writeChunk(debugDestination, _debugChunks[debugChunks + 1]);\n                importsChunks = writeChunkAndReturn(\n                  debugDestination,\n                  _debugChunks[debugChunks + 2]\n                );\n                debugChunks += 2;\n              } else\n                request.pendingDebugChunks--,\n                  (importsChunks = writeChunkAndReturn(\n                    debugDestination,\n                    _item\n                  ));\n              if (!importsChunks) {\n                request.destination = null;\n                debugChunks++;\n                break;\n              }\n            }\n            _debugChunks.splice(0, debugChunks);\n          }\n          var regularChunks = request.completedRegularChunks;\n          for (\n            debugChunks = 0;\n            debugChunks < regularChunks.length;\n            debugChunks++\n          ) {\n            var _item2 = regularChunks[debugChunks];\n            _debugChunks = void 0;\n            if (_item2 === NEXT_TWO_CHUNKS_ARE_ATOMIC) {\n              if (debugChunks + 2 >= regularChunks.length)\n                throw Error(\n                  \"A chunk pair is incomplete. This is a bug in React.\"\n                );\n              request.pendingChunks -= 2;\n              writeChunk(debugDestination, regularChunks[debugChunks + 1]);\n              _debugChunks = writeChunkAndReturn(\n                debugDestination,\n                regularChunks[debugChunks + 2]\n              );\n              debugChunks += 2;\n            } else\n              request.pendingChunks--,\n                (_debugChunks = writeChunkAndReturn(debugDestination, _item2));\n            if (!_debugChunks) {\n              request.destination = null;\n              debugChunks++;\n              break;\n            }\n          }\n          regularChunks.splice(0, debugChunks);\n          var errorChunks = request.completedErrorChunks;\n          for (debugChunks = 0; debugChunks < errorChunks.length; debugChunks++)\n            if (\n              (request.pendingChunks--,\n              !writeChunkAndReturn(debugDestination, errorChunks[debugChunks]))\n            ) {\n              request.destination = null;\n              debugChunks++;\n              break;\n            }\n          errorChunks.splice(0, debugChunks);\n        } finally {\n          (request.flushScheduled = !1), completeWriting(debugDestination);\n        }\n        flushBuffered(debugDestination);\n      }\n      0 === request.pendingChunks &&\n        ((regularChunks = request.debugDestination),\n        0 === request.pendingDebugChunks\n          ? (null !== regularChunks &&\n              (regularChunks.end(), (request.debugDestination = null)),\n            request.status < ABORTING &&\n              request.cacheController.abort(\n                Error(\n                  \"This render completed successfully. All cacheSignals are now aborted to allow clean up of any unused resources.\"\n                )\n              ),\n            null !== request.destination &&\n              ((request.status = CLOSED),\n              request.destination.end(),\n              (request.destination = null)),\n            null !== request.debugDestination &&\n              (request.debugDestination.end(),\n              (request.debugDestination = null)))\n          : null !== regularChunks &&\n            null !== request.destination &&\n            ((request.status = CLOSED),\n            request.destination.end(),\n            (request.destination = null)));\n    }\n    function startWork(request) {\n      request.flushScheduled = null !== request.destination;\n      scheduleMicrotask(function () {\n        requestStorage.run(request, performWork, request);\n      });\n      setImmediate(function () {\n        request.status === OPENING && (request.status = 11);\n      });\n    }\n    function enqueueFlush(request) {\n      !1 !== request.flushScheduled ||\n        0 !== request.pingedTasks.length ||\n        (null === request.destination && null === request.debugDestination) ||\n        ((request.flushScheduled = !0),\n        setImmediate(function () {\n          request.flushScheduled = !1;\n          flushCompletedChunks(request);\n        }));\n    }\n    function callOnAllReadyIfReady(request) {\n      0 === request.abortableTasks.size &&\n        ((request = request.onAllReady), request());\n    }\n    function startFlowing(request, destination) {\n      if (request.status === CLOSING)\n        (request.status = CLOSED), destination.destroy(request.fatalError);\n      else if (request.status !== CLOSED && null === request.destination) {\n        request.destination = destination;\n        try {\n          flushCompletedChunks(request);\n        } catch (error) {\n          logRecoverableError(request, error, null), fatalError(request, error);\n        }\n      }\n    }\n    function startFlowingDebug(request, debugDestination) {\n      if (request.status === CLOSING)\n        (request.status = CLOSED), debugDestination.destroy(request.fatalError);\n      else if (request.status !== CLOSED && null === request.debugDestination) {\n        request.debugDestination = debugDestination;\n        try {\n          flushCompletedChunks(request);\n        } catch (error) {\n          logRecoverableError(request, error, null), fatalError(request, error);\n        }\n      }\n    }\n    function finishHalt(request, abortedTasks) {\n      try {\n        abortedTasks.forEach(function (task) {\n          return finishHaltedTask(task, request);\n        });\n        var onAllReady = request.onAllReady;\n        onAllReady();\n        flushCompletedChunks(request);\n      } catch (error) {\n        logRecoverableError(request, error, null), fatalError(request, error);\n      }\n    }\n    function finishAbort(request, abortedTasks, errorId) {\n      try {\n        abortedTasks.forEach(function (task) {\n          return finishAbortedTask(task, request, errorId);\n        });\n        var onAllReady = request.onAllReady;\n        onAllReady();\n        flushCompletedChunks(request);\n      } catch (error) {\n        logRecoverableError(request, error, null), fatalError(request, error);\n      }\n    }\n    function abort(request, reason) {\n      if (!(11 < request.status))\n        try {\n          request.status = ABORTING;\n          request.abortTime = performance.now();\n          request.cacheController.abort(reason);\n          var abortableTasks = request.abortableTasks;\n          if (0 < abortableTasks.size)\n            if (request.type === PRERENDER)\n              abortableTasks.forEach(function (task) {\n                return haltTask(task, request);\n              }),\n                setImmediate(function () {\n                  return finishHalt(request, abortableTasks);\n                });\n            else {\n              var error =\n                  void 0 === reason\n                    ? Error(\n                        \"The render was aborted by the server without a reason.\"\n                      )\n                    : \"object\" === typeof reason &&\n                        null !== reason &&\n                        \"function\" === typeof reason.then\n                      ? Error(\n                          \"The render was aborted by the server with a promise.\"\n                        )\n                      : reason,\n                digest = logRecoverableError(request, error, null),\n                errorId = request.nextChunkId++;\n              request.fatalError = errorId;\n              request.pendingChunks++;\n              emitErrorChunk(request, errorId, digest, error, !1, null);\n              abortableTasks.forEach(function (task) {\n                return abortTask(task, request, errorId);\n              });\n              setImmediate(function () {\n                return finishAbort(request, abortableTasks, errorId);\n              });\n            }\n          else {\n            var onAllReady = request.onAllReady;\n            onAllReady();\n            flushCompletedChunks(request);\n          }\n        } catch (error$8) {\n          logRecoverableError(request, error$8, null),\n            fatalError(request, error$8);\n        }\n    }\n    function fromHex(str) {\n      return parseInt(str, 16);\n    }\n    function resolveDebugMessage(request, message) {\n      var deferredDebugObjects = request.deferredDebugObjects;\n      if (null === deferredDebugObjects)\n        throw Error(\n          \"resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React.\"\n        );\n      if (\"\" === message) closeDebugChannel(request);\n      else {\n        var command = message.charCodeAt(0);\n        message = message.slice(2).split(\",\").map(fromHex);\n        switch (command) {\n          case 82:\n            for (command = 0; command < message.length; command++) {\n              var id = message[command],\n                retainedValue = deferredDebugObjects.retained.get(id);\n              void 0 !== retainedValue &&\n                (request.pendingDebugChunks--,\n                deferredDebugObjects.retained.delete(id),\n                deferredDebugObjects.existing.delete(retainedValue),\n                enqueueFlush(request));\n            }\n            break;\n          case 81:\n            for (command = 0; command < message.length; command++)\n              (id = message[command]),\n                (retainedValue = deferredDebugObjects.retained.get(id)),\n                void 0 !== retainedValue &&\n                  (deferredDebugObjects.retained.delete(id),\n                  deferredDebugObjects.existing.delete(retainedValue),\n                  emitOutlinedDebugModelChunk(\n                    request,\n                    id,\n                    { objectLimit: 10 },\n                    retainedValue\n                  ),\n                  enqueueFlush(request));\n            break;\n          case 80:\n            for (command = 0; command < message.length; command++)\n              (id = message[command]),\n                (retainedValue = deferredDebugObjects.retained.get(id)),\n                void 0 !== retainedValue &&\n                  (deferredDebugObjects.retained.delete(id),\n                  emitRequestedDebugThenable(\n                    request,\n                    id,\n                    { objectLimit: 10 },\n                    retainedValue\n                  ));\n            break;\n          default:\n            throw Error(\n              \"Unknown command. The debugChannel was not wired up properly.\"\n            );\n        }\n      }\n    }\n    function closeDebugChannel(request) {\n      var deferredDebugObjects = request.deferredDebugObjects;\n      if (null === deferredDebugObjects)\n        throw Error(\n          \"resolveDebugMessage/closeDebugChannel should not be called for a Request that wasn't kept alive. This is a bug in React.\"\n        );\n      deferredDebugObjects.retained.forEach(function (value, id) {\n        request.pendingDebugChunks--;\n        deferredDebugObjects.retained.delete(id);\n        deferredDebugObjects.existing.delete(value);\n      });\n      enqueueFlush(request);\n    }\n    function resolveServerReference(bundlerConfig, id) {\n      var name = \"\",\n        resolvedModuleData = bundlerConfig[id];\n      if (resolvedModuleData) name = resolvedModuleData.name;\n      else {\n        var idx = id.lastIndexOf(\"#\");\n        -1 !== idx &&\n          ((name = id.slice(idx + 1)),\n          (resolvedModuleData = bundlerConfig[id.slice(0, idx)]));\n        if (!resolvedModuleData)\n          throw Error(\n            'Could not find the module \"' +\n              id +\n              '\" in the React Server Manifest. This is probably a bug in the React Server Components bundler.'\n          );\n      }\n      return resolvedModuleData.async\n        ? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]\n        : [resolvedModuleData.id, resolvedModuleData.chunks, name];\n    }\n    function requireAsyncModule(id) {\n      var promise = globalThis.__next_require__(id);\n      if (\"function\" !== typeof promise.then || \"fulfilled\" === promise.status)\n        return null;\n      promise.then(\n        function (value) {\n          promise.status = \"fulfilled\";\n          promise.value = value;\n        },\n        function (reason) {\n          promise.status = \"rejected\";\n          promise.reason = reason;\n        }\n      );\n      return promise;\n    }\n    function ignoreReject() {}\n    function preloadModule(metadata) {\n      for (\n        var chunks = metadata[1], promises = [], i = 0;\n        i < chunks.length;\n        i++\n      ) {\n        var thenable = globalThis.__next_chunk_load__(chunks[i]);\n        loadedChunks.has(thenable) || promises.push(thenable);\n        if (!instrumentedChunks.has(thenable)) {\n          var resolve = loadedChunks.add.bind(loadedChunks, thenable);\n          thenable.then(resolve, ignoreReject);\n          instrumentedChunks.add(thenable);\n        }\n      }\n      return 4 === metadata.length\n        ? 0 === promises.length\n          ? requireAsyncModule(metadata[0])\n          : Promise.all(promises).then(function () {\n              return requireAsyncModule(metadata[0]);\n            })\n        : 0 < promises.length\n          ? Promise.all(promises)\n          : null;\n    }\n    function requireModule(metadata) {\n      var moduleExports = globalThis.__next_require__(metadata[0]);\n      if (4 === metadata.length && \"function\" === typeof moduleExports.then)\n        if (\"fulfilled\" === moduleExports.status)\n          moduleExports = moduleExports.value;\n        else throw moduleExports.reason;\n      if (\"*\" === metadata[2]) return moduleExports;\n      if (\"\" === metadata[2])\n        return moduleExports.__esModule ? moduleExports.default : moduleExports;\n      if (hasOwnProperty.call(moduleExports, metadata[2]))\n        return moduleExports[metadata[2]];\n    }\n    function appendBackingEntry(backingStore, key, value) {\n      backingStore.data.append(key, value);\n      value = backingStore.keys;\n      null === value\n        ? ((backingStore.keys = Array.from(backingStore.data.keys())),\n          (backingStore.keyPointer = 0))\n        : value.push(key);\n    }\n    function ReactPromise(status, value, reason) {\n      this.status = status;\n      this.value = value;\n      this.reason = reason;\n    }\n    function wakeChunk(response, listeners, value, chunk) {\n      for (var i = 0; i < listeners.length; i++) {\n        var listener = listeners[i];\n        \"function\" === typeof listener\n          ? listener(value)\n          : fulfillReference(response, listener, value, chunk.reason);\n      }\n    }\n    function rejectChunk(response, listeners, error) {\n      for (var i = 0; i < listeners.length; i++) {\n        var listener = listeners[i];\n        \"function\" === typeof listener\n          ? listener(error)\n          : rejectReference(response, listener.handler, error);\n      }\n    }\n    function triggerErrorOnChunk(response, chunk, error) {\n      if (\"pending\" !== chunk.status && \"blocked\" !== chunk.status)\n        chunk.reason.error(error);\n      else {\n        var listeners = chunk.reason;\n        chunk.status = \"rejected\";\n        chunk.reason = error;\n        null !== listeners && rejectChunk(response, listeners, error);\n      }\n    }\n    function createResolvedModelChunk(response, value, id) {\n      var $jscomp$compprop2 = {};\n      return new ReactPromise(\n        \"resolved_model\",\n        value,\n        (($jscomp$compprop2.id = id),\n        ($jscomp$compprop2[RESPONSE_SYMBOL] = response),\n        $jscomp$compprop2)\n      );\n    }\n    function resolveModelChunk(response, chunk, value, id) {\n      if (\"pending\" !== chunk.status)\n        (chunk = chunk.reason),\n          \"C\" === value[0]\n            ? chunk.close(\"C\" === value ? '\"$undefined\"' : value.slice(1))\n            : chunk.enqueueModel(value);\n      else {\n        var resolveListeners = chunk.value,\n          rejectListeners = chunk.reason;\n        chunk.status = \"resolved_model\";\n        chunk.value = value;\n        value = {};\n        chunk.reason =\n          ((value.id = id), (value[RESPONSE_SYMBOL] = response), value);\n        if (null !== resolveListeners)\n          switch ((initializeModelChunk(chunk), chunk.status)) {\n            case \"fulfilled\":\n              wakeChunk(response, resolveListeners, chunk.value, chunk);\n              break;\n            case \"blocked\":\n            case \"pending\":\n              if (chunk.value)\n                for (\n                  response = 0;\n                  response < resolveListeners.length;\n                  response++\n                )\n                  chunk.value.push(resolveListeners[response]);\n              else chunk.value = resolveListeners;\n              if (chunk.reason) {\n                if (rejectListeners)\n                  for (\n                    resolveListeners = 0;\n                    resolveListeners < rejectListeners.length;\n                    resolveListeners++\n                  )\n                    chunk.reason.push(rejectListeners[resolveListeners]);\n              } else chunk.reason = rejectListeners;\n              break;\n            case \"rejected\":\n              rejectListeners &&\n                rejectChunk(response, rejectListeners, chunk.reason);\n          }\n      }\n    }\n    function createResolvedIteratorResultChunk(response, value, done) {\n      var $jscomp$compprop4 = {};\n      return new ReactPromise(\n        \"resolved_model\",\n        (done ? '{\"done\":true,\"value\":' : '{\"done\":false,\"value\":') +\n          value +\n          \"}\",\n        (($jscomp$compprop4.id = -1),\n        ($jscomp$compprop4[RESPONSE_SYMBOL] = response),\n        $jscomp$compprop4)\n      );\n    }\n    function resolveIteratorResultChunk(response, chunk, value, done) {\n      resolveModelChunk(\n        response,\n        chunk,\n        (done ? '{\"done\":true,\"value\":' : '{\"done\":false,\"value\":') +\n          value +\n          \"}\",\n        -1\n      );\n    }\n    function loadServerReference$1(response, metaData, parentObject, key) {\n      function reject(error) {\n        var rejectListeners = blockedPromise.reason,\n          erroredPromise = blockedPromise;\n        erroredPromise.status = \"rejected\";\n        erroredPromise.value = null;\n        erroredPromise.reason = error;\n        null !== rejectListeners &&\n          rejectChunk(response, rejectListeners, error);\n        rejectReference(response, handler, error);\n      }\n      var id = metaData.id;\n      if (\"string\" !== typeof id || \"then\" === key) return null;\n      var cachedPromise = metaData.$$promise;\n      if (void 0 !== cachedPromise) {\n        if (\"fulfilled\" === cachedPromise.status)\n          return (\n            (cachedPromise = cachedPromise.value),\n            \"__proto__\" === key ? null : (parentObject[key] = cachedPromise)\n          );\n        initializingHandler\n          ? ((id = initializingHandler), id.deps++)\n          : (id = initializingHandler =\n              { chunk: null, value: null, reason: null, deps: 1, errored: !1 });\n        cachedPromise.then(\n          resolveReference.bind(null, response, id, parentObject, key),\n          rejectReference.bind(null, response, id)\n        );\n        return null;\n      }\n      var blockedPromise = new ReactPromise(\"blocked\", null, null);\n      metaData.$$promise = blockedPromise;\n      var serverReference = resolveServerReference(response._bundlerConfig, id);\n      cachedPromise = metaData.bound;\n      if ((id = preloadModule(serverReference)))\n        cachedPromise instanceof ReactPromise &&\n          (id = Promise.all([id, cachedPromise]));\n      else if (cachedPromise instanceof ReactPromise)\n        id = Promise.resolve(cachedPromise);\n      else\n        return (\n          (cachedPromise = requireModule(serverReference)),\n          (id = blockedPromise),\n          (id.status = \"fulfilled\"),\n          (id.value = cachedPromise),\n          (id.reason = null),\n          cachedPromise\n        );\n      if (initializingHandler) {\n        var handler = initializingHandler;\n        handler.deps++;\n      } else\n        handler = initializingHandler = {\n          chunk: null,\n          value: null,\n          reason: null,\n          deps: 1,\n          errored: !1\n        };\n      id.then(function () {\n        var resolvedValue = requireModule(serverReference);\n        if (metaData.bound) {\n          var promiseValue = metaData.bound.value;\n          promiseValue = isArrayImpl(promiseValue) ? promiseValue.slice(0) : [];\n          if (promiseValue.length > MAX_BOUND_ARGS) {\n            reject(\n              Error(\n                \"Server Function has too many bound arguments. Received \" +\n                  promiseValue.length +\n                  \" but the limit is \" +\n                  MAX_BOUND_ARGS +\n                  \".\"\n              )\n            );\n            return;\n          }\n          promiseValue.unshift(null);\n          resolvedValue = resolvedValue.bind.apply(resolvedValue, promiseValue);\n        }\n        promiseValue = blockedPromise.value;\n        var initializedPromise = blockedPromise;\n        initializedPromise.status = \"fulfilled\";\n        initializedPromise.value = resolvedValue;\n        initializedPromise.reason = null;\n        null !== promiseValue &&\n          wakeChunk(response, promiseValue, resolvedValue, initializedPromise);\n        resolveReference(response, handler, parentObject, key, resolvedValue);\n      }, reject);\n      return null;\n    }\n    function reviveModel(\n      response,\n      parentObj,\n      parentKey,\n      value,\n      reference,\n      arrayRoot\n    ) {\n      if (\"string\" === typeof value)\n        return parseModelString(\n          response,\n          parentObj,\n          parentKey,\n          value,\n          reference,\n          arrayRoot\n        );\n      if (\"object\" === typeof value && null !== value)\n        if (\n          (void 0 !== reference &&\n            void 0 !== response._temporaryReferences &&\n            response._temporaryReferences.set(value, reference),\n          isArrayImpl(value))\n        ) {\n          if (null === arrayRoot) {\n            var childContext = { count: 0, fork: !1 };\n            response._rootArrayContexts.set(value, childContext);\n          } else childContext = arrayRoot;\n          1 < value.length && (childContext.fork = !0);\n          bumpArrayCount(childContext, value.length + 1, response);\n          for (parentObj = 0; parentObj < value.length; parentObj++)\n            value[parentObj] = reviveModel(\n              response,\n              value,\n              \"\" + parentObj,\n              value[parentObj],\n              void 0 !== reference ? reference + \":\" + parentObj : void 0,\n              childContext\n            );\n        } else\n          for (childContext in value)\n            hasOwnProperty.call(value, childContext) &&\n              (\"__proto__\" === childContext\n                ? delete value[childContext]\n                : ((parentObj =\n                    void 0 !== reference && -1 === childContext.indexOf(\":\")\n                      ? reference + \":\" + childContext\n                      : void 0),\n                  (parentObj = reviveModel(\n                    response,\n                    value,\n                    childContext,\n                    value[childContext],\n                    parentObj,\n                    null\n                  )),\n                  void 0 !== parentObj\n                    ? (value[childContext] = parentObj)\n                    : delete value[childContext]));\n      return value;\n    }\n    function bumpArrayCount(arrayContext, slots, response) {\n      if (\n        (arrayContext.count += slots) > response._arraySizeLimit &&\n        arrayContext.fork\n      )\n        throw Error(\n          \"Maximum array nesting exceeded. Large nested arrays can be dangerous. Try adding intermediate objects.\"\n        );\n    }\n    function initializeModelChunk(chunk) {\n      var prevHandler = initializingHandler;\n      initializingHandler = null;\n      var _chunk$reason = chunk.reason,\n        response = _chunk$reason[RESPONSE_SYMBOL];\n      _chunk$reason = _chunk$reason.id;\n      _chunk$reason =\n        -1 === _chunk$reason ? void 0 : _chunk$reason.toString(16);\n      var resolvedModel = chunk.value;\n      chunk.status = \"blocked\";\n      chunk.value = null;\n      chunk.reason = null;\n      try {\n        var rawModel = JSON.parse(resolvedModel);\n        resolvedModel = { count: 0, fork: !1 };\n        var value = reviveModel(\n            response,\n            { \"\": rawModel },\n            \"\",\n            rawModel,\n            _chunk$reason,\n            resolvedModel\n          ),\n          resolveListeners = chunk.value;\n        if (null !== resolveListeners)\n          for (\n            chunk.value = null, chunk.reason = null, rawModel = 0;\n            rawModel < resolveListeners.length;\n            rawModel++\n          ) {\n            var listener = resolveListeners[rawModel];\n            \"function\" === typeof listener\n              ? listener(value)\n              : fulfillReference(response, listener, value, resolvedModel);\n          }\n        if (null !== initializingHandler) {\n          if (initializingHandler.errored) throw initializingHandler.reason;\n          if (0 < initializingHandler.deps) {\n            initializingHandler.value = value;\n            initializingHandler.reason = resolvedModel;\n            initializingHandler.chunk = chunk;\n            return;\n          }\n        }\n        chunk.status = \"fulfilled\";\n        chunk.value = value;\n        chunk.reason = resolvedModel;\n      } catch (error) {\n        (chunk.status = \"rejected\"), (chunk.reason = error);\n      } finally {\n        initializingHandler = prevHandler;\n      }\n    }\n    function reportGlobalError(response, error) {\n      response._closed = !0;\n      response._closedReason = error;\n      response._chunks.forEach(function (chunk) {\n        \"pending\" === chunk.status\n          ? triggerErrorOnChunk(response, chunk, error)\n          : \"fulfilled\" === chunk.status &&\n            null !== chunk.reason &&\n            ((chunk = chunk.reason),\n            \"function\" === typeof chunk.error && chunk.error(error));\n      });\n    }\n    function getChunk(response, id) {\n      var chunks = response._chunks,\n        chunk = chunks.get(id);\n      chunk ||\n        ((chunk = response._formData.data.get(response._prefix + id)),\n        (chunk =\n          \"string\" === typeof chunk\n            ? createResolvedModelChunk(response, chunk, id)\n            : response._closed\n              ? new ReactPromise(\"rejected\", null, response._closedReason)\n              : new ReactPromise(\"pending\", null, null)),\n        chunks.set(id, chunk));\n      return chunk;\n    }\n    function fulfillReference(response, reference, value, arrayRoot) {\n      var handler = reference.handler,\n        parentObject = reference.parentObject,\n        key = reference.key,\n        map = reference.map,\n        path = reference.path;\n      try {\n        for (\n          var localLength = 0,\n            rootArrayContexts = response._rootArrayContexts,\n            i = 1;\n          i < path.length;\n          i++\n        ) {\n          var name = path[i];\n          if (\n            \"object\" !== typeof value ||\n            null === value ||\n            (getPrototypeOf(value) !== ObjectPrototype &&\n              getPrototypeOf(value) !== ArrayPrototype) ||\n            !hasOwnProperty.call(value, name)\n          )\n            throw Error(\"Invalid reference.\");\n          value = value[name];\n          if (isArrayImpl(value))\n            (localLength = 0),\n              (arrayRoot = rootArrayContexts.get(value) || arrayRoot);\n          else if (((arrayRoot = null), \"string\" === typeof value))\n            localLength = value.length;\n          else if (\"bigint\" === typeof value) {\n            var n = Math.abs(Number(value));\n            localLength = 0 === n ? 1 : Math.floor(Math.log10(n)) + 1;\n          } else localLength = ArrayBuffer.isView(value) ? value.byteLength : 0;\n        }\n        var resolvedValue = map(response, value, parentObject, key);\n        var referenceArrayRoot = reference.arrayRoot;\n        null !== referenceArrayRoot &&\n          (null !== arrayRoot\n            ? (arrayRoot.fork && (referenceArrayRoot.fork = !0),\n              bumpArrayCount(referenceArrayRoot, arrayRoot.count, response))\n            : 0 < localLength &&\n              bumpArrayCount(referenceArrayRoot, localLength, response));\n      } catch (error) {\n        rejectReference(response, handler, error);\n        return;\n      }\n      resolveReference(response, handler, parentObject, key, resolvedValue);\n    }\n    function resolveReference(\n      response,\n      handler,\n      parentObject,\n      key,\n      resolvedValue\n    ) {\n      \"__proto__\" !== key && (parentObject[key] = resolvedValue);\n      \"\" === key && null === handler.value && (handler.value = resolvedValue);\n      handler.deps--;\n      0 === handler.deps &&\n        ((parentObject = handler.chunk),\n        null !== parentObject &&\n          \"blocked\" === parentObject.status &&\n          ((key = parentObject.value),\n          (parentObject.status = \"fulfilled\"),\n          (parentObject.value = handler.value),\n          (parentObject.reason = handler.reason),\n          null !== key &&\n            wakeChunk(response, key, handler.value, parentObject)));\n    }\n    function rejectReference(response, handler, error) {\n      handler.errored ||\n        ((handler.errored = !0),\n        (handler.value = null),\n        (handler.reason = error),\n        (handler = handler.chunk),\n        null !== handler &&\n          \"blocked\" === handler.status &&\n          triggerErrorOnChunk(response, handler, error));\n    }\n    function getOutlinedModel(\n      response,\n      reference,\n      parentObject,\n      key,\n      referenceArrayRoot,\n      map\n    ) {\n      reference = reference.split(\":\");\n      var id = parseInt(reference[0], 16),\n        chunk = getChunk(response, id);\n      switch (chunk.status) {\n        case \"resolved_model\":\n          initializeModelChunk(chunk);\n      }\n      switch (chunk.status) {\n        case \"fulfilled\":\n          id = chunk.value;\n          chunk = chunk.reason;\n          if (null !== chunk && \"error\" in chunk)\n            throw Error(\n              \"Expected an initialized chunk but got an initialized stream chunk instead. This payload may have been submitted by an older version of React.\"\n            );\n          for (\n            var localLength = 0,\n              rootArrayContexts = response._rootArrayContexts,\n              i = 1;\n            i < reference.length;\n            i++\n          ) {\n            localLength = reference[i];\n            if (\n              \"object\" !== typeof id ||\n              null === id ||\n              (getPrototypeOf(id) !== ObjectPrototype &&\n                getPrototypeOf(id) !== ArrayPrototype) ||\n              !hasOwnProperty.call(id, localLength)\n            )\n              throw Error(\"Invalid reference.\");\n            id = id[localLength];\n            isArrayImpl(id)\n              ? ((localLength = 0),\n                (chunk = rootArrayContexts.get(id) || chunk))\n              : ((chunk = null),\n                \"string\" === typeof id\n                  ? (localLength = id.length)\n                  : \"bigint\" === typeof id\n                    ? ((localLength = Math.abs(Number(id))),\n                      (localLength =\n                        0 === localLength\n                          ? 1\n                          : Math.floor(Math.log10(localLength)) + 1))\n                    : (localLength = ArrayBuffer.isView(id)\n                        ? id.byteLength\n                        : 0));\n          }\n          parentObject = map(response, id, parentObject, key);\n          null !== referenceArrayRoot &&\n            (null !== chunk\n              ? (chunk.fork && (referenceArrayRoot.fork = !0),\n                bumpArrayCount(referenceArrayRoot, chunk.count, response))\n              : 0 < localLength &&\n                bumpArrayCount(referenceArrayRoot, localLength, response));\n          return parentObject;\n        case \"blocked\":\n          return (\n            initializingHandler\n              ? ((response = initializingHandler), response.deps++)\n              : (response = initializingHandler =\n                  {\n                    chunk: null,\n                    value: null,\n                    reason: null,\n                    deps: 1,\n                    errored: !1\n                  }),\n            (referenceArrayRoot = {\n              handler: response,\n              parentObject: parentObject,\n              key: key,\n              map: map,\n              path: reference,\n              arrayRoot: referenceArrayRoot\n            }),\n            null === chunk.value\n              ? (chunk.value = [referenceArrayRoot])\n              : chunk.value.push(referenceArrayRoot),\n            null === chunk.reason\n              ? (chunk.reason = [referenceArrayRoot])\n              : chunk.reason.push(referenceArrayRoot),\n            null\n          );\n        case \"pending\":\n          throw Error(\"Invalid forward reference.\");\n        default:\n          return (\n            initializingHandler\n              ? ((initializingHandler.errored = !0),\n                (initializingHandler.value = null),\n                (initializingHandler.reason = chunk.reason))\n              : (initializingHandler = {\n                  chunk: null,\n                  value: null,\n                  reason: chunk.reason,\n                  deps: 0,\n                  errored: !0\n                }),\n            null\n          );\n      }\n    }\n    function createMap(response, model) {\n      if (!isArrayImpl(model)) throw Error(\"Invalid Map initializer.\");\n      if (!0 === model.$$consumed) throw Error(\"Already initialized Map.\");\n      model.$$consumed = !0;\n      return new Map(model);\n    }\n    function createSet(response, model) {\n      if (!isArrayImpl(model)) throw Error(\"Invalid Set initializer.\");\n      if (!0 === model.$$consumed) throw Error(\"Already initialized Set.\");\n      model.$$consumed = !0;\n      return new Set(model);\n    }\n    function extractIterator(response, model) {\n      if (!isArrayImpl(model)) throw Error(\"Invalid Iterator initializer.\");\n      if (!0 === model.$$consumed) throw Error(\"Already initialized Iterator.\");\n      model.$$consumed = !0;\n      return model[Symbol.iterator]();\n    }\n    function createModel(response, model, parentObject, key) {\n      return \"then\" === key && \"function\" === typeof model ? null : model;\n    }\n    function parseTypedArray(\n      response,\n      reference,\n      constructor,\n      bytesPerElement,\n      parentObject,\n      parentKey,\n      referenceArrayRoot\n    ) {\n      function reject(error) {\n        if (!handler.errored) {\n          handler.errored = !0;\n          handler.value = null;\n          handler.reason = error;\n          var chunk = handler.chunk;\n          null !== chunk &&\n            \"blocked\" === chunk.status &&\n            triggerErrorOnChunk(response, chunk, error);\n        }\n      }\n      reference = parseInt(reference.slice(2), 16);\n      var key = response._prefix + reference;\n      bytesPerElement = response._chunks;\n      if (bytesPerElement.has(reference))\n        throw Error(\"Already initialized typed array.\");\n      bytesPerElement.set(\n        reference,\n        new ReactPromise(\n          \"rejected\",\n          null,\n          Error(\"Already initialized typed array.\")\n        )\n      );\n      reference = response._formData.data.get(key).arrayBuffer();\n      if (initializingHandler) {\n        var handler = initializingHandler;\n        handler.deps++;\n      } else\n        handler = initializingHandler = {\n          chunk: null,\n          value: null,\n          reason: null,\n          deps: 1,\n          errored: !1\n        };\n      reference.then(function (buffer) {\n        try {\n          null !== referenceArrayRoot &&\n            bumpArrayCount(referenceArrayRoot, buffer.byteLength, response);\n          var resolvedValue =\n            constructor === ArrayBuffer ? buffer : new constructor(buffer);\n          \"__proto__\" !== key && (parentObject[parentKey] = resolvedValue);\n          \"\" === parentKey &&\n            null === handler.value &&\n            (handler.value = resolvedValue);\n        } catch (x) {\n          reject(x);\n          return;\n        }\n        handler.deps--;\n        0 === handler.deps &&\n          ((buffer = handler.chunk),\n          null !== buffer &&\n            \"blocked\" === buffer.status &&\n            ((resolvedValue = buffer.value),\n            (buffer.status = \"fulfilled\"),\n            (buffer.value = handler.value),\n            (buffer.reason = null),\n            null !== resolvedValue &&\n              wakeChunk(response, resolvedValue, handler.value, buffer)));\n      }, reject);\n      return null;\n    }\n    function resolveStream(response, id, stream, controller) {\n      var chunks = response._chunks;\n      stream = new ReactPromise(\"fulfilled\", stream, controller);\n      chunks.set(id, stream);\n      response = response._formData.data.getAll(response._prefix + id);\n      for (id = 0; id < response.length; id++)\n        (chunks = response[id]),\n          \"string\" === typeof chunks &&\n            (\"C\" === chunks[0]\n              ? controller.close(\n                  \"C\" === chunks ? '\"$undefined\"' : chunks.slice(1)\n                )\n              : controller.enqueueModel(chunks));\n    }\n    function parseReadableStream(response, reference, type) {\n      function enqueue(value) {\n        \"bytes\" !== type || ArrayBuffer.isView(value)\n          ? controller.enqueue(value)\n          : flightController.error(Error(\"Invalid data for bytes stream.\"));\n      }\n      reference = parseInt(reference.slice(2), 16);\n      if (response._chunks.has(reference))\n        throw Error(\"Already initialized stream.\");\n      var controller = null,\n        closed = !1,\n        stream = new ReadableStream({\n          type: type,\n          start: function (c) {\n            controller = c;\n          }\n        }),\n        previousBlockedChunk = null,\n        flightController = {\n          enqueueModel: function (json) {\n            if (null === previousBlockedChunk) {\n              var chunk = createResolvedModelChunk(response, json, -1);\n              initializeModelChunk(chunk);\n              \"fulfilled\" === chunk.status\n                ? enqueue(chunk.value)\n                : (chunk.then(enqueue, flightController.error),\n                  (previousBlockedChunk = chunk));\n            } else {\n              chunk = previousBlockedChunk;\n              var _chunk = new ReactPromise(\"pending\", null, null);\n              _chunk.then(enqueue, flightController.error);\n              previousBlockedChunk = _chunk;\n              chunk.then(function () {\n                previousBlockedChunk === _chunk &&\n                  (previousBlockedChunk = null);\n                resolveModelChunk(response, _chunk, json, -1);\n              });\n            }\n          },\n          close: function () {\n            if (!closed)\n              if (((closed = !0), null === previousBlockedChunk))\n                controller.close();\n              else {\n                var blockedChunk = previousBlockedChunk;\n                previousBlockedChunk = null;\n                blockedChunk.then(function () {\n                  return controller.close();\n                });\n              }\n          },\n          error: function (error) {\n            if (!closed)\n              if (((closed = !0), null === previousBlockedChunk))\n                controller.error(error);\n              else {\n                var blockedChunk = previousBlockedChunk;\n                previousBlockedChunk = null;\n                blockedChunk.then(function () {\n                  return controller.error(error);\n                });\n              }\n          }\n        };\n      resolveStream(response, reference, stream, flightController);\n      return stream;\n    }\n    function FlightIterator(next) {\n      this.next = next;\n    }\n    function parseAsyncIterable(response, reference, iterator) {\n      reference = parseInt(reference.slice(2), 16);\n      if (response._chunks.has(reference))\n        throw Error(\"Already initialized stream.\");\n      var buffer = [],\n        closed = !1,\n        nextWriteIndex = 0,\n        $jscomp$compprop5 = {};\n      $jscomp$compprop5 =\n        (($jscomp$compprop5[ASYNC_ITERATOR] = function () {\n          var nextReadIndex = 0;\n          return new FlightIterator(function (arg) {\n            if (void 0 !== arg)\n              throw Error(\n                \"Values cannot be passed to next() of AsyncIterables passed to Client Components.\"\n              );\n            if (nextReadIndex === buffer.length) {\n              if (closed)\n                return new ReactPromise(\n                  \"fulfilled\",\n                  { done: !0, value: void 0 },\n                  null\n                );\n              buffer[nextReadIndex] = new ReactPromise(\"pending\", null, null);\n            }\n            return buffer[nextReadIndex++];\n          });\n        }),\n        $jscomp$compprop5);\n      iterator = iterator\n        ? $jscomp$compprop5[ASYNC_ITERATOR]()\n        : $jscomp$compprop5;\n      resolveStream(response, reference, iterator, {\n        enqueueModel: function (value) {\n          nextWriteIndex === buffer.length\n            ? (buffer[nextWriteIndex] = createResolvedIteratorResultChunk(\n                response,\n                value,\n                !1\n              ))\n            : resolveIteratorResultChunk(\n                response,\n                buffer[nextWriteIndex],\n                value,\n                !1\n              );\n          nextWriteIndex++;\n        },\n        close: function (value) {\n          if (!closed)\n            for (\n              closed = !0,\n                nextWriteIndex === buffer.length\n                  ? (buffer[nextWriteIndex] = createResolvedIteratorResultChunk(\n                      response,\n                      value,\n                      !0\n                    ))\n                  : resolveIteratorResultChunk(\n                      response,\n                      buffer[nextWriteIndex],\n                      value,\n                      !0\n                    ),\n                nextWriteIndex++;\n              nextWriteIndex < buffer.length;\n\n            )\n              resolveIteratorResultChunk(\n                response,\n                buffer[nextWriteIndex++],\n                '\"$undefined\"',\n                !0\n              );\n        },\n        error: function (error) {\n          if (!closed)\n            for (\n              closed = !0,\n                nextWriteIndex === buffer.length &&\n                  (buffer[nextWriteIndex] = new ReactPromise(\n                    \"pending\",\n                    null,\n                    null\n                  ));\n              nextWriteIndex < buffer.length;\n\n            )\n              triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);\n        }\n      });\n      return iterator;\n    }\n    function parseModelString(response, obj, key, value, reference, arrayRoot) {\n      if (\"$\" === value[0]) {\n        switch (value[1]) {\n          case \"$\":\n            return (\n              null !== arrayRoot &&\n                bumpArrayCount(arrayRoot, value.length - 1, response),\n              value.slice(1)\n            );\n          case \"@\":\n            return (\n              (obj = parseInt(value.slice(2), 16)), getChunk(response, obj)\n            );\n          case \"h\":\n            return (\n              (arrayRoot = value.slice(2)),\n              getOutlinedModel(\n                response,\n                arrayRoot,\n                obj,\n                key,\n                null,\n                loadServerReference$1\n              )\n            );\n          case \"T\":\n            if (\n              void 0 === reference ||\n              void 0 === response._temporaryReferences\n            )\n              throw Error(\n                \"Could not reference an opaque temporary reference. This is likely due to misconfiguring the temporaryReferences options on the server.\"\n              );\n            return createTemporaryReference(\n              response._temporaryReferences,\n              reference\n            );\n          case \"Q\":\n            return (\n              (arrayRoot = value.slice(2)),\n              getOutlinedModel(response, arrayRoot, obj, key, null, createMap)\n            );\n          case \"W\":\n            return (\n              (arrayRoot = value.slice(2)),\n              getOutlinedModel(response, arrayRoot, obj, key, null, createSet)\n            );\n          case \"K\":\n            key = value.slice(2);\n            obj = response._prefix + \"_\";\n            key = obj + key + \"_\";\n            arrayRoot = new FormData();\n            for (response = response._formData; ; ) {\n              value = response;\n              reference = value.keys;\n              null === reference &&\n                ((reference = value.keys = Array.from(value.data.keys())),\n                (value.keyPointer = 0));\n              value = reference[value.keyPointer];\n              if (void 0 === value) break;\n              if (value.startsWith(key)) {\n                reference = response.data.getAll(value);\n                for (\n                  var referencedFormDataKey = value.slice(key.length), i = 0;\n                  i < reference.length;\n                  i++\n                )\n                  arrayRoot.append(referencedFormDataKey, reference[i]);\n                reference = response;\n                reference.data.delete(value);\n                reference.keyPointer++;\n              } else if (value.startsWith(obj)) break;\n              else response.keyPointer++;\n            }\n            return arrayRoot;\n          case \"i\":\n            return (\n              (arrayRoot = value.slice(2)),\n              getOutlinedModel(\n                response,\n                arrayRoot,\n                obj,\n                key,\n                null,\n                extractIterator\n              )\n            );\n          case \"I\":\n            return Infinity;\n          case \"-\":\n            return \"$-0\" === value ? -0 : -Infinity;\n          case \"N\":\n            return NaN;\n          case \"u\":\n            return;\n          case \"D\":\n            return new Date(Date.parse(value.slice(2)));\n          case \"n\":\n            obj = value.slice(2);\n            if (obj.length > MAX_BIGINT_DIGITS)\n              throw Error(\n                \"BigInt is too large. Received \" +\n                  obj.length +\n                  \" digits but the limit is \" +\n                  MAX_BIGINT_DIGITS +\n                  \".\"\n              );\n            null !== arrayRoot &&\n              bumpArrayCount(arrayRoot, obj.length, response);\n            return BigInt(obj);\n          case \"A\":\n            return parseTypedArray(\n              response,\n              value,\n              ArrayBuffer,\n              1,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"O\":\n            return parseTypedArray(\n              response,\n              value,\n              Int8Array,\n              1,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"o\":\n            return parseTypedArray(\n              response,\n              value,\n              Uint8Array,\n              1,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"U\":\n            return parseTypedArray(\n              response,\n              value,\n              Uint8ClampedArray,\n              1,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"S\":\n            return parseTypedArray(\n              response,\n              value,\n              Int16Array,\n              2,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"s\":\n            return parseTypedArray(\n              response,\n              value,\n              Uint16Array,\n              2,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"L\":\n            return parseTypedArray(\n              response,\n              value,\n              Int32Array,\n              4,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"l\":\n            return parseTypedArray(\n              response,\n              value,\n              Uint32Array,\n              4,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"G\":\n            return parseTypedArray(\n              response,\n              value,\n              Float32Array,\n              4,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"g\":\n            return parseTypedArray(\n              response,\n              value,\n              Float64Array,\n              8,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"M\":\n            return parseTypedArray(\n              response,\n              value,\n              BigInt64Array,\n              8,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"m\":\n            return parseTypedArray(\n              response,\n              value,\n              BigUint64Array,\n              8,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"V\":\n            return parseTypedArray(\n              response,\n              value,\n              DataView,\n              1,\n              obj,\n              key,\n              arrayRoot\n            );\n          case \"B\":\n            obj = parseInt(value.slice(2), 16);\n            response = response._formData.data.get(response._prefix + obj);\n            if (!(response instanceof Blob))\n              throw Error(\"Referenced Blob is not a Blob.\");\n            return response;\n          case \"R\":\n            return parseReadableStream(response, value, void 0);\n          case \"r\":\n            return parseReadableStream(response, value, \"bytes\");\n          case \"X\":\n            return parseAsyncIterable(response, value, !1);\n          case \"x\":\n            return parseAsyncIterable(response, value, !0);\n        }\n        value = value.slice(1);\n        return getOutlinedModel(\n          response,\n          value,\n          obj,\n          key,\n          arrayRoot,\n          createModel\n        );\n      }\n      null !== arrayRoot && bumpArrayCount(arrayRoot, value.length, response);\n      return value;\n    }\n    function createResponse(\n      bundlerConfig,\n      formFieldPrefix,\n      temporaryReferences\n    ) {\n      var backingFormData =\n          3 < arguments.length && void 0 !== arguments[3]\n            ? arguments[3]\n            : new FormData(),\n        arraySizeLimit =\n          4 < arguments.length && void 0 !== arguments[4] ? arguments[4] : 1e6,\n        chunks = new Map();\n      return {\n        _bundlerConfig: bundlerConfig,\n        _prefix: formFieldPrefix,\n        _formData: { data: backingFormData, keyPointer: -1, keys: null },\n        _chunks: chunks,\n        _closed: !1,\n        _closedReason: null,\n        _temporaryReferences: temporaryReferences,\n        _rootArrayContexts: new WeakMap(),\n        _arraySizeLimit: arraySizeLimit\n      };\n    }\n    function resolveField(response, key, value) {\n      appendBackingEntry(response._formData, key, value);\n      var prefix = response._prefix;\n      if (key.startsWith(prefix)) {\n        var chunks = response._chunks;\n        key = +key.slice(prefix.length);\n        (chunks = chunks.get(key)) &&\n          resolveModelChunk(response, chunks, value, key);\n      }\n    }\n    function close(response) {\n      reportGlobalError(response, Error(\"Connection closed.\"));\n    }\n    function loadServerReference(bundlerConfig, metaData) {\n      var id = metaData.id;\n      if (\"string\" !== typeof id) return null;\n      var serverReference = resolveServerReference(bundlerConfig, id);\n      bundlerConfig = preloadModule(serverReference);\n      metaData = metaData.bound;\n      return metaData instanceof Promise\n        ? Promise.all([metaData, bundlerConfig]).then(function (_ref) {\n            _ref = _ref[0];\n            var fn = requireModule(serverReference);\n            if (_ref.length > MAX_BOUND_ARGS)\n              throw Error(\n                \"Server Function has too many bound arguments. Received \" +\n                  _ref.length +\n                  \" but the limit is \" +\n                  MAX_BOUND_ARGS +\n                  \".\"\n              );\n            return fn.bind.apply(fn, [null].concat(_ref));\n          })\n        : bundlerConfig\n          ? Promise.resolve(bundlerConfig).then(function () {\n              return requireModule(serverReference);\n            })\n          : Promise.resolve(requireModule(serverReference));\n    }\n    function decodeBoundActionMetaData(\n      body,\n      serverManifest,\n      formFieldPrefix,\n      arraySizeLimit\n    ) {\n      body = createResponse(\n        serverManifest,\n        formFieldPrefix,\n        void 0,\n        body,\n        arraySizeLimit\n      );\n      close(body);\n      body = getChunk(body, 0);\n      body.then(function () {});\n      if (\"fulfilled\" !== body.status) throw body.reason;\n      return body.value;\n    }\n    function createDrainHandler(destination, request) {\n      return function () {\n        return startFlowing(request, destination);\n      };\n    }\n    function createCancelHandler(request, reason) {\n      return function () {\n        request.destination = null;\n        abort(request, Error(reason));\n      };\n    }\n    function startReadingFromDebugChannelReadable(request, stream) {\n      function onData(chunk) {\n        if (\"string\" === typeof chunk) {\n          if (lastWasPartial) {\n            var JSCompiler_temp_const = stringBuffer;\n            var JSCompiler_inline_result = new Uint8Array(0);\n            JSCompiler_inline_result = stringDecoder.decode(\n              JSCompiler_inline_result\n            );\n            stringBuffer = JSCompiler_temp_const + JSCompiler_inline_result;\n            lastWasPartial = !1;\n          }\n          stringBuffer += chunk;\n        } else\n          (stringBuffer += stringDecoder.decode(chunk, decoderOptions)),\n            (lastWasPartial = !0);\n        chunk = stringBuffer.split(\"\\n\");\n        for (\n          JSCompiler_temp_const = 0;\n          JSCompiler_temp_const < chunk.length - 1;\n          JSCompiler_temp_const++\n        )\n          resolveDebugMessage(request, chunk[JSCompiler_temp_const]);\n        stringBuffer = chunk[chunk.length - 1];\n      }\n      function onError(error) {\n        abort(\n          request,\n          Error(\"Lost connection to the Debug Channel.\", { cause: error })\n        );\n      }\n      function onClose() {\n        closeDebugChannel(request);\n      }\n      var stringDecoder = new util.TextDecoder(),\n        lastWasPartial = !1,\n        stringBuffer = \"\";\n      \"function\" === typeof stream.addEventListener &&\n      \"string\" === typeof stream.binaryType\n        ? ((stream.binaryType = \"arraybuffer\"),\n          stream.addEventListener(\"message\", function (event) {\n            onData(event.data);\n          }),\n          stream.addEventListener(\"error\", function (event) {\n            onError(event.error);\n          }),\n          stream.addEventListener(\"close\", onClose))\n        : (stream.on(\"data\", onData),\n          stream.on(\"error\", onError),\n          stream.on(\"end\", onClose));\n    }\n    function createFakeWritableFromWebSocket(webSocket) {\n      return {\n        write: function (chunk) {\n          webSocket.send(chunk);\n          return !0;\n        },\n        end: function () {\n          webSocket.close();\n        },\n        destroy: function (reason) {\n          \"object\" === typeof reason &&\n            null !== reason &&\n            (reason = reason.message);\n          \"string\" === typeof reason\n            ? webSocket.close(1011, reason)\n            : webSocket.close(1011);\n        }\n      };\n    }\n    function createFakeWritableFromReadableStreamController(controller) {\n      return {\n        write: function (chunk) {\n          \"string\" === typeof chunk && (chunk = textEncoder.encode(chunk));\n          controller.enqueue(chunk);\n          return !0;\n        },\n        end: function () {\n          controller.close();\n        },\n        destroy: function (error) {\n          \"function\" === typeof controller.error\n            ? controller.error(error)\n            : controller.close();\n        }\n      };\n    }\n    function startReadingFromDebugChannelReadableStream(request, stream) {\n      function progress(_ref) {\n        var done = _ref.done,\n          buffer = _ref.value;\n        _ref = stringBuffer;\n        done\n          ? ((buffer = new Uint8Array(0)),\n            (buffer = stringDecoder.decode(buffer)))\n          : (buffer = stringDecoder.decode(buffer, decoderOptions));\n        stringBuffer = _ref + buffer;\n        _ref = stringBuffer.split(\"\\n\");\n        for (buffer = 0; buffer < _ref.length - 1; buffer++)\n          resolveDebugMessage(request, _ref[buffer]);\n        stringBuffer = _ref[_ref.length - 1];\n        if (done) closeDebugChannel(request);\n        else return reader.read().then(progress).catch(error);\n      }\n      function error(e) {\n        abort(\n          request,\n          Error(\"Lost connection to the Debug Channel.\", { cause: e })\n        );\n      }\n      var reader = stream.getReader(),\n        stringDecoder = new util.TextDecoder(),\n        stringBuffer = \"\";\n      reader.read().then(progress).catch(error);\n    }\n    function createFakeWritableFromNodeReadable(readable) {\n      return {\n        write: function (chunk) {\n          return readable.push(chunk);\n        },\n        end: function () {\n          readable.push(null);\n        },\n        destroy: function (error) {\n          readable.destroy(error);\n        }\n      };\n    }\n    var stream = require(\"stream\"),\n      util = require(\"util\");\n    require(\"crypto\");\n    var async_hooks = require(\"async_hooks\"),\n      ReactDOM = require(\"react-dom\"),\n      React = require(\"react\"),\n      REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n      REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n      REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n      REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n      REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n      REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n      REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n      REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n      REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n      REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\"),\n      REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n      MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n      ASYNC_ITERATOR = Symbol.asyncIterator,\n      REACT_OPTIMISTIC_KEY = Symbol.for(\"react.optimistic_key\"),\n      scheduleMicrotask = queueMicrotask,\n      currentView = null,\n      writtenBytes = 0,\n      destinationHasCapacity = !0,\n      textEncoder = new util.TextEncoder(),\n      CLIENT_REFERENCE_TAG$1 = Symbol.for(\"react.client.reference\"),\n      SERVER_REFERENCE_TAG = Symbol.for(\"react.server.reference\"),\n      FunctionBind = Function.prototype.bind,\n      ArraySlice = Array.prototype.slice,\n      serverReferenceToString = {\n        value: function () {\n          return \"function () { [omitted code] }\";\n        },\n        configurable: !0,\n        writable: !0\n      },\n      PROMISE_PROTOTYPE = Promise.prototype,\n      deepProxyHandlers = {\n        get: function (target, name, receiver) {\n          switch (name) {\n            case \"$$typeof\":\n              return target.$$typeof;\n            case \"$$id\":\n              return target.$$id;\n            case \"$$async\":\n              return target.$$async;\n            case \"name\":\n              return target.name;\n            case \"displayName\":\n              return;\n            case \"defaultProps\":\n              return;\n            case \"_debugInfo\":\n              return;\n            case \"toJSON\":\n              return;\n            case Symbol.toPrimitive:\n              return Object.prototype[Symbol.toPrimitive];\n            case Symbol.toStringTag:\n              return Object.prototype[Symbol.toStringTag];\n            case \"Provider\":\n              return receiver;\n            case \"then\":\n              throw Error(\n                \"Cannot await or return from a thenable. You cannot await a client module from a server component.\"\n              );\n          }\n          throw Error(\n            \"Cannot access \" +\n              (String(target.name) + \".\" + String(name)) +\n              \" on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.\"\n          );\n        },\n        set: function () {\n          throw Error(\"Cannot assign to a client module from a server module.\");\n        }\n      },\n      proxyHandlers$1 = {\n        get: function (target, name) {\n          return getReference(target, name);\n        },\n        getOwnPropertyDescriptor: function (target, name) {\n          var descriptor = Object.getOwnPropertyDescriptor(target, name);\n          descriptor ||\n            ((descriptor = {\n              value: getReference(target, name),\n              writable: !1,\n              configurable: !1,\n              enumerable: !1\n            }),\n            Object.defineProperty(target, name, descriptor));\n          return descriptor;\n        },\n        getPrototypeOf: function () {\n          return PROMISE_PROTOTYPE;\n        },\n        set: function () {\n          throw Error(\"Cannot assign to a client module from a server module.\");\n        }\n      },\n      ReactDOMSharedInternals =\n        ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n      previousDispatcher = ReactDOMSharedInternals.d;\n    ReactDOMSharedInternals.d = {\n      f: previousDispatcher.f,\n      r: previousDispatcher.r,\n      D: function (href) {\n        if (\"string\" === typeof href && href) {\n          var request = resolveRequest();\n          if (request) {\n            var hints = request.hints,\n              key = \"D|\" + href;\n            hints.has(key) || (hints.add(key), emitHint(request, \"D\", href));\n          } else previousDispatcher.D(href);\n        }\n      },\n      C: function (href, crossOrigin) {\n        if (\"string\" === typeof href) {\n          var request = resolveRequest();\n          if (request) {\n            var hints = request.hints,\n              key =\n                \"C|\" +\n                (null == crossOrigin ? \"null\" : crossOrigin) +\n                \"|\" +\n                href;\n            hints.has(key) ||\n              (hints.add(key),\n              \"string\" === typeof crossOrigin\n                ? emitHint(request, \"C\", [href, crossOrigin])\n                : emitHint(request, \"C\", href));\n          } else previousDispatcher.C(href, crossOrigin);\n        }\n      },\n      L: preload,\n      m: preloadModule$1,\n      X: function (src, options) {\n        if (\"string\" === typeof src) {\n          var request = resolveRequest();\n          if (request) {\n            var hints = request.hints,\n              key = \"X|\" + src;\n            if (hints.has(key)) return;\n            hints.add(key);\n            return (options = trimOptions(options))\n              ? emitHint(request, \"X\", [src, options])\n              : emitHint(request, \"X\", src);\n          }\n          previousDispatcher.X(src, options);\n        }\n      },\n      S: function (href, precedence, options) {\n        if (\"string\" === typeof href) {\n          var request = resolveRequest();\n          if (request) {\n            var hints = request.hints,\n              key = \"S|\" + href;\n            if (hints.has(key)) return;\n            hints.add(key);\n            return (options = trimOptions(options))\n              ? emitHint(request, \"S\", [\n                  href,\n                  \"string\" === typeof precedence ? precedence : 0,\n                  options\n                ])\n              : \"string\" === typeof precedence\n                ? emitHint(request, \"S\", [href, precedence])\n                : emitHint(request, \"S\", href);\n          }\n          previousDispatcher.S(href, precedence, options);\n        }\n      },\n      M: function (src, options) {\n        if (\"string\" === typeof src) {\n          var request = resolveRequest();\n          if (request) {\n            var hints = request.hints,\n              key = \"M|\" + src;\n            if (hints.has(key)) return;\n            hints.add(key);\n            return (options = trimOptions(options))\n              ? emitHint(request, \"M\", [src, options])\n              : emitHint(request, \"M\", src);\n          }\n          previousDispatcher.M(src, options);\n        }\n      }\n    };\n    var currentOwner = null,\n      getAsyncId = async_hooks.AsyncResource.prototype.asyncId,\n      pendingOperations = new Map(),\n      lastRanAwait = null,\n      emptyStack = [],\n      framesToSkip = 0,\n      collectedStackTrace = null,\n      identifierRegExp = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/,\n      frameRegExp =\n        /^ {3} at (?:(.+) \\((?:(.+):(\\d+):(\\d+)|<anonymous>)\\)|(?:async )?(.+):(\\d+):(\\d+)|<anonymous>)$/,\n      stackTraceCache = new WeakMap(),\n      requestStorage = new async_hooks.AsyncLocalStorage(),\n      componentStorage = new async_hooks.AsyncLocalStorage(),\n      TEMPORARY_REFERENCE_TAG = Symbol.for(\"react.temporary.reference\"),\n      proxyHandlers = {\n        get: function (target, name, receiver) {\n          switch (name) {\n            case \"$$typeof\":\n              return target.$$typeof;\n            case \"name\":\n              return;\n            case \"displayName\":\n              return;\n            case \"defaultProps\":\n              return;\n            case \"_debugInfo\":\n              return;\n            case \"toJSON\":\n              return;\n            case Symbol.toPrimitive:\n              return Object.prototype[Symbol.toPrimitive];\n            case Symbol.toStringTag:\n              return Object.prototype[Symbol.toStringTag];\n            case \"Provider\":\n              return receiver;\n            case \"then\":\n              return;\n          }\n          throw Error(\n            \"Cannot access \" +\n              String(name) +\n              \" on the server. You cannot dot into a temporary client reference from a server component. You can only pass the value through to the client.\"\n          );\n        },\n        set: function () {\n          throw Error(\n            \"Cannot assign to a temporary client reference from a server module.\"\n          );\n        }\n      },\n      SuspenseException = Error(\n        \"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\\n\\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`.\"\n      ),\n      suspendedThenable = null,\n      currentRequest$1 = null,\n      thenableIndexCounter = 0,\n      thenableState = null,\n      currentComponentDebugInfo = null,\n      HooksDispatcher = {\n        readContext: unsupportedContext,\n        use: function (usable) {\n          if (\n            (null !== usable && \"object\" === typeof usable) ||\n            \"function\" === typeof usable\n          ) {\n            if (\"function\" === typeof usable.then) {\n              var index = thenableIndexCounter;\n              thenableIndexCounter += 1;\n              null === thenableState && (thenableState = []);\n              return trackUsedThenable(thenableState, usable, index);\n            }\n            usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();\n          }\n          if (isClientReference(usable)) {\n            if (\n              null != usable.value &&\n              usable.value.$$typeof === REACT_CONTEXT_TYPE\n            )\n              throw Error(\n                \"Cannot read a Client Context from a Server Component.\"\n              );\n            throw Error(\"Cannot use() an already resolved Client Reference.\");\n          }\n          throw Error(\n            \"An unsupported type was passed to use(): \" + String(usable)\n          );\n        },\n        useCallback: function (callback) {\n          return callback;\n        },\n        useContext: unsupportedContext,\n        useEffect: unsupportedHook,\n        useImperativeHandle: unsupportedHook,\n        useLayoutEffect: unsupportedHook,\n        useInsertionEffect: unsupportedHook,\n        useMemo: function (nextCreate) {\n          return nextCreate();\n        },\n        useReducer: unsupportedHook,\n        useRef: unsupportedHook,\n        useState: unsupportedHook,\n        useDebugValue: function () {},\n        useDeferredValue: unsupportedHook,\n        useTransition: unsupportedHook,\n        useSyncExternalStore: unsupportedHook,\n        useId: function () {\n          if (null === currentRequest$1)\n            throw Error(\"useId can only be used while React is rendering\");\n          var id = currentRequest$1.identifierCount++;\n          return (\n            \"_\" +\n            currentRequest$1.identifierPrefix +\n            \"S_\" +\n            id.toString(32) +\n            \"_\"\n          );\n        },\n        useHostTransitionStatus: unsupportedHook,\n        useFormState: unsupportedHook,\n        useActionState: unsupportedHook,\n        useOptimistic: unsupportedHook,\n        useMemoCache: function (size) {\n          for (var data = Array(size), i = 0; i < size; i++)\n            data[i] = REACT_MEMO_CACHE_SENTINEL;\n          return data;\n        },\n        useCacheRefresh: function () {\n          return unsupportedRefresh;\n        },\n        useEffectEvent: unsupportedHook\n      },\n      DefaultAsyncDispatcher = {\n        getCacheForType: function (resourceType) {\n          var cache = (cache = resolveRequest()) ? cache.cache : new Map();\n          var entry = cache.get(resourceType);\n          void 0 === entry &&\n            ((entry = resourceType()), cache.set(resourceType, entry));\n          return entry;\n        },\n        cacheSignal: function () {\n          var request = resolveRequest();\n          return request ? request.cacheController.signal : null;\n        }\n      };\n    DefaultAsyncDispatcher.getOwner = resolveOwner;\n    var ReactSharedInternalsServer =\n      React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n    if (!ReactSharedInternalsServer)\n      throw Error(\n        'The \"react\" package in this environment is not configured correctly. The \"react-server\" condition must be enabled in any environment that runs React Server Components.'\n      );\n    var prefix, suffix;\n    new (\"function\" === typeof WeakMap ? WeakMap : Map)();\n    var lastResetTime = 0;\n    if (\n      \"object\" === typeof performance &&\n      \"function\" === typeof performance.now\n    ) {\n      var localPerformance = performance;\n      var getCurrentTime = function () {\n        return localPerformance.now();\n      };\n    } else {\n      var localDate = Date;\n      getCurrentTime = function () {\n        return localDate.now();\n      };\n    }\n    var callComponent = {\n        react_stack_bottom_frame: function (\n          Component,\n          props,\n          componentDebugInfo\n        ) {\n          currentOwner = componentDebugInfo;\n          try {\n            return Component(props, void 0);\n          } finally {\n            currentOwner = null;\n          }\n        }\n      },\n      callComponentInDEV =\n        callComponent.react_stack_bottom_frame.bind(callComponent),\n      callLazyInit = {\n        react_stack_bottom_frame: function (lazy) {\n          var init = lazy._init;\n          return init(lazy._payload);\n        }\n      },\n      callLazyInitInDEV =\n        callLazyInit.react_stack_bottom_frame.bind(callLazyInit),\n      callIterator = {\n        react_stack_bottom_frame: function (iterator, progress, error) {\n          iterator.next().then(progress, error);\n        }\n      },\n      callIteratorInDEV =\n        callIterator.react_stack_bottom_frame.bind(callIterator),\n      isArrayImpl = Array.isArray,\n      getPrototypeOf = Object.getPrototypeOf,\n      jsxPropsParents = new WeakMap(),\n      jsxChildrenParents = new WeakMap(),\n      CLIENT_REFERENCE_TAG = Symbol.for(\"react.client.reference\"),\n      hasOwnProperty = Object.prototype.hasOwnProperty,\n      doNotLimit = new WeakSet();\n    (function () {\n      async_hooks\n        .createHook({\n          init: function (asyncId, type, triggerAsyncId, resource) {\n            var trigger = pendingOperations.get(triggerAsyncId);\n            if (\"PROMISE\" === type)\n              if (\n                ((type = async_hooks.executionAsyncId()),\n                type !== triggerAsyncId)\n              ) {\n                if (void 0 === trigger) return;\n                triggerAsyncId = null;\n                if (\n                  null === trigger.stack ||\n                  (2 !== trigger.tag && 4 !== trigger.tag)\n                ) {\n                  resource = new WeakRef(resource);\n                  var request = resolveRequest();\n                  null !== request &&\n                    ((triggerAsyncId = parseStackTracePrivate(Error(), 5)),\n                    null === triggerAsyncId ||\n                      isAwaitInUserspace(request, triggerAsyncId) ||\n                      (triggerAsyncId = null));\n                } else\n                  (triggerAsyncId = emptyStack),\n                    (resource =\n                      void 0 !== resource._debugInfo\n                        ? new WeakRef(resource)\n                        : trigger.promise);\n                type = pendingOperations.get(type);\n                trigger = {\n                  tag: 4,\n                  owner: resolveOwner(),\n                  stack: triggerAsyncId,\n                  start: performance.now(),\n                  end: -1.1,\n                  promise: resource,\n                  awaited: trigger,\n                  previous: void 0 === type ? null : type\n                };\n              } else\n                (type = resolveOwner()),\n                  (trigger = {\n                    tag: 3,\n                    owner: type,\n                    stack:\n                      null === type ? null : parseStackTracePrivate(Error(), 5),\n                    start: performance.now(),\n                    end: -1.1,\n                    promise: new WeakRef(resource),\n                    awaited: void 0 === trigger ? null : trigger,\n                    previous: null\n                  });\n            else if (\n              \"bound-anonymous-fn\" === type ||\n              \"Microtask\" === type ||\n              \"TickObject\" === type ||\n              \"Immediate\" === type\n            ) {\n              if (void 0 === trigger) return;\n            } else if (void 0 === trigger)\n              (trigger = resolveOwner()),\n                (trigger = {\n                  tag: 0,\n                  owner: trigger,\n                  stack:\n                    null === trigger\n                      ? parseStackTracePrivate(Error(), 3)\n                      : null,\n                  start: performance.now(),\n                  end: -1.1,\n                  promise: null,\n                  awaited: null,\n                  previous: null\n                });\n            else if (2 === trigger.tag || 4 === trigger.tag)\n              (resource = resolveOwner()),\n                (trigger = {\n                  tag: 0,\n                  owner: resource,\n                  stack:\n                    null === resource\n                      ? parseStackTracePrivate(Error(), 3)\n                      : null,\n                  start: performance.now(),\n                  end: -1.1,\n                  promise: null,\n                  awaited: null,\n                  previous: trigger\n                });\n            pendingOperations.set(asyncId, trigger);\n          },\n          before: function (asyncId) {\n            var node = pendingOperations.get(asyncId);\n            if (void 0 !== node)\n              switch (node.tag) {\n                case 0:\n                  lastRanAwait = null;\n                  0 > node.end\n                    ? (node.end = performance.now())\n                    : ((node = {\n                        tag: 0,\n                        owner: node.owner,\n                        stack: node.stack,\n                        start: node.start,\n                        end: performance.now(),\n                        promise: node.promise,\n                        awaited: node.awaited,\n                        previous: node.previous\n                      }),\n                      pendingOperations.set(asyncId, node));\n                  break;\n                case 4:\n                  lastRanAwait = resolvePromiseOrAwaitNode(\n                    node,\n                    performance.now()\n                  );\n                  break;\n                case 2:\n                  lastRanAwait = node;\n                  break;\n                case 3:\n                  resolvePromiseOrAwaitNode(node, performance.now()).previous =\n                    lastRanAwait;\n                  lastRanAwait = null;\n                  break;\n                default:\n                  lastRanAwait = null;\n              }\n          },\n          promiseResolve: function (asyncId) {\n            var node = pendingOperations.get(asyncId);\n            if (void 0 !== node) {\n              switch (node.tag) {\n                case 4:\n                case 3:\n                  node = resolvePromiseOrAwaitNode(node, performance.now());\n                  break;\n                case 2:\n                case 1:\n                  break;\n                default:\n                  throw Error(\n                    \"A Promise should never be an IO_NODE. This is a bug in React.\"\n                  );\n              }\n              var currentAsyncId = async_hooks.executionAsyncId();\n              asyncId !== currentAsyncId &&\n                ((asyncId = pendingOperations.get(currentAsyncId)),\n                1 === node.tag\n                  ? (node.awaited = void 0 === asyncId ? null : asyncId)\n                  : void 0 !== asyncId &&\n                    ((currentAsyncId = {\n                      tag: 2,\n                      owner: node.owner,\n                      stack: node.stack,\n                      start: node.start,\n                      end: node.end,\n                      promise: node.promise,\n                      awaited: node.awaited,\n                      previous: node.previous\n                    }),\n                    (node.start = node.end),\n                    (node.end = performance.now()),\n                    (node.previous = currentAsyncId),\n                    (node.awaited = asyncId)));\n            }\n          },\n          destroy: function (asyncId) {\n            pendingOperations.delete(asyncId);\n          }\n        })\n        .enable();\n    })();\n    \"object\" === typeof console &&\n      null !== console &&\n      (patchConsole(console, \"assert\"),\n      patchConsole(console, \"debug\"),\n      patchConsole(console, \"dir\"),\n      patchConsole(console, \"dirxml\"),\n      patchConsole(console, \"error\"),\n      patchConsole(console, \"group\"),\n      patchConsole(console, \"groupCollapsed\"),\n      patchConsole(console, \"groupEnd\"),\n      patchConsole(console, \"info\"),\n      patchConsole(console, \"log\"),\n      patchConsole(console, \"table\"),\n      patchConsole(console, \"trace\"),\n      patchConsole(console, \"warn\"));\n    var ObjectPrototype$1 = Object.prototype,\n      stringify = JSON.stringify,\n      PENDING$1 = 0,\n      COMPLETED = 1,\n      ABORTED = 3,\n      ERRORED$1 = 4,\n      RENDERING = 5,\n      __PROTO__$1 = \"__proto__\",\n      OPENING = 10,\n      ABORTING = 12,\n      CLOSING = 13,\n      CLOSED = 14,\n      PRERENDER = 21,\n      NEXT_TWO_CHUNKS_ARE_ATOMIC = Symbol(),\n      currentRequest = null,\n      canEmitDebugInfo = !1,\n      serializedSize = 0,\n      MAX_ROW_SIZE = 3200,\n      modelRoot = !1,\n      CONSTRUCTOR_MARKER = Symbol(),\n      debugModelRoot = null,\n      debugNoOutline = null,\n      emptyRoot = {},\n      decoderOptions = { stream: !0 },\n      instrumentedChunks = new WeakSet(),\n      loadedChunks = new WeakSet(),\n      RESPONSE_SYMBOL = Symbol();\n    ReactPromise.prototype = Object.create(Promise.prototype);\n    Object.defineProperty(ReactPromise.prototype, \"then\", {\n      writable: !0,\n      enumerable: !0,\n      configurable: !0,\n      value: function (resolve, reject) {\n        switch (this.status) {\n          case \"resolved_model\":\n            initializeModelChunk(this);\n        }\n        switch (this.status) {\n          case \"fulfilled\":\n            if (\"function\" === typeof resolve) {\n              for (\n                var inspectedValue = this.value,\n                  cycleProtection = 0,\n                  visited = new Set();\n                inspectedValue instanceof ReactPromise;\n\n              ) {\n                cycleProtection++;\n                if (\n                  inspectedValue === this ||\n                  visited.has(inspectedValue) ||\n                  1e3 < cycleProtection\n                ) {\n                  \"function\" === typeof reject &&\n                    reject(Error(\"Cannot have cyclic thenables.\"));\n                  return;\n                }\n                visited.add(inspectedValue);\n                if (\"fulfilled\" === inspectedValue.status)\n                  inspectedValue = inspectedValue.value;\n                else break;\n              }\n              resolve(this.value);\n            }\n            break;\n          case \"pending\":\n          case \"blocked\":\n            \"function\" === typeof resolve &&\n              (null === this.value && (this.value = []),\n              this.value.push(resolve));\n            \"function\" === typeof reject &&\n              (null === this.reason && (this.reason = []),\n              this.reason.push(reject));\n            break;\n          default:\n            \"function\" === typeof reject && reject(this.reason);\n        }\n      }\n    });\n    var ObjectPrototype = Object.prototype,\n      ArrayPrototype = Array.prototype,\n      initializingHandler = null;\n    FlightIterator.prototype = {};\n    FlightIterator.prototype[ASYNC_ITERATOR] = function () {\n      return this;\n    };\n    var MAX_BIGINT_DIGITS = 300,\n      MAX_BOUND_ARGS = 1e3;\n    exports.createClientModuleProxy = function (moduleId) {\n      moduleId = registerClientReferenceImpl({}, moduleId, !1);\n      return new Proxy(moduleId, proxyHandlers$1);\n    };\n    exports.createTemporaryReferenceSet = function () {\n      return new WeakMap();\n    };\n    exports.decodeAction = function (body, serverManifest) {\n      var formData = new FormData(),\n        maybeActionKey = null;\n      body.forEach(function (value, key) {\n        key.startsWith(\"$ACTION_\")\n          ? key.startsWith(\"$ACTION_REF_\")\n            ? (maybeActionKey = key)\n            : key.startsWith(\"$ACTION_ID_\") && (maybeActionKey = key)\n          : formData.append(key, value);\n      });\n      if (null === maybeActionKey) return null;\n      var actionKey = maybeActionKey,\n        action = null;\n      if (actionKey.startsWith(\"$ACTION_REF_\"))\n        (actionKey = \"$ACTION_\" + actionKey.slice(12) + \":\"),\n          (body = decodeBoundActionMetaData(body, serverManifest, actionKey)),\n          (action = loadServerReference(serverManifest, body));\n      else if (actionKey.startsWith(\"$ACTION_ID_\"))\n        (body = actionKey.slice(11)),\n          (action = loadServerReference(serverManifest, {\n            id: body,\n            bound: null\n          }));\n      else throw Error(\"Cannot handle action key. This is a bug in React.\");\n      return action.then(function (fn) {\n        return fn.bind(null, formData);\n      });\n    };\n    exports.decodeFormState = function (actionResult, body, serverManifest) {\n      var keyPath = body.get(\"$ACTION_KEY\");\n      if (\"string\" !== typeof keyPath) return Promise.resolve(null);\n      var actionKey = null;\n      body.forEach(function (value, key) {\n        key.startsWith(\"$ACTION_REF_\") && (actionKey = key);\n      });\n      if (null === actionKey) return Promise.resolve(null);\n      var formFieldPrefix = \"$ACTION_\" + actionKey.slice(12) + \":\";\n      body = decodeBoundActionMetaData(body, serverManifest, formFieldPrefix);\n      var referenceId = body.id;\n      return Promise.resolve(body.bound).then(function (bound) {\n        return null === bound\n          ? null\n          : [actionResult, keyPath, referenceId, bound.length - 1];\n      });\n    };\n    exports.decodeReply = function (body, turbopackMap, options) {\n      if (\"string\" === typeof body) {\n        var form = new FormData();\n        form.append(\"0\", body);\n        body = form;\n      }\n      body = createResponse(\n        turbopackMap,\n        \"\",\n        options ? options.temporaryReferences : void 0,\n        body,\n        options ? options.arraySizeLimit : void 0\n      );\n      turbopackMap = getChunk(body, 0);\n      close(body);\n      return turbopackMap;\n    };\n    exports.decodeReplyFromAsyncIterable = function (\n      iterable,\n      turbopackMap,\n      options\n    ) {\n      function progress(entry) {\n        if (entry.done) close(response);\n        else {\n          var _entry$value = entry.value;\n          entry = _entry$value[0];\n          _entry$value = _entry$value[1];\n          \"string\" === typeof _entry$value\n            ? resolveField(response, entry, _entry$value)\n            : appendBackingEntry(response._formData, entry, _entry$value);\n          iterator.next().then(progress, error);\n        }\n      }\n      function error(reason) {\n        reportGlobalError(response, reason);\n        \"function\" === typeof iterator.throw &&\n          iterator.throw(reason).then(noop, noop);\n      }\n      var iterator = iterable[ASYNC_ITERATOR](),\n        response = createResponse(\n          turbopackMap,\n          \"\",\n          options ? options.temporaryReferences : void 0,\n          void 0,\n          options ? options.arraySizeLimit : void 0\n        );\n      iterator.next().then(progress, error);\n      return getChunk(response, 0);\n    };\n    exports.decodeReplyFromBusboy = function (\n      busboyStream,\n      turbopackMap,\n      options\n    ) {\n      function flush() {\n        for (; null !== head; ) {\n          var current = head;\n          if (!current.complete) return;\n          try {\n            var response = response$jscomp$0,\n              key = current.name,\n              handle = current.file,\n              blob = new Blob(handle.chunks, { type: handle.mime }),\n              backingStore = response._formData;\n            response = key;\n            backingStore.data.append(response, blob, handle.filename);\n            var keys = backingStore.keys;\n            null === keys\n              ? ((backingStore.keys = Array.from(backingStore.data.keys())),\n                (backingStore.keyPointer = 0))\n              : keys.push(response);\n            var queuedFields = current.queuedFields;\n            if (null !== queuedFields)\n              for (response = 0; response < queuedFields.length; response += 2)\n                resolveField(\n                  response$jscomp$0,\n                  queuedFields[response],\n                  queuedFields[response + 1]\n                );\n          } catch (error) {\n            busboyStream.destroy(error);\n            return;\n          }\n          head = current.next;\n        }\n        tail = null;\n        bodyFinished && !closed && ((closed = !0), close(response$jscomp$0));\n      }\n      var response$jscomp$0 = createResponse(\n          turbopackMap,\n          \"\",\n          options ? options.temporaryReferences : void 0,\n          void 0,\n          options ? options.arraySizeLimit : void 0\n        ),\n        head = null,\n        tail = null,\n        bodyFinished = !1,\n        closed = !1;\n      busboyStream.on(\"field\", function (name, value) {\n        if (null !== tail)\n          null === tail.queuedFields && (tail.queuedFields = []),\n            tail.queuedFields.push(name, value);\n        else\n          try {\n            resolveField(response$jscomp$0, name, value);\n          } catch (error) {\n            busboyStream.destroy(error);\n          }\n      });\n      busboyStream.on(\"file\", function (name, value, _ref2) {\n        var filename = _ref2.filename,\n          mimeType = _ref2.mimeType;\n        if (\"base64\" === _ref2.encoding.toLowerCase())\n          busboyStream.destroy(\n            Error(\n              \"React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it.\"\n            )\n          );\n        else {\n          var file = { chunks: [], filename: filename, mime: mimeType },\n            pendingFile = {\n              name: name,\n              file: file,\n              complete: !1,\n              queuedFields: null,\n              next: null\n            };\n          null === tail ? (head = pendingFile) : (tail.next = pendingFile);\n          tail = pendingFile;\n          value.on(\"data\", function (chunk) {\n            try {\n              file.chunks.push(chunk);\n            } catch (error) {\n              busboyStream.destroy(error);\n            }\n          });\n          value.on(\"error\", function (error) {\n            busboyStream.destroy(error);\n          });\n          value.on(\"end\", function () {\n            pendingFile.complete = !0;\n            flush();\n          });\n        }\n      });\n      busboyStream.on(\"finish\", function () {\n        bodyFinished = !0;\n        flush();\n        closed ||\n          reportGlobalError(\n            response$jscomp$0,\n            Error(\"Reply finished with incomplete file part.\")\n          );\n      });\n      busboyStream.on(\"error\", function (err) {\n        reportGlobalError(response$jscomp$0, err);\n      });\n      return getChunk(response$jscomp$0, 0);\n    };\n    exports.prerender = function (model, turbopackMap, options) {\n      return new Promise(function (resolve, reject) {\n        var request = createPrerenderRequest(\n          model,\n          turbopackMap,\n          function () {\n            var writable,\n              stream = new ReadableStream(\n                {\n                  type: \"bytes\",\n                  start: function (controller) {\n                    writable =\n                      createFakeWritableFromReadableStreamController(\n                        controller\n                      );\n                  },\n                  pull: function () {\n                    startFlowing(request, writable);\n                  },\n                  cancel: function (reason) {\n                    request.destination = null;\n                    abort(request, reason);\n                  }\n                },\n                { highWaterMark: 0 }\n              );\n            resolve({ prelude: stream });\n          },\n          reject,\n          options ? options.onError : void 0,\n          options ? options.identifierPrefix : void 0,\n          options ? options.temporaryReferences : void 0,\n          options ? options.startTime : void 0,\n          options ? options.environmentName : void 0,\n          options ? options.filterStackFrame : void 0,\n          !1\n        );\n        if (options && options.signal) {\n          var signal = options.signal;\n          if (signal.aborted) abort(request, signal.reason);\n          else {\n            var listener = function () {\n              abort(request, signal.reason);\n              signal.removeEventListener(\"abort\", listener);\n            };\n            signal.addEventListener(\"abort\", listener);\n          }\n        }\n        startWork(request);\n      });\n    };\n    exports.prerenderToNodeStream = function (model, turbopackMap, options) {\n      return new Promise(function (resolve, reject) {\n        var request = createPrerenderRequest(\n          model,\n          turbopackMap,\n          function () {\n            var readable = new stream.Readable({\n                read: function () {\n                  startFlowing(request, writable);\n                }\n              }),\n              writable = createFakeWritableFromNodeReadable(readable);\n            resolve({ prelude: readable });\n          },\n          reject,\n          options ? options.onError : void 0,\n          options ? options.identifierPrefix : void 0,\n          options ? options.temporaryReferences : void 0,\n          options ? options.startTime : void 0,\n          options ? options.environmentName : void 0,\n          options ? options.filterStackFrame : void 0,\n          !1\n        );\n        if (options && options.signal) {\n          var signal = options.signal;\n          if (signal.aborted) abort(request, signal.reason);\n          else {\n            var listener = function () {\n              abort(request, signal.reason);\n              signal.removeEventListener(\"abort\", listener);\n            };\n            signal.addEventListener(\"abort\", listener);\n          }\n        }\n        startWork(request);\n      });\n    };\n    exports.registerClientReference = function (\n      proxyImplementation,\n      id,\n      exportName\n    ) {\n      return registerClientReferenceImpl(\n        proxyImplementation,\n        id + \"#\" + exportName,\n        !1\n      );\n    };\n    exports.registerServerReference = function (reference, id, exportName) {\n      return Object.defineProperties(reference, {\n        $$typeof: { value: SERVER_REFERENCE_TAG },\n        $$id: {\n          value: null === exportName ? id : id + \"#\" + exportName,\n          configurable: !0\n        },\n        $$bound: { value: null, configurable: !0 },\n        $$location: { value: Error(\"react-stack-top-frame\"), configurable: !0 },\n        bind: { value: bind, configurable: !0 },\n        toString: serverReferenceToString\n      });\n    };\n    exports.renderToPipeableStream = function (model, turbopackMap, options) {\n      var debugChannel = options ? options.debugChannel : void 0,\n        debugChannelReadable =\n          void 0 === debugChannel ||\n          (\"function\" !== typeof debugChannel.read &&\n            \"number\" !== typeof debugChannel.readyState)\n            ? void 0\n            : debugChannel;\n      debugChannel =\n        void 0 !== debugChannel\n          ? \"function\" === typeof debugChannel.write\n            ? debugChannel\n            : \"function\" === typeof debugChannel.send\n              ? createFakeWritableFromWebSocket(debugChannel)\n              : void 0\n          : void 0;\n      var request = createRequest(\n          model,\n          turbopackMap,\n          options ? options.onError : void 0,\n          options ? options.identifierPrefix : void 0,\n          options ? options.temporaryReferences : void 0,\n          options ? options.startTime : void 0,\n          options ? options.environmentName : void 0,\n          options ? options.filterStackFrame : void 0,\n          void 0 !== debugChannelReadable\n        ),\n        hasStartedFlowing = !1;\n      startWork(request);\n      void 0 !== debugChannel && startFlowingDebug(request, debugChannel);\n      void 0 !== debugChannelReadable &&\n        startReadingFromDebugChannelReadable(request, debugChannelReadable);\n      return {\n        pipe: function (destination) {\n          if (hasStartedFlowing)\n            throw Error(\n              \"React currently only supports piping to one writable stream.\"\n            );\n          hasStartedFlowing = !0;\n          startFlowing(request, destination);\n          destination.on(\"drain\", createDrainHandler(destination, request));\n          destination.on(\n            \"error\",\n            createCancelHandler(\n              request,\n              \"The destination stream errored while writing data.\"\n            )\n          );\n          if (void 0 === debugChannelReadable)\n            destination.on(\n              \"close\",\n              createCancelHandler(\n                request,\n                \"The destination stream closed early.\"\n              )\n            );\n          return destination;\n        },\n        abort: function (reason) {\n          abort(request, reason);\n        }\n      };\n    };\n    exports.renderToReadableStream = function (model, turbopackMap, options) {\n      var debugChannelReadable =\n          options && options.debugChannel\n            ? options.debugChannel.readable\n            : void 0,\n        debugChannelWritable =\n          options && options.debugChannel\n            ? options.debugChannel.writable\n            : void 0,\n        request = createRequest(\n          model,\n          turbopackMap,\n          options ? options.onError : void 0,\n          options ? options.identifierPrefix : void 0,\n          options ? options.temporaryReferences : void 0,\n          options ? options.startTime : void 0,\n          options ? options.environmentName : void 0,\n          options ? options.filterStackFrame : void 0,\n          void 0 !== debugChannelReadable\n        );\n      if (options && options.signal) {\n        var signal = options.signal;\n        if (signal.aborted) abort(request, signal.reason);\n        else {\n          var listener = function () {\n            abort(request, signal.reason);\n            signal.removeEventListener(\"abort\", listener);\n          };\n          signal.addEventListener(\"abort\", listener);\n        }\n      }\n      if (void 0 !== debugChannelWritable) {\n        var debugWritable;\n        new ReadableStream(\n          {\n            type: \"bytes\",\n            start: function (controller) {\n              debugWritable =\n                createFakeWritableFromReadableStreamController(controller);\n            },\n            pull: function () {\n              startFlowingDebug(request, debugWritable);\n            }\n          },\n          { highWaterMark: 0 }\n        ).pipeTo(debugChannelWritable);\n      }\n      void 0 !== debugChannelReadable &&\n        startReadingFromDebugChannelReadableStream(\n          request,\n          debugChannelReadable\n        );\n      var writable;\n      return new ReadableStream(\n        {\n          type: \"bytes\",\n          start: function (controller) {\n            writable =\n              createFakeWritableFromReadableStreamController(controller);\n            startWork(request);\n          },\n          pull: function () {\n            startFlowing(request, writable);\n          },\n          cancel: function (reason) {\n            request.destination = null;\n            abort(request, reason);\n          }\n        },\n        { highWaterMark: 0 }\n      );\n    };\n  })();\n","'use strict';\n\nvar s;\nif (process.env.NODE_ENV === 'production') {\n  s = require('./cjs/react-server-dom-turbopack-server.node.production.js');\n} else {\n  s = require('./cjs/react-server-dom-turbopack-server.node.development.js');\n}\n\nexports.renderToReadableStream = s.renderToReadableStream;\nexports.renderToPipeableStream = s.renderToPipeableStream;\nexports.decodeReply = s.decodeReply;\nexports.decodeReplyFromBusboy = s.decodeReplyFromBusboy;\nexports.decodeReplyFromAsyncIterable = s.decodeReplyFromAsyncIterable;\nexports.decodeAction = s.decodeAction;\nexports.decodeFormState = s.decodeFormState;\nexports.registerServerReference = s.registerServerReference;\nexports.registerClientReference = s.registerClientReference;\nexports.createClientModuleProxy = s.createClientModuleProxy;\nexports.createTemporaryReferenceSet = s.createTemporaryReferenceSet;\n","/**\n * @license React\n * react.react-server.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n  (function () {\n    function noop() {}\n    function getIteratorFn(maybeIterable) {\n      if (null === maybeIterable || \"object\" !== typeof maybeIterable)\n        return null;\n      maybeIterable =\n        (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n        maybeIterable[\"@@iterator\"];\n      return \"function\" === typeof maybeIterable ? maybeIterable : null;\n    }\n    function testStringCoercion(value) {\n      return \"\" + value;\n    }\n    function checkKeyStringCoercion(value) {\n      try {\n        testStringCoercion(value);\n        var JSCompiler_inline_result = !1;\n      } catch (e) {\n        JSCompiler_inline_result = !0;\n      }\n      if (JSCompiler_inline_result) {\n        JSCompiler_inline_result = console;\n        var JSCompiler_temp_const = JSCompiler_inline_result.error;\n        var JSCompiler_inline_result$jscomp$0 =\n          (\"function\" === typeof Symbol &&\n            Symbol.toStringTag &&\n            value[Symbol.toStringTag]) ||\n          value.constructor.name ||\n          \"Object\";\n        JSCompiler_temp_const.call(\n          JSCompiler_inline_result,\n          \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n          JSCompiler_inline_result$jscomp$0\n        );\n        return testStringCoercion(value);\n      }\n    }\n    function getComponentNameFromType(type) {\n      if (null == type) return null;\n      if (\"function\" === typeof type)\n        return type.$$typeof === REACT_CLIENT_REFERENCE\n          ? null\n          : type.displayName || type.name || null;\n      if (\"string\" === typeof type) return type;\n      switch (type) {\n        case REACT_FRAGMENT_TYPE:\n          return \"Fragment\";\n        case REACT_PROFILER_TYPE:\n          return \"Profiler\";\n        case REACT_STRICT_MODE_TYPE:\n          return \"StrictMode\";\n        case REACT_SUSPENSE_TYPE:\n          return \"Suspense\";\n        case REACT_SUSPENSE_LIST_TYPE:\n          return \"SuspenseList\";\n        case REACT_ACTIVITY_TYPE:\n          return \"Activity\";\n        case REACT_VIEW_TRANSITION_TYPE:\n          return \"ViewTransition\";\n      }\n      if (\"object\" === typeof type)\n        switch (\n          (\"number\" === typeof type.tag &&\n            console.error(\n              \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n            ),\n          type.$$typeof)\n        ) {\n          case REACT_PORTAL_TYPE:\n            return \"Portal\";\n          case REACT_CONTEXT_TYPE:\n            return type.displayName || \"Context\";\n          case REACT_CONSUMER_TYPE:\n            return (type._context.displayName || \"Context\") + \".Consumer\";\n          case REACT_FORWARD_REF_TYPE:\n            var innerType = type.render;\n            type = type.displayName;\n            type ||\n              ((type = innerType.displayName || innerType.name || \"\"),\n              (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n            return type;\n          case REACT_MEMO_TYPE:\n            return (\n              (innerType = type.displayName || null),\n              null !== innerType\n                ? innerType\n                : getComponentNameFromType(type.type) || \"Memo\"\n            );\n          case REACT_LAZY_TYPE:\n            innerType = type._payload;\n            type = type._init;\n            try {\n              return getComponentNameFromType(type(innerType));\n            } catch (x) {}\n        }\n      return null;\n    }\n    function getTaskName(type) {\n      if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n      if (\n        \"object\" === typeof type &&\n        null !== type &&\n        type.$$typeof === REACT_LAZY_TYPE\n      )\n        return \"<...>\";\n      try {\n        var name = getComponentNameFromType(type);\n        return name ? \"<\" + name + \">\" : \"<...>\";\n      } catch (x) {\n        return \"<...>\";\n      }\n    }\n    function getOwner() {\n      var dispatcher = ReactSharedInternals.A;\n      return null === dispatcher ? null : dispatcher.getOwner();\n    }\n    function UnknownOwner() {\n      return Error(\"react-stack-top-frame\");\n    }\n    function hasValidKey(config) {\n      if (hasOwnProperty.call(config, \"key\")) {\n        var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n        if (getter && getter.isReactWarning) return !1;\n      }\n      return void 0 !== config.key;\n    }\n    function defineKeyPropWarningGetter(props, displayName) {\n      function warnAboutAccessingKey() {\n        specialPropKeyWarningShown ||\n          ((specialPropKeyWarningShown = !0),\n          console.error(\n            \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n            displayName\n          ));\n      }\n      warnAboutAccessingKey.isReactWarning = !0;\n      Object.defineProperty(props, \"key\", {\n        get: warnAboutAccessingKey,\n        configurable: !0\n      });\n    }\n    function elementRefGetterWithDeprecationWarning() {\n      var componentName = getComponentNameFromType(this.type);\n      didWarnAboutElementRef[componentName] ||\n        ((didWarnAboutElementRef[componentName] = !0),\n        console.error(\n          \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n        ));\n      componentName = this.props.ref;\n      return void 0 !== componentName ? componentName : null;\n    }\n    function ReactElement(type, key, props, owner, debugStack, debugTask) {\n      var refProp = props.ref;\n      type = {\n        $$typeof: REACT_ELEMENT_TYPE,\n        type: type,\n        key: key,\n        props: props,\n        _owner: owner\n      };\n      null !== (void 0 !== refProp ? refProp : null)\n        ? Object.defineProperty(type, \"ref\", {\n            enumerable: !1,\n            get: elementRefGetterWithDeprecationWarning\n          })\n        : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n      type._store = {};\n      Object.defineProperty(type._store, \"validated\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: 0\n      });\n      Object.defineProperty(type, \"_debugInfo\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: null\n      });\n      Object.defineProperty(type, \"_debugStack\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: debugStack\n      });\n      Object.defineProperty(type, \"_debugTask\", {\n        configurable: !1,\n        enumerable: !1,\n        writable: !0,\n        value: debugTask\n      });\n      Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n      return type;\n    }\n    function cloneAndReplaceKey(oldElement, newKey) {\n      newKey = ReactElement(\n        oldElement.type,\n        newKey,\n        oldElement.props,\n        oldElement._owner,\n        oldElement._debugStack,\n        oldElement._debugTask\n      );\n      oldElement._store &&\n        (newKey._store.validated = oldElement._store.validated);\n      return newKey;\n    }\n    function validateChildKeys(node) {\n      isValidElement(node)\n        ? node._store && (node._store.validated = 1)\n        : \"object\" === typeof node &&\n          null !== node &&\n          node.$$typeof === REACT_LAZY_TYPE &&\n          (\"fulfilled\" === node._payload.status\n            ? isValidElement(node._payload.value) &&\n              node._payload.value._store &&\n              (node._payload.value._store.validated = 1)\n            : node._store && (node._store.validated = 1));\n    }\n    function isValidElement(object) {\n      return (\n        \"object\" === typeof object &&\n        null !== object &&\n        object.$$typeof === REACT_ELEMENT_TYPE\n      );\n    }\n    function escape(key) {\n      var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n      return (\n        \"$\" +\n        key.replace(/[=:]/g, function (match) {\n          return escaperLookup[match];\n        })\n      );\n    }\n    function getElementKey(element, index) {\n      return \"object\" === typeof element &&\n        null !== element &&\n        null != element.key\n        ? (checkKeyStringCoercion(element.key), escape(\"\" + element.key))\n        : index.toString(36);\n    }\n    function resolveThenable(thenable) {\n      switch (thenable.status) {\n        case \"fulfilled\":\n          return thenable.value;\n        case \"rejected\":\n          throw thenable.reason;\n        default:\n          switch (\n            (\"string\" === typeof thenable.status\n              ? thenable.then(noop, noop)\n              : ((thenable.status = \"pending\"),\n                thenable.then(\n                  function (fulfilledValue) {\n                    \"pending\" === thenable.status &&\n                      ((thenable.status = \"fulfilled\"),\n                      (thenable.value = fulfilledValue));\n                  },\n                  function (error) {\n                    \"pending\" === thenable.status &&\n                      ((thenable.status = \"rejected\"),\n                      (thenable.reason = error));\n                  }\n                )),\n            thenable.status)\n          ) {\n            case \"fulfilled\":\n              return thenable.value;\n            case \"rejected\":\n              throw thenable.reason;\n          }\n      }\n      throw thenable;\n    }\n    function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n      var type = typeof children;\n      if (\"undefined\" === type || \"boolean\" === type) children = null;\n      var invokeCallback = !1;\n      if (null === children) invokeCallback = !0;\n      else\n        switch (type) {\n          case \"bigint\":\n          case \"string\":\n          case \"number\":\n            invokeCallback = !0;\n            break;\n          case \"object\":\n            switch (children.$$typeof) {\n              case REACT_ELEMENT_TYPE:\n              case REACT_PORTAL_TYPE:\n                invokeCallback = !0;\n                break;\n              case REACT_LAZY_TYPE:\n                return (\n                  (invokeCallback = children._init),\n                  mapIntoArray(\n                    invokeCallback(children._payload),\n                    array,\n                    escapedPrefix,\n                    nameSoFar,\n                    callback\n                  )\n                );\n            }\n        }\n      if (invokeCallback) {\n        invokeCallback = children;\n        callback = callback(invokeCallback);\n        var childKey =\n          \"\" === nameSoFar ? \".\" + getElementKey(invokeCallback, 0) : nameSoFar;\n        isArrayImpl(callback)\n          ? ((escapedPrefix = \"\"),\n            null != childKey &&\n              (escapedPrefix =\n                childKey.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n            mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n              return c;\n            }))\n          : null != callback &&\n            (isValidElement(callback) &&\n              (null != callback.key &&\n                ((invokeCallback && invokeCallback.key === callback.key) ||\n                  checkKeyStringCoercion(callback.key)),\n              (escapedPrefix = cloneAndReplaceKey(\n                callback,\n                escapedPrefix +\n                  (null == callback.key ||\n                  (invokeCallback && invokeCallback.key === callback.key)\n                    ? \"\"\n                    : (\"\" + callback.key).replace(\n                        userProvidedKeyEscapeRegex,\n                        \"$&/\"\n                      ) + \"/\") +\n                  childKey\n              )),\n              \"\" !== nameSoFar &&\n                null != invokeCallback &&\n                isValidElement(invokeCallback) &&\n                null == invokeCallback.key &&\n                invokeCallback._store &&\n                !invokeCallback._store.validated &&\n                (escapedPrefix._store.validated = 2),\n              (callback = escapedPrefix)),\n            array.push(callback));\n        return 1;\n      }\n      invokeCallback = 0;\n      childKey = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n      if (isArrayImpl(children))\n        for (var i = 0; i < children.length; i++)\n          (nameSoFar = children[i]),\n            (type = childKey + getElementKey(nameSoFar, i)),\n            (invokeCallback += mapIntoArray(\n              nameSoFar,\n              array,\n              escapedPrefix,\n              type,\n              callback\n            ));\n      else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n        for (\n          i === children.entries &&\n            (didWarnAboutMaps ||\n              console.warn(\n                \"Using Maps as children is not supported. Use an array of keyed ReactElements instead.\"\n              ),\n            (didWarnAboutMaps = !0)),\n            children = i.call(children),\n            i = 0;\n          !(nameSoFar = children.next()).done;\n\n        )\n          (nameSoFar = nameSoFar.value),\n            (type = childKey + getElementKey(nameSoFar, i++)),\n            (invokeCallback += mapIntoArray(\n              nameSoFar,\n              array,\n              escapedPrefix,\n              type,\n              callback\n            ));\n      else if (\"object\" === type) {\n        if (\"function\" === typeof children.then)\n          return mapIntoArray(\n            resolveThenable(children),\n            array,\n            escapedPrefix,\n            nameSoFar,\n            callback\n          );\n        array = String(children);\n        throw Error(\n          \"Objects are not valid as a React child (found: \" +\n            (\"[object Object]\" === array\n              ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n              : array) +\n            \"). If you meant to render a collection of children, use an array instead.\"\n        );\n      }\n      return invokeCallback;\n    }\n    function mapChildren(children, func, context) {\n      if (null == children) return children;\n      var result = [],\n        count = 0;\n      mapIntoArray(children, result, \"\", \"\", function (child) {\n        return func.call(context, child, count++);\n      });\n      return result;\n    }\n    function resolveDispatcher() {\n      var dispatcher = ReactSharedInternals.H;\n      null === dispatcher &&\n        console.error(\n          \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n        );\n      return dispatcher;\n    }\n    function lazyInitializer(payload) {\n      if (-1 === payload._status) {\n        var resolveDebugValue = null,\n          rejectDebugValue = null,\n          ioInfo = payload._ioInfo;\n        null != ioInfo &&\n          ((ioInfo.start = ioInfo.end = performance.now()),\n          (ioInfo.value = new Promise(function (resolve, reject) {\n            resolveDebugValue = resolve;\n            rejectDebugValue = reject;\n          })));\n        ioInfo = payload._result;\n        var thenable = ioInfo();\n        thenable.then(\n          function (moduleObject) {\n            if (0 === payload._status || -1 === payload._status) {\n              payload._status = 1;\n              payload._result = moduleObject;\n              var _ioInfo = payload._ioInfo;\n              if (null != _ioInfo) {\n                _ioInfo.end = performance.now();\n                var debugValue =\n                  null == moduleObject ? void 0 : moduleObject.default;\n                resolveDebugValue(debugValue);\n                _ioInfo.value.status = \"fulfilled\";\n                _ioInfo.value.value = debugValue;\n              }\n              void 0 === thenable.status &&\n                ((thenable.status = \"fulfilled\"),\n                (thenable.value = moduleObject));\n            }\n          },\n          function (error) {\n            if (0 === payload._status || -1 === payload._status) {\n              payload._status = 2;\n              payload._result = error;\n              var _ioInfo2 = payload._ioInfo;\n              null != _ioInfo2 &&\n                ((_ioInfo2.end = performance.now()),\n                _ioInfo2.value.then(noop, noop),\n                rejectDebugValue(error),\n                (_ioInfo2.value.status = \"rejected\"),\n                (_ioInfo2.value.reason = error));\n              void 0 === thenable.status &&\n                ((thenable.status = \"rejected\"), (thenable.reason = error));\n            }\n          }\n        );\n        ioInfo = payload._ioInfo;\n        if (null != ioInfo) {\n          var displayName = thenable.displayName;\n          \"string\" === typeof displayName && (ioInfo.name = displayName);\n        }\n        -1 === payload._status &&\n          ((payload._status = 0), (payload._result = thenable));\n      }\n      if (1 === payload._status)\n        return (\n          (ioInfo = payload._result),\n          void 0 === ioInfo &&\n            console.error(\n              \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import('./MyComponent'))\\n\\nDid you accidentally put curly braces around the import?\",\n              ioInfo\n            ),\n          \"default\" in ioInfo ||\n            console.error(\n              \"lazy: Expected the result of a dynamic import() call. Instead received: %s\\n\\nYour code should look like: \\n  const MyComponent = lazy(() => import('./MyComponent'))\",\n              ioInfo\n            ),\n          ioInfo.default\n        );\n      throw payload._result;\n    }\n    function createCacheRoot() {\n      return new WeakMap();\n    }\n    function createCacheNode() {\n      return { s: 0, v: void 0, o: null, p: null };\n    }\n    var ReactSharedInternals = {\n        H: null,\n        A: null,\n        getCurrentStack: null,\n        recentlyCreatedOwnerStacks: 0\n      },\n      isArrayImpl = Array.isArray,\n      REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n      REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n      REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n      REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n      REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n      REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n      REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n      REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n      REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n      REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n      REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n      REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n      REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n      REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n      MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n      REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n      hasOwnProperty = Object.prototype.hasOwnProperty,\n      assign = Object.assign,\n      createTask = console.createTask\n        ? console.createTask\n        : function () {\n            return null;\n          },\n      createFakeCallStack = {\n        react_stack_bottom_frame: function (callStackForError) {\n          return callStackForError();\n        }\n      },\n      specialPropKeyWarningShown,\n      didWarnAboutOldJSXRuntime;\n    var didWarnAboutElementRef = {};\n    var unknownOwnerDebugStack =\n      createFakeCallStack.react_stack_bottom_frame.bind(\n        createFakeCallStack,\n        UnknownOwner\n      )();\n    var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n    var didWarnAboutMaps = !1,\n      userProvidedKeyEscapeRegex = /\\/+/g;\n    createFakeCallStack = {\n      map: mapChildren,\n      forEach: function (children, forEachFunc, forEachContext) {\n        mapChildren(\n          children,\n          function () {\n            forEachFunc.apply(this, arguments);\n          },\n          forEachContext\n        );\n      },\n      count: function (children) {\n        var n = 0;\n        mapChildren(children, function () {\n          n++;\n        });\n        return n;\n      },\n      toArray: function (children) {\n        return (\n          mapChildren(children, function (child) {\n            return child;\n          }) || []\n        );\n      },\n      only: function (children) {\n        if (!isValidElement(children))\n          throw Error(\n            \"React.Children.only expected to receive a single React element child.\"\n          );\n        return children;\n      }\n    };\n    exports.Activity = REACT_ACTIVITY_TYPE;\n    exports.Children = createFakeCallStack;\n    exports.Fragment = REACT_FRAGMENT_TYPE;\n    exports.Profiler = REACT_PROFILER_TYPE;\n    exports.StrictMode = REACT_STRICT_MODE_TYPE;\n    exports.Suspense = REACT_SUSPENSE_TYPE;\n    exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;\n    exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n      ReactSharedInternals;\n    exports.cache = function (fn) {\n      return function () {\n        var dispatcher = ReactSharedInternals.A;\n        if (!dispatcher) return fn.apply(null, arguments);\n        var fnMap = dispatcher.getCacheForType(createCacheRoot);\n        dispatcher = fnMap.get(fn);\n        void 0 === dispatcher &&\n          ((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));\n        fnMap = 0;\n        for (var l = arguments.length; fnMap < l; fnMap++) {\n          var arg = arguments[fnMap];\n          if (\n            \"function\" === typeof arg ||\n            (\"object\" === typeof arg && null !== arg)\n          ) {\n            var objectCache = dispatcher.o;\n            null === objectCache &&\n              (dispatcher.o = objectCache = new WeakMap());\n            dispatcher = objectCache.get(arg);\n            void 0 === dispatcher &&\n              ((dispatcher = createCacheNode()),\n              objectCache.set(arg, dispatcher));\n          } else\n            (objectCache = dispatcher.p),\n              null === objectCache && (dispatcher.p = objectCache = new Map()),\n              (dispatcher = objectCache.get(arg)),\n              void 0 === dispatcher &&\n                ((dispatcher = createCacheNode()),\n                objectCache.set(arg, dispatcher));\n        }\n        if (1 === dispatcher.s) return dispatcher.v;\n        if (2 === dispatcher.s) throw dispatcher.v;\n        try {\n          var result = fn.apply(null, arguments);\n          fnMap = dispatcher;\n          fnMap.s = 1;\n          return (fnMap.v = result);\n        } catch (error) {\n          throw (\n            ((result = dispatcher), (result.s = 2), (result.v = error), error)\n          );\n        }\n      };\n    };\n    exports.cacheSignal = function () {\n      var dispatcher = ReactSharedInternals.A;\n      return dispatcher ? dispatcher.cacheSignal() : null;\n    };\n    exports.captureOwnerStack = function () {\n      var getCurrentStack = ReactSharedInternals.getCurrentStack;\n      return null === getCurrentStack ? null : getCurrentStack();\n    };\n    exports.cloneElement = function (element, config, children) {\n      if (null === element || void 0 === element)\n        throw Error(\n          \"The argument must be a React element, but you passed \" +\n            element +\n            \".\"\n        );\n      var props = assign({}, element.props),\n        key = element.key,\n        owner = element._owner;\n      if (null != config) {\n        var JSCompiler_inline_result;\n        a: {\n          if (\n            hasOwnProperty.call(config, \"ref\") &&\n            (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(\n              config,\n              \"ref\"\n            ).get) &&\n            JSCompiler_inline_result.isReactWarning\n          ) {\n            JSCompiler_inline_result = !1;\n            break a;\n          }\n          JSCompiler_inline_result = void 0 !== config.ref;\n        }\n        JSCompiler_inline_result && (owner = getOwner());\n        hasValidKey(config) &&\n          (checkKeyStringCoercion(config.key), (key = \"\" + config.key));\n        for (propName in config)\n          !hasOwnProperty.call(config, propName) ||\n            \"key\" === propName ||\n            \"__self\" === propName ||\n            \"__source\" === propName ||\n            (\"ref\" === propName && void 0 === config.ref) ||\n            (props[propName] = config[propName]);\n      }\n      var propName = arguments.length - 2;\n      if (1 === propName) props.children = children;\n      else if (1 < propName) {\n        JSCompiler_inline_result = Array(propName);\n        for (var i = 0; i < propName; i++)\n          JSCompiler_inline_result[i] = arguments[i + 2];\n        props.children = JSCompiler_inline_result;\n      }\n      props = ReactElement(\n        element.type,\n        key,\n        props,\n        owner,\n        element._debugStack,\n        element._debugTask\n      );\n      for (key = 2; key < arguments.length; key++)\n        validateChildKeys(arguments[key]);\n      return props;\n    };\n    exports.createElement = function (type, config, children) {\n      for (var i = 2; i < arguments.length; i++)\n        validateChildKeys(arguments[i]);\n      var propName;\n      i = {};\n      var key = null;\n      if (null != config)\n        for (propName in (didWarnAboutOldJSXRuntime ||\n          !(\"__self\" in config) ||\n          \"key\" in config ||\n          ((didWarnAboutOldJSXRuntime = !0),\n          console.warn(\n            \"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform\"\n          )),\n        hasValidKey(config) &&\n          (checkKeyStringCoercion(config.key), (key = \"\" + config.key)),\n        config))\n          hasOwnProperty.call(config, propName) &&\n            \"key\" !== propName &&\n            \"__self\" !== propName &&\n            \"__source\" !== propName &&\n            (i[propName] = config[propName]);\n      var childrenLength = arguments.length - 2;\n      if (1 === childrenLength) i.children = children;\n      else if (1 < childrenLength) {\n        for (\n          var childArray = Array(childrenLength), _i = 0;\n          _i < childrenLength;\n          _i++\n        )\n          childArray[_i] = arguments[_i + 2];\n        Object.freeze && Object.freeze(childArray);\n        i.children = childArray;\n      }\n      if (type && type.defaultProps)\n        for (propName in ((childrenLength = type.defaultProps), childrenLength))\n          void 0 === i[propName] && (i[propName] = childrenLength[propName]);\n      key &&\n        defineKeyPropWarningGetter(\n          i,\n          \"function\" === typeof type\n            ? type.displayName || type.name || \"Unknown\"\n            : type\n        );\n      (propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++)\n        ? ((childArray = Error.stackTraceLimit),\n          (Error.stackTraceLimit = 10),\n          (childrenLength = Error(\"react-stack-top-frame\")),\n          (Error.stackTraceLimit = childArray))\n        : (childrenLength = unknownOwnerDebugStack);\n      return ReactElement(\n        type,\n        key,\n        i,\n        getOwner(),\n        childrenLength,\n        propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n      );\n    };\n    exports.createRef = function () {\n      var refObject = { current: null };\n      Object.seal(refObject);\n      return refObject;\n    };\n    exports.forwardRef = function (render) {\n      null != render && render.$$typeof === REACT_MEMO_TYPE\n        ? console.error(\n            \"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).\"\n          )\n        : \"function\" !== typeof render\n          ? console.error(\n              \"forwardRef requires a render function but was given %s.\",\n              null === render ? \"null\" : typeof render\n            )\n          : 0 !== render.length &&\n            2 !== render.length &&\n            console.error(\n              \"forwardRef render functions accept exactly two parameters: props and ref. %s\",\n              1 === render.length\n                ? \"Did you forget to use the ref parameter?\"\n                : \"Any additional parameter will be undefined.\"\n            );\n      null != render &&\n        null != render.defaultProps &&\n        console.error(\n          \"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?\"\n        );\n      var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },\n        ownName;\n      Object.defineProperty(elementType, \"displayName\", {\n        enumerable: !1,\n        configurable: !0,\n        get: function () {\n          return ownName;\n        },\n        set: function (name) {\n          ownName = name;\n          render.name ||\n            render.displayName ||\n            (Object.defineProperty(render, \"name\", { value: name }),\n            (render.displayName = name));\n        }\n      });\n      return elementType;\n    };\n    exports.isValidElement = isValidElement;\n    exports.lazy = function (ctor) {\n      ctor = { _status: -1, _result: ctor };\n      var lazyType = {\n          $$typeof: REACT_LAZY_TYPE,\n          _payload: ctor,\n          _init: lazyInitializer\n        },\n        ioInfo = {\n          name: \"lazy\",\n          start: -1,\n          end: -1,\n          value: null,\n          owner: null,\n          debugStack: Error(\"react-stack-top-frame\"),\n          debugTask: console.createTask ? console.createTask(\"lazy()\") : null\n        };\n      ctor._ioInfo = ioInfo;\n      lazyType._debugInfo = [{ awaited: ioInfo }];\n      return lazyType;\n    };\n    exports.memo = function (type, compare) {\n      null == type &&\n        console.error(\n          \"memo: The first argument must be a component. Instead received: %s\",\n          null === type ? \"null\" : typeof type\n        );\n      compare = {\n        $$typeof: REACT_MEMO_TYPE,\n        type: type,\n        compare: void 0 === compare ? null : compare\n      };\n      var ownName;\n      Object.defineProperty(compare, \"displayName\", {\n        enumerable: !1,\n        configurable: !0,\n        get: function () {\n          return ownName;\n        },\n        set: function (name) {\n          ownName = name;\n          type.name ||\n            type.displayName ||\n            (Object.defineProperty(type, \"name\", { value: name }),\n            (type.displayName = name));\n        }\n      });\n      return compare;\n    };\n    exports.use = function (usable) {\n      return resolveDispatcher().use(usable);\n    };\n    exports.useCallback = function (callback, deps) {\n      return resolveDispatcher().useCallback(callback, deps);\n    };\n    exports.useDebugValue = function (value, formatterFn) {\n      return resolveDispatcher().useDebugValue(value, formatterFn);\n    };\n    exports.useId = function () {\n      return resolveDispatcher().useId();\n    };\n    exports.useMemo = function (create, deps) {\n      return resolveDispatcher().useMemo(create, deps);\n    };\n    exports.version = \"19.3.0-canary-cbb046ab-20260731\";\n  })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n  module.exports = require('./cjs/react.react-server.production.js');\n} else {\n  module.exports = require('./cjs/react.react-server.development.js');\n}\n","// This file should be imported before any others. It sets up the environment\n// for later imports to work properly.\n\n// expose AsyncLocalStorage on global for react usage if it isn't already provided by the environment\nif (typeof (globalThis as any).AsyncLocalStorage !== 'function') {\n  const { AsyncLocalStorage } =\n    require('async_hooks') as typeof import('async_hooks')\n  ;(globalThis as any).AsyncLocalStorage = AsyncLocalStorage\n}\n\nif (typeof (globalThis as any).WebSocket !== 'function') {\n  Object.defineProperty(globalThis, 'WebSocket', {\n    configurable: true,\n    get() {\n      return (\n        require('next/dist/compiled/ws') as typeof import('next/dist/compiled/ws')\n      ).WebSocket\n    },\n    set(value) {\n      Object.defineProperty(globalThis, 'WebSocket', {\n        configurable: true,\n        writable: true,\n        value,\n      })\n    },\n  })\n}\n","// Note: This file is JS because it's used by the taskfile-swc.js file, which is JS.\n// Keep file changes in sync with the corresponding `.d.ts` files.\n\n/**\n * These are the minimum browser versions that we consider \"modern\" and thus compile for by default.\n * This list was generated using `pnpm browserslist \"baseline widely available\"` on 2025-10-01.\n */\nconst MODERN_BROWSERSLIST_TARGET = [\n  'chrome 111',\n  'edge 111',\n  'firefox 111',\n  'safari 16.4',\n]\n\nmodule.exports = MODERN_BROWSERSLIST_TARGET\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n        if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n            Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n        }\n    }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * We extend Web Crypto APIs during builds and revalidates to ensure that prerenders don't observe random bytes\n * When cacheComponents is enabled. Random bytes are a form of IO even if they resolve synchronously. When cacheComponents is\n * enabled we need to ensure that random bytes are excluded from prerenders unless they are cached.\n *\n *\n * The extensions here never error nor alter the underlying return values and thus should be transparent to callers.\n */\n\nimport { io } from './io-utils'\n\nlet webCrypto: typeof crypto\nif (process.env.NEXT_RUNTIME === 'edge') {\n  webCrypto = crypto\n} else {\n  if (typeof crypto === 'undefined') {\n    // @ts-expect-error -- TODO: Is this actually safe?\n    webCrypto = (require('node:crypto') as typeof import('node:crypto'))\n      .webcrypto\n  } else {\n    webCrypto = crypto\n  }\n}\n\nconst getRandomValuesExpression = '`crypto.getRandomValues()`'\ntry {\n  const _getRandomValues = webCrypto.getRandomValues\n  webCrypto.getRandomValues = function getRandomValues() {\n    io(getRandomValuesExpression, 'crypto')\n    return _getRandomValues.apply(webCrypto, arguments as any)\n  }\n} catch {\n  console.error(\n    `Failed to install ${getRandomValuesExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n  )\n}\n\nconst randomUUIDExpression = '`crypto.randomUUID()`'\ntry {\n  const _randomUUID = webCrypto.randomUUID\n  webCrypto.randomUUID = function randomUUID() {\n    io(randomUUIDExpression, 'crypto')\n    return _randomUUID.apply(webCrypto, arguments as any)\n  } as typeof _randomUUID\n} catch {\n  console.error(\n    `Failed to install ${getRandomValuesExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n  )\n}\n","import * as path from 'path'\nimport * as url from 'url'\nimport type * as util from 'util'\nimport { SourceMapConsumer as SyncSourceMapConsumer } from 'next/dist/compiled/source-map'\nimport {\n  type ModernSourceMapPayload,\n  devirtualizeReactServerURL,\n  findApplicableSourceMapPayload,\n  findSourceMapPayload,\n  ignoreListAnonymousStackFramesIfSandwiched as ignoreListAnonymousStackFramesIfSandwichedGeneric,\n  sourceMapIgnoreListsEverything,\n} from './lib/source-maps'\nimport { parseStack, type StackFrame } from './lib/parse-stack'\nimport type { IgnorableStackFrame } from '../next-devtools/server/shared'\nimport { workUnitAsyncStorage } from './app-render/work-unit-async-storage.external'\nimport { dim, italic } from '../lib/picocolors'\n\ntype FindSourceMapPayload = (\n  sourceURL: string\n) => ModernSourceMapPayload | undefined\n// Find a source map using the bundler's API.\n// This is only a fallback for when Node.js fails to due to bugs e.g. https://github.com/nodejs/node/issues/52102\n// TODO: Remove once all supported Node.js versions are fixed.\n// TODO(veil): Set from Webpack as well\n//\n// Stored on `globalThis` for the same reason as the code frame renderer below:\n// this module is bundled into several runtimes that each get their own copy,\n// and the copy that installs the implementation is not necessarily the one that\n// symbolicates a frame. The dev validation worker depends on that, because it\n// installs its implementation from the worker bundle while the frames are\n// symbolicated by the app-page bundle's copy.\nconst BUNDLER_FIND_SOURCE_MAP = Symbol.for('next.dev.bundlerFindSourceMap')\ntype GlobalWithBundlerFindSourceMap = typeof globalThis & {\n  [BUNDLER_FIND_SOURCE_MAP]?: FindSourceMapPayload\n}\n\nexport function setBundlerFindSourceMapImplementation(\n  findSourceMapImplementation: FindSourceMapPayload\n): void {\n  ;(globalThis as GlobalWithBundlerFindSourceMap)[BUNDLER_FIND_SOURCE_MAP] =\n    findSourceMapImplementation\n}\n\nfunction bundlerFindSourceMapPayload(\n  sourceURL: string\n): ModernSourceMapPayload | undefined {\n  return (globalThis as GlobalWithBundlerFindSourceMap)[\n    BUNDLER_FIND_SOURCE_MAP\n  ]?.(sourceURL)\n}\n\n// Code frame renderer - injected by dev/build to avoid hard dependency on native bindings\ntype CodeFrameRenderer = (\n  frame: IgnorableStackFrame,\n  source: string | null,\n  colors: boolean\n) => string | null\n\n// The code-frame renderer is stored on `globalThis` rather than in a module\n// variable because this module is bundled into several runtimes (the dev\n// server, the app-page runtime bundle, and the dev worker bundles) that each\n// get their own copy. `Error.prepareStackTrace` is a single process-global, so\n// whichever copy patched it last is the one that renders errors, which may not\n// be the copy `setCodeFrameRenderer` was called on. Sharing the renderer\n// through a `globalThis` symbol lets any copy install it and any copy read it.\nconst CODE_FRAME_RENDERER = Symbol.for('next.dev.codeFrameRenderer')\ntype GlobalWithCodeFrameRenderer = typeof globalThis & {\n  [CODE_FRAME_RENDERER]?: CodeFrameRenderer\n}\n\nexport function setCodeFrameRenderer(renderer: CodeFrameRenderer): void {\n  ;(globalThis as GlobalWithCodeFrameRenderer)[CODE_FRAME_RENDERER] = renderer\n}\n\nfunction getOriginalCodeFrame(\n  frame: IgnorableStackFrame,\n  source: string | null,\n  colors: boolean = process.stdout.isTTY\n): string | null {\n  const codeFrameRenderer = (globalThis as GlobalWithCodeFrameRenderer)[\n    CODE_FRAME_RENDERER\n  ]\n  if (!codeFrameRenderer) {\n    // No renderer available - gracefully degrade\n    return null\n  }\n  return codeFrameRenderer(frame, source, colors)\n}\n\ntype SourceMapCache = Map<\n  string,\n  null | { map: SyncSourceMapConsumer; payload: ModernSourceMapPayload }\n>\n\n// Constructing a consumer indexes the whole payload — expensive for large\n// chunk maps and previously paid per frame — so consumers are shared across\n// all frames and errors whose lookups returned the same payload. The inner\n// key is the URL the consumer resolves relative `sources` against.\nconst sourceMapConsumers = new WeakMap<\n  ModernSourceMapPayload,\n  Map<string, SyncSourceMapConsumer>\n>()\n\nfunction getOrCreateSourceMapConsumer(\n  payload: ModernSourceMapPayload,\n  sourceMapURL: string\n): SyncSourceMapConsumer {\n  let consumersByURL = sourceMapConsumers.get(payload)\n  let consumer = consumersByURL?.get(sourceMapURL)\n  if (consumer === undefined) {\n    consumer = new SyncSourceMapConsumer(\n      payload,\n      // @ts-expect-error: our typings don't include this parameter but it is here.\n      sourceMapURL\n    )\n    if (consumersByURL === undefined) {\n      consumersByURL = new Map()\n      // Throws for payloads that aren't objects; those are invalid source\n      // maps anyway, and the caller reports them.\n      sourceMapConsumers.set(payload, consumersByURL)\n    }\n    consumersByURL.set(sourceMapURL, consumer)\n  }\n  return consumer\n}\n\nfunction frameToString(\n  methodName: string | null,\n  sourceURL: string | null,\n  line1: number | null,\n  column1: number | null\n): string {\n  let sourceLocation = line1 !== null ? `:${line1}` : ''\n  if (column1 !== null && sourceLocation !== '') {\n    sourceLocation += `:${column1}`\n  }\n\n  let fileLocation: string | null\n  if (\n    sourceURL !== null &&\n    sourceURL.startsWith('file://') &&\n    URL.canParse(sourceURL)\n  ) {\n    // If not relative to CWD, the path is ambiguous to IDEs and clicking will prompt to select the file first.\n    // In a multi-app repo, this leads to potentially larger file names but will make clicking snappy.\n    // There's no tradeoff for the cases where `dir` in `next dev [dir]` is omitted\n    // since relative to cwd is both the shortest and snappiest.\n    fileLocation = path.relative(process.cwd(), url.fileURLToPath(sourceURL))\n  } else if (sourceURL !== null && sourceURL.startsWith('/')) {\n    fileLocation = path.relative(process.cwd(), sourceURL)\n  } else {\n    fileLocation = sourceURL\n  }\n\n  return methodName\n    ? `    at ${methodName} (${fileLocation}${sourceLocation})`\n    : `    at ${fileLocation}${sourceLocation}`\n}\n\nfunction computeErrorName(error: Error): string {\n  // TODO: Node.js seems to use a different algorithm\n  // class ReadonlyRequestCookiesError extends Error {}` would read `ReadonlyRequestCookiesError: [...]`\n  // in the stack i.e. seems like under certain conditions it favors the constructor name.\n  return error.name || 'Error'\n}\n\nfunction prepareUnsourcemappedStackTrace(\n  error: Error,\n  structuredStackTrace: any[]\n): string {\n  const name = computeErrorName(error)\n  const message = error.message || ''\n  let stack = name + ': ' + message\n  for (let i = 0; i < structuredStackTrace.length; i++) {\n    stack += '\\n    at ' + structuredStackTrace[i].toString()\n  }\n  return stack\n}\n\nfunction shouldIgnoreListGeneratedFrame(file: string): boolean {\n  return file.startsWith('node:') || file.includes('node_modules')\n}\n\nfunction shouldIgnoreListOriginalFrame(file: string): boolean {\n  return file.includes('node_modules')\n}\n\ninterface SourcemappableStackFrame extends StackFrame {\n  file: NonNullable<StackFrame['file']>\n}\n\ninterface SourceMappedFrame {\n  stack: IgnorableStackFrame\n  // DEV only\n  code: string | null\n}\n\nfunction createUnsourcemappedFrame(\n  frame: SourcemappableStackFrame\n): SourceMappedFrame {\n  return {\n    stack: {\n      file: frame.file,\n      line1: frame.line1,\n      column1: frame.column1,\n      methodName: frame.methodName,\n      arguments: frame.arguments,\n      ignored: shouldIgnoreListGeneratedFrame(frame.file),\n    },\n    code: null,\n  }\n}\n\nfunction ignoreListAnonymousStackFramesIfSandwiched(\n  sourceMappedFrames: Array<{\n    stack: IgnorableStackFrame\n    code: string | null\n  }>\n) {\n  return ignoreListAnonymousStackFramesIfSandwichedGeneric(\n    sourceMappedFrames,\n    (frame) => frame.stack.file === '<anonymous>',\n    (frame) => frame.stack.ignored,\n    (frame) => frame.stack.methodName,\n    (frame) => {\n      frame.stack.ignored = true\n    }\n  )\n}\n\n/**\n * @param frame\n * @param sourceMapCache\n * @returns The original frame if not sourcemapped.\n */\nfunction getSourcemappedFrameIfPossible(\n  frame: SourcemappableStackFrame,\n  sourceMapCache: SourceMapCache,\n  inspectOptions: util.InspectOptions\n): {\n  stack: IgnorableStackFrame\n  code: string | null\n} {\n  const sourceMapCacheEntry = sourceMapCache.get(frame.file)\n  let sourceMapConsumer: SyncSourceMapConsumer\n  let sourceMapPayload: ModernSourceMapPayload\n  if (sourceMapCacheEntry === undefined) {\n    // Fake frame scripts (`about://React/Server/file:///path/to/chunk.js?42`)\n    // have their positions padded to match the underlying chunk, so they\n    // resolve via the chunk's source map.\n    let sourceURL = devirtualizeReactServerURL(frame.file)\n    // e.g. \"/Users/foo/APP/.next/server/chunks/ssr/[root-of-the-server]__2934a0._.js\"\n    // or \"C:\\Users\\foo\\APP\\.next\\server\\chunks\\ssr\\[root-of-the-server]__2934a0._.js\"\n    // will be keyed by Node.js as \"file:///APP/.next/server/chunks/ssr/[root-of-the-server]__2934a0._.js\".\n    // This is likely caused by `callsite.toString()` in `Error.prepareStackTrace converting file URLs to paths.\n    //\n    // But frame.file might also be \"webpack-internal:///(rsc)/./app/bad-sourcemap/page.js\" or\n    // \"<anonymous>\" or \"node:internal/process/task_queues\" here\n    if (path.isAbsolute(sourceURL)) {\n      sourceURL = url.pathToFileURL(sourceURL).toString()\n    }\n    let maybeSourceMapPayload: ModernSourceMapPayload | undefined\n    try {\n      maybeSourceMapPayload = findSourceMapPayload(sourceURL)\n\n      if (\n        maybeSourceMapPayload === undefined &&\n        sourceURL.startsWith('file://')\n      ) {\n        // Devirtualizing React's fake frame URL decodes the path, while Node.js\n        // keys its source map cache by the `pathToFileURL` encoding of the same\n        // path, so a path containing characters that encoding escapes (such as\n        // the brackets in Turbopack's `[root-of-the-server]` chunks) misses\n        // above. Node.js also accepts the plain path, which is unambiguous for\n        // both interpretations, so retry with that before giving up.\n        //\n        // TODO(veil): Making React's fake frame URLs reversible, as proposed in\n        // https://github.com/react/react/pull/37105, would let the first lookup\n        // succeed on its own and retire this retry.\n        maybeSourceMapPayload = findSourceMapPayload(\n          url.fileURLToPath(sourceURL)\n        )\n      }\n    } catch (cause) {\n      // We should not log an actual error instance here because that will re-enter\n      // this codepath during error inspection and could lead to infinite recursion.\n      console.error(\n        `${sourceURL}: Invalid source map. Only conformant source maps can be used to find the original code. Cause: ${cause}`\n      )\n      // If loading fails once, it'll fail every time.\n      // So set the cache to avoid duplicate errors.\n      sourceMapCache.set(frame.file, null)\n      // Don't even fall back to the bundler because it might be not as strict\n      // with regards to parsing and then we fail later once we consume the\n      // source map payload.\n      // This essentially avoids a redundant error where we fail here and then\n      // later on consumption because the bundler just handed back an invalid\n      // source map.\n      return createUnsourcemappedFrame(frame)\n    }\n    if (maybeSourceMapPayload === undefined) {\n      maybeSourceMapPayload = bundlerFindSourceMapPayload(sourceURL)\n    }\n\n    if (maybeSourceMapPayload === undefined) {\n      return createUnsourcemappedFrame(frame)\n    }\n    sourceMapPayload = maybeSourceMapPayload\n    try {\n      // Pass the source map URL as the second parameter so that the consumer\n      // can resolve relative paths in the source map's `sources` array. This is\n      // a guess! Turbopack places .map files as siblings to the chunks so this\n      // is sufficient to compute relative paths but is actually wrong (the\n      // chunk and sourcemap have different content hashes). We are using the\n      // node API to read the sourcemap and it doesn't give us access to the\n      // URI. `sourceURL` is already devirtualized so that relative `sources`\n      // resolve against the real chunk URL, not React's virtual one.\n      const sourceMapURL = sourceURL + '.map'\n      sourceMapConsumer = getOrCreateSourceMapConsumer(\n        sourceMapPayload,\n        sourceMapURL\n      )\n    } catch (cause) {\n      // We should not log an actual error instance here because that will re-enter\n      // this codepath during error inspection and could lead to infinite recursion.\n      console.error(\n        `${sourceURL}: Invalid source map. Only conformant source maps can be used to find the original code. Cause: ${cause}`\n      )\n      // If creating the consumer fails once, it'll fail every time.\n      // So set the cache to avoid duplicate errors.\n      sourceMapCache.set(frame.file, null)\n      return createUnsourcemappedFrame(frame)\n    }\n    sourceMapCache.set(frame.file, {\n      map: sourceMapConsumer,\n      payload: sourceMapPayload,\n    })\n  } else if (sourceMapCacheEntry === null) {\n    // We failed earlier getting the payload or consumer.\n    // Just return an unsourcemapped frame.\n    // Errors will already be logged.\n    return createUnsourcemappedFrame(frame)\n  } else {\n    sourceMapConsumer = sourceMapCacheEntry.map\n    sourceMapPayload = sourceMapCacheEntry.payload\n  }\n\n  const sourcePosition = sourceMapConsumer.originalPositionFor({\n    column: (frame.column1 ?? 1) - 1,\n    line: frame.line1 ?? 1,\n  })\n\n  const applicableSourceMap = findApplicableSourceMapPayload(\n    (frame.line1 ?? 1) - 1,\n    (frame.column1 ?? 1) - 1,\n    sourceMapPayload\n  )\n  let ignored =\n    applicableSourceMap !== undefined &&\n    sourceMapIgnoreListsEverything(applicableSourceMap)\n  if (sourcePosition.source === null) {\n    return {\n      stack: {\n        arguments: frame.arguments,\n        file: frame.file,\n        line1: frame.line1,\n        column1: frame.column1,\n        methodName: frame.methodName,\n        ignored: ignored || shouldIgnoreListGeneratedFrame(frame.file),\n      },\n      code: null,\n    }\n  }\n\n  // TODO(veil): Upstream a method to sourcemap consumer that immediately says if a frame is ignored or not.\n  if (applicableSourceMap === undefined) {\n    console.error('No applicable source map found in sections for frame', frame)\n  } else if (!ignored && shouldIgnoreListOriginalFrame(sourcePosition.source)) {\n    // Externals may be libraries that don't ship ignoreLists.\n    // This is really taking control away from libraries.\n    // They should still ship `ignoreList` so that attached debuggers ignore-list their frames.\n    // TODO: Maybe only ignore library sourcemaps if `ignoreList` is absent?\n    // Though keep in mind that Turbopack omits empty `ignoreList`.\n    // So if we establish this convention, we should communicate it to the ecosystem.\n    ignored = true\n  } else if (!ignored) {\n    // TODO: O(n^2). Consider moving `ignoreList` into a Set\n    const sourceIndex = applicableSourceMap.sources.indexOf(\n      sourcePosition.source\n    )\n    ignored = applicableSourceMap.ignoreList?.includes(sourceIndex) ?? false\n  }\n\n  const originalFrame: IgnorableStackFrame = {\n    // We ignore the sourcemapped name since it won't be the correct name.\n    // The callsite will point to the column of the variable name instead of the\n    // name of the enclosing function.\n    // TODO(NDX-531): Spy on prepareStackTrace to get the enclosing line number for method name mapping.\n    methodName: frame.methodName\n      ?.replace('__WEBPACK_DEFAULT_EXPORT__', 'default')\n      ?.replace('__webpack_exports__.', ''),\n    file: sourcePosition.source,\n    line1: sourcePosition.line,\n    column1: sourcePosition.column + 1,\n    // TODO: c&p from async createOriginalStackFrame but why not frame.arguments?\n    arguments: [],\n    ignored,\n  }\n\n  /** undefined = not yet computed */\n  let codeFrame: string | null | undefined\n\n  return {\n    stack: originalFrame,\n    get code() {\n      if (codeFrame === undefined) {\n        const sourceContent: string | null =\n          sourceMapConsumer.sourceContentFor(\n            sourcePosition.source,\n            /* returnNullOnMissing */ true\n          ) ?? null\n        codeFrame = getOriginalCodeFrame(\n          originalFrame,\n          sourceContent,\n          inspectOptions.colors\n        )\n      }\n      return codeFrame\n    },\n  }\n}\n\nfunction parseAndSourceMap(\n  error: Error,\n  inspectOptions: util.InspectOptions\n): string {\n  const showIgnoreListed = process.env.__NEXT_SHOW_IGNORE_LISTED === 'true'\n  // We overwrote Error.prepareStackTrace earlier so error.stack is not sourcemapped.\n  let unparsedStack = String(error.stack)\n  // We could just read it from `error.stack`.\n  // This works around cases where a 3rd party `Error.prepareStackTrace` implementation\n  // doesn't implement the name computation correctly.\n  const errorName = computeErrorName(error)\n\n  let idx = unparsedStack.indexOf('react_stack_bottom_frame')\n  if (idx !== -1) {\n    idx = unparsedStack.lastIndexOf('\\n', idx)\n  } else {\n    idx = unparsedStack.indexOf('react-stack-bottom-frame')\n    if (idx !== -1) {\n      idx = unparsedStack.lastIndexOf('\\n', idx)\n    }\n  }\n  if (idx !== -1 && !showIgnoreListed) {\n    // Cut off everything after the bottom frame since it'll be React internals.\n    unparsedStack = unparsedStack.slice(0, idx)\n  }\n\n  const unsourcemappedStack = parseStack(unparsedStack)\n  const sourceMapCache: SourceMapCache = new Map()\n\n  const sourceMappedFrames: Array<{\n    stack: IgnorableStackFrame\n    code: string | null\n  }> = []\n  let sourceFrame: null | string = null\n  for (const frame of unsourcemappedStack) {\n    if (frame.file === null) {\n      sourceMappedFrames.push({\n        code: null,\n        stack: {\n          file: frame.file,\n          line1: frame.line1,\n          column1: frame.column1,\n          methodName: frame.methodName,\n          arguments: frame.arguments,\n          ignored: false,\n        },\n      })\n    } else {\n      const sourcemappedFrame = getSourcemappedFrameIfPossible(\n        // We narrowed this earlier by bailing if `frame.file` is null.\n        frame as SourcemappableStackFrame,\n        sourceMapCache,\n        inspectOptions\n      )\n      sourceMappedFrames.push(sourcemappedFrame)\n\n      // We can determine the sourceframe here.\n      // anonymous frames won't have a sourceframe so we don't need to scan\n      // all stacks again to check if they are sandwiched between ignored frames.\n      if (\n        sourceFrame === null &&\n        // TODO: Is this the right choice?\n        !sourcemappedFrame.stack.ignored &&\n        sourcemappedFrame.code !== null\n      ) {\n        sourceFrame = sourcemappedFrame.code\n      }\n    }\n  }\n\n  ignoreListAnonymousStackFramesIfSandwiched(sourceMappedFrames)\n\n  let sourceMappedStack = ''\n  for (let i = 0; i < sourceMappedFrames.length; i++) {\n    const frame = sourceMappedFrames[i]\n\n    if (!frame.stack.ignored) {\n      sourceMappedStack +=\n        '\\n' +\n        frameToString(\n          frame.stack.methodName,\n          frame.stack.file,\n          frame.stack.line1,\n          frame.stack.column1\n        )\n    } else if (showIgnoreListed) {\n      sourceMappedStack +=\n        '\\n' +\n        dim(\n          frameToString(\n            frame.stack.methodName,\n            frame.stack.file,\n            frame.stack.line1,\n            frame.stack.column1\n          )\n        )\n    }\n  }\n\n  if (sourceMappedStack === '' && sourceMappedFrames.length > 0) {\n    // The `at` marker is important so that Node.js doesn't add square brackets\n    // around the stringified error i.e. this results in\n    // Error: message\n    //   at <ignore-listed frames>\n    // instead of\n    // [Error: message\n    //   at <ignore-listed frames>]\n    sourceMappedStack = '\\n    at ' + italic('ignore-listed frames')\n  }\n\n  return (\n    errorName +\n    ': ' +\n    error.message +\n    sourceMappedStack +\n    (sourceFrame !== null ? '\\n' + sourceFrame : '')\n  )\n}\n\nfunction sourceMapError(\n  this: void,\n  error: Error,\n  inspectOptions: util.InspectOptions\n): Error {\n  // Setting an undefined `cause` would print `[cause]: undefined`\n  const options = error.cause !== undefined ? { cause: error.cause } : undefined\n\n  // Create a new Error object with the source mapping applied and then use native\n  // Node.js formatting on the result.\n  const newError =\n    error instanceof AggregateError\n      ? // Preserve AggregateError's `errors` instance property\n        new AggregateError(error.errors, error.message, options)\n      : new Error(error.message, options)\n\n  // TODO: Ensure `class MyError extends Error {}` prints `MyError` as the name\n  newError.stack = parseAndSourceMap(error, inspectOptions)\n\n  for (const key in error) {\n    if (!Object.prototype.hasOwnProperty.call(newError, key)) {\n      // @ts-expect-error -- We're copying all enumerable properties.\n      // So they definitely exist on `this` and obviously have no type on `newError` (yet)\n      newError[key] = error[key]\n    }\n  }\n\n  return newError\n}\n\nexport function patchErrorInspectNodeJS(\n  errorConstructor: ErrorConstructor\n): void {\n  const inspectSymbol = Symbol.for('nodejs.util.inspect.custom')\n\n  errorConstructor.prepareStackTrace = prepareUnsourcemappedStackTrace\n\n  // @ts-expect-error -- TODO upstream types\n  errorConstructor.prototype[inspectSymbol] = function (\n    depth: number,\n    inspectOptions: util.InspectOptions,\n    inspect: typeof util.inspect\n  ): string {\n    // avoid false-positive dynamic i/o warnings e.g. due to usage of `Math.random` in `source-map`.\n    return workUnitAsyncStorage.exit(() => {\n      const newError = sourceMapError(this, inspectOptions)\n\n      const originalCustomInspect = (newError as any)[inspectSymbol]\n      // Prevent infinite recursion.\n      // { customInspect: false } would result in `error.cause` not using our inspect.\n      Object.defineProperty(newError, inspectSymbol, {\n        value: undefined,\n        enumerable: false,\n        writable: true,\n      })\n      try {\n        return inspect(newError, {\n          ...inspectOptions,\n          depth,\n        })\n      } finally {\n        ;(newError as any)[inspectSymbol] = originalCustomInspect\n      }\n    })\n  }\n}\n\nexport function patchErrorInspectEdgeLite(\n  errorConstructor: ErrorConstructor\n): void {\n  const inspectSymbol = Symbol.for('edge-runtime.inspect.custom')\n\n  errorConstructor.prepareStackTrace = prepareUnsourcemappedStackTrace\n\n  // @ts-expect-error -- TODO upstream types\n  errorConstructor.prototype[inspectSymbol] = function ({\n    format,\n  }: {\n    format: (...args: unknown[]) => string\n  }): string {\n    // avoid false-positive dynamic i/o warnings e.g. due to usage of `Math.random` in `source-map`.\n    return workUnitAsyncStorage.exit(() => {\n      const newError = sourceMapError(this, {})\n\n      const originalCustomInspect = (newError as any)[inspectSymbol]\n      // Prevent infinite recursion.\n      Object.defineProperty(newError, inspectSymbol, {\n        value: undefined,\n        enumerable: false,\n        writable: true,\n      })\n      try {\n        return format(newError)\n      } finally {\n        ;(newError as any)[inspectSymbol] = originalCustomInspect\n      }\n    })\n  }\n}\n","// Synchronously inject a require hook for webpack and webpack/. It's required to use the internal ncc webpack version.\n// This is needed for userland plugins to attach to the same webpack instance as Next.js'.\n// Individually compiled modules are as defined for the compilation in bundles/webpack/packages/*.\n\n// This module will only be loaded once per process.\nconst path = require('path') as typeof import('path')\nconst mod = require('module') as typeof import('module')\nconst originalRequire = mod.prototype.require\nconst resolveFilename =\n  // @ts-expect-error\n  mod._resolveFilename\n\nlet resolve: typeof require.resolve = process.env.NEXT_MINIMAL\n  ? // @ts-ignore\n    __non_webpack_require__.resolve\n  : require.resolve\n\nexport const hookPropertyMap = new Map()\n\nexport const defaultOverrides: Record<string, string> = {}\n\ntry {\n  Object.assign(defaultOverrides, {\n    'styled-jsx': path.dirname(resolve('styled-jsx/package.json')),\n    'styled-jsx/style': resolve('styled-jsx/style'),\n    'styled-jsx/style.js': resolve('styled-jsx/style'),\n  })\n} catch (_) {}\n\nconst toResolveMap = (map: Record<string, string>): [string, string][] => {\n  const resolveMap: [string, string][] = []\n  for (const [key, value] of Object.entries(map)) {\n    try {\n      resolveMap.push([key, resolve(value)])\n    } catch {}\n  }\n  return resolveMap\n}\n\nexport function addHookAliases(aliases: [string, string][] = []) {\n  for (const [key, value] of aliases) {\n    hookPropertyMap.set(key, value)\n  }\n}\n\naddHookAliases(toResolveMap(defaultOverrides))\n\n// @ts-expect-error\nmod._resolveFilename = function (\n  originalResolveFilename: (\n    request: string,\n    parent: string,\n    isMain: boolean,\n    opts: any\n  ) => string,\n  requestMap: Map<string, string>,\n  request: string,\n  parent: string,\n  isMain: boolean,\n  options: any\n) {\n  const hookResolved = requestMap.get(request)\n  if (hookResolved) request = hookResolved\n\n  return originalResolveFilename.call(mod, request, parent, isMain, options)\n\n  // We use `bind` here to avoid referencing outside variables to create potential memory leaks.\n}.bind(null, resolveFilename, hookPropertyMap)\n\n// @ts-expect-error\n// This is a hack to make sure that if a user requires a Next.js module that wasn't bundled\n// that needs to point to the rendering runtime version, it will point to the correct one.\n// This can happen on `pages` when a user requires a dependency that uses next/image for example.\nmod.prototype.require = function (request: string) {\n  if (request.endsWith('.shared-runtime')) {\n    return originalRequire.call(\n      this,\n      `next/dist/server/route-modules/pages/vendored/contexts/${path.basename(\n        request,\n        '.shared-runtime'\n      )}`\n    )\n  }\n\n  return originalRequire.call(this, request)\n}\n","import { InvariantError } from '../../shared/lib/invariant-error'\nimport { createPromiseWithResolvers } from '../../shared/lib/promise-with-resolvers'\n\nexport enum RenderStage {\n  Before = 1,\n  //\n  ShellStatic = 11,\n  Static = 13,\n  //\n  ShellRuntime = 21,\n  Runtime = 23,\n  //\n  Dynamic = 30,\n  //\n  Abandoned = 40,\n}\n\nexport type AdvanceableRenderStage = Exclude<\n  RenderStage,\n  RenderStage.Before | RenderStage.Abandoned\n>\n\nexport const RENDER_STAGE_ADVANCE_ORDER: AdvanceableRenderStage[] = [\n  RenderStage.ShellStatic,\n  RenderStage.Static,\n  //\n  RenderStage.ShellRuntime,\n  RenderStage.Runtime,\n  //\n  RenderStage.Dynamic,\n]\n\nexport function getNextStage(\n  stage: Exclude<AdvanceableRenderStage, RenderStage.Dynamic>\n) {\n  return RENDER_STAGE_ADVANCE_ORDER[\n    RENDER_STAGE_ADVANCE_ORDER.indexOf(stage) + 1\n  ]\n}\n\nexport function isAdvanceableRenderStage(\n  stage: RenderStage\n): stage is AdvanceableRenderStage {\n  return RenderStage.Before < stage && stage <= RenderStage.Dynamic\n}\n\nexport enum SyncIOMode {\n  /** Sync IO does not error in any stage. */\n  Untracked = 1,\n  /** Before `partialPrefetching`: Sync IO errors in static stages, and is allowed otherwise. */\n  AllowedInRuntimeOrDynamic = 2,\n  /** After `partialPrefetching`: Sync IO errors in all stages other than dynamic. */\n  AllowedInDynamic = 3,\n}\n\nexport class StagedRenderingController {\n  private abortSignal: AbortSignal | null\n  private abandonController: AbortController | null\n  private syncIOMode: SyncIOMode\n  public readonly finalStage: AdvanceableRenderStage | null\n\n  currentStage: RenderStage = RenderStage.Before\n\n  syncInterruptReason: Error | null = null\n\n  triggers: Record<AdvanceableRenderStage, StageTrigger> = {\n    [RenderStage.ShellStatic]: createStageTrigger(),\n    [RenderStage.Static]: createStageTrigger(),\n    //\n    [RenderStage.ShellRuntime]: createStageTrigger(),\n    [RenderStage.Runtime]: createStageTrigger(),\n    //\n    [RenderStage.Dynamic]: createStageTrigger(),\n  }\n\n  constructor({\n    abortSignal,\n    abandonController,\n    syncIO,\n    finalStage,\n  }: {\n    abortSignal: AbortSignal | null\n    abandonController: AbortController | null\n    syncIO: SyncIOMode\n    finalStage: AdvanceableRenderStage | null\n  }) {\n    this.abortSignal = abortSignal\n    this.abandonController = abandonController\n    this.syncIOMode = syncIO\n    this.finalStage = finalStage\n\n    if (abortSignal) {\n      abortSignal.addEventListener(\n        'abort',\n        () => {\n          // Reject all stage promises that haven't already been resolved.\n          // `cancelStageTrigger` is a noop if the trigger already resolved.\n          const { reason } = abortSignal\n          for (const trigger of Object.values(this.triggers)) {\n            cancelStageTrigger(trigger, reason)\n          }\n        },\n        { once: true }\n      )\n    }\n\n    if (abandonController) {\n      abandonController.signal.addEventListener(\n        'abort',\n        () => {\n          this.abandonRender()\n        },\n        { once: true }\n      )\n    }\n  }\n\n  onStage(stage: AdvanceableRenderStage, callback: () => void) {\n    addSyncTriggerListener(this.triggers[stage], callback)\n  }\n\n  shouldTrackSyncInterrupt(): boolean {\n    if (this.syncIOMode === SyncIOMode.Untracked) {\n      return false\n    }\n\n    switch (this.currentStage) {\n      case RenderStage.Before:\n        // If we haven't started the render yet, it can't be interrupted.\n        return false\n      case RenderStage.ShellStatic:\n      case RenderStage.Static:\n        return true\n      case RenderStage.ShellRuntime:\n      case RenderStage.Runtime: {\n        switch (this.syncIOMode) {\n          case SyncIOMode.AllowedInRuntimeOrDynamic: {\n            // Before `partialPrefetching`: Sync IO only errors in static stages.\n            return false\n          }\n          case SyncIOMode.AllowedInDynamic: {\n            return true\n          }\n        }\n        // NOT a fallthrough, but eslint doesn't understand that\n      }\n      case RenderStage.Dynamic:\n      case RenderStage.Abandoned:\n        return false\n      default:\n        this.currentStage satisfies never\n        return false\n    }\n  }\n\n  /** Note: only call this if `shouldTrackSyncInterrupt()` returned true */\n  syncInterruptCurrentStageWithReason(reason: Error) {\n    const { currentStage } = this\n    if (\n      currentStage === RenderStage.Before ||\n      currentStage === RenderStage.Dynamic ||\n      currentStage === RenderStage.Abandoned\n    ) {\n      // Not interruptible. Defensive noop.\n      return\n    }\n\n    // If Sync IO occurs during an abandonable render, we trigger the abandon.\n    // The abandon listener will call abandonRender which advances through\n    // stages to let caches fill before marking as Abandoned.\n    if (this.abandonController) {\n      this.abandonController.abort()\n      return\n    }\n\n    if (this.abortSignal) {\n      // If this is an abortable render, we capture the interruption reason and stop advancing.\n      // We don't release any more promises.\n      // The caller is expected to abort the signal.\n      this.syncInterruptReason = reason\n      this.currentStage = RenderStage.Abandoned\n      return\n    }\n\n    // If we're in a non-abandonable & non-abortable render,\n    // we need to advance to the Dynamic stage and capture the interruption reason.\n    // (in dev, this will be the restarted render)\n    this.syncInterruptReason = reason\n    this.advanceStage(RenderStage.Dynamic)\n  }\n\n  getSyncInterruptReason() {\n    return this.syncInterruptReason\n  }\n\n  getStageEndTime(stage: Exclude<AdvanceableRenderStage, RenderStage.Dynamic>) {\n    return this.triggers[getNextStage(stage)].triggeredAt ?? Infinity\n  }\n\n  private abandonRender() {\n    // In staged rendering, only the initial render is abandonable.\n    // We can abandon the initial render if\n    //   1. We notice a cache miss, and need to wait for caches to fill\n    //   2. A sync IO error occurs, and the render should be interrupted\n    //      (this might be a lazy intitialization of a module,\n    //       so we still want to restart in this case and see if it still occurs)\n    // In either case, we'll be doing another render after this one,\n    // so we only want to unblock the next stage, not Dynamic, because\n    // unblocking the dynamic stage would likely lead to wasted (uncached) IO.\n\n    const { currentStage } = this\n\n    if (currentStage === RenderStage.Before) {\n      throw new InvariantError(\n        \"A render that hasn't started yet cannot be abandoned\"\n      )\n    }\n    if (\n      currentStage === RenderStage.Dynamic ||\n      currentStage === RenderStage.Abandoned\n    ) {\n      // We shouldn't ever trigger an abandon in these. Defensive noop.\n      return\n    }\n\n    // Resolve all stages after the current one, up to runtime (excluding dynamic)\n    const nextStageIx = RENDER_STAGE_ADVANCE_ORDER.indexOf(currentStage) + 1\n    const dynamicStageIx = RENDER_STAGE_ADVANCE_ORDER.indexOf(\n      RenderStage.Dynamic\n    )\n    for (let i = nextStageIx; i < dynamicStageIx; i++) {\n      this.resolveStage(RENDER_STAGE_ADVANCE_ORDER[i])\n    }\n\n    this.currentStage = RenderStage.Abandoned\n  }\n\n  advanceStage(targetStage: AdvanceableRenderStage) {\n    if (this.finalStage !== null && targetStage > this.finalStage) {\n      throw new InvariantError(\n        `Attempted to advance to stage ${RenderStage[targetStage]} but the render is limited to ${RenderStage[this.finalStage]}`\n      )\n    }\n    const { currentStage } = this\n\n    if (\n      currentStage === RenderStage.Dynamic ||\n      currentStage === RenderStage.Abandoned\n    ) {\n      // Terminal stages, nowhere left to advance.\n      return\n    }\n\n    // If we're already at the target stage or beyond, do nothing.\n    if (targetStage <= currentStage) {\n      return\n    }\n\n    this.currentStage = targetStage\n\n    // Resolve all stages between the current stage and the target.\n    const nextStageIx =\n      currentStage === RenderStage.Before\n        ? 0\n        : RENDER_STAGE_ADVANCE_ORDER.indexOf(currentStage) + 1\n    const targetStageIx = RENDER_STAGE_ADVANCE_ORDER.indexOf(targetStage)\n    for (let i = nextStageIx; i <= targetStageIx; i++) {\n      this.resolveStage(RENDER_STAGE_ADVANCE_ORDER[i])\n    }\n  }\n\n  private resolveStage(stage: AdvanceableRenderStage) {\n    fireStageTrigger(this.triggers[stage])\n  }\n\n  private getStagePromise(stage: AdvanceableRenderStage): Promise<void> {\n    return this.triggers[stage].promise\n  }\n\n  waitForStage(stage: AdvanceableRenderStage) {\n    return this.getStagePromise(stage)\n  }\n\n  delayUntilStage<T>(\n    stage: AdvanceableRenderStage,\n    displayName: string | undefined,\n    resolvedValue: T\n  ): Promise<T> {\n    const stagePromise = this.getStagePromise(stage)\n\n    const promise =\n      process.env.NODE_ENV === 'development'\n        ? makeDevtoolsIOPromiseFromIOTrigger(\n            stagePromise,\n            displayName,\n            resolvedValue\n          )\n        : stagePromise.then(() => resolvedValue)\n\n    // Analogously to `makeDynamicHangingPromise`, we might reject this promise if the signal is invoked.\n    // (e.g. in the case where we don't want want the render to proceed to the dynamic stage and abort it).\n    // We shouldn't consider this an unhandled rejection, so we attach a noop catch handler here to suppress this warning.\n    if (this.abortSignal) {\n      promise.catch(ignoreReject)\n    }\n    return promise\n  }\n}\n\nfunction ignoreReject() {}\n\n// TODO(restart-on-cache-miss): the layering of `delayUntilStage`,\n// `makeDevtoolsIOPromiseFromIOTrigger` and and `makeDevtoolsIOAwarePromise`\n// is confusing, we should clean it up.\nfunction makeDevtoolsIOPromiseFromIOTrigger<T>(\n  ioTrigger: Promise<any>,\n  displayName: string | undefined,\n  resolvedValue: T\n): Promise<T> {\n  // If we create a `new Promise` and give it a displayName\n  // (with no userspace code above us in the stack)\n  // React Devtools will use it as the IO cause when determining \"suspended by\".\n  // In particular, it should shadow any inner IO that resolved/rejected the promise\n  // (in case of staged rendering, this will be the `setTimeout` that triggers the relevant stage)\n  const promise = new Promise<T>((resolve, reject) => {\n    ioTrigger.then(resolve.bind(null, resolvedValue), reject)\n  })\n  if (displayName !== undefined) {\n    // @ts-expect-error\n    promise.displayName = displayName\n  }\n  return promise\n}\n\ntype StageTrigger = {\n  state: 'pending' | 'triggered' | 'cancelled'\n  triggeredAt: number | null\n  promise: Promise<void>\n  _listeners: Array<() => void>\n  _resolvePromise: () => void\n  _rejectPromise: (reason: unknown) => void\n}\n\nfunction addSyncTriggerListener(trigger: StageTrigger, listener: () => void) {\n  if (trigger.state === 'pending') {\n    trigger._listeners.push(listener)\n  } else {\n    listener()\n  }\n}\n\nfunction createStageTrigger(): StageTrigger {\n  const { promise, resolve, reject } = createPromiseWithResolvers<void>()\n  return {\n    state: 'pending',\n    triggeredAt: null,\n    promise,\n    _listeners: [],\n    _resolvePromise: resolve,\n    _rejectPromise: reject,\n  }\n}\n\nfunction fireStageTrigger(trigger: StageTrigger) {\n  if (trigger.state !== 'pending') {\n    return\n  }\n  trigger.state = 'triggered'\n  trigger.triggeredAt = performance.now() + performance.timeOrigin\n  try {\n    const { _listeners: listeners } = trigger\n    for (let i = 0; i < listeners.length; i++) {\n      listeners[i]()\n    }\n    listeners.length = 0\n  } finally {\n    trigger._resolvePromise()\n  }\n}\n\nfunction cancelStageTrigger(trigger: StageTrigger, reason: unknown) {\n  if (trigger.state !== 'pending') {\n    return\n  }\n  trigger.state = 'cancelled'\n  // we didn't trigger, so don't save `triggeredAt`.\n\n  // We're not gonna fire the listeners, we may as well free them.\n  trigger._listeners.length = 0\n\n  // Suppress unhandled rejection warnings for promises that no one is awaiting.\n  trigger.promise.catch(ignoreReject)\n  trigger._rejectPromise(reason)\n}\n","/**\n * We extend `Date` during builds and revalidates to ensure that prerenders don't observe the clock as a source of IO\n * When cacheComponents is enabled. The current time is a form of IO even though it resolves synchronously. When cacheComponents is\n * enabled we need to ensure that clock time is excluded from prerenders unless it is cached.\n *\n * There is tension here because time is used for both output and introspection. While arbitrary we intend to reserve\n * `Date` for output use cases and `performance` for introspection use cases. If you want to measure\n * how long something takes use `performance.timeOrigin` and `performance.now()` rather than `Date.now()` for instance.\n *\n * The extensions here never error nor alter the underlying Date objects, strings, and numbers created and thus should be transparent to callers.\n */\nimport { io } from './io-utils'\n\nfunction createNow(originalNow: typeof Date.now) {\n  return {\n    now: function now() {\n      io('`Date.now()`', 'time')\n      return originalNow()\n    },\n  }['now'.slice() as 'now'].bind(null)\n}\n\nfunction createDate(originalConstructor: typeof Date): typeof Date {\n  const properties = Object.getOwnPropertyDescriptors(originalConstructor)\n  properties.now.value = createNow(originalConstructor.now)\n\n  const apply = Reflect.apply\n  const construct = Reflect.construct\n\n  const newConstructor = Object.defineProperties(\n    // Ideally this should not minify the name.\n    function Date() {\n      if (new.target === undefined) {\n        io('`Date()`', 'time')\n        return apply(originalConstructor, undefined, arguments)\n      }\n      if (arguments.length === 0) {\n        io('`new Date()`', 'time')\n      }\n      return construct(originalConstructor, arguments, new.target)\n    },\n    properties\n  )\n  Object.defineProperty(originalConstructor.prototype, 'constructor', {\n    value: newConstructor,\n  })\n  return newConstructor as typeof Date\n}\n\ntry {\n  // eslint-disable-next-line no-native-reassign\n  Date = createDate(Date)\n} catch {\n  console.error(\n    'Failed to install `Date` class extension. When using `cacheComponents`, APIs that read the current time will not correctly trigger dynamic behavior.'\n  )\n}\n","/**\n * Contains predefined constants for the trace span name in next/server.\n *\n * Currently, next/server/tracer is internal implementation only for tracking\n * next.js's implementation only with known span names defined here.\n **/\n\n// eslint typescript has a bug with TS enums\n\nenum BaseServerSpan {\n  handleRequest = 'BaseServer.handleRequest',\n  run = 'BaseServer.run',\n  pipe = 'BaseServer.pipe',\n  getStaticHTML = 'BaseServer.getStaticHTML',\n  render = 'BaseServer.render',\n  renderToResponseWithComponents = 'BaseServer.renderToResponseWithComponents',\n  renderToResponse = 'BaseServer.renderToResponse',\n  renderToHTML = 'BaseServer.renderToHTML',\n  renderError = 'BaseServer.renderError',\n  renderErrorToResponse = 'BaseServer.renderErrorToResponse',\n  renderErrorToHTML = 'BaseServer.renderErrorToHTML',\n  render404 = 'BaseServer.render404',\n}\n\nenum LoadComponentsSpan {\n  loadDefaultErrorComponents = 'LoadComponents.loadDefaultErrorComponents',\n  loadComponents = 'LoadComponents.loadComponents',\n}\n\nenum NextServerSpan {\n  getRequestHandler = 'NextServer.getRequestHandler',\n  getRequestHandlerWithMetadata = 'NextServer.getRequestHandlerWithMetadata',\n  getServer = 'NextServer.getServer',\n  getServerRequestHandler = 'NextServer.getServerRequestHandler',\n  createServer = 'createServer.createServer',\n}\n\nenum NextNodeServerSpan {\n  compression = 'NextNodeServer.compression',\n  getBuildId = 'NextNodeServer.getBuildId',\n  createComponentTree = 'NextNodeServer.createComponentTree',\n  clientComponentLoading = 'NextNodeServer.clientComponentLoading',\n  getLayoutOrPageModule = 'NextNodeServer.getLayoutOrPageModule',\n  generateStaticRoutes = 'NextNodeServer.generateStaticRoutes',\n  generateFsStaticRoutes = 'NextNodeServer.generateFsStaticRoutes',\n  generatePublicRoutes = 'NextNodeServer.generatePublicRoutes',\n  generateImageRoutes = 'NextNodeServer.generateImageRoutes.route',\n  sendRenderResult = 'NextNodeServer.sendRenderResult',\n  proxyRequest = 'NextNodeServer.proxyRequest',\n  runApi = 'NextNodeServer.runApi',\n  render = 'NextNodeServer.render',\n  renderHTML = 'NextNodeServer.renderHTML',\n  imageOptimizer = 'NextNodeServer.imageOptimizer',\n  getPagePath = 'NextNodeServer.getPagePath',\n  getRoutesManifest = 'NextNodeServer.getRoutesManifest',\n  findPageComponents = 'NextNodeServer.findPageComponents',\n  getFontManifest = 'NextNodeServer.getFontManifest',\n  getServerComponentManifest = 'NextNodeServer.getServerComponentManifest',\n  getRequestHandler = 'NextNodeServer.getRequestHandler',\n  renderToHTML = 'NextNodeServer.renderToHTML',\n  renderError = 'NextNodeServer.renderError',\n  renderErrorToHTML = 'NextNodeServer.renderErrorToHTML',\n  render404 = 'NextNodeServer.render404',\n  startResponse = 'NextNodeServer.startResponse',\n\n  // nested inner span, does not require parent scope name\n  route = 'route',\n  onProxyReq = 'onProxyReq',\n  apiResolver = 'apiResolver',\n  internalFetch = 'internalFetch',\n}\n\nenum StartServerSpan {\n  startServer = 'startServer.startServer',\n}\n\nenum RenderSpan {\n  getServerSideProps = 'Render.getServerSideProps',\n  getStaticProps = 'Render.getStaticProps',\n  renderToString = 'Render.renderToString',\n  renderDocument = 'Render.renderDocument',\n  createBodyResult = 'Render.createBodyResult',\n}\n\nenum AppRenderSpan {\n  renderToString = 'AppRender.renderToString',\n  renderToReadableStream = 'AppRender.renderToReadableStream',\n  getBodyResult = 'AppRender.getBodyResult',\n  fetch = 'AppRender.fetch',\n  waitShellReady = 'AppRender.waitShellReady',\n  renderToNodeFizzStream = 'AppRender.renderToNodeFizzStream',\n  instantInsights = 'AppRender.instantInsights',\n  instantInsightsPrepareValidation = 'AppRender.instantInsights.prepareValidation',\n  instantInsightsRunValidation = 'AppRender.instantInsights.runValidation',\n}\n\nenum RouterSpan {\n  executeRoute = 'Router.executeRoute',\n}\n\nenum NodeSpan {\n  runHandler = 'Node.runHandler',\n}\n\nenum AppRouteRouteHandlersSpan {\n  runHandler = 'AppRouteRouteHandlers.runHandler',\n}\n\nenum ResolveMetadataSpan {\n  generateMetadata = 'ResolveMetadata.generateMetadata',\n  generateViewport = 'ResolveMetadata.generateViewport',\n}\n\nenum MiddlewareSpan {\n  execute = 'Middleware.execute',\n}\n\ntype SpanTypes =\n  | `${BaseServerSpan}`\n  | `${LoadComponentsSpan}`\n  | `${NextServerSpan}`\n  | `${StartServerSpan}`\n  | `${NextNodeServerSpan}`\n  | `${RenderSpan}`\n  | `${RouterSpan}`\n  | `${AppRenderSpan}`\n  | `${NodeSpan}`\n  | `${AppRouteRouteHandlersSpan}`\n  | `${ResolveMetadataSpan}`\n  | `${MiddlewareSpan}`\n\n// This list is used to filter out spans that are not relevant to the user\nexport const NextVanillaSpanAllowlist = new Set([\n  MiddlewareSpan.execute,\n  BaseServerSpan.handleRequest,\n  RenderSpan.getServerSideProps,\n  RenderSpan.getStaticProps,\n  AppRenderSpan.fetch,\n  AppRenderSpan.getBodyResult,\n  RenderSpan.renderDocument,\n  NodeSpan.runHandler,\n  AppRouteRouteHandlersSpan.runHandler,\n  ResolveMetadataSpan.generateMetadata,\n  ResolveMetadataSpan.generateViewport,\n  NextNodeServerSpan.createComponentTree,\n  NextNodeServerSpan.findPageComponents,\n  NextNodeServerSpan.getLayoutOrPageModule,\n  NextNodeServerSpan.startResponse,\n  NextNodeServerSpan.clientComponentLoading,\n])\n\n// These Spans are allowed to be always logged\n// when the otel log prefix env is set\nexport const LogSpanAllowList = new Set([\n  NextNodeServerSpan.findPageComponents,\n  NextNodeServerSpan.createComponentTree,\n  NextNodeServerSpan.clientComponentLoading,\n])\n\nexport {\n  BaseServerSpan,\n  LoadComponentsSpan,\n  NextServerSpan,\n  NextNodeServerSpan,\n  StartServerSpan,\n  RenderSpan,\n  RouterSpan,\n  AppRenderSpan,\n  NodeSpan,\n  AppRouteRouteHandlersSpan,\n  ResolveMetadataSpan,\n  MiddlewareSpan,\n}\n\nexport type { SpanTypes }\n","// ISC License\n\n// Copyright (c) 2021 Alexey Raspopov, Kostiantyn Denysov, Anton Verinov\n\n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice appear in all copies.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n//\n// https://github.com/alexeyraspopov/picocolors/blob/b6261487e7b81aaab2440e397a356732cad9e342/picocolors.js#L1\n\nconst { env, stdout } = globalThis?.process ?? {}\n\nconst enabled =\n  env &&\n  !env.NO_COLOR &&\n  (env.FORCE_COLOR || (stdout?.isTTY && !env.CI && env.TERM !== 'dumb'))\n\nconst replaceClose = (\n  str: string,\n  close: string,\n  replace: string,\n  index: number\n): string => {\n  const start = str.substring(0, index) + replace\n  const end = str.substring(index + close.length)\n  const nextIndex = end.indexOf(close)\n  return ~nextIndex\n    ? start + replaceClose(end, close, replace, nextIndex)\n    : start + end\n}\n\nconst formatter = (open: string, close: string, replace = open) => {\n  if (!enabled) return String\n  return (input: string) => {\n    const string = '' + input\n    const index = string.indexOf(close, open.length)\n    return ~index\n      ? open + replaceClose(string, close, replace, index) + close\n      : open + string + close\n  }\n}\n\nexport const reset = enabled ? (s: string) => `\\x1b[0m${s}\\x1b[0m` : String\nexport const bold = formatter('\\x1b[1m', '\\x1b[22m', '\\x1b[22m\\x1b[1m')\nexport const dim = formatter('\\x1b[2m', '\\x1b[22m', '\\x1b[22m\\x1b[2m')\nexport const italic = formatter('\\x1b[3m', '\\x1b[23m')\nexport const underline = formatter('\\x1b[4m', '\\x1b[24m')\nexport const inverse = formatter('\\x1b[7m', '\\x1b[27m')\nexport const hidden = formatter('\\x1b[8m', '\\x1b[28m')\nexport const strikethrough = formatter('\\x1b[9m', '\\x1b[29m')\nexport const black = formatter('\\x1b[30m', '\\x1b[39m')\nexport const red = formatter('\\x1b[31m', '\\x1b[39m')\nexport const green = formatter('\\x1b[32m', '\\x1b[39m')\nexport const yellow = formatter('\\x1b[33m', '\\x1b[39m')\nexport const blue = formatter('\\x1b[34m', '\\x1b[39m')\nexport const magenta = formatter('\\x1b[35m', '\\x1b[39m')\nexport const purple = formatter('\\x1b[38;2;173;127;168m', '\\x1b[39m')\nexport const cyan = formatter('\\x1b[36m', '\\x1b[39m')\nexport const white = formatter('\\x1b[37m', '\\x1b[39m')\nexport const gray = formatter('\\x1b[90m', '\\x1b[39m')\nexport const bgBlack = formatter('\\x1b[40m', '\\x1b[49m')\nexport const bgRed = formatter('\\x1b[41m', '\\x1b[49m')\nexport const bgGreen = formatter('\\x1b[42m', '\\x1b[49m')\nexport const bgYellow = formatter('\\x1b[43m', '\\x1b[49m')\nexport const bgBlue = formatter('\\x1b[44m', '\\x1b[49m')\nexport const bgMagenta = formatter('\\x1b[45m', '\\x1b[49m')\nexport const bgCyan = formatter('\\x1b[46m', '\\x1b[49m')\nexport const bgWhite = formatter('\\x1b[47m', '\\x1b[49m')\n","/**\n * Node in the doubly-linked list used for LRU tracking.\n * Each node represents a cache entry with bidirectional pointers.\n */\nclass LRUNode<T> {\n  public readonly key: string\n  public data: T\n  public size: number\n  public prev: LRUNode<T> | SentinelNode<T> | null = null\n  public next: LRUNode<T> | SentinelNode<T> | null = null\n\n  constructor(key: string, data: T, size: number) {\n    this.key = key\n    this.data = data\n    this.size = size\n  }\n}\n\n/**\n * Sentinel node used for head/tail boundaries.\n * These nodes don't contain actual cache data but simplify list operations.\n */\nclass SentinelNode<T> {\n  public prev: LRUNode<T> | SentinelNode<T> | null = null\n  public next: LRUNode<T> | SentinelNode<T> | null = null\n}\n\n/**\n * LRU (Least Recently Used) Cache implementation using a doubly-linked list\n * and hash map for O(1) operations.\n *\n * Algorithm:\n * - Uses a doubly-linked list to maintain access order (most recent at head)\n * - Hash map provides O(1) key-to-node lookup\n * - Sentinel head/tail nodes simplify edge case handling\n * - Size-based eviction supports custom size calculation functions\n *\n * Data Structure Layout:\n * HEAD <-> [most recent] <-> ... <-> [least recent] <-> TAIL\n *\n * Operations:\n * - get(): Move accessed node to head (mark as most recent)\n * - set(): Add new node at head, evict from tail if over capacity\n * - Eviction: Remove least recent node (tail.prev) when size exceeds limit\n */\nexport class LRUCache<T> {\n  private readonly cache: Map<string, LRUNode<T>> = new Map()\n  private readonly head: SentinelNode<T>\n  private readonly tail: SentinelNode<T>\n  private totalSize: number = 0\n  private readonly maxSize: number\n  private readonly calculateSize:\n    | ((value: T, key: string) => number)\n    | undefined\n  private readonly onEvict: ((key: string, value: T) => void) | undefined\n\n  constructor(\n    maxSize: number,\n    calculateSize?: (value: T, key: string) => number,\n    onEvict?: (key: string, value: T) => void\n  ) {\n    this.maxSize = maxSize\n    this.calculateSize = calculateSize\n    this.onEvict = onEvict\n\n    // Create sentinel nodes to simplify doubly-linked list operations\n    // HEAD <-> TAIL (empty list)\n    this.head = new SentinelNode<T>()\n    this.tail = new SentinelNode<T>()\n    this.head.next = this.tail\n    this.tail.prev = this.head\n  }\n\n  /**\n   * Adds a node immediately after the head (marks as most recently used).\n   * Used when inserting new items or when an item is accessed.\n   * PRECONDITION: node must be disconnected (prev/next should be null)\n   */\n  private addToHead(node: LRUNode<T>): void {\n    node.prev = this.head\n    node.next = this.head.next\n    // head.next is always non-null (points to tail or another node)\n    this.head.next!.prev = node\n    this.head.next = node\n  }\n\n  /**\n   * Removes a node from its current position in the doubly-linked list.\n   * Updates the prev/next pointers of adjacent nodes to maintain list integrity.\n   * PRECONDITION: node must be connected (prev/next are non-null)\n   */\n  private removeNode(node: LRUNode<T>): void {\n    // Connected nodes always have non-null prev/next\n    node.prev!.next = node.next\n    node.next!.prev = node.prev\n  }\n\n  /**\n   * Moves an existing node to the head position (marks as most recently used).\n   * This is the core LRU operation - accessed items become most recent.\n   */\n  private moveToHead(node: LRUNode<T>): void {\n    this.removeNode(node)\n    this.addToHead(node)\n  }\n\n  /**\n   * Removes and returns the least recently used node (the one before tail).\n   * This is called during eviction when the cache exceeds capacity.\n   * PRECONDITION: cache is not empty (ensured by caller)\n   */\n  private removeTail(): LRUNode<T> {\n    const lastNode = this.tail.prev as LRUNode<T>\n    // tail.prev is always non-null and always LRUNode when cache is not empty\n    this.removeNode(lastNode)\n    return lastNode\n  }\n\n  /**\n   * Sets a key-value pair in the cache.\n   * If the key exists, updates the value and moves to head.\n   * If new, adds at head and evicts from tail if necessary.\n   *\n   * Time Complexity:\n   * - O(1) for uniform item sizes\n   * - O(k) where k is the number of items evicted (can be O(N) for variable sizes)\n   */\n  public set(key: string, value: T): boolean {\n    const size = this.calculateSize?.(value, key) ?? 1\n    if (size <= 0) {\n      throw new Error(\n        `LRUCache: calculateSize returned ${size}, but size must be > 0. ` +\n          `Items with size 0 would never be evicted, causing unbounded cache growth.`\n      )\n    }\n    if (size > this.maxSize) {\n      console.warn('Single item size exceeds maxSize')\n      return false\n    }\n\n    const existing = this.cache.get(key)\n    if (existing) {\n      // Update existing node: adjust size and move to head (most recent)\n      existing.data = value\n      this.totalSize = this.totalSize - existing.size + size\n      existing.size = size\n      this.moveToHead(existing)\n    } else {\n      // Add new node at head (most recent position)\n      const newNode = new LRUNode(key, value, size)\n      this.cache.set(key, newNode)\n      this.addToHead(newNode)\n      this.totalSize += size\n    }\n\n    // Evict least recently used items until under capacity\n    while (this.totalSize > this.maxSize && this.cache.size > 0) {\n      const tail = this.removeTail()\n      this.cache.delete(tail.key)\n      this.totalSize -= tail.size\n      this.onEvict?.(tail.key, tail.data)\n    }\n\n    return true\n  }\n\n  /**\n   * Checks if a key exists in the cache.\n   * This is a pure query operation - does NOT update LRU order.\n   *\n   * Time Complexity: O(1)\n   */\n  public has(key: string): boolean {\n    return this.cache.has(key)\n  }\n\n  /**\n   * Retrieves a value by key and marks it as most recently used.\n   * Moving to head maintains the LRU property for future evictions.\n   *\n   * Time Complexity: O(1)\n   */\n  public get(key: string): T | undefined {\n    const node = this.cache.get(key)\n    if (!node) return undefined\n\n    // Mark as most recently used by moving to head\n    this.moveToHead(node)\n\n    return node.data\n  }\n\n  /**\n   * Returns an iterator over the cache entries. The order is outputted in the\n   * order of most recently used to least recently used.\n   */\n  public *[Symbol.iterator](): IterableIterator<[string, T]> {\n    let current = this.head.next\n    while (current && current !== this.tail) {\n      // Between head and tail, current is always LRUNode\n      const node = current as LRUNode<T>\n      yield [node.key, node.data]\n      current = current.next\n    }\n  }\n\n  /**\n   * Removes a specific key from the cache.\n   * Updates both the hash map and doubly-linked list.\n   *\n   * Note: This is an explicit removal and does NOT trigger the `onEvict`\n   * callback. Use this for intentional deletions where eviction tracking\n   * is not needed.\n   *\n   * Time Complexity: O(1)\n   */\n  public remove(key: string): void {\n    const node = this.cache.get(key)\n    if (!node) return\n\n    this.removeNode(node)\n    this.cache.delete(key)\n    this.totalSize -= node.size\n  }\n\n  /**\n   * Returns the number of items in the cache.\n   */\n  public get size(): number {\n    return this.cache.size\n  }\n\n  /**\n   * Returns the current total size of all cached items.\n   * This uses the custom size calculation if provided.\n   */\n  public get currentSize(): number {\n    return this.totalSize\n  }\n}\n","import type { SourceMap } from 'module'\nimport { LRUCache } from './lru-cache'\n\nfunction noSourceMap(): SourceMap | undefined {\n  return undefined\n}\n\n// Edge runtime does not implement `module`\nconst findSourceMap =\n  process.env.NEXT_RUNTIME === 'edge'\n    ? noSourceMap\n    : (require('module') as typeof import('module')).findSourceMap\n\n/**\n * https://tc39.es/source-map/#index-map\n */\ninterface IndexSourceMapSection {\n  offset: {\n    line: number\n    column: number\n  }\n  map: BasicSourceMapPayload\n}\n\n// TODO(veil): Upstream types\n/** https://tc39.es/ecma426/#sec-index-source-map */\ninterface IndexSourceMap {\n  version: number\n  file: string\n  sections: IndexSourceMapSection[]\n}\n\n/** https://tc39.es/ecma426/#sec-source-map-format */\nexport interface BasicSourceMapPayload {\n  version: number\n  // TODO: Move to https://github.com/jridgewell/sourcemaps which is actively maintained\n  /** WARNING: `file` is optional. */\n  file: string\n  sourceRoot?: string\n  // TODO: Move to https://github.com/jridgewell/sourcemaps which is actively maintained\n  /** WARNING: `sources[number]` can be `null`. */\n  sources: Array<string>\n  names: Array<string>\n  mappings: string\n  ignoreList?: number[]\n}\n\nexport type ModernSourceMapPayload = BasicSourceMapPayload | IndexSourceMap\n\n// `SourceMap#payload` deep-clones the payload on every access — expensive\n// for large chunk maps — so the clone is shared per `SourceMap` instance,\n// which Node.js memoizes per script.\nconst sourceMapPayloads = new WeakMap<SourceMap, ModernSourceMapPayload>()\n\n/**\n * Like `module.findSourceMap`, but returns the source map's payload without\n * cloning it on every call. Callers must not mutate the returned payload.\n * Throws like `module.findSourceMap` does on invalid source maps.\n */\nexport function findSourceMapPayload(\n  sourceURL: string\n): ModernSourceMapPayload | undefined {\n  const sourceMap = findSourceMap(sourceURL)\n  if (sourceMap === undefined) {\n    return undefined\n  }\n  let payload = sourceMapPayloads.get(sourceMap)\n  if (payload === undefined) {\n    payload = sourceMap.payload as ModernSourceMapPayload\n    sourceMapPayloads.set(sourceMap, payload)\n  }\n  return payload\n}\n\nexport function sourceMapIgnoreListsEverything(\n  sourceMap: BasicSourceMapPayload\n): boolean {\n  return (\n    sourceMap.ignoreList !== undefined &&\n    sourceMap.sources.length === sourceMap.ignoreList.length\n  )\n}\n\n/**\n * Finds the sourcemap payload applicable to a given frame.\n * Equal to the input unless an Index Source Map is used.\n * @param line0 - The line number of the frame, 0-based.\n * @param column0 - The column number of the frame, 0-based.\n */\nexport function findApplicableSourceMapPayload(\n  line0: number,\n  column0: number,\n  payload: ModernSourceMapPayload\n): BasicSourceMapPayload | undefined {\n  if ('sections' in payload) {\n    if (payload.sections.length === 0) {\n      return undefined\n    }\n\n    // Sections must not overlap and must be sorted: https://tc39.es/source-map/#section-object\n    // Therefore the last section that has an offset less than or equal to the frame is the applicable one.\n    const sections = payload.sections\n    let left = 0\n    let right = sections.length - 1\n    let result: IndexSourceMapSection | null = null\n\n    while (left <= right) {\n      // fast Math.floor\n      const middle = ~~((left + right) / 2)\n      const section = sections[middle]\n      const offset = section.offset\n\n      if (\n        offset.line < line0 ||\n        (offset.line === line0 && offset.column <= column0)\n      ) {\n        result = section\n        left = middle + 1\n      } else {\n        right = middle - 1\n      }\n    }\n\n    return result === null ? undefined : result.map\n  } else {\n    return payload\n  }\n}\n\nconst didWarnAboutInvalidSourceMapDEV = new Set<string>()\n\nexport function filterStackFrameDEV(\n  sourceURL: string,\n  functionName: string,\n  line1: number,\n  column1: number\n): boolean {\n  if (sourceURL === '') {\n    // The default implementation filters out <anonymous> stack frames\n    // but we want to retain them because current Server Components and\n    // built-in Components in parent stacks don't have source location.\n    // Filter out frames that show up in Promises to get good names in React's\n    // Server Request track until we come up with a better heuristic.\n    return functionName !== 'new Promise'\n  }\n  if (sourceURL.startsWith('node:') || sourceURL.includes('node_modules')) {\n    return false\n  }\n  try {\n    // Node.js loads source maps eagerly so this call is cheap.\n    // TODO: ESM sourcemaps are O(1) but CommonJS sourcemaps are O(Number of CJS modules).\n    // Make sure this doesn't adversely affect performance when CJS is used by Next.js.\n    const payload = findSourceMapPayload(sourceURL)\n    if (payload === undefined) {\n      // No source map associated.\n      return true\n    }\n    const sourceMapPayload = findApplicableSourceMapPayload(\n      line1 - 1,\n      column1 - 1,\n      payload\n    )\n    if (sourceMapPayload === undefined) {\n      // No source map section applicable to the frame.\n      return true\n    }\n    return !sourceMapIgnoreListsEverything(sourceMapPayload)\n  } catch (cause) {\n    if (process.env.NODE_ENV !== 'production') {\n      // TODO: Share cache with patch-error-inspect\n      if (!didWarnAboutInvalidSourceMapDEV.has(sourceURL)) {\n        didWarnAboutInvalidSourceMapDEV.add(sourceURL)\n        // We should not log an actual error instance here because that will re-enter\n        // this codepath during error inspection and could lead to infinite recursion.\n        console.error(\n          `${sourceURL}: Invalid source map. Only conformant source maps can be used to filter stack frames. Cause: ${cause}`\n        )\n      }\n    }\n\n    return true\n  }\n}\n\n// `scriptNameOrSourceURL` is what React forwards from the stack frame: the\n// script's `getScriptNameOrSourceURL()`, which for the server chunks we can\n// map is an absolute filesystem path, not a URL. The returned value is the\n// source map's URL (`file:` or `data:`).\ntype FindSourceMapURL = (scriptNameOrSourceURL: string) => string | null\n// Find the URL of a source map using the bundler's API.\n// Shared via `globalThis` because this module is compiled both into the server\n// runtime bundles (which call `findSourceMapURLDEV`) and into `next/dist/server`\n// (where the dev server registers the implementation), and each copy has its own\n// module state.\nconst bundlerFindSourceMapURLSymbol = Symbol.for(\n  'next.server.bundlerFindSourceMapURL'\n)\n\nexport function setBundlerFindSourceMapURLImplementation(\n  findSourceMapURLImplementation: FindSourceMapURL\n): void {\n  ;(globalThis as any)[bundlerFindSourceMapURLSymbol] =\n    findSourceMapURLImplementation\n}\n\nfunction bundlerFindSourceMapURL(scriptNameOrSourceURL: string): string | null {\n  const implementation: FindSourceMapURL | undefined = (globalThis as any)[\n    bundlerFindSourceMapURLSymbol\n  ]\n  return implementation === undefined\n    ? null\n    : implementation(scriptNameOrSourceURL)\n}\n\nconst invalidSourceMap = Symbol('invalid-source-map')\nconst sourceMapURLs = new LRUCache<string | typeof invalidSourceMap>(\n  512 * 1024 * 1024,\n  (url, sourceURL) =>\n    sourceURL.length +\n    (url === invalidSourceMap\n      ? // Guestimate a small source map so invalid entries don't fill the cache.\n        8 * 1024\n      : // these URLs contain only ASCII characters so .length is equal to Buffer.byteLength\n        url.length)\n)\nexport function findSourceMapURLDEV(\n  scriptNameOrSourceURL: string\n): string | null {\n  try {\n    const bundlerSourceMapURL = bundlerFindSourceMapURL(scriptNameOrSourceURL)\n    if (bundlerSourceMapURL !== null) {\n      return bundlerSourceMapURL\n    }\n  } catch (cause) {\n    console.error(\n      `${scriptNameOrSourceURL}: Failed to find the source map URL. Cause: ${cause}`\n    )\n  }\n\n  // No bundler implementation (e.g. Webpack): inline the source map Node.js\n  // knows as a `data:` URL.\n  let sourceMapURL = sourceMapURLs.get(scriptNameOrSourceURL)\n  if (sourceMapURL === undefined) {\n    let sourceMapPayload: ModernSourceMapPayload | undefined\n    try {\n      sourceMapPayload = findSourceMapPayload(scriptNameOrSourceURL)\n    } catch (cause) {\n      console.error(\n        `${scriptNameOrSourceURL}: Invalid source map. Only conformant source maps can be used to find the original code. Cause: ${cause}`\n      )\n    }\n\n    if (sourceMapPayload === undefined) {\n      sourceMapURL = invalidSourceMap\n    } else {\n      // TODO: Might be more efficient to extract the relevant section from Index Maps.\n      // Unclear if that search is worth the smaller payload we have to stringify.\n      const sourceMapJSON = JSON.stringify(sourceMapPayload)\n      const sourceMapURLData = Buffer.from(sourceMapJSON, 'utf8').toString(\n        'base64'\n      )\n      sourceMapURL = `data:application/json;base64,${sourceMapURLData}`\n    }\n\n    sourceMapURLs.set(scriptNameOrSourceURL, sourceMapURL)\n  }\n\n  return sourceMapURL === invalidSourceMap ? null : sourceMapURL\n}\n\nexport function devirtualizeReactServerURL(sourceURL: string): string {\n  if (sourceURL.startsWith('about://React/')) {\n    // about://React/Server/file://<filename>?42 => file://<filename>\n    const envIdx = sourceURL.indexOf('/', 'about://React/'.length)\n    const suffixIdx = sourceURL.lastIndexOf('?')\n    if (envIdx > -1 && suffixIdx > -1) {\n      return decodeURI(sourceURL.slice(envIdx + 1, suffixIdx))\n    }\n  }\n  return sourceURL\n}\n\nfunction isAnonymousFrameLikelyJSNative(methodName: string): boolean {\n  // Anonymous frames can also be produced in React parent stacks either from\n  // host components or Server Components. We don't want to ignore those.\n  // This could hide user-space methods that are named like native JS methods but\n  // should you really do that?\n  return (\n    // e.g. JSON.parse\n    methodName.startsWith('JSON.') ||\n    // E.g. Promise.withResolves\n    methodName.startsWith('Function.') ||\n    // various JS built-ins\n    methodName.startsWith('Promise.') ||\n    methodName.startsWith('Array.') ||\n    methodName.startsWith('Set.') ||\n    methodName.startsWith('Map.')\n  )\n}\n\nexport function ignoreListAnonymousStackFramesIfSandwiched<Frame>(\n  frames: Frame[],\n  isAnonymousFrame: (frame: Frame) => boolean,\n  isIgnoredFrame: (frame: Frame) => boolean,\n  getMethodName: (frame: Frame) => string,\n  /** only passes frames for which `isAnonymousFrame` and their method is a native JS method or `isIgnoredFrame` return true */\n  ignoreFrame: (frame: Frame) => void\n): void {\n  for (let i = 1; i < frames.length; i++) {\n    const currentFrame = frames[i]\n    if (\n      !(\n        isAnonymousFrame(currentFrame) &&\n        isAnonymousFrameLikelyJSNative(getMethodName(currentFrame))\n      )\n    ) {\n      continue\n    }\n\n    const previousFrameIsIgnored = isIgnoredFrame(frames[i - 1])\n    if (previousFrameIsIgnored && i < frames.length - 1) {\n      let ignoreSandwich = false\n      let j = i + 1\n      for (j; j < frames.length; j++) {\n        const nextFrame = frames[j]\n        const nextFrameIsAnonymous =\n          isAnonymousFrame(nextFrame) &&\n          isAnonymousFrameLikelyJSNative(getMethodName(nextFrame))\n        if (nextFrameIsAnonymous) {\n          continue\n        }\n\n        const nextFrameIsIgnored = isIgnoredFrame(nextFrame)\n        if (nextFrameIsIgnored) {\n          ignoreSandwich = true\n          break\n        }\n      }\n\n      if (ignoreSandwich) {\n        for (i; i < j; i++) {\n          ignoreFrame(frames[i])\n        }\n      }\n    }\n  }\n}\n","import { parse } from 'next/dist/compiled/stacktrace-parser'\n\nconst regexNextStatic = /\\/_next(\\/static\\/.+)/\n\nexport interface StackFrame {\n  file: string | null\n  methodName: string\n  arguments: string[]\n  /** 1-based */\n  line1: number | null\n  /** 1-based */\n  column1: number | null\n}\n\nexport function parseStack(\n  stack: string,\n  distDir = process.env.__NEXT_DIST_DIR\n): StackFrame[] {\n  if (!stack) return []\n\n  // throw away eval information that stacktrace-parser doesn't support\n  // adapted from https://github.com/stacktracejs/error-stack-parser/blob/9f33c224b5d7b607755eb277f9d51fcdb7287e24/error-stack-parser.js#L59C33-L59C62\n  stack = stack\n    .split('\\n')\n    .map((line) => {\n      if (line.includes('(eval ')) {\n        line = line\n          .replace(/eval code/g, 'eval')\n          .replace(/\\(eval at [^()]* \\(/, '(file://')\n          .replace(/\\),.*$/g, ')')\n      }\n\n      return line\n    })\n    .join('\\n')\n\n  const frames = parse(stack)\n  return frames.map((frame) => {\n    try {\n      const url = new URL(frame.file!)\n      const res = regexNextStatic.exec(url.pathname)\n      if (res) {\n        const effectiveDistDir = distDir\n          ?.replace(/\\\\/g, '/')\n          ?.replace(/\\/$/, '')\n        if (effectiveDistDir) {\n          frame.file =\n            'file://' + effectiveDistDir.concat(res.pop()!) + url.search\n        }\n      }\n    } catch {}\n    return {\n      file: frame.file,\n      line1: frame.lineNumber,\n      column1: frame.column,\n      methodName: frame.methodName,\n      arguments: frame.arguments,\n    }\n  })\n}\n","import { patchErrorInspectNodeJS } from '../patch-error-inspect'\n\npatchErrorInspectNodeJS(globalThis.Error)\n","import fs from 'fs'\nimport path from 'path'\n\nexport interface LogEntry {\n  timestamp: string\n  source: 'Server' | 'Browser'\n  level: string\n  message: string\n}\n\n// Logging server and browser logs to a file\nexport class FileLogger {\n  private logFilePath: string = ''\n  private isInitialized: boolean = false\n  private logQueue: string[] = []\n  private flushTimer: NodeJS.Timeout | null = null\n  private mcpServerEnabled: boolean = false\n\n  public initialize(distDir: string, mcpServerEnabled: boolean): void {\n    this.logFilePath = path.join(distDir, 'logs', `next-development.log`)\n    this.mcpServerEnabled = mcpServerEnabled\n\n    if (this.isInitialized) {\n      return\n    }\n\n    // Only initialize if mcpServer is enabled\n    if (!this.mcpServerEnabled) {\n      return\n    }\n\n    try {\n      // Clean up the log file on each initialization\n      // ensure the directory exists\n      fs.mkdirSync(path.dirname(this.logFilePath), { recursive: true })\n      fs.writeFileSync(this.logFilePath, '')\n      this.isInitialized = true\n    } catch (error) {\n      console.error(error)\n    }\n  }\n\n  private formatTimestamp(): string {\n    // Use performance.now() instead of Date.now() for avoid sync IO of cache components\n    const now = performance.now()\n    const hours = Math.floor(now / 3600000)\n      .toString()\n      .padStart(2, '0')\n    const minutes = Math.floor((now % 3600000) / 60000)\n      .toString()\n      .padStart(2, '0')\n    const seconds = Math.floor((now % 60000) / 1000)\n      .toString()\n      .padStart(2, '0')\n    const milliseconds = Math.floor(now % 1000)\n      .toString()\n      .padStart(3, '0')\n    return `${hours}:${minutes}:${seconds}.${milliseconds}`\n  }\n\n  private formatLogEntry(entry: LogEntry): string {\n    const { timestamp, source, level, message } = entry\n    return JSON.stringify({ timestamp, source, level, message }) + '\\n'\n  }\n\n  private scheduleFlush(): void {\n    // Debounce the flush\n    if (this.flushTimer) {\n      clearTimeout(this.flushTimer)\n      this.flushTimer = null\n    }\n\n    // Delay the log flush to ensure more logs can be batched together asynchronously\n    this.flushTimer = setTimeout(() => {\n      this.flush()\n    }, 100)\n  }\n\n  public getLogQueue(): string[] {\n    return this.logQueue\n  }\n\n  public isEnabled(): boolean {\n    return this.mcpServerEnabled && this.isInitialized\n  }\n\n  private flush(): void {\n    if (this.logQueue.length === 0) {\n      return\n    }\n\n    // Only flush to disk if mcpServer is enabled\n    if (!this.mcpServerEnabled) {\n      this.logQueue.length = 0 // Clear the queue without GC overhead\n      this.flushTimer = null\n      return\n    }\n\n    try {\n      // Ensure the directory exists before writing\n      const logDir = path.dirname(this.logFilePath)\n      if (!fs.existsSync(logDir)) {\n        fs.mkdirSync(logDir, { recursive: true })\n      }\n\n      const logsToWrite = this.logQueue.join('')\n      // Writing logs to files synchronously to ensure they're written before returning\n      fs.appendFileSync(this.logFilePath, logsToWrite)\n      this.logQueue.length = 0 // Clear the queue without GC overhead\n    } catch (error) {\n      console.error('Failed to flush logs to file:', error)\n    } finally {\n      this.flushTimer = null\n    }\n  }\n\n  private enqueueLog(formattedEntry: string): void {\n    this.logQueue.push(formattedEntry)\n\n    // Cancel existing timer and start a new one to ensure all logs are flushed together\n    if (this.flushTimer) {\n      clearTimeout(this.flushTimer)\n      this.flushTimer = null\n    }\n\n    this.scheduleFlush()\n  }\n\n  log(source: 'Server' | 'Browser', level: string, message: string): void {\n    // Don't log anything if mcpServer is disabled\n    if (!this.isEnabled()) {\n      return\n    }\n\n    const logEntry: LogEntry = {\n      timestamp: this.formatTimestamp(),\n      source,\n      level,\n      message,\n    }\n\n    const formattedEntry = this.formatLogEntry(logEntry)\n    this.enqueueLog(formattedEntry)\n  }\n\n  logServer(level: string, message: string): void {\n    this.log('Server', level, message)\n  }\n\n  logBrowser(level: string, message: string): void {\n    this.log('Browser', level, message)\n  }\n\n  // Force flush all queued logs immediately\n  forceFlush(): void {\n    if (this.flushTimer) {\n      clearTimeout(this.flushTimer)\n      this.flushTimer = null\n    }\n    this.flush()\n  }\n\n  // Cleanup method to flush logs on process exit\n  destroy(): void {\n    this.forceFlush()\n  }\n}\n\n// Singleton instance\nlet fileLogger: FileLogger | null = null\n\nexport function getFileLogger(): FileLogger {\n  if (!fileLogger || process.env.NODE_ENV === 'test') {\n    fileLogger = new FileLogger()\n  }\n  return fileLogger\n}\n\n// Only used for testing\nexport function test__resetFileLogger(): void {\n  if (fileLogger) {\n    fileLogger.destroy()\n  }\n  fileLogger = null\n}\n","import isError from '../../lib/is-error'\n\nfunction formatObject(arg: unknown, depth: number) {\n  switch (typeof arg) {\n    case 'object':\n      if (arg === null) {\n        return 'null'\n      } else if (Array.isArray(arg)) {\n        let result = '['\n        if (depth < 1) {\n          for (let i = 0; i < arg.length; i++) {\n            if (result !== '[') {\n              result += ','\n            }\n            if (Object.prototype.hasOwnProperty.call(arg, i)) {\n              result += formatObject(arg[i], depth + 1)\n            }\n          }\n        } else {\n          result += arg.length > 0 ? '...' : ''\n        }\n        result += ']'\n        return result\n      } else if (arg instanceof Error) {\n        return arg + ''\n      } else {\n        const keys = Object.keys(arg)\n        let result = '{'\n        if (depth < 1) {\n          for (let i = 0; i < keys.length; i++) {\n            const key = keys[i]\n            const desc = Object.getOwnPropertyDescriptor(arg, 'key')\n            if (desc && !desc.get && !desc.set) {\n              const jsonKey = JSON.stringify(key)\n              if (jsonKey !== '\"' + key + '\"') {\n                result += jsonKey + ': '\n              } else {\n                result += key + ': '\n              }\n              result += formatObject(desc.value, depth + 1)\n            }\n          }\n        } else {\n          result += keys.length > 0 ? '...' : ''\n        }\n        result += '}'\n        return result\n      }\n    case 'string':\n      return JSON.stringify(arg)\n    case 'number':\n    case 'bigint':\n    case 'boolean':\n    case 'symbol':\n    case 'undefined':\n    case 'function':\n    default:\n      return String(arg)\n  }\n}\n\nexport function formatConsoleArgs(args: unknown[]): string {\n  let message: string\n  let idx: number\n  if (typeof args[0] === 'string') {\n    message = args[0]\n    idx = 1\n  } else {\n    message = ''\n    idx = 0\n  }\n  let result = ''\n  let startQuote = false\n  for (let i = 0; i < message.length; ++i) {\n    const char = message[i]\n    if (char !== '%' || i === message.length - 1 || idx >= args.length) {\n      result += char\n      continue\n    }\n\n    const code = message[++i]\n    switch (code) {\n      case 'c': {\n        // TODO: We should colorize with HTML instead of turning into a string.\n        // Ignore for now.\n        result = startQuote ? `${result}]` : `[${result}`\n        startQuote = !startQuote\n        idx++\n        break\n      }\n      case 'O':\n      case 'o': {\n        result += formatObject(args[idx++], 0)\n        break\n      }\n      case 'd':\n      case 'i': {\n        result += parseInt(args[idx++] as any, 10)\n        break\n      }\n      case 'f': {\n        result += parseFloat(args[idx++] as any)\n        break\n      }\n      case 's': {\n        result += String(args[idx++])\n        break\n      }\n      default:\n        result += '%' + code\n    }\n  }\n\n  for (; idx < args.length; idx++) {\n    result += (idx > 0 ? ' ' : '') + formatObject(args[idx], 0)\n  }\n\n  return result\n}\n\nexport function parseConsoleArgs(args: unknown[]): {\n  environmentName: string | null\n  error: Error | null\n} {\n  // See\n  // https://github.com/facebook/react/blob/65a56d0e99261481c721334a3ec4561d173594cd/packages/react-devtools-shared/src/backend/flight/renderer.js#L88-L93\n  //\n  // Logs replayed from the server look like this:\n  // [\n  //   \"%c%s%c%o\\n\\n%s\\n\\n%s\\n\",\n  //   \"background: #e6e6e6; ...\",\n  //   \" Server \", // can also be e.g. \" Prerender \"\n  //   \"\",\n  //   Error,\n  //   \"The above error occurred in the <Page> component.\",\n  //   ...\n  // ]\n  if (\n    args.length > 3 &&\n    typeof args[0] === 'string' &&\n    args[0].startsWith('%c%s%c') &&\n    typeof args[1] === 'string' &&\n    typeof args[2] === 'string' &&\n    typeof args[3] === 'string'\n  ) {\n    const environmentName = args[2]\n    const maybeError = args[4]\n\n    return {\n      environmentName: environmentName.trim(),\n      error: isError(maybeError) ? maybeError : null,\n    }\n  }\n\n  return {\n    environmentName: null,\n    error: null,\n  }\n}\n","import { consoleAsyncStorage } from '../app-render/console-async-storage.external'\nimport { getFileLogger } from '../dev/browser-logs/file-logger'\nimport { formatConsoleArgs } from '../../client/lib/console'\n\ntype InterceptableConsoleMethod =\n  | 'error'\n  | 'assert'\n  | 'debug'\n  | 'dir'\n  | 'dirxml'\n  | 'group'\n  | 'groupCollapsed'\n  | 'groupEnd'\n  | 'info'\n  | 'log'\n  | 'table'\n  | 'trace'\n  | 'warn'\n\n// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248\nfunction patchConsoleMethodDEV(methodName: InterceptableConsoleMethod): void {\n  const descriptor = Object.getOwnPropertyDescriptor(console, methodName)\n  if (\n    descriptor &&\n    (descriptor.configurable || descriptor.writable) &&\n    typeof descriptor.value === 'function'\n  ) {\n    const originalMethod = descriptor.value\n    const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n    const wrapperMethod = function (this: typeof console, ...args: any[]) {\n      const consoleStore = consoleAsyncStorage.getStore()\n\n      if (consoleStore?.dim === true) {\n        // In this context the log args are already dimmed. We use the console store\n        // to decide if this log is ignorable for reporting in our file logger.\n        return originalMethod.apply(this, args)\n      } else {\n        const ret = originalMethod.apply(this, args)\n\n        const fileLogger = getFileLogger()\n        const message = formatConsoleArgs(args)\n        // Strip ANSI escape codes for file logging\n        // eslint-disable-next-line no-control-regex\n        const ansiEscapeRegex = new RegExp('\\u001b\\\\[[0-9;]*m', 'g')\n        const cleanMessage = message.replace(ansiEscapeRegex, '')\n        fileLogger.logServer(methodName.toUpperCase(), cleanMessage)\n        return ret\n      }\n    }\n    if (originalName) {\n      Object.defineProperty(wrapperMethod, 'name', originalName)\n    }\n    Object.defineProperty(console, methodName, {\n      value: wrapperMethod,\n    })\n  }\n}\n\nif (process.env.NODE_ENV === 'development') {\n  patchConsoleMethodDEV('error')\n  patchConsoleMethodDEV('assert')\n  patchConsoleMethodDEV('debug')\n  patchConsoleMethodDEV('dir')\n  patchConsoleMethodDEV('dirxml')\n  patchConsoleMethodDEV('group')\n  patchConsoleMethodDEV('groupCollapsed')\n  patchConsoleMethodDEV('groupEnd')\n  patchConsoleMethodDEV('info')\n  patchConsoleMethodDEV('log')\n  patchConsoleMethodDEV('table')\n  patchConsoleMethodDEV('trace')\n  patchConsoleMethodDEV('warn')\n}\n","/**\n * Patches console methods to exit the workUnitAsyncStorage so that inside the host implementation\n * sync IO can be called. This is relevant for example with runtimes that patch console methods to\n * prepend a timestamp to the log output.\n *\n * Note that this will only exit for already installed patched console methods. If you further patch\n * the console method after this and add any sync IO there it will trigger sync IO warnings while prerendering.\n *\n * This is a pragmatic concession because layering the patches if you install your own log implementation\n * after they are installed is very tricky to do correctly because the order matters\n */\n\nimport { workUnitAsyncStorage } from '../app-render/work-unit-async-storage.external'\n\ntype ConsoleMethodName = keyof Console\n\nfunction patchConsoleMethod(methodName: ConsoleMethodName): void {\n  const descriptor = Object.getOwnPropertyDescriptor(console, methodName)\n  if (\n    descriptor &&\n    (descriptor.configurable || descriptor.writable) &&\n    typeof descriptor.value === 'function'\n  ) {\n    const originalMethod = descriptor.value\n    const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n    let wrapperMethod = function (...args: any[]) {\n      return workUnitAsyncStorage.exit(() =>\n        originalMethod.apply(console, args)\n      )\n    }\n    if (originalName) {\n      Object.defineProperty(wrapperMethod, 'name', originalName)\n    }\n    Object.defineProperty(console, methodName, {\n      value: wrapperMethod,\n    })\n  }\n}\n\n// We patch the same methods that React and our dev patch do.\n// We may find other methods that could benefit from patching but if\n// they exist we ought to consider patching them in all three places\npatchConsoleMethod('error')\npatchConsoleMethod('assert')\npatchConsoleMethod('debug')\npatchConsoleMethod('dir')\npatchConsoleMethod('dirxml')\npatchConsoleMethod('group')\npatchConsoleMethod('groupCollapsed')\npatchConsoleMethod('groupEnd')\npatchConsoleMethod('info')\npatchConsoleMethod('log')\npatchConsoleMethod('table')\npatchConsoleMethod('trace')\npatchConsoleMethod('warn')\n","export class InvariantError extends Error {\n  constructor(message: string, options?: ErrorOptions) {\n    super(\n      `Invariant: ${message.endsWith('.') ? message : message + '.'} This is a bug in Next.js.`,\n      options\n    )\n    this.name = 'InvariantError'\n  }\n}\n","import {\n  RenderStage,\n  type AdvanceableRenderStage,\n} from './app-render/staged-rendering'\nimport type {\n  RequestStore,\n  WorkUnitStore,\n} from './app-render/work-unit-async-storage.external'\nimport { workUnitAsyncStorage } from './app-render/work-unit-async-storage.external'\nimport { getServerReact, getClientReact } from './runtime-reacts.external'\n\nexport function isHangingPromiseRejectionError(\n  err: unknown\n): err is HangingPromiseRejectionError {\n  if (typeof err !== 'object' || err === null || !('digest' in err)) {\n    return false\n  }\n\n  return err.digest === HANGING_PROMISE_REJECTION\n}\n\nconst HANGING_PROMISE_REJECTION = 'HANGING_PROMISE_REJECTION'\n\nclass HangingPromiseRejectionError extends Error {\n  public readonly digest = HANGING_PROMISE_REJECTION\n\n  constructor(\n    public readonly route: string,\n    public readonly expression: string\n  ) {\n    super(\n      `During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \\`setTimeout\\`, \\`after\\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route \"${route}\".`\n    )\n  }\n}\n\nconst CLIENT_HOOK_DYNAMIC = 'CLIENT_HOOK_DYNAMIC'\n\nexport class ClientHookDynamicError extends Error {\n  public readonly digest = CLIENT_HOOK_DYNAMIC\n\n  constructor(route: string, expression: string) {\n    super(\n      `Route \"${route}\": Next.js encountered URL data \\`${expression}\\` in a Client Component outside of \\`<Suspense>\\`.\\n\\n` +\n        `This blocks prerendering because the value is only available at runtime.\\n\\n` +\n        `Ways to fix this:\\n` +\n        `  - [stream] Wrap the component in \\`<Suspense fallback={...}>\\` so the hook value streams in after prerendering\\n` +\n        `  - [block] Set \\`export const instant = false\\` to allow a blocking route\\n\\n` +\n        `Learn more: https://nextjs.org/docs/messages/blocking-prerender-client-hook`\n    )\n  }\n}\n\nexport function isClientHookDynamicError(\n  err: unknown\n): err is ClientHookDynamicError {\n  if (typeof err !== 'object' || err === null || !('digest' in err)) {\n    return false\n  }\n\n  return err.digest === CLIENT_HOOK_DYNAMIC\n}\n\ntype AbortListeners = Array<() => void>\nconst abortListenersBySignal = new WeakMap<AbortSignal, AbortListeners>()\n\n/**\n * Constructs a promise that never resolves, standing in for *dynamic* data:\n * data that is only available during a real dynamic request and hangs in\n * every kind of prerender — `io()`, `connection()`, uncached `fetch()`.\n *\n * This is primarily useful for cacheComponents where we use promise\n * resolution timing to determine which parts of a render can be included in a\n * prerender.\n *\n * Records nothing on the prerender store: the promise's holes are only ever\n * filled by a real dynamic request, so a runtime prefetch response would have\n * the same holes as the static one. If the data source would resolve during a\n * runtime prerender, use `makeRuntimeHangingPromise` instead.\n *\n * @internal\n */\nexport function makeDynamicHangingPromise<T>(\n  signal: AbortSignal,\n  route: string,\n  expression: string\n): Promise<T> {\n  return makeHangingPromiseWithError(\n    signal,\n    new HangingPromiseRejectionError(route, expression)\n  )\n}\n\nexport function makeUntrackedHangingPromise<T>(\n  signal: AbortSignal,\n  route: string,\n  expression: string\n): Promise<T> {\n  return makeHangingPromiseWithError(\n    signal,\n    new HangingPromiseRejectionError(route, expression)\n  )\n}\n\n/**\n * Constructs a promise that never resolves, standing in for *runtime* data:\n * data that hangs during a static prerender but is available during a runtime\n * prerender (the kind that backs a runtime prefetch request: request data\n * like cookies and headers is available, but the render is still not a real\n * dynamic request). Examples: cookies, headers, fallback params,\n * searchParams, and cache entries that are excluded only from static\n * prerenders.\n *\n * Creating one of these during a static prerender records on the prerender\n * store that a runtime prefetch would produce more content than the static\n * response (`runtimeDataAccessed`), which the segment prefetch encoding uses\n * to tell the client whether a runtime prefetch request could be skipped.\n *\n * When unsure whether data is dynamic or runtime, prefer this method — the\n * cost of over-recording is a redundant runtime prefetch request; the cost of\n * under-recording is a permanently missing one.\n *\n * `workUnitStore` may be null ONLY when the caller tracks the access itself\n * at observation time instead of creation time. This is for promises the\n * framework creates eagerly whether or not anything reads them (e.g. the\n * `searchParams` prop constructed for every page): recording at creation\n * would mark every render. Such a caller MUST call `trackRuntimeDataAccessed`\n * from every path that observes the promise (e.g. the proxy traps for\n * `then`/`status`), against the work unit store active at access time.\n *\n * For fallback-param data — data a concrete (ISR-upgraded) prerender would\n * resolve — use `makeFallbackParamsHangingPromise` instead, so the access\n * is recorded with the right effect on the static-prefetch hint.\n *\n * @internal\n */\nexport function makeRuntimeHangingPromise<T>(\n  signal: AbortSignal,\n  route: string,\n  expression: string,\n  workUnitStore: WorkUnitStore | null\n): Promise<T> {\n  if (workUnitStore !== null) {\n    trackRuntimeDataAccessed(workUnitStore)\n  }\n  return makeHangingPromiseWithError(\n    signal,\n    new HangingPromiseRejectionError(route, expression)\n  )\n}\n\n/**\n * Variant of `makeRuntimeHangingPromise` for *fallback-param* data: fallback\n * route params and values derived solely from them (`params`, `rootParams`,\n * `pathname` during a fallback prerender). Like every runtime data access it\n * records the access on the prerender store's response-level flag, but its\n * effect on the build-time static-prefetch hint differs — on a\n * fallback-upgradeable route the access is transient (a concrete prerender\n * resolves it), so it leaves the hint intact. See\n * `trackFallbackParamsAccessed`.\n *\n * As with `makeRuntimeHangingPromise`, `workUnitStore` may be null ONLY when\n * the caller tracks the access itself at observation time instead of creation\n * time, by calling `trackFallbackParamsAccessed` from every path that\n * observes the promise.\n *\n * @internal\n */\nexport function makeFallbackParamsHangingPromise<T>(\n  signal: AbortSignal,\n  route: string,\n  expression: string,\n  workUnitStore: WorkUnitStore | null\n): Promise<T> {\n  if (workUnitStore !== null) {\n    trackFallbackParamsAccessed(workUnitStore)\n  }\n  return makeHangingPromiseWithError(\n    signal,\n    new HangingPromiseRejectionError(route, expression)\n  )\n}\n\n/**\n * Constructs a promise that never resolves, standing in for data that is only\n * accessible in a later *stage* of rendering than this render reaches — e.g.\n * a prefetchable short-stale cache entry that's excluded from shells when the\n * render ends at the shell stage, or params during a runtime-prefetch render\n * that stops before the stage where params resolve.\n *\n * A render that runs through the later stage would include the data; in\n * particular a runtime prefetch renders through its later stages, so on a\n * static prerender store this records `runtimeDataAccessed`, same as\n * `makeRuntimeHangingPromise`.\n *\n * @internal\n */\nexport function makeStageHangingPromise<T>(\n  signal: AbortSignal,\n  route: string,\n  expression: string,\n  workUnitStore: WorkUnitStore\n): Promise<T> {\n  trackRuntimeDataAccessed(workUnitStore)\n  return makeHangingPromiseWithError(\n    signal,\n    new HangingPromiseRejectionError(route, expression)\n  )\n}\n\n/**\n * Records on a static prerender store that the render accessed a data source\n * which would have resolved during a runtime prerender. No-op for all other\n * store types.\n *\n * `makeRuntimeHangingPromise` and `makeStageHangingPromise` call this\n * automatically; call it directly only where the access is observed\n * separately from the promise's creation (see the null `workUnitStore` case\n * of `makeRuntimeHangingPromise`), or where the prerender is aborted\n * synchronously instead of hanging.\n *\n * For fallback-param data, use `trackFallbackParamsAccessed` instead. When\n * unsure, this is the conservative choice: it unconditionally clears the\n * static-prefetch hint.\n */\nexport function trackRuntimeDataAccessed(workUnitStore: WorkUnitStore): void {\n  trackRuntimeDataAccessedImpl(workUnitStore, false)\n}\n\n/**\n * Fallback-param variant of `trackRuntimeDataAccessed`, for accesses of\n * fallback route params and values derived solely from them. It records the\n * response-level flag all the same, but only clears the build-time\n * static-prefetch hint when the route is not fallback-upgradeable — on an\n * upgradeable route the access is transient, since ISR later produces a\n * concrete prerender that resolves it.\n */\nexport function trackFallbackParamsAccessed(\n  workUnitStore: WorkUnitStore\n): void {\n  trackRuntimeDataAccessedImpl(workUnitStore, true)\n}\n\nfunction trackRuntimeDataAccessedImpl(\n  workUnitStore: WorkUnitStore,\n  isFallbackParamAccess: boolean\n): void {\n  switch (workUnitStore.type) {\n    case 'prerender': {\n      // Response-level flag (the payload's `u`, forwarded to segment\n      // responses as `needsRuntimeRequest`): resolved for every kind of\n      // access — a pre-upgrade fallback response must keep reporting that\n      // a runtime request would return more. The fulfillment row lands at\n      // the current position in the Flight stream, which is what makes the\n      // value rewindable per stage. Promise resolution is idempotent, so\n      // repeated accesses are free.\n      workUnitStore.runtimeDataAccessed?.resolve(true)\n\n      // Hint cell (holds the build-constant\n      // PrefetchHint.ShouldAttemptStaticPrefetch value directly): a\n      // fallback-param access is transient when the route is\n      // fallback-upgradeable — ISR later produces the concrete prerender a\n      // static prefetch attempt would hit — so it leaves the hint intact.\n      // (Until that upgrade, the response-level flag above keeps directing\n      // the client to a runtime fallback; the hint only costs a wasted\n      // static attempt in the interim.) Every other access clears it.\n      const hintCell = workUnitStore.shouldAttemptStaticPrefetch\n      if (\n        hintCell !== null &&\n        (!isFallbackParamAccess || !workUnitStore.isFallbackUpgradeable)\n      ) {\n        hintCell.current = false\n      }\n      break\n    }\n    case 'prerender-client':\n    case 'prerender-ppr':\n    case 'prerender-legacy':\n    case 'prerender-runtime':\n    case 'validation-client':\n    case 'request':\n    case 'cache':\n    case 'private-cache':\n    case 'unstable-cache':\n    case 'generate-static-params':\n      // Only the modern server prerender tracks this; see the field docs on\n      // PrerenderStoreModernServer.\n      break\n    default:\n      workUnitStore satisfies never\n  }\n}\n\nexport function makeClientHookHangingPromise<T>(\n  signal: AbortSignal,\n  error: ClientHookDynamicError\n): Promise<T> {\n  return makeHangingPromiseWithError(signal, error)\n}\n\nfunction makeHangingPromiseWithError<T>(\n  signal: AbortSignal,\n  error: Error\n): Promise<T> {\n  if (signal.aborted) {\n    return Promise.reject(error)\n  } else {\n    const hangingPromise = new Promise<T>((_, reject) => {\n      const boundRejection = reject.bind(null, error)\n      let currentListeners = abortListenersBySignal.get(signal)\n      if (currentListeners) {\n        currentListeners.push(boundRejection)\n      } else {\n        const listeners = [boundRejection]\n        abortListenersBySignal.set(signal, listeners)\n        signal.addEventListener(\n          'abort',\n          () => {\n            for (let i = 0; i < listeners.length; i++) {\n              listeners[i]()\n            }\n          },\n          { once: true }\n        )\n      }\n    })\n    // We are fine if no one actually awaits this promise. We shouldn't consider this an unhandled rejection so\n    // we attach a noop catch handler here to suppress this warning. If you actually await somewhere or construct\n    // your own promise out of it you'll need to ensure you handle the error when it rejects.\n    hangingPromise.catch(ignoreReject)\n    return hangingPromise\n  }\n}\n\nfunction ignoreReject() {}\n\n/**\n * Creates a promise that will be triggered when another promise resolves.\n * It will not emit unhandled rejections, which is important if the trigger\n * is a promise that might itself get rejected (e.g. when a prerender/render\n * are aborted due to sync IO)\n */\nexport function makePromiseFromTrigger<T>(\n  trigger: Promise<any>,\n  value: T\n): Promise<T> {\n  const promise = trigger.then(() => value)\n  promise.catch(ignoreReject)\n  return promise\n}\n\nexport function makeDevtoolsIOAwarePromise<T>(\n  underlying: T,\n  requestStore: RequestStore,\n  stage: AdvanceableRenderStage\n): Promise<T> {\n  if (requestStore.stagedRendering) {\n    // We resolve each stage in a timeout, so React DevTools will pick this up as IO.\n    return requestStore.stagedRendering.delayUntilStage(\n      stage,\n      undefined,\n      underlying\n    )\n  }\n  // in React DevTools if we resolve in a setTimeout we will observe\n  // the promise resolution as something that can suspend a boundary or root.\n  return new Promise<T>((resolve) => {\n    // Must use setTimeout to be considered IO React DevTools. setImmediate will not work.\n    setTimeout(() => {\n      resolve(underlying)\n    }, 0)\n  })\n}\n\nexport const RENDER_STAGES_BY_DATA_KIND = {\n  sessionData: RenderStage.ShellRuntime as const,\n  staticLinkData: RenderStage.Static as const,\n  runtimeLinkData: RenderStage.Runtime as const,\n}\n\nexport function applyOwnerStack(error: Error): Error {\n  if (process.env.NODE_ENV !== 'production') {\n    let ownerStack: string | undefined | null\n    const workUnitStore = workUnitAsyncStorage.getStore()\n\n    // captureOwnerStack() returns the owner stack for the current React\n    // rendering context. Inside a cache scope this only includes the inner\n    // component tree. The outer owner stack (captured before entering the\n    // cache boundary in use-cache-wrapper.ts) is stored on the cache store.\n    // We concatenate both to get the full component tree.\n    const innerOwnerStack =\n      getClientReact()?.captureOwnerStack?.() ??\n      getServerReact()?.captureOwnerStack?.()\n\n    switch (workUnitStore?.type) {\n      case 'cache':\n      case 'private-cache':\n        ownerStack =\n          (innerOwnerStack || '') + (workUnitStore.outerOwnerStack || '') ||\n          undefined\n        break\n      case 'unstable-cache':\n      case 'request':\n      case 'prerender':\n      case 'prerender-ppr':\n      case 'prerender-legacy':\n      case 'prerender-runtime':\n      case 'prerender-client':\n      case 'validation-client':\n      case 'generate-static-params':\n      case undefined:\n        ownerStack = innerOwnerStack\n        break\n      default:\n        workUnitStore satisfies never\n    }\n\n    if (ownerStack) {\n      let stack = ownerStack\n\n      if (error.stack) {\n        const frames: string[] = []\n\n        for (const frame of error.stack.split('\\n').slice(1)) {\n          if (frame.includes('react_stack_bottom_frame')) {\n            break\n          }\n\n          frames.push(frame)\n        }\n\n        stack = '\\n' + frames.join('\\n') + stack\n      }\n\n      error.stack = error.name + ': ' + error.message + stack\n    }\n  }\n\n  return error\n}\n","/**\n * The functions provided by this module are used to communicate certain properties\n * about the currently running code so that Next.js can make decisions on how to handle\n * the current execution in different rendering modes such as pre-rendering, resuming, and SSR.\n *\n * Today Next.js treats all code as potentially static. Certain APIs may only make sense when dynamically rendering.\n * Traditionally this meant deopting the entire render to dynamic however with PPR we can now deopt parts\n * of a React tree as dynamic while still keeping other parts static. There are really two different kinds of\n * Dynamic indications.\n *\n * The first is simply an intention to be dynamic. unstable_noStore is an example of this where\n * the currently executing code simply declares that the current scope is dynamic but if you use it\n * inside unstable_cache it can still be cached. This type of indication can be removed if we ever\n * make the default dynamic to begin with because the only way you would ever be static is inside\n * a cache scope which this indication does not affect.\n *\n * The second is an indication that a dynamic data source was read. This is a stronger form of dynamic\n * because it means that it is inappropriate to cache this at all. using a dynamic data source inside\n * unstable_cache should error. If you want to use some dynamic data inside unstable_cache you should\n * read that data outside the cache and pass it in as an argument to the cached function.\n */\n\nimport type { WorkStore } from '../app-render/work-async-storage.external'\nimport type {\n  WorkUnitStore,\n  PrerenderStoreLegacy,\n  PrerenderStoreModern,\n  ValidationStoreClient,\n  PrerenderStoreModernServer,\n} from '../app-render/work-unit-async-storage.external'\n\n// Once postpone is in stable we should switch to importing the postpone export directly\nimport React from 'react'\n\nimport { DynamicServerError } from '../../client/components/hooks-server-context'\nimport { StaticGenBailoutError } from '../../client/components/static-generation-bailout'\nimport {\n  getStagedRenderingController,\n  throwForMissingRequestStore,\n  workUnitAsyncStorage,\n} from './work-unit-async-storage.external'\nimport { workAsyncStorage } from '../app-render/work-async-storage.external'\nimport {\n  ClientHookDynamicError,\n  isClientHookDynamicError,\n  makeClientHookHangingPromise,\n  trackRuntimeDataAccessed,\n} from '../dynamic-rendering-utils'\nimport {\n  METADATA_BOUNDARY_NAME,\n  VIEWPORT_BOUNDARY_NAME,\n  OUTLET_BOUNDARY_NAME,\n  ROOT_LAYOUT_BOUNDARY_NAME,\n} from '../../lib/framework/boundary-constants'\nimport { scheduleOnNextTick } from '../../lib/scheduler'\nimport { BailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'\nimport {\n  createRuntimeBodyError,\n  createDynamicBodyError,\n  createRuntimeBodyErrorInNavigation,\n  createDynamicBodyErrorInNavigation,\n  createDynamicOrRuntimeBodyError,\n  createRuntimeMetadataError,\n  createDynamicMetadataError,\n  createRuntimeViewportError,\n  createDynamicViewportError,\n  createDynamicOrRuntimeViewportError,\n  createDynamicOrRuntimeMetadataError,\n  logBuildDebugHint,\n  createLinkBodyErrorInNavigation,\n  createLinkMetadataError,\n  createLinkViewportError,\n} from './blocking-route-messages'\nimport { InvariantError } from '../../shared/lib/invariant-error'\nimport {\n  INSTANT_VALIDATION_BOUNDARY_NAME,\n  INSTANT_SLOT_MARKER_PREFIX,\n  INSTANT_SLOT_MARKER_SUFFIX,\n} from './instant-validation/boundary-constants'\nimport {\n  type ValidationBoundaryTracking,\n  allRequiredBoundariesRendered,\n} from './instant-validation/boundary-tracking'\nimport type { InstantValidationSampleTracking } from './instant-validation/instant-samples'\nimport { createUnrenderedSegmentError } from '../../shared/lib/instant-messages'\n\nconst hasPostpone = typeof React.unstable_postpone === 'function'\n\nexport type DynamicAccess = {\n  /**\n   * If debugging, this will contain the stack trace of where the dynamic access\n   * occurred. This is used to provide more information to the user about why\n   * their page is being rendered dynamically.\n   */\n  stack?: string\n\n  /**\n   * The expression that was accessed dynamically.\n   */\n  expression: string\n}\n\n// Stores dynamic reasons used during an RSC render.\nexport type DynamicTrackingState = {\n  /**\n   * When true, stack information will also be tracked during dynamic access.\n   */\n  readonly isDebugDynamicAccesses: boolean | undefined\n\n  /**\n   * The dynamic accesses that occurred during the render.\n   */\n  readonly dynamicAccesses: Array<DynamicAccess>\n\n  syncDynamicErrorWithStack: null | Error\n  syncDynamicErrorWithStackPostMicrotask: boolean\n}\n\n// Stores dynamic reasons used during an SSR render.\nexport type DynamicValidationState = {\n  hasSuspenseAboveBody: boolean\n  hasDynamicMetadata: boolean\n  dynamicMetadata: null | Error\n  hasDynamicViewport: boolean\n  hasAllowedDynamic: boolean\n  dynamicErrors: Array<Error>\n}\n\nexport function createDynamicTrackingState(\n  isDebugDynamicAccesses: boolean | undefined\n): DynamicTrackingState {\n  return {\n    isDebugDynamicAccesses,\n    dynamicAccesses: [],\n    syncDynamicErrorWithStack: null,\n    syncDynamicErrorWithStackPostMicrotask: false,\n  }\n}\n\nexport function createDynamicValidationState(): DynamicValidationState {\n  return {\n    hasSuspenseAboveBody: false,\n    hasDynamicMetadata: false,\n    dynamicMetadata: null,\n    hasDynamicViewport: false,\n    hasAllowedDynamic: false,\n    dynamicErrors: [],\n  }\n}\n\nfunction getPendingClientSyncDynamicError(\n  clientDynamic: DynamicTrackingState\n): null | Error {\n  return clientDynamic.syncDynamicErrorWithStackPostMicrotask\n    ? null\n    : clientDynamic.syncDynamicErrorWithStack\n}\n\nexport function getFirstDynamicReason(\n  trackingState: DynamicTrackingState\n): undefined | string {\n  return trackingState.dynamicAccesses[0]?.expression\n}\n\n/**\n * This function communicates that the current scope should be treated as dynamic.\n *\n * In most cases this function is a no-op but if called during\n * a PPR prerender it will postpone the current sub-tree and calling\n * it during a normal prerender will cause the entire prerender to abort\n */\nexport function markCurrentScopeAsDynamic(\n  store: WorkStore,\n  workUnitStore: undefined | Exclude<WorkUnitStore, PrerenderStoreModern>,\n  expression: string\n): void {\n  if (workUnitStore) {\n    switch (workUnitStore.type) {\n      case 'cache':\n      case 'unstable-cache':\n        // Inside cache scopes, marking a scope as dynamic has no effect,\n        // because the outer cache scope creates a cache boundary. This is\n        // subtly different from reading a dynamic data source, which is\n        // forbidden inside a cache scope.\n        return\n      case 'private-cache':\n        // A private cache scope is already dynamic by definition.\n        return\n      case 'prerender-legacy':\n      case 'prerender-ppr':\n      case 'request':\n      case 'generate-static-params':\n        break\n      default:\n        workUnitStore satisfies never\n    }\n  }\n\n  // If we're forcing dynamic rendering or we're forcing static rendering, we\n  // don't need to do anything here because the entire page is already dynamic\n  // or it's static and it should not throw or postpone here.\n  if (store.forceDynamic || store.forceStatic) return\n\n  if (store.dynamicShouldError) {\n    throw new StaticGenBailoutError(\n      `Route ${store.route} with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`${expression}\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`\n    )\n  }\n\n  if (workUnitStore) {\n    switch (workUnitStore.type) {\n      case 'prerender-ppr':\n        return postponeWithTracking(\n          store.route,\n          expression,\n          workUnitStore.dynamicTracking\n        )\n      case 'prerender-legacy':\n        workUnitStore.revalidate = 0\n\n        // We aren't prerendering, but we are generating a static page. We need\n        // to bail out of static generation.\n        const err = new DynamicServerError(\n          `Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`\n        )\n        store.dynamicUsageDescription = expression\n        store.dynamicUsageStack = err.stack\n\n        throw err\n      case 'request':\n        if (process.env.NODE_ENV !== 'production') {\n          workUnitStore.usedDynamic = true\n        }\n        break\n      case 'generate-static-params':\n        break\n      default:\n        workUnitStore satisfies never\n    }\n  }\n}\n\n/**\n * This function is meant to be used when prerendering without cacheComponents or PPR.\n * When called during a build it will cause Next.js to consider the route as dynamic.\n *\n * @internal\n */\nexport function throwToInterruptStaticGeneration(\n  expression: string,\n  store: WorkStore,\n  prerenderStore: PrerenderStoreLegacy\n): never {\n  // We aren't prerendering but we are generating a static page. We need to bail out of static generation\n  const err = new DynamicServerError(\n    `Route ${store.route} couldn't be rendered statically because it used \\`${expression}\\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`\n  )\n\n  prerenderStore.revalidate = 0\n\n  store.dynamicUsageDescription = expression\n  store.dynamicUsageStack = err.stack\n\n  throw err\n}\n\n/**\n * This function should be used to track whether something dynamic happened even when\n * we are in a dynamic render. This is useful for Dev where all renders are dynamic but\n * we still track whether dynamic APIs were accessed for helpful messaging\n *\n * @internal\n */\nexport function trackDynamicDataInDynamicRender(workUnitStore: WorkUnitStore) {\n  switch (workUnitStore.type) {\n    case 'cache':\n    case 'unstable-cache':\n      // Inside cache scopes, marking a scope as dynamic has no effect,\n      // because the outer cache scope creates a cache boundary. This is\n      // subtly different from reading a dynamic data source, which is\n      // forbidden inside a cache scope.\n      return\n    case 'private-cache':\n      // A private cache scope is already dynamic by definition.\n      return\n    case 'prerender':\n    case 'prerender-runtime':\n    case 'prerender-legacy':\n    case 'prerender-ppr':\n    case 'prerender-client':\n    case 'validation-client':\n    case 'generate-static-params':\n      break\n    case 'request':\n      if (process.env.NODE_ENV !== 'production') {\n        workUnitStore.usedDynamic = true\n      }\n      break\n    default:\n      workUnitStore satisfies never\n  }\n}\n\nfunction abortOnSynchronousDynamicDataAccess(\n  route: string,\n  expression: string,\n  prerenderStore: PrerenderStoreModern\n): void {\n  const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`\n\n  const error = createPrerenderInterruptedError(reason)\n\n  prerenderStore.controller.abort(error)\n\n  const dynamicTracking = prerenderStore.dynamicTracking\n  if (dynamicTracking) {\n    dynamicTracking.dynamicAccesses.push({\n      // When we aren't debugging, we don't need to create another error for the\n      // stack trace.\n      stack: dynamicTracking.isDebugDynamicAccesses\n        ? new Error().stack\n        : undefined,\n      expression,\n    })\n  }\n}\n\nexport function abortOnSynchronousPlatformIOAccess(\n  route: string,\n  expression: string,\n  errorWithStack: Error,\n  prerenderStore: PrerenderStoreModern\n): void {\n  const dynamicTracking = prerenderStore.dynamicTracking\n\n  if (dynamicTracking && dynamicTracking.syncDynamicErrorWithStack === null) {\n    dynamicTracking.syncDynamicErrorWithStack = errorWithStack\n    // React completes the task that is currently rendering before scheduled\n    // abort cleanup. Client tracking can attribute the sync IO only during\n    // that current task; server tracking keeps the error regardless.\n    queueMicrotask(() => {\n      dynamicTracking.syncDynamicErrorWithStackPostMicrotask = true\n    })\n  }\n\n  abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore)\n}\n\n/**\n * use this function when prerendering with cacheComponents. If we are doing a\n * prospective prerender we don't actually abort because we want to discover\n * all caches for the shell. If this is the actual prerender we do abort.\n *\n * This function accepts a prerenderStore but the caller should ensure we're\n * actually running in cacheComponents mode.\n *\n * @internal\n */\nexport function abortAndThrowOnSynchronousRequestDataAccess(\n  route: string,\n  expression: string,\n  errorWithStack: Error,\n  prerenderStore: PrerenderStoreModern\n): never {\n  // The synchronously accessed request data would have been available during\n  // a runtime prerender, which would have rendered past this point instead of\n  // aborting — so a runtime prefetch would produce more content than this\n  // render. Record that, same as when request data access creates a hanging\n  // promise (see makeRuntimeHangingPromise). Unlike\n  // `abortOnSynchronousPlatformIOAccess`, which aborts a runtime prerender\n  // all the same and therefore must not record anything.\n  trackRuntimeDataAccessed(prerenderStore)\n\n  const prerenderSignal = prerenderStore.controller.signal\n  if (prerenderSignal.aborted === false) {\n    // TODO it would be better to move this aborted check into the callsite so we can avoid making\n    // the error object when it isn't relevant to the aborting of the prerender however\n    // since we need the throw semantics regardless of whether we abort it is easier to land\n    // this way. See how this was handled with `abortOnSynchronousPlatformIOAccess` for a closer\n    // to ideal implementation\n    abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore)\n    // Preserve the exact server-side dynamic access for final validation after\n    // interrupting this render.\n    const dynamicTracking = prerenderStore.dynamicTracking\n    if (dynamicTracking) {\n      if (dynamicTracking.syncDynamicErrorWithStack === null) {\n        dynamicTracking.syncDynamicErrorWithStack = errorWithStack\n      }\n    }\n  }\n  throw createPrerenderInterruptedError(\n    `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`\n  )\n}\n\n/**\n * This component will call `React.postpone` that throws the postponed error.\n */\ntype PostponeProps = {\n  reason: string\n  route: string\n}\nexport function Postpone({ reason, route }: PostponeProps): never {\n  const prerenderStore = workUnitAsyncStorage.getStore()\n  const dynamicTracking =\n    prerenderStore && prerenderStore.type === 'prerender-ppr'\n      ? prerenderStore.dynamicTracking\n      : null\n  postponeWithTracking(route, reason, dynamicTracking)\n}\n\nexport function postponeWithTracking(\n  route: string,\n  expression: string,\n  dynamicTracking: null | DynamicTrackingState\n): never {\n  assertPostpone()\n  if (dynamicTracking) {\n    dynamicTracking.dynamicAccesses.push({\n      // When we aren't debugging, we don't need to create another error for the\n      // stack trace.\n      stack: dynamicTracking.isDebugDynamicAccesses\n        ? new Error().stack\n        : undefined,\n      expression,\n    })\n  }\n\n  React.unstable_postpone(createPostponeReason(route, expression))\n}\n\nfunction createPostponeReason(route: string, expression: string) {\n  return (\n    `Route ${route} needs to bail out of prerendering at this point because it used ${expression}. ` +\n    `React throws this special object to indicate where. It should not be caught by ` +\n    `your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`\n  )\n}\n\nexport function isDynamicPostpone(err: unknown) {\n  if (\n    typeof err === 'object' &&\n    err !== null &&\n    typeof (err as any).message === 'string'\n  ) {\n    return isDynamicPostponeReason((err as any).message)\n  }\n  return false\n}\n\nfunction isDynamicPostponeReason(reason: string) {\n  return (\n    reason.includes(\n      'needs to bail out of prerendering at this point because it used'\n    ) &&\n    reason.includes(\n      'Learn more: https://nextjs.org/docs/messages/ppr-caught-error'\n    )\n  )\n}\n\nif (isDynamicPostponeReason(createPostponeReason('%%%', '^^^')) === false) {\n  throw new Error(\n    'Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js'\n  )\n}\n\nconst NEXT_PRERENDER_INTERRUPTED = 'NEXT_PRERENDER_INTERRUPTED'\n\nfunction createPrerenderInterruptedError(message: string): Error {\n  const error = new Error(message)\n  ;(error as any).digest = NEXT_PRERENDER_INTERRUPTED\n  return error\n}\n\ntype DigestError = Error & {\n  digest: string\n}\n\nexport function isPrerenderInterruptedError(\n  error: unknown\n): error is DigestError {\n  return (\n    typeof error === 'object' &&\n    error !== null &&\n    (error as any).digest === NEXT_PRERENDER_INTERRUPTED &&\n    'name' in error &&\n    'message' in error &&\n    error instanceof Error\n  )\n}\n\nexport function accessedDynamicData(\n  dynamicAccesses: Array<DynamicAccess>\n): boolean {\n  return dynamicAccesses.length > 0\n}\n\nexport function consumeDynamicAccess(\n  serverDynamic: DynamicTrackingState,\n  clientDynamic: DynamicTrackingState\n): DynamicTrackingState['dynamicAccesses'] {\n  // We mutate because we only call this once we are no longer writing\n  // to the dynamicTrackingState and it's more efficient than creating a new\n  // array.\n  serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses)\n  return serverDynamic.dynamicAccesses\n}\n\nexport function formatDynamicAPIAccesses(\n  dynamicAccesses: Array<DynamicAccess>\n): string[] {\n  return dynamicAccesses\n    .filter(\n      (access): access is Required<DynamicAccess> =>\n        typeof access.stack === 'string' && access.stack.length > 0\n    )\n    .map(({ expression, stack }) => {\n      stack = stack\n        .split('\\n')\n        // Remove the \"Error: \" prefix from the first line of the stack trace as\n        // well as the first 4 lines of the stack trace which is the distance\n        // from the user code and the `new Error().stack` call.\n        .slice(4)\n        .filter((line) => {\n          // Exclude Next.js internals from the stack trace.\n          if (line.includes('node_modules/next/')) {\n            return false\n          }\n\n          // Exclude anonymous functions from the stack trace.\n          if (line.includes(' (<anonymous>)')) {\n            return false\n          }\n\n          // Exclude Node.js internals from the stack trace.\n          if (line.includes(' (node:')) {\n            return false\n          }\n\n          return true\n        })\n        .join('\\n')\n      return `Dynamic API Usage Debug - ${expression}:\\n${stack}`\n    })\n}\n\nfunction assertPostpone() {\n  if (!hasPostpone) {\n    throw new Error(\n      `Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`\n    )\n  }\n}\n\n/**\n * This is a bit of a hack to allow us to abort a render using a Postpone instance instead of an Error which changes React's\n * abort semantics slightly.\n */\nexport function createRenderInBrowserAbortSignal(): AbortSignal {\n  const controller = new AbortController()\n  controller.abort(new BailoutToCSRError('Render in Browser'))\n  return controller.signal\n}\n\n/**\n * In a prerender, we may end up with hanging Promises as inputs due them\n * stalling on connection() or because they're loading dynamic data. In that\n * case we need to abort the encoding of arguments since they'll never complete.\n */\nexport function createHangingInputAbortSignal(\n  workUnitStore: PrerenderStoreModernServer\n): AbortSignal\nexport function createHangingInputAbortSignal(\n  workUnitStore: WorkUnitStore\n): AbortSignal | undefined\nexport function createHangingInputAbortSignal(\n  workUnitStore: WorkUnitStore\n): AbortSignal | undefined {\n  switch (workUnitStore.type) {\n    case 'prerender':\n    case 'prerender-runtime':\n      const controller = new AbortController()\n\n      if (workUnitStore.cacheSignal) {\n        // If we have a cacheSignal it means we're in a prospective render. If\n        // the input we're waiting on is coming from another cache, we do want\n        // to wait for it so that we can resolve this cache entry too.\n        workUnitStore.cacheSignal.inputReady().then(() => {\n          controller.abort()\n        })\n      } else {\n        // Otherwise we're in the final render and we should already have all\n        // our caches filled.\n        // If the prerender uses stages, we have wait until the final stage.\n        // if an input didn't resolve at that point, then we can assume it never will.\n        //\n        // We might still be waiting on some microtasks so we\n        // wait one tick before giving up. When we give up, we still want to\n        // render the content of this cache as deeply as we can so that we can\n        // suspend as deeply as possible in the tree or not at all if we don't\n        // end up waiting for the input.\n\n        const stagedRendering = getStagedRenderingController(workUnitStore)\n        if (stagedRendering && stagedRendering.finalStage !== null) {\n          stagedRendering\n            .waitForStage(stagedRendering.finalStage)\n            .then(() => scheduleOnNextTick(() => controller.abort()), noop)\n        } else {\n          scheduleOnNextTick(() => controller.abort())\n        }\n      }\n\n      return controller.signal\n    case 'prerender-client':\n    case 'validation-client':\n    case 'prerender-ppr':\n    case 'prerender-legacy':\n    case 'request':\n    case 'cache':\n    case 'private-cache':\n    case 'unstable-cache':\n    case 'generate-static-params':\n      return undefined\n    default:\n      workUnitStore satisfies never\n  }\n}\n\nfunction noop() {}\n\nexport function annotateDynamicAccess(\n  expression: string,\n  prerenderStore: PrerenderStoreModern | ValidationStoreClient\n) {\n  const dynamicTracking = prerenderStore.dynamicTracking\n  if (dynamicTracking) {\n    dynamicTracking.dynamicAccesses.push({\n      stack: dynamicTracking.isDebugDynamicAccesses\n        ? new Error().stack\n        : undefined,\n      expression,\n    })\n  }\n}\n\nexport function useDynamicRouteParams(expression: string) {\n  const workStore = workAsyncStorage.getStore()\n  const workUnitStore = workUnitAsyncStorage.getStore()\n  if (workStore && workUnitStore) {\n    switch (workUnitStore.type) {\n      case 'prerender-client': {\n        const fallbackParams = workUnitStore.fallbackRouteParams\n\n        if (fallbackParams && fallbackParams.size > 0) {\n          // We are in a prerender with cacheComponents semantics. We are going to\n          // hang here and never resolve. This will cause the currently\n          // rendering component to effectively be a dynamic hole.\n          React.use(\n            makeClientHookHangingPromise(\n              workUnitStore.renderSignal,\n              new ClientHookDynamicError(workStore.route, expression)\n            )\n          )\n        }\n        break\n      }\n      case 'prerender':\n        throw new InvariantError(\n          `\\`${expression}\\` was called from a Server Component. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`\n        )\n      case 'prerender-ppr': {\n        const fallbackParams = workUnitStore.fallbackRouteParams\n        if (fallbackParams && fallbackParams.size > 0) {\n          return postponeWithTracking(\n            workStore.route,\n            expression,\n            workUnitStore.dynamicTracking\n          )\n        }\n        break\n      }\n      case 'validation-client': {\n        // Don't check fallbackRouteParams here. We handle params that weren't\n        // provided in the samples using a proxy that throws when accessed.\n        break\n      }\n      case 'prerender-runtime':\n        throw new InvariantError(\n          `\\`${expression}\\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`\n        )\n      case 'cache':\n      case 'private-cache':\n        throw new InvariantError(\n          `\\`${expression}\\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`\n        )\n      case 'generate-static-params':\n        throw new InvariantError(\n          `\\`${expression}\\` was called in \\`generateStaticParams\\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`\n        )\n      case 'prerender-legacy':\n      case 'request':\n      case 'unstable-cache':\n        break\n      default:\n        workUnitStore satisfies never\n    }\n  }\n}\n\nexport function useDynamicSearchParams(expression: string) {\n  const workStore = workAsyncStorage.getStore()\n  const workUnitStore = workUnitAsyncStorage.getStore()\n\n  if (!workStore) {\n    // We assume pages router context and just return\n    return\n  }\n\n  if (!workUnitStore) {\n    throwForMissingRequestStore(expression)\n  }\n\n  switch (workUnitStore.type) {\n    case 'validation-client':\n      // During instant validation we try to behave as close to client as possible,\n      // so this shouldn't hang during SSR.\n      return\n    case 'prerender-client': {\n      React.use(\n        makeClientHookHangingPromise(\n          workUnitStore.renderSignal,\n          new ClientHookDynamicError(workStore.route, expression)\n        )\n      )\n      break\n    }\n    case 'prerender-legacy':\n    case 'prerender-ppr': {\n      if (workStore.forceStatic) {\n        return\n      }\n      throw new BailoutToCSRError(expression)\n    }\n    case 'prerender':\n    case 'prerender-runtime':\n      throw new InvariantError(\n        `\\`${expression}\\` was called from a Server Component. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`\n      )\n    case 'cache':\n    case 'unstable-cache':\n    case 'private-cache':\n      throw new InvariantError(\n        `\\`${expression}\\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`\n      )\n    case 'generate-static-params':\n      throw new InvariantError(\n        `\\`${expression}\\` was called in \\`generateStaticParams\\`. Next.js should be preventing ${expression} from being included in server component files statically, but did not in this case.`\n      )\n    case 'request':\n      return\n    default:\n      workUnitStore satisfies never\n  }\n}\n\nconst hasSuspenseRegex = /\\n\\s+at Suspense \\(<anonymous>\\)/\n\n// Common implicit body tags that React will treat as body when placed directly in html\nconst bodyAndImplicitTags =\n  'body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6'\n\n// Detects when RootLayoutBoundary (our framework marker component) appears\n// after Suspense in the component stack, indicating the root layout is wrapped\n// within a Suspense boundary. Ensures no body/html/implicit-body components are in between.\n//\n// Example matches:\n//   at Suspense (<anonymous>)\n//   at __next_root_layout_boundary__ (<anonymous>)\n//\n// Or with other components in between (but not body/html/implicit-body):\n//   at Suspense (<anonymous>)\n//   at SomeComponent (<anonymous>)\n//   at __next_root_layout_boundary__ (<anonymous>)\nconst hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex = new RegExp(\n  `\\\\n\\\\s+at Suspense \\\\(<anonymous>\\\\)(?:(?!\\\\n\\\\s+at (?:${bodyAndImplicitTags}) \\\\(<anonymous>\\\\))[\\\\s\\\\S])*?\\\\n\\\\s+at ${ROOT_LAYOUT_BOUNDARY_NAME} \\\\([^\\\\n]*\\\\)`\n)\n\nconst hasMetadataRegex = new RegExp(\n  `\\\\n\\\\s+at ${METADATA_BOUNDARY_NAME}[\\\\n\\\\s]`\n)\nconst hasViewportRegex = new RegExp(\n  `\\\\n\\\\s+at ${VIEWPORT_BOUNDARY_NAME}[\\\\n\\\\s]`\n)\nconst hasOutletRegex = new RegExp(`\\\\n\\\\s+at ${OUTLET_BOUNDARY_NAME}[\\\\n\\\\s]`)\n\nconst hasInstantValidationBoundaryRegex = new RegExp(\n  `\\\\n\\\\s+at ${INSTANT_VALIDATION_BOUNDARY_NAME}[\\\\n\\\\s]`\n)\nconst slotMarkerRegex = new RegExp(\n  `\\\\n\\\\s+at ${INSTANT_SLOT_MARKER_PREFIX}(\\\\d+)${INSTANT_SLOT_MARKER_SUFFIX}[\\\\n\\\\s]`\n)\n\n/** Look up the config factory for the slot this error belongs to.\n * Checks the component stack for a slot marker (__next_instant_slot_N__)\n * and returns the config at that index. Falls back to index 0 (root\n * config) when no slot marker is found or the slot has no config. */\nfunction resolveInstantStack(\n  componentStack: string,\n  dynamicValidation: InstantValidationState\n): (() => Error) | null {\n  const { slotStacks } = dynamicValidation\n  if (slotStacks.length > 1) {\n    const match = slotMarkerRegex.exec(componentStack)\n    if (match) {\n      // Slot markers are 0-indexed in the component name but\n      // slotStacks is 1-indexed (index 0 is the root config).\n      const slotIndex = parseInt(match[1], 10) + 1\n      const slotStack = slotStacks[slotIndex]\n      if (slotStack != null) {\n        return slotStack\n      }\n    }\n  }\n  // Fall back to root config (index 0)\n  return slotStacks[0] ?? null\n}\n\n/**\n * Inspects the component stack of an outlet boundary to discover whether the\n * user placed a Suspense boundary above the document body, and records the\n * opt-in on `dynamicValidation.hasSuspenseAboveBody` if so.\n *\n * The outlet itself isn't a meaningful source of dynamic — it only resolves\n * when metadata/viewport are dynamic, which we track via their own boundaries.\n * However, the outlet renders alongside the page content, so its stack passes\n * through the user's layout chain (typically reaching into `<body>` via the\n * root layout). That makes the outlet stack our best opportunity to spot a\n * Suspense boundary above the body, even when no real body content is dynamic.\n * Without this, a route whose only dynamic source is `generateViewport()` would\n * miss the Suspense-above-body opt-in, because the viewport's stack lives in\n * the head and never sees the user's root layout.\n *\n * We deliberately only set `hasSuspenseAboveBody`, not `hasAllowedDynamic`. The\n * latter tracks whether the body has dynamic content that's been wrapped in\n * Suspense (i.e., the page is partially dynamic). The outlet rendering tells us\n * about the structural opt-in for an empty shell, not about the body being\n * partially dynamic. The distinction matters because dynamic metadata is only\n * acceptable when the page is partially dynamic (via real body holes), and we\n * don't want this outlet-based detection to mask that case.\n */\nfunction trackOutletSuspenseAboveBody(\n  componentStack: string,\n  dynamicValidation: DynamicValidationState\n): void {\n  if (\n    hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(\n      componentStack\n    )\n  ) {\n    dynamicValidation.hasSuspenseAboveBody = true\n  }\n}\n\nexport function trackAllowedDynamicAccess(\n  dynamicReason: unknown,\n  workStore: WorkStore,\n  componentStack: string,\n  dynamicValidation: DynamicValidationState,\n  clientDynamic: DynamicTrackingState\n) {\n  const syncDynamicError = getPendingClientSyncDynamicError(clientDynamic)\n\n  if (hasOutletRegex.test(componentStack)) {\n    trackOutletSuspenseAboveBody(componentStack, dynamicValidation)\n    return\n  } else if (hasMetadataRegex.test(componentStack)) {\n    dynamicValidation.hasDynamicMetadata = true\n    return\n  } else if (hasViewportRegex.test(componentStack)) {\n    dynamicValidation.hasDynamicViewport = true\n    return\n  } else if (\n    hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(\n      componentStack\n    )\n  ) {\n    // For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.\n    // But if you have Suspense above body, the prelude is empty but we allow that because having Suspense\n    // is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.\n    dynamicValidation.hasAllowedDynamic = true\n    dynamicValidation.hasSuspenseAboveBody = true\n    return\n  } else if (hasSuspenseRegex.test(componentStack)) {\n    // this error had a Suspense boundary above it so we don't need to report it as a source\n    // of disallowed\n    dynamicValidation.hasAllowedDynamic = true\n    return\n  } else if (syncDynamicError) {\n    dynamicValidation.dynamicErrors.push(syncDynamicError)\n    return\n  }\n\n  if (isClientHookDynamicError(dynamicReason)) {\n    dynamicValidation.dynamicErrors.push(\n      addErrorContext(dynamicReason, componentStack, null)\n    )\n    return\n  }\n\n  const error = addErrorContext(\n    createDynamicOrRuntimeBodyError(workStore.route),\n    componentStack,\n    null\n  )\n  dynamicValidation.dynamicErrors.push(error)\n  return\n}\n\nexport enum DynamicHoleKind {\n  /** We know that this hole is caused by link data. */\n  Link = 1,\n  /** We know that this hole is caused by runtime data. */\n  Runtime = 2,\n  /** We know that this hole is caused by dynamic data. */\n  Dynamic = 3,\n}\n\n/** Stores dynamic reasons used during an SSR render in instant validation. */\nexport type InstantValidationState = {\n  hasDynamicMetadata: boolean\n  hasAllowedClientDynamicAboveBoundary: boolean\n  dynamicMetadata: null | Error\n  hasDynamicViewport: boolean\n  hasAllowedDynamic: boolean\n  dynamicErrors: Array<Error>\n  validationPreventingErrors: Array<Error>\n  thrownErrorsOutsideBoundary: Array<unknown>\n  /** Per-slot config factories. Index 0 is the root config (fallback).\n   * Indices 1+ correspond to slot marker components in the tree. */\n  slotStacks: Array<(() => Error) | null>\n}\n\nexport function createInstantValidationState(\n  slotStacks: Array<(() => Error) | null>\n): InstantValidationState {\n  return {\n    hasDynamicMetadata: false,\n    hasAllowedClientDynamicAboveBoundary: false,\n    dynamicMetadata: null,\n    hasDynamicViewport: false,\n    hasAllowedDynamic: false,\n    dynamicErrors: [],\n    validationPreventingErrors: [],\n    thrownErrorsOutsideBoundary: [],\n    slotStacks,\n  }\n}\n\nexport function trackDynamicHoleInNavigation(\n  dynamicReason: unknown,\n  workStore: WorkStore,\n  componentStack: string,\n  dynamicValidation: InstantValidationState,\n  clientDynamic: DynamicTrackingState,\n  kind: DynamicHoleKind,\n  boundaryState: ValidationBoundaryTracking\n) {\n  const syncDynamicError = getPendingClientSyncDynamicError(clientDynamic)\n\n  if (hasOutletRegex.test(componentStack)) {\n    // We don't need to track that this is dynamic. It is only so when something else is also dynamic.\n    return\n  }\n  // Resolve the config stack for this specific error. If the error\n  // is inside a slot marker, use that slot's config. Otherwise fall\n  // back to the default.\n  const effectiveCreateInstantStack = resolveInstantStack(\n    componentStack,\n    dynamicValidation\n  )\n\n  if (hasMetadataRegex.test(componentStack)) {\n    const error = addErrorContext(\n      kind === DynamicHoleKind.Link\n        ? createLinkMetadataError(workStore.route)\n        : kind === DynamicHoleKind.Runtime\n          ? createRuntimeMetadataError(workStore.route)\n          : createDynamicMetadataError(workStore.route),\n      componentStack,\n      effectiveCreateInstantStack\n    )\n    dynamicValidation.dynamicMetadata = error\n    return\n  }\n  if (hasViewportRegex.test(componentStack)) {\n    const error = addErrorContext(\n      kind === DynamicHoleKind.Link\n        ? createLinkViewportError(workStore.route)\n        : kind === DynamicHoleKind.Runtime\n          ? createRuntimeViewportError(workStore.route)\n          : createDynamicViewportError(workStore.route),\n      componentStack,\n      effectiveCreateInstantStack\n    )\n    dynamicValidation.dynamicErrors.push(error)\n    return\n  }\n\n  const boundaryLocation =\n    hasInstantValidationBoundaryRegex.exec(componentStack)\n  if (!boundaryLocation) {\n    // We don't see the validation boundary in the component stack,\n    // so this hole must be coming from a shared parent.\n    // Shared parents are fully resolved and don't have RSC holes,\n    // but they can still suspend in a client component during SSR.\n\n    // If we managed to render all the validation boundaries, that means\n    // that the client holes aren't blocking validation and we can disregard them.\n    // Note that we don't even care whether they have suspense or not.\n    if (allRequiredBoundariesRendered(boundaryState)) {\n      dynamicValidation.hasAllowedClientDynamicAboveBoundary = true\n      dynamicValidation.hasAllowedDynamic = true // Holes outside the boundary contribute to allowing dynamic metadata\n      return\n    } else {\n      // TODO(instant-validation) TODO(NAR-787)\n      // If shared parents blocked us from validating, we should only log\n      // the errors from the innermost (segments), i.e. omit layouts whose\n      // slots managed to render (because clearly they didn't block validation)\n      const message = `Route \"${workStore.route}\": Could not validate \\`instant\\` because a Client Component in a parent segment prevented the page from rendering.`\n      const error = addErrorContext(\n        new Error(message),\n        componentStack,\n        effectiveCreateInstantStack\n      )\n      dynamicValidation.validationPreventingErrors.push(error)\n      return\n    }\n  } else {\n    // The hole originates inside the validation boundary.\n    //\n    // Check if we have a Suspense above the hole, but below the validation boundary.\n    // If we do, then this dynamic usage wouldn't block a navigation to this subtree.\n    // Conversely, if the nearest suspense is above the validation boundary, then this subtree would block.\n    //\n    // Note that in the component stack, children come before parents.\n    //\n    // Valid:\n    //   ...\n    //   at Suspense\n    //   ...\n    //   at __next_prefetch_validation_boundary__\n    //\n    // Invalid:\n    //   ...\n    //   at __next_prefetch_validation_boundary__\n    //   ...\n    //   at Suspense\n    //\n    const suspenseLocation = hasSuspenseRegex.exec(componentStack)\n    if (suspenseLocation) {\n      if (suspenseLocation.index < boundaryLocation.index) {\n        dynamicValidation.hasAllowedDynamic = true\n        return\n      } else {\n        // invalid - fallthrough\n      }\n    }\n  }\n\n  if (syncDynamicError) {\n    if (\n      effectiveCreateInstantStack !== null &&\n      syncDynamicError.cause === undefined\n    ) {\n      syncDynamicError.cause = effectiveCreateInstantStack()\n    }\n    dynamicValidation.dynamicErrors.push(syncDynamicError)\n    return\n  }\n\n  if (isClientHookDynamicError(dynamicReason)) {\n    dynamicValidation.dynamicErrors.push(\n      addErrorContext(\n        dynamicReason,\n        componentStack,\n        effectiveCreateInstantStack\n      )\n    )\n    return\n  }\n\n  const error = addErrorContext(\n    kind === DynamicHoleKind.Link\n      ? createLinkBodyErrorInNavigation(workStore.route)\n      : kind === DynamicHoleKind.Runtime\n        ? createRuntimeBodyErrorInNavigation(workStore.route)\n        : createDynamicBodyErrorInNavigation(workStore.route),\n    componentStack,\n    effectiveCreateInstantStack\n  )\n  dynamicValidation.dynamicErrors.push(error)\n  return\n}\n\nexport function trackThrownErrorInNavigation(\n  workStore: WorkStore,\n  dynamicValidation: InstantValidationState,\n  thrownValue: unknown,\n  componentStack: string\n) {\n  const boundaryLocation =\n    hasInstantValidationBoundaryRegex.exec(componentStack)\n  if (!boundaryLocation) {\n    // There's no validation boundary on the component stack.\n    // This error may have blocked a boundary from rendering.\n\n    // Wrap the error to provide component context.\n    // This helps for errors from node_modules which would otherwise\n    // have no useful stack information due to ignore-listing,\n    // e.g. next/dynamic with `ssr: false`.\n    const error = addErrorContext(\n      new Error(\n        'An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.',\n        { cause: thrownValue }\n      ),\n      componentStack,\n      null\n    )\n    dynamicValidation.thrownErrorsOutsideBoundary.push(error)\n  } else {\n    // There's validation boundary on the component stack,\n    // so we know this error didn't block a validation boundary from rendering.\n    // However, this error might be hiding be hiding dynamic content that would\n    // cause validation to fail.\n    const suspenseLocation = hasSuspenseRegex.exec(componentStack)\n    if (suspenseLocation) {\n      if (suspenseLocation.index < boundaryLocation.index) {\n        // There's a Suspense below the validation boundary but above this error's location.\n        // This subtree can't fail instant validation because any potential\n        // dynamic holes would be guarded by the Suspense anyway,\n        // so we can allow this.\n        return\n      } else {\n        // invalid - fallthrough\n      }\n    }\n    const message = `Route \"${workStore.route}\": Could not validate \\`instant\\` because an error prevented the target segment from rendering.`\n    const error = addErrorContext(\n      new Error(message, { cause: thrownValue }),\n      componentStack,\n      null // TODO(instant-validation-build): conflicting use of cause\n    )\n    dynamicValidation.validationPreventingErrors.push(error)\n  }\n}\n\nexport function trackDynamicHoleInRuntimeShell(\n  dynamicReason: unknown,\n  workStore: WorkStore,\n  componentStack: string,\n  dynamicValidation: DynamicValidationState,\n  clientDynamic: DynamicTrackingState\n) {\n  const syncDynamicError = getPendingClientSyncDynamicError(clientDynamic)\n\n  if (hasOutletRegex.test(componentStack)) {\n    trackOutletSuspenseAboveBody(componentStack, dynamicValidation)\n    return\n  } else if (hasMetadataRegex.test(componentStack)) {\n    const error = addErrorContext(\n      createDynamicMetadataError(workStore.route),\n      componentStack,\n      null\n    )\n    dynamicValidation.dynamicMetadata = error\n    return\n  } else if (hasViewportRegex.test(componentStack)) {\n    const error = addErrorContext(\n      createDynamicViewportError(workStore.route),\n      componentStack,\n      null\n    )\n    dynamicValidation.dynamicErrors.push(error)\n    return\n  } else if (\n    hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(\n      componentStack\n    )\n  ) {\n    // For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.\n    // But if you have Suspense above body, the prelude is empty but we allow that because having Suspense\n    // is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.\n    dynamicValidation.hasAllowedDynamic = true\n    dynamicValidation.hasSuspenseAboveBody = true\n    return\n  } else if (hasSuspenseRegex.test(componentStack)) {\n    // this error had a Suspense boundary above it so we don't need to report it as a source\n    // of disallowed\n    dynamicValidation.hasAllowedDynamic = true\n    return\n  } else if (syncDynamicError) {\n    dynamicValidation.dynamicErrors.push(syncDynamicError)\n    return\n  }\n\n  if (isClientHookDynamicError(dynamicReason)) {\n    dynamicValidation.dynamicErrors.push(\n      addErrorContext(dynamicReason, componentStack, null)\n    )\n    return\n  }\n\n  const error = addErrorContext(\n    createDynamicBodyError(workStore.route),\n    componentStack,\n    null\n  )\n  dynamicValidation.dynamicErrors.push(error)\n  return\n}\n\nexport function trackDynamicHoleInStaticShell(\n  dynamicReason: unknown,\n  workStore: WorkStore,\n  componentStack: string,\n  dynamicValidation: DynamicValidationState,\n  clientDynamic: DynamicTrackingState\n) {\n  const syncDynamicError = getPendingClientSyncDynamicError(clientDynamic)\n\n  if (hasOutletRegex.test(componentStack)) {\n    trackOutletSuspenseAboveBody(componentStack, dynamicValidation)\n    return\n  } else if (hasMetadataRegex.test(componentStack)) {\n    const error = addErrorContext(\n      createRuntimeMetadataError(workStore.route),\n      componentStack,\n      null\n    )\n    dynamicValidation.dynamicMetadata = error\n    return\n  } else if (hasViewportRegex.test(componentStack)) {\n    const error = addErrorContext(\n      createRuntimeViewportError(workStore.route),\n      componentStack,\n      null\n    )\n    dynamicValidation.dynamicErrors.push(error)\n    return\n  } else if (\n    hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(\n      componentStack\n    )\n  ) {\n    // For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.\n    // But if you have Suspense above body, the prelude is empty but we allow that because having Suspense\n    // is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.\n    dynamicValidation.hasAllowedDynamic = true\n    dynamicValidation.hasSuspenseAboveBody = true\n    return\n  } else if (hasSuspenseRegex.test(componentStack)) {\n    // this error had a Suspense boundary above it so we don't need to report it as a source\n    // of disallowed\n    dynamicValidation.hasAllowedDynamic = true\n    return\n  } else if (syncDynamicError) {\n    dynamicValidation.dynamicErrors.push(syncDynamicError)\n    return\n  }\n\n  if (isClientHookDynamicError(dynamicReason)) {\n    dynamicValidation.dynamicErrors.push(\n      addErrorContext(dynamicReason, componentStack, null)\n    )\n    return\n  }\n\n  const error = addErrorContext(\n    createRuntimeBodyError(workStore.route),\n    componentStack,\n    null\n  )\n  dynamicValidation.dynamicErrors.push(error)\n  return\n}\n\n/**\n * In dev mode, we prefer using the owner stack, otherwise the provided\n * component stack is used.\n *\n * Accepts an already-created Error so the SWC error-code plugin can see the\n * `new Error(...)` call at each call site and auto-assign error codes.\n */\nfunction addErrorContext(\n  error: Error,\n  componentStack: string,\n  createInstantStack: (() => Error) | null\n) {\n  const ownerStack =\n    process.env.NODE_ENV !== 'production' && React.captureOwnerStack\n      ? React.captureOwnerStack()\n      : null\n\n  if (createInstantStack !== null) {\n    error.cause = createInstantStack()\n  }\n  // TODO go back to owner stack here if available. This is temporarily using componentStack to get the right\n  //\n  error.stack =\n    error.name + ': ' + error.message + (ownerStack || componentStack)\n  return error\n}\n\nexport enum PreludeState {\n  Full = 0,\n  Empty = 1,\n  Errored = 2,\n}\n\nexport function logDisallowedDynamicError(\n  workStore: WorkStore,\n  error: Error\n): void {\n  console.error(error)\n  logBuildDebugHint(workStore.route)\n}\n\nexport function throwIfSyncIOUsed(\n  workStore: WorkStore,\n  serverDynamic: DynamicTrackingState\n) {\n  if (serverDynamic.syncDynamicErrorWithStack) {\n    logDisallowedDynamicError(\n      workStore,\n      serverDynamic.syncDynamicErrorWithStack\n    )\n    throw new StaticGenBailoutError()\n  }\n}\n\nexport function throwIfDisallowedDynamic(\n  workStore: WorkStore,\n  prelude: PreludeState,\n  dynamicValidation: DynamicValidationState,\n  serverDynamic: DynamicTrackingState,\n  allowEmptyStaticShell: boolean\n): void {\n  throwIfSyncIOUsed(workStore, serverDynamic)\n\n  // The dynamic metadata error is a mistake-detection signal. It fires when the\n  // rest of the shell is otherwise fully static apart from metadata, suggesting\n  // the dynamic data access in `generateMetadata` was probably unintentional.\n  // That condition is independent of whether the user or build phase accepted\n  // an empty shell, so we surface it before any opt-in bypass.\n  if (\n    prelude === PreludeState.Full &&\n    dynamicValidation.hasAllowedDynamic === false &&\n    dynamicValidation.hasDynamicMetadata\n  ) {\n    console.error(createDynamicOrRuntimeMetadataError(workStore.route).message)\n    throw new StaticGenBailoutError()\n  }\n\n  // Either flag expresses \"this shell is allowed to be empty/blocking\":\n  //   - `allowEmptyStaticShell` covers `instant = false` (user opt-in)\n  //     and the build-phase fallback-shell case.\n  //   - `hasSuspenseAboveBody` is the structural opt-in inside the user's root\n  //     layout.\n  // Treat them as synonyms for the purpose of bypassing shell-failure errors.\n  if (allowEmptyStaticShell || dynamicValidation.hasSuspenseAboveBody) {\n    return\n  }\n\n  if (prelude !== PreludeState.Full) {\n    // We didn't have any sync bailouts but there may be user code which\n    // blocked the root. We would have captured these during the prerender\n    // and can log them here and then terminate the build/validating render\n    const dynamicErrors = dynamicValidation.dynamicErrors\n    if (dynamicErrors.length > 0) {\n      for (let i = 0; i < dynamicErrors.length; i++) {\n        logDisallowedDynamicError(workStore, dynamicErrors[i])\n      }\n\n      throw new StaticGenBailoutError()\n    }\n\n    // If we got this far then the only other thing that could be blocking\n    // the root is dynamic Viewport. If this is dynamic then\n    // you need to opt into that by adding a Suspense boundary above the body\n    // to indicate your are ok with fully dynamic rendering.\n    if (dynamicValidation.hasDynamicViewport) {\n      console.error(\n        createDynamicOrRuntimeViewportError(workStore.route).message\n      )\n      throw new StaticGenBailoutError()\n    }\n\n    if (prelude === PreludeState.Empty) {\n      // If we ever get this far then we messed up the tracking of invalid dynamic.\n      // We still adhere to the constraint that you must produce a shell but invite the\n      // user to report this as a bug in Next.js.\n      console.error(\n        `Route \"${workStore.route}\" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`\n      )\n      throw new StaticGenBailoutError()\n    }\n  }\n}\n\nexport function getStaticShellDisallowedDynamicReasons(\n  workStore: WorkStore,\n  prelude: PreludeState,\n  dynamicValidation: DynamicValidationState,\n  allowEmptyStaticShell: boolean\n): Array<Error> {\n  // The dynamic metadata error is a mistake-detection signal. It fires when the\n  // rest of the shell is otherwise fully static apart from metadata, suggesting\n  // the dynamic data access in `generateMetadata` was probably unintentional.\n  // That condition is independent of whether the user or build phase accepted\n  // an empty shell, so we surface it before any opt-in bypass.\n  if (\n    prelude === PreludeState.Full &&\n    dynamicValidation.hasAllowedDynamic === false &&\n    dynamicValidation.dynamicErrors.length === 0 &&\n    dynamicValidation.dynamicMetadata\n  ) {\n    return [dynamicValidation.dynamicMetadata]\n  }\n\n  // Either flag expresses \"this shell is allowed to be empty/blocking\":\n  //   - `allowEmptyStaticShell` covers `instant = false` (user opt-in)\n  //     and the build-phase fallback-shell case.\n  //   - `hasSuspenseAboveBody` is the structural opt-in inside the user's root\n  //     layout.\n  // Treat them as synonyms for the purpose of bypassing shell-failure errors.\n  if (allowEmptyStaticShell || dynamicValidation.hasSuspenseAboveBody) {\n    return []\n  }\n\n  if (prelude !== PreludeState.Full) {\n    // We didn't have any sync bailouts but there may be user code which\n    // blocked the root. We would have captured these during the prerender\n    // and can log them here and then terminate the build/validating render\n    const dynamicErrors = dynamicValidation.dynamicErrors\n    if (dynamicErrors.length > 0) {\n      return dynamicErrors\n    }\n\n    if (prelude === PreludeState.Empty) {\n      // If we ever get this far then we messed up the tracking of invalid dynamic.\n      // We still adhere to the constraint that you must produce a shell but invite the\n      // user to report this as a bug in Next.js.\n      return [\n        new InvariantError(\n          `Route \"${workStore.route}\" did not produce a static shell and Next.js was unable to determine a reason.`\n        ),\n      ]\n    }\n  }\n  // We had a non-empty prelude and there are no dynamic holes\n  return []\n}\n\n/**\n * `errors` are validation failures that should be surfaced immediately.\n * `deferredFallback` carries a missing-boundary explanation that the caller\n * should hold back until *every* validation depth has been tried — a missing\n * boundary often just means a parent layout intentionally omitted a slot, and\n * a different depth's validation may surface a more meaningful error.\n */\nexport type NavigationValidationResult =\n  // instances that block instant navigation\n  | Array<Error>\n  // validation was blocked with zero or more reasons\n  | Error\n  | AggregateError\n\nexport function getNavigationDisallowedDynamicReasons(\n  workStore: WorkStore,\n  prelude: PreludeState,\n  dynamicValidation: InstantValidationState,\n  validationSampleTracking: InstantValidationSampleTracking | null,\n  boundaryState: ValidationBoundaryTracking,\n  devRenderDidError: boolean\n): NavigationValidationResult {\n  // If we have errors related to missing samples, those should take precedence over everything else.\n  if (validationSampleTracking) {\n    const { missingSampleErrors } = validationSampleTracking\n    if (missingSampleErrors.length > 0) {\n      return missingSampleErrors\n    }\n  }\n\n  const { validationPreventingErrors } = dynamicValidation\n  if (validationPreventingErrors.length > 0) {\n    if (process.env.__NEXT_DEV_SERVER && devRenderDidError) {\n      // The dev render already surfaced server errors to the user.\n      // The same errors likely caused validation to be inconclusive,\n      // so reporting them again as validation failures would be noisy.\n      return []\n    }\n    return validationPreventingErrors\n  }\n\n  // NOTE: We don't care about Suspense above body here,\n  // we're only concerned with the validation boundary\n  if (prelude !== PreludeState.Full) {\n    const dynamicErrors = dynamicValidation.dynamicErrors\n    if (dynamicErrors.length > 0) {\n      return dynamicErrors\n    }\n\n    if (\n      prelude === PreludeState.Empty &&\n      !dynamicValidation.hasAllowedClientDynamicAboveBoundary &&\n      allRequiredBoundariesRendered(boundaryState)\n    ) {\n      // If we ever get this far then we messed up the tracking of invalid\n      // dynamic. (When boundaries are missing the deferred fallback below\n      // will surface a more useful error.)\n      return new InvariantError(\n        `Route \"${workStore.route}\" failed to render during instant validation and Next.js was unable to determine a reason.`\n      )\n    }\n  } else {\n    const dynamicErrors = dynamicValidation.dynamicErrors\n    if (dynamicErrors.length > 0) {\n      return dynamicErrors\n    }\n\n    if (\n      dynamicValidation.hasAllowedDynamic === false &&\n      dynamicValidation.dynamicMetadata\n    ) {\n      return [dynamicValidation.dynamicMetadata]\n    }\n  }\n\n  // Missing boundaries on their own aren't a strong signal — a parent\n  // layout may legitimately omit a slot. Defer this so the caller can\n  // try shallower validation depths first; if every depth comes up\n  // empty we still want to surface this so the user is made aware that\n  // validation didn't complete. When we add a markers API, the\n  // marker-based variant of this check can become strict again.\n  if (!allRequiredBoundariesRendered(boundaryState)) {\n    const { thrownErrorsOutsideBoundary } = dynamicValidation\n    const rootInstantStack = dynamicValidation.slotStacks[0]\n    if (thrownErrorsOutsideBoundary.length === 0) {\n      const missingFiles: string[] = []\n      for (const [id, filePaths] of boundaryState.requiredIds) {\n        if (!boundaryState.renderedIds.has(id)) {\n          for (const filePath of filePaths) {\n            let normalized = filePath\n              .replace(/^\\[project\\][\\\\/]?/, '')\n              .replace(process.cwd() + '/', '')\n              .replace(process.cwd() + '\\\\', '')\n            missingFiles.push(normalized)\n          }\n        }\n      }\n      missingFiles.sort()\n      return createUnrenderedSegmentError(workStore.route, missingFiles)\n    } else if (process.env.__NEXT_DEV_SERVER && devRenderDidError) {\n      // Errors outside the boundary likely blocked it from rendering,\n      // but they're already being reported to the user via the dev\n      // render. Suppress the validation failure to avoid noise.\n      return []\n    } else if (thrownErrorsOutsideBoundary.length === 1) {\n      const message = `Route \"${workStore.route}\": Could not validate \\`instant\\` because the target segment was prevented from rendering, likely due to the following error.`\n      const error = rootInstantStack !== null ? rootInstantStack() : new Error()\n      error.name = 'Error'\n      error.message = message\n      return new AggregateError([\n        error,\n        thrownErrorsOutsideBoundary[0] as Error,\n      ])\n    } else {\n      const message = `Route \"${workStore.route}\": Could not validate \\`instant\\` because the target segment was prevented from rendering, likely due to one of the following errors.`\n      const error = rootInstantStack !== null ? rootInstantStack() : new Error()\n      error.name = 'Error'\n      error.message = message\n      return new AggregateError([\n        error,\n        ...(thrownErrorsOutsideBoundary as Error[]),\n      ])\n    }\n  }\n\n  // We had a non-empty prelude and there are no dynamic holes\n  return []\n}\n","export type SyncIOApiType = 'time' | 'random' | 'crypto'\n\nconst SYNC_IO_DOCS: Record<SyncIOApiType, string> = {\n  time: 'https://nextjs.org/docs/messages/blocking-prerender-current-time',\n  random: 'https://nextjs.org/docs/messages/blocking-prerender-random',\n  crypto: 'https://nextjs.org/docs/messages/blocking-prerender-crypto',\n}\n\nconst SYNC_IO_CLIENT_DOCS: Record<SyncIOApiType, string> = {\n  time: 'https://nextjs.org/docs/messages/blocking-prerender-current-time-client',\n  random: 'https://nextjs.org/docs/messages/blocking-prerender-random-client',\n  crypto: 'https://nextjs.org/docs/messages/blocking-prerender-crypto-client',\n}\n\nconst SYNC_IO_RUNTIME_DOCS: Record<SyncIOApiType, string> = {\n  time: 'https://nextjs.org/docs/messages/blocking-prerender-current-time',\n  random: 'https://nextjs.org/docs/messages/blocking-prerender-random',\n  crypto: 'https://nextjs.org/docs/messages/blocking-prerender-crypto',\n}\n\nfunction elapsedTimeBullet(type: SyncIOApiType): string {\n  return type === 'time'\n    ? `\\n  - [measure] If the value is for telemetry, use a timing API such as \\`performance.now()\\``\n    : ''\n}\n\nfunction createSyncIOErrorImpl(\n  route: string,\n  expression: string,\n  type: SyncIOApiType,\n  docsUrl: string\n): Error {\n  return new Error(\n    `Route \"${route}\": Next.js encountered the unstable value ${expression} while prerendering.\\n\\n` +\n      `This value can change between renders, so it must be either prerendered or computed later.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [dynamic] Render at request time by adding a dynamic data access (e.g. \\`await connection()\\`) before this call\\n` +\n      `  - [cache] Prerender and cache the value with \\`\"use cache\"\\`\\n` +\n      `  - [client] Render the value on the client with \\`\"use client\"\\`` +\n      elapsedTimeBullet(type) +\n      `\\n\\nLearn more: ${docsUrl}`\n  )\n}\n\nexport function createSyncIOError(\n  route: string,\n  expression: string,\n  type: SyncIOApiType\n): Error {\n  return createSyncIOErrorImpl(route, expression, type, SYNC_IO_DOCS[type])\n}\n\nexport function createSyncIORuntimeError(\n  route: string,\n  expression: string,\n  type: SyncIOApiType\n): Error {\n  return createSyncIOErrorImpl(\n    route,\n    expression,\n    type,\n    SYNC_IO_RUNTIME_DOCS[type]\n  )\n}\n\nexport function createSyncIOClientError(\n  route: string,\n  expression: string,\n  type: SyncIOApiType\n): Error {\n  const docsUrl = SYNC_IO_CLIENT_DOCS[type]\n  return new Error(\n    `Route \"${route}\": Next.js encountered the unstable value ${expression} in a Client Component.\\n\\n` +\n      `This value would be evaluated during the prerender, instead of recomputed on each visit.\\n\\n` +\n      `Ways to fix this:\\n` +\n      `  - [stream] Wrap the Client Component in \\`<Suspense fallback={...}>\\`\\n` +\n      `  - [defer] Move the read into a \\`useEffect\\` or event handler` +\n      elapsedTimeBullet(type) +\n      `\\n\\nLearn more: ${docsUrl}`\n  )\n}\n","import { workAsyncStorage } from '../app-render/work-async-storage.external'\nimport { workUnitAsyncStorage } from '../app-render/work-unit-async-storage.external'\nimport { abortOnSynchronousPlatformIOAccess } from '../app-render/dynamic-rendering'\nimport { RenderStage } from '../app-render/staged-rendering'\nimport { applyOwnerStack } from '../dynamic-rendering-utils'\nimport {\n  createSyncIOClientError,\n  createSyncIOError,\n  createSyncIORuntimeError,\n  type SyncIOApiType,\n} from '../app-render/sync-io-messages'\nimport { InvariantError } from '../../shared/lib/invariant-error'\n\nexport function io(expression: string, type: SyncIOApiType) {\n  const workUnitStore = workUnitAsyncStorage.getStore()\n  const workStore = workAsyncStorage.getStore()\n\n  if (!workUnitStore || !workStore) {\n    return\n  }\n\n  switch (workUnitStore.type) {\n    case 'prerender':\n    case 'prerender-runtime': {\n      const prerenderSignal = workUnitStore.controller.signal\n\n      if (prerenderSignal.aborted === false) {\n        // If the prerender signal is already aborted we don't need to construct\n        // any stacks because something else actually terminated the prerender.\n        abortOnSynchronousPlatformIOAccess(\n          workStore.route,\n          expression,\n          applyOwnerStack(createSyncIOError(workStore.route, expression, type)),\n          workUnitStore\n        )\n      }\n      break\n    }\n    case 'prerender-client': {\n      const prerenderSignal = workUnitStore.controller.signal\n\n      if (prerenderSignal.aborted === false) {\n        // If the prerender signal is already aborted we don't need to construct\n        // any stacks because something else actually terminated the prerender.\n        abortOnSynchronousPlatformIOAccess(\n          workStore.route,\n          expression,\n          applyOwnerStack(\n            createSyncIOClientError(workStore.route, expression, type)\n          ),\n          workUnitStore\n        )\n      }\n      break\n    }\n    case 'request': {\n      const stageController = workUnitStore.stagedRendering\n      if (stageController && stageController.shouldTrackSyncInterrupt()) {\n        let syncIOError: Error\n        // NOTE: keep stages where we can interrupt in sync with\n        // `shouldTrackSyncInterrupt`/`syncInterruptCurrentStageWithReason`\n        switch (stageController.currentStage) {\n          case RenderStage.ShellStatic:\n          case RenderStage.Static: {\n            syncIOError = createSyncIOError(workStore.route, expression, type)\n            break\n          }\n          case RenderStage.ShellRuntime:\n          case RenderStage.Runtime: {\n            // We're in the Runtime stage.\n            // We only error for Sync IO in the Runtime stage if the route has partialPrefetching enabled.\n            syncIOError = createSyncIORuntimeError(\n              workStore.route,\n              expression,\n              type\n            )\n            break\n          }\n          case RenderStage.Before:\n          case RenderStage.Dynamic:\n          case RenderStage.Abandoned: {\n            throw new InvariantError(\n              `shouldTrackSyncInterrupt allowed a sync IO interrupt in an unexpected stage: ${RenderStage[stageController.currentStage]}`\n            )\n          }\n        }\n\n        syncIOError = applyOwnerStack(syncIOError)\n        stageController.syncInterruptCurrentStageWithReason(syncIOError)\n\n        // A validation render uses a 'request' store type, but may be abortable.\n        // If we're rendering with filled caches, Sync IO is an error and should trigger an abort.\n        if (\n          workUnitStore.controller &&\n          !workUnitStore.controller.signal.aborted\n        ) {\n          workUnitStore.controller.abort(syncIOError)\n        }\n      }\n      break\n    }\n    case 'validation-client':\n    case 'prerender-ppr':\n    case 'prerender-legacy':\n    case 'cache':\n    case 'private-cache':\n    case 'unstable-cache':\n    case 'generate-static-params':\n      break\n    default:\n      workUnitStore satisfies never\n  }\n}\n","/**\n * We extend Math.random() during builds and revalidates to ensure that prerenders don't observe randomness\n * When cacheComponents is enabled. randomness is a form of IO even though it resolves synchronously. When cacheComponents is\n * enabled we need to ensure that randomness is excluded from prerenders.\n *\n * The extensions here never error nor alter the random generation itself and thus should be transparent to callers.\n */\n\nimport { io } from './io-utils'\n\nconst expression = '`Math.random()`'\ntry {\n  const _random = Math.random\n  Math.random = function random() {\n    io(expression, 'random')\n    return _random.apply(null, arguments as any)\n\n    // We bind here to alter the `toString` printing to match `Math.random`'s native `toString`.\n    // eslint-disable-next-line no-extra-bind\n  }.bind(null)\n  Object.defineProperty(Math.random, 'name', { value: 'random' })\n} catch {\n  console.error(\n    `Failed to install ${expression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n  )\n}\n","/**\n * We extend node:crypto APIs during builds and revalidates to ensure that prerenders don't observe random bytes\n * When cacheComponents is enabled. Random bytes are a form of IO even if they resolve synchronously. When cacheComponents is\n * enabled we need to ensure that random bytes are excluded from prerenders unless they are cached.\n *\n *\n * The extensions here never error nor alter the underlying return values and thus should be transparent to callers.\n */\n\nimport { io } from './io-utils'\n\nif (process.env.NEXT_RUNTIME === 'edge') {\n  // nothing to patch\n} else {\n  const nodeCrypto = require('node:crypto') as typeof import('node:crypto')\n\n  // require('node:crypto').getRandomValues is an alias for\n  // crypto.getRandomValues which is extended in web-crypto.tsx\n\n  // require('node:crypto').randomUUID is not an alias for crypto.randomUUID\n\n  const randomUUIDExpression = \"`require('node:crypto').randomUUID()`\"\n  try {\n    const _randomUUID = nodeCrypto.randomUUID\n    nodeCrypto.randomUUID = function randomUUID() {\n      io(randomUUIDExpression, 'random')\n      return _randomUUID.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${randomUUIDExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const randomBytesExpression = \"`require('node:crypto').randomBytes(size)`\"\n  try {\n    const _randomBytes = nodeCrypto.randomBytes\n    // @ts-expect-error -- TODO: tell TS the overloads are preserved\n    nodeCrypto.randomBytes = function randomBytes() {\n      if (typeof arguments[1] !== 'function') {\n        // randomBytes is sync if the second arg is undefined\n        io(randomBytesExpression, 'random')\n      }\n      return _randomBytes.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${randomBytesExpression} extension. When using \\`cacheComponents\\` calling this function without a callback argument will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const randomFillSyncExpression =\n    \"`require('node:crypto').randomFillSync(...)`\"\n  try {\n    const _randomFillSync = nodeCrypto.randomFillSync\n    // @ts-expect-error -- TODO: tell TS the overloads are preserved\n    nodeCrypto.randomFillSync = function randomFillSync() {\n      io(randomFillSyncExpression, 'random')\n      return _randomFillSync.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${randomFillSyncExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const randomIntExpression = \"`require('node:crypto').randomInt(min, max)`\"\n  try {\n    const _randomInt = nodeCrypto.randomInt\n    // @ts-expect-error -- TODO: tell TS the overloads are preserved\n    nodeCrypto.randomInt = function randomInt() {\n      if (typeof arguments[2] !== 'function') {\n        // randomInt is sync if the third arg is undefined\n        io(randomIntExpression, 'random')\n      }\n      return _randomInt.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${randomBytesExpression} extension. When using \\`cacheComponents\\` calling this function without a callback argument will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const generatePrimeSyncExpression =\n    \"`require('node:crypto').generatePrimeSync(...)`\"\n  try {\n    const _generatePrimeSync = nodeCrypto.generatePrimeSync\n    // @ts-expect-error -- TODO: tell TS the overloads are preserved\n    nodeCrypto.generatePrimeSync = function generatePrimeSync() {\n      io(generatePrimeSyncExpression, 'random')\n      return _generatePrimeSync.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${generatePrimeSyncExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const generateKeyPairSyncExpression =\n    \"`require('node:crypto').generateKeyPairSync(...)`\"\n  try {\n    const _generateKeyPairSync = nodeCrypto.generateKeyPairSync\n    // @ts-expect-error -- TODO: tell TS the overloads are preserved\n    nodeCrypto.generateKeyPairSync = function generateKeyPairSync() {\n      io(generateKeyPairSyncExpression, 'random')\n      return _generateKeyPairSync.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${generateKeyPairSyncExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n    )\n  }\n\n  const generateKeySyncExpression =\n    \"`require('node:crypto').generateKeySync(...)`\"\n  try {\n    const _generateKeySync = nodeCrypto.generateKeySync\n    nodeCrypto.generateKeySync = function generateKeySync() {\n      io(generateKeySyncExpression, 'random')\n      return _generateKeySync.apply(this, arguments as any)\n    }\n  } catch {\n    console.error(\n      `Failed to install ${generateKeySyncExpression} extension. When using \\`cacheComponents\\` calling this function will not correctly trigger dynamic behavior.`\n    )\n  }\n}\n","import { createDefaultCacheHandler } from '../lib/cache-handlers/default'\nimport type { CacheHandler } from '../lib/cache-handlers/types'\nimport {\n  createTieredCacheHandler,\n  type CacheReadWriteHandler,\n} from './tiered-cache-handler'\n\nconst debug = process.env.NEXT_PRIVATE_DEBUG_CACHE\n  ? (message: string, ...args: any[]) => {\n      console.log(`use-cache: ${message}`, ...args)\n    }\n  : undefined\n\nconst handlersSymbol = Symbol.for('@next/cache-handlers')\nconst handlersMapSymbol = Symbol.for('@next/cache-handlers-map')\nconst handlersSetSymbol = Symbol.for('@next/cache-handlers-set')\nconst privateHandlerSymbol = Symbol.for('@next/cache-handlers-private')\nconst builtInHandlersSymbol = Symbol.for('@next/cache-handlers-built-in')\nconst devFrontHandlersSymbol = Symbol.for('@next/cache-handlers-dev-fronts')\nconst devTieredHandlersSymbol = Symbol.for('@next/cache-handlers-dev-tiered')\nconst memoryCacheDisabledSymbol = Symbol.for(\n  '@next/cache-handlers-memory-disabled'\n)\n\n/**\n * The in-memory size used for the dev-only built-in handlers (the private\n * handler, the size-0 replacement, and the per-kind front handlers for custom\n * kinds). Mirrors the framework default so `cacheMaxMemorySize: 0` does not\n * disable caching in development.\n */\nconst DEV_MEMORY_CACHE_SIZE = 50 * 1024 * 1024\n\n/**\n * The reference to the cache handlers. We store the cache handlers on the\n * global object so that we can access the same instance across different\n * boundaries (such as different copies of the same module).\n */\nconst reference: typeof globalThis & {\n  [handlersSymbol]?: {\n    RemoteCache?: CacheHandler\n    DefaultCache?: CacheHandler\n  }\n  [handlersMapSymbol]?: Map<string, CacheHandler>\n  [handlersSetSymbol]?: Set<CacheHandler>\n  [builtInHandlersSymbol]?: Set<CacheHandler>\n  // DEV-only\n  [privateHandlerSymbol]?: CacheHandler\n  [devFrontHandlersSymbol]?: Map<string, CacheHandler>\n  [devTieredHandlersSymbol]?: Map<string, CacheReadWriteHandler>\n  [memoryCacheDisabledSymbol]?: boolean\n} = globalThis\n\n/**\n * Initialize the cache handlers.\n * @param cacheMaxMemorySize - The maximum memory size of the cache in bytes, if\n *  not provided, the default memory size will be used.\n * @returns `true` if the cache handlers were initialized, `false` if they were already initialized.\n */\nexport function initializeCacheHandlers(cacheMaxMemorySize: number): boolean {\n  // If the cache handlers have already been initialized, don't do it again.\n  if (reference[handlersMapSymbol]) {\n    debug?.('cache handlers already initialized')\n    return false\n  }\n\n  debug?.('initializing cache handlers')\n  const handlersMap = new Map<string, CacheHandler>()\n  reference[handlersMapSymbol] = handlersMap\n  const builtInHandlers = new Set<CacheHandler>()\n  reference[builtInHandlersSymbol] = builtInHandlers\n\n  // In development, `cacheMaxMemorySize: 0` would make the built-in default\n  // handler a no-op, so every reload would miss. Use a real in-memory size\n  // instead so dev stays fast; the \"use cache\" wrapper forces a dynamic cache\n  // life for this case so it still behaves close to \"no cache\" (serve stale,\n  // regenerate in the background). Production keeps the no-op handler.\n  const builtInSize =\n    process.env.__NEXT_DEV_SERVER && cacheMaxMemorySize === 0\n      ? DEV_MEMORY_CACHE_SIZE\n      : cacheMaxMemorySize\n\n  // Initialize the cache from the symbol contents first.\n  if (reference[handlersSymbol]) {\n    let fallback: CacheHandler\n    if (reference[handlersSymbol].DefaultCache) {\n      debug?.('setting \"default\" cache handler from symbol')\n      fallback = reference[handlersSymbol].DefaultCache\n    } else {\n      debug?.('setting \"default\" cache handler from default')\n      fallback = createDefaultCacheHandler(builtInSize)\n      builtInHandlers.add(fallback)\n    }\n\n    handlersMap.set('default', fallback)\n\n    if (reference[handlersSymbol].RemoteCache) {\n      debug?.('setting \"remote\" cache handler from symbol')\n      handlersMap.set('remote', reference[handlersSymbol].RemoteCache)\n    } else {\n      debug?.('setting \"remote\" cache handler from default')\n      handlersMap.set('remote', fallback)\n    }\n  } else {\n    const handler = createDefaultCacheHandler(builtInSize)\n    builtInHandlers.add(handler)\n\n    debug?.('setting \"default\" cache handler from default')\n    handlersMap.set('default', handler)\n    debug?.('setting \"remote\" cache handler from default')\n    handlersMap.set('remote', handler)\n  }\n\n  // Create a set of the cache handlers.\n  reference[handlersSetSymbol] = new Set(handlersMap.values())\n\n  // In development we add dedicated built-in in-memory handlers so that reloads\n  // are fast. These are always built-in handlers, never a user-configured one,\n  // and are gated on the dev server so production behaves exactly as\n  // configured.\n  if (process.env.__NEXT_DEV_SERVER) {\n    reference[memoryCacheDisabledSymbol] = cacheMaxMemorySize === 0\n\n    // Private caches are persisted here so reloads are fast. Private entries\n    // can hold data specific to the incoming request (for example, derived from\n    // its cookies or headers), so this is never the user-configured `default`\n    // alias. Sized so it still caches under `cacheMaxMemorySize: 0` (otherwise\n    // it would become the no-op stub and private reloads would miss).\n    reference[privateHandlerSymbol] = createDefaultCacheHandler(\n      DEV_MEMORY_CACHE_SIZE\n    )\n\n    // Built-in front handlers, one per custom kind, and the tiered handlers\n    // that place a front in front of a (possibly slow or remote) backing\n    // handler so cache hits resolve in a microtask, are both created per kind\n    // in `setCacheHandler`.\n    reference[devFrontHandlersSymbol] = new Map()\n    reference[devTieredHandlersSymbol] = new Map()\n  }\n\n  return true\n}\n\n/**\n * Get a cache handler by kind.\n * @param kind - The kind of cache handler to get.\n * @returns The cache handler, or `undefined` if it does not exist.\n * @throws If the cache handlers are not initialized.\n */\nexport function getCacheHandler(kind: string): CacheHandler | undefined {\n  // This should never be called before initializeCacheHandlers.\n  if (!reference[handlersMapSymbol]) {\n    throw new Error('Cache handlers not initialized')\n  }\n\n  return reference[handlersMapSymbol].get(kind)\n}\n\n/**\n * Get the dedicated in-memory cache handler that persists private caches in\n * development. Returns `undefined` outside the dev server, where private caches\n * must not be persisted. This is intentionally not part of the kind-keyed\n * handlers map so that it can never be replaced by a user-configured handler.\n */\nexport function getPrivateCacheHandler(): CacheHandler | undefined {\n  // This should never be called before initializeCacheHandlers.\n  if (!reference[handlersMapSymbol]) {\n    throw new Error('Cache handlers not initialized')\n  }\n\n  return reference[privateHandlerSymbol]\n}\n\n/**\n * Whether the in-memory cache is disabled (`cacheMaxMemorySize: 0`). Dev-only\n * signal used to force a dynamic cache life so that the size-0 case still\n * serves stale and regenerates in the background. Always `false` in production.\n */\nexport function isMemoryCacheDisabled(): boolean {\n  return reference[memoryCacheDisabledSymbol] ?? false\n}\n\n/**\n * Whether `kind` is backed by a real user-configured handler rather than the\n * built-in in-memory default. Such a handler may be slow or remote, so in\n * development a built-in front handler is placed in front of it (see\n * `getDevTieredCacheHandler`) to keep cache hits microtask-fast. The presence\n * of a dev front handler is the signal, since front handlers are created\n * exactly for user-registered kinds. Always `false` in production.\n */\nexport function isCustomCacheHandler(kind: string): boolean {\n  if (!process.env.__NEXT_DEV_SERVER) {\n    return false\n  }\n\n  return reference[devFrontHandlersSymbol]?.has(kind) ?? false\n}\n\n/**\n * Whether `kind` resolves to one of the in-memory handlers that\n * `initializeCacheHandlers` constructs itself, rather than one supplied by the\n * platform through the `@next/cache-handlers` global or by `cacheHandlers`\n * config. Reads from a built-in handler are map lookups, so repeating one\n * within a request costs nothing; reads from a supplied handler may be a\n * network round trip. Unlike `isCustomCacheHandler`, this holds in production.\n *\n * Tracking the instances rather than the kinds is what keeps aliasing correct:\n * self-hosted, `remote` resolves to the same handler as `default` and so\n * reports as built-in, while a platform-supplied `remote` does not.\n */\nexport function isBuiltInCacheHandler(kind: string): boolean {\n  const handler = reference[handlersMapSymbol]?.get(kind)\n\n  return (\n    handler !== undefined &&\n    Boolean(reference[builtInHandlersSymbol]?.has(handler))\n  )\n}\n\n/**\n * Get the dev-only tiered cache handler for a custom `kind`: a fast built-in\n * in-memory front handler in front of the user-configured backing handler, so\n * cache hits resolve in a microtask. Returns `undefined` if there is none (a\n * built-in kind, or production).\n */\nexport function getDevTieredCacheHandler(\n  kind: string\n): CacheReadWriteHandler | undefined {\n  if (!process.env.__NEXT_DEV_SERVER) {\n    return undefined\n  }\n\n  return reference[devTieredHandlersSymbol]?.get(kind)\n}\n\n/**\n * Get an iterator over the cache handlers.\n * @returns An iterator over the cache handlers, or `undefined` if they are not\n * initialized.\n */\nexport function getCacheHandlers(): IterableIterator<CacheHandler> | undefined {\n  const handlersSet = reference[handlersSetSymbol]\n  if (!handlersSet) {\n    return undefined\n  }\n\n  if (process.env.__NEXT_DEV_SERVER) {\n    return iterateCacheHandlersWithDevBuiltIns(handlersSet)\n  }\n\n  return handlersSet.values()\n}\n\n/**\n * Yields the registered handlers plus the dev-only built-in handlers (the\n * private handler and the per-kind front handlers). The built-in handlers are\n * not part of the registered set, but tag operations must still reach them:\n * their `updateTags` writes the shared tags manifest that their `get` consults,\n * so `revalidateTag` can invalidate their entries.\n */\nfunction* iterateCacheHandlersWithDevBuiltIns(\n  handlersSet: Set<CacheHandler>\n): IterableIterator<CacheHandler> {\n  yield* handlersSet\n\n  const privateHandler = reference[privateHandlerSymbol]\n  if (privateHandler) {\n    yield privateHandler\n  }\n\n  const devFrontHandlers = reference[devFrontHandlersSymbol]\n  if (devFrontHandlers) {\n    yield* devFrontHandlers.values()\n  }\n}\n\n/**\n * Get a map iterator over the cache handlers (keyed by kind).\n * @returns An iterator over the cache handler entries, or `undefined` if they\n * are not initialized.\n * @throws If the cache handlers are not initialized.\n */\nexport function getCacheHandlerEntries():\n  | IterableIterator<[string, CacheHandler]>\n  | undefined {\n  const handlersMap = reference[handlersMapSymbol]\n  if (!handlersMap) {\n    return undefined\n  }\n\n  if (process.env.__NEXT_DEV_SERVER) {\n    return iterateCacheHandlerEntriesWithDevBuiltIns(handlersMap)\n  }\n\n  return handlersMap.entries()\n}\n\n/**\n * Yields the registered entries plus the dev-only private handler under its\n * kind, so that per-kind tag operations (`refreshTags` / `getExpiration` for\n * implicit tags) apply to private entries. Custom-kind front handlers are\n * intentionally omitted: the backing handler (already in the map) is\n * authoritative for that kind's `getExpiration`, and a front entry is discarded\n * via that same value.\n */\nfunction* iterateCacheHandlerEntriesWithDevBuiltIns(\n  handlersMap: Map<string, CacheHandler>\n): IterableIterator<[string, CacheHandler]> {\n  yield* handlersMap.entries()\n\n  const privateHandler = reference[privateHandlerSymbol]\n  if (privateHandler) {\n    const privateEntry: [string, CacheHandler] = ['private', privateHandler]\n    yield privateEntry\n  }\n}\n\n/**\n * Set a cache handler by kind.\n * @param kind - The kind of cache handler to set.\n * @param cacheHandler - The cache handler to set.\n */\nexport function setCacheHandler(\n  kind: string,\n  cacheHandler: CacheHandler\n): void {\n  // This should never be called before initializeCacheHandlers.\n  if (!reference[handlersMapSymbol] || !reference[handlersSetSymbol]) {\n    throw new Error('Cache handlers not initialized')\n  }\n\n  debug?.('setting cache handler for \"%s\"', kind)\n  reference[handlersMapSymbol].set(kind, cacheHandler)\n  reference[handlersSetSymbol].add(cacheHandler)\n\n  // A user-configured handler may be slow or remote. In development, give it a\n  // dedicated built-in in-memory front handler so cache hits resolve in a\n  // microtask, and pair the two into a tiered handler the wrapper reads\n  // through. Both are created alongside registration so their lifecycle matches\n  // the backing handler's, and the front handler's presence is the signal that\n  // this kind is backed by a real handler (see `isCustomCacheHandler`). Being a\n  // built-in default handler, the front inherits the dev minimum retention, so\n  // a short-`expire` value still hits the front instead of falling through to\n  // the slow backing on every read.\n  if (process.env.__NEXT_DEV_SERVER) {\n    const frontHandler = createDefaultCacheHandler(DEV_MEMORY_CACHE_SIZE)\n    reference[devFrontHandlersSymbol]?.set(kind, frontHandler)\n    reference[devTieredHandlersSymbol]?.set(\n      kind,\n      createTieredCacheHandler(frontHandler, cacheHandler)\n    )\n  }\n}\n","import type { WorkStore } from './app-render/work-async-storage.external'\nimport type { IncrementalCache } from './lib/incremental-cache'\nimport { getCacheHandlers } from './use-cache/handlers'\n\n/** Run a callback, and execute any *new* revalidations added during its runtime. */\nexport async function withExecuteRevalidates<T>(\n  store: WorkStore | undefined,\n  callback: () => Promise<T>\n): Promise<T> {\n  if (!store) {\n    return callback()\n  }\n  // If we executed any revalidates during the request, then we don't want to execute them again.\n  // save the state so we can check if anything changed after we're done running callbacks.\n  const savedRevalidationState = cloneRevalidationState(store)\n  try {\n    return await callback()\n  } finally {\n    // Check if we have any new revalidates, and if so, wait until they are all resolved.\n    const newRevalidates = diffRevalidationState(\n      savedRevalidationState,\n      cloneRevalidationState(store)\n    )\n    await executeRevalidates(store, newRevalidates)\n  }\n}\n\ntype RevalidationState = Required<\n  Pick<\n    WorkStore,\n    'pendingRevalidatedTags' | 'pendingRevalidates' | 'pendingRevalidateWrites'\n  >\n>\n\nfunction cloneRevalidationState(store: WorkStore): RevalidationState {\n  return {\n    pendingRevalidatedTags: store.pendingRevalidatedTags\n      ? [...store.pendingRevalidatedTags]\n      : [],\n    pendingRevalidates: { ...store.pendingRevalidates },\n    pendingRevalidateWrites: store.pendingRevalidateWrites\n      ? [...store.pendingRevalidateWrites]\n      : [],\n  }\n}\n\nfunction diffRevalidationState(\n  prev: RevalidationState,\n  curr: RevalidationState\n): RevalidationState {\n  const prevTagsWithProfile = new Set(\n    prev.pendingRevalidatedTags.map((item) => {\n      const profileKey =\n        typeof item.profile === 'object'\n          ? JSON.stringify(item.profile)\n          : item.profile || ''\n      return `${item.tag}:${profileKey}`\n    })\n  )\n  const prevRevalidateWrites = new Set(prev.pendingRevalidateWrites)\n  return {\n    pendingRevalidatedTags: curr.pendingRevalidatedTags.filter((item) => {\n      const profileKey =\n        typeof item.profile === 'object'\n          ? JSON.stringify(item.profile)\n          : item.profile || ''\n      return !prevTagsWithProfile.has(`${item.tag}:${profileKey}`)\n    }),\n    pendingRevalidates: Object.fromEntries(\n      Object.entries(curr.pendingRevalidates).filter(\n        ([key]) => !(key in prev.pendingRevalidates)\n      )\n    ),\n    pendingRevalidateWrites: curr.pendingRevalidateWrites.filter(\n      (promise) => !prevRevalidateWrites.has(promise)\n    ),\n  }\n}\n\nasync function revalidateTags(\n  tagsWithProfile: Array<{\n    tag: string\n    profile?: string | { expire?: number }\n  }>,\n  incrementalCache: IncrementalCache | undefined,\n  workStore?: WorkStore\n): Promise<void> {\n  if (tagsWithProfile.length === 0) {\n    return\n  }\n\n  const handlers = getCacheHandlers()\n  const promises: Promise<void>[] = []\n\n  // Group tags by profile for batch processing\n  const tagsByProfile = new Map<\n    | string\n    | { stale?: number; revalidate?: number; expire?: number }\n    | undefined,\n    string[]\n  >()\n\n  for (const item of tagsWithProfile) {\n    const profile = item.profile\n    // Find existing profile by comparing values\n    let existingKey = undefined\n    for (const [key] of tagsByProfile) {\n      if (\n        typeof key === 'string' &&\n        typeof profile === 'string' &&\n        key === profile\n      ) {\n        existingKey = key\n        break\n      }\n      if (\n        typeof key === 'object' &&\n        typeof profile === 'object' &&\n        JSON.stringify(key) === JSON.stringify(profile)\n      ) {\n        existingKey = key\n        break\n      }\n      if (key === profile) {\n        existingKey = key\n        break\n      }\n    }\n\n    const profileKey = existingKey || profile\n    if (!tagsByProfile.has(profileKey)) {\n      tagsByProfile.set(profileKey, [])\n    }\n    tagsByProfile.get(profileKey)!.push(item.tag)\n  }\n\n  // Process each profile group\n  for (const [profile, tagsForProfile] of tagsByProfile) {\n    // Look up the cache profile from workStore if available\n    let durations: { expire?: number } | undefined\n\n    if (profile) {\n      let cacheLife:\n        | { stale?: number; revalidate?: number; expire?: number }\n        | undefined\n\n      if (typeof profile === 'object') {\n        // Profile is already a cacheLife configuration object\n        cacheLife = profile\n      } else if (typeof profile === 'string') {\n        // Profile is a string key, look it up in workStore\n        cacheLife = workStore?.cacheLifeProfiles[profile]\n\n        if (!cacheLife) {\n          throw new Error(\n            `Invalid profile provided \"${profile}\" must be configured under cacheLife in next.config or be \"max\"`\n          )\n        }\n      }\n\n      if (cacheLife) {\n        durations = {\n          expire: cacheLife.expire,\n        }\n      }\n    }\n    // If profile is not found and not 'max', durations will be undefined\n    // which will trigger immediate expiration in the cache handler\n\n    for (const handler of handlers || []) {\n      if (profile) {\n        promises.push(handler.updateTags?.(tagsForProfile, durations))\n      } else {\n        promises.push(handler.updateTags?.(tagsForProfile))\n      }\n    }\n\n    if (incrementalCache) {\n      promises.push(incrementalCache.revalidateTag(tagsForProfile, durations))\n    }\n  }\n\n  await Promise.all(promises)\n}\n\nexport function executeRevalidates(\n  workStore: WorkStore,\n  state?: RevalidationState\n): false | Promise<void> {\n  const promises: Promise<unknown>[] = []\n\n  const pendingRevalidatedTags =\n    state?.pendingRevalidatedTags ?? workStore.pendingRevalidatedTags ?? []\n\n  if (pendingRevalidatedTags.length > 0) {\n    promises.push(\n      revalidateTags(\n        pendingRevalidatedTags,\n        workStore.incrementalCache,\n        workStore\n      )\n    )\n  }\n\n  const pendingRevalidates = Object.values(\n    state?.pendingRevalidates ?? workStore.pendingRevalidates ?? {}\n  )\n\n  promises.push(...pendingRevalidates)\n\n  const pendingRevalidateWrites =\n    state?.pendingRevalidateWrites ?? workStore.pendingRevalidateWrites ?? []\n\n  promises.push(...pendingRevalidateWrites)\n\n  if (promises.length === 0) {\n    return false\n  }\n\n  return Promise.all(promises).then(() => undefined)\n}\n","import type { AsyncLocalStorage } from 'async_hooks'\n\nconst sharedAsyncLocalStorageNotAvailableError = new Error(\n  'Invariant: AsyncLocalStorage accessed in runtime where it is not available'\n)\n\nclass FakeAsyncLocalStorage<Store extends {}>\n  implements AsyncLocalStorage<Store>\n{\n  disable(): void {\n    throw sharedAsyncLocalStorageNotAvailableError\n  }\n\n  getStore(): Store | undefined {\n    // This fake implementation of AsyncLocalStorage always returns `undefined`.\n    return undefined\n  }\n\n  run<R>(): R {\n    throw sharedAsyncLocalStorageNotAvailableError\n  }\n\n  exit<R>(): R {\n    throw sharedAsyncLocalStorageNotAvailableError\n  }\n\n  enterWith(): void {\n    throw sharedAsyncLocalStorageNotAvailableError\n  }\n\n  static bind<T>(fn: T): T {\n    return fn\n  }\n}\n\nconst maybeGlobalAsyncLocalStorage =\n  typeof globalThis !== 'undefined' && (globalThis as any).AsyncLocalStorage\n\nexport function createAsyncLocalStorage<\n  Store extends {},\n>(): AsyncLocalStorage<Store> {\n  if (maybeGlobalAsyncLocalStorage) {\n    return new maybeGlobalAsyncLocalStorage()\n  }\n  return new FakeAsyncLocalStorage()\n}\n\nexport function bindSnapshot<T>(\n  // WARNING: Don't pass a named function to this argument! See: https://github.com/facebook/react/pull/34911\n  fn: T\n): T {\n  if (maybeGlobalAsyncLocalStorage) {\n    return maybeGlobalAsyncLocalStorage.bind(fn)\n  }\n  return FakeAsyncLocalStorage.bind(fn)\n}\n\nexport function createSnapshot(): <R, TArgs extends any[]>(\n  fn: (...args: TArgs) => R,\n  ...args: TArgs\n) => R {\n  if (maybeGlobalAsyncLocalStorage) {\n    return maybeGlobalAsyncLocalStorage.snapshot()\n  }\n  return function (fn: any, ...args: any[]) {\n    return fn(...args)\n  }\n}\n","import PromiseQueue from 'next/dist/compiled/p-queue'\nimport type { RequestLifecycleOpts } from '../base-server'\nimport type { AfterCallback, AfterTask } from './after'\nimport { InvariantError } from '../../shared/lib/invariant-error'\nimport { isThenable } from '../../shared/lib/is-thenable'\nimport { workAsyncStorage } from '../app-render/work-async-storage.external'\nimport { withExecuteRevalidates } from '../revalidation-utils'\nimport { bindSnapshot } from '../app-render/async-local-storage'\nimport type { WorkUnitStore } from '../app-render/work-unit-async-storage.external'\nimport { afterTaskAsyncStorage } from '../app-render/after-task-async-storage.external'\nimport { scheduleImmediate } from '../../lib/scheduler'\n\nexport type AfterContextOpts = {\n  waitUntil: RequestLifecycleOpts['waitUntil'] | undefined\n  onClose: RequestLifecycleOpts['onClose']\n  onTaskError: RequestLifecycleOpts['onAfterTaskError'] | undefined\n}\n\nexport class AfterContext {\n  private waitUntil: RequestLifecycleOpts['waitUntil'] | undefined\n  private onClose: RequestLifecycleOpts['onClose']\n  private onTaskError: RequestLifecycleOpts['onAfterTaskError'] | undefined\n\n  private isRequestClosed: boolean = false\n  private initialOnCloseError: null | { error: unknown } = null\n\n  private runCallbacksOnClosePromise: Promise<void> | undefined\n  private callbackQueue: PromiseQueue\n  private workUnitStores = new Set<WorkUnitStore>()\n\n  constructor({ waitUntil, onClose, onTaskError }: AfterContextOpts) {\n    this.waitUntil = waitUntil\n    this.onClose = onClose\n    this.onTaskError = onTaskError\n\n    this.callbackQueue = new PromiseQueue()\n    this.callbackQueue.pause()\n\n    try {\n      onClose(() => {\n        this.isRequestClosed = true\n\n        // TODO(after): it's not ideal that we'll only switch the `phase` of a WorkUnitStore\n        // if `after()` was called inside it. We should probably track this whenever a store is created\n        for (const workUnitStore of this.workUnitStores) {\n          workUnitStore.phase = 'after'\n        }\n      })\n    } catch (err) {\n      // If onClose is broken, report errors lazily, when after() is called.\n      this.initialOnCloseError = { error: err }\n    }\n  }\n\n  public after(task: AfterTask, workUnitStore: WorkUnitStore): void {\n    if (this.initialOnCloseError) {\n      throw new InvariantError(\n        `An onClose call failed, which means after() can't work correctly.`,\n        { cause: this.initialOnCloseError.error }\n      )\n    }\n\n    // Save the workUnitStore so we can switch its phase later.\n    this.workUnitStores.add(workUnitStore)\n\n    if (isThenable(task)) {\n      this.addThenable(task)\n    } else if (typeof task === 'function') {\n      // TODO(after): implement tracing\n      this.addCallback(task, workUnitStore)\n    } else {\n      throw new Error('`after()`: Argument must be a promise or a function')\n    }\n  }\n\n  private addThenable(thenable: PromiseLike<any>) {\n    if (!this.waitUntil) {\n      errorWaitUntilNotAvailable()\n    }\n    this.waitUntil(\n      new Promise<void>((resolve) => {\n        thenable.then(\n          () => {\n            resolve()\n          },\n          (error) => {\n            resolve()\n            this.reportTaskError('promise', error)\n          }\n        )\n      })\n    )\n  }\n\n  private addCallback(callback: AfterCallback, workUnitStore: WorkUnitStore) {\n    // if something is wrong, throw synchronously, bubbling up to the `after` callsite.\n    if (!this.waitUntil) {\n      errorWaitUntilNotAvailable()\n    }\n\n    const afterTaskStore = afterTaskAsyncStorage.getStore()\n\n    // This is used for checking if request APIs can be called inside `after`.\n    // Note that we need to check the phase in which the *topmost* `after` was called (which should be \"action\"),\n    // not the current phase (which might be \"after\" if we're in a nested after).\n    // Otherwise, we might allow `after(() => headers())`, but not `after(() => after(() => headers()))`.\n    const rootTaskSpawnPhase = afterTaskStore\n      ? afterTaskStore.rootTaskSpawnPhase // nested after\n      : workUnitStore.phase // topmost after\n\n    // this should only happen once.\n    if (!this.runCallbacksOnClosePromise) {\n      this.runCallbacksOnClosePromise = this.runCallbacksOnClose()\n      this.waitUntil(this.runCallbacksOnClosePromise)\n    }\n\n    // Bind the callback to the current execution context (i.e. preserve all currently available ALS-es).\n    // We do this because we want all of these to be equivalent in every regard except timing:\n    //   after(() => x())\n    //   after(x())\n    //   await x()\n    const wrappedCallback = bindSnapshot(\n      // WARNING: Don't make this a named function. It must be anonymous.\n      // See: https://github.com/facebook/react/pull/34911\n      async () => {\n        try {\n          await afterTaskAsyncStorage.run({ rootTaskSpawnPhase }, () =>\n            callback()\n          )\n        } catch (error) {\n          this.reportTaskError('function', error)\n        }\n      }\n    )\n\n    this.callbackQueue.add(wrappedCallback)\n  }\n\n  private async runCallbacksOnClose() {\n    if (!this.isRequestClosed) {\n      await new Promise<void>((resolve) => this.onClose(resolve))\n    } else {\n      // The request is already closed.\n      // Avoid running the callbacks too quickly to prevent userspace from\n      // e.g. relying on `after` being microtasky somewhere.\n      await new Promise<void>((resolve) => scheduleImmediate(resolve))\n    }\n    return this.runCallbacks()\n  }\n\n  private async runCallbacks(): Promise<void> {\n    if (this.callbackQueue.size === 0) return\n\n    const workStore = workAsyncStorage.getStore()\n    if (!workStore) {\n      throw new InvariantError('Missing workStore in AfterContext.runCallbacks')\n    }\n\n    return withExecuteRevalidates(workStore, () => {\n      this.callbackQueue.start()\n      return this.callbackQueue.onIdle()\n    })\n  }\n\n  private reportTaskError(taskKind: 'promise' | 'function', error: unknown) {\n    // TODO(after): this is fine for now, but will need better intergration with our error reporting.\n    // TODO(after): should we log this if we have a onTaskError callback?\n    console.error(\n      taskKind === 'promise'\n        ? `A promise passed to \\`after()\\` rejected:`\n        : `An error occurred in a function passed to \\`after()\\`:`,\n      error\n    )\n    if (this.onTaskError) {\n      // this is very defensive, but we really don't want anything to blow up in an error handler\n      try {\n        this.onTaskError?.(error)\n      } catch (handlerError) {\n        console.error(\n          new InvariantError(\n            '`onTaskError` threw while handling an error thrown from an `after` task',\n            {\n              cause: handlerError,\n            }\n          )\n        )\n      }\n    }\n  }\n}\n\nfunction errorWaitUntilNotAvailable(): never {\n  throw new Error(\n    '`after()` will not work correctly, because `waitUntil` is not available in the current environment.'\n  )\n}\n","/**\n * Check to see if a value is Thenable.\n *\n * @param promise the maybe-thenable value\n * @returns true if the value is thenable\n */\nexport function isThenable<T = unknown>(\n  promise: Promise<T> | T\n): promise is Promise<T> {\n  return (\n    promise !== null &&\n    typeof promise === 'object' &&\n    'then' in promise &&\n    typeof promise.then === 'function'\n  )\n}\n","export type ScheduledFn<T = void> = () => T | PromiseLike<T>\nexport type SchedulerFn<T = void> = (cb: ScheduledFn<T>) => void\n\n/**\n * Schedules a function to be called on the next tick after the other promises\n * have been resolved.\n *\n * @param cb the function to schedule\n */\nexport const scheduleOnNextTick = (cb: ScheduledFn<void>) => {\n  // We use Promise.resolve().then() here so that the operation is scheduled at\n  // the end of the promise job queue, we then add it to the next process tick\n  // to ensure it's evaluated afterwards.\n  //\n  // This was inspired by the implementation of the DataLoader interface: https://github.com/graphql/dataloader/blob/d336bd15282664e0be4b4a657cb796f09bafbc6b/src/index.js#L213-L255\n  //\n  Promise.resolve().then(() => {\n    if (process.env.NEXT_RUNTIME === 'edge') {\n      setTimeout(cb, 0)\n    } else {\n      process.nextTick(cb)\n    }\n  })\n}\n\n/**\n * Schedules a function to be called using `setImmediate` or `setTimeout` if\n * `setImmediate` is not available (like in the Edge runtime).\n *\n * @param cb the function to schedule\n */\nexport const scheduleImmediate = (cb: ScheduledFn<void>): void => {\n  if (process.env.NEXT_RUNTIME === 'edge') {\n    setTimeout(cb, 0)\n  } else {\n    setImmediate(cb)\n  }\n}\n\n/**\n * returns a promise than resolves in a future task. There is no guarantee that the task it resolves in\n * will be the next task but if you await it you can at least be sure that the current task is over and\n * most usefully that the entire microtask queue of the current task has been emptied.\n */\nexport function atLeastOneTask() {\n  return new Promise<void>((resolve) => scheduleImmediate(resolve))\n}\n\n/**\n * This utility function is extracted to make it easier to find places where we are doing\n * specific timing tricks to try to schedule work after React has rendered. This is especially\n * important at the moment because Next.js uses the edge builds of React which use setTimeout to\n * schedule work when you might expect that something like setImmediate would do the trick.\n *\n * Long term we should switch to the node versions of React rendering when possible and then\n * update this to use setImmediate rather than setTimeout\n */\nexport function waitAtLeastOneReactRenderTask(): Promise<void> {\n  if (process.env.NEXT_RUNTIME === 'edge') {\n    return new Promise((r) => setTimeout(r, 0))\n  } else {\n    return new Promise((r) => setImmediate(r))\n  }\n}\n","import MODERN_BROWSERSLIST_TARGET from './modern-browserslist-target'\n\nexport { MODERN_BROWSERSLIST_TARGET }\n\nexport type ValueOf<T> = Required<T>[keyof T]\n\nexport const COMPILER_NAMES = {\n  client: 'client',\n  server: 'server',\n  edgeServer: 'edge-server',\n} as const\n\nexport type CompilerNameValues = ValueOf<typeof COMPILER_NAMES>\n\nexport const COMPILER_INDEXES: {\n  [compilerKey in CompilerNameValues]: number\n} = {\n  [COMPILER_NAMES.client]: 0,\n  [COMPILER_NAMES.server]: 1,\n  [COMPILER_NAMES.edgeServer]: 2,\n} as const\n\n// Re-export entry constants for backward compatibility\nexport {\n  UNDERSCORE_NOT_FOUND_ROUTE,\n  UNDERSCORE_NOT_FOUND_ROUTE_ENTRY,\n  UNDERSCORE_GLOBAL_ERROR_ROUTE,\n  UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY,\n} from './entry-constants'\n\nexport enum AdapterOutputType {\n  /**\n   * `PAGES` represents all the React pages that are under `pages/`.\n   */\n  PAGES = 'PAGES',\n\n  /**\n   * `PAGES_API` represents all the API routes under `pages/api/`.\n   */\n  PAGES_API = 'PAGES_API',\n  /**\n   * `APP_PAGE` represents all the React pages that are under `app/` with the\n   * filename of `page.{j,t}s{,x}`.\n   */\n  APP_PAGE = 'APP_PAGE',\n\n  /**\n   * `APP_ROUTE` represents all the API routes and metadata routes that are under `app/` with the\n   * filename of `route.{j,t}s{,x}`.\n   */\n  APP_ROUTE = 'APP_ROUTE',\n\n  /**\n   * `PRERENDER` represents an ISR enabled route that might\n   * have a seeded cache entry or fallback generated during build\n   */\n  PRERENDER = 'PRERENDER',\n\n  /**\n   * `STATIC_FILE` represents a static file (ie /_next/static)\n   */\n  STATIC_FILE = 'STATIC_FILE',\n\n  /**\n   * `MIDDLEWARE` represents the middleware output if present\n   */\n  MIDDLEWARE = 'MIDDLEWARE',\n}\n\nexport const PHASE_EXPORT = 'phase-export'\nexport const PHASE_ANALYZE = 'phase-analyze'\nexport const PHASE_PRODUCTION_BUILD = 'phase-production-build'\nexport const PHASE_PRODUCTION_SERVER = 'phase-production-server'\nexport const PHASE_DEVELOPMENT_SERVER = 'phase-development-server'\nexport const PHASE_TEST = 'phase-test'\nexport const PHASE_INFO = 'phase-info'\n\nexport type PHASE_TYPE =\n  | typeof PHASE_INFO\n  | typeof PHASE_TEST\n  | typeof PHASE_EXPORT\n  | typeof PHASE_ANALYZE\n  | typeof PHASE_PRODUCTION_BUILD\n  | typeof PHASE_PRODUCTION_SERVER\n  | typeof PHASE_DEVELOPMENT_SERVER\n\nexport const PAGES_MANIFEST = 'pages-manifest.json'\nexport const APP_PATHS_MANIFEST = 'app-paths-manifest.json'\nexport const APP_PATH_ROUTES_MANIFEST = 'app-path-routes-manifest.json'\nexport const BUILD_MANIFEST = 'build-manifest.json'\nexport const FUNCTIONS_CONFIG_MANIFEST = 'functions-config-manifest.json'\nexport const SUBRESOURCE_INTEGRITY_MANIFEST = 'subresource-integrity-manifest'\nexport const NEXT_FONT_MANIFEST = 'next-font-manifest'\nexport const EXPORT_MARKER = 'export-marker.json'\nexport const EXPORT_DETAIL = 'export-detail.json'\nexport const PRERENDER_MANIFEST = 'prerender-manifest.json'\nexport const PREFETCH_HINTS = 'prefetch-hints.json'\nexport const ROUTES_MANIFEST = 'routes-manifest.json'\nexport const IMAGES_MANIFEST = 'images-manifest.json'\nexport const SERVER_FILES_MANIFEST = 'required-server-files'\nexport const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json'\nexport const REQUEST_INSIGHTS_DEV_ENDPOINT =\n  '/_next/development/request-insights'\nexport const MIDDLEWARE_MANIFEST = 'middleware-manifest.json'\nexport const TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST =\n  '_clientMiddlewareManifest.js'\nexport const TURBOPACK_CLIENT_BUILD_MANIFEST = 'client-build-manifest.json'\nexport const DEV_CLIENT_MIDDLEWARE_MANIFEST = '_devMiddlewareManifest.json'\nexport const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json'\nexport const SERVER_DIRECTORY = 'server'\nexport const CONFIG_FILES = [\n  'next.config.js',\n  'next.config.mjs',\n  'next.config.ts',\n  // process.features can be undefined on Edge runtime\n  // TODO: Remove `as any` once we bump @types/node to v22.10.0+\n  ...((process?.features as any)?.typescript ? ['next.config.mts'] : []),\n]\nexport const BUILD_ID_FILE = 'BUILD_ID'\nexport const BLOCKED_PAGES = ['/_document', '/_app', '/_error']\nexport const CLIENT_PUBLIC_FILES_PATH = 'public'\nexport const CLIENT_STATIC_FILES_PATH = 'static'\nexport const STRING_LITERAL_DROP_BUNDLE = '__NEXT_DROP_CLIENT_FILE__'\nexport const NEXT_BUILTIN_DOCUMENT = '__NEXT_BUILTIN_DOCUMENT__'\nexport const BARREL_OPTIMIZATION_PREFIX = '__barrel_optimize__'\n\n// server/[entry]/page_client-reference-manifest.js\nexport const CLIENT_REFERENCE_MANIFEST = 'client-reference-manifest'\n// server/server-reference-manifest\nexport const SERVER_REFERENCE_MANIFEST = 'server-reference-manifest'\n// server/middleware-build-manifest.js\nexport const MIDDLEWARE_BUILD_MANIFEST = 'middleware-build-manifest'\n// server/middleware-react-loadable-manifest.js\nexport const MIDDLEWARE_REACT_LOADABLE_MANIFEST =\n  'middleware-react-loadable-manifest'\n// server/interception-route-rewrite-manifest.js\nexport const INTERCEPTION_ROUTE_REWRITE_MANIFEST =\n  'interception-route-rewrite-manifest'\n// server/dynamic-css-manifest.js\nexport const DYNAMIC_CSS_MANIFEST = 'dynamic-css-manifest'\n\n// static/runtime/main.js\nexport const CLIENT_STATIC_FILES_RUNTIME_MAIN = `main`\nexport const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = `${CLIENT_STATIC_FILES_RUNTIME_MAIN}-app`\n// next internal client components chunk for layouts\nexport const APP_CLIENT_INTERNALS = 'app-pages-internals'\n// static/runtime/react-refresh.js\nexport const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = `react-refresh`\n// static/runtime/webpack.js\nexport const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = `webpack`\n// static/runtime/polyfills.js\nexport const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = 'polyfills'\nexport const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = Symbol(\n  CLIENT_STATIC_FILES_RUNTIME_POLYFILLS\n)\nexport const DEFAULT_RUNTIME_WEBPACK = 'webpack-runtime'\nexport const EDGE_RUNTIME_WEBPACK = 'edge-runtime-webpack'\nexport const STATIC_PROPS_ID = '__N_SSG'\nexport const SERVER_PROPS_ID = '__N_SSP'\nexport const DEFAULT_SERIF_FONT = {\n  name: 'Times New Roman',\n  xAvgCharWidth: 821,\n  azAvgWidth: 854.3953488372093,\n  unitsPerEm: 2048,\n}\nexport const DEFAULT_SANS_SERIF_FONT = {\n  name: 'Arial',\n  xAvgCharWidth: 904,\n  azAvgWidth: 934.5116279069767,\n  unitsPerEm: 2048,\n}\nexport const STATIC_STATUS_PAGES = ['/500']\nexport const TRACE_OUTPUT_VERSION = 1\n// in `MB`\nexport const TURBO_TRACE_DEFAULT_MEMORY_LIMIT = 6000\n\nexport const RSC_MODULE_TYPES = {\n  client: 'client',\n  server: 'server',\n} as const\n\n// comparing\n// https://nextjs.org/docs/api-reference/edge-runtime\n// with\n// https://nodejs.org/docs/latest/api/globals.html\nexport const EDGE_UNSUPPORTED_NODE_APIS = [\n  'clearImmediate',\n  'setImmediate',\n  'BroadcastChannel',\n  'ByteLengthQueuingStrategy',\n  'CompressionStream',\n  'CountQueuingStrategy',\n  'DecompressionStream',\n  'DomException',\n  'MessageChannel',\n  'MessageEvent',\n  'MessagePort',\n  'ReadableByteStreamController',\n  'ReadableStreamBYOBRequest',\n  'ReadableStreamDefaultController',\n  'TransformStreamDefaultController',\n  'WritableStreamDefaultController',\n]\n\nexport const SYSTEM_ENTRYPOINTS = new Set<string>([\n  CLIENT_STATIC_FILES_RUNTIME_MAIN,\n  CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,\n  CLIENT_STATIC_FILES_RUNTIME_MAIN_APP,\n])\n","export interface PathLocale {\n  detectedLocale?: string\n  pathname: string\n}\n\n/**\n * A cache of lowercased locales for each list of locales. This is stored as a\n * WeakMap so if the locales are garbage collected, the cache entry will be\n * removed as well.\n */\nconst cache = new WeakMap<readonly string[], readonly string[]>()\n\n/**\n * For a pathname that may include a locale from a list of locales, it\n * removes the locale from the pathname returning it alongside with the\n * detected locale.\n *\n * @param pathname A pathname that may include a locale.\n * @param locales A list of locales.\n * @returns The detected locale and pathname without locale\n */\nexport function normalizeLocalePath(\n  pathname: string,\n  locales?: readonly string[]\n): PathLocale {\n  // If locales is undefined, return the pathname as is.\n  if (!locales) return { pathname }\n\n  // Get the cached lowercased locales or create a new cache entry.\n  let lowercasedLocales = cache.get(locales)\n  if (!lowercasedLocales) {\n    lowercasedLocales = locales.map((locale) => locale.toLowerCase())\n    cache.set(locales, lowercasedLocales)\n  }\n\n  let detectedLocale: string | undefined\n\n  // The first segment will be empty, because it has a leading `/`. If\n  // there is no further segment, there is no locale (or it's the default).\n  const segments = pathname.split('/', 2)\n\n  // If there's no second segment (ie, the pathname is just `/`), there's no\n  // locale.\n  if (!segments[1]) return { pathname }\n\n  // The second segment will contain the locale part if any.\n  const segment = segments[1].toLowerCase()\n\n  // See if the segment matches one of the locales. If it doesn't, there is\n  // no locale (or it's the default).\n  const index = lowercasedLocales.indexOf(segment)\n  if (index < 0) return { pathname }\n\n  // Return the case-sensitive locale.\n  detectedLocale = locales[index]\n\n  // Remove the `/${locale}` part of the pathname.\n  pathname = pathname.slice(detectedLocale.length + 1) || '/'\n\n  return { pathname, detectedLocale }\n}\n","/**\n * For a given page path, this function ensures that there is a leading slash.\n * If there is not a leading slash, one is added, otherwise it is noop.\n */\nexport function ensureLeadingSlash(path: string) {\n  return path.startsWith('/') ? path : `/${path}`\n}\n","import { ensureLeadingSlash } from '../../page-path/ensure-leading-slash'\nimport { isGroupSegment } from '../../segment'\n\n/**\n * Normalizes an app route so it represents the actual request path. Essentially\n * performing the following transformations:\n *\n * - `/(dashboard)/user/[id]/page` to `/user/[id]`\n * - `/(dashboard)/account/page` to `/account`\n * - `/user/[id]/page` to `/user/[id]`\n * - `/account/page` to `/account`\n * - `/page` to `/`\n * - `/(dashboard)/user/[id]/route` to `/user/[id]`\n * - `/(dashboard)/account/route` to `/account`\n * - `/user/[id]/route` to `/user/[id]`\n * - `/account/route` to `/account`\n * - `/route` to `/`\n * - `/` to `/`\n *\n * @param route the app route to normalize\n * @returns the normalized pathname\n */\nexport function normalizeAppPath(route: string) {\n  return ensureLeadingSlash(\n    route.split('/').reduce((pathname, segment, index, segments) => {\n      // Empty segments are ignored.\n      if (!segment) {\n        return pathname\n      }\n\n      // Groups are ignored.\n      if (isGroupSegment(segment)) {\n        return pathname\n      }\n\n      // Parallel segments are ignored.\n      if (segment[0] === '@') {\n        return pathname\n      }\n\n      // The last segment (if it's a leaf) should be ignored.\n      if (\n        (segment === 'page' || segment === 'route') &&\n        index === segments.length - 1\n      ) {\n        return pathname\n      }\n\n      return `${pathname}/${segment}`\n    }, '')\n  )\n}\n\n/**\n * Comparator for sorting app paths so that parallel slot paths (containing\n * `/@`) come before the children/root page path. This ensures the last item\n * is always the children page, which is what `renderPageComponent` reads via\n * `appPaths[appPaths.length - 1]`.\n *\n * Without this, route group prefixes like `(group)` (char code 0x28) sort\n * before `@` (0x40), causing the children page to sort first instead of last\n * and leading to a manifest mismatch / 404 in webpack dev mode.\n */\nexport function compareAppPaths(a: string, b: string): number {\n  const aHasSlot = a.includes('/@')\n  const bHasSlot = b.includes('/@')\n  if (aHasSlot && !bHasSlot) return -1\n  if (!aHasSlot && bHasSlot) return 1\n  return a.localeCompare(b)\n}\n\n/**\n * Strips the `.rsc` extension if it's in the pathname.\n * Since this function is used on full urls it checks `?` for searchParams handling.\n */\nexport function normalizeRscURL(url: string) {\n  return url.replace(\n    /\\.rsc($|\\?)/,\n    // $1 ensures `?` is preserved\n    '$1'\n  )\n}\n","import type { FlightRouterState, Segment } from './app-router-types'\n\nexport function getSegmentValue(segment: Segment) {\n  return Array.isArray(segment) ? segment[1] : segment\n}\n\nexport function isGroupSegment(segment: string) {\n  // Use array[0] for performant purpose\n  return segment[0] === '(' && segment.endsWith(')')\n}\n\nexport function isParallelRouteSegment(segment: string) {\n  return segment.startsWith('@') && segment !== '@children'\n}\n\nexport function addSearchParamsIfPageSegment(\n  segment: Segment,\n  searchParams: Record<string, string | string[] | undefined>\n) {\n  const isPageSegment = segment.includes(PAGE_SEGMENT_KEY)\n\n  if (isPageSegment) {\n    const stringifiedQuery = JSON.stringify(searchParams)\n    return stringifiedQuery !== '{}'\n      ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery\n      : PAGE_SEGMENT_KEY\n  }\n\n  return segment\n}\n\nexport function computeSelectedLayoutSegment(\n  segments: string[] | null,\n  parallelRouteKey: string\n): string | null {\n  if (!segments || segments.length === 0) {\n    return null\n  }\n\n  // For 'children', use first segment; for other parallel routes, use last segment\n  const rawSegment =\n    parallelRouteKey === 'children'\n      ? segments[0]\n      : segments[segments.length - 1]\n\n  // If the default slot is showing, return null since it's not technically \"selected\" (it's a fallback)\n  // Returning an internal value like `__DEFAULT__` would be confusing\n  return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment\n}\n\n/** Get the canonical parameters from the current level to the leaf node. */\nexport function getSelectedLayoutSegmentPath(\n  tree: FlightRouterState,\n  parallelRouteKey: string,\n  first = true,\n  segmentPath: string[] = []\n): string[] {\n  let node: FlightRouterState\n  if (first) {\n    // Use the provided parallel route key on the first parallel route\n    node = tree[1][parallelRouteKey]\n  } else {\n    // After first parallel route prefer children, if there's no children pick the first parallel route.\n    const parallelRoutes = tree[1]\n    node = parallelRoutes.children ?? Object.values(parallelRoutes)[0]\n  }\n\n  if (!node) return segmentPath\n  const segment = node[0]\n\n  let segmentValue = getSegmentValue(segment)\n\n  if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {\n    return segmentPath\n  }\n\n  segmentPath.push(segmentValue)\n\n  return getSelectedLayoutSegmentPath(\n    node,\n    parallelRouteKey,\n    false,\n    segmentPath\n  )\n}\n\nexport const PAGE_SEGMENT_KEY = '__PAGE__'\nexport const DEFAULT_SEGMENT_KEY = '__DEFAULT__'\nexport const NOT_FOUND_SEGMENT_KEY = '/_not-found'\n","import { normalizeAppPath } from './app-paths'\n\n// order matters here, the first match will be used\nexport const INTERCEPTION_ROUTE_MARKERS = [\n  '(..)(..)',\n  '(.)',\n  '(..)',\n  '(...)',\n] as const\n\nexport type InterceptionMarker = (typeof INTERCEPTION_ROUTE_MARKERS)[number]\n\nexport function isInterceptionRouteAppPath(path: string): boolean {\n  // TODO-APP: add more serious validation\n  return (\n    path\n      .split('/')\n      .find((segment) =>\n        INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))\n      ) !== undefined\n  )\n}\n\ntype InterceptionRouteInformation = {\n  /**\n   * The intercepting route. This is the route that is being intercepted or the\n   * route that the user was coming from. This is matched by the Next-Url\n   * header.\n   */\n  interceptingRoute: string\n\n  /**\n   * The intercepted route. This is the route that is being intercepted or the\n   * route that the user is going to. This is matched by the request pathname.\n   */\n  interceptedRoute: string\n}\n\nexport function extractInterceptionRouteInformation(\n  path: string\n): InterceptionRouteInformation {\n  let interceptingRoute: string | undefined\n  let marker: (typeof INTERCEPTION_ROUTE_MARKERS)[number] | undefined\n  let interceptedRoute: string | undefined\n\n  for (const segment of path.split('/')) {\n    marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))\n    if (marker) {\n      ;[interceptingRoute, interceptedRoute] = path.split(marker, 2)\n      break\n    }\n  }\n\n  if (!interceptingRoute || !marker || !interceptedRoute) {\n    throw new Error(\n      `Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`\n    )\n  }\n\n  interceptingRoute = normalizeAppPath(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed\n\n  switch (marker) {\n    case '(.)':\n      // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route\n      if (interceptingRoute === '/') {\n        interceptedRoute = `/${interceptedRoute}`\n      } else {\n        interceptedRoute = interceptingRoute + '/' + interceptedRoute\n      }\n      break\n    case '(..)':\n      // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route\n      if (interceptingRoute === '/') {\n        throw new Error(\n          `Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`\n        )\n      }\n      interceptedRoute = interceptingRoute\n        .split('/')\n        .slice(0, -1)\n        .concat(interceptedRoute)\n        .join('/')\n      break\n    case '(...)':\n      // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route\n      interceptedRoute = '/' + interceptedRoute\n      break\n    case '(..)(..)':\n      // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route\n\n      const splitInterceptingRoute = interceptingRoute.split('/')\n      if (splitInterceptingRoute.length <= 2) {\n        throw new Error(\n          `Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`\n        )\n      }\n\n      interceptedRoute = splitInterceptingRoute\n        .slice(0, -2)\n        .concat(interceptedRoute)\n        .join('/')\n      break\n    default:\n      throw new Error('Invariant: unexpected marker')\n  }\n\n  return { interceptingRoute, interceptedRoute }\n}\n","import {\n  extractInterceptionRouteInformation,\n  isInterceptionRouteAppPath,\n} from './interception-routes'\n\n// Identify /.*[param].*/ in route string\nconst TEST_ROUTE = /\\/[^/]*\\[[^/]+\\][^/]*(?=\\/|$)/\n\n// Identify /[param]/ in route string\nconst TEST_STRICT_ROUTE = /\\/\\[[^/]+\\](?=\\/|$)/\n\n/**\n * Check if a route is dynamic.\n *\n * @param route - The route to check.\n * @param strict - Whether to use strict mode which prohibits segments with prefixes/suffixes (default: true).\n * @returns Whether the route is dynamic.\n */\nexport function isDynamicRoute(route: string, strict: boolean = true): boolean {\n  if (isInterceptionRouteAppPath(route)) {\n    route = extractInterceptionRouteInformation(route).interceptedRoute\n  }\n\n  if (strict) {\n    return TEST_STRICT_ROUTE.test(route)\n  }\n\n  return TEST_ROUTE.test(route)\n}\n","import type { HtmlProps } from './html-context.shared-runtime'\nimport type { ComponentType, JSX } from 'react'\nimport type { DomainLocale } from '../../server/config'\nimport type { Env } from '@next/env'\nimport type { IncomingMessage, ServerResponse } from 'http'\nimport type { NextRouter } from './router/router'\nimport type { ParsedUrlQuery } from 'querystring'\nimport type { PreviewData } from '../../types'\nimport type { COMPILER_NAMES } from './constants'\nimport type fs from 'fs'\n\nexport type NextComponentType<\n  Context extends BaseContext = NextPageContext,\n  InitialProps = {},\n  Props = {},\n> = ComponentType<Props> & {\n  /**\n   * Used for initial page load data population. Data returned from `getInitialProps` is serialized when server rendered.\n   * Make sure to return plain `Object` without using `Date`, `Map`, `Set`.\n   * @param context Context of `page`\n   */\n  getInitialProps?(context: Context): InitialProps | Promise<InitialProps>\n}\n\nexport type DocumentType = NextComponentType<\n  DocumentContext,\n  DocumentInitialProps,\n  DocumentProps\n>\n\nexport type AppType<P = {}> = NextComponentType<\n  AppContextType,\n  P,\n  AppPropsType<any, P>\n>\n\nexport type AppTreeType = ComponentType<\n  AppInitialProps & { [name: string]: any }\n>\n\n/**\n * Web vitals provided to _app.reportWebVitals by Core Web Vitals plugin developed by Google Chrome team.\n * https://nextjs.org/blog/next-9-4#integrated-web-vitals-reporting\n */\nexport const WEB_VITALS = ['CLS', 'FCP', 'FID', 'INP', 'LCP', 'TTFB'] as const\nexport type NextWebVitalsMetric = {\n  id: string\n  startTime: number\n  value: number\n  attribution?: { [key: string]: unknown }\n} & (\n  | {\n      label: 'web-vital'\n      name: (typeof WEB_VITALS)[number]\n    }\n  | {\n      label: 'custom'\n      name:\n        | 'Next.js-hydration'\n        | 'Next.js-route-change-to-render'\n        | 'Next.js-render'\n    }\n)\n\nexport type Enhancer<C> = (Component: C) => C\n\nexport type ComponentsEnhancer =\n  | {\n      enhanceApp?: Enhancer<AppType>\n      enhanceComponent?: Enhancer<NextComponentType>\n    }\n  | Enhancer<NextComponentType>\n\nexport type RenderPageResult = {\n  html: string\n  head?: Array<JSX.Element | null>\n}\n\nexport type RenderPage = (\n  options?: ComponentsEnhancer\n) => DocumentInitialProps | Promise<DocumentInitialProps>\n\nexport type BaseContext = {\n  res?: ServerResponse\n  [k: string]: any\n}\n\nexport type NEXT_DATA = {\n  props: Record<string, any>\n  page: string\n  query: ParsedUrlQuery\n  buildId: string\n  assetPrefix?: string\n  nextExport?: boolean\n  autoExport?: boolean\n  isFallback?: boolean\n  isExperimentalCompile?: boolean\n  dynamicIds?: (string | number)[]\n  err?: Error & {\n    statusCode?: number\n    source?: typeof COMPILER_NAMES.server | typeof COMPILER_NAMES.edgeServer\n    __NEXT_ERROR_CODE?: string\n  }\n  gsp?: boolean\n  gssp?: boolean\n  customServer?: boolean\n  gip?: boolean\n  appGip?: boolean\n  locale?: string\n  locales?: readonly string[]\n  defaultLocale?: string\n  domainLocales?: readonly DomainLocale[]\n  scriptLoader?: any[]\n  isPreview?: boolean\n  notFoundSrcPage?: string\n}\n\n/**\n * `Next` context\n */\nexport interface NextPageContext {\n  /**\n   * Error object if encountered during rendering\n   */\n  err?: (Error & { statusCode?: number }) | null\n  /**\n   * `HTTP` request object.\n   */\n  req?: IncomingMessage\n  /**\n   * `HTTP` response object.\n   */\n  res?: ServerResponse\n  /**\n   * Path section of `URL`.\n   */\n  pathname: string\n  /**\n   * Query string section of `URL` parsed as an object.\n   */\n  query: ParsedUrlQuery\n  /**\n   * `String` of the actual path including query.\n   */\n  asPath?: string\n  /**\n   * The currently active locale\n   */\n  locale?: string\n  /**\n   * All configured locales\n   */\n  locales?: readonly string[]\n  /**\n   * The configured default locale\n   */\n  defaultLocale?: string\n  /**\n   * `Component` the tree of the App to use if needing to render separately\n   */\n  AppTree: AppTreeType\n}\n\nexport type AppContextType<Router extends NextRouter = NextRouter> = {\n  Component: NextComponentType<NextPageContext>\n  AppTree: AppTreeType\n  ctx: NextPageContext\n  router: Router\n}\n\nexport type AppInitialProps<PageProps = any> = {\n  pageProps: PageProps\n}\n\nexport type AppPropsType<\n  Router extends NextRouter = NextRouter,\n  PageProps = {},\n> = AppInitialProps<PageProps> & {\n  Component: NextComponentType<NextPageContext, any, any>\n  router: Router\n  __N_SSG?: boolean\n  __N_SSP?: boolean\n}\n\nexport type DocumentContext = NextPageContext & {\n  renderPage: RenderPage\n  defaultGetInitialProps(\n    ctx: DocumentContext,\n    options?: { nonce?: string }\n  ): Promise<DocumentInitialProps>\n}\n\nexport type DocumentInitialProps = RenderPageResult & {\n  styles?: React.ReactElement[] | Iterable<React.ReactNode> | JSX.Element\n}\n\nexport type DocumentProps = DocumentInitialProps & HtmlProps\n\n/**\n * Next `API` route request\n */\nexport interface NextApiRequest extends IncomingMessage {\n  /**\n   * Object of `query` values from url\n   */\n  query: Partial<{\n    [key: string]: string | string[]\n  }>\n  /**\n   * Object of `cookies` from header\n   */\n  cookies: Partial<{\n    [key: string]: string\n  }>\n\n  body: any\n\n  env: Env\n\n  draftMode?: boolean\n\n  preview?: boolean\n  /**\n   * Preview data set on the request, if any\n   * */\n  previewData?: PreviewData\n}\n\n/**\n * Send body of response\n */\ntype Send<T> = (body: T) => void\n\n/**\n * Next `API` route response\n */\nexport type NextApiResponse<Data = any> = ServerResponse & {\n  /**\n   * Send data `any` data in response\n   */\n  send: Send<Data>\n  /**\n   * Send data `json` data in response\n   */\n  json: Send<Data>\n  status: (statusCode: number) => NextApiResponse<Data>\n  redirect(url: string): NextApiResponse<Data>\n  redirect(status: number, url: string): NextApiResponse<Data>\n\n  /**\n   * Set draft mode\n   */\n  setDraftMode: (options: { enable: boolean }) => NextApiResponse<Data>\n\n  /**\n   * Set preview data for Next.js' prerender mode\n   */\n  setPreviewData: (\n    data: object | string,\n    options?: {\n      /**\n       * Specifies the number (in seconds) for the preview session to last for.\n       * The given number will be converted to an integer by rounding down.\n       * By default, no maximum age is set and the preview session finishes\n       * when the client shuts down (browser is closed).\n       */\n      maxAge?: number\n      /**\n       * Specifies the path for the preview session to work under. By default,\n       * the path is considered the \"default path\", i.e., any pages under \"/\".\n       */\n      path?: string\n    }\n  ) => NextApiResponse<Data>\n\n  /**\n   * Clear preview data for Next.js' prerender mode\n   */\n  clearPreviewData: (options?: { path?: string }) => NextApiResponse<Data>\n\n  /**\n   * Revalidate a specific page and regenerate it using On-Demand Incremental\n   * Static Regeneration.\n   * The path should be an actual path, not a rewritten path. E.g. for\n   * \"/blog/[slug]\" this should be \"/blog/post-1\".\n   * @link https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#on-demand-revalidation-with-revalidatepath\n   */\n  revalidate: (\n    urlPath: string,\n    opts?: {\n      unstable_onlyGenerated?: boolean\n    }\n  ) => Promise<void>\n}\n\n/**\n * Next `API` route handler\n */\nexport type NextApiHandler<T = any> = (\n  req: NextApiRequest,\n  res: NextApiResponse<T>\n) => unknown | Promise<unknown>\n\n/**\n * Utils\n */\nexport function execOnce<T extends (...args: any[]) => ReturnType<T>>(\n  fn: T\n): T {\n  let used = false\n  let result: ReturnType<T>\n\n  return ((...args: any[]) => {\n    if (!used) {\n      used = true\n      result = fn(...args)\n    }\n    return result\n  }) as T\n}\n\n// Scheme: https://tools.ietf.org/html/rfc3986#section-3.1\n// Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3\nconst ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\\d+\\-.]*?:/\nexport const isAbsoluteUrl = (url: string) => {\n  // Fast path: an absolute URL must start with a letter (the scheme).\n  // Check for a-z and A-Z without the cost of the regex.\n  const c = url.charCodeAt(0)\n  const isLetter =\n    (c >= 65 /* A */ && c <= 90) /* Z */ ||\n    (c >= 97 /* a */ && c <= 122) /* z */\n  if (!isLetter) {\n    return false\n  }\n\n  return ABSOLUTE_URL_REGEX.test(url)\n}\n\nexport function getLocationOrigin() {\n  const { protocol, hostname, port } = window.location\n  return `${protocol}//${hostname}${port ? ':' + port : ''}`\n}\n\nexport function getURL() {\n  const { href } = window.location\n  const origin = getLocationOrigin()\n  return href.substring(origin.length)\n}\n\nexport function getDisplayName<P>(Component: ComponentType<P>) {\n  return typeof Component === 'string'\n    ? Component\n    : Component.displayName || Component.name || 'Unknown'\n}\n\nexport function isResSent(res: ServerResponse) {\n  return res.finished || res.headersSent\n}\n\nexport function normalizeRepeatedSlashes(url: string) {\n  const urlParts = url.split('?')\n  const urlNoQuery = urlParts[0]\n\n  return (\n    urlNoQuery\n      // first we replace any non-encoded backslashes with forward\n      // then normalize repeated forward slashes\n      .replace(/\\\\/g, '/')\n      .replace(/\\/\\/+/g, '/') +\n    (urlParts[1] ? `?${urlParts.slice(1).join('?')}` : '')\n  )\n}\n\nexport async function loadGetInitialProps<\n  C extends BaseContext,\n  IP = {},\n  P = {},\n>(App: NextComponentType<C, IP, P>, ctx: C): Promise<IP> {\n  if (process.env.NODE_ENV !== 'production') {\n    if (App.prototype?.getInitialProps) {\n      const message = `\"${getDisplayName(\n        App\n      )}.getInitialProps()\" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`\n      throw new Error(message)\n    }\n  }\n  // when called from _app `ctx` is nested in `ctx`\n  const res = ctx.res || (ctx.ctx && ctx.ctx.res)\n\n  if (!App.getInitialProps) {\n    if (ctx.ctx && ctx.Component) {\n      // @ts-ignore pageProps default\n      return {\n        pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx),\n      }\n    }\n    return {} as IP\n  }\n\n  const props = await App.getInitialProps(ctx)\n\n  if (res && isResSent(res)) {\n    return props\n  }\n\n  if (!props) {\n    const message = `\"${getDisplayName(\n      App\n    )}.getInitialProps()\" should resolve to an object. But found \"${props}\" instead.`\n    throw new Error(message)\n  }\n\n  if (process.env.NODE_ENV !== 'production') {\n    if (Object.keys(props).length === 0 && !ctx.ctx) {\n      console.warn(\n        `${getDisplayName(\n          App\n        )} returned an empty object from \\`getInitialProps\\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`\n      )\n    }\n  }\n\n  return props\n}\n\nexport const SP = typeof performance !== 'undefined'\nexport const ST =\n  SP &&\n  (['mark', 'measure', 'getEntriesByName'] as const).every(\n    (method) => typeof performance[method] === 'function'\n  )\n\nexport class DecodeError extends Error {}\nexport class NormalizeError extends Error {}\nexport class PageNotFoundError extends Error {\n  code: string\n\n  constructor(page: string) {\n    super()\n    this.code = 'ENOENT'\n    this.name = 'PageNotFoundError'\n    this.message = `Cannot find module for page: ${page}`\n  }\n}\n\nexport class MissingStaticPage extends Error {\n  constructor(page: string, message: string) {\n    super()\n    this.message = `Failed to load static file for page: ${page} ${message}`\n  }\n}\n\nexport class MiddlewareNotFoundError extends Error {\n  code: string\n  constructor() {\n    super()\n    this.code = 'ENOENT'\n    this.message = `Cannot find the middleware module`\n  }\n}\n\nexport interface CacheFs {\n  existsSync: typeof fs.existsSync\n  readFile: typeof fs.promises.readFile\n  readFileSync: typeof fs.readFileSync\n  writeFile(f: string, d: any): Promise<void>\n  mkdir(dir: string): Promise<void | string>\n  stat(f: string): Promise<{ mtime: Date }>\n}\n\nexport function stringifyError(error: Error) {\n  return JSON.stringify({ message: error.message, stack: error.stack })\n}\n","import { ensureLeadingSlash } from './ensure-leading-slash'\nimport { isDynamicRoute } from '../router/utils'\nimport { NormalizeError } from '../utils'\n\n/**\n * Takes a page and transforms it into its file counterpart ensuring that the\n * output is normalized. Note this function is not idempotent because a page\n * `/index` can be referencing `/index/index.js` and `/index/index` could be\n * referencing `/index/index/index.js`. Examples:\n *  - `/` -> `/index`\n *  - `/index/foo` -> `/index/index/foo`\n *  - `/index` -> `/index/index`\n */\nexport function normalizePagePath(page: string): string {\n  const normalized =\n    /^\\/index(\\/|$)/.test(page) && !isDynamicRoute(page)\n      ? `/index${page}`\n      : page === '/'\n        ? '/index'\n        : ensureLeadingSlash(page)\n\n  if (process.env.NEXT_RUNTIME !== 'edge') {\n    const { posix } = require('path') as typeof import('path')\n    const resolvedPage = posix.normalize(normalized)\n    if (resolvedPage !== normalized) {\n      throw new NormalizeError(\n        `Requested and resolved page mismatch: ${normalized} ${resolvedPage}`\n      )\n    }\n  }\n\n  return normalized\n}\n","/**\n * For a given page path, this function ensures that there is no backslash\n * escaping slashes in the path. Example:\n *  - `foo\\/bar\\/baz` -> `foo/bar/baz`\n */\nexport function normalizePathSep(path: string): string {\n  return path.replace(/\\\\/g, '/')\n}\n","import path from 'path'\nimport {\n  PAGES_MANIFEST,\n  SERVER_DIRECTORY,\n  APP_PATHS_MANIFEST,\n} from '../shared/lib/constants'\nimport { normalizeLocalePath } from '../shared/lib/i18n/normalize-locale-path'\nimport { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'\nimport { denormalizePagePath } from '../shared/lib/page-path/denormalize-page-path'\nimport type { PagesManifest } from '../build/webpack/plugins/pages-manifest-plugin'\nimport { PageNotFoundError, MissingStaticPage } from '../shared/lib/utils'\nimport { LRUCache } from '../server/lib/lru-cache'\nimport { loadManifest } from './load-manifest.external'\nimport { promises } from 'fs'\n\nconst isDev = process.env.NODE_ENV === 'development'\nconst pagePathCache = !isDev ? new LRUCache<string | null>(1000) : null\n\nexport function getMaybePagePath(\n  page: string,\n  distDir: string,\n  locales: readonly string[] | undefined,\n  isAppPath: boolean\n): string | null {\n  const cacheKey = `${page}:${distDir}:${locales}:${isAppPath}`\n\n  let pagePath = pagePathCache?.get(cacheKey)\n\n  // If we have a cached path, we can return it directly.\n  if (pagePath) return pagePath\n\n  const serverBuildPath = path.join(\n    /* turbopackIgnore: true */ distDir,\n    SERVER_DIRECTORY\n  )\n  let appPathsManifest: undefined | PagesManifest\n\n  if (isAppPath) {\n    appPathsManifest = loadManifest(\n      path.join(\n        /* turbopackIgnore: true */ serverBuildPath,\n        APP_PATHS_MANIFEST\n      ),\n      !isDev\n    ) as PagesManifest\n  }\n  const pagesManifest = loadManifest(\n    path.join(/* turbopackIgnore: true */ serverBuildPath, PAGES_MANIFEST),\n    !isDev\n  ) as PagesManifest\n\n  try {\n    page = denormalizePagePath(normalizePagePath(page))\n  } catch (err) {\n    console.error(err)\n    throw new PageNotFoundError(page)\n  }\n\n  const checkManifest = (manifest: PagesManifest) => {\n    let curPath = manifest[page]\n\n    if (!manifest[curPath] && locales) {\n      const manifestNoLocales: typeof pagesManifest = {}\n\n      for (const key of Object.keys(manifest)) {\n        manifestNoLocales[normalizeLocalePath(key, locales).pathname] =\n          pagesManifest[key]\n      }\n      curPath = manifestNoLocales[page]\n    }\n    return curPath\n  }\n\n  if (appPathsManifest) {\n    pagePath = checkManifest(appPathsManifest)\n  }\n\n  if (!pagePath) {\n    pagePath = checkManifest(pagesManifest)\n  }\n\n  if (!pagePath) {\n    pagePathCache?.set(cacheKey, null)\n    return null\n  }\n\n  // Handle absolute paths (e.g., built-in components)\n  if (path.isAbsolute(pagePath)) {\n    // Use the absolute path as-is\n    pagePathCache?.set(cacheKey, pagePath)\n    return pagePath\n  }\n\n  pagePath = path.join(/* turbopackIgnore: true */ serverBuildPath, pagePath)\n\n  pagePathCache?.set(cacheKey, pagePath)\n  return pagePath\n}\n\nexport function getPagePath(\n  page: string,\n  distDir: string,\n  locales: string[] | undefined,\n  isAppPath: boolean\n): string {\n  const pagePath = getMaybePagePath(page, distDir, locales, isAppPath)\n\n  if (!pagePath) {\n    throw new PageNotFoundError(page)\n  }\n\n  return pagePath\n}\n\nexport async function requirePage(\n  page: string,\n  distDir: string,\n  isAppPath: boolean\n): Promise<any> {\n  const pagePath = getPagePath(page, distDir, undefined, isAppPath)\n  if (pagePath.endsWith('.html')) {\n    return promises\n      .readFile(/* turbopackIgnore: true */ pagePath, 'utf8')\n      .catch((err) => {\n        throw new MissingStaticPage(page, err.message)\n      })\n  }\n\n  const mod = process.env.NEXT_MINIMAL\n    ? // @ts-ignore\n      __non_webpack_require__(pagePath)\n    : require(/* turbopackIgnore: true */ pagePath)\n  return mod\n}\n","import { isDynamicRoute } from '../router/utils'\nimport { normalizePathSep } from './normalize-path-sep'\n\n/**\n * Performs the opposite transformation of `normalizePagePath`. Note that\n * this function is not idempotent either in cases where there are multiple\n * leading `/index` for the page. Examples:\n *  - `/index` -> `/`\n *  - `/index/foo` -> `/foo`\n *  - `/index/index` -> `/index`\n */\nexport function denormalizePagePath(page: string) {\n  let _page = normalizePathSep(page)\n  return _page.startsWith('/index/') && !isDynamicRoute(_page)\n    ? _page.slice(6)\n    : _page !== '/index'\n      ? _page\n      : '/'\n}\n","export function interopDefault<T>(mod: { default: T } | T): T {\n  // @ts-ignore\n  return mod.default || mod\n}\n","/**\n * Wait for a given number of milliseconds and then resolve.\n *\n * @param ms the number of milliseconds to wait\n */\nexport async function wait(ms: number) {\n  return new Promise((resolve) => setTimeout(resolve, ms))\n}\n","// This regex will have fast negatives meaning valid identifiers may not pass\n// this test. However this is only used during static generation to provide hints\n// about why a page bailed out of some or all prerendering and we can use bracket notation\n// for example while `ಠ_ಠ` is a valid identifier it's ok to print `searchParams['ಠ_ಠ']`\n// even if this would have been fine too `searchParams.ಠ_ಠ`\nconst isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/\n\nexport function describeStringPropertyAccess(target: string, prop: string) {\n  if (isDefinitelyAValidIdentifier.test(prop)) {\n    return `\\`${target}.${prop}\\``\n  }\n  return `\\`${target}[${JSON.stringify(prop)}]\\``\n}\n\nexport function describeHasCheckingStringProperty(\n  target: string,\n  prop: string\n) {\n  const stringifiedProp = JSON.stringify(prop)\n  return `\\`Reflect.has(${target}, ${stringifiedProp})\\`, \\`${stringifiedProp} in ${target}\\`, or similar`\n}\n\nexport const wellKnownProperties = new Set([\n  'hasOwnProperty',\n  'isPrototypeOf',\n  'propertyIsEnumerable',\n  'toString',\n  'valueOf',\n  'toLocaleString',\n\n  // Promise prototype\n  'then',\n  'catch',\n  'finally',\n\n  // React Promise extension\n  'status',\n  // 'value',\n  // 'error',\n\n  // React introspection\n  'displayName',\n  '_debugInfo',\n\n  // Common tested properties\n  'toJSON',\n  '$$typeof',\n  '__esModule',\n\n  // Tested by flight when checking for iterables\n  '@@iterator',\n])\n","import type { ActionManifest } from '../../build/webpack/plugins/flight-client-entry-plugin'\nimport type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin'\nimport type { DeepReadonly } from '../../shared/lib/deep-readonly'\nimport { InvariantError } from '../../shared/lib/invariant-error'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { pathHasPrefix } from '../../shared/lib/router/utils/path-has-prefix'\nimport { removePathPrefix } from '../../shared/lib/router/utils/remove-path-prefix'\nimport { mightBeServerReferenceId } from '../../shared/lib/server-reference-info'\nimport { wellKnownProperties } from '../../shared/lib/utils/reflect-utils'\nimport { workAsyncStorage } from './work-async-storage.external'\n\nexport interface ServerModuleMap {\n  readonly [name: string]: {\n    readonly id: string | number\n    readonly name: string\n    readonly chunks: Readonly<Array<string>> // currently not used\n    readonly async?: boolean\n  }\n}\n\nexport function getActionNotFoundError(actionId: string | null): Error {\n  return new Error(\n    `Failed to find Server Action${actionId ? ` \"${actionId}\"` : ''}. This request might be from an older or newer deployment.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action`\n  )\n}\n\nexport function getInvalidServerReferenceIdError(id: string): Error {\n  // `id` is arbitrary client-provided input. Unlike the not-found case, it has\n  // not passed the length gate and can reach this error via a malformed server\n  // reference in an action payload, so it may be of any length and contain\n  // control characters. `JSON.stringify` escapes newlines and quotes so it\n  // can't forge log lines, and truncating overly long ids prevents log\n  // flooding. Ids at or below the cap are logged in full so that we only add an\n  // ellipsis to ids that are meaningfully longer than the truncated length.\n  const encoded = JSON.stringify(\n    id.length > MAX_LOGGED_SERVER_REFERENCE_ID_LENGTH\n      ? id.slice(0, TRUNCATED_SERVER_REFERENCE_ID_LENGTH) + '…'\n      : id\n  )\n\n  return new Error(\n    `The Server Reference ID did not match the expected format. Received ${encoded}.\\nRead more: https://nextjs.org/docs/messages/failed-to-find-server-action`\n  )\n}\n\n// Ids at or below the cap are logged in full. Longer ids are truncated to the\n// shorter length and marked with an ellipsis, so the cap leaves headroom over\n// the truncated length rather than ellipsizing ids that are barely too long.\nconst MAX_LOGGED_SERVER_REFERENCE_ID_LENGTH = 100\nconst TRUNCATED_SERVER_REFERENCE_ID_LENGTH = 90\n\n// This is a global singleton that is, among other things, also used to\n// encode/decode bound args of server function closures. This can't be using a\n// AsyncLocalStorage as it might happen at the module level.\nconst MANIFESTS_SINGLETON = Symbol.for('next.server.manifests')\n\ninterface RegisteredClientReferenceManifest {\n  /**\n   * The page the manifest was registered with. Routes are normalized app paths,\n   * which is lossy (route groups, parallel slots and the trailing `/page` are\n   * stripped), so this is kept alongside for consumers that need to address the\n   * manifest on disk again rather than reversing the normalization.\n   */\n  readonly page: string\n  readonly clientReferenceManifest: DeepReadonly<ClientReferenceManifest>\n}\n\ninterface ManifestsSingleton {\n  readonly clientReferenceManifestsPerRoute: Map<\n    string,\n    RegisteredClientReferenceManifest\n  >\n  readonly proxiedClientReferenceManifest: DeepReadonly<ClientReferenceManifest>\n  serverActionsManifest: DeepReadonly<ActionManifest>\n  serverModuleMap: ServerModuleMap\n}\n\ntype GlobalThisWithManifests = typeof globalThis & {\n  [MANIFESTS_SINGLETON]?: ManifestsSingleton\n}\n\ntype ClientReferenceManifestMappingProp =\n  | 'clientModules'\n  | 'rscModuleMapping'\n  | 'edgeRscModuleMapping'\n  | 'ssrModuleMapping'\n  | 'edgeSSRModuleMapping'\n\nconst globalThisWithManifests = globalThis as GlobalThisWithManifests\n\nfunction createProxiedClientReferenceManifest(\n  clientReferenceManifestsPerRoute: Map<\n    string,\n    RegisteredClientReferenceManifest\n  >\n): DeepReadonly<ClientReferenceManifest> {\n  const createMappingProxy = (prop: ClientReferenceManifestMappingProp) => {\n    return new Proxy(\n      {},\n      {\n        get(_, id: string) {\n          const workStore = workAsyncStorage.getStore()\n\n          if (workStore) {\n            const currentManifest = clientReferenceManifestsPerRoute.get(\n              workStore.route\n            )?.clientReferenceManifest\n\n            if (currentManifest?.[prop][id]) {\n              return currentManifest[prop][id]\n            }\n\n            // In development, we also check all other manifests to see if the\n            // module exists there. This is to support a scenario where React's\n            // I/O tracking (dev-only) creates a connection from one page to\n            // another through an emitted async I/O node that references client\n            // components from the other page, e.g. in owner props.\n            // TODO: Maybe we need to add a `debugBundlerConfig` option to React\n            // to avoid this workaround. The current workaround has the\n            // disadvantage that one might accidentally or intentionally share\n            // client references across pages (e.g. by storing them in a global\n            // variable), which would then only be caught in production.\n            if (process.env.NODE_ENV !== 'production') {\n              for (const [\n                route,\n                { page, clientReferenceManifest },\n              ] of clientReferenceManifestsPerRoute) {\n                if (route === workStore.route) {\n                  continue\n                }\n\n                const entry = clientReferenceManifest[prop][id]\n\n                if (entry !== undefined) {\n                  if (process.env.__NEXT_DEV_SERVER) {\n                    // The dev validation worker rebuilds this registry in its\n                    // own thread, seeded with only the route it validates, so\n                    // it has to be told which other manifests it needs.\n                    workStore.additionalClientReferenceManifestPages ??=\n                      new Set()\n                    workStore.additionalClientReferenceManifestPages.add(page)\n                  }\n\n                  return entry\n                }\n              }\n            }\n          } else {\n            // If there's no work store defined, we can assume that a client\n            // reference manifest is needed during module evaluation, e.g. to\n            // create a server function using a higher-order function. This\n            // might also use client components which need to be serialized by\n            // Flight, and therefore client references need to be resolvable. In\n            // that case we search all page manifests to find the module.\n            for (const {\n              clientReferenceManifest,\n            } of clientReferenceManifestsPerRoute.values()) {\n              const entry = clientReferenceManifest[prop][id]\n\n              if (entry !== undefined) {\n                return entry\n              }\n            }\n          }\n\n          return undefined\n        },\n      }\n    )\n  }\n\n  const mappingProxies = new Map<\n    ClientReferenceManifestMappingProp,\n    ReturnType<typeof createMappingProxy>\n  >()\n\n  return new Proxy(\n    {},\n    {\n      get(_, prop) {\n        const workStore = workAsyncStorage.getStore()\n\n        switch (prop) {\n          case 'moduleLoading':\n          case 'entryCSSFiles':\n          case 'entryJSFiles': {\n            if (!workStore) {\n              throw new InvariantError(\n                `Cannot access \"${prop}\" without a work store.`\n              )\n            }\n\n            const registeredManifest = clientReferenceManifestsPerRoute.get(\n              workStore.route\n            )\n\n            if (!registeredManifest) {\n              throw new InvariantError(\n                `The client reference manifest for route \"${workStore.route}\" does not exist.`\n              )\n            }\n\n            return registeredManifest.clientReferenceManifest[prop]\n          }\n          case 'clientModules':\n          case 'rscModuleMapping':\n          case 'edgeRscModuleMapping':\n          case 'ssrModuleMapping':\n          case 'edgeSSRModuleMapping': {\n            let proxy = mappingProxies.get(prop)\n\n            if (!proxy) {\n              proxy = createMappingProxy(prop)\n              mappingProxies.set(prop, proxy)\n            }\n\n            return proxy\n          }\n          default: {\n            throw new InvariantError(\n              `This is a proxied client reference manifest. The property \"${String(prop)}\" is not handled.`\n            )\n          }\n        }\n      },\n    }\n  ) as DeepReadonly<ClientReferenceManifest>\n}\n\n/**\n * This function creates a Flight-acceptable server module map proxy from our\n * Server Reference Manifest similar to our client module map. This is because\n * our manifest contains a lot of internal Next.js data that are relevant to the\n * runtime, workers, etc. that React doesn't need to know.\n */\nfunction createServerModuleMap(): ServerModuleMap {\n  return new Proxy(Object.create(null) as ServerModuleMap, {\n    get: (target, id: string | symbol, receiver) => {\n      // React's debug serialization can probe the module map like a plain object.\n      // These probes are not server reference lookups.\n      if (typeof id !== 'string') {\n        return Reflect.get(target, id, receiver)\n      }\n\n      if (wellKnownProperties.has(id)) {\n        return Reflect.get(target, id, receiver)\n      }\n\n      if (!mightBeServerReferenceId(id)) {\n        throw getInvalidServerReferenceIdError(id)\n      }\n\n      const workers =\n        getServerActionsManifest()[\n          process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node'\n        ]?.[id]?.workers\n\n      if (!workers) {\n        throw getActionNotFoundError(id)\n      }\n\n      const workStore = workAsyncStorage.getStore()\n\n      let workerEntry: { moduleId: string | number; async: boolean } | undefined\n\n      if (workStore) {\n        workerEntry = workers[normalizeWorkerPageName(workStore.page)]\n      } else {\n        // If there's no work store defined, we can assume that a server\n        // module map is needed during module evaluation, e.g. to create a\n        // server action using a higher-order function. Therefore it should be\n        // safe to return any entry from the manifest that matches the action\n        // ID. They all refer to the same module ID, which must also exist in\n        // the current page bundle. TODO: This is currently not guaranteed in\n        // Turbopack, and needs to be fixed.\n        workerEntry = Object.values(workers).at(0)\n      }\n\n      if (!workerEntry) {\n        throw getActionNotFoundError(id)\n      }\n\n      const { moduleId, async } = workerEntry\n\n      return { id: moduleId, name: id, chunks: [], async }\n    },\n  })\n}\n\n/**\n * The flight entry loader keys actions by bundlePath. bundlePath corresponds\n * with the relative path (including 'app') to the page entrypoint.\n */\nfunction normalizeWorkerPageName(pageName: string) {\n  if (pathHasPrefix(pageName, 'app')) {\n    return pageName\n  }\n\n  return 'app' + pageName\n}\n\n/**\n * Converts a bundlePath (relative path to the entrypoint) to a routable page\n * name.\n */\nfunction denormalizeWorkerPageName(bundlePath: string) {\n  return normalizeAppPath(removePathPrefix(bundlePath, 'app'))\n}\n\n/**\n * Checks if the requested action has a worker for the current page.\n * If not, it returns the first worker that has a handler for the action.\n */\nexport function selectWorkerForForwarding(\n  actionId: string,\n  pageName: string\n): string | undefined {\n  const serverActionsManifest = getServerActionsManifest()\n  const workers =\n    serverActionsManifest[\n      process.env.NEXT_RUNTIME === 'edge' ? 'edge' : 'node'\n    ][actionId]?.workers\n\n  // There are no workers to handle this action, nothing to forward to.\n  if (!workers) {\n    return\n  }\n\n  // If there is an entry for the current page, we don't need to forward.\n  if (workers[normalizeWorkerPageName(pageName)]) {\n    return\n  }\n\n  // Otherwise, grab the first worker that has a handler for this action id.\n  return denormalizeWorkerPageName(Object.keys(workers)[0])\n}\n\nexport function setManifestsSingleton({\n  page,\n  clientReferenceManifest,\n  serverActionsManifest: rawServerActionsManifest,\n}: {\n  page: string\n  clientReferenceManifest: DeepReadonly<ClientReferenceManifest>\n  serverActionsManifest: DeepReadonly<ActionManifest>\n}) {\n  const existingSingleton = globalThisWithManifests[MANIFESTS_SINGLETON]\n  const route = normalizeAppPath(page)\n\n  const serverActionsManifest: DeepReadonly<ActionManifest> = {\n    encryptionKey: rawServerActionsManifest.encryptionKey,\n    // Use null-prototypes for the action objects to prevent prototype pollution\n    // from affecting action ID lookups.\n    node: Object.assign(Object.create(null), rawServerActionsManifest.node),\n    edge: Object.assign(Object.create(null), rawServerActionsManifest.edge),\n  }\n\n  if (existingSingleton) {\n    existingSingleton.clientReferenceManifestsPerRoute.set(route, {\n      page,\n      clientReferenceManifest,\n    })\n\n    existingSingleton.serverActionsManifest = serverActionsManifest\n  } else {\n    const clientReferenceManifestsPerRoute = new Map<\n      string,\n      RegisteredClientReferenceManifest\n    >([[route, { page, clientReferenceManifest }]])\n\n    const proxiedClientReferenceManifest = createProxiedClientReferenceManifest(\n      clientReferenceManifestsPerRoute\n    )\n\n    globalThisWithManifests[MANIFESTS_SINGLETON] = {\n      clientReferenceManifestsPerRoute,\n      proxiedClientReferenceManifest,\n      serverActionsManifest,\n      serverModuleMap: createServerModuleMap(),\n    }\n  }\n}\n\nfunction getManifestsSingleton(): ManifestsSingleton {\n  const manifestSingleton = globalThisWithManifests[MANIFESTS_SINGLETON]\n\n  if (!manifestSingleton) {\n    throw new InvariantError('The manifests singleton was not initialized.')\n  }\n\n  return manifestSingleton\n}\n\nexport function getClientReferenceManifest(): DeepReadonly<ClientReferenceManifest> {\n  return getManifestsSingleton().proxiedClientReferenceManifest\n}\n\nexport function getServerActionsManifest(): DeepReadonly<ActionManifest> {\n  return getManifestsSingleton().serverActionsManifest\n}\n\nexport function getServerModuleMap() {\n  return getManifestsSingleton().serverModuleMap\n}\n","import type { PageExtensions } from '../../build/page-extensions-type'\nimport { normalizePathSep } from '../../shared/lib/page-path/normalize-path-sep'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { isAppRouteRoute } from '../is-app-route-route'\n\nexport const STATIC_METADATA_IMAGES = {\n  icon: {\n    filename: 'icon',\n    extensions: ['ico', 'jpg', 'jpeg', 'png', 'svg'],\n  },\n  apple: {\n    filename: 'apple-icon',\n    extensions: ['jpg', 'jpeg', 'png'],\n  },\n  favicon: {\n    filename: 'favicon',\n    extensions: ['ico'],\n  },\n  openGraph: {\n    filename: 'opengraph-image',\n    extensions: ['jpg', 'jpeg', 'png', 'gif'],\n  },\n  twitter: {\n    filename: 'twitter-image',\n    extensions: ['jpg', 'jpeg', 'png', 'gif'],\n  },\n} as const\n\n// Match routes that are metadata routes, e.g. /sitemap.xml, /favicon.<ext>, /<icon>.<ext>, etc.\n// TODO-METADATA: support more metadata routes with more extensions\nexport const DEFAULT_METADATA_ROUTE_EXTENSIONS = ['js', 'jsx', 'ts', 'tsx']\n\n// Match the file extension with the dynamic multi-routes extensions\n// e.g. ([xml, js], null) -> can match `/sitemap.xml/route`, `sitemap.js/route`\n// e.g. ([png], [ts]) -> can match `/opengraph-image.png`, `/opengraph-image.ts`\nexport const getExtensionRegexString = (\n  staticExtensions: readonly string[],\n  dynamicExtensions: readonly string[] | null\n) => {\n  let result: string\n  // If there's no possible multi dynamic routes, will not match any <name>[].<ext> files\n  if (!dynamicExtensions || dynamicExtensions.length === 0) {\n    result = `(\\\\.(?:${staticExtensions.join('|')}))`\n  } else {\n    result = `(?:\\\\.(${staticExtensions.join('|')})|(\\\\.(${dynamicExtensions.join('|')})))`\n  }\n  return result\n}\n\n/**\n * Matches the static metadata files, e.g. /robots.txt, /sitemap.xml, /favicon.ico, etc.\n * @param appDirRelativePath the relative file path to app/\n * @returns if the path is a static metadata file route\n */\nexport function isStaticMetadataFile(appDirRelativePath: string) {\n  return isMetadataRouteFile(appDirRelativePath, [], true)\n}\n\n// Pre-compiled static regexes for common cases\nconst FAVICON_REGEX = /^[\\\\/]favicon\\.ico$/\nconst ROBOTS_TXT_REGEX = /^[\\\\/]robots\\.txt$/\nconst MANIFEST_JSON_REGEX = /^[\\\\/]manifest\\.json$/\nconst MANIFEST_WEBMANIFEST_REGEX = /^[\\\\/]manifest\\.webmanifest$/\nconst SITEMAP_XML_REGEX = /[\\\\/]sitemap\\.xml$/\n\n// Cache for compiled regex patterns based on parameters\nconst compiledRegexCache = new Map<string, RegExp[]>()\n\n// Fast path checks for common metadata files\nfunction fastPathCheck(normalizedPath: string): boolean | null {\n  // Check favicon.ico first (most common)\n  if (FAVICON_REGEX.test(normalizedPath)) return true\n\n  // Check other common static files\n  if (ROBOTS_TXT_REGEX.test(normalizedPath)) return true\n  if (MANIFEST_JSON_REGEX.test(normalizedPath)) return true\n  if (MANIFEST_WEBMANIFEST_REGEX.test(normalizedPath)) return true\n  if (SITEMAP_XML_REGEX.test(normalizedPath)) return true\n\n  // Quick negative check - if it doesn't contain any metadata keywords, skip\n  if (\n    !normalizedPath.includes('robots') &&\n    !normalizedPath.includes('manifest') &&\n    !normalizedPath.includes('sitemap') &&\n    !normalizedPath.includes('icon') &&\n    !normalizedPath.includes('apple-icon') &&\n    !normalizedPath.includes('opengraph-image') &&\n    !normalizedPath.includes('twitter-image') &&\n    !normalizedPath.includes('favicon')\n  ) {\n    return false\n  }\n\n  return null // Continue with full regex matching\n}\n\nfunction getCompiledRegexes(\n  pageExtensions: PageExtensions,\n  strictlyMatchExtensions: boolean\n): RegExp[] {\n  // Create cache key\n  const cacheKey = `${pageExtensions.join(',')}|${strictlyMatchExtensions}`\n\n  const cached = compiledRegexCache.get(cacheKey)\n  if (cached) {\n    return cached\n  }\n\n  // Pre-compute common strings\n  const trailingMatcher = strictlyMatchExtensions ? '$' : '?$'\n  const variantsMatcher = '\\\\d?'\n  const groupSuffix = strictlyMatchExtensions ? '' : '(-\\\\w{6})?'\n  const suffixMatcher = variantsMatcher + groupSuffix\n\n  // Pre-compute extension arrays to avoid repeated concatenation\n  const robotsExts =\n    pageExtensions.length > 0 ? [...pageExtensions, 'txt'] : ['txt']\n  const manifestExts =\n    pageExtensions.length > 0\n      ? [...pageExtensions, 'webmanifest', 'json']\n      : ['webmanifest', 'json']\n\n  const regexes = [\n    new RegExp(\n      `^[\\\\\\\\/]robots${getExtensionRegexString(robotsExts, null)}${trailingMatcher}`\n    ),\n    new RegExp(\n      `^[\\\\\\\\/]manifest${getExtensionRegexString(manifestExts, null)}${trailingMatcher}`\n    ),\n    // FAVICON_REGEX removed - already handled in fastPathCheck\n    new RegExp(\n      `[\\\\\\\\/]sitemap${getExtensionRegexString(['xml'], pageExtensions)}${trailingMatcher}`\n    ),\n    new RegExp(\n      `[\\\\\\\\/]icon${suffixMatcher}${getExtensionRegexString(\n        STATIC_METADATA_IMAGES.icon.extensions,\n        pageExtensions\n      )}${trailingMatcher}`\n    ),\n    new RegExp(\n      `[\\\\\\\\/]apple-icon${suffixMatcher}${getExtensionRegexString(\n        STATIC_METADATA_IMAGES.apple.extensions,\n        pageExtensions\n      )}${trailingMatcher}`\n    ),\n    new RegExp(\n      `[\\\\\\\\/]opengraph-image${suffixMatcher}${getExtensionRegexString(\n        STATIC_METADATA_IMAGES.openGraph.extensions,\n        pageExtensions\n      )}${trailingMatcher}`\n    ),\n    new RegExp(\n      `[\\\\\\\\/]twitter-image${suffixMatcher}${getExtensionRegexString(\n        STATIC_METADATA_IMAGES.twitter.extensions,\n        pageExtensions\n      )}${trailingMatcher}`\n    ),\n  ]\n\n  compiledRegexCache.set(cacheKey, regexes)\n  return regexes\n}\n\n/**\n * Determine if the file is a metadata route file entry\n * @param appDirRelativePath the relative file path to app/\n * @param pageExtensions the js extensions, such as ['js', 'jsx', 'ts', 'tsx']\n * @param strictlyMatchExtensions if it's true, match the file with page extension, otherwise match the file with default corresponding extension\n * @returns if the file is a metadata route file\n */\nexport function isMetadataRouteFile(\n  appDirRelativePath: string,\n  pageExtensions: PageExtensions,\n  strictlyMatchExtensions: boolean\n): boolean {\n  // Early exit for empty or obviously non-metadata paths\n  if (!appDirRelativePath || appDirRelativePath.length < 2) {\n    return false\n  }\n\n  const normalizedPath = normalizePathSep(appDirRelativePath)\n\n  // Fast path check for common cases\n  const fastResult = fastPathCheck(normalizedPath)\n  if (fastResult !== null) {\n    return fastResult\n  }\n\n  // Get compiled regexes from cache\n  const regexes = getCompiledRegexes(pageExtensions, strictlyMatchExtensions)\n\n  // Use for loop instead of .some() for better performance\n  for (let i = 0; i < regexes.length; i++) {\n    if (regexes[i].test(normalizedPath)) {\n      return true\n    }\n  }\n\n  return false\n}\n\n// Check if the route is a static metadata route, with /route suffix\n// e.g. /favicon.ico/route, /icon.png/route, etc.\n// But skip the text routes like robots.txt since they might also be dynamic.\n// Checking route path is not enough to determine if text routes is dynamic.\nexport function isStaticMetadataRoute(route: string) {\n  // extract ext with regex\n  const pathname = route.replace(/\\/route$/, '')\n\n  const matched =\n    isAppRouteRoute(route) &&\n    isMetadataRouteFile(pathname, [], true) &&\n    // These routes can either be built by static or dynamic entrypoints,\n    // so we assume they're dynamic\n    pathname !== '/robots.txt' &&\n    pathname !== '/manifest.webmanifest' &&\n    !pathname.endsWith('/sitemap.xml')\n\n  return matched\n}\n\n/**\n * Determine if a page or pathname is a metadata page.\n *\n * The input is a page or pathname, which can be with or without page suffix /foo/page or /foo.\n * But it will not contain the /route suffix.\n *\n * .e.g\n * /robots -> true\n * /sitemap -> true\n * /foo -> false\n */\nexport function isMetadataPage(page: string) {\n  const matched = !isAppRouteRoute(page) && isMetadataRouteFile(page, [], false)\n\n  return matched\n}\n\n/*\n * Determine if a Next.js route is a metadata route.\n * `route` will has a route suffix.\n *\n * e.g.\n * /app/robots/route -> true\n * /robots/route -> true\n * /sitemap/[__metadata_id__]/route -> true\n * /app/sitemap/page -> false\n * /icon-a102f4/route -> true\n */\nexport function isMetadataRoute(route: string): boolean {\n  let page = normalizeAppPath(route)\n    .replace(/^\\/?app\\//, '')\n    // Remove the dynamic route id\n    .replace('/[__metadata_id__]', '')\n    // Remove the /route suffix\n    .replace(/\\/route$/, '')\n\n  if (page[0] !== '/') page = '/' + page\n\n  const matched = isAppRouteRoute(route) && isMetadataRouteFile(page, [], false)\n\n  return matched\n}\n","import type { IncomingMessage, ServerResponse } from 'node:http'\nimport type {\n  AppType,\n  DocumentType,\n  NextComponentType,\n} from '../shared/lib/utils'\nimport type { ClientReferenceManifest } from '../build/webpack/plugins/flight-manifest-plugin'\nimport type {\n  PageConfig,\n  GetStaticPaths,\n  GetServerSideProps,\n  GetStaticProps,\n} from '../types'\nimport type { RouteModule } from './route-modules/route-module'\nimport type { BuildManifest } from './get-page-files'\nimport type { ActionManifest } from '../build/webpack/plugins/flight-client-entry-plugin'\n\nimport {\n  BUILD_MANIFEST,\n  REACT_LOADABLE_MANIFEST,\n  CLIENT_REFERENCE_MANIFEST,\n  SERVER_REFERENCE_MANIFEST,\n  DYNAMIC_CSS_MANIFEST,\n  SUBRESOURCE_INTEGRITY_MANIFEST,\n} from '../shared/lib/constants'\nimport { join } from 'path'\nimport { requirePage } from './require'\nimport { interopDefault } from '../lib/interop-default'\nimport { getTracer } from './lib/trace/tracer'\nimport { LoadComponentsSpan } from './lib/trace/constants'\nimport { evalManifest, loadManifest } from './load-manifest.external'\nimport { wait } from '../lib/wait'\nimport { setManifestsSingleton } from './app-render/manifests-singleton'\nimport type { DeepReadonly } from '../shared/lib/deep-readonly'\nimport { normalizePagePath } from '../shared/lib/page-path/normalize-page-path'\nimport { isStaticMetadataRoute } from '../lib/metadata/is-metadata-route'\n\nexport type ManifestItem = {\n  id: number | string\n  files: string[]\n}\n\nexport type ReactLoadableManifest = { [moduleId: string]: ManifestItem }\n/**\n * This manifest prevents removing server rendered <link> tags after client\n * navigation. This is only needed under `Pages dir && Production && Webpack`.\n * @see https://github.com/vercel/next.js/pull/72959\n */\nexport type DynamicCssManifest = string[]\n\n/**\n * A manifest entry type for the react-loadable-manifest.json.\n *\n * The whole manifest.json is a type of `Record<pathname, LoadableManifest>`\n * where pathname is a string-based key points to the path of the page contains\n * each dynamic imports.\n */\nexport interface LoadableManifest {\n  [k: string]: { id: string | number; files: string[] }\n}\n\nexport type GenericComponentMod = {\n  handler(\n    req: IncomingMessage,\n    res: ServerResponse,\n    ctx: {\n      waitUntil?: (prom: Promise<void>) => void\n    }\n  ): Promise<void | null>\n}\n\nexport type LoadComponentsReturnType<\n  NextModule extends GenericComponentMod = GenericComponentMod,\n> = {\n  Component: NextComponentType\n  pageConfig: PageConfig\n  buildManifest: DeepReadonly<BuildManifest>\n  subresourceIntegrityManifest?: DeepReadonly<Record<string, string>>\n  reactLoadableManifest: DeepReadonly<ReactLoadableManifest>\n  dynamicCssManifest?: DeepReadonly<DynamicCssManifest>\n  Document: DocumentType\n  App: AppType\n  getStaticProps?: GetStaticProps\n  getStaticPaths?: GetStaticPaths\n  getServerSideProps?: GetServerSideProps\n  ComponentMod: NextModule\n  routeModule: RouteModule\n  isAppPath?: boolean\n  page: string\n  multiZoneDraftMode?: boolean\n}\n\n/**\n * Load manifest file with retries, defaults to 3 attempts.\n */\nexport async function loadManifestWithRetries<T extends object>(\n  manifestPath: string,\n  attempts = 3\n) {\n  while (true) {\n    try {\n      return loadManifest<T>(manifestPath)\n    } catch (err) {\n      attempts--\n      if (attempts <= 0) throw err\n\n      await wait(100)\n    }\n  }\n}\n\n/**\n * Load manifest file with retries, defaults to 3 attempts, or return undefined.\n */\nexport async function tryLoadManifestWithRetries<T extends object>(\n  manifestPath: string,\n  attempts = 3\n) {\n  try {\n    return await loadManifestWithRetries<T>(manifestPath, attempts)\n  } catch (err) {\n    return undefined\n  }\n}\n\n/**\n * Load manifest file with retries, defaults to 3 attempts.\n */\nexport async function evalManifestWithRetries<T extends object>(\n  manifestPath: string,\n  attempts = 3\n) {\n  while (true) {\n    try {\n      return evalManifest<T>(manifestPath)\n    } catch (err) {\n      attempts--\n      if (attempts <= 0) throw err\n\n      await wait(100)\n    }\n  }\n}\n\n/**\n * Loads the client reference manifest that the bundler emitted for an app page,\n * or returns undefined if there is none. Both the manifest file and the entry\n * inside it are addressed by the page with `%5F` decoded back to `_`, so\n * callers pass the page as-is and this resolves both.\n */\nexport async function loadClientReferenceManifestForPage(\n  distDir: string,\n  page: string,\n  attempts?: number\n): Promise<DeepReadonly<ClientReferenceManifest> | undefined> {\n  const entryName = page.replace(/%5F/g, '_')\n\n  const manifestPath = join(\n    /* turbopackIgnore: true */ distDir,\n    'server',\n    'app',\n    entryName + '_' + CLIENT_REFERENCE_MANIFEST + '.js'\n  )\n\n  try {\n    const context = await evalManifestWithRetries<{\n      __RSC_MANIFEST: { [key: string]: ClientReferenceManifest }\n    }>(manifestPath, attempts)\n    return context.__RSC_MANIFEST[entryName]\n  } catch (err) {\n    return undefined\n  }\n}\n\nasync function loadComponentsImpl<\n  N extends GenericComponentMod = GenericComponentMod,\n>({\n  distDir,\n  page,\n  isAppPath,\n  isDev,\n  sriEnabled,\n  // When route modules are used, which is the case for the server calls to loadComponents, it no longer needs manifest to be loaded here.\n  // Static generation still needs the manifests to be loaded here.\n  // In the future static generation will also use route modules, and we will remove this flag.\n  needsManifestsForLegacyReasons,\n}: {\n  distDir: string\n  page: string\n  isAppPath: boolean\n  isDev: boolean\n  sriEnabled: boolean\n  needsManifestsForLegacyReasons: boolean\n}): Promise<LoadComponentsReturnType<N>> {\n  let DocumentMod = {}\n  let AppMod = {}\n  if (!isAppPath) {\n    ;[DocumentMod, AppMod] = await Promise.all([\n      requirePage('/_document', distDir, false),\n      requirePage('/_app', distDir, false),\n    ])\n  }\n\n  if (needsManifestsForLegacyReasons) {\n    // In dev mode we retry loading a manifest file to handle a race condition\n    // that can occur while app and pages are compiling at the same time, and the\n    // build-manifest is still being written to disk while an app path is\n    // attempting to load.\n    const manifestLoadAttempts = isDev ? 3 : 1\n\n    let reactLoadableManifestPath: string\n    if (!process.env.TURBOPACK) {\n      reactLoadableManifestPath = join(\n        /* turbopackIgnore: true */ distDir,\n        REACT_LOADABLE_MANIFEST\n      )\n    } else if (isAppPath) {\n      reactLoadableManifestPath = join(\n        /* turbopackIgnore: true */ distDir,\n        'server',\n        'app',\n        page,\n        REACT_LOADABLE_MANIFEST\n      )\n    } else {\n      reactLoadableManifestPath = join(\n        /* turbopackIgnore: true */ distDir,\n        'server',\n        'pages',\n        normalizePagePath(page),\n        REACT_LOADABLE_MANIFEST\n      )\n    }\n\n    // Make sure to avoid loading the manifest for static metadata routes for better performance.\n    const hasClientManifest = !isStaticMetadataRoute(page)\n\n    // Load the manifest files first\n    //\n    // Loading page-specific manifests shouldn't throw an error if the manifest couldn't be found, so\n    // that the `requirePage` call below will throw the correct error in that case\n    // (a `PageNotFoundError`).\n    const [\n      buildManifest,\n      reactLoadableManifest,\n      dynamicCssManifest,\n      clientReferenceManifest,\n      serverActionsManifest,\n      subresourceIntegrityManifest,\n    ] = await Promise.all([\n      loadManifestWithRetries<BuildManifest>(\n        join(/* turbopackIgnore: true */ distDir, BUILD_MANIFEST),\n        manifestLoadAttempts\n      ),\n      tryLoadManifestWithRetries<ReactLoadableManifest>(\n        reactLoadableManifestPath,\n        manifestLoadAttempts\n      ),\n      // This manifest will only exist in Pages dir && Production && Webpack.\n      isAppPath || process.env.TURBOPACK\n        ? undefined\n        : loadManifestWithRetries<DynamicCssManifest>(\n            join(\n              /* turbopackIgnore: true */ distDir,\n              `${DYNAMIC_CSS_MANIFEST}.json`\n            ),\n            manifestLoadAttempts\n          ).catch(() => undefined),\n      isAppPath && hasClientManifest\n        ? loadClientReferenceManifestForPage(\n            distDir,\n            page,\n            manifestLoadAttempts\n          )\n        : undefined,\n      isAppPath\n        ? loadManifestWithRetries<ActionManifest>(\n            join(\n              /* turbopackIgnore: true */ distDir,\n              'server',\n              SERVER_REFERENCE_MANIFEST + '.json'\n            ),\n            manifestLoadAttempts\n          ).catch(() => null)\n        : null,\n      sriEnabled\n        ? loadManifestWithRetries<DeepReadonly<Record<string, string>>>(\n            join(\n              /* turbopackIgnore: true */ distDir,\n              'server',\n              SUBRESOURCE_INTEGRITY_MANIFEST + '.json'\n            )\n          ).catch(() => undefined)\n        : undefined,\n    ])\n\n    // Before requiring the actual page module, we have to set the reference\n    // manifests to our global store so Server Action's encryption util can access\n    // to them at the top level of the page module.\n    if (serverActionsManifest && clientReferenceManifest) {\n      setManifestsSingleton({\n        page,\n        clientReferenceManifest,\n        serverActionsManifest,\n      })\n    }\n\n    const ComponentMod = await requirePage(page, distDir, isAppPath)\n\n    const Component = interopDefault(ComponentMod)\n    const Document = interopDefault(DocumentMod)\n    const App = interopDefault(AppMod)\n\n    const { getServerSideProps, getStaticProps, getStaticPaths, routeModule } =\n      ComponentMod\n\n    return {\n      // @ts-expect-error this is indeed `{} || AppType` and not always `AppType`\n      App,\n      // @ts-expect-error this is indeed `{} || DocumentType` and not always `DocumentType`\n      Document,\n      Component,\n      buildManifest,\n      subresourceIntegrityManifest,\n      reactLoadableManifest: reactLoadableManifest || {},\n      dynamicCssManifest,\n      pageConfig: ComponentMod.config || {},\n      ComponentMod,\n      getServerSideProps,\n      getStaticProps,\n      getStaticPaths,\n      isAppPath,\n      page,\n      routeModule,\n    }\n  } else {\n    const ComponentMod = await requirePage(page, distDir, isAppPath)\n\n    const Component = interopDefault(ComponentMod)\n    const Document = interopDefault(DocumentMod)\n    const App = interopDefault(AppMod)\n\n    const { getServerSideProps, getStaticProps, getStaticPaths, routeModule } =\n      ComponentMod\n\n    return {\n      App,\n      Document,\n      Component,\n      pageConfig: ComponentMod.config || {},\n      ComponentMod,\n      getServerSideProps,\n      getStaticProps,\n      getStaticPaths,\n      isAppPath,\n      page,\n      routeModule,\n    } as any // temporary `as any` to make TypeScript not fail so that the tests will run on the PR.\n  }\n}\n\nexport const loadComponents = getTracer().wrap(\n  LoadComponentsSpan.loadComponents,\n  loadComponentsImpl\n)\n","export function isAppRouteRoute(route: string): boolean {\n  return route.endsWith('/route')\n}\n","export interface ServerReferenceInfo {\n  type: 'server-action' | 'use-cache'\n  usedArgs: [boolean, boolean, boolean, boolean, boolean, boolean]\n  hasRestArgs: boolean\n}\n\nexport const SERVER_REFERENCE_ID_LENGTH = 42\n\nexport function mightBeServerReferenceId(id: string): boolean {\n  return id.length === SERVER_REFERENCE_ID_LENGTH\n}\n\n/**\n * Extracts info about the server reference for the given server reference ID by\n * parsing the first byte of the hex-encoded ID.\n *\n * ```\n * Bit positions: [7]      [6] [5] [4] [3] [2] [1]  [0]\n * Bits:          typeBit  argMask                  restArgs\n * ```\n *\n * If the `typeBit` is `1` the server reference represents a `\"use cache\"`\n * function, otherwise a server action.\n *\n * The `argMask` encodes whether the function uses the argument at the\n * respective position.\n *\n * The `restArgs` bit indicates whether the function uses a rest parameter. It's\n * also set to 1 if the function has more than 6 args.\n *\n * @param id hex-encoded server reference ID\n */\nexport function extractInfoFromServerReferenceId(\n  id: string\n): ServerReferenceInfo {\n  const infoByte = parseInt(id.slice(0, 2), 16)\n  const typeBit = (infoByte >> 7) & 0x1\n  const argMask = (infoByte >> 1) & 0x3f\n  const restArgs = infoByte & 0x1\n  const usedArgs = Array(6)\n\n  for (let index = 0; index < 6; index++) {\n    const bitPosition = 5 - index\n    const bit = (argMask >> bitPosition) & 0x1\n    usedArgs[index] = bit === 1\n  }\n\n  return {\n    type: typeBit === 1 ? 'use-cache' : 'server-action',\n    usedArgs: usedArgs as [\n      boolean,\n      boolean,\n      boolean,\n      boolean,\n      boolean,\n      boolean,\n    ],\n    hasRestArgs: restArgs === 1,\n  }\n}\n\n/**\n * Creates a sparse array containing only the used arguments based on the\n * provided action info.\n */\nexport function omitUnusedArgs(\n  args: unknown[],\n  info: ServerReferenceInfo\n): unknown[] {\n  const filteredArgs = new Array(args.length)\n  let length = 0\n\n  for (let index = 0; index < args.length; index++) {\n    if (\n      (index < 6 && info.usedArgs[index]) ||\n      // This assumes that the server reference info byte has the restArgs bit\n      // set to 1 if there are more than 6 args.\n      (index >= 6 && info.hasRestArgs)\n    ) {\n      filteredArgs[index] = args[index]\n      length = index + 1\n    }\n  }\n\n  // Trim trailing unused args from the array.\n  filteredArgs.length = length\n\n  return filteredArgs\n}\n","import { parsePath } from './parse-path'\n\n/**\n * Checks if a given path starts with a given prefix. It ensures it matches\n * exactly without containing extra chars. e.g. prefix /docs should replace\n * for /docs, /docs/, /docs/a but not /docsss\n * @param path The path to check.\n * @param prefix The prefix to check against.\n */\nexport function pathHasPrefix(path: string, prefix: string) {\n  if (typeof path !== 'string') {\n    return false\n  }\n\n  const { pathname } = parsePath(path)\n  return pathname === prefix || pathname.startsWith(prefix + '/')\n}\n","/**\n * Given a path this function will find the pathname, query and hash and return\n * them. This is useful to parse full paths on the client side.\n * @param path A path to parse e.g. /foo/bar?id=1#hash\n */\nexport function parsePath(path: string) {\n  const hashIndex = path.indexOf('#')\n  const queryIndex = path.indexOf('?')\n  const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex)\n\n  if (hasQuery || hashIndex > -1) {\n    return {\n      pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),\n      query: hasQuery\n        ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined)\n        : '',\n      hash: hashIndex > -1 ? path.slice(hashIndex) : '',\n    }\n  }\n\n  return { pathname: path, query: '', hash: '' }\n}\n","export class ReflectAdapter {\n  static get<T extends object>(\n    target: T,\n    prop: string | symbol,\n    receiver: unknown\n  ): any {\n    const value = Reflect.get(target, prop, receiver)\n    if (typeof value === 'function') {\n      return value.bind(target)\n    }\n\n    return value\n  }\n\n  static set<T extends object>(\n    target: T,\n    prop: string | symbol,\n    value: any,\n    receiver: any\n  ): boolean {\n    return Reflect.set(target, prop, value, receiver)\n  }\n\n  static has<T extends object>(target: T, prop: string | symbol): boolean {\n    return Reflect.has(target, prop)\n  }\n\n  static deleteProperty<T extends object>(\n    target: T,\n    prop: string | symbol\n  ): boolean {\n    return Reflect.deleteProperty(target, prop)\n  }\n}\n","import type { IncomingHttpHeaders } from 'http'\n\nimport { ReflectAdapter } from './reflect'\n\n/**\n * @internal\n */\nexport class ReadonlyHeadersError extends Error {\n  constructor() {\n    super(\n      'Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers'\n    )\n  }\n\n  public static callable() {\n    throw new ReadonlyHeadersError()\n  }\n}\n\nexport type ReadonlyHeaders = Headers & {\n  /** @deprecated Method unavailable on `ReadonlyHeaders`. Read more: https://nextjs.org/docs/app/api-reference/functions/headers */\n  append(...args: any[]): void\n  /** @deprecated Method unavailable on `ReadonlyHeaders`. Read more: https://nextjs.org/docs/app/api-reference/functions/headers */\n  set(...args: any[]): void\n  /** @deprecated Method unavailable on `ReadonlyHeaders`. Read more: https://nextjs.org/docs/app/api-reference/functions/headers */\n  delete(...args: any[]): void\n}\n\n/**\n * The read methods that a sealed view provides itself instead of forwarding to\n * the underlying `Headers`. Deriving the type from `Headers` keeps the\n * implementations in step with the platform signatures.\n */\ntype SealedHeaderMethods = Pick<\n  Headers,\n  | 'get'\n  | 'has'\n  | 'getSetCookie'\n  | 'keys'\n  | 'values'\n  | 'entries'\n  | 'forEach'\n  | typeof Symbol.iterator\n>\n\n/**\n * Builds the read methods for a sealed view that exposes all of `target`.\n */\nfunction createPassThroughMethods(\n  target: Headers,\n  sealed: ReadonlyHeaders\n): SealedHeaderMethods {\n  return {\n    get: target.get.bind(target),\n    has: target.has.bind(target),\n    getSetCookie: target.getSetCookie.bind(target),\n    keys: target.keys.bind(target),\n    values: target.values.bind(target),\n    entries: target.entries.bind(target),\n    [Symbol.iterator]: target[Symbol.iterator].bind(target),\n    // The native method passes the unsealed target as the callback's `parent`\n    // argument. That is a mutable handle on the underlying headers. Pass the\n    // sealed view instead.\n    forEach(callbackfn, thisArg) {\n      for (const [name, value] of target.entries()) {\n        callbackfn.call(thisArg, value, name, sealed)\n      }\n    },\n  }\n}\n\n/**\n * Builds the read methods for a sealed view that omits the header names matched\n * by `isHidden`.\n */\nfunction createHidingMethods(\n  target: Headers,\n  sealed: ReadonlyHeaders,\n  isHidden: (name: string) => boolean\n): SealedHeaderMethods {\n  function* entries(): HeadersIterator<[string, string]> {\n    for (const entry of target.entries()) {\n      if (!isHidden(entry[0])) {\n        yield entry\n      }\n    }\n  }\n\n  return {\n    entries,\n    [Symbol.iterator]: entries,\n    get: (name) => (isHidden(name) ? null : target.get(name)),\n    has: (name) => (isHidden(name) ? false : target.has(name)),\n    getSetCookie: () => (isHidden('set-cookie') ? [] : target.getSetCookie()),\n    *keys(): HeadersIterator<string> {\n      for (const name of target.keys()) {\n        if (!isHidden(name)) {\n          yield name\n        }\n      }\n    },\n    *values(): HeadersIterator<string> {\n      for (const [, value] of entries()) {\n        yield value\n      }\n    },\n    // The native method passes the unsealed target as the callback's `parent`\n    // argument. That is a mutable handle on the underlying headers. Pass the\n    // sealed view instead.\n    forEach(callbackfn, thisArg) {\n      for (const [name, value] of entries()) {\n        callbackfn.call(thisArg, value, name, sealed)\n      }\n    },\n  }\n}\n\nexport class HeadersAdapter extends Headers {\n  private readonly headers: IncomingHttpHeaders\n\n  constructor(headers: IncomingHttpHeaders) {\n    // We've already overridden the methods that would be called, so we're just\n    // calling the super constructor to ensure that the instanceof check works.\n    super()\n\n    this.headers = new Proxy(headers, {\n      get(target, prop, receiver) {\n        // Because this is just an object, we expect that all \"get\" operations\n        // are for properties. If it's a \"get\" for a symbol, we'll just return\n        // the symbol.\n        if (typeof prop === 'symbol') {\n          return ReflectAdapter.get(target, prop, receiver)\n        }\n\n        const lowercased = prop.toLowerCase()\n\n        // Let's find the original casing of the key. This assumes that there is\n        // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n        // headers object.\n        const original = Object.keys(headers).find(\n          (o) => o.toLowerCase() === lowercased\n        )\n\n        // If the original casing doesn't exist, return undefined.\n        if (typeof original === 'undefined') return\n\n        // If the original casing exists, return the value.\n        return ReflectAdapter.get(target, original, receiver)\n      },\n      set(target, prop, value, receiver) {\n        if (typeof prop === 'symbol') {\n          return ReflectAdapter.set(target, prop, value, receiver)\n        }\n\n        const lowercased = prop.toLowerCase()\n\n        // Let's find the original casing of the key. This assumes that there is\n        // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n        // headers object.\n        const original = Object.keys(headers).find(\n          (o) => o.toLowerCase() === lowercased\n        )\n\n        // If the original casing doesn't exist, use the prop as the key.\n        return ReflectAdapter.set(target, original ?? prop, value, receiver)\n      },\n      has(target, prop) {\n        if (typeof prop === 'symbol') return ReflectAdapter.has(target, prop)\n\n        const lowercased = prop.toLowerCase()\n\n        // Let's find the original casing of the key. This assumes that there is\n        // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n        // headers object.\n        const original = Object.keys(headers).find(\n          (o) => o.toLowerCase() === lowercased\n        )\n\n        // If the original casing doesn't exist, return false.\n        if (typeof original === 'undefined') return false\n\n        // If the original casing exists, return true.\n        return ReflectAdapter.has(target, original)\n      },\n      deleteProperty(target, prop) {\n        if (typeof prop === 'symbol')\n          return ReflectAdapter.deleteProperty(target, prop)\n\n        const lowercased = prop.toLowerCase()\n\n        // Let's find the original casing of the key. This assumes that there is\n        // no mixed case keys (e.g. \"Content-Type\" and \"content-type\") in the\n        // headers object.\n        const original = Object.keys(headers).find(\n          (o) => o.toLowerCase() === lowercased\n        )\n\n        // If the original casing doesn't exist, return true.\n        if (typeof original === 'undefined') return true\n\n        // If the original casing exists, delete the property.\n        return ReflectAdapter.deleteProperty(target, original)\n      },\n    })\n  }\n\n  /**\n   * Seals a Headers instance to prevent modification by throwing an error when\n   * any mutating method is called.\n   *\n   * The sealed view stays live. Later writes to `headers` remain visible\n   * through it.\n   *\n   * `hidden` omits the given header names from every read operation (`get`,\n   * `has`, `getSetCookie`, `forEach`, and iteration). The names must be\n   * lowercase. The underlying headers are neither copied nor mutated, so hidden\n   * headers remain available to the framework.\n   */\n  public static seal(\n    headers: Headers,\n    hidden?: ReadonlySet<string>\n  ): ReadonlyHeaders {\n    const isHidden =\n      hidden && hidden.size > 0\n        ? (name: string): boolean => hidden.has(name.toLowerCase())\n        : null\n\n    // The methods are built once per sealed view and reused, so repeated access\n    // returns the same function instead of a fresh closure. They are assigned\n    // after the proxy exists because `forEach` hands the proxy to its callback.\n    // Creating the proxy runs no trap, so nothing can read them before then.\n    let methods: SealedHeaderMethods\n\n    const sealed: ReadonlyHeaders = new Proxy<ReadonlyHeaders>(headers, {\n      get(target, prop, receiver) {\n        switch (prop) {\n          case 'append':\n          case 'delete':\n          case 'set':\n            return ReadonlyHeadersError.callable\n          case Symbol.iterator:\n            return methods[Symbol.iterator]\n          case 'get':\n          case 'has':\n          case 'getSetCookie':\n          case 'keys':\n          case 'values':\n          case 'entries':\n          case 'forEach':\n            return methods[prop]\n          default:\n            return ReflectAdapter.get(target, prop, receiver)\n        }\n      },\n    })\n\n    methods = isHidden\n      ? createHidingMethods(headers, sealed, isHidden)\n      : createPassThroughMethods(headers, sealed)\n\n    return sealed\n  }\n\n  /**\n   * @param headers\n   * @returns A fresh object identity backed by the original value\n   */\n  public static fresh(headers: ReadonlyHeaders): ReadonlyHeaders {\n    return new Proxy<ReadonlyHeaders>(headers, {\n      get(target, prop, receiver) {\n        return ReflectAdapter.get(target, prop, receiver)\n      },\n    })\n  }\n\n  /**\n   * Merges a header value into a string. This stores multiple values as an\n   * array, so we need to merge them into a string.\n   *\n   * @param value a header value\n   * @returns a merged header value (a string)\n   */\n  private merge(value: string | string[]): string {\n    if (Array.isArray(value)) return value.join(', ')\n\n    return value\n  }\n\n  /**\n   * Creates a Headers instance from a plain object or a Headers instance.\n   *\n   * @param headers a plain object or a Headers instance\n   * @returns a headers instance\n   */\n  public static from(headers: IncomingHttpHeaders | Headers): Headers {\n    if (headers instanceof Headers) return headers\n\n    return new HeadersAdapter(headers)\n  }\n\n  public append(name: string, value: string): void {\n    const existing = this.headers[name]\n    if (typeof existing === 'string') {\n      this.headers[name] = [existing, value]\n    } else if (Array.isArray(existing)) {\n      existing.push(value)\n    } else {\n      this.headers[name] = value\n    }\n  }\n\n  public delete(name: string): void {\n    delete this.headers[name]\n  }\n\n  public get(name: string): string | null {\n    const value = this.headers[name]\n    if (typeof value !== 'undefined') return this.merge(value)\n\n    return null\n  }\n\n  public has(name: string): boolean {\n    return typeof this.headers[name] !== 'undefined'\n  }\n\n  public set(name: string, value: string): void {\n    this.headers[name] = value\n  }\n\n  public forEach(\n    callbackfn: (value: string, name: string, parent: Headers) => void,\n    thisArg?: any\n  ): void {\n    for (const [name, value] of this.entries()) {\n      callbackfn.call(thisArg, value, name, this)\n    }\n  }\n\n  public *entries(): HeadersIterator<[string, string]> {\n    for (const key of Object.keys(this.headers)) {\n      const name = key.toLowerCase()\n      // We assert here that this is a string because we got it from the\n      // Object.keys() call above.\n      const value = this.get(name) as string\n\n      yield [name, value] as [string, string]\n    }\n  }\n\n  public *keys(): HeadersIterator<string> {\n    for (const key of Object.keys(this.headers)) {\n      const name = key.toLowerCase()\n      yield name\n    }\n  }\n\n  public *values(): HeadersIterator<string> {\n    for (const key of Object.keys(this.headers)) {\n      // We assert here that this is a string because we got it from the\n      // Object.keys() call above.\n      const value = this.get(key) as string\n\n      yield value\n    }\n  }\n\n  public [Symbol.iterator](): HeadersIterator<[string, string]> {\n    return this.entries()\n  }\n}\n","import { RequestCookies } from '../cookies'\n\nimport { ResponseCookies } from '../cookies'\nimport { ReflectAdapter } from './reflect'\nimport { workAsyncStorage } from '../../../app-render/work-async-storage.external'\nimport type { RequestStore } from '../../../app-render/work-unit-async-storage.external'\nimport { ActionDidRevalidateStaticAndDynamic } from '../../../../shared/lib/action-revalidation-kind'\n\n/**\n * @internal\n */\nexport class ReadonlyRequestCookiesError extends Error {\n  constructor() {\n    super(\n      'Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#options'\n    )\n  }\n\n  public static callable() {\n    throw new ReadonlyRequestCookiesError()\n  }\n}\n\n// We use this to type some APIs but we don't construct instances directly\nexport type { ResponseCookies }\n\n// The `cookies()` API is a mix of request and response cookies. For `.get()` methods,\n// we want to return the request cookie if it exists. For mutative methods like `.set()`,\n// we want to return the response cookie.\nexport type ReadonlyRequestCookies = Omit<\n  RequestCookies,\n  'set' | 'clear' | 'delete'\n> &\n  Pick<ResponseCookies, 'set' | 'delete'>\n\nexport class RequestCookiesAdapter {\n  public static seal(cookies: RequestCookies): ReadonlyRequestCookies {\n    return new Proxy(cookies as any, {\n      get(target, prop, receiver) {\n        switch (prop) {\n          case 'clear':\n          case 'delete':\n          case 'set':\n            return ReadonlyRequestCookiesError.callable\n          default:\n            return ReflectAdapter.get(target, prop, receiver)\n        }\n      },\n    })\n  }\n\n  /**\n   * @param cookies\n   * @returns A fresh object identity backed by the original value\n   */\n  public static fresh(cookies: ReadonlyRequestCookies): ReadonlyRequestCookies {\n    return new Proxy(cookies, {\n      get(target, prop, receiver) {\n        return ReflectAdapter.get(target, prop, receiver)\n      },\n    })\n  }\n}\n\nconst SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for('next.mutated.cookies')\n\nexport function getModifiedCookieValues(\n  cookies: ResponseCookies\n): ResponseCookie[] {\n  const modified: ResponseCookie[] | undefined = (cookies as unknown as any)[\n    SYMBOL_MODIFY_COOKIE_VALUES\n  ]\n  if (!modified || !Array.isArray(modified) || modified.length === 0) {\n    return []\n  }\n\n  return modified\n}\n\ntype SetCookieArgs =\n  | [key: string, value: string, cookie?: Partial<ResponseCookie>]\n  | [options: ResponseCookie]\n\nexport function appendMutableCookies(\n  headers: Headers,\n  mutableCookies: ResponseCookies\n): boolean {\n  const modifiedCookieValues = getModifiedCookieValues(mutableCookies)\n  if (modifiedCookieValues.length === 0) {\n    return false\n  }\n\n  // Return a new response that extends the response with\n  // the modified cookies as fallbacks. `res` cookies\n  // will still take precedence.\n  const resCookies = new ResponseCookies(headers)\n  const returnedCookies = resCookies.getAll()\n\n  // Set the modified cookies as fallbacks.\n  for (const cookie of modifiedCookieValues) {\n    resCookies.set(cookie)\n  }\n\n  // Set the original cookies as the final values.\n  for (const cookie of returnedCookies) {\n    resCookies.set(cookie)\n  }\n\n  return true\n}\n\ntype ResponseCookie = NonNullable<\n  ReturnType<InstanceType<typeof ResponseCookies>['get']>\n>\n\nexport class MutableRequestCookiesAdapter {\n  public static wrap(\n    cookies: RequestCookies,\n    onUpdateCookies?: (cookies: string[]) => void\n  ): ResponseCookies {\n    const responseCookies = new ResponseCookies(new Headers())\n    for (const cookie of cookies.getAll()) {\n      responseCookies.set(cookie)\n    }\n\n    let modifiedValues: ResponseCookie[] = []\n    const modifiedCookies = new Set<string>()\n    const updateResponseCookies = () => {\n      // TODO-APP: change method of getting workStore\n      const workStore = workAsyncStorage.getStore()\n      if (workStore) {\n        workStore.pathWasRevalidated = ActionDidRevalidateStaticAndDynamic\n      }\n\n      const allCookies = responseCookies.getAll()\n      modifiedValues = allCookies.filter((c) => modifiedCookies.has(c.name))\n      if (onUpdateCookies) {\n        const serializedCookies: string[] = []\n        for (const cookie of modifiedValues) {\n          const tempCookies = new ResponseCookies(new Headers())\n          tempCookies.set(cookie)\n          serializedCookies.push(tempCookies.toString())\n        }\n\n        onUpdateCookies(serializedCookies)\n      }\n    }\n\n    const wrappedCookies = new Proxy(responseCookies, {\n      get(target, prop, receiver) {\n        switch (prop) {\n          // A special symbol to get the modified cookie values\n          case SYMBOL_MODIFY_COOKIE_VALUES:\n            return modifiedValues\n\n          // TODO: Throw error if trying to set a cookie after the response\n          // headers have been set.\n          case 'delete':\n            return function (...args: [string] | [ResponseCookie]) {\n              modifiedCookies.add(\n                typeof args[0] === 'string' ? args[0] : args[0].name\n              )\n              try {\n                target.delete(...args)\n                return wrappedCookies\n              } finally {\n                updateResponseCookies()\n              }\n            }\n          case 'set':\n            return function (...args: SetCookieArgs) {\n              modifiedCookies.add(\n                typeof args[0] === 'string' ? args[0] : args[0].name\n              )\n              try {\n                target.set(...args)\n                return wrappedCookies\n              } finally {\n                updateResponseCookies()\n              }\n            }\n\n          default:\n            return ReflectAdapter.get(target, prop, receiver)\n        }\n      },\n    })\n\n    return wrappedCookies\n  }\n}\n\nexport function createCookiesWithMutableAccessCheck(\n  requestStore: RequestStore\n): ResponseCookies {\n  const wrappedCookies = new Proxy(requestStore.mutableCookies, {\n    get(target, prop, receiver) {\n      switch (prop) {\n        case 'delete':\n          return function (...args: [string] | [ResponseCookie]) {\n            ensureCookiesAreStillMutable(requestStore, 'cookies().delete')\n            target.delete(...args)\n            return wrappedCookies\n          }\n        case 'set':\n          return function (...args: SetCookieArgs) {\n            ensureCookiesAreStillMutable(requestStore, 'cookies().set')\n            target.set(...args)\n            return wrappedCookies\n          }\n\n        default:\n          return ReflectAdapter.get(target, prop, receiver)\n      }\n    },\n  })\n  return wrappedCookies\n}\n\nexport function areCookiesMutableInCurrentPhase(requestStore: RequestStore) {\n  return requestStore.phase === 'action'\n}\n\n/** Ensure that cookies() starts throwing on mutation\n * if we changed phases and can no longer mutate.\n *\n * This can happen when going:\n *   'render' -> 'after'\n *   'action' -> 'render'\n * */\nfunction ensureCookiesAreStillMutable(\n  requestStore: RequestStore,\n  _callingExpression: string\n) {\n  if (!areCookiesMutableInCurrentPhase(requestStore)) {\n    // TODO: maybe we can give a more precise error message based on callingExpression?\n    throw new ReadonlyRequestCookiesError()\n  }\n}\n\nexport function responseCookiesToRequestCookies(\n  responseCookies: ResponseCookies\n): RequestCookies {\n  const requestCookies = new RequestCookies(new Headers())\n  for (const cookie of responseCookies.getAll()) {\n    requestCookies.set(cookie)\n  }\n  return requestCookies\n}\n","export type ActionRevalidationKind = 0 | 1 | 2\n\nexport const ActionDidNotRevalidate = 0\nexport const ActionDidRevalidateStaticAndDynamic = 1\nexport const ActionDidRevalidateDynamicOnly = 2\n","import type { ServerRuntime } from '../types'\n\nexport const TEXT_PLAIN_CONTENT_TYPE_HEADER = 'text/plain'\nexport const HTML_CONTENT_TYPE_HEADER = 'text/html; charset=utf-8'\nexport const JSON_CONTENT_TYPE_HEADER = 'application/json; charset=utf-8'\nexport const NEXT_QUERY_PARAM_PREFIX = 'nxtP'\nexport const NEXT_INTERCEPTION_MARKER_PREFIX = 'nxtI'\n\nexport const MATCHED_PATH_HEADER = 'x-matched-path'\nexport const PRERENDER_REVALIDATE_HEADER = 'x-prerender-revalidate'\nexport const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER =\n  'x-prerender-revalidate-if-generated'\n\nexport const RSC_SEGMENTS_DIR_SUFFIX = '.segments'\nexport const RSC_SEGMENT_SUFFIX = '.segment.rsc'\nexport const RSC_SUFFIX = '.rsc'\nexport const ACTION_SUFFIX = '.action'\nexport const NEXT_DATA_SUFFIX = '.json'\nexport const NEXT_META_SUFFIX = '.meta'\nexport const NEXT_BODY_SUFFIX = '.body'\n\nexport const NEXT_NAV_DEPLOYMENT_ID_HEADER = 'x-nextjs-deployment-id'\n\nexport const NEXT_CACHE_TAGS_HEADER = 'x-next-cache-tags'\nexport const NEXT_CACHE_REVALIDATED_TAGS_HEADER = 'x-next-revalidated-tags'\nexport const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER =\n  'x-next-revalidate-tag-token'\n\nexport const NEXT_RESUME_HEADER = 'next-resume'\nexport const NEXT_RESUME_STATE_LENGTH_HEADER = 'x-next-resume-state-length'\n\n// if these change make sure we update the related\n// documentation as well\nexport const NEXT_CACHE_TAG_MAX_ITEMS = 128\nexport const NEXT_CACHE_TAG_MAX_LENGTH = 256\nexport const NEXT_CACHE_SOFT_TAG_MAX_LENGTH = 1024\nexport const NEXT_CACHE_IMPLICIT_TAG_ID = '_N_T_'\nexport const NEXT_CACHE_ROOT_PARAM_TAG_ID = '_N_RP_'\n\n// in seconds\nexport const CACHE_ONE_YEAR_SECONDS = 31536000\n\n// in seconds, represents revalidate=false. I.e. never revaliate.\n// We use this value since it can be represented as a V8 SMI for optimal performance.\n// It can also be serialized as JSON if it ever leaks accidentally as an actual value.\nexport const INFINITE_CACHE = 0xfffffffe\n\n// Patterns to detect middleware files\nexport const MIDDLEWARE_FILENAME = 'middleware'\nexport const MIDDLEWARE_LOCATION_REGEXP = `(?:src/)?${MIDDLEWARE_FILENAME}`\n\n// Patterns to detect proxy files (replacement for middleware)\nexport const PROXY_FILENAME = 'proxy'\nexport const PROXY_LOCATION_REGEXP = `(?:src/)?${PROXY_FILENAME}`\n\n// Pattern to detect instrumentation hooks file\nexport const INSTRUMENTATION_HOOK_FILENAME = 'instrumentation'\n\n// Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path,\n// we have to use a private alias\nexport const PAGES_DIR_ALIAS = 'private-next-pages'\nexport const DOT_NEXT_ALIAS = 'private-dot-next'\nexport const ROOT_DIR_ALIAS = 'private-next-root-dir'\nexport const APP_DIR_ALIAS = 'private-next-app-dir'\nexport const RSC_MOD_REF_PROXY_ALIAS = 'private-next-rsc-mod-ref-proxy'\nexport const RSC_ACTION_VALIDATE_ALIAS = 'private-next-rsc-action-validate'\nexport const RSC_ACTION_PROXY_ALIAS = 'private-next-rsc-server-reference'\nexport const RSC_CACHE_WRAPPER_ALIAS = 'private-next-rsc-cache-wrapper'\nexport const RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS =\n  'private-next-rsc-track-dynamic-import'\nexport const RSC_ACTION_ENCRYPTION_ALIAS = 'private-next-rsc-action-encryption'\nexport const RSC_ACTION_CLIENT_WRAPPER_ALIAS =\n  'private-next-rsc-action-client-wrapper'\n\nexport const PUBLIC_DIR_MIDDLEWARE_CONFLICT = `You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict`\n\nexport const SSG_GET_INITIAL_PROPS_CONFLICT = `You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps`\n\nexport const SERVER_PROPS_GET_INIT_PROPS_CONFLICT = `You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.`\n\nexport const SERVER_PROPS_SSG_CONFLICT = `You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps`\n\nexport const STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR = `can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props`\n\nexport const SERVER_PROPS_EXPORT_ERROR = `pages with \\`getServerSideProps\\` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export`\n\nexport const GSP_NO_RETURNED_VALUE =\n  'Your `getStaticProps` function did not return an object. Did you forget to add a `return`?'\nexport const GSSP_NO_RETURNED_VALUE =\n  'Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?'\n\nexport const UNSTABLE_REVALIDATE_RENAME_ERROR =\n  'The `unstable_revalidate` property is available for general use.\\n' +\n  'Please use `revalidate` instead.'\n\nexport const GSSP_COMPONENT_MEMBER_ERROR = `can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member`\n\nexport const NON_STANDARD_NODE_ENV = `You are using a non-standard \"NODE_ENV\" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env`\n\nexport const SSG_FALLBACK_EXPORT_ERROR = `Pages with \\`fallback\\` enabled in \\`getStaticPaths\\` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export`\n\nexport const ESLINT_DEFAULT_DIRS = ['app', 'pages', 'components', 'lib', 'src']\n\nexport const SERVER_RUNTIME: Record<string, ServerRuntime> = {\n  edge: 'edge',\n  experimentalEdge: 'experimental-edge',\n  nodejs: 'nodejs',\n}\n\nexport const WEB_SOCKET_MAX_RECONNECTIONS = 12\n\n/**\n * The names of the webpack layers. These layers are the primitives for the\n * webpack chunks.\n */\nconst WEBPACK_LAYERS_NAMES = {\n  /**\n   * The layer for the shared code between the client and server bundles.\n   */\n  shared: 'shared',\n  /**\n   * The layer for server-only runtime and picking up `react-server` export conditions.\n   * Including app router RSC pages and app router custom routes and metadata routes.\n   */\n  reactServerComponents: 'rsc',\n  /**\n   * Server Side Rendering layer for app (ssr).\n   */\n  serverSideRendering: 'ssr',\n  /**\n   * The browser client bundle layer for actions.\n   */\n  actionBrowser: 'action-browser',\n  /**\n   * The Node.js bundle layer for the API routes.\n   */\n  apiNode: 'api-node',\n  /**\n   * The Edge Lite bundle layer for the API routes.\n   */\n  apiEdge: 'api-edge',\n  /**\n   * The layer for the middleware code.\n   */\n  middleware: 'middleware',\n  /**\n   * The layer for the instrumentation hooks.\n   */\n  instrument: 'instrument',\n  /**\n   * The layer for assets on the edge.\n   */\n  edgeAsset: 'edge-asset',\n  /**\n   * The browser client bundle layer for App directory.\n   */\n  appPagesBrowser: 'app-pages-browser',\n  /**\n   * The browser client bundle layer for Pages directory.\n   */\n  pagesDirBrowser: 'pages-dir-browser',\n  /**\n   * The Edge Lite bundle layer for Pages directory.\n   */\n  pagesDirEdge: 'pages-dir-edge',\n  /**\n   * The Node.js bundle layer for Pages directory.\n   */\n  pagesDirNode: 'pages-dir-node',\n} as const\n\nexport type WebpackLayerName =\n  (typeof WEBPACK_LAYERS_NAMES)[keyof typeof WEBPACK_LAYERS_NAMES]\n\nconst WEBPACK_LAYERS = {\n  ...WEBPACK_LAYERS_NAMES,\n  GROUP: {\n    builtinReact: [\n      WEBPACK_LAYERS_NAMES.reactServerComponents,\n      WEBPACK_LAYERS_NAMES.actionBrowser,\n    ],\n    serverOnly: [\n      WEBPACK_LAYERS_NAMES.reactServerComponents,\n      WEBPACK_LAYERS_NAMES.actionBrowser,\n      WEBPACK_LAYERS_NAMES.instrument,\n      WEBPACK_LAYERS_NAMES.middleware,\n    ],\n    neutralTarget: [\n      // pages api\n      WEBPACK_LAYERS_NAMES.apiNode,\n      WEBPACK_LAYERS_NAMES.apiEdge,\n    ],\n    clientOnly: [\n      WEBPACK_LAYERS_NAMES.serverSideRendering,\n      WEBPACK_LAYERS_NAMES.appPagesBrowser,\n    ],\n    bundled: [\n      WEBPACK_LAYERS_NAMES.reactServerComponents,\n      WEBPACK_LAYERS_NAMES.actionBrowser,\n      WEBPACK_LAYERS_NAMES.serverSideRendering,\n      WEBPACK_LAYERS_NAMES.appPagesBrowser,\n      WEBPACK_LAYERS_NAMES.shared,\n      WEBPACK_LAYERS_NAMES.instrument,\n      WEBPACK_LAYERS_NAMES.middleware,\n    ],\n    appPages: [\n      // app router pages and layouts\n      WEBPACK_LAYERS_NAMES.reactServerComponents,\n      WEBPACK_LAYERS_NAMES.serverSideRendering,\n      WEBPACK_LAYERS_NAMES.appPagesBrowser,\n      WEBPACK_LAYERS_NAMES.actionBrowser,\n    ],\n  },\n}\n\nconst WEBPACK_RESOURCE_QUERIES = {\n  edgeSSREntry: '__next_edge_ssr_entry__',\n  metadata: '__next_metadata__',\n  metadataRoute: '__next_metadata_route__',\n  metadataImageMeta: '__next_metadata_image_meta__',\n}\n\nexport { WEBPACK_LAYERS, WEBPACK_RESOURCE_QUERIES }\n","import type { IncomingHttpHeaders, IncomingMessage } from 'http'\nimport type { CookieSerializeOptions } from 'next/dist/compiled/cookie'\nimport type { NextApiResponse } from '../../shared/lib/utils'\n\nimport { HeadersAdapter } from '../web/spec-extension/adapters/headers'\nimport {\n  PRERENDER_REVALIDATE_HEADER,\n  PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER,\n} from '../../lib/constants'\nimport { getTracer } from '../lib/trace/tracer'\nimport { NodeSpan } from '../lib/trace/constants'\n\nexport type NextApiRequestCookies = Partial<{ [key: string]: string }>\nexport type NextApiRequestQuery = Partial<{ [key: string]: string | string[] }>\n\nexport type __ApiPreviewProps = {\n  previewModeId: string\n  previewModeEncryptionKey: string\n  previewModeSigningKey: string\n}\n\nexport function wrapApiHandler<T extends (...args: any[]) => any>(\n  page: string,\n  handler: T\n): T {\n  return ((...args) => {\n    getTracer().setRootSpanAttribute('next.route', page)\n    // Call API route method\n    return getTracer().trace(\n      NodeSpan.runHandler,\n      {\n        spanName: `executing api route (pages) ${page}`,\n      },\n      () => handler(...args)\n    )\n  }) as T\n}\n\n/**\n *\n * @param res response object\n * @param statusCode `HTTP` status code of response\n */\nexport function sendStatusCode(\n  res: NextApiResponse,\n  statusCode: number\n): NextApiResponse<any> {\n  res.statusCode = statusCode\n  return res\n}\n\n/**\n *\n * @param res response object\n * @param [statusOrUrl] `HTTP` status code of redirect\n * @param url URL of redirect\n */\nexport function redirect(\n  res: NextApiResponse,\n  statusOrUrl: string | number,\n  url?: string\n): NextApiResponse<any> {\n  if (typeof statusOrUrl === 'string') {\n    url = statusOrUrl\n    statusOrUrl = 307\n  }\n  if (typeof statusOrUrl !== 'number' || typeof url !== 'string') {\n    throw new Error(\n      `Invalid redirect arguments. Please use a single argument URL, e.g. res.redirect('/destination') or use a status code and URL, e.g. res.redirect(307, '/destination').`\n    )\n  }\n  res.writeHead(statusOrUrl, { Location: url })\n  res.write(url)\n  res.end()\n  return res\n}\n\nexport function checkIsOnDemandRevalidate(\n  rawHeaders: Headers | IncomingHttpHeaders,\n  previewProps: __ApiPreviewProps\n): {\n  isOnDemandRevalidate: boolean\n  revalidateOnlyGenerated: boolean\n} {\n  // Headers is a plain object for Node.js, Headers object in Edge runtime\n  if (typeof rawHeaders.get === 'function') {\n    const headers = HeadersAdapter.from(rawHeaders)\n\n    const previewModeId = headers.get(PRERENDER_REVALIDATE_HEADER)\n    const isOnDemandRevalidate = previewModeId === previewProps.previewModeId\n\n    const revalidateOnlyGenerated = headers.has(\n      PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER\n    )\n\n    return { isOnDemandRevalidate, revalidateOnlyGenerated }\n  }\n\n  const headers = rawHeaders as IncomingHttpHeaders\n\n  const previewModeId = headers[PRERENDER_REVALIDATE_HEADER]\n  const isOnDemandRevalidate = previewModeId === previewProps.previewModeId\n\n  const revalidateOnlyGenerated = headers.hasOwnProperty(\n    PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER\n  )\n\n  return { isOnDemandRevalidate, revalidateOnlyGenerated }\n}\n\nexport const COOKIE_NAME_PRERENDER_BYPASS = `__prerender_bypass`\nexport const COOKIE_NAME_PRERENDER_DATA = `__next_preview_data`\n\nexport const RESPONSE_LIMIT_DEFAULT = 4 * 1024 * 1024\n\nexport const SYMBOL_PREVIEW_DATA = Symbol(COOKIE_NAME_PRERENDER_DATA)\nexport const SYMBOL_CLEARED_COOKIES = Symbol(COOKIE_NAME_PRERENDER_BYPASS)\n\nexport function clearPreviewData<T>(\n  res: NextApiResponse<T>,\n  options: {\n    path?: string\n  } = {}\n): NextApiResponse<T> {\n  if (SYMBOL_CLEARED_COOKIES in res) {\n    return res\n  }\n\n  const { serialize } =\n    require('next/dist/compiled/cookie') as typeof import('next/dist/compiled/cookie')\n  const previous = res.getHeader('Set-Cookie')\n  res.setHeader(`Set-Cookie`, [\n    ...(typeof previous === 'string'\n      ? [previous]\n      : Array.isArray(previous)\n        ? previous\n        : []),\n    serialize(COOKIE_NAME_PRERENDER_BYPASS, '', {\n      // To delete a cookie, set `expires` to a date in the past:\n      // https://tools.ietf.org/html/rfc6265#section-4.1.1\n      // `Max-Age: 0` is not valid, thus ignored, and the cookie is persisted.\n      expires: new Date(0),\n      httpOnly: true,\n      sameSite: process.env.NODE_ENV !== 'development' ? 'none' : 'lax',\n      secure: process.env.NODE_ENV !== 'development',\n      path: '/',\n      ...(options.path !== undefined\n        ? ({ path: options.path } as CookieSerializeOptions)\n        : undefined),\n    }),\n    serialize(COOKIE_NAME_PRERENDER_DATA, '', {\n      // To delete a cookie, set `expires` to a date in the past:\n      // https://tools.ietf.org/html/rfc6265#section-4.1.1\n      // `Max-Age: 0` is not valid, thus ignored, and the cookie is persisted.\n      expires: new Date(0),\n      httpOnly: true,\n      sameSite: process.env.NODE_ENV !== 'development' ? 'none' : 'lax',\n      secure: process.env.NODE_ENV !== 'development',\n      path: '/',\n      ...(options.path !== undefined\n        ? ({ path: options.path } as CookieSerializeOptions)\n        : undefined),\n    }),\n  ])\n\n  Object.defineProperty(res, SYMBOL_CLEARED_COOKIES, {\n    value: true,\n    enumerable: false,\n  })\n  return res\n}\n\n/**\n * Custom error class\n */\nexport class ApiError extends Error {\n  readonly statusCode: number\n\n  constructor(statusCode: number, message: string) {\n    super(message)\n    this.statusCode = statusCode\n  }\n}\n\n/**\n * Sends error in `response`\n * @param res response object\n * @param statusCode of response\n * @param message of response\n */\nexport function sendError(\n  res: NextApiResponse,\n  statusCode: number,\n  message: string\n): void {\n  res.statusCode = statusCode\n  res.statusMessage = message\n  res.end(message)\n}\n\ninterface LazyProps {\n  req: IncomingMessage\n}\n\n/**\n * Execute getter function only if its needed\n * @param LazyProps `req` and `params` for lazyProp\n * @param prop name of property\n * @param getter function to get data\n */\nexport function setLazyProp<T>(\n  { req }: LazyProps,\n  prop: string,\n  getter: () => T\n): void {\n  const opts = { configurable: true, enumerable: true }\n  const optsReset = { ...opts, writable: true }\n\n  Object.defineProperty(req, prop, {\n    ...opts,\n    get: () => {\n      const value = getter()\n      // we set the property on the object to avoid recalculating it\n      Object.defineProperty(req, prop, { ...optsReset, value })\n      return value\n    },\n    set: (value) => {\n      Object.defineProperty(req, prop, { ...optsReset, value })\n    },\n  })\n}\n","import type { IncomingHttpHeaders } from 'http'\nimport type { ReadonlyRequestCookies } from '../web/spec-extension/adapters/request-cookies'\nimport type { ResponseCookies } from '../web/spec-extension/cookies'\n\nimport {\n  COOKIE_NAME_PRERENDER_BYPASS,\n  checkIsOnDemandRevalidate,\n} from '../api-utils'\nimport type { __ApiPreviewProps } from '../api-utils'\n\nexport class DraftModeProvider {\n  /**\n   * @internal - this declaration is stripped via `tsc --stripInternal`\n   */\n  private _isEnabled: boolean\n\n  /**\n   * @internal - this declaration is stripped via `tsc --stripInternal`\n   */\n  private readonly _previewModeId: string | undefined\n\n  /**\n   * @internal - this declaration is stripped via `tsc --stripInternal`\n   */\n  private readonly _mutableCookies: ResponseCookies\n\n  constructor(\n    previewProps: __ApiPreviewProps | undefined,\n    headers: Headers | IncomingHttpHeaders,\n    cookies: ReadonlyRequestCookies,\n    mutableCookies: ResponseCookies\n  ) {\n    // The logic for draftMode() is very similar to tryGetPreviewData()\n    // but Draft Mode does not have any data associated with it.\n    const isOnDemandRevalidate =\n      previewProps &&\n      checkIsOnDemandRevalidate(headers, previewProps).isOnDemandRevalidate\n\n    const cookieValue = cookies.get(COOKIE_NAME_PRERENDER_BYPASS)?.value\n\n    this._isEnabled = Boolean(\n      !isOnDemandRevalidate &&\n        cookieValue &&\n        previewProps &&\n        (cookieValue === previewProps.previewModeId ||\n          // In dev mode, the cookie can be actual hash value preview id but the preview props can still be `development-id`.\n          (process.env.NODE_ENV !== 'production' &&\n            previewProps.previewModeId === 'development-id'))\n    )\n\n    this._previewModeId = previewProps?.previewModeId\n    this._mutableCookies = mutableCookies\n  }\n\n  get isEnabled() {\n    return this._isEnabled\n  }\n\n  enable() {\n    if (!this._previewModeId) {\n      throw new Error(\n        'Invariant: previewProps missing previewModeId this should never happen'\n      )\n    }\n\n    this._mutableCookies.set({\n      name: COOKIE_NAME_PRERENDER_BYPASS,\n      value: this._previewModeId,\n      httpOnly: true,\n      sameSite: process.env.NODE_ENV !== 'development' ? 'none' : 'lax',\n      secure: process.env.NODE_ENV !== 'development',\n      path: '/',\n    })\n\n    this._isEnabled = true\n  }\n\n  disable() {\n    // To delete a cookie, set `expires` to a date in the past:\n    // https://tools.ietf.org/html/rfc6265#section-4.1.1\n    // `Max-Age: 0` is not valid, thus ignored, and the cookie is persisted.\n    this._mutableCookies.set({\n      name: COOKIE_NAME_PRERENDER_BYPASS,\n      value: '',\n      httpOnly: true,\n      sameSite: process.env.NODE_ENV !== 'development' ? 'none' : 'lax',\n      secure: process.env.NODE_ENV !== 'development',\n      path: '/',\n      expires: new Date(0),\n    })\n\n    this._isEnabled = false\n  }\n}\n","import type { BaseNextRequest, BaseNextResponse } from '../base-http'\nimport type { IncomingHttpHeaders } from 'http'\nimport type { RequestStore } from '../app-render/work-unit-async-storage.external'\nimport type { RenderOpts } from '../app-render/types'\nimport type { NextRequest } from '../web/spec-extension/request'\nimport type { __ApiPreviewProps } from '../api-utils'\n\nimport {\n  FLIGHT_HEADERS,\n  NEXT_HTML_REQUEST_ID_HEADER,\n  NEXT_REQUEST_ID_HEADER,\n} from '../../client/components/app-router-headers'\nimport {\n  HeadersAdapter,\n  type ReadonlyHeaders,\n} from '../web/spec-extension/adapters/headers'\nimport {\n  MutableRequestCookiesAdapter,\n  RequestCookiesAdapter,\n  responseCookiesToRequestCookies,\n  createCookiesWithMutableAccessCheck,\n  type ReadonlyRequestCookies,\n} from '../web/spec-extension/adapters/request-cookies'\nimport { ResponseCookies, RequestCookies } from '../web/spec-extension/cookies'\nimport { DraftModeProvider } from './draft-mode-provider'\nimport { splitCookiesString } from '../web/utils'\nimport type { ServerComponentsHmrCache } from '../response-cache'\nimport type { ResumeDataCache } from '../resume-data-cache/resume-data-cache'\nimport type { Params } from '../request/params'\nimport type { ImplicitTags } from '../lib/implicit-tags'\nimport type { OpaqueFallbackRouteParams } from '../request/fallback-params'\n\n/**\n * Internal request headers that userland `headers()` must not expose. They stay\n * on the shared request headers for framework plumbing.\n *\n * Every internal header that the client can send must be listed here. The\n * sealed userland view reads through to the shared request headers, so an\n * omission leaks the header to userland.\n *\n * The names are lowercased because `HeadersAdapter.seal` matches them in\n * lowercase.\n */\nconst HIDDEN_REQUEST_HEADERS: ReadonlySet<string> = new Set(\n  [\n    ...FLIGHT_HEADERS,\n    // The client sends these dev-only request IDs so the server can route debug\n    // information back to the originating request. Like the flight headers,\n    // they are internal plumbing.\n    NEXT_REQUEST_ID_HEADER,\n    NEXT_HTML_REQUEST_ID_HEADER,\n  ].map((header) => header.toLowerCase())\n)\n\nfunction getHeaders(headers: Headers | IncomingHttpHeaders): ReadonlyHeaders {\n  // The sealed userland view must not copy the request headers.\n  // `HeadersAdapter.from` returns a `Headers` instance unchanged, so the view\n  // reads through to `NextRequest.headers`. A copy detaches `headers()` from\n  // the writes that Proxy makes to `NextRequest.headers` afterwards.\n  //\n  // The view must also not delete the internal headers. Because\n  // `HeadersAdapter.from` does not copy, a delete removes them from the shared\n  // `req.headers`. The dev server reads the request-id headers from the raw\n  // request again, for example when it renders a redirect target after a server\n  // action. Their removal breaks the dev debug channel routing.\n  return HeadersAdapter.seal(\n    HeadersAdapter.from(headers),\n    HIDDEN_REQUEST_HEADERS\n  )\n}\n\nfunction getMutableCookies(\n  headers: Headers | IncomingHttpHeaders,\n  onUpdateCookies?: (cookies: string[]) => void\n): ResponseCookies {\n  const cookies = new RequestCookies(HeadersAdapter.from(headers))\n  return MutableRequestCookiesAdapter.wrap(cookies, onUpdateCookies)\n}\n\nexport type WrapperRenderOpts = Partial<Pick<RenderOpts, 'onUpdateCookies'>> & {\n  previewProps?: __ApiPreviewProps\n}\n\ntype RequestContext = RequestResponsePair & {\n  /**\n   * The URL of the request. This only specifies the pathname and the search\n   * part of the URL. This is only undefined when generating static paths (ie,\n   * there is no request in progress, nor do we know one).\n   */\n  url: {\n    /**\n     * The pathname of the requested URL.\n     */\n    pathname: string\n\n    /**\n     * The search part of the requested URL. If the request did not provide a\n     * search part, this will be an empty string.\n     */\n    search?: string\n  }\n  phase: RequestStore['phase']\n  renderOpts?: WrapperRenderOpts\n  isHmrRefresh?: boolean\n  serverComponentsHmrCache?: ServerComponentsHmrCache\n  implicitTags: ImplicitTags\n}\n\ntype RequestResponsePair =\n  | { req: BaseNextRequest; res: BaseNextResponse } // for an app page\n  | { req: NextRequest; res: undefined } // in an api route or middleware\n\n/**\n * The fields the request store actually reads from `req` / `res`. Decoupling\n * the store's construction from `IncomingMessage` / `BaseNextRequest` /\n * `NextRequest` lets it be built without a real `req`/`res` (e.g. by the `'use\n * cache'` deadlock probe worker, which only has a serializable snapshot of the\n * outer request).\n */\nexport type RequestStoreInputs = {\n  phase: RequestStore['phase']\n  /**\n   * Raw headers, either as a Web `Headers` instance or Node's\n   * `IncomingHttpHeaders`.\n   */\n  headers: Headers | IncomingHttpHeaders\n  /**\n   * Called whenever userspace mutates cookies (via `cookies().set(...)` etc.).\n   * Real renders wire this to `res.setHeader('Set-Cookie', cookies)`. Pass\n   * `undefined` for callers without a response (e.g. probe workers). Cookie\n   * writes during `'render'` are still gated by\n   * `MutableRequestCookiesAdapter`'s phase guard, so leaving this off doesn't\n   * silently accept writes that would otherwise be rejected.\n   */\n  onUpdateCookies: ((cookies: string[]) => void) | undefined\n  url: { pathname: string; search?: string }\n  rootParams: Params\n  implicitTags: ImplicitTags\n  resumeDataCache: ResumeDataCache | null\n  previewProps: WrapperRenderOpts['previewProps']\n  isHmrRefresh: boolean | undefined\n  serverComponentsHmrCache: ServerComponentsHmrCache | undefined\n  /**\n   * The hash of the most recent server component change (dev only). Included in\n   * `\"use cache\"` cache keys so that cached entries are revalidated after an\n   * edit, for every client, regardless of whether it runs the HMR client.\n   */\n  hmrRefreshHash: string | undefined\n  fallbackParams: OpaqueFallbackRouteParams | null | undefined\n}\n\n/**\n * If middleware set cookies in this request (indicated by `x-middleware-set-cookie`),\n * then merge those into the existing cookie object, so that when `cookies()` is accessed\n * it's able to read the newly set cookies.\n */\nfunction mergeMiddlewareCookies(\n  headers: Headers | IncomingHttpHeaders,\n  existingCookies: RequestCookies | ResponseCookies\n) {\n  // TODO: this only fires for `IncomingHttpHeaders`; `Headers` instances\n  // silently fall through (the `in` check and bracket access don't reach header\n  // values stored in internal slots). Confirm whether edge / Web `Headers`\n  // callers need this merge or already handle it elsewhere.\n  if (\n    'x-middleware-set-cookie' in headers &&\n    typeof headers['x-middleware-set-cookie'] === 'string'\n  ) {\n    const setCookieValue = headers['x-middleware-set-cookie']\n    const responseHeaders = new Headers()\n\n    for (const cookie of splitCookiesString(setCookieValue)) {\n      responseHeaders.append('set-cookie', cookie)\n    }\n\n    const responseCookies = new ResponseCookies(responseHeaders)\n\n    // Transfer cookies from ResponseCookies to RequestCookies\n    for (const cookie of responseCookies.getAll()) {\n      existingCookies.set(cookie)\n    }\n  }\n}\n\nexport function createRequestStoreForRender(\n  req: RequestContext['req'],\n  res: RequestContext['res'],\n  url: RequestContext['url'],\n  rootParams: Params,\n  implicitTags: RequestContext['implicitTags'],\n  onUpdateCookies: RenderOpts['onUpdateCookies'],\n  previewProps: WrapperRenderOpts['previewProps'],\n  isHmrRefresh: RequestContext['isHmrRefresh'],\n  serverComponentsHmrCache: RequestContext['serverComponentsHmrCache'],\n  resumeDataCache: ResumeDataCache | null,\n  fallbackParams: OpaqueFallbackRouteParams | null,\n  hmrRefreshHash: string | undefined\n): RequestStore {\n  return createRequestStore({\n    // Pages start in render phase by default\n    phase: 'render',\n    headers: req.headers,\n    onUpdateCookies:\n      onUpdateCookies ??\n      (res\n        ? (cookies: string[]) => {\n            res.setHeader('Set-Cookie', cookies)\n          }\n        : undefined),\n    url,\n    rootParams,\n    implicitTags,\n    resumeDataCache,\n    previewProps,\n    isHmrRefresh,\n    serverComponentsHmrCache,\n    hmrRefreshHash,\n    fallbackParams,\n  })\n}\n\nexport function createRequestStoreForAPI(\n  req: RequestContext['req'],\n  url: RequestContext['url'],\n  implicitTags: RequestContext['implicitTags'],\n  onUpdateCookies: RenderOpts['onUpdateCookies'],\n  previewProps: WrapperRenderOpts['previewProps'],\n  hmrRefreshHash: string | undefined\n): RequestStore {\n  return createRequestStore({\n    // API routes start in action phase by default\n    phase: 'action',\n    headers: req.headers,\n    onUpdateCookies,\n    url,\n    rootParams: {},\n    implicitTags,\n    resumeDataCache: null,\n    previewProps,\n    isHmrRefresh: false,\n    serverComponentsHmrCache: undefined,\n    hmrRefreshHash,\n    fallbackParams: null,\n  })\n}\n\n/**\n * Build a `RequestStore` from a serializable, request-shaped input. Used\n * directly by the existing `createRequestStoreForRender` /\n * `createRequestStoreForAPI` wrappers, and by side-process consumers like the\n * `'use cache'` deadlock probe worker that don't have a real `req`/`res` pair\n * but do have a forwarded snapshot of the outer request's headers etc.\n */\nexport function createRequestStore(inputs: RequestStoreInputs): RequestStore {\n  const {\n    phase,\n    headers,\n    onUpdateCookies,\n    url,\n    rootParams,\n    implicitTags,\n    resumeDataCache,\n    previewProps,\n    isHmrRefresh,\n    serverComponentsHmrCache,\n    hmrRefreshHash,\n    fallbackParams,\n  } = inputs\n\n  const cache: {\n    headers?: ReadonlyHeaders\n    cookies?: ReadonlyRequestCookies\n    mutableCookies?: ResponseCookies\n    userspaceMutableCookies?: ResponseCookies\n    draftMode?: DraftModeProvider\n  } = {}\n\n  return {\n    type: 'request',\n    phase,\n    implicitTags,\n    // Rather than just using the whole `url` here, we pull the parts we want\n    // to ensure we don't use parts of the URL that we shouldn't. This also\n    // lets us avoid requiring an empty string for `search` in the type.\n    url: { pathname: url.pathname, search: url.search ?? '' },\n    rootParams,\n    get headers() {\n      if (!cache.headers) {\n        // Seal the headers object that'll freeze out any methods that could\n        // mutate the underlying data.\n        cache.headers = getHeaders(headers)\n      }\n\n      return cache.headers\n    },\n    get cookies() {\n      if (!cache.cookies) {\n        // if middleware is setting cookie(s), then include those in\n        // the initial cached cookies so they can be read in render\n        const requestCookies = new RequestCookies(HeadersAdapter.from(headers))\n\n        mergeMiddlewareCookies(headers, requestCookies)\n\n        // Seal the cookies object that'll freeze out any methods that could\n        // mutate the underlying data.\n        cache.cookies = RequestCookiesAdapter.seal(requestCookies)\n      }\n\n      return cache.cookies\n    },\n    set cookies(value: ReadonlyRequestCookies) {\n      cache.cookies = value\n    },\n    get mutableCookies() {\n      if (!cache.mutableCookies) {\n        const mutableCookies = getMutableCookies(headers, onUpdateCookies)\n\n        mergeMiddlewareCookies(headers, mutableCookies)\n\n        cache.mutableCookies = mutableCookies\n      }\n      return cache.mutableCookies\n    },\n    get userspaceMutableCookies() {\n      if (!cache.userspaceMutableCookies) {\n        const userspaceMutableCookies =\n          createCookiesWithMutableAccessCheck(this)\n        cache.userspaceMutableCookies = userspaceMutableCookies\n      }\n      return cache.userspaceMutableCookies\n    },\n    get draftMode() {\n      if (!cache.draftMode) {\n        cache.draftMode = new DraftModeProvider(\n          previewProps,\n          headers,\n          this.cookies,\n          this.mutableCookies\n        )\n      }\n\n      return cache.draftMode\n    },\n    resumeDataCache: resumeDataCache ?? null,\n    isHmrRefresh,\n    serverComponentsHmrCache:\n      serverComponentsHmrCache ||\n      (globalThis as any).__serverComponentsHmrCache,\n    hmrRefreshHash,\n    fallbackParams,\n  }\n}\n\nexport function synchronizeMutableCookies(store: RequestStore) {\n  // TODO: does this need to update headers as well?\n  store.cookies = RequestCookiesAdapter.seal(\n    responseCookiesToRequestCookies(store.mutableCookies)\n  )\n}\n","export const RSC_HEADER = 'rsc' as const\nexport const ACTION_HEADER = 'next-action' as const\n// TODO: Instead of sending the full router state, we only need to send the\n// segment path. Saves bytes. Then we could also use this field for segment\n// prefetches, which also need to specify a particular segment.\nexport const NEXT_ROUTER_STATE_TREE_HEADER = 'next-router-state-tree' as const\nexport const NEXT_ROUTER_PREFETCH_HEADER = 'next-router-prefetch' as const\n// This contains the path to the segment being prefetched.\n// TODO: If we change next-router-state-tree to be a segment path, we can use\n// that instead. Then next-router-prefetch and next-router-segment-prefetch can\n// be merged into a single enum.\nexport const NEXT_ROUTER_SEGMENT_PREFETCH_HEADER =\n  'next-router-segment-prefetch' as const\nexport const NEXT_HMR_REFRESH_HEADER = 'next-hmr-refresh' as const\nexport const NEXT_URL = 'next-url' as const\nexport const RSC_CONTENT_TYPE_HEADER = 'text/x-component' as const\n\n// Cookie for the Instant Navigation Testing API. Sent automatically with all\n// requests while a navigation lock is held; the server uses its presence to\n// render only the shell. Not exposed in production builds by default.\nexport const NEXT_INSTANT_TEST_COOKIE =\n  'next-instant-navigation-testing' as const\n\nexport const FLIGHT_HEADERS = [\n  RSC_HEADER,\n  NEXT_ROUTER_STATE_TREE_HEADER,\n  NEXT_ROUTER_PREFETCH_HEADER,\n  NEXT_HMR_REFRESH_HEADER,\n  NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,\n] as const\n\nexport const NEXT_RSC_UNION_QUERY = '_rsc' as const\n\nexport const NEXT_ROUTER_STALE_TIME_HEADER = 'x-nextjs-stale-time' as const\nexport const NEXT_DID_POSTPONE_HEADER = 'x-nextjs-postponed' as const\nexport const NEXT_REWRITTEN_PATH_HEADER = 'x-nextjs-rewritten-path' as const\nexport const NEXT_REWRITTEN_QUERY_HEADER = 'x-nextjs-rewritten-query' as const\nexport const NEXT_IS_PRERENDER_HEADER = 'x-nextjs-prerender' as const\nexport const NEXT_ACTION_NOT_FOUND_HEADER = 'x-nextjs-action-not-found' as const\nexport const NEXT_REQUEST_ID_HEADER = 'x-nextjs-request-id' as const\nexport const NEXT_HTML_REQUEST_ID_HEADER = 'x-nextjs-html-request-id' as const\n\n// TODO: Should this include nextjs in the name, like the others?\nexport const NEXT_ACTION_REVALIDATED_HEADER = 'x-action-revalidated' as const\n","import type { OutgoingHttpHeaders } from 'http'\nimport {\n  NEXT_INTERCEPTION_MARKER_PREFIX,\n  NEXT_QUERY_PARAM_PREFIX,\n} from '../../lib/constants'\n\n/**\n * Converts a Node.js IncomingHttpHeaders object to a Headers object. Any\n * headers with multiple values will be joined with a comma and space. Any\n * headers that have an undefined value will be ignored and others will be\n * coerced to strings.\n *\n * @param nodeHeaders the headers object to convert\n * @returns the converted headers object\n */\nexport function fromNodeOutgoingHttpHeaders(\n  nodeHeaders: OutgoingHttpHeaders\n): Headers {\n  const headers = new Headers()\n  for (let [key, value] of Object.entries(nodeHeaders)) {\n    const values = Array.isArray(value) ? value : [value]\n    for (let v of values) {\n      if (typeof v === 'undefined') continue\n      if (typeof v === 'number') {\n        v = v.toString()\n      }\n\n      headers.append(key, v)\n    }\n  }\n  return headers\n}\n\n/*\n  Set-Cookie header field-values are sometimes comma joined in one string. This splits them without choking on commas\n  that are within a single set-cookie field-value, such as in the Expires portion.\n  This is uncommon, but explicitly allowed - see https://tools.ietf.org/html/rfc2616#section-4.2\n  Node.js does this for every header *except* set-cookie - see https://github.com/nodejs/node/blob/d5e363b77ebaf1caf67cd7528224b651c86815c1/lib/_http_incoming.js#L128\n  React Native's fetch does this for *every* header, including set-cookie.\n  \n  Based on: https://github.com/google/j2objc/commit/16820fdbc8f76ca0c33472810ce0cb03d20efe25\n  Credits to: https://github.com/tomball for original and https://github.com/chrusart for JavaScript implementation\n*/\nexport function splitCookiesString(cookiesString: string) {\n  var cookiesStrings = []\n  var pos = 0\n  var start\n  var ch\n  var lastComma\n  var nextStart\n  var cookiesSeparatorFound\n\n  function skipWhitespace() {\n    while (pos < cookiesString.length && /\\s/.test(cookiesString.charAt(pos))) {\n      pos += 1\n    }\n    return pos < cookiesString.length\n  }\n\n  function notSpecialChar() {\n    ch = cookiesString.charAt(pos)\n\n    return ch !== '=' && ch !== ';' && ch !== ','\n  }\n\n  while (pos < cookiesString.length) {\n    start = pos\n    cookiesSeparatorFound = false\n\n    while (skipWhitespace()) {\n      ch = cookiesString.charAt(pos)\n      if (ch === ',') {\n        // ',' is a cookie separator if we have later first '=', not ';' or ','\n        lastComma = pos\n        pos += 1\n\n        skipWhitespace()\n        nextStart = pos\n\n        while (pos < cookiesString.length && notSpecialChar()) {\n          pos += 1\n        }\n\n        // currently special character\n        if (pos < cookiesString.length && cookiesString.charAt(pos) === '=') {\n          // we found cookies separator\n          cookiesSeparatorFound = true\n          // pos is inside the next cookie, so back up and return it.\n          pos = nextStart\n          cookiesStrings.push(cookiesString.substring(start, lastComma))\n          start = pos\n        } else {\n          // in param ',' or param separator ';',\n          // we continue from that comma\n          pos = lastComma + 1\n        }\n      } else {\n        pos += 1\n      }\n    }\n\n    if (!cookiesSeparatorFound || pos >= cookiesString.length) {\n      cookiesStrings.push(cookiesString.substring(start, cookiesString.length))\n    }\n  }\n\n  return cookiesStrings\n}\n\n/**\n * Converts a Headers object to a Node.js OutgoingHttpHeaders object. This is\n * required to support the set-cookie header, which may have multiple values.\n *\n * @param headers the headers object to convert\n * @returns the converted headers object\n */\nexport function toNodeOutgoingHttpHeaders(\n  headers: Headers\n): OutgoingHttpHeaders {\n  const nodeHeaders: OutgoingHttpHeaders = {}\n  const cookies: string[] = []\n  if (headers) {\n    for (const [key, value] of headers.entries()) {\n      if (key.toLowerCase() === 'set-cookie') {\n        // We may have gotten a comma joined string of cookies, or multiple\n        // set-cookie headers. We need to merge them into one header array\n        // to represent all the cookies.\n        cookies.push(...splitCookiesString(value))\n        nodeHeaders[key] = cookies.length === 1 ? cookies[0] : cookies\n      } else {\n        nodeHeaders[key] = value\n      }\n    }\n  }\n  return nodeHeaders\n}\n\n/**\n * Validate the correctness of a user-provided URL.\n */\nexport function validateURL(url: string | URL): string {\n  try {\n    return String(new URL(String(url)))\n  } catch (error: any) {\n    throw new Error(\n      `URL is malformed \"${String(\n        url\n      )}\". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,\n      { cause: error }\n    )\n  }\n}\n\n/**\n * Normalizes `nxtP` and `nxtI` query param values to remove the prefix.\n * This function does not mutate the input key.\n */\nexport function normalizeNextQueryParam(key: string): null | string {\n  const prefixes = [NEXT_QUERY_PARAM_PREFIX, NEXT_INTERCEPTION_MARKER_PREFIX]\n  for (const prefix of prefixes) {\n    if (key !== prefix && key.startsWith(prefix)) {\n      return key.substring(prefix.length)\n    }\n  }\n  return null\n}\n","import type { NextConfigComplete } from '../config-shared'\nimport type { AppPageModule } from '../route-modules/app-page/module'\nimport type { WorkStore } from '../app-render/work-async-storage.external'\nimport type { UseCacheProbeRequestSnapshot } from '../use-cache/use-cache-probe-globals'\n\nimport '../require-hook'\nimport '../node-environment'\n\nimport { AfterContext } from '../after/after-context'\nimport { loadComponents } from '../load-components'\nimport { setHttpClientAndAgentOptions } from '../setup-http-agent-env'\nimport { workAsyncStorage } from '../app-render/work-async-storage.external'\nimport { workUnitAsyncStorage } from '../app-render/work-unit-async-storage.external'\nimport { getServerModuleMap } from '../app-render/manifests-singleton'\nimport { createSnapshot } from '../app-render/async-local-storage'\nimport { createRequestStore } from '../async-storage/request-store'\n/* eslint-disable import/no-extraneous-dependencies */\nimport {\n  decodeReply,\n  decodeReplyFromAsyncIterable,\n  createTemporaryReferenceSet,\n} from 'react-server-dom-webpack/server'\nimport type { CacheKeyParts } from '../use-cache/use-cache-wrapper'\n/* eslint-enable import/no-extraneous-dependencies */\n\n// Round-trippable view of `encodedArguments: FormData | string` from\n// `generateCacheEntryImpl`. The flattened `encodeFormData()` string used as a\n// cache-map key isn't usable here — it's lossy and only valid for equality\n// comparisons; the worker needs to call `decodeReply` on the original\n// `encodeReply` output.\nexport type EncodedArgumentsForProbe =\n  | {\n      kind: 'string'\n      data: string\n    }\n  | {\n      kind: 'formdata'\n      // Blobs are base64-encoded so the payload survives both `worker_threads`\n      // structured clone AND the child-process JSON-only fallback transport.\n      entries: Array<\n        | [string, string]\n        | [string, { kind: 'blob'; bytes: string; type: string }]\n      >\n    }\n\nexport type ProbeMessage = {\n  distDir: string\n  page: string\n  route: string\n  id: string\n  kind: string\n  encodedArguments: EncodedArgumentsForProbe\n  buildId: string\n  deploymentId: string\n  request: UseCacheProbeRequestSnapshot\n  nextConfigSerializable: {\n    httpAgentOptions: NextConfigComplete['httpAgentOptions']\n    cacheLifeProfiles: NextConfigComplete['cacheLife']\n    useCacheTimeout: number\n    staticPageGenerationTimeout: number\n  }\n  timeoutMs: number\n}\n\nexport async function probeUseCache(msg: ProbeMessage): Promise<boolean> {\n  try {\n    setHttpClientAndAgentOptions({\n      httpAgentOptions: msg.nextConfigSerializable.httpAgentOptions,\n    })\n\n    // Populates the manifests singleton for the route via\n    // `setManifestsSingleton` inside the compiled app-page module — same\n    // mechanism a real request uses. The dev server tears the pool down\n    // whenever it invalidates its own require/manifest caches (HMR, route\n    // recompile) so the next probe lazy-spawns a worker with empty\n    // `require.cache` and `loadManifest` caches. Without that teardown, a\n    // second probe in the same worker would resolve user modules and manifests\n    // from the first probe's cached state.\n    //\n    // Narrowed to `AppPageModule` because the probe is only set up from the dev\n    // block in `generateCacheEntryImpl`, which is gated on\n    // `outerWorkUnitStore.cacheSignal` — currently only set for app pages.\n    // `'use cache'` in route handlers has no dev-mode hang protection at all\n    // today (no probe, no dev-fill timeout); when that gate is broadened, this\n    // loader will need to handle `AppRouteModule` and a different require\n    // mechanism (route handlers don't expose `__next_app__`).\n    const { ComponentMod } = await loadComponents<AppPageModule>({\n      distDir: msg.distDir,\n      page: msg.page,\n      isAppPath: true,\n      isDev: true,\n      sriEnabled: false,\n      needsManifestsForLegacyReasons: true,\n    })\n\n    // Resolve the wrapped `'use cache'` function by its server reference\n    // id. Same path `action-handler.ts` takes for server actions: server\n    // module map → bundler module id → `__next_app__.require` → exported\n    // function keyed by the action id.\n    const serverModuleMap = getServerModuleMap()\n    const entry = serverModuleMap[msg.id]\n    if (!entry) {\n      return false\n    }\n\n    const actionMod = (await ComponentMod.__next_app__.require(\n      entry.id\n    )) as Record<string, (...args: unknown[]) => Promise<unknown>>\n    const wrappedFn = actionMod[msg.id]\n    if (typeof wrappedFn !== 'function') {\n      return false\n    }\n\n    // Decode the args with the worker's own server module map. See the\n    // `EncodedArgumentsForProbe` comment for why we don't use the cache-map key\n    // string here.\n    const temporaryReferences = createTemporaryReferenceSet()\n    let decoded: CacheKeyParts\n    if (msg.encodedArguments.kind === 'string') {\n      decoded = await decodeReply<CacheKeyParts>(\n        msg.encodedArguments.data,\n        serverModuleMap,\n        {\n          temporaryReferences,\n        }\n      )\n    } else {\n      const entries = msg.encodedArguments.entries.map<[string, string | File]>(\n        ([key, value]) => {\n          if (typeof value === 'string') {\n            return [key, value]\n          }\n          const bytes = Buffer.from(value.bytes, 'base64')\n          return [key, new File([bytes], '', { type: value.type })]\n        }\n      )\n      decoded = await decodeReplyFromAsyncIterable<CacheKeyParts>(\n        {\n          async *[Symbol.asyncIterator]() {\n            for (const pair of entries) {\n              yield pair\n            }\n          },\n        },\n        serverModuleMap,\n        { temporaryReferences }\n      )\n    }\n\n    const args = decoded[2]\n    const workStore: WorkStore = buildProbeWorkStore(msg)\n\n    // The outer store is `'request'`-typed and built from the forwarded\n    // snapshot so the cache body sees the same `headers` / `cookies` /\n    // `draftMode` it would in a real fill. `cacheSignal` defaults to undefined,\n    // which disables the dev-timeout/probe block in `generateCacheEntryImpl` —\n    // the primary guard against a probe inside the worker spawning another\n    // probe.\n    const workUnitStore = createRequestStore({\n      phase: 'render',\n      headers: new Headers(msg.request.headers),\n      onUpdateCookies: undefined,\n      url: { pathname: msg.request.urlPathname, search: msg.request.urlSearch },\n      rootParams: msg.request.rootParams,\n      implicitTags: { tags: [], expirationsByCacheKind: new Map() },\n      resumeDataCache: null,\n      previewProps: undefined,\n      isHmrRefresh: msg.request.isHmrRefresh,\n      serverComponentsHmrCache: undefined,\n      hmrRefreshHash: msg.request.hmrRefreshHash,\n      fallbackParams: null,\n    })\n\n    await workAsyncStorage.run(workStore, () =>\n      workUnitAsyncStorage.run(workUnitStore, wrappedFn.bind(null, ...args))\n    )\n\n    return true\n  } catch {\n    // Any error along the way — module resolution, decode, the actual run —\n    // collapses to \"the probe didn't complete in isolation,\" so the main thread\n    // won't false-positive a deadlock.\n    return false\n  }\n}\n\nfunction buildProbeWorkStore(msg: ProbeMessage): WorkStore {\n  // `after()` callbacks would duplicate the real fill's side effects — the\n  // probe is a throwaway re-execution, not a second request. Same shape as the\n  // validation-render `AfterContext` in `app-render.tsx`.\n  const afterContext = new AfterContext({\n    waitUntil(promise) {\n      promise.catch(() => {})\n    },\n    onClose() {},\n    onTaskError() {},\n  })\n\n  return {\n    isStaticGeneration: false,\n    page: msg.page,\n    route: msg.route,\n    useCacheProbeMode: { timeoutMs: msg.timeoutMs },\n    isDraftMode: msg.request.isDraftMode,\n    useCacheTimeout: msg.nextConfigSerializable.useCacheTimeout,\n    staticPageGenerationTimeout:\n      msg.nextConfigSerializable.staticPageGenerationTimeout,\n    cacheLifeProfiles: msg.nextConfigSerializable.cacheLifeProfiles,\n    buildId: msg.buildId,\n    deploymentId: msg.deploymentId,\n    requestStartTime: msg.request.requestStartTime,\n    // Empty values for cache-handler / RDC bookkeeping. The `useCacheProbeMode`\n    // branch in `cache()` returns before any code that reads or writes these\n    // fields, so the values can never be observed.\n    previouslyRevalidatedTags: [],\n    refreshTagsByCacheKind: new Map(),\n    runInCleanSnapshot: createSnapshot(),\n    shouldTrackFetchMetrics: false,\n    reactServerErrorsByDigest: new Map(),\n    afterContext,\n    cacheComponentsEnabled: true,\n    // In the probe the validation level is irrelevant because we do not perform validation\n    // in this context.\n    validationLevel: 'warning',\n  }\n}\n","import type { NextConfig } from '../types'\nimport { Agent as HttpAgent } from 'http'\nimport { Agent as HttpsAgent } from 'https'\n\nexport function setHttpClientAndAgentOptions(config: {\n  httpAgentOptions?: NextConfig['httpAgentOptions']\n}) {\n  if (globalThis.__NEXT_HTTP_AGENT) {\n    // We only need to assign once because we want\n    // to reuse the same agent for all requests.\n    return\n  }\n\n  if (!config) {\n    throw new Error('Expected config.httpAgentOptions to be an object')\n  }\n\n  globalThis.__NEXT_HTTP_AGENT_OPTIONS = config.httpAgentOptions\n  globalThis.__NEXT_HTTP_AGENT = new HttpAgent(config.httpAgentOptions)\n  globalThis.__NEXT_HTTPS_AGENT = new HttpsAgent(config.httpAgentOptions)\n}\n"],"names":["__defProp","Object","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","src_exports","all","RequestCookies","ResponseCookies","parseCookie","parseSetCookie","stringifyCookie","name","c","_a","attrs","Date","Boolean","stringified","encodeURIComponent","cookie","map","Map","pair","splitAt","key","decodeURIComponent","setCookie","attributes","domain","expires","httponly","maxage","path","samesite","secure","partitioned","priority","value2","string","t","Number","SAME_SITE","PRIORITY","newT","to","from","except","desc","requestHeaders","header","Symbol","args","Array","_","n","names","result","JSON","v","responseHeaders","_b","_c","cookieString","cookiesString","start","ch","lastComma","nextStart","cookiesSeparatorFound","cookiesStrings","pos","skipWhitespace","parsed","bag","headers","serialized","options","__nccwpck_require__","__dirname","i","a","e","r","TypeError","o","s","p","f","u","isNaN","isFinite","Math","empty","Events","EE","addListener","clearEvent","EventEmitter","h","l","arguments","Promise","TimeoutError","Error","pTimeout","setTimeout","clearTimeout","clearInterval","setInterval","run","noop","getCrossOriginStringAs","as","input","getValueDescriptorExpectingObjectForWarning","thing","getValueDescriptorExpectingEnumForWarning","React","Internals","Set","console","exports","href","crossOrigin","integrity","fetchPriority","encountered","voidHandler","getIteratorFn","maybeIterable","MAYBE_ITERATOR_SYMBOL","flushBuffered","destination","writeChunk","chunk","writtenBytes","writeToDestination","currentView","Uint8Array","target","read","textEncoder","view","destinationHasCapacity","completeWriting","byteLengthOfChunk","Buffer","isClientReference","reference","CLIENT_REFERENCE_TAG$1","registerClientReferenceImpl","proxyImplementation","id","async","bind","newFn","FunctionBind","SERVER_REFERENCE_TAG","ArraySlice","getReference","moduleId","clientReference","proxy","Proxy","proxyHandlers$1","resolve","String","deepProxyHandlers","resolveClientReferenceMetadata","config","modulePath","resolvedModuleData","idx","preload","request","resolveRequest","hints","imageSrcSet","imageSizes","uniquePart","trimOptions","emitHint","previousDispatcher","preloadModule$1","hasProperties","trimmed","resolveOwner","currentOwner","owner","componentStorage","resolvePromiseOrAwaitNode","unresolvedNode","endTime","getAsyncSequenceFromPromise","promise","asyncId","getAsyncId","x","pendingOperations","collectStackTracePrivate","error","structuredStackTrace","framesToSkip","callSite","callSite$jscomp$0","methodName","identifierRegExp","enclosingLine","enclosingCol","collectedStackTrace","collectStackTrace","parseStackTracePrivate","skipFrames","parseStackTrace","existing","stackTraceCache","stack","frameRegExp","isAsync","filename","getSuspendedThenable","suspendedThenable","thenable","getThenableStateAfterSuspending","state","thenableState","currentComponentDebugInfo","unsupportedHook","unsupportedRefresh","unsupportedContext","prepareStackTrace","resetOwnerStackLimit","now","getCurrentTime","lastResetTime","ReactSharedInternalsServer","isGetter","object","descriptor","getPrototypeOf","objectName","describeKeyForErrorMessage","encodedKey","describeValueForErrorMessage","isArrayImpl","CLIENT_REFERENCE_TAG","describeElementType","type","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_VIEW_TRANSITION_TYPE","REACT_FORWARD_REF_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","payload","describeObjectForErrorMessage","objectOrArray","expandedName","objKind","length","jsxChildrenParents","REACT_ELEMENT_TYPE","jsxPropsParents","_value2","_substr2","defaultFilterStackFrame","devirtualizeURL","url","envIdx","suffixIdx","decodeURI","filterStackTrace","filteredStack","callsite","functionName","hasUnfilteredFrame","lineNumber","columnNumber","isAwaitInUserspace","firstFrame","patchConsole","consoleInst","originalMethod","wrapperMethod","env","format","style","badge","outlineComponentInfo","serializeDebugModel","getCurrentStackInDEV","info","ownerStack","JSCompiler_temp_const","prevPrepareStackTrace","JSCompiler_inline_result","JSCompiler_inline_result$jscomp$0","prefix","suffix","defaultErrorHandler","RequestInstance","model","bundlerConfig","onError","onAllReady","onFatalError","identifierPrefix","temporaryReferences","debugStartTime","environmentName","filterStackFrame","keepDebugAlive","DefaultAsyncDispatcher","timeOrigin","abortSet","pingedTasks","OPENING","AbortController","WeakMap","performance","createTask","createRequest","createPrerenderRequest","PRERENDER","currentRequest","store","requestStorage","serializeDebugThenable","counter","ref","emitOutlinedDebugModelChunk","emitErrorChunk","ABORTING","emitDebugHaltChunk","deferredDebugObjects","cancelled","ArrayBuffer","Int8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array","DataView","enqueueFlush","reason","serializeThenable","task","newTask","forwardDebugInfoFromThenable","pingTask","erroredTask","haltTask","finishHaltedTask","abortTask","finishAbortedTask","fulfilledValue","forwardDebugInfoFromCurrentContext","PENDING$1","code","stringify","readThenable","callWithDebugContextInDEV","callback","arg","componentDebugInfo","renderFunctionComponent","Component","props","validated","prevThenableState","canEmitDebugInfo","outlineTask","componentDebugID","componentEnv","advanceTaskTime","emitDebugChunk","warnForMissingKey","thenableIndexCounter","callComponentInDEV","resolvedValue","wakeable","iteratorFn","$jscomp$compprop0","iterator","ASYNC_ITERATOR","ReadableStream","REACT_OPTIMISTIC_KEY","renderModelDestructive","emptyRoot","debugTask","logKeyError","WeakSet","renderFragment","children","child","REACT_FRAGMENT_TYPE","forwardDebugInfo","deferTask","serializeLazyID","retryTask","COMPLETED","serializeByValueID","emitAsyncSequence","node","alreadyForwardedDebugInfo","visited","visitAsyncNode","task$jscomp$0","node$jscomp$0","cutOff","chain","previousIONode","cutOff$jscomp$0","awaited","startTime","serializeIONode","markOperationEndTime","scheduleMicrotask","performWork","setImmediate","keyPath","implicitSlot","formatContext","lastTimestamp","debugOwner","debugStack","serializeDeferredObject","serializeNumber","number","encodeReferenceChunk","serializeClientReference","parent","parentPropertyName","clientReferenceKey","writtenClientReferences","existingId","clientReferenceMetadata","importId","emitImportChunk","logRecoverableError","serializeDebugClientReference","outlineModel","outlineModelWithFormatContext","serializeTypedArray","tag","typedArray","bufferId","emitTypedArrayChunk","serializeDebugTypedArray","doNotLimit","__PROTO__$1","textId","elementReference","_writtenObjects","_existingReference","modelRoot","serializedSize","MAX_ROW_SIZE","refProp","renderElement","TEMPORARY_REFERENCE_TAG","newFormatContext","parentContext","srcSet","sizes","callLazyInitInDEV","outlineDebugModel","REACT_LEGACY_ELEMENT_TYPE","FormData","message","errorEnv","AggregateError","Blob","blob","abortBlob","reader","signal","progress","entry","stream","streamTask","abortStream","supportsBYOB","isByteStream","callOnAllReadyIfReady","tryStreamTask","x$6","getAsyncIterator","abortIterable","isIterator","callIteratorInDEV","endStreamRow","chunkId","x$7","ObjectPrototype$1","ObjectPrototype","symbols","emitTextChunk","serverReference","writtenServerReferences","location","emitSymbolChunk","prevRequest","errorDigest","fatalError","CLOSED","CLOSING","digest","debug","causeReference","errorsReference","cause","causeId","errors","errorsId","debugInfo","json","componentInfo","existingRef","emitIOInfoChunk","end","objectLimit","ioNode","promiseRef","callsite$jscomp$0","binaryLength","NEXT_TWO_CHUNKS_ARE_ATOMIC","text","renderDebugModel","CONSTRUCTOR_MARKER","tempRef","existingDebugReference","debugModelRoot","propertyName","debugNoOutline","hasOwnProperty","Function","prevModelRoot","request$jscomp$0","ioInfo","ioInfo$jscomp$0","id$jscomp$0","sequence","async_hooks","forwardDebugInfoFromAbortedTask","emitTimingChunk","timestamp","emitChunk","resolveModel","jsonValue","originalValue","prevKeyPath","prevImplicitSlot","thrownValue","ABORTED","SuspenseException","_resolved","ERRORED$1","prevCanEmitDebugInfo","RENDERING","parentSerializedSize","resolvedModel","currentEnv","processedChunk","errorId","ping","prevDispatcher","HooksDispatcher","currentRequest$1","flushCompletedChunks","debugDestination","debugChunks","item","importsChunks","hintChunks","_debugChunks","_item","regularChunks","_item2","errorChunks","startWork","startFlowing","startFlowingDebug","abort","abortableTasks","error$8","fromHex","str","parseInt","resolveDebugMessage","closeDebugChannel","command","retainedValue","resolveServerReference","requireAsyncModule","globalThis","ignoreReject","preloadModule","metadata","chunks","promises","loadedChunks","instrumentedChunks","requireModule","moduleExports","appendBackingEntry","backingStore","ReactPromise","status","wakeChunk","response","listeners","listener","fulfillReference","rejectChunk","rejectReference","triggerErrorOnChunk","createResolvedModelChunk","$jscomp$compprop2","RESPONSE_SYMBOL","resolveModelChunk","resolveListeners","rejectListeners","initializeModelChunk","createResolvedIteratorResultChunk","done","$jscomp$compprop4","resolveIteratorResultChunk","loadServerReference$1","metaData","parentObject","reject","blockedPromise","handler","cachedPromise","initializingHandler","resolveReference","promiseValue","MAX_BOUND_ARGS","bumpArrayCount","arrayContext","slots","prevHandler","_chunk$reason","rawModel","reviveModel","parentObj","parentKey","arrayRoot","obj","getChunk","getOutlinedModel","proxyHandlers","createMap","createSet","referencedFormDataKey","extractIterator","NaN","MAX_BIGINT_DIGITS","BigInt","parseTypedArray","parseReadableStream","parseAsyncIterable","createModel","childContext","reportGlobalError","localLength","rootArrayContexts","ArrayPrototype","referenceArrayRoot","constructor","bytesPerElement","buffer","resolveStream","controller","enqueue","flightController","closed","previousBlockedChunk","_chunk","blockedChunk","FlightIterator","next","nextWriteIndex","$jscomp$compprop5","nextReadIndex","createResponse","formFieldPrefix","backingFormData","arraySizeLimit","resolveField","close","loadServerReference","_ref","fn","decodeBoundActionMetaData","body","serverManifest","createCancelHandler","createFakeWritableFromReadableStreamController","util","ReactDOM","REACT_CONTEXT_TYPE","REACT_MEMO_CACHE_SENTINEL","queueMicrotask","serverReferenceToString","PROMISE_PROTOTYPE","receiver","ReactDOMSharedInternals","src","precedence","lastRanAwait","emptyStack","usable","index","fulfilledThenable","rejectedThenable","nextCreate","size","data","resourceType","cache","localPerformance","localDate","callComponent","callLazyInit","lazy","callIterator","triggerAsyncId","resource","trigger","WeakRef","currentAsyncId","decoderOptions","inspectedValue","cycleProtection","formData","maybeActionKey","actionKey","action","actionResult","referenceId","bound","turbopackMap","form","iterable","_entry$value","busboyStream","flush","head","current","response$jscomp$0","handle","keys","queuedFields","tail","bodyFinished","_ref2","mimeType","file","pendingFile","err","writable","readable","exportName","webSocket","debugChannel","debugChannelReadable","hasStartedFlowing","onData","lastWasPartial","stringBuffer","stringDecoder","onClose","event","debugWritable","debugChannelWritable","checkKeyStringCoercion","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONSUMER_TYPE","innerType","getTaskName","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","getter","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","validateChildKeys","isValidElement","getElementKey","element","escaperLookup","match","mapChildren","func","context","count","mapIntoArray","array","escapedPrefix","nameSoFar","invokeCallback","oldElement","newKey","childKey","userProvidedKeyEscapeRegex","didWarnAboutMaps","resolveDispatcher","lazyInitializer","resolveDebugValue","rejectDebugValue","moduleObject","_ioInfo","debugValue","_ioInfo2","displayName","createCacheRoot","createCacheNode","specialPropKeyWarningShown","didWarnAboutOldJSXRuntime","assign","createFakeCallStack","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","forEachFunc","forEachContext","fnMap","objectCache","getCurrentStack","propName","childrenLength","childArray","_i","warnAboutAccessingKey","refObject","render","ownName","elementType","ctor","lazyType","compare","deps","formatterFn","create","AsyncLocalStorage","require","WebSocket","defineProperty","configurable","get","set","value","module","__webpack_require__","definition","prop","webCrypto","inspectSymbol","mod","originalRequire","prototype","resolveFilename","_resolveFilename","__non_webpack_require__","hookPropertyMap","defaultOverrides","dirname","addHookAliases","aliases","toResolveMap","resolveMap","entries","push","originalResolveFilename","requestMap","isMain","hookResolved","call","endsWith","basename","errorConstructor","RenderStage","originalConstructor","originalNow","BaseServerSpan","LoadComponentsSpan","NextServerSpan","NextNodeServerSpan","StartServerSpan","RenderSpan","AppRenderSpan","RouterSpan","NodeSpan","AppRouteRouteHandlersSpan","ResolveMetadataSpan","MiddlewareSpan","LRUNode","prev","SentinelNode","LRUCache","maxSize","calculateSize","onEvict","totalSize","addToHead","removeNode","moveToHead","removeTail","lastNode","warn","newNode","delete","has","remove","currentSize","findSourceMap","sourceMapPayloads","findSourceMapPayload","sourceURL","sourceMap","undefined","for","invalidSourceMap","isAnonymousFrameLikelyJSNative","startsWith","regexNextStatic","stdout","process","enabled","NO_COLOR","FORCE_COLOR","isTTY","CI","TERM","replaceClose","replace","substring","nextIndex","indexOf","formatter","open","dim","italic","BUNDLER_FIND_SOURCE_MAP","CODE_FRAME_RENDERER","sourceMapConsumers","frameToString","line1","column1","fileLocation","sourceLocation","URL","canParse","cwd","computeErrorName","shouldIgnoreListGeneratedFrame","includes","createUnsourcemappedFrame","frame","ignored","toString","depth","inspectOptions","inspect","workUnitAsyncStorage","newError","sourceMapError","parseAndSourceMap","showIgnoreListed","__NEXT_SHOW_IGNORE_LISTED","unparsedStack","errorName","lastIndexOf","slice","unsourcemappedStack","parseStack","distDir","__NEXT_DIST_DIR","split","line","join","frames","parse","res","exec","pathname","effectiveDistDir","concat","pop","search","column","sourceMapCache","sourceMappedFrames","sourceFrame","sourcemappedFrame","getSourcemappedFrameIfPossible","applicableSourceMap","sourceMapConsumer","sourceMapPayload","codeFrame","sourceMapCacheEntry","maybeSourceMapPayload","devirtualizeReactServerURL","sourceMapURL","getOrCreateSourceMapConsumer","consumersByURL","consumer","SyncSourceMapConsumer","sourcePosition","originalPositionFor","findApplicableSourceMapPayload","line0","column0","sections","left","right","middle","section","offset","ignoreList","sources","source","sourceIndex","originalFrame","getOriginalCodeFrame","colors","codeFrameRenderer","sourceContentFor","ignoreListAnonymousStackFramesIfSandwichedGeneric","isAnonymousFrame","isIgnoredFrame","getMethodName","ignoreFrame","currentFrame","previousFrameIsIgnored","ignoreSandwich","j","nextFrame","sourceMappedStack","originalCustomInspect","enumerable","FileLogger","initialize","mcpServerEnabled","logFilePath","isInitialized","fs","recursive","formatTimestamp","hours","floor","padStart","minutes","seconds","milliseconds","formatLogEntry","level","scheduleFlush","flushTimer","getLogQueue","logQueue","isEnabled","logDir","logsToWrite","enqueueLog","formattedEntry","log","logEntry","logServer","logBrowser","forceFlush","destroy","fileLogger","formatObject","isArray","getOwnPropertyDescriptor","jsonKey","patchConsoleMethodDEV","originalName","consoleStore","consoleAsyncStorage","apply","ret","formatConsoleArgs","startQuote","char","parseFloat","ansiEscapeRegex","RegExp","cleanMessage","toUpperCase","patchConsoleMethod","InvariantError","applyOwnerStack","getClientReact","getServerReact","workUnitStore","innerOwnerStack","captureOwnerStack","outerOwnerStack","abortOnSynchronousPlatformIOAccess","route","expression","errorWithStack","prerenderStore","dynamicTracking","syncDynamicErrorWithStack","syncDynamicErrorWithStackPostMicrotask","dynamicAccesses","isDebugDynamicAccesses","isDynamicPostponeReason","SYNC_IO_DOCS","time","random","crypto","SYNC_IO_CLIENT_DOCS","SYNC_IO_RUNTIME_DOCS","elapsedTimeBullet","createSyncIOErrorImpl","docsUrl","io","workStore","workAsyncStorage","prerenderSignal","aborted","stageController","stagedRendering","shouldTrackSyncInterrupt","syncIOError","currentStage","syncInterruptCurrentStageWithReason","_random","properties","construct","newConstructor","getOwnPropertyDescriptors","Reflect","defineProperties","getRandomValuesExpression","_getRandomValues","getRandomValues","_randomUUID","randomUUID","nodeCrypto","randomUUIDExpression","randomBytesExpression","_randomBytes","randomBytes","randomFillSyncExpression","_randomFillSync","randomFillSync","_randomInt","randomInt","generatePrimeSyncExpression","_generatePrimeSync","generatePrimeSync","generateKeyPairSyncExpression","_generateKeyPairSync","generateKeyPairSync","generateKeySyncExpression","_generateKeySync","generateKeySync","NEXT_PRIVATE_DEBUG_CACHE","handlersSetSymbol","privateHandlerSymbol","devFrontHandlersSymbol","withExecuteRevalidates","savedRevalidationState","cloneRevalidationState","curr","prevTagsWithProfile","prevRevalidateWrites","pendingRevalidatedTags","newRevalidates","profileKey","profile","pendingRevalidateWrites","filter","pendingRevalidates","fromEntries","revalidateTags","incrementalCache","values","then","tagsWithProfile","handlers","getCacheHandlers","handlersSet","__NEXT_DEV_SERVER","iterateCacheHandlersWithDevBuiltIns","privateHandler","devFrontHandlers","tagsByProfile","existingKey","tagsForProfile","durations","cacheLife","cacheLifeProfiles","expire","updateTags","revalidateTag","sharedAsyncLocalStorageNotAvailableError","FakeAsyncLocalStorage","disable","getStore","exit","enterWith","maybeGlobalAsyncLocalStorage","AfterContext","waitUntil","onTaskError","isRequestClosed","initialOnCloseError","workUnitStores","callbackQueue","PromiseQueue","pause","phase","after","add","addThenable","addCallback","errorWaitUntilNotAvailable","reportTaskError","afterTaskStore","afterTaskAsyncStorage","rootTaskSpawnPhase","runCallbacksOnClosePromise","runCallbacksOnClose","wrappedCallback","runCallbacks","onIdle","taskKind","handlerError","REACT_LOADABLE_MANIFEST","features","typescript","ensureLeadingSlash","normalizeAppPath","reduce","segment","segments","INTERCEPTION_ROUTE_MARKERS","TEST_ROUTE","TEST_STRICT_ROUTE","isDynamicRoute","strict","isInterceptionRouteAppPath","find","m","extractInterceptionRouteInformation","interceptingRoute","marker","interceptedRoute","splitInterceptingRoute","test","SP","every","method","NormalizeError","PageNotFoundError","page","MissingStaticPage","normalizePagePath","normalized","posix","resolvedPage","normalize","normalizePathSep","requirePage","isAppPath","pagePath","getPagePath","locales","getMaybePagePath","appPathsManifest","cacheKey","pagePathCache","serverBuildPath","loadManifest","isDev","pagesManifest","_page","checkManifest","manifest","curPath","manifestNoLocales","normalizeLocalePath","detectedLocale","lowercasedLocales","locale","toLowerCase","catch","interopDefault","default","wait","ms","wellKnownProperties","getActionNotFoundError","actionId","MANIFESTS_SINGLETON","globalThisWithManifests","getManifestsSingleton","manifestSingleton","getExtensionRegexString","staticExtensions","dynamicExtensions","FAVICON_REGEX","ROBOTS_TXT_REGEX","MANIFEST_JSON_REGEX","MANIFEST_WEBMANIFEST_REGEX","SITEMAP_XML_REGEX","compiledRegexCache","loadManifestWithRetries","manifestPath","attempts","tryLoadManifestWithRetries","evalManifestWithRetries","evalManifest","loadClientReferenceManifestForPage","entryName","__RSC_MANIFEST","loadComponentsImpl","sriEnabled","needsManifestsForLegacyReasons","DocumentMod","AppMod","reactLoadableManifestPath","manifestLoadAttempts","hasClientManifest","isAppRouteRoute","isMetadataRouteFile","appDirRelativePath","pageExtensions","strictlyMatchExtensions","normalizedPath","fastResult","regexes","getCompiledRegexes","cached","trailingMatcher","suffixMatcher","variantsMatcher","robotsExts","manifestExts","buildManifest","reactLoadableManifest","dynamicCssManifest","clientReferenceManifest","serverActionsManifest","subresourceIntegrityManifest","SERVER_REFERENCE_MANIFEST","SUBRESOURCE_INTEGRITY_MANIFEST","setManifestsSingleton","rawServerActionsManifest","existingSingleton","encryptionKey","edge","clientReferenceManifestsPerRoute","mappingProxies","proxiedClientReferenceManifest","registeredManifest","currentManifest","additionalClientReferenceManifestPages","serverModuleMap","getServerActionsManifest","pageName","workerEntry","encoded","workers","pathHasPrefix","hashIndex","queryIndex","hasQuery","query","hash","at","ComponentMod","Document","App","getServerSideProps","getStaticProps","getStaticPaths","routeModule","pageConfig","loadComponents","getTracer","wrap","ReflectAdapter","deleteProperty","ReadonlyHeadersError","callable","HeadersAdapter","Headers","lowercased","original","seal","hidden","methods","isHidden","sealed","createHidingMethods","getSetCookie","forEach","callbackfn","thisArg","fresh","merge","append","ReadonlyRequestCookiesError","RequestCookiesAdapter","cookies","SYMBOL_MODIFY_COOKIE_VALUES","MutableRequestCookiesAdapter","onUpdateCookies","responseCookies","getAll","modifiedValues","modifiedCookies","updateResponseCookies","pathWasRevalidated","allCookies","serializedCookies","tempCookies","wrappedCookies","ensureCookiesAreStillMutable","requestStore","_callingExpression","PRERENDER_REVALIDATE_HEADER","PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER","WEBPACK_LAYERS_NAMES","shared","reactServerComponents","serverSideRendering","actionBrowser","apiNode","apiEdge","middleware","instrument","edgeAsset","appPagesBrowser","pagesDirBrowser","pagesDirEdge","pagesDirNode","GROUP","builtinReact","serverOnly","neutralTarget","clientOnly","bundled","appPages","COOKIE_NAME_PRERENDER_BYPASS","DraftModeProvider","previewProps","mutableCookies","isOnDemandRevalidate","checkIsOnDemandRevalidate","rawHeaders","previewModeId","revalidateOnlyGenerated","cookieValue","_isEnabled","_previewModeId","_mutableCookies","enable","httpOnly","sameSite","HIDDEN_REQUEST_HEADERS","mergeMiddlewareCookies","existingCookies","setCookieValue","splitCookiesString","charAt","probeUseCache","msg","decoded","afterContext","httpAgentOptions","nextConfigSerializable","__NEXT_HTTP_AGENT","__NEXT_HTTP_AGENT_OPTIONS","HttpAgent","__NEXT_HTTPS_AGENT","HttpsAgent","wrappedFn","actionMod","__next_app__","createTemporaryReferenceSet","encodedArguments","kind","decodeReply","bytes","File","decodeReplyFromAsyncIterable","asyncIterator","isStaticGeneration","useCacheProbeMode","timeoutMs","isDraftMode","useCacheTimeout","staticPageGenerationTimeout","buildId","deploymentId","requestStartTime","previouslyRevalidatedTags","refreshTagsByCacheKind","runInCleanSnapshot","snapshot","shouldTrackFetchMetrics","reactServerErrorsByDigest","cacheComponentsEnabled","validationLevel","createRequestStore","inputs","rootParams","implicitTags","resumeDataCache","isHmrRefresh","serverComponentsHmrCache","hmrRefreshHash","fallbackParams","requestCookies","userspaceMutableCookies","draftMode","__serverComponentsHmrCache","urlPathname","urlSearch","tags","expirationsByCacheKind"],"mappings":"mqBACA,IAAIA,UAAYC,OAAO,cAAc,CACjCC,iBAAmBD,OAAO,wBAAwB,CAClDE,kBAAoBF,OAAO,mBAAmB,CAC9CG,aAAeH,OAAO,SAAS,CAAC,cAAc,CAgB9CI,YAAc,CAAC,EAfKC,IAgBF,CACpB,eAAgB,IAAMC,eACtB,gBAAiB,IAAMC,gBACvB,YAAa,IAAMC,YACnB,eAAgB,IAAMC,eACtB,gBAAiB,IAAMC,eACzB,EArBE,IAAK,IAAIC,QAAQN,IACfN,UAcKK,YAdaO,KAAM,CAAE,IAAKN,GAAG,CAACM,KAAK,CAAE,WAAY,EAAK,GAwB/D,SAASD,gBAAgBE,CAAC,EACxB,IAAIC,GACJ,IAAMC,MAAQ,CACZ,SAAUF,GAAKA,EAAE,IAAI,EAAI,CAAC,KAAK,EAAEA,EAAE,IAAI,CAAC,CAAC,CACzC,YAAaA,GAAMA,CAAAA,EAAE,OAAO,EAAIA,AAAc,IAAdA,EAAE,OAAO,AAAK,GAAM,CAAC,QAAQ,EAAE,AAAC,CAAqB,UAArB,OAAOA,EAAE,OAAO,CAAgB,IAAIG,KAAKH,EAAE,OAAO,EAAIA,EAAE,OAAO,AAAD,EAAG,WAAW,GAAG,CAAC,CAChJ,WAAYA,GAAK,AAAoB,UAApB,OAAOA,EAAE,MAAM,EAAiB,CAAC,QAAQ,EAAEA,EAAE,MAAM,CAAC,CAAC,CACtE,WAAYA,GAAKA,EAAE,MAAM,EAAI,CAAC,OAAO,EAAEA,EAAE,MAAM,CAAC,CAAC,CACjD,WAAYA,GAAKA,EAAE,MAAM,EAAI,SAC7B,aAAcA,GAAKA,EAAE,QAAQ,EAAI,WACjC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AAIn/C,GAAM,EAC5Du+C,gBAAiB,KACjB/D,aAAcrhB,OACdqlB,aAAc3C,IAAIpyC,OAAO,CAAC+0C,YAAY,CACtCC,yBAA0BtlB,OAC1BulB,eAAgB7C,IAAIpyC,OAAO,CAACi1C,cAAc,CAC1CC,eAAgB,IAClB,GAMA,OAJA,MAAM9Y,+CAAAA,gBAAAA,CAAAA,GAAoB,CAACD,UAAW,IACpC7J,oDAAAA,oBAAAA,CAAAA,GAAwB,CAACoI,cAAeoY,UAAUl0C,IAAI,CAAC,QAASvG,QAG3D,EACT,CAAE,KAAM,CAIN,MAAO,EACT,CACF,C","ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76]}