ci: GHCR docker build for Lite branch + compose updates

- .github/workflows/docker-lite.yml: build & push ghcr.io/lezi-fun/
  forumlify-deploy:lite on Lite branch push (linux/amd64+arm64)
- docker-compose.yml: pull :lite image from GHCR, add PORT / ENABLE_
  CAPTCHA env, restart: unless-stopped on both services
This commit is contained in:
lezi-fun committed 2026-08-12 09:21:12 +08:00
1 parent 8f88f803f5
commit 9e407d0a2d
1532 files changed
+645187 -1

No files matched your search

@@ -0,0 +1,23 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[next]/entry/page-loader.ts { PAGE => \"[project]/node_modules/next/app.js [client] (ecmascript)\" } [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
const PAGE_PATH = "/_app";
(window.__NEXT_P = window.__NEXT_P || []).push([
PAGE_PATH,
()=>{
return __turbopack_context__.r("[project]/node_modules/next/app.js [client] (ecmascript)");
}
]);
// @ts-expect-error module.hot exists
if ("TURBOPACK compile-time truthy", 1) {
// @ts-expect-error module.hot exists
module.hot.dispose(function() {
window.__NEXT_P.push([
PAGE_PATH
]);
});
}
}),
]);
//# sourceMappingURL=%5Bnext%5D_entry_page-loader_ts_0z3haqk._.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[next]/entry/page-loader.ts"],"sourcesContent":["const PAGE_PATH = \"/_app\";\n\n/// <reference types=\"next/client\" />\n\n// inserted by rust code\ndeclare const PAGE_PATH: string\n\n // Adapted from https://github.com/vercel/next.js/blob/b7f9f1f98fc8ab602e84825105b5727272b72e7d/packages/next/src/build/webpack/loaders/next-client-pages-loader.ts\n;(window.__NEXT_P = window.__NEXT_P || []).push([\n PAGE_PATH,\n () => {\n return require('PAGE')\n },\n])\n// @ts-expect-error module.hot exists\nif (module.hot) {\n // @ts-expect-error module.hot exists\n module.hot.dispose(function () {\n window.__NEXT_P.push([PAGE_PATH])\n })\n}\n"],"names":["PAGE_PATH","window","__NEXT_P","push","module","hot","dispose"],"mappings":"AAAA,MAAMA,YAAY;AAQjB,CAACC,OAAOC,QAAQ,GAAGD,OAAOC,QAAQ,IAAI,EAAE,EAAEC,IAAI,CAAC;IAC9CH;IACA;QACE;IACF;CACD;AACD,qCAAqC;AACrC,wCAAgB;IACd,qCAAqC;IACrCI,OAAOC,GAAG,CAACC,OAAO,CAAC;QACjBL,OAAOC,QAAQ,CAACC,IAAI,CAAC;YAACH;SAAU;IAClC;AACF","ignoreList":[0]}}]
}
@@ -0,0 +1,23 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[next]/entry/page-loader.ts { PAGE => \"[project]/node_modules/next/dist/pages/_error.js [client] (ecmascript)\" } [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
const PAGE_PATH = "/_error";
(window.__NEXT_P = window.__NEXT_P || []).push([
PAGE_PATH,
()=>{
return __turbopack_context__.r("[project]/node_modules/next/dist/pages/_error.js [client] (ecmascript)");
}
]);
// @ts-expect-error module.hot exists
if ("TURBOPACK compile-time truthy", 1) {
// @ts-expect-error module.hot exists
module.hot.dispose(function() {
window.__NEXT_P.push([
PAGE_PATH
]);
});
}
}),
]);
//# sourceMappingURL=%5Bnext%5D_entry_page-loader_ts_1aoli7m._.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["turbopack:///[next]/entry/page-loader.ts"],"sourcesContent":["const PAGE_PATH = \"/_error\";\n\n/// <reference types=\"next/client\" />\n\n// inserted by rust code\ndeclare const PAGE_PATH: string\n\n // Adapted from https://github.com/vercel/next.js/blob/b7f9f1f98fc8ab602e84825105b5727272b72e7d/packages/next/src/build/webpack/loaders/next-client-pages-loader.ts\n;(window.__NEXT_P = window.__NEXT_P || []).push([\n PAGE_PATH,\n () => {\n return require('PAGE')\n },\n])\n// @ts-expect-error module.hot exists\nif (module.hot) {\n // @ts-expect-error module.hot exists\n module.hot.dispose(function () {\n window.__NEXT_P.push([PAGE_PATH])\n })\n}\n"],"names":["PAGE_PATH","window","__NEXT_P","push","module","hot","dispose"],"mappings":"AAAA,MAAMA,YAAY;AAQjB,CAACC,OAAOC,QAAQ,GAAGD,OAAOC,QAAQ,IAAI,EAAE,EAAEC,IAAI,CAAC;IAC9CH;IACA;QACE;IACF;CACD;AACD,qCAAqC;AACrC,wCAAgB;IACd,qCAAqC;IACrCI,OAAOC,GAAG,CAACC,OAAO,CAAC;QACjBL,OAAOC,QAAQ,CAACC,IAAI,CAAC;YAACH;SAAU;IAClC;AACF","ignoreList":[0]}}]
}
@@ -0,0 +1,476 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[hmr-entry]/hmr-entry.js { ENTRY => \"[project]/pages/_error\" }", (function(__turbopack_context__){
"use strict";
__turbopack_context__.r("[next]/entry/page-loader.ts { PAGE => \"[project]/node_modules/next/dist/pages/_error.js [client] (ecmascript)\" } [client] (ecmascript)");
}),
"[turbopack]/browser/dev/hmr-client/hmr-client.ts [client] (ecmascript)", ((__turbopack_context__) => {
"use strict";
/// <reference path="../../../shared/runtime/runtime-types.d.ts" />
/// <reference path="../../../shared/runtime/dev-globals.d.ts" />
/// <reference path="../../../shared/runtime/dev-protocol.d.ts" />
/// <reference path="../../../shared/runtime/dev-extensions.ts" />
__turbopack_context__.s([
"connect",
()=>connect,
"setHooks",
()=>setHooks,
"subscribeToUpdate",
()=>subscribeToUpdate
]);
function connect({ addMessageListener, sendMessage, onUpdateError = console.error }) {
addMessageListener((msg)=>{
switch(msg.type){
case 'turbopack-connected':
handleSocketConnected(sendMessage);
break;
default:
try {
if (Array.isArray(msg.data)) {
for(let i = 0; i < msg.data.length; i++){
handleSocketMessage(msg.data[i]);
}
} else {
handleSocketMessage(msg.data);
}
applyAggregatedUpdates();
} catch (e) {
console.warn('[Fast Refresh] performing full reload\n\n' + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n' + 'Consider migrating the non-React component export to a separate file and importing it into both files.\n\n' + 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n' + 'Fast Refresh requires at least one parent function component in your React tree.');
onUpdateError(e);
location.reload();
}
break;
}
});
const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS;
if (queued != null && !Array.isArray(queued)) {
throw new Error('A separate HMR handler was already registered');
}
globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {
push: ([chunkPath, callback])=>{
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
};
if (Array.isArray(queued)) {
for (const [chunkPath, callback] of queued){
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
}
}
const updateCallbackSets = new Map();
function sendJSON(sendMessage, message) {
sendMessage(JSON.stringify(message));
}
function resourceKey(resource) {
return JSON.stringify({
path: resource.path,
headers: resource.headers || null
});
}
function subscribeToUpdates(sendMessage, resource) {
sendJSON(sendMessage, {
type: 'turbopack-subscribe',
...resource
});
return ()=>{
sendJSON(sendMessage, {
type: 'turbopack-unsubscribe',
...resource
});
};
}
function handleSocketConnected(sendMessage) {
for (const key of updateCallbackSets.keys()){
subscribeToUpdates(sendMessage, JSON.parse(key));
}
}
// we aggregate all pending updates until the issues are resolved
const chunkListsWithPendingUpdates = new Map();
function aggregateUpdates(msg) {
const key = resourceKey(msg.resource);
let aggregated = chunkListsWithPendingUpdates.get(key);
if (aggregated) {
aggregated.instruction = mergeChunkListUpdates(aggregated.instruction, msg.instruction);
} else {
chunkListsWithPendingUpdates.set(key, msg);
}
}
function applyAggregatedUpdates() {
if (chunkListsWithPendingUpdates.size === 0) return;
hooks.beforeRefresh();
for (const msg of chunkListsWithPendingUpdates.values()){
triggerUpdate(msg);
}
chunkListsWithPendingUpdates.clear();
finalizeUpdate();
}
function mergeChunkListUpdates(updateA, updateB) {
let chunks;
if (updateA.chunks != null) {
if (updateB.chunks == null) {
chunks = updateA.chunks;
} else {
chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks);
}
} else if (updateB.chunks != null) {
chunks = updateB.chunks;
}
let merged;
if (updateA.merged != null) {
if (updateB.merged == null) {
merged = updateA.merged;
} else {
// Since `merged` is an array of updates, we need to merge them all into
// one, consistent update.
// Since there can only be `EcmascriptMergeUpdates` in the array, there is
// no need to key on the `type` field.
let update = updateA.merged[0];
for(let i = 1; i < updateA.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateA.merged[i]);
}
for(let i = 0; i < updateB.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateB.merged[i]);
}
merged = [
update
];
}
} else if (updateB.merged != null) {
merged = updateB.merged;
}
return {
type: 'ChunkListUpdate',
chunks,
merged
};
}
function mergeChunkListChunks(chunksA, chunksB) {
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
return chunks;
}
function mergeChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted' || updateA.type === 'deleted' && updateB.type === 'added') {
return undefined;
}
if (updateB.type === 'total') {
// A total update replaces the entire chunk, so it supersedes any prior update.
return updateB;
}
if (updateA.type === 'partial') {
invariant(updateA.instruction, 'Partial updates are unsupported');
}
if (updateB.type === 'partial') {
invariant(updateB.instruction, 'Partial updates are unsupported');
}
return undefined;
}
function mergeChunkListEcmascriptMergedUpdates(mergedA, mergedB) {
const entries = mergeEcmascriptChunkEntries(mergedA.entries, mergedB.entries);
const chunks = mergeEcmascriptChunksUpdates(mergedA.chunks, mergedB.chunks);
return {
type: 'EcmascriptMergedUpdate',
entries,
chunks
};
}
function mergeEcmascriptChunkEntries(entriesA, entriesB) {
return {
...entriesA,
...entriesB
};
}
function mergeEcmascriptChunksUpdates(chunksA, chunksB) {
if (chunksA == null) {
return chunksB;
}
if (chunksB == null) {
return chunksA;
}
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeEcmascriptChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
if (Object.keys(chunks).length === 0) {
return undefined;
}
return chunks;
}
function mergeEcmascriptChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted') {
// These two completely cancel each other out.
return undefined;
}
if (updateA.type === 'deleted' && updateB.type === 'added') {
const added = [];
const deleted = [];
const deletedModules = new Set(updateA.modules ?? []);
const addedModules = new Set(updateB.modules ?? []);
for (const moduleId of addedModules){
if (!deletedModules.has(moduleId)) {
added.push(moduleId);
}
}
for (const moduleId of deletedModules){
if (!addedModules.has(moduleId)) {
deleted.push(moduleId);
}
}
if (added.length === 0 && deleted.length === 0) {
return undefined;
}
return {
type: 'partial',
added,
deleted
};
}
if (updateA.type === 'partial' && updateB.type === 'partial') {
const added = new Set([
...updateA.added ?? [],
...updateB.added ?? []
]);
const deleted = new Set([
...updateA.deleted ?? [],
...updateB.deleted ?? []
]);
if (updateB.added != null) {
for (const moduleId of updateB.added){
deleted.delete(moduleId);
}
}
if (updateB.deleted != null) {
for (const moduleId of updateB.deleted){
added.delete(moduleId);
}
}
return {
type: 'partial',
added: [
...added
],
deleted: [
...deleted
]
};
}
if (updateA.type === 'added' && updateB.type === 'partial') {
const modules = new Set([
...updateA.modules ?? [],
...updateB.added ?? []
]);
for (const moduleId of updateB.deleted ?? []){
modules.delete(moduleId);
}
return {
type: 'added',
modules: [
...modules
]
};
}
if (updateA.type === 'partial' && updateB.type === 'deleted') {
// We could eagerly return `updateB` here, but this would potentially be
// incorrect if `updateA` has added modules.
const modules = new Set(updateB.modules ?? []);
if (updateA.added != null) {
for (const moduleId of updateA.added){
modules.delete(moduleId);
}
}
return {
type: 'deleted',
modules: [
...modules
]
};
}
// Any other update combination is invalid.
return undefined;
}
function invariant(_, message) {
throw new Error(`Invariant: ${message}`);
}
const CRITICAL = [
'bug',
'error',
'fatal'
];
function compareByList(list, a, b) {
const aI = list.indexOf(a) + 1 || list.length;
const bI = list.indexOf(b) + 1 || list.length;
return aI - bI;
}
const chunksWithIssues = new Map();
function emitIssues() {
const issues = [];
const deduplicationSet = new Set();
for (const [_, chunkIssues] of chunksWithIssues){
for (const chunkIssue of chunkIssues){
if (deduplicationSet.has(chunkIssue.formatted)) continue;
issues.push(chunkIssue);
deduplicationSet.add(chunkIssue.formatted);
}
}
sortIssues(issues);
hooks.issues(issues);
}
function handleIssues(msg) {
const key = resourceKey(msg.resource);
let hasCriticalIssues = false;
for (const issue of msg.issues){
if (CRITICAL.includes(issue.severity)) {
hasCriticalIssues = true;
}
}
if (msg.issues.length > 0) {
chunksWithIssues.set(key, msg.issues);
} else if (chunksWithIssues.has(key)) {
chunksWithIssues.delete(key);
}
emitIssues();
return hasCriticalIssues;
}
const SEVERITY_ORDER = [
'bug',
'fatal',
'error',
'warning',
'info',
'log'
];
const CATEGORY_ORDER = [
'parse',
'resolve',
'code generation',
'rendering',
'typescript',
'other'
];
function sortIssues(issues) {
issues.sort((a, b)=>{
const first = compareByList(SEVERITY_ORDER, a.severity, b.severity);
if (first !== 0) return first;
return compareByList(CATEGORY_ORDER, a.category, b.category);
});
}
const hooks = {
beforeRefresh: ()=>{},
refresh: ()=>{},
buildOk: ()=>{},
issues: (_issues)=>{}
};
function setHooks(newHooks) {
Object.assign(hooks, newHooks);
}
function handleSocketMessage(msg) {
sortIssues(msg.issues);
handleIssues(msg);
switch(msg.type){
case 'issues':
break;
case 'partial':
// aggregate updates
aggregateUpdates(msg);
break;
default:
// run single update
const runHooks = chunkListsWithPendingUpdates.size === 0;
if (runHooks) hooks.beforeRefresh();
triggerUpdate(msg);
if (runHooks) finalizeUpdate();
break;
}
}
function finalizeUpdate() {
hooks.refresh();
hooks.buildOk();
// This is used by the Next.js integration test suite to notify it when HMR
// updates have been completed.
// TODO: Only run this in test environments (gate by `process.env.__NEXT_TEST_MODE`)
if (globalThis.__NEXT_HMR_CB) {
globalThis.__NEXT_HMR_CB();
globalThis.__NEXT_HMR_CB = null;
}
}
function subscribeToChunkUpdate(chunkListPath, sendMessage, callback) {
return subscribeToUpdate({
path: chunkListPath
}, sendMessage, callback);
}
function subscribeToUpdate(resource, sendMessage, callback) {
const key = resourceKey(resource);
let callbackSet;
const existingCallbackSet = updateCallbackSets.get(key);
if (!existingCallbackSet) {
callbackSet = {
callbacks: new Set([
callback
]),
unsubscribe: subscribeToUpdates(sendMessage, resource)
};
updateCallbackSets.set(key, callbackSet);
} else {
existingCallbackSet.callbacks.add(callback);
callbackSet = existingCallbackSet;
}
return ()=>{
callbackSet.callbacks.delete(callback);
if (callbackSet.callbacks.size === 0) {
callbackSet.unsubscribe();
updateCallbackSets.delete(key);
}
};
}
function triggerUpdate(msg) {
const key = resourceKey(msg.resource);
const callbackSet = updateCallbackSets.get(key);
if (!callbackSet) {
return;
}
for (const callback of callbackSet.callbacks){
callback(msg);
}
if (msg.type === 'notFound') {
// This indicates that the resource which we subscribed to either does not exist or
// has been deleted. In either case, we should clear all update callbacks, so if a
// new subscription is created for the same resource, it will send a new "subscribe"
// message to the server.
// No need to send an "unsubscribe" message to the server, it will have already
// dropped the update stream before sending the "notFound" message.
updateCallbackSets.delete(key);
}
}
}),
]);
//# sourceMappingURL=%5Broot-of-the-server%5D__02sxxph._.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/dev/hmr-client/hmr-client.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-extensions.ts\" />\n\ntype SendMessage = (msg: any) => void\nexport type WebSocketMessage =\n | {\n type: 'turbopack-connected'\n }\n | {\n type: 'turbopack-message'\n data: Record<string, any>\n }\n\nexport type ClientOptions = {\n addMessageListener: (cb: (msg: WebSocketMessage) => void) => void\n sendMessage: SendMessage\n onUpdateError: (err: unknown) => void\n}\n\nexport function connect({\n addMessageListener,\n sendMessage,\n onUpdateError = console.error,\n}: ClientOptions) {\n addMessageListener((msg) => {\n switch (msg.type) {\n case 'turbopack-connected':\n handleSocketConnected(sendMessage)\n break\n default:\n try {\n if (Array.isArray(msg.data)) {\n for (let i = 0; i < msg.data.length; i++) {\n handleSocketMessage(msg.data[i] as ServerMessage)\n }\n } else {\n handleSocketMessage(msg.data as ServerMessage)\n }\n applyAggregatedUpdates()\n } catch (e: unknown) {\n console.warn(\n '[Fast Refresh] performing full reload\\n\\n' +\n \"Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\\n\" +\n 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\\n' +\n 'Consider migrating the non-React component export to a separate file and importing it into both files.\\n\\n' +\n 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\\n' +\n 'Fast Refresh requires at least one parent function component in your React tree.'\n )\n onUpdateError(e)\n location.reload()\n }\n break\n }\n })\n\n const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS\n if (queued != null && !Array.isArray(queued)) {\n throw new Error('A separate HMR handler was already registered')\n }\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {\n push: ([chunkPath, callback]: [ChunkListPath, UpdateCallback]) => {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n },\n }\n\n if (Array.isArray(queued)) {\n for (const [chunkPath, callback] of queued) {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n }\n }\n}\n\ntype UpdateCallbackSet = {\n callbacks: Set<UpdateCallback>\n unsubscribe: () => void\n}\n\nconst updateCallbackSets: Map<ResourceKey, UpdateCallbackSet> = new Map()\n\nfunction sendJSON(sendMessage: SendMessage, message: ClientMessage) {\n sendMessage(JSON.stringify(message))\n}\n\ntype ResourceKey = string\n\nfunction resourceKey(resource: ResourceIdentifier): ResourceKey {\n return JSON.stringify({\n path: resource.path,\n headers: resource.headers || null,\n })\n}\n\nfunction subscribeToUpdates(\n sendMessage: SendMessage,\n resource: ResourceIdentifier\n): () => void {\n sendJSON(sendMessage, {\n type: 'turbopack-subscribe',\n ...resource,\n })\n\n return () => {\n sendJSON(sendMessage, {\n type: 'turbopack-unsubscribe',\n ...resource,\n })\n }\n}\n\nfunction handleSocketConnected(sendMessage: SendMessage) {\n for (const key of updateCallbackSets.keys()) {\n subscribeToUpdates(sendMessage, JSON.parse(key))\n }\n}\n\n// we aggregate all pending updates until the issues are resolved\nconst chunkListsWithPendingUpdates: Map<ResourceKey, PartialServerMessage> =\n new Map()\n\nfunction aggregateUpdates(msg: PartialServerMessage) {\n const key = resourceKey(msg.resource)\n let aggregated = chunkListsWithPendingUpdates.get(key)\n\n if (aggregated) {\n aggregated.instruction = mergeChunkListUpdates(\n aggregated.instruction,\n msg.instruction\n )\n } else {\n chunkListsWithPendingUpdates.set(key, msg)\n }\n}\n\nfunction applyAggregatedUpdates() {\n if (chunkListsWithPendingUpdates.size === 0) return\n hooks.beforeRefresh()\n for (const msg of chunkListsWithPendingUpdates.values()) {\n triggerUpdate(msg)\n }\n chunkListsWithPendingUpdates.clear()\n finalizeUpdate()\n}\n\nfunction mergeChunkListUpdates(\n updateA: ChunkListUpdate,\n updateB: ChunkListUpdate\n): ChunkListUpdate {\n let chunks\n if (updateA.chunks != null) {\n if (updateB.chunks == null) {\n chunks = updateA.chunks\n } else {\n chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks)\n }\n } else if (updateB.chunks != nulLine truncated
}
@@ -0,0 +1,476 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[hmr-entry]/hmr-entry.js { ENTRY => \"[project]/pages/_app\" }", (function(__turbopack_context__){
"use strict";
__turbopack_context__.r("[next]/entry/page-loader.ts { PAGE => \"[project]/node_modules/next/app.js [client] (ecmascript)\" } [client] (ecmascript)");
}),
"[turbopack]/browser/dev/hmr-client/hmr-client.ts [client] (ecmascript)", ((__turbopack_context__) => {
"use strict";
/// <reference path="../../../shared/runtime/runtime-types.d.ts" />
/// <reference path="../../../shared/runtime/dev-globals.d.ts" />
/// <reference path="../../../shared/runtime/dev-protocol.d.ts" />
/// <reference path="../../../shared/runtime/dev-extensions.ts" />
__turbopack_context__.s([
"connect",
()=>connect,
"setHooks",
()=>setHooks,
"subscribeToUpdate",
()=>subscribeToUpdate
]);
function connect({ addMessageListener, sendMessage, onUpdateError = console.error }) {
addMessageListener((msg)=>{
switch(msg.type){
case 'turbopack-connected':
handleSocketConnected(sendMessage);
break;
default:
try {
if (Array.isArray(msg.data)) {
for(let i = 0; i < msg.data.length; i++){
handleSocketMessage(msg.data[i]);
}
} else {
handleSocketMessage(msg.data);
}
applyAggregatedUpdates();
} catch (e) {
console.warn('[Fast Refresh] performing full reload\n\n' + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n' + 'Consider migrating the non-React component export to a separate file and importing it into both files.\n\n' + 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n' + 'Fast Refresh requires at least one parent function component in your React tree.');
onUpdateError(e);
location.reload();
}
break;
}
});
const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS;
if (queued != null && !Array.isArray(queued)) {
throw new Error('A separate HMR handler was already registered');
}
globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {
push: ([chunkPath, callback])=>{
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
};
if (Array.isArray(queued)) {
for (const [chunkPath, callback] of queued){
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
}
}
const updateCallbackSets = new Map();
function sendJSON(sendMessage, message) {
sendMessage(JSON.stringify(message));
}
function resourceKey(resource) {
return JSON.stringify({
path: resource.path,
headers: resource.headers || null
});
}
function subscribeToUpdates(sendMessage, resource) {
sendJSON(sendMessage, {
type: 'turbopack-subscribe',
...resource
});
return ()=>{
sendJSON(sendMessage, {
type: 'turbopack-unsubscribe',
...resource
});
};
}
function handleSocketConnected(sendMessage) {
for (const key of updateCallbackSets.keys()){
subscribeToUpdates(sendMessage, JSON.parse(key));
}
}
// we aggregate all pending updates until the issues are resolved
const chunkListsWithPendingUpdates = new Map();
function aggregateUpdates(msg) {
const key = resourceKey(msg.resource);
let aggregated = chunkListsWithPendingUpdates.get(key);
if (aggregated) {
aggregated.instruction = mergeChunkListUpdates(aggregated.instruction, msg.instruction);
} else {
chunkListsWithPendingUpdates.set(key, msg);
}
}
function applyAggregatedUpdates() {
if (chunkListsWithPendingUpdates.size === 0) return;
hooks.beforeRefresh();
for (const msg of chunkListsWithPendingUpdates.values()){
triggerUpdate(msg);
}
chunkListsWithPendingUpdates.clear();
finalizeUpdate();
}
function mergeChunkListUpdates(updateA, updateB) {
let chunks;
if (updateA.chunks != null) {
if (updateB.chunks == null) {
chunks = updateA.chunks;
} else {
chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks);
}
} else if (updateB.chunks != null) {
chunks = updateB.chunks;
}
let merged;
if (updateA.merged != null) {
if (updateB.merged == null) {
merged = updateA.merged;
} else {
// Since `merged` is an array of updates, we need to merge them all into
// one, consistent update.
// Since there can only be `EcmascriptMergeUpdates` in the array, there is
// no need to key on the `type` field.
let update = updateA.merged[0];
for(let i = 1; i < updateA.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateA.merged[i]);
}
for(let i = 0; i < updateB.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateB.merged[i]);
}
merged = [
update
];
}
} else if (updateB.merged != null) {
merged = updateB.merged;
}
return {
type: 'ChunkListUpdate',
chunks,
merged
};
}
function mergeChunkListChunks(chunksA, chunksB) {
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
return chunks;
}
function mergeChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted' || updateA.type === 'deleted' && updateB.type === 'added') {
return undefined;
}
if (updateB.type === 'total') {
// A total update replaces the entire chunk, so it supersedes any prior update.
return updateB;
}
if (updateA.type === 'partial') {
invariant(updateA.instruction, 'Partial updates are unsupported');
}
if (updateB.type === 'partial') {
invariant(updateB.instruction, 'Partial updates are unsupported');
}
return undefined;
}
function mergeChunkListEcmascriptMergedUpdates(mergedA, mergedB) {
const entries = mergeEcmascriptChunkEntries(mergedA.entries, mergedB.entries);
const chunks = mergeEcmascriptChunksUpdates(mergedA.chunks, mergedB.chunks);
return {
type: 'EcmascriptMergedUpdate',
entries,
chunks
};
}
function mergeEcmascriptChunkEntries(entriesA, entriesB) {
return {
...entriesA,
...entriesB
};
}
function mergeEcmascriptChunksUpdates(chunksA, chunksB) {
if (chunksA == null) {
return chunksB;
}
if (chunksB == null) {
return chunksA;
}
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeEcmascriptChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
if (Object.keys(chunks).length === 0) {
return undefined;
}
return chunks;
}
function mergeEcmascriptChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted') {
// These two completely cancel each other out.
return undefined;
}
if (updateA.type === 'deleted' && updateB.type === 'added') {
const added = [];
const deleted = [];
const deletedModules = new Set(updateA.modules ?? []);
const addedModules = new Set(updateB.modules ?? []);
for (const moduleId of addedModules){
if (!deletedModules.has(moduleId)) {
added.push(moduleId);
}
}
for (const moduleId of deletedModules){
if (!addedModules.has(moduleId)) {
deleted.push(moduleId);
}
}
if (added.length === 0 && deleted.length === 0) {
return undefined;
}
return {
type: 'partial',
added,
deleted
};
}
if (updateA.type === 'partial' && updateB.type === 'partial') {
const added = new Set([
...updateA.added ?? [],
...updateB.added ?? []
]);
const deleted = new Set([
...updateA.deleted ?? [],
...updateB.deleted ?? []
]);
if (updateB.added != null) {
for (const moduleId of updateB.added){
deleted.delete(moduleId);
}
}
if (updateB.deleted != null) {
for (const moduleId of updateB.deleted){
added.delete(moduleId);
}
}
return {
type: 'partial',
added: [
...added
],
deleted: [
...deleted
]
};
}
if (updateA.type === 'added' && updateB.type === 'partial') {
const modules = new Set([
...updateA.modules ?? [],
...updateB.added ?? []
]);
for (const moduleId of updateB.deleted ?? []){
modules.delete(moduleId);
}
return {
type: 'added',
modules: [
...modules
]
};
}
if (updateA.type === 'partial' && updateB.type === 'deleted') {
// We could eagerly return `updateB` here, but this would potentially be
// incorrect if `updateA` has added modules.
const modules = new Set(updateB.modules ?? []);
if (updateA.added != null) {
for (const moduleId of updateA.added){
modules.delete(moduleId);
}
}
return {
type: 'deleted',
modules: [
...modules
]
};
}
// Any other update combination is invalid.
return undefined;
}
function invariant(_, message) {
throw new Error(`Invariant: ${message}`);
}
const CRITICAL = [
'bug',
'error',
'fatal'
];
function compareByList(list, a, b) {
const aI = list.indexOf(a) + 1 || list.length;
const bI = list.indexOf(b) + 1 || list.length;
return aI - bI;
}
const chunksWithIssues = new Map();
function emitIssues() {
const issues = [];
const deduplicationSet = new Set();
for (const [_, chunkIssues] of chunksWithIssues){
for (const chunkIssue of chunkIssues){
if (deduplicationSet.has(chunkIssue.formatted)) continue;
issues.push(chunkIssue);
deduplicationSet.add(chunkIssue.formatted);
}
}
sortIssues(issues);
hooks.issues(issues);
}
function handleIssues(msg) {
const key = resourceKey(msg.resource);
let hasCriticalIssues = false;
for (const issue of msg.issues){
if (CRITICAL.includes(issue.severity)) {
hasCriticalIssues = true;
}
}
if (msg.issues.length > 0) {
chunksWithIssues.set(key, msg.issues);
} else if (chunksWithIssues.has(key)) {
chunksWithIssues.delete(key);
}
emitIssues();
return hasCriticalIssues;
}
const SEVERITY_ORDER = [
'bug',
'fatal',
'error',
'warning',
'info',
'log'
];
const CATEGORY_ORDER = [
'parse',
'resolve',
'code generation',
'rendering',
'typescript',
'other'
];
function sortIssues(issues) {
issues.sort((a, b)=>{
const first = compareByList(SEVERITY_ORDER, a.severity, b.severity);
if (first !== 0) return first;
return compareByList(CATEGORY_ORDER, a.category, b.category);
});
}
const hooks = {
beforeRefresh: ()=>{},
refresh: ()=>{},
buildOk: ()=>{},
issues: (_issues)=>{}
};
function setHooks(newHooks) {
Object.assign(hooks, newHooks);
}
function handleSocketMessage(msg) {
sortIssues(msg.issues);
handleIssues(msg);
switch(msg.type){
case 'issues':
break;
case 'partial':
// aggregate updates
aggregateUpdates(msg);
break;
default:
// run single update
const runHooks = chunkListsWithPendingUpdates.size === 0;
if (runHooks) hooks.beforeRefresh();
triggerUpdate(msg);
if (runHooks) finalizeUpdate();
break;
}
}
function finalizeUpdate() {
hooks.refresh();
hooks.buildOk();
// This is used by the Next.js integration test suite to notify it when HMR
// updates have been completed.
// TODO: Only run this in test environments (gate by `process.env.__NEXT_TEST_MODE`)
if (globalThis.__NEXT_HMR_CB) {
globalThis.__NEXT_HMR_CB();
globalThis.__NEXT_HMR_CB = null;
}
}
function subscribeToChunkUpdate(chunkListPath, sendMessage, callback) {
return subscribeToUpdate({
path: chunkListPath
}, sendMessage, callback);
}
function subscribeToUpdate(resource, sendMessage, callback) {
const key = resourceKey(resource);
let callbackSet;
const existingCallbackSet = updateCallbackSets.get(key);
if (!existingCallbackSet) {
callbackSet = {
callbacks: new Set([
callback
]),
unsubscribe: subscribeToUpdates(sendMessage, resource)
};
updateCallbackSets.set(key, callbackSet);
} else {
existingCallbackSet.callbacks.add(callback);
callbackSet = existingCallbackSet;
}
return ()=>{
callbackSet.callbacks.delete(callback);
if (callbackSet.callbacks.size === 0) {
callbackSet.unsubscribe();
updateCallbackSets.delete(key);
}
};
}
function triggerUpdate(msg) {
const key = resourceKey(msg.resource);
const callbackSet = updateCallbackSets.get(key);
if (!callbackSet) {
return;
}
for (const callback of callbackSet.callbacks){
callback(msg);
}
if (msg.type === 'notFound') {
// This indicates that the resource which we subscribed to either does not exist or
// has been deleted. In either case, we should clear all update callbacks, so if a
// new subscription is created for the same resource, it will send a new "subscribe"
// message to the server.
// No need to send an "unsubscribe" message to the server, it will have already
// dropped the update stream before sending the "notFound" message.
updateCallbackSets.delete(key);
}
}
}),
]);
//# sourceMappingURL=%5Broot-of-the-server%5D__0l4r13l._.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 9, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/dev/hmr-client/hmr-client.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-extensions.ts\" />\n\ntype SendMessage = (msg: any) => void\nexport type WebSocketMessage =\n | {\n type: 'turbopack-connected'\n }\n | {\n type: 'turbopack-message'\n data: Record<string, any>\n }\n\nexport type ClientOptions = {\n addMessageListener: (cb: (msg: WebSocketMessage) => void) => void\n sendMessage: SendMessage\n onUpdateError: (err: unknown) => void\n}\n\nexport function connect({\n addMessageListener,\n sendMessage,\n onUpdateError = console.error,\n}: ClientOptions) {\n addMessageListener((msg) => {\n switch (msg.type) {\n case 'turbopack-connected':\n handleSocketConnected(sendMessage)\n break\n default:\n try {\n if (Array.isArray(msg.data)) {\n for (let i = 0; i < msg.data.length; i++) {\n handleSocketMessage(msg.data[i] as ServerMessage)\n }\n } else {\n handleSocketMessage(msg.data as ServerMessage)\n }\n applyAggregatedUpdates()\n } catch (e: unknown) {\n console.warn(\n '[Fast Refresh] performing full reload\\n\\n' +\n \"Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\\n\" +\n 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\\n' +\n 'Consider migrating the non-React component export to a separate file and importing it into both files.\\n\\n' +\n 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\\n' +\n 'Fast Refresh requires at least one parent function component in your React tree.'\n )\n onUpdateError(e)\n location.reload()\n }\n break\n }\n })\n\n const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS\n if (queued != null && !Array.isArray(queued)) {\n throw new Error('A separate HMR handler was already registered')\n }\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {\n push: ([chunkPath, callback]: [ChunkListPath, UpdateCallback]) => {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n },\n }\n\n if (Array.isArray(queued)) {\n for (const [chunkPath, callback] of queued) {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n }\n }\n}\n\ntype UpdateCallbackSet = {\n callbacks: Set<UpdateCallback>\n unsubscribe: () => void\n}\n\nconst updateCallbackSets: Map<ResourceKey, UpdateCallbackSet> = new Map()\n\nfunction sendJSON(sendMessage: SendMessage, message: ClientMessage) {\n sendMessage(JSON.stringify(message))\n}\n\ntype ResourceKey = string\n\nfunction resourceKey(resource: ResourceIdentifier): ResourceKey {\n return JSON.stringify({\n path: resource.path,\n headers: resource.headers || null,\n })\n}\n\nfunction subscribeToUpdates(\n sendMessage: SendMessage,\n resource: ResourceIdentifier\n): () => void {\n sendJSON(sendMessage, {\n type: 'turbopack-subscribe',\n ...resource,\n })\n\n return () => {\n sendJSON(sendMessage, {\n type: 'turbopack-unsubscribe',\n ...resource,\n })\n }\n}\n\nfunction handleSocketConnected(sendMessage: SendMessage) {\n for (const key of updateCallbackSets.keys()) {\n subscribeToUpdates(sendMessage, JSON.parse(key))\n }\n}\n\n// we aggregate all pending updates until the issues are resolved\nconst chunkListsWithPendingUpdates: Map<ResourceKey, PartialServerMessage> =\n new Map()\n\nfunction aggregateUpdates(msg: PartialServerMessage) {\n const key = resourceKey(msg.resource)\n let aggregated = chunkListsWithPendingUpdates.get(key)\n\n if (aggregated) {\n aggregated.instruction = mergeChunkListUpdates(\n aggregated.instruction,\n msg.instruction\n )\n } else {\n chunkListsWithPendingUpdates.set(key, msg)\n }\n}\n\nfunction applyAggregatedUpdates() {\n if (chunkListsWithPendingUpdates.size === 0) return\n hooks.beforeRefresh()\n for (const msg of chunkListsWithPendingUpdates.values()) {\n triggerUpdate(msg)\n }\n chunkListsWithPendingUpdates.clear()\n finalizeUpdate()\n}\n\nfunction mergeChunkListUpdates(\n updateA: ChunkListUpdate,\n updateB: ChunkListUpdate\n): ChunkListUpdate {\n let chunks\n if (updateA.chunks != null) {\n if (updateB.chunks == null) {\n chunks = updateA.chunks\n } else {\n chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks)\n }\n } else if (updateB.chunks != nulLine truncated
}
@@ -0,0 +1,12 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[turbopack]/browser/dev/hmr-client/hmr-client.ts [app-client] (ecmascript, async loader)", ((__turbopack_context__) => {
__turbopack_context__.v((parentImport) => {
return Promise.all([
"static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_1mojsay._.js"
].map((chunk) => __turbopack_context__.l(chunk))).then(() => {
return parentImport("[turbopack]/browser/dev/hmr-client/hmr-client.ts [app-client] (ecmascript)");
});
});
}),
]);
@@ -0,0 +1,5 @@
{
"version": 3,
"sources": [],
"sections": []
}
@@ -0,0 +1,471 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[turbopack]/browser/dev/hmr-client/hmr-client.ts [app-client] (ecmascript)", ((__turbopack_context__) => {
"use strict";
/// <reference path="../../../shared/runtime/runtime-types.d.ts" />
/// <reference path="../../../shared/runtime/dev-globals.d.ts" />
/// <reference path="../../../shared/runtime/dev-protocol.d.ts" />
/// <reference path="../../../shared/runtime/dev-extensions.ts" />
__turbopack_context__.s([
"connect",
()=>connect,
"setHooks",
()=>setHooks,
"subscribeToUpdate",
()=>subscribeToUpdate
]);
function connect({ addMessageListener, sendMessage, onUpdateError = console.error }) {
addMessageListener((msg)=>{
switch(msg.type){
case 'turbopack-connected':
handleSocketConnected(sendMessage);
break;
default:
try {
if (Array.isArray(msg.data)) {
for(let i = 0; i < msg.data.length; i++){
handleSocketMessage(msg.data[i]);
}
} else {
handleSocketMessage(msg.data);
}
applyAggregatedUpdates();
} catch (e) {
console.warn('[Fast Refresh] performing full reload\n\n' + "Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\n" + 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\n' + 'Consider migrating the non-React component export to a separate file and importing it into both files.\n\n' + 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\n' + 'Fast Refresh requires at least one parent function component in your React tree.');
onUpdateError(e);
location.reload();
}
break;
}
});
const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS;
if (queued != null && !Array.isArray(queued)) {
throw new Error('A separate HMR handler was already registered');
}
globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {
push: ([chunkPath, callback])=>{
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
};
if (Array.isArray(queued)) {
for (const [chunkPath, callback] of queued){
subscribeToChunkUpdate(chunkPath, sendMessage, callback);
}
}
}
const updateCallbackSets = new Map();
function sendJSON(sendMessage, message) {
sendMessage(JSON.stringify(message));
}
function resourceKey(resource) {
return JSON.stringify({
path: resource.path,
headers: resource.headers || null
});
}
function subscribeToUpdates(sendMessage, resource) {
sendJSON(sendMessage, {
type: 'turbopack-subscribe',
...resource
});
return ()=>{
sendJSON(sendMessage, {
type: 'turbopack-unsubscribe',
...resource
});
};
}
function handleSocketConnected(sendMessage) {
for (const key of updateCallbackSets.keys()){
subscribeToUpdates(sendMessage, JSON.parse(key));
}
}
// we aggregate all pending updates until the issues are resolved
const chunkListsWithPendingUpdates = new Map();
function aggregateUpdates(msg) {
const key = resourceKey(msg.resource);
let aggregated = chunkListsWithPendingUpdates.get(key);
if (aggregated) {
aggregated.instruction = mergeChunkListUpdates(aggregated.instruction, msg.instruction);
} else {
chunkListsWithPendingUpdates.set(key, msg);
}
}
function applyAggregatedUpdates() {
if (chunkListsWithPendingUpdates.size === 0) return;
hooks.beforeRefresh();
for (const msg of chunkListsWithPendingUpdates.values()){
triggerUpdate(msg);
}
chunkListsWithPendingUpdates.clear();
finalizeUpdate();
}
function mergeChunkListUpdates(updateA, updateB) {
let chunks;
if (updateA.chunks != null) {
if (updateB.chunks == null) {
chunks = updateA.chunks;
} else {
chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks);
}
} else if (updateB.chunks != null) {
chunks = updateB.chunks;
}
let merged;
if (updateA.merged != null) {
if (updateB.merged == null) {
merged = updateA.merged;
} else {
// Since `merged` is an array of updates, we need to merge them all into
// one, consistent update.
// Since there can only be `EcmascriptMergeUpdates` in the array, there is
// no need to key on the `type` field.
let update = updateA.merged[0];
for(let i = 1; i < updateA.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateA.merged[i]);
}
for(let i = 0; i < updateB.merged.length; i++){
update = mergeChunkListEcmascriptMergedUpdates(update, updateB.merged[i]);
}
merged = [
update
];
}
} else if (updateB.merged != null) {
merged = updateB.merged;
}
return {
type: 'ChunkListUpdate',
chunks,
merged
};
}
function mergeChunkListChunks(chunksA, chunksB) {
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
return chunks;
}
function mergeChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted' || updateA.type === 'deleted' && updateB.type === 'added') {
return undefined;
}
if (updateB.type === 'total') {
// A total update replaces the entire chunk, so it supersedes any prior update.
return updateB;
}
if (updateA.type === 'partial') {
invariant(updateA.instruction, 'Partial updates are unsupported');
}
if (updateB.type === 'partial') {
invariant(updateB.instruction, 'Partial updates are unsupported');
}
return undefined;
}
function mergeChunkListEcmascriptMergedUpdates(mergedA, mergedB) {
const entries = mergeEcmascriptChunkEntries(mergedA.entries, mergedB.entries);
const chunks = mergeEcmascriptChunksUpdates(mergedA.chunks, mergedB.chunks);
return {
type: 'EcmascriptMergedUpdate',
entries,
chunks
};
}
function mergeEcmascriptChunkEntries(entriesA, entriesB) {
return {
...entriesA,
...entriesB
};
}
function mergeEcmascriptChunksUpdates(chunksA, chunksB) {
if (chunksA == null) {
return chunksB;
}
if (chunksB == null) {
return chunksA;
}
const chunks = {};
for (const [chunkPath, chunkUpdateA] of Object.entries(chunksA)){
const chunkUpdateB = chunksB[chunkPath];
if (chunkUpdateB != null) {
const mergedUpdate = mergeEcmascriptChunkUpdates(chunkUpdateA, chunkUpdateB);
if (mergedUpdate != null) {
chunks[chunkPath] = mergedUpdate;
}
} else {
chunks[chunkPath] = chunkUpdateA;
}
}
for (const [chunkPath, chunkUpdateB] of Object.entries(chunksB)){
if (chunks[chunkPath] == null) {
chunks[chunkPath] = chunkUpdateB;
}
}
if (Object.keys(chunks).length === 0) {
return undefined;
}
return chunks;
}
function mergeEcmascriptChunkUpdates(updateA, updateB) {
if (updateA.type === 'added' && updateB.type === 'deleted') {
// These two completely cancel each other out.
return undefined;
}
if (updateA.type === 'deleted' && updateB.type === 'added') {
const added = [];
const deleted = [];
const deletedModules = new Set(updateA.modules ?? []);
const addedModules = new Set(updateB.modules ?? []);
for (const moduleId of addedModules){
if (!deletedModules.has(moduleId)) {
added.push(moduleId);
}
}
for (const moduleId of deletedModules){
if (!addedModules.has(moduleId)) {
deleted.push(moduleId);
}
}
if (added.length === 0 && deleted.length === 0) {
return undefined;
}
return {
type: 'partial',
added,
deleted
};
}
if (updateA.type === 'partial' && updateB.type === 'partial') {
const added = new Set([
...updateA.added ?? [],
...updateB.added ?? []
]);
const deleted = new Set([
...updateA.deleted ?? [],
...updateB.deleted ?? []
]);
if (updateB.added != null) {
for (const moduleId of updateB.added){
deleted.delete(moduleId);
}
}
if (updateB.deleted != null) {
for (const moduleId of updateB.deleted){
added.delete(moduleId);
}
}
return {
type: 'partial',
added: [
...added
],
deleted: [
...deleted
]
};
}
if (updateA.type === 'added' && updateB.type === 'partial') {
const modules = new Set([
...updateA.modules ?? [],
...updateB.added ?? []
]);
for (const moduleId of updateB.deleted ?? []){
modules.delete(moduleId);
}
return {
type: 'added',
modules: [
...modules
]
};
}
if (updateA.type === 'partial' && updateB.type === 'deleted') {
// We could eagerly return `updateB` here, but this would potentially be
// incorrect if `updateA` has added modules.
const modules = new Set(updateB.modules ?? []);
if (updateA.added != null) {
for (const moduleId of updateA.added){
modules.delete(moduleId);
}
}
return {
type: 'deleted',
modules: [
...modules
]
};
}
// Any other update combination is invalid.
return undefined;
}
function invariant(_, message) {
throw new Error(`Invariant: ${message}`);
}
const CRITICAL = [
'bug',
'error',
'fatal'
];
function compareByList(list, a, b) {
const aI = list.indexOf(a) + 1 || list.length;
const bI = list.indexOf(b) + 1 || list.length;
return aI - bI;
}
const chunksWithIssues = new Map();
function emitIssues() {
const issues = [];
const deduplicationSet = new Set();
for (const [_, chunkIssues] of chunksWithIssues){
for (const chunkIssue of chunkIssues){
if (deduplicationSet.has(chunkIssue.formatted)) continue;
issues.push(chunkIssue);
deduplicationSet.add(chunkIssue.formatted);
}
}
sortIssues(issues);
hooks.issues(issues);
}
function handleIssues(msg) {
const key = resourceKey(msg.resource);
let hasCriticalIssues = false;
for (const issue of msg.issues){
if (CRITICAL.includes(issue.severity)) {
hasCriticalIssues = true;
}
}
if (msg.issues.length > 0) {
chunksWithIssues.set(key, msg.issues);
} else if (chunksWithIssues.has(key)) {
chunksWithIssues.delete(key);
}
emitIssues();
return hasCriticalIssues;
}
const SEVERITY_ORDER = [
'bug',
'fatal',
'error',
'warning',
'info',
'log'
];
const CATEGORY_ORDER = [
'parse',
'resolve',
'code generation',
'rendering',
'typescript',
'other'
];
function sortIssues(issues) {
issues.sort((a, b)=>{
const first = compareByList(SEVERITY_ORDER, a.severity, b.severity);
if (first !== 0) return first;
return compareByList(CATEGORY_ORDER, a.category, b.category);
});
}
const hooks = {
beforeRefresh: ()=>{},
refresh: ()=>{},
buildOk: ()=>{},
issues: (_issues)=>{}
};
function setHooks(newHooks) {
Object.assign(hooks, newHooks);
}
function handleSocketMessage(msg) {
sortIssues(msg.issues);
handleIssues(msg);
switch(msg.type){
case 'issues':
break;
case 'partial':
// aggregate updates
aggregateUpdates(msg);
break;
default:
// run single update
const runHooks = chunkListsWithPendingUpdates.size === 0;
if (runHooks) hooks.beforeRefresh();
triggerUpdate(msg);
if (runHooks) finalizeUpdate();
break;
}
}
function finalizeUpdate() {
hooks.refresh();
hooks.buildOk();
// This is used by the Next.js integration test suite to notify it when HMR
// updates have been completed.
// TODO: Only run this in test environments (gate by `process.env.__NEXT_TEST_MODE`)
if (globalThis.__NEXT_HMR_CB) {
globalThis.__NEXT_HMR_CB();
globalThis.__NEXT_HMR_CB = null;
}
}
function subscribeToChunkUpdate(chunkListPath, sendMessage, callback) {
return subscribeToUpdate({
path: chunkListPath
}, sendMessage, callback);
}
function subscribeToUpdate(resource, sendMessage, callback) {
const key = resourceKey(resource);
let callbackSet;
const existingCallbackSet = updateCallbackSets.get(key);
if (!existingCallbackSet) {
callbackSet = {
callbacks: new Set([
callback
]),
unsubscribe: subscribeToUpdates(sendMessage, resource)
};
updateCallbackSets.set(key, callbackSet);
} else {
existingCallbackSet.callbacks.add(callback);
callbackSet = existingCallbackSet;
}
return ()=>{
callbackSet.callbacks.delete(callback);
if (callbackSet.callbacks.size === 0) {
callbackSet.unsubscribe();
updateCallbackSets.delete(key);
}
};
}
function triggerUpdate(msg) {
const key = resourceKey(msg.resource);
const callbackSet = updateCallbackSets.get(key);
if (!callbackSet) {
return;
}
for (const callback of callbackSet.callbacks){
callback(msg);
}
if (msg.type === 'notFound') {
// This indicates that the resource which we subscribed to either does not exist or
// has been deleted. In either case, we should clear all update callbacks, so if a
// new subscription is created for the same resource, it will send a new "subscribe"
// message to the server.
// No need to send an "unsubscribe" message to the server, it will have already
// dropped the update stream before sending the "notFound" message.
updateCallbackSets.delete(key);
}
}
}),
]);
//# sourceMappingURL=%5Bturbopack%5D_browser_dev_hmr-client_hmr-client_ts_1mojsay._.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/dev/hmr-client/hmr-client.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-extensions.ts\" />\n\ntype SendMessage = (msg: any) => void\nexport type WebSocketMessage =\n | {\n type: 'turbopack-connected'\n }\n | {\n type: 'turbopack-message'\n data: Record<string, any>\n }\n\nexport type ClientOptions = {\n addMessageListener: (cb: (msg: WebSocketMessage) => void) => void\n sendMessage: SendMessage\n onUpdateError: (err: unknown) => void\n}\n\nexport function connect({\n addMessageListener,\n sendMessage,\n onUpdateError = console.error,\n}: ClientOptions) {\n addMessageListener((msg) => {\n switch (msg.type) {\n case 'turbopack-connected':\n handleSocketConnected(sendMessage)\n break\n default:\n try {\n if (Array.isArray(msg.data)) {\n for (let i = 0; i < msg.data.length; i++) {\n handleSocketMessage(msg.data[i] as ServerMessage)\n }\n } else {\n handleSocketMessage(msg.data as ServerMessage)\n }\n applyAggregatedUpdates()\n } catch (e: unknown) {\n console.warn(\n '[Fast Refresh] performing full reload\\n\\n' +\n \"Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\\n\" +\n 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\\n' +\n 'Consider migrating the non-React component export to a separate file and importing it into both files.\\n\\n' +\n 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\\n' +\n 'Fast Refresh requires at least one parent function component in your React tree.'\n )\n onUpdateError(e)\n location.reload()\n }\n break\n }\n })\n\n const queued = globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS\n if (queued != null && !Array.isArray(queued)) {\n throw new Error('A separate HMR handler was already registered')\n }\n globalThis.TURBOPACK_CHUNK_UPDATE_LISTENERS = {\n push: ([chunkPath, callback]: [ChunkListPath, UpdateCallback]) => {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n },\n }\n\n if (Array.isArray(queued)) {\n for (const [chunkPath, callback] of queued) {\n subscribeToChunkUpdate(chunkPath, sendMessage, callback)\n }\n }\n}\n\ntype UpdateCallbackSet = {\n callbacks: Set<UpdateCallback>\n unsubscribe: () => void\n}\n\nconst updateCallbackSets: Map<ResourceKey, UpdateCallbackSet> = new Map()\n\nfunction sendJSON(sendMessage: SendMessage, message: ClientMessage) {\n sendMessage(JSON.stringify(message))\n}\n\ntype ResourceKey = string\n\nfunction resourceKey(resource: ResourceIdentifier): ResourceKey {\n return JSON.stringify({\n path: resource.path,\n headers: resource.headers || null,\n })\n}\n\nfunction subscribeToUpdates(\n sendMessage: SendMessage,\n resource: ResourceIdentifier\n): () => void {\n sendJSON(sendMessage, {\n type: 'turbopack-subscribe',\n ...resource,\n })\n\n return () => {\n sendJSON(sendMessage, {\n type: 'turbopack-unsubscribe',\n ...resource,\n })\n }\n}\n\nfunction handleSocketConnected(sendMessage: SendMessage) {\n for (const key of updateCallbackSets.keys()) {\n subscribeToUpdates(sendMessage, JSON.parse(key))\n }\n}\n\n// we aggregate all pending updates until the issues are resolved\nconst chunkListsWithPendingUpdates: Map<ResourceKey, PartialServerMessage> =\n new Map()\n\nfunction aggregateUpdates(msg: PartialServerMessage) {\n const key = resourceKey(msg.resource)\n let aggregated = chunkListsWithPendingUpdates.get(key)\n\n if (aggregated) {\n aggregated.instruction = mergeChunkListUpdates(\n aggregated.instruction,\n msg.instruction\n )\n } else {\n chunkListsWithPendingUpdates.set(key, msg)\n }\n}\n\nfunction applyAggregatedUpdates() {\n if (chunkListsWithPendingUpdates.size === 0) return\n hooks.beforeRefresh()\n for (const msg of chunkListsWithPendingUpdates.values()) {\n triggerUpdate(msg)\n }\n chunkListsWithPendingUpdates.clear()\n finalizeUpdate()\n}\n\nfunction mergeChunkListUpdates(\n updateA: ChunkListUpdate,\n updateB: ChunkListUpdate\n): ChunkListUpdate {\n let chunks\n if (updateA.chunks != null) {\n if (updateB.chunks == null) {\n chunks = updateA.chunks\n } else {\n chunks = mergeChunkListChunks(updateA.chunks, updateB.chunks)\n }\n } else if (updateB.chunks != nulLine truncated
}
File diff suppressed because it is too large. Load diff
+12
View File
@@ -0,0 +1,12 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/CustomCssLoader.js"],"sourcesContent":["'use client';\n\n// 加载自定义 CSS(管理员上传的 style.css,覆盖默认样式)\nimport { useEffect } from 'react';\n\nexport default function CustomCssLoader() {\n useEffect(() => {\n // 尝试加载 /api/custom-css;404 表示未设置,静默跳过\n const link = document.createElement('link');\n link.rel = 'stylesheet';\n link.href = '/api/custom-css';\n link.id = 'custom-css-link';\n document.head.appendChild(link);\n }, []);\n\n return null;\n}\n"],"names":["CustomCssLoader","link","document","createElement","rel","href","id","head","appendChild"],"mappings":";;;;AAEA,qCAAqC;AACrC;;AAHA;;AAKe,SAASA;;IACtB,IAAA,0KAAS;qCAAC;YACR,sCAAsC;YACtC,MAAMC,OAAOC,SAASC,aAAa,CAAC;YACpCF,KAAKG,GAAG,GAAG;YACXH,KAAKI,IAAI,GAAG;YACZJ,KAAKK,EAAE,GAAG;YACVJ,SAASK,IAAI,CAACC,WAAW,CAACP;QAC5B;oCAAG,EAAE;IAEL,OAAO;AACT;GAXwBD;KAAAA"}},
{"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/I18nInit.js"],"sourcesContent":["'use client';\n\n// i18n 客户端 Provider:在 children 渲染前同步初始化 i18n\n// - lng 由 Server Component(layout)从 cookie / Accept-Language 推导传入\n// - 同步 init(initImmediate:false)→ SSR 与客户端首次渲染语言一致,无 hydration mismatch\nimport { initI18n } from '@/lib/i18n';\n\nexport default function I18nProvider({ lng, children }) {\n // 函数体在 children 渲染前执行:useTranslation 组件拿到已初始化的 i18n\n initI18n(lng);\n return <>{children}</>;\n}\n"],"names":["I18nProvider","lng","children"],"mappings":";;;;;AAEA,6CAA6C;AAC7C,kEAAkE;AAClE,wEAAwE;AACxE;AALA;;;AAOe,SAASA,aAAa,EAAEC,GAAG,EAAEC,QAAQ,EAAE;IACpD,oDAAoD;IACpD,IAAA,0HAAQ,EAACD;IACT,qBAAO;kBAAGC;;;;;;AACZ;KAJwBF"}},
{"offset": {"line": 71, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Icons.js"],"sourcesContent":["'use client';\n\n// 图标库 — SVG 内容逐字符提取自旧版 index.html (Feather Icons),与原版一致\nconst S = {\n xmlns: 'http://www.w3.org/2000/svg', width: 16, height: 16, viewBox: '0 0 24 24',\n fill: 'none', stroke: 'currentColor', strokeWidth: 2, strokeLinecap: 'round', strokeLinejoin: 'round',\n style: { display: 'inline', verticalAlign: 'middle' },\n};\n\nexport function Icon({ name, size = 16, ...rest }) {\n return <svg {...S} width={size} height={size} {...rest}>{PATHS[name] || null}</svg>;\n}\n\nconst PATHS = {\n message: (\n <>\n <path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/>\n </>\n ),\n reply: (\n <>\n <path d=\"M9 14l-4-4 4-4\"/><path d=\"M5 10h11a4 4 0 0 1 4 4v0\"/>\n </>\n ),\n chevronDown: (\n <>\n <path d=\"M6 9l6 6 6-6\"/>\n </>\n ),\n settings: (\n <>\n <path d=\"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/>\n </>\n ),\n shieldAlert: (\n <>\n <path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/><path d=\"M12 8v4\"/><path d=\"M12 16h.01\"/>\n </>\n ),\n user: (\n <>\n <path d=\"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/>\n </>\n ),\n lock: (\n <>\n <rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"/>\n </>\n ),\n moon: (\n <>\n <path d=\"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z\"/>\n </>\n ),\n sun: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"5\"/><line x1=\"12\" y1=\"1\" x2=\"12\" y2=\"3\"/><line x1=\"12\" y1=\"21\" x2=\"12\" y2=\"23\"/><line x1=\"4.22\" y1=\"4.22\" x2=\"5.64\" y2=\"5.64\"/><line x1=\"18.36\" y1=\"18.36\" x2=\"19.78\" y2=\"19.78\"/><line x1=\"1\" y1=\"12\" x2=\"3\" y2=\"12\"/><line x1=\"21\" y1=\"12\" x2=\"23\" y2=\"12\"/><line x1=\"4.22\" y1=\"19.78\" x2=\"5.64\" y2=\"18.36\"/><line x1=\"18.36\" y1=\"5.64\" x2=\"19.78\" y2=\"4.22\"/>\n </>\n ),\n logout: (\n <>\n <path d=\"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\"/><polyline points=\"16 17 21 12 16 7\"/><line x1=\"21\" y1=\"12\" x2=\"9\" y2=\"12\"/>\n </>\n ),\n book: (\n <>\n <path d=\"M21 12V7H5a2 2 0 0 1 0-4h14v4\"/><path d=\"M3 5v14a2 2 0 0 0 2 2h16v-5\"/><line x1=\"18\" y1=\"12\" x2=\"18\" y2=\"12\"/>\n </>\n ),\n link: (\n <>\n <path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"/><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"/>\n </>\n ),\n plus: (\n <>\n <line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"/><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"/>\n </>\n ),\n shield: (\n <>\n <path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/>\n </>\n ),\n users: (\n <>\n <path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/>\n </>\n ),\n file: (\n <>\n <path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><polyline points=\"14 2 14 8 20 8\"/><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/><polyline points=\"10 9 9 9 8 9\"/>\n </>\n ),\n plus2: (\n <>\n <path d=\"M12 5v14\"/><path d=\"M5 12h14\"/>\n </>\n ),\n back: (\n <>\n <polyline points=\"15 18 9 12 15 6\"/>\n </>\n ),\n close: (\n <>\n <line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\"/><line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\"/>\n </>\n ),\n trash: (\n <>\n <polyline points=\"3 6 5 6 21 6\"/><path d=\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"/>\n </>\n ),\n success: (\n <>\n <path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/><polyline points=\"22 4 12 14.01 9 11.01\"/>\n </>\n ),\n error: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"/><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"/>\n </>\n ),\n warning: (\n <>\n <path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/><circle cx=\"12\" cy=\"12\" r=\"10\"/>\n </>\n ),\n pending: (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/>\n </>\n ),\n edit: (\Line truncated
{"offset": {"line": 1222, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Toast.js"],"sourcesContent":["'use client';\n\n// Toast 通知系统:右上角弹出,自动消失(替代 alert)\n// 用法:const { toast } = useToast(); toast('发布成功', 'success');\n// 注意:不用 createPortal(SSR 时 document 不存在会造成 hydration mismatch,\n// 导致整树重建)。toast-container 是 position:fixed,渲染位置不影响视觉。\nimport { createContext, useContext, useState, useCallback, useRef, useEffect } from 'react';\nimport { Icon } from './Icons';\n\nconst ToastContext = createContext(null);\n\nexport function useToast() {\n return useContext(ToastContext);\n}\n\nlet idCounter = 0;\n\nexport function ToastProvider({ children }) {\n const [toasts, setToasts] = useState([]);\n const [dialog, setDialog] = useState(null);\n const timersRef = useRef({});\n const dialogTimerRef = useRef(null);\n const dialogResolverRef = useRef(null);\n\n const removeToast = useCallback((id) => {\n setToasts((prev) => prev.filter((item) => item.id !== id));\n delete timersRef.current[id];\n }, []);\n\n const dismiss = useCallback((id) => {\n if (timersRef.current[id]) clearTimeout(timersRef.current[id]);\n setToasts((prev) => prev.map((item) => item.id === id ? { ...item, closing: true } : item));\n timersRef.current[id] = setTimeout(() => removeToast(id), 220);\n }, [removeToast]);\n\n const toast = useCallback((message, type = 'success', duration = 3000) => {\n const id = ++idCounter;\n setToasts((prev) => [...prev, { id, message, type, closing: false }]);\n if (timersRef.current[id]) clearTimeout(timersRef.current[id]);\n timersRef.current[id] = setTimeout(() => dismiss(id), duration);\n }, [dismiss]);\n\n const confirmAction = useCallback((message, options = {}) => {\n if (dialogResolverRef.current) dialogResolverRef.current(false);\n const isEnglish = localStorage.getItem('forumlify-lang') === 'en';\n setDialog({\n message,\n title: options.title || (isEnglish ? 'Confirm action' : '确认操作'),\n confirmLabel: options.confirmLabel || (isEnglish ? 'Confirm' : '确定'),\n cancelLabel: options.cancelLabel || (isEnglish ? 'Cancel' : '取消'),\n danger: options.danger !== false,\n closing: false,\n });\n return new Promise((resolve) => {\n dialogResolverRef.current = resolve;\n });\n }, []);\n\n const closeDialog = useCallback((result) => {\n setDialog((current) => current ? { ...current, closing: true } : current);\n if (dialogTimerRef.current) clearTimeout(dialogTimerRef.current);\n dialogTimerRef.current = setTimeout(() => {\n setDialog(null);\n const resolve = dialogResolverRef.current;\n dialogResolverRef.current = null;\n if (resolve) resolve(result);\n }, 340);\n }, []);\n\n useEffect(() => () => {\n Object.values(timersRef.current).forEach(clearTimeout);\n if (dialogTimerRef.current) clearTimeout(dialogTimerRef.current);\n if (dialogResolverRef.current) dialogResolverRef.current(false);\n }, []);\n\n return (\n <ToastContext.Provider value={{ toast, confirmAction }}>\n {children}\n <div className=\"toast-container\">\n {toasts.map((t) => (\n <div key={t.id} className={'toast toast-' + t.type + (t.closing ? ' closing' : '')} onClick={() => dismiss(t.id)} role=\"status\">\n <Icon name={t.type === 'error' ? 'error' : t.type === 'warning' ? 'warning' : 'success'} size={16} />\n <span>{t.message}</span>\n </div>\n ))}\n </div>\n {dialog && (\n <div className={'modal active feedback-confirm' + (dialog.closing ? ' closing' : '')} onClick={(e) => { if (e.target === e.currentTarget) closeDialog(false); }}>\n <div className=\"modal-content\" role=\"alertdialog\" aria-modal=\"true\" aria-labelledby=\"feedbackConfirmTitle\" aria-describedby=\"feedbackConfirmMessage\">\n <h2 id=\"feedbackConfirmTitle\"><Icon name=\"warning\" size={20} /> {dialog.title}</h2>\n <p id=\"feedbackConfirmMessage\">{dialog.message}</p>\n <div className=\"feedback-confirm-actions\">\n <button className={dialog.danger ? 'btn-danger' : 'btn-primary'} onClick={() => closeDialog(true)}>{dialog.confirmLabel}</button>\n <button className=\"btn-secondary\" onClick={() => closeDialog(false)}>{dialog.cancelLabel}</button>\n </div>\n </div>\n </div>\n )}\n </ToastContext.Provider>\n );\n}\n"],"names":["ToastContext","useToast","idCounter","ToastProvider","children","toasts","setToasts","dialog","setDialog","timersRef","dialogTimerRef","dialogResolverRef","removeToast","id","prev","filter","item","current","dismiss","clearTimeout","map","closing","setTimeout","toast","message","type","duration","confirmAction","options","isEnglish","localStorage","getItem","tiLine truncated
{"offset": {"line": 1486, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/lib/i18n.js"],"sourcesContent":["'use client';\n\n// i18n 配置:i18next + react-i18next\n// - initI18n(lng?):可传入初始语言(SSR 从 cookie/浏览器偏好推导),\n// 无传入时按 localStorage > 浏览器语言 > zh 自动选择\n// - 顶层模块加载时不 init(由 I18nInit 在客户端 useEffect 调用),\n// 保证 SSR/客户端首次渲染语言一致 → 无 hydration mismatch\nimport i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport zh from '@/locales/zh.json';\nimport en from '@/locales/en.json';\n\nlet initialized = false;\n\nexport function initI18n(lng) {\n if (initialized) {\n // 已初始化:如果外部给了不同语言(如路由跳转后 cookie 变化)则切换\n if (lng && i18n.language !== lng) i18n.changeLanguage(lng);\n return i18n;\n }\n initialized = true;\n if (!lng && typeof window !== 'undefined') {\n const saved = localStorage.getItem('forumlify-lang');\n const nav = (navigator.language || 'zh').toLowerCase();\n lng = saved || (nav.startsWith('en') ? 'en' : 'zh');\n }\n i18n.use(initReactI18next).init({\n resources: {\n zh: { translation: zh },\n en: { translation: en },\n },\n lng: lng || 'zh',\n fallbackLng: 'zh',\n interpolation: { escapeValue: false },\n react: { useSuspense: false },\n initImmediate: false,\n });\n return i18n;\n}\n\n// 切换语言(保存到 localStorage + cookie,SSR 首帧即用正确语言)\nexport function setAppLanguage(lng) {\n if (typeof window !== 'undefined') {\n localStorage.setItem('forumlify-lang', lng);\n document.cookie = 'forumlify-lang=' + lng + '; path=/; max-age=31536000';\n }\n return i18n.changeLanguage(lng);\n}\n"],"names":["initialized","initI18n","lng","language","changeLanguage","saved","localStorage","getItem","nav","navigator","toLowerCase","startsWith","use","init","resources","zh","translation","en","fallbackLng","interpolation","escapeValue","react","useSuspense","initImmediate","setAppLanguage","setItem","document","cookie"],"mappings":";;;;;;AAEA,kCAAkC;AAClC,kDAAkD;AAClD,yCAAyC;AACzC,iDAAiD;AACjD,8CAA8C;AAC9C;AACA;AAAA;AACA;AACA;AAVA;;;;;AAYA,IAAIA,cAAc;AAEX,SAASC,SAASC,GAAG;IAC1B,IAAIF,aAAa;QACf,uCAAuC;QACvC,IAAIE,OAAO,+JAAI,CAACC,QAAQ,KAAKD,KAAK,+JAAI,CAACE,cAAc,CAACF;QACtD,OAAO,+JAAI;IACb;IACAF,cAAc;IACd,IAAI,CAACE,OAAO,+CAAkB,aAAa;QACzC,MAAMG,QAAQC,aAAaC,OAAO,CAAC;QACnC,MAAMC,MAAM,CAACC,UAAUN,QAAQ,IAAI,IAAI,EAAEO,WAAW;QACpDR,MAAMG,SAAS,CAACG,IAAIG,UAAU,CAAC,QAAQ,OAAO,IAAI;IACpD;IACA,+JAAI,CAACC,GAAG,CAAC,yLAAgB,EAAEC,IAAI,CAAC;QAC9BC,WAAW;YACTC,IAAI;gBAAEC,aAAa,gJAAE;YAAC;YACtBC,IAAI;gBAAED,aAAa,gJAAE;YAAC;QACxB;QACAd,KAAKA,OAAO;QACZgB,aAAa;QACbC,eAAe;YAAEC,aAAa;QAAM;QACpCC,OAAO;YAAEC,aAAa;QAAM;QAC5BC,eAAe;IACjB;IACA,OAAO,+JAAI;AACb;AAGO,SAASC,eAAetB,GAAG;IAChC,wCAAmC;QACjCI,aAAamB,OAAO,CAAC,kBAAkBvB;QACvCwB,SAASC,MAAM,GAAG,oBAAoBzB,MAAM;IAC9C;IACA,OAAO,+JAAI,CAACE,cAAc,CAACF;AAC7B"}},
{"offset": {"line": 1554, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/locales/en.json.[json].cjs/turbopack:/locales/en.json"],"sourcesContent":["{\"appName\":\"Forumlify\",\"nav\":{\"home\":\"Home\",\"messages\":\"Messages\",\"settings\":\"Settings\",\"admin\":\"Admin\",\"login\":\"Login\",\"register\":\"Register\",\"logout\":\"Logout\",\"darkMode\":\"Dark mode\",\"lightMode\":\"Light mode\",\"logoutConfirm\":\"Are you sure you want to log out?\"},\"feed\":{\"latest\":\"Latest posts\",\"hot\":\"Latest replies\",\"newPost\":\"New post\",\"loading\":\"Loading...\",\"empty\":\"No posts yet — be the first to publish!\",\"pinned\":\"Pinned\",\"deleted\":\"(edited)\",\"report\":\"Report\",\"delete\":\"Delete\",\"confirmDelete\":\"Are you sure you want to delete this post?\",\"deleteFailed\":\"Delete failed: {{msg}}\",\"noTitle\":\"Untitled\",\"anonymous\":\"Anonymous\"},\"post\":{\"title\":\"Post detail\",\"back\":\"← Back\",\"edit\":\"Edit\",\"save\":\"Save\",\"cancel\":\"Cancel\",\"editFailed\":\"Load failed: {{msg}}\",\"contentRequired\":\"Please fill in the content\",\"reply\":\"Reply\",\"replyCount\":\"{{count}} replies\",\"reportReason\":\"Report reason\",\"confirmDelete\":\"Are you sure you want to delete this post?\",\"reportTitle\":\"Report post\",\"submitReport\":\"Submit report\"},\"newPost\":{\"title\":\"Title\",\"content\":\"Say something...\",\"publish\":\"Publish post\",\"uploading\":\"Uploading...\",\"pleaseLogin\":\"Please log in first\",\"captchaError\":\"Wrong captcha, please try again\",\"publishSuccess\":\"Post published\",\"publishFailed\":\"Publish failed: {{msg}}\",\"answer\":\"Answer\",\"captchaLoading\":\"Loading captcha...\",\"drop\":\"Release to upload\",\"dropHint\":\"Click or drag to upload image\"},\"reply\":{\"submit\":\"Submit reply\",\"placeholder\":\"Write your reply...\",\"empty\":\"No replies yet — be the first to comment\",\"replyFailed\":\"Reply failed: {{msg}}\",\"delete\":\"Delete\",\"confirmDelete\":\"Are you sure you want to delete this reply?\",\"deleteFailed\":\"Delete failed: {{msg}}\"},\"auth\":{\"email\":\"Email\",\"password\":\"Password\",\"username\":\"Username\",\"passwordHint\":\"Password (min 6 chars)\",\"forgotPassword\":\"Forgot password?\",\"captchaError\":\"Wrong captcha, please try again\",\"registerSuccess\":\"Registration successful\",\"loginSuccess\":\"Logged in\",\"logoutSuccess\":\"Logged out\",\"login\":\"Login\",\"register\":\"Register\"},\"settings\":{\"title\":\"Settings\",\"profile\":\"Profile\",\"security\":\"Security\",\"recovery\":\"Recovery codes\",\"language\":\"Language\",\"languageZh\":\"中文\",\"languageEn\":\"English\",\"username\":\"Username\",\"bio\":\"Bio\",\"signature\":\"Signature\",\"signatureHint\":\"Shown below every post; Markdown is supported\",\"signaturePlaceholder\":\"Signature...\",\"avatarFileRequired\":\"Please select an image file\",\"avatarTooLarge\":\"Image must be smaller than 5MB\",\"avatarUpdated\":\"Avatar updated\",\"changeAvatar\":\"Change avatar\",\"save\":\"Save settings\",\"saved\":\"Saved!\",\"saveFailed\":\"Save failed: {{msg}}\",\"usernameRequired\":\"Username cannot be empty\",\"pleaseLogin\":\"Please log in first\"},\"user\":{\"title\":\"User profile\",\"bioEmpty\":\"This user hasn't written a bio yet\",\"sendMessage\":\"Send message\",\"joined\":\"Joined {{date}}\",\"posts\":\"{{count}} posts\",\"admin\":\"Admin\",\"noPosts\":\"No posts yet\",\"notFound\":\"User not found\",\"loading\":\"Loading...\"},\"stats\":{\"topics\":\"Topics\",\"posts\":\"Posts\",\"users\":\"Users\",\"links\":\"Links\"},\"loading\":\"Loading...\",\"common\":{\"confirm\":\"Confirm\",\"cancel\":\"Cancel\",\"close\":\"Close\"},\"report\":{\"spam\":\"Spam\",\"abuse\":\"Harassment\",\"illegal\":\"Illegal content\",\"nsfw\":\"Inappropriate content\",\"other\":\"Other\"},\"security\":{\"title\":\"Account security\",\"currentPw\":\"Current password\",\"newPw\":\"New password\",\"changePw\":\"Change password\",\"currentPwVerify\":\"Current password (verify identity)\",\"newEmail\":\"New email\",\"changeEmail\":\"Change email\",\"fillAll\":\"Please fill in all fields\",\"pwMin\":\"New password must be at least 6 characters\",\"pwChanged\":\"Password changed\",\"emailChanged\":\"Email changed\"},\"recovery\":{\"title\":\"Recovery codes\",\"desc\":\"Use these to reset your account if you forget your password. Each code works once.\",\"view\":\"View recovery codes\",\"regenerate\":\"Regenerate\",\"remaining\":\"{{count}} recovery codes remaining\",\"confirmRegenerate\":\"Regenerating will invalidate all old codes. Continue?\",\"genFailed\":\"Generation failed: {{msg}}\",\"fetchFailed\":\"Fetch failed: {{msg}}\",\"newCodes\":\"New recovery codes\",\"saveWarning\":\"Save these codes now — they cannot be viewed again after closing.\",\"saved\":\"I have saved them\"},\"admin\":{\"title\":\"Admin\",\"reports\":\"Reports\",\"users\":\"Users\",\"logs\":\"Event logs\",\"links\":\"Links\",\"forumSeLine truncated
{"offset": {"line": 1841, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/locales/zh.json.[json].cjs/turbopack:/locales/zh.json"],"sourcesContent":["{\"appName\":\"Forumlify\",\"nav\":{\"home\":\"首页\",\"messages\":\"消息\",\"settings\":\"设置\",\"admin\":\"管理后台\",\"login\":\"登录\",\"register\":\"注册\",\"logout\":\"退出\",\"darkMode\":\"暗色模式\",\"lightMode\":\"亮色模式\",\"logoutConfirm\":\"确定要退出吗?\"},\"feed\":{\"latest\":\"最新发布\",\"hot\":\"最新回复\",\"newPost\":\"发布新帖\",\"loading\":\"加载中...\",\"empty\":\"还没有帖子,快来发布第一条吧!\",\"pinned\":\"置顶\",\"deleted\":\"(已编辑)\",\"report\":\"举报\",\"delete\":\"删除\",\"confirmDelete\":\"确定要删除这条帖子吗?\",\"deleteFailed\":\"删除失败:{{msg}}\",\"noTitle\":\"无标题\",\"anonymous\":\"匿名用户\"},\"post\":{\"title\":\"帖子详情\",\"back\":\"← 返回\",\"edit\":\"编辑\",\"save\":\"保存\",\"cancel\":\"取消\",\"editFailed\":\"加载失败:{{msg}}\",\"contentRequired\":\"请填写内容\",\"reply\":\"回复\",\"replyCount\":\"{{count}} 条回复\",\"reportReason\":\"举报原因\",\"confirmDelete\":\"确定要删除这条帖子吗?\",\"reportTitle\":\"举报帖子\",\"submitReport\":\"提交举报\"},\"newPost\":{\"title\":\"标题\",\"content\":\"说点什么...\",\"publish\":\"发布帖子\",\"uploading\":\"上传中...\",\"pleaseLogin\":\"请先登录\",\"captchaError\":\"验证码错误,请重新计算\",\"publishSuccess\":\"发布成功\",\"publishFailed\":\"发布失败:{{msg}}\",\"answer\":\"答案\",\"captchaLoading\":\"验证码加载中...\",\"drop\":\"松开上传\",\"dropHint\":\"点击或拖拽上传图片\"},\"reply\":{\"submit\":\"提交回复\",\"placeholder\":\"写下你的回复...\",\"empty\":\"还没有回复,快来发表第一条回复吧\",\"replyFailed\":\"回复失败:{{msg}}\",\"delete\":\"删除\",\"confirmDelete\":\"确定要删除这条回复吗?\",\"deleteFailed\":\"删除失败:{{msg}}\"},\"auth\":{\"email\":\"邮箱\",\"password\":\"密码\",\"username\":\"用户名\",\"passwordHint\":\"密码(至少6位)\",\"forgotPassword\":\"忘记密码?\",\"captchaError\":\"验证码错误,请重新计算\",\"registerSuccess\":\"注册成功\",\"loginSuccess\":\"登录成功\",\"logoutSuccess\":\"已退出登录\",\"login\":\"登录\",\"register\":\"注册\"},\"settings\":{\"title\":\"设置\",\"profile\":\"个人资料\",\"security\":\"安全设置\",\"recovery\":\"恢复码\",\"language\":\"语言\",\"languageZh\":\"中文\",\"languageEn\":\"English\",\"username\":\"用户名\",\"bio\":\"个人简介\",\"signature\":\"个性签名\",\"signatureHint\":\"显示在每篇帖子底部,支持 Markdown\",\"signaturePlaceholder\":\"签名...\",\"avatarFileRequired\":\"请选择图片文件\",\"avatarTooLarge\":\"图片不能超过 5MB\",\"avatarUpdated\":\"头像已更新\",\"changeAvatar\":\"更换头像\",\"save\":\"保存设置\",\"saved\":\"保存成功!\",\"saveFailed\":\"保存失败:{{msg}}\",\"usernameRequired\":\"用户名不能为空\",\"pleaseLogin\":\"请先登录\"},\"user\":{\"title\":\"用户主页\",\"bioEmpty\":\"这个人很懒,什么都没写\",\"sendMessage\":\"发私信\",\"joined\":\"加入于 {{date}}\",\"posts\":\"发了 {{count}} 个帖子\",\"admin\":\"管理员\",\"noPosts\":\"还没有发帖\",\"notFound\":\"用户不存在\",\"loading\":\"加载中...\"},\"stats\":{\"topics\":\"主题\",\"posts\":\"帖子\",\"users\":\"用户\",\"links\":\"友情链接\"},\"loading\":\"加载中...\",\"common\":{\"confirm\":\"确定\",\"cancel\":\"取消\",\"close\":\"关闭\"},\"report\":{\"spam\":\"垃圾广告\",\"abuse\":\"人身攻击\",\"illegal\":\"违法内容\",\"nsfw\":\"不适当内容\",\"other\":\"其他\"},\"security\":{\"title\":\"账户安全\",\"currentPw\":\"当前密码\",\"newPw\":\"新密码\",\"changePw\":\"修改密码\",\"currentPwVerify\":\"当前密码(验证身份)\",\"newEmail\":\"新邮箱\",\"changeEmail\":\"修改邮箱\",\"fillAll\":\"请填写完整信息\",\"pwMin\":\"新密码至少6位\",\"pwChanged\":\"密码修改成功\",\"emailChanged\":\"邮箱修改成功\"},\"recovery\":{\"title\":\"恢复码\",\"desc\":\"用于忘记密码时重置账户。每个恢复码只能使用一次。\",\"view\":\"查看恢复码\",\"regenerate\":\"重新生成\",\"remaining\":\"剩余 {{count}} 个可用恢复码\",\"confirmRegenerate\":\"重新生成将使所有旧恢复码失效,确定继续吗?\",\"genFailed\":\"生成失败:{{msg}}\",\"fetchFailed\":\"获取失败:{{msg}}\",\"newCodes\":\"新恢复码\",\"saveWarning\":\"请妥善保存这些恢复码,关闭窗口后无法再次查看。\",\"saved\":\"我已保存\"},\"admin\":{\"title\":\"管理后台\",\"reports\":\"举报处理\",\"users\":\"用户管理\",\"logs\":\"事件日志\",\"links\":\"友情链接\",\"forumSettings\":\"论坛Line truncated
}
+12
View File
@@ -0,0 +1,12 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/runtime-utils.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * TurboPack ECMAScript runtimes.\n *\n * It will be prepended to the runtime code of each runtime.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./async-module.ts\" />\n\ntype EsmNamespaceObject = Record<string, any>\n\n/**\n * Describes why a module was instantiated.\n * Shared between browser and Node.js runtimes.\n */\nenum SourceType {\n /**\n * The module was instantiated because it was included in an evaluated chunk's\n * runtime.\n * SourceData is a ChunkPath.\n */\n Runtime = 0,\n /**\n * The module was instantiated because a parent module imported it.\n * SourceData is a ModuleId.\n */\n Parent = 1,\n /**\n * The module was instantiated because it was included in a chunk's hot module\n * update.\n * SourceData is an array of ModuleIds or undefined.\n */\n Update = 2,\n}\n\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\n\n// @ts-ignore Defined in `dev-base.ts`\ndeclare function getOrInstantiateModuleFromParent<M>(\n id: ModuleId,\n sourceModule: M\n): M\n\n// @ts-ignore Defined in `hmr-runtime.ts` (dev mode only)\ndeclare let devModuleCache: Record<ModuleId, any> | undefined\n\n/**\n * Flag indicating which module object type to create when a module is merged. Set to `true`\n * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,\n * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it\n * uses plain Module objects.\n */\nlet createModuleWithDirectionFlag = false\n\nconst REEXPORTED_OBJECTS = new WeakMap<Module, ReexportedObjects>()\n\n/**\n * Constructs the `__turbopack_context__` object for a module.\n */\nfunction Context(\n this: TurbopackBaseContext<Module>,\n module: Module,\n exports: Exports\n) {\n this.m = module\n // We need to store this here instead of accessing it from the module object to:\n // 1. Make it available to factories directly, since we rewrite `this` to\n // `__turbopack_context__.e` in CJS modules.\n // 2. Support async modules which rewrite `module.exports` to a promise, so we\n // can still access the original exports object from functions like\n // `esmExport`\n // Ideally we could find a new approach for async modules and drop this property altogether.\n this.e = exports\n}\nconst contextPrototype = Context.prototype as TurbopackBaseContext<Module>\n\ntype ModuleContextMap = Record<ModuleId, ModuleContextEntry>\n\ninterface ModuleContextEntry {\n id: () => ModuleId\n module: () => any\n}\n\ninterface ModuleContext {\n // require call\n (moduleId: string): Exports | EsmNamespaceObject\n\n // async import call\n import(moduleId: string): Promise<Exports | EsmNamespaceObject>\n\n keys(): ModuleId[]\n\n resolve(moduleId: string): ModuleId\n}\n\ntype GetOrInstantiateModuleFromParent<M extends Module> = (\n moduleId: M['id'],\n parentModule: M\n) => M\n\ndeclare function getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\n\nfunction defineProp(\n obj: any,\n name: PropertyKey,\n options: PropertyDescriptor & ThisType<any>\n) {\n if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\n}\n\nfunction getOverwrittenModule(\n moduleCache: ModuleCache<Module>,\n id: ModuleId\n): Module {\n let module = moduleCache[id]\n if (!module) {\n if (createModuleWithDirectionFlag) {\n // set in development modes for hmr support\n module = createModuleWithDirection(id)\n } else {\n module = createModuleObject(id)\n }\n moduleCache[id] = module\n }\n return module\n}\n\n/**\n * Creates the module object. Only done here to ensure all module objects have the same shape.\n */\nfunction createModuleObject(id: ModuleId): Module {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n }\n}\n\nfunction createModuleWithDirection(id: ModuleId): ModuleWithDirection {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n parents: [],\n children: [],\n }\n}\n\ntype BindingTag = 0\nconst BindingTag_Value = 0 as BindingTag\n\n// an arbitrary sequence of bindings as\n// - a prop name\n// - BindingTag_Value, a value to be bound directly, or\n// - 1 or 2 functions to bind as getters and sdetters\ntype EsmBindings = Array<\n string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown\n>\n\n/**\n * Adds the getters to the exports object.\n */\nfunction esm(exports: Exports, bindings: EsmBindings, dynamic?: booleaLine truncated
{"offset": {"line": 543, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/async-module.ts"],"sourcesContent":["/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./runtime-utils.ts\" />\n\n/**\n * Top-level-await / async-module machinery. This is only included in the runtime\n * when the module graph actually contains an async module (a module with\n * top-level await, or one that transitively depends on one). When no async\n * module is present, the chunk items never reference `__turbopack_context__.a`,\n * so this whole file can be omitted.\n *\n * everything below is adapted from webpack\n * https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\n */\n\nconst turbopackQueues = Symbol('turbopack queues')\nconst turbopackExports = Symbol('turbopack exports')\nconst turbopackError = Symbol('turbopack error')\n\nconst enum QueueStatus {\n Unknown = -1,\n Unresolved = 0,\n Resolved = 1,\n}\n\ntype AsyncQueueFn = (() => void) & { queueCount: number }\ntype AsyncQueue = AsyncQueueFn[] & {\n status: QueueStatus\n}\n\ntype Dep = Exports | AsyncModulePromise | Promise<Exports>\n\ntype AsyncModuleExt = {\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\n [turbopackExports]: Exports\n [turbopackError]?: any\n}\n\ntype AsyncModulePromise<T = Exports> = Promise<T> & AsyncModuleExt\n\nfunction isPromise<T = any>(maybePromise: any): maybePromise is Promise<T> {\n return (\n maybePromise != null &&\n typeof maybePromise === 'object' &&\n 'then' in maybePromise &&\n typeof maybePromise.then === 'function'\n )\n}\n\nfunction isAsyncModuleExt<T extends {}>(obj: T): obj is AsyncModuleExt & T {\n return turbopackQueues in obj\n}\n\nfunction createPromise<T>() {\n let resolve: (value: T | PromiseLike<T>) => void\n let reject: (reason?: any) => void\n\n const promise = new Promise<T>((res, rej) => {\n reject = rej\n resolve = res\n })\n\n return {\n promise,\n resolve: resolve!,\n reject: reject!,\n }\n}\n\nfunction resolveQueue(queue?: AsyncQueue) {\n if (queue && queue.status !== QueueStatus.Resolved) {\n queue.status = QueueStatus.Resolved\n queue.forEach((fn) => fn.queueCount--)\n queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\n }\n}\n\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\n return deps.map((dep): AsyncModuleExt => {\n if (dep !== null && typeof dep === 'object') {\n if (isAsyncModuleExt(dep)) return dep\n if (isPromise(dep)) {\n const queue: AsyncQueue = Object.assign([], {\n status: QueueStatus.Unresolved,\n })\n\n const obj: AsyncModuleExt = {\n [turbopackExports]: {},\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\n }\n\n dep.then(\n (res) => {\n obj[turbopackExports] = res\n resolveQueue(queue)\n },\n (err) => {\n obj[turbopackError] = err\n resolveQueue(queue)\n }\n )\n\n return obj\n }\n }\n\n return {\n [turbopackExports]: dep,\n [turbopackQueues]: () => {},\n }\n })\n}\n\nfunction asyncModule(\n this: TurbopackBaseContext<Module>,\n body: (\n handleAsyncDependencies: (\n deps: Dep[]\n ) => Exports[] | Promise<() => Exports[]>,\n asyncResult: (err?: any) => void\n ) => void,\n hasAwait: boolean\n) {\n const module = this.m\n const queue: AsyncQueue | undefined = hasAwait\n ? Object.assign([], { status: QueueStatus.Unknown })\n : undefined\n\n const depQueues: Set<AsyncQueue> = new Set()\n\n const { resolve, reject, promise: rawPromise } = createPromise<Exports>()\n\n const promise: AsyncModulePromise = Object.assign(rawPromise, {\n [turbopackExports]: module.exports,\n [turbopackQueues]: (fn) => {\n queue && fn(queue)\n depQueues.forEach(fn)\n promise['catch'](() => {})\n },\n } satisfies AsyncModuleExt)\n\n const attributes: PropertyDescriptor = {\n get(): any {\n return promise\n },\n set(v: any) {\n // Calling `esmExport` leads to this.\n if (v !== promise) {\n promise[turbopackExports] = v\n }\n },\n }\n\n Object.defineProperty(module, 'exports', attributes)\n Object.defineProperty(module, 'namespaceObject', attributes)\n\n function handleAsyncDependencies(deps: Dep[]) {\n const currentDeps = wrapDeps(deps)\n\n const getResult = () =>\n currentDeps.map((d) => {\n if (d[turbopackError]) throw d[turbopackError]\n return d[turbopackExports]\n })\n\n const { promise, resolve } = createPromise<() => Exports[]>()\n\n const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\n queueCount: 0,\n })\n\n function fnQueue(q: AsyncQueue) {\n if (q !== queue && !depQueues.has(q)) {\n depQueues.add(q)\n if (q && q.sLine truncated
{"offset": {"line": 675, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-utils.ts\" />\n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var CHUNK_LOAD_RETRY_MAX_ATTEMPTS: number\ndeclare var CHUNK_LOAD_RETRY_BASE_DELAY_MS: number\ndeclare var CHUNK_LOAD_RETRY_MAX_JITTER_MS: number\ndeclare const SUPPORT_COMPONENT_CHUNKS: boolean\n\ninterface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext<unknown>\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n /**\n * Registers a chunk. `chunk` is `undefined` for an inlined entry-only registration\n * (no source chunk): the params' other chunks are loaded and its runtime modules run\n * with no self chunk identity.\n */\n registerChunk: (\n chunk: ChunkPath | ChunkScript | undefined,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise<void>\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map<ModuleId, Promise<any> | true> = new Map()\n\nconst availableModuleChunks: Map<ChunkPath, Promise<any> | true> = new Map()\n\n// Registry mapping a merged chunk's path to its constituent component chunk paths.\nconst chunkComponents: Map<ChunkPath, ChunkPath[]> = new Map()\n\n// Registry mapping a component chunk's path to its size in bytes, used by the\n// split-vs-whole cost heuristic.\nconst componentChunkSizes: Map<ChunkPath, number> = new Map()\n\nfunction registerComponentChunkSizes(\n componentChunks: ChunkPath[],\n sizes: number[]\n): void {\n for (let i = 0; i < componentChunks.length; i++) {\n const size = sizes[i]\n if (size !== undefined) {\n componentChunkSizes.set(componentChunks[i], size)\n }\n }\n}\n\ntype ChunkUrlOrMerged = ChunkUrl | [ChunkUrl, ChunkPath[], number[]]\n\n// Memoizes the composite promise returned for a merged chunk loaded by URL, keyed by URL.\nconst splitChunkPromises: Map<ChunkUrl, Promise<any>> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext<Module>,\n chunkData: ChunkData\n): Promise<void> {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\n// `chunkPath` is the source chunk; it is `undefined` for entry-only registrations,\n// which have no self chunk.\nfunction loadInitialChunk(\n chunkPath: ChunkPath | undefined,\n chunkData: ChunkData\n) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise<void> {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skLine truncated
{"offset": {"line": 1028, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/hmr-runtime.ts"],"sourcesContent":["/// <reference path=\"./runtime-utils.ts\" />\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./dev-extensions.ts\" />\n/// <reference path=\"./dev-protocol.d.ts\" />\n\ntype HotModuleFactoryFunction = ModuleFactoryFunction<\n HotModule,\n TurbopackBaseContext<HotModule>\n>\n\n/**\n * Shared HMR (Hot Module Replacement) implementation.\n *\n * This file contains the complete HMR implementation that's shared between\n * browser and Node.js runtimes. It manages module hot state, dependency\n * tracking, the module.hot API, and the full HMR update flow.\n */\n\n/**\n * The development module cache shared across the runtime.\n * Browser runtime declares this directly.\n * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this.\n */\nlet devModuleCache: Record<ModuleId, any>\n\n/**\n * Module IDs that are instantiated as part of the runtime of a chunk.\n */\nlet runtimeModules: Set<ModuleId>\n\n/**\n * Maps module IDs to persisted data between executions of their hot module\n * implementation (`hot.data`).\n */\nconst moduleHotData: Map<ModuleId, HotData> = new Map()\n\n/**\n * Maps module instances to their hot module state.\n * Uses WeakMap so it works with both HotModule and ModuleWithDirection.\n */\nconst moduleHotState: WeakMap<any, HotState> = new WeakMap()\n\n/**\n * Modules that call `module.hot.invalidate()` (while being updated).\n */\nconst queuedInvalidatedModules: Set<ModuleId> = new Set()\n\nclass UpdateApplyError extends Error {\n name = 'UpdateApplyError'\n\n dependencyChain: ModuleId[]\n\n constructor(message: string, dependencyChain: ModuleId[]) {\n super(message)\n this.dependencyChain = dependencyChain\n }\n}\n\ntype ModuleEffect =\n | {\n type: 'unaccepted'\n dependencyChain: ModuleId[]\n }\n | {\n type: 'self-declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n }\n | {\n type: 'declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n parentId: ModuleId\n }\n | {\n type: 'accepted'\n moduleId: ModuleId\n outdatedModules: Set<ModuleId>\n outdatedDependencies: Map<ModuleId, Set<ModuleId>>\n }\n\n/**\n * Records parent-child relationship when a module imports another.\n * Should be called during module instantiation.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction trackModuleImport(\n parentModule: ModuleWithDirection,\n childModuleId: ModuleId,\n childModule: ModuleWithDirection | undefined\n): void {\n // Record that parent imports child\n if (parentModule.children.indexOf(childModuleId) === -1) {\n parentModule.children.push(childModuleId)\n }\n\n // Record that child is imported by parent\n if (childModule && childModule.parents.indexOf(parentModule.id) === -1) {\n childModule.parents.push(parentModule.id)\n }\n}\n\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\n return `Dependency chain: ${dependencyChain.join(' -> ')}`\n}\n\n/**\n * Walks the dependency tree to find all modules affected by a change.\n * Returns information about whether the update can be accepted and which\n * modules need to be invalidated.\n *\n * @param moduleId - The module that changed\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept().\n * This is used for server-side HMR where pages auto-accept at the top level.\n */\nfunction getAffectedModuleEffects(\n moduleId: ModuleId,\n autoAcceptRootModules: boolean\n): ModuleEffect {\n const outdatedModules: Set<ModuleId> = new Set()\n const outdatedDependencies: Map<ModuleId, Set<ModuleId>> = new Map()\n\n type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\n\n const queue: Array<QueueItem | undefined> = [\n {\n moduleId,\n dependencyChain: [],\n },\n ]\n\n let queueIndex = 0\n while (queueIndex < queue.length) {\n const { moduleId, dependencyChain } = queue[queueIndex]!\n // Release copied dependency chains as soon as their queue item is consumed.\n queue[queueIndex++] = undefined\n\n if (moduleId != null) {\n if (outdatedModules.has(moduleId)) {\n // Avoid infinite loops caused by cycles between modules in the dependency chain.\n continue\n }\n\n outdatedModules.add(moduleId)\n }\n\n // We've arrived at the runtime of the chunk, which means that nothing\n // else above can accept this update.\n if (moduleId === undefined) {\n if (autoAcceptRootModules) {\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n }\n return {\n type: 'unaccepted',\n dependencyChain,\n }\n }\n\n const module = devModuleCacLine truncated
{"offset": {"line": 1724, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext<HotModule> {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in `<reference>`d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map<ModuleId, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map<ChunkPath, Set<ModuleId>> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set<ChunkListPath> = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map<ChunkListPath, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map<ChunkPath, Set<ChunkListPath>> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath | undefined,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n Line truncated
{"offset": {"line": 2148, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../../../browser/runtime/base/runtime-base.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n retryAttempts: number\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise<any>\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n // `chunk` is `undefined` for an inlined entry-only registration, which has no source chunk.\n let chunkPath: ChunkPath | undefined\n if (chunk != null) {\n chunkPath = getPathFromScript(chunk)\n const resolver = getOrCreateResolver(getUrlFromScript(chunk))\n resolver.resolve()\n }\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise<void>((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n retryAttempts: 0,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Rejects a chunk resolver and drops it from the cache.\n * We don't want to cache failed chunk loads: a later\n * request for the same chunk should try again.\n */\n function rejectChunkResolver(\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error\n ) {\n if (chunkResolvers.get(chunkUrl) === resolver) {\n chunkResolvers.delete(chunkUrl)\n }\n resolver.reject(error)\n }\n\n function getChunkLoadRetryDelayMs() {\n const jitter = Math.floor(\n Math.random() * (CHUNK_LOAD_RETRY_MAX_JITTER_MS + 1)\n )\n return CHUNK_LOAD_RETRY_BASE_DELAY_MS + jitter\n }\n\n function isRetryableChunkLoadError(error?: Error): boolean {\n return (\n error == null ||\n (error instanceof DOMException && error.name === 'NetworkError')\n )\n }\n\n /**\n * Handles a failed chunk load: retries the load once after a short delay.\n */\n function onChunkLoadError(\n sourceType: SourceType,\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error,\n reload?: () => void\n ) {\n if (\n !isRetryableChunkLoadError(error) ||\n resolver.retryAttempts >= CHUNK_LOAD_RETRY_MAX_ATTEMPTS ||\n chunkResolvers.get(chunkUrl) !== resolver\n ) {\n rejectChunkResolver(chunkUrl, resolver, error)\n return\n }\n\n resolver.retryAttempts++\n setTimeout(() => {\n // if this chunk is being fetched multiple times, and one of those\n // attempts succeeds. or, if this chunk has another resolver\n // mapped to it - it's safe to skip retrying.\n if (resolver.resolved || chunkResolvers.get(chuLine truncated
{"offset": {"line": 2366, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/runtime-base.ts\" />\n/// <reference path=\"../base/dev-base.ts\" />\n/// <reference path=\"./runtime-backend-dom.ts\" />\n/// <reference path=\"../../../shared/require-type.d.ts\" />\n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise<void>((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a <link rel=preload> exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loadeLine truncated
}
File diff suppressed because it is too large. Load diff
+38
View File
@@ -0,0 +1,38 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/app/HomeClient.js"],"sourcesContent":["'use client';\n\n// 主页客户端组件:SPA 视图调度 (feed/post/new/admin/settings/messages)\nimport { useState } from 'react';\nimport AppProvider, { useApp } from '@/components/AppProvider';\nimport Navbar from '@/components/Navbar';\nimport Sidebar from '@/components/Sidebar';\nimport Feed from '@/components/Feed';\nimport PostDetail from '@/components/PostDetail';\nimport NewPost from '@/components/NewPost';\nimport AdminPage from '@/components/AdminPage';\nimport SettingsPage from '@/components/SettingsPage';\nimport UserProfile from '@/components/UserProfile';\nimport CustomPage from '@/components/CustomPage';\nimport MessagesPage from '@/components/MessagesPage';\nimport ChatManager from '@/components/chat/ChatManager';\nimport Modals from '@/components/Modals';\nimport LoadingScreen from '@/components/LoadingScreen';\n\nfunction HomeInner() {\n const { view, currentPostId, currentPostPreview, currentUsername, currentPageName, ready, forumName, forumNameLoaded } = useApp();\n const [modal, setModal] = useState(null); // null | login | register | report\n const [reportPostId, setReportPostId] = useState(null);\n\n const openModal = (m) => setModal(m);\n const openReport = (postId) => { setReportPostId(postId); setModal('report'); };\n\n // 初始化未完成:显示全屏加载页,避免未加载完的界面闪烁\n if (!ready) {\n return <LoadingScreen forumName={forumName} forumNameLoaded={forumNameLoaded} />;\n }\n\n return (\n <div className=\"app-fade-in\">\n <Navbar onOpenModal={openModal} />\n <ChatManager />\n <div id=\"app\" style={{ display: view === 'feed' ? undefined : 'none' }}>\n <Sidebar />\n <Feed onOpenModal={openModal} onReport={openReport} />\n </div>\n\n {/* 独立页面 */}\n <div style={{ display: view !== 'feed' ? 'block' : 'none' }}>\n {view === 'post' && currentPostId && <PostDetail postId={currentPostId} initialPost={currentPostPreview} />}\n {view === 'user' && currentUsername && <UserProfile username={currentUsername} />}\n {view === 'custom' && currentPageName && <CustomPage pageName={currentPageName} />}\n {view === 'new' && <NewPost />}\n {view === 'admin' && <AdminPage />}\n {view === 'settings' && <SettingsPage />}\n {view === 'messages' && <MessagesPage />}\n </div>\n\n <Modals modal={modal} onClose={() => setModal(null)} reportPostId={reportPostId} />\n </div>\n );\n}\n\nexport default function HomeClient({ cachedName = '' }) {\n return (\n <AppProvider cachedName={cachedName}>\n <HomeInner />\n </AppProvider>\n );\n}\n"],"names":["HomeInner","view","currentPostId","currentPostPreview","currentUsername","currentPageName","ready","forumName","forumNameLoaded","modal","setModal","reportPostId","setReportPostId","openModal","m","openReport","postId","className","onOpenModal","id","style","display","undefined","onReport","initialPost","username","pageName","onClose","HomeClient","cachedName"],"mappings":";;;;;AAEA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAjBA;;;;;;;;;;;;;;;;AAmBA,SAASA;;IACP,MAAM,EAAEC,IAAI,EAAEC,aAAa,EAAEC,kBAAkB,EAAEC,eAAe,EAAEC,eAAe,EAAEC,KAAK,EAAEC,SAAS,EAAEC,eAAe,EAAE,GAAG,IAAA,sIAAM;IAC/H,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC,OAAO,mCAAmC;IAC7E,MAAM,CAACC,cAAcC,gBAAgB,GAAG,IAAA,yKAAQ,EAAC;IAEjD,MAAMC,YAAY,CAACC,IAAMJ,SAASI;IAClC,MAAMC,aAAa,CAACC;QAAaJ,gBAAgBI;QAASN,SAAS;IAAW;IAE9E,6BAA6B;IAC7B,IAAI,CAACJ,OAAO;QACV,qBAAO,6LAAC,yIAAa;YAACC,WAAWA;YAAWC,iBAAiBA;;;;;;IAC/D;IAEA,qBACE,6LAAC;QAAIS,WAAU;;0BACb,6LAAC,kIAAM;gBAACC,aAAaL;;;;;;0BACrB,6LAAC,+IAAW;;;;;0BACZ,6LAAC;gBAAIM,IAAG;gBAAMC,OAAO;oBAAEC,SAASpB,SAAS,SAASqB,YAAY;gBAAO;;kCACnE,6LAAC,mIAAO;;;;;kCACR,6LAAC,gIAAI;wBAACJ,aAAaL;wBAAWU,UAAUR;;;;;;;;;;;;0BAI1C,6LAAC;gBAAIK,OAAO;oBAAEC,SAASpB,SAAS,SAAS,UAAU;gBAAO;;oBACvDA,SAAS,UAAUC,+BAAiB,6LAAC,sIAAU;wBAACc,QAAQd;wBAAesB,aAAarB;;;;;;oBACpFF,SAAS,UAAUG,iCAAmB,6LAAC,uIAAW;wBAACqB,UAAUrB;;;;;;oBAC7DH,SAAS,YAAYI,iCAAmB,6LAAC,sIAAU;wBAACqB,UAAUrB;;;;;;oBAC9DJ,SAAS,uBAAS,6LAAC,mIAAO;;;;;oBAC1BA,SAAS,yBAAW,6LAAC,qIAAS;;;;;oBAC9BA,SAAS,4BAAc,6LAAC,wIAAY;;;;;oBACpCA,SAAS,4BAAc,6LAAC,wIAAY;;;;;;;;;;;0BAGvC,6LAAC,kIAAM;gBAACQ,OAAOA;gBAAOkB,SAAS,IAAMjB,SAAS;gBAAOC,cAAcA;;;;;;;;;;;;AAGzE;GApCSX;;QACkH,sIAAM;;;KADxHA;AAsCM,SAAS4B,WAAW,EAAEC,aAAa,EAAE,EAAE;IACpD,qBACE,6LAAC,uIAAW;QAACA,YAAYA;kBACvB,cAAA,6LAAC7B;;;;;;;;;;AAGP;MANwB4B"}},
{"offset": {"line": 204, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/AccountSecurity.js"],"sourcesContent":["'use client';\n\n// 账户安全:修改密码 + 修改邮箱\nimport { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport { useToast } from './Toast';\n\nexport default function AccountSecurity() {\n const { currentUser } = useApp();\n const { t } = useTranslation();\n const { toast } = useToast();\n const [oldPassword, setOldPassword] = useState('');\n const [newPassword, setNewPassword] = useState('');\n const [pwStatus, setPwStatus] = useState(null);\n const [emailPassword, setEmailPassword] = useState('');\n const [newEmail, setNewEmail] = useState('');\n const [emailStatus, setEmailStatus] = useState(null);\n\n const changePassword = async () => {\n if (!oldPassword || !newPassword) { toast(t('security.fillAll'), 'warning'); return; }\n if (newPassword.length < 6) { toast(t('security.pwMin'), 'warning'); return; }\n try {\n await API.updatePassword(currentUser.id, oldPassword, newPassword);\n setPwStatus({ ok: true, msg: t('security.pwChanged') });\n setOldPassword('');\n setNewPassword('');\n } catch (err) {\n setPwStatus({ ok: false, msg: err.message });\n }\n };\n\n const changeEmail = async () => {\n if (!emailPassword || !newEmail) { toast(t('security.fillAll'), 'warning'); return; }\n try {\n await API.updateEmail(currentUser.id, emailPassword, newEmail);\n setEmailStatus({ ok: true, msg: t('security.emailChanged') });\n setEmailPassword('');\n setNewEmail('');\n } catch (err) {\n setEmailStatus({ ok: false, msg: err.message });\n }\n };\n\n return (\n <div style={{ marginTop: 16, background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 8, padding: 20 }}>\n <h3 style={{ fontSize: 16, marginBottom: 12 }}><Icon name=\"lock\" size={16} /> {t('security.title')}</h3>\n\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 13, display: 'block', marginBottom: 4 }}>{t('security.currentPw')}</label>\n <input type=\"password\" value={oldPassword} style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }} onChange={(e) => setOldPassword(e.target.value)} />\n </div>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 13, display: 'block', marginBottom: 4 }}>{t('security.newPw')}</label>\n <input type=\"password\" value={newPassword} style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }} onChange={(e) => setNewPassword(e.target.value)} />\n </div>\n <button className=\"btn-secondary\" style={{ padding: '8px 16px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--surface)', cursor: 'pointer', color: 'var(--text)' }} onClick={changePassword}>{t('security.changePw')}</button>\n {pwStatus && <div style={{ fontSize: 13, marginTop: 6, color: pwStatus.ok ? '#22c55e' : '#ef4444', display: 'flex', alignItems: 'center', gap: 5 }}><Icon name={pwStatus.ok ? 'success' : 'error'} size={14} /> {pwStatus.msg}</div>}\n\n <div style={{ borderTop: '1px solid var(--border)', margin: '16px 0' }}></div>\n\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 13, display: 'block', marginBottom: 4 }}>{t('security.currentPwVerify')}</label>\n <input type=\"password\" value={emailPassword} style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }} onChange={(e) => setEmailPassword(e.target.value)} />\n </div>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 13, display: 'block', marginBottom: 4 }}>{t('security.newEmail')}</label>\n <input type=\"email\" value={newEmail} style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }} onChange={(e) => setNewEmail(e.target.value)} />\n </div>\n <button className=\"btn-secondary\" style={{ padding: '8px 16px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--surface)', cursor: 'pointer', color: 'var(--text)' }} onClick={changeEmail}>{t('security.changeEmail')}</button>\n {emailStatus && <div style={{ fontSize: 13, marginTop: 6, color: emailStatus.ok ? '#22c55e' : '#ef4444', display: 'flex', alignItems: 'center', gap: 5 }}><Icon name={emailStatus.ok ? 'success' : 'error'} size={14} /> {emailStatusLine truncated
{"offset": {"line": 600, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/AdminPage.js"],"sourcesContent":["'use client';\n\n// 管理后台:侧边栏布局(对齐上游 main 分支)\nimport { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Icon } from './Icons';\nimport AdminReports from './admin/AdminReports';\nimport AdminUsers from './admin/AdminUsers';\nimport AdminLogs from './admin/AdminLogs';\nimport AdminLinks from './admin/AdminLinks';\nimport AdminForumSettings from './admin/AdminForumSettings';\nimport AdminCustomPages from './admin/AdminCustomPages';\nimport AdminCustomCss from './admin/AdminCustomCss';\n\nconst NAV = [\n { key: 'reports', labelKey: 'admin.reports', icon: 'shieldAlert' },\n { key: 'users', labelKey: 'admin.users', icon: 'users' },\n { key: 'logs', labelKey: 'admin.logs', icon: 'file' },\n { key: 'links', labelKey: 'admin.links', icon: 'link' },\n { key: 'settings', labelKey: 'admin.forumSettings', icon: 'settings' },\n { key: 'custom', labelKey: 'admin.customPages', icon: 'file' },\n { key: 'css', labelKey: 'admin.customCss', icon: 'file' },\n];\n\nexport default function AdminPage() {\n const { t } = useTranslation();\n const [tab, setTab] = useState('reports');\n\n return (\n <div className=\"page-slide active\">\n <div className=\"page-header\" style={{ maxWidth: 1200, margin: '0 auto', width: '100%' }}>\n <h2><Icon name=\"shieldAlert\" size={20} /> {t('admin.title')}</h2>\n </div>\n <div className=\"admin-layout\" style={{ maxWidth: 1200, margin: '0 auto', width: '100%' }}>\n <aside className=\"admin-sidebar\">\n <nav className=\"admin-nav\">\n {NAV.map((n) => (\n <a\n key={n.key}\n href=\"#\"\n className={'admin-nav-item' + (tab === n.key ? ' active' : '')}\n data-tab={n.key}\n onClick={(e) => { e.preventDefault(); setTab(n.key); }}\n >\n <span className=\"nav-icon\"><Icon name={n.icon} size={18} /></span>\n {t(n.labelKey)}\n </a>\n ))}\n </nav>\n </aside>\n <main className=\"admin-content\" id=\"adminContent\">\n {tab === 'reports' && <AdminReports />}\n {tab === 'users' && <AdminUsers />}\n {tab === 'logs' && <AdminLogs />}\n {tab === 'links' && <AdminLinks />}\n {tab === 'custom' && <AdminCustomPages />}\n {tab === 'css' && <AdminCustomCss />}\n {tab === 'settings' && <AdminForumSettings />}\n </main>\n </div>\n </div>\n );\n}\n"],"names":["NAV","key","labelKey","icon","AdminPage","t","tab","setTab","className","style","maxWidth","margin","width","name","size","map","n","href","onClick","e","preventDefault","id"],"mappings":";;;;;AAEA,2BAA2B;AAC3B;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAZA;;;;;;;;;;;AAcA,MAAMA,MAAM;IACV;QAAEC,KAAK;QAAWC,UAAU;QAAiBC,MAAM;IAAc;IACjE;QAAEF,KAAK;QAASC,UAAU;QAAeC,MAAM;IAAQ;IACvD;QAAEF,KAAK;QAAQC,UAAU;QAAcC,MAAM;IAAO;IACpD;QAAEF,KAAK;QAASC,UAAU;QAAeC,MAAM;IAAO;IACtD;QAAEF,KAAK;QAAYC,UAAU;QAAuBC,MAAM;IAAW;IACrE;QAAEF,KAAK;QAAUC,UAAU;QAAqBC,MAAM;IAAO;IAC7D;QAAEF,KAAK;QAAOC,UAAU;QAAmBC,MAAM;IAAO;CACzD;AAEc,SAASC;;IACtB,MAAM,EAAEC,CAAC,EAAE,GAAG,IAAA,qLAAc;IAC5B,MAAM,CAACC,KAAKC,OAAO,GAAG,IAAA,yKAAQ,EAAC;IAE/B,qBACE,6LAAC;QAAIC,WAAU;;0BACb,6LAAC;gBAAIA,WAAU;gBAAcC,OAAO;oBAAEC,UAAU;oBAAMC,QAAQ;oBAAUC,OAAO;gBAAO;0BACpF,cAAA,6LAAC;;sCAAG,6LAAC,8HAAI;4BAACC,MAAK;4BAAcC,MAAM;;;;;;wBAAM;wBAAET,EAAE;;;;;;;;;;;;0BAE/C,6LAAC;gBAAIG,WAAU;gBAAeC,OAAO;oBAAEC,UAAU;oBAAMC,QAAQ;oBAAUC,OAAO;gBAAO;;kCACrF,6LAAC;wBAAMJ,WAAU;kCACf,cAAA,6LAAC;4BAAIA,WAAU;sCACZR,IAAIe,GAAG,CAAC,CAACC,kBACR,6LAAC;oCAECC,MAAK;oCACLT,WAAW,mBAAmB,CAACF,QAAQU,EAAEf,GAAG,GAAG,YAAY,EAAE;oCAC7D,YAAUe,EAAEf,GAAG;oCACfiB,SAAS,CAACC;wCAAQA,EAAEC,cAAc;wCAAIb,OAAOS,EAAEf,GAAG;oCAAG;;sDAErD,6LAAC;4CAAKO,WAAU;sDAAW,cAAA,6LAAC,8HAAI;gDAACK,MAAMG,EAAEb,IAAI;gDAAEW,MAAM;;;;;;;;;;;wCACpDT,EAAEW,EAAEd,QAAQ;;mCAPRc,EAAEf,GAAG;;;;;;;;;;;;;;;kCAYlB,6LAAC;wBAAKO,WAAU;wBAAgBa,IAAG;;4BAChCf,QAAQ,2BAAa,6LAAC,iJAAY;;;;;4BAClCA,QAAQ,yBAAW,6LAAC,+IAAU;;;;;4BAC9BA,QAAQ,wBAAU,6LAAC,8IAAS;;;;;4BAC5BA,QAAQ,yBAAW,6LAAC,+IAAU;;;;;4BAC9BA,QAAQ,0BAAY,6LAAC,qJAAgB;;;;;4BACrCA,QAAQ,uBAAS,6LAAC,mJAAc;;;;;4BAChCA,QAAQ,4BAAc,6LAAC,uJAAkB;;;;;;;;;;;;;;;;;;;;;;;AAKpD;GAtCwBF;;QACR,qLAAc;;;KADNA"}},
{"offset": {"line": 830, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/AppProvider.js"],"sourcesContent":["'use client';\n\n// 全局状态 Provider:用户、主题、论坛名、当前视图(feed/post/new/admin/...)\nimport { createContext, useContext, useState, useEffect, useCallback, useRef } from 'react';\nimport { flushSync } from 'react-dom';\nimport { API, getTheme, setToken, getToken } from '@/lib/api';\n\nconst AppContext = createContext(null);\n\nconst POST_TRANSITION_PARTS = [\n ['.post-avatar', 'post-avatar'],\n ['.post-username', 'post-author'],\n ['.post-title', 'post-heading'],\n ['.post-time', 'post-time'],\n ['.post-content', 'post-body'],\n ['.post-images', 'post-feed-media'],\n ['.post-pin-state', 'post-pin-state'],\n ['.post-edited-state', 'post-edited-state'],\n ['.post-actions', 'post-feed-actions'],\n];\n\nfunction namePostTransitionParts(card) {\n if (!card) return [];\n return POST_TRANSITION_PARTS.flatMap(([selector, name]) => {\n const element = card.querySelector(selector);\n if (!element) return [];\n element.style.viewTransitionName = name;\n return [element];\n });\n}\n\nfunction clearPostTransitionParts(elements) {\n elements.forEach((element) => {\n element.style.viewTransitionName = '';\n });\n}\n\nfunction waitForPostImages(container) {\n const images = Array.from(container?.querySelectorAll('img') || []);\n if (images.length === 0) return Promise.resolve();\n\n return new Promise((resolve) => {\n let settled = false;\n const finish = () => {\n if (settled) return;\n settled = true;\n clearTimeout(timeout);\n resolve();\n };\n const timeout = setTimeout(finish, 1200);\n Promise.all(images.map((image) => image.decode?.().catch(() => {}) || Promise.resolve())).then(finish);\n });\n}\n\nfunction stageSharedGeometry(transition, {\n name,\n duration,\n moveOffset,\n moveEasing = 'cubic-bezier(0.16, 1, 0.3, 1)',\n resizeEasing = 'cubic-bezier(0.4, 0, 0.2, 1)',\n reverse = false,\n}) {\n transition.ready.then(() => {\n const groupAnimation = document.getAnimations().find(\n (animation) => animation.effect?.pseudoElement === `::view-transition-group(${name})`\n );\n const frames = groupAnimation?.effect?.getKeyframes();\n if (!groupAnimation || !frames || frames.length < 2) return;\n\n const start = frames[0];\n const end = frames[frames.length - 1];\n groupAnimation.effect.setKeyframes(reverse ? [\n {\n offset: 0,\n width: start.width,\n height: start.height,\n transform: start.transform,\n easing: resizeEasing,\n },\n {\n offset: 1 - moveOffset,\n width: start.width,\n height: end.height,\n transform: start.transform,\n easing: moveEasing,\n },\n {\n offset: 1,\n width: end.width,\n height: end.height,\n transform: end.transform,\n },\n ] : [\n {\n offset: 0,\n width: start.width,\n height: start.height,\n transform: start.transform,\n easing: moveEasing,\n },\n {\n offset: moveOffset,\n width: end.width,\n height: start.height,\n transform: end.transform,\n easing: resizeEasing,\n },\n {\n offset: 1,\n width: end.width,\n height: end.height,\n transform: end.transform,\n },\n ]);\n groupAnimation.effect.updateTiming({ duration, easing: 'linear', fill: 'both' });\n }).catch(() => {});\n}\n\nexport function useApp() {\n return useContext(AppContext);\n}\n\nexport default function AppProvider({ children, cachedName = '' }) {\n const [currentUser, setCurrentUser] = useState(null);\n // 论坛名初始值来自 cookie(SSR 首帧即输出,SSR/客户端一致 → 无 hydration mismatch)\n const [forumName, setForumName] = useState(cachedName || 'Forumlify');\n const [theme, setThemeState] = useState('light');\n const [view, setView] = useState('feed'); // feed | post | new | admin | settings | messages | user | custom\n const [currentPostId, setCurrentPostId] = useState(null);\n const [currentPostPreview, setCurrentPostPreview] = useState(null);\n const [currentUsername, setCurrentUsername] = useState(null);\n const [currentPageName, setCurrentPageName] = useState(null);\n const [sort, setSort] = useState('latest');\n const [refreshKey, setRefreshKey] = useState(0);\n const [ready, setReady] = useState(false); // 初始加载完成标记(控制加载页/淡入)\n // 有 cookie 缓存名即视为已加载(SSR/客户端一致)\n const [forumNameLoaded, setForumNameLoaded] = useState(!!cachedName);\n const loadedRef = useRef(false);\n\n const refresh = useCallback(() => setRefreshKey((k) => k + 1), []);\n\n // 论坛名写 cookie(SSR 可读 → 首帧输出,无需内联脚本注入 DOM)\n const syncForumNameCookie = useCallback((nLine truncated
{"offset": {"line": 1446, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/CaptchaImage.js"],"sourcesContent":["'use client';\n\n// 图片验证码:用 canvas 绘制算式(带噪点/干扰线,挡一部分人机)\n// 点击图片可刷新验证码\nimport { useEffect, useRef } from 'react';\n\nexport default function CaptchaImage({ captcha, onRefresh }) {\n const canvasRef = useRef(null);\n\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas || !captcha) return;\n const ctx = canvas.getContext('2d');\n const W = canvas.width;\n const H = canvas.height;\n\n // 背景(半透明玻璃感)\n ctx.clearRect(0, 0, W, H);\n ctx.fillStyle = 'rgba(91, 155, 213, 0.10)';\n ctx.fillRect(0, 0, W, H);\n\n // 干扰线\n for (let i = 0; i < 4; i++) {\n ctx.strokeStyle = `rgba(${80 + Math.random() * 120}, ${80 + Math.random() * 120}, 200, ${0.2 + Math.random() * 0.3})`;\n ctx.lineWidth = 1 + Math.random();\n ctx.beginPath();\n ctx.moveTo(Math.random() * W, Math.random() * H);\n ctx.lineTo(Math.random() * W, Math.random() * H);\n ctx.stroke();\n }\n\n // 噪点\n for (let i = 0; i < 30; i++) {\n ctx.fillStyle = `rgba(${Math.random() * 200}, ${Math.random() * 200}, 220, ${0.3 + Math.random() * 0.5})`;\n ctx.beginPath();\n ctx.arc(Math.random() * W, Math.random() * H, 1 + Math.random() * 1.5, 0, Math.PI * 2);\n ctx.fill();\n }\n\n // 算式文字(每个字符轻微旋转/位移,增加识别难度)\n const text = (captcha.text || captcha.question || '').replace(' = ?', '');\n const chars = text.split('');\n const fontSize = Math.floor(H * 0.52);\n const step = W / (chars.length + 1);\n chars.forEach((ch, i) => {\n ctx.save();\n ctx.translate(step * (i + 1) + (Math.random() - 0.5) * 6, H / 2 + (Math.random() - 0.5) * 6);\n ctx.rotate((Math.random() - 0.5) * 0.25);\n ctx.font = `bold ${fontSize}px -apple-system, \"SF Pro Display\", \"Segoe UI\", Roboto, sans-serif`;\n ctx.fillStyle = `rgba(${40 + Math.random() * 60}, ${50 + Math.random() * 50}, 90, 0.9)`;\n ctx.textAlign = 'center';\n ctx.textBaseline = 'middle';\n ctx.fillText(ch, 0, 0);\n ctx.restore();\n });\n }, [captcha]);\n\n return (\n <canvas\n ref={canvasRef}\n width={120}\n height={40}\n onClick={onRefresh}\n title=\"看不清?点击刷新\"\n style={{ cursor: 'pointer', borderRadius: 6, border: '1px solid var(--glass-border)', verticalAlign: 'middle' }}\n />\n );\n}\n"],"names":["CaptchaImage","captcha","onRefresh","canvasRef","canvas","current","ctx","getContext","W","width","H","height","clearRect","fillStyle","fillRect","i","strokeStyle","Math","random","lineWidth","beginPath","moveTo","lineTo","stroke","arc","PI","fill","text","question","replace","chars","split","fontSize","floor","step","length","forEach","ch","save","translate","rotate","font","textAlign","textBaseline","fillText","restore","ref","onClick","title","style","cursor","borderRadius","border","verticalAlign"],"mappings":";;;;;AAEA,sCAAsC;AACtC,aAAa;AACb;;;AAJA;;AAMe,SAASA,aAAa,EAAEC,OAAO,EAAEC,SAAS,EAAE;;IACzD,MAAMC,YAAY,IAAA,uKAAM,EAAC;IAEzB,IAAA,0KAAS;kCAAC;YACR,MAAMC,SAASD,UAAUE,OAAO;YAChC,IAAI,CAACD,UAAU,CAACH,SAAS;YACzB,MAAMK,MAAMF,OAAOG,UAAU,CAAC;YAC9B,MAAMC,IAAIJ,OAAOK,KAAK;YACtB,MAAMC,IAAIN,OAAOO,MAAM;YAEvB,aAAa;YACbL,IAAIM,SAAS,CAAC,GAAG,GAAGJ,GAAGE;YACvBJ,IAAIO,SAAS,GAAG;YAChBP,IAAIQ,QAAQ,CAAC,GAAG,GAAGN,GAAGE;YAEtB,MAAM;YACN,IAAK,IAAIK,IAAI,GAAGA,IAAI,GAAGA,IAAK;gBAC1BT,IAAIU,WAAW,GAAG,CAAC,KAAK,EAAE,KAAKC,KAAKC,MAAM,KAAK,IAAI,EAAE,EAAE,KAAKD,KAAKC,MAAM,KAAK,IAAI,OAAO,EAAE,MAAMD,KAAKC,MAAM,KAAK,IAAI,CAAC,CAAC;gBACrHZ,IAAIa,SAAS,GAAG,IAAIF,KAAKC,MAAM;gBAC/BZ,IAAIc,SAAS;gBACbd,IAAIe,MAAM,CAACJ,KAAKC,MAAM,KAAKV,GAAGS,KAAKC,MAAM,KAAKR;gBAC9CJ,IAAIgB,MAAM,CAACL,KAAKC,MAAM,KAAKV,GAAGS,KAAKC,MAAM,KAAKR;gBAC9CJ,IAAIiB,MAAM;YACZ;YAEA,KAAK;YACL,IAAK,IAAIR,IAAI,GAAGA,IAAI,IAAIA,IAAK;gBAC3BT,IAAIO,SAAS,GAAG,CAAC,KAAK,EAAEI,KAAKC,MAAM,KAAK,IAAI,EAAE,EAAED,KAAKC,MAAM,KAAK,IAAI,OAAO,EAAE,MAAMD,KAAKC,MAAM,KAAK,IAAI,CAAC,CAAC;gBACzGZ,IAAIc,SAAS;gBACbd,IAAIkB,GAAG,CAACP,KAAKC,MAAM,KAAKV,GAAGS,KAAKC,MAAM,KAAKR,GAAG,IAAIO,KAAKC,MAAM,KAAK,KAAK,GAAGD,KAAKQ,EAAE,GAAG;gBACpFnB,IAAIoB,IAAI;YACV;YAEA,2BAA2B;YAC3B,MAAMC,OAAO,CAAC1B,QAAQ0B,IAAI,IAAI1B,QAAQ2B,QAAQ,IAAI,EAAE,EAAEC,OAAO,CAAC,QAAQ;YACtE,MAAMC,QAAQH,KAAKI,KAAK,CAAC;YACzB,MAAMC,WAAWf,KAAKgB,KAAK,CAACvB,IAAI;YAChC,MAAMwB,OAAO1B,IAAI,CAACsB,MAAMK,MAAM,GAAG,CAAC;YAClCL,MAAMM,OAAO;0CAAC,CAACC,IAAItB;oBACjBT,IAAIgC,IAAI;oBACRhC,IAAIiC,SAAS,CAACL,OAAO,CAACnB,IAAI,CAAC,IAAI,CAACE,KAAKC,MAAM,KAAK,GAAG,IAAI,GAAGR,IAAI,IAAI,CAACO,KAAKC,MAAM,KAAK,GAAG,IAAI;oBAC1FZ,IAAIkC,MAAM,CAAC,CAACvB,KAAKC,MAAM,KAAK,GAAG,IAAI;oBACnCZ,IAAImC,IAAI,GAAG,CAAC,KAAK,EAAET,SAAS,kEAAkE,CAAC;oBAC/F1B,IAAIO,SAAS,GAAG,CAAC,KAAK,EAAE,KAAKI,KAAKC,MAAM,KAAK,GAAG,EAAE,EAAE,KAAKD,KAAKC,MAAM,KAAK,GAAG,UAAU,CAAC;Line truncated
{"offset": {"line": 1539, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/CustomPage.js"],"sourcesContent":["'use client';\n\n// 自定义页面:以 iframe srcdoc 渲染 HTML 内容(与原版一致)\nimport { useEffect, useState } from 'react';\nimport { API } from '@/lib/api';\n\nexport default function CustomPage({ pageName }) {\n const [html, setHtml] = useState(null);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n setHtml(null);\n setError(null);\n API.getCustomPage(pageName)\n .then((page) => setHtml(page.content))\n .catch((err) => setError(err.message));\n }, [pageName]);\n\n if (error) {\n return (\n <div style={{ padding: '84px 32px', textAlign: 'center', color: '#ef4444' }}>\n 页面加载失败:{error}\n </div>\n );\n }\n if (html === null) {\n return <div style={{ padding: '84px 32px', textAlign: 'center', color: '#94a3b8' }}><span className=\"spinner-sm\" />加载中...</div>;\n }\n\n const srcdoc = `<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<style>\n * { margin: 0; padding: 0; box-sizing: border-box; }\n body {\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif;\n padding: 24px;\n background: var(--bg, #f6f8fc);\n color: var(--text, #0a0e1a);\n }\n @media (prefers-color-scheme: dark) {\n body { background: #0f1117; color: #e8edf5; }\n }\n</style>\n</head>\n<body>${html}</body>\n</html>`;\n\n return (\n <div className=\"custom-page-container\" style={{ padding: '84px 32px 40px', background: 'var(--bg)', minHeight: '100vh' }}>\n <iframe\n style={{ width: '100%', minHeight: '70vh', border: 'none', borderRadius: 8, background: 'var(--surface)' }}\n sandbox=\"allow-scripts allow-modals allow-same-origin\"\n srcDoc={srcdoc}\n title={pageName}\n />\n </div>\n );\n}\n"],"names":["CustomPage","pageName","html","setHtml","error","setError","getCustomPage","then","page","content","catch","err","message","style","padding","textAlign","color","className","srcdoc","background","minHeight","width","border","borderRadius","sandbox","srcDoc","title"],"mappings":";;;;;AAEA,0CAA0C;AAC1C;AACA;;;AAJA;;;AAMe,SAASA,WAAW,EAAEC,QAAQ,EAAE;;IAC7C,MAAM,CAACC,MAAMC,QAAQ,GAAG,IAAA,yKAAQ,EAAC;IACjC,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC;IAEnC,IAAA,0KAAS;gCAAC;YACRF,QAAQ;YACRE,SAAS;YACT,oHAAG,CAACC,aAAa,CAACL,UACfM,IAAI;wCAAC,CAACC,OAASL,QAAQK,KAAKC,OAAO;uCACnCC,KAAK;wCAAC,CAACC,MAAQN,SAASM,IAAIC,OAAO;;QACxC;+BAAG;QAACX;KAAS;IAEb,IAAIG,OAAO;QACT,qBACE,6LAAC;YAAIS,OAAO;gBAAEC,SAAS;gBAAaC,WAAW;gBAAUC,OAAO;YAAU;;gBAAG;gBACnEZ;;;;;;;IAGd;IACA,IAAIF,SAAS,MAAM;QACjB,qBAAO,6LAAC;YAAIW,OAAO;gBAAEC,SAAS;gBAAaC,WAAW;gBAAUC,OAAO;YAAU;;8BAAG,6LAAC;oBAAKC,WAAU;;;;;;gBAAe;;;;;;;IACrH;IAEA,MAAMC,SAAS,CAAC;;;;;;;;;;;;;;;;;;MAkBZ,EAAEhB,KAAK;OACN,CAAC;IAEN,qBACE,6LAAC;QAAIe,WAAU;QAAwBJ,OAAO;YAAEC,SAAS;YAAkBK,YAAY;YAAaC,WAAW;QAAQ;kBACrH,cAAA,6LAAC;YACCP,OAAO;gBAAEQ,OAAO;gBAAQD,WAAW;gBAAQE,QAAQ;gBAAQC,cAAc;gBAAGJ,YAAY;YAAiB;YACzGK,SAAQ;YACRC,QAAQP;YACRQ,OAAOzB;;;;;;;;;;;AAIf;GAtDwBD;KAAAA"}},
{"offset": {"line": 1669, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Feed.js"],"sourcesContent":["'use client';\n\n// 信息流:帖子列表 + 排序 tab + 发布新帖按钮\nimport { useEffect, useState, useCallback, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport ImageViewer from './ImageViewer';\nimport { renderMarkdown } from '@/lib/markdown';\nimport { useToast } from './Toast';\n\nfunction avatar(username) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || '匿名用户') +\n '&background=6366f1&color=fff&size=64';\n}\n\nexport default function Feed({ onOpenModal, onReport }) {\n const { currentUser, sort, setSort, openPost, openUser, navigate, refreshKey } = useApp();\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [posts, setPosts] = useState(null);\n const [error, setError] = useState(null);\n const [loading, setLoading] = useState(true);\n const [page, setPage] = useState(1);\n const [totalPages, setTotalPages] = useState(1);\n const [viewerSrc, setViewerSrc] = useState(null);\n const [selectedSort, setSelectedSort] = useState(sort);\n const [drawerPhase, setDrawerPhase] = useState('idle');\n const postListRef = useRef(null);\n const sortTimerRef = useRef(null);\n const pendingSortRef = useRef(null);\n const PAGE_SIZE = 20;\n\n const load = useCallback(async (targetPage) => {\n setError(null);\n try {\n const result = await API.getPosts(sort, null, targetPage, PAGE_SIZE);\n setPosts(result.data || []);\n setTotalPages(result.pagination?.totalPages || 1);\n setPage(result.pagination?.page || 1);\n } catch (err) {\n setError(err.message);\n setPosts([]);\n } finally {\n if (pendingSortRef.current === sort) {\n requestAnimationFrame(() => {\n setDrawerPhase('opening');\n sortTimerRef.current = setTimeout(() => {\n pendingSortRef.current = null;\n setDrawerPhase('idle');\n }, 360);\n });\n }\n }\n }, [sort, refreshKey]);\n\n useEffect(() => { load(page); }, [load]);\n\n // 长帖内容:超过 3 行时加 .has-fade(底部渐变遮罩提示还有更多内容)\n useEffect(() => {\n if (!posts || posts.length === 0 || !postListRef.current) return;\n const els = postListRef.current.querySelectorAll('.post-content');\n els.forEach((el) => {\n if (el.scrollHeight > el.clientHeight + 4) {\n el.classList.add('has-fade');\n } else {\n el.classList.remove('has-fade');\n }\n });\n }, [posts]);\n\n // 排序切换时回第一页\n useEffect(() => { setPage(1); }, [sort]);\n\n useEffect(() => () => clearTimeout(sortTimerRef.current), []);\n\n const handleSortChange = (nextSort) => {\n if (nextSort === selectedSort) return;\n\n setSelectedSort(nextSort);\n clearTimeout(sortTimerRef.current);\n\n // 快速切回当前排序时,直接重新展开尚未替换的列表。\n if (nextSort === sort) {\n pendingSortRef.current = null;\n setDrawerPhase('opening');\n sortTimerRef.current = setTimeout(() => setDrawerPhase('idle'), 360);\n return;\n }\n\n setDrawerPhase('closing');\n sortTimerRef.current = setTimeout(() => {\n pendingSortRef.current = nextSort;\n setDrawerPhase('closed');\n setSort(nextSort);\n }, 220);\n };\n\n const handleDelete = async (postId) => {\n if (!await confirmAction(t('feed.confirmDelete'))) return;\n try {\n await API.deletePost(postId);\n load(page);\n } catch (err) {\n toast(t('feed.deleteFailed', { msg: err.message }), 'error');\n }\n };\n\n return (\n <main id=\"feed\">\n <div className=\"feed-header\">\n <div className=\"feed-header-left\">\n <button className={'tab' + (selectedSort === 'latest' ? ' active' : '')} onClick={() => handleSortChange('latest')}>{t('feed.latest')}</button>\n <button className={'tab' + (selectedSort === 'hot' ? ' active' : '')} onClick={() => handleSortChange('hot')}>{t('feed.hot')}</button>\n </div>\n <button\n className=\"btn-primary fab-btn\"\n onClick={() => {\n if (!currentUser) { toast(t('newPost.pleaseLogin'), 'warning'); return; }\n navigate('new');\n }}\n >\n <Icon name=\"plus\" /> {t('feed.newPost')}\n </button>\n </div>\n <div className={'feed-posts-drawer ' + drawerPhase}>\n <div className=\"feed-posts-drawer-inner\">\n <div id=\"postList\" ref={postListRef}>\n {posts === null ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}><span className=\"spinner-sm\" />{t('feed.loading')}</div>\n ) : error ? (\Line truncated
{"offset": {"line": 2276, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/ImageViewer.js"],"sourcesContent":["'use client';\n\n// 图片查看器(点击帖子图片放大)\nimport { useEffect } from 'react';\n\nexport default function ImageViewer({ src, onClose }) {\n useEffect(() => {\n const onKey = (e) => { if (e.key === 'Escape') onClose(); };\n document.addEventListener('keydown', onKey);\n return () => document.removeEventListener('keydown', onKey);\n }, [onClose]);\n\n return (\n <div\n className=\"modal active\"\n style={{\n position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.85)', zIndex: 9999,\n display: 'flex', alignItems: 'center', justifyContent: 'center',\n cursor: 'pointer', animation: 'fadeIn 0.2s ease-out',\n }}\n onClick={onClose}\n >\n <img\n src={src}\n alt=\"\"\n style={{\n maxWidth: '90vw', maxHeight: '90vh', objectFit: 'contain',\n borderRadius: 8, boxShadow: '0 8px 32px rgba(0,0,0,0.5)',\n cursor: 'default', userSelect: 'none',\n }}\n onClick={(e) => e.stopPropagation()}\n />\n </div>\n );\n}\n"],"names":["ImageViewer","src","onClose","onKey","e","key","document","addEventListener","removeEventListener","className","style","position","inset","background","zIndex","display","alignItems","justifyContent","cursor","animation","onClick","alt","maxWidth","maxHeight","objectFit","borderRadius","boxShadow","userSelect","stopPropagation"],"mappings":";;;;;AAEA,kBAAkB;AAClB;;;AAHA;;AAKe,SAASA,YAAY,EAAEC,GAAG,EAAEC,OAAO,EAAE;;IAClD,IAAA,0KAAS;iCAAC;YACR,MAAMC;+CAAQ,CAACC;oBAAQ,IAAIA,EAAEC,GAAG,KAAK,UAAUH;gBAAW;;YAC1DI,SAASC,gBAAgB,CAAC,WAAWJ;YACrC;yCAAO,IAAMG,SAASE,mBAAmB,CAAC,WAAWL;;QACvD;gCAAG;QAACD;KAAQ;IAEZ,qBACE,6LAAC;QACCO,WAAU;QACVC,OAAO;YACLC,UAAU;YAASC,OAAO;YAAGC,YAAY;YAAoBC,QAAQ;YACrEC,SAAS;YAAQC,YAAY;YAAUC,gBAAgB;YACvDC,QAAQ;YAAWC,WAAW;QAChC;QACAC,SAASlB;kBAET,cAAA,6LAAC;YACCD,KAAKA;YACLoB,KAAI;YACJX,OAAO;gBACLY,UAAU;gBAAQC,WAAW;gBAAQC,WAAW;gBAChDC,cAAc;gBAAGC,WAAW;gBAC5BR,QAAQ;gBAAWS,YAAY;YACjC;YACAP,SAAS,CAAChB,IAAMA,EAAEwB,eAAe;;;;;;;;;;;AAIzC;GA7BwB5B;KAAAA"}},
{"offset": {"line": 2353, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/LoadingScreen.js"],"sourcesContent":["'use client';\n\n// 全屏加载页:初始化未完成时显示转圈,加载完成后淡出\n// 论坛名:容器由 React 渲染(SSR 即有),内联脚本在 DOMContentLoaded 时\n// 填充缓存名 → 首帧显示;suppressHydrationWarning 让 React 跳过该元素\n// 的文本检查(保留脚本填入的内容),hydrate 后由 AppProvider 状态接管。\nexport default function LoadingScreen({ forumName, forumNameLoaded }) {\n return (\n <div className=\"loading-screen\">\n <div className=\"loading-inner\">\n <div className=\"loading-spinner\" />\n <div className={'loading-title' + (forumNameLoaded ? ' loading-title-appear' : '')} id=\"loadingTitle\" suppressHydrationWarning>\n {forumNameLoaded && forumName}\n </div>\n <div className=\"loading-sub\">加载中...</div>\n </div>\n </div>\n );\n}\n"],"names":["LoadingScreen","forumName","forumNameLoaded","className","id","suppressHydrationWarning"],"mappings":";;;;;AAAA;;AAMe,SAASA,cAAc,EAAEC,SAAS,EAAEC,eAAe,EAAE;IAClE,qBACE,6LAAC;QAAIC,WAAU;kBACb,cAAA,6LAAC;YAAIA,WAAU;;8BACb,6LAAC;oBAAIA,WAAU;;;;;;8BACf,6LAAC;oBAAIA,WAAW,kBAAkB,CAACD,kBAAkB,0BAA0B,EAAE;oBAAGE,IAAG;oBAAeC,wBAAwB;8BAC3HH,mBAAmBD;;;;;;8BAEtB,6LAAC;oBAAIE,WAAU;8BAAc;;;;;;;;;;;;;;;;;AAIrC;KAZwBH"}},
{"offset": {"line": 2413, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/MessagesPage.js"],"sourcesContent":["'use client';\n\n// 消息页:通知列表(回复/删除/举报处理/系统)\nimport { useEffect, useState } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\n\nconst TYPE_MAP = { reply: 'message', post_deleted: 'trash', report_handled: 'shield', system: 'megaphone' };\n\nexport default function MessagesPage() {\n const { currentUser } = useApp();\n const [notifications, setNotifications] = useState(null);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n if (!currentUser) return;\n API.getNotifications()\n .then((data) => {\n setNotifications(data || []);\n setError(null);\n API.markAllNotificationsRead().catch(() => {});\n })\n .catch((e) => { setError(e.message); setNotifications([]); });\n }, [currentUser]);\n\n if (!currentUser) {\n return <div className=\"page-slide active\" style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>请先登录</div>;\n }\n\n return (\n <div className=\"page-slide active\">\n <div className=\"page-header\" style={{ maxWidth: 700, margin: '0 auto', width: '100%' }}>\n <h2><Icon name=\"message\" size={20} /> 消息</h2>\n </div>\n <div style={{ maxWidth: 700, margin: '0 auto', width: '100%' }}>\n {error ? (\n <div style={{ textAlign: 'center', color: '#ef4444', padding: 20 }}>加载失败:{error}</div>\n ) : notifications === null ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>加载中...</div>\n ) : notifications.length === 0 ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '60px 0' }}>\n <Icon name=\"message\" size={48} />\n <p style={{ fontSize: 16 }}>暂无消息</p>\n <p style={{ fontSize: 13 }}>当有人回复你的帖子或处理你的举报时,会在这里通知你</p>\n </div>\n ) : (\n notifications.map((n) => {\n const icon = TYPE_MAP[n.type] || 'pin';\n const time = n.created_at ? new Date(n.created_at).toLocaleString('zh-CN') : '';\n return (\n <div key={n.id} style={{ display: 'flex', alignItems: 'flex-start', gap: 12, padding: '14px 16px', borderBottom: '1px solid var(--border-light)', background: 'var(--surface)', borderRadius: 6, marginBottom: 6 }}>\n <span style={{ color: 'var(--text-secondary)', paddingTop: 2 }}><Icon name={icon} size={20} /></span>\n <div style={{ flex: 1, minWidth: 0 }}>\n <div style={{ fontWeight: 600, fontSize: 14 }}>{n.title}</div>\n <div style={{ color: 'var(--text-secondary)', fontSize: 13, marginTop: 2 }}>{n.content}</div>\n {n.link && <a href={n.link} style={{ color: 'var(--primary)', fontSize: 13, textDecoration: 'none', marginTop: 4, display: 'inline-block' }}>查看详情 →</a>}\n <div style={{ fontSize: 12, color: 'var(--text-light)', marginTop: 4 }}>{time}</div>\n </div>\n </div>\n );\n })\n )}\n </div>\n </div>\n );\n}\n"],"names":["TYPE_MAP","reply","post_deleted","report_handled","system","MessagesPage","currentUser","notifications","setNotifications","error","setError","getNotifications","then","data","markAllNotificationsRead","catch","e","message","className","style","textAlign","color","padding","maxWidth","margin","width","name","size","length","fontSize","map","n","icon","type","time","created_at","Date","toLocaleString","display","alignItems","gap","borderBottom","background","borderRadius","marginBottom","paddingTop","flex","minWidth","fontWeight","title","marginTop","content","link","href","textDecoration","id"],"mappings":";;;;;AAEA,0BAA0B;AAC1B;AACA;AACA;AACA;;;AANA;;;;;AAQA,MAAMA,WAAW;IAAEC,OAAO;IAAWC,cAAc;IAASC,gBAAgB;IAAUC,QAAQ;AAAY;AAE3F,SAASC;;IACtB,MAAM,EAAEC,WAAW,EAAE,GAAG,IAAA,sIAAM;IAC9B,MAAM,CAACC,eAAeC,iBAAiB,GAAG,IAAA,yKAAQ,EAAC;IACnD,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC;IAEnC,IAAA,0KAAS;kCAAC;YACR,IAAI,CAACJ,aAAa;YAClB,oHAAG,CAACK,gBAAgB,GACjBC,IAAI;0CAAC,CAACC;oBACLL,iBAAiBK,QAAQ,EAAE;oBAC3BH,SAAS;oBACT,oHAAG,CAACI,wBAAwB,GAAGC,KAAK;kDAAC,KAAO;;gBAC9C;yCACCA,KAAK;0CAAC,CAACC;oBAAQN,SAASM,EAAEC,OAAO;oBAAGT,iBAAiB,EAAE;gBAAG;;QAC/D;iCAAG;QAACF;KAAY;IAEhB,IAAI,CAACA,aAAa;QAChB,qBAAO,6LAAC;YAAIY,WAAU;YAAoBC,OAAO;gBAAEC,WAAW;gBAAUC,OAAO;gBAAWC,SAAS;YAAS;sBAAG;;;;;;IACjH;IAEA,qBACE,6LAAC;QAAIJ,WAAU;;0BACb,6LAAC;gBAAIA,WAAU;gBAAcC,OAAO;oBAAEI,UAAU;oBAAKC,QAAQ;oBAAUC,OAAO;gBAAO;0BACnF,cAAA,6LAAC;;sCAAG,6LAAC,8HAAI;4BAACC,MAAK;4BAAUC,MAAM;;;;;;wBAAM;;;;;;;;;;;;0BAEvC,6LAAC;gBAAIR,OAAO;oBAAEI,UAAU;oBAAKC,QAAQ;oBAAUC,OAAO;gBAAO;0BAC1DhB,sBACC,6LAAC;oBAAIU,OAAO;wBAAEC,WAAW;wBAAUC,OAAO;wBAAWLine truncated
{"offset": {"line": 2709, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Modals.js"],"sourcesContent":["'use client';\n\n// 登录/注册/举报 模态框\nimport { useState, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport CaptchaImage from './CaptchaImage';\nimport { useToast } from './Toast';\n\nexport default function Modals({ modal, onClose, reportPostId }) {\n const { login, register, currentUser, refresh } = useApp();\n const { t } = useTranslation();\n const { toast } = useToast();\n\n // 登录表单\n const [loginEmail, setLoginEmail] = useState('');\n const [loginPassword, setLoginPassword] = useState('');\n\n // 注册表单\n const [regUsername, setRegUsername] = useState('');\n const [regEmail, setRegEmail] = useState('');\n const [regPassword, setRegPassword] = useState('');\n const [regCaptcha, setRegCaptcha] = useState(null);\n const [regCaptchaInput, setRegCaptchaInput] = useState('');\n\n // 举报表单\n const [reportReason, setReportReason] = useState('spam');\n\n // 打开注册弹窗时从服务器获取验证码挑战(HMAC 签名)\n useEffect(() => {\n if (modal === 'register') {\n API.getCaptcha().then((c) => setRegCaptcha(c)).catch(() => {});\n }\n }, [modal]);\n\n if (!modal) return null;\n\n const close = (e) => {\n if (e && e.target !== e.currentTarget) return;\n onClose();\n };\n\n const handleLogin = async () => {\n if (!loginEmail.trim() || !loginPassword) { toast('请填写完整信息', 'warning'); return; }\n try {\n const result = await login(loginEmail.trim(), loginPassword);\n if (result.user) {\n onClose();\n setLoginEmail('');\n setLoginPassword('');\n refresh();\n }\n } catch (err) {\n toast('登录失败:' + err.message, 'error');\n }\n };\n\n const handleRegister = async () => {\n if (!regUsername.trim() || !regEmail.trim() || !regPassword) { toast('请填写完整信息', 'warning'); return; }\n if (regPassword.length < 6) { toast('密码至少6位', 'warning'); return; }\n if (!regCaptcha || !regCaptchaInput.trim()) {\n toast('请填写验证码', 'warning');\n return;\n }\n try {\n // 答案由服务端 HMAC 校验,前端不对比答案\n await register(regEmail.trim(), regPassword, regUsername.trim(), { id: regCaptcha.id, answer: regCaptchaInput.trim(), sig: regCaptcha.sig });\n onClose();\n setRegUsername('');\n setRegEmail('');\n setRegPassword('');\n setRegCaptchaInput('');\n toast('注册成功!', 'success');\n refresh();\n } catch (err) {\n toast('注册失败:' + err.message, 'error');\n // 失败后刷新验证码\n API.getCaptcha().then((c) => setRegCaptcha(c)).catch(() => {});\n setRegCaptchaInput('');\n }\n };\n\n const handleReport = async () => {\n if (!reportPostId) return;\n try {\n await API.createReport(reportPostId, reportReason);\n onClose();\n toast('举报已提交,管理员将尽快处理', 'success');\n } catch (err) {\n toast('举报失败:' + err.message, 'error');\n }\n };\n\n return (\n <>\n {modal === 'login' && (\n <div className=\"modal active\" onClick={close}>\n <div className=\"modal-content\">\n <span className=\"close\" onClick={onClose}><Icon name=\"close\" size={20} /></span>\n <h2 style={{ marginBottom: 16 }}>{t('auth.login')}</h2>\n <input type=\"email\" placeholder={t('auth.email')} value={loginEmail} onChange={(e) => setLoginEmail(e.target.value)} />\n <input type=\"password\" placeholder={t('auth.password')} value={loginPassword} onChange={(e) => setLoginPassword(e.target.value)}\n onKeyDown={(e) => { if (e.key === 'Enter') handleLogin(); }} />\n <button className=\"btn-primary\" style={{ width: '100%' }} onClick={handleLogin}>{t('auth.login')}</button>\n </div>\n </div>\n )}\n\n {modal === 'register' && (\n <div className=\"modal active\" onClick={close}>\n <div className=\"modal-content\">\n <span className=\"close\" onClick={onClose}><Icon name=\"close\" size={20} /></span>\n <h2 style={{ marginBottom: 16 }}>{t('auth.register')}</h2>\n <input type=\"text\" placeholder={t('auth.username')} value={regUsername} onChange={(e) => setRegUsername(e.target.value)} />\n <input type=\"email\" placeholder={t('auth.email')} value={regEmail} onChange={(e) => setRegEmail(e.target.value)} />\n <input type=\"password\" placeholder={t('auth.passwordHint')} value={regPassword} onChange={(e) => setRegPassword(e.target.value)} />\n <div className=\"captcha-row\" style={{ display: 'flex', alignItems: 'centeLine truncated
{"offset": {"line": 3208, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Navbar.js"],"sourcesContent":["'use client';\n\n// 导航栏:论坛名、自定义页面链接、登录/注册、私信、用户菜单、主题切换\nimport { useState, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport { API } from '@/lib/api';\nimport { DMButton } from './chat/ChatManager';\nimport { useToast } from './Toast';\n\nexport default function Navbar({ onOpenModal }) {\n const { currentUser, forumName, theme, toggleTheme, navigate, openCustomPage, logout } = useApp();\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [menuOpen, setMenuOpen] = useState(false);\n const [customPages, setCustomPages] = useState([]);\n\n useEffect(() => {\n API.getCustomPages().then(setCustomPages).catch(() => {});\n }, []);\n\n // 点击菜单外部关闭下拉(检查目标是否在菜单/头像内,避免 React 合成事件与原生监听冲突)\n useEffect(() => {\n const closeMenu = (e) => {\n const menu = document.getElementById('userDropdown');\n const avatarEl = document.getElementById('userDropdown')?.querySelector('.avatar');\n if (menu && menu.contains(e.target)) return;\n if (avatarEl && avatarEl.contains(e.target)) return;\n setMenuOpen(false);\n };\n document.addEventListener('click', closeMenu);\n return () => document.removeEventListener('click', closeMenu);\n }, []);\n\n const avatarSrc = currentUser?.avatar_url ||\n 'https://ui-avatars.com/api/?name=' + encodeURIComponent(currentUser?.username || 'U') +\n '&background=6366f1&color=fff';\n\n const goPage = (page) => {\n if (page === 'admin' && currentUser?.role !== 'admin') {\n toast('无权限访问', 'warning');\n return;\n }\n setMenuOpen(false);\n navigate(page);\n };\n\n const openMessages = (e) => {\n e.preventDefault();\n setMenuOpen(false);\n // 消息页展示通知列表,私信使用导航栏按钮。\n navigate('messages');\n };\n\n return (\n <nav id=\"navbar\">\n <div className=\"nav-left\">\n <span className=\"forum-name\" onClick={() => navigate('feed')} style={{ cursor: 'pointer' }}>\n {forumName}\n </span>\n <span id=\"customNavLinks\" style={{ display: 'inline-flex', alignItems: 'center', gap: 6, marginLeft: 16 }}>\n {customPages.map((p) => (\n <a\n key={p.id}\n href=\"#\"\n className=\"custom-page-nav-link\"\n data-custom={p.name}\n onClick={(e) => { e.preventDefault(); openCustomPage(p.name); }}\n style={{ color: 'var(--text-secondary)', textDecoration: 'none', fontSize: 14, padding: '4px 10px', borderRadius: 4, transition: 'color 0.15s' }}\n onMouseEnter={(e) => { e.currentTarget.style.color = 'var(--text)'; }}\n onMouseLeave={(e) => { e.currentTarget.style.color = 'var(--text-secondary)'; }}\n >\n {p.title}\n </a>\n ))}\n </span>\n </div>\n <div className=\"nav-right\">\n <DMButton />\n <div id=\"userMenu\">\n {!currentUser ? (\n <div id=\"authButtons\">\n <button className=\"btn-ghost\" onClick={() => onOpenModal('login')}>{t('nav.login')}</button>\n <button className=\"btn-primary\" onClick={() => onOpenModal('register')}>{t('nav.register')}</button>\n </div>\n ) : (\n <div id=\"userDropdown\" style={{ display: 'block' }}>\n <img\n className=\"avatar\"\n src={avatarSrc}\n alt=\"avatar\"\n onClick={(e) => { e.stopPropagation(); setMenuOpen(!menuOpen); }}\n />\n {menuOpen && (\n <div className=\"dropdown-menu show\" onClick={(e) => e.stopPropagation()}>\n <a href=\"#\" onClick={openMessages}>\n <Icon name=\"message\" /> {t('nav.messages')}\n </a>\n <a href=\"#\" onClick={(e) => { e.preventDefault(); goPage('settings'); }}>\n <Icon name=\"settings\" /> {t('nav.settings')}\n </a>\n {currentUser.role === 'admin' && (\n <a href=\"#\" onClick={(e) => { e.preventDefault(); goPage('admin'); }}>\n <Icon name=\"shieldAlert\" /> {t('nav.admin')}\n </a>\n )}\n <hr />\n <a\n href=\"#\"\n onClick={(e) => {\n e.preventDefault();\n toggleTheme();\n setMenuOpen(false);\n }}\n >\n Line truncated
{"offset": {"line": 3571, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/NewPost.js"],"sourcesContent":["'use client';\n\n// 发帖页\nimport { useState, useEffect, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API, uploadImage } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport { useToast } from './Toast';\nimport CaptchaImage from './CaptchaImage';\n\nexport default function NewPost() {\n const { currentUser, navigate, refresh } = useApp();\n const { t } = useTranslation();\n const { toast } = useToast();\n const [title, setTitle] = useState('');\n const [content, setContent] = useState('');\n const [images, setImages] = useState([]); // 上传后的 URL 列表\n const [previews, setPreviews] = useState([]); // 本地预览 dataURL\n const [captcha, setCaptcha] = useState(null);\n const [captchaInput, setCaptchaInput] = useState('');\n const [uploading, setUploading] = useState(false);\n\n useEffect(() => { API.getCaptcha().then((c) => setCaptcha(c)).catch(() => {}); }, []);\n\n const handleFiles = async (files) => {\n setUploading(true);\n try {\n const newPreviews = [];\n for (const file of files) {\n if (!file.type.startsWith('image/')) continue;\n if (file.size > 5 * 1024 * 1024) {\n toast('图片 ' + file.name + ' 超过 5MB,请压缩后上传', 'warning');\n continue;\n }\n const dataUrl = await new Promise((resolve) => {\n const reader = new FileReader();\n reader.onload = (e) => resolve(e.target.result);\n reader.readAsDataURL(file);\n });\n newPreviews.push(dataUrl);\n const url = await uploadImage(file);\n setImages((prev) => [...prev, url]);\n }\n setPreviews((prev) => [...prev, ...newPreviews]);\n } catch (err) {\n toast('上传失败:' + err.message, 'error');\n } finally {\n setUploading(false);\n }\n };\n\n // 拖拽上传\n const [dragOver, setDragOver] = useState(false);\n const fileInputRef = useRef(null);\n const dropZoneStyle = {\n border: '2px dashed ' + (dragOver ? 'var(--primary)' : 'var(--border)'),\n borderRadius: 8, padding: 24, textAlign: 'center', cursor: 'pointer',\n transition: 'all 0.3s', margin: '8px 0 12px',\n background: dragOver ? 'var(--primary-bg)' : 'var(--bg)',\n };\n\n const handleSubmit = async () => {\n if (!currentUser || !currentUser.id) {\n toast('请先登录', 'error');\n navigate('feed');\n return;\n }\n if (!content.trim()) { toast('请填写内容', 'error'); return; }\n if (!captcha || !captchaInput.trim()) { toast('请填写验证码', 'error'); return; }\n try {\n // 答案由服务端 HMAC 校验\n await API.createPost(title.trim() || '无标题', content.trim(), images, { id: captcha.id, answer: captchaInput.trim(), sig: captcha.sig });\n toast('发布成功', 'success');\n navigate('feed');\n refresh();\n } catch (err) {\n toast('发布失败:' + err.message, 'error');\n }\n };\n\n return (\n <div className=\"page-slide active\">\n <div className=\"page-header\" style={{ maxWidth: 600, margin: '0 auto', width: '100%' }}>\n <h2><Icon name=\"plus\" size={20} /> {t('newPost.title')}</h2>\n </div>\n <div style={{ maxWidth: 600, margin: '0 auto', width: '100%' }}>\n <input\n type=\"text\"\n placeholder={t('newPost.title')}\n style={{ width: '100%', padding: '10px 14px', border: '1.5px solid var(--border)', borderRadius: 6, fontSize: 15, fontWeight: 600, marginBottom: 12, fontFamily: 'inherit', background: 'var(--bg)', color: 'var(--text)' }}\n value={title}\n onChange={(e) => setTitle(e.target.value)}\n />\n <textarea\n rows={6}\n placeholder={t('newPost.content')}\n style={{ width: '100%', padding: 12, border: '1.5px solid var(--border)', borderRadius: 6, fontSize: 15, fontFamily: 'inherit', resize: 'vertical', background: 'var(--bg)', color: 'var(--text)' }}\n value={content}\n onChange={(e) => setContent(e.target.value)}\n />\n <div id=\"imagePreview\" style={{ display: 'flex', flexWrap: 'wrap', gap: 8, margin: '8px 0' }}>\n {previews.map((src, i) => (\n <img key={i} src={src} alt=\"\" style={{ width: 80, height: 80, objectFit: 'cover', borderRadius: 4, border: '1px solid var(--border)' }} />\n ))}\n </div>\n <div\n id=\"dropZone\"\n style={dropZoneStyle}\n onClick={() => fileInputRef.current?.click()}\n onDragOver={(e) => { e.preventDefault(); setDragOver(true); }}\n onDragLeave={(e) => { e.preventDefault(); setDragOver(false); }}\n onDrop={(e) => { e.preventDefault(); setDragOver(false); if (e.dataTransfer.files) handleFilesLine truncated
{"offset": {"line": 3962, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/PostDetail.js"],"sourcesContent":["'use client';\n\n// 帖子详情页\nimport { useEffect, useState, useCallback, useMemo, useRef } from 'react';\nimport { API, uploadImage } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport ReplyList from './ReplyList';\nimport Sidebar from './Sidebar';\nimport { Icon } from './Icons';\nimport ImageViewer from './ImageViewer';\nimport { renderMarkdown } from '@/lib/markdown';\nimport { useToast } from './Toast';\n\nfunction avatar(username) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || '匿名用户') +\n '&background=6366f1&color=fff&size=64';\n}\n\nexport default function PostDetail({ postId, initialPost = null }) {\n const { currentUser, navigate, openUser, refreshKey } = useApp();\n const { toast, confirmAction } = useToast();\n const [post, setPost] = useState(initialPost);\n const [error, setError] = useState(null);\n const [viewerSrc, setViewerSrc] = useState(null);\n const [editing, setEditing] = useState(false);\n const [editTitle, setEditTitle] = useState('');\n const [editContent, setEditContent] = useState('');\n const [editImages, setEditImages] = useState([]);\n const [editUploading, setEditUploading] = useState(false);\n const editImageInputRef = useRef(null);\n // 评论抽屉:帖子加载完成后自动展开(动画完整播放)\n const [repliesOpen, setRepliesOpen] = useState(false);\n useEffect(() => {\n if (post && !repliesOpen) {\n // 延迟到帖子内容渲染后,让抽屉动画平滑播放\n const t = setTimeout(() => setRepliesOpen(true), 60);\n return () => clearTimeout(t);\n }\n }, [post]);\n\n const load = useCallback(async () => {\n setError(null);\n try {\n const data = await API.getPost(postId);\n setPost(data);\n } catch (err) {\n setError(err.message);\n }\n }, [postId, refreshKey]);\n\n const initialRefreshKey = useRef(refreshKey);\n useEffect(() => {\n if (initialPost?.id === postId && refreshKey === initialRefreshKey.current) return;\n load();\n }, [initialPost?.id, load, postId, refreshKey]);\n const renderedContent = useMemo(() => renderMarkdown(post?.content), [post?.content]);\n const renderedSignature = useMemo(() => renderMarkdown(post?.signature), [post?.signature]);\n\n if (error) {\n return (\n <div id=\"pagePost\" className=\"page-slide active\" style={{ padding: '40px 0', textAlign: 'center', color: '#ef4444' }}>\n 加载失败:{error}\n </div>\n );\n }\n if (!post) {\n return <div id=\"pagePost\" className=\"page-slide active\" style={{ textAlign: 'center', color: '#94a3b8' }}><span className=\"spinner-sm\" />加载中...</div>;\n }\n\n const time = post.created_at ? new Date(post.created_at).toLocaleString('zh-CN') : '';\n // 作者本人 或 管理员 可删除/编辑\n const canDelete = currentUser && (currentUser.id === post.user_id || currentUser.role === 'admin');\n const canEdit = currentUser && currentUser.id === post.user_id;\n\n const handleDelete = async () => {\n if (!await confirmAction('确定要删除这条帖子吗?')) return;\n try {\n await API.deletePost(postId);\n toast('删除成功', 'success');\n navigate('feed');\n } catch (err) {\n toast('删除失败:' + err.message, 'error');\n }\n };\n\n const handleTogglePin = async () => {\n if (!await confirmAction('确定要' + (post.is_pinned ? '取消' : '') + '置顶吗?', { danger: false })) return;\n try {\n await API.togglePinPost(postId);\n load();\n } catch (err) {\n toast('操作失败:' + err.message, 'error');\n }\n };\n\n const handleEdit = () => {\n setEditTitle(post.title || '');\n setEditContent(post.content || '');\n setEditImages(post.images || []);\n setEditing(true);\n };\n\n const handleSaveEdit = async () => {\n if (!editContent.trim()) { toast('请填写内容', 'warning'); return; }\n try {\n await API.updatePost(postId, editTitle.trim() || '无标题', editContent.trim(), editImages);\n setEditing(false);\n load();\n } catch (err) {\n toast('编辑失败:' + err.message, 'error');\n }\n };\n\n // 编辑时上传新图片\n const handleEditUpload = async (file) => {\n if (!file) return;\n if (!file.type.startsWith('image/')) { toast('请选择图片文件', 'warning'); return; }\n if (file.size > 5 * 1024 * 1024) { toast('图片不能超过 5MB', 'warning'); return; }\n setEditUploading(true);\n try {\n const url = await uploadImage(file);\n setEditImages((prev) => [...prev, url]);\n } catch (err) {\n toast('上传失败:' + err.message, 'error');\n } finally {\n setEditUploading(false);\n }\n };\n\n // 编辑时删除图片\n const handleEditRemoveImage = (url) => {\n sLine truncated
{"offset": {"line": 4788, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/RecoveryCodes.js"],"sourcesContent":["'use client';\n\n// 恢复码管理:查看 + 重新生成\nimport { useState, useEffect } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { Icon } from './Icons';\nimport { useToast } from './Toast';\n\nexport default function RecoveryCodes() {\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [count, setCount] = useState(0);\n const [modal, setModal] = useState(null); // null | {codes, isNew}\n const [modalClosing, setModalClosing] = useState(false);\n\n const closeModal = () => {\n setModalClosing(true);\n setTimeout(() => {\n setModal(null);\n setModalClosing(false);\n }, 340);\n };\n\n const loadCount = () => {\n API.getRecoveryCodeCount().then((d) => setCount(d.count || 0)).catch(() => {});\n };\n useEffect(loadCount, []);\n\n const regenerate = async () => {\n if (!await confirmAction(t('recovery.confirmRegenerate'))) return;\n try {\n const d = await API.generateRecoveryCodes();\n setModal({ codes: d.codes || [], isNew: true });\n loadCount();\n } catch (err) {\n toast(t('recovery.genFailed', { msg: err.message }), 'error');\n }\n };\n\n const view = async () => {\n try {\n // 生成后直接展示;若已有恢复码则重新生成展示(与原版一致:查看即生成新码)\n const d = await API.generateRecoveryCodes();\n setModal({ codes: d.codes || [], isNew: false });\n loadCount();\n } catch (err) {\n toast(t('recovery.fetchFailed', { msg: err.message }), 'error');\n }\n };\n\n return (\n <div style={{ marginTop: 16, background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 8, padding: 20 }}>\n <h3 style={{ fontSize: 16, marginBottom: 8 }}><Icon name=\"key\" size={16} /> {t('recovery.title')}</h3>\n <p style={{ fontSize: 13, color: 'var(--text-secondary)', marginBottom: 12 }}>{t('recovery.desc')}</p>\n <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}>\n <button className=\"btn-secondary\" style={{ padding: '8px 16px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--surface)', cursor: 'pointer', color: 'var(--text)' }} onClick={view}><Icon name=\"list\" size={14} /> {t('recovery.view')}</button>\n <button className=\"btn-secondary\" style={{ padding: '8px 16px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--surface)', cursor: 'pointer', color: 'var(--text)' }} onClick={regenerate}><Icon name=\"refresh\" size={14} /> {t('recovery.regenerate')}</button>\n </div>\n <div id=\"recoveryCodesStatus\" style={{ fontSize: 13, color: 'var(--text-light)', marginTop: 8 }}>{t('recovery.remaining', { count })}</div>\n\n {modal && (\n <div className={'modal active' + (modalClosing ? ' closing' : '')} style={{ display: 'flex' }} onClick={(e) => { if (e.target === e.currentTarget) closeModal(); }}>\n <div className=\"modal-content\" style={{ maxWidth: 480, position: 'relative' }}>\n <span className=\"close\" style={{ position: 'absolute', top: 12, right: 16, cursor: 'pointer', color: 'var(--text-light)' }} onClick={closeModal}><Icon name=\"close\" size={20} /></span>\n <h2 style={{ marginBottom: 12 }}>{modal.isNew ? t('recovery.newCodes') : t('recovery.title')}</h2>\n <p style={{ fontSize: 13, color: '#ef4444', marginBottom: 12, display: 'flex', alignItems: 'flex-start', gap: 6 }}><Icon name=\"warning\" size={14} /> {t('recovery.saveWarning')}</p>\n <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8 }}>\n {modal.codes.map((c, i) => (\n <code key={i} style={{ background: 'var(--bg)', padding: '8px 12px', borderRadius: 6, fontSize: 13, textAlign: 'center', userSelect: 'all' }}>{c}</code>\n ))}\n </div>\n <button className=\"btn-primary\" style={{ width: '100%', padding: 10, marginTop: 16 }} onClick={closeModal}>{t('recovery.saved')}</button>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"names":["RecoveryCodes","t","toast","confirmAction","count","setCount","modal","setModal","modalClosing","setModalClosing","closeModal","setTimeout","loadCount","getRecoveryCodeCount","then","d","catch","regenerate","generateRecoveryCodes","codes","isNew","err","msg","message","view","style","marginTop","background","border","borderRadius","padding","fontSize","marginBottom","name","size","color","display","gap","flexWrap","className","cursor","onClick","id","e","target","currentTarget","maxWidth","position","top","right","alignItems","gridTemplateColumns","map","c","i","textAlign","userSelect","width"],"mappings":";;;;;AAEA,kBAAkB;AAClB;AACA;AAAA;AACA;AACA;AACA;;;AAPA;;;;;;AASe,SLine truncated
{"offset": {"line": 5131, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/ReplyList.js"],"sourcesContent":["'use client';\n\n// 回复列表 + 发表回复表单\nimport { useEffect, useState, useCallback, useRef } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport { renderMarkdown } from '@/lib/markdown';\nimport CaptchaImage from './CaptchaImage';\nimport { useToast } from './Toast';\n\nfunction avatar(username) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || '匿名用户') +\n '&background=6366f1&color=fff&size=64';\n}\n\nexport default function ReplyList({ postId, onRefresh }) {\n const { currentUser, openUser } = useApp();\n const { toast, confirmAction } = useToast();\n const [replies, setReplies] = useState([]);\n const [content, setContent] = useState('');\n const [captcha, setCaptcha] = useState(null);\n const [captchaInput, setCaptchaInput] = useState('');\n // 正在回复的用户(hover 回复按钮 → 回填到回复框)\n const [replyTo, setReplyTo] = useState(null);\n const replyAreaRef = useRef(null);\n const replyInputRef = useRef(null);\n\n // 点击\"回复\":记录目标回复 ID,滚动到回复框并聚焦\n const startReply = (replyId) => {\n setReplyTo(replyId);\n setTimeout(() => {\n replyAreaRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' });\n replyInputRef.current?.focus();\n }, 120);\n };\n\n const load = useCallback(async () => {\n try {\n const data = await API.getReplies(postId);\n setReplies(data || []);\n } catch { setReplies([]); }\n }, [postId]);\n\n useEffect(() => { load(); }, [load]);\n useEffect(() => { API.getCaptcha().then((c) => setCaptcha(c)).catch(() => {}); }, [postId]);\n\n const handleSubmit = async () => {\n if (!currentUser) { toast('请先登录', 'warning'); return; }\n if (!content.trim()) { toast('请填写回复内容', 'warning'); return; }\n if (!captcha || !captchaInput.trim()) { toast('请填写验证码', 'warning'); return; }\n try {\n // 答案由服务端 HMAC 校验\n await API.createReply(postId, content.trim(), { id: captcha.id, answer: captchaInput.trim(), sig: captcha.sig }, replyTo);\n setContent('');\n setCaptchaInput('');\n setReplyTo(null);\n API.getCaptcha().then((c) => setCaptcha(c)).catch(() => {});\n load();\n onRefresh();\n } catch (err) {\n toast('回复失败:' + err.message, 'error');\n API.getCaptcha().then((c) => setCaptcha(c)).catch(() => {});\n setCaptchaInput('');\n }\n };\n\n const handleDelete = async (replyId) => {\n if (!await confirmAction('确定要删除这条回复吗?')) return;\n try {\n await API.deleteReply(replyId);\n load();\n } catch (err) {\n toast('删除失败:' + err.message, 'error');\n }\n };\n\n // 计算每条回复的嵌套深度(按 reply_to_id 精确追踪回复链)\n const replyDepths = (() => {\n const map = {};\n const getDepth = (r) => {\n if (map[r.id] !== undefined) return map[r.id];\n if (!r.reply_to_id) { map[r.id] = 0; return 0; }\n const parent = replies.find((x) => x.id === r.reply_to_id);\n const d = parent ? getDepth(parent) + 1 : 0;\n map[r.id] = d;\n return d;\n };\n replies.forEach((r) => getDepth(r));\n return map;\n })();\n\n // 正在回复的目标回复对象(用于显示 @用户名)\n const replyToObj = replyTo ? replies.find((x) => x.id === replyTo) : null;\n\n return (\n <>\n <div className=\"post-reply-count\" style={{ marginTop: 20, fontSize: 14, color: '#64748b' }}>\n <Icon name=\"message\" size={14} /> {replies.length} 条回复\n </div>\n <div style={{ marginTop: 12 }}>\n {replies.length === 0 ? (\n <div style={{ color: '#94a3b8', padding: '20px 0', textAlign: 'center' }}><Icon name=\"message\" size={16} /> 还没有回复,快来发表第一条回复吧</div>\n ) : (\n replies.map((r) => {\n const rTime = r.created_at ? new Date(r.created_at).toLocaleString('zh-CN') : '';\n const nestDepth = Math.min(replyDepths[r.id] || 0, 5);\n return (\n <div key={r.id} className=\"reply-item\" data-username={r.username} data-reply-id={r.id} style={{ marginLeft: nestDepth ? nestDepth * 18 : 0 }}>\n <div className=\"reply-header\">\n <img src={r.avatar_url || avatar(r.username)} className=\"reply-avatar\" alt=\"\" />\n <span\n className=\"reply-username\"\n style={{ cursor: 'pointer', color: 'var(--primary)' }}\n onClick={() => openUser(r.username)}\n >\n {r.username || '匿名用户'}\n </span>\n <spaLine truncated
{"offset": {"line": 5623, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/SettingsPage.js"],"sourcesContent":["'use client';\n\n// 个人设置页:侧边栏布局 + 上下滑动平滑切换\n// - 三个面板纵向排列在滚动容器里,scroll-snap 每次滑动对齐一个面板\n// - 点侧边栏导航 → 平滑滚动到对应面板;滚动结束 → 自动更新导航高亮\nimport { useState, useRef, useCallback } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Icon } from './Icons';\nimport SettingsProfile from './SettingsProfile';\nimport AccountSecurity from './AccountSecurity';\nimport RecoveryCodes from './RecoveryCodes';\n\nconst NAV = [\n { key: 'profile', labelKey: 'settings.profile', icon: 'user' },\n { key: 'security', labelKey: 'settings.security', icon: 'shieldAlert' },\n { key: 'recovery', labelKey: 'settings.recovery', icon: 'lock' },\n];\n\nexport default function SettingsPage() {\n const { t } = useTranslation();\n const [tab, setTab] = useState('profile');\n const scrollRef = useRef(null);\n const scrollTicking = useRef(false);\n\n // 滚动结束(或对齐后)更新高亮\n const handleScroll = useCallback(() => {\n const el = scrollRef.current;\n if (!el || scrollTicking.current) return;\n scrollTicking.current = true;\n requestAnimationFrame(() => {\n scrollTicking.current = false;\n const idx = Math.round(el.scrollTop / el.clientHeight);\n const key = NAV[Math.min(Math.max(idx, 0), NAV.length - 1)]?.key;\n if (key) setTab(key);\n });\n }, []);\n\n // 点击导航 → 平滑滚动到对应面板\n const goTo = (key, e) => {\n if (e) e.preventDefault();\n setTab(key);\n const el = scrollRef.current;\n if (!el) return;\n const idx = NAV.findIndex((n) => n.key === key);\n el.scrollTo({ top: idx * el.clientHeight, behavior: 'smooth' });\n };\n\n return (\n <div className=\"page-slide active\" style={{ overflow: 'hidden', height: '100vh', display: 'flex', flexDirection: 'column' }}>\n <div className=\"page-header\" style={{ width: '100%', flexShrink: 0 }}>\n <h2><Icon name=\"settings\" size={20} /> {t('settings.title')}</h2>\n </div>\n <div className=\"settings-layout\" style={{ width: '100%', display: 'flex', gap: 28, alignItems: 'flex-start', flex: 1, minHeight: 0 }}>\n <aside className=\"settings-sidebar\" style={{ width: 200, flexShrink: 0 }}>\n <nav className=\"settings-nav\">\n {NAV.map((n) => (\n <a\n key={n.key}\n href=\"#\"\n className={'settings-nav-item' + (tab === n.key ? ' active' : '')}\n data-settings-tab={n.key}\n onClick={(e) => goTo(n.key, e)}\n >\n <span className=\"nav-icon\"><Icon name={n.icon} size={18} /></span>\n {t(n.labelKey)}\n </a>\n ))}\n </nav>\n </aside>\n <main className=\"settings-content\" id=\"settingsContent\" style={{ overflow: 'hidden', padding: 0, alignSelf: 'stretch', display: 'flex', flexDirection: 'column', minHeight: 0 }}>\n <div\n ref={scrollRef}\n onScroll={handleScroll}\n style={{\n flex: 1,\n minHeight: 0,\n overflowY: 'auto',\n scrollSnapType: 'y mandatory',\n scrollBehavior: 'smooth',\n scrollbarWidth: 'none',\n msOverflowStyle: 'none',\n }}\n >\n <div style={{ scrollSnapAlign: 'start', minHeight: '100%', padding: '20px 24px' }} data-panel=\"profile\">\n <SettingsProfile />\n </div>\n <div style={{ scrollSnapAlign: 'start', minHeight: '100%', padding: '20px 24px', borderTop: '1px solid var(--glass-border)' }} data-panel=\"security\">\n <AccountSecurity />\n </div>\n <div style={{ scrollSnapAlign: 'start', minHeight: '100%', padding: '20px 24px', borderTop: '1px solid var(--glass-border)' }} data-panel=\"recovery\">\n <RecoveryCodes />\n </div>\n </div>\n </main>\n </div>\n </div>\n );\n}\n"],"names":["NAV","key","labelKey","icon","SettingsPage","t","tab","setTab","scrollRef","scrollTicking","handleScroll","el","current","requestAnimationFrame","idx","Math","round","scrollTop","clientHeight","min","max","length","goTo","e","preventDefault","findIndex","n","scrollTo","top","behavior","className","style","overflow","height","display","flexDirection","width","flexShrink","name","size","gap","alignItems","flex","minHeight","map","href","onClick","id","padding","alignSelf","ref","onScroll","overflowY","scrollSnapType","scrollBehavior","scrollbarWidth","msOverflowStyle","scrollSnapAlign","borderTop"],"mappings":";;;;;AAEA,yBAAyB;AACzB,0CAA0C;AAC1C,uCAAuC;AACvC;AACA;AAAA;AACA;AACA;AACA;AACA;;;Line truncated
{"offset": {"line": 5909, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/SettingsProfile.js"],"sourcesContent":["'use client';\n\n// 设置 - 个人资料(头像 + 用户名/简介/签名 + 语言)\nimport { useState, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API, uploadImage } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { setAppLanguage } from '@/lib/i18n';\nimport { Icon } from './Icons';\nimport { useToast } from './Toast';\n\nexport default function SettingsProfile() {\n const { currentUser, setCurrentUser } = useApp();\n const { t, i18n } = useTranslation();\n const { toast } = useToast();\n const [username, setUsername] = useState(currentUser?.username || '');\n const [bio, setBio] = useState(currentUser?.bio || '');\n const [signature, setSignature] = useState(currentUser?.signature || '');\n const [avatarUrl, setAvatarUrl] = useState(currentUser?.avatar_url || '');\n const [avatarStatus, setAvatarStatus] = useState(null);\n const avatarInputRef = useRef(null);\n\n const handleAvatar = async (file) => {\n if (!file) return;\n if (!file.type.startsWith('image/')) { setAvatarStatus({ ok: false, msg: t('settings.avatarFileRequired') }); return; }\n if (file.size > 5 * 1024 * 1024) { setAvatarStatus({ ok: false, msg: t('settings.avatarTooLarge') }); return; }\n try {\n const url = await uploadImage(file);\n await API.updateAvatar(currentUser.id, url);\n setAvatarUrl(url);\n setCurrentUser({ ...currentUser, avatar_url: url });\n setAvatarStatus({ ok: true, msg: t('settings.avatarUpdated') });\n } catch (err) {\n setAvatarStatus({ ok: false, msg: err.message });\n }\n };\n\n const handleSave = async () => {\n if (!currentUser) { toast(t('settings.pleaseLogin'), 'warning'); return; }\n if (!username.trim()) { toast(t('settings.usernameRequired'), 'warning'); return; }\n try {\n const data = await API.updateProfile(currentUser.id, username.trim(), bio.trim(), signature.trim());\n if (data.error) throw new Error(data.error);\n setCurrentUser({ ...currentUser, username: username.trim(), bio: bio.trim(), signature: signature.trim() });\n toast(t('settings.saved'), 'success');\n } catch (err) {\n toast(t('settings.saveFailed', { msg: err.message }), 'error');\n }\n };\n\n const avatarSrc = avatarUrl ||\n 'https://ui-avatars.com/api/?name=' + encodeURIComponent(currentUser?.username || 'U') + '&background=6366f1&color=fff&size=128';\n\n return (\n <div>\n {/* 头像 */}\n <div style={{ textAlign: 'center', marginBottom: 24 }}>\n <div style={{ position: 'relative', display: 'inline-block' }}>\n <img src={avatarSrc} style={{ width: 100, height: 100, borderRadius: '50%', objectFit: 'cover', border: '3px solid var(--primary)' }} alt=\"\" />\n <button\n style={{ position: 'absolute', bottom: 0, right: 0, background: 'var(--primary)', color: '#fff', border: 'none', borderRadius: '50%', width: 32, height: 32, cursor: 'pointer', fontSize: 16, display: 'flex', alignItems: 'center', justifyContent: 'center', boxShadow: '0 2px 8px rgba(99,102,241,0.4)' }}\n onClick={() => avatarInputRef.current?.click()}\n aria-label={t('settings.changeAvatar')}\n title={t('settings.changeAvatar')}\n >\n <Icon name=\"camera\" size={16} />\n </button>\n </div>\n <input type=\"file\" ref={avatarInputRef} accept=\"image/*\" style={{ display: 'none' }} onChange={(e) => { if (e.target.files?.[0]) handleAvatar(e.target.files[0]); }} />\n <h2 style={{ margin: '12px 0 4px' }}>{currentUser?.username}</h2>\n <p style={{ color: 'var(--text-secondary)', fontSize: 14 }}>{bio || t('user.bioEmpty')}</p>\n {avatarStatus && (\n <div style={{ fontSize: 13, marginTop: 8, color: avatarStatus.ok ? '#22c55e' : '#ef4444', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 5 }}><Icon name={avatarStatus.ok ? 'success' : 'error'} size={14} /> {avatarStatus.msg}</div>\n )}\n </div>\n\n {/* 基本资料 */}\n <div style={{ background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 8, padding: 20 }}>\n <div style={{ marginBottom: 16 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('settings.username')}</label>\n <input type=\"text\" value={username} style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }} onChange={(e) => setUsername(e.target.value)} />\n </div>\n <div style={{ marginBottom: 16 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('settings.bio')}</label>\n <textarea rows={3} valuLine truncated
{"offset": {"line": 6402, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/Sidebar.js"],"sourcesContent":["'use client';\n\n// 侧边栏:社区统计 + 友情链接\nimport { useEffect, useState } from 'react';\nimport { API } from '@/lib/api';\nimport { Icon } from './Icons';\n\nconst emptyStats = { posts: 0, users: 0, topics: 0, online: 0 };\nlet cachedStats = null;\nlet cachedLinks = null;\n\nexport default function Sidebar({ id = 'sidebar' }) {\n const [stats, setStats] = useState(() => cachedStats || emptyStats);\n const [links, setLinks] = useState(() => cachedLinks || []);\n\n useEffect(() => {\n if (!cachedStats) {\n API.getStats().then((nextStats) => {\n cachedStats = nextStats;\n setStats(nextStats);\n }).catch(() => {});\n }\n if (!cachedLinks) {\n API.getLinks().then((nextLinks) => {\n cachedLinks = nextLinks;\n setLinks(nextLinks);\n }).catch(() => {});\n }\n }, []);\n\n return (\n <aside id={id} className=\"sidebar\">\n <div className=\"stats-box\">\n <h4>\n <Icon name=\"book\" size={14} /> 社区统计\n </h4>\n <div className=\"stat-item\"><span>主题</span><span>{stats.topics || 0}</span></div>\n <div className=\"stat-item\"><span>帖子</span><span>{stats.posts || 0}</span></div>\n <div className=\"stat-item\"><span>用户</span><span>{stats.users || 0}</span></div>\n <div className=\"stat-item\"><span>在线</span><span>{stats.online || 0}</span></div>\n </div>\n <div className=\"links-box\">\n <h4>\n <Icon name=\"link\" size={14} /> 友情链接\n </h4>\n <ul id={id === 'sidebar' ? 'friendlyLinks' : undefined} className=\"friendly-links\">\n {links.length === 0 ? (\n <li style={{ color: '#94a3b8', fontSize: 13 }}>暂无链接</li>\n ) : (\n links.map((l) => (\n <li key={l.id}><a href={l.url} target=\"_blank\" rel=\"noreferrer\">{l.title}</a></li>\n ))\n )}\n </ul>\n </div>\n </aside>\n );\n}\n"],"names":["emptyStats","posts","users","topics","online","cachedStats","cachedLinks","Sidebar","id","stats","setStats","links","setLinks","getStats","then","nextStats","catch","getLinks","nextLinks","className","name","size","undefined","length","style","color","fontSize","map","l","href","url","target","rel","title"],"mappings":";;;;;AAEA,kBAAkB;AAClB;AACA;AACA;;;AALA;;;;AAOA,MAAMA,aAAa;IAAEC,OAAO;IAAGC,OAAO;IAAGC,QAAQ;IAAGC,QAAQ;AAAE;AAC9D,IAAIC,cAAc;AAClB,IAAIC,cAAc;AAEH,SAASC,QAAQ,EAAEC,KAAK,SAAS,EAAE;;IAChD,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ;4BAAC,IAAML,eAAeL;;IACxD,MAAM,CAACW,OAAOC,SAAS,GAAG,IAAA,yKAAQ;4BAAC,IAAMN,eAAe,EAAE;;IAE1D,IAAA,0KAAS;6BAAC;YACR,IAAI,CAACD,aAAa;gBAChB,oHAAG,CAACQ,QAAQ,GAAGC,IAAI;yCAAC,CAACC;wBACnBV,cAAcU;wBACdL,SAASK;oBACX;wCAAGC,KAAK;yCAAC,KAAO;;YAClB;YACA,IAAI,CAACV,aAAa;gBAChB,oHAAG,CAACW,QAAQ,GAAGH,IAAI;yCAAC,CAACI;wBACnBZ,cAAcY;wBACdN,SAASM;oBACX;wCAAGF,KAAK;yCAAC,KAAO;;YAClB;QACF;4BAAG,EAAE;IAEL,qBACE,6LAAC;QAAMR,IAAIA;QAAIW,WAAU;;0BACvB,6LAAC;gBAAIA,WAAU;;kCACb,6LAAC;;0CACC,6LAAC,8HAAI;gCAACC,MAAK;gCAAOC,MAAM;;;;;;4BAAM;;;;;;;kCAEhC,6LAAC;wBAAIF,WAAU;;0CAAY,6LAAC;0CAAK;;;;;;0CAAS,6LAAC;0CAAMV,MAAMN,MAAM,IAAI;;;;;;;;;;;;kCACjE,6LAAC;wBAAIgB,WAAU;;0CAAY,6LAAC;0CAAK;;;;;;0CAAS,6LAAC;0CAAMV,MAAMR,KAAK,IAAI;;;;;;;;;;;;kCAChE,6LAAC;wBAAIkB,WAAU;;0CAAY,6LAAC;0CAAK;;;;;;0CAAS,6LAAC;0CAAMV,MAAMP,KAAK,IAAI;;;;;;;;;;;;kCAChE,6LAAC;wBAAIiB,WAAU;;0CAAY,6LAAC;0CAAK;;;;;;0CAAS,6LAAC;0CAAMV,MAAML,MAAM,IAAI;;;;;;;;;;;;;;;;;;0BAEnE,6LAAC;gBAAIe,WAAU;;kCACb,6LAAC;;0CACC,6LAAC,8HAAI;gCAACC,MAAK;gCAAOC,MAAM;;;;;;4BAAM;;;;;;;kCAEhC,6LAAC;wBAAGb,IAAIA,OAAO,YAAY,kBAAkBc;wBAAWH,WAAU;kCAC/DR,MAAMY,MAAM,KAAK,kBAChB,6LAAC;4BAAGC,OAAO;gCAAEC,OAAO;gCAAWC,UAAU;4BAAG;sCAAG;;;;;mCAE/Cf,MAAMgB,GAAG,CAAC,CAACC,kBACT,6LAAC;0CAAc,cAAA,6LAAC;oCAAEC,MAAMD,EAAEE,GAAG;oCAAEC,QAAO;oCAASC,KAAI;8CAAcJ,EAAEK,KAAK;;;;;;+BAA/DL,EAAEpB,EAAE;;;;;;;;;;;;;;;;;;;;;;AAO3B;GA9CwBD;KAAAA"}},
{"offset": {"line": 6657, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/UserProfile.js"],"sourcesContent":["'use client';\n\n// 用户主页:资料卡 + 该用户的帖子列表\nimport { useEffect, useState, useCallback } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from './AppProvider';\nimport { Icon } from './Icons';\nimport { useOpenPrivateChat } from './chat/ChatManager';\n\nfunction avatar(username, size = 128) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || 'U') +\n '&background=6366f1&color=fff&size=' + size;\n}\n\nexport default function UserProfile({ username }) {\n const { currentUser, openPost } = useApp();\n const openPrivateChat = useOpenPrivateChat();\n const [user, setUser] = useState(null);\n const [posts, setPosts] = useState([]);\n const [error, setError] = useState(null);\n\n const load = useCallback(async () => {\n setError(null);\n try {\n const u = await API.getUserProfile(username);\n if (u.error || !u.id) {\n setError(u.error || '用户不存在');\n return;\n }\n setUser(u);\n const result = await API.getPosts('latest', u.id);\n setPosts(result.data || []);\n } catch (err) {\n setError(err.message || '加载失败');\n }\n }, [username]);\n\n useEffect(() => { load(); }, [load]);\n\n if (error) {\n return (\n <div className=\"page-slide active\">\n <div style={{ textAlign: 'center', color: '#ef4444', padding: '40px 0' }}>加载失败:{error}</div>\n </div>\n );\n }\n if (!user) {\n return <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}><span className=\"spinner-sm\" />加载中...</div>;\n }\n\n return (\n <div className=\"page-slide active\">\n <div className=\"page-header\" style={{ maxWidth: 700, margin: '0 auto', width: '100%' }}>\n <h2><Icon name=\"users\" size={20} /> 用户主页</h2>\n </div>\n <div style={{ maxWidth: 700, margin: '0 auto', width: '100%' }}>\n <div style={{ background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 8, padding: 32, textAlign: 'center' }}>\n <img src={user.avatar_url || avatar(user.username)} style={{ width: 96, height: 96, borderRadius: '50%', objectFit: 'cover', border: '3px solid var(--primary)' }} alt=\"\" />\n <h2 style={{ margin: '16px 0 4px', fontSize: 24 }}>{user.username}</h2>\n <p style={{ color: 'var(--text-secondary)', fontSize: 14 }}>{user.bio || '这个人很懒,什么都没写'}</p>\n {currentUser && currentUser.id !== user.id && (\n <button\n className=\"btn-primary\"\n style={{ marginTop: 12, padding: '8px 20px' }}\n onClick={() => openPrivateChat(user.id, user.username)}\n >\n <Icon name=\"message\" size={14} /> 发私信\n </button>\n )}\n <div style={{ display: 'flex', justifyContent: 'center', gap: 32, marginTop: 16, fontSize: 14, color: 'var(--text-secondary)', flexWrap: 'wrap' }}>\n <span><Icon name=\"calendar\" size={14} /> 加入于 {user.created_at ? new Date(user.created_at).toLocaleDateString('zh-CN') : '未知'}</span>\n <span><Icon name=\"file\" size={14} /> 发了 {posts.length} 个帖子</span>\n {user.role === 'admin' && <span style={{ color: 'var(--primary)', fontWeight: 600 }}><Icon name=\"shield\" size={14} /> 管理员</span>}\n </div>\n </div>\n <h3 style={{ margin: '24px 0 16px', fontSize: 18 }}><Icon name=\"file\" size={18} /> 发布的帖子</h3>\n {posts.length === 0 ? (\n <div style={{ color: '#94a3b8', padding: '20px 0', textAlign: 'center' }}>还没有发帖</div>\n ) : (\n posts.map((p) => {\n const time = p.created_at ? new Date(p.created_at).toLocaleString('zh-CN') : '';\n return (\n <div key={p.id} className=\"post-card\" style={{ cursor: 'pointer' }} onClick={(e) => openPost(p.id, e.currentTarget, p)}>\n <div className=\"post-title\" style={{ fontSize: 16, fontWeight: 600 }}>{p.title || '无标题'}</div>\n <div className=\"post-content\" style={{ fontSize: 14, color: 'var(--text-secondary)' }}>\n {(p.content || '').substring(0, 100)}{(p.content || '').length > 100 ? '...' : ''}\n </div>\n <div style={{ fontSize: 12, color: 'var(--text-light)', marginTop: 8 }}>{time}</div>\n </div>\n );\n })\n )}\n </div>\n </div>\n );\n}\n"],"names":["avatar","username","size","encodeURIComponent","UserProfile","currentUser","openPost","openPrivateChat","user","setUser","posts","setPosts","error","setError","load","u","getUserProfile","id","result","getPosts","data","err","message","className","style","textAlign","color","padding","maxWiLine truncated
{"offset": {"line": 7064, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminCustomCss.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 自定义 CSS(上传 style.css 覆盖默认样式)\nimport { useState, useRef } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nexport default function AdminCustomCss() {\n const { t } = useTranslation();\n const { confirmAction } = useToast();\n const [status, setStatus] = useState(null);\n const [dragOver, setDragOver] = useState(false);\n const [pendingFile, setPendingFile] = useState(null); // 待确认的 CSS 文件\n const fileInputRef = useRef(null);\n\n const handleFile = async (file) => {\n if (!file) return;\n if (file.name !== 'style.css') {\n setStatus({ ok: false, msg: t('admin.css.filenameInvalid') });\n return;\n }\n if (file.size > 1024 * 1024) {\n setStatus({ ok: false, msg: t('admin.css.sizeInvalid') });\n return;\n }\n // 上传前警告确认(与原版一致)\n setPendingFile(file);\n };\n\n const doUpload = async () => {\n try {\n await API.uploadCustomCss(pendingFile);\n setStatus({ ok: true, msg: t('admin.css.active') });\n const link = document.getElementById('custom-css-link');\n if (link) link.href = '/api/custom-css?t=' + Date.now();\n } catch (err) {\n setStatus({ ok: false, msg: err.message });\n } finally {\n setPendingFile(null);\n }\n };\n\n const handleDelete = async () => {\n if (!await confirmAction(t('admin.css.confirmDelete'))) return;\n try {\n await API.deleteCustomCss();\n setStatus({ ok: true, msg: t('admin.css.deleted') });\n const link = document.getElementById('custom-css-link');\n if (link) link.remove();\n } catch (err) {\n setStatus({ ok: false, msg: err.message });\n }\n };\n\n return (\n <>\n <h3 style={{ marginBottom: 16 }}><Icon name=\"code\" size={16} /> {t('admin.css.title')}</h3>\n <p style={{ fontSize: 13, color: 'var(--text-secondary)', marginBottom: 12 }}>\n {t('admin.css.description')}\n </p>\n <div\n style={{\n border: '2px dashed ' + (dragOver ? 'var(--primary)' : 'var(--border)'),\n borderRadius: 8, padding: 32, textAlign: 'center', cursor: 'pointer',\n transition: 'all 0.3s', background: dragOver ? 'var(--primary-bg)' : 'var(--bg)',\n }}\n onClick={() => fileInputRef.current?.click()}\n onDragOver={(e) => { e.preventDefault(); setDragOver(true); }}\n onDragLeave={() => setDragOver(false)}\n onDrop={(e) => { e.preventDefault(); setDragOver(false); if (e.dataTransfer.files?.[0]) handleFile(e.dataTransfer.files[0]); }}\n >\n <span style={{ fontSize: 13, color: 'var(--text-secondary)' }}>\n <Icon name=\"upload\" size={14} /> {dragOver ? t('admin.css.releaseUpload') : t('admin.css.uploadHint')}\n </span>\n </div>\n <input\n type=\"file\"\n ref={fileInputRef}\n accept=\".css\"\n style={{ display: 'none' }}\n onChange={(e) => { if (e.target.files?.[0]) handleFile(e.target.files[0]); }}\n />\n {status && (\n <div style={{ fontSize: 13, marginTop: 8, color: status.ok ? '#22c55e' : '#ef4444', display: 'flex', alignItems: 'center', gap: 5 }}><Icon name={status.ok ? 'success' : 'error'} size={14} /> {status.msg}</div>\n )}\n <div style={{ display: 'flex', gap: 8, marginTop: 16 }}>\n <button className=\"btn-primary\" style={{ padding: '8px 20px' }} onClick={() => fileInputRef.current?.click()}><Icon name=\"save\" size={14} /> {t('admin.css.save')}</button>\n <button className=\"btn-secondary\" style={{ padding: '8px 20px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--surface)', cursor: 'pointer', color: 'var(--text)' }} onClick={handleDelete}><Icon name=\"trash\" size={14} /> {t('admin.css.delete')}</button>\n </div>\n\n {/* 上传前警告确认 */}\n {pendingFile && (\n <div className=\"modal active\" style={{ display: 'flex' }} onClick={() => setPendingFile(null)}>\n <div className=\"modal-content\" style={{ maxWidth: 420 }} onClick={(e) => e.stopPropagation()}>\n <h2 style={{ marginBottom: 12 }}><Icon name=\"warning\" size={20} /> {t('admin.css.warningTitle')}</h2>\n <p style={{ fontSize: 14, color: 'var(--text-secondary)', marginBottom: 16 }}>\n {t('admin.css.warningBody')}\n </p>\n <p style={{ fontSize: 13, color: 'var(--text-light)', marginBottom: 20 }}>\n {t('admin.css.warningHelp')}\n </p>\n <div style={{ display: 'flex', gap: 8 }}>\n <button className=\"btn-primary\" style={{ padding: '8px 24px' }} onClick={doUpload}><ILine truncated
{"offset": {"line": 7478, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminCustomPages.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 自定义页面管理(列表)\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport CustomPageEditor from './CustomPageEditor';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nexport default function AdminCustomPages() {\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [pages, setPages] = useState(null);\n const [error, setError] = useState(null);\n const [editing, setEditing] = useState(null); // null | 'new' | page对象\n\n const load = () => {\n API.adminGetCustomPages()\n .then((data) => { setPages(data || []); setError(null); })\n .catch((e) => { setError(e.message); setPages([]); });\n };\n\n useEffect(load, []);\n\n const handleDelete = async (p) => {\n if (!await confirmAction(t('admin.page.confirmDelete'))) return;\n try {\n await API.adminDeleteCustomPage(p.id);\n load();\n } catch (err) {\n toast(t('admin.common.deleteFailed', { msg: err.message }), 'error');\n }\n };\n\n if (error) return <div style={{ textAlign: 'center', color: '#ef4444', padding: 20 }}>{t('admin.common.loadFailed', { msg: error })}</div>;\n\n return (\n <>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 }}>\n <h3 style={{ margin: 0 }}><Icon name=\"file\" size={16} /> {t('admin.page.title')}</h3>\n <button className=\"btn-primary\" style={{ padding: '8px 16px' }} onClick={() => setEditing('new')}><Icon name=\"plus\" size={14} /> {t('admin.page.add')}</button>\n </div>\n <div id=\"customPageList\">\n {pages === null ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: 20 }}><span className=\"spinner-sm\" />{t('admin.common.loading')}</div>\n ) : pages.length === 0 ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: 20 }}>{t('admin.page.empty')}</div>\n ) : (\n <div style={{ overflowX: 'auto' }}>\n <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: 14 }}>\n <thead>\n <tr style={{ textAlign: 'left', borderBottom: '2px solid var(--border)' }}>\n <th style={{ padding: '8px 12px' }}>{t('admin.page.name')}</th>\n <th style={{ padding: '8px 12px' }}>{t('admin.page.columnTitle')}</th>\n <th style={{ padding: '8px 12px' }}>{t('admin.page.url')}</th>\n <th style={{ padding: '8px 12px' }}>{t('admin.common.status')}</th>\n <th style={{ padding: '8px 12px', textAlign: 'center' }}>{t('admin.common.actions')}</th>\n </tr>\n </thead>\n <tbody>\n {pages.map((p) => (\n <tr key={p.id} style={{ borderBottom: '1px solid var(--border-light)' }}>\n <td style={{ padding: '8px 12px' }}><code style={{ background: 'var(--bg)', padding: '2px 6px', borderRadius: 4, fontSize: 12 }}>{p.name}</code></td>\n <td style={{ padding: '8px 12px' }}>{p.title}</td>\n <td style={{ padding: '8px 12px' }}><code style={{ background: 'var(--bg)', padding: '2px 6px', borderRadius: 4, fontSize: 12 }}>?custom={p.name}</code></td>\n <td style={{ padding: '8px 12px' }}>\n <span style={{ color: p.enabled ? '#22c55e' : '#ef4444', display: 'inline-flex', alignItems: 'center', gap: 4 }}><Icon name={p.enabled ? 'success' : 'error'} size={13} /> {p.enabled ? t('admin.common.enabled') : t('admin.common.disabled')}</span>\n </td>\n <td style={{ padding: '8px 12px', textAlign: 'center', display: 'flex', gap: 6, justifyContent: 'center' }}>\n <button className=\"btn-sm btn-secondary\" title={t('admin.page.edit')} aria-label={t('admin.page.edit')} onClick={() => setEditing(p)}><Icon name=\"edit\" size={13} /></button>\n <button className=\"btn-sm btn-danger\" title={t('admin.page.delete')} aria-label={t('admin.page.delete')} onClick={() => handleDelete(p)}><Icon name=\"trash\" size={13} /></button>\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n )}\n </div>\n\n {editing && (\n <CustomPageEditor\n page={editing === 'new' ? null : editing}\n onClose={() => setEditing(null)}\n onSaved={() => { setEditing(null); load(); }}\n />\n )}\n </>\n );\n}\n"],"names":["AdminCustomPages","t","toast","confirmAction","pages","setPages","error","setError","editing","setEditing","load","adminGetLine truncated
{"offset": {"line": 7924, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminForumSettings.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 论坛设置\nimport { useEffect, useState } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from '../AppProvider';\nimport { Icon } from '../Icons';\nimport { useTranslation } from 'react-i18next';\nimport { useToast } from '../Toast';\n\nexport default function AdminForumSettings() {\n const { updateForumName } = useApp();\n const { t } = useTranslation();\n const { toast } = useToast();\n // 初始为空:收到服务器返回的论坛名后才显示,避免默认名一闪而过\n const [name, setName] = useState('');\n const [result, setResult] = useState(null); // {ok, msg}\n\n useEffect(() => {\n API.getSettings()\n .then((data) => { if (data.forum_name) setName(data.forum_name); })\n .catch(() => {});\n }, []);\n\n const handleSave = async () => {\n if (!name.trim()) { toast(t('admin.forum.nameRequired'), 'warning'); return; }\n try {\n await API.updateSettings(name.trim());\n updateForumName(name.trim());\n setResult({ ok: true, msg: t('admin.forum.saved') });\n } catch {\n setResult({ ok: false, msg: t('admin.forum.saveFailed') });\n }\n };\n\n return (\n <>\n <h3 style={{ marginBottom: 16 }}><Icon name=\"settings\" size={16} /> {t('admin.forum.title')}</h3>\n <div style={{ maxWidth: 400 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 6 }}>{t('admin.forum.nameLabel')}</label>\n <input\n type=\"text\"\n style={{ width: '100%', padding: '10px 14px', border: '1.5px solid var(--border)', borderRadius: 6, fontSize: 15, marginBottom: 12, fontFamily: 'inherit', background: 'var(--bg)', color: 'var(--text)' }}\n value={name}\n onChange={(e) => setName(e.target.value)}\n />\n <button className=\"btn-primary\" style={{ padding: '10px 24px' }} onClick={handleSave}><Icon name=\"save\" size={14} /> {t('admin.forum.save')}</button>\n {result && (\n <span style={{ marginLeft: 12, fontSize: 14, color: result.ok ? '#22c55e' : '#ef4444' }}><Icon name={result.ok ? 'success' : 'error'} size={14} /> {result.msg}</span>\n )}\n </div>\n </>\n );\n}\n"],"names":["AdminForumSettings","updateForumName","t","toast","name","setName","result","setResult","getSettings","then","data","forum_name","catch","handleSave","trim","updateSettings","ok","msg","style","marginBottom","size","maxWidth","fontWeight","fontSize","display","type","width","padding","border","borderRadius","fontFamily","background","color","value","onChange","e","target","className","onClick","marginLeft"],"mappings":";;;;;AAEA,cAAc;AACd;AACA;AACA;AACA;AACA;AAAA;AACA;;;AARA;;;;;;;AAUe,SAASA;;IACtB,MAAM,EAAEC,eAAe,EAAE,GAAG,IAAA,sIAAM;IAClC,MAAM,EAAEC,CAAC,EAAE,GAAG,IAAA,qLAAc;IAC5B,MAAM,EAAEC,KAAK,EAAE,GAAG,IAAA,kIAAQ;IAC1B,iCAAiC;IACjC,MAAM,CAACC,MAAMC,QAAQ,GAAG,IAAA,yKAAQ,EAAC;IACjC,MAAM,CAACC,QAAQC,UAAU,GAAG,IAAA,yKAAQ,EAAC,OAAO,YAAY;IAExD,IAAA,0KAAS;wCAAC;YACR,oHAAG,CAACC,WAAW,GACZC,IAAI;gDAAC,CAACC;oBAAW,IAAIA,KAAKC,UAAU,EAAEN,QAAQK,KAAKC,UAAU;gBAAG;+CAChEC,KAAK;gDAAC,KAAO;;QAClB;uCAAG,EAAE;IAEL,MAAMC,aAAa;QACjB,IAAI,CAACT,KAAKU,IAAI,IAAI;YAAEX,MAAMD,EAAE,6BAA6B;YAAY;QAAQ;QAC7E,IAAI;YACF,MAAM,oHAAG,CAACa,cAAc,CAACX,KAAKU,IAAI;YAClCb,gBAAgBG,KAAKU,IAAI;YACzBP,UAAU;gBAAES,IAAI;gBAAMC,KAAKf,EAAE;YAAqB;QACpD,EAAE,OAAM;YACNK,UAAU;gBAAES,IAAI;gBAAOC,KAAKf,EAAE;YAA0B;QAC1D;IACF;IAEA,qBACE;;0BACE,6LAAC;gBAAGgB,OAAO;oBAAEC,cAAc;gBAAG;;kCAAG,6LAAC,8HAAI;wBAACf,MAAK;wBAAWgB,MAAM;;;;;;oBAAM;oBAAElB,EAAE;;;;;;;0BACvE,6LAAC;gBAAIgB,OAAO;oBAAEG,UAAU;gBAAI;;kCAC1B,6LAAC;wBAAMH,OAAO;4BAAEI,YAAY;4BAAKC,UAAU;4BAAIC,SAAS;4BAASL,cAAc;wBAAE;kCAAIjB,EAAE;;;;;;kCACvF,6LAAC;wBACCuB,MAAK;wBACLP,OAAO;4BAAEQ,OAAO;4BAAQC,SAAS;4BAAaC,QAAQ;4BAA6BC,cAAc;4BAAGN,UAAU;4BAAIJ,cAAc;4BAAIW,YAAY;4BAAWC,YAAY;4BAAaC,OAAO;wBAAc;wBACzMC,OAAO7B;wBACP8B,UAAU,CAACC,IAAM9B,QAAQ8B,EAAEC,MAAM,CAACH,KAAK;;;;;;kCAEzC,6LAAC;wBAAOI,WAAU;wBAAcnB,OAAO;4BAAES,SAAS;wBAAY;wBAAGW,SAASzB;;0CAAY,6LAAC,8HAAI;gCAACT,MAAK;gCAAOgB,MAAM;;;;;;4BAAM;4BAAElB,EAAE;;;;;;;oBACvHI,wBACC,6LAAC;wBAAKY,OAAO;4BAAEqB,YAAY;4BAAIhB,UAAU;4BAAIS,OAAO1B,OAAOU,EAAE,GAAG,YAAY;wBAAU;;0CAAG,6LAAC,8HAAI;gCAACZ,MAAME,OAAOU,EAAE,GAAG,YAAY;gCAASI,MAAM;;;;;;4BAAM;4BAAEd,OAAOW,GAAG;;;;;;;;;;;;;;;;;;;AAKxK;GA3CwBjB;;QACM,sIAAM;QACpB,qLAAc;QACV,kIAAQ;;;KAHJA"}},
{"offset": {"line": 8121, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminLinks.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 友情链接管理\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nexport default function AdminLinks() {\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [links, setLinks] = useState([]);\n const [title, setTitle] = useState('');\n const [url, setUrl] = useState('');\n\n const load = () => { API.getLinks().then(setLinks).catch(() => {}); };\n useEffect(load, []);\n\n const handleAdd = async () => {\n if (!title.trim() || !url.trim()) { toast(t('admin.link.incomplete'), 'warning'); return; }\n try {\n await API.addLink(title.trim(), url.trim());\n setTitle('');\n setUrl('');\n load();\n } catch (err) {\n toast(t('admin.link.addFailed', { msg: err.message }), 'error');\n }\n };\n\n const handleDelete = async (id) => {\n if (!await confirmAction(t('admin.link.confirmDelete'))) return;\n try {\n await API.deleteLink(id);\n load();\n } catch (err) {\n toast(t('admin.common.deleteFailed', { msg: err.message }), 'error');\n }\n };\n\n return (\n <>\n <div style={{ marginBottom: 16, display: 'flex', gap: 8, flexWrap: 'wrap' }}>\n <input\n type=\"text\" placeholder={t('admin.link.namePlaceholder')}\n style={{ flex: 1, minWidth: 120, padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--bg)', color: 'var(--text)' }}\n value={title} onChange={(e) => setTitle(e.target.value)}\n />\n <input\n type=\"url\" placeholder={t('admin.link.urlPlaceholder')}\n style={{ flex: 2, minWidth: 160, padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, background: 'var(--bg)', color: 'var(--text)' }}\n value={url} onChange={(e) => setUrl(e.target.value)}\n />\n <button className=\"btn-primary\" style={{ padding: '8px 16px' }} onClick={handleAdd}>{t('admin.link.add')}</button>\n </div>\n <div id=\"linkList\">\n {links.length === 0 ? (\n <div style={{ color: '#94a3b8', fontSize: 13 }}>{t('admin.link.empty')}</div>\n ) : (\n links.map((l) => (\n <div key={l.id} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '8px 0', borderBottom: '1px solid var(--border)' }}>\n <span><a href={l.url} target=\"_blank\" rel=\"noreferrer\" style={{ color: '#6366f1', textDecoration: 'none' }}>{l.title}</a></span>\n <button className=\"btn-sm btn-danger\" onClick={() => handleDelete(l.id)}>\n <Icon name=\"trash\" size={12} /> {t('admin.common.delete')}\n </button>\n </div>\n ))\n )}\n </div>\n </>\n );\n}\n"],"names":["AdminLinks","t","toast","confirmAction","links","setLinks","title","setTitle","url","setUrl","load","getLinks","then","catch","handleAdd","trim","addLink","err","msg","message","handleDelete","id","deleteLink","style","marginBottom","display","gap","flexWrap","type","placeholder","flex","minWidth","padding","border","borderRadius","background","color","value","onChange","e","target","className","onClick","length","fontSize","map","l","justifyContent","alignItems","borderBottom","href","rel","textDecoration","name","size"],"mappings":";;;;;AAEA,gBAAgB;AAChB;AACA;AAAA;AACA;AACA;AACA;;;AAPA;;;;;;AASe,SAASA;;IACtB,MAAM,EAAEC,CAAC,EAAE,GAAG,IAAA,qLAAc;IAC5B,MAAM,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAG,IAAA,kIAAQ;IACzC,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC,EAAE;IACrC,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC;IACnC,MAAM,CAACC,KAAKC,OAAO,GAAG,IAAA,yKAAQ,EAAC;IAE/B,MAAMC,OAAO;QAAQ,oHAAG,CAACC,QAAQ,GAAGC,IAAI,CAACP,UAAUQ,KAAK,CAAC,KAAO;IAAI;IACpE,IAAA,0KAAS,EAACH,MAAM,EAAE;IAElB,MAAMI,YAAY;QAChB,IAAI,CAACR,MAAMS,IAAI,MAAM,CAACP,IAAIO,IAAI,IAAI;YAAEb,MAAMD,EAAE,0BAA0B;YAAY;QAAQ;QAC1F,IAAI;YACF,MAAM,oHAAG,CAACe,OAAO,CAACV,MAAMS,IAAI,IAAIP,IAAIO,IAAI;YACxCR,SAAS;YACTE,OAAO;YACPC;QACF,EAAE,OAAOO,KAAK;YACZf,MAAMD,EAAE,wBAAwB;gBAAEiB,KAAKD,IAAIE,OAAO;YAAC,IAAI;QACzD;IACF;IAEA,MAAMC,eAAe,OAAOC;QAC1B,IAAI,CAAC,MAAMlB,cAAcF,EAAE,8BAA8B;QACzD,IAAI;YACF,MAAM,oHAAG,CAACqB,UAAU,CAACD;YACrBX;QACF,EAAE,OAAOO,KAAK;YACZf,MAAMD,EAAE,6BAA6B;gBAAEiB,KAAKD,IAAIE,OAAO;YAAC,IAAI;QAC9D;IACF;IAEA,qBACE;;0BACE,6LAAC;gBAAII,OAAO;oBAAEC,cAAc;oBAAIC,SAAS;oBAAQC,KAAK;oBAAGC,UAAU;gBAAO;;kCACxE,6LAAC;wBACCC,MAAK;wBAAOC,aAAa5B,EAAE;wBAC3BsB,OAAO;4BAAEO,MAAM;4BAAGC,UAAU;4BAAKC,SAAS;4BAAYC,QAAQ;4BAA2BC,cAAc;4BAAGC,YAAY;4BAAaC,OAAO;wBAAc;wBACxJC,OAAO/B;wBAAOgC,UAAU,CAACC,IAAMhC,SAASgC,EAAEC,MAAM,CAACH,KAAK;;;;;;kCAExD,6LAAC;wBACCT,MAAK;wBAAMC,aAAa5B,EAAE;wBAC1BsB,OAAO;4BAAEO,MAAM;4BAAGC,UAAU;4BLine truncated
{"offset": {"line": 8340, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminLogs.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 事件日志\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\n\nexport default function AdminLogs() {\n const { t, i18n } = useTranslation();\n const [logs, setLogs] = useState(null);\n const [error, setError] = useState(null);\n\n const load = () => {\n API.getEventLogs()\n .then((data) => { setLogs(data || []); setError(null); })\n .catch((e) => { setError(e.message); setLogs([]); });\n };\n\n useEffect(load, []);\n\n if (error) return <div style={{ textAlign: 'center', color: '#ef4444', padding: 20 }}>{t('admin.common.loadFailed', { msg: error })}</div>;\n if (!logs) return <div style={{ textAlign: 'center', color: '#94a3b8', padding: 20 }}><span className=\"spinner-sm\" />{t('admin.common.loading')}</div>;\n if (logs.length === 0) return <div style={{ textAlign: 'center', color: '#94a3b8', padding: 40 }}>{t('admin.log.empty')}</div>;\n\n const dateLocale = i18n.resolvedLanguage === 'en' ? 'en-US' : 'zh-CN';\n\n return (\n <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: 13 }}>\n <thead>\n <tr style={{ textAlign: 'left', borderBottom: '1px solid var(--border)' }}>\n <th>{t('admin.log.time')}</th><th>{t('admin.log.user')}</th><th>{t('admin.log.action')}</th>\n </tr>\n </thead>\n <tbody>\n {logs.map((l) => (\n <tr key={l.id} style={{ borderBottom: '1px solid #f1f5f9' }}>\n <td style={{ padding: '6px 0' }}>{new Date(l.created_at).toLocaleString(dateLocale)}</td>\n <td style={{ padding: '6px 0' }}>{l.username || t('admin.log.system')}</td>\n <td style={{ padding: '6px 0' }}>{l.action}</td>\n </tr>\n ))}\n </tbody>\n </table>\n );\n}\n"],"names":["AdminLogs","t","i18n","logs","setLogs","error","setError","load","getEventLogs","then","data","catch","e","message","style","textAlign","color","padding","msg","className","length","dateLocale","resolvedLanguage","width","borderCollapse","fontSize","borderBottom","map","l","Date","created_at","toLocaleString","username","action","id"],"mappings":";;;;;AAEA,cAAc;AACd;AACA;AAAA;AACA;;;AALA;;;;AAOe,SAASA;;IACtB,MAAM,EAAEC,CAAC,EAAEC,IAAI,EAAE,GAAG,IAAA,qLAAc;IAClC,MAAM,CAACC,MAAMC,QAAQ,GAAG,IAAA,yKAAQ,EAAC;IACjC,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC;IAEnC,MAAMC,OAAO;QACX,oHAAG,CAACC,YAAY,GACbC,IAAI,CAAC,CAACC;YAAWN,QAAQM,QAAQ,EAAE;YAAGJ,SAAS;QAAO,GACtDK,KAAK,CAAC,CAACC;YAAQN,SAASM,EAAEC,OAAO;YAAGT,QAAQ,EAAE;QAAG;IACtD;IAEA,IAAA,0KAAS,EAACG,MAAM,EAAE;IAElB,IAAIF,OAAO,qBAAO,6LAAC;QAAIS,OAAO;YAAEC,WAAW;YAAUC,OAAO;YAAWC,SAAS;QAAG;kBAAIhB,EAAE,2BAA2B;YAAEiB,KAAKb;QAAM;;;;;;IACjI,IAAI,CAACF,MAAM,qBAAO,6LAAC;QAAIW,OAAO;YAAEC,WAAW;YAAUC,OAAO;YAAWC,SAAS;QAAG;;0BAAG,6LAAC;gBAAKE,WAAU;;;;;;YAAgBlB,EAAE;;;;;;;IACxH,IAAIE,KAAKiB,MAAM,KAAK,GAAG,qBAAO,6LAAC;QAAIN,OAAO;YAAEC,WAAW;YAAUC,OAAO;YAAWC,SAAS;QAAG;kBAAIhB,EAAE;;;;;;IAErG,MAAMoB,aAAanB,KAAKoB,gBAAgB,KAAK,OAAO,UAAU;IAE9D,qBACE,6LAAC;QAAMR,OAAO;YAAES,OAAO;YAAQC,gBAAgB;YAAYC,UAAU;QAAG;;0BACtE,6LAAC;0BACC,cAAA,6LAAC;oBAAGX,OAAO;wBAAEC,WAAW;wBAAQW,cAAc;oBAA0B;;sCACtE,6LAAC;sCAAIzB,EAAE;;;;;;sCAAuB,6LAAC;sCAAIA,EAAE;;;;;;sCAAuB,6LAAC;sCAAIA,EAAE;;;;;;;;;;;;;;;;;0BAGvE,6LAAC;0BACEE,KAAKwB,GAAG,CAAC,CAACC,kBACT,6LAAC;wBAAcd,OAAO;4BAAEY,cAAc;wBAAoB;;0CACxD,6LAAC;gCAAGZ,OAAO;oCAAEG,SAAS;gCAAQ;0CAAI,IAAIY,KAAKD,EAAEE,UAAU,EAAEC,cAAc,CAACV;;;;;;0CACxE,6LAAC;gCAAGP,OAAO;oCAAEG,SAAS;gCAAQ;0CAAIW,EAAEI,QAAQ,IAAI/B,EAAE;;;;;;0CAClD,6LAAC;gCAAGa,OAAO;oCAAEG,SAAS;gCAAQ;0CAAIW,EAAEK,MAAM;;;;;;;uBAHnCL,EAAEM,EAAE;;;;;;;;;;;;;;;;AASvB;GArCwBlC;;QACF,qLAAc;;;KADZA"}},
{"offset": {"line": 8534, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminReports.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 举报处理\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nexport default function AdminReports() {\n const { t } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [reports, setReports] = useState(null);\n const [error, setError] = useState(null);\n\n const load = () => {\n API.getReports()\n .then((data) => { setReports(data || []); setError(null); })\n .catch((e) => { setError(e.message); setReports([]); });\n };\n\n useEffect(load, []);\n\n const handleAction = async (r, action) => {\n const status = action === 'approve' ? 'approved' : 'rejected';\n const note = action === 'approve' ? t('admin.report.approvedNote') : t('admin.report.rejectedNote');\n if (action === 'approve' && !await confirmAction(t('admin.report.confirmApprove'))) return;\n try {\n await API.updateReport(r.id, status, note);\n if (action === 'approve' && r.post_id) {\n API.deletePost(r.post_id).catch(() => {});\n }\n load();\n } catch (err) {\n toast(t('admin.common.operationFailed', { msg: err.message }), 'error');\n }\n };\n\n if (error) return <div style={{ textAlign: 'center', color: '#ef4444', padding: 20 }}>{t('admin.common.loadFailed', { msg: error })}</div>;\n if (!reports) return <div style={{ textAlign: 'center', color: '#94a3b8', padding: 20 }}><span className=\"spinner-sm\" />{t('admin.common.loading')}</div>;\n if (reports.length === 0) return <div style={{ textAlign: 'center', color: '#94a3b8', padding: 40 }}><Icon name=\"success\" size={16} /> {t('admin.report.empty')}</div>;\n\n const statusLabels = {\n pending: t('admin.report.statusPending'),\n approved: t('admin.report.statusApproved'),\n rejected: t('admin.report.statusRejected'),\n };\n const statusIcons = { pending: 'pending', approved: 'success', rejected: 'error' };\n\n return reports.map((r) => (\n <div key={r.id} className=\"report-item\">\n <div>{t('admin.report.reportedPost', { name: r.reporter_name || t('admin.report.anonymous') })}</div>\n <div style={{ fontSize: 13, color: '#64748b', margin: '4px 0' }}>{t('admin.report.reason', { reason: r.reason })}</div>\n <div style={{ fontSize: 13, color: '#64748b', margin: '4px 0' }}>\n {t('admin.report.post', {\n title: r.post_title || t('admin.report.untitled'),\n content: (r.post_content || '').substring(0, 30) + ((r.post_content || '').length > 30 ? '...' : ''),\n })}\n </div>\n <div style={{ fontSize: 13, fontWeight: 600, display: 'flex', alignItems: 'center', gap: 4 }}>\n {statusIcons[r.status] && <Icon name={statusIcons[r.status]} size={13} />} {t('admin.common.status')}: {statusLabels[r.status] || r.status}\n </div>\n {r.handler_name && (\n <div style={{ fontSize: 12, color: '#94a3b8' }}>\n {t('admin.report.handler', { name: r.handler_name })}{r.handler_note ? ' (' + r.handler_note + ')' : ''}\n </div>\n )}\n {r.status === 'pending' && (\n <div className=\"report-actions\">\n <button className=\"btn-sm btn-danger\" onClick={() => handleAction(r, 'approve')}>\n <Icon name=\"trash\" size={12} /> {t('admin.report.deletePost')}\n </button>\n <button className=\"btn-sm btn-secondary\" onClick={() => handleAction(r, 'reject')}>\n <Icon name=\"close\" size={12} /> {t('admin.report.reject')}\n </button>\n </div>\n )}\n </div>\n ));\n}\n"],"names":["AdminReports","t","toast","confirmAction","reports","setReports","error","setError","load","getReports","then","data","catch","e","message","handleAction","r","action","status","note","updateReport","id","post_id","deletePost","err","msg","style","textAlign","color","padding","className","length","name","size","statusLabels","pending","approved","rejected","statusIcons","map","reporter_name","fontSize","margin","reason","title","post_title","content","post_content","substring","fontWeight","display","alignItems","gap","handler_name","handler_note","onClick"],"mappings":";;;;;AAEA,cAAc;AACd;AACA;AAAA;AACA;AACA;AACA;;;AAPA;;;;;;AASe,SAASA;;IACtB,MAAM,EAAEC,CAAC,EAAE,GAAG,IAAA,qLAAc;IAC5B,MAAM,EAAEC,KAAK,EAAEC,aAAa,EAAE,GAAG,IAAA,kIAAQ;IACzC,MAAM,CAACC,SAASC,WAAW,GAAG,IAAA,yKAAQ,EAAC;IACvC,MAAM,CAACC,OAAOC,SAAS,GAAG,IAAA,yKAAQ,EAAC;IAEnC,MAAMC,OAAO;QACX,oHAAG,CAACC,UAAU,GACXC,IAAI,CAAC,CAACC;YAAWN,WAAWM,QAAQ,EAAE;YAAGJ,SAAS;QAAO,GACzDK,KAAK,CAAC,CAACC;YAAQN,SAASM,EAAEC,OAAO;YAAGT,WAAW,EAAE;QAAG;IACzD;IAEA,IAAA,0KAAS,EAACG,MAAM,EAAE;IAElB,MAAMO,eAAe,OAAOC,GAAGC;QAC7B,MAAMC,SAASD,WAAW,YAAY,aAAa;QACnD,MAAME,OAAOF,WAAW,YAAYhB,Line truncated
{"offset": {"line": 8810, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/AdminUsers.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 用户管理\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { useApp } from '../AppProvider';\nimport { useToast } from '../Toast';\n\nexport default function AdminUsers() {\n const { currentUser } = useApp();\n const { t, i18n } = useTranslation();\n const { toast, confirmAction } = useToast();\n const [users, setUsers] = useState(null);\n const [error, setError] = useState(null);\n\n const load = () => {\n API.getUsers()\n .then((data) => { setUsers(data || []); setError(null); })\n .catch((e) => { setError(e.message); setUsers([]); });\n };\n\n useEffect(load, []);\n\n const handleRole = async (u, role) => {\n const roleName = role === 'admin' ? t('admin.user.roleAdmin') : t('admin.user.roleUser');\n if (!await confirmAction(t('admin.user.confirmRole', { role: roleName }), { danger: false })) return;\n try {\n await API.updateUserRole(u.id, role);\n load();\n } catch (err) {\n toast(t('admin.common.operationFailed', { msg: err.message }), 'error');\n }\n };\n\n if (error) return <div style={{ textAlign: 'center', color: '#ef4444', padding: 20 }}>{t('admin.common.loadFailed', { msg: error })}</div>;\n if (!users) return <div style={{ textAlign: 'center', color: '#94a3b8', padding: 20 }}><span className=\"spinner-sm\" />{t('admin.common.loading')}</div>;\n\n const dateLocale = i18n.resolvedLanguage === 'en' ? 'en-US' : 'zh-CN';\n\n return (\n <>\n <div style={{ marginBottom: 12, fontSize: 13, color: '#94a3b8' }}>{t('admin.user.count', { count: users.length })}</div>\n <div style={{ overflowX: 'auto' }}>\n <table style={{ width: '100%', borderCollapse: 'collapse', fontSize: 14 }}>\n <thead>\n <tr style={{ textAlign: 'left', borderBottom: '2px solid var(--border)' }}>\n <th style={{ padding: '10px 12px' }}>{t('admin.user.user')}</th>\n <th style={{ padding: '10px 12px' }}>{t('admin.user.role')}</th>\n <th style={{ padding: '10px 12px' }}>{t('admin.user.registeredAt')}</th>\n <th style={{ padding: '10px 12px', textAlign: 'center' }}>{t('admin.common.actions')}</th>\n </tr>\n </thead>\n <tbody>\n {users.map((u) => {\n const isAdmin = u.role === 'admin';\n const isCurrent = currentUser && currentUser.id === u.id;\n return (\n <tr key={u.id} style={{ borderBottom: '1px solid #f1f5f9' }}>\n <td style={{ padding: '10px 12px' }}>\n <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>\n <img\n src={u.avatar_url || 'https://ui-avatars.com/api/?name=' + encodeURIComponent(u.username) + '&background=6366f1&color=fff&size=64'}\n style={{ width: 28, height: 28, borderRadius: '50%', objectFit: 'cover' }}\n alt=\"\"\n />\n <span style={{ fontWeight: 500 }}>{u.username}</span>\n {isCurrent && <span style={{ fontSize: 11, color: '#94a3b8', background: '#eef2ff', padding: '1px 8px', borderRadius: 4 }}>{t('admin.user.you')}</span>}\n </div>\n </td>\n <td style={{ padding: '10px 12px' }}>\n <span style={{\n display: 'inline-block', padding: '2px 10px', borderRadius: 4, fontSize: 12, fontWeight: 500,\n ...(isAdmin ? { background: '#6366f1', color: '#fff' } : { background: 'var(--border)', color: 'var(--text-secondary)' }),\n }}>\n {isAdmin ? (u.is_super ? t('admin.user.roleSuper') : t('admin.user.roleAdmin')) : t('admin.user.roleUser')}\n </span>\n </td>\n <td style={{ padding: '10px 12px', color: '#94a3b8', fontSize: 13 }}>\n {u.created_at ? new Date(u.created_at).toLocaleDateString(dateLocale) : '—'}\n </td>\n <td style={{ padding: '10px 12px', textAlign: 'center' }}>\n {isCurrent ? (\n <span style={{ fontSize: 12, color: '#94a3b8' }}>{t('admin.user.cannotSelf')}</span>\n ) : isAdmin ? (\n <button className=\"btn-sm btn-secondary\" style={{ padding: '4px 12px' }} onClick={() => handleRole(u, 'user')}>{t('admin.user.makeUser')}</button>\n ) : (\n <button className=\"btn-sm btn-primary\" style={{ padding: '4px 12px', background: '#6366f1', color: '#fff', border: 'none', borderRadius: 4, cursor: 'pointer' }} onClick={() => handleRole(Line truncated
{"offset": {"line": 9191, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/admin/CustomPageEditor.js"],"sourcesContent":["'use client';\n\n// 管理后台 - 自定义页面编辑器(modal)\nimport { useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { API } from '@/lib/api';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nexport default function CustomPageEditor({ page, onClose, onSaved }) {\n const { t } = useTranslation();\n const { toast } = useToast();\n const isEdit = !!page;\n const [name, setName] = useState(page?.name || '');\n const [title, setTitle] = useState(page?.title || '');\n const [content, setContent] = useState(page?.content || '');\n const [enabled, setEnabled] = useState(page?.enabled !== false);\n\n const handleSave = async () => {\n if (!name.trim()) { toast(t('admin.page.nameRequired'), 'warning'); return; }\n if (!title.trim()) { toast(t('admin.page.titleRequired'), 'warning'); return; }\n if (!content.trim()) { toast(t('admin.page.contentRequired'), 'warning'); return; }\n if (!/^[a-zA-Z0-9\\-_]+$/.test(name.trim())) {\n toast(t('admin.page.nameInvalid'), 'warning');\n return;\n }\n try {\n if (isEdit) {\n await API.adminUpdateCustomPage(page.id, title.trim(), content.trim(), enabled);\n } else {\n await API.adminCreateCustomPage(name.trim(), title.trim(), content.trim());\n }\n onSaved();\n } catch (err) {\n toast(t('admin.common.saveFailed', { msg: err.message }), 'error');\n }\n };\n\n return (\n <div className=\"modal active\" style={{ display: 'flex' }} onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}>\n <div className=\"modal-content\" style={{ maxWidth: 600, maxHeight: '90vh', overflowY: 'auto', position: 'relative' }}>\n <span className=\"close\" style={{ position: 'absolute', top: 12, right: 16, cursor: 'pointer', color: 'var(--text-light)' }} onClick={onClose}><Icon name=\"close\" size={20} /></span>\n <h2 style={{ marginBottom: 16 }}><Icon name={isEdit ? 'edit' : 'file'} size={20} /> {isEdit ? t('admin.page.editTitle') : t('admin.page.addTitle')}</h2>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('admin.page.nameLabel')}</label>\n <input\n type=\"text\"\n value={name}\n readOnly={isEdit}\n placeholder={t('admin.page.namePlaceholder')}\n style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: isEdit ? 'var(--border-light)' : 'var(--bg)', color: 'var(--text)' }}\n onChange={(e) => setName(e.target.value)}\n />\n {isEdit\n ? <div style={{ fontSize: 12, color: 'var(--text-light)', marginTop: 2 }}><Icon name=\"warning\" size={12} /> {t('admin.page.nameLocked')}</div>\n : <div style={{ fontSize: 12, color: 'var(--text-light)', marginTop: 2 }}>{t('admin.page.nameHint')}</div>}\n </div>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('admin.page.navTitleLabel')}</label>\n <input\n type=\"text\"\n value={title}\n placeholder={t('admin.page.navTitlePlaceholder')}\n style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }}\n onChange={(e) => setTitle(e.target.value)}\n />\n </div>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('admin.common.status')}</label>\n <select\n value={String(enabled)}\n style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 14, background: 'var(--bg)', color: 'var(--text)' }}\n onChange={(e) => setEnabled(e.target.value === 'true')}\n >\n <option value=\"true\">{t('admin.common.enabled')}</option>\n <option value=\"false\">{t('admin.common.disabled')}</option>\n </select>\n </div>\n <div style={{ marginBottom: 12 }}>\n <label style={{ fontWeight: 600, fontSize: 14, display: 'block', marginBottom: 4 }}>{t('admin.page.contentLabel')}</label>\n <textarea\n rows={12}\n value={content}\n style={{ width: '100%', padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 4, fontSize: 13, fontFamily: 'monospace', background: 'var(--bg)', color: 'var(--text)', resize: 'vertical' }}\n onChange={(e) => setContent(e.target.value)}\n />\n <div style={{ fontSizeLine truncated
{"offset": {"line": 9588, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/chat/ChatManager.js"],"sourcesContent":["'use client';\n\n// 私信管理器:会话列表 modal + 聊天窗口 modal + 未读 badge\nimport { useState, useEffect, useCallback } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from '../AppProvider';\nimport { Icon } from '../Icons';\nimport ConversationList from './ConversationList';\nimport ChatWindow from './ChatWindow';\nimport { useToast } from '../Toast';\n\n// 私信按钮(含未读 badge),渲染在导航栏内\nexport function DMButton() {\n const { currentUser } = useApp();\n const [unread, setUnread] = useState(0);\n\n useEffect(() => {\n if (!currentUser) { setUnread(0); return; }\n const update = () => {\n API.getConversations()\n .then((cs) => setUnread((cs || []).reduce((s, c) => s + (c.unread_count || 0), 0)))\n .catch(() => {});\n };\n update();\n const t = setInterval(update, 30000);\n return () => clearInterval(t);\n }, [currentUser]);\n\n if (!currentUser) return null; // 未登录不显示私信按钮\n\n return (\n <button\n className=\"nav-icon-btn\"\n title=\"私信\"\n style={{ position: 'relative', padding: '6px 8px', background: 'none', border: 'none', cursor: 'pointer', color: 'var(--text-secondary)', borderRadius: 4, display: 'inline-flex', alignItems: 'center', justifyContent: 'center' }}\n onClick={() => window.dispatchEvent(new CustomEvent('forumlify-open-messages'))}\n >\n <Icon name=\"message\" size={20} />\n {unread > 0 && (\n <span style={{ position: 'absolute', top: -2, right: -2, background: '#ef4444', color: '#fff', borderRadius: '50%', padding: '2px 6px', fontSize: 10, fontWeight: 600, minWidth: 18, textAlign: 'center', lineHeight: 1.4 }}>\n {unread > 99 ? '99+' : unread}\n </span>\n )}\n </button>\n );\n}\n\n// 私信 modals 容器(会话列表 + 聊天窗口)\nexport default function ChatManager() {\n const [listOpen, setListOpen] = useState(false);\n const [chat, setChat] = useState(null); // {conversationId, otherUserId, otherUsername}\n const [refreshKey, setRefreshKey] = useState(0);\n\n const refreshList = useCallback(() => setRefreshKey((k) => k + 1), []);\n\n // 监听事件:打开会话列表 / 打开聊天\n useEffect(() => {\n const handler = (e) => {\n setChat(e.detail);\n setListOpen(false);\n };\n const openList = () => setListOpen(true);\n window.addEventListener('forumlify-open-chat', handler);\n window.addEventListener('forumlify-open-messages', openList);\n return () => {\n window.removeEventListener('forumlify-open-chat', handler);\n window.removeEventListener('forumlify-open-messages', openList);\n };\n }, []);\n\n const openChat = (conversationId, otherUserId, otherUsername) => {\n setChat({ conversationId, otherUserId, otherUsername });\n setListOpen(false);\n };\n\n const closeChat = () => {\n setChat(null);\n refreshList();\n };\n\n return (\n <>\n {listOpen && (\n <ConversationList\n onOpenChat={openChat}\n onClose={() => setListOpen(false)}\n />\n )}\n {chat && (\n <ChatWindow\n conversationId={chat.conversationId}\n otherUserId={chat.otherUserId}\n otherUsername={chat.otherUsername}\n onClose={closeChat}\n onRefreshList={refreshList}\n />\n )}\n </>\n );\n}\n\n// 供其他组件调用的打开私信(通过自定义事件桥接)\nexport function useOpenPrivateChat() {\n const { currentUser } = useApp();\n const { toast } = useToast();\n const open = async (otherUserId, otherUsername) => {\n if (!currentUser) { toast('请先登录', 'warning'); return; }\n try {\n const result = await API.getOrCreateConversation(otherUserId);\n window.dispatchEvent(new CustomEvent('forumlify-open-chat', {\n detail: { conversationId: result.id, otherUserId, otherUsername },\n }));\n } catch (err) {\n toast('打开私信失败:' + err.message, 'error');\n }\n };\n return open;\n}\n"],"names":["DMButton","currentUser","unread","setUnread","update","getConversations","then","cs","reduce","s","c","unread_count","catch","t","setInterval","clearInterval","className","title","style","position","padding","background","border","cursor","color","borderRadius","display","alignItems","justifyContent","onClick","window","dispatchEvent","CustomEvent","name","size","top","right","fontSize","fontWeight","minWidth","textAlign","lineHeight","ChatManager","listOpen","setListOpen","chat","setChat","refreshKey","setRefreshKey","refreshList","k","handler","e","detail","openList","addEventListener","removeEventListener","openChat","conversationId","otherUserId","otherUsername","closeChat","onOpenChat","onClose","onRefreshList","useOpenPrivateCLine truncated
{"offset": {"line": 9819, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/chat/ChatWindow.js"],"sourcesContent":["'use client';\n\n// 私信 - 聊天窗口(3 秒轮询新消息)\nimport { useEffect, useState, useRef, useCallback } from 'react';\nimport { API } from '@/lib/api';\nimport { useApp } from '../AppProvider';\nimport { Icon } from '../Icons';\nimport { useToast } from '../Toast';\n\nfunction avatar(username) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || 'U') +\n '&background=6366f1&color=fff&size=64';\n}\n\nexport default function ChatWindow({ conversationId, otherUserId, otherUsername, onClose, onRefreshList }) {\n const { currentUser } = useApp();\n const { toast } = useToast();\n const [messages, setMessages] = useState(null);\n const [content, setContent] = useState('');\n const containerRef = useRef(null);\n\n const load = useCallback(async (silent = false) => {\n if (!silent) setMessages(null);\n try {\n const data = await API.getMessages(conversationId);\n setMessages(data || []);\n } catch {\n if (!silent) setMessages([]);\n }\n }, [conversationId]);\n\n useEffect(() => { load(); }, [load]);\n\n // 3 秒轮询\n useEffect(() => {\n const t = setInterval(() => load(true), 3000);\n return () => clearInterval(t);\n }, [load]);\n\n // 自动滚动到底部\n useEffect(() => {\n if (containerRef.current) containerRef.current.scrollTop = containerRef.current.scrollHeight;\n }, [messages]);\n\n const send = async () => {\n if (!content.trim()) return;\n try {\n await API.sendMessage(conversationId, content.trim());\n setContent('');\n load();\n onRefreshList();\n } catch (err) {\n toast('发送失败:' + err.message, 'error');\n }\n };\n\n return (\n <div className=\"modal active\" onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}>\n <div className=\"modal-content\" style={{ display: 'flex', flexDirection: 'column', height: '70vh', maxHeight: '70vh', padding: 0, overflow: 'hidden' }}>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 20px', borderBottom: '1px solid var(--border)' }}>\n <span id=\"chatTitle\" style={{ fontWeight: 600, fontSize: 16 }}>{otherUsername}</span>\n <span className=\"close\" onClick={onClose} style={{ cursor: 'pointer', color: 'var(--text-light)', lineHeight: 1 }}><Icon name=\"close\" size={20} /></span>\n </div>\n <div id=\"chatMessages\" ref={containerRef} style={{ flex: 1, overflowY: 'auto', padding: 16, minHeight: 0 }}>\n {messages === null ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}><span className=\"spinner-sm\" />加载中...</div>\n ) : messages.length === 0 ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>还没有消息,打个招呼吧 👋</div>\n ) : (\n messages.map((m) => {\n const isMine = m.sender_id === currentUser?.id;\n const time = m.created_at ? new Date(m.created_at).toLocaleString('zh-CN') : '';\n return (\n <div key={m.id} style={{ display: 'flex', justifyContent: isMine ? 'flex-end' : 'flex-start', marginBottom: 12 }}>\n {!isMine && (\n <img src={m.sender_avatar_url || avatar(m.sender_username)} style={{ width: 32, height: 32, borderRadius: '50%', objectFit: 'cover', marginRight: 8, flexShrink: 0 }} alt=\"\" />\n )}\n <div style={{ maxWidth: '70%' }}>\n <div style={{\n background: isMine ? 'var(--primary)' : 'var(--surface)',\n color: isMine ? '#fff' : 'var(--text)',\n padding: '10px 14px', borderRadius: 12,\n border: isMine ? 'none' : '1px solid var(--border)',\n wordBreak: 'break-word',\n }}>\n {m.content}\n </div>\n <div style={{ fontSize: 11, color: 'var(--text-light)', marginTop: 4, textAlign: isMine ? 'right' : 'left' }}>\n {time} {isMine && <Icon name=\"success\" size={10} aria-label={m.is_read ? '已读' : '已发送'} />}\n </div>\n </div>\n </div>\n );\n })\n )}\n </div>\n <div style={{ display: 'flex', gap: 8, padding: '12px 16px', borderTop: '1px solid var(--border)', flexShrink: 0 }}>\n <input\n type=\"text\"\n id=\"chatInput\"\n placeholder=\"输入消息...\"\n style={{ flex: 1, padding: '8px 12px', border: '1px solid var(--border)', borderRadius: 6, fontSize: 14, background: 'var(--bg)', color: 'var(--text)', outline: 'nLine truncated
{"offset": {"line": 10172, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/components/chat/ConversationList.js"],"sourcesContent":["'use client';\n\n// 私信 - 会话列表\nimport { useEffect, useState } from 'react';\nimport { API } from '@/lib/api';\nimport { Icon } from '../Icons';\n\nfunction avatar(username) {\n return 'https://ui-avatars.com/api/?name=' + encodeURIComponent(username || 'U') +\n '&background=6366f1&color=fff&size=64';\n}\n\nexport default function ConversationList({ onOpenChat, onClose }) {\n const [conversations, setConversations] = useState(null);\n\n const load = () => {\n API.getConversations()\n .then((data) => setConversations(data || []))\n .catch(() => setConversations([]));\n };\n\n useEffect(load, []);\n\n return (\n <div className=\"modal active\" onClick={(e) => { if (e.target === e.currentTarget) onClose(); }}>\n <div className=\"modal-content\" style={{ display: 'flex', flexDirection: 'column', height: '70vh', maxHeight: '70vh', padding: 0, overflow: 'hidden' }}>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '16px 20px', borderBottom: '1px solid var(--border)' }}>\n <h2 style={{ fontSize: 18, margin: 0 }}><Icon name=\"message\" size={18} style={{ verticalAlign: -3, marginRight: 6 }} /> 私信</h2>\n <span className=\"close\" onClick={onClose} style={{ cursor: 'pointer', color: 'var(--text-light)', lineHeight: 1 }}><Icon name=\"close\" size={20} /></span>\n </div>\n <div id=\"messageListContent\" style={{ flex: 1, overflowY: 'auto', padding: 0 }}>\n {conversations === null ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}><span className=\"spinner-sm\" />加载中...</div>\n ) : conversations.length === 0 ? (\n <div style={{ textAlign: 'center', color: '#94a3b8', padding: '40px 0' }}>暂无私信</div>\n ) : (\n conversations.map((c) => {\n const unread = c.unread_count || 0;\n const lastMsg = c.last_message || '暂无消息';\n const time = c.last_message_time ? new Date(c.last_message_time).toLocaleString('zh-CN') : '';\n return (\n <div\n key={c.id}\n className=\"message-list-item\"\n style={{ display: 'flex', alignItems: 'center', gap: 12, padding: '12px 16px', borderBottom: '1px solid var(--border)', cursor: 'pointer', transition: 'background 0.15s' }}\n onClick={() => onOpenChat(c.id, c.other_user_id, c.other_username)}\n >\n <img src={c.other_avatar_url || avatar(c.other_username)} style={{ width: 40, height: 40, borderRadius: '50%', objectFit: 'cover' }} alt=\"\" />\n <div style={{ flex: 1, minWidth: 0 }}>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>\n <span style={{ fontWeight: 600 }}>{c.other_username}</span>\n <span style={{ fontSize: 12, color: 'var(--text-light)' }}>{time}</span>\n </div>\n <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>\n <span style={{ fontSize: 13, color: 'var(--text-secondary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', maxWidth: 200 }}>{lastMsg}</span>\n {unread > 0 && (\n <span style={{ background: '#ef4444', color: '#fff', borderRadius: '50%', padding: '2px 8px', fontSize: 11, fontWeight: 600 }}>{unread}</span>\n )}\n </div>\n </div>\n </div>\n );\n })\n )}\n </div>\n </div>\n </div>\n );\n}\n"],"names":["avatar","username","encodeURIComponent","ConversationList","onOpenChat","onClose","conversations","setConversations","load","getConversations","then","data","catch","className","onClick","e","target","currentTarget","style","display","flexDirection","height","maxHeight","padding","overflow","justifyContent","alignItems","borderBottom","fontSize","margin","name","size","verticalAlign","marginRight","cursor","color","lineHeight","id","flex","overflowY","textAlign","length","map","c","unread","unread_count","lastMsg","last_message","time","last_message_time","Date","toLocaleString","gap","transition","other_user_id","other_username","src","other_avatar_url","width","borderRadius","objectFit","alt","minWidth","fontWeight","textOverflow","whiteSpace","maxWidth","background"],"mappings":";;;;;AAEA,YAAY;AACZ;AACA;AACA;;;AALA;;;;AAOA,SAASA,OAAOC,QAAQ;IACtB,OAAO,sCAAsCC,mBAAmBD,YAAY,OAC1E;AACJ;AAEe,SAASE,iBAAiB,EAAEC,UAAU,EAAEC,OAAO,EAAE;;IAC9D,MAAM,CAACC,eAAeC,iBAAiB,GAAG,IAAA,yKAAQ,EAAC;IAEnD,MAAMC,OAAO;QACX,oHAAG,CAACC,gBALine truncated
{"offset": {"line": 10467, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/lib/api.js"],"sourcesContent":["// 前端 API 封装 (替代原 index.html 的 apiFetch + API 对象)\n// 所有调用返回 JSON;HTTP 错误时抛出带 error 消息的 Error\n\nconst API_BASE_URL = '/api';\n\nlet token = null;\nif (typeof window !== 'undefined') {\n token = localStorage.getItem('forumlify-token') || null;\n}\n\nexport function getToken() {\n return token;\n}\n\nexport function setToken(t) {\n token = t;\n if (t) localStorage.setItem('forumlify-token', t);\n else localStorage.removeItem('forumlify-token');\n}\n\nasync function apiFetch(path, options = {}) {\n const headers = { ...(options.headers || {}) };\n if (options.body && typeof options.body === 'string') {\n headers['Content-Type'] = 'application/json';\n }\n if (token) headers['Authorization'] = 'Bearer ' + token;\n const res = await fetch(API_BASE_URL + path, { ...options, headers });\n const data = await res.json().catch(() => ({}));\n if (!res.ok || data.error) {\n const err = new Error(data.error || '请求失败');\n err.status = res.status;\n throw err;\n }\n return data;\n}\n\nexport const API = {\n // 认证\n async login(email, password) {\n const data = await apiFetch('/auth/login', { method: 'POST', body: JSON.stringify({ email, password }) });\n if (data.token) setToken(data.token);\n return data;\n },\n // 服务端验证码(HMAC 签名挑战)\n getCaptcha() {\n return apiFetch('/captcha');\n },\n register(email, password, username, captcha) {\n return apiFetch('/auth/register', {\n method: 'POST',\n body: JSON.stringify({ email, password, username, captcha_id: captcha?.id, captcha_answer: captcha?.answer, captcha_sig: captcha?.sig }),\n });\n },\n logout() { setToken(null); },\n getMe() { return apiFetch('/auth/me'); },\n\n // 帖子\n getPosts(sort, userId, page = 1, limit = 20) {\n let q = '/posts?sort=' + (sort || 'latest') + '&page=' + page + '&limit=' + limit;\n if (userId) q += '&user_id=' + userId;\n return apiFetch(q);\n },\n getPost(postId) { return apiFetch('/posts/' + postId); },\n createPost(title, content, images, captcha) {\n return apiFetch('/posts', {\n method: 'POST',\n body: JSON.stringify({ title, content, images: images || [], captcha_id: captcha?.id, captcha_answer: captcha?.answer, captcha_sig: captcha?.sig }),\n });\n },\n updatePost(postId, title, content, images) {\n return apiFetch('/posts/' + postId, { method: 'PUT', body: JSON.stringify({ title, content, images }) });\n },\n togglePinPost(postId) {\n return apiFetch('/posts/' + postId + '/pin', { method: 'PUT' });\n },\n deletePost(postId) { return apiFetch('/posts/' + postId, { method: 'DELETE' }); },\n\n // 回复\n getReplies(postId) { return apiFetch('/posts/' + postId + '/replies'); },\n createReply(postId, content, captcha, replyToId) {\n return apiFetch('/posts/' + postId + '/replies', {\n method: 'POST',\n body: JSON.stringify({ content, captcha_id: captcha?.id, captcha_answer: captcha?.answer, captcha_sig: captcha?.sig, reply_to_id: replyToId || null }),\n });\n },\n deleteReply(replyId) { return apiFetch('/replies/' + replyId, { method: 'DELETE' }); },\n\n // 用户管理\n getUsers() { return apiFetch('/users'); },\n getUsersByUsername(username) { return apiFetch('/users?username=' + encodeURIComponent(username)); },\n getUserProfile(username) { return apiFetch('/users/profile/' + encodeURIComponent(username)); },\n updateUserRole(userId, role) {\n return apiFetch('/users/' + userId + '/role', { method: 'PUT', body: JSON.stringify({ role }) });\n },\n updateProfile(userId, username, bio, signature) {\n return apiFetch('/users/' + userId, { method: 'PUT', body: JSON.stringify({ username, bio, signature }) });\n },\n updateAvatar(userId, avatar_url) {\n return apiFetch('/users/' + userId + '/avatar', { method: 'PUT', body: JSON.stringify({ avatar_url }) });\n },\n updatePassword(userId, oldPassword, newPassword) {\n return apiFetch('/users/' + userId + '/password', { method: 'PUT', body: JSON.stringify({ oldPassword, newPassword }) });\n },\n updateEmail(userId, password, newEmail) {\n return apiFetch('/users/' + userId + '/email', { method: 'PUT', body: JSON.stringify({ password, newEmail }) });\n },\n\n // 举报\n getReports() { return apiFetch('/reports'); },\n createReport(postId, reason) {\n return apiFetch('/reports', { method: 'POST', body: JSON.stringify({ post_id: postId, reason }) });\n },\n updateReport(reportId, status, note) {\n return apiFetch('/reports/' + reportId, { method: 'PUT', body: JSON.stringify({ status, note }) });\n },\n\n // 统计 + 设置 + 友链\n getStats() { return apiFetch('/stats'); },\n getSettings() { return apiFetch('/settings'); },\n updateSettings(forum_name) {\n return apiFetch('/settings', { methodLine truncated
{"offset": {"line": 10901, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/lib/markdown.js"],"sourcesContent":["// Markdown 渲染工具(对齐上游 marked 行为 + XSS 清理)\nimport { marked } from 'marked';\nimport sanitizeHtml from 'sanitize-html';\n\n// 允许的 markdown 元素/属性白名单(对齐上游安全策略:禁止 script/iframe/style/事件属性)\nconst SANITIZE_OPTS = {\n allowedTags: [\n 'p', 'br', 'hr', 'strong', 'em', 'b', 'i', 'u', 's', 'del', 'ins',\n 'a', 'img', 'code', 'pre', 'blockquote', 'ul', 'ol', 'li',\n 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'span', 'div',\n ],\n allowedAttributes: {\n a: ['href', 'target', 'rel', 'title'],\n img: ['src', 'alt', 'title', 'width', 'height'],\n code: ['class'],\n pre: ['class'],\n span: ['class'],\n div: ['class'],\n th: ['align', 'colspan', 'rowspan'],\n td: ['align', 'colspan', 'rowspan'],\n table: ['align', 'border', 'cellpadding', 'cellspacing'],\n },\n // URL 白名单:仅 http/https/相对路径,图片同样限制,禁止 javascript: 等\n allowedSchemes: ['http', 'https', 'mailto'],\n allowedSchemesByTag: { img: ['http', 'https'] },\n allowedSchemesAppliedToAttributes: ['href', 'src', 'cite'],\n allowProtocolRelative: false,\n // 事件属性(on*)默认被 sanitize-html 移除,无需额外配置\n disallowedTagsMode: 'discard',\n};\n\n// 渲染 markdown 为 HTML(已消毒,防存储型 XSS);失败时回退为纯文本换行\nexport function renderMarkdown(text) {\n if (!text) return '';\n try {\n const raw = marked.parse(text);\n return sanitizeHtml(raw, SANITIZE_OPTS);\n } catch {\n return sanitizeHtml(text.replace(/\\n/g, '<br>'), SANITIZE_OPTS);\n }\n}\n"],"names":["SANITIZE_OPTS","allowedTags","allowedAttributes","a","img","code","pre","span","div","th","td","table","allowedSchemes","allowedSchemesByTag","allowedSchemesAppliedToAttributes","allowProtocolRelative","disallowedTagsMode","renderMarkdown","text","raw","parse","replace"],"mappings":";;;;AAAA,yCAAyC;AACzC;AACA;;;AAEA,8DAA8D;AAC9D,MAAMA,gBAAgB;IACpBC,aAAa;QACX;QAAK;QAAM;QAAM;QAAU;QAAM;QAAK;QAAK;QAAK;QAAK;QAAO;QAC5D;QAAK;QAAO;QAAQ;QAAO;QAAc;QAAM;QAAM;QACrD;QAAM;QAAM;QAAM;QAAM;QAAM;QAAM;QAAS;QAAS;QAAS;QAAM;QAAM;QAAM;QAAQ;KAC1F;IACDC,mBAAmB;QACjBC,GAAG;YAAC;YAAQ;YAAU;YAAO;SAAQ;QACrCC,KAAK;YAAC;YAAO;YAAO;YAAS;YAAS;SAAS;QAC/CC,MAAM;YAAC;SAAQ;QACfC,KAAK;YAAC;SAAQ;QACdC,MAAM;YAAC;SAAQ;QACfC,KAAK;YAAC;SAAQ;QACdC,IAAI;YAAC;YAAS;YAAW;SAAU;QACnCC,IAAI;YAAC;YAAS;YAAW;SAAU;QACnCC,OAAO;YAAC;YAAS;YAAU;YAAe;SAAc;IAC1D;IACA,oDAAoD;IACpDC,gBAAgB;QAAC;QAAQ;QAAS;KAAS;IAC3CC,qBAAqB;QAAET,KAAK;YAAC;YAAQ;SAAQ;IAAC;IAC9CU,mCAAmC;QAAC;QAAQ;QAAO;KAAO;IAC1DC,uBAAuB;IACvB,uCAAuC;IACvCC,oBAAoB;AACtB;AAGO,SAASC,eAAeC,IAAI;IACjC,IAAI,CAACA,MAAM,OAAO;IAClB,IAAI;QACF,MAAMC,MAAM,2JAAM,CAACC,KAAK,CAACF;QACzB,OAAO,IAAA,uJAAY,EAACC,KAAKnB;IAC3B,EAAE,OAAM;QACN,OAAO,IAAA,uJAAY,EAACkB,KAAKG,OAAO,CAAC,OAAO,SAASrB;IACnD;AACF"}}]
}
+5
View File
@@ -0,0 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_1mojsay._.js","static/chunks/[turbopack]_browser_dev_hmr-client_hmr-client_ts_1di75ot._.js","static/chunks/node_modules_next_dist_compiled_next-devtools_index_090k2jm.js","static/chunks/node_modules_next_dist_compiled_react-dom_096_9a-._.js","static/chunks/node_modules_next_dist_compiled_react-server-dom-turbopack_164kp-6._.js","static/chunks/node_modules_next_dist_compiled_1amofcm._.js","static/chunks/node_modules_next_dist_client_0_90u2t._.js","static/chunks/node_modules_next_dist_1e8vcs8._.js","static/chunks/node_modules_@swc_helpers_cjs_1r9vbqw._.js"],
source: "entry"
});
+5
View File
@@ -0,0 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/app_globals_0yg4wg8.css","static/chunks/_02i6nea._.js","static/chunks/node_modules_00ww-6v._.js","static/chunks/_09auhxq._.js","static/chunks/node_modules_20zwxhq._.js"],
source: "entry"
});
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/app/globals.css"],"sourcesContent":["/* ============================================================\n Forumlify —— 液态/磨砂玻璃风格(冰川蓝主题)\n 支持亮色/暗色模式 + 管理后台侧边栏 + 滑动Tab\n ============================================================ */\n\n/* ===== 亮色模式 ===== */\n:root {\n /* ===== 主题色(冰川蓝) ===== */\n --primary: #5b9bd5;\n --primary-hover: #4a8ac4;\n --primary-light: #9ac2e8;\n --primary-glow: rgba(91, 155, 213, 0.25);\n\n /* ===== 磨砂玻璃颜色 - 亮色 ===== */\n --glass-bg: rgba(255, 255, 255, 0.62);\n --glass-border: rgba(255, 255, 255, 0.30);\n --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);\n --glass-text: #1a1a2e;\n --glass-text-secondary: #4a4a6a;\n --glass-text-light: #7a7a9a;\n\n /* ===== 背景渐变 - 亮色 ===== */\n --bg-start: #dfe6e9;\n --bg-end: #b2bec3;\n\n /* ===== 圆角(改小) ===== */\n --radius: 10px;\n --radius-sm: 6px;\n\n --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n --nav-height: 64px;\n\n /* ===== 兼容旧变量(React 组件内联样式使用)===== */\n --bg: #dfe6e9;\n --modal-bg: rgba(255, 255, 255, 0.85);\n --surface: rgba(255, 255, 255, 0.18);\n --border: rgba(255, 255, 255, 0.30);\n --border-light: rgba(255, 255, 255, 0.12);\n --text: #1a1a2e;\n --text-secondary: #4a4a6a;\n --text-light: #7a7a9a;\n --primary-bg: rgba(91, 155, 213, 0.15);\n --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);\n --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);\n --navbar-bg: rgba(255, 255, 255, 0.35);\n --modal-overlay: rgba(15, 15, 26, 0.5);\n --primary-dark: #4a8ac4;\n}\n\n/* ===== 暗色模式 ===== */\n[data-theme=\"dark\"] {\n /* ===== 主题色(冰川蓝 - 暗色) ===== */\n --primary: #7cb8f0;\n --primary-hover: #8cc8ff;\n --primary-light: #b0d8ff;\n --primary-glow: rgba(91, 155, 213, 0.4);\n\n /* ===== 磨砂玻璃颜色 - 暗色 ===== */\n --glass-bg: rgba(30, 30, 50, 0.60);\n --glass-border: rgba(255, 255, 255, 0.10);\n --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);\n --glass-text: #e8e8f0;\n --glass-text-secondary: #a0a0b8;\n --glass-text-light: #707090;\n\n /* ===== 背景渐变 - 暗色 ===== */\n --bg-start: #0f0f1a;\n --bg-end: #1a1a2e;\n\n /* ===== 圆角(改小) ===== */\n --radius: 10px;\n --radius-sm: 6px;\n\n /* ===== 兼容旧变量(React 组件内联样式使用)===== */\n --bg: #0f0f1a;\n --modal-bg: rgba(24, 24, 38, 0.88);\n --surface: rgba(30, 30, 50, 0.35);\n --border: rgba(255, 255, 255, 0.10);\n --border-light: rgba(255, 255, 255, 0.06);\n --text: #e8e8f0;\n --text-secondary: #a0a0b8;\n --text-light: #707090;\n --primary-bg: rgba(124, 184, 240, 0.15);\n --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);\n --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);\n --navbar-bg: rgba(15, 15, 26, 0.55);\n --modal-overlay: rgba(15, 15, 26, 0.6);\n --primary-dark: #8cc8ff;\n}\n\n/* ===== 全局基础 ===== */\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, \"SF Pro Display\", \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n min-height: 100vh;\n background: linear-gradient(145deg, var(--bg-start) 0%, var(--bg-end) 100%);\n background-attachment: fixed;\n color: var(--glass-text);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n transition: background 0.5s ease, color 0.3s ease;\n}\n\n/* ===== SVG 图标 ===== */\nsvg {\n display: inline-block;\n vertical-align: middle;\n flex-shrink: 0;\n color: var(--glass-text-secondary);\n}\n\n/* ===== 按钮 ===== */\n.btn-primary {\n background: var(--glass-bg);\n backdrop-filter: blur(12px);\n -webkit-backdrop-filter: blur(12px);\n color: var(--glass-text);\n border: 1px solid var(--glass-border);\n padding: 10px 24px;\n border-radius: var(--radius-sm);\n font-size: 14px;\n font-weight: 600;\n cursor: pointer;\n transition: all var(--transition);\n box-shadow: var(--glass-shadow);\n}\n.btn-primary:hover {\n background: rgba(255, 255, 255, 0.25);\n transform: translateY(-2px);\n box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);\n}\n\n.btn-ghost {\n background: rgba(255, 255, 255, 0.06);\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n color: var(--glass-text-secondary);\n border: 1px solid var(--glass-border);\n padding: 10px 24px;\n border-radius: var(--radius-sm);\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n transition: all var(--transition);\n}\n.btn-ghost:hover {\n background: rgba(255, 255, 255, 0.15);\n color: var(--glass-text);\n}\n\n[data-theme=\"light\"] #authButtons .btn-ghost {\n background: rgba(74, 74, 106, 0.1);\n border-color: transparent;\n color: #30304a;\n}\n[data-theme=\"light\"] #authButtons .btn-ghost:hover {\n background: rgba(91, 155, 213, 0.2);Line truncated
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,49 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/html-parse-stringify/dist/esm/html-parse-stringify.js"],"sourcesContent":["// inlined from the former `void-elements` dependency, so the package has\n// zero runtime dependencies. `!doctype`/`!DOCTYPE` are treated as void so a\n// doctype parses as a childless node instead of swallowing the document.\nconst voidElements = {\n area: true,\n base: true,\n br: true,\n col: true,\n embed: true,\n hr: true,\n img: true,\n input: true,\n link: true,\n meta: true,\n param: true,\n source: true,\n track: true,\n wbr: true,\n '!doctype': true,\n '!DOCTYPE': true,\n};\n\nconst attrRE = /\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\"[^\"]*\"|'[^']*')/g;\n\nfunction parseTag(tag) {\n const res = {\n type: 'tag',\n name: '',\n voidElement: false,\n attrs: {},\n children: [],\n };\n\n const tagMatch = tag.match(/<\\/?([^\\s]+?)[/\\s>]/);\n if (tagMatch) {\n res.name = tagMatch[1];\n // void-element lookup stays case sensitive on purpose: react-i18next\n // relies on `<Br>` NOT being treated as a void `<br>` (see 1df0f9d)\n if (voidElements[tagMatch[1]] || tag.charAt(tag.length - 2) === '/') {\n res.voidElement = true;\n }\n\n // handle comment tag\n if (res.name.startsWith('!--')) {\n const endIndex = tag.indexOf('-->');\n return {\n type: 'comment',\n comment: endIndex !== -1 ? tag.slice(4, endIndex) : '',\n }\n }\n }\n\n const reg = new RegExp(attrRE);\n let result = null;\n for (;;) {\n result = reg.exec(tag);\n\n if (result === null) {\n break\n }\n\n if (!result[0].trim()) {\n continue\n }\n\n if (result[1]) {\n const attr = result[1].trim();\n // boolean attributes carry `null` so stringify can render them bare\n // (`<input disabled/>` instead of `<input disabled=\"\"/>`)\n let arr = [attr, null];\n\n const eq = attr.indexOf('=');\n if (eq > -1) {\n // split at the first `=` only, so `data-x=a=b` keeps its full value\n arr = [attr.slice(0, eq), attr.slice(eq + 1)];\n }\n\n res.attrs[arr[0]] = arr[1];\n reg.lastIndex--;\n } else if (result[2]) {\n res.attrs[result[2]] = result[3].trim().substring(1, result[3].length - 1);\n }\n }\n\n return res\n}\n\n// comments are matched as a whole (so `>` inside them is fine), everything\n// else tag-shaped is matched by the second alternative\nconst tagRE = /<!--[\\s\\S]*?-->|<[a-zA-Z0-9\\-!/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g;\nconst tagNameRE = /<\\/?([^\\s]+?)[/\\s>]/;\nconst whitespaceRE = /^\\s*$/;\n// tags whose content is raw text: nothing inside them is markup\nconst rawTextRE = /^(script|style)$/i;\n\n// placeholder for `<` of tags rejected by options.allowedTags; restored to a\n// literal `<` in text/attr/comment content after parsing (U+0000 cannot appear\n// in sane input, and a collision would merely render as an extra `<`)\nconst sentinel = '\\u0000';\n\n// re-used obj for quick lookups of components\nconst empty = Object.create(null);\n\nfunction restoreSentinels(nodes) {\n nodes.forEach(function (node) {\n if (node.type === 'text') {\n node.content = node.content.split(sentinel).join('<');\n return\n }\n if (node.type === 'comment') {\n node.comment = node.comment.split(sentinel).join('<');\n return\n }\n for (const key in node.attrs) {\n const value = node.attrs[key];\n if (typeof value === 'string' && value.indexOf(sentinel) > -1) {\n node.attrs[key] = value.split(sentinel).join('<');\n }\n }\n if (node.children.length) {\n restoreSentinels(node.children);\n }\n });\n}\n\nfunction parse(html, options) {\n const components = (options && options.components) || empty;\n const allowedTags = options && options.allowedTags;\n let restoreNeeded = false;\n if (allowedTags) {\n const isAllowed =\n typeof allowedTags === 'function'\n ? allowedTags\n : function (name) {\n return allowedTags.indexOf(name) > -1\n };\n // neutralize tags whose name is not allowed, so they parse as text.\n // on a disallowed match only the leading `<` is escaped and scanning\n // resumes right after it, so a valid tag glued into the same match\n // (e.g. `<bold>` inside `<10, <20, and <bold>`) still gets recognized\n let out = '';\n let pos = 0;\n tagRE.lastIndex = 0;\n let am;\n while ((am = tagRE.exec(html))) {\n const tag = am[0];\n out += html.slice(pos, am.index);\n const nameMatch = tag.match(tagNameRE);\n if (tag.startsWith('<!--') || (nameMatch && isAllowed(nameMatch[1]))) {\n out += tag;\n pos = am.index + tag.length;\n } else {\n restoreNeeded = true;\n out += sentinel;\n pos = am.index + 1;\n tagRE.lastIndex = pos;\n }\n }\n html = out + html.slLine truncated
{"offset": {"line": 390, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/i18next/dist/esm/i18next.js"],"sourcesContent":["const isString = obj => typeof obj === 'string';\nconst defer = () => {\n let res;\n let rej;\n const promise = new Promise((resolve, reject) => {\n res = resolve;\n rej = reject;\n });\n promise.resolve = res;\n promise.reject = rej;\n return promise;\n};\nconst makeString = object => {\n if (object == null) return '';\n return String(object);\n};\nconst copy = (a, s, t) => {\n a.forEach(m => {\n if (s[m]) t[m] = s[m];\n });\n};\nconst lastOfPathSeparatorRegExp = /###/g;\nconst cleanKey = key => key && key.includes('###') ? key.replace(lastOfPathSeparatorRegExp, '.') : key;\nconst canNotTraverseDeeper = object => !object || isString(object);\nconst getLastOfPath = (object, path, Empty) => {\n const stack = !isString(path) ? path : path.split('.');\n let stackIndex = 0;\n while (stackIndex < stack.length - 1) {\n if (canNotTraverseDeeper(object)) return {};\n const key = cleanKey(stack[stackIndex]);\n if (!object[key] && Empty) object[key] = new Empty();\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n object = object[key];\n } else {\n object = {};\n }\n ++stackIndex;\n }\n if (canNotTraverseDeeper(object)) return {};\n return {\n obj: object,\n k: cleanKey(stack[stackIndex])\n };\n};\nconst setPath = (object, path, newValue) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n if (obj !== undefined || path.length === 1) {\n obj[k] = newValue;\n return;\n }\n let e = path[path.length - 1];\n let p = path.slice(0, path.length - 1);\n let last = getLastOfPath(object, p, Object);\n while (last.obj === undefined && p.length) {\n e = `${p[p.length - 1]}.${e}`;\n p = p.slice(0, p.length - 1);\n last = getLastOfPath(object, p, Object);\n if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== 'undefined') {\n last.obj = undefined;\n }\n }\n last.obj[`${last.k}.${e}`] = newValue;\n};\nconst pushPath = (object, path, newValue, concat) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path, Object);\n obj[k] = obj[k] || [];\n obj[k].push(newValue);\n};\nconst getPath = (object, path) => {\n const {\n obj,\n k\n } = getLastOfPath(object, path);\n if (!obj) return undefined;\n if (!Object.prototype.hasOwnProperty.call(obj, k)) return undefined;\n return obj[k];\n};\nconst getPathWithDefaults = (data, defaultData, key) => {\n const value = getPath(data, key);\n if (value !== undefined) {\n return value;\n }\n return getPath(defaultData, key);\n};\nconst deepExtend = (target, source, overwrite) => {\n for (const prop in source) {\n if (prop !== '__proto__' && prop !== 'constructor') {\n if (Object.prototype.hasOwnProperty.call(target, prop)) {\n if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {\n if (overwrite) target[prop] = source[prop];\n } else {\n deepExtend(target[prop], source[prop], overwrite);\n }\n } else {\n target[prop] = source[prop];\n }\n }\n }\n return target;\n};\nconst regexEscape = str => str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\nconst _entityMap = {\n '&': '&amp;',\n '<': '&lt;',\n '>': '&gt;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '/': '&#x2F;'\n};\nconst escape = data => {\n if (isString(data)) {\n return data.replace(/[&<>\"'\\/]/g, s => _entityMap[s]);\n }\n return data;\n};\nclass RegExpCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.regExpMap = new Map();\n this.regExpQueue = [];\n }\n getRegExp(pattern) {\n const regExpFromCache = this.regExpMap.get(pattern);\n if (regExpFromCache !== undefined) {\n return regExpFromCache;\n }\n const regExpNew = new RegExp(pattern);\n if (this.regExpQueue.length === this.capacity) {\n this.regExpMap.delete(this.regExpQueue.shift());\n }\n this.regExpMap.set(pattern, regExpNew);\n this.regExpQueue.push(pattern);\n return regExpNew;\n }\n}\nconst chars = [' ', ',', '?', '!', ';'];\nconst looksLikeObjectPathRegExpCache = new RegExpCache(20);\nconst looksLikeObjectPath = (key, nsSeparator, keySeparator) => {\n nsSeparator = nsSeparator || '';\n keySeparator = keySeparator || '';\n const possibleChars = chars.filter(c => !nsSeparator.includes(c) && !keySeparator.includes(c));\n if (possibleChars.length === 0) return true;\n const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map(c => c === '?' ? '\\\\?' : c).join('|')})`);\n let matched = !r.test(key);\n if (!matched) {\n const ki = key.indexOf(keySeparator);\n if (ki > 0 && !r.test(key.substring(0, ki))) {\n matched = true;\n }\n }\n return matched;\n};\nconst deepFind = (obj, Line truncated
{"offset": {"line": 2818, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/bfcache-state-manager.ts"],"sourcesContent":["import type {\n CacheNode,\n FlightRouterState,\n} from '../../shared/lib/app-router-types'\nimport { useState } from 'react'\n\n// When the flag is disabled, only track the currently active tree\nconst MAX_BF_CACHE_ENTRIES = process.env.__NEXT_CACHE_COMPONENTS ? 3 : 1\n\nexport type RouterBFCacheEntry = {\n tree: FlightRouterState\n cacheNode: CacheNode\n stateKey: string\n // The entries form a linked list, sorted in order of most recently active.\n next: RouterBFCacheEntry | null\n}\n\n/**\n * Keeps track of the most recent N trees (FlightRouterStates) that were active\n * at a certain segment level. E.g. for a segment \"/a/b/[param]\", this hook\n * tracks the last N param values that the router rendered for N.\n *\n * The result of this hook precisely determines the number and order of\n * trees that are rendered in parallel at their segment level.\n *\n * The purpose of this cache is to we can preserve the React and DOM state of\n * some number of inactive trees, by rendering them in an <Activity> boundary.\n * That means it would not make sense for the the lifetime of the cache to be\n * any longer than the lifetime of the React tree; e.g. if the hook were\n * unmounted, then the React tree would be, too. So, we use React state to\n * manage it.\n *\n * Note that we don't store the RSC data for the cache entries in this hook —\n * the data for inactive segments is stored in the parent CacheNode, which\n * *does* have a longer lifetime than the React tree. This hook only determines\n * which of those trees should have their *state* preserved, by <Activity>.\n */\nexport function useRouterBFCache(\n activeTree: FlightRouterState,\n activeCacheNode: CacheNode,\n activeStateKey: string\n): RouterBFCacheEntry {\n // The currently active entry. The entries form a linked list, sorted in\n // order of most recently active. This allows us to reuse parts of the list\n // without cloning, unless there's a reordering or removal.\n // TODO: Once we start tracking back/forward history at each route level,\n // we should use the history order instead. In other words, when traversing\n // to an existing entry as a result of a popstate event, we should maintain\n // the existing order instead of moving it to the front of the list. I think\n // an initial implementation of this could be to pass an incrementing id\n // to history.pushState/replaceState, then use that here for ordering.\n const [prevActiveEntry, setPrevActiveEntry] = useState<RouterBFCacheEntry>(\n () => {\n const initialEntry: RouterBFCacheEntry = {\n tree: activeTree,\n cacheNode: activeCacheNode,\n stateKey: activeStateKey,\n next: null,\n }\n return initialEntry\n }\n )\n\n if (prevActiveEntry.tree === activeTree) {\n // Fast path. The active tree hasn't changed, so we can reuse the\n // existing state.\n return prevActiveEntry\n }\n\n // The route tree changed. Note that this doesn't mean that the tree changed\n // *at this level* — the change may be due to a child route. Either way, we\n // need to either add or update the router tree in the bfcache.\n //\n // The rest of the code looks more complicated than it actually is because we\n // can't mutate the state in place; we have to copy-on-write.\n\n // Create a new entry for the active cache key. This is the head of the new\n // linked list.\n const newActiveEntry: RouterBFCacheEntry = {\n tree: activeTree,\n cacheNode: activeCacheNode,\n stateKey: activeStateKey,\n next: null,\n }\n\n // We need to append the old list onto the new list. If the head of the new\n // list was already present in the cache, then we'll need to clone everything\n // that came before it. Then we can reuse the rest.\n let n = 1\n let oldEntry: RouterBFCacheEntry | null = prevActiveEntry\n let clonedEntry: RouterBFCacheEntry = newActiveEntry\n while (oldEntry !== null && n < MAX_BF_CACHE_ENTRIES) {\n if (oldEntry.stateKey === activeStateKey) {\n // Fast path. This entry in the old list that corresponds to the key that\n // is now active. We've already placed a clone of this entry at the front\n // of the new list. We can reuse the rest of the old list without cloning.\n // NOTE: We don't need to worry about eviction in this case because we\n // haven't increased the size of the cache, and we assume the max size\n // is constant across renders. If we were to change it to a dynamic limit,\n // then the implementation would need to account for that.\n clonedEntry.next = oldEntry.next\n break\n } else {\n // Clone the entry and append it to the list.\n n++\n const entry: RouterBFCacheEntry = {\n tree: oldEntry.tree,\n cacheNode: oldEntry.Line truncated
{"offset": {"line": 2915, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/client-boundary-params.browser.ts"],"sourcesContent":["// Browser variant of `./client-boundary-params`. In the browser the params and\n// searchParams are created at render time rather than dynamically tracked.\nexport { createRenderParamsFromClient as createClientParams } from '../request/params.browser'\nexport { createRenderSearchParamsFromClient as createClientSearchParams } from '../request/search-params.browser'\n"],"names":["createClientParams","createRenderParamsFromClient","createClientSearchParams","createRenderSearchParamsFromClient"],"mappings":"AAAA,+EAA+E;AAC/E,2EAA2E;;;;;;;;;;;;;;;IAClCA,kBAAkB,EAAA;eAAlDC,eAAAA,4BAA4B;;IACUC,wBAAwB,EAAA;eAA9DC,qBAAAA,kCAAkC;;;+BADwB;qCACY","ignoreList":[0]}},
{"offset": {"line": 2951, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/client-page.tsx"],"sourcesContent":["'use client'\n\nimport type { ParsedUrlQuery } from 'querystring'\nimport type { Params } from '../../server/request/params'\nimport { LayoutRouterContext } from '../../shared/lib/app-router-context.shared-runtime'\nimport { use } from 'react'\nimport { urlSearchParamsToParsedUrlQuery } from '../route-params'\nimport { SearchParamsContext } from '../../shared/lib/hooks-client-context.shared-runtime'\nimport {\n createClientParams,\n createClientSearchParams,\n} from './client-boundary-params'\n\n/**\n * When the Page is a client component we send the params and searchParams to this client wrapper\n * where they are turned into dynamically tracked values before being passed to the actual Page component.\n *\n * additionally we may send promises representing the params and searchParams. We don't ever use these passed\n * values but it can be necessary for the sender to send a Promise that doesn't resolve in certain situations.\n * It is up to the caller to decide if the promises are needed.\n */\nexport function ClientPageRoot({\n Component,\n serverProvidedParams,\n}: {\n Component: React.ComponentType<any>\n serverProvidedParams: null | {\n searchParams: ParsedUrlQuery\n params: Params\n promises: Array<Promise<any>> | null\n }\n}) {\n let searchParams: ParsedUrlQuery\n let params: Params\n if (serverProvidedParams !== null) {\n searchParams = serverProvidedParams.searchParams\n params = serverProvidedParams.params\n } else {\n // When Cache Components is enabled, the server does not pass the params as\n // props; they are parsed on the client and passed via context.\n const layoutRouterContext = use(LayoutRouterContext)\n params =\n layoutRouterContext !== null ? layoutRouterContext.parentParams : {}\n\n // This is an intentional behavior change: when Cache Components is enabled,\n // client segments receive the \"canonical\" search params, not the\n // rewritten ones. Users should either call useSearchParams directly or pass\n // the rewritten ones in from a Server Component.\n // TODO: Log a deprecation error when this object is accessed\n searchParams = urlSearchParamsToParsedUrlQuery(use(SearchParamsContext)!)\n }\n\n const clientSearchParams = createClientSearchParams(searchParams)\n const clientParams = createClientParams(params)\n\n return <Component params={clientParams} searchParams={clientSearchParams} />\n}\n"],"names":["ClientPageRoot","Component","serverProvidedParams","searchParams","params","layoutRouterContext","use","LayoutRouterContext","parentParams","urlSearchParamsToParsedUrlQuery","SearchParamsContext","clientSearchParams","createClientSearchParams","clientParams","createClientParams"],"mappings":";;;+BAqBgBA,kBAAAA;;;eAAAA;;;;+CAjBoB;uBAChB;6BAC4B;iDACZ;sCAI7B;AAUA,SAASA,eAAe,EAC7BC,SAAS,EACTC,oBAAoB,EAQrB;IACC,IAAIC;IACJ,IAAIC;IACJ,IAAIF,yBAAyB,MAAM;QACjCC,eAAeD,qBAAqBC,YAAY;QAChDC,SAASF,qBAAqBE,MAAM;IACtC,OAAO;QACL,2EAA2E;QAC3E,+DAA+D;QAC/D,MAAMC,sBAAsBC,CAAAA,GAAAA,OAAAA,GAAG,EAACC,+BAAAA,mBAAmB;QACnDH,SACEC,wBAAwB,OAAOA,oBAAoBG,YAAY,GAAG,CAAC;QAErE,4EAA4E;QAC5E,iEAAiE;QACjE,4EAA4E;QAC5E,iDAAiD;QACjD,6DAA6D;QAC7DL,eAAeM,CAAAA,GAAAA,aAAAA,+BAA+B,EAACH,CAAAA,GAAAA,OAAAA,GAAG,EAACI,iCAAAA,mBAAmB;IACxE;IAEA,MAAMC,qBAAqBC,CAAAA,GAAAA,sBAAAA,wBAAwB,EAACT;IACpD,MAAMU,eAAeC,CAAAA,GAAAA,sBAAAA,kBAAkB,EAACV;IAExC,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACH,WAAAA;QAAUG,QAAQS;QAAcV,cAAcQ;;AACxD","ignoreList":[0]}},
{"offset": {"line": 3002, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/client-segment.tsx"],"sourcesContent":["'use client'\n\nimport type { Params } from '../../server/request/params'\nimport { LayoutRouterContext } from '../../shared/lib/app-router-context.shared-runtime'\nimport { use } from 'react'\nimport { createClientParams } from './client-boundary-params'\n\n/**\n * When the Page is a client component we send the params to this client wrapper\n * where they are turned into dynamically tracked values before being passed to the actual Segment component.\n *\n * additionally we may send a promise representing params. We don't ever use this passed\n * value but it can be necessary for the sender to send a Promise that doesn't resolve in certain situations\n * such as when cacheComponents is enabled. It is up to the caller to decide if the promises are needed.\n */\nexport function ClientSegmentRoot({\n Component,\n slots,\n serverProvidedParams,\n}: {\n Component: React.ComponentType<any>\n slots: { [key: string]: React.ReactNode }\n serverProvidedParams: null | {\n params: Params\n promises: Array<Promise<any>> | null\n }\n}) {\n let params: Params\n if (serverProvidedParams !== null) {\n params = serverProvidedParams.params\n } else {\n // When Cache Components is enabled, the server does not pass the params\n // as props; they are parsed on the client and passed via context.\n const layoutRouterContext = use(LayoutRouterContext)\n params =\n layoutRouterContext !== null ? layoutRouterContext.parentParams : {}\n }\n\n const clientParams = createClientParams(params)\n\n return <Component {...slots} params={clientParams} />\n}\n"],"names":["ClientSegmentRoot","Component","slots","serverProvidedParams","params","layoutRouterContext","use","LayoutRouterContext","parentParams","clientParams","createClientParams"],"mappings":";;;+BAegBA,qBAAAA;;;eAAAA;;;;+CAZoB;uBAChB;sCACe;AAU5B,SAASA,kBAAkB,EAChCC,SAAS,EACTC,KAAK,EACLC,oBAAoB,EAQrB;IACC,IAAIC;IACJ,IAAID,yBAAyB,MAAM;QACjCC,SAASD,qBAAqBC,MAAM;IACtC,OAAO;QACL,wEAAwE;QACxE,kEAAkE;QAClE,MAAMC,sBAAsBC,CAAAA,GAAAA,OAAAA,GAAG,EAACC,+BAAAA,mBAAmB;QACnDH,SACEC,wBAAwB,OAAOA,oBAAoBG,YAAY,GAAG,CAAC;IACvE;IAEA,MAAMC,eAAeC,CAAAA,GAAAA,sBAAAA,kBAAkB,EAACN;IAExC,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACH,WAAAA;QAAW,GAAGC,KAAK;QAAEE,QAAQK;;AACvC","ignoreList":[0]}},
{"offset": {"line": 3042, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/instant-validation/boundary.tsx"],"sourcesContent":["'use client'\n// We can't fork a `use client` boundary based on node-client vs browser-client.\n// We need to fork one level deeper.\nexport {\n InstantValidationBoundaryContext,\n PlaceValidationBoundaryBelowThisLevel,\n RenderValidationBoundaryAtThisLevel,\n SlotMarker,\n} from './impl'\n"],"names":["InstantValidationBoundaryContext","PlaceValidationBoundaryBelowThisLevel","RenderValidationBoundaryAtThisLevel","SlotMarker"],"mappings":";;;;;;;;;;;;;;;;IAIEA,gCAAgC,EAAA;eAAhCA,MAAAA,gCAAgC;;IAChCC,qCAAqC,EAAA;eAArCA,MAAAA,qCAAqC;;IACrCC,mCAAmC,EAAA;eAAnCA,MAAAA,mCAAmC;;IACnCC,UAAU,EAAA;eAAVA,MAAAA,UAAU;;;sBACL","ignoreList":[0]}},
{"offset": {"line": 3083, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/instant-validation/impl.browser.tsx"],"sourcesContent":["export const InstantValidationBoundaryContext = null\nexport const PlaceValidationBoundaryBelowThisLevel = null\nexport const RenderValidationBoundaryAtThisLevel = null\nexport const SlotMarker = null\n"],"names":["InstantValidationBoundaryContext","PlaceValidationBoundaryBelowThisLevel","RenderValidationBoundaryAtThisLevel","SlotMarker"],"mappings":";;;;;;;;;;;;;;;;IAAaA,gCAAgC,EAAA;eAAhCA;;IACAC,qCAAqC,EAAA;eAArCA;;IACAC,mCAAmC,EAAA;eAAnCA;;IACAC,UAAU,EAAA;eAAVA;;;AAHN,MAAMH,mCAAmC;AACzC,MAAMC,wCAAwC;AAC9C,MAAMC,sCAAsC;AAC5C,MAAMC,aAAa","ignoreList":[0]}},
{"offset": {"line": 3127, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/layout-router.tsx"],"sourcesContent":["'use client'\n\nimport type { CacheNode } from '../../shared/lib/app-router-types'\nimport type { LoadingModuleData } from '../../shared/lib/app-router-types'\nimport type {\n FlightRouterState,\n FlightSegmentPath,\n Segment,\n} from '../../shared/lib/app-router-types'\nimport type { ErrorComponent } from './error-boundary'\nimport type { FocusAndScrollRef } from './router-reducer/router-reducer-types'\n\nimport React, {\n Activity,\n Fragment,\n useContext,\n use,\n Suspense,\n useDeferredValue,\n useLayoutEffect,\n type FragmentInstance,\n type JSX,\n type ActivityProps,\n} from 'react'\nimport ReactDOM from 'react-dom'\nimport {\n LayoutRouterContext,\n GlobalLayoutRouterContext,\n TemplateContext,\n} from '../../shared/lib/app-router-context.shared-runtime'\nimport { unresolvedThenable } from './unresolved-thenable'\nimport { ErrorBoundary } from './error-boundary'\nimport { disableSmoothScrollDuringRouteTransition } from '../../shared/lib/router/utils/disable-smooth-scroll'\nimport { RedirectBoundary } from './redirect-boundary'\nimport { HTTPAccessFallbackBoundary } from './http-access-fallback/error-boundary'\nimport {\n InstantValidationBoundaryContext,\n RenderValidationBoundaryAtThisLevel,\n} from './instant-validation/boundary'\nimport { createRouterCacheKey } from './router-reducer/create-router-cache-key'\nimport {\n useRouterBFCache,\n type RouterBFCacheEntry,\n} from './bfcache-state-manager'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport {\n NavigationPromisesContext,\n type NavigationPromises,\n} from '../../shared/lib/hooks-client-context.shared-runtime'\nimport { getParamValueFromCacheKey } from '../route-params'\nimport type { Params } from '../../server/request/params'\nimport { isDeferredRsc } from './router-reducer/ppr-navigations'\n\nconst enableNewScrollHandler = process.env.__NEXT_APP_NEW_SCROLL_HANDLER\n\nconst __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = (\n ReactDOM as any\n).__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE\n\n// TODO-APP: Replace with new React API for finding dom nodes without a `ref` when available\n/**\n * Wraps ReactDOM.findDOMNode with additional logic to hide React Strict Mode warning\n */\nfunction findDOMNode(\n instance: React.ReactInstance | null | undefined\n): Element | Text | null {\n // Tree-shake for server bundle\n if (typeof window === 'undefined') return null\n\n // __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.findDOMNode is null during module init.\n // We need to lazily reference it.\n const internal_reactDOMfindDOMNode =\n __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.findDOMNode\n return internal_reactDOMfindDOMNode(instance)\n}\n\nconst rectProperties = [\n 'bottom',\n 'height',\n 'left',\n 'right',\n 'top',\n 'width',\n 'x',\n 'y',\n] as const\n/**\n * Check if a HTMLElement is hidden or fixed/sticky position\n */\nfunction shouldSkipElement(element: HTMLElement) {\n // we ignore fixed or sticky positioned elements since they'll likely pass the \"in-viewport\" check\n // and will result in a situation we bail on scroll because of something like a fixed nav,\n // even though the actual page content is offscreen\n if (['sticky', 'fixed'].includes(getComputedStyle(element).position)) {\n return true\n }\n\n // Uses `getBoundingClientRect` to check if the element is hidden instead of `offsetParent`\n // because `offsetParent` doesn't consider document/body\n const rect = element.getBoundingClientRect()\n return rectProperties.every((item) => rect[item] === 0)\n}\n\nconst enum ScrollTargetState {\n NoClientRects,\n InViewport,\n OutOfViewport,\n}\n\n/**\n * Resolve the root scroll padding used by the viewport check.\n *\n * Computed lengths serialize as pixels, but percentages remain relative to\n * the scrollport. Preserve the existing behavior for values that still\n * contain unresolved CSS math.\n */\nfunction getScrollPaddingTopInPixels(\n htmlElement: HTMLElement,\n viewportHeight: number\n): number {\n const scrollPaddingTop = getComputedStyle(htmlElement).scrollPaddingTop\n const value = Number.parseFloat(scrollPaddingTop)\n\n if (!Number.isFinite(value) || value < 0) {\n return 0\n }\n\n if (scrollPaddingTop.endsWith('px')) {\n return value\n }\n\n if (scrollPaddingTop.endsWith('%')) {\n return (value / 100) * viewportHeight\n }\n\n return 0\n}\n\n/**\n * Check where the top corner of the HTMLElement is relative to the usable\n * viewport.\n *\n * Scroll padding is resolved lazily so an empty Fragment does not trigger a\n * computed style read. The caller caches the value for the second check.\n */\nfunction getScrollTargetState(\n instance: HTMLElement | FragmentInstancLine truncated
{"offset": {"line": 3839, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/render-from-template-context.tsx"],"sourcesContent":["'use client'\n\nimport React, { useContext, type JSX } from 'react'\nimport { TemplateContext } from '../../shared/lib/app-router-context.shared-runtime'\n\nexport default function RenderFromTemplateContext(): JSX.Element {\n const children = useContext(TemplateContext)\n return <>{children}</>\n}\n"],"names":["RenderFromTemplateContext","children","useContext","TemplateContext"],"mappings":";;;+BAKA,WAAA;;;eAAwBA;;;;;iEAHoB;+CACZ;AAEjB,SAASA;IACtB,MAAMC,WAAWC,CAAAA,GAAAA,OAAAA,UAAU,EAACC,+BAAAA,eAAe;IAC3C,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAAA,YAAA,QAAA,EAAA;kBAAGF;;AACZ","ignoreList":[0]}},
{"offset": {"line": 3869, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/request/params.browser.dev.ts"],"sourcesContent":["import type { Params } from '../../server/request/params'\n\nimport { ReflectAdapter } from '../../server/web/spec-extension/adapters/reflect'\nimport {\n describeStringPropertyAccess,\n wellKnownProperties,\n} from '../../shared/lib/utils/reflect-utils'\n\ninterface CacheLifetime {}\nconst CachedParams = new WeakMap<CacheLifetime, Promise<Params>>()\n\nfunction makeDynamicallyTrackedParamsWithDevWarnings(\n underlyingParams: Params\n): Promise<Params> {\n const cachedParams = CachedParams.get(underlyingParams)\n if (cachedParams) {\n return cachedParams\n }\n\n // We don't use makeResolvedReactPromise here because params\n // supports copying with spread and we don't want to unnecessarily\n // instrument the promise with spreadable properties of ReactPromise.\n const promise = Promise.resolve(underlyingParams)\n\n const proxiedProperties = new Set<string>()\n\n Object.keys(underlyingParams).forEach((prop) => {\n if (wellKnownProperties.has(prop)) {\n // These properties cannot be shadowed because they need to be the\n // true underlying value for Promises to work correctly at runtime\n } else {\n proxiedProperties.add(prop)\n }\n })\n\n const proxiedPromise = new Proxy(promise, {\n get(target, prop, receiver) {\n if (typeof prop === 'string') {\n if (\n // We are accessing a property that was proxied to the promise instance\n proxiedProperties.has(prop)\n ) {\n const expression = describeStringPropertyAccess('params', prop)\n warnForSyncAccess(expression)\n }\n }\n return ReflectAdapter.get(target, prop, receiver)\n },\n set(target, prop, value, receiver) {\n if (typeof prop === 'string') {\n proxiedProperties.delete(prop)\n }\n return ReflectAdapter.set(target, prop, value, receiver)\n },\n ownKeys(target) {\n warnForEnumeration()\n return Reflect.ownKeys(target)\n },\n })\n\n CachedParams.set(underlyingParams, proxiedPromise)\n return proxiedPromise\n}\n\nfunction warnForSyncAccess(expression: string) {\n console.error(\n `A param property was accessed directly with ${expression}. ` +\n `\\`params\\` is a Promise and must be unwrapped with \\`React.use()\\` before accessing its properties. ` +\n `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`\n )\n}\n\nfunction warnForEnumeration() {\n console.error(\n `params are being enumerated. ` +\n `\\`params\\` is a Promise and must be unwrapped with \\`React.use()\\` before accessing its properties. ` +\n `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`\n )\n}\n\nexport function createRenderParamsFromClient(\n clientParams: Params\n): Promise<Params> {\n return makeDynamicallyTrackedParamsWithDevWarnings(clientParams)\n}\n"],"names":["createRenderParamsFromClient","CachedParams","WeakMap","makeDynamicallyTrackedParamsWithDevWarnings","underlyingParams","cachedParams","get","promise","Promise","resolve","proxiedProperties","Set","Object","keys","forEach","prop","wellKnownProperties","has","add","proxiedPromise","Proxy","target","receiver","expression","describeStringPropertyAccess","warnForSyncAccess","ReflectAdapter","set","value","delete","ownKeys","warnForEnumeration","Reflect","console","error","clientParams"],"mappings":";;;+BAgFgBA,gCAAAA;;;eAAAA;;;yBA9Ee;8BAIxB;AAGP,MAAMC,eAAe,IAAIC;AAEzB,SAASC,4CACPC,gBAAwB;IAExB,MAAMC,eAAeJ,aAAaK,GAAG,CAACF;IACtC,IAAIC,cAAc;QAChB,OAAOA;IACT;IAEA,4DAA4D;IAC5D,kEAAkE;IAClE,qEAAqE;IACrE,MAAME,UAAUC,QAAQC,OAAO,CAACL;IAEhC,MAAMM,oBAAoB,IAAIC;IAE9BC,OAAOC,IAAI,CAACT,kBAAkBU,OAAO,CAAC,CAACC;QACrC,IAAIC,cAAAA,mBAAmB,CAACC,GAAG,CAACF,OAAO;QACjC,kEAAkE;QAClE,kEAAkE;QACpE,OAAO;YACLL,kBAAkBQ,GAAG,CAACH;QACxB;IACF;IAEA,MAAMI,iBAAiB,IAAIC,MAAMb,SAAS;QACxCD,KAAIe,MAAM,EAAEN,IAAI,EAAEO,QAAQ;YACxB,IAAI,OAAOP,SAAS,UAAU;gBAC5B,IACE,AACAL,kBAAkBO,GAAG,CAACF,OACtB,0CAFuE;oBAGvE,MAAMQ,aAAaC,CAAAA,GAAAA,cAAAA,4BAA4B,EAAC,UAAUT;oBAC1DU,kBAAkBF;gBACpB;YACF;YACA,OAAOG,SAAAA,cAAc,CAACpB,GAAG,CAACe,QAAQN,MAAMO;QAC1C;QACAK,KAAIN,MAAM,EAAEN,IAAI,EAAEa,KAAK,EAAEN,QAAQ;YAC/B,IAAI,OAAOP,SAAS,UAAU;gBAC5BL,kBAAkBmB,MAAM,CAACd;YAC3B;YACA,OAAOW,SAAAA,cAAc,CAACC,GAAG,CAACN,QAAQN,MAAMa,OAAON;QACjD;QACAQ,SAAQT,MAAM;YACZU;YACA,OAAOC,QAAQF,OAAO,CAACT;QACzB;IACF;IAEApB,aAAa0B,GAAG,CAACvB,kBAAkBe;IACnC,OAAOA;AACT;AAEA,SAASM,kBAAkBF,UAAkB;IAC3CU,QAAQC,KAAK,CACX,CAAC,4CAA4C,EAAEX,WAAW,EAAE,CAAC,GAC3D,CAAC,oGAAoG,CAAC,GACtG,CAAC,8DAA8D,CAAC;AAEtE;AAEA,SAASQ;IACPE,QAAQC,KAAK,CACX,CAAC,6BAA6B,CAAC,GAC7B,CAAC,oGAAoG,CAAC,GACtG,CAAC,8DAA8D,CAAC;AAEtE;AAEO,SAASlC,6BACdmC,YAAoB;IAEpB,OAAOhC,4CAA4CgC;AACrD","ignoreList":[0]}},
{"offset": {"line": 3943, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/request/params.browser.ts"],"sourcesContent":["export const createRenderParamsFromClient =\n process.env.NODE_ENV === 'development'\n ? (require('./params.browser.dev') as typeof import('./params.browser.dev'))\n .createRenderParamsFromClient\n : (\n require('./params.browser.prod') as typeof import('./params.browser.prod')\n ).createRenderParamsFromClient\n"],"names":["createRenderParamsFromClient","process","env","NODE_ENV","require"],"mappings":"AACEC,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BADdH,gCAAAA;;;eAAAA;;;AAAN,MAAMA,sEAENI,QAAQ,mHACNJ,4BAA4B,GAE7BI,QAAQ,yBACRJ,4BAA4B","ignoreList":[0]}},
{"offset": {"line": 3966, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/request/search-params.browser.dev.ts"],"sourcesContent":["import type { SearchParams } from '../../server/request/search-params'\n\nimport { ReflectAdapter } from '../../server/web/spec-extension/adapters/reflect'\nimport {\n describeStringPropertyAccess,\n describeHasCheckingStringProperty,\n wellKnownProperties,\n} from '../../shared/lib/utils/reflect-utils'\n\ninterface CacheLifetime {}\nconst CachedSearchParams = new WeakMap<CacheLifetime, Promise<SearchParams>>()\n\nfunction makeUntrackedSearchParamsWithDevWarnings(\n underlyingSearchParams: SearchParams\n): Promise<SearchParams> {\n const cachedSearchParams = CachedSearchParams.get(underlyingSearchParams)\n if (cachedSearchParams) {\n return cachedSearchParams\n }\n\n const proxiedProperties = new Set<string>()\n const promise = Promise.resolve(underlyingSearchParams)\n\n Object.keys(underlyingSearchParams).forEach((prop) => {\n if (wellKnownProperties.has(prop)) {\n // These properties cannot be shadowed because they need to be the\n // true underlying value for Promises to work correctly at runtime\n } else {\n proxiedProperties.add(prop)\n }\n })\n\n const proxiedPromise = new Proxy(promise, {\n get(target, prop, receiver) {\n if (typeof prop === 'string') {\n if (\n !wellKnownProperties.has(prop) &&\n (proxiedProperties.has(prop) ||\n // We are accessing a property that doesn't exist on the promise nor\n // the underlying searchParams.\n Reflect.has(target, prop) === false)\n ) {\n const expression = describeStringPropertyAccess('searchParams', prop)\n warnForSyncAccess(expression)\n }\n }\n return ReflectAdapter.get(target, prop, receiver)\n },\n set(target, prop, value, receiver) {\n if (typeof prop === 'string') {\n proxiedProperties.delete(prop)\n }\n return Reflect.set(target, prop, value, receiver)\n },\n has(target, prop) {\n if (typeof prop === 'string') {\n if (\n !wellKnownProperties.has(prop) &&\n (proxiedProperties.has(prop) ||\n // We are accessing a property that doesn't exist on the promise nor\n // the underlying searchParams.\n Reflect.has(target, prop) === false)\n ) {\n const expression = describeHasCheckingStringProperty(\n 'searchParams',\n prop\n )\n warnForSyncAccess(expression)\n }\n }\n return Reflect.has(target, prop)\n },\n ownKeys(target) {\n warnForSyncSpread()\n return Reflect.ownKeys(target)\n },\n })\n\n CachedSearchParams.set(underlyingSearchParams, proxiedPromise)\n return proxiedPromise\n}\n\nfunction warnForSyncAccess(expression: string) {\n console.error(\n `A searchParam property was accessed directly with ${expression}. ` +\n `\\`searchParams\\` is a Promise and must be unwrapped with \\`React.use()\\` before accessing its properties. ` +\n `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`\n )\n}\n\nfunction warnForSyncSpread() {\n console.error(\n `The keys of \\`searchParams\\` were accessed directly. ` +\n `\\`searchParams\\` is a Promise and must be unwrapped with \\`React.use()\\` before accessing its properties. ` +\n `Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis`\n )\n}\n\nexport function createRenderSearchParamsFromClient(\n underlyingSearchParams: SearchParams\n): Promise<SearchParams> {\n return makeUntrackedSearchParamsWithDevWarnings(underlyingSearchParams)\n}\n"],"names":["createRenderSearchParamsFromClient","CachedSearchParams","WeakMap","makeUntrackedSearchParamsWithDevWarnings","underlyingSearchParams","cachedSearchParams","get","proxiedProperties","Set","promise","Promise","resolve","Object","keys","forEach","prop","wellKnownProperties","has","add","proxiedPromise","Proxy","target","receiver","Reflect","expression","describeStringPropertyAccess","warnForSyncAccess","ReflectAdapter","set","value","delete","describeHasCheckingStringProperty","ownKeys","warnForSyncSpread","console","error"],"mappings":";;;+BAkGgBA,sCAAAA;;;eAAAA;;;yBAhGe;8BAKxB;AAGP,MAAMC,qBAAqB,IAAIC;AAE/B,SAASC,yCACPC,sBAAoC;IAEpC,MAAMC,qBAAqBJ,mBAAmBK,GAAG,CAACF;IAClD,IAAIC,oBAAoB;QACtB,OAAOA;IACT;IAEA,MAAME,oBAAoB,IAAIC;IAC9B,MAAMC,UAAUC,QAAQC,OAAO,CAACP;IAEhCQ,OAAOC,IAAI,CAACT,wBAAwBU,OAAO,CAAC,CAACC;QAC3C,IAAIC,cAAAA,mBAAmB,CAACC,GAAG,CAACF,OAAO;QACjC,kEAAkE;QAClE,kEAAkE;QACpE,OAAO;YACLR,kBAAkBW,GAAG,CAACH;QACxB;IACF;IAEA,MAAMI,iBAAiB,IAAIC,MAAMX,SAAS;QACxCH,KAAIe,MAAM,EAAEN,IAAI,EAAEO,QAAQ;YACxB,IAAI,OAAOP,SAAS,UAAU;gBAC5B,IACE,CAACC,cAAAA,mBAAmB,CAACC,GAAG,CAACF,SACxBR,CAAAA,kBAAkBU,GAAG,CAACF,SACrB,oEAAoE;gBACpE,+BAA+B;gBAC/BQ,QAAQN,GAAG,CAACI,QAAQN,UAAU,KAAI,GACpC;oBACA,MAAMS,aAAaCLine truncated
{"offset": {"line": 4050, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/request/search-params.browser.ts"],"sourcesContent":["export const createRenderSearchParamsFromClient =\n process.env.NODE_ENV === 'development'\n ? (\n require('./search-params.browser.dev') as typeof import('./search-params.browser.dev')\n ).createRenderSearchParamsFromClient\n : (\n require('./search-params.browser.prod') as typeof import('./search-params.browser.prod')\n ).createRenderSearchParamsFromClient\n"],"names":["createRenderSearchParamsFromClient","process","env","NODE_ENV","require"],"mappings":"AACEC,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BADdH,sCAAAA;;;eAAAA;;;AAAN,MAAMA,4EAGLI,QAAQ,0HACRJ,kCAAkC,GAElCI,QAAQ,gCACRJ,kCAAkC","ignoreList":[0]}},
{"offset": {"line": 4073, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/cjs/react-jsx-dev-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-dev-runtime.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 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 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 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 propLine truncated
{"offset": {"line": 4289, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/jsx-dev-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-dev-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-dev-runtime.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 4300, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/metadata/generate/icon-mark.tsx"],"sourcesContent":["'use client'\n\n// This is a client component that only renders during SSR,\n// but will be replaced during streaming with an icon insertion script tag.\n// We don't want it to be presented anywhere so it's only visible during streaming,\n// right after the icon meta tags so that browser can pick it up as soon as it's rendered.\n// Note: we don't just emit the script here because we only need the script if it's not in the head,\n// and we need it to be hoistable alongside the other metadata but sync scripts are not hoistable.\nexport const IconMark = () => {\n if (typeof window !== 'undefined') {\n return null\n }\n return <meta name=\"«nxt-icon»\" />\n}\n"],"names":["IconMark","window","meta","name"],"mappings":";;;+BAQaA,YAAAA;;;eAAAA;;;;AAAN,MAAMA,WAAW;IACtB,IAAI,OAAOC,WAAW,aAAa;QACjC,OAAO;IACT;IACA,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACC,QAAAA;QAAKC,MAAK;;AACpB","ignoreList":[0]}},
{"offset": {"line": 4322, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/web/spec-extension/adapters/reflect.ts"],"sourcesContent":["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"],"names":["ReflectAdapter","get","target","prop","receiver","value","Reflect","bind","set","has","deleteProperty"],"mappings":";;;+BAAaA,kBAAAA;;;eAAAA;;;AAAN,MAAMA;IACX,OAAOC,IACLC,MAAS,EACTC,IAAqB,EACrBC,QAAiB,EACZ;QACL,MAAMC,QAAQC,QAAQL,GAAG,CAACC,QAAQC,MAAMC;QACxC,IAAI,OAAOC,UAAU,YAAY;YAC/B,OAAOA,MAAME,IAAI,CAACL;QACpB;QAEA,OAAOG;IACT;IAEA,OAAOG,IACLN,MAAS,EACTC,IAAqB,EACrBE,KAAU,EACVD,QAAa,EACJ;QACT,OAAOE,QAAQE,GAAG,CAACN,QAAQC,MAAME,OAAOD;IAC1C;IAEA,OAAOK,IAAsBP,MAAS,EAAEC,IAAqB,EAAW;QACtE,OAAOG,QAAQG,GAAG,CAACP,QAAQC;IAC7B;IAEA,OAAOO,eACLR,MAAS,EACTC,IAAqB,EACZ;QACT,OAAOG,QAAQI,cAAc,CAACR,QAAQC;IACxC;AACF","ignoreList":[0]}},
{"offset": {"line": 4353, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/disable-smooth-scroll.ts"],"sourcesContent":["/**\n * Run function with `scroll-behavior: auto` applied to `<html/>`.\n * This css change will be reverted after the function finishes.\n */\nexport function disableSmoothScrollDuringRouteTransition(\n fn: () => void,\n options: { dontForceLayout?: boolean; onlyHashChange?: boolean } = {}\n) {\n // if only the hash is changed, we don't need to disable smooth scrolling\n // we only care to prevent smooth scrolling when navigating to a new page to avoid jarring UX\n if (options.onlyHashChange) {\n fn()\n return\n }\n\n const htmlElement = document.documentElement\n const hasDataAttribute = htmlElement.dataset.scrollBehavior === 'smooth'\n\n if (!hasDataAttribute) {\n // Warn if smooth scrolling is detected but no data attribute is present\n if (\n process.env.NODE_ENV === 'development' &&\n getComputedStyle(htmlElement).scrollBehavior === 'smooth'\n ) {\n const { warnOnce } =\n require('../../utils/warn-once') as typeof import('../../utils/warn-once')\n warnOnce(\n 'Detected `scroll-behavior: smooth` on the `<html>` element. To disable smooth scrolling during route transitions, ' +\n 'add `data-scroll-behavior=\"smooth\"` to your <html> element. ' +\n 'Learn more: https://nextjs.org/docs/messages/missing-data-scroll-behavior'\n )\n }\n // No smooth scrolling configured, run directly without style manipulation\n fn()\n return\n }\n\n // Proceed with temporarily disabling smooth scrolling\n const existing = htmlElement.style.scrollBehavior\n htmlElement.style.scrollBehavior = 'auto'\n if (!options.dontForceLayout) {\n // In Chrome-based browsers we need to force reflow before calling `scrollTo`.\n // Otherwise it will not pickup the change in scrollBehavior\n // More info here: https://github.com/vercel/next.js/issues/40719#issuecomment-1336248042\n htmlElement.getClientRects()\n }\n fn()\n htmlElement.style.scrollBehavior = existing\n}\n"],"names":["disableSmoothScrollDuringRouteTransition","fn","options","onlyHashChange","htmlElement","document","documentElement","hasDataAttribute","dataset","scrollBehavior","process","env","NODE_ENV","getComputedStyle","warnOnce","require","existing","style","dontForceLayout","getClientRects"],"mappings":"AAqBMU,QAAQC,GAAG,CAACC,QAAQ;AArB1B;;;CAGC,GAAA;;;;+BACeZ,4CAAAA;;;eAAAA;;;AAAT,SAASA,yCACdC,EAAc,EACdC,UAAmE,CAAC,CAAC;IAErE,yEAAyE;IACzE,6FAA6F;IAC7F,IAAIA,QAAQC,cAAc,EAAE;QAC1BF;QACA;IACF;IAEA,MAAMG,cAAcC,SAASC,eAAe;IAC5C,MAAMC,mBAAmBH,YAAYI,OAAO,CAACC,cAAc,KAAK;IAEhE,IAAI,CAACF,kBAAkB;QACrB,wEAAwE;QACxE,wDAC2B,iBACzBM,iBAAiBT,aAAaK,cAAc,KAAK,UACjD;YACA,MAAM,EAAEK,QAAQ,EAAE,GAChBC,QAAQ;YACVD,SACE,uHACE,iEACA;QAEN;QACA,0EAA0E;QAC1Eb;QACA;IACF;IAEA,sDAAsD;IACtD,MAAMe,WAAWZ,YAAYa,KAAK,CAACR,cAAc;IACjDL,YAAYa,KAAK,CAACR,cAAc,GAAG;IACnC,IAAI,CAACP,QAAQgB,eAAe,EAAE;QAC5B,8EAA8E;QAC9E,4DAA4D;QAC5D,yFAAyF;QACzFd,YAAYe,cAAc;IAC5B;IACAlB;IACAG,YAAYa,KAAK,CAACR,cAAc,GAAGO;AACrC","ignoreList":[0]}},
{"offset": {"line": 4402, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils/reflect-utils.ts"],"sourcesContent":["// 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"],"names":["describeHasCheckingStringProperty","describeStringPropertyAccess","wellKnownProperties","isDefinitelyAValidIdentifier","target","prop","test","JSON","stringify","stringifiedProp","Set"],"mappings":"AAAA,6EAA6E;AAC7E,iFAAiF;AACjF,0FAA0F;AAC1F,uFAAuF;AACvF,2DAA2D;;;;;;;;;;;;;;;;IAU3CA,iCAAiC,EAAA;eAAjCA;;IAPAC,4BAA4B,EAAA;eAA5BA;;IAeHC,mBAAmB,EAAA;eAAnBA;;;AAjBb,MAAMC,+BAA+B;AAE9B,SAASF,6BAA6BG,MAAc,EAAEC,IAAY;IACvE,IAAIF,6BAA6BG,IAAI,CAACD,OAAO;QAC3C,OAAO,CAAC,EAAE,EAAED,OAAO,CAAC,EAAEC,KAAK,EAAE,CAAC;IAChC;IACA,OAAO,CAAC,EAAE,EAAED,OAAO,CAAC,EAAEG,KAAKC,SAAS,CAACH,MAAM,GAAG,CAAC;AACjD;AAEO,SAASL,kCACdI,MAAc,EACdC,IAAY;IAEZ,MAAMI,kBAAkBF,KAAKC,SAAS,CAACH;IACvC,OAAO,CAAC,cAAc,EAAED,OAAO,EAAE,EAAEK,gBAAgB,OAAO,EAAEA,gBAAgB,IAAI,EAAEL,OAAO,cAAc,CAAC;AAC1G;AAEO,MAAMF,sBAAsB,IAAIQ,IAAI;IACzC;IACA;IACA;IACA;IACA;IACA;IAEA,oBAAoB;IACpB;IACA;IACA;IAEA,0BAA0B;IAC1B;IACA,WAAW;IACX,WAAW;IAEX,sBAAsB;IACtB;IACA;IAEA,2BAA2B;IAC3B;IACA;IACA;IAEA,+CAA+C;IAC/C;CACD","ignoreList":[0]}},
{"offset": {"line": 4472, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/I18nextProvider.js"],"sourcesContent":["import { createElement, useMemo } from 'react';\nimport { I18nContext } from './context.js';\nexport function I18nextProvider({\n i18n,\n defaultNS,\n children\n}) {\n const value = useMemo(() => ({\n i18n,\n defaultNS\n }), [i18n, defaultNS]);\n return createElement(I18nContext.Provider, {\n value\n }, children);\n}"],"names":["I18nextProvider","i18n","defaultNS","children","value","Provider"],"mappings":";;;;AAAA;AACA;;;AACO,SAASA,gBAAgB,EAC9BC,IAAI,EACJC,SAAS,EACTC,QAAQ,EACT;IACC,MAAMC,QAAQ,IAAA,wKAAO;0CAAC,IAAM,CAAC;gBAC3BH;gBACAC;YACF,CAAC;yCAAG;QAACD;QAAMC;KAAU;IACrB,OAAO,IAAA,8KAAa,EAAC,2LAAW,CAACG,QAAQ,EAAE;QACzCD;IACF,GAAGD;AACL","ignoreList":[0]}},
{"offset": {"line": 4498, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTrans.js"],"sourcesContent":["import { useContext } from 'react';\nimport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport function IcuTrans({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n values,\n i18n,\n t: tFromProps\n });\n}\nIcuTrans.displayName = 'IcuTrans';"],"names":["IcuTrans","i18nKey","defaultTranslation","content","ns","values","i18n","i18nFromProps","t","tFromProps","i18nFromContext","defaultNS","defaultNSFromContext","bind","options","displayName"],"mappings":";;;;AAAA;AACA;AACA;AAAA;;;;AACO,SAASA,SAAS,EACvBC,OAAO,EACPC,kBAAkB,EAClBC,OAAO,EACPC,EAAE,EACFC,SAAS,CAAC,CAAC,EACXC,MAAMC,aAAa,EACnBC,GAAGC,UAAU,EACd;IACC,MAAM,EACJH,MAAMI,eAAe,EACrBC,WAAWC,oBAAoB,EAChC,GAAG,IAAA,2KAAU,EAAC,2LAAW,KAAK,CAAC;IAChC,MAAMN,OAAOC,iBAAiBG,mBAAmB,IAAA,4KAAO;IACxD,MAAMF,IAAIC,cAAcH,MAAME,EAAEK,KAAKP;IACrC,OAAO,IAAA,qMAAsB,EAAC;QAC5BL;QACAC;QACAC;QACAC,IAAIA,MAAMI,GAAGJ,MAAMQ,wBAAwBN,MAAMQ,SAASH;QAC1DN;QACAC;QACAE,GAAGC;IACL;AACF;AACAT,SAASe,WAAW,GAAG","ignoreList":[0]}},
{"offset": {"line": 4528, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransUtils/TranslationParserError.js"],"sourcesContent":["export class TranslationParserError extends Error {\n constructor(message, position, translationString) {\n super(message);\n this.name = 'TranslationParserError';\n this.position = position;\n this.translationString = translationString;\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, TranslationParserError);\n }\n }\n}"],"names":["TranslationParserError","Error","message","position","translationString","name","captureStackTrace"],"mappings":";;;;AAAO,MAAMA,+BAA+BC;IAC1CD,YAAYE,OAAO,EAAEC,QAAQ,EAAEC,iBAAiB,CAAE;QAChD,KAAK,CAACF;QACN,IAAI,CAACG,IAAI,GAAG;QACZ,IAAI,CAACF,QAAQ,GAAGA;QAChB,IAAI,CAACC,iBAAiB,GAAGA;QACzB,IAAIH,MAAMK,iBAAiB,EAAE;YAC3BL,MAAMK,iBAAiB,CAAC,IAAI,EAAEN;QAChC;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 4547, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js"],"sourcesContent":["const commonEntities = {\n '&nbsp;': '\\u00A0',\n '&amp;': '&',\n '&lt;': '<',\n '&gt;': '>',\n '&quot;': '\"',\n '&apos;': \"'\",\n '&copy;': '©',\n '&reg;': '®',\n '&trade;': '™',\n '&hellip;': '…',\n '&ndash;': '–',\n '&mdash;': '—',\n '&lsquo;': '\\u2018',\n '&rsquo;': '\\u2019',\n '&sbquo;': '\\u201A',\n '&ldquo;': '\\u201C',\n '&rdquo;': '\\u201D',\n '&bdquo;': '\\u201E',\n '&dagger;': '†',\n '&Dagger;': '‡',\n '&bull;': '•',\n '&prime;': '′',\n '&Prime;': '″',\n '&lsaquo;': '‹',\n '&rsaquo;': '›',\n '&sect;': '§',\n '&para;': '¶',\n '&middot;': '·',\n '&ensp;': '\\u2002',\n '&emsp;': '\\u2003',\n '&thinsp;': '\\u2009',\n '&euro;': '€',\n '&pound;': '£',\n '&yen;': '¥',\n '&cent;': '¢',\n '&curren;': '¤',\n '&times;': '×',\n '&divide;': '÷',\n '&minus;': '−',\n '&plusmn;': '±',\n '&ne;': '≠',\n '&le;': '≤',\n '&ge;': '≥',\n '&asymp;': '≈',\n '&equiv;': '≡',\n '&infin;': '∞',\n '&int;': '∫',\n '&sum;': '∑',\n '&prod;': '∏',\n '&radic;': '√',\n '&part;': '∂',\n '&permil;': '‰',\n '&deg;': '°',\n '&micro;': 'µ',\n '&larr;': '←',\n '&uarr;': '↑',\n '&rarr;': '→',\n '&darr;': '↓',\n '&harr;': '↔',\n '&crarr;': '↵',\n '&lArr;': '⇐',\n '&uArr;': '⇑',\n '&rArr;': '⇒',\n '&dArr;': '⇓',\n '&hArr;': '⇔',\n '&alpha;': 'α',\n '&beta;': 'β',\n '&gamma;': 'γ',\n '&delta;': 'δ',\n '&epsilon;': 'ε',\n '&zeta;': 'ζ',\n '&eta;': 'η',\n '&theta;': 'θ',\n '&iota;': 'ι',\n '&kappa;': 'κ',\n '&lambda;': 'λ',\n '&mu;': 'μ',\n '&nu;': 'ν',\n '&xi;': 'ξ',\n '&omicron;': 'ο',\n '&pi;': 'π',\n '&rho;': 'ρ',\n '&sigma;': 'σ',\n '&tau;': 'τ',\n '&upsilon;': 'υ',\n '&phi;': 'φ',\n '&chi;': 'χ',\n '&psi;': 'ψ',\n '&omega;': 'ω',\n '&Alpha;': 'Α',\n '&Beta;': 'Β',\n '&Gamma;': 'Γ',\n '&Delta;': 'Δ',\n '&Epsilon;': 'Ε',\n '&Zeta;': 'Ζ',\n '&Eta;': 'Η',\n '&Theta;': 'Θ',\n '&Iota;': 'Ι',\n '&Kappa;': 'Κ',\n '&Lambda;': 'Λ',\n '&Mu;': 'Μ',\n '&Nu;': 'Ν',\n '&Xi;': 'Ξ',\n '&Omicron;': 'Ο',\n '&Pi;': 'Π',\n '&Rho;': 'Ρ',\n '&Sigma;': 'Σ',\n '&Tau;': 'Τ',\n '&Upsilon;': 'Υ',\n '&Phi;': 'Φ',\n '&Chi;': 'Χ',\n '&Psi;': 'Ψ',\n '&Omega;': 'Ω',\n '&Agrave;': 'À',\n '&Aacute;': 'Á',\n '&Acirc;': 'Â',\n '&Atilde;': 'Ã',\n '&Auml;': 'Ä',\n '&Aring;': 'Å',\n '&AElig;': 'Æ',\n '&Ccedil;': 'Ç',\n '&Egrave;': 'È',\n '&Eacute;': 'É',\n '&Ecirc;': 'Ê',\n '&Euml;': 'Ë',\n '&Igrave;': 'Ì',\n '&Iacute;': 'Í',\n '&Icirc;': 'Î',\n '&Iuml;': 'Ï',\n '&ETH;': 'Ð',\n '&Ntilde;': 'Ñ',\n '&Ograve;': 'Ò',\n '&Oacute;': 'Ó',\n '&Ocirc;': 'Ô',\n '&Otilde;': 'Õ',\n '&Ouml;': 'Ö',\n '&Oslash;': 'Ø',\n '&Ugrave;': 'Ù',\n '&Uacute;': 'Ú',\n '&Ucirc;': 'Û',\n '&Uuml;': 'Ü',\n '&Yacute;': 'Ý',\n '&THORN;': 'Þ',\n '&szlig;': 'ß',\n '&agrave;': 'à',\n '&aacute;': 'á',\n '&acirc;': 'â',\n '&atilde;': 'ã',\n '&auml;': 'ä',\n '&aring;': 'å',\n '&aelig;': 'æ',\n '&ccedil;': 'ç',\n '&egrave;': 'è',\n '&eacute;': 'é',\n '&ecirc;': 'ê',\n '&euml;': 'ë',\n '&igrave;': 'ì',\n '&iacute;': 'í',\n '&icirc;': 'î',\n '&iuml;': 'ï',\n '&eth;': 'ð',\n '&ntilde;': 'ñ',\n '&ograve;': 'ò',\n '&oacute;': 'ó',\n '&ocirc;': 'ô',\n '&otilde;': 'õ',\n '&ouml;': 'ö',\n '&oslash;': 'ø',\n '&ugrave;': 'ù',\n '&uacute;': 'ú',\n '&ucirc;': 'û',\n '&uuml;': 'ü',\n '&yacute;': 'ý',\n '&thorn;': 'þ',\n '&yuml;': 'ÿ',\n '&iexcl;': '¡',\n '&iquest;': '¿',\n '&fnof;': 'ƒ',\n '&circ;': 'ˆ',\n '&tilde;': '˜',\n '&OElig;': 'Œ',\n '&oelig;': 'œ',\n '&Scaron;': 'Š',\n '&scaron;': 'š',\n '&Yuml;': 'Ÿ',\n '&ordf;': 'ª',\n '&ordm;': 'º',\n '&macr;': '¯',\n '&acute;': '´',\n '&cedil;': '¸',\n '&sup1;': '¹',\n '&sup2;': '²',\n '&sup3;': '³',\n '&frac14;': '¼',\n '&frac12;': '½',\n '&frac34;': '¾',\n '&spades;': '♠',\n '&clubs;': '♣',\n '&hearts;': '♥',\n '&diams;': '♦',\n '&loz;': '◊',\n '&oline;': '‾',\n '&frasl;': '⁄',\n '&weierp;': '℘',\n '&image;': 'ℑ',\n '&real;': 'ℜ',\n '&alefsym;': 'ℵ'\n};\nconst entityPattern = new RegExp(Object.keys(commonEntities).map(entity => entity.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')).join('|'), 'g');\nexport const decodeHtmlEntities = text => text.replace(entityPattern, match => commonEntities[match]).replace(/&#(\\d+);/g, (_, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));"],"names":["commonEntities","entityPattern","RegExp","Object","keys","map","entity","replace","join","decodeHtmlEntities","text","match","_","num","String","fromCharCode","parseInt","hex"]Line truncated
{"offset": {"line": 4766, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransUtils/index.js"],"sourcesContent":["export * from './TranslationParserError.js';\nexport * from './htmlEntityDecoder.js';\nexport * from './tokenizer.js';\nexport * from './renderTranslation.js';"],"names":[],"mappings":";AACA;AAEA","ignoreList":[0]}},
{"offset": {"line": 4777, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransUtils/renderTranslation.js"],"sourcesContent":["import React from 'react';\nimport { TranslationParserError } from './TranslationParserError.js';\nimport { tokenize } from './tokenizer.js';\nimport { decodeHtmlEntities } from './htmlEntityDecoder.js';\nconst renderDeclarationNode = (declaration, children, childDeclarations) => {\n const {\n type,\n props = {}\n } = declaration;\n if (props.children && Array.isArray(props.children) && childDeclarations) {\n const {\n children: _childrenToRemove,\n ...propsWithoutChildren\n } = props;\n return React.createElement(type, propsWithoutChildren, ...children);\n }\n if (children.length === 0) {\n return React.createElement(type, props);\n }\n if (children.length === 1) {\n return React.createElement(type, props, children[0]);\n }\n return React.createElement(type, props, ...children);\n};\nexport const renderTranslation = (translation, declarations = []) => {\n if (!translation) {\n return [];\n }\n const tokens = tokenize(translation);\n const result = [];\n const stack = [];\n const literalTagNumbers = new Set();\n const getCurrentDeclarations = () => {\n if (stack.length === 0) {\n return declarations;\n }\n const parentFrame = stack[stack.length - 1];\n if (parentFrame.declaration.props?.children && Array.isArray(parentFrame.declaration.props.children)) {\n return parentFrame.declaration.props.children;\n }\n return parentFrame.declarations;\n };\n tokens.forEach(token => {\n switch (token.type) {\n case 'Text':\n {\n const decoded = decodeHtmlEntities(token.value);\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(decoded);\n }\n break;\n case 'TagOpen':\n {\n const {\n tagNumber\n } = token;\n const currentDeclarations = getCurrentDeclarations();\n const declaration = currentDeclarations[tagNumber];\n if (!declaration) {\n literalTagNumbers.add(tagNumber);\n const literalText = `<${tagNumber}>`;\n const targetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n targetArray.push(literalText);\n break;\n }\n stack.push({\n tagNumber,\n children: [],\n position: token.position,\n declaration,\n declarations: currentDeclarations\n });\n }\n break;\n case 'TagClose':\n {\n const {\n tagNumber\n } = token;\n if (literalTagNumbers.has(tagNumber)) {\n const literalText = `</${tagNumber}>`;\n const literalTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n literalTargetArray.push(literalText);\n literalTagNumbers.delete(tagNumber);\n break;\n }\n if (stack.length === 0) {\n throw new TranslationParserError(`Unexpected closing tag </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const frame = stack.pop();\n if (frame.tagNumber !== tagNumber) {\n throw new TranslationParserError(`Mismatched tags: expected </${frame.tagNumber}> but got </${tagNumber}> at position ${token.position}`, token.position, translation);\n }\n const element = renderDeclarationNode(frame.declaration, frame.children, frame.declarations);\n const elementTargetArray = stack.length > 0 ? stack[stack.length - 1].children : result;\n elementTargetArray.push(element);\n }\n break;\n }\n });\n if (stack.length > 0) {\n const unclosed = stack[stack.length - 1];\n throw new TranslationParserError(`Unclosed tag <${unclosed.tagNumber}> at position ${unclosed.position}`, unclosed.position, translation);\n }\n return result;\n};"],"names":["renderDeclarationNode","declaration","children","childDeclarations","type","props","Array","isArray","_childrenToRemove","propsWithoutChildren","createElement","length","renderTranslation","translation","declarations","tokens","result","stack","literalTagNumbers","Set","getCurrentDeclarations","parentFrame","forEach","token","decoded","value","targetArray","push","tagNumber","currentDeclarations","add","literalText","position","has","literalTargetArray","delete","frame","pop","element","elementTargetArray","unclosed"],"mappings":";;;;AAAA;AACA;AACA;AACA;;;;;AACA,MAAMA,wBAAwB,CAACC,aAAaC,UAAUC;IACpD,MAAM,EACJC,IAAI,EACJC,QAAQ,CAAC,CAAC,EACX,GAAGJ;IACJ,IAAII,MAAMH,QAAQ,IAAII,MAAMC,OAAO,CAACF,MAAMH,QAAQ,KAAKC,mBAAmB;QACxE,MAAM,EACJD,UAAUM,iBAAiB,EAC3B,GAAGC,sBACJ,GAAGJ;QACJ,OAAO,wKAAK,CAACK,aAAa,CAACN,MAAMK,yBAAyBLine truncated
{"offset": {"line": 4885, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js"],"sourcesContent":["export const tokenize = translation => {\n const tokens = [];\n let position = 0;\n let currentText = '';\n const flushText = () => {\n if (currentText) {\n tokens.push({\n type: 'Text',\n value: currentText,\n position: position - currentText.length\n });\n currentText = '';\n }\n };\n while (position < translation.length) {\n const char = translation[position];\n if (char === '<') {\n const tagMatch = translation.slice(position).match(/^<(\\d+)>/);\n if (tagMatch) {\n flushText();\n tokens.push({\n type: 'TagOpen',\n value: tagMatch[0],\n position,\n tagNumber: parseInt(tagMatch[1], 10)\n });\n position += tagMatch[0].length;\n } else {\n const closeTagMatch = translation.slice(position).match(/^<\\/(\\d+)>/);\n if (closeTagMatch) {\n flushText();\n tokens.push({\n type: 'TagClose',\n value: closeTagMatch[0],\n position,\n tagNumber: parseInt(closeTagMatch[1], 10)\n });\n position += closeTagMatch[0].length;\n } else {\n currentText += char;\n position += 1;\n }\n }\n } else {\n currentText += char;\n position += 1;\n }\n }\n flushText();\n return tokens;\n};"],"names":["tokenize","translation","tokens","position","currentText","flushText","push","type","value","length","char","tagMatch","slice","match","tagNumber","parseInt","closeTagMatch"],"mappings":";;;;AAAO,MAAMA,WAAWC,CAAAA;IACtB,MAAMC,SAAS,EAAE;IACjB,IAAIC,WAAW;IACf,IAAIC,cAAc;IAClB,MAAMC,YAAY;QAChB,IAAID,aAAa;YACfF,OAAOI,IAAI,CAAC;gBACVC,MAAM;gBACNC,OAAOJ;gBACPD,UAAUA,WAAWC,YAAYK,MAAM;YACzC;YACAL,cAAc;QAChB;IACF;IACA,MAAOD,WAAWF,YAAYQ,MAAM,CAAE;QACpC,MAAMC,OAAOT,WAAW,CAACE,SAAS;QAClC,IAAIO,SAAS,KAAK;YAChB,MAAMC,WAAWV,YAAYW,KAAK,CAACT,UAAUU,KAAK,CAAC;YACnD,IAAIF,UAAU;gBACZN;gBACAH,OAAOI,IAAI,CAAC;oBACVC,MAAM;oBACNC,OAAOG,QAAQ,CAAC,EAAE;oBAClBR;oBACAW,WAAWC,SAASJ,QAAQ,CAAC,EAAE,EAAE;gBACnC;gBACAR,YAAYQ,QAAQ,CAAC,EAAE,CAACF,MAAM;YAChC,OAAO;gBACL,MAAMO,gBAAgBf,YAAYW,KAAK,CAACT,UAAUU,KAAK,CAAC;gBACxD,IAAIG,eAAe;oBACjBX;oBACAH,OAAOI,IAAI,CAAC;wBACVC,MAAM;wBACNC,OAAOQ,aAAa,CAAC,EAAE;wBACvBb;wBACAW,WAAWC,SAASC,aAAa,CAAC,EAAE,EAAE;oBACxC;oBACAb,YAAYa,aAAa,CAAC,EAAE,CAACP,MAAM;gBACrC,OAAO;oBACLL,eAAeM;oBACfP,YAAY;gBACd;YACF;QACF,OAAO;YACLC,eAAeM;YACfP,YAAY;QACd;IACF;IACAE;IACA,OAAOH;AACT","ignoreList":[0]}},
{"offset": {"line": 4944, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/IcuTransWithoutContext.js"],"sourcesContent":["import React from 'react';\nimport { warn, warnOnce, isString } from './utils.js';\nimport { getI18n } from './i18nInstance.js';\nimport { renderTranslation } from './IcuTransUtils/index.js';\nexport function IcuTransWithoutContext({\n i18nKey,\n defaultTranslation,\n content,\n ns,\n values = {},\n i18n: i18nFromProps,\n t: tFromProps\n}) {\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', `IcuTrans: You need to pass in an i18next instance using i18nextReactModule`, {\n i18nKey\n });\n return React.createElement(React.Fragment, {}, defaultTranslation);\n }\n const t = tFromProps || i18n.t?.bind(i18n) || (k => k);\n let namespaces = ns || t.ns || i18n.options?.defaultNS;\n namespaces = isString(namespaces) ? [namespaces] : namespaces || ['translation'];\n let mergedValues = values;\n if (i18n.options?.interpolation?.defaultVariables) {\n mergedValues = values && Object.keys(values).length > 0 ? {\n ...values,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n }\n const translation = t(i18nKey, {\n defaultValue: defaultTranslation,\n ...mergedValues,\n ns: namespaces\n });\n try {\n const rendered = renderTranslation(translation, content);\n return React.createElement(React.Fragment, {}, ...rendered);\n } catch (error) {\n warn(i18n, 'ICU_TRANS_RENDER_ERROR', `IcuTrans component error for key \"${i18nKey}\": ${error.message}`, {\n i18nKey,\n error\n });\n return React.createElement(React.Fragment, {}, translation);\n }\n}\nIcuTransWithoutContext.displayName = 'IcuTransWithoutContext';"],"names":["IcuTransWithoutContext","i18nKey","defaultTranslation","content","ns","values","i18n","i18nFromProps","t","tFromProps","createElement","Fragment","bind","k","namespaces","options","defaultNS","mergedValues","interpolation","defaultVariables","Object","keys","length","translation","defaultValue","rendered","error","message","displayName"],"mappings":";;;;AAAA;AACA;AACA;AACA;AAAA;;;;;AACO,SAASA,uBAAuB,EACrCC,OAAO,EACPC,kBAAkB,EAClBC,OAAO,EACPC,EAAE,EACFC,SAAS,CAAC,CAAC,EACXC,MAAMC,aAAa,EACnBC,GAAGC,UAAU,EACd;IACC,MAAMH,OAAOC,iBAAiB,IAAA,4KAAO;IACrC,IAAI,CAACD,MAAM;QACT,IAAA,sKAAQ,EAACA,MAAM,uBAAuB,CAAC,0EAA0E,CAAC,EAAE;YAClHL;QACF;QACA,OAAO,wKAAK,CAACS,aAAa,CAAC,wKAAK,CAACC,QAAQ,EAAE,CAAC,GAAGT;IACjD;IACA,MAAMM,IAAIC,cAAcH,KAAKE,CAAC,EAAEI,KAAKN,SAAS,CAACO,CAAAA,IAAKA,CAAC;IACrD,IAAIC,aAAaV,MAAMI,EAAEJ,EAAE,IAAIE,KAAKS,OAAO,EAAEC;IAC7CF,aAAa,IAAA,sKAAQ,EAACA,cAAc;QAACA;KAAW,GAAGA,cAAc;QAAC;KAAc;IAChF,IAAIG,eAAeZ;IACnB,IAAIC,KAAKS,OAAO,EAAEG,eAAeC,kBAAkB;QACjDF,eAAeZ,UAAUe,OAAOC,IAAI,CAAChB,QAAQiB,MAAM,GAAG,IAAI;YACxD,GAAGjB,MAAM;YACT,GAAGC,KAAKS,OAAO,CAACG,aAAa,CAACC,gBAAgB;QAChD,IAAI;YACF,GAAGb,KAAKS,OAAO,CAACG,aAAa,CAACC,gBAAgB;QAChD;IACF;IACA,MAAMI,cAAcf,EAAEP,SAAS;QAC7BuB,cAActB;QACd,GAAGe,YAAY;QACfb,IAAIU;IACN;IACA,IAAI;QACF,MAAMW,WAAW,IAAA,4MAAiB,EAACF,aAAapB;QAChD,OAAO,wKAAK,CAACO,aAAa,CAAC,wKAAK,CAACC,QAAQ,EAAE,CAAC,MAAMc;IACpD,EAAE,OAAOC,OAAO;QACd,IAAA,kKAAI,EAACpB,MAAM,0BAA0B,CAAC,kCAAkC,EAAEL,QAAQ,GAAG,EAAEyB,MAAMC,OAAO,EAAE,EAAE;YACtG1B;YACAyB;QACF;QACA,OAAO,wKAAK,CAAChB,aAAa,CAAC,wKAAK,CAACC,QAAQ,EAAE,CAAC,GAAGY;IACjD;AACF;AACAvB,uBAAuB4B,WAAW,GAAG","ignoreList":[0]}},
{"offset": {"line": 5002, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/Trans.js"],"sourcesContent":["import { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n}) {\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n?.t.bind(i18n);\n return TransWithoutContext({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions,\n values,\n defaults,\n components,\n ns: ns || t?.ns || defaultNSFromContext || i18n?.options?.defaultNS,\n i18n,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n });\n}"],"names":["Trans","children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","i18nFromProps","t","tFromProps","shouldUnescape","additionalProps","i18nFromContext","defaultNS","defaultNSFromContext","bind","options"],"mappings":";;;;AAAA;AACA;AACA;AAAA;;;;;AAEO,SAASA,MAAM,EACpBC,QAAQ,EACRC,KAAK,EACLC,MAAM,EACNC,OAAO,EACPC,OAAO,EACPC,WAAW,CAAC,CAAC,EACbC,MAAM,EACNC,QAAQ,EACRC,UAAU,EACVC,EAAE,EACFC,MAAMC,aAAa,EACnBC,GAAGC,UAAU,EACbC,cAAc,EACd,GAAGC,iBACJ;IACC,MAAM,EACJL,MAAMM,eAAe,EACrBC,WAAWC,oBAAoB,EAChC,GAAG,IAAA,2KAAU,EAAC,2LAAW,KAAK,CAAC;IAChC,MAAMR,OAAOC,iBAAiBK,mBAAmB,IAAA,4KAAO;IACxD,MAAMJ,IAAIC,cAAcH,MAAME,EAAEO,KAAKT;IACrC,OAAO,IAAA,iLAAmB,EAAC;QACzBV;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC,IAAIA,MAAMG,GAAGH,MAAMS,wBAAwBR,MAAMU,SAASH;QAC1DP;QACAE,GAAGC;QACHC;QACA,GAAGC,eAAe;IACpB;AACF","ignoreList":[0]}},
{"offset": {"line": 5039, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/TransWithoutContext.js"],"sourcesContent":["import { Fragment, isValidElement, cloneElement, createElement, Children } from 'react';\nimport { keyFromSelector } from 'i18next';\nimport HTML from 'html-parse-stringify';\nimport { isObject, isString, warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\nimport { unescape } from './unescape.js';\nconst hasChildren = (node, checkLength) => {\n if (!node) return false;\n const base = node.props?.children ?? node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n};\nconst getChildren = node => {\n if (!node) return [];\n const children = node.props?.children ?? node.children;\n return node.props?.i18nIsDynamicList ? getAsArray(children) : children;\n};\nconst hasValidReactChildren = children => Array.isArray(children) && children.every(isValidElement);\nconst getAsArray = data => Array.isArray(data) ? data : [data];\nconst mergeProps = (source, target) => {\n const newTarget = {\n ...target\n };\n newTarget.props = {\n ...target.props,\n ...source.props\n };\n return newTarget;\n};\nconst getValuesFromChildren = children => {\n const values = {};\n if (!children) return values;\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(values, child);\n });\n };\n getData(children);\n return values;\n};\nexport const nodesToString = (children, i18nOptions, i18n, i18nKey) => {\n if (!children) return '';\n let stringNode = '';\n const childrenArray = getAsArray(children);\n const keepArray = i18nOptions?.transSupportBasicHtmlNodes ? i18nOptions.transKeepBasicHtmlNodesFor ?? [] : [];\n childrenArray.forEach((child, childIndex) => {\n if (isString(child)) {\n stringNode += `${child}`;\n return;\n }\n if (isValidElement(child)) {\n const {\n props,\n type\n } = child;\n const childPropsCount = Object.keys(props).length;\n const shouldKeepChild = keepArray.indexOf(type) > -1;\n const childChildren = props.children;\n if (!childChildren && shouldKeepChild && !childPropsCount) {\n stringNode += `<${type}/>`;\n return;\n }\n if (!childChildren && (!shouldKeepChild || childPropsCount) || props.i18nIsDynamicList) {\n stringNode += `<${childIndex}></${childIndex}>`;\n return;\n }\n if (shouldKeepChild && childPropsCount <= 1) {\n const cnt = isString(childChildren) ? childChildren : nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${type}>${cnt}</${type}>`;\n return;\n }\n const content = nodesToString(childChildren, i18nOptions, i18n, i18nKey);\n stringNode += `<${childIndex}>${content}</${childIndex}>`;\n return;\n }\n if (child === null) {\n warn(i18n, 'TRANS_NULL_VALUE', `Passed in a null value as child`, {\n i18nKey\n });\n return;\n }\n if (isObject(child)) {\n const {\n format,\n ...clone\n } = child;\n const keys = Object.keys(clone);\n if (keys.length === 1) {\n const value = format ? `${keys[0]}, ${format}` : keys[0];\n stringNode += `{{${value}}}`;\n return;\n }\n warn(i18n, 'TRANS_INVALID_OBJ', `Invalid child - Object should only have keys {{ value, format }} (format is optional).`, {\n i18nKey,\n child\n });\n return;\n }\n warn(i18n, 'TRANS_INVALID_VAR', `Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.`, {\n i18nKey,\n child\n });\n });\n return stringNode;\n};\nconst renderNodes = (children, knownComponentsMap, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) => {\n if (targetString === '') return [];\n const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map(keep => `<${keep}`).join('|')).test(targetString);\n if (!children && !knownComponentsMap && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];\n const data = knownComponentsMap ?? {};\n const getData = childs => {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (isString(child)) return;\n if (hasChildren(child)) getData(getChildren(child));else if (isObject(child) && !isValidElement(child)) Object.assign(data, child);\n });\n };\n getData(children);\n const knownNames = Object.keys(data);\n const allowedTags = name => /^\\d+$/.test(name) || keepArray.indexOLine truncated
{"offset": {"line": 5453, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/Translation.js"],"sourcesContent":["import { useTranslation } from './useTranslation.js';\nexport const Translation = ({\n ns,\n children,\n ...options\n}) => {\n const [t, i18n, ready] = useTranslation(ns, options);\n return children(t, {\n i18n,\n lng: i18n?.language\n }, ready);\n};"],"names":["Translation","ns","children","options","t","i18n","ready","lng","language"],"mappings":";;;;AAAA;;AACO,MAAMA,cAAc,CAAC,EAC1BC,EAAE,EACFC,QAAQ,EACR,GAAGC,SACJ;IACC,MAAM,CAACC,GAAGC,MAAMC,MAAM,GAAG,IAAA,qLAAc,EAACL,IAAIE;IAC5C,OAAOD,SAASE,GAAG;QACjBC;QACAE,KAAKF,MAAMG;IACb,GAAGF;AACL","ignoreList":[0]}},
{"offset": {"line": 5470, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/context.js"],"sourcesContent":["import { createContext } from 'react';\nimport { getDefaults, setDefaults } from './defaults.js';\nimport { getI18n, setI18n } from './i18nInstance.js';\nimport { initReactI18next } from './initReactI18next.js';\nexport { getDefaults, setDefaults, getI18n, setI18n, initReactI18next };\nexport const I18nContext = createContext();\nexport class ReportNamespaces {\n constructor() {\n this.usedNamespaces = {};\n }\n addUsedNamespaces(namespaces) {\n namespaces.forEach(ns => {\n if (!this.usedNamespaces[ns]) this.usedNamespaces[ns] = true;\n });\n }\n getUsedNamespaces() {\n return Object.keys(this.usedNamespaces);\n }\n}\nexport const composeInitialProps = ForComponent => async ctx => {\n const componentsInitialProps = (await ForComponent.getInitialProps?.(ctx)) ?? {};\n const i18nInitialProps = getInitialProps();\n return {\n ...componentsInitialProps,\n ...i18nInitialProps\n };\n};\nexport const getInitialProps = () => {\n const i18n = getI18n();\n if (!i18n) {\n console.warn('react-i18next:: getInitialProps: You will need to pass in an i18next instance by using initReactI18next');\n return {};\n }\n const namespaces = i18n.reportNamespaces?.getUsedNamespaces() ?? [];\n const ret = {};\n const initialI18nStore = {};\n i18n.languages.forEach(l => {\n initialI18nStore[l] = {};\n namespaces.forEach(ns => {\n initialI18nStore[l][ns] = i18n.getResourceBundle(l, ns) || {};\n });\n });\n ret.initialI18nStore = initialI18nStore;\n ret.initialLanguage = i18n.language;\n return ret;\n};"],"names":["I18nContext","ReportNamespaces","usedNamespaces","addUsedNamespaces","namespaces","forEach","ns","getUsedNamespaces","Object","keys","composeInitialProps","ForComponent","ctx","componentsInitialProps","getInitialProps","i18nInitialProps","i18n","console","warn","reportNamespaces","ret","initialI18nStore","languages","l","getResourceBundle","initialLanguage","language"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;;;;;;AAEO,MAAMA,cAAc,IAAA,8KAAa;AACjC,MAAMC;IACXA,aAAc;QACZ,IAAI,CAACC,cAAc,GAAG,CAAC;IACzB;IACAC,kBAAkBC,UAAU,EAAE;QAC5BA,WAAWC,OAAO,CAACC,CAAAA;YACjB,IAAI,CAAC,IAAI,CAACJ,cAAc,CAACI,GAAG,EAAE,IAAI,CAACJ,cAAc,CAACI,GAAG,GAAG;QAC1D;IACF;IACAC,oBAAoB;QAClB,OAAOC,OAAOC,IAAI,CAAC,IAAI,CAACP,cAAc;IACxC;AACF;AACO,MAAMQ,sBAAsBC,CAAAA,eAAgB,OAAMC;QACvD,MAAMC,yBAAyB,AAAC,MAAMF,aAAaG,eAAe,GAAGF,QAAS,CAAC;QAC/E,MAAMG,mBAAmBD;QACzB,OAAO;YACL,GAAGD,sBAAsB;YACzB,GAAGE,gBAAgB;QACrB;IACF;AACO,MAAMD,kBAAkB;IAC7B,MAAME,OAAO,IAAA,4KAAO;IACpB,IAAI,CAACA,MAAM;QACTC,QAAQC,IAAI,CAAC;QACb,OAAO,CAAC;IACV;IACA,MAAMd,aAAaY,KAAKG,gBAAgB,EAAEZ,uBAAuB,EAAE;IACnE,MAAMa,MAAM,CAAC;IACb,MAAMC,mBAAmB,CAAC;IAC1BL,KAAKM,SAAS,CAACjB,OAAO,CAACkB,CAAAA;QACrBF,gBAAgB,CAACE,EAAE,GAAG,CAAC;QACvBnB,WAAWC,OAAO,CAACC,CAAAA;YACjBe,gBAAgB,CAACE,EAAE,CAACjB,GAAG,GAAGU,KAAKQ,iBAAiB,CAACD,GAAGjB,OAAO,CAAC;QAC9D;IACF;IACAc,IAAIC,gBAAgB,GAAGA;IACvBD,IAAIK,eAAe,GAAGT,KAAKU,QAAQ;IACnC,OAAON;AACT","ignoreList":[0]}},
{"offset": {"line": 5534, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/defaults.js"],"sourcesContent":["import { unescape } from './unescape.js';\nlet defaultOptions = {\n bindI18n: 'languageChanged',\n bindI18nStore: '',\n transEmptyNodeValue: '',\n transSupportBasicHtmlNodes: true,\n transWrapTextNodes: '',\n transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],\n useSuspense: true,\n unescape,\n transDefaultProps: undefined\n};\nexport const setDefaults = (options = {}) => {\n defaultOptions = {\n ...defaultOptions,\n ...options\n };\n};\nexport const getDefaults = () => defaultOptions;"],"names":["defaultOptions","bindI18n","bindI18nStore","transEmptyNodeValue","transSupportBasicHtmlNodes","transWrapTextNodes","transKeepBasicHtmlNodesFor","useSuspense","unescape","transDefaultProps","undefined","setDefaults","options","getDefaults"],"mappings":";;;;;;AAAA;;AACA,IAAIA,iBAAiB;IACnBC,UAAU;IACVC,eAAe;IACfC,qBAAqB;IACrBC,4BAA4B;IAC5BC,oBAAoB;IACpBC,4BAA4B;QAAC;QAAM;QAAU;QAAK;KAAI;IACtDC,aAAa;IACbC,UAAAA,yKAAQ;IACRC,mBAAmBC;AACrB;AACO,MAAMC,cAAc,CAACC,UAAU,CAAC,CAAC;IACtCZ,iBAAiB;QACf,GAAGA,cAAc;QACjB,GAAGY,OAAO;IACZ;AACF;AACO,MAAMC,cAAc,IAAMb","ignoreList":[0]}},
{"offset": {"line": 5569, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/i18nInstance.js"],"sourcesContent":["let i18nInstance;\nexport const setI18n = instance => {\n i18nInstance = instance;\n};\nexport const getI18n = () => i18nInstance;"],"names":["i18nInstance","setI18n","instance","getI18n"],"mappings":";;;;;;AAAA,IAAIA;AACG,MAAMC,UAAUC,CAAAA;IACrBF,eAAeE;AACjB;AACO,MAAMC,UAAU,IAAMH","ignoreList":[0]}},
{"offset": {"line": 5584, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/index.js"],"sourcesContent":["export { Trans } from './Trans.js';\nexport { Trans as TransWithoutContext } from './TransWithoutContext.js';\nexport { IcuTrans } from './IcuTrans.js';\nexport { IcuTransWithoutContext } from './IcuTransWithoutContext.js';\nexport { useTranslation } from './useTranslation.js';\nexport { withTranslation } from './withTranslation.js';\nexport { Translation } from './Translation.js';\nexport { I18nextProvider } from './I18nextProvider.js';\nexport { withSSR } from './withSSR.js';\nexport { useSSR } from './useSSR.js';\nexport { initReactI18next } from './initReactI18next.js';\nexport { setDefaults, getDefaults } from './defaults.js';\nexport { setI18n, getI18n } from './i18nInstance.js';\nexport { nodesToString } from './Trans.js';\nexport { I18nContext, composeInitialProps, getInitialProps } from './context.js';\nexport const date = () => '';\nexport const time = () => '';\nexport const number = () => '';\nexport const select = () => '';\nexport const plural = () => '';\nexport const selectOrdinal = () => '';"],"names":["date","time","number","select","plural","selectOrdinal"],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;;;;;;;;;;;;;;;;AACO,MAAMA,OAAO,IAAM;AACnB,MAAMC,OAAO,IAAM;AACnB,MAAMC,SAAS,IAAM;AACrB,MAAMC,SAAS,IAAM;AACrB,MAAMC,SAAS,IAAM;AACrB,MAAMC,gBAAgB,IAAM","ignoreList":[0]}},
{"offset": {"line": 5636, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/initReactI18next.js"],"sourcesContent":["import { setDefaults } from './defaults.js';\nimport { setI18n } from './i18nInstance.js';\nexport const initReactI18next = {\n type: '3rdParty',\n init(instance) {\n setDefaults(instance.options.react);\n setI18n(instance);\n }\n};"],"names":["initReactI18next","type","init","instance","options","react"],"mappings":";;;;AAAA;AACA;;;AACO,MAAMA,mBAAmB;IAC9BC,MAAM;IACNC,MAAKC,QAAQ;QACX,IAAA,4KAAW,EAACA,SAASC,OAAO,CAACC,KAAK;QAClC,IAAA,4KAAO,EAACF;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 5655, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/unescape.js"],"sourcesContent":["const matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;\nconst htmlEntities = {\n '&amp;': '&',\n '&#38;': '&',\n '&lt;': '<',\n '&#60;': '<',\n '&gt;': '>',\n '&#62;': '>',\n '&apos;': \"'\",\n '&#39;': \"'\",\n '&quot;': '\"',\n '&#34;': '\"',\n '&nbsp;': ' ',\n '&#160;': ' ',\n '&copy;': '©',\n '&#169;': '©',\n '&reg;': '®',\n '&#174;': '®',\n '&hellip;': '…',\n '&#8230;': '…',\n '&#x2F;': '/',\n '&#47;': '/'\n};\nconst unescapeHtmlEntity = m => htmlEntities[m];\nexport const unescape = text => text.replace(matchHtmlEntity, unescapeHtmlEntity);"],"names":["matchHtmlEntity","htmlEntities","unescapeHtmlEntity","m","unescape","text","replace"],"mappings":";;;;AAAA,MAAMA,kBAAkB;AACxB,MAAMC,eAAe;IACnB,SAAS;IACT,SAAS;IACT,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,SAAS;IACT,UAAU;IACV,SAAS;IACT,UAAU;IACV,SAAS;IACT,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,SAAS;IACT,UAAU;IACV,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;AACX;AACA,MAAMC,qBAAqBC,CAAAA,IAAKF,YAAY,CAACE,EAAE;AACxC,MAAMC,WAAWC,CAAAA,OAAQA,KAAKC,OAAO,CAACN,iBAAiBE","ignoreList":[0]}},
{"offset": {"line": 5688, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/useSSR.js"],"sourcesContent":["import { useContext } from 'react';\nimport { getI18n, I18nContext } from './context.js';\nimport { warnOnce } from './utils.js';\nexport const useSSR = (initialI18nStore, initialLanguage, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useSSR: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.');\n return;\n }\n if (i18n.options?.isClone) return;\n if (initialI18nStore && !i18n.initializedStoreOnce) {\n if (!i18n.services?.resourceStore) {\n warnOnce(i18n, 'I18N_NOT_INITIALIZED', 'useSSR: i18n instance was found but not initialized (services.resourceStore is missing). Make sure you call i18next.init() before using useSSR — e.g. at module level, not only in getStaticProps/getServerSideProps.');\n return;\n }\n i18n.services.resourceStore.data = initialI18nStore;\n i18n.options.ns = Object.values(initialI18nStore).reduce((mem, lngResources) => {\n Object.keys(lngResources).forEach(ns => {\n if (mem.indexOf(ns) < 0) mem.push(ns);\n });\n return mem;\n }, i18n.options.ns);\n i18n.initializedStoreOnce = true;\n i18n.isInitialized = true;\n }\n if (initialLanguage && !i18n.initializedLanguageOnce) {\n i18n.changeLanguage(initialLanguage);\n i18n.initializedLanguageOnce = true;\n }\n};"],"names":["useSSR","initialI18nStore","initialLanguage","props","i18n","i18nFromProps","i18nFromContext","options","isClone","initializedStoreOnce","services","resourceStore","data","ns","Object","values","reduce","mem","lngResources","keys","forEach","indexOf","push","isInitialized","initializedLanguageOnce","changeLanguage"],"mappings":";;;;AAAA;AACA;AAAA;AACA;;;;AACO,MAAMA,SAAS,CAACC,kBAAkBC,iBAAiBC,QAAQ,CAAC,CAAC;IAClE,MAAM,EACJC,MAAMC,aAAa,EACpB,GAAGF;IACJ,MAAM,EACJC,MAAME,eAAe,EACtB,GAAG,IAAA,2KAAU,EAAC,2LAAW,KAAK,CAAC;IAChC,MAAMF,OAAOC,iBAAiBC,mBAAmB,IAAA,4KAAO;IACxD,IAAI,CAACF,MAAM;QACT,IAAA,sKAAQ,EAACA,MAAM,uBAAuB;QACtC;IACF;IACA,IAAIA,KAAKG,OAAO,EAAEC,SAAS;IAC3B,IAAIP,oBAAoB,CAACG,KAAKK,oBAAoB,EAAE;QAClD,IAAI,CAACL,KAAKM,QAAQ,EAAEC,eAAe;YACjC,IAAA,sKAAQ,EAACP,MAAM,wBAAwB;YACvC;QACF;QACAA,KAAKM,QAAQ,CAACC,aAAa,CAACC,IAAI,GAAGX;QACnCG,KAAKG,OAAO,CAACM,EAAE,GAAGC,OAAOC,MAAM,CAACd,kBAAkBe,MAAM,CAAC,CAACC,KAAKC;YAC7DJ,OAAOK,IAAI,CAACD,cAAcE,OAAO,CAACP,CAAAA;gBAChC,IAAII,IAAII,OAAO,CAACR,MAAM,GAAGI,IAAIK,IAAI,CAACT;YACpC;YACA,OAAOI;QACT,GAAGb,KAAKG,OAAO,CAACM,EAAE;QAClBT,KAAKK,oBAAoB,GAAG;QAC5BL,KAAKmB,aAAa,GAAG;IACvB;IACA,IAAIrB,mBAAmB,CAACE,KAAKoB,uBAAuB,EAAE;QACpDpB,KAAKqB,cAAc,CAACvB;QACpBE,KAAKoB,uBAAuB,GAAG;IACjC;AACF","ignoreList":[0]}},
{"offset": {"line": 5732, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/useTranslation.js"],"sourcesContent":["import { useContext, useCallback, useMemo, useEffect, useRef, useState } from 'react';\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { getI18n, getDefaults, ReportNamespaces, I18nContext } from './context.js';\nimport { warnOnce, loadNamespaces, loadLanguages, hasLoadedNamespace, isString, isObject } from './utils.js';\nconst notReadyT = (k, optsOrDefaultValue) => {\n if (isString(optsOrDefaultValue)) return optsOrDefaultValue;\n if (isObject(optsOrDefaultValue) && isString(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;\n if (typeof k === 'function') return '';\n if (Array.isArray(k)) {\n const last = k[k.length - 1];\n return typeof last === 'function' ? '' : last;\n }\n return k;\n};\nconst notReadySnapshot = {\n t: notReadyT,\n ready: false\n};\nconst dummySubscribe = () => () => {};\nexport const useTranslation = (ns, props = {}) => {\n const {\n i18n: i18nFromProps\n } = props;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();\n if (!i18n) {\n warnOnce(i18n, 'NO_I18NEXT_INSTANCE', 'useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.');\n }\n const i18nOptions = useMemo(() => ({\n ...getDefaults(),\n ...i18n?.options?.react,\n ...props\n }), [i18n, props]);\n const {\n useSuspense,\n keyPrefix\n } = i18nOptions;\n const nsOrContext = ns || defaultNSFromContext || i18n?.options?.defaultNS;\n const unstableNamespaces = isString(nsOrContext) ? [nsOrContext] : nsOrContext || ['translation'];\n const namespaces = useMemo(() => unstableNamespaces, unstableNamespaces);\n i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);\n const revisionRef = useRef(0);\n const subscribe = useCallback(callback => {\n if (!i18n) return dummySubscribe;\n const {\n bindI18n,\n bindI18nStore\n } = i18nOptions;\n const wrappedCallback = () => {\n revisionRef.current += 1;\n callback();\n };\n if (bindI18n) i18n.on(bindI18n, wrappedCallback);\n if (bindI18nStore) i18n.store.on(bindI18nStore, wrappedCallback);\n return () => {\n if (bindI18n) bindI18n.split(' ').forEach(e => i18n.off(e, wrappedCallback));\n if (bindI18nStore) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, wrappedCallback));\n };\n }, [i18n, i18nOptions]);\n const snapshotRef = useRef();\n const getSnapshot = useCallback(() => {\n if (!i18n) {\n return notReadySnapshot;\n }\n const calculatedReady = !!(i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every(n => hasLoadedNamespace(n, i18n, i18nOptions));\n const currentLng = props.lng || i18n.language;\n const currentRevision = revisionRef.current;\n const lastSnapshot = snapshotRef.current;\n if (lastSnapshot && lastSnapshot.ready === calculatedReady && lastSnapshot.lng === currentLng && lastSnapshot.keyPrefix === keyPrefix && lastSnapshot.revision === currentRevision) {\n return lastSnapshot;\n }\n const calculatedT = i18n.getFixedT(currentLng, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix, {\n scopeNs: namespaces\n });\n const newSnapshot = {\n t: calculatedT,\n ready: calculatedReady,\n lng: currentLng,\n keyPrefix,\n revision: currentRevision\n };\n snapshotRef.current = newSnapshot;\n return newSnapshot;\n }, [i18n, namespaces, keyPrefix, i18nOptions, props.lng]);\n const [loadCount, setLoadCount] = useState(0);\n const {\n t,\n ready\n } = useSyncExternalStore(subscribe, getSnapshot, getSnapshot);\n useEffect(() => {\n if (i18n && !ready && !useSuspense) {\n const onLoaded = () => setLoadCount(c => c + 1);\n if (props.lng) {\n loadLanguages(i18n, props.lng, namespaces, onLoaded);\n } else {\n loadNamespaces(i18n, namespaces, onLoaded);\n }\n }\n }, [i18n, props.lng, namespaces, ready, useSuspense, loadCount]);\n const finalI18n = i18n || {};\n const wrapperRef = useRef(null);\n const wrapperLangRef = useRef();\n const createI18nWrapper = original => {\n const descriptors = Object.getOwnPropertyDescriptors(original);\n if (descriptors.__original) delete descriptors.__original;\n const wrapper = Object.create(Object.getPrototypeOf(original), descriptors);\n if (!Object.prototype.hasOwnProperty.call(wrapper, '__original')) {\n try {\n Object.defineProperty(wrapper, '__original', {\n vaLine truncated
{"offset": {"line": 5965, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/utils.js"],"sourcesContent":["export const warn = (i18n, code, msg, rest) => {\n const args = [msg, {\n code,\n ...(rest || {})\n }];\n if (i18n?.services?.logger?.forward) {\n return i18n.services.logger.forward(args, 'warn', 'react-i18next::', true);\n }\n if (isString(args[0])) args[0] = `react-i18next:: ${args[0]}`;\n if (i18n?.services?.logger?.warn) {\n i18n.services.logger.warn(...args);\n } else if (console?.warn) {\n console.warn(...args);\n }\n};\nconst alreadyWarned = {};\nexport const warnOnce = (i18n, code, msg, rest) => {\n if (isString(msg) && alreadyWarned[msg]) return;\n if (isString(msg)) alreadyWarned[msg] = new Date();\n warn(i18n, code, msg, rest);\n};\nconst loadedClb = (i18n, cb) => () => {\n if (i18n.isInitialized) {\n cb();\n } else {\n const initialized = () => {\n setTimeout(() => {\n i18n.off('initialized', initialized);\n }, 0);\n cb();\n };\n i18n.on('initialized', initialized);\n }\n};\nexport const loadNamespaces = (i18n, ns, cb) => {\n i18n.loadNamespaces(ns, loadedClb(i18n, cb));\n};\nexport const loadLanguages = (i18n, lng, ns, cb) => {\n if (isString(ns)) ns = [ns];\n if (i18n.options.preload && i18n.options.preload.indexOf(lng) > -1) return loadNamespaces(i18n, ns, cb);\n ns.forEach(n => {\n if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);\n });\n i18n.loadLanguages(lng, loadedClb(i18n, cb));\n};\nexport const hasLoadedNamespace = (ns, i18n, options = {}) => {\n if (!i18n.languages || !i18n.languages.length) {\n warnOnce(i18n, 'NO_LANGUAGES', 'i18n.languages were undefined or empty', {\n languages: i18n.languages\n });\n return true;\n }\n return i18n.hasLoadedNamespace(ns, {\n lng: options.lng,\n precheck: (i18nInstance, loadNotPending) => {\n if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;\n }\n });\n};\nexport const getDisplayName = Component => Component.displayName || Component.name || (isString(Component) && Component.length > 0 ? Component : 'Unknown');\nexport const isString = obj => typeof obj === 'string';\nexport const isObject = obj => typeof obj === 'object' && obj !== null;"],"names":["warn","i18n","code","msg","rest","args","services","logger","forward","isString","console","alreadyWarned","warnOnce","Date","loadedClb","cb","isInitialized","initialized","setTimeout","off","on","loadNamespaces","ns","loadLanguages","lng","options","preload","indexOf","forEach","n","push","hasLoadedNamespace","languages","length","precheck","i18nInstance","loadNotPending","bindI18n","backendConnector","backend","isLanguageChangingTo","getDisplayName","Component","displayName","name","obj","isObject"],"mappings":";;;;;;;;;;;;;;;;;;AAAO,MAAMA,OAAO,CAACC,MAAMC,MAAMC,KAAKC;IACpC,MAAMC,OAAO;QAACF;QAAK;YACjBD;YACA,GAAIE,QAAQ,CAAC,CAAC;QAChB;KAAE;IACF,IAAIH,MAAMK,UAAUC,QAAQC,SAAS;QACnC,OAAOP,KAAKK,QAAQ,CAACC,MAAM,CAACC,OAAO,CAACH,MAAM,QAAQ,mBAAmB;IACvE;IACA,IAAII,SAASJ,IAAI,CAAC,EAAE,GAAGA,IAAI,CAAC,EAAE,GAAG,CAAC,gBAAgB,EAAEA,IAAI,CAAC,EAAE,EAAE;IAC7D,IAAIJ,MAAMK,UAAUC,QAAQP,MAAM;QAChCC,KAAKK,QAAQ,CAACC,MAAM,CAACP,IAAI,IAAIK;IAC/B,OAAO,IAAIK,SAASV,MAAM;QACxBU,QAAQV,IAAI,IAAIK;IAClB;AACF;AACA,MAAMM,gBAAgB,CAAC;AAChB,MAAMC,WAAW,CAACX,MAAMC,MAAMC,KAAKC;IACxC,IAAIK,SAASN,QAAQQ,aAAa,CAACR,IAAI,EAAE;IACzC,IAAIM,SAASN,MAAMQ,aAAa,CAACR,IAAI,GAAG,IAAIU;IAC5Cb,KAAKC,MAAMC,MAAMC,KAAKC;AACxB;AACA,MAAMU,YAAY,CAACb,MAAMc,KAAO;QAC9B,IAAId,KAAKe,aAAa,EAAE;YACtBD;QACF,OAAO;YACL,MAAME,cAAc;gBAClBC,WAAW;oBACTjB,KAAKkB,GAAG,CAAC,eAAeF;gBAC1B,GAAG;gBACHF;YACF;YACAd,KAAKmB,EAAE,CAAC,eAAeH;QACzB;IACF;AACO,MAAMI,iBAAiB,CAACpB,MAAMqB,IAAIP;IACvCd,KAAKoB,cAAc,CAACC,IAAIR,UAAUb,MAAMc;AAC1C;AACO,MAAMQ,gBAAgB,CAACtB,MAAMuB,KAAKF,IAAIP;IAC3C,IAAIN,SAASa,KAAKA,KAAK;QAACA;KAAG;IAC3B,IAAIrB,KAAKwB,OAAO,CAACC,OAAO,IAAIzB,KAAKwB,OAAO,CAACC,OAAO,CAACC,OAAO,CAACH,OAAO,CAAC,GAAG,OAAOH,eAAepB,MAAMqB,IAAIP;IACpGO,GAAGM,OAAO,CAACC,CAAAA;QACT,IAAI5B,KAAKwB,OAAO,CAACH,EAAE,CAACK,OAAO,CAACE,KAAK,GAAG5B,KAAKwB,OAAO,CAACH,EAAE,CAACQ,IAAI,CAACD;IAC3D;IACA5B,KAAKsB,aAAa,CAACC,KAAKV,UAAUb,MAAMc;AAC1C;AACO,MAAMgB,qBAAqB,CAACT,IAAIrB,MAAMwB,UAAU,CAAC,CAAC;IACvD,IAAI,CAACxB,KAAK+B,SAAS,IAAI,CAAC/B,KAAK+B,SAAS,CAACC,MAAM,EAAE;QAC7CrB,SAASX,MAAM,gBAAgB,0CAA0C;YACvE+B,WAAW/B,KAAK+B,SAAS;QAC3B;QACA,OAAO;IACT;IACA,OAAO/B,KAAK8B,kBAAkB,CAACT,IAAI;QACjCE,KAAKC,QAAQD,GAAG;QAChBU,UAAU,CAACC,cAAcC;YACvB,IAAIX,QAAQY,QAAQ,IAAIZ,QAAQY,QAAQ,CAACV,OAAO,CAAC,sBAAsB,CAAC,KAAKQ,aAAa7B,QAAQ,CAACgC,gBAAgB,CAACC,OAAO,IAAIJ,aAAaK,oBAAoB,IAAI,CAACJ,eAAeD,aAAaK,oBAAoB,EAAElB,KAAK,OAAO;QACrO;IACF;AACF;AACO,MAAMmB,iBAAiBC,CAAAA,YAAaA,UAAUC,WAAW,IAAID,UAAUE,IAAI,IAAI,CAACnC,SAASiC,cAAcA,UAAUT,MAAM,GAAG,IAAIS,YAAY,SLine truncated
{"offset": {"line": 6054, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/withSSR.js"],"sourcesContent":["import { createElement } from 'react';\nimport { useSSR } from './useSSR.js';\nimport { composeInitialProps } from './context.js';\nimport { getDisplayName } from './utils.js';\nexport const withSSR = () => function Extend(WrappedComponent) {\n function I18nextWithSSR({\n initialI18nStore,\n initialLanguage,\n ...rest\n }) {\n useSSR(initialI18nStore, initialLanguage);\n return createElement(WrappedComponent, {\n ...rest\n });\n }\n I18nextWithSSR.getInitialProps = composeInitialProps(WrappedComponent);\n I18nextWithSSR.displayName = `withI18nextSSR(${getDisplayName(WrappedComponent)})`;\n I18nextWithSSR.WrappedComponent = WrappedComponent;\n return I18nextWithSSR;\n};"],"names":["withSSR","Extend","WrappedComponent","I18nextWithSSR","initialI18nStore","initialLanguage","rest","getInitialProps","displayName"],"mappings":";;;;AAAA;AACA;AACA;AACA;;;;;AACO,MAAMA,UAAU,IAAM,SAASC,OAAOC,gBAAgB;QAC3D,SAASC,eAAe,EACtBC,gBAAgB,EAChBC,eAAe,EACf,GAAGC,MACJ;YACC,IAAA,qKAAM,EAACF,kBAAkBC;YACzB,OAAO,IAAA,8KAAa,EAACH,kBAAkB;gBACrC,GAAGI,IAAI;YACT;QACF;QACAH,eAAeI,eAAe,GAAG,IAAA,mMAAmB,EAACL;QACrDC,eAAeK,WAAW,GAAG,CAAC,eAAe,EAAE,IAAA,4KAAc,EAACN,kBAAkB,CAAC,CAAC;QAClFC,eAAeD,gBAAgB,GAAGA;QAClC,OAAOC;IACT","ignoreList":[0]}},
{"offset": {"line": 6082, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-i18next/dist/es/withTranslation.js"],"sourcesContent":["import { createElement, forwardRef as forwardRefReact } from 'react';\nimport { useTranslation } from './useTranslation.js';\nimport { getDisplayName } from './utils.js';\nexport const withTranslation = (ns, options = {}) => function Extend(WrappedComponent) {\n function I18nextWithTranslation({\n forwardedRef,\n ...rest\n }) {\n const [t, i18n, ready] = useTranslation(ns, {\n ...rest,\n keyPrefix: options.keyPrefix\n });\n const passDownProps = {\n ...rest,\n t,\n i18n,\n tReady: ready\n };\n if (options.withRef && forwardedRef) {\n passDownProps.ref = forwardedRef;\n } else if (!options.withRef && forwardedRef) {\n passDownProps.forwardedRef = forwardedRef;\n }\n return createElement(WrappedComponent, passDownProps);\n }\n I18nextWithTranslation.displayName = `withI18nextTranslation(${getDisplayName(WrappedComponent)})`;\n I18nextWithTranslation.WrappedComponent = WrappedComponent;\n const forwardRef = (props, ref) => createElement(I18nextWithTranslation, Object.assign({}, props, {\n forwardedRef: ref\n }));\n return options.withRef ? forwardRefReact(forwardRef) : I18nextWithTranslation;\n};"],"names":["withTranslation","ns","options","Extend","WrappedComponent","I18nextWithTranslation","forwardedRef","rest","t","i18n","ready","keyPrefix","passDownProps","tReady","withRef","ref","displayName","forwardRef","props","Object","assign"],"mappings":";;;;AAAA;AACA;AACA;;;;AACO,MAAMA,kBAAkB,CAACC,IAAIC,UAAU,CAAC,CAAC,GAAK,SAASC,OAAOC,gBAAgB;QACnF,SAASC,uBAAuB,EAC9BC,YAAY,EACZ,GAAGC,MACJ;YACC,MAAM,CAACC,GAAGC,MAAMC,MAAM,GAAG,IAAA,qLAAc,EAACT,IAAI;gBAC1C,GAAGM,IAAI;gBACPI,WAAWT,QAAQS,SAAS;YAC9B;YACA,MAAMC,gBAAgB;gBACpB,GAAGL,IAAI;gBACPC;gBACAC;gBACAI,QAAQH;YACV;YACA,IAAIR,QAAQY,OAAO,IAAIR,cAAc;gBACnCM,cAAcG,GAAG,GAAGT;YACtB,OAAO,IAAI,CAACJ,QAAQY,OAAO,IAAIR,cAAc;gBAC3CM,cAAcN,YAAY,GAAGA;YAC/B;YACA,OAAO,IAAA,8KAAa,EAACF,kBAAkBQ;QACzC;QACAP,uBAAuBW,WAAW,GAAG,CAAC,uBAAuB,EAAE,IAAA,4KAAc,EAACZ,kBAAkB,CAAC,CAAC;QAClGC,uBAAuBD,gBAAgB,GAAGA;QAC1C,MAAMa,aAAa,CAACC,OAAOH,MAAQ,IAAA,8KAAa,EAACV,wBAAwBc,OAAOC,MAAM,CAAC,CAAC,GAAGF,OAAO;gBAChGZ,cAAcS;YAChB;QACA,OAAOb,QAAQY,OAAO,GAAG,IAAA,2KAAe,EAACG,cAAcZ;IACzD","ignoreList":[0]}},
{"offset": {"line": 6122, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.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 is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["is","x","y","useSyncExternalStore$2","subscribe","getSnapshot","didWarnOld18Alpha","React","startTransition","console","error","value","didWarnUncachedGetSnapshot","cachedValue","objectIs","useState","inst","forceUpdate","useLayoutEffect","checkIfSnapshotChanged","useEffect","useDebugValue","latestGetSnapshot","nextValue","useSyncExternalStore$1","__REACT_DEVTOOLS_GLOBAL_HOOK__","registerInternalModuleStart","Error","Object","shim","window","document","createElement","exports","useSyncExternalStore","registerInternalModuleStop"],"mappings":"AAWiB;AAXjB;;;;;;;;CAQC,GAED;AACA,oEACE,AAAC;IACC,SAASA,GAAGC,CAAC,EAAEC,CAAC;QACd,OAAO,AAACD,MAAMC,KAAK,CAAC,MAAMD,KAAK,IAAIA,MAAM,IAAIC,CAAC,KAAOD,MAAMA,KAAKC,MAAMA;IACxE;IACA,SAASC,uBAAuBC,SAAS,EAAEC,WAAW;QACpDC,qBACE,KAAK,MAAMC,MAAMC,eAAe,IAChC,CAAC,AAACF,oBAAoB,CAAC,GACvBG,QAAQC,KAAK,CACX,iMACD;QACH,IAAIC,QAAQN;QACZ,IAAI,CAACO,4BAA4B;YAC/B,IAAIC,cAAcR;YAClBS,SAASH,OAAOE,gBACd,CAACJ,QAAQC,KAAK,CACZ,yEAEDE,6BAA6B,CAAC,CAAE;QACrC;QACAC,cAAcE,SAAS;YACrBC,MAAM;gBAAEL,OAAOA;gBAAON,aAAaA;YAAY;QACjD;QACA,IAAIW,OAAOH,WAAW,CAAC,EAAE,CAACG,IAAI,EAC5BC,cAAcJ,WAAW,CAAC,EAAE;QAC9BK;sDACE;gBACEF,KAAKL,KAAK,GAAGA;gBACbK,KAAKX,WAAW,GAAGA;gBACnBcLine truncated
{"offset": {"line": 6204, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,13 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"],"sourcesContent":["\"use strict\";\n\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\nexports._ = _interop_require_default;\n"],"names":["_interop_require_default","obj","__esModule","default","exports","_"],"mappings":"AAEA,SAASA,yBAAyBC,GAAG;IACjC,OAAOA,OAAOA,IAAIC,UAAU,GAAGD,MAAM;QAAEE,SAASF;IAAI;AACxD;AACAG,QAAQC,CAAC,GAAGL","ignoreList":[0]}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"],"sourcesContent":["\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n"],"names":["_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interop_require_wildcard","obj","__esModule","default","cache","has","get","newObj","__proto__","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","exports","_"],"mappings":"AAEA,SAASA,yBAAyBC,WAAW;IACzC,IAAI,OAAOC,YAAY,YAAY,OAAO;IAE1C,IAAIC,oBAAoB,IAAID;IAC5B,IAAIE,mBAAmB,IAAIF;IAE3B,OAAO,CAACF,2BAA2B,SAASC,WAAW;QACnD,OAAOA,cAAcG,mBAAmBD;IAC5C,CAAC,EAAEF;AACP;AACA,SAASI,0BAA0BC,GAAG,EAAEL,WAAW;IAC/C,IAAI,CAACA,eAAeK,OAAOA,IAAIC,UAAU,EAAE,OAAOD;IAClD,IAAIA,QAAQ,QAAQ,OAAOA,QAAQ,YAAY,OAAOA,QAAQ,YAAY,OAAO;QAAEE,SAASF;IAAI;IAEhG,IAAIG,QAAQT,yBAAyBC;IAErC,IAAIQ,SAASA,MAAMC,GAAG,CAACJ,MAAM,OAAOG,MAAME,GAAG,CAACL;IAE9C,IAAIM,SAAS;QAAEC,WAAW;IAAK;IAC/B,IAAIC,wBAAwBC,OAAOC,cAAc,IAAID,OAAOE,wBAAwB;IAEpF,IAAK,IAAIC,OAAOZ,IAAK;QACjB,IAAIY,QAAQ,aAAaH,OAAOI,SAAS,CAACC,cAAc,CAACC,IAAI,CAACf,KAAKY,MAAM;YACrE,IAAII,OAAOR,wBAAwBC,OAAOE,wBAAwB,CAACX,KAAKY,OAAO;YAC/E,IAAII,QAAQ,CAACA,KAAKX,GAAG,IAAIW,KAAKC,GAAG,GAAGR,OAAOC,cAAc,CAACJ,QAAQM,KAAKI;iBAClEV,MAAM,CAACM,IAAI,GAAGZ,GAAG,CAACY,IAAI;QAC/B;IACJ;IAEAN,OAAOJ,OAAO,GAAGF;IAEjB,IAAIG,OAAOA,MAAMc,GAAG,CAACjB,KAAKM;IAE1B,OAAOA;AACX;AACAY,QAAQC,CAAC,GAAGpB","ignoreList":[0]}},
{"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.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 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 }\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 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 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 Line truncated
{"offset": {"line": 261, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react/cjs/react.development.js"],"sourcesContent":["/**\n * @license React\n * react.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 defineDeprecationWarning(methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n console.warn(\n \"%s(...) is deprecated in plain JavaScript React classes. %s\",\n info[0],\n info[1]\n );\n }\n });\n }\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 warnNoop(publicInstance, callerName) {\n publicInstance =\n ((publicInstance = publicInstance.constructor) &&\n (publicInstance.displayName || publicInstance.name)) ||\n \"ReactClass\";\n var warningKey = publicInstance + \".\" + callerName;\n didWarnStateUpdateForUnmountedComponent[warningKey] ||\n (console.error(\n \"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",\n callerName,\n publicInstance\n ),\n (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));\n }\n function Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function ComponentDummy() {}\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function noop() {}\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 }\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 Line truncated
{"offset": {"line": 1062, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 1073, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 1084, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/scheduler/cjs/scheduler.development.js"],"sourcesContent":["/**\n * @license React\n * scheduler.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 performWorkUntilDeadline() {\n needsPaint = !1;\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime &&\n shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n }\n function push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node),\n (heap[index] = parent),\n (index = parentIndex);\n else break a;\n }\n }\n function peek(heap) {\n return 0 === heap.length ? null : heap[0];\n }\n function pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex);\n else break a;\n }\n }\n return first;\n }\n function compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n }\n function advanceTimers(currentTime) {\n fLine truncated
{"offset": {"line": 1332, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/scheduler/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,68 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/dayjs/dayjs.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;Line truncated
{"offset": {"line": 357, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/deepmerge/dist/cjs.js"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n"],"names":["isMergeableObject","value","isNonNullObject","isSpecial","stringValue","Object","prototype","toString","call","isReactElement","canUseSymbol","Symbol","for","REACT_ELEMENT_TYPE","$$typeof","emptyTarget","val","Array","isArray","cloneUnlessOtherwiseSpecified","options","clone","deepmerge","defaultArrayMerge","target","source","concat","map","element","getMergeFunction","key","customMerge","getEnumerableOwnPropertySymbols","getOwnPropertySymbols","filter","symbol","propertyIsEnumerable","getKeys","keys","propertyIsOnObjectLine truncated
{"offset": {"line": 464, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/dom-serializer/dist/foreign-names.js","sources":["file:///Users/home/Projects/forumlify/node_modules/dom-serializer/src/foreign-names.ts"],"sourcesContent":["/**\n * Mixed-case SVG and MathML element names recognized in foreign content.\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nexport const elementNames = new Map<string, string>(\n \"altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath\"\n .split(\" \")\n .map((name) => [name.toLowerCase(), name]),\n);\n\n/**\n * Mixed-case SVG and MathML attribute names recognized in foreign content.\n * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign\n */\nexport const attributeNames = new Map<string, string>(\n \"definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan\"\n .split(\" \")\n .map((name) => [name.toLowerCase(), name]),\n);\n"],"names":[],"mappings":"AAAA;;;GAGG;;;;;;AACI,MAAM,YAAY,GAAG,IAAI,GAAG,CACjC,scAAsc,CACnc,KAAK,CAAC,GAAG,CAAC,CACV,GAAG,CAAC,CAAC,IAAI,EAAE,CAAG,CAAD;QAAE,IAAI,CAAC,WAAW,EAAE;QAAE,IAAI;KAAC,CAAC,CAC7C,CAAC;AAMK,MAAM,cAAc,GAAG,IAAI,GAAG,CACnC,uvBAAuvB,CACpvB,KAAK,CAAC,GAAG,CAAC,CACV,GAAG,CAAC,CAAC,IAAI,EAAE,CAAG,CAAD;QAAE,IAAI,CAAC,WAAW,EAAE;QAAE,IAAI;KAAC,CAAC,CAC7C,CAAC"}},
{"offset": {"line": 485, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/dom-serializer/dist/index.js","sources":["file:///Users/home/Projects/forumlify/node_modules/dom-serializer/src/index.ts"],"sourcesContent":["import * as ElementType from \"domelementtype\";\nimport type {\n AnyNode,\n CDATA,\n Comment,\n Element,\n ProcessingInstruction,\n Text,\n} from \"domhandler\";\nimport { encodeXML, escapeAttribute, escapeText } from \"entities\";\nimport { attributeNames, elementNames } from \"./foreign-names.js\";\n\n/**\n * Options for DOM serialization.\n */\nexport interface DomSerializerOptions {\n /**\n * Print an empty attribute's value.\n * @default xmlMode\n * @example With <code>emptyAttrs: false</code>: <code>&lt;input checked&gt;</code>\n * @example With <code>emptyAttrs: true</code>: <code>&lt;input checked=\"\"&gt;</code>\n */\n emptyAttrs?: boolean;\n /**\n * Print self-closing tags for tags without contents. If `xmlMode` is set,\n * this will apply to all tags. Otherwise, only tags that are defined as\n * self-closing in the HTML specification will be printed as such.\n * @default xmlMode\n * @example With <code>selfClosingTags: false</code>: <code>&lt;foo&gt;&lt;/foo&gt;&lt;br&gt;&lt;/br&gt;</code>\n * @example With <code>xmlMode: true</code> and <code>selfClosingTags: true</code>: <code>&lt;foo/&gt;&lt;br/&gt;</code>\n * @example With <code>xmlMode: false</code> and <code>selfClosingTags: true</code>: <code>&lt;foo&gt;&lt;/foo&gt;&lt;br /&gt;</code>\n */\n selfClosingTags?: boolean;\n /**\n * Treat the input as an XML document; enables the `emptyAttrs` and\n * `selfClosingTags` options.\n *\n * If the value is `\"foreign\"`, it will try to correct mixed-case attribute\n * names.\n * @default false\n */\n xmlMode?: boolean | \"foreign\";\n /**\n * Encode characters reserved in HTML or XML in text and attribute values.\n *\n * If `xmlMode` is set or the value is not `'utf8'`, characters outside the\n * ASCII range will also be encoded as numeric entities.\n *\n * **Security:** Setting this to `false` disables encoding of `<`, `>`, `&`,\n * and (in attribute values) `'` — only `\"` in attribute values is escaped.\n * This is safe for the round-trip case (DOM was parsed with\n * `decodeEntities: false`, so any markup characters in text or attribute\n * values exist only as entity references), and unsafe otherwise. If text\n * or attribute values in the DOM contain raw `<`, `>`, or `&`, those\n * characters will appear literally in the output.\n * @default `decodeEntities`\n */\n encodeEntities?: boolean | \"utf8\";\n /**\n * Default for `encodeEntities`. Named to match the parser option of the\n * same name so a single options object can be threaded through parse and\n * serialize for a faithful round-trip — for example, cheerio parses with\n * `decodeEntities: false` to preserve entity references and passes the\n * same option here so they are not re-encoded.\n *\n * Despite the name, on the serializer this option controls *encoding*.\n * Setting it to `false` carries the same caveat as `encodeEntities: false`\n * — see that option.\n * @default true\n */\n decodeEntities?: boolean;\n}\n\n// ── Constants ────────────────────────────────────────────────────────\n\n/** Elements whose text content is never entity-encoded. */\nconst unencodedElements = new Set(\n \"style script xmp iframe noembed noframes plaintext noscript\".split(\" \"),\n);\n\n/** HTML void elements — they cannot have children. */\nconst voidElements = new Set(\n \"area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr\".split(\n \" \",\n ),\n);\n\n/** Elements that switch the parser into foreign (XML-like) mode. */\nconst foreignElements = new Set([\"svg\", \"math\"]);\n\n/**\n * Foreign-mode integration points: children of these elements are parsed\n * as HTML again, not as foreign content.\n */\nconst foreignModeIntegrationPoints = new Set(\n \"mi mo mn ms mtext annotation-xml foreignObject desc title\".split(\" \"),\n);\n\n// ── Public API ───────────────────────────────────────────────────────\n\n/**\n * Renders a DOM node or an array of DOM nodes to a string.\n *\n * Can be thought of as the equivalent of the `outerHTML` of the passed\n * node(s).\n * @param node Node to be rendered.\n * @param options Changes serialization behavior\n */\nexport function render(\n node: AnyNode | ArrayLike<AnyNode>,\n options: DomSerializerOptions = {},\n): string {\n const nodes = \"length\" in node ? node : [node];\n\n /*\n * `xmlMode` is threaded as a separate argument through the internal\n * functiLine truncated
{"offset": {"line": 644, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/domelementtype/dist/index.js"],"sourcesContent":["/** Types of elements found in htmlparser2's DOM */\nexport var ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for <? ... ?> */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for <!-- ... --> */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for <script> tags */\n ElementType[\"Script\"] = \"script\";\n /** Type for <style> tags */\n ElementType[\"Style\"] = \"style\";\n /** Type for Any tag */\n ElementType[\"Tag\"] = \"tag\";\n /** Type for <![CDATA[ ... ]]> */\n ElementType[\"CDATA\"] = \"cdata\";\n /** Type for <!doctype ...> */\n ElementType[\"Doctype\"] = \"doctype\";\n})(ElementType || (ElementType = {}));\n/**\n * Tests whether an element is a tag or not.\n * @param element Element to test\n * @param element.type Node type discriminator to check.\n */\nexport function isTag(element) {\n return (element.type === ElementType.Tag ||\n element.type === ElementType.Script ||\n element.type === ElementType.Style);\n}\n// Exports for backwards compatibility\n/** Type for the root element of a document */\n// eslint-disable-next-line prefer-destructuring\nexport const Root = ElementType.Root;\n/** Type for Text */\n// eslint-disable-next-line prefer-destructuring\nexport const Text = ElementType.Text;\n/** Type for <? ... ?> */\n// eslint-disable-next-line prefer-destructuring\nexport const Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\n// eslint-disable-next-line prefer-destructuring\nexport const Comment = ElementType.Comment;\n/** Type for <script> tags */\n// eslint-disable-next-line prefer-destructuring\nexport const Script = ElementType.Script;\n/** Type for <style> tags */\n// eslint-disable-next-line prefer-destructuring\nexport const Style = ElementType.Style;\n/** Type for Any tag */\n// eslint-disable-next-line prefer-destructuring\nexport const Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\n// eslint-disable-next-line prefer-destructuring\nexport const CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\n// eslint-disable-next-line prefer-destructuring\nexport const Doctype = ElementType.Doctype;\n"],"names":["ElementType","isTag","element","type","Tag","Script","Style","Root","Text","Directive","Comment","CDATA","Doctype"],"mappings":"AAAA,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;AAC1C,IAAIA;AACX,CAAC,SAAUA,WAAW;IAClB,4CAA4C,GAC5CA,WAAW,CAAC,OAAO,GAAG;IACtB,kBAAkB,GAClBA,WAAW,CAAC,OAAO,GAAG;IACtB,uBAAuB,GACvBA,WAAW,CAAC,YAAY,GAAG;IAC3B,0BAA0B,GAC1BA,WAAW,CAAC,UAAU,GAAG;IACzB,2BAA2B,GAC3BA,WAAW,CAAC,SAAS,GAAG;IACxB,0BAA0B,GAC1BA,WAAW,CAAC,QAAQ,GAAG;IACvB,qBAAqB,GACrBA,WAAW,CAAC,MAAM,GAAG;IACrB,+BAA+B,GAC/BA,WAAW,CAAC,QAAQ,GAAG;IACvB,4BAA4B,GAC5BA,WAAW,CAAC,UAAU,GAAG;AAC7B,CAAC,EAAEA,eAAe,CAACA,cAAc,CAAC,CAAC;AAM5B,SAASC,MAAMC,OAAO;IACzB,OAAQA,QAAQC,IAAI,KAAKH,YAAYI,GAAG,IACpCF,QAAQC,IAAI,KAAKH,YAAYK,MAAM,IACnCH,QAAQC,IAAI,KAAKH,YAAYM,KAAK;AAC1C;AAIO,MAAMC,OAAOP,YAAYO,IAAI;AAG7B,MAAMC,OAAOR,YAAYQ,IAAI;AAG7B,MAAMC,YAAYT,YAAYS,SAAS;AAGvC,MAAMC,UAAUV,YAAYU,OAAO;AAGnC,MAAML,SAASL,YAAYK,MAAM;AAGjC,MAAMC,QAAQN,YAAYM,KAAK;AAG/B,MAAMF,MAAMJ,YAAYI,GAAG;AAG3B,MAAMO,QAAQX,YAAYW,KAAK;AAG/B,MAAMC,UAAUZ,YAAYY,OAAO","ignoreList":[0]}},
{"offset": {"line": 696, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/domhandler/dist/index.js"],"sourcesContent":["import { ElementType } from \"domelementtype\";\nimport { CDATA, Comment, Document, Element, ProcessingInstruction, Text, } from \"./node.js\";\nexport * from \"./node.js\";\n// Default options\nconst defaultOptions = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\n/**\n * Event-based handler that builds a DOM tree from parser callbacks.\n */\nexport class DomHandler {\n /** The elements of the DOM */\n dom = [];\n /** The root element for the DOM */\n root = new Document(this.dom);\n /** Called once parsing has completed. */\n callback;\n /** Settings for the handler. */\n options;\n /** Callback whenever a tag is closed. */\n elementCB;\n /** Indicated whether parsing has been completed. */\n done = false;\n /** Stack of open tags. */\n tagStack = [this.root];\n /** A data node that is still being written to. */\n lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n parser = null;\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n constructor(callback, options, elementCB) {\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOptions;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback ?? null;\n this.options = options ?? defaultOptions;\n this.elementCB = elementCB ?? null;\n }\n onparserinit(parser) {\n this.parser = parser;\n }\n // Resets the handler back to starting state\n onreset() {\n this.dom = [];\n this.root = new Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n }\n // Signals the handler that parsing is done\n onend() {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n }\n onerror(error) {\n this.handleCallback(error);\n }\n onclosetag() {\n this.lastNode = null;\n const element = this.tagStack.pop();\n if (this.options.withEndIndices && this.parser) {\n element.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(element);\n }\n onopentag(name, attribs) {\n const type = this.options.xmlMode ? ElementType.Tag : undefined;\n const element = new Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n }\n ontext(data) {\n const { lastNode } = this;\n if (lastNode && lastNode.type === ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices && this.parser) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n const node = new Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n }\n oncomment(data) {\n if (this.lastNode && this.lastNode.type === ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n const node = new Comment(data);\n this.addNode(node);\n this.lastNode = node;\n }\n oncommentend() {\n this.lastNode = null;\n }\n oncdatastart() {\n const text = new Text(\"\");\n const node = new CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n }\n oncdataend() {\n this.lastNode = null;\n }\n onprocessinginstruction(name, data) {\n const node = new ProcessingInstruction(name, data);\n this.addNode(node);\n }\n handleCallback(error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n }\n addNode(node) {\n const parent = this.tagStack[this.tagStack.length - 1];\n const previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices && this.parser) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices && this.parser) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n Line truncated
{"offset": {"line": 852, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/domhandler/dist/node.js"],"sourcesContent":["import { ElementType, isTag as isTagRaw } from \"domelementtype\";\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nexport class Node {\n /** Parent of the node */\n parent = null;\n /** Previous sibling */\n prev = null;\n /** Next sibling */\n next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n endIndex = null;\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get parentNode() {\n return this.parent;\n }\n set parentNode(parent) {\n this.parent = parent;\n }\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get previousSibling() {\n return this.prev;\n }\n set previousSibling(previous) {\n this.prev = previous;\n }\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nextSibling() {\n return this.next;\n }\n set nextSibling(next) {\n this.next = next;\n }\n /**\n * Clone this node, and optionally its children.\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n cloneNode(recursive = false) {\n return cloneNode(this, recursive);\n }\n}\n/**\n * A node that contains some data.\n */\nexport class DataNode extends Node {\n data;\n /**\n * @param data The content of the data node\n */\n constructor(data) {\n super();\n this.data = data;\n }\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get nodeValue() {\n return this.data;\n }\n set nodeValue(data) {\n this.data = data;\n }\n}\n/**\n * Text within the document.\n */\nexport class Text extends DataNode {\n type = ElementType.Text;\n get nodeType() {\n return 3;\n }\n}\n/**\n * Comments within the document.\n */\nexport class Comment extends DataNode {\n type = ElementType.Comment;\n get nodeType() {\n return 8;\n }\n}\n/**\n * Processing instructions, including doc types.\n */\nexport class ProcessingInstruction extends DataNode {\n type = ElementType.Directive;\n name;\n constructor(name, data) {\n super(data);\n this.name = name;\n }\n get nodeType() {\n return 1;\n }\n /** If this is a doctype, the document type name (parse5 only). */\n \"x-name\";\n /** If this is a doctype, the document type public identifier (parse5 only). */\n \"x-publicId\";\n /** If this is a doctype, the document type system identifier (parse5 only). */\n \"x-systemId\";\n}\n/**\n * A node that can have children.\n */\nexport class NodeWithChildren extends Node {\n children;\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n constructor(children) {\n super();\n this.children = children;\n }\n // Aliases\n /** First child of the node. */\n get firstChild() {\n return this.children[0] ?? null;\n }\n /** Last child of the node. */\n get lastChild() {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n }\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get childNodes() {\n return this.children;\n }\n set childNodes(children) {\n this.children = children;\n }\n}\n/**\n * CDATA nodes.\n */\nexport class CDATA extends NodeWithChildren {\n type = ElementType.CDATA;\n get nodeType() {\n return 4;\n }\n}\n/**\n * The root node of the document.\n */\nexport class Document extends NodeWithChildren {\n type = ElementType.Root;\n get nodeType() {\n return 9;\n }\n}\n/**\n * An element within the DOM.\n */\nexport class Element extends NodeWithChildren {\n name;\n attribs;\n type;\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n * @param type Node type used for the new node instance.\n */\n constructor(name, attribs, children = [], type = name === \"script\"\n ? ElementType.Script\n : name === \"style\"\n ? ElementType.Style\n : ElementType.Tag) {\n super(children);\n Line truncated
{"offset": {"line": 1153, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/feeds.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/feeds.ts"],"sourcesContent":["import type { AnyNode, Element } from \"domhandler\";\nimport { getElementsByTagName } from \"./legacy.js\";\nimport { textContent } from \"./stringify.js\";\n\n/**\n * The medium of a media item.\n *\n * @category Feeds\n */\nexport type FeedItemMediaMedium =\n | \"image\"\n | \"audio\"\n | \"video\"\n | \"document\"\n | \"executable\";\n\n/**\n * The type of a media item.\n *\n * @category Feeds\n */\nexport type FeedItemMediaExpression = \"sample\" | \"full\" | \"nonstop\";\n\n/**\n * A media item of a feed entry.\n *\n * @category Feeds\n */\nexport interface FeedItemMedia {\n medium: FeedItemMediaMedium | undefined;\n isDefault: boolean;\n url?: string;\n fileSize?: number;\n type?: string;\n expression?: FeedItemMediaExpression;\n bitrate?: number;\n framerate?: number;\n samplingrate?: number;\n channels?: number;\n duration?: number;\n height?: number;\n width?: number;\n lang?: string;\n}\n\n/**\n * An entry of a feed.\n *\n * @category Feeds\n */\nexport interface FeedItem {\n id?: string;\n title?: string;\n link?: string;\n description?: string;\n pubDate?: Date;\n media: FeedItemMedia[];\n}\n\n/**\n * The root of a feed.\n *\n * @category Feeds\n */\nexport interface Feed {\n type: string;\n id?: string;\n title?: string;\n link?: string;\n description?: string;\n updated?: Date;\n author?: string;\n items: FeedItem[];\n}\n\n/**\n * Get the feed object from the root of a DOM tree.\n *\n * @category Feeds\n * @param document The DOM to extract the feed from.\n * @returns The feed.\n */\nexport function getFeed(document: AnyNode[]): Feed | null {\n const feedRoot = getOneElement(isValidFeed, document);\n\n return feedRoot\n ? feedRoot.name === \"feed\"\n ? getAtomFeed(feedRoot)\n : getRssFeed(feedRoot)\n : null;\n}\n\n/**\n * Parse an Atom feed.\n *\n * @param feedRoot The root of the feed.\n * @returns The parsed feed.\n */\nfunction getAtomFeed(feedRoot: Element) {\n const childs = feedRoot.children;\n\n const feed: Feed = {\n type: \"atom\",\n items: getElementsByTagName(\"entry\", childs).map((item) => {\n const { children } = item;\n const entry: FeedItem = { media: getMediaElements(children) };\n\n addConditionally(entry, \"id\", \"id\", children);\n addConditionally(entry, \"title\", \"title\", children);\n\n const href = getOneElement(\"link\", children)?.attribs[\"href\"];\n if (href) {\n entry.link = href;\n }\n\n const description =\n fetch(\"summary\", children) || fetch(\"content\", children);\n if (description) {\n entry.description = description;\n }\n\n const pubDate = fetch(\"updated\", children);\n if (pubDate) {\n entry.pubDate = new Date(pubDate);\n }\n\n return entry;\n }),\n };\n\n addConditionally(feed, \"id\", \"id\", childs);\n addConditionally(feed, \"title\", \"title\", childs);\n const href = getOneElement(\"link\", childs)?.attribs[\"href\"];\n if (href) {\n feed.link = href;\n }\n addConditionally(feed, \"description\", \"subtitle\", childs);\n\n const updated = fetch(\"updated\", childs);\n if (updated) {\n feed.updated = new Date(updated);\n }\n\n addConditionally(feed, \"author\", \"email\", childs, true);\n\n return feed;\n}\n\n/**\n * Parse a RSS feed.\n *\n * @param feedRoot The root of the feed.\n * @returns The parsed feed.\n */\nfunction getRssFeed(feedRoot: Element) {\n const childs = getOneElement(\"channel\", feedRoot.children)?.children ?? [];\n\n const feed: Feed = {\n type: feedRoot.name.substr(0, 3),\n id: \"\",\n items: getElementsByTagName(\"item\", feedRoot.children).map(\n (item: Element) => {\n const { children } = item;\n const entry: FeedItem = { media: getMediaElements(children) };\n addConditionally(entry, \"id\", \"guid\", children);\n addConditionally(entry, \"title\", \"title\", children);\n addConditionally(entry, \"link\", \"link\", children);\n addConditionally(entry, \"description\", \"description\", children);\n const pubDate =\n fetch(\"pubDate\", children) || fetch(\"dc:date\", children);\n if (pubDate) entry.pubDate = new Date(pubDate);\n\n return entry;\n },\n ),\n };\n\n addConditionally(feed, \"title\", \"title\", childs);\n addConditionally(feed, \"link\"Line truncated
{"offset": {"line": 1330, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/helpers.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/helpers.ts"],"sourcesContent":["import { type AnyNode, hasChildren, type ParentNode } from \"domhandler\";\n\n/**\n * Given an array of nodes, remove any member that is contained by another\n * member.\n *\n * @category Helpers\n * @param nodes Nodes to filter.\n * @returns Remaining nodes that aren't contained by other nodes.\n */\nexport function removeSubsets(nodes: AnyNode[]): AnyNode[] {\n let index = nodes.length;\n\n /*\n * Check if each node (or one of its ancestors) is already contained in the\n * array.\n */\n while (--index >= 0) {\n const node = nodes[index];\n\n /*\n * Remove the node if it is not unique.\n * We are going through the array from the end, so we only\n * have to check nodes that preceed the node under consideration in the array.\n */\n if (index > 0 && nodes.lastIndexOf(node, index - 1) >= 0) {\n nodes.splice(index, 1);\n continue;\n }\n\n for (let ancestor = node.parent; ancestor; ancestor = ancestor.parent) {\n if (nodes.includes(ancestor)) {\n nodes.splice(index, 1);\n break;\n }\n }\n }\n\n return nodes;\n}\n/**\n * @category Helpers\n * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition}\n */\nexport const enum DocumentPosition {\n DISCONNECTED = 1,\n PRECEDING = 2,\n FOLLOWING = 4,\n CONTAINS = 8,\n CONTAINED_BY = 16,\n}\n\n/**\n * Compare the position of one node against another node in any other document,\n * returning a bitmask with the values from {@link DocumentPosition}.\n *\n * Document order:\n * > There is an ordering, document order, defined on all the nodes in the\n * > document corresponding to the order in which the first character of the\n * > XML representation of each node occurs in the XML representation of the\n * > document after expansion of general entities. Thus, the document element\n * > node will be the first node. Element nodes occur before their children.\n * > Thus, document order orders element nodes in order of the occurrence of\n * > their start-tag in the XML (after expansion of entities). The attribute\n * > nodes of an element occur after the element and before its children. The\n * > relative order of attribute nodes is implementation-dependent.\n *\n * Source:\n * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order\n *\n * @category Helpers\n * @param nodeA The first node to use in the comparison\n * @param nodeB The second node to use in the comparison\n * @returns A bitmask describing the input nodes' relative position.\n *\n * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for\n * a description of these values.\n */\nexport function compareDocumentPosition(\n nodeA: AnyNode,\n nodeB: AnyNode,\n): number {\n const aParents: ParentNode[] = [];\n const bParents: ParentNode[] = [];\n\n if (nodeA === nodeB) {\n return 0;\n }\n\n let current = hasChildren(nodeA) ? nodeA : nodeA.parent;\n while (current) {\n aParents.unshift(current);\n current = current.parent;\n }\n current = hasChildren(nodeB) ? nodeB : nodeB.parent;\n while (current) {\n bParents.unshift(current);\n current = current.parent;\n }\n\n const maxIndex = Math.min(aParents.length, bParents.length);\n let index = 0;\n while (index < maxIndex && aParents[index] === bParents[index]) {\n index++;\n }\n\n if (index === 0) {\n return DocumentPosition.DISCONNECTED;\n }\n\n const sharedParent = aParents[index - 1];\n const siblings: AnyNode[] = sharedParent.children;\n const aSibling = aParents[index];\n const bSibling = bParents[index];\n\n if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {\n if (sharedParent === nodeB) {\n return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;\n }\n return DocumentPosition.FOLLOWING;\n }\n if (sharedParent === nodeA) {\n return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;\n }\n return DocumentPosition.PRECEDING;\n}\n\n/**\n * Sort an array of nodes based on their relative position in the document,\n * removing any duplicate nodes. If the array contains nodes that do not belong\n * to the same document, sort order is unspecified.\n *\n * @category Helpers\n * @param nodes Array of DOM nodes.\n * @returns Collection of unique nodes, sorted in document order.\n */\nexport function uniqueSort<T extends AnyNode>(nodes: T[]): T[] {\n nodes = nodes.filter(\n (node, index, array) => !array.includes(node, index + 1),\n );\n\n nodes.sort((a, b) => {\n const relative = compareDocumentPositLine truncated
{"offset": {"line": 1515, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/index.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/index.ts"],"sourcesContent":["export * from \"./feeds.js\";\nexport * from \"./helpers.js\";\nexport * from \"./legacy.js\";\nexport * from \"./manipulation.js\";\nexport * from \"./querying.js\";\nexport * from \"./stringify.js\";\nexport * from \"./traversal.js\";\n"],"names":[],"mappings":""}},
{"offset": {"line": 1527, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/legacy.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/legacy.ts"],"sourcesContent":["import type { ElementType } from \"domelementtype\";\nimport { type AnyNode, type Element, isTag, isText } from \"domhandler\";\nimport { filter, findOne } from \"./querying.js\";\n\ntype TestType = (element: AnyNode) => boolean;\n\n/**\n * An object with keys to check elements against. If a key is `tag_name`,\n * `tag_type` or `tag_contains`, it will check the value against that specific\n * value. Otherwise, it will check an attribute with the key's name.\n *\n * @category Legacy Query Functions\n */\n// eslint-disable-next-line unicorn/prevent-abbreviations -- Keep the exported API name for backwards compatibility.\nexport interface TestElementOpts {\n tag_name?: string | ((name: string) => boolean);\n tag_type?: string | ((name: string) => boolean);\n tag_contains?: string | ((data?: string) => boolean);\n [attributeName: string]:\n | undefined\n | string\n | ((attributeValue: string) => boolean);\n}\n\n/**\n * A map of functions to check nodes against.\n */\nconst Checks: Record<\n string,\n (value: string | undefined | ((inputString: string) => boolean)) => TestType\n> = {\n tag_name(name) {\n if (typeof name === \"function\") {\n return (element: AnyNode) => isTag(element) && name(element.name);\n }\n if (name === \"*\") {\n return isTag;\n }\n return (element: AnyNode) => isTag(element) && element.name === name;\n },\n tag_type(type) {\n if (typeof type === \"function\") {\n return (element: AnyNode) => type(element.type);\n }\n return (element: AnyNode) => element.type === type;\n },\n tag_contains(data) {\n if (typeof data === \"function\") {\n return (element: AnyNode) => isText(element) && data(element.data);\n }\n return (element: AnyNode) => isText(element) && element.data === data;\n },\n};\n\n/**\n * Returns a function to check whether a node has an attribute with a particular\n * value.\n *\n * @param attrib Attribute to check.\n * @param value Attribute value to look for.\n * @returns A function to check whether the a node has an attribute with a\n * particular value.\n */\nfunction getAttribCheck(\n attrib: string,\n value: undefined | string | ((value: string) => boolean),\n): TestType {\n if (typeof value === \"function\") {\n return (element: AnyNode) =>\n isTag(element) && value(element.attribs[attrib]);\n }\n return (element: AnyNode) =>\n isTag(element) && element.attribs[attrib] === value;\n}\n\n/**\n * Returns a function that returns `true` if either of the input functions\n * returns `true` for a node.\n *\n * @param a First function to combine.\n * @param b Second function to combine.\n * @returns A function taking a node and returning `true` if either of the input\n * functions returns `true` for the node.\n */\nfunction combineFuncs(a: TestType, b: TestType): TestType {\n return (element: AnyNode) => a(element) || b(element);\n}\n\n/**\n * Returns a function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n *\n * @param options An object describing nodes to look for.\n * @returns A function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n */\nfunction compileTest(options: TestElementOpts): TestType | null {\n const funcs = Object.keys(options).map((key) => {\n const value = options[key];\n return Object.hasOwn(Checks, key)\n ? Checks[key](value)\n : getAttribCheck(key, value);\n });\n\n return funcs.length === 0 ? null : funcs.reduce(combineFuncs);\n}\n\n/**\n * Checks whether a node matches the description in `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param node The element to test.\n * @returns Whether the element matches the description in `options`.\n */\nexport function testElement(options: TestElementOpts, node: AnyNode): boolean {\n const test = compileTest(options);\n return test ? test(node) : true;\n}\n\n/**\n * Returns all nodes that match `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes that match `options`.\n */\nexport function getElements(\n options: TestElementOpts,\n nodes: AnyNode | AnyNode[],\n recurse: boolean,\n limit: number = Number.POSITIVE_INFINITY,\n): AnyNode[] {\n const test = compileTest(options);\n return test ? filter(test, nodes, recurse, limiLine truncated
{"offset": {"line": 1636, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/manipulation.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/manipulation.ts"],"sourcesContent":["import type { ChildNode, ParentNode } from \"domhandler\";\n\n/**\n * Remove an element from the dom\n *\n * @category Manipulation\n * @param element The element to be removed.\n */\nexport function removeElement(element: ChildNode): void {\n if (element.prev) element.prev.next = element.next;\n if (element.next) element.next.prev = element.prev;\n\n if (element.parent) {\n const childs = element.parent.children;\n const childsIndex = childs.lastIndexOf(element);\n if (childsIndex !== -1) {\n childs.splice(childsIndex, 1);\n }\n }\n element.next = null;\n element.prev = null;\n element.parent = null;\n}\n\n/**\n * Replace an element in the dom\n *\n * @category Manipulation\n * @param element The element to be replaced.\n * @param replacement The element to be added\n */\nexport function replaceElement(\n element: ChildNode,\n replacement: ChildNode,\n): void {\n replacement.prev = element.prev;\n if (replacement.prev) {\n replacement.prev.next = replacement;\n }\n\n replacement.next = element.next;\n if (replacement.next) {\n replacement.next.prev = replacement;\n }\n\n replacement.parent = element.parent;\n if (replacement.parent) {\n const { children } = replacement.parent;\n const elementIndex = children.lastIndexOf(element);\n if (elementIndex === -1) {\n return;\n }\n\n children[elementIndex] = replacement;\n element.parent = null;\n }\n}\n\n/**\n * Append a child to an element.\n *\n * @category Manipulation\n * @param parent The element to append to.\n * @param child The element to be added as a child.\n */\nexport function appendChild(parent: ParentNode, child: ChildNode): void {\n removeElement(child);\n\n child.next = null;\n child.parent = parent;\n\n if (parent.children.push(child) > 1) {\n const sibling = parent.children[parent.children.length - 2];\n sibling.next = child;\n child.prev = sibling;\n } else {\n child.prev = null;\n }\n}\n\n/**\n * Append an element after another.\n *\n * @category Manipulation\n * @param element The element to append after.\n * @param next The element be added.\n */\nexport function append(element: ChildNode, next: ChildNode): void {\n removeElement(next);\n\n const { parent } = element;\n const currentNext = element.next;\n\n next.next = currentNext;\n next.prev = element;\n element.next = next;\n next.parent = parent;\n\n if (currentNext) {\n currentNext.prev = next;\n if (parent) {\n const childs = parent.children;\n childs.splice(childs.lastIndexOf(currentNext), 0, next);\n }\n } else if (parent) {\n parent.children.push(next);\n }\n}\n\n/**\n * Prepend a child to an element.\n *\n * @category Manipulation\n * @param parent The element to prepend before.\n * @param child The element to be added as a child.\n */\nexport function prependChild(parent: ParentNode, child: ChildNode): void {\n removeElement(child);\n\n child.parent = parent;\n child.prev = null;\n\n if (parent.children.unshift(child) === 1) {\n child.next = null;\n } else {\n const sibling = parent.children[1];\n sibling.prev = child;\n child.next = sibling;\n }\n}\n\n/**\n * Prepend an element before another.\n *\n * @category Manipulation\n * @param element The element to prepend before.\n * @param previous The element to be added.\n */\nexport function prepend(element: ChildNode, previous: ChildNode): void {\n removeElement(previous);\n\n const { parent } = element;\n if (parent) {\n const childs = parent.children;\n childs.splice(childs.indexOf(element), 0, previous);\n }\n\n if (element.prev) {\n element.prev.next = previous;\n }\n\n previous.parent = parent;\n previous.prev = element.prev;\n previous.next = element;\n element.prev = previous;\n}\n"],"names":[],"mappings":"AAEA;;;;;GAKG;;;;;;;;;;;;;;AACG,SAAU,aAAa,CAAC,OAAkB;IAC5C,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACnD,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAEnD,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACjB,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC;QACvC,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;YACrB,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;AAC1B,CAAC;AASK,SAAU,cAAc,CAC1B,OAAkB,EAClB,WAAsB;IAEtB,WAAW,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAChC,IAAI,WAAW,CAAC,IAAI,EAAE,CAALine truncated
{"offset": {"line": 1750, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/querying.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/querying.ts"],"sourcesContent":["import {\n type AnyNode,\n type Element,\n hasChildren,\n isTag,\n type ParentNode,\n} from \"domhandler\";\n\n/**\n * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param node Node to search. Will be included in the result set if it matches.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nexport function filter(\n test: (element: AnyNode) => boolean,\n node: AnyNode | AnyNode[],\n recurse = true,\n limit: number = Number.POSITIVE_INFINITY,\n): AnyNode[] {\n return find(test, Array.isArray(node) ? node : [node], recurse, limit);\n}\n\n/**\n * Search an array of nodes and their children for nodes passing a test function.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nexport function find(\n test: (element: AnyNode) => boolean,\n nodes: AnyNode[] | ParentNode,\n recurse: boolean,\n limit: number,\n): AnyNode[] {\n const result: AnyNode[] = [];\n /** Stack of the arrays we are looking at. */\n const nodeStack: AnyNode[][] = [Array.isArray(nodes) ? nodes : [nodes]];\n /** Stack of the indices within the arrays. */\n const indexStack = [0];\n\n for (;;) {\n // First, check if the current array has any more elements to look at.\n if (indexStack[0] >= nodeStack[0].length) {\n // If we have no more arrays to look at, we are done.\n if (indexStack.length === 1) {\n return result;\n }\n\n // Otherwise, remove the current array from the stack.\n nodeStack.shift();\n indexStack.shift();\n\n // Loop back to the start to continue with the next array.\n continue;\n }\n\n const element = nodeStack[0][indexStack[0]++];\n\n if (test(element)) {\n result.push(element);\n if (--limit <= 0) return result;\n }\n\n if (recurse && hasChildren(element) && element.children.length > 0) {\n /*\n * Add the children to the stack. We are depth-first, so this is\n * the next array we look at.\n */\n indexStack.unshift(0);\n nodeStack.unshift(element.children);\n }\n }\n}\n\n/**\n * Finds one element in a tree that passes a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Node or array of nodes to search.\n * @param recurse Also consider child nodes.\n * @returns The first node that passes `test`.\n */\nexport function findOne(\n test: (element: Element) => boolean,\n nodes: AnyNode[] | ParentNode,\n recurse = true,\n): Element | null {\n const searchedNodes = Array.isArray(nodes) ? nodes : [nodes];\n for (const node of searchedNodes) {\n if (isTag(node) && test(node)) {\n return node;\n }\n if (recurse && hasChildren(node) && node.children.length > 0) {\n const found = findOne(test, node.children, true);\n if (found) return found;\n }\n }\n\n return null;\n}\n\n/**\n * Checks if a tree of nodes contains at least one node passing a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns Whether a tree of nodes contains at least one node passing the test.\n */\nexport function existsOne(\n test: (element: Element) => boolean,\n nodes: AnyNode[] | ParentNode,\n): boolean {\n return (Array.isArray(nodes) ? nodes : [nodes]).some(\n (node) =>\n (isTag(node) && test(node)) ||\n (hasChildren(node) && existsOne(test, node.children)),\n );\n}\n\n/**\n * Search an array of nodes and their children for elements passing a test function.\n *\n * Same as `find`, but limited to elements and with less options, leading to reduced complexity.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns All nodes passing `test`.\n */\nexport function findAll(\n test: (element: Element) => boolean,\n nodes: AnyNode[] | ParentNode,\n): Element[] {\n const result = [];\n const nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];\n const indexStack = [0];\n\n for (;;) {\n if (indexStack[0] >= nodeStack[0].length) {\n if (nodeStack.leLine truncated
{"offset": {"line": 1857, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/stringify.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/stringify.ts"],"sourcesContent":["import renderHTML, { type DomSerializerOptions } from \"dom-serializer\";\nimport { ElementType } from \"domelementtype\";\nimport {\n type AnyNode,\n hasChildren,\n isCDATA,\n isComment,\n isTag,\n isText,\n} from \"domhandler\";\n\n/**\n * @category Stringify\n * @deprecated Use the `dom-serializer` module directly.\n * @param node Node to get the outer HTML of.\n * @param options Options for serialization.\n * @returns `node`'s outer HTML.\n */\nexport function getOuterHTML(\n node: AnyNode | ArrayLike<AnyNode>,\n options?: DomSerializerOptions,\n): string {\n return renderHTML(node, options);\n}\n\n/**\n * @category Stringify\n * @deprecated Use the `dom-serializer` module directly.\n * @param node Node to get the inner HTML of.\n * @param options Options for serialization.\n * @returns `node`'s inner HTML.\n */\nexport function getInnerHTML(\n node: AnyNode,\n options?: DomSerializerOptions,\n): string {\n return hasChildren(node)\n ? node.children.map((node) => getOuterHTML(node, options)).join(\"\")\n : \"\";\n}\n\n/**\n * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. Ignores comments.\n *\n * @category Stringify\n * @deprecated Use `textContent` instead.\n * @param node Node to get the inner text of.\n * @returns `node`'s inner text.\n */\nexport function getText(node: AnyNode | AnyNode[]): string {\n if (Array.isArray(node)) return node.map(getText).join(\"\");\n if (isTag(node)) return node.name === \"br\" ? \"\\n\" : getText(node.children);\n if (isCDATA(node)) return getText(node.children);\n if (isText(node)) return node.data;\n return \"\";\n}\n\n/**\n * Get a node's text content. Ignores comments.\n *\n * @category Stringify\n * @param node Node to get the text content of.\n * @returns `node`'s text content.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}\n */\nexport function textContent(node: AnyNode | AnyNode[]): string {\n if (Array.isArray(node)) return node.map(textContent).join(\"\");\n if (hasChildren(node) && !isComment(node)) {\n return textContent(node.children);\n }\n if (isText(node)) return node.data;\n return \"\";\n}\n\n/**\n * Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments.\n *\n * @category Stringify\n * @param node Node to get the inner text of.\n * @returns `node`'s inner text.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}\n */\nexport function innerText(node: AnyNode | AnyNode[]): string {\n if (Array.isArray(node)) return node.map(innerText).join(\"\");\n if (hasChildren(node) && (node.type === ElementType.Tag || isCDATA(node))) {\n return innerText(node.children);\n }\n if (isText(node)) return node.data;\n return \"\";\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,UAAyC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAEH,WAAW,EACX,OAAO,EACP,SAAS,EACT,KAAK,EACL,MAAM,GACT,MAAM,YAAY,CAAC;;;;AASd,SAAU,YAAY,CACxB,IAAkC,EAClC,OAA8B;IAE9B,WAAO,gKAAU,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AACrC,CAAC;AASK,SAAU,YAAY,CACxB,IAAa,EACb,OAA8B;IAE9B,WAAO,4JAAW,EAAC,IAAI,CAAC,GAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAG,CAAD,WAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GACjE,EAAE,CAAC;AACb,CAAC;AAUK,SAAU,OAAO,CAAC,IAAyB;IAC7C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3D,QAAI,sJAAK,EAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3E,QAAI,wJAAO,EAAC,IAAI,CAAC,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjD,QAAI,uJAAM,EAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC;AAUK,SAAU,WAAW,CAAC,IAAyB;IACjD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/D,QAAI,4JAAW,EAAC,IAAI,CAAC,IAAI,KAAC,0JAAS,EAAC,IAAI,CAAC,EAAE,CAAC;QACxC,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,QAAI,uJAAM,EAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC;AAUK,SAAU,SAAS,CAAC,IAAyB;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7D,QAAI,4JAAW,EAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,iKAAW,CAAC,GAAG,QAAI,wJAAO,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACxE,OAAO,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACD,QAAI,uJAAM,EAAC,IAAI,CAAC,EAAE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnC,OAAO,EAAE,CAAC;AACd,CAAC"}},
{"offset": {"line": 1908, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/domutils/dist/traversal.js","sources":["file:///Users/home/Projects/forumlify/node_modules/domutils/src/traversal.ts"],"sourcesContent":["import {\n type AnyNode,\n type ChildNode,\n type Element,\n hasChildren,\n isTag,\n type ParentNode,\n} from \"domhandler\";\n\n/**\n * Get a node's children.\n *\n * @category Traversal\n * @param element Node to get the children of.\n * @returns `element`'s children, or an empty array.\n */\nexport function getChildren(element: AnyNode): ChildNode[] {\n return hasChildren(element) ? element.children : [];\n}\n\n/**\n * Get a node's parent.\n *\n * @category Traversal\n * @param element Node to get the parent of.\n * @returns `element`'s parent node, or `null` if `element` is a root node.\n */\nexport function getParent(element: AnyNode): ParentNode | null;\nexport function getParent(element: AnyNode): ParentNode | null {\n return element.parent || null;\n}\n\n/**\n * Gets an elements siblings, including the element itself.\n *\n * Attempts to get the children through the element's parent first. If we don't\n * have a parent (the element is a root node), we walk the element's `prev` &\n * `next` to get all remaining nodes.\n *\n * @category Traversal\n * @param element Element to get the siblings of.\n * @returns `element`'s siblings, including `element`.\n */\nexport function getSiblings(element: AnyNode): AnyNode[] {\n const parent = getParent(element);\n if (parent != null) return getChildren(parent);\n\n const siblings = [element];\n let { prev, next } = element;\n while (prev != null) {\n siblings.unshift(prev);\n ({ prev } = prev);\n }\n while (next != null) {\n siblings.push(next);\n ({ next } = next);\n }\n return siblings;\n}\n\n/**\n * Gets an attribute from an element.\n *\n * @category Traversal\n * @param element Element to check.\n * @param name Attribute name to retrieve.\n * @returns The element's attribute value, or `undefined`.\n */\nexport function getAttributeValue(\n element: Element,\n name: string,\n): string | undefined {\n const { attribs } = element as {\n attribs?: Record<string, string | undefined>;\n };\n return attribs?.[name];\n}\n\n/**\n * Checks whether an element has an attribute.\n *\n * @category Traversal\n * @param element Element to check.\n * @param name Attribute name to look for.\n * @returns Returns whether `element` has the attribute `name`.\n */\nexport function hasAttrib(element: Element, name: string): boolean {\n const { attribs } = element as { attribs?: Record<string, string | null> };\n return (\n attribs != null && Object.hasOwn(attribs, name) && attribs[name] != null\n );\n}\n\n/**\n * Get the tag name of an element.\n *\n * @category Traversal\n * @param element The element to get the name for.\n * @returns The tag name of `element`.\n */\nexport function getName(element: Element): string {\n return element.name;\n}\n\n/**\n * Returns the next element sibling of a node.\n *\n * @category Traversal\n * @param element The element to get the next sibling of.\n * @returns `element`'s next sibling that is a tag, or `null` if there is no next\n * sibling.\n */\nexport function nextElementSibling(element: AnyNode): Element | null {\n let { next } = element;\n while (next !== null && !isTag(next)) ({ next } = next);\n return next;\n}\n\n/**\n * Returns the previous element sibling of a node.\n *\n * @category Traversal\n * @param element The element to get the previous sibling of.\n * @returns `element`'s previous sibling that is a tag, or `null` if there is no\n * previous sibling.\n */\n// eslint-disable-next-line unicorn/prevent-abbreviations -- Keep public API name for backwards compatibility.\nexport function prevElementSibling(element: AnyNode): Element | null {\n let { prev } = element;\n while (prev !== null && !isTag(prev)) ({ prev } = prev);\n return prev;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,EAIH,WAAW,EACX,KAAK,GAER,MAAM,YAAY,CAAC;;AASd,SAAU,WAAW,CAAC,OAAgB;IACxC,WAAO,4JAAW,EAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACxD,CAAC;AAUK,SAAU,SAAS,CAAC,OAAgB;IACtC,OAAO,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC;AAClC,CAAC;AAaK,SAAU,WAAW,CAAC,OAAgB;IACxC,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAE/C,MAAM,QAAQ,GAAG;QAAC,OAAO;KAAC,CAAC;IAC3B,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAC7B,MAAO,IAAI,IAAI,IAAI,CAAE,CAAC;QAClB,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,MAAO,IAAI,IAAI,IAAI,CAAE,CAAC;QAClB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;IACtB,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAUK,SAAU,iBAAiB,CAC7B,OAAgB,EAChB,IAAY;IAEZ,MAAM,EAAE,OAAO,EAAE,GAAG,OAEnB,CAAC;IACF,OAAO,OAAO,EAAE,CAAC,IAAILine truncated
{"offset": {"line": 1976, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/decode-codepoint.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/decode-codepoint.ts"],"sourcesContent":["// Adapted from https://github.com/mathiasbynens/he/blob/36afe179392226cf1b6ccdb16ebbb7a5a844d93a/src/he.js#L106-L134\n\nconst decodeMap = new Map([\n [0, 65_533],\n // C1 Unicode control character reference replacements\n [128, 8364],\n [130, 8218],\n [131, 402],\n [132, 8222],\n [133, 8230],\n [134, 8224],\n [135, 8225],\n [136, 710],\n [137, 8240],\n [138, 352],\n [139, 8249],\n [140, 338],\n [142, 381],\n [145, 8216],\n [146, 8217],\n [147, 8220],\n [148, 8221],\n [149, 8226],\n [150, 8211],\n [151, 8212],\n [152, 732],\n [153, 8482],\n [154, 353],\n [155, 8250],\n [156, 339],\n [158, 382],\n [159, 376],\n]);\n\n/**\n * Replace the given code point with a replacement character if it is a\n * surrogate or is outside the valid range. Otherwise return the code\n * point unchanged.\n * @param codePoint Unicode code point to convert.\n */\nexport function replaceCodePoint(codePoint: number): number {\n if (\n (codePoint >= 0xd8_00 && codePoint <= 0xdf_ff) ||\n codePoint > 0x10_ff_ff\n ) {\n return 0xff_fd;\n }\n\n return decodeMap.get(codePoint) ?? codePoint;\n}\n"],"names":[],"mappings":";;;;AAAA,qHAAqH;AAErH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACtB;QAAC,CAAC;QAAE,MAAM;KAAC;IACX,sDAAsD;IACtD;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,IAAI;KAAC;IACX;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,GAAG;KAAC;IACV;QAAC,GAAG;QAAE,GAAG;KAAC;CACb,CAAC,CAAC;AAQG,SAAU,gBAAgB,CAAC,SAAiB;IAC9C,IACI,AAAC,SAAS,IAAI,OAAO,IAAI,SAAS,IAAI,OAAO,CAAC,GAC9C,SAAS,GAAG,UAAU,EACxB,CAAC;QACC,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,OAAO,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC;AACjD,CAAC"}},
{"offset": {"line": 2106, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/decode.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/decode.ts"],"sourcesContent":["import { replaceCodePoint } from \"./decode-codepoint.js\";\nimport { htmlDecodeTree } from \"./generated/decode-data-html.js\";\nimport { xmlDecodeTree } from \"./generated/decode-data-xml.js\";\nimport { BinTrieFlags } from \"./internal/bin-trie-flags.js\";\n\nconst enum CharCodes {\n NUM = 35, // \"#\"\n SEMI = 59, // \";\"\n EQUALS = 61, // \"=\"\n ZERO = 48, // \"0\"\n NINE = 57, // \"9\"\n LOWER_A = 97, // \"a\"\n LOWER_F = 102, // \"f\"\n LOWER_X = 120, // \"x\"\n LOWER_Z = 122, // \"z\"\n UPPER_A = 65, // \"A\"\n UPPER_F = 70, // \"F\"\n UPPER_Z = 90, // \"Z\"\n}\n\n/** Bit that needs to be set to convert an upper case ASCII character to lower case */\nconst TO_LOWER_BIT = 0b10_0000;\n\nfunction isNumber(code: number): boolean {\n return code >= CharCodes.ZERO && code <= CharCodes.NINE;\n}\n\nfunction isHexadecimalCharacter(code: number): boolean {\n return (\n (code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_F) ||\n (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_F)\n );\n}\n\nfunction isAsciiAlphaNumeric(code: number): boolean {\n return (\n (code >= CharCodes.UPPER_A && code <= CharCodes.UPPER_Z) ||\n (code >= CharCodes.LOWER_A && code <= CharCodes.LOWER_Z) ||\n isNumber(code)\n );\n}\n\n/**\n * Checks if the given character is a valid end character for an entity in an attribute.\n *\n * Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.\n * See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state\n * @param code Code point to decode.\n */\nfunction isEntityInAttributeInvalidEnd(code: number): boolean {\n return code === CharCodes.EQUALS || isAsciiAlphaNumeric(code);\n}\n\nconst enum EntityDecoderState {\n EntityStart,\n NumericStart,\n NumericDecimal,\n NumericHex,\n NamedEntity,\n}\n\n/**\n * Decoding mode for named entities.\n */\nexport enum DecodingMode {\n /** Entities in text nodes that can end with any character. */\n Legacy = 0,\n /** Only allow entities terminated with a semicolon. */\n Strict = 1,\n /** Entities in attributes have limitations on ending characters. */\n Attribute = 2,\n}\n\n/**\n * Producers for character reference errors as defined in the HTML spec.\n */\nexport interface EntityErrorProducer {\n missingSemicolonAfterCharacterReference(): void;\n absenceOfDigitsInNumericCharacterReference(\n consumedCharacters: number,\n ): void;\n validateNumericCharacterReference(code: number): void;\n}\n\n/**\n * Token decoder with support of writing partial entities.\n */\nexport class EntityDecoder {\n constructor(\n /** The tree used to decode entities. */\n // biome-ignore lint/correctness/noUnusedPrivateClassMembers: False positive\n private readonly decodeTree: Uint16Array,\n /**\n * The function that is called when a codepoint is decoded.\n *\n * For multi-byte named entities, this will be called multiple times,\n * with the second codepoint, and the same `consumed` value.\n * @param codepoint The decoded codepoint.\n * @param consumed The number of bytes consumed by the decoder.\n */\n private readonly emitCodePoint: (cp: number, consumed: number) => void,\n /** An object that is used to produce errors. */\n private readonly errors?: EntityErrorProducer | undefined,\n ) {}\n\n /** The current state of the decoder. */\n private state = EntityDecoderState.EntityStart;\n /** Characters that were consumed while parsing an entity. */\n private consumed = 1;\n /**\n * The result of the entity.\n *\n * Either the result index of a numeric entity, or the codepoint of a\n * numeric entity.\n */\n private result = 0;\n\n /** The current index in the decode tree. */\n private treeIndex = 0;\n /** The number of characters that were consumed in excess. */\n private excess = 1;\n /** The mode in which the decoder is operating. */\n private decodeMode = DecodingMode.Strict;\n /** The number of characters that have been consumed in the current run. */\n private runConsumed = 0;\n\n /**\n * Resets the instance to make it reusable.\n * @param decodeMode Entity decoding mode to use.\n */\n startEntity(decodeMode: DecodingMode): void {\n this.decodeMode = decodeMode;\n this.state = EntityDecoderState.EntityStart;\n this.result = 0;\n this.treeIndex = 0;\n this.excess = 1;\n this.consumed = 1;\n this.runConsumed = 0;\n }\n\n /**\n * Write an entity to the decoder. This cLine truncated
{"offset": {"line": 2579, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/escape.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/escape.ts"],"sourcesContent":["const xmlCodeMap = new Map([\n [34, \"&quot;\"],\n [38, \"&amp;\"],\n [39, \"&apos;\"],\n [60, \"&lt;\"],\n [62, \"&gt;\"],\n]);\n\n// For compatibility with node < 4, we wrap `codePointAt`\n/**\n * Read a code point at a given index.\n * @param input Input string to encode or decode.\n * @param index Current read position in the input string.\n */\nexport const getCodePoint: (c: string, index: number) => number =\n typeof String.prototype.codePointAt === \"function\"\n ? (input: string, index: number): number => input.codePointAt(index)!\n : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n (c: string, index: number): number =>\n (c.charCodeAt(index) & 0xfc_00) === 0xd8_00\n ? (c.charCodeAt(index) - 0xd8_00) * 0x4_00 +\n c.charCodeAt(index + 1) -\n 0xdc_00 +\n 0x1_00_00\n : c.charCodeAt(index);\n\n/**\n * Bitset for ASCII characters that need to be escaped in XML.\n */\nexport const XML_BITSET_VALUE = 0x50_00_00_c4; // 32..63 -> 34 (\"),38 (&),39 ('),60 (<),62 (>)\n\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using XML entities. Uses a fast bitset scan instead of RegExp.\n *\n * If a character has no equivalent entity, a numeric hexadecimal reference\n * (eg. `&#xfc;`) will be used.\n * @param input Input string to encode or decode.\n */\nexport function encodeXML(input: string): string {\n let out: string | undefined;\n let last = 0;\n const { length } = input;\n\n for (let index = 0; index < length; index++) {\n const char = input.charCodeAt(index);\n\n // Check for ASCII chars that don't need escaping\n if (\n char < 0x80 &&\n (((XML_BITSET_VALUE >>> char) & 1) === 0 || char >= 64 || char < 32)\n ) {\n continue;\n }\n\n if (out === undefined) out = input.substring(0, index);\n else if (last !== index) out += input.substring(last, index);\n\n if (char < 64) {\n // Known replacement\n out += xmlCodeMap.get(char)!;\n last = index + 1;\n continue;\n }\n\n // Non-ASCII: encode as numeric entity (handle surrogate pair)\n const cp = getCodePoint(input, index);\n out += `&#x${cp.toString(16)};`;\n if (cp !== char) index++; // Skip trailing surrogate\n last = index + 1;\n }\n\n if (out === undefined) return input;\n if (last < length) out += input.substr(last);\n return out;\n}\n\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using numeric hexadecimal reference (eg. `&#xfc;`).\n *\n * Have a look at `escapeUTF8` if you want a more concise output at the expense\n * of reduced transportability.\n * @param data String to escape.\n */\nexport const escape: typeof encodeXML = encodeXML;\n\n/**\n * Creates a function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n * @param regex Regular expression to match characters to escape.\n * @param map Map of characters to escape to their entities.\n * @returns Function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n */\nfunction getEscaper(\n regex: RegExp,\n map: Map<number, string>,\n): (data: string) => string {\n return function escape(data: string): string {\n let match: RegExpExecArray | null;\n let lastIndex = 0;\n let result = \"\";\n\n while ((match = regex.exec(data))) {\n if (lastIndex !== match.index) {\n result += data.substring(lastIndex, match.index);\n }\n\n // We know that this character will be in the map.\n result += map.get(match[0].charCodeAt(0))!;\n\n // Every match will be of length 1\n lastIndex = match.index + 1;\n }\n\n return result + data.substring(lastIndex);\n };\n}\n\n/**\n * Encodes all characters not valid in XML documents using XML entities.\n *\n * Note that the output will be character-set dependent.\n * @param data String to escape.\n */\nexport const escapeUTF8: (data: string) => string = /* #__PURE__ */ getEscaper(\n /[\"&'<>]/g,\n xmlCodeMap,\n);\n\n/**\n * Encodes all characters that have to be escaped in HTML attributes,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n * @param data String to escape.\n */\nexport const escapeAttribute: (data: string) => string =\n /* #__PURE__ */ gLine truncated
{"offset": {"line": 2709, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/generated/decode-data-html.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/generated/decode-data-html.ts"],"sourcesContent":["// Generated using scripts/write-decode-map.ts\n\nimport { decodeBase64 } from \"../internal/decode-shared.js\";\n/** Packed HTML decode trie data. */\nexport const htmlDecodeTree: Uint16Array = /* #__PURE__ */ decodeBase64(\n \"QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcLine truncated
{"offset": {"line": 2721, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/generated/decode-data-xml.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/generated/decode-data-xml.ts"],"sourcesContent":["// Generated using scripts/write-decode-map.ts\n\nimport { decodeBase64 } from \"../internal/decode-shared.js\";\n/** Packed XML decode trie data. */\nexport const xmlDecodeTree: Uint16Array = /* #__PURE__ */ decodeBase64(\n \"AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg\",\n);\n"],"names":[],"mappings":";;;;AAAA,8CAA8C;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;;AAErD,MAAM,aAAa,GAAgB,aAAA,EAAe,KAAC,mLAAY,EAClE,kEAAkE,CACrE,CAAC"}},
{"offset": {"line": 2733, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/internal/bin-trie-flags.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/internal/bin-trie-flags.ts"],"sourcesContent":["/**\n * Bit flags & masks for the binary trie encoding used for entity decoding.\n *\n * Bit layout (16 bits total):\n * 15..14 VALUE_LENGTH (+1 encoding; 0 => no value)\n * 13 FLAG13. If valueLength>0: semicolon required flag (implicit ';').\n * If valueLength==0: compact run flag.\n * 12..7 BRANCH_LENGTH Branch length (0 => single branch in 6..0 if jumpOffset==char) OR run length (when compact run)\n * 6..0 JUMP_TABLE Jump offset (jump table) OR single-branch char code OR first run char\n */\nexport enum BinTrieFlags {\n VALUE_LENGTH = 0b1100_0000_0000_0000,\n FLAG13 = 0b0010_0000_0000_0000,\n BRANCH_LENGTH = 0b0001_1111_1000_0000,\n JUMP_TABLE = 0b0000_0000_0111_1111,\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;;;;AACH,IAAY,YAKX;AALD,CAAA,SAAY,YAAY;IACpB,YAAA,CAAA,YAAA,CAAA,eAAA,GAAA,MAAA,GAAA,cAAoC,CAAA;IACpC,YAAA,CAAA,YAAA,CAAA,SAAA,GAAA,KAAA,GAAA,QAA8B,CAAA;IAC9B,YAAA,CAAA,YAAA,CAAA,gBAAA,GAAA,KAAA,GAAA,eAAqC,CAAA;IACrC,YAAA,CAAA,YAAA,CAAA,aAAA,GAAA,IAAA,GAAA,YAAkC,CAAA;AACtC,CAAC,EALW,YAAY,IAAA,CAAZ,YAAY,GAAA,CAAA,CAAA,GAKvB"}},
{"offset": {"line": 2757, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/entities/dist/internal/decode-shared.js","sources":["file:///Users/home/Projects/forumlify/node_modules/entities/src/internal/decode-shared.ts"],"sourcesContent":["/**\n * Shared base64 decode helper for generated decode data.\n * Assumes global atob is available.\n * @param input Input string to encode or decode.\n */\nexport function decodeBase64(input: string): Uint16Array {\n const binary: string = atob(input);\n const evenLength = binary.length & ~1; // Round down to even length\n const out = new Uint16Array(evenLength / 2);\n\n for (let index = 0, outIndex = 0; index < evenLength; index += 2) {\n const lo = binary.charCodeAt(index);\n const hi = binary.charCodeAt(index + 1);\n out[outIndex++] = lo | (hi << 8);\n }\n\n return out;\n}\n"],"names":[],"mappings":"AAAA;;;;GAIG;;;;AACG,SAAU,YAAY,CAAC,KAAa;IACtC,MAAM,MAAM,GAAW,IAAI,CAAC,KAAK,CAAC,CAAC;IACnC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,4BAA4B;IACnE,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;IAE5C,IAAK,IAAI,KAAK,GAAG,CAAC,EAAE,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,UAAU,EAAE,KAAK,IAAI,CAAC,CAAE,CAAC;QAC/D,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,EAAE,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;QACxC,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,AAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,GAAG,CAAC;AACf,CAAC"}},
{"offset": {"line": 2780, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/escape-string-regexp/index.js"],"sourcesContent":["'use strict';\n\nmodule.exports = string => {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a \\unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n};\n"],"names":["module","exports","string","TypeError","replace"],"mappings":"AAEAA,OAAOC,OAAO,GAAGC,CAAAA;IAChB,IAAI,OAAOA,WAAW,UAAU;QAC/B,MAAM,IAAIC,UAAU;IACrB;IAEA,kFAAkF;IAClF,6JAA6J;IAC7J,OAAOD,OACLE,OAAO,CAAC,uBAAuB,QAC/BA,OAAO,CAAC,MAAM;AACjB","ignoreList":[0]}},
{"offset": {"line": 2792, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/htmlparser2/dist/Parser.js","sources":["file:///Users/home/Projects/forumlify/node_modules/htmlparser2/src/Parser.ts"],"sourcesContent":["const { fromCodePoint } = String;\n\nimport Tokenizer, { type Callbacks, QuoteType } from \"./Tokenizer.js\";\n\nconst formTags = new Set([\n \"input\",\n \"option\",\n \"optgroup\",\n \"select\",\n \"button\",\n \"datalist\",\n \"textarea\",\n]);\nconst pTag = new Set([\"p\"]);\nconst headingTags = new Set([\"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"p\"]);\nconst tableSectionTags = new Set([\"thead\", \"tbody\"]);\nconst ddtTags = new Set([\"dd\", \"dt\"]);\nconst rtpTags = new Set([\"rt\", \"rp\"]);\n\nconst openImpliesClose = new Map<string, Set<string>>([\n [\"tr\", new Set([\"tr\", \"th\", \"td\"])],\n [\"th\", new Set([\"th\"])],\n [\"td\", new Set([\"thead\", \"th\", \"td\"])],\n [\"body\", new Set([\"head\", \"link\", \"script\"])],\n [\"a\", new Set([\"a\"])],\n [\"li\", new Set([\"li\"])],\n [\"p\", pTag],\n [\"h1\", headingTags],\n [\"h2\", headingTags],\n [\"h3\", headingTags],\n [\"h4\", headingTags],\n [\"h5\", headingTags],\n [\"h6\", headingTags],\n [\"select\", formTags],\n [\"input\", formTags],\n [\"output\", formTags],\n [\"button\", formTags],\n [\"datalist\", formTags],\n [\"textarea\", formTags],\n [\"option\", new Set([\"option\"])],\n [\"optgroup\", new Set([\"optgroup\", \"option\"])],\n [\"dd\", ddtTags],\n [\"dt\", ddtTags],\n [\"address\", pTag],\n [\"article\", pTag],\n [\"aside\", pTag],\n [\"blockquote\", pTag],\n [\"details\", pTag],\n [\"div\", pTag],\n [\"dl\", pTag],\n [\"fieldset\", pTag],\n [\"figcaption\", pTag],\n [\"figure\", pTag],\n [\"footer\", pTag],\n [\"form\", pTag],\n [\"header\", pTag],\n [\"hr\", pTag],\n [\"main\", pTag],\n [\"nav\", pTag],\n [\"ol\", pTag],\n [\"pre\", pTag],\n [\"section\", pTag],\n [\"table\", pTag],\n [\"ul\", pTag],\n [\"rt\", rtpTags],\n [\"rp\", rtpTags],\n [\"tbody\", tableSectionTags],\n [\"tfoot\", tableSectionTags],\n]);\n\nconst DOCUMENT_TYPE = \"doctype\";\n\nconst voidElements = new Set([\n \"area\",\n \"base\",\n \"basefont\",\n \"br\",\n \"col\",\n \"command\",\n \"embed\",\n \"frame\",\n \"hr\",\n \"img\",\n \"input\",\n \"isindex\",\n \"keygen\",\n \"link\",\n \"meta\",\n \"param\",\n \"source\",\n \"track\",\n \"wbr\",\n]);\n\nconst foreignContextElements = new Set([\"math\", \"svg\"]);\n\n/**\n * Elements that can be used to integrate HTML content within foreign namespaces (e.g., SVG or MathML).\n *\n * Entries must use the SVG-adjusted casing (e.g. \"foreignObject\" not\n * \"foreignobject\") since they are compared against adjusted tag names.\n */\nconst htmlIntegrationElements = new Set([\n \"mi\",\n \"mo\",\n \"mn\",\n \"ms\",\n \"mtext\",\n \"annotation-xml\",\n \"foreignObject\",\n \"desc\",\n \"title\",\n]);\n\nconst svgTagNameAdjustments = new Map<string, string>([\n [\"altglyph\", \"altGlyph\"],\n [\"altglyphdef\", \"altGlyphDef\"],\n [\"altglyphitem\", \"altGlyphItem\"],\n [\"animatecolor\", \"animateColor\"],\n [\"animatemotion\", \"animateMotion\"],\n [\"animatetransform\", \"animateTransform\"],\n [\"clippath\", \"clipPath\"],\n [\"feblend\", \"feBlend\"],\n [\"fecolormatrix\", \"feColorMatrix\"],\n [\"fecomponenttransfer\", \"feComponentTransfer\"],\n [\"fecomposite\", \"feComposite\"],\n [\"feconvolvematrix\", \"feConvolveMatrix\"],\n [\"fediffuselighting\", \"feDiffuseLighting\"],\n [\"fedisplacementmap\", \"feDisplacementMap\"],\n [\"fedistantlight\", \"feDistantLight\"],\n [\"fedropshadow\", \"feDropShadow\"],\n [\"feflood\", \"feFlood\"],\n [\"fefunca\", \"feFuncA\"],\n [\"fefuncb\", \"feFuncB\"],\n [\"fefuncg\", \"feFuncG\"],\n [\"fefuncr\", \"feFuncR\"],\n [\"fegaussianblur\", \"feGaussianBlur\"],\n [\"feimage\", \"feImage\"],\n [\"femerge\", \"feMerge\"],\n [\"femergenode\", \"feMergeNode\"],\n [\"femorphology\", \"feMorphology\"],\n [\"feoffset\", \"feOffset\"],\n [\"fepointlight\", \"fePointLight\"],\n [\"fespecularlighting\", \"feSpecularLighting\"],\n [\"fespotlight\", \"feSpotLight\"],\n [\"fetile\", \"feTile\"],\n [\"feturbulence\", \"feTurbulence\"],\n [\"foreignobject\", \"foreignObject\"],\n [\"glyphref\", \"glyphRef\"],\n [\"lineargradient\", \"linearGradient\"],\n [\"radialgradient\", \"radialGradient\"],\n [\"textpath\", \"textPath\"],\n]);\n\nconst enum ForeignContext {\n None,\n Svg,\n MathML,\n}\n\n/**\n * Options for the streaming HTML/XML parser.\n */\nexport interface ParserOptions {\n /**\n * Indicates whether special tags (`<script>`, `<style>`, and `<title>`) Line truncated
{"offset": {"line": 3679, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/htmlparser2/dist/Tokenizer.js","sources":["file:///Users/home/Projects/forumlify/node_modules/htmlparser2/src/Tokenizer.ts"],"sourcesContent":["import {\n DecodingMode,\n EntityDecoder,\n htmlDecodeTree,\n xmlDecodeTree,\n} from \"entities/decode\";\n\nconst enum CharCodes {\n Tab = 0x9, // \"\\t\"\n NewLine = 0xa, // \"\\n\"\n FormFeed = 0xc, // \"\\f\"\n CarriageReturn = 0xd, // \"\\r\"\n Space = 0x20, // \" \"\n ExclamationMark = 0x21, // \"!\"\n Number = 0x23, // \"#\"\n Amp = 0x26, // \"&\"\n SingleQuote = 0x27, // \"'\"\n DoubleQuote = 0x22, // '\"'\n Dash = 0x2d, // \"-\"\n Slash = 0x2f, // \"/\"\n Zero = 0x30, // \"0\"\n Nine = 0x39, // \"9\"\n Semi = 0x3b, // \";\"\n Lt = 0x3c, // \"<\"\n Eq = 0x3d, // \"=\"\n Gt = 0x3e, // \">\"\n Questionmark = 0x3f, // \"?\"\n UpperA = 0x41, // \"A\"\n LowerA = 0x61, // \"a\"\n UpperF = 0x46, // \"F\"\n LowerF = 0x66, // \"f\"\n UpperZ = 0x5a, // \"Z\"\n LowerZ = 0x7a, // \"z\"\n LowerX = 0x78, // \"x\"\n OpeningSquareBracket = 0x5b, // \"[\"\n}\n\n/** All the states the tokenizer can be in. */\nconst enum State {\n Text = 1,\n BeforeTagName, // After <\n InTagName,\n InSelfClosingTag,\n BeforeClosingTagName,\n InClosingTagName,\n AfterClosingTagName,\n\n // Attributes\n BeforeAttributeName,\n InAttributeName,\n AfterAttributeName,\n BeforeAttributeValue,\n InAttributeValueDq, // \"\n InAttributeValueSq, // '\n InAttributeValueNq,\n\n // Declarations\n BeforeDeclaration, // !\n InDeclaration,\n\n // Processing instructions\n InProcessingInstruction, // ?\n\n // Comments & CDATA\n BeforeComment,\n CDATASequence,\n DeclarationSequence,\n InSpecialComment,\n InCommentLike,\n\n // Special tags\n SpecialStartSequence,\n InSpecialTag,\n InPlainText,\n\n InEntity,\n}\n\nfunction isWhitespace(c: number): boolean {\n return (\n c === CharCodes.Space ||\n c === CharCodes.NewLine ||\n c === CharCodes.Tab ||\n c === CharCodes.FormFeed ||\n c === CharCodes.CarriageReturn\n );\n}\n\nfunction isEndOfTagSection(c: number): boolean {\n return c === CharCodes.Slash || c === CharCodes.Gt || isWhitespace(c);\n}\n\nfunction isASCIIAlpha(c: number): boolean {\n return (\n (c >= CharCodes.LowerA && c <= CharCodes.LowerZ) ||\n (c >= CharCodes.UpperA && c <= CharCodes.UpperZ)\n );\n}\n\n/**\n * Quote style used for parsed attributes.\n */\nexport enum QuoteType {\n NoValue = 0,\n Unquoted = 1,\n Single = 2,\n Double = 3,\n}\n\n/**\n * Low-level tokenizer callback interface.\n */\nexport interface Callbacks {\n onattribdata(start: number, endIndex: number): void;\n onattribentity(codepoint: number): void;\n onattribend(quote: QuoteType, endIndex: number): void;\n onattribname(start: number, endIndex: number): void;\n oncdata(start: number, endIndex: number, endOffset: number): void;\n onclosetag(start: number, endIndex: number): void;\n oncomment(start: number, endIndex: number, endOffset: number): void;\n ondeclaration(start: number, endIndex: number): void;\n onend(): void;\n onopentagend(endIndex: number): void;\n onopentagname(start: number, endIndex: number): void;\n onprocessinginstruction(start: number, endIndex: number): void;\n onselfclosingtag(endIndex: number): void;\n ontext(start: number, endIndex: number): void;\n ontextentity(codepoint: number, endIndex: number): void;\n isInForeignContext?(): boolean;\n}\n\n/**\n * Sequences used to match longer strings.\n *\n * We don't have `Script`, `Style`, or `Title` here. Instead, we re-use the *End\n * sequences with an increased offset.\n */\nconst Sequences = {\n Empty: new Uint8Array(0),\n Cdata: new Uint8Array([0x43, 0x44, 0x41, 0x54, 0x41, 0x5b]), // CDATA[\n CdataEnd: new Uint8Array([0x5d, 0x5d, 0x3e]), // ]]>\n CommentEnd: new Uint8Array([0x2d, 0x2d, 0x21, 0x3e]), // `--!>`\n Doctype: new Uint8Array([0x64, 0x6f, 0x63, 0x74, 0x79, 0x70, 0x65]), // `doctype`\n IframeEnd: new Uint8Array([0x3c, 0x2f, 0x69, 0x66, 0x72, 0x61, 0x6d, 0x65]), // `</iframe`\n NoembedEnd: new Uint8Array([\n 0x3c, 0x2f, 0x6e, 0x6f, 0x65, 0x6d, 0x62, 0x65, 0x64,\n ]), // `</noembed`\n NoframesEnd: new Uint8Array([\n 0x3c, 0x2f, 0x6e, 0x6f, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73,\n ]), // `</noframes`\n Plaintext: new Uint8Array([\n 0x3c, 0x2f, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74,\n ]), // `</plaintext`\n ScriptEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74]), // `</script`\n StyleEnd: new Uint8Array([0x3c, 0x2f, 0x73, 0x74, 0x79, 0x6c, 0x65]), // `</style`\n TitleEnd: new Uint8Array([0x3c, 0x2f, 0x74, 0x69, 0x74, 0x6c, 0x65]), // `</title`\n Line truncated
{"offset": {"line": 4800, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/htmlparser2/dist/index.js","sources":["file:///Users/home/Projects/forumlify/node_modules/htmlparser2/src/index.ts"],"sourcesContent":["import { Parser, type ParserOptions } from \"./Parser.js\";\n\nexport type { Handler, ParserOptions } from \"./Parser.js\";\nexport { Parser } from \"./Parser.js\";\n\nimport {\n type Document,\n DomHandler,\n type DomHandlerOptions,\n type Element,\n} from \"domhandler\";\n\nexport {\n DomHandler,\n // Old name for DomHandler\n DomHandler as DefaultHandler,\n type DomHandlerOptions,\n} from \"domhandler\";\n\n/**\n * Combined parser and handler options.\n */\nexport type Options = ParserOptions & DomHandlerOptions;\n\n// Helper methods\n\n/**\n * Parses the data, returns the resulting document.\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM handler.\n */\nexport function parseDocument(data: string, options?: Options): Document {\n const handler = new DomHandler(undefined, options);\n new Parser(handler, options).end(data);\n return handler.root;\n}\n\n/**\n * Creates a parser instance, with an attached DOM handler.\n * @param callback A callback that will be called once parsing has been completed, with the resulting document.\n * @param options Optional options for the parser and DOM handler.\n * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.\n */\nexport function createDocumentStream(\n callback: (error: Error | null, document: Document) => void,\n options?: Options,\n elementCallback?: (element: Element) => void,\n): Parser {\n const handler: DomHandler = new DomHandler(\n (error: Error | null) => callback(error, handler.root),\n options,\n elementCallback,\n );\n return new Parser(handler, options);\n}\n\n/*\n * All of the following exports exist for backwards-compatibility.\n * They should probably be removed eventually.\n */\nexport * as ElementType from \"domelementtype\";\nexport {\n type Callbacks as TokenizerCallbacks,\n default as Tokenizer,\n QuoteType,\n} from \"./Tokenizer.js\";\n\nimport { type Feed, getFeed } from \"domutils\";\n\nexport { type Feed, getFeed } from \"domutils\";\n\nconst parseFeedDefaultOptions = { xmlMode: true };\n\n/**\n * Parse a feed.\n * @param feed The feed that should be parsed, as a string.\n * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.\n */\nexport function parseFeed(\n feed: string,\n options: Options = parseFeedDefaultOptions,\n): Feed | null {\n return getFeed(parseDocument(feed, options).children);\n}\n\nexport * as DomUtils from \"domutils\";\n"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAsB,MAAM,aAAa,CAAC;AAKzD,OAAO,EAEH,UAAU,GAGb,MAAM,YAAY,CAAC;AAyDpB,OAAO,EAAa,OAAO,EAAE,MAAM,UAAU,CAAC;;;;;AApCxC,SAAU,aAAa,CAAC,IAAY,EAAE,OAAiB;IACzD,MAAM,OAAO,GAAG,IAAI,4KAAU,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACnD,IAAI,0JAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,IAAI,CAAC;AACxB,CAAC;AAQK,SAAU,oBAAoB,CAChC,QAA2D,EAC3D,OAAiB,EACjB,eAA4C;IAE5C,MAAM,OAAO,GAAe,IAAI,4KAAU,CACtC,CAAC,KAAmB,EAAE,CAAG,CAAD,OAAS,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,EACtD,OAAO,EACP,eAAe,CAClB,CAAC;IACF,OAAO,IAAI,0JAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;;;;;AAiBD,MAAM,uBAAuB,GAAG;IAAE,OAAO,EAAE,IAAI;AAAA,CAAE,CAAC;AAO5C,SAAU,SAAS,CACrB,IAAY,EACZ,UAAmB,uBAAuB;IAE1C,WAAO,uJAAO,EAAC,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC1D,CAAC"}},
{"offset": {"line": 4839, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/is-plain-object/dist/is-plain-object.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/*!\n * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nfunction isObject(o) {\n return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isPlainObject(o) {\n var ctor,prot;\n\n if (isObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (ctor === undefined) return true;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n}\n\nexports.isPlainObject = isPlainObject;\n"],"names":["Object","defineProperty","exports","value","isObject","o","prototype","toString","call","isPlainObject","ctor","prot","undefined","hasOwnProperty"],"mappings":"AAEAA,OAAOC,cAAc,CAACC,SAAS,cAAc;IAAEC,OAAO;AAAK;AAE3D;;;;;CAKC,GAED,SAASC,SAASC,CAAC;IACjB,OAAOL,OAAOM,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACH,OAAO;AAC/C;AAEA,SAASI,cAAcJ,CAAC;IACtB,IAAIK,MAAKC;IAET,IAAIP,SAASC,OAAO,OAAO,OAAO;IAElC,8BAA8B;IAC9BK,OAAOL,EAAE,WAAW;IACpB,IAAIK,SAASE,WAAW,OAAO;IAE/B,4BAA4B;IAC5BD,OAAOD,KAAKJ,SAAS;IACrB,IAAIF,SAASO,UAAU,OAAO,OAAO;IAErC,yDAAyD;IACzD,IAAIA,KAAKE,cAAc,CAAC,qBAAqB,OAAO;QAClD,OAAO;IACT;IAEA,6BAA6B;IAC7B,OAAO;AACT;AAEAX,QAAQO,aAAa,GAAGA","ignoreList":[0]}},
{"offset": {"line": 4870, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/launder/index.js"],"sourcesContent":["const dayjs = require('dayjs');\n\n// Strip characters browsers ignore inside URLs (control chars and\n// embedded HTML comments) that are commonly used to sneak XSS\n// payloads past simple scheme checks.\nfunction cleanHref(href) {\n // Browsers ignore character codes of 32 (space) and below in a surprising\n // number of situations. Start reading here:\n // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Embedded_tab\n // eslint-disable-next-line no-control-regex\n href = href.replace(/[\\x00-\\x20]+/g, '');\n // Clobber any comments in URLs, which the browser might\n // interpret inside an XML data island, allowing\n // a javascript: URL to be snuck through\n while (true) {\n const firstIndex = href.indexOf('<!--');\n if (firstIndex === -1) {\n break;\n }\n const lastIndex = href.indexOf('-->', firstIndex + 4);\n if (lastIndex === -1) {\n break;\n }\n href = href.substring(0, firstIndex) + href.substring(lastIndex + 3);\n }\n return href;\n}\n\n// Returns true if `href` should be rejected as unsafe. Used to block\n// `javascript:`, `data:` and other dangerous schemes both when\n// validating URL fields and when sanitizing HTML attribute values.\n//\n// `options.allowedSchemes` is an array of permitted URL schemes\n// (defaults to the schemes long permitted by `launder().url`).\n// `options.allowProtocolRelative` controls whether protocol-relative\n// URLs (e.g. `//example.com`) are permitted. Defaults to true.\nfunction naughtyHref(href, options) {\n options = options || {};\n const allowedSchemes = options.allowedSchemes ||\n [ 'http', 'https', 'ftp', 'mailto', 'tel', 'sms' ];\n const allowProtocolRelative = (options.allowProtocolRelative !== false);\n if (typeof href !== 'string') {\n return false;\n }\n href = cleanHref(href);\n // Case insensitive so we don't get faked out by JAVASCRIPT #1\n // Allow more characters after the first so we don't get faked\n // out by certain schemes browsers accept\n const matches = href.match(/^([a-zA-Z][a-zA-Z0-9.\\-+]*):/);\n if (!matches) {\n // Protocol-relative URL starting with any combination of '/' and '\\'\n if (href.match(/^[/\\\\]{2}/)) {\n return !allowProtocolRelative;\n }\n // No scheme\n return false;\n }\n const scheme = matches[1].toLowerCase();\n return allowedSchemes.indexOf(scheme) === -1;\n}\n\nmodule.exports = function(options) {\n const self = {};\n self.options = options || {};\n\n self.filterTag = self.options.filterTag || function(tag) {\n tag = tag.trim();\n return tag.toLowerCase();\n };\n\n self.string = function(s, def) {\n if (typeof (s) !== 'string') {\n if ((typeof (s) === 'number') || (typeof (s) === 'boolean')) {\n s += '';\n } else {\n s = '';\n }\n }\n s = s.trim();\n if (def !== undefined) {\n if (s === '') {\n s = def;\n }\n }\n return s;\n };\n\n self.strings = function(strings) {\n if (!Array.isArray(strings)) {\n return [];\n }\n return strings.map(function(s) {\n return self.string(s);\n });\n };\n\n self.integer = function(i, def, min, max) {\n if (def === undefined) {\n def = 0;\n }\n if (typeof (i) === 'number') {\n i = Math.floor(i);\n } else {\n try {\n i = parseInt(i, 10);\n if (isNaN(i)) {\n i = def;\n }\n } catch (e) {\n i = def;\n }\n }\n if ((typeof (min) === 'number') && (i < min)) {\n i = min;\n }\n if ((typeof (max) === 'number') && (i > max)) {\n i = max;\n }\n return i;\n };\n\n self.padInteger = function(i, places) {\n let s = i + '';\n while (s.length < places) {\n s = '0' + s;\n }\n return s;\n };\n\n self.float = function(i, def, min, max) {\n if (def === undefined) {\n def = 0;\n }\n if (!(typeof (i) === 'number')) {\n try {\n i = parseFloat(i, 10);\n if (isNaN(i)) {\n i = def;\n }\n } catch (e) {\n i = def;\n }\n }\n if ((typeof (min) === 'number') && (i < min)) {\n i = min;\n }\n if ((typeof (max) === 'number') && (i > max)) {\n i = max;\n }\n return i;\n };\n\n self.naughtyHref = naughtyHref;\n\n self.url = function(s, def, httpsFix) {\n s = self.string(s, def);\n // Allow the default to be undefined, null, false, etc.\n if (s === def) {\n return s;\n }\n // Strip characters browsers ignore that are commonly used to\n // smuggle dangerous schemes past validation.\n s = cleanHref(s);\n // Reject naughty URLs (e.g. `javascript:`, `data:`) before fixUrl\n // runs. Otherwise fixUrl could mask such schemes by prepending\n // `https://` to anything containing a `.`, turning\n // `javascript:alert(dLine truncated
{"offset": {"line": 5379, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/marked/src/defaults.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/rules.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/helpers.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Tokenizer.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Lexer.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Renderer.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/TextRenderer.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Parser.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Hooks.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/Instance.ts","file:///Users/home/Projects/forumlify/node_modules/marked/src/marked.ts"],"sourcesContent":["import type { MarkedOptions } from './MarkedOptions.ts';\n\n/**\n * Gets the original marked default options.\n */\nexport function _getDefaults<ParserOutput = string, RendererOutput = string>(): MarkedOptions<ParserOutput, RendererOutput> {\n return {\n async: false,\n breaks: false,\n extensions: null,\n gfm: true,\n hooks: null,\n pedantic: false,\n renderer: null,\n silent: false,\n tokenizer: null,\n walkTokens: null,\n };\n}\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport let _defaults: MarkedOptions<any, any> = _getDefaults();\n\nexport function changeDefaults<ParserOutput = string, RendererOutput = string>(newDefaults: MarkedOptions<ParserOutput, RendererOutput>) {\n _defaults = newDefaults;\n}\n","const noopTest = { exec: () => null } as unknown as RegExp;\n\nfunction cachedIndentRegex(createRegex: (indent: number) => RegExp) {\n const cache: RegExp[] = [];\n return (indent: number) => {\n const cacheIndex = Math.max(0, Math.min(3, indent - 1));\n let regex = cache[cacheIndex];\n if (!regex) {\n regex = createRegex(cacheIndex);\n cache[cacheIndex] = regex;\n }\n return regex;\n };\n}\n\nfunction edit(regex: string | RegExp, opt = '') {\n let source = typeof regex === 'string' ? regex : regex.source;\n const obj = {\n replace: (name: string | RegExp, val: string | RegExp) => {\n let valSource = typeof val === 'string' ? val : val.source;\n valSource = valSource.replace(other.caret, '$1');\n source = source.replace(name, valSource);\n return obj;\n },\n getRegex: () => {\n return new RegExp(source, opt);\n },\n };\n return obj;\n}\n\n// use a default variable to ensure the regex is evaluated on client an not removed by minifiers\nconst supportsLookbehind = ((a = '') => {\ntry {\n return !!new RegExp('(?<=1)(?<!1)' + a);\n} catch {\n // See browser support here:\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion\n return false;\n}\n})();\n\nexport const other = {\n codeRemoveIndent: /^(?: {1,4}| {0,3}\\t)/gm,\n outputLinkReplace: /\\\\([\\[\\]])/g,\n indentCodeCompensation: /^(\\s+)(?:```)/,\n beginningSpace: /^\\s+/,\n endingHash: /#$/,\n startingSpaceChar: /^ /,\n endingSpaceChar: / $/,\n nonSpaceChar: /[^ ]/,\n newLineCharGlobal: /\\n/g,\n tabCharGlobal: /\\t/g,\n multipleSpaceGlobal: /\\s+/g,\n blankLine: /^[ \\t]*$/,\n doubleBlankLine: /\\n[ \\t]*\\n[ \\t]*$/,\n blockquoteStart: /^ {0,3}>/,\n blockquoteSetextReplace: /\\n {0,3}((?:=+|-+) *)(?=\\n|$)/g,\n blockquoteSetextReplace2: /^ {0,3}>[ \\t]?/gm,\n listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,\n listIsTask: /^\\[[ xX]\\] +\\S/,\n listReplaceTask: /^\\[[ xX]\\] +/,\n listTaskCheckbox: /\\[[ xX]\\]/,\n anyLine: /\\n.*\\n/,\n hrefBrackets: /^<(.*)>$/,\n tableDelimiter: /[:|]/,\n tableAlignChars: /^\\||\\| *$/g,\n tableRowBlankLine: /\\n[ \\t]*$/,\n tableAlignRight: /^ *-+: *$/,\n tableAlignCenter: /^ *:-+: *$/,\n tableAlignLeft: /^ *:-+ *$/,\n startATag: /^<a /i,\n endATag: /^<\\/a>/i,\n startPreScriptTag: /^<(pre|code|kbd|script)(\\s|>)/i,\n endPreScriptTag: /^<\\/(pre|code|kbd|script)(\\s|>)/i,\n startAngleBracket: /^</,\n endAngleBracket: />$/,\n pedanticHrefTitle: /^([^'\"]*[^\\s])\\s+(['\"])(.*)\\2/,\n unicodeAlphaNumeric: /[\\p{L}\\p{N}]/u,\n escapeTest: /[&<>\"']/,\n escapeReplace: /[&<>\"']/g,\n escapeTestNoEncode: /[<>\"']|&(?!(#\\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\\w+);)/,\n escapeReplaceNoEncode: /[<>\"']|&(?!(#\\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\\w+);)/g,\n caret: /(^|[^\\[])\\^/g,\n percentDecode: /%25/g,\n findPipe: /\\|/g,\n splitPipe: / \\|/,\n slashPipe: /\\\\\\|/g,\n carriageReturn: /\\r\\n|\\r/g,\n spaceLine: /^ +$/gm,\n notSpaceStart: /^\\S*/,\n endingNewline: /\\n$/,\n listItemRegex: (bull: string) => new RegExp(`^( {0,3}${bull})((?:[\\t ][^\\\\n]*)?(?:\\\\n|$))`),\n nextBulletRegex: cachedIndentRegex((indent: number) => new RegExp(`^ {0,${indent}}(?:[*+-]|\\\\d{1,9}[.)])((?:[ \\t][^\\\\n]*Line truncated
{"offset": {"line": 7075, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/nanoid/non-secure/index.cjs"],"sourcesContent":["let urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\n\nlet customAlphabet = (alphabet, defaultSize = 21) => {\n return (size = defaultSize) => {\n let id = ''\n let i = size | 0\n while (i-- > 0) {\n id += alphabet[(Math.random() * alphabet.length) | 0]\n }\n return id\n }\n}\n\nlet nanoid = (size = 21) => {\n let id = ''\n let i = size | 0\n while (i-- > 0) {\n id += urlAlphabet[(Math.random() * 64) | 0]\n }\n return id\n}\n\nmodule.exports = { nanoid, customAlphabet }\n"],"names":["urlAlphabet","customAlphabet","alphabet","defaultSize","size","id","i","Math","random","length","nanoid","module","exports"],"mappings":"AAAA,IAAIA,cACF;AAEF,IAAIC,iBAAiB,CAACC,UAAUC,cAAc,EAAE;IAC9C,OAAO,CAACC,OAAOD,WAAW;QACxB,IAAIE,KAAK;QACT,IAAIC,IAAIF,OAAO;QACf,MAAOE,MAAM,EAAG;YACdD,MAAMH,QAAQ,CAAC,AAACK,KAAKC,MAAM,KAAKN,SAASO,MAAM,GAAI,EAAE;QACvD;QACA,OAAOJ;IACT;AACF;AAEA,IAAIK,SAAS,CAACN,OAAO,EAAE;IACrB,IAAIC,KAAK;IACT,IAAIC,IAAIF,OAAO;IACf,MAAOE,MAAM,EAAG;QACdD,MAAML,WAAW,CAAC,AAACO,KAAKC,MAAM,KAAK,KAAM,EAAE;IAC7C;IACA,OAAOH;AACT;AAEAM,OAAOC,OAAO,GAAG;IAAEF;IAAQT;AAAe","ignoreList":[0]}},
{"offset": {"line": 7101, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/buffer/index.js"],"sourcesContent":["(function(){var e={872:function(e,r){\"use strict\";r.byteLength=byteLength;r.toByteArray=toByteArray;r.fromByteArray=fromByteArray;var t=[];var f=[];var n=typeof Uint8Array!==\"undefined\"?Uint8Array:Array;var i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";for(var o=0,u=i.length;o<u;++o){t[o]=i[o];f[i.charCodeAt(o)]=o}f[\"-\".charCodeAt(0)]=62;f[\"_\".charCodeAt(0)]=63;function getLens(e){var r=e.length;if(r%4>0){throw new Error(\"Invalid string. Length must be a multiple of 4\")}var t=e.indexOf(\"=\");if(t===-1)t=r;var f=t===r?0:4-t%4;return[t,f]}function byteLength(e){var r=getLens(e);var t=r[0];var f=r[1];return(t+f)*3/4-f}function _byteLength(e,r,t){return(r+t)*3/4-t}function toByteArray(e){var r;var t=getLens(e);var i=t[0];var o=t[1];var u=new n(_byteLength(e,i,o));var a=0;var s=o>0?i-4:i;var h;for(h=0;h<s;h+=4){r=f[e.charCodeAt(h)]<<18|f[e.charCodeAt(h+1)]<<12|f[e.charCodeAt(h+2)]<<6|f[e.charCodeAt(h+3)];u[a++]=r>>16&255;u[a++]=r>>8&255;u[a++]=r&255}if(o===2){r=f[e.charCodeAt(h)]<<2|f[e.charCodeAt(h+1)]>>4;u[a++]=r&255}if(o===1){r=f[e.charCodeAt(h)]<<10|f[e.charCodeAt(h+1)]<<4|f[e.charCodeAt(h+2)]>>2;u[a++]=r>>8&255;u[a++]=r&255}return u}function tripletToBase64(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function encodeChunk(e,r,t){var f;var n=[];for(var i=r;i<t;i+=3){f=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255);n.push(tripletToBase64(f))}return n.join(\"\")}function fromByteArray(e){var r;var f=e.length;var n=f%3;var i=[];var o=16383;for(var u=0,a=f-n;u<a;u+=o){i.push(encodeChunk(e,u,u+o>a?a:u+o))}if(n===1){r=e[f-1];i.push(t[r>>2]+t[r<<4&63]+\"==\")}else if(n===2){r=(e[f-2]<<8)+e[f-1];i.push(t[r>>10]+t[r>>4&63]+t[r<<2&63]+\"=\")}return i.join(\"\")}},230:function(e,r,t){\"use strict\";\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */var f=t(872);var n=t(321);var i=typeof Symbol===\"function\"&&typeof Symbol.for===\"function\"?Symbol.for(\"nodejs.util.inspect.custom\"):null;r.Buffer=Buffer;r.SlowBuffer=SlowBuffer;r.INSPECT_MAX_BYTES=50;var o=2147483647;r.kMaxLength=o;Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport();if(!Buffer.TYPED_ARRAY_SUPPORT&&typeof console!==\"undefined\"&&typeof console.error===\"function\"){console.error(\"This browser lacks typed array (Uint8Array) support which is required by \"+\"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.\")}function typedArraySupport(){try{var e=new Uint8Array(1);var r={foo:function(){return 42}};Object.setPrototypeOf(r,Uint8Array.prototype);Object.setPrototypeOf(e,r);return e.foo()===42}catch(e){return false}}Object.defineProperty(Buffer.prototype,\"parent\",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.buffer}});Object.defineProperty(Buffer.prototype,\"offset\",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.byteOffset}});function createBuffer(e){if(e>o){throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}var r=new Uint8Array(e);Object.setPrototypeOf(r,Buffer.prototype);return r}function Buffer(e,r,t){if(typeof e===\"number\"){if(typeof r===\"string\"){throw new TypeError('The \"string\" argument must be of type string. Received type number')}return allocUnsafe(e)}return from(e,r,t)}Buffer.poolSize=8192;function from(e,r,t){if(typeof e===\"string\"){return fromString(e,r)}if(ArrayBuffer.isView(e)){return fromArrayLike(e)}if(e==null){throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \"+\"or Array-like Object. Received type \"+typeof e)}if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)){return fromArrayBuffer(e,r,t)}if(typeof SharedArrayBuffer!==\"undefined\"&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer))){return fromArrayBuffer(e,r,t)}if(typeof e===\"number\"){throw new TypeError('The \"value\" argument must not be of type number. Received type number')}var f=e.valueOf&&e.valueOf();if(f!=null&&f!==e){return Buffer.from(f,r,t)}var n=fromObject(e);if(n)return n;if(typeof Symbol!==\"undefined\"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]===\"function\"){return Buffer.from(e[Symbol.toPrimitive](\"string\"),r,t)}throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, \"+\"or Array-like Object. Received type \"+typeof e)}Buffer.from=function(e,r,t){return from(e,r,t)};Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer,Uint8Array);function assertSize(e){if(typeof e!==\"number\"){throw new TypeError('\"size\" argument must be of type number')}else if(e<0){throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}}function alloc(Line truncated
{"offset": {"line": 8626, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/native-url/index.js"],"sourcesContent":["(function(){var e={221:function(e){\"use strict\";e.exports=require(\"next/dist/compiled/querystring-es3\")}};var t={};function __nccwpck_require__(o){var a=t[o];if(a!==undefined){return a.exports}var s=t[o]={exports:{}};var n=true;try{e[o](s,s.exports,__nccwpck_require__);n=false}finally{if(n)delete t[o]}return s.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var o={};!function(){var e=o;var t,a=(t=__nccwpck_require__(221))&&\"object\"==typeof t&&\"default\"in t?t.default:t,s=/https?|ftp|gopher|file/;function r(e){\"string\"==typeof e&&(e=d(e));var t=function(e,t,o){var a=e.auth,s=e.hostname,n=e.protocol||\"\",p=e.pathname||\"\",c=e.hash||\"\",i=e.query||\"\",u=!1;a=a?encodeURIComponent(a).replace(/%3A/i,\":\")+\"@\":\"\",e.host?u=a+e.host:s&&(u=a+(~s.indexOf(\":\")?\"[\"+s+\"]\":s),e.port&&(u+=\":\"+e.port)),i&&\"object\"==typeof i&&(i=t.encode(i));var f=e.search||i&&\"?\"+i||\"\";return n&&\":\"!==n.substr(-1)&&(n+=\":\"),e.slashes||(!n||o.test(n))&&!1!==u?(u=\"//\"+(u||\"\"),p&&\"/\"!==p[0]&&(p=\"/\"+p)):u||(u=\"\"),c&&\"#\"!==c[0]&&(c=\"#\"+c),f&&\"?\"!==f[0]&&(f=\"?\"+f),{protocol:n,host:u,pathname:p=p.replace(/[?#]/g,encodeURIComponent),search:f=f.replace(\"#\",\"%23\"),hash:c}}(e,a,s);return\"\"+t.protocol+t.host+t.pathname+t.search+t.hash}var n=\"http://\",p=\"w.w\",c=n+p,i=/^([a-z0-9.+-]*:\\/\\/\\/)([a-z0-9.+-]:\\/*)?/i,u=/https?|ftp|gopher|file/;function h(e,t){var o=\"string\"==typeof e?d(e):e;e=\"object\"==typeof e?r(e):e;var a=d(t),s=\"\";o.protocol&&!o.slashes&&(s=o.protocol,e=e.replace(o.protocol,\"\"),s+=\"/\"===t[0]||\"/\"===e[0]?\"/\":\"\"),s&&a.protocol&&(s=\"\",a.slashes||(s=a.protocol,t=t.replace(a.protocol,\"\")));var p=e.match(i);p&&!a.protocol&&(e=e.substr((s=p[1]+(p[2]||\"\")).length),/^\\/\\/[^/]/.test(t)&&(s=s.slice(0,-1)));var f=new URL(e,c+\"/\"),m=new URL(t,f).toString().replace(c,\"\"),v=a.protocol||o.protocol;return v+=o.slashes||a.slashes?\"//\":\"\",!s&&v?m=m.replace(n,v):s&&(m=m.replace(n,\"\")),u.test(m)||~t.indexOf(\".\")||\"/\"===e.slice(-1)||\"/\"===t.slice(-1)||\"/\"!==m.slice(-1)||(m=m.slice(0,-1)),s&&(m=s+(\"/\"===m[0]?m.substr(1):m)),m}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var f=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,v=/^([a-z0-9.+-]*:)(\\/{0,3})(.*)/i,_=/^([a-z0-9.+-]*:)?\\/\\/\\/*/i,b=/^([a-z0-9.+-]*:)(\\/{0,2})\\[(.*)\\]$/i;function d(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=!1),e&&\"object\"==typeof e&&e instanceof l)return e;var s=(e=e.trim()).match(m);e=s?s[1].replace(/\\\\/g,\"/\")+s[2]:e.replace(/\\\\/g,\"/\"),b.test(e)&&\"/\"!==e.slice(-1)&&(e+=\"/\");var n=!/(^javascript)/.test(e)&&e.match(v),i=_.test(e),u=\"\";n&&(f.test(n[1])||(u=n[1].toLowerCase(),e=\"\"+n[2]+n[3]),n[2]||(i=!1,f.test(n[1])?(u=n[1],e=\"\"+n[3]):e=\"//\"+n[3]),3!==n[2].length&&1!==n[2].length||(u=n[1],e=\"/\"+n[3]));var g,y=(s?s[1]:e).match(/^https?:\\/\\/[^/]+(:[0-9]+)(?=\\/|$)/),w=y&&y[1],x=new l,C=\"\",U=\"\";try{g=new URL(e)}catch(t){C=t,u||o||!/^\\/\\//.test(e)||/^\\/\\/.+[@.]/.test(e)||(U=\"/\",e=e.substr(1));try{g=new URL(e,c)}catch(e){return x.protocol=u,x.href=u,x}}x.slashes=i&&!U,x.host=g.host===p?\"\":g.host,x.hostname=g.hostname===p?\"\":g.hostname.replace(/(\\[|\\])/g,\"\"),x.protocol=C?u||null:g.protocol,x.search=g.search.replace(/\\\\/g,\"%5C\"),x.hash=g.hash.replace(/\\\\/g,\"%5C\");var j=e.split(\"#\");!x.search&&~j[0].indexOf(\"?\")&&(x.search=\"?\"),x.hash||\"\"!==j[1]||(x.hash=\"#\"),x.query=t?a.decode(g.search.substr(1)):x.search.substr(1),x.pathname=U+(n?function(e){return e.replace(/['^|`]/g,(function(e){return\"%\"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split(\"\").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:\"%\"+t.toString(16).toUpperCase()})).join(\"\")}catch(e){return t}}))}(g.pathname):g.pathname),\"about:\"===x.protocol&&\"blank\"===x.pathname&&(x.protocol=\"\",x.pathname=\"\"),C&&\"/\"!==e[0]&&(x.pathname=x.pathname.substr(1)),u&&!f.test(u)&&\"/\"!==e.slice(-1)&&\"/\"===x.pathname&&(x.pathname=\"\"),x.path=x.pathname+x.search,x.auth=[g.username,g.password].map(decodeURIComponent).filter(Boolean).join(\":\"),x.port=g.port,w&&!x.host.endsWith(w)&&(x.host+=w,x.port=w.slice(1)),x.href=U?\"\"+x.pathname+x.search+x.hash:r(x);var q=/^(file)/.test(x.href)?[\"host\",\"hostname\"]:[];return Object.keys(x).forEach((function(e){~q.indexOf(e)||(x[e]=x[e]||null)})),x}e.parse=d,e.format=r,e.resolve=h,e.resolveObject=function(e,t){return d(h(e,t))},e.Url=l}();module.exports=o})();"],"names":["e","exports","t","__nccwpck_require__","o","a","undefined","s","n","ab","default","r","d","auth","hostname","protocol","p","pathname","c","hash","i","query","u","eLine truncated
{"offset": {"line": 8739, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/querystring-es3/index.js"],"sourcesContent":["(function(){\"use strict\";var e={922:function(e){function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e.exports=function(e,n,t,o){n=n||\"&\";t=t||\"=\";var a={};if(typeof e!==\"string\"||e.length===0){return a}var i=/\\+/g;e=e.split(n);var u=1e3;if(o&&typeof o.maxKeys===\"number\"){u=o.maxKeys}var c=e.length;if(u>0&&c>u){c=u}for(var p=0;p<c;++p){var f=e[p].replace(i,\"%20\"),s=f.indexOf(t),_,l,y,d;if(s>=0){_=f.substr(0,s);l=f.substr(s+1)}else{_=f;l=\"\"}y=decodeURIComponent(_);d=decodeURIComponent(l);if(!hasOwnProperty(a,y)){a[y]=d}else if(r(a[y])){a[y].push(d)}else{a[y]=[a[y],d]}}return a};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"}},790:function(e){var stringifyPrimitive=function(e){switch(typeof e){case\"string\":return e;case\"boolean\":return e?\"true\":\"false\";case\"number\":return isFinite(e)?e:\"\";default:return\"\"}};e.exports=function(e,t,o,a){t=t||\"&\";o=o||\"=\";if(e===null){e=undefined}if(typeof e===\"object\"){return map(n(e),(function(n){var a=encodeURIComponent(stringifyPrimitive(n))+o;if(r(e[n])){return map(e[n],(function(e){return a+encodeURIComponent(stringifyPrimitive(e))})).join(t)}else{return a+encodeURIComponent(stringifyPrimitive(e[n]))}})).join(t)}if(!a)return\"\";return encodeURIComponent(stringifyPrimitive(a))+o+encodeURIComponent(stringifyPrimitive(e))};var r=Array.isArray||function(e){return Object.prototype.toString.call(e)===\"[object Array]\"};function map(e,r){if(e.map)return e.map(r);var n=[];for(var t=0;t<e.length;t++){n.push(r(e[t],t))}return n}var n=Object.keys||function(e){var r=[];for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r.push(n)}return r}}};var r={};function __nccwpck_require__(n){var t=r[n];if(t!==undefined){return t.exports}var o=r[n]={exports:{}};var a=true;try{e[n](o,o.exports,__nccwpck_require__);a=false}finally{if(a)delete r[n]}return o.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var n={};!function(){var e=n;e.decode=e.parse=__nccwpck_require__(922);e.encode=e.stringify=__nccwpck_require__(790)}();module.exports=n})();"],"names":["e","hasOwnProperty","r","Object","prototype","call","exports","n","t","o","a","length","i","split","u","maxKeys","c","p","f","replace","s","indexOf","_","l","y","d","substr","decodeURIComponent","push","Array","isArray","toString","stringifyPrimitive","isFinite","undefined","map","encodeURIComponent","join","keys","__nccwpck_require__","ab","decode","parse","encode","stringify","module"],"mappings":"AAAA,CAAC;IAAW;IAAa,IAAIA,IAAE;QAAC,KAAI,SAASA,CAAC;YAAE,SAASC,eAAeD,CAAC,EAACE,CAAC;gBAAE,OAAOC,OAAOC,SAAS,CAACH,cAAc,CAACI,IAAI,CAACL,GAAEE;YAAE;YAACF,EAAEM,OAAO,GAAC,SAASN,CAAC,EAACO,CAAC,EAACC,CAAC,EAACC,CAAC;gBAAEF,IAAEA,KAAG;gBAAIC,IAAEA,KAAG;gBAAI,IAAIE,IAAE,CAAC;gBAAE,IAAG,OAAOV,MAAI,YAAUA,EAAEW,MAAM,KAAG,GAAE;oBAAC,OAAOD;gBAAC;gBAAC,IAAIE,IAAE;gBAAMZ,IAAEA,EAAEa,KAAK,CAACN;gBAAG,IAAIO,IAAE;gBAAI,IAAGL,KAAG,OAAOA,EAAEM,OAAO,KAAG,UAAS;oBAACD,IAAEL,EAAEM,OAAO;gBAAA;gBAAC,IAAIC,IAAEhB,EAAEW,MAAM;gBAAC,IAAGG,IAAE,KAAGE,IAAEF,GAAE;oBAACE,IAAEF;gBAAC;gBAAC,IAAI,IAAIG,IAAE,GAAEA,IAAED,GAAE,EAAEC,EAAE;oBAAC,IAAIC,IAAElB,CAAC,CAACiB,EAAE,CAACE,OAAO,CAACP,GAAE,QAAOQ,IAAEF,EAAEG,OAAO,CAACb,IAAGc,GAAEC,GAAEC,GAAEC;oBAAE,IAAGL,KAAG,GAAE;wBAACE,IAAEJ,EAAEQ,MAAM,CAAC,GAAEN;wBAAGG,IAAEL,EAAEQ,MAAM,CAACN,IAAE;oBAAE,OAAK;wBAACE,IAAEJ;wBAAEK,IAAE;oBAAE;oBAACC,IAAEG,mBAAmBL;oBAAGG,IAAEE,mBAAmBJ;oBAAG,IAAG,CAACtB,eAAeS,GAAEc,IAAG;wBAACd,CAAC,CAACc,EAAE,GAACC;oBAAC,OAAM,IAAGvB,EAAEQ,CAAC,CAACc,EAAE,GAAE;wBAACd,CAAC,CAACc,EAAE,CAACI,IAAI,CAACH;oBAAE,OAAK;wBAACf,CAAC,CAACc,EAAE,GAAC;4BAACd,CAAC,CAACc,EAAE;4BAACC;yBAAE;oBAAA;gBAAC;gBAAC,OAAOf;YAAC;YAAE,IAAIR,IAAE2B,MAAMC,OAAO,IAAE,SAAS9B,CAAC;gBAAE,OAAOG,OAAOC,SAAS,CAAC2B,QAAQ,CAAC1B,IAAI,CAACL,OAAK;YAAgB;QAAC;QAAE,KAAI,SAASA,CAAC;YAAE,IAAIgC,qBAAmB,SAAShC,CAAC;gBAAE,OAAO,OAAOA;oBAAG,KAAI;wBAAS,OAAOA;oBAAE,KAAI;wBAAU,OAAOA,IAAE,SAAO;oBAAQ,KAAI;wBAAS,OAAOiC,SAASjC,KAAGA,IAAE;oBAAG;wBAAQ,OAAM;gBAAE;YAAC;YAAEA,EAAEM,OAAO,GAAC,SAASN,CAAC,EAACQ,CAAC,EAACC,CAAC,EAACC,CAAC;gBAAEF,IAAEA,KAAG;gBAAIC,IAAEA,KAAG;gBAAI,IAAGT,MAAI,MAAK;oBAACA,IAAEkC;gBAAS;gBAAC,IAAG,OAAOlC,MAAI,UAAS;oBAAC,OAAOmC,IAAI5B,EAAEP,IAAI,SAASO,CAAC;wBAAE,IAAIG,IAAE0B,mBAAmBJ,mBAAmBzB,MAAIE;wBAAE,IAAGP,EAAEF,CAAC,CAACO,EAAE,GAAE;4BAAC,OAAO4B,IAAInC,CAAC,CAACO,EAAE,EAAE,SAASP,CAAC;gCAAE,OAAOU,IAAE0B,mBAAmBJ,mBAAmBhC;4BAAG,GAAIqC,IAAI,CAAC7B;wBAAE,OAAK;4BAAC,OAAOE,IAAE0B,mBAAmBJ,mBAAmBhC,CAAC,CAACO,EAAE;wBAAE;oBAAC,GAAI8B,IAAI,CAAC7B;gBAAE;gBAAC,IAAG,CAACE,GAAE,OAAM;gBAAG,OAAO0B,mBAAmBJ,mBAAmBtB,MAAID,IAAE2B,mBAAmBJ,mBAAmBhC;YAAG;YAAE,IAAIE,IAAE2B,MAAMC,OAAO,IAAE,SAAS9B,CAAC;gBAAE,OAAOG,OAAOC,SAAS,CAAC2B,QAAQ,CAAC1B,IAAI,CAACL,OAAK;YAAgB;YAAE,SAASmC,IAAInC,CAAC,EAACE,CAAC;gBAAE,IAAGF,EAAEmC,GAAG,EAAC,OAAOnC,ELine truncated
{"offset": {"line": 8875, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/parse-srcset/src/parse-srcset.js"],"sourcesContent":["/**\n * Srcset Parser\n *\n * By Alex Bell | MIT License\n *\n * JS Parser for the string value that appears in markup <img srcset=\"here\">\n *\n * @returns Array [{url: _, d: _, w: _, h:_}, ...]\n *\n * Based super duper closely on the reference algorithm at:\n * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute\n *\n * Most comments are copied in directly from the spec\n * (except for comments in parens).\n */\n\n(function (root, factory) {\n\tif (typeof define === 'function' && define.amd) {\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine([], factory);\n\t} else if (typeof module === 'object' && module.exports) {\n\t\t// Node. Does not work with strict CommonJS, but\n\t\t// only CommonJS-like environments that support module.exports,\n\t\t// like Node.\n\t\tmodule.exports = factory();\n\t} else {\n\t\t// Browser globals (root is window)\n\t\troot.parseSrcset = factory();\n\t}\n}(this, function () {\n\n\t// 1. Let input be the value passed to this algorithm.\n\treturn function (input) {\n\n\t\t// UTILITY FUNCTIONS\n\n\t\t// Manual is faster than RegEx\n\t\t// http://bjorn.tipling.com/state-and-regular-expressions-in-javascript\n\t\t// http://jsperf.com/whitespace-character/5\n\t\tfunction isSpace(c) {\n\t\t\treturn (c === \"\\u0020\" || // space\n\t\t\tc === \"\\u0009\" || // horizontal tab\n\t\t\tc === \"\\u000A\" || // new line\n\t\t\tc === \"\\u000C\" || // form feed\n\t\t\tc === \"\\u000D\"); // carriage return\n\t\t}\n\n\t\tfunction collectCharacters(regEx) {\n\t\t\tvar chars,\n\t\t\t\tmatch = regEx.exec(input.substring(pos));\n\t\t\tif (match) {\n\t\t\t\tchars = match[ 0 ];\n\t\t\t\tpos += chars.length;\n\t\t\t\treturn chars;\n\t\t\t}\n\t\t}\n\n\t\tvar inputLength = input.length,\n\n\t\t\t// (Don't use \\s, to avoid matching non-breaking space)\n\t\t\tregexLeadingSpaces = /^[ \\t\\n\\r\\u000c]+/,\n\t\t\tregexLeadingCommasOrSpaces = /^[, \\t\\n\\r\\u000c]+/,\n\t\t\tregexLeadingNotSpaces = /^[^ \\t\\n\\r\\u000c]+/,\n\t\t\tregexTrailingCommas = /[,]+$/,\n\t\t\tregexNonNegativeInteger = /^\\d+$/,\n\n\t\t\t// ( Positive or negative or unsigned integers or decimals, without or without exponents.\n\t\t\t// Must include at least one digit.\n\t\t\t// According to spec tests any decimal point must be followed by a digit.\n\t\t\t// No leading plus sign is allowed.)\n\t\t\t// https://html.spec.whatwg.org/multipage/infrastructure.html#valid-floating-point-number\n\t\t\tregexFloatingPoint = /^-?(?:[0-9]+|[0-9]*\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,\n\n\t\t\turl,\n\t\t\tdescriptors,\n\t\t\tcurrentDescriptor,\n\t\t\tstate,\n\t\t\tc,\n\n\t\t\t// 2. Let position be a pointer into input, initially pointing at the start\n\t\t\t// of the string.\n\t\t\tpos = 0,\n\n\t\t\t// 3. Let candidates be an initially empty source set.\n\t\t\tcandidates = [];\n\n\t\t// 4. Splitting loop: Collect a sequence of characters that are space\n\t\t// characters or U+002C COMMA characters. If any U+002C COMMA characters\n\t\t// were collected, that is a parse error.\n\t\twhile (true) {\n\t\t\tcollectCharacters(regexLeadingCommasOrSpaces);\n\n\t\t\t// 5. If position is past the end of input, return candidates and abort these steps.\n\t\t\tif (pos >= inputLength) {\n\t\t\t\treturn candidates; // (we're done, this is the sole return path)\n\t\t\t}\n\n\t\t\t// 6. Collect a sequence of characters that are not space characters,\n\t\t\t// and let that be url.\n\t\t\turl = collectCharacters(regexLeadingNotSpaces);\n\n\t\t\t// 7. Let descriptors be a new empty list.\n\t\t\tdescriptors = [];\n\n\t\t\t// 8. If url ends with a U+002C COMMA character (,), follow these substeps:\n\t\t\t//\t\t(1). Remove all trailing U+002C COMMA characters from url. If this removed\n\t\t\t// more than one character, that is a parse error.\n\t\t\tif (url.slice(-1) === \",\") {\n\t\t\t\turl = url.replace(regexTrailingCommas, \"\");\n\t\t\t\t// (Jump ahead to step 9 to skip tokenization and just push the candidate).\n\t\t\t\tparseDescriptors();\n\n\t\t\t\t//\tOtherwise, follow these substeps:\n\t\t\t} else {\n\t\t\t\ttokenize();\n\t\t\t} // (close else of step 8)\n\n\t\t\t// 16. Return to the step labeled splitting loop.\n\t\t} // (Close of big while loop.)\n\n\t\t/**\n\t\t * Tokenizes descriptor properties prior to parsing\n\t\t * Returns undefined.\n\t\t */\n\t\tfunction tokenize() {\n\n\t\t\t// 8.1. Descriptor tokeniser: Skip whitespace\n\t\t\tcollectCharacters(regexLeadingSpaces);\n\n\t\t\t// 8.2. Let current descriptor be the empty string.\n\t\t\tcurrentDescriptor = \"\";\n\n\t\t\t// 8.3. Let state be in descriptor.\n\t\t\tstate = \"in descriptor\";\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 8.4. Let c be the character at position.\n\t\t\t\tc = input.charAt(pos);\n\n\t\t\t\t// Do the following depending on the value of state.\n\t\tLine truncated
{"offset": {"line": 9154, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/picocolors/picocolors.browser.js"],"sourcesContent":["var x=String;\nvar create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};\nmodule.exports=create();\nmodule.exports.createColors = create;\n"],"names":["x","String","create","isColorSupported","reset","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","module","exports","createColors"],"mappings":"AAAA,IAAIA,IAAEC;AACN,IAAIC,SAAO;IAAY,OAAO;QAACC,kBAAiB;QAAMC,OAAMJ;QAAEK,MAAKL;QAAEM,KAAIN;QAAEO,QAAOP;QAAEQ,WAAUR;QAAES,SAAQT;QAAEU,QAAOV;QAAEW,eAAcX;QAAEY,OAAMZ;QAAEa,KAAIb;QAAEc,OAAMd;QAAEe,QAAOf;QAAEgB,MAAKhB;QAAEiB,SAAQjB;QAAEkB,MAAKlB;QAAEmB,OAAMnB;QAAEoB,MAAKpB;QAAEqB,SAAQrB;QAAEsB,OAAMtB;QAAEuB,SAAQvB;QAAEwB,UAASxB;QAAEyB,QAAOzB;QAAE0B,WAAU1B;QAAE2B,QAAO3B;QAAE4B,SAAQ5B;QAAE6B,aAAY7B;QAAE8B,WAAU9B;QAAE+B,aAAY/B;QAAEgC,cAAahC;QAAEiC,YAAWjC;QAAEkC,eAAclC;QAAEmC,YAAWnC;QAAEoC,aAAYpC;QAAEqC,eAAcrC;QAAEsC,aAAYtC;QAAEuC,eAAcvC;QAAEwC,gBAAexC;QAAEyC,cAAazC;QAAE0C,iBAAgB1C;QAAE2C,cAAa3C;QAAE4C,eAAc5C;IAAC;AAAC;AACtgB6C,OAAOC,OAAO,GAAC5C;AACf2C,OAAOC,OAAO,CAACC,YAAY,GAAG7C","ignoreList":[0]}},
{"offset": {"line": 9207, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/at-rule.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\n\nclass AtRule extends Container {\n constructor(defaults) {\n super(defaults)\n this.type = 'atrule'\n }\n\n append(...children) {\n if (!this.proxyOf.nodes) this.nodes = []\n return super.append(...children)\n }\n\n prepend(...children) {\n if (!this.proxyOf.nodes) this.nodes = []\n return super.prepend(...children)\n }\n}\n\nmodule.exports = AtRule\nAtRule.default = AtRule\n\nContainer.registerAtRule(AtRule)\n"],"names":["Container","AtRule","defaults","type","append","children","proxyOf","nodes","prepend","module","exports","default","registerAtRule"],"mappings":"AAEA,IAAIA;AAEJ,MAAMC,eAAeD;IACnBC,YAAYC,QAAQ,CAAE;QACpB,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;IACd;IAEAC,OAAO,GAAGC,QAAQ,EAAE;QAClB,IAAI,CAAC,IAAI,CAACC,OAAO,CAACC,KAAK,EAAE,IAAI,CAACA,KAAK,GAAG,EAAE;QACxC,OAAO,KAAK,CAACH,UAAUC;IACzB;IAEAG,QAAQ,GAAGH,QAAQ,EAAE;QACnB,IAAI,CAAC,IAAI,CAACC,OAAO,CAACC,KAAK,EAAE,IAAI,CAACA,KAAK,GAAG,EAAE;QACxC,OAAO,KAAK,CAACC,WAAWH;IAC1B;AACF;AAEAI,OAAOC,OAAO,GAAGT;AACjBA,OAAOU,OAAO,GAAGV;AAEjBD,UAAUY,cAAc,CAACX","ignoreList":[0]}},
{"offset": {"line": 9229, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/comment.js"],"sourcesContent":["'use strict'\n\nlet Node = require('./node')\n\nclass Comment extends Node {\n constructor(defaults) {\n super(defaults)\n this.type = 'comment'\n }\n}\n\nmodule.exports = Comment\nComment.default = Comment\n"],"names":["Node","Comment","defaults","type","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,MAAMC,gBAAgBD;IACpBC,YAAYC,QAAQ,CAAE;QACpB,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAEAC,OAAOC,OAAO,GAAGJ;AACjBA,QAAQK,OAAO,GAAGL","ignoreList":[0]}},
{"offset": {"line": 9242, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/container.js"],"sourcesContent":["'use strict'\n\nlet Comment = require('./comment')\nlet Declaration = require('./declaration')\nlet Node = require('./node')\nlet { isClean, my } = require('./symbols')\n\nlet AtRule, parse, Root, Rule\n\nfunction cleanSource(nodes) {\n let stack = nodes.slice()\n while (stack.length > 0) {\n let node = stack.pop()\n delete node.source\n if (node.nodes) {\n node.nodes = node.nodes.slice()\n for (let i of node.nodes) stack.push(i)\n }\n }\n return nodes.slice()\n}\n\nfunction markTreeDirty(node) {\n let stack = [node]\n while (stack.length > 0) {\n let next = stack.pop()\n next[isClean] = false\n if (next.proxyOf.nodes) {\n for (let i of next.proxyOf.nodes) stack.push(i)\n }\n }\n}\n\nclass Container extends Node {\n get first() {\n if (!this.proxyOf.nodes) return undefined\n return this.proxyOf.nodes[0]\n }\n\n get last() {\n if (!this.proxyOf.nodes) return undefined\n return this.proxyOf.nodes[this.proxyOf.nodes.length - 1]\n }\n\n append(...children) {\n for (let child of children) {\n let nodes = this.normalize(child, this.last)\n for (let node of nodes) this.proxyOf.nodes.push(node)\n }\n\n this.markDirty()\n\n return this\n }\n\n cleanRaws(keepBetween) {\n let stack = [this]\n while (stack.length > 0) {\n let node = stack.pop()\n if (node !== this && node.cleanRaws !== Container.prototype.cleanRaws) {\n // Subclass with own logic; let it handle its subtree\n node.cleanRaws(keepBetween)\n continue\n }\n Node.prototype.cleanRaws.call(node, keepBetween)\n if (node.nodes) {\n for (let child of node.nodes) stack.push(child)\n }\n }\n }\n\n each(callback) {\n if (!this.proxyOf.nodes) return undefined\n let iterator = this.getIterator()\n\n let index, result\n while (this.indexes[iterator] < this.proxyOf.nodes.length) {\n index = this.indexes[iterator]\n result = callback(this.proxyOf.nodes[index], index)\n if (result === false) break\n\n this.indexes[iterator] += 1\n }\n\n delete this.indexes[iterator]\n return result\n }\n\n every(condition) {\n return this.nodes.every(condition)\n }\n\n getIterator() {\n if (!this.lastEach) this.lastEach = 0\n if (!this.indexes) this.indexes = {}\n\n this.lastEach += 1\n let iterator = this.lastEach\n this.indexes[iterator] = 0\n\n return iterator\n }\n\n getProxyProcessor() {\n return {\n get(node, prop) {\n if (prop === 'proxyOf') {\n return node\n } else if (!node[prop]) {\n return node[prop]\n } else if (\n prop === 'each' ||\n (typeof prop === 'string' && prop.startsWith('walk'))\n ) {\n return (...args) => {\n return node[prop](\n ...args.map(i => {\n if (typeof i === 'function') {\n return (child, index) => i(child.toProxy(), index)\n } else {\n return i\n }\n })\n )\n }\n } else if (prop === 'every' || prop === 'some') {\n return cb => {\n return node[prop]((child, ...other) =>\n cb(child.toProxy(), ...other)\n )\n }\n } else if (prop === 'root') {\n return () => node.root().toProxy()\n } else if (prop === 'nodes') {\n return node.nodes.map(i => i.toProxy())\n } else if (prop === 'first' || prop === 'last') {\n return node[prop].toProxy()\n } else {\n return node[prop]\n }\n },\n\n set(node, prop, value) {\n if (node[prop] === value) return true\n node[prop] = value\n if (prop === 'name' || prop === 'params' || prop === 'selector') {\n node.markDirty()\n }\n return true\n }\n }\n }\n\n index(child) {\n if (typeof child === 'number') return child\n if (child.proxyOf) child = child.proxyOf\n return this.proxyOf.nodes.indexOf(child)\n }\n\n insertAfter(exist, add) {\n let existIndex = this.index(exist)\n let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse()\n existIndex = this.index(exist)\n for (let node of nodes) this.proxyOf.nodes.splice(existIndex + 1, 0, node)\n\n let index\n for (let id in this.indexes) {\n index = this.indexes[id]\n if (existIndex < index) {\n this.indexes[id] = index + nodes.length\n }\n }\n\n this.markDirty()\n\n return this\n }\n\n insertBefore(exist, add) {\n let existIndex = this.index(exist)\n let type = existIndex === 0 ? 'prepend' : false\n let nodes = this.normalize(\n add,\n this.proxyOf.nodes[existIndex],\n type\n ).reverse()\n eLine truncated
{"offset": {"line": 9680, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/css-syntax-error.js"],"sourcesContent":["'use strict'\n\nlet pico = require('picocolors')\n\nlet terminalHighlight = require('./terminal-highlight')\n\nclass CssSyntaxError extends Error {\n constructor(message, line, column, source, file, plugin) {\n super(message)\n this.name = 'CssSyntaxError'\n this.reason = message\n\n if (file) {\n this.file = file\n }\n if (source) {\n this.source = source\n }\n if (plugin) {\n this.plugin = plugin\n }\n if (typeof line !== 'undefined' && typeof column !== 'undefined') {\n if (typeof line === 'number') {\n this.line = line\n this.column = column\n } else {\n this.line = line.line\n this.column = line.column\n this.endLine = column.line\n this.endColumn = column.column\n }\n }\n\n this.setMessage()\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, CssSyntaxError)\n }\n }\n\n setMessage() {\n this.message = this.plugin ? this.plugin + ': ' : ''\n this.message += this.file ? this.file : '<css input>'\n if (typeof this.line !== 'undefined') {\n this.message += ':' + this.line + ':' + this.column\n }\n this.message += ': ' + this.reason\n }\n\n showSourceCode(color) {\n if (!this.source) return ''\n\n let css = this.source\n if (color == null) color = pico.isColorSupported\n\n let aside = text => text\n let mark = text => text\n let highlight = text => text\n if (color) {\n let { bold, gray, red } = pico.createColors(true)\n mark = text => bold(red(text))\n aside = text => gray(text)\n if (terminalHighlight) {\n highlight = text => terminalHighlight(text)\n }\n }\n\n let lines = css.split(/\\r?\\n/)\n let start = Math.max(this.line - 3, 0)\n let end = Math.min(this.line + 2, lines.length)\n let maxWidth = String(end).length\n\n return lines\n .slice(start, end)\n .map((line, index) => {\n let number = start + 1 + index\n let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | '\n if (number === this.line) {\n if (line.length > 160) {\n let padding = 20\n let subLineStart = Math.max(0, this.column - padding)\n let subLineEnd = Math.max(\n this.column + padding,\n this.endColumn + padding\n )\n let subLine = line.slice(subLineStart, subLineEnd)\n\n let spacing =\n aside(gutter.replace(/\\d/g, ' ')) +\n line\n .slice(0, Math.min(this.column - 1, padding - 1))\n .replace(/[^\\t]/g, ' ')\n\n return (\n mark('>') +\n aside(gutter) +\n highlight(subLine) +\n '\\n ' +\n spacing +\n mark('^')\n )\n }\n\n let spacing =\n aside(gutter.replace(/\\d/g, ' ')) +\n line.slice(0, this.column - 1).replace(/[^\\t]/g, ' ')\n\n return (\n mark('>') +\n aside(gutter) +\n highlight(line) +\n '\\n ' +\n spacing +\n mark('^')\n )\n }\n\n return ' ' + aside(gutter) + highlight(line)\n })\n .join('\\n')\n }\n\n toString() {\n let code = this.showSourceCode()\n if (code) {\n code = '\\n\\n' + code + '\\n'\n }\n return this.name + ': ' + this.message + code\n }\n}\n\nmodule.exports = CssSyntaxError\nCssSyntaxError.default = CssSyntaxError\n"],"names":["pico","terminalHighlight","CssSyntaxError","Error","message","line","column","source","file","plugin","name","reason","endLine","endColumn","setMessage","captureStackTrace","showSourceCode","color","css","isColorSupported","aside","text","mark","highlight","bold","gray","red","createColors","lines","split","start","Math","max","end","min","length","maxWidth","String","slice","map","index","number","gutter","padding","subLineStart","subLineEnd","subLine","spacing","replace","join","toString","code","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,IAAIC;AAEJ,MAAMC,uBAAuBC;IAC3BD,YAAYE,OAAO,EAAEC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAEC,IAAI,EAAEC,MAAM,CAAE;QACvD,KAAK,CAACL;QACN,IAAI,CAACM,IAAI,GAAG;QACZ,IAAI,CAACC,MAAM,GAAGP;QAEd,IAAII,MAAM;YACR,IAAI,CAACA,IAAI,GAAGA;QACd;QACA,IAAID,QAAQ;YACV,IAAI,CAACA,MAAM,GAAGA;QAChB;QACA,IAAIE,QAAQ;YACV,IAAI,CAACA,MAAM,GAAGA;QAChB;QACA,IAAI,OAAOJ,SAAS,eAAe,OAAOC,WAAW,aAAa;YAChE,IAAI,OAAOD,SAAS,UAAU;gBAC5B,IAAI,CAACA,IAAI,GAAGA;gBACZ,IAAI,CAACC,MAAM,GAAGA;YAChB,OAAO;gBACL,IAAI,CAACD,IAAI,GAAGA,KAAKA,IAAI;gBACrB,IAAI,CAACC,MAAM,GAAGD,KAAKC,MAAM;gBACzB,IAAI,CAACM,OAAO,GAAGN,OAAOD,IAAI;gBAC1B,IAAI,CAACQ,SAAS,GAAGP,OAAOA,MAAM;YAChC;QACF;QAEA,IAAI,CAACQ,UAAU;QAEf,IAAIX,MAAMY,iBAAiB,EAAE;YAC3BZ,MAAMY,iBAAiB,CALine truncated
{"offset": {"line": 9771, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/declaration.js"],"sourcesContent":["'use strict'\n\nlet Node = require('./node')\n\nclass Declaration extends Node {\n get variable() {\n return this.prop.startsWith('--') || this.prop[0] === '$'\n }\n\n constructor(defaults) {\n if (\n defaults &&\n typeof defaults.value !== 'undefined' &&\n typeof defaults.value !== 'string'\n ) {\n defaults = { ...defaults, value: String(defaults.value) }\n }\n super(defaults)\n this.type = 'decl'\n }\n}\n\nmodule.exports = Declaration\nDeclaration.default = Declaration\n"],"names":["Node","Declaration","variable","prop","startsWith","defaults","value","String","type","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,MAAMC,oBAAoBD;IACxB,IAAIE,WAAW;QACb,OAAO,IAAI,CAACC,IAAI,CAACC,UAAU,CAAC,SAAS,IAAI,CAACD,IAAI,CAAC,EAAE,KAAK;IACxD;IAEAF,YAAYI,QAAQ,CAAE;QACpB,IACEA,YACA,OAAOA,SAASC,KAAK,KAAK,eAC1B,OAAOD,SAASC,KAAK,KAAK,UAC1B;YACAD,WAAW;gBAAE,GAAGA,QAAQ;gBAAEC,OAAOC,OAAOF,SAASC,KAAK;YAAE;QAC1D;QACA,KAAK,CAACD;QACN,IAAI,CAACG,IAAI,GAAG;IACd;AACF;AAEAC,OAAOC,OAAO,GAAGT;AACjBA,YAAYU,OAAO,GAAGV","ignoreList":[0]}},
{"offset": {"line": 9793, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/document.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Document extends Container {\n constructor(defaults) {\n // type needs to be passed to super, otherwise child roots won't be normalized correctly\n super({ type: 'document', ...defaults })\n\n if (!this.nodes) {\n this.nodes = []\n }\n }\n\n toResult(opts = {}) {\n let lazy = new LazyResult(new Processor(), this, opts)\n\n return lazy.stringify()\n }\n}\n\nDocument.registerLazyResult = dependant => {\n LazyResult = dependant\n}\n\nDocument.registerProcessor = dependant => {\n Processor = dependant\n}\n\nmodule.exports = Document\nDocument.default = Document\n"],"names":["Container","LazyResult","Processor","Document","defaults","type","nodes","toResult","opts","lazy","stringify","registerLazyResult","dependant","registerProcessor","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,IAAIC,YAAYC;AAEhB,MAAMC,iBAAiBH;IACrBG,YAAYC,QAAQ,CAAE;QACpB,wFAAwF;QACxF,KAAK,CAAC;YAAEC,MAAM;YAAY,GAAGD,QAAQ;QAAC;QAEtC,IAAI,CAAC,IAAI,CAACE,KAAK,EAAE;YACf,IAAI,CAACA,KAAK,GAAG,EAAE;QACjB;IACF;IAEAC,SAASC,OAAO,CAAC,CAAC,EAAE;QAClB,IAAIC,OAAO,IAAIR,WAAW,IAAIC,aAAa,IAAI,EAAEM;QAEjD,OAAOC,KAAKC,SAAS;IACvB;AACF;AAEAP,SAASQ,kBAAkB,GAAGC,CAAAA;IAC5BX,aAAaW;AACf;AAEAT,SAASU,iBAAiB,GAAGD,CAAAA;IAC3BV,YAAYU;AACd;AAEAE,OAAOC,OAAO,GAAGZ;AACjBA,SAASa,OAAO,GAAGb","ignoreList":[0]}},
{"offset": {"line": 9823, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/fromJSON.js"],"sourcesContent":["'use strict'\n\nlet AtRule = require('./at-rule')\nlet Comment = require('./comment')\nlet Declaration = require('./declaration')\nlet Input = require('./input')\nlet PreviousMap = require('./previous-map')\nlet Root = require('./root')\nlet Rule = require('./rule')\n\nfunction hydrateInputs(json, inputs) {\n if (!json.inputs) return inputs\n return json.inputs.map(input => {\n let inputHydrated = { ...input, __proto__: Input.prototype }\n if (inputHydrated.map) {\n inputHydrated.map = {\n ...inputHydrated.map,\n __proto__: PreviousMap.prototype\n }\n }\n return inputHydrated\n })\n}\n\nfunction constructNode(json, inputs, children) {\n let defaults = { ...json }\n delete defaults.inputs\n delete defaults.nodes\n if (defaults.source) {\n let { inputId, ...source } = defaults.source\n defaults.source = source\n if (inputId != null) {\n defaults.source.input = inputs[inputId]\n }\n }\n\n let node\n if (defaults.type === 'root') {\n node = new Root(defaults)\n } else if (defaults.type === 'decl') {\n node = new Declaration(defaults)\n } else if (defaults.type === 'rule') {\n node = new Rule(defaults)\n } else if (defaults.type === 'comment') {\n node = new Comment(defaults)\n } else if (defaults.type === 'atrule') {\n node = new AtRule(defaults)\n } else {\n throw new Error('Unknown node type: ' + json.type)\n }\n\n // Rehydrated children are attached after construction. Passing them\n // through the container constructor would re-run insertion spacing\n // normalization and overwrite each child's own `raws.before`.\n if (children) {\n node.nodes = children\n for (let child of children) child.parent = node\n }\n\n return node\n}\n\nfunction fromJSON(json, inputs) {\n if (Array.isArray(json)) return json.map(n => fromJSON(n))\n\n // An explicit stack instead of recursive calls to survive deeply\n // nested trees. Children are rehydrated before their parent node\n // is constructed.\n let result\n let stack = [\n { childIndex: 0, children: [], inputs: hydrateInputs(json, inputs), json }\n ]\n\n while (stack.length > 0) {\n let frame = stack[stack.length - 1]\n let jsonNodes = frame.json.nodes\n\n if (jsonNodes && frame.childIndex < jsonNodes.length) {\n let childJson = jsonNodes[frame.childIndex]\n frame.childIndex += 1\n stack.push({\n childIndex: 0,\n children: [],\n inputs: hydrateInputs(childJson, frame.inputs),\n json: childJson\n })\n continue\n }\n\n stack.pop()\n let node = constructNode(\n frame.json,\n frame.inputs,\n jsonNodes ? frame.children : undefined\n )\n if (stack.length > 0) {\n stack[stack.length - 1].children.push(node)\n } else {\n result = node\n }\n }\n\n return result\n}\n\nmodule.exports = fromJSON\nfromJSON.default = fromJSON\n"],"names":["AtRule","Comment","Declaration","Input","PreviousMap","Root","Rule","hydrateInputs","json","inputs","map","input","inputHydrated","__proto__","prototype","constructNode","children","defaults","nodes","source","inputId","node","type","Error","child","parent","fromJSON","Array","isArray","n","result","stack","childIndex","length","frame","jsonNodes","childJson","push","pop","undefined","module","exports","default"],"mappings":"AAEA,IAAIA;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AAEJ,SAASC,cAAcC,IAAI,EAAEC,MAAM;IACjC,IAAI,CAACD,KAAKC,MAAM,EAAE,OAAOA;IACzB,OAAOD,KAAKC,MAAM,CAACC,GAAG,CAACC,CAAAA;QACrB,IAAIC,gBAAgB;YAAE,GAAGD,KAAK;YAAEE,WAAWV,MAAMW,SAAS;QAAC;QAC3D,IAAIF,cAAcF,GAAG,EAAE;YACrBE,cAAcF,GAAG,GAAG;gBAClB,GAAGE,cAAcF,GAAG;gBACpBG,WAAWT,YAAYU,SAAS;YAClC;QACF;QACA,OAAOF;IACT;AACF;AAEA,SAASG,cAAcP,IAAI,EAAEC,MAAM,EAAEO,QAAQ;IAC3C,IAAIC,WAAW;QAAE,GAAGT,IAAI;IAAC;IACzB,OAAOS,SAASR,MAAM;IACtB,OAAOQ,SAASC,KAAK;IACrB,IAAID,SAASE,MAAM,EAAE;QACnB,IAAI,EAAEC,OAAO,EAAE,GAAGD,QAAQ,GAAGF,SAASE,MAAM;QAC5CF,SAASE,MAAM,GAAGA;QAClB,IAAIC,WAAW,MAAM;YACnBH,SAASE,MAAM,CAACR,KAAK,GAAGF,MAAM,CAACW,QAAQ;QACzC;IACF;IAEA,IAAIC;IACJ,IAAIJ,SAASK,IAAI,KAAK,QAAQ;QAC5BD,OAAO,IAAIhB,KAAKY;IAClB,OAAO,IAAIA,SAASK,IAAI,KAAK,QAAQ;QACnCD,OAAO,IAAInB,YAAYe;IACzB,OAAO,IAAIA,SAASK,IAAI,KAAK,QAAQ;QACnCD,OAAO,IAAIf,KAAKW;IAClB,OAAO,IAAIA,SAASK,IAAI,KAAK,WAAW;QACtCD,OAAO,IAAIpB,QAAQgB;IACrB,OAAO,IAAIA,SAASK,IAAI,KAAK,UAAU;QACrCD,OAAO,IAAIrB,OAAOiB;IACpB,OAAO;QACL,MAAM,IAAIM,MAAM,wBAAwBf,KAAKc,IAAI;IACnD;IAEA,oEAAoE;IACpE,mEAAmE;IACnE,8DAA8D;IAC9D,IAAIN,UAAU;QACZK,KAAKH,KAAK,GAAGF;QACb,KAAK,IAAIQ,SAASR,SAAUQ,MAAMC,MAAM,GAAGJ;IAC7C;IAEA,OAAOA;AACT;AAEA,SAASK,SAASlB,IAAI,EAAEC,MAAM;IAC5B,IAAIkB,MAAMC,OAAO,CAACpB,OAAO,OAAOA,KAAKE,GAAG,CAACmB,CAAAA,IAAKH,SAASG;IAEvD,iEAAiE;IACjE,iEAAiE;IACjE,kBAAkB;IAClB,IAAIC;IACJ,IAAIC,QAAQ;QACV;YAAEC,YAAY;YAAGhB,UAAU,EAAE;YAAEP,QAAQF,cAAcC,MAAMC;Line truncated
{"offset": {"line": 9926, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/input.js"],"sourcesContent":["'use strict'\n\nlet { nanoid } = require('nanoid/non-secure')\nlet { isAbsolute, resolve } = require('path')\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { fileURLToPath, pathToFileURL } = require('url')\n\nlet CssSyntaxError = require('./css-syntax-error')\nlet PreviousMap = require('./previous-map')\nlet terminalHighlight = require('./terminal-highlight')\n\nlet lineToIndexCache = Symbol('lineToIndexCache')\n\nlet sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)\nlet pathAvailable = Boolean(resolve && isAbsolute)\n\nfunction getLineToIndex(input) {\n if (input[lineToIndexCache]) return input[lineToIndexCache]\n let lines = input.css.split('\\n')\n let lineToIndex = new Array(lines.length)\n let prevIndex = 0\n\n for (let i = 0, l = lines.length; i < l; i++) {\n lineToIndex[i] = prevIndex\n prevIndex += lines[i].length + 1\n }\n\n input[lineToIndexCache] = lineToIndex\n return lineToIndex\n}\n\nclass Input {\n get from() {\n return this.file || this.id\n }\n\n constructor(css, opts = {}) {\n if (\n css === null ||\n typeof css === 'undefined' ||\n (typeof css === 'object' && !css.toString)\n ) {\n throw new Error(`PostCSS received ${css} instead of CSS string`)\n }\n\n this.css = css.toString()\n\n if (this.css[0] === '\\uFEFF' || this.css[0] === '\\uFFFE') {\n this.hasBOM = true\n this.css = this.css.slice(1)\n } else {\n this.hasBOM = false\n }\n\n this.document = this.css\n if (opts.document) this.document = opts.document.toString()\n\n if (opts.from) {\n if (\n !pathAvailable ||\n /^\\w+:\\/\\//.test(opts.from) ||\n isAbsolute(opts.from)\n ) {\n this.file = opts.from\n } else {\n this.file = resolve(opts.from)\n }\n }\n\n if (pathAvailable && sourceMapAvailable) {\n let map = new PreviousMap(this.css, opts)\n if (map.text) {\n this.map = map\n let file = map.consumer().file\n if (!this.file && file) this.file = this.mapResolve(file)\n }\n }\n\n if (!this.file) {\n this.id = '<input css ' + nanoid(6) + '>'\n }\n if (this.map) this.map.file = this.from\n }\n\n error(message, line, column, opts = {}) {\n let endColumn, endLine, endOffset, offset, result\n\n if (line && typeof line === 'object') {\n let start = line\n let end = column\n if (typeof start.offset === 'number') {\n offset = start.offset\n let pos = this.fromOffset(offset)\n line = pos.line\n column = pos.col\n } else {\n line = start.line\n column = start.column\n offset = this.fromLineAndColumn(line, column)\n }\n if (typeof end.offset === 'number') {\n endOffset = end.offset\n let pos = this.fromOffset(endOffset)\n endLine = pos.line\n endColumn = pos.col\n } else {\n endLine = end.line\n endColumn = end.column\n endOffset = this.fromLineAndColumn(end.line, end.column)\n }\n } else if (!column) {\n offset = line\n let pos = this.fromOffset(offset)\n line = pos.line\n column = pos.col\n } else {\n offset = this.fromLineAndColumn(line, column)\n }\n\n let origin = this.origin(line, column, endLine, endColumn)\n if (origin) {\n result = new CssSyntaxError(\n message,\n origin.endLine === undefined\n ? origin.line\n : { column: origin.column, line: origin.line },\n origin.endLine === undefined\n ? origin.column\n : { column: origin.endColumn, line: origin.endLine },\n origin.source,\n origin.file,\n opts.plugin\n )\n } else {\n result = new CssSyntaxError(\n message,\n endLine === undefined ? line : { column, line },\n endLine === undefined ? column : { column: endColumn, line: endLine },\n this.css,\n this.file,\n opts.plugin\n )\n }\n\n result.input = {\n column,\n endColumn,\n endLine,\n endOffset,\n line,\n offset,\n source: this.css\n }\n if (this.file) {\n if (pathToFileURL) {\n result.input.url = pathToFileURL(this.file).toString()\n }\n result.input.file = this.file\n }\n\n return result\n }\n\n fromLineAndColumn(line, column) {\n let lineToIndex = getLineToIndex(this)\n let index = lineToIndex[line - 1]\n return index + column - 1\n }\n\n fromOffset(offset) {\n let lineToIndex = getLineToIndex(this)\n let lastLine = lineToIndex[lineToIndex.length - 1]\n\n let min = 0\n if (offset >= lastLine) {\n min = lineToIndex.length - 1\n } else {\n let max = lineToIndex.length - 2\n let mid\n Line truncated
{"offset": {"line": 10167, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/lazy-result.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet Document = require('./document')\nlet MapGenerator = require('./map-generator')\nlet parse = require('./parse')\nlet Result = require('./result')\nlet Root = require('./root')\nlet stringify = require('./stringify')\nlet { isClean, my } = require('./symbols')\nlet warnOnce = require('./warn-once')\n\nconst TYPE_TO_CLASS_NAME = {\n atrule: 'AtRule',\n comment: 'Comment',\n decl: 'Declaration',\n document: 'Document',\n root: 'Root',\n rule: 'Rule'\n}\n\nconst PLUGIN_PROPS = {\n AtRule: true,\n AtRuleExit: true,\n Comment: true,\n CommentExit: true,\n Declaration: true,\n DeclarationExit: true,\n Document: true,\n DocumentExit: true,\n Once: true,\n OnceExit: true,\n postcssPlugin: true,\n prepare: true,\n Root: true,\n RootExit: true,\n Rule: true,\n RuleExit: true\n}\n\nconst NOT_VISITORS = {\n Once: true,\n postcssPlugin: true,\n prepare: true\n}\n\nconst CHILDREN = 0\n\nfunction isPromise(obj) {\n return typeof obj === 'object' && typeof obj.then === 'function'\n}\n\nfunction getEvents(node) {\n let key = false\n let type = TYPE_TO_CLASS_NAME[node.type]\n if (node.type === 'decl') {\n key = node.prop.toLowerCase()\n } else if (node.type === 'atrule') {\n key = node.name.toLowerCase()\n }\n\n if (key && node.append) {\n return [\n type,\n type + '-' + key,\n CHILDREN,\n type + 'Exit',\n type + 'Exit-' + key\n ]\n } else if (key) {\n return [type, type + '-' + key, type + 'Exit', type + 'Exit-' + key]\n } else if (node.append) {\n return [type, CHILDREN, type + 'Exit']\n } else {\n return [type, type + 'Exit']\n }\n}\n\nfunction toStack(node) {\n let events\n if (node.type === 'document') {\n events = ['Document', CHILDREN, 'DocumentExit']\n } else if (node.type === 'root') {\n events = ['Root', CHILDREN, 'RootExit']\n } else {\n events = getEvents(node)\n }\n\n return {\n eventIndex: 0,\n events,\n iterator: 0,\n node,\n visitorIndex: 0,\n visitors: []\n }\n}\n\nfunction cleanMarks(node) {\n let stack = [node]\n while (stack.length > 0) {\n let next = stack.pop()\n next[isClean] = false\n if (next.nodes) {\n for (let i of next.nodes) stack.push(i)\n }\n }\n return node\n}\n\nlet postcss = {}\n\nclass LazyResult {\n get content() {\n return this.stringify().content\n }\n\n get css() {\n return this.stringify().css\n }\n\n get map() {\n return this.stringify().map\n }\n\n get messages() {\n return this.sync().messages\n }\n\n get opts() {\n return this.result.opts\n }\n\n get processor() {\n return this.result.processor\n }\n\n get root() {\n return this.sync().root\n }\n\n get [Symbol.toStringTag]() {\n return 'LazyResult'\n }\n\n constructor(processor, css, opts) {\n this.stringified = false\n this.processed = false\n\n let root\n if (\n typeof css === 'object' &&\n css !== null &&\n (css.type === 'root' || css.type === 'document')\n ) {\n root = cleanMarks(css)\n } else if (css instanceof LazyResult || css instanceof Result) {\n root = cleanMarks(css.root)\n if (css.map) {\n if (typeof opts.map === 'undefined') opts.map = {}\n if (!opts.map.inline) opts.map.inline = false\n opts.map.prev = css.map\n }\n } else {\n let parser = parse\n if (opts.syntax) parser = opts.syntax.parse\n if (opts.parser) parser = opts.parser\n if (parser.parse) parser = parser.parse\n\n try {\n root = parser(css, opts)\n } catch (error) {\n this.processed = true\n this.error = error\n }\n\n if (root && !root[my]) {\n /* c8 ignore next 2 */\n Container.rebuild(root)\n }\n }\n\n this.result = new Result(processor, root, opts)\n this.helpers = { ...postcss, postcss, result: this.result }\n this.plugins = this.processor.plugins.map(plugin => {\n if (typeof plugin === 'object' && plugin.prepare) {\n return { ...plugin, ...plugin.prepare(this.result) }\n } else {\n return plugin\n }\n })\n }\n\n async() {\n if (this.error) return Promise.reject(this.error)\n if (this.processed) return Promise.resolve(this.result)\n if (!this.processing) {\n this.processing = this.runAsync()\n }\n return this.processing\n }\n\n catch(onRejected) {\n return this.async().catch(onRejected)\n }\n\n finally(onFinally) {\n return this.async().then(onFinally, onFinally)\n }\n\n getAsyncError() {\n throw new Error('Use process(css).then(cb) to work with async plugins')\n }\n\n handleError(error, node) {\n let plugin = this.result.lastPlugin\n try {\n if (node) node.addToError(error)\n this.error = errorLine truncated
{"offset": {"line": 10716, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/list.js"],"sourcesContent":["'use strict'\n\nlet list = {\n comma(string) {\n return list.split(string, [','], true)\n },\n\n space(string) {\n let spaces = [' ', '\\n', '\\t']\n return list.split(string, spaces)\n },\n\n split(string, separators, last) {\n let array = []\n let current = ''\n let split = false\n\n let func = 0\n let inQuote = false\n let prevQuote = ''\n let escape = false\n\n for (let letter of string) {\n if (escape) {\n escape = false\n } else if (letter === '\\\\') {\n escape = true\n } else if (inQuote) {\n if (letter === prevQuote) {\n inQuote = false\n }\n } else if (letter === '\"' || letter === \"'\") {\n inQuote = true\n prevQuote = letter\n } else if (letter === '(') {\n func += 1\n } else if (letter === ')') {\n if (func > 0) func -= 1\n } else if (func === 0) {\n if (separators.includes(letter)) split = true\n }\n\n if (split) {\n if (current !== '') array.push(current.trim())\n current = ''\n split = false\n } else {\n current += letter\n }\n }\n\n if (last || current !== '') array.push(current.trim())\n return array\n }\n}\n\nmodule.exports = list\nlist.default = list\n"],"names":["list","comma","string","split","space","spaces","separators","last","array","current","func","inQuote","prevQuote","escape","letter","includes","push","trim","module","exports","default"],"mappings":"AAEA,IAAIA,OAAO;IACTC,OAAMC,MAAM;QACV,OAAOF,KAAKG,KAAK,CAACD,QAAQ;YAAC;SAAI,EAAE;IACnC;IAEAE,OAAMF,MAAM;QACV,IAAIG,SAAS;YAAC;YAAK;YAAM;SAAK;QAC9B,OAAOL,KAAKG,KAAK,CAACD,QAAQG;IAC5B;IAEAF,OAAMD,MAAM,EAAEI,UAAU,EAAEC,IAAI;QAC5B,IAAIC,QAAQ,EAAE;QACd,IAAIC,UAAU;QACd,IAAIN,QAAQ;QAEZ,IAAIO,OAAO;QACX,IAAIC,UAAU;QACd,IAAIC,YAAY;QAChB,IAAIC,SAAS;QAEb,KAAK,IAAIC,UAAUZ,OAAQ;YACzB,IAAIW,QAAQ;gBACVA,SAAS;YACX,OAAO,IAAIC,WAAW,MAAM;gBAC1BD,SAAS;YACX,OAAO,IAAIF,SAAS;gBAClB,IAAIG,WAAWF,WAAW;oBACxBD,UAAU;gBACZ;YACF,OAAO,IAAIG,WAAW,OAAOA,WAAW,KAAK;gBAC3CH,UAAU;gBACVC,YAAYE;YACd,OAAO,IAAIA,WAAW,KAAK;gBACzBJ,QAAQ;YACV,OAAO,IAAII,WAAW,KAAK;gBACzB,IAAIJ,OAAO,GAAGA,QAAQ;YACxB,OAAO,IAAIA,SAAS,GAAG;gBACrB,IAAIJ,WAAWS,QAAQ,CAACD,SAASX,QAAQ;YAC3C;YAEA,IAAIA,OAAO;gBACT,IAAIM,YAAY,IAAID,MAAMQ,IAAI,CAACP,QAAQQ,IAAI;gBAC3CR,UAAU;gBACVN,QAAQ;YACV,OAAO;gBACLM,WAAWK;YACb;QACF;QAEA,IAAIP,QAAQE,YAAY,IAAID,MAAMQ,IAAI,CAACP,QAAQQ,IAAI;QACnD,OAAOT;IACT;AACF;AAEAU,OAAOC,OAAO,GAAGnB;AACjBA,KAAKoB,OAAO,GAAGpB","ignoreList":[0]}},
{"offset": {"line": 10775, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/map-generator.js"],"sourcesContent":["'use strict'\n\nlet { dirname, relative, resolve, sep } = require('path')\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { pathToFileURL } = require('url')\n\nlet Input = require('./input')\n\nlet sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)\nlet pathAvailable = Boolean(dirname && resolve && relative && sep)\n\nclass MapGenerator {\n constructor(stringify, root, opts, cssString) {\n this.stringify = stringify\n this.mapOpts = opts.map || {}\n this.root = root\n this.opts = opts\n this.css = cssString\n this.originalCSS = cssString\n this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute\n\n this.memoizedFileURLs = new Map()\n this.memoizedPaths = new Map()\n this.memoizedURLs = new Map()\n }\n\n addAnnotation() {\n let content\n\n if (this.isInline()) {\n content =\n 'data:application/json;base64,' + this.toBase64(this.map.toString())\n } else if (typeof this.mapOpts.annotation === 'string') {\n content = this.mapOpts.annotation\n } else if (typeof this.mapOpts.annotation === 'function') {\n content = this.mapOpts.annotation(this.opts.to, this.root)\n } else {\n content = this.outputFile() + '.map'\n }\n let eol = '\\n'\n if (this.css.includes('\\r\\n')) eol = '\\r\\n'\n\n this.css += eol + '/*# sourceMappingURL=' + content + ' */'\n }\n\n applyPrevMaps() {\n for (let prev of this.previous()) {\n let from = this.toUrl(this.path(prev.file))\n let root = prev.root || dirname(prev.file)\n let map\n\n if (this.mapOpts.sourcesContent === false) {\n map = new SourceMapConsumer(prev.text)\n if (map.sourcesContent) {\n map.sourcesContent = null\n }\n } else {\n map = prev.consumer()\n }\n\n this.map.applySourceMap(map, from, this.toUrl(this.path(root)))\n }\n }\n\n clearAnnotation() {\n if (this.mapOpts.annotation === false) return\n\n if (this.root) {\n let node\n for (let i = this.root.nodes.length - 1; i >= 0; i--) {\n node = this.root.nodes[i]\n if (node.type !== 'comment') continue\n if (node.text.startsWith('# sourceMappingURL=')) {\n this.root.removeChild(i)\n }\n }\n } else if (this.css) {\n let startIndex\n while ((startIndex = this.css.lastIndexOf('/*#')) !== -1) {\n let endIndex = this.css.indexOf('*/', startIndex + 3)\n if (endIndex === -1) break\n while (startIndex > 0 && this.css[startIndex - 1] === '\\n') {\n startIndex--\n }\n this.css = this.css.slice(0, startIndex) + this.css.slice(endIndex + 2)\n }\n }\n }\n\n generate() {\n this.clearAnnotation()\n if (pathAvailable && sourceMapAvailable && this.isMap()) {\n return this.generateMap()\n } else {\n let result = ''\n this.stringify(this.root, i => {\n result += i\n })\n return [result]\n }\n }\n\n generateMap() {\n if (this.root) {\n this.generateString()\n } else if (this.previous().length === 1) {\n let prev = this.previous()[0].consumer()\n prev.file = this.outputFile()\n this.map = SourceMapGenerator.fromSourceMap(prev, {\n ignoreInvalidMapping: true\n })\n } else {\n this.map = new SourceMapGenerator({\n file: this.outputFile(),\n ignoreInvalidMapping: true\n })\n this.map.addMapping({\n generated: { column: 0, line: 1 },\n original: { column: 0, line: 1 },\n source: this.opts.from\n ? this.toUrl(this.path(this.opts.from))\n : '<no source>'\n })\n }\n\n if (this.isSourcesContent()) this.setSourcesContent()\n if (this.root && this.previous().length > 0) this.applyPrevMaps()\n if (this.isAnnotation()) this.addAnnotation()\n\n if (this.isInline()) {\n return [this.css]\n } else {\n return [this.css, this.map]\n }\n }\n\n generateString() {\n this.css = ''\n this.map = new SourceMapGenerator({\n file: this.outputFile(),\n ignoreInvalidMapping: true\n })\n\n let line = 1\n let column = 1\n\n let noSource = '<no source>'\n let mapping = {\n generated: { column: 0, line: 0 },\n original: { column: 0, line: 0 },\n source: ''\n }\n\n let last, lines\n this.stringify(this.root, (str, node, type) => {\n this.css += str\n\n if (node && type !== 'end') {\n mapping.generated.line = line\n mapping.generated.column = column - 1\n if (node.source && node.source.start) {\n mapping.source = this.sourcePath(node)\n mapping.original.line = node.source.start.line\n mapping.original.column = node.source.start.column - 1\n this.mLine truncated
{"offset": {"line": 11117, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/no-work-result.js"],"sourcesContent":["'use strict'\n\nlet MapGenerator = require('./map-generator')\nlet parse = require('./parse')\nlet Result = require('./result')\nlet stringify = require('./stringify')\nlet warnOnce = require('./warn-once')\n\nclass NoWorkResult {\n get content() {\n return this.result.css\n }\n\n get css() {\n return this.result.css\n }\n\n get map() {\n return this.result.map\n }\n\n get messages() {\n return []\n }\n\n get opts() {\n return this.result.opts\n }\n\n get processor() {\n return this.result.processor\n }\n\n get root() {\n if (this._root) {\n return this._root\n }\n\n let root\n let parser = parse\n\n try {\n root = parser(this._css, this._opts)\n } catch (error) {\n this.error = error\n }\n\n if (this.error) {\n throw this.error\n } else {\n this._root = root\n return root\n }\n }\n\n get [Symbol.toStringTag]() {\n return 'NoWorkResult'\n }\n\n constructor(processor, css, opts) {\n css = css.toString()\n this.stringified = false\n\n this._processor = processor\n this._css = css\n this._opts = opts\n this._map = undefined\n\n let str = stringify\n this.result = new Result(this._processor, undefined, this._opts)\n this.result.css = css\n\n let self = this\n Object.defineProperty(this.result, 'root', {\n get() {\n return self.root\n }\n })\n\n let map = new MapGenerator(str, undefined, this._opts, css)\n if (map.isMap()) {\n let [generatedCSS, generatedMap] = map.generate()\n if (generatedCSS) {\n this.result.css = generatedCSS\n }\n if (generatedMap) {\n this.result.map = generatedMap\n }\n } else {\n map.clearAnnotation()\n this.result.css = map.css\n }\n }\n\n async() {\n if (this.error) return Promise.reject(this.error)\n return Promise.resolve(this.result)\n }\n\n catch(onRejected) {\n return this.async().catch(onRejected)\n }\n\n finally(onFinally) {\n return this.async().then(onFinally, onFinally)\n }\n\n sync() {\n if (this.error) throw this.error\n return this.result\n }\n\n then(onFulfilled, onRejected) {\n if (process.env.NODE_ENV !== 'production') {\n if (!('from' in this._opts)) {\n warnOnce(\n 'Without `from` option PostCSS could generate wrong source map ' +\n 'and will not find Browserslist config. Set it to CSS file path ' +\n 'or to `undefined` to prevent this warning.'\n )\n }\n }\n\n return this.async().then(onFulfilled, onRejected)\n }\n\n toString() {\n return this._css\n }\n\n warnings() {\n return []\n }\n}\n\nmodule.exports = NoWorkResult\nNoWorkResult.default = NoWorkResult\n"],"names":["MapGenerator","parse","Result","stringify","warnOnce","NoWorkResult","content","result","css","map","messages","opts","processor","root","_root","parser","_css","_opts","error","Symbol","toStringTag","toString","stringified","_processor","_map","undefined","str","self","Object","defineProperty","get","isMap","generatedCSS","generatedMap","generate","clearAnnotation","async","Promise","reject","resolve","catch","onRejected","finally","onFinally","then","sync","onFulfilled","warnings","module","exports","default"],"mappings":"AAiHQ;AAjHR;AAEA,IAAIA;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AAEJ,MAAMC;IACJ,IAAIC,UAAU;QACZ,OAAO,IAAI,CAACC,MAAM,CAACC,GAAG;IACxB;IAEA,IAAIA,MAAM;QACR,OAAO,IAAI,CAACD,MAAM,CAACC,GAAG;IACxB;IAEA,IAAIC,MAAM;QACR,OAAO,IAAI,CAACF,MAAM,CAACE,GAAG;IACxB;IAEA,IAAIC,WAAW;QACb,OAAO,EAAE;IACX;IAEA,IAAIC,OAAO;QACT,OAAO,IAAI,CAACJ,MAAM,CAACI,IAAI;IACzB;IAEA,IAAIC,YAAY;QACd,OAAO,IAAI,CAACL,MAAM,CAACK,SAAS;IAC9B;IAEA,IAAIC,OAAO;QACT,IAAI,IAAI,CAACC,KAAK,EAAE;YACd,OAAO,IAAI,CAACA,KAAK;QACnB;QAEA,IAAID;QACJ,IAAIE,SAASd;QAEb,IAAI;YACFY,OAAOE,OAAO,IAAI,CAACC,IAAI,EAAE,IAAI,CAACC,KAAK;QACrC,EAAE,OAAOC,OAAO;YACd,IAAI,CAACA,KAAK,GAAGA;QACf;QAEA,IAAI,IAAI,CAACA,KAAK,EAAE;YACd,MAAM,IAAI,CAACA,KAAK;QAClB,OAAO;YACL,IAAI,CAACJ,KAAK,GAAGD;YACb,OAAOA;QACT;IACF;IAEA,IAAI,CAACM,OAAOC,WAAW,CAAC,GAAG;QACzB,OAAO;IACT;IAEAf,YAAYO,SAAS,EAAEJ,GAAG,EAAEG,IAAI,CAAE;QAChCH,MAAMA,IAAIa,QAAQ;QAClB,IAAI,CAACC,WAAW,GAAG;QAEnB,IAAI,CAACC,UAAU,GAAGX;QAClB,IAAI,CAACI,IAAI,GAAGR;QACZ,IAAI,CAACS,KAAK,GAAGN;QACb,IAAI,CAACa,IAAI,GAAGC;QAEZ,IAAIC,MAAMvB;QACV,IAAI,CAACI,MAAM,GAAG,IAAIL,OAAO,IAAI,CAACqB,UAAU,EAAEE,WAAW,IAAI,CAACR,KAAK;QAC/D,IAAI,CAACV,MAAM,CAACC,GAAG,GAAGA;QAElB,IAAImB,OAAO,IAAI;QACfC,OAAOC,cAAc,CAAC,IAAI,CAACtB,MAAM,EAAE,QAAQ;YACzCuB;gBACE,OAAOH,KAAKd,IAAI;YAClB;QACF;QAEA,IAAIJ,MAAM,IAAIT,aAAa0B,KAAKD,WAAW,IAAI,CAACR,KAAK,EAAET;QACvD,IAAIC,IAAIsB,KAAK,IAAI;YACf,IAAI,CAACC,cAAcC,aAAa,GAAGxB,IAAIyB,QAAQ;YAC/C,IAAIF,cAAc;gBAChB,IAAI,CAACzB,MAAM,CAACC,GAAG,GAAGwB;YACpB;YACA,IAAIC,cAAc;gBAChB,IAAI,CAAC1B,MAAM,CAACE,GAAG,GAAGwB;YLine truncated
{"offset": {"line": 11229, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/node.js"],"sourcesContent":["'use strict'\n\nlet CssSyntaxError = require('./css-syntax-error')\nlet Stringifier = require('./stringifier')\nlet stringify = require('./stringify')\nlet { isClean, my } = require('./symbols')\n\nfunction cloneNode(obj, parent) {\n let cloned = new obj.constructor()\n // An explicit stack instead of recursive calls to survive deeply\n // nested trees. Each entry is [source, its clone, clone's parent].\n let stack = [[obj, cloned, parent]]\n\n while (stack.length > 0) {\n let [source, target, targetParent] = stack.pop()\n for (let i in source) {\n if (!Object.prototype.hasOwnProperty.call(source, i)) {\n /* c8 ignore next 2 */\n continue\n }\n if (i === 'proxyCache') continue\n let value = source[i]\n let type = typeof value\n\n if (i === 'parent' && type === 'object') {\n if (targetParent) target[i] = targetParent\n } else if (i === 'source') {\n target[i] = value\n } else if (Array.isArray(value)) {\n let children = []\n target[i] = children\n for (let j of value) {\n let childClone = new j.constructor()\n children.push(childClone)\n stack.push([j, childClone, target])\n }\n } else {\n if (type === 'object' && value !== null) {\n let valueClone = new value.constructor()\n stack.push([value, valueClone, undefined])\n value = valueClone\n }\n target[i] = value\n }\n }\n }\n\n return cloned\n}\n\nfunction sourceOffset(inputCSS, position) {\n // Not all custom syntaxes support `offset` in `source.start` and `source.end`\n if (position && typeof position.offset !== 'undefined') {\n return position.offset\n }\n\n let column = 1\n let line = 1\n let offset = 0\n\n for (let i = 0; i < inputCSS.length; i++) {\n if (line === position.line && column === position.column) {\n offset = i\n break\n }\n\n if (inputCSS[i] === '\\n') {\n column = 1\n line += 1\n } else {\n column += 1\n }\n }\n\n return offset\n}\n\nclass Node {\n get proxyOf() {\n return this\n }\n\n constructor(defaults = {}) {\n this.raws = {}\n this[isClean] = false\n this[my] = true\n\n for (let name of Object.keys(defaults)) {\n if (name === '__proto__') continue\n if (name === 'nodes') {\n this.nodes = []\n for (let node of defaults[name]) {\n // Clone only nodes that already belong to another tree, so passing a\n // freshly created (parent-less) node adopts that instance instead of\n // a copy and keeps the caller's reference usable. See #1987.\n if (typeof node.clone === 'function' && node.parent) {\n this.append(node.clone())\n } else {\n this.append(node)\n }\n }\n } else {\n this[name] = defaults[name]\n }\n }\n }\n\n addToError(error) {\n error.postcssNode = this\n if (error.stack && this.source && /\\n\\s{4}at /.test(error.stack)) {\n let s = this.source\n error.stack = error.stack.replace(\n /\\n\\s{4}at /,\n `$&${s.input.from}:${s.start.line}:${s.start.column}$&`\n )\n }\n return error\n }\n\n after(add) {\n this.parent.insertAfter(this, add)\n return this\n }\n\n assign(overrides = {}) {\n for (let name in overrides) {\n this[name] = overrides[name]\n }\n return this\n }\n\n before(add) {\n this.parent.insertBefore(this, add)\n return this\n }\n\n cleanRaws(keepBetween) {\n delete this.raws.before\n delete this.raws.after\n if (!keepBetween) delete this.raws.between\n }\n\n clone(overrides = {}) {\n let cloned = cloneNode(this)\n for (let name in overrides) {\n cloned[name] = overrides[name]\n }\n return cloned\n }\n\n cloneAfter(overrides = {}) {\n let cloned = this.clone(overrides)\n this.parent.insertAfter(this, cloned)\n return cloned\n }\n\n cloneBefore(overrides = {}) {\n let cloned = this.clone(overrides)\n this.parent.insertBefore(this, cloned)\n return cloned\n }\n\n error(message, opts = {}) {\n if (this.source) {\n let { end, start } = this.rangeBy(opts)\n return this.source.input.error(\n message,\n { column: start.column, line: start.line },\n { column: end.column, line: end.line },\n opts\n )\n }\n return new CssSyntaxError(message)\n }\n\n getProxyProcessor() {\n return {\n get(node, prop) {\n if (prop === 'proxyOf') {\n return node\n } else if (prop === 'root') {\n return () => node.root().toProxy()\n } else {\n return node[prop]\n }\n },\n\n set(node, prop, value) {\n if (node[prop] === value) return true\n Line truncated
{"offset": {"line": 11673, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/parse.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet Input = require('./input')\nlet Parser = require('./parser')\n\nfunction parse(css, opts) {\n let input = new Input(css, opts)\n let parser = new Parser(input)\n try {\n parser.parse()\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n if (e.name === 'CssSyntaxError' && opts && opts.from) {\n if (/\\.scss$/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse SCSS with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-scss parser'\n } else if (/\\.sass/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse Sass with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-sass parser'\n } else if (/\\.less$/i.test(opts.from)) {\n e.message +=\n '\\nYou tried to parse Less with ' +\n 'the standard CSS parser; ' +\n 'try again with the postcss-less parser'\n }\n }\n }\n throw e\n }\n\n return parser.root\n}\n\nmodule.exports = parse\nparse.default = parse\n\nContainer.registerParse(parse)\n"],"names":["Container","Input","Parser","parse","css","opts","input","parser","e","name","from","test","message","root","module","exports","default","registerParse"],"mappings":"AAYQ;AAZR;AAEA,IAAIA;AACJ,IAAIC;AACJ,IAAIC;AAEJ,SAASC,MAAMC,GAAG,EAAEC,IAAI;IACtB,IAAIC,QAAQ,IAAIL,MAAMG,KAAKC;IAC3B,IAAIE,SAAS,IAAIL,OAAOI;IACxB,IAAI;QACFC,OAAOJ,KAAK;IACd,EAAE,OAAOK,GAAG;QACV,wCAA2C;YACzC,IAAIA,EAAEC,IAAI,KAAK,oBAAoBJ,QAAQA,KAAKK,IAAI,EAAE;gBACpD,IAAI,WAAWC,IAAI,CAACN,KAAKK,IAAI,GAAG;oBAC9BF,EAAEI,OAAO,IACP,oCACA,8BACA;gBACJ,OAAO,IAAI,UAAUD,IAAI,CAACN,KAAKK,IAAI,GAAG;oBACpCF,EAAEI,OAAO,IACP,oCACA,8BACA;gBACJ,OAAO,IAAI,WAAWD,IAAI,CAACN,KAAKK,IAAI,GAAG;oBACrCF,EAAEI,OAAO,IACP,oCACA,8BACA;gBACJ;YACF;QACF;QACA,MAAMJ;IACR;IAEA,OAAOD,OAAOM,IAAI;AACpB;AAEAC,OAAOC,OAAO,GAAGZ;AACjBA,MAAMa,OAAO,GAAGb;AAEhBH,UAAUiB,aAAa,CAACd","ignoreList":[0]}},
{"offset": {"line": 11706, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/parser.js"],"sourcesContent":["'use strict'\n\nlet AtRule = require('./at-rule')\nlet Comment = require('./comment')\nlet Declaration = require('./declaration')\nlet Root = require('./root')\nlet Rule = require('./rule')\nlet tokenizer = require('./tokenize')\n\nconst SAFE_COMMENT_NEIGHBOR = {\n empty: true,\n space: true\n}\n\nfunction findLastWithPosition(tokens) {\n for (let i = tokens.length - 1; i >= 0; i--) {\n let token = tokens[i]\n let pos = token[3] || token[2]\n if (pos) return pos\n }\n}\n\nfunction tokensToString(tokens, from, to) {\n let result = ''\n for (let i = from; i < to; i++) result += tokens[i][1]\n return result\n}\n\nclass Parser {\n constructor(input) {\n this.input = input\n\n this.root = new Root()\n this.current = this.root\n this.spaces = ''\n this.semicolon = false\n\n this.createTokenizer()\n this.root.source = { input, start: { column: 1, line: 1, offset: 0 } }\n }\n\n atrule(token) {\n let node = new AtRule()\n node.name = token[1].slice(1)\n if (node.name === '') {\n this.unnamedAtrule(node, token)\n }\n this.init(node, token[2])\n\n let type\n let prev\n let shift\n let last = false\n let open = false\n let params = []\n let brackets = []\n\n while (!this.tokenizer.endOfFile()) {\n token = this.tokenizer.nextToken()\n type = token[0]\n\n if (type === '(' || type === '[') {\n brackets.push(type === '(' ? ')' : ']')\n } else if (type === '{' && brackets.length > 0) {\n brackets.push('}')\n } else if (type === brackets[brackets.length - 1]) {\n brackets.pop()\n }\n\n if (brackets.length === 0) {\n if (type === ';') {\n node.source.end = this.getPosition(token[2])\n node.source.end.offset++\n this.semicolon = true\n break\n } else if (type === '{') {\n open = true\n break\n } else if (type === '}') {\n if (params.length > 0) {\n shift = params.length - 1\n prev = params[shift]\n while (prev && prev[0] === 'space') {\n prev = params[--shift]\n }\n if (prev) {\n node.source.end = this.getPosition(prev[3] || prev[2])\n node.source.end.offset++\n }\n }\n this.end(token)\n break\n } else {\n params.push(token)\n }\n } else {\n params.push(token)\n }\n\n if (this.tokenizer.endOfFile()) {\n last = true\n break\n }\n }\n\n node.raws.between = this.spacesAndCommentsFromEnd(params)\n if (params.length) {\n node.raws.afterName = this.spacesAndCommentsFromStart(params)\n this.raw(node, 'params', params)\n if (last) {\n token = params[params.length - 1]\n node.source.end = this.getPosition(token[3] || token[2])\n node.source.end.offset++\n this.spaces = node.raws.between\n node.raws.between = ''\n }\n } else {\n node.raws.afterName = ''\n node.params = ''\n }\n\n if (open) {\n node.nodes = []\n this.current = node\n }\n }\n\n checkMissedSemicolon(tokens) {\n let colon = this.colon(tokens)\n if (colon === false) return\n\n let founded = 0\n let token\n for (let j = colon - 1; j >= 0; j--) {\n token = tokens[j]\n if (token[0] !== 'space') {\n founded += 1\n if (founded === 2) break\n }\n }\n // If the token is a word, e.g. `!important`, `red` or any other valid\n // property's value. Then we need to return the colon after that word\n // token. [3] is the \"end\" colon of that word. And because we need it\n // after that one we do +1 to get the next one.\n throw this.input.error(\n 'Missed semicolon',\n token[0] === 'word' ? token[3] + 1 : token[2]\n )\n }\n\n colon(tokens) {\n let brackets = 0\n let prev, token, type\n for (let [i, element] of tokens.entries()) {\n token = element\n type = token[0]\n\n if (type === '(') {\n brackets += 1\n }\n if (type === ')') {\n brackets -= 1\n }\n if (brackets === 0 && type === ':') {\n if (!prev) {\n this.doubleColon(token)\n } else if (prev[0] === 'word' && prev[1] === 'progid') {\n continue\n } else {\n return i\n }\n }\n\n prev = token\n }\n return false\n }\n\n comment(token) {\n let node = new Comment()\n this.init(node, token[2])\n node.source.end = this.getPosition(token[3] || token[2])\n node.source.end.offset++\n\n let text = token[1].slice(2, -2)\n if (!text.trim()) {\n node.text = ''\n node.raws.left = text\n node.raws.right = ''\n } else {\n let matchLine truncated
{"offset": {"line": 12257, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/postcss.js"],"sourcesContent":["'use strict'\n\nlet AtRule = require('./at-rule')\nlet Comment = require('./comment')\nlet Container = require('./container')\nlet CssSyntaxError = require('./css-syntax-error')\nlet Declaration = require('./declaration')\nlet Document = require('./document')\nlet fromJSON = require('./fromJSON')\nlet Input = require('./input')\nlet LazyResult = require('./lazy-result')\nlet list = require('./list')\nlet Node = require('./node')\nlet parse = require('./parse')\nlet Processor = require('./processor')\nlet Result = require('./result.js')\nlet Root = require('./root')\nlet Rule = require('./rule')\nlet stringify = require('./stringify')\nlet Warning = require('./warning')\n\nfunction postcss(...plugins) {\n if (plugins.length === 1 && Array.isArray(plugins[0])) {\n plugins = plugins[0]\n }\n return new Processor(plugins)\n}\n\npostcss.plugin = function plugin(name, initializer) {\n let warningPrinted = false\n function creator(...args) {\n // eslint-disable-next-line no-console\n if (console && console.warn && !warningPrinted) {\n warningPrinted = true\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': postcss.plugin was deprecated. Migration guide:\\n' +\n 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'\n )\n if (process.env.LANG && process.env.LANG.startsWith('cn')) {\n /* c8 ignore next 7 */\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': 里面 postcss.plugin 被弃用. 迁移指南:\\n' +\n 'https://www.w3ctech.com/topic/2226'\n )\n }\n }\n let transformer = initializer(...args)\n transformer.postcssPlugin = name\n transformer.postcssVersion = new Processor().version\n return transformer\n }\n\n let cache\n Object.defineProperty(creator, 'postcss', {\n get() {\n if (!cache) cache = creator()\n return cache\n }\n })\n\n creator.process = function (css, processOpts, pluginOpts) {\n return postcss([creator(pluginOpts)]).process(css, processOpts)\n }\n\n return creator\n}\n\npostcss.stringify = stringify\npostcss.parse = parse\npostcss.fromJSON = fromJSON\npostcss.list = list\n\npostcss.comment = defaults => new Comment(defaults)\npostcss.atRule = defaults => new AtRule(defaults)\npostcss.decl = defaults => new Declaration(defaults)\npostcss.rule = defaults => new Rule(defaults)\npostcss.root = defaults => new Root(defaults)\npostcss.document = defaults => new Document(defaults)\n\npostcss.CssSyntaxError = CssSyntaxError\npostcss.Declaration = Declaration\npostcss.Container = Container\npostcss.Processor = Processor\npostcss.Document = Document\npostcss.Comment = Comment\npostcss.Warning = Warning\npostcss.AtRule = AtRule\npostcss.Result = Result\npostcss.Input = Input\npostcss.Rule = Rule\npostcss.Root = Root\npostcss.Node = Node\n\nLazyResult.registerPostcss(postcss)\n\nmodule.exports = postcss\npostcss.default = postcss\n"],"names":["AtRule","Comment","Container","CssSyntaxError","Declaration","Document","fromJSON","Input","LazyResult","list","Node","parse","Processor","Result","Root","Rule","stringify","Warning","postcss","plugins","length","Array","isArray","plugin","name","initializer","warningPrinted","creator","args","console","warn","env","LANG","startsWith","transformer","postcssPlugin","postcssVersion","version","cache","Object","defineProperty","get","process","css","processOpts","pluginOpts","comment","defaults","atRule","decl","rule","root","document","registerPostcss","module","exports","default"],"mappings":"AAwCU;AAxCV;AAEA,IAAIA;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AAEJ,SAASC,QAAQ,GAAGC,OAAO;IACzB,IAAIA,QAAQC,MAAM,KAAK,KAAKC,MAAMC,OAAO,CAACH,OAAO,CAAC,EAAE,GAAG;QACrDA,UAAUA,OAAO,CAAC,EAAE;IACtB;IACA,OAAO,IAAIP,UAAUO;AACvB;AAEAD,QAAQK,MAAM,GAAG,SAASA,OAAOC,IAAI,EAAEC,WAAW;IAChD,IAAIC,iBAAiB;IACrB,SAASC,QAAQ,GAAGC,IAAI;QACtB,sCAAsC;QACtC,IAAIC,WAAWA,QAAQC,IAAI,IAAI,CAACJ,gBAAgB;YAC9CA,iBAAiB;YACjB,sCAAsC;YACtCG,QAAQC,IAAI,CACVN,OACE,wDACA;YAEJ,IAAI,2KAAO,CAACO,GAAG,CAACC,IAAI,IAAI,2KAAO,CAACD,GAAG,CAACC,IAAI,CAACC,UAAU,CAAC,OAAO;gBACzD,oBAAoB,GACpB,sCAAsC;gBACtCJ,QAAQC,IAAI,CACVN,OACE,qCACA;YAEN;QACF;QACA,IAAIU,cAAcT,eAAeG;QACjCM,YAAYC,aAAa,GAAGX;QAC5BU,YAAYE,cAAc,GAAG,IAAIxB,YAAYyB,OAAO;QACpD,OAAOH;IACT;IAEA,IAAII;IACJC,OAAOC,cAAc,CAACb,SAAS,WAAW;QACxCc;YACE,IAAI,CAACH,OAAOA,QAAQX;YACpB,OAAOW;QACT;IACF;IAEAX,QAAQe,OAAO,GAAG,SAAUC,GAAG,EAAEC,WAAW,EAAEC,UAAU;QACtD,OAAO3B,QAAQ;YAACS,QAAQkB;SAAY,EAAEH,OAAO,CAACC,KAAKC;IACrD;IAEA,OAAOjB;AACT;AAEAT,QAAQF,SAAS,GAAGA;AACpBE,QAAQP,KAAK,GAAGA;AAChBO,QAAQZ,QAAQ,GAAGA;AACnBY,QAAQT,IAAI,GAAGA;AAEfS,QAAQ4B,OAAO,GAALine truncated
{"offset": {"line": 12345, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/previous-map.js"],"sourcesContent":["'use strict'\n\nlet { existsSync, readFileSync } = require('fs')\nlet { dirname, isAbsolute, join, relative, sep } = require('path')\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\n\nfunction fromBase64(str) {\n if (Buffer) {\n return Buffer.from(str, 'base64').toString()\n } else {\n /* c8 ignore next 2 */\n return window.atob(str)\n }\n}\n\nclass PreviousMap {\n constructor(css, opts) {\n if (opts.map === false) return\n if (opts.unsafeMap) this.unsafeMap = true\n this.loadAnnotation(css)\n this.inline = this.startWith(this.annotation, 'data:')\n\n let prev = opts.map ? opts.map.prev : undefined\n let text = this.loadMap(opts.from, prev)\n if (!this.mapFile && opts.from) {\n this.mapFile = opts.from\n }\n if (this.mapFile) this.root = dirname(this.mapFile)\n if (text) this.text = text\n }\n\n consumer() {\n if (!this.consumerCache) {\n this.consumerCache = new SourceMapConsumer(this.json || this.text)\n }\n return this.consumerCache\n }\n\n decodeInline(text) {\n let baseCharsetUri = /^data:application\\/json;charset=utf-?8;base64,/\n let baseUri = /^data:application\\/json;base64,/\n let charsetUri = /^data:application\\/json;charset=utf-?8,/\n let uri = /^data:application\\/json,/\n\n let uriMatch = text.match(charsetUri) || text.match(uri)\n if (uriMatch) {\n return decodeURIComponent(text.substr(uriMatch[0].length))\n }\n\n let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri)\n if (baseUriMatch) {\n return fromBase64(text.substr(baseUriMatch[0].length))\n }\n\n let encoding = text.slice('data:application/json;'.length)\n encoding = encoding.slice(0, encoding.indexOf(','))\n throw new Error('Unsupported source map encoding ' + encoding)\n }\n\n getAnnotationURL(sourceMapString) {\n return sourceMapString.replace(/^\\/\\*\\s*# sourceMappingURL=/, '').trim()\n }\n\n isMap(map) {\n if (typeof map !== 'object') return false\n return (\n typeof map.mappings === 'string' ||\n typeof map._mappings === 'string' ||\n Array.isArray(map.sections)\n )\n }\n\n loadAnnotation(css) {\n let comments = css.match(/\\/\\*\\s*# sourceMappingURL=/g)\n if (!comments) return\n\n // sourceMappingURLs from comments, strings, etc.\n let start = css.lastIndexOf(comments.pop())\n let end = css.indexOf('*/', start)\n\n if (start > -1 && end > -1) {\n // Locate the last sourceMappingURL to avoid pickin\n this.annotation = this.getAnnotationURL(css.substring(start, end))\n }\n }\n\n loadFile(path, cssFile, trusted) {\n if (!trusted && !this.unsafeMap) {\n if (!/\\.map$/i.test(path)) return undefined\n if (!cssFile) return undefined\n\n let rel = relative(dirname(cssFile), path)\n if (rel === '..' || rel.startsWith('..' + sep) || isAbsolute(rel)) {\n return undefined\n }\n }\n this.root = dirname(path)\n if (existsSync(path)) {\n this.mapFile = path\n return readFileSync(path, 'utf-8').toString().trim()\n }\n }\n\n loadMap(file, prev) {\n if (prev === false) return false\n\n if (prev) {\n if (typeof prev === 'string') {\n return prev\n } else if (typeof prev === 'function') {\n let prevPath = prev(file)\n if (prevPath) {\n let map = this.loadFile(prevPath, file, true)\n if (!map) {\n throw new Error(\n 'Unable to load previous source map: ' + prevPath.toString()\n )\n }\n return map\n }\n } else if (prev instanceof SourceMapConsumer) {\n return SourceMapGenerator.fromSourceMap(prev).toString()\n } else if (prev instanceof SourceMapGenerator) {\n return prev.toString()\n } else if (this.isMap(prev)) {\n return JSON.stringify(prev)\n } else {\n throw new Error(\n 'Unsupported previous source map format: ' + prev.toString()\n )\n }\n } else if (this.inline) {\n return this.decodeInline(this.annotation)\n } else if (this.annotation) {\n let map = this.annotation\n if (file) map = join(dirname(file), map)\n let unknown = this.loadFile(map, file, false)\n if (unknown) {\n try {\n /* c8 ignore next 4 */\n this.json = JSON.parse(unknown.replace(/^\\)]}'[^\\n]*\\n/, ''))\n } catch {\n return undefined\n }\n }\n return unknown\n }\n }\n\n startWith(string, start) {\n if (!string) return false\n return string.substr(0, start.length) === start\n }\n\n withContent() {\n return !!(\n this.consumer().sourcesContent &&\n this.consumer().sourcesContent.length > 0\n )\n }\n}\n\nmodule.exports = PreviouLine truncated
{"offset": {"line": 12479, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/processor.js"],"sourcesContent":["'use strict'\n\nlet Document = require('./document')\nlet LazyResult = require('./lazy-result')\nlet NoWorkResult = require('./no-work-result')\nlet Root = require('./root')\n\nclass Processor {\n constructor(plugins = []) {\n this.version = '8.5.23'\n this.plugins = this.normalize(plugins)\n }\n\n normalize(plugins) {\n let normalized = []\n for (let i of plugins) {\n if (i.postcss === true) {\n i = i()\n } else if (i.postcss) {\n i = i.postcss\n }\n\n if (typeof i === 'object' && Array.isArray(i.plugins)) {\n normalized = normalized.concat(i.plugins)\n } else if (typeof i === 'object' && i.postcssPlugin) {\n normalized.push(i)\n } else if (typeof i === 'function') {\n normalized.push(i)\n } else if (typeof i === 'object' && (i.parse || i.stringify)) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\n 'PostCSS syntaxes cannot be used as plugins. Instead, please use ' +\n 'one of the syntax/parser/stringifier options as outlined ' +\n 'in your PostCSS runner documentation.'\n )\n }\n } else {\n throw new Error(i + ' is not a PostCSS plugin')\n }\n }\n return normalized\n }\n\n process(css, opts = {}) {\n if (\n !this.plugins.length &&\n !opts.parser &&\n !opts.stringifier &&\n !opts.syntax\n ) {\n return new NoWorkResult(this, css, opts)\n } else {\n return new LazyResult(this, css, opts)\n }\n }\n\n use(plugin) {\n this.plugins = this.plugins.concat(this.normalize([plugin]))\n return this\n }\n}\n\nmodule.exports = Processor\nProcessor.default = Processor\n\nRoot.registerProcessor(Processor)\nDocument.registerProcessor(Processor)\n"],"names":["Document","LazyResult","NoWorkResult","Root","Processor","plugins","version","normalize","normalized","i","postcss","Array","isArray","concat","postcssPlugin","push","parse","stringify","Error","process","css","opts","length","parser","stringifier","syntax","use","plugin","module","exports","default","registerProcessor"],"mappings":"AA6BY;AA7BZ;AAEA,IAAIA;AACJ,IAAIC;AACJ,IAAIC;AACJ,IAAIC;AAEJ,MAAMC;IACJA,YAAYC,UAAU,EAAE,CAAE;QACxB,IAAI,CAACC,OAAO,GAAG;QACf,IAAI,CAACD,OAAO,GAAG,IAAI,CAACE,SAAS,CAACF;IAChC;IAEAE,UAAUF,OAAO,EAAE;QACjB,IAAIG,aAAa,EAAE;QACnB,KAAK,IAAIC,KAAKJ,QAAS;YACrB,IAAII,EAAEC,OAAO,KAAK,MAAM;gBACtBD,IAAIA;YACN,OAAO,IAAIA,EAAEC,OAAO,EAAE;gBACpBD,IAAIA,EAAEC,OAAO;YACf;YAEA,IAAI,OAAOD,MAAM,YAAYE,MAAMC,OAAO,CAACH,EAAEJ,OAAO,GAAG;gBACrDG,aAAaA,WAAWK,MAAM,CAACJ,EAAEJ,OAAO;YAC1C,OAAO,IAAI,OAAOI,MAAM,YAAYA,EAAEK,aAAa,EAAE;gBACnDN,WAAWO,IAAI,CAACN;YAClB,OAAO,IAAI,OAAOA,MAAM,YAAY;gBAClCD,WAAWO,IAAI,CAACN;YAClB,OAAO,IAAI,OAAOA,MAAM,YAAY,CAACA,EAAEO,KAAK,IAAIP,EAAEQ,SAAS,GAAG;gBAC5D,wCAA2C;oBACzC,MAAM,IAAIC,MACR,qEACE,8DACA;gBAEN;YACF,OAAO;gBACL,MAAM,IAAIA,MAAMT,IAAI;YACtB;QACF;QACA,OAAOD;IACT;IAEAW,QAAQC,GAAG,EAAEC,OAAO,CAAC,CAAC,EAAE;QACtB,IACE,CAAC,IAAI,CAAChB,OAAO,CAACiB,MAAM,IACpB,CAACD,KAAKE,MAAM,IACZ,CAACF,KAAKG,WAAW,IACjB,CAACH,KAAKI,MAAM,EACZ;YACA,OAAO,IAAIvB,aAAa,IAAI,EAAEkB,KAAKC;QACrC,OAAO;YACL,OAAO,IAAIpB,WAAW,IAAI,EAAEmB,KAAKC;QACnC;IACF;IAEAK,IAAIC,MAAM,EAAE;QACV,IAAI,CAACtB,OAAO,GAAG,IAAI,CAACA,OAAO,CAACQ,MAAM,CAAC,IAAI,CAACN,SAAS,CAAC;YAACoB;SAAO;QAC1D,OAAO,IAAI;IACb;AACF;AAEAC,OAAOC,OAAO,GAAGzB;AACjBA,UAAU0B,OAAO,GAAG1B;AAEpBD,KAAK4B,iBAAiB,CAAC3B;AACvBJ,SAAS+B,iBAAiB,CAAC3B","ignoreList":[0]}},
{"offset": {"line": 12536, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/result.js"],"sourcesContent":["'use strict'\n\nlet Warning = require('./warning')\n\nclass Result {\n get content() {\n return this.css\n }\n\n constructor(processor, root, opts) {\n this.processor = processor\n this.messages = []\n this.root = root\n this.opts = opts\n this.css = ''\n this.map = undefined\n }\n\n toString() {\n return this.css\n }\n\n warn(text, opts = {}) {\n if (!opts.plugin) {\n if (this.lastPlugin && this.lastPlugin.postcssPlugin) {\n opts.plugin = this.lastPlugin.postcssPlugin\n }\n }\n\n let warning = new Warning(text, opts)\n this.messages.push(warning)\n\n return warning\n }\n\n warnings() {\n return this.messages.filter(i => i.type === 'warning')\n }\n}\n\nmodule.exports = Result\nResult.default = Result\n"],"names":["Warning","Result","content","css","processor","root","opts","messages","map","undefined","toString","warn","text","plugin","lastPlugin","postcssPlugin","warning","push","warnings","filter","i","type","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,MAAMC;IACJ,IAAIC,UAAU;QACZ,OAAO,IAAI,CAACC,GAAG;IACjB;IAEAF,YAAYG,SAAS,EAAEC,IAAI,EAAEC,IAAI,CAAE;QACjC,IAAI,CAACF,SAAS,GAAGA;QACjB,IAAI,CAACG,QAAQ,GAAG,EAAE;QAClB,IAAI,CAACF,IAAI,GAAGA;QACZ,IAAI,CAACC,IAAI,GAAGA;QACZ,IAAI,CAACH,GAAG,GAAG;QACX,IAAI,CAACK,GAAG,GAAGC;IACb;IAEAC,WAAW;QACT,OAAO,IAAI,CAACP,GAAG;IACjB;IAEAQ,KAAKC,IAAI,EAAEN,OAAO,CAAC,CAAC,EAAE;QACpB,IAAI,CAACA,KAAKO,MAAM,EAAE;YAChB,IAAI,IAAI,CAACC,UAAU,IAAI,IAAI,CAACA,UAAU,CAACC,aAAa,EAAE;gBACpDT,KAAKO,MAAM,GAAG,IAAI,CAACC,UAAU,CAACC,aAAa;YAC7C;QACF;QAEA,IAAIC,UAAU,IAAIhB,QAAQY,MAAMN;QAChC,IAAI,CAACC,QAAQ,CAACU,IAAI,CAACD;QAEnB,OAAOA;IACT;IAEAE,WAAW;QACT,OAAO,IAAI,CAACX,QAAQ,CAACY,MAAM,CAACC,CAAAA,IAAKA,EAAEC,IAAI,KAAK;IAC9C;AACF;AAEAC,OAAOC,OAAO,GAAGtB;AACjBA,OAAOuB,OAAO,GAAGvB","ignoreList":[0]}},
{"offset": {"line": 12572, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/root.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\n\nlet LazyResult, Processor\n\nclass Root extends Container {\n constructor(defaults) {\n super(defaults)\n this.type = 'root'\n if (!this.nodes) this.nodes = []\n }\n\n normalize(child, sample, type) {\n let keepBefore = new Set()\n for (let node of Array.isArray(child) ? child : [child]) {\n if (\n node &&\n typeof node === 'object' &&\n !node.parent &&\n node.raws &&\n typeof node.raws.before !== 'undefined'\n ) {\n keepBefore.add(node.raws)\n }\n }\n\n let nodes = super.normalize(child)\n\n if (sample) {\n if (type === 'prepend') {\n if (this.nodes.length > 1) {\n sample.raws.before = this.nodes[1].raws.before\n } else {\n delete sample.raws.before\n }\n } else if (this.first !== sample) {\n for (let node of nodes) {\n if (!keepBefore.has(node.raws)) {\n node.raws.before = sample.raws.before\n }\n }\n }\n }\n\n return nodes\n }\n\n removeChild(child, ignore) {\n let index = this.index(child)\n\n if (!ignore && index === 0 && this.nodes.length > 1) {\n this.nodes[1].raws.before = this.nodes[index].raws.before\n }\n\n return super.removeChild(child)\n }\n\n toResult(opts = {}) {\n let lazy = new LazyResult(new Processor(), this, opts)\n return lazy.stringify()\n }\n}\n\nRoot.registerLazyResult = dependant => {\n LazyResult = dependant\n}\n\nRoot.registerProcessor = dependant => {\n Processor = dependant\n}\n\nmodule.exports = Root\nRoot.default = Root\n\nContainer.registerRoot(Root)\n"],"names":["Container","LazyResult","Processor","Root","defaults","type","nodes","normalize","child","sample","keepBefore","Set","node","Array","isArray","parent","raws","before","add","length","first","has","removeChild","ignore","index","toResult","opts","lazy","stringify","registerLazyResult","dependant","registerProcessor","module","exports","default","registerRoot"],"mappings":"AAEA,IAAIA;AAEJ,IAAIC,YAAYC;AAEhB,MAAMC,aAAaH;IACjBG,YAAYC,QAAQ,CAAE;QACpB,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;QACZ,IAAI,CAAC,IAAI,CAACC,KAAK,EAAE,IAAI,CAACA,KAAK,GAAG,EAAE;IAClC;IAEAC,UAAUC,KAAK,EAAEC,MAAM,EAAEJ,IAAI,EAAE;QAC7B,IAAIK,aAAa,IAAIC;QACrB,KAAK,IAAIC,QAAQC,MAAMC,OAAO,CAACN,SAASA,QAAQ;YAACA;SAAM,CAAE;YACvD,IACEI,QACA,OAAOA,SAAS,YAChB,CAACA,KAAKG,MAAM,IACZH,KAAKI,IAAI,IACT,OAAOJ,KAAKI,IAAI,CAACC,MAAM,KAAK,aAC5B;gBACAP,WAAWQ,GAAG,CAACN,KAAKI,IAAI;YAC1B;QACF;QAEA,IAAIV,QAAQ,KAAK,CAACC,UAAUC;QAE5B,IAAIC,QAAQ;YACV,IAAIJ,SAAS,WAAW;gBACtB,IAAI,IAAI,CAACC,KAAK,CAACa,MAAM,GAAG,GAAG;oBACzBV,OAAOO,IAAI,CAACC,MAAM,GAAG,IAAI,CAACX,KAAK,CAAC,EAAE,CAACU,IAAI,CAACC,MAAM;gBAChD,OAAO;oBACL,OAAOR,OAAOO,IAAI,CAACC,MAAM;gBAC3B;YACF,OAAO,IAAI,IAAI,CAACG,KAAK,KAAKX,QAAQ;gBAChC,KAAK,IAAIG,QAAQN,MAAO;oBACtB,IAAI,CAACI,WAAWW,GAAG,CAACT,KAAKI,IAAI,GAAG;wBAC9BJ,KAAKI,IAAI,CAACC,MAAM,GAAGR,OAAOO,IAAI,CAACC,MAAM;oBACvC;gBACF;YACF;QACF;QAEA,OAAOX;IACT;IAEAgB,YAAYd,KAAK,EAAEe,MAAM,EAAE;QACzB,IAAIC,QAAQ,IAAI,CAACA,KAAK,CAAChB;QAEvB,IAAI,CAACe,UAAUC,UAAU,KAAK,IAAI,CAAClB,KAAK,CAACa,MAAM,GAAG,GAAG;YACnD,IAAI,CAACb,KAAK,CAAC,EAAE,CAACU,IAAI,CAACC,MAAM,GAAG,IAAI,CAACX,KAAK,CAACkB,MAAM,CAACR,IAAI,CAACC,MAAM;QAC3D;QAEA,OAAO,KAAK,CAACK,YAAYd;IAC3B;IAEAiB,SAASC,OAAO,CAAC,CAAC,EAAE;QAClB,IAAIC,OAAO,IAAI1B,WAAW,IAAIC,aAAa,IAAI,EAAEwB;QACjD,OAAOC,KAAKC,SAAS;IACvB;AACF;AAEAzB,KAAK0B,kBAAkB,GAAGC,CAAAA;IACxB7B,aAAa6B;AACf;AAEA3B,KAAK4B,iBAAiB,GAAGD,CAAAA;IACvB5B,YAAY4B;AACd;AAEAE,OAAOC,OAAO,GAAG9B;AACjBA,KAAK+B,OAAO,GAAG/B;AAEfH,UAAUmC,YAAY,CAAChC","ignoreList":[0]}},
{"offset": {"line": 12632, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/rule.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet list = require('./list')\n\nclass Rule extends Container {\n get selectors() {\n return list.comma(this.selector)\n }\n\n set selectors(values) {\n let match = this.selector ? this.selector.match(/,\\s*/) : null\n let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen')\n this.selector = values.join(sep)\n }\n\n constructor(defaults) {\n super(defaults)\n this.type = 'rule'\n if (!this.nodes) this.nodes = []\n }\n}\n\nmodule.exports = Rule\nRule.default = Rule\n\nContainer.registerRule(Rule)\n"],"names":["Container","list","Rule","selectors","comma","selector","values","match","sep","raw","join","defaults","type","nodes","module","exports","default","registerRule"],"mappings":"AAEA,IAAIA;AACJ,IAAIC;AAEJ,MAAMC,aAAaF;IACjB,IAAIG,YAAY;QACd,OAAOF,KAAKG,KAAK,CAAC,IAAI,CAACC,QAAQ;IACjC;IAEA,IAAIF,UAAUG,MAAM,EAAE;QACpB,IAAIC,QAAQ,IAAI,CAACF,QAAQ,GAAG,IAAI,CAACA,QAAQ,CAACE,KAAK,CAAC,UAAU;QAC1D,IAAIC,MAAMD,QAAQA,KAAK,CAAC,EAAE,GAAG,MAAM,IAAI,CAACE,GAAG,CAAC,WAAW;QACvD,IAAI,CAACJ,QAAQ,GAAGC,OAAOI,IAAI,CAACF;IAC9B;IAEAN,YAAYS,QAAQ,CAAE;QACpB,KAAK,CAACA;QACN,IAAI,CAACC,IAAI,GAAG;QACZ,IAAI,CAAC,IAAI,CAACC,KAAK,EAAE,IAAI,CAACA,KAAK,GAAG,EAAE;IAClC;AACF;AAEAC,OAAOC,OAAO,GAAGb;AACjBA,KAAKc,OAAO,GAAGd;AAEfF,UAAUiB,YAAY,CAACf","ignoreList":[0]}},
{"offset": {"line": 12656, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/stringifier.js"],"sourcesContent":["'use strict'\n\n// Escapes sequences that could break out of an HTML <style> context.\n// Uses CSS unicode escaping (\\3c = '<') which is valid CSS and parsed\n// correctly by all compliant CSS consumers.\nconst STYLE_TAG = /(<)(\\/?style\\b)/gi\nconst COMMENT_OPEN = /(<)(!--)/g\n\n// Characters that end an at-rule name, mirroring RE_AT_END in the tokenizer.\n// Params starting with anything else need a space to stay separate tokens.\nconst AT_NAME_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/\n\nfunction escapeHTMLInCSS(str) {\n if (typeof str !== 'string') return str\n if (!str.includes('<')) return str\n return str.replace(STYLE_TAG, '\\\\3c $2').replace(COMMENT_OPEN, '\\\\3c $2')\n}\n\nconst DEFAULT_RAW = {\n after: '\\n',\n beforeClose: '\\n',\n beforeComment: '\\n',\n beforeDecl: '\\n',\n beforeOpen: ' ',\n beforeRule: '\\n',\n colon: ': ',\n commentLeft: ' ',\n commentRight: ' ',\n emptyBody: '',\n indent: ' ',\n semicolon: false\n}\n\nfunction capitalize(str) {\n return str[0].toUpperCase() + str.slice(1)\n}\n\nfunction atruleStart(str, node) {\n let name = '@' + node.name\n let params = node.params ? str.rawValue(node, 'params') : ''\n let afterName = node.raws.afterName\n\n if (typeof afterName === 'undefined') {\n afterName = params ? ' ' : ''\n } else if (afterName === '' && params && !AT_NAME_END.test(params[0])) {\n afterName = ' '\n }\n\n return name + afterName + params\n}\n\nfunction pushBody(str, stack, node) {\n let nodes = node.nodes\n let last = nodes.length - 1\n while (last > 0) {\n if (nodes[last].type !== 'comment') break\n last -= 1\n }\n\n let semicolon = str.raw(node, 'semicolon')\n let isDocument = node.type === 'document'\n for (let i = nodes.length - 1; i >= 0; i--) {\n let child = nodes[i]\n let childSemicolon = last !== i || semicolon\n // A childless at-rule or a custom property declaration that still has\n // following siblings must be terminated. Without the semicolon those\n // trailing comments are folded into the at-rule's prelude or the custom\n // property's value and disappear when the output is re-parsed.\n if (\n !childSemicolon &&\n i < nodes.length - 1 &&\n ((child.type === 'atrule' && !child.nodes) ||\n (child.type === 'decl' && child.prop.startsWith('--')))\n ) {\n childSemicolon = true\n }\n stack.push({\n document: isDocument,\n node: child,\n semicolon: childSemicolon\n })\n }\n}\n\nfunction pushBlock(str, stack, node, start) {\n let between = str.raw(node, 'between', 'beforeOpen')\n str.builder(escapeHTMLInCSS(start + between) + '{', node, 'start')\n\n let hasNodes = node.nodes && node.nodes.length\n let close = () => {\n let after = hasNodes\n ? str.raw(node, 'after')\n : str.raw(node, 'after', 'emptyBody')\n if (after) str.builder(escapeHTMLInCSS(after))\n str.builder('}', node, 'end')\n if (node.type === 'rule' && node.raws.ownSemicolon) {\n str.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, 'end')\n }\n }\n\n if (hasNodes) {\n stack.push(close)\n pushBody(str, stack, node)\n } else {\n close()\n }\n}\n\nclass Stringifier {\n constructor(builder) {\n this.builder = builder\n }\n\n atrule(node, semicolon) {\n let start = atruleStart(this, node)\n if (node.nodes) {\n this.block(node, start)\n } else {\n let end = (node.raws.between || '') + (semicolon ? ';' : '')\n this.builder(escapeHTMLInCSS(start + end), node)\n }\n }\n\n beforeAfter(node, detect) {\n let value\n if (node.type === 'decl') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (node.type === 'comment') {\n value = this.raw(node, null, 'beforeComment')\n } else if (detect === 'before') {\n value = this.raw(node, null, 'beforeRule')\n } else {\n value = this.raw(node, null, 'beforeClose')\n }\n\n let buf = node.parent\n let depth = 0\n while (buf && buf.type !== 'root') {\n depth += 1\n buf = buf.parent\n }\n\n if (value.includes('\\n')) {\n let indent = this.raw(node, null, 'indent')\n if (indent.length) {\n for (let step = 0; step < depth; step++) value += indent\n }\n }\n\n return value\n }\n\n block(node, start) {\n let between = this.raw(node, 'between', 'beforeOpen')\n this.builder(escapeHTMLInCSS(start + between) + '{', node, 'start')\n\n let after\n if (node.nodes && node.nodes.length) {\n this.body(node)\n after = this.raw(node, 'after')\n } else {\n after = this.raw(node, 'after', 'emptyBody')\n }\n\n if (after) this.builder(escapeHTMLInCSS(after))\n this.builder('}', node, 'end')\n }\n\n body(node) {\n // Rules and at-rules are expanded into an explicit stack insLine truncated
{"offset": {"line": 13049, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/stringify.js"],"sourcesContent":["'use strict'\n\nlet Stringifier = require('./stringifier')\n\nfunction stringify(node, builder) {\n let str = new Stringifier(builder)\n str.stringify(node)\n}\n\nmodule.exports = stringify\nstringify.default = stringify\n"],"names":["Stringifier","stringify","node","builder","str","module","exports","default"],"mappings":"AAEA,IAAIA;AAEJ,SAASC,UAAUC,IAAI,EAAEC,OAAO;IAC9B,IAAIC,MAAM,IAAIJ,YAAYG;IAC1BC,IAAIH,SAAS,CAACC;AAChB;AAEAG,OAAOC,OAAO,GAAGL;AACjBA,UAAUM,OAAO,GAAGN","ignoreList":[0]}},
{"offset": {"line": 13060, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports.isClean = Symbol('isClean')\n\nmodule.exports.my = Symbol('my')\n"],"names":["module","exports","isClean","Symbol","my"],"mappings":"AAEAA,OAAOC,OAAO,CAACC,OAAO,GAAGC,OAAO;AAEhCH,OAAOC,OAAO,CAACG,EAAE,GAAGD,OAAO","ignoreList":[0]}},
{"offset": {"line": 13066, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/tokenize.js"],"sourcesContent":["'use strict'\n\nconst SINGLE_QUOTE = \"'\".charCodeAt(0)\nconst DOUBLE_QUOTE = '\"'.charCodeAt(0)\nconst BACKSLASH = '\\\\'.charCodeAt(0)\nconst SLASH = '/'.charCodeAt(0)\nconst NEWLINE = '\\n'.charCodeAt(0)\nconst SPACE = ' '.charCodeAt(0)\nconst FEED = '\\f'.charCodeAt(0)\nconst TAB = '\\t'.charCodeAt(0)\nconst CR = '\\r'.charCodeAt(0)\nconst OPEN_SQUARE = '['.charCodeAt(0)\nconst CLOSE_SQUARE = ']'.charCodeAt(0)\nconst OPEN_PARENTHESES = '('.charCodeAt(0)\nconst CLOSE_PARENTHESES = ')'.charCodeAt(0)\nconst OPEN_CURLY = '{'.charCodeAt(0)\nconst CLOSE_CURLY = '}'.charCodeAt(0)\nconst SEMICOLON = ';'.charCodeAt(0)\nconst ASTERISK = '*'.charCodeAt(0)\nconst COLON = ':'.charCodeAt(0)\nconst AT = '@'.charCodeAt(0)\n\nconst RE_AT_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g\nconst RE_WORD_END = /[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g\nconst RE_BAD_BRACKET = /.[\\r\\n\"'(/\\\\]/\nconst RE_HEX_ESCAPE = /[\\da-f]/i\n\nmodule.exports = function tokenizer(input, options = {}) {\n let css = input.css.valueOf()\n let ignore = options.ignoreErrors\n\n let code, content, escape, next, quote\n let currentToken, escaped, escapePos, n, prev\n\n let length = css.length\n let pos = 0\n let buffer = []\n let returned = []\n let lastBadParen = -1\n\n function position() {\n return pos\n }\n\n function unclosed(what) {\n throw input.error('Unclosed ' + what, pos)\n }\n\n function endOfFile() {\n return returned.length === 0 && pos >= length\n }\n\n function nextToken(opts) {\n if (returned.length) return returned.pop()\n if (pos >= length) return\n\n let ignoreUnclosed = opts ? opts.ignoreUnclosed : false\n\n code = css.charCodeAt(pos)\n\n switch (code) {\n case NEWLINE:\n case SPACE:\n case TAB:\n case CR:\n case FEED: {\n next = pos\n do {\n next += 1\n code = css.charCodeAt(next)\n } while (\n code === SPACE ||\n code === NEWLINE ||\n code === TAB ||\n code === CR ||\n code === FEED\n )\n\n currentToken = ['space', css.slice(pos, next)]\n pos = next - 1\n break\n }\n\n case OPEN_SQUARE:\n case CLOSE_SQUARE:\n case OPEN_CURLY:\n case CLOSE_CURLY:\n case COLON:\n case SEMICOLON:\n case CLOSE_PARENTHESES: {\n let controlChar = String.fromCharCode(code)\n currentToken = [controlChar, controlChar, pos]\n break\n }\n\n case OPEN_PARENTHESES: {\n prev = buffer.length ? buffer.pop()[1] : ''\n n = css.charCodeAt(pos + 1)\n if (\n prev === 'url' &&\n n !== SINGLE_QUOTE &&\n n !== DOUBLE_QUOTE &&\n n !== SPACE &&\n n !== NEWLINE &&\n n !== TAB &&\n n !== FEED &&\n n !== CR\n ) {\n next = pos\n do {\n escaped = false\n next = css.indexOf(')', next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos\n break\n } else {\n unclosed('bracket')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['brackets', css.slice(pos, next + 1), pos, next]\n\n pos = next\n } else if (pos <= lastBadParen) {\n currentToken = ['(', '(', pos]\n } else {\n next = css.indexOf(')', pos + 1)\n content = css.slice(pos, next + 1)\n\n if (next === -1 || RE_BAD_BRACKET.test(content)) {\n lastBadParen = next === -1 ? length : next\n currentToken = ['(', '(', pos]\n } else {\n currentToken = ['brackets', content, pos, next]\n pos = next\n }\n }\n\n break\n }\n\n case SINGLE_QUOTE:\n case DOUBLE_QUOTE: {\n quote = code === SINGLE_QUOTE ? \"'\" : '\"'\n next = pos\n do {\n escaped = false\n next = css.indexOf(quote, next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos + 1\n break\n } else {\n unclosed('string')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['string', css.slice(pos, next + 1), pos, next]\n pos = next\n break\n }\n\n case AT: {\n RE_AT_END.lastIndex = pos + 1\n RE_AT_END.teLine truncated
{"offset": {"line": 13339, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/warn-once.js"],"sourcesContent":["/* eslint-disable no-console */\n'use strict'\n\nlet printed = {}\n\nmodule.exports = function warnOnce(message) {\n if (printed[message]) return\n printed[message] = true\n\n if (typeof console !== 'undefined' && console.warn) {\n console.warn(message)\n }\n}\n"],"names":["printed","module","exports","warnOnce","message","console","warn"],"mappings":"AAAA,6BAA6B,GAG7B,IAAIA,UAAU,CAAC;AAEfC,OAAOC,OAAO,GAAG,SAASC,SAASC,OAAO;IACxC,IAAIJ,OAAO,CAACI,QAAQ,EAAE;IACtBJ,OAAO,CAACI,QAAQ,GAAG;IAEnB,IAAI,OAAOC,YAAY,eAAeA,QAAQC,IAAI,EAAE;QAClDD,QAAQC,IAAI,CAACF;IACf;AACF","ignoreList":[0]}},
{"offset": {"line": 13351, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/postcss/lib/warning.js"],"sourcesContent":["'use strict'\n\nlet Container = require('./container')\nlet { my } = require('./symbols')\n\nclass Warning {\n constructor(text, opts = {}) {\n this.type = 'warning'\n this.text = text\n\n if (opts.node && opts.node.source) {\n if (!opts.node[my]) {\n // The node comes from another PostCSS copy in node_modules, so it does\n // not have this copy’s methods. Container#normalize() rebuilds such\n // nodes on insert, but a node passed straight to Result#warn() never\n // goes through it.\n Container.rebuild(opts.node)\n }\n let range = opts.node.rangeBy(opts)\n this.line = range.start.line\n this.column = range.start.column\n this.endLine = range.end.line\n this.endColumn = range.end.column\n }\n\n for (let opt in opts) this[opt] = opts[opt]\n }\n\n toString() {\n if (this.node) {\n return this.node.error(this.text, {\n index: this.index,\n plugin: this.plugin,\n word: this.word\n }).message\n }\n\n if (this.plugin) {\n return this.plugin + ': ' + this.text\n }\n\n return this.text\n }\n}\n\nmodule.exports = Warning\nWarning.default = Warning\n"],"names":["Container","my","Warning","text","opts","type","node","source","rebuild","range","rangeBy","line","start","column","endLine","end","endColumn","opt","toString","error","index","plugin","word","message","module","exports","default"],"mappings":"AAEA,IAAIA;AACJ,IAAI,EAAEC,EAAE,EAAE;AAEV,MAAMC;IACJA,YAAYC,IAAI,EAAEC,OAAO,CAAC,CAAC,CAAE;QAC3B,IAAI,CAACC,IAAI,GAAG;QACZ,IAAI,CAACF,IAAI,GAAGA;QAEZ,IAAIC,KAAKE,IAAI,IAAIF,KAAKE,IAAI,CAACC,MAAM,EAAE;YACjC,IAAI,CAACH,KAAKE,IAAI,CAACL,GAAG,EAAE;gBAClB,uEAAuE;gBACvE,oEAAoE;gBACpE,qEAAqE;gBACrE,mBAAmB;gBACnBD,UAAUQ,OAAO,CAACJ,KAAKE,IAAI;YAC7B;YACA,IAAIG,QAAQL,KAAKE,IAAI,CAACI,OAAO,CAACN;YAC9B,IAAI,CAACO,IAAI,GAAGF,MAAMG,KAAK,CAACD,IAAI;YAC5B,IAAI,CAACE,MAAM,GAAGJ,MAAMG,KAAK,CAACC,MAAM;YAChC,IAAI,CAACC,OAAO,GAAGL,MAAMM,GAAG,CAACJ,IAAI;YAC7B,IAAI,CAACK,SAAS,GAAGP,MAAMM,GAAG,CAACF,MAAM;QACnC;QAEA,IAAK,IAAII,OAAOb,KAAM,IAAI,CAACa,IAAI,GAAGb,IAAI,CAACa,IAAI;IAC7C;IAEAC,WAAW;QACT,IAAI,IAAI,CAACZ,IAAI,EAAE;YACb,OAAO,IAAI,CAACA,IAAI,CAACa,KAAK,CAAC,IAAI,CAAChB,IAAI,EAAE;gBAChCiB,OAAO,IAAI,CAACA,KAAK;gBACjBC,QAAQ,IAAI,CAACA,MAAM;gBACnBC,MAAM,IAAI,CAACA,IAAI;YACjB,GAAGC,OAAO;QACZ;QAEA,IAAI,IAAI,CAACF,MAAM,EAAE;YACf,OAAO,IAAI,CAACA,MAAM,GAAG,OAAO,IAAI,CAAClB,IAAI;QACvC;QAEA,OAAO,IAAI,CAACA,IAAI;IAClB;AACF;AAEAqB,OAAOC,OAAO,GAAGvB;AACjBA,QAAQwB,OAAO,GAAGxB","ignoreList":[0]}},
{"offset": {"line": 13392, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/sanitize-html/index.js"],"sourcesContent":["const htmlparser = require('htmlparser2');\nconst escapeStringRegexp = require('escape-string-regexp');\nconst { isPlainObject } = require('is-plain-object');\nconst deepmerge = require('deepmerge');\nconst parseSrcset = require('parse-srcset');\nconst { parse: postcssParse } = require('postcss');\nconst { naughtyHref: launderNaughtyHref } = require('launder');\n// Tags that can conceivably represent stand-alone media.\nconst mediaTags = [\n 'img', 'audio', 'video', 'picture', 'svg',\n 'object', 'map', 'iframe', 'embed'\n];\n// Tags that are inherently vulnerable to being used in XSS attacks.\nconst vulnerableTags = [ 'script', 'style' ];\n\nfunction each(obj, cb) {\n if (obj) {\n Object.keys(obj).forEach(function (key) {\n cb(obj[key], key);\n });\n }\n}\n\n// Avoid false positives with .__proto__, .hasOwnProperty, etc.\nfunction has(obj, key) {\n return ({}).hasOwnProperty.call(obj, key);\n}\n\n// Returns those elements of `a` for which `cb(a)` returns truthy\nfunction filter(a, cb) {\n const n = [];\n each(a, function(v) {\n if (cb(v)) {\n n.push(v);\n }\n });\n return n;\n}\n\nfunction isEmptyObject(obj) {\n for (const key in obj) {\n if (has(obj, key)) {\n return false;\n }\n }\n return true;\n}\n\nfunction stringifySrcset(parsedSrcset) {\n return parsedSrcset.map(function(part) {\n if (!part.url) {\n throw new Error('URL missing');\n }\n\n return (\n part.url +\n (part.w ? ` ${part.w}w` : '') +\n (part.h ? ` ${part.h}h` : '') +\n (part.d ? ` ${part.d}x` : '')\n );\n }).join(', ');\n}\n\nmodule.exports = sanitizeHtml;\n\n// A valid attribute name.\n// We use a tolerant definition based on the set of strings defined by\n// html.spec.whatwg.org/multipage/parsing.html#before-attribute-name-state\n// and html.spec.whatwg.org/multipage/parsing.html#attribute-name-state .\n// The characters accepted are ones which can be appended to the attribute\n// name buffer without triggering a parse error:\n// * unexpected-equals-sign-before-attribute-name\n// * unexpected-null-character\n// * unexpected-character-in-attribute-name\n// We exclude the empty string because it's impossible to get to the after\n// attribute name state with an empty attribute name buffer.\nconst VALID_HTML_ATTRIBUTE_NAME = /^[^\\0\\t\\n\\f\\r /<=>]+$/;\n\n// Ignore the _recursing flag; it's there for recursive\n// invocation as a guard against this exploit:\n// https://github.com/fb55/htmlparser2/issues/105\n\nfunction sanitizeHtml(html, options, _recursing) {\n if (html == null) {\n return '';\n }\n if (typeof html === 'number') {\n html = html.toString();\n }\n\n let result = '';\n // Used for hot swapping the result variable with an empty string\n // in order to \"capture\" the text written to it.\n let tempResult = '';\n\n function Frame(tag, attribs) {\n const that = this;\n this.tag = tag;\n this.attribs = attribs || {};\n this.tagPosition = result.length;\n this.text = ''; // Node inner text\n this.openingTagLength = 0;\n this.mediaChildren = [];\n\n this.updateParentNodeText = function() {\n if (stack.length) {\n const parentFrame = stack[stack.length - 1];\n parentFrame.text += that.text;\n }\n };\n\n this.updateParentNodeMediaChildren = function() {\n if (stack.length && mediaTags.includes(this.tag)) {\n const parentFrame = stack[stack.length - 1];\n parentFrame.mediaChildren.push(this.tag);\n }\n };\n }\n\n options = Object.assign({}, sanitizeHtml.defaults, options);\n options.parser = Object.assign({}, htmlParserDefaults, options.parser);\n\n const tagAllowed = function (name) {\n return options.allowedTags === false ||\n (options.allowedTags || []).indexOf(name) > -1;\n };\n\n // vulnerableTags\n vulnerableTags.forEach(function (tag) {\n if (tagAllowed(tag) && !options.allowVulnerableTags) {\n console.warn(`\\n\\n⚠️ Your \\`allowedTags\\` option includes, \\`${tag}\\`, which is inherently\\nvulnerable to XSS attacks. Please remove it from \\`allowedTags\\`.\\nOr, to disable this warning, add the \\`allowVulnerableTags\\` option\\nand ensure you are accounting for this risk.\\n\\n`);\n }\n });\n\n // Tags that contain something other than HTML, or where discarding\n // the text when the tag is disallowed makes sense for other reasons.\n // If we are not allowing these tags, we should drop their content too.\n // For other tags you would drop the tag but keep its content.\n // `xmp` is included because htmlparser2 treats it as a raw-text element,\n // so markup inside is parsed as text on input but would otherwise be\n // re-emitted unescaped via the `ontext` branch below, allowing XSS bypass\n // when `xmp` is disallowed (which is the defLine truncated
}
@@ -0,0 +1,49 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[project]/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
exports._ = _interop_require_default;
}),
"[project]/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-client] (ecmascript)", ((__turbopack_context__, module, exports) => {
"use strict";
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap !== "function") return null;
var cacheBabelInterop = new WeakMap();
var cacheNodeInterop = new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop) {
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) return obj;
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return {
default: obj
};
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) return cache.get(obj);
var newObj = {
__proto__: null
};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for(var key in obj){
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
else newObj[key] = obj[key];
}
}
newObj.default = obj;
if (cache) cache.set(obj, newObj);
return newObj;
}
exports._ = _interop_require_wildcard;
}),
]);
//# sourceMappingURL=node_modules_%40swc_helpers_cjs_1r9vbqw._.js.map
@@ -0,0 +1,7 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"],"sourcesContent":["\"use strict\";\n\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\nexports._ = _interop_require_default;\n"],"names":["_interop_require_default","obj","__esModule","default","exports","_"],"mappings":"AAEA,SAASA,yBAAyBC,GAAG;IACjC,OAAOA,OAAOA,IAAIC,UAAU,GAAGD,MAAM;QAAEE,SAASF;IAAI;AACxD;AACAG,QAAQC,CAAC,GAAGL","ignoreList":[0]}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"],"sourcesContent":["\"use strict\";\n\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) return obj;\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") return { default: obj };\n\n var cache = _getRequireWildcardCache(nodeInterop);\n\n if (cache && cache.has(obj)) return cache.get(obj);\n\n var newObj = { __proto__: null };\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n\n for (var key in obj) {\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);\n else newObj[key] = obj[key];\n }\n }\n\n newObj.default = obj;\n\n if (cache) cache.set(obj, newObj);\n\n return newObj;\n}\nexports._ = _interop_require_wildcard;\n"],"names":["_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","_interop_require_wildcard","obj","__esModule","default","cache","has","get","newObj","__proto__","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","exports","_"],"mappings":"AAEA,SAASA,yBAAyBC,WAAW;IACzC,IAAI,OAAOC,YAAY,YAAY,OAAO;IAE1C,IAAIC,oBAAoB,IAAID;IAC5B,IAAIE,mBAAmB,IAAIF;IAE3B,OAAO,CAACF,2BAA2B,SAASC,WAAW;QACnD,OAAOA,cAAcG,mBAAmBD;IAC5C,CAAC,EAAEF;AACP;AACA,SAASI,0BAA0BC,GAAG,EAAEL,WAAW;IAC/C,IAAI,CAACA,eAAeK,OAAOA,IAAIC,UAAU,EAAE,OAAOD;IAClD,IAAIA,QAAQ,QAAQ,OAAOA,QAAQ,YAAY,OAAOA,QAAQ,YAAY,OAAO;QAAEE,SAASF;IAAI;IAEhG,IAAIG,QAAQT,yBAAyBC;IAErC,IAAIQ,SAASA,MAAMC,GAAG,CAACJ,MAAM,OAAOG,MAAME,GAAG,CAACL;IAE9C,IAAIM,SAAS;QAAEC,WAAW;IAAK;IAC/B,IAAIC,wBAAwBC,OAAOC,cAAc,IAAID,OAAOE,wBAAwB;IAEpF,IAAK,IAAIC,OAAOZ,IAAK;QACjB,IAAIY,QAAQ,aAAaH,OAAOI,SAAS,CAACC,cAAc,CAACC,IAAI,CAACf,KAAKY,MAAM;YACrE,IAAII,OAAOR,wBAAwBC,OAAOE,wBAAwB,CAACX,KAAKY,OAAO;YAC/E,IAAII,QAAQ,CAACA,KAAKX,GAAG,IAAIW,KAAKC,GAAG,GAAGR,OAAOC,cAAc,CAACJ,QAAQM,KAAKI;iBAClEV,MAAM,CAACM,IAAI,GAAGZ,GAAG,CAACY,IAAI;QAC/B;IACJ;IAEAN,OAAOJ,OAAO,GAAGF;IAEjB,IAAIG,OAAOA,MAAMc,GAAG,CAACjB,KAAKM;IAE1B,OAAOA;AACX;AACAY,QAAQC,CAAC,GAAGpB","ignoreList":[0]}}]
}
@@ -0,0 +1,8 @@
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([typeof document === "object" ? document.currentScript : undefined,
"[project]/node_modules/next/app.js [client] (ecmascript)", ((__turbopack_context__, module, exports) => {
module.exports = __turbopack_context__.r("[project]/node_modules/next/dist/pages/_app.js [client] (ecmascript)");
}),
]);
//# sourceMappingURL=node_modules_next_app_0yrdk3r.js.map
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/app.js"],"sourcesContent":["module.exports = require('./dist/pages/_app')\n"],"names":["module","exports"],"mappings":"AAAAA,OAAOC,OAAO","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,62 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/build/polyfills/polyfill-module.js"],"sourcesContent":["\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var t=/\\((.*)\\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if(\"function\"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]}),Object.hasOwn||(Object.hasOwn=function(t,r){if(null==t)throw new TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(t),r)}),\"canParse\"in URL||(URL.canParse=function(t,r){try{return!!new URL(t,r)}catch(t){return!1}});\n"],"names":["String","prototype","trimStart","trimLeft","trimEnd","trimRight","Symbol","Object","defineProperty","configurable","get","t","exec","toString","Array","flat","r","concat","apply","some","isArray","flatMap","map","Promise","finally","then","n","resolve","fromEntries","from","reduce","at","Math","trunc","length","hasOwn","TypeError","hasOwnProperty","call","URL","canParse"],"mappings":"AAAA,eAAcA,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACC,SAAS,GAACF,OAAOC,SAAS,CAACE,QAAQ,GAAE,aAAYH,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACG,OAAO,GAACJ,OAAOC,SAAS,CAACI,SAAS,GAAE,iBAAgBC,OAAOL,SAAS,IAAEM,OAAOC,cAAc,CAACF,OAAOL,SAAS,EAAC,eAAc;IAACQ,cAAa,CAAC;IAAEC,KAAI;QAAW,IAAIC,IAAE,WAAWC,IAAI,CAAC,IAAI,CAACC,QAAQ;QAAI,OAAOF,IAAEA,CAAC,CAAC,EAAE,GAAC,KAAK;IAAC;AAAC,IAAGG,MAAMb,SAAS,CAACc,IAAI,IAAE,CAACD,MAAMb,SAAS,CAACc,IAAI,GAAC,SAASJ,CAAC,EAACK,CAAC;IAAE,OAAOA,IAAE,IAAI,CAACC,MAAM,CAACC,KAAK,CAAC,EAAE,EAAC,IAAI,GAAEP,IAAE,KAAGK,EAAEG,IAAI,CAACL,MAAMM,OAAO,IAAEJ,EAAED,IAAI,CAACJ,IAAE,KAAGK;AAAC,GAAEF,MAAMb,SAAS,CAACoB,OAAO,GAAC,SAASV,CAAC,EAACK,CAAC;IAAE,OAAO,IAAI,CAACM,GAAG,CAACX,GAAEK,GAAGD,IAAI;AAAE,CAAC,GAAEQ,QAAQtB,SAAS,CAACuB,OAAO,IAAE,CAACD,QAAQtB,SAAS,CAACuB,OAAO,GAAC,SAASb,CAAC;IAAE,IAAG,cAAY,OAAOA,GAAE,OAAO,IAAI,CAACc,IAAI,CAACd,GAAEA;IAAG,IAAIK,IAAE,IAAI,CAAC,WAAW,IAAEO;IAAQ,OAAO,IAAI,CAACE,IAAI,CAAC,SAASC,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,OAAOC;QAAC;IAAE,GAAE,SAASA,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,MAAMC;QAAC;IAAE;AAAE,CAAC,GAAEnB,OAAOqB,WAAW,IAAE,CAACrB,OAAOqB,WAAW,GAAC,SAASjB,CAAC;IAAE,OAAOG,MAAMe,IAAI,CAAClB,GAAGmB,MAAM,CAAC,SAASnB,CAAC,EAACK,CAAC;QAAE,OAAOL,CAAC,CAACK,CAAC,CAAC,EAAE,CAAC,GAACA,CAAC,CAAC,EAAE,EAACL;IAAC,GAAE,CAAC;AAAE,CAAC,GAAEG,MAAMb,SAAS,CAAC8B,EAAE,IAAE,CAACjB,MAAMb,SAAS,CAAC8B,EAAE,GAAC,SAASpB,CAAC;IAAE,IAAIK,IAAEgB,KAAKC,KAAK,CAACtB,MAAI;IAAE,IAAGK,IAAE,KAAG,CAACA,KAAG,IAAI,CAACkB,MAAM,GAAE,CAAC,CAAClB,IAAE,KAAGA,KAAG,IAAI,CAACkB,MAAM,GAAE,OAAO,IAAI,CAAClB,EAAE;AAAA,CAAC,GAAET,OAAO4B,MAAM,IAAE,CAAC5B,OAAO4B,MAAM,GAAC,SAASxB,CAAC,EAACK,CAAC;IAAE,IAAG,QAAML,GAAE,MAAM,IAAIyB,UAAU;IAA8C,OAAO7B,OAAON,SAAS,CAACoC,cAAc,CAACC,IAAI,CAAC/B,OAAOI,IAAGK;AAAE,CAAC,GAAE,cAAauB,OAAK,CAACA,IAAIC,QAAQ,GAAC,SAAS7B,CAAC,EAACK,CAAC;IAAE,IAAG;QAAC,OAAM,CAAC,CAAC,IAAIuB,IAAI5B,GAAEK;IAAE,EAAC,OAAML,GAAE;QAAC,OAAM,CAAC;IAAC;AAAC,CAAC","ignoreList":[0]}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/build/polyfills/process.ts"],"sourcesContent":["module.exports =\n global.process?.env && typeof global.process?.env === 'object'\n ? global.process\n : (require('next/dist/compiled/process') as typeof import('next/dist/compiled/process'))\n"],"names":["global","module","exports","process","env","require"],"mappings":"IACEA,iBAA8BA;AADhCC,OAAOC,OAAO,GACZF,CAAAA,CAAAA,kBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,gBAAgBI,GAAG,KAAI,OAAA,CAAA,CAAOJ,mBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,iBAAgBI,GAAG,MAAK,WAClDJ,yDAAOG,OAAO,GACbE,QAAQ","ignoreList":[0]}},
{"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/constants.ts"],"sourcesContent":["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\nexportLine truncated
{"offset": {"line": 473, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/framework/boundary-components.tsx"],"sourcesContent":["'use client'\n\nimport type { ReactNode } from 'react'\nimport {\n METADATA_BOUNDARY_NAME,\n VIEWPORT_BOUNDARY_NAME,\n OUTLET_BOUNDARY_NAME,\n ROOT_LAYOUT_BOUNDARY_NAME,\n} from './boundary-constants'\n\n// We use a namespace object to allow us to recover the name of the function\n// at runtime even when production bundling/minification is used.\nconst NameSpace = {\n [METADATA_BOUNDARY_NAME]: function ({ children }: { children: ReactNode }) {\n return children\n },\n [VIEWPORT_BOUNDARY_NAME]: function ({ children }: { children: ReactNode }) {\n return children\n },\n [OUTLET_BOUNDARY_NAME]: function ({ children }: { children: ReactNode }) {\n return children\n },\n [ROOT_LAYOUT_BOUNDARY_NAME]: function ({\n children,\n }: {\n children: ReactNode\n }) {\n return children\n },\n}\n\nexport const MetadataBoundary =\n // We use slice(0) to trick the bundler into not inlining/minifying the function\n // so it retains the name inferred from the namespace object\n NameSpace[METADATA_BOUNDARY_NAME.slice(0) as typeof METADATA_BOUNDARY_NAME]\n\nexport const ViewportBoundary =\n // We use slice(0) to trick the bundler into not inlining/minifying the function\n // so it retains the name inferred from the namespace object\n NameSpace[VIEWPORT_BOUNDARY_NAME.slice(0) as typeof VIEWPORT_BOUNDARY_NAME]\n\nexport const OutletBoundary =\n // We use slice(0) to trick the bundler into not inlining/minifying the function\n // so it retains the name inferred from the namespace object\n NameSpace[OUTLET_BOUNDARY_NAME.slice(0) as typeof OUTLET_BOUNDARY_NAME]\n\nexport const RootLayoutBoundary =\n // We use slice(0) to trick the bundler into not inlining/minifying the function\n // so it retains the name inferred from the namespace object\n NameSpace[\n ROOT_LAYOUT_BOUNDARY_NAME.slice(0) as typeof ROOT_LAYOUT_BOUNDARY_NAME\n ]\n"],"names":["MetadataBoundary","OutletBoundary","RootLayoutBoundary","ViewportBoundary","NameSpace","METADATA_BOUNDARY_NAME","children","VIEWPORT_BOUNDARY_NAME","OUTLET_BOUNDARY_NAME","ROOT_LAYOUT_BOUNDARY_NAME","slice"],"mappings":";;;;;;;;;;;;;;;;IA+BaA,gBAAgB,EAAA;eAAhBA;;IAUAC,cAAc,EAAA;eAAdA;;IAKAC,kBAAkB,EAAA;eAAlBA;;IAVAC,gBAAgB,EAAA;eAAhBA;;;mCA5BN;AAEP,4EAA4E;AAC5E,iEAAiE;AACjE,MAAMC,YAAY;IAChB,CAACC,mBAAAA,sBAAsB,CAAC,EAAE,SAAU,EAAEC,QAAQ,EAA2B;QACvE,OAAOA;IACT;IACA,CAACC,mBAAAA,sBAAsB,CAAC,EAAE,SAAU,EAAED,QAAQ,EAA2B;QACvE,OAAOA;IACT;IACA,CAACE,mBAAAA,oBAAoB,CAAC,EAAE,SAAU,EAAEF,QAAQ,EAA2B;QACrE,OAAOA;IACT;IACA,CAACG,mBAAAA,yBAAyB,CAAC,EAAE,SAAU,EACrCH,QAAQ,EAGT;QACC,OAAOA;IACT;AACF;AAEO,MAAMN,mBACX,AACA,4DAA4D,oBADoB;AAEhFI,SAAS,CAACC,mBAAAA,sBAAsB,CAACK,KAAK,CAAC,GAAoC;AAEtE,MAAMP,mBACX,AACA,4DAA4D,oBADoB;AAEhFC,SAAS,CAACG,mBAAAA,sBAAsB,CAACG,KAAK,CAAC,GAAoC;AAEtE,MAAMT,iBACX,AACA,4DAA4D,oBADoB;AAEhFG,SAAS,CAACI,mBAAAA,oBAAoB,CAACE,KAAK,CAAC,GAAkC;AAElE,MAAMR,qBACX,AACA,4DAA4D,oBADoB;AAEhFE,SAAS,CACPK,mBAAAA,yBAAyB,CAACC,KAAK,CAAC,GACjC","ignoreList":[0]}},
{"offset": {"line": 531, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/framework/boundary-constants.tsx"],"sourcesContent":["export const METADATA_BOUNDARY_NAME = '__next_metadata_boundary__'\nexport const VIEWPORT_BOUNDARY_NAME = '__next_viewport_boundary__'\nexport const OUTLET_BOUNDARY_NAME = '__next_outlet_boundary__'\nexport const ROOT_LAYOUT_BOUNDARY_NAME = '__next_root_layout_boundary__'\n"],"names":["METADATA_BOUNDARY_NAME","OUTLET_BOUNDARY_NAME","ROOT_LAYOUT_BOUNDARY_NAME","VIEWPORT_BOUNDARY_NAME"],"mappings":";;;;;;;;;;;;;;;;IAAaA,sBAAsB,EAAA;eAAtBA;;IAEAC,oBAAoB,EAAA;eAApBA;;IACAC,yBAAyB,EAAA;eAAzBA;;IAFAC,sBAAsB,EAAA;eAAtBA;;;AADN,MAAMH,yBAAyB;AAC/B,MAAMG,yBAAyB;AAC/B,MAAMF,uBAAuB;AAC7B,MAAMC,4BAA4B","ignoreList":[0]}},
{"offset": {"line": 568, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/is-error.ts"],"sourcesContent":["import { isPlainObject } from '../shared/lib/is-plain-object'\n\n// We allow some additional attached properties for Next.js errors\nexport interface NextError extends Error {\n type?: string\n page?: string\n code?: string | number\n cancelled?: boolean\n digest?: string\n}\n\n/**\n * This is a safe stringify function that handles circular references.\n * We're using a simpler version here to avoid introducing\n * the dependency `safe-stable-stringify` into production bundle.\n *\n * This helper is used both in development and production.\n */\nfunction safeStringifyLite(obj: any) {\n const seen = new WeakSet()\n\n return JSON.stringify(obj, (_key, value) => {\n // If value is an object and already seen, replace with \"[Circular]\"\n if (typeof value === 'object' && value !== null) {\n if (seen.has(value)) {\n return '[Circular]'\n }\n seen.add(value)\n }\n return value\n })\n}\n\n/**\n * Checks whether the given value is a NextError.\n * This can be used to print a more detailed error message with properties like `code` & `digest`.\n */\nexport default function isError(err: unknown): err is NextError {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // provide better error for case where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error(\n 'An undefined error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n\n if (err === null) {\n return new Error(\n 'A null error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n }\n\n return new Error(isPlainObject(err) ? safeStringifyLite(err) : err + '')\n}\n"],"names":["isError","getProperError","safeStringifyLite","obj","seen","WeakSet","JSON","stringify","_key","value","has","add","err","process","env","NODE_ENV","Error","isPlainObject"],"mappings":"AAgDMa,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;;;;;;;;;;;;IAf/B;;;CAGC,GACD,OAIC,EAAA;eAJuBf;;IAMRC,cAAc,EAAA;eAAdA;;;+BA3Cc;AAW9B;;;;;;CAMC,GACD,SAASC,kBAAkBC,GAAQ;IACjC,MAAMC,OAAO,IAAIC;IAEjB,OAAOC,KAAKC,SAAS,CAACJ,KAAK,CAACK,MAAMC;QAChC,oEAAoE;QACpE,IAAI,OAAOA,UAAU,YAAYA,UAAU,MAAM;YAC/C,IAAIL,KAAKM,GAAG,CAACD,QAAQ;gBACnB,OAAO;YACT;YACAL,KAAKO,GAAG,CAACF;QACX;QACA,OAAOA;IACT;AACF;AAMe,SAAST,QAAQY,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASX,eAAeW,GAAY;IACzC,IAAIZ,QAAQY,MAAM;QAChB,OAAOA;IACT;IAEA,wCAA4C;QAC1C,wDAAwD;QACxD,2BAA2B;QAC3B,IAAI,OAAOA,QAAQ,aAAa;YAC9B,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,oCACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;QAEA,IAAIJ,QAAQ,MAAM;YAChB,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,8BACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;IACF;IAEA,OAAO,OAAA,cAAiE,CAAjE,IAAIA,MAAMC,CAAAA,GAAAA,eAAAA,aAAa,EAACL,OAAOV,kBAAkBU,OAAOA,MAAM,KAA9D,qBAAA;eAAA;oBAAA;sBAAA;IAAgE;AACzE","ignoreList":[0]}},
{"offset": {"line": 649, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/require-instrumentation-client.ts"],"sourcesContent":["/**\n * This module imports the configured client instrumentation modules.\n *\n * The `private-next-instrumentation-client` module is automatically aliased to\n * either the user's instrumentation module or a generated module array.\n */\nif (process.env.NODE_ENV === 'development') {\n const measureName = 'Client Instrumentation Hook'\n const startTime = performance.now()\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n const endTime = performance.now()\n const duration = endTime - startTime\n\n // Using 16ms threshold as it represents one frame (1000ms/60fps)\n // This helps identify if the instrumentation hook initialization\n // could potentially cause frame drops during development.\n const THRESHOLD = 16\n if (duration > THRESHOLD) {\n console.log(\n `[${measureName}] Slow execution detected: ${duration.toFixed(0)}ms (Note: Code download overhead is not included in this measurement)`\n )\n }\n} else {\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n}\n"],"names":["process","env","NODE_ENV","measureName","startTime","performance","now","instrumentationClient","require","module","exports","Array","isArray","endTime","duration","THRESHOLD","console","log","toFixed"],"mappings":"AAMIA,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAN7B;;;;;CAKC,GAAA;AACD,wCAA4C;IAC1C,MAAMC,cAAc;IACpB,MAAMC,YAAYC,YAAYC,GAAG;IACjC,+EAA+E;IAC/E,MAAMC,wBAAwBC,QAAQ;IACtCC,OAAOC,OAAO,GAAGC,MAAMC,OAAO,CAACL,yBAC3BA,wBACA;QAACA;KAAsB;IAC3B,MAAMM,UAAUR,YAAYC,GAAG;IAC/B,MAAMQ,WAAWD,UAAUT;IAE3B,iEAAiE;IACjE,iEAAiE;IACjE,0DAA0D;IAC1D,MAAMW,YAAY;IAClB,IAAID,WAAWC,WAAW;QACxBC,QAAQC,GAAG,CACT,CAAC,CAAC,EAAEd,YAAY,2BAA2B,EAAEW,SAASI,OAAO,CAAC,GAAG,qEAAqE,CAAC;IAE3I;AACF,OAAO","ignoreList":[0]}},
{"offset": {"line": 679, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/console-error.ts"],"sourcesContent":["// To distinguish from React error.digest, we use a different symbol here to determine if the error is from console.error or unhandled promise rejection.\nconst digestSym = Symbol.for('next.console.error.digest')\n\n// Represent non Error shape unhandled promise rejections or console.error errors.\n// Those errors will be captured and displayed in Error Overlay.\ntype ConsoleError = Error & {\n [digestSym]: 'NEXT_CONSOLE_ERROR'\n environmentName: string\n}\n\nexport function createConsoleError(\n message: string | Error,\n environmentName?: string | null\n): ConsoleError {\n const error = (\n typeof message === 'string' ? new Error(message) : message\n ) as ConsoleError\n error[digestSym] = 'NEXT_CONSOLE_ERROR'\n\n if (environmentName && !error.environmentName) {\n error.environmentName = environmentName\n }\n\n return error\n}\n\nexport const isConsoleError = (error: any): error is ConsoleError => {\n return error && error[digestSym] === 'NEXT_CONSOLE_ERROR'\n}\n"],"names":["createConsoleError","isConsoleError","digestSym","Symbol","for","message","environmentName","error","Error"],"mappings":"AAAA,yJAAyJ;;;;;;;;;;;;;;;IAUzIA,kBAAkB,EAAA;eAAlBA;;IAgBHC,cAAc,EAAA;eAAdA;;;AAzBb,MAAMC,YAAYC,OAAOC,GAAG,CAAC;AAStB,SAASJ,mBACdK,OAAuB,EACvBC,eAA+B;IAE/B,MAAMC,QACJ,OAAOF,YAAY,WAAW,OAAA,cAAkB,CAAlB,IAAIG,MAAMH,UAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAiB,KAAIA;IAErDE,KAAK,CAACL,UAAU,GAAG;IAEnB,IAAII,mBAAmB,CAACC,MAAMD,eAAe,EAAE;QAC7CC,MAAMD,eAAe,GAAGA;IAC1B;IAEA,OAAOC;AACT;AAEO,MAAMN,iBAAiB,CAACM;IAC7B,OAAOA,SAASA,KAAK,CAACL,UAAU,KAAK;AACvC","ignoreList":[0]}},
{"offset": {"line": 728, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/forward-logs-shared.ts"],"sourcesContent":["export type LogMethod =\n | 'log'\n | 'info'\n | 'debug'\n | 'table'\n | 'error'\n | 'assert'\n | 'dir'\n | 'dirxml'\n | 'group'\n | 'groupCollapsed'\n | 'groupEnd'\n | 'trace'\n | 'warn'\n\nexport type ConsoleEntry<T> = {\n kind: 'console'\n method: LogMethod\n consoleMethodStack: string | null\n args: Array<\n | {\n kind: 'arg'\n data: T\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string\n }\n >\n}\n\nexport type ConsoleErrorEntry<T> = {\n kind: 'any-logged-error'\n method: 'error'\n consoleErrorStack: string\n args: Array<\n | {\n kind: 'arg'\n data: T\n isRejectionMessage?: boolean\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string | null\n }\n >\n}\n\nexport type FormattedErrorEntry = {\n kind: 'formatted-error'\n prefix: string\n stack: string\n method: 'error'\n}\n\nexport type ClientLogEntry =\n | ConsoleEntry<unknown>\n | ConsoleErrorEntry<unknown>\n | FormattedErrorEntry\nexport type ServerLogEntry =\n | ConsoleEntry<string>\n | ConsoleErrorEntry<string>\n | FormattedErrorEntry\n\nexport const UNDEFINED_MARKER = '__next_tagged_undefined'\n\nconst alreadyLoggedOnServerSymbol = Symbol('nextAlreadyLoggedOnServer')\n\n/**\n * Marks an error that originated on the server and was already logged there.\n * Such errors are also sent to the browser, where they get logged to the\n * browser console and shown in the dev overlay. This marker lets the\n * browser-to-terminal log forwarding skip them, so they aren't replayed back to\n * the CLI as duplicates.\n */\nexport function markErrorAsAlreadyLoggedOnServer(error: object): void {\n Object.defineProperty(error, alreadyLoggedOnServerSymbol, {\n value: true,\n enumerable: false,\n configurable: true,\n })\n}\n\nexport function wasErrorAlreadyLoggedOnServer(value: unknown): boolean {\n return (\n typeof value === 'object' &&\n value !== null &&\n (value as Record<symbol, unknown>)[alreadyLoggedOnServerSymbol] === true\n )\n}\n\n// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248\nexport function patchConsoleMethod<T extends keyof Console>(\n methodName: T,\n wrapper: (\n methodName: T,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) => void\n): () => 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 as Console[T] extends (\n ...args: any[]\n ) => any\n ? Console[T]\n : never\n const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n const wrapperMethod = function (\n this: typeof console,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) {\n wrapper(methodName, ...args)\n\n originalMethod.apply(this, args)\n }\n if (originalName) {\n Object.defineProperty(wrapperMethod, 'name', originalName)\n }\n Object.defineProperty(console, methodName, {\n value: wrapperMethod,\n })\n\n return () => {\n Object.defineProperty(console, methodName, {\n value: originalMethod,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n })\n }\n }\n\n return () => {}\n}\n"],"names":["UNDEFINED_MARKER","markErrorAsAlreadyLoggedOnServer","patchConsoleMethod","wasErrorAlreadyLoggedOnServer","alreadyLoggedOnServerSymbol","Symbol","error","Object","defineProperty","value","enumerable","configurable","methodName","wrapper","descriptor","getOwnPropertyDescriptor","console","writable","originalMethod","originalName","wrapperMethod","args","apply"],"mappings":";;;;;;;;;;;;;;;;IAkEaA,gBAAgB,EAAA;eAAhBA;;IAWGC,gCAAgC,EAAA;eAAhCA;;IAiBAC,kBAAkB,EAAA;eAAlBA;;IATAC,6BAA6B,EAAA;eAA7BA;;;AAnBT,MAAMH,mBAAmB;AAEhC,MAAMI,8BAA8BC,OAAO;AASpC,SAASJ,iCAAiCK,KAAa;IAC5DC,OAAOC,cAAc,CAACF,OAAOF,6BAA6B;QACxDK,OAAO;QACPC,YAAY;QACZC,cAAc;IAChB;AACF;AAEO,SAASR,8BAA8BM,KAAc;IAC1D,OACE,OAAOA,UAAU,YACjBA,UAAU,QACTA,KAAiC,CAACL,4BAA4B,KAAK;AAExE;AAGO,SAASF,mBACdU,UAAa,EACbC,OAGS;IAET,MAAMC,aAAaP,OAAOQ,wBAAwB,CAACC,SAASJ;IAC5D,IACEE,cACCA,CAAAA,WAAWH,YAAY,IAAIG,WAAWG,QAAO,KAC9C,OAAOH,WAAWL,KAAK,KAAK,YAC5B;QACA,MAAMS,iBAAiBJ,WAAWL,KAAK;QAKvC,MAAMU,eAAeZ,OAAOQ,wBAAwB,CAACG,gBAAgB;QACrE,MAAME,gBAAgB,SAEpB,GAAGC,IAAgE;YAEnER,QAAQD,eAAeS;YAEvBH,eAAeI,KAAK,CAAC,IAAI,EAAED;QAC7B;QACA,IAAIF,cAAc;YAChBZ,OAAOC,cAAc,CAACY,eAAe,QAAQD;QAC/C;QACAZ,OAAOC,cAAc,CAACQ,SAASJ,YAAY;YACzCH,OAAOW;QACT;QAEA,OAAO;YACLb,OAAOC,cAAc,CAALine truncated
{"offset": {"line": 805, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/app-dev-overlay-error-boundary.tsx"],"sourcesContent":["import React, { PureComponent, startTransition } from 'react'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\nimport { RuntimeErrorHandler } from '../../../client/dev/runtime-error-handler'\nimport { ErrorBoundary } from '../../../client/components/error-boundary'\nimport DefaultGlobalError from '../../../client/components/builtin/global-error'\nimport type { GlobalErrorState } from '../../../client/components/app-router-instance'\nimport { SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE } from './segment-explorer-node'\nimport {\n AppRouterContext,\n type AppRouterInstance,\n} from '../../../shared/lib/app-router-context.shared-runtime'\nimport isError from '../../../lib/is-error'\n\ntype AppDevOverlayErrorBoundaryProps = {\n children: React.ReactNode\n globalError: GlobalErrorState\n}\n\ntype AppDevOverlayErrorBoundaryState = {\n error: null | { thrownValue: unknown }\n}\n\nfunction ErroredHtml({\n globalError: [GlobalError, globalErrorStyles],\n thrownValue,\n reset,\n retry,\n}: {\n globalError: GlobalErrorState\n thrownValue: unknown\n reset: () => void\n retry: () => void\n}) {\n return (\n <ErrorBoundary errorComponent={DefaultGlobalError}>\n {globalErrorStyles}\n <GlobalError error={thrownValue} reset={reset} retry={retry} />\n </ErrorBoundary>\n )\n}\n\nexport class AppDevOverlayErrorBoundary extends PureComponent<\n AppDevOverlayErrorBoundaryProps,\n AppDevOverlayErrorBoundaryState\n> {\n static contextType = AppRouterContext\n declare context: AppRouterInstance | null\n\n state: AppDevOverlayErrorBoundaryState = {\n error: null,\n }\n\n static getDerivedStateFromError(\n thrownValue: Error\n ): Partial<AppDevOverlayErrorBoundaryState> {\n RuntimeErrorHandler.hadRuntimeError = true\n\n return {\n error: { thrownValue },\n }\n }\n\n componentDidCatch(err: unknown) {\n if (\n process.env.NODE_ENV === 'development' &&\n isError(err) &&\n err.message === SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE\n ) {\n return\n }\n dispatcher.openErrorOverlay()\n }\n\n retry = () => {\n startTransition(() => {\n this.context?.refresh()\n this.reset()\n })\n }\n\n reset = () => {\n this.setState({ error: null })\n }\n\n render() {\n const { children, globalError } = this.props\n const { error } = this.state\n\n if (error !== null) {\n const thrownValue = error.thrownValue\n return (\n <ErroredHtml\n globalError={globalError}\n thrownValue={thrownValue}\n reset={this.reset}\n retry={this.retry}\n />\n )\n }\n\n return children\n }\n}\n"],"names":["AppDevOverlayErrorBoundary","ErroredHtml","globalError","GlobalError","globalErrorStyles","thrownValue","reset","retry","ErrorBoundary","errorComponent","DefaultGlobalError","error","PureComponent","contextType","AppRouterContext","getDerivedStateFromError","RuntimeErrorHandler","hadRuntimeError","componentDidCatch","err","process","env","NODE_ENV","isError","message","SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE","dispatcher","openErrorOverlay","render","children","props","state","startTransition","context","refresh","setState"],"mappings":"AAgEMoB,QAAQC,GAAG,CAACC,QAAQ;;;;;+BAvBbtB,8BAAAA;;;eAAAA;;;;;;iEAzCyC;8BAC3B;qCACS;+BACN;sEACC;qCAE0B;+CAIlD;kEACa;AAWpB,SAASC,YAAY,EACnBC,aAAa,CAACC,aAAaC,kBAAkB,EAC7CC,WAAW,EACXC,KAAK,EACLC,KAAK,EAMN;IACC,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,IAAA,EAACC,eAAAA,aAAa,EAAA;QAACC,gBAAgBC,aAAAA,OAAkB;;YAC9CN;0BACD,CAAA,GAAA,YAAA,GAAA,EAACD,aAAAA;gBAAYQ,OAAON;gBAAaC,OAAOA;gBAAOC,OAAOA;;;;AAG5D;AAEO,MAAMP,mCAAmCY,OAAAA,aAAa;;aAIpDC,WAAAA,GAAcC,+BAAAA,gBAAgB;;IAOrC,OAAOC,yBACLV,WAAkB,EACwB;QAC1CW,qBAAAA,mBAAmB,CAACC,eAAe,GAAG;QAEtC,OAAO;YACLN,OAAO;gBAAEN;YAAY;QACvB;IACF;IAEAa,kBAAkBC,GAAY,EAAE;QAC9B,wDAC2B,iBACzBI,CAAAA,GAAAA,SAAAA,OAAO,EAACJ,QACRA,IAAIK,OAAO,KAAKC,qBAAAA,wCAAwC,EACxD;YACA;QACF;QACAC,cAAAA,UAAU,CAACC,gBAAgB;IAC7B;IAaAC,SAAS;QACP,MAAM,EAAEC,QAAQ,EAAE3B,WAAW,EAAE,GAAG,IAAI,CAAC4B,KAAK;QAC5C,MAAM,EAAEnB,KAAK,EAAE,GAAG,IAAI,CAACoB,KAAK;QAE5B,IAAIpB,UAAU,MAAM;YAClB,MAAMN,cAAcM,MAAMN,WAAW;YACrC,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACJ,aAAAA;gBACCC,aAAaA;gBACbG,aAAaA;gBACbC,OAAO,IAAI,CAACA,KAAK;gBACjBC,OAAO,IAAI,CAACA,KAAK;;QAGvB;QAEA,OAAOsB;IACT;;QA5DK,KAAA,IAAA,OAAA,IAAA,CAOLE,KAAAA,GAAyC;YACvCpB,OAAO;QACT,GAAA,IAAA,CAuBAJ,KAAAA,GAAQ;YACNyB,CAAAA,GAAAA,OAAAA,eAAe,EAAC;gBACd,IAAI,CAACC,OAAO,EAAEC;gBACd,IAAI,CAAC5B,KAAK;YACZ;QACF,GAAA,IAAA,CAEAA,KAAAA,GAAQ;YACN,IAAI,CAAC6B,QAAQ,CAAC;gBAAExB,OAAO;YAAK;QAC9B;;AAoBF","ignoreList":[0]}},
{"offset": {"line": 898, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/app-dev-overlay-setup.ts"],"sourcesContent":["import { patchConsoleError } from './errors/intercept-console-error'\nimport { handleGlobalErrors } from './errors/use-error-handler'\nimport { initializeDebugLogForwarding } from './forward-logs'\n\nhandleGlobalErrors()\npatchConsoleError()\n\ninitializeDebugLogForwarding('app')\n"],"names":["handleGlobalErrors","patchConsoleError","initializeDebugLogForwarding"],"mappings":";;;uCAAkC;iCACC;6BACU;AAE7CA,CAAAA,GAAAA,iBAAAA,kBAAkB;AAClBC,CAAAA,GAAAA,uBAAAA,iBAAiB;AAEjBC,CAAAA,GAAAA,aAAAA,4BAA4B,EAAC","ignoreList":[0]}},
{"offset": {"line": 918, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/client-entry.tsx"],"sourcesContent":["import React from 'react'\nimport DefaultGlobalError from '../../../client/components/builtin/global-error'\nimport { AppDevOverlayErrorBoundary } from './app-dev-overlay-error-boundary'\n\n// If an error is thrown while rendering an RSC stream, this will catch it in\n// dev and show the error overlay.\nexport function RootLevelDevOverlayElement({\n children,\n}: {\n children: React.ReactNode\n}) {\n return (\n <AppDevOverlayErrorBoundary globalError={[DefaultGlobalError, null]}>\n {children}\n </AppDevOverlayErrorBoundary>\n )\n}\n"],"names":["RootLevelDevOverlayElement","children","AppDevOverlayErrorBoundary","globalError","DefaultGlobalError"],"mappings":";;;+BAMgBA,8BAAAA;;;eAAAA;;;;;gEANE;sEACa;4CACY;AAIpC,SAASA,2BAA2B,EACzCC,QAAQ,EAGT;IACC,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACC,4BAAAA,0BAA0B,EAAA;QAACC,aAAa;YAACC,aAAAA,OAAkB;YAAE;SAAK;kBAChEH;;AAGP","ignoreList":[0]}},
{"offset": {"line": 952, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/index.ts"],"sourcesContent":["export { originConsoleError } from './intercept-console-error'\nexport { handleClientError } from './use-error-handler'\nexport { decorateDevError } from './stitched-error'\n"],"names":["decorateDevError","handleClientError","originConsoleError"],"mappings":";;;;;;;;;;;;;;;IAESA,gBAAgB,EAAA;eAAhBA,eAAAA,gBAAgB;;IADhBC,iBAAiB,EAAA;eAAjBA,iBAAAA,iBAAiB;;IADjBC,kBAAkB,EAAA;eAAlBA,uBAAAA,kBAAkB;;;uCAAQ;iCACD;+BACD","ignoreList":[0]}},
{"offset": {"line": 991, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/intercept-console-error.ts"],"sourcesContent":["import isError from '../../../../lib/is-error'\nimport { isNextRouterError } from '../../../../client/components/is-next-router-error'\nimport { handleConsoleError } from './use-error-handler'\nimport { parseConsoleArgs } from '../../../../client/lib/console'\nimport { forwardErrorLog } from '../forward-logs'\n\nexport const originConsoleError = globalThis.console.error\n\n// Patch console.error to collect information about hydration errors\nexport function patchConsoleError() {\n // Ensure it's only patched once\n if (typeof window === 'undefined') {\n return\n }\n window.console.error = function error(...args: any[]) {\n let maybeError: unknown\n let isReplayedLog = false\n if (process.env.NODE_ENV !== 'production') {\n const { error: replayedError, environmentName } = parseConsoleArgs(args)\n // If environmentName is set, this is a server log replayed by React in the browser\n isReplayedLog = !!environmentName\n if (replayedError) {\n maybeError = replayedError\n } else if (isError(args[0])) {\n maybeError = args[0]\n } else {\n // See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78\n maybeError = args[1]\n }\n } else {\n maybeError = args[0]\n }\n\n if (!isNextRouterError(maybeError)) {\n if (process.env.NODE_ENV !== 'production') {\n handleConsoleError(\n // replayed errors have their own complex format string that should be used,\n // but if we pass the error directly, `handleClientError` will ignore it\n maybeError,\n args\n )\n }\n // Don't forward replayed server logs to terminal - they were already logged on the server\n if (!isReplayedLog) {\n forwardErrorLog(args)\n }\n\n originConsoleError.apply(window.console, args)\n }\n }\n}\n"],"names":["originConsoleError","patchConsoleError","globalThis","console","error","window","args","maybeError","isReplayedLog","process","env","NODE_ENV","replayedError","environmentName","parseConsoleArgs","isError","isNextRouterError","handleConsoleError","forwardErrorLog","apply"],"mappings":"AAiBQS,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;;;;;;;;;;;;IAXpBX,kBAAkB,EAAA;eAAlBA;;IAGGC,iBAAiB,EAAA;eAAjBA;;;;kEATI;mCACc;iCACC;yBACF;6BACD;AAEzB,MAAMD,qBAAqBE,WAAWC,OAAO,CAACC,KAAK;AAGnD,SAASH;IACd,gCAAgC;IAChC,IAAI,OAAOI,WAAW,aAAa;QACjC;IACF;IACAA,OAAOF,OAAO,CAACC,KAAK,GAAG,SAASA,MAAM,GAAGE,IAAW;QAClD,IAAIC;QACJ,IAAIC,gBAAgB;QACpB,wCAA2C;YACzC,MAAM,EAAEJ,OAAOQ,aAAa,EAAEC,eAAe,EAAE,GAAGC,CAAAA,GAAAA,SAAAA,gBAAgB,EAACR;YACnE,mFAAmF;YACnFE,gBAAgB,CAAC,CAACK;YAClB,IAAID,eAAe;gBACjBL,aAAaK;YACf,OAAO,IAAIG,CAAAA,GAAAA,SAAAA,OAAO,EAACT,IAAI,CAAC,EAAE,GAAG;gBAC3BC,aAAaD,IAAI,CAAC,EAAE;YACtB,OAAO;gBACL,iJAAiJ;gBACjJC,aAAaD,IAAI,CAAC,EAAE;YACtB;QACF,OAAO;;QAIP,IAAI,CAACU,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACT,aAAa;YAClC,IAAIE,QAAQC,GAAG,CAACC,QAAQ,KAAK,WAAc;gBACzCM,CAAAA,GAAAA,iBAAAA,kBAAkB,EAChB,AACA,wEAAwE,IADI;gBAE5EV,YACAD;YAEJ;YACA,0FAA0F;YAC1F,IAAI,CAACE,eAAe;gBAClBU,CAAAA,GAAAA,aAAAA,eAAe,EAACZ;YAClB;YAEAN,mBAAmBmB,KAAK,CAACd,OAAOF,OAAO,EAAEG;QAC3C;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 1067, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/replay-ssr-only-errors.tsx"],"sourcesContent":["import { useEffect } from 'react'\nimport { handleClientError } from './use-error-handler'\nimport { isNextRouterError } from '../../../../client/components/is-next-router-error'\nimport { MISSING_ROOT_TAGS_ERROR } from '../../../../shared/lib/errors/constants'\n\nfunction readSsrError(): (Error & { digest?: string }) | null {\n if (typeof document === 'undefined') {\n return null\n }\n\n const ssrErrorTemplateTag = document.querySelector(\n 'template[data-next-error-message]'\n )\n if (ssrErrorTemplateTag) {\n const message: string = ssrErrorTemplateTag.getAttribute(\n 'data-next-error-message'\n )!\n const stack = ssrErrorTemplateTag.getAttribute('data-next-error-stack')\n const digest = ssrErrorTemplateTag.getAttribute('data-next-error-digest')\n const error = new Error(message)\n if (digest) {\n ;(error as any).digest = digest\n }\n // Skip Next.js SSR'd internal errors that which will be handled by the error boundaries.\n if (isNextRouterError(error)) {\n return null\n }\n error.stack = stack || ''\n return error\n }\n\n return null\n}\n\n/**\n * Needs to be in the same error boundary as the shell.\n * If it commits, we know we recovered from an SSR error.\n * If it doesn't commit, we errored again and React will take care of error reporting.\n */\nexport function ReplaySsrOnlyErrors({\n onBlockingError,\n}: {\n onBlockingError: () => void\n}) {\n if (process.env.NODE_ENV !== 'production') {\n // Need to read during render. The attributes will be gone after commit.\n const ssrError = readSsrError()\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (ssrError !== null) {\n // TODO(veil): Include original Owner Stack (NDX-905)\n // TODO(veil): Mark as recoverable error\n // TODO(veil): console.error\n handleClientError(ssrError)\n\n // If it's missing root tags, we can't recover, make it blocking.\n if (ssrError.digest === MISSING_ROOT_TAGS_ERROR) {\n onBlockingError()\n }\n }\n }, [ssrError, onBlockingError])\n }\n\n return null\n}\n"],"names":["ReplaySsrOnlyErrors","readSsrError","document","ssrErrorTemplateTag","querySelector","message","getAttribute","stack","digest","error","Error","isNextRouterError","onBlockingError","process","env","NODE_ENV","ssrError","useEffect","handleClientError","MISSING_ROOT_TAGS_ERROR"],"mappings":"AA4CMa,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BALff,uBAAAA;;;eAAAA;;;uBAvCU;iCACQ;mCACA;2BACM;AAExC,SAASC;IACP,IAAI,OAAOC,aAAa,aAAa;QACnC,OAAO;IACT;IAEA,MAAMC,sBAAsBD,SAASE,aAAa,CAChD;IAEF,IAAID,qBAAqB;QACvB,MAAME,UAAkBF,oBAAoBG,YAAY,CACtD;QAEF,MAAMC,QAAQJ,oBAAoBG,YAAY,CAAC;QAC/C,MAAME,SAASL,oBAAoBG,YAAY,CAAC;QAChD,MAAMG,QAAQ,OAAA,cAAkB,CAAlB,IAAIC,MAAML,UAAV,qBAAA;mBAAA;wBAAA;0BAAA;QAAiB;QAC/B,IAAIG,QAAQ;;YACRC,MAAcD,MAAM,GAAGA;QAC3B;QACA,yFAAyF;QACzF,IAAIG,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACF,QAAQ;YAC5B,OAAO;QACT;QACAA,MAAMF,KAAK,GAAGA,SAAS;QACvB,OAAOE;IACT;IAEA,OAAO;AACT;AAOO,SAAST,oBAAoB,EAClCY,eAAe,EAGhB;IACC,wCAA2C;QACzC,wEAAwE;QACxE,MAAMI,WAAWf;QACjB,sDAAsD;QACtDgB,CAAAA,GAAAA,OAAAA,SAAS,EAAC;YACR,IAAID,aAAa,MAAM;gBACrB,qDAAqD;gBACrD,wCAAwC;gBACxC,4BAA4B;gBAC5BE,CAAAA,GAAAA,iBAAAA,iBAAiB,EAACF;gBAElB,iEAAiE;gBACjE,IAAIA,SAASR,MAAM,KAAKW,WAAAA,uBAAuB,EAAE;oBAC/CP;gBACF;YACF;QACF,GAAG;YAACI;YAAUJ;SAAgB;IAChC;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 1143, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/stitched-error.ts"],"sourcesContent":["import React from 'react'\nimport isError from '../../../../lib/is-error'\n\nconst ownerStacks = new WeakMap<Error, string | null>()\n\nexport function getOwnerStack(error: Error): string | null | undefined {\n return ownerStacks.get(error)\n}\nexport function setOwnerStack(error: Error, stack: string | null) {\n ownerStacks.set(error, stack)\n}\n\nexport function coerceError(value: unknown): Error {\n return isError(value) ? value : new Error('' + value)\n}\n\nexport function setOwnerStackIfAvailable(error: Error): void {\n // React 18 and prod does not have `captureOwnerStack`\n if ('captureOwnerStack' in React) {\n const ownerStack = React.captureOwnerStack()\n // Only set if we captured a valid owner stack, or if none exists yet.\n // This prevents overwriting a valid owner stack captured earlier\n // (e.g., in onRecoverableError) with null captured later.\n if (ownerStack || !ownerStacks.has(error)) {\n setOwnerStack(error, ownerStack)\n }\n }\n}\n\nexport function decorateDevError(thrownValue: unknown) {\n const error = coerceError(thrownValue)\n setOwnerStackIfAvailable(error)\n return error\n}\n"],"names":["coerceError","decorateDevError","getOwnerStack","setOwnerStack","setOwnerStackIfAvailable","ownerStacks","WeakMap","error","get","stack","set","value","isError","Error","React","ownerStack","captureOwnerStack","has","thrownValue"],"mappings":";;;;;;;;;;;;;;;;;IAYgBA,WAAW,EAAA;eAAXA;;IAiBAC,gBAAgB,EAAA;eAAhBA;;IAxBAC,aAAa,EAAA;eAAbA;;IAGAC,aAAa,EAAA;eAAbA;;IAQAC,wBAAwB,EAAA;eAAxBA;;;;gEAhBE;kEACE;AAEpB,MAAMC,cAAc,IAAIC;AAEjB,SAASJ,cAAcK,KAAY;IACxC,OAAOF,YAAYG,GAAG,CAACD;AACzB;AACO,SAASJ,cAAcI,KAAY,EAAEE,KAAoB;IAC9DJ,YAAYK,GAAG,CAACH,OAAOE;AACzB;AAEO,SAAST,YAAYW,KAAc;IACxC,OAAOC,CAAAA,GAAAA,SAAAA,OAAO,EAACD,SAASA,QAAQ,OAAA,cAAqB,CAArB,IAAIE,MAAM,KAAKF,QAAf,qBAAA;eAAA;oBAAA;sBAAA;IAAoB;AACtD;AAEO,SAASP,yBAAyBG,KAAY;IACnD,sDAAsD;IACtD,IAAI,uBAAuBO,OAAAA,OAAK,EAAE;QAChC,MAAMC,aAAaD,OAAAA,OAAK,CAACE,iBAAiB;QAC1C,sEAAsE;QACtE,iEAAiE;QACjE,0DAA0D;QAC1D,IAAID,cAAc,CAACV,YAAYY,GAAG,CAACV,QAAQ;YACzCJ,cAAcI,OAAOQ;QACvB;IACF;AACF;AAEO,SAASd,iBAAiBiB,WAAoB;IACnD,MAAMX,QAAQP,YAAYkB;IAC1Bd,yBAAyBG;IACzB,OAAOA;AACT","ignoreList":[0]}},
{"offset": {"line": 1221, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/use-error-handler.ts"],"sourcesContent":["import { useEffect } from 'react'\nimport { isNextRouterError } from '../../../../client/components/is-next-router-error'\nimport {\n formatConsoleArgs,\n parseConsoleArgs,\n} from '../../../../client/lib/console'\nimport isError from '../../../../lib/is-error'\nimport { createConsoleError } from '../../../shared/console-error'\nimport { coerceError, setOwnerStackIfAvailable } from './stitched-error'\nimport { forwardUnhandledError, logUnhandledRejection } from '../forward-logs'\n\nconst queueMicroTask =\n globalThis.queueMicrotask || ((cb: () => void) => Promise.resolve().then(cb))\n\ntype ErrorHandler = (error: Error) => void\n\nconst errorQueue: Array<Error> = []\nconst errorHandlers: Array<ErrorHandler> = []\nconst rejectionQueue: Array<Error> = []\nconst rejectionHandlers: Array<ErrorHandler> = []\n\nexport function handleConsoleError(\n originError: unknown,\n consoleErrorArgs: any[]\n) {\n let error: Error\n const { environmentName } = parseConsoleArgs(consoleErrorArgs)\n if (isError(originError)) {\n error = createConsoleError(originError, environmentName)\n } else {\n error = createConsoleError(\n formatConsoleArgs(consoleErrorArgs),\n environmentName\n )\n }\n setOwnerStackIfAvailable(error)\n\n errorQueue.push(error)\n for (const handler of errorHandlers) {\n // Delayed the error being passed to React Dev Overlay,\n // avoid the state being synchronously updated in the component.\n queueMicroTask(() => {\n handler(error)\n })\n }\n}\n\nexport function handleClientError(error: Error) {\n errorQueue.push(error)\n for (const handler of errorHandlers) {\n // Delayed the error being passed to React Dev Overlay,\n // avoid the state being synchronously updated in the component.\n queueMicroTask(() => {\n handler(error)\n })\n }\n}\n\nexport function useErrorHandler(\n handleOnUnhandledError: ErrorHandler,\n handleOnUnhandledRejection: ErrorHandler\n) {\n useEffect(() => {\n // Handle queued errors.\n errorQueue.forEach(handleOnUnhandledError)\n rejectionQueue.forEach(handleOnUnhandledRejection)\n\n // Listen to new errors.\n errorHandlers.push(handleOnUnhandledError)\n rejectionHandlers.push(handleOnUnhandledRejection)\n\n return () => {\n // Remove listeners.\n errorHandlers.splice(errorHandlers.indexOf(handleOnUnhandledError), 1)\n rejectionHandlers.splice(\n rejectionHandlers.indexOf(handleOnUnhandledRejection),\n 1\n )\n\n // Reset error queues.\n errorQueue.splice(0, errorQueue.length)\n rejectionQueue.splice(0, rejectionQueue.length)\n }\n }, [handleOnUnhandledError, handleOnUnhandledRejection])\n}\n\nfunction onUnhandledError(event: WindowEventMap['error']): void | boolean {\n const thrownValue: unknown = event.error\n if (isNextRouterError(thrownValue)) {\n event.preventDefault()\n return false\n }\n // When there's an error property present, we log the error to error overlay.\n // Otherwise we don't do anything as it's not logging in the console either.\n if (thrownValue) {\n const error = coerceError(thrownValue)\n setOwnerStackIfAvailable(error)\n handleClientError(error)\n forwardUnhandledError(error)\n }\n}\n\nfunction onUnhandledRejection(ev: WindowEventMap['unhandledrejection']): void {\n const reason: unknown = ev?.reason\n if (isNextRouterError(reason)) {\n ev.preventDefault()\n return\n }\n\n const error = coerceError(reason)\n setOwnerStackIfAvailable(error)\n\n rejectionQueue.push(error)\n for (const handler of rejectionHandlers) {\n handler(error)\n }\n\n logUnhandledRejection(reason)\n}\n\nexport function handleGlobalErrors() {\n if (typeof window !== 'undefined') {\n try {\n // Increase the number of stack frames on the client\n Error.stackTraceLimit = 50\n } catch {}\n\n window.addEventListener('error', onUnhandledError)\n window.addEventListener('unhandledrejection', onUnhandledRejection)\n }\n}\n"],"names":["handleClientError","handleConsoleError","handleGlobalErrors","useErrorHandler","queueMicroTask","globalThis","queueMicrotask","cb","Promise","resolve","then","errorQueue","errorHandlers","rejectionQueue","rejectionHandlers","originError","consoleErrorArgs","error","environmentName","parseConsoleArgs","isError","createConsoleError","formatConsoleArgs","setOwnerStackIfAvailable","push","handler","handleOnUnhandledError","handleOnUnhandledRejection","useEffect","forEach","splice","indexOf","length","onUnhandledError","event","thrownValue","isNextRouterError","preventDefault","coerceError","forwardUnhandledError","onUnhandledRejection","ev","reason","logUnhandledRejection","window","Error","stackTraceLimit","addEventListener"],"mappings":";;;;;;;;;;;;;;;;IALine truncated
{"offset": {"line": 1362, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs-utils.ts"],"sourcesContent":["import { configure } from 'next/dist/compiled/safe-stable-stringify'\nimport { getTerminalLoggingConfig } from './terminal-logging-config'\nimport { UNDEFINED_MARKER } from '../../shared/forward-logs-shared'\n\nconst terminalLoggingConfig = getTerminalLoggingConfig()\n\nconst PROMISE_MARKER = 'Promise {}'\nconst UNAVAILABLE_MARKER = '[Unable to view]'\n\nconst maximumDepth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.depthLimit\n ? terminalLoggingConfig.depthLimit\n : 5\nconst maximumBreadth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.edgeLimit\n ? terminalLoggingConfig.edgeLimit\n : 100\n\nexport const safeStringifyWithDepth = configure({\n maximumDepth,\n maximumBreadth,\n})\n\n/**\n * allows us to:\n * - revive the undefined log in the server as it would look in the browser\n * - not read/attempt to serialize promises (next will console error if you do that, and will cause this program to infinitely recurse)\n * - if we read a proxy that throws (no way to detect if something is a proxy), explain to the user we can't read this data\n */\nexport function preLogSerializationClone<T>(\n value: T,\n seen = new WeakMap()\n): any {\n if (value === undefined) return UNDEFINED_MARKER\n if (value === null || typeof value !== 'object') return value\n if (seen.has(value as object)) return seen.get(value as object)\n\n try {\n Object.keys(value as object)\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n try {\n if (typeof (value as any).then === 'function') return PROMISE_MARKER\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n if (Array.isArray(value)) {\n const out: any[] = []\n seen.set(value, out)\n for (const item of value) {\n try {\n out.push(preLogSerializationClone(item, seen))\n } catch {\n out.push(UNAVAILABLE_MARKER)\n }\n }\n return out\n }\n\n const proto = Object.getPrototypeOf(value)\n if (proto === Object.prototype || proto === null) {\n const out: Record<string, unknown> = {}\n seen.set(value as object, out)\n for (const key of Object.keys(value as object)) {\n try {\n out[key] = preLogSerializationClone((value as any)[key], seen)\n } catch {\n out[key] = UNAVAILABLE_MARKER\n }\n }\n return out\n }\n\n return Object.prototype.toString.call(value)\n}\n\n// only safe if passed safeClone data\nexport const logStringify = (data: unknown): string => {\n try {\n const result = safeStringifyWithDepth(data)\n return result ?? `\"${UNAVAILABLE_MARKER}\"`\n } catch {\n return `\"${UNAVAILABLE_MARKER}\"`\n }\n}\n"],"names":["logStringify","preLogSerializationClone","safeStringifyWithDepth","terminalLoggingConfig","getTerminalLoggingConfig","PROMISE_MARKER","UNAVAILABLE_MARKER","maximumDepth","depthLimit","maximumBreadth","edgeLimit","configure","value","seen","WeakMap","undefined","UNDEFINED_MARKER","has","get","Object","keys","then","Array","isArray","out","set","item","push","proto","getPrototypeOf","prototype","key","toString","call","data","result"],"mappings":";;;;;;;;;;;;;;;IAgFaA,YAAY,EAAA;eAAZA;;IAnDGC,wBAAwB,EAAA;eAAxBA;;IAXHC,sBAAsB,EAAA;eAAtBA;;;qCAlBa;uCACe;mCACR;AAEjC,MAAMC,wBAAwBC,CAAAA,GAAAA,uBAAAA,wBAAwB;AAEtD,MAAMC,iBAAiB;AACvB,MAAMC,qBAAqB;AAE3B,MAAMC,eACJ,OAAOJ,0BAA0B,YAAYA,sBAAsBK,UAAU,GACzEL,sBAAsBK,UAAU,GAChC;AACN,MAAMC,iBACJ,OAAON,0BAA0B,YAAYA,sBAAsBO,SAAS,GACxEP,sBAAsBO,SAAS,GAC/B;AAEC,MAAMR,yBAAyBS,CAAAA,GAAAA,qBAAAA,SAAS,EAAC;IAC9CJ;IACAE;AACF;AAQO,SAASR,yBACdW,KAAQ,EACRC,OAAO,IAAIC,SAAS;IAEpB,IAAIF,UAAUG,WAAW,OAAOC,mBAAAA,gBAAgB;IAChD,IAAIJ,UAAU,QAAQ,OAAOA,UAAU,UAAU,OAAOA;IACxD,IAAIC,KAAKI,GAAG,CAACL,QAAkB,OAAOC,KAAKK,GAAG,CAACN;IAE/C,IAAI;QACFO,OAAOC,IAAI,CAACR;IACd,EAAE,OAAM;QACN,OAAON;IACT;IAEA,IAAI;QACF,IAAI,OAAQM,MAAcS,IAAI,KAAK,YAAY,OAAOhB;IACxD,EAAE,OAAM;QACN,OAAOC;IACT;IAEA,IAAIgB,MAAMC,OAAO,CAACX,QAAQ;QACxB,MAAMY,MAAa,EAAE;QACrBX,KAAKY,GAAG,CAACb,OAAOY;QAChB,KAAK,MAAME,QAAQd,MAAO;YACxB,IAAI;gBACFY,IAAIG,IAAI,CAAC1B,yBAAyByB,MAAMb;YAC1C,EAAE,OAAM;gBACNW,IAAIG,IAAI,CAACrB;YACX;QACF;QACA,OAAOkB;IACT;IAEA,MAAMI,QAAQT,OAAOU,cAAc,CAACjB;IACpC,IAAIgB,UAAUT,OAAOW,SAAS,IAAIF,UAAU,MAAM;QAChD,MAAMJ,MAA+B,CAAC;QACtCX,KAAKY,GAAG,CAACb,OAAiBY;QAC1B,KAAK,MAAMO,OAAOZ,OAAOC,IAAI,CAACR,OAAkB;YAC9C,IAAI;gBACFY,GAAG,CAACO,IAAI,GAAG9B,yBAA0BW,KAAa,CAACmB,IAAI,EAAElB;YAC3D,EAAE,OAAM;gBACNW,GAAG,CAACO,IAAI,GAAGzB;YACb;QACF;QACA,OAAOkB;IACT;IAEA,OAAOL,OAAOW,SAAS,CAACE,QAAQ,CAACC,IAAI,CAACrB;AACxC;AAGO,MAAMZ,eAAe,CAACkC;IAC3B,IAAI;QACF,MAAMC,SAASjC,uBAAuBgC;QACtC,OAAOC,UAAU,CAAC,CAAC,EAAE7B,mBAAmB,CAAC,CAAC;IAC5C,EAAE,OAAM;QACN,OAAO,CAAC,CAAC,EAAEA,mBAAmB,CAAC,CAAC;IAClC;AACF","ignoreList":[0]}},
{"offset": {"line": 1459, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs.ts"],"sourcesContent":["import { getErrorSource } from '../../../shared/lib/error-source'\nimport { getIsTerminalLoggingEnabled } from './terminal-logging-config'\nimport {\n type ConsoleEntry,\n type ConsoleErrorEntry,\n type FormattedErrorEntry,\n type ClientLogEntry,\n type LogMethod,\n patchConsoleMethod,\n wasErrorAlreadyLoggedOnServer,\n} from '../../shared/forward-logs-shared'\nimport { preLogSerializationClone, logStringify } from './forward-logs-utils'\nimport { getOwnerStack } from './errors/stitched-error'\n\nconst isTerminalLoggingEnabled = getIsTerminalLoggingEnabled()\nconst shouldForwardLogs =\n isTerminalLoggingEnabled || !!process.env.__NEXT_MCP_SERVER\n\nconst methods: Array<LogMethod> = [\n 'log',\n 'info',\n 'warn',\n 'debug',\n 'table',\n 'assert',\n 'dir',\n 'dirxml',\n 'group',\n 'groupCollapsed',\n 'groupEnd',\n 'trace',\n]\n\nconst afterThisFrame = (cb: () => void) => {\n let timeout: ReturnType<typeof setTimeout> | undefined\n\n const rafId = requestAnimationFrame(() => {\n timeout = setTimeout(() => {\n cb()\n })\n })\n\n return () => {\n cancelAnimationFrame(rafId)\n clearTimeout(timeout)\n }\n}\n\nlet isPatched = false\n\nconst serializeEntries = (entries: Array<ClientLogEntry>) =>\n entries.map((clientEntry) => {\n switch (clientEntry.kind) {\n case 'any-logged-error':\n case 'console': {\n return {\n ...clientEntry,\n args: clientEntry.args.map(stringifyUserArg),\n }\n }\n case 'formatted-error': {\n return clientEntry\n }\n default: {\n return null!\n }\n }\n })\n\nconst flushBufferedEntries = (socket: WebSocket) => {\n if (logQueue.entries.length === 0) {\n return\n }\n\n const payload = JSON.stringify({\n event: 'browser-logs',\n entries: serializeEntries(logQueue.entries),\n router: logQueue.router,\n // needed for source mapping, we just assign the sourceType from the last error for the whole batch\n sourceType: logQueue.sourceType,\n })\n\n socket.send(payload)\n logQueue.entries = []\n logQueue.sourceType = undefined\n}\n\n// Combined state and public API\nexport const logQueue: {\n entries: Array<ClientLogEntry>\n onSocketReady: (socket: WebSocket) => void\n flushScheduled: boolean\n socket: WebSocket | null\n cancelFlush: (() => void) | null\n sourceType?: 'server' | 'edge-server'\n router: 'app' | 'pages' | null\n scheduleLogSend: (entry: ClientLogEntry) => void\n} = {\n entries: [],\n flushScheduled: false,\n cancelFlush: null,\n socket: null,\n sourceType: undefined,\n router: null,\n scheduleLogSend: (entry: ClientLogEntry) => {\n logQueue.entries.push(entry)\n if (logQueue.flushScheduled) {\n return\n }\n // safe to deref and use in setTimeout closure since we cancel on new socket\n const socket = logQueue.socket\n if (!socket) {\n return\n }\n\n // we probably dont need this\n logQueue.flushScheduled = true\n\n // non blocking log flush, runs at most once per frame\n logQueue.cancelFlush = afterThisFrame(() => {\n logQueue.flushScheduled = false\n\n // just incase\n try {\n flushBufferedEntries(socket)\n } catch {\n // error (make sure u don't infinite loop)\n /* noop */\n }\n })\n },\n onSocketReady: (socket: WebSocket) => {\n // When MCP or terminal logging is enabled, we enable the socket connection,\n // otherwise it will not proceed.\n if (!shouldForwardLogs) {\n return\n }\n if (socket.readyState !== WebSocket.OPEN) {\n // invariant\n return\n }\n\n // incase an existing timeout was going to run with a stale socket\n logQueue.cancelFlush?.()\n logQueue.socket = socket\n\n try {\n flushBufferedEntries(socket)\n } catch {\n /** noop just incase */\n }\n },\n}\n\nconst stringifyUserArg = (\n arg:\n | {\n kind: 'arg'\n data: unknown\n }\n | {\n kind: 'formatted-error-arg'\n }\n) => {\n if (arg.kind !== 'arg') {\n return arg\n }\n return {\n ...arg,\n data: logStringify(arg.data),\n }\n}\n\nconst createErrorArg = (error: Error) => {\n return {\n kind: 'formatted-error-arg' as const,\n prefix: error.message ? `${error.name}: ${error.message}` : `${error.name}`,\n stack: getErrorStackWithOwnerStack(error),\n }\n}\n\nconst createLogEntry = (level: LogMethod, args: any[]) => {\n if (!shouldForwardLogs) {\n return\n }\n\n // do not abstract this, it implicitly relies on which functions call it. forcing the inlined implementation makes you think about callers\n // error capture stack trace maybe\n const stack = getErrorStack(new Error())\n const stackLines = stack?.split('\\n')\n const cleanStack = stLine truncated
{"offset": {"line": 1822, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/segment-explorer-node.tsx"],"sourcesContent":["'use client'\n\nimport type { ReactNode } from 'react'\nimport {\n useState,\n createContext,\n useContext,\n use,\n useMemo,\n useCallback,\n} from 'react'\nimport { useLayoutEffect } from 'react'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\nimport { GlobalLayoutRouterContext } from '../../../shared/lib/app-router-context.shared-runtime'\nimport { notFound } from '../../../client/components/not-found'\n\nexport type SegmentBoundaryType =\n | 'not-found'\n | 'error'\n | 'loading'\n | 'global-error'\n\nexport const SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE =\n 'NEXT_DEVTOOLS_SIMULATED_ERROR'\n\nexport type SegmentNodeState = {\n type: string\n pagePath: string\n boundaryType: string | null\n setBoundaryType: (type: SegmentBoundaryType | null) => void\n}\n\nfunction SegmentTrieNode({\n type,\n pagePath,\n}: {\n type: string\n pagePath: string\n}): React.ReactNode {\n const { boundaryType, setBoundaryType } = useSegmentState()\n const nodeState: SegmentNodeState = useMemo(() => {\n return {\n type,\n pagePath,\n boundaryType,\n setBoundaryType,\n }\n }, [type, pagePath, boundaryType, setBoundaryType])\n\n // Use `useLayoutEffect` to ensure the state is updated during suspense.\n // `useEffect` won't work as the state is preserved during suspense.\n useLayoutEffect(() => {\n dispatcher.segmentExplorerNodeAdd(nodeState)\n return () => {\n dispatcher.segmentExplorerNodeRemove(nodeState)\n }\n }, [nodeState])\n\n return null\n}\n\nfunction NotFoundSegmentNode(): React.ReactNode {\n notFound()\n}\n\nfunction ErrorSegmentNode(): React.ReactNode {\n throw new Error(SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE)\n}\n\nconst forever = new Promise(() => {})\nfunction LoadingSegmentNode(): React.ReactNode {\n use(forever)\n return null\n}\n\nexport function SegmentViewStateNode({ page }: { page: string }) {\n const { tree } = useContext(GlobalLayoutRouterContext)\n useLayoutEffect(() => {\n dispatcher.segmentExplorerUpdateRouteState(page, tree)\n return () => {\n dispatcher.segmentExplorerUpdateRouteState('', null)\n }\n }, [page, tree])\n return null\n}\n\nexport function SegmentBoundaryTriggerNode() {\n const { boundaryType } = useSegmentState()\n let segmentNode: React.ReactNode = null\n if (boundaryType === 'loading') {\n segmentNode = <LoadingSegmentNode />\n } else if (boundaryType === 'not-found') {\n segmentNode = <NotFoundSegmentNode />\n } else if (boundaryType === 'error') {\n segmentNode = <ErrorSegmentNode />\n }\n return segmentNode\n}\n\nexport function SegmentViewNode({\n type,\n pagePath,\n children,\n}: {\n type: string\n pagePath: string\n children?: ReactNode\n}): React.ReactNode {\n const segmentNode = (\n <SegmentTrieNode key={type} type={type} pagePath={pagePath} />\n )\n\n return (\n <>\n {segmentNode}\n {children}\n </>\n )\n}\n\nconst SegmentStateContext = createContext<{\n boundaryType: SegmentBoundaryType | null\n setBoundaryType: (type: SegmentBoundaryType | null) => void\n}>({\n boundaryType: null,\n setBoundaryType: () => {},\n})\n\nexport function SegmentStateProvider({ children }: { children: ReactNode }) {\n const [boundaryType, setBoundaryType] = useState<SegmentBoundaryType | null>(\n null\n )\n\n const [errorBoundaryKey, setErrorBoundaryKey] = useState(0)\n const reloadBoundary = useCallback(\n () => setErrorBoundaryKey((prev) => prev + 1),\n []\n )\n\n const setBoundaryTypeAndReload = useCallback(\n (type: SegmentBoundaryType | null) => {\n if (type === null) {\n reloadBoundary()\n }\n setBoundaryType(type)\n },\n [reloadBoundary]\n )\n\n return (\n <SegmentStateContext.Provider\n key={errorBoundaryKey}\n value={{\n boundaryType,\n setBoundaryType: setBoundaryTypeAndReload,\n }}\n >\n {children}\n </SegmentStateContext.Provider>\n )\n}\n\nexport function useSegmentState() {\n return useContext(SegmentStateContext)\n}\n"],"names":["SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE","SegmentBoundaryTriggerNode","SegmentStateProvider","SegmentViewNode","SegmentViewStateNode","useSegmentState","SegmentTrieNode","type","pagePath","boundaryType","setBoundaryType","nodeState","useMemo","useLayoutEffect","dispatcher","segmentExplorerNodeAdd","segmentExplorerNodeRemove","NotFoundSegmentNode","notFound","ErrorSegmentNode","Error","forever","Promise","LoadingSegmentNode","use","page","tree","useContext","GlobalLayoutRouterContext","segmentExplorerUpdateRouteState","segmentNode","children","SegmentStateContext","createContext","useState","errorBoundaryKey","setErrorBoundaryKey","reloadBoundary","useCallback","prev","setBoundaryTypeAndReload","Provider","valLine truncated
{"offset": {"line": 1982, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/terminal-logging-config.ts"],"sourcesContent":["export function getTerminalLoggingConfig():\n | false\n | boolean\n | {\n depthLimit?: number\n edgeLimit?: number\n showSourceLocation?: boolean\n } {\n try {\n return JSON.parse(\n process.env.__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL || 'false'\n )\n } catch {\n return false\n }\n}\n\nexport function getIsTerminalLoggingEnabled(): boolean {\n const config = getTerminalLoggingConfig()\n return Boolean(config)\n}\n"],"names":["getIsTerminalLoggingEnabled","getTerminalLoggingConfig","JSON","parse","process","env","__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL","config","Boolean"],"mappings":"AAUMI,QAAQC,GAAG,CAACC,qCAAqC;;;;;;;;;;;;;;;;IAOvCN,2BAA2B,EAAA;eAA3BA;;IAjBAC,wBAAwB,EAAA;eAAxBA;;;AAAT,SAASA;IAQd,IAAI;QACF,OAAOC,KAAKC,KAAK,+CACsC;IAEzD,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEO,SAASH;IACd,MAAMO,SAASN;IACf,OAAOO,QAAQD;AACjB","ignoreList":[0]}},
{"offset": {"line": 2027, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/use-app-dev-rendering-indicator.tsx"],"sourcesContent":["'use client'\n\nimport { useEffect, useTransition } from 'react'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\n\nexport const useAppDevRenderingIndicator = () => {\n const [isPending, startTransition] = useTransition()\n\n useEffect(() => {\n if (isPending) {\n dispatcher.renderingIndicatorShow()\n } else {\n dispatcher.renderingIndicatorHide()\n }\n }, [isPending])\n\n return startTransition\n}\n"],"names":["useAppDevRenderingIndicator","isPending","startTransition","useTransition","useEffect","dispatcher","renderingIndicatorShow","renderingIndicatorHide"],"mappings":";;;+BAKaA,+BAAAA;;;eAAAA;;;uBAH4B;8BACd;AAEpB,MAAMA,8BAA8B;IACzC,MAAM,CAACC,WAAWC,gBAAgB,GAAGC,CAAAA,GAAAA,OAAAA,aAAa;IAElDC,CAAAA,GAAAA,OAAAA,SAAS,EAAC;QACR,IAAIH,WAAW;YACbI,cAAAA,UAAU,CAACC,sBAAsB;QACnC,OAAO;YACLD,cAAAA,UAAU,CAACE,sBAAsB;QACnC;IACF,GAAG;QAACN;KAAU;IAEd,OAAOC;AACT","ignoreList":[0]}},
{"offset": {"line": 2062, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/dev/hot-reloader-types.ts"],"sourcesContent":["import type { IncomingMessage, ServerResponse } from 'http'\nimport type { UrlObject } from 'url'\nimport type { Duplex } from 'stream'\nimport type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type getBaseWebpackConfig from '../../build/webpack-config'\nimport type { RouteDefinition } from '../route-definitions/route-definition'\nimport type { Project, Update as TurbopackUpdate } from '../../build/swc/types'\nimport type { VersionInfo } from './parse-version-info'\nimport type { DebugInfo } from '../../next-devtools/shared/types'\nimport type { DevIndicatorServerState } from './dev-indicator-server-state'\nimport type {\n CacheIndicatorState,\n ServerCacheStatus,\n} from '../../next-devtools/dev-overlay/cache-indicator'\nimport type { DevToolsConfig } from '../../next-devtools/dev-overlay/shared'\nimport type {\n RequestInsight,\n RequestInsightsSnapshot,\n} from '../../next-devtools/shared/request-insights'\nimport type { ReactDebugChannelForBrowser } from './debug-channel'\nimport type { AnyStream } from '../app-render/stream-ops'\n\nexport const enum HMR_MESSAGE_SENT_TO_BROWSER {\n // JSON messages:\n ADDED_PAGE = 'addedPage',\n REMOVED_PAGE = 'removedPage',\n RELOAD_PAGE = 'reloadPage',\n SERVER_COMPONENT_CHANGES = 'serverComponentChanges',\n STATIC_PARAMS_CHANGED = 'staticParamsChanged',\n MIDDLEWARE_CHANGES = 'middlewareChanges',\n CLIENT_CHANGES = 'clientChanges',\n SERVER_ONLY_CHANGES = 'serverOnlyChanges',\n SYNC = 'sync',\n BUILT = 'built',\n BUILDING = 'building',\n DEV_PAGES_MANIFEST_UPDATE = 'devPagesManifestUpdate',\n TURBOPACK_MESSAGE = 'turbopack-message',\n SERVER_ERROR = 'serverError',\n TURBOPACK_CONNECTED = 'turbopack-connected',\n ISR_MANIFEST = 'isrManifest',\n CACHE_INDICATOR = 'cacheIndicator',\n DEV_INDICATOR = 'devIndicator',\n DEVTOOLS_CONFIG = 'devtoolsConfig',\n REQUEST_CURRENT_ERROR_STATE = 'requestCurrentErrorState',\n REQUEST_PAGE_METADATA = 'requestPageMetadata',\n REQUEST_INSIGHTS_UPDATE = 'requestInsightsUpdate',\n\n // Binary messages:\n REACT_DEBUG_CHUNK = 0,\n ERRORS_TO_SHOW_IN_BROWSER = 1,\n}\n\nexport const enum HMR_MESSAGE_SENT_TO_SERVER {\n // JSON messages:\n MCP_ERROR_STATE_RESPONSE = 'mcp-error-state-response',\n MCP_PAGE_METADATA_RESPONSE = 'mcp-page-metadata-response',\n PING = 'ping',\n}\n\nexport interface ServerErrorMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR\n errorJSON: string\n}\n\nexport interface TurbopackMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE\n data: TurbopackUpdate | TurbopackUpdate[]\n}\n\nexport interface BuildingMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILDING\n}\n\nexport interface CompilationError {\n moduleName?: string\n message: string\n details?: string\n moduleTrace?: Array<{ moduleName?: string }>\n stack?: string\n}\n\nexport interface SyncMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SYNC\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n versionInfo: VersionInfo\n updatedModules?: ReadonlyArray<string>\n debug?: DebugInfo\n devIndicator: DevIndicatorServerState\n devToolsConfig?: DevToolsConfig\n requestInsights?: RequestInsightsSnapshot\n}\n\nexport interface BuiltMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILT\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n updatedModules?: ReadonlyArray<string>\n}\n\nexport interface AddedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE\n data: [page: string | null]\n}\n\nexport interface RemovedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE\n data: [page: string | null]\n}\n\nexport interface ReloadPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE\n data: string\n}\n\nexport interface ServerComponentChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES\n}\n\n/**\n * Sent in dev when a route's set of statically-known params changed, e.g.\n * because `generateStaticParams` was added, removed, or edited.\n */\nexport interface StaticParamsChangedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.STATIC_PARAMS_CHANGED\n}\n\nexport interface MiddlewareChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES\n}\n\nexport interface ClientChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES\n}\n\nexport interface ServerOnlyChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES\n pages: ReadonlyArray<string>\n}\n\nexport interface DevPagesManifestUpdateMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE\n data: [\n {\n devPagesManifest: true\n },\n ]\n}\n\nexport interface TurbopackConnectedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOLine truncated
{"offset": {"line": 2123, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/action-revalidation-kind.ts"],"sourcesContent":["export type ActionRevalidationKind = 0 | 1 | 2\n\nexport const ActionDidNotRevalidate = 0\nexport const ActionDidRevalidateStaticAndDynamic = 1\nexport const ActionDidRevalidateDynamicOnly = 2\n"],"names":["ActionDidNotRevalidate","ActionDidRevalidateDynamicOnly","ActionDidRevalidateStaticAndDynamic"],"mappings":";;;;;;;;;;;;;;;IAEaA,sBAAsB,EAAA;eAAtBA;;IAEAC,8BAA8B,EAAA;eAA9BA;;IADAC,mCAAmC,EAAA;eAAnCA;;;AADN,MAAMF,yBAAyB;AAC/B,MAAME,sCAAsC;AAC5C,MAAMD,iCAAiC","ignoreList":[0]}},
{"offset": {"line": 2155, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/app-router-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport type {\n FocusAndScrollRef,\n PrefetchKind,\n} from '../../client/components/router-reducer/router-reducer-types'\nimport type { Params } from '../../server/request/params'\nimport type {\n FlightRouterState,\n FlightSegmentPath,\n CacheNode,\n LoadingModuleData,\n} from './app-router-types'\nimport React from 'react'\n\nexport interface NavigateOptions {\n scroll?: boolean\n /**\n * Transition types to apply when navigating. These types are passed to\n * [`React.addTransitionType`](https://react.dev/reference/react/addTransitionType)\n * inside the navigation transition, enabling\n * [`<ViewTransition>`](https://react.dev/reference/react/ViewTransition) components\n * to apply different animations based on the type of navigation.\n */\n transitionTypes?: string[]\n}\n\nexport interface PrefetchOptions {\n kind: PrefetchKind\n onInvalidate?: () => void\n}\n\nexport interface AppRouterInstance {\n /**\n * Navigate to the previous history entry.\n */\n back(): void\n /**\n * Navigate to the next history entry.\n */\n forward(): void\n /**\n * Refresh the current page.\n */\n refresh(): void\n /**\n * Refresh the current page. Use in development only.\n * @internal\n */\n hmrRefresh(): void\n /**\n * Navigate to the provided href.\n * Pushes a new history entry.\n */\n push(href: string, options?: NavigateOptions): void\n /**\n * Navigate to the provided href.\n * Replaces the current history entry.\n */\n replace(href: string, options?: NavigateOptions): void\n /**\n * Prefetch the provided href.\n */\n prefetch(href: string, options?: PrefetchOptions): void\n /**\n * Perform a gesture navigation using prefetched data.\n * Only available when experimental.gestureTransition is enabled.\n * @experimental\n */\n experimental_gesturePush?(href: string, options?: NavigateOptions): void\n /**\n * An opaque string identifier scoped to the current route segment.\n *\n * Changes when the surrounding segment is freshly created by a push or\n * replace navigation. Stays the same for back/forward navigations,\n * `router.refresh()`, and search-param/hash-only changes.\n *\n * Intended to be passed to a React `key` to opt out of state preservation\n * on fresh navigations:\n *\n * ```tsx\n * <form key={useRouter().bfcacheId}>\n * ```\n *\n * In most cases, prefer resetting state explicitly in an event handler, or\n * deriving a key from your data (e.g. a draft id from the server). Use\n * `bfcacheId` only when those patterns aren't a fit.\n */\n bfcacheId: string\n}\n\nexport const AppRouterContext = React.createContext<AppRouterInstance | null>(\n null\n)\nexport const LayoutRouterContext = React.createContext<{\n parentTree: FlightRouterState\n parentCacheNode: CacheNode\n parentSegmentPath: FlightSegmentPath | null\n parentParams: Params\n parentLoadingData: LoadingModuleData | null\n debugNameContext: string\n url: string\n isActive: boolean\n} | null>(null)\n\nexport const GlobalLayoutRouterContext = React.createContext<{\n tree: FlightRouterState\n focusAndScrollRef: FocusAndScrollRef\n nextUrl: string | null\n previousNextUrl: string | null\n}>(null as any)\n\nexport const TemplateContext = React.createContext<React.ReactNode>(null as any)\n\nif (process.env.NODE_ENV !== 'production') {\n AppRouterContext.displayName = 'AppRouterContext'\n LayoutRouterContext.displayName = 'LayoutRouterContext'\n GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext'\n TemplateContext.displayName = 'TemplateContext'\n}\n\nexport const MissingSlotContext = React.createContext<Set<string>>(new Set())\n"],"names":["AppRouterContext","GlobalLayoutRouterContext","LayoutRouterContext","MissingSlotContext","TemplateContext","React","createContext","process","env","NODE_ENV","displayName","Set"],"mappings":"AAkHIO,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAlH7B;;;;;;;;;;;;;;;;;;;IA2FaT,gBAAgB,EAAA;eAAhBA;;IAcAC,yBAAyB,EAAA;eAAzBA;;IAXAC,mBAAmB,EAAA;eAAnBA;;IA2BAC,kBAAkB,EAAA;eAAlBA;;IATAC,eAAe,EAAA;eAAfA;;;;gEAnGK;AA8EX,MAAMJ,mBAAmBK,OAAAA,OAAK,CAACC,aAAa,CACjD;AAEK,MAAMJ,sBAAsBG,OAAAA,OAAK,CAACC,aAAa,CAS5C;AAEH,MAAML,4BAA4BI,OAAAA,OAAK,CAACC,aAAa,CAKzD;AAEI,MAAMF,kBAAkBC,OAAAA,OAAK,CAACC,aAAa,CAAkB;AAEpE,wCAA2C;IACzCN,iBAAiBU,WAAW,GAAG;IAC/BR,oBAAoBQ,WAAW,GAAG;IAClCT,0BAA0BS,WAAW,GAAG;IACxCN,gBAAgBM,WAAW,GAAG;AAChC;AAEO,MAAMP,qBAAqBE,OAAAA,OAAK,CAACC,aAAa,CAAc,IAAIK","ignoreList":[0]}},
{"offset": {"line": 2208, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/app-router-types.ts"],"sourcesContent":["/**\n * App Router types - Client-safe types for the Next.js App Router\n *\n * This file contains type definitions that can be safely imported\n * by both client-side and server-side code without circular dependencies.\n */\n\nimport type React from 'react'\n\nexport type LoadingModuleData =\n | [React.JSX.Element, React.ReactNode, React.ReactNode]\n | null\n\nimport type { VaryParamsIterable } from './segment-cache/vary-params-decoding'\n\n/** viewport metadata node */\nexport type HeadData = React.ReactNode\n\n/**\n * Cache node used in app-router / layout-router.\n */\n\nexport type CacheNode = {\n /**\n * When rsc is not null, it represents the RSC data for the\n * corresponding segment.\n *\n * `null` is a valid React Node but because segment data is always a\n * <LayoutRouter> component, we can use `null` to represent empty. When it is\n * null, it represents missing data, and rendering should suspend.\n */\n rsc: React.ReactNode\n\n /**\n * Represents a static version of the segment that can be shown immediately,\n * and may or may not contain dynamic holes. It's prefetched before a\n * navigation occurs.\n *\n * During rendering, we will choose whether to render `rsc` or `prefetchRsc`\n * with `useDeferredValue`. As with the `rsc` field, a value of `null` means\n * no value was provided. In this case, the LayoutRouter will go straight to\n * rendering the `rsc` value; if that one is also missing, it will suspend and\n * trigger a lazy fetch.\n */\n prefetchRsc: React.ReactNode\n\n prefetchHead: HeadData | null\n\n head: HeadData\n\n slots: Record<string, CacheNode> | null\n\n /**\n * A shared mutable ref that tracks whether this segment should be scrolled\n * to. All new segments created during a single navigation share the same\n * ref. When any segment's scroll handler fires, it sets `current` to\n * `false` so no other segment scrolls for the same navigation.\n *\n * `null` means this segment is not a scroll target (e.g., a reused shared\n * layout segment).\n */\n scrollRef: ScrollRef | null\n\n /**\n * Globally-unique identifier minted from a monotonic counter when the\n * CacheNode is freshly created. Surfaced to user code as a string via\n * `useRouter().bfcacheId` and intended to be used as a React `key` to\n * opt out of Activity-based state preservation on fresh navigations.\n *\n * Preserved when the CacheNode is reused (shared layouts, refresh,\n * search/hash-only navigations) or restored from the BFCache during a\n * back/forward navigation.\n */\n bfcacheId: number\n}\n\n/**\n * A mutable ref shared across all new segments created during a single\n * navigation. Used to ensure that only one segment scrolls per navigation.\n */\nexport type ScrollRef = { current: boolean }\n\nexport type DynamicParamTypes =\n | 'catchall'\n | 'catchall-intercepted-(..)(..)'\n | 'catchall-intercepted-(.)'\n | 'catchall-intercepted-(..)'\n | 'catchall-intercepted-(...)'\n | 'optional-catchall'\n | 'dynamic'\n | 'dynamic-intercepted-(..)(..)'\n | 'dynamic-intercepted-(.)'\n | 'dynamic-intercepted-(..)'\n | 'dynamic-intercepted-(...)'\n\nexport type DynamicParamTypesShort =\n | 'c'\n | 'ci(..)(..)'\n | 'ci(.)'\n | 'ci(..)'\n | 'ci(...)'\n | 'oc'\n | 'd'\n | 'di(..)(..)'\n | 'di(.)'\n | 'di(..)'\n | 'di(...)'\n\n// The tuple form of a segment, used for dynamic route params\nexport type DynamicSegmentTuple = [\n // Param name\n paramName: string,\n // Param cache key (almost the same as the value, but arrays are\n // concatenated into strings)\n // TODO: We should change this to just be the value. Currently we convert\n // it back to a value when passing to useParams. It only needs to be\n // a string when converted to a a cache key, but that doesn't mean we\n // need to store it as that representation.\n paramCacheKey: string,\n // Dynamic param type\n dynamicParamType: DynamicParamTypesShort,\n // Static sibling segments at the same URL level. Used by the client\n // router to determine if a prefetch can be reused when navigating to\n // a static sibling of a dynamic route. For example, if the route is\n // /products/[id] and there's also /products/sale, then staticSiblings\n // would be ['sale']. null means the siblings are unknown (e.g. in\n // webpack dev mode).\n staticSiblings: readonly string[] | null,\n]\n\nexport type Segment = string | DynamicSegmentTuple\n\n/**\n * Router state\n */\nexport type FlightRouterState = [\n segment: Segment,\n parallelRoutes: { [parallelRouterKey: string]: FlightRouterState },\n refreshState?: CompressedRefreshState | null,\n /**\n * - \"refetch\" is used during a request to inform the server where rendering\n * should start from.\n *\n * - \"insideLine truncated
{"offset": {"line": 2368, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/deployment-id.ts"],"sourcesContent":["let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return process.env.NEXT_SUPPORTS_IMMUTABLE_ASSETS\n ? undefined\n : process.env.NEXT_DEPLOYMENT_ID\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n"],"names":["getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","window","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_SUPPORTS_IMMUTABLE_ASSETS"],"mappings":"AAUiBU,QAAQC,GAAG,CAACC,kBAAkB;;;;;;;;;;;;;;;;;;IAe/BZ,aAAa,EAAA;eAAbA;;IAMAC,kBAAkB,EAAA;eAAlBA;;IAlBAC,eAAe,EAAA;eAAfA;;IAIAC,oBAAoB,EAAA;eAApBA;;;AAjBhB,IAAIC;AAEJ,IAAI,OAAOC,WAAW,aAAa;IACjCD,eAAeE,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;IACrD,gGAAgG;IAChG,8CAA8C;IAC9C,OAAOH,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;AAC/C,OAAO;IACL,2DAA2D;IAC3D,2EAA2E;IAC3EL,0DAAiDS;AACnD;AAEO,SAASX;IACd,OAAOE;AACT;AAEO,SAASD,qBAAqBW,YAAY,KAAK;IACpD,IAAIC,KAAKb;IACT,IAAIa,IAAI;QACN,OAAO,GAAGD,YAAY,MAAM,IAAI,IAAI,EAAEC,IAAI;IAC5C;IACA,OAAO;AACT;AAEO,SAASf;IACd,OAAOU,QAAQC,GAAG,CAACK,0BACfH,IAD6C,QAE7CH,QAAQC,GAAG,CAACC,kBAAkB;AACpC;AAEO,SAASX,mBAAmBa,YAAY,KAAK;IAClD,IAAIC,KAAKf;IACT,IAAIe,IAAI;;IAGR,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 2433, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/error-source.ts"],"sourcesContent":["const symbolError = Symbol.for('NextjsError')\n\nexport function getErrorSource(error: Error): 'server' | 'edge-server' | null {\n return (error as any)[symbolError] || null\n}\n\nexport type ErrorSourceType = 'edge-server' | 'server'\n\nexport function decorateServerError(error: Error, type: ErrorSourceType) {\n Object.defineProperty(error, symbolError, {\n writable: false,\n enumerable: false,\n configurable: false,\n value: type,\n })\n}\n"],"names":["decorateServerError","getErrorSource","symbolError","Symbol","for","error","type","Object","defineProperty","writable","enumerable","configurable","value"],"mappings":";;;;;;;;;;;;;;IAQgBA,mBAAmB,EAAA;eAAnBA;;IANAC,cAAc,EAAA;eAAdA;;;AAFhB,MAAMC,cAAcC,OAAOC,GAAG,CAAC;AAExB,SAASH,eAAeI,KAAY;IACzC,OAAQA,KAAa,CAACH,YAAY,IAAI;AACxC;AAIO,SAASF,oBAAoBK,KAAY,EAAEC,IAAqB;IACrEC,OAAOC,cAAc,CAACH,OAAOH,aAAa;QACxCO,UAAU;QACVC,YAAY;QACZC,cAAc;QACdC,OAAON;IACT;AACF","ignoreList":[0]}},
{"offset": {"line": 2470, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/errors/constants.ts"],"sourcesContent":["export const MISSING_ROOT_TAGS_ERROR = 'NEXT_MISSING_ROOT_TAGS'\n"],"names":["MISSING_ROOT_TAGS_ERROR"],"mappings":";;;+BAAaA,2BAAAA;;;eAAAA;;;AAAN,MAAMA,0BAA0B","ignoreList":[0]}},
{"offset": {"line": 2491, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/format-webpack-messages.ts"],"sourcesContent":["/**\nMIT License\n\nCopyright (c) 2015-present, Facebook, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\n// This file is based on https://github.com/facebook/create-react-app/blob/7b1a32be6ec9f99a6c9a3c66813f3ac09c4736b9/packages/react-dev-utils/formatWebpackMessages.js\n// It's been edited to remove chalk and CRA-specific logic\n\nconst friendlySyntaxErrorLabel = 'Syntax error:'\n\nconst WEBPACK_BREAKING_CHANGE_POLYFILLS =\n '\\n\\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.'\n\nfunction isLikelyASyntaxError(message: string) {\n return stripAnsi(message).includes(friendlySyntaxErrorLabel)\n}\n\nlet hadMissingSassError = false\n\n// Cleans up webpack error messages.\nfunction formatMessage(\n message: any,\n verbose?: boolean,\n importTraceNote?: boolean\n) {\n // TODO: Replace this once webpack 5 is stable\n if (typeof message === 'object' && message.message) {\n let filteredModuleTrace =\n message.moduleTrace &&\n message.moduleTrace.filter(\n (trace: any) =>\n !/next-(middleware|client-pages|route|edge-function)-loader\\.js/.test(\n trace.originName\n )\n )\n\n let body = message.message\n const breakingChangeIndex = body.indexOf(WEBPACK_BREAKING_CHANGE_POLYFILLS)\n if (breakingChangeIndex >= 0) {\n body = body.slice(0, breakingChangeIndex)\n }\n\n // TODO: Rspack currently doesn't populate moduleName correctly in some cases,\n // fall back to moduleIdentifier as a workaround\n if (\n process.env.NEXT_RSPACK &&\n !message.moduleName &&\n !message.file &&\n message.moduleIdentifier\n ) {\n const parts = message.moduleIdentifier.split('!')\n message.moduleName = parts[parts.length - 1]\n }\n\n message =\n (message.moduleName ? stripAnsi(message.moduleName) + '\\n' : '') +\n (message.file ? stripAnsi(message.file) + '\\n' : '') +\n body +\n (message.details && verbose ? '\\n' + message.details : '') +\n (filteredModuleTrace && filteredModuleTrace.length\n ? (importTraceNote || '\\n\\nImport trace for requested module:') +\n filteredModuleTrace\n .map((trace: any) => `\\n${trace.moduleName}`)\n .join('')\n : '') +\n (message.stack && verbose ? '\\n' + message.stack : '')\n }\n let lines = message.split('\\n')\n\n // Extract loader paths from Webpack-added headers and move them to end.\n // Original format: \"Module build failed (from ./loaders/foo-loader.js):\"\n // The header line is removed and the path is appended at the end as:\n // \" (from ./loaders/foo-loader.js)\"\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n const loaderPaths: string[] = []\n lines = lines.filter((line: string) => {\n const match = /Module [A-z ]+\\(from (.+)\\):?\\s*$/.exec(line)\n if (match) {\n loaderPaths.push(match[1])\n return false\n }\n return true\n })\n\n // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n lines = lines.map((line: string) => {\n const parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(\n line\n )\n if (!parsingError) {\n return line\n }\n const [, errorLine, errorColumn, errorMessage] = parsingError\n return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`\n })\n\n message = lines.join('\\n')\n // Smoosh syntax errors (commonly found in CSS)\n message = message.replace(\n /SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g,\n `${friendlySyntaxErrorLabel} $3 ($1:$2)\\n`\n )\n // Clean up export errors\n message = message.replace(\n /^.*Line truncated
{"offset": {"line": 2678, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/hash.ts"],"sourcesContent":["// http://www.cse.yorku.ca/~oz/hash.html\n// More specifically, 32-bit hash via djbxor\n// (ref: https://gist.github.com/eplawless/52813b1d8ad9af510d85?permalink_comment_id=3367765#gistcomment-3367765)\n// This is due to number type differences between rust for turbopack to js number types,\n// where rust does not have easy way to repreesnt js's 53-bit float number type for the matching\n// overflow behavior. This is more `correct` in terms of having canonical hash across different runtime / implementation\n// as can gaurantee determinstic output from 32bit hash.\nexport function djb2Hash(str: string) {\n let hash = 5381\n for (let i = 0; i < str.length; i++) {\n const char = str.charCodeAt(i)\n hash = ((hash << 5) + hash + char) & 0xffffffff\n }\n return hash >>> 0\n}\n\nexport function hexHash(str: string) {\n return djb2Hash(str).toString(36).slice(0, 5)\n}\n"],"names":["djb2Hash","hexHash","str","hash","i","length","char","charCodeAt","toString","slice"],"mappings":"AAAA,wCAAwC;AACxC,4CAA4C;AAC5C,iHAAiH;AACjH,wFAAwF;AACxF,gGAAgG;AAChG,wHAAwH;AACxH,wDAAwD;;;;;;;;;;;;;;;IACxCA,QAAQ,EAAA;eAARA;;IASAC,OAAO,EAAA;eAAPA;;;AATT,SAASD,SAASE,GAAW;IAClC,IAAIC,OAAO;IACX,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,MAAME,OAAOJ,IAAIK,UAAU,CAACH;QAC5BD,OAASA,CAAAA,QAAQ,CAAA,IAAKA,OAAOG,OAAQ;IACvC;IACA,OAAOH,SAAS;AAClB;AAEO,SAASF,QAAQC,GAAW;IACjC,OAAOF,SAASE,KAAKM,QAAQ,CAAC,IAAIC,KAAK,CAAC,GAAG;AAC7C","ignoreList":[0]}},
{"offset": {"line": 2721, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/head-manager-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\n\nexport const HeadManagerContext: React.Context<{\n updateHead?: (state: any) => void\n mountedInstances?: any\n updateScripts?: (state: any) => void\n scripts?: any\n getIsSsr?: () => boolean\n\n // Used in app directory, to render script tags as server components.\n appDir?: boolean\n nonce?: string\n}> = React.createContext({})\n\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext'\n}\n"],"names":["HeadManagerContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAcIG,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAZhBL,sBAAAA;;;eAAAA;;;;gEAFK;AAEX,MAAMA,qBAURC,OAAAA,OAAK,CAACC,aAAa,CAAC,CAAC;AAE1B,wCAA2C;IACzCF,mBAAmBM,WAAW,GAAG;AACnC","ignoreList":[0]}},
{"offset": {"line": 2742, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/hooks-client-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport { createContext } from 'react'\nimport type { Params } from '../../server/request/params'\nimport { ReadonlyURLSearchParams } from '../../client/components/readonly-url-search-params'\n\nexport const SearchParamsContext = createContext<URLSearchParams | null>(null)\nexport const PathnameContext = createContext<string | null>(null)\nexport const PathParamsContext = createContext<Params | null>(null)\n\n// Dev-only context for Suspense DevTools instrumentation\n// These promises are used to track navigation hook usage in React DevTools\nexport type InstrumentedPromise<T> = Promise<T> & {\n status: 'fulfilled'\n value: T\n displayName: string\n}\n\nexport type NavigationPromises = {\n pathname: InstrumentedPromise<string>\n searchParams: InstrumentedPromise<ReadonlyURLSearchParams>\n params: InstrumentedPromise<Params>\n // Layout segment hooks (updated at each layout boundary)\n selectedLayoutSegmentPromises?: Map<\n string,\n InstrumentedPromise<string | null>\n >\n selectedLayoutSegmentsPromises?: Map<string, InstrumentedPromise<string[]>>\n}\n\nexport const NavigationPromisesContext =\n createContext<NavigationPromises | null>(null)\n\n// Creates an instrumented promise for Suspense DevTools\n// These promises are always fulfilled and exist purely for\n// tracking in React's Suspense DevTools.\nexport function createDevToolsInstrumentedPromise<T>(\n displayName: string,\n value: T\n): InstrumentedPromise<T> {\n const promise = Promise.resolve(value) as InstrumentedPromise<T>\n promise.status = 'fulfilled'\n promise.value = value\n promise.displayName = `${displayName} (SSR)`\n return promise\n}\n\nexport { ReadonlyURLSearchParams }\n\nif (process.env.NODE_ENV !== 'production') {\n SearchParamsContext.displayName = 'SearchParamsContext'\n PathnameContext.displayName = 'PathnameContext'\n PathParamsContext.displayName = 'PathParamsContext'\n NavigationPromisesContext.displayName = 'NavigationPromisesContext'\n}\n"],"names":["NavigationPromisesContext","PathParamsContext","PathnameContext","ReadonlyURLSearchParams","SearchParamsContext","createDevToolsInstrumentedPromise","createContext","displayName","value","promise","Promise","resolve","status","process","env","NODE_ENV"],"mappings":"AAiDIa,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAjD7B;;;;;;;;;;;;;;;;;;;;IA8Baf,yBAAyB,EAAA;eAAzBA;;IAtBAC,iBAAiB,EAAA;eAAjBA;;IADAC,eAAe,EAAA;eAAfA;;IAwCJC,uBAAuB,EAAA;eAAvBA,yBAAAA,uBAAuB;;IAzCnBC,mBAAmB,EAAA;eAAnBA;;IA8BGC,iCAAiC,EAAA;eAAjCA;;;uBAlCc;yCAEU;AAEjC,MAAMD,sBAAsBE,CAAAA,GAAAA,OAAAA,aAAa,EAAyB;AAClE,MAAMJ,kBAAkBI,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AACrD,MAAML,oBAAoBK,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AAsBvD,MAAMN,4BACXM,CAAAA,GAAAA,OAAAA,aAAa,EAA4B;AAKpC,SAASD,kCACdE,WAAmB,EACnBC,KAAQ;IAER,MAAMC,UAAUC,QAAQC,OAAO,CAACH;IAChCC,QAAQG,MAAM,GAAG;IACjBH,QAAQD,KAAK,GAAGA;IAChBC,QAAQF,WAAW,GAAG,GAAGA,YAAY,MAAM,CAAC;IAC5C,OAAOE;AACT;AAIA,wCAA2C;IACzCL,oBAAoBG,WAAW,GAAG;IAClCL,gBAAgBK,WAAW,GAAG;IAC9BN,kBAAkBM,WAAW,GAAG;IAChCP,0BAA0BO,WAAW,GAAG;AAC1C","ignoreList":[0]}},
{"offset": {"line": 2805, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/instant-messages.ts"],"sourcesContent":["export function createUnrenderedSegmentError(\n route: string,\n missingFiles: readonly string[]\n): Error {\n let message = `Route \"${route}\": Could not validate that a segment in your UI has instant navigation.`\n if (missingFiles.length > 0) {\n const label =\n missingFiles.length === 1 ? 'Dropped segment' : 'Dropped segments'\n message +=\n `\\n\\nThis segment was dropped from rendering. Issues that would prevent instant navigation will go undetected.` +\n `\\n\\n${label}:\\n${missingFiles.map((p) => ` ${p}`).join('\\n')}` +\n `\\n\\nWays to fix this:` +\n `\\n - [render] Render the dropped segment` +\n `\\n - [ignore] Set \\`export const instant = false\\` to opt the dropped segment out of instant-navigation validation` +\n `\\n\\nLearn more: https://nextjs.org/docs/messages/instant-unrendered-segment`\n }\n return new Error(message)\n}\n\nexport function createLinkPrefetchPartialError(pathname: string): Error {\n return new Error(\n `Next.js encountered dynamic data during prefetching for \"${pathname}\".\\n\\n` +\n `This will lead to slower, more expensive prefetches.\\n\\n` +\n `Ways to fix this:\\n` +\n ` - [upgrade] Opt into Partial Prefetching by exporting \\`const prefetch = 'partial'\\` from the page or layout, or by setting \\`partialPrefetching: true\\` in next.config to opt the whole app in\\n` +\n ` - [disable] Remove \\`prefetch={true}\\` from the <Link> to use the default prefetch\\n` +\n ` - [ignore] Set \\`export const instant = false\\` to opt the route out of instant-navigation validation\\n\\n` +\n `Learn more: https://nextjs.org/docs/messages/instant-link-prefetch-partial`\n )\n}\n"],"names":["createLinkPrefetchPartialError","createUnrenderedSegmentError","route","missingFiles","message","length","label","map","p","join","Error","pathname"],"mappings":";;;;;;;;;;;;;;IAmBgBA,8BAA8B,EAAA;eAA9BA;;IAnBAC,4BAA4B,EAAA;eAA5BA;;;AAAT,SAASA,6BACdC,KAAa,EACbC,YAA+B;IAE/B,IAAIC,UAAU,CAAC,OAAO,EAAEF,MAAM,uEAAuE,CAAC;IACtG,IAAIC,aAAaE,MAAM,GAAG,GAAG;QAC3B,MAAMC,QACJH,aAAaE,MAAM,KAAK,IAAI,oBAAoB;QAClDD,WACE,CAAC,6GAA6G,CAAC,GAC/G,CAAC,IAAI,EAAEE,MAAM,GAAG,EAAEH,aAAaI,GAAG,CAAC,CAACC,IAAM,CAAC,EAAE,EAAEA,GAAG,EAAEC,IAAI,CAAC,OAAO,GAChE,CAAC,qBAAqB,CAAC,GACvB,CAAC,yCAAyC,CAAC,GAC3C,CAAC,mHAAmH,CAAC,GACrH,CAAC,2EAA2E,CAAC;IACjF;IACA,OAAO,OAAA,cAAkB,CAAlB,IAAIC,MAAMN,UAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAiB;AAC1B;AAEO,SAASJ,+BAA+BW,QAAgB;IAC7D,OAAO,OAAA,cAQN,CARM,IAAID,MACT,CAAC,yDAAyD,EAAEC,SAAS,MAAM,CAAC,GAC1E,CAAC,wDAAwD,CAAC,GAC1D,CAAC,mBAAmB,CAAC,GACrB,CAAC,mMAAmM,CAAC,GACrM,CAAC,sFAAsF,CAAC,GACxF,CAAC,2GAA2G,CAAC,GAC7G,CAAC,0EAA0E,CAAC,GAPzE,qBAAA;eAAA;oBAAA;sBAAA;IAQP;AACF","ignoreList":[0]}},
{"offset": {"line": 2849, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/invariant-error.ts"],"sourcesContent":["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"],"names":["InvariantError","Error","constructor","message","options","endsWith","name"],"mappings":";;;+BAAaA,kBAAAA;;;eAAAA;;;AAAN,MAAMA,uBAAuBC;IAClCC,YAAYC,OAAe,EAAEC,OAAsB,CAAE;QACnD,KAAK,CACH,CAAC,WAAW,EAAED,QAAQE,QAAQ,CAAC,OAAOF,UAAUA,UAAU,IAAI,0BAA0B,CAAC,EACzFC;QAFF,OAAA,cAGC,CAHD,IAGC,EAHD,qBAAA;mBAAA;wBAAA;0BAAA;QAGA;QACA,IAAI,CAACE,IAAI,GAAG;IACd;AACF","ignoreList":[0]}},
{"offset": {"line": 2873, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/is-plain-object.ts"],"sourcesContent":["export function getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nexport function isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n"],"names":["getObjectClassLabel","isPlainObject","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty"],"mappings":";;;;;;;;;;;;;;IAAgBA,mBAAmB,EAAA;eAAnBA;;IAIAC,aAAa,EAAA;eAAbA;;;AAJT,SAASD,oBAAoBE,KAAU;IAC5C,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEO,SAASD,cAAcC,KAAU;IACtC,IAAIF,oBAAoBE,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD","ignoreList":[0]}},
{"offset": {"line": 2916, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/is-thenable.ts"],"sourcesContent":["/**\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"],"names":["isThenable","promise","then"],"mappings":"AAAA;;;;;CAKC;;;+BACeA,cAAAA;;;eAAAA;;;AAAT,SAASA,WACdC,OAAuB;IAEvB,OACEA,YAAY,QACZ,OAAOA,YAAY,YACnB,UAAUA,WACV,OAAOA,QAAQC,IAAI,KAAK;AAE5B","ignoreList":[0]}},
{"offset": {"line": 2937, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts"],"sourcesContent":["// This has to be a shared module which is shared between client component error boundary and dynamic component\nconst BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING'\n\n/** An error that should be thrown when we want to bail out to client-side rendering. */\nexport class BailoutToCSRError extends Error {\n public readonly digest = BAILOUT_TO_CSR\n\n constructor(public readonly reason: string) {\n super(`Bail out to client-side rendering: ${reason}`)\n }\n}\n\n/** Checks if a passed argument is an error that is thrown if we want to bail out to client-side rendering. */\nexport function isBailoutToCSRError(err: unknown): err is BailoutToCSRError {\n if (typeof err !== 'object' || err === null || !('digest' in err)) {\n return false\n }\n\n return err.digest === BAILOUT_TO_CSR\n}\n"],"names":["BailoutToCSRError","isBailoutToCSRError","BAILOUT_TO_CSR","Error","constructor","reason","digest","err"],"mappings":"AAAA,+GAA+G;;;;;;;;;;;;;;;IAIlGA,iBAAiB,EAAA;eAAjBA;;IASGC,mBAAmB,EAAA;eAAnBA;;;AAZhB,MAAMC,iBAAiB;AAGhB,MAAMF,0BAA0BG;IAGrCC,YAA4BC,MAAc,CAAE;QAC1C,KAAK,CAAC,CAAC,mCAAmC,EAAEA,QAAQ,GAAA,IAAA,CAD1BA,MAAAA,GAAAA,QAAAA,IAAAA,CAFZC,MAAAA,GAASJ;IAIzB;AACF;AAGO,SAASD,oBAAoBM,GAAY;IAC9C,IAAI,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,CAAE,CAAA,YAAYA,GAAE,GAAI;QACjE,OAAO;IACT;IAEA,OAAOA,IAAID,MAAM,KAAKJ;AACxB","ignoreList":[0]}},
{"offset": {"line": 2975, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/normalized-asset-prefix.ts"],"sourcesContent":["export function normalizedAssetPrefix(assetPrefix: string | undefined): string {\n // remove all leading slashes and trailing slashes\n const escapedAssetPrefix = assetPrefix?.replace(/^\\/+|\\/+$/g, '') || false\n\n // if an assetPrefix was '/', we return empty string\n // because it could be an unnecessary trailing slash\n if (!escapedAssetPrefix) {\n return ''\n }\n\n if (URL.canParse(escapedAssetPrefix)) {\n const url = new URL(escapedAssetPrefix).toString()\n return url.endsWith('/') ? url.slice(0, -1) : url\n }\n\n // assuming assetPrefix here is a pathname-style,\n // restore the leading slash\n return `/${escapedAssetPrefix}`\n}\n"],"names":["normalizedAssetPrefix","assetPrefix","escapedAssetPrefix","replace","URL","canParse","url","toString","endsWith","slice"],"mappings":";;;+BAAgBA,yBAAAA;;;eAAAA;;;AAAT,SAASA,sBAAsBC,WAA+B;IACnE,kDAAkD;IAClD,MAAMC,qBAAqBD,aAAaE,QAAQ,cAAc,OAAO;IAErE,oDAAoD;IACpD,oDAAoD;IACpD,IAAI,CAACD,oBAAoB;QACvB,OAAO;IACT;IAEA,IAAIE,IAAIC,QAAQ,CAACH,qBAAqB;QACpC,MAAMI,MAAM,IAAIF,IAAIF,oBAAoBK,QAAQ;QAChD,OAAOD,IAAIE,QAAQ,CAAC,OAAOF,IAAIG,KAAK,CAAC,GAAG,CAAC,KAAKH;IAChD;IAEA,iDAAiD;IACjD,4BAA4B;IAC5B,OAAO,CAAC,CAAC,EAAEJ,oBAAoB;AACjC","ignoreList":[0]}},
{"offset": {"line": 3004, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/ensure-leading-slash.ts"],"sourcesContent":["/**\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"],"names":["ensureLeadingSlash","path","startsWith"],"mappings":"AAAA;;;CAGC;;;+BACeA,sBAAAA;;;eAAAA;;;AAAT,SAASA,mBAAmBC,IAAY;IAC7C,OAAOA,KAAKC,UAAU,CAAC,OAAOD,OAAO,CAAC,CAAC,EAAEA,MAAM;AACjD","ignoreList":[0]}},
{"offset": {"line": 3023, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/promise-with-resolvers.ts"],"sourcesContent":["export function createPromiseWithResolvers<T>(): PromiseWithResolvers<T> {\n // Shim of Stage 4 Promise.withResolvers proposal\n let resolve: (value: T | PromiseLike<T>) => void\n let reject: (reason: any) => void\n const promise = new Promise<T>((res, rej) => {\n resolve = res\n reject = rej\n })\n return { resolve: resolve!, reject: reject!, promise }\n}\n"],"names":["createPromiseWithResolvers","resolve","reject","promise","Promise","res","rej"],"mappings":";;;+BAAgBA,8BAAAA;;;eAAAA;;;AAAT,SAASA;IACd,iDAAiD;IACjD,IAAIC;IACJ,IAAIC;IACJ,MAAMC,UAAU,IAAIC,QAAW,CAACC,KAAKC;QACnCL,UAAUI;QACVH,SAASI;IACX;IACA,OAAO;QAAEL,SAASA;QAAUC,QAAQA;QAASC;IAAQ;AACvD","ignoreList":[0]}},
{"offset": {"line": 3050, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-path-prefix.ts"],"sourcesContent":["import { parsePath } from './parse-path'\n\n/**\n * Adds the provided prefix to the given path. It first ensures that the path\n * is indeed starting with a slash.\n */\nexport function addPathPrefix(path: string, prefix?: string) {\n if (!path.startsWith('/') || !prefix) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n return `${prefix}${pathname}${query}${hash}`\n}\n"],"names":["addPathPrefix","path","prefix","startsWith","pathname","query","hash","parsePath"],"mappings":";;;+BAMgBA,iBAAAA;;;eAAAA;;;2BANU;AAMnB,SAASA,cAAcC,IAAY,EAAEC,MAAe;IACzD,IAAI,CAACD,KAAKE,UAAU,CAAC,QAAQ,CAACD,QAAQ;QACpC,OAAOD;IACT;IAEA,MAAM,EAAEG,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACN;IAC5C,OAAO,GAAGC,SAASE,WAAWC,QAAQC,MAAM;AAC9C","ignoreList":[0]}},
{"offset": {"line": 3071, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/app-paths.ts"],"sourcesContent":["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"],"names":["compareAppPaths","normalizeAppPath","normalizeRscURL","route","ensureLeadingSlash","split","reduce","pathname","segment","index","segments","isGroupSegment","length","a","b","aHasSlot","includes","bHasSlot","localeCompare","url","replace"],"mappings":";;;;;;;;;;;;;;;IA+DgBA,eAAe,EAAA;eAAfA;;IAzCAC,gBAAgB,EAAA;eAAhBA;;IAqDAC,eAAe,EAAA;eAAfA;;;oCA3EmB;yBACJ;AAqBxB,SAASD,iBAAiBE,KAAa;IAC5C,OAAOC,CAAAA,GAAAA,oBAAAA,kBAAkB,EACvBD,MAAME,KAAK,CAAC,KAAKC,MAAM,CAAC,CAACC,UAAUC,SAASC,OAAOC;QACjD,8BAA8B;QAC9B,IAAI,CAACF,SAAS;YACZ,OAAOD;QACT;QAEA,sBAAsB;QACtB,IAAII,CAAAA,GAAAA,SAAAA,cAAc,EAACH,UAAU;YAC3B,OAAOD;QACT;QAEA,iCAAiC;QACjC,IAAIC,OAAO,CAAC,EAAE,KAAK,KAAK;YACtB,OAAOD;QACT;QAEA,uDAAuD;QACvD,IACGC,CAAAA,YAAY,UAAUA,YAAY,OAAM,KACzCC,UAAUC,SAASE,MAAM,GAAG,GAC5B;YACA,OAAOL;QACT;QAEA,OAAO,GAAGA,SAAS,CAAC,EAAEC,SAAS;IACjC,GAAG;AAEP;AAYO,SAASR,gBAAgBa,CAAS,EAAEC,CAAS;IAClD,MAAMC,WAAWF,EAAEG,QAAQ,CAAC;IAC5B,MAAMC,WAAWH,EAAEE,QAAQ,CAAC;IAC5B,IAAID,YAAY,CAACE,UAAU,OAAO,CAAC;IACnC,IAAI,CAACF,YAAYE,UAAU,OAAO;IAClC,OAAOJ,EAAEK,aAAa,CAACJ;AACzB;AAMO,SAASZ,gBAAgBiB,GAAW;IACzC,OAAOA,IAAIC,OAAO,CAChB,eACA,AACA,8BAD8B;AAGlC","ignoreList":[0]}},
{"offset": {"line": 3133, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/cache-busting-search-param.ts"],"sourcesContent":["import { hexHash } from '../../hash'\n\nconst CACHE_BUSTING_SEARCH_PARAM_DIGEST_BYTES = 12\nconst textEncoder = new TextEncoder()\n\nfunction encodeCacheBustingSearchParam(bytes: Uint8Array): string {\n let binary = ''\n for (let i = 0; i < bytes.length; i++) {\n binary += String.fromCharCode(bytes[i])\n }\n\n return btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '')\n}\n\nfunction normalizeCacheBustingInput(\n value: string | string[] | undefined\n): string {\n if (value === undefined) {\n return '0'\n }\n return Array.isArray(value) ? value.join(',') : value\n}\n\nfunction createCacheBustingSearchParamInput(\n prefetchHeader: '1' | '2' | '3' | '0' | undefined,\n segmentPrefetchHeader: string | string[] | undefined,\n stateTreeHeader: string | string[] | undefined,\n nextUrlHeader: string | string[] | undefined\n): string | null {\n if (\n (prefetchHeader === undefined || prefetchHeader === '0') &&\n segmentPrefetchHeader === undefined &&\n stateTreeHeader === undefined &&\n nextUrlHeader === undefined\n ) {\n return null\n }\n\n return [\n prefetchHeader ?? '0',\n normalizeCacheBustingInput(segmentPrefetchHeader),\n normalizeCacheBustingInput(stateTreeHeader),\n normalizeCacheBustingInput(nextUrlHeader),\n ].join(',')\n}\n\nasync function computeCacheBustingSearchParamFromInput(\n input: string\n): Promise<string> {\n // Truncate SHA-256 to 96 bits to keep `_rsc` compact\n const digest = await globalThis.crypto.subtle.digest(\n 'SHA-256',\n textEncoder.encode(input)\n )\n return encodeCacheBustingSearchParam(\n new Uint8Array(digest).subarray(0, CACHE_BUSTING_SEARCH_PARAM_DIGEST_BYTES)\n )\n}\n\nexport async function computeCacheBustingSearchParam(\n prefetchHeader: '1' | '2' | '3' | '0' | undefined,\n segmentPrefetchHeader: string | string[] | undefined,\n stateTreeHeader: string | string[] | undefined,\n nextUrlHeader: string | string[] | undefined\n): Promise<string> {\n const input = createCacheBustingSearchParamInput(\n prefetchHeader,\n segmentPrefetchHeader,\n stateTreeHeader,\n nextUrlHeader\n )\n if (input === null) {\n return ''\n }\n\n return computeCacheBustingSearchParamFromInput(input)\n}\n\nexport function computeLegacyCacheBustingSearchParam(\n prefetchHeader: '1' | '2' | '3' | '0' | undefined,\n segmentPrefetchHeader: string | string[] | undefined,\n stateTreeHeader: string | string[] | undefined,\n nextUrlHeader: string | string[] | undefined\n): string {\n const input = createCacheBustingSearchParamInput(\n prefetchHeader,\n segmentPrefetchHeader,\n stateTreeHeader,\n nextUrlHeader\n )\n if (input === null) {\n return ''\n }\n\n return hexHash(input)\n}\n"],"names":["computeCacheBustingSearchParam","computeLegacyCacheBustingSearchParam","CACHE_BUSTING_SEARCH_PARAM_DIGEST_BYTES","textEncoder","TextEncoder","encodeCacheBustingSearchParam","bytes","binary","i","length","String","fromCharCode","btoa","replace","normalizeCacheBustingInput","value","undefined","Array","isArray","join","createCacheBustingSearchParamInput","prefetchHeader","segmentPrefetchHeader","stateTreeHeader","nextUrlHeader","computeCacheBustingSearchParamFromInput","input","digest","globalThis","crypto","subtle","encode","Uint8Array","subarray","hexHash"],"mappings":";;;;;;;;;;;;;;IA2DsBA,8BAA8B,EAAA;eAA9BA;;IAmBNC,oCAAoC,EAAA;eAApCA;;;sBA9EQ;AAExB,MAAMC,0CAA0C;AAChD,MAAMC,cAAc,IAAIC;AAExB,SAASC,8BAA8BC,KAAiB;IACtD,IAAIC,SAAS;IACb,IAAK,IAAIC,IAAI,GAAGA,IAAIF,MAAMG,MAAM,EAAED,IAAK;QACrCD,UAAUG,OAAOC,YAAY,CAACL,KAAK,CAACE,EAAE;IACxC;IAEA,OAAOI,KAAKL,QAAQM,OAAO,CAAC,OAAO,KAAKA,OAAO,CAAC,OAAO,KAAKA,OAAO,CAAC,OAAO;AAC7E;AAEA,SAASC,2BACPC,KAAoC;IAEpC,IAAIA,UAAUC,WAAW;QACvB,OAAO;IACT;IACA,OAAOC,MAAMC,OAAO,CAACH,SAASA,MAAMI,IAAI,CAAC,OAAOJ;AAClD;AAEA,SAASK,mCACPC,cAAiD,EACjDC,qBAAoD,EACpDC,eAA8C,EAC9CC,aAA4C;IAE5C,IACGH,CAAAA,mBAAmBL,aAAaK,mBAAmB,GAAE,KACtDC,0BAA0BN,aAC1BO,oBAAoBP,aACpBQ,kBAAkBR,WAClB;QACA,OAAO;IACT;IAEA,OAAO;QACLK,kBAAkB;QAClBP,2BAA2BQ;QAC3BR,2BAA2BS;QAC3BT,2BAA2BU;KAC5B,CAACL,IAAI,CAAC;AACT;AAEA,eAAeM,wCACbC,KAAa;IAEb,qDAAqD;IACrD,MAAMC,SAAS,MAAMC,WAAWC,MAAM,CAACC,MAAM,CAACH,MAAM,CAClD,WACAxB,YAAY4B,MAAM,CAACL;IAErB,OAAOrB,8BACL,IAAI2B,WAAWL,QAAQM,QAAQ,CAAC,GAAG/B;AAEvC;AAEO,eAAeF,+BACpBqB,cAAiD,EACjDC,qBAAoD,EACpDC,eAA8C,EAC9CC,aAA4C;IAE5C,MAAME,QAAQN,mCACZC,gBACAC,uBACAC,iBACAC;IAEF,IAAIE,UAAU,MAAM;QAClB,OAAO;IACT;IAEA,OAAOD,wCAAwCC;AACjD;AAEO,SAASzB,qCACdoB,cAAiD,EACjDC,qBAAoD,EACpDC,eAA8C,EAC9CC,aAA4C;IAE5C,MAAME,QAAQN,mCACZC,gBACAC,uBACAC,iBACAC;IAEF,IAAIE,UAAU,MAAM;QAClB,OAAO;IACT;IAEA,OAAOQ,CAAAA,GAAAA,MAAAA,OAAO,EAACR;AACjB","ignoreList":[0]}},
{"offset": {"line": 3204, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/html-bots.ts"],"sourcesContent":["// This regex contains the bots that we need to do a blocking render for and can't safely stream the response\n// due to how they parse the DOM. For example, they might explicitly check for metadata in the `head` tag, so we can't stream metadata tags after the `head` was sent.\n// Note: The pattern [\\w-]+-Google captures all Google crawlers with \"-Google\" suffix (e.g., Mediapartners-Google, AdsBot-Google, Storebot-Google)\n// as well as crawlers starting with \"Google-\" (e.g., Google-PageRenderer, Google-InspectionTool)\nexport const HTML_LIMITED_BOT_UA_RE =\n /[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i\n"],"names":["HTML_LIMITED_BOT_UA_RE"],"mappings":"AAAA,6GAA6G;AAC7G,sKAAsK;AACtK,kJAAkJ;AAClJ,iGAAiG;;;;+BACpFA,0BAAAA;;;eAAAA;;;AAAN,MAAMA,yBACX","ignoreList":[0]}},
{"offset": {"line": 3222, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interception-routes.ts"],"sourcesContent":["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"],"names":["INTERCEPTION_ROUTE_MARKERS","extractInterceptionRouteInformation","isInterceptionRouteAppPath","path","split","find","segment","m","startsWith","undefined","interceptingRoute","marker","interceptedRoute","Error","normalizeAppPath","slice","concat","join","splitInterceptingRoute","length"],"mappings":";;;;;;;;;;;;;;;IAGaA,0BAA0B,EAAA;eAA1BA;;IAmCGC,mCAAmC,EAAA;eAAnCA;;IA1BAC,0BAA0B,EAAA;eAA1BA;;;0BAZiB;AAG1B,MAAMF,6BAA6B;IACxC;IACA;IACA;IACA;CACD;AAIM,SAASE,2BAA2BC,IAAY;IACrD,wCAAwC;IACxC,OACEA,KACGC,KAAK,CAAC,KACNC,IAAI,CAAC,CAACC,UACLN,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD,SACtDE;AAEZ;AAiBO,SAASR,oCACdE,IAAY;IAEZ,IAAIO;IACJ,IAAIC;IACJ,IAAIC;IAEJ,KAAK,MAAMN,WAAWH,KAAKC,KAAK,CAAC,KAAM;QACrCO,SAASX,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD;QACnE,IAAII,QAAQ;;YACT,CAACD,mBAAmBE,iBAAiB,GAAGT,KAAKC,KAAK,CAACO,QAAQ;YAC5D;QACF;IACF;IAEA,IAAI,CAACD,qBAAqB,CAACC,UAAU,CAACC,kBAAkB;QACtD,MAAM,OAAA,cAEL,CAFK,IAAIC,MACR,CAAC,4BAA4B,EAAEV,KAAK,iFAAiF,CAAC,GADlH,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEAO,oBAAoBI,CAAAA,GAAAA,UAAAA,gBAAgB,EAACJ,mBAAmB,iDAAiD;;IAEzG,OAAQC;QACN,KAAK;YACH,oIAAoI;YACpI,IALine truncated
{"offset": {"line": 3331, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-bot.ts"],"sourcesContent":["import { HTML_LIMITED_BOT_UA_RE } from './html-bots'\n\n// Bot crawler that will spin up a headless browser and execute JS.\n// Only the main Googlebot search crawler executes JavaScript, not other Google crawlers.\n// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers\n// This regex specifically matches \"Googlebot\" but NOT \"Mediapartners-Google\", \"AdsBot-Google\", etc.\nconst HEADLESS_BROWSER_BOT_UA_RE = /Googlebot(?!-)|Googlebot$/i\n\nexport const HTML_LIMITED_BOT_UA_RE_STRING = HTML_LIMITED_BOT_UA_RE.source\n\nexport { HTML_LIMITED_BOT_UA_RE }\n\nfunction isDomBotUA(userAgent: string) {\n return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent)\n}\n\nfunction isHtmlLimitedBotUA(userAgent: string) {\n return HTML_LIMITED_BOT_UA_RE.test(userAgent)\n}\n\nexport function isBot(userAgent: string): boolean {\n return isDomBotUA(userAgent) || isHtmlLimitedBotUA(userAgent)\n}\n\nexport function getBotType(userAgent: string): 'dom' | 'html' | undefined {\n if (isDomBotUA(userAgent)) {\n return 'dom'\n }\n if (isHtmlLimitedBotUA(userAgent)) {\n return 'html'\n }\n return undefined\n}\n"],"names":["HTML_LIMITED_BOT_UA_RE","HTML_LIMITED_BOT_UA_RE_STRING","getBotType","isBot","HEADLESS_BROWSER_BOT_UA_RE","source","isDomBotUA","userAgent","test","isHtmlLimitedBotUA","undefined"],"mappings":";;;;;;;;;;;;;;;;IAUSA,sBAAsB,EAAA;eAAtBA,UAAAA,sBAAsB;;IAFlBC,6BAA6B,EAAA;eAA7BA;;IAgBGC,UAAU,EAAA;eAAVA;;IAJAC,KAAK,EAAA;eAALA;;;0BApBuB;AAEvC,mEAAmE;AACnE,yFAAyF;AACzF,4FAA4F;AAC5F,oGAAoG;AACpG,MAAMC,6BAA6B;AAE5B,MAAMH,gCAAgCD,UAAAA,sBAAsB,CAACK,MAAM;AAI1E,SAASC,WAAWC,SAAiB;IACnC,OAAOH,2BAA2BI,IAAI,CAACD;AACzC;AAEA,SAASE,mBAAmBF,SAAiB;IAC3C,OAAOP,UAAAA,sBAAsB,CAACQ,IAAI,CAACD;AACrC;AAEO,SAASJ,MAAMI,SAAiB;IACrC,OAAOD,WAAWC,cAAcE,mBAAmBF;AACrD;AAEO,SAASL,WAAWK,SAAiB;IAC1C,IAAID,WAAWC,YAAY;QACzB,OAAO;IACT;IACA,IAAIE,mBAAmBF,YAAY;QACjC,OAAO;IACT;IACA,OAAOG;AACT","ignoreList":[0]}},
{"offset": {"line": 3389, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-path.ts"],"sourcesContent":["/**\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"],"names":["parsePath","path","hashIndex","indexOf","queryIndex","hasQuery","pathname","substring","query","undefined","hash","slice"],"mappings":"AAAA;;;;CAIC;;;+BACeA,aAAAA;;;eAAAA;;;AAAT,SAASA,UAAUC,IAAY;IACpC,MAAMC,YAAYD,KAAKE,OAAO,CAAC;IAC/B,MAAMC,aAAaH,KAAKE,OAAO,CAAC;IAChC,MAAME,WAAWD,aAAa,CAAC,KAAMF,CAAAA,YAAY,KAAKE,aAAaF,SAAQ;IAE3E,IAAIG,YAAYH,YAAY,CAAC,GAAG;QAC9B,OAAO;YACLI,UAAUL,KAAKM,SAAS,CAAC,GAAGF,WAAWD,aAAaF;YACpDM,OAAOH,WACHJ,KAAKM,SAAS,CAACH,YAAYF,YAAY,CAAC,IAAIA,YAAYO,aACxD;YACJC,MAAMR,YAAY,CAAC,IAAID,KAAKU,KAAK,CAACT,aAAa;QACjD;IACF;IAEA,OAAO;QAAEI,UAAUL;QAAMO,OAAO;QAAIE,MAAM;IAAG;AAC/C","ignoreList":[0]}},
{"offset": {"line": 3423, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/path-has-prefix.ts"],"sourcesContent":["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"],"names":["pathHasPrefix","path","prefix","pathname","parsePath","startsWith"],"mappings":";;;+BASgBA,iBAAAA;;;eAAAA;;;2BATU;AASnB,SAASA,cAAcC,IAAY,EAAEC,MAAc;IACxD,IAAI,OAAOD,SAAS,UAAU;QAC5B,OAAO;IACT;IAEA,MAAM,EAAEE,QAAQ,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACH;IAC/B,OAAOE,aAAaD,UAAUC,SAASE,UAAU,CAACH,SAAS;AAC7D","ignoreList":[0]}},
{"offset": {"line": 3444, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/remove-trailing-slash.ts"],"sourcesContent":["/**\n * Removes the trailing slash for a given route or page path. Examples:\n * - `/foo/bar/` -> `/foo/bar`\n * - `/foo/bar` -> `/foo/bar`\n *\n * Uses charCodeAt (47 === '/') instead of regex to avoid the overhead of\n * compiling and executing a RegExp on every call (~3-5x faster).\n */\nexport function removeTrailingSlash(route: string) {\n return route.charCodeAt(route.length - 1) === 47 && route.length > 1\n ? route.slice(0, -1)\n : route\n}\n"],"names":["removeTrailingSlash","route","charCodeAt","length","slice"],"mappings":"AAAA;;;;;;;CAOC;;;+BACeA,uBAAAA;;;eAAAA;;;AAAT,SAASA,oBAAoBC,KAAa;IAC/C,OAAOA,MAAMC,UAAU,CAACD,MAAME,MAAM,GAAG,OAAO,MAAMF,MAAME,MAAM,GAAG,IAC/DF,MAAMG,KAAK,CAAC,GAAG,CAAC,KAChBH;AACN","ignoreList":[0]}},
{"offset": {"line": 3467, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/segment-cache/segment-value-encoding.ts"],"sourcesContent":["import { PAGE_SEGMENT_KEY } from '../segment'\nimport type { Segment as FlightRouterStateSegment } from '../app-router-types'\n\n// TypeScript trick to simulate opaque types, like in Flow.\ntype Opaque<K, T> = T & { __brand: K }\n\nexport type SegmentRequestKeyPart = Opaque<'SegmentRequestKeyPart', string>\nexport type SegmentRequestKey = Opaque<'SegmentRequestKey', string>\n\nexport const ROOT_SEGMENT_REQUEST_KEY = '' as SegmentRequestKey\n\nexport const HEAD_REQUEST_KEY = '/_head' as SegmentRequestKey\n\nexport function createSegmentRequestKeyPart(\n segment: FlightRouterStateSegment\n): SegmentRequestKeyPart {\n if (typeof segment === 'string') {\n if (segment.startsWith(PAGE_SEGMENT_KEY)) {\n // The Flight Router State type sometimes includes the search params in\n // the page segment. However, the Segment Cache tracks this as a separate\n // key. So, we strip the search params here, and then add them back when\n // the cache entry is turned back into a FlightRouterState. This is an\n // unfortunate consequence of the FlightRouteState being used both as a\n // transport type and as a cache key; we'll address this once more of the\n // Segment Cache implementation has settled.\n // TODO: We should hoist the search params out of the FlightRouterState\n // type entirely, This is our plan for dynamic route params, too.\n return PAGE_SEGMENT_KEY as SegmentRequestKeyPart\n }\n const safeName =\n // TODO: FlightRouterState encodes Not Found routes as \"/_not-found\".\n // But params typically don't include the leading slash. We should use\n // a different encoding to avoid this special case.\n segment === '/_not-found'\n ? '_not-found'\n : encodeToFilesystemAndURLSafeString(segment)\n // Since this is not a dynamic segment, it's fully encoded. It does not\n // need to be \"hydrated\" with a param value.\n return safeName as SegmentRequestKeyPart\n }\n\n const name = segment[0]\n const paramType = segment[2]\n const safeName = encodeToFilesystemAndURLSafeString(name)\n\n const encodedName = '$' + paramType + '$' + safeName\n return encodedName as SegmentRequestKeyPart\n}\n\nexport function appendSegmentRequestKeyPart(\n parentRequestKey: SegmentRequestKey,\n parallelRouteKey: string,\n childRequestKeyPart: SegmentRequestKeyPart\n): SegmentRequestKey {\n // Aside from being filesystem safe, segment keys are also designed so that\n // each segment and parallel route creates its own subdirectory. Roughly in\n // the same shape as the source app directory. This is mostly just for easier\n // debugging (you can open up the build folder and navigate the output); if\n // we wanted to do we could just use a flat structure.\n\n // Omit the parallel route key for children, since this is the most\n // common case. Saves some bytes (and it's what the app directory does).\n const slotKey =\n parallelRouteKey === 'children'\n ? childRequestKeyPart\n : `@${encodeToFilesystemAndURLSafeString(parallelRouteKey)}/${childRequestKeyPart}`\n return (parentRequestKey + '/' + slotKey) as SegmentRequestKey\n}\n\n// Define a regex pattern to match the most common characters found in a route\n// param. It excludes anything that might not be cross-platform filesystem\n// compatible, like |. It does not need to be precise because the fallback is to\n// just base64url-encode the whole parameter, which is fine; we just don't do it\n// by default for compactness, and for easier debugging.\nconst simpleParamValueRegex = /^[a-zA-Z0-9\\-_@]+$/\n\nfunction encodeToFilesystemAndURLSafeString(value: string) {\n if (simpleParamValueRegex.test(value)) {\n return value\n }\n // If there are any unsafe characters, base64url-encode the entire value.\n // We also add a ! prefix so it doesn't collide with the simple case.\n const base64url = btoa(value)\n .replace(/\\+/g, '-') // Replace '+' with '-'\n .replace(/\\//g, '_') // Replace '/' with '_'\n .replace(/=+$/, '') // Remove trailing '='\n return '!' + base64url\n}\n\nexport function convertSegmentPathToStaticExportFilename(\n segmentPath: string\n): string {\n return `__next${segmentPath.replace(/\\//g, '.')}.txt`\n}\n"],"names":["HEAD_REQUEST_KEY","ROOT_SEGMENT_REQUEST_KEY","appendSegmentRequestKeyPart","convertSegmentPathToStaticExportFilename","createSegmentRequestKeyPart","segment","startsWith","PAGE_SEGMENT_KEY","safeName","encodeToFilesystemAndURLSafeString","name","paramType","encodedName","parentRequestKey","parallelRouteKey","childRequestKeyPart","slotKey","simpleParamValueRegex","value","test","base64url","btoa","replace","segmentPath"],"mappings":";;;;;;;;;;;;;;;;;IAWaA,gBAAgB,EAAA;eAAhBA;;IAFAC,wBAAwB,EAAA;eAAxBA;;IAwCGC,2BAA2B,EAALine truncated
{"offset": {"line": 3566, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/segment-cache/vary-params-decoding.ts"],"sourcesContent":["/**\n * Vary Params Decoding\n *\n * This module is shared between server and client.\n */\n\nexport type VaryParams = Set<string>\n\n/**\n * Vary params are serialized into the Flight stream as an\n * `AsyncIterable<string>` that yields each accessed param name exactly once\n * (the server dedupes before emitting). Because each access is flushed into the\n * stream as it happens, there's no step at the end of the render that has to\n * run for the client to read anything. If a prerender is aborted by sync I/O,\n * the params yielded before the abort are already in the stream, and they're\n * exactly the params the partial response actually depends on.\n *\n * Root params are NOT included in a segment's own iterable. They're emitted\n * once at the top level of the response (as a separate iterable) and unioned in\n * by `readVaryParams`, because root params can be accessed at any point during\n * the render — folding them into every segment would otherwise require a merge\n * once the whole render is complete.\n */\nexport type VaryParamsIterable = AsyncIterable<string>\n\n/**\n * A Flight \"chunk\": when an `AsyncIterable` arrives over a fully-buffered Flight\n * stream, each `iterator.next()` returns one of these instead of a native\n * Promise. It follows the React thenable protocol — once `status` is\n * `'fulfilled'`, `value` (the `IteratorResult`) can be read synchronously.\n */\ntype IteratorResultChunk = PromiseLike<IteratorResult<string>> & {\n status?: 'pending' | 'resolved_model' | 'fulfilled' | 'rejected' | string\n value?: IteratorResult<string>\n}\n\n/**\n * Synchronously drains a vary params `AsyncIterable`, adding each yielded name\n * to `target`.\n *\n * By the time this runs (on the client, or in collectSegmentData), the Flight\n * stream has been fully buffered, so every yielded value is already\n * materialized and can be read without awaiting. We force each iterator result\n * to resolve synchronously using the same `.then(noop)` trick React uses\n * internally, then read its `status`/`value` directly.\n *\n * We add \"every param yielded up to the point the stream suspends\": a\n * normally-closed iterable drains fully, while one left hanging (a sync-I/O\n * abort, or a `close()` whose row hasn't flushed yet) drains to the prefix\n * already in the stream. Both are correct — a segment's param accesses are all\n * flushed as they happen during its render, so the prefix is exactly the set\n * the response depends on. We therefore never need the terminating `done` row\n * to be present; it's only stream hygiene.\n */\nfunction drainVaryParams(\n iterable: VaryParamsIterable,\n target: VaryParams\n): void {\n const iterator = iterable[Symbol.asyncIterator]()\n while (true) {\n const chunk = iterator.next() as IteratorResultChunk\n // Attach a no-op listener to force Flight to synchronously resolve the\n // chunk. A freshly-arrived result may be in an intermediate\n // 'resolved_model' state (data received but not unwrapped); calling\n // .then() transitions it to 'fulfilled', making the value available\n // synchronously. (A native Promise has no `status` and simply reads as\n // not-fulfilled below, so this can never hang.)\n chunk.then(noop, noop)\n if (chunk.status !== 'fulfilled' || chunk.value === undefined) {\n // The stream suspended here. Everything yielded before this point has\n // already been added.\n return\n }\n const step = chunk.value\n if (step.done) {\n return\n }\n target.add(step.value)\n }\n}\n\n/**\n * Reads a segment's (or the head's) vary params, unioning in the response-level\n * root params.\n *\n * Root params are emitted once at the top level rather than folded into every\n * segment by the server, so every read recombines them here — building the\n * merge into the read means a caller can't forget it, and it's done in a single\n * pass with no intermediate set.\n *\n * Returns null (\"unknown\", key on all params) unless BOTH iterables are\n * present. A null/absent `iterable` means the segment's own tracking wasn't\n * enabled (e.g. not a prerender). A null/absent `rootIterable` means root\n * params weren't tracked — and since a segment's own iterable never includes\n * root params (those are accessed in layouts above it), narrowing on the\n * segment set alone would wrongly assume no root params were accessed. In\n * either case we stay conservative.\n *\n * When both are present each is authoritative even when it drains to the empty\n * set — a tracked segment that read no params, with no root params accessed,\n * can be shared across all param values.\n */\nexport function readVaryParams(\n iterable: VaryParamsIterable | null | undefined,\n rootIterable: VaryParamsIterabLine truncated
{"offset": {"line": 3633, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/segment.ts"],"sourcesContent":["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"],"names":["DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","PAGE_SEGMENT_KEY","addSearchParamsIfPageSegment","computeSelectedLayoutSegment","getSegmentValue","getSelectedLayoutSegmentPath","isGroupSegment","isParallelRouteSegment","segment","Array","isArray","endsWith","startsWith","searchParams","isPageSegment","includes","stringifiedQuery","JSON","stringify","segments","parallelRouteKey","length","rawSegment","tree","first","segmentPath","node","parallelRoutes","children","Object","values","segmentValue","push"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAuFaA,mBAAmB,EAAA;eAAnBA;;IACAC,qBAAqB,EAAA;eAArBA;;IAFAC,gBAAgB,EAAA;eAAhBA;;IAvEGC,4BAA4B,EAAA;eAA5BA;;IAgBAC,4BAA4B,EAAA;eAA5BA;;IA7BAC,eAAe,EAAA;eAAfA;;IAiDAC,4BAA4B,EAAA;eAA5BA;;IA7CAC,cAAc,EAAA;eAAdA;;IAKAC,sBAAsB,EAAA;eAAtBA;;;AATT,SAASH,gBAAgBI,OAAgB;IAC9C,OAAOC,MAAMC,OAAO,CAACF,WAAWA,OAAO,CAAC,EAAE,GAAGA;AAC/C;AAEO,SAASF,eAAeE,OAAe;IAC5C,sCAAsC;IACtC,OAAOA,OAAO,CAAC,EAAE,KAAK,OAAOA,QAAQG,QAAQ,CAAC;AAChD;AAEO,SAASJ,uBAAuBC,OAAe;IACpD,OAAOA,QAAQI,UAAU,CAAC,QAAQJ,YAAY;AAChD;AAEO,SAASN,6BACdM,OAAgB,EAChBK,YAA2D;IAE3D,MAAMC,gBAAgBN,QAAQO,QAAQ,CAACd;IAEvC,IAAIa,eAAe;QACjB,MAAME,mBAAmBC,KAAKC,SAAS,CAACL;QACxC,OAAOG,qBAAqB,OACxBf,mBAAmB,MAAMe,mBACzBf;IACN;IAEA,OAAOO;AACT;AAEO,SAASL,6BACdgB,QAAyB,EACzBC,gBAAwB;IAExB,IAAI,CAACD,YAAYA,SAASE,MAAM,KAAK,GAAG;QACtC,OAAO;IACT;IAEA,iFAAiF;IACjF,MAAMC,aACJF,qBAAqB,aACjBD,QAAQ,CAAC,EAAE,GACXA,QAAQ,CAACA,SAASE,MAAM,GAAG,EAAE;IAEnC,sGAAsG;IACtG,oEAAoE;IACpE,OAAOC,eAAevB,sBAAsB,OAAOuB;AACrD;AAGO,SAASjB,6BACdkB,IAAuB,EACvBH,gBAAwB,EACxBI,QAAQ,IAAI,EACZC,cAAwB,EAAE;IAE1B,IAAIC;IACJ,IAAIF,OAAO;QACT,kEAAkE;QAClEE,OAAOH,IAAI,CAAC,EAAE,CAACH,iBAAiB;IAClC,OAAO;QACL,oGAAoG;QACpG,MAAMO,iBAAiBJ,IAAI,CAAC,EAAE;QAC9BG,OAAOC,eAAeC,QAAQ,IAAIC,OAAOC,MAAM,CAACH,eAAe,CAAC,EAAE;IACpE;IAEA,IAAI,CAACD,MAAM,OAAOD;IAClB,MAAMjB,UAAUkB,IAAI,CAAC,EAAE;IAEvB,IAAIK,eAAe3B,gBAAgBI;IAEnC,IAAI,CAACuB,gBAAgBA,aAAanB,UAAU,CAACX,mBAAmB;QAC9D,OAAOwB;IACT;IAEAA,YAAYO,IAAI,CAACD;IAEjB,OAAO1B,6BACLqB,MACAN,kBACA,OACAK;AAEJ;AAEO,MAAMxB,mBAAmB;AACzB,MAAMF,sBAAsB;AAC5B,MAAMC,wBAAwB","ignoreList":[0]}},
{"offset": {"line": 3736, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/server-inserted-html.shared-runtime.tsx"],"sourcesContent":["'use client'\n\nimport React, { useContext } from 'react'\n\nexport type ServerInsertedHTMLHook = (callbacks: () => React.ReactNode) => void\n\n// Use `React.createContext` to avoid errors from the RSC checks because\n// it can't be imported directly in Server Components:\n//\n// import { createContext } from 'react'\n//\n// More info: https://github.com/vercel/next.js/pull/40686\nexport const ServerInsertedHTMLContext =\n React.createContext<ServerInsertedHTMLHook | null>(null as any)\n\nexport function useServerInsertedHTML(callback: () => React.ReactNode): void {\n const addInsertedServerHTMLCallback = useContext(ServerInsertedHTMLContext)\n // Should have no effects on client where there's no flush effects provider\n if (addInsertedServerHTMLCallback) {\n addInsertedServerHTMLCallback(callback)\n }\n}\n"],"names":["ServerInsertedHTMLContext","useServerInsertedHTML","React","createContext","callback","addInsertedServerHTMLCallback","useContext"],"mappings":";;;;;;;;;;;;;;IAYaA,yBAAyB,EAAA;eAAzBA;;IAGGC,qBAAqB,EAAA;eAArBA;;;;iEAbkB;AAU3B,MAAMD,4BAAAA,WAAAA,GACXE,OAAAA,OAAK,CAACC,aAAa,CAAgC;AAE9C,SAASF,sBAAsBG,QAA+B;IACnE,MAAMC,gCAAgCC,CAAAA,GAAAA,OAAAA,UAAU,EAACN;IACjD,2EAA2E;IAC3E,IAAIK,+BAA+B;QACjCA,8BAA8BD;IAChC;AACF","ignoreList":[0]}},
{"offset": {"line": 3771, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/server-reference-info.ts"],"sourcesContent":["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"],"names":["SERVER_REFERENCE_ID_LENGTH","extractInfoFromServerReferenceId","mightBeServerReferenceId","omitUnusedArgs","id","length","infoByte","parseInt","slice","typeBit","argMask","restArgs","usedArgs","Array","index","bitPosition","bit","type","hasRestArgs","args","info","filteredArgs"],"mappings":";;;;;;;;;;;;;;;;IAMaA,0BAA0B,EAAA;eAA1BA;;IA0BGC,gCAAgC,EAAA;eAAhCA;;IAxBAC,wBAAwB,EAAA;eAAxBA;;IAyDAC,cAAc,EAAA;eAAdA;;;AA3DT,MAAMH,6BAA6B;AAEnC,SAASE,yBAAyBE,EAAU;IACjD,OAAOA,GAAGC,MAAM,KAAKL;AACvB;AAsBO,SAASC,iCACdG,EAAU;IAEV,MAAME,WAAWC,SAASH,GAAGI,KAAK,CAAC,GAAG,IAAI;IAC1C,MAAMC,UAAWH,YAAY,IAAK;IAClC,MAAMI,UAAWJ,YAAY,IAAK;IAClC,MAAMK,WAAWL,WAAW;IAC5B,MAAMM,WAAWC,MAAM;IAEvB,IAAK,IAAIC,QAAQ,GAAGA,QAAQ,GAAGA,QAAS;QACtC,MAAMC,cAAc,IAAID;QACxB,MAAME,MAAON,WAAWK,cAAe;QACvCH,QAAQ,CAACE,MAAM,GAAGE,QAAQ;IAC5B;IAEA,OAAO;QACLC,MAAMR,YAAY,IAAI,cAAc;QACpCG,UAAUA;QAQVM,aAAaP,aAAa;IAC5B;AACF;AAMO,SAASR,eACdgB,IAAe,EACfC,IAAyB;IAEzB,MAAMC,eAAe,IAAIR,MAAMM,KAAKd,MAAM;IAC1C,IAAIA,SAAS;IAEb,IAAK,IAAIS,QAAQ,GAAGA,QAAQK,KAAKd,MAAM,EAAES,QAAS;QAChD,IACGA,QAAQ,KAAKM,KAAKR,QAAQ,CAACE,MAAM,IAClC,wEAAwE;QACxE,0CAA0C;QACzCA,SAAS,KAAKM,KAAKF,WAAW,EAC/B;YACAG,YAAY,CAACP,MAAM,GAAGK,IAAI,CAACL,MAAM;YACjCT,SAASS,QAAQ;QACnB;IACF;IAEA,4CAA4C;IAC5CO,aAAahB,MAAM,GAAGA;IAEtB,OAAOgB;AACT","ignoreList":[0]}},
{"offset": {"line": 3840, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/turbopack/deferred-emit.ts"],"sourcesContent":["/**\n * Fires a callback after a delay unless it's cancelled or flushed first.\n *\n * `schedule()` replaces any still-pending emit.\n */\nexport class DeferredEmit {\n #timer: ReturnType<typeof setTimeout> | undefined\n #fn: (() => void) | undefined\n\n /**\n * Arm `fn` to run after `delayMs`, replacing any still-pending emit.\n *\n * @param delayMs The delay in milliseconds before the callback is fired.\n * @param fn The callback function to be executed after the delay.\n */\n schedule(delayMs: number, scheduledFn: () => void): void {\n this.cancel()\n this.#fn = scheduledFn\n this.#timer = setTimeout(() => {\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }, delayMs)\n }\n\n /**\n * If an emit is pending, run it now instead of waiting for the delay.\n */\n flush(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }\n\n /**\n * Cancel a pending emit without running it.\n */\n cancel(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n this.#fn = undefined\n }\n\n get isPending(): boolean {\n return this.#timer !== undefined\n }\n}\n"],"names":["DeferredEmit","schedule","delayMs","scheduledFn","cancel","setTimeout","undefined","fn","flush","clearTimeout","isPending"],"mappings":"AAAA;;;;CAIC;;;+BACYA,gBAAAA;;;eAAAA;;;AAAN,MAAMA;KACX,CAAA,IAAM,CAA2C;KACjD,CAAA,CAAG,CAA0B;IAE7B;;;;;GAKC,GACDC,SAASC,OAAe,EAAEC,WAAuB,EAAQ;QACvD,IAAI,CAACC,MAAM;QACX,IAAI,EAAC,CAAA,CAAG,GAAGD;QACX,IAAI,EAAC,CAAA,IAAM,GAAGE,WAAW;YACvB,IAAI,EAAC,CAAA,IAAM,GAAGC;YACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;YACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;YACXC;QACF,GAAGL;IACL;IAEA;;GAEC,GACDM,QAAc;QACZ,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKF,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;QACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;QACXC;IACF;IAEA;;GAEC,GACDH,SAAe;QACb,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKE,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,IAAI,EAAC,CAAA,CAAG,GAAGA;IACb;IAEA,IAAII,YAAqB;QACvB,OAAO,IAAI,EAAC,CAAA,IAAM,KAAKJ;IACzB;AACF","ignoreList":[0]}},
{"offset": {"line": 3901, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils/warn-once.ts"],"sourcesContent":["let warnOnce = (_: string) => {}\nif (process.env.NODE_ENV !== 'production') {\n const warnings = new Set<string>()\n warnOnce = (msg: string) => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\nexport { warnOnce }\n"],"names":["warnOnce","_","process","env","NODE_ENV","warnings","Set","msg","has","console","warn","add"],"mappings":"AACIE,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAUpBJ,YAAAA;;;eAAAA;;;AAXT,IAAIA,WAAW,CAACC,KAAe;AAC/B,wCAA2C;IACzC,MAAMI,WAAW,IAAIC;IACrBN,WAAW,CAACO;QACV,IAAI,CAACF,SAASG,GAAG,CAACD,MAAM;YACtBE,QAAQC,IAAI,CAACH;QACf;QACAF,SAASM,GAAG,CAACJ;IACf;AACF","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,27 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/build/polyfills/polyfill-module.js"],"sourcesContent":["\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var t=/\\((.*)\\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if(\"function\"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]}),Object.hasOwn||(Object.hasOwn=function(t,r){if(null==t)throw new TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(t),r)}),\"canParse\"in URL||(URL.canParse=function(t,r){try{return!!new URL(t,r)}catch(t){return!1}});\n"],"names":["String","prototype","trimStart","trimLeft","trimEnd","trimRight","Symbol","Object","defineProperty","configurable","get","t","exec","toString","Array","flat","r","concat","apply","some","isArray","flatMap","map","Promise","finally","then","n","resolve","fromEntries","from","reduce","at","Math","trunc","length","hasOwn","TypeError","hasOwnProperty","call","URL","canParse"],"mappings":"AAAA,eAAcA,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACC,SAAS,GAACF,OAAOC,SAAS,CAACE,QAAQ,GAAE,aAAYH,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACG,OAAO,GAACJ,OAAOC,SAAS,CAACI,SAAS,GAAE,iBAAgBC,OAAOL,SAAS,IAAEM,OAAOC,cAAc,CAACF,OAAOL,SAAS,EAAC,eAAc;IAACQ,cAAa,CAAC;IAAEC,KAAI;QAAW,IAAIC,IAAE,WAAWC,IAAI,CAAC,IAAI,CAACC,QAAQ;QAAI,OAAOF,IAAEA,CAAC,CAAC,EAAE,GAAC,KAAK;IAAC;AAAC,IAAGG,MAAMb,SAAS,CAACc,IAAI,IAAE,CAACD,MAAMb,SAAS,CAACc,IAAI,GAAC,SAASJ,CAAC,EAACK,CAAC;IAAE,OAAOA,IAAE,IAAI,CAACC,MAAM,CAACC,KAAK,CAAC,EAAE,EAAC,IAAI,GAAEP,IAAE,KAAGK,EAAEG,IAAI,CAACL,MAAMM,OAAO,IAAEJ,EAAED,IAAI,CAACJ,IAAE,KAAGK;AAAC,GAAEF,MAAMb,SAAS,CAACoB,OAAO,GAAC,SAASV,CAAC,EAACK,CAAC;IAAE,OAAO,IAAI,CAACM,GAAG,CAACX,GAAEK,GAAGD,IAAI;AAAE,CAAC,GAAEQ,QAAQtB,SAAS,CAACuB,OAAO,IAAE,CAACD,QAAQtB,SAAS,CAACuB,OAAO,GAAC,SAASb,CAAC;IAAE,IAAG,cAAY,OAAOA,GAAE,OAAO,IAAI,CAACc,IAAI,CAACd,GAAEA;IAAG,IAAIK,IAAE,IAAI,CAAC,WAAW,IAAEO;IAAQ,OAAO,IAAI,CAACE,IAAI,CAAC,SAASC,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,OAAOC;QAAC;IAAE,GAAE,SAASA,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,MAAMC;QAAC;IAAE;AAAE,CAAC,GAAEnB,OAAOqB,WAAW,IAAE,CAACrB,OAAOqB,WAAW,GAAC,SAASjB,CAAC;IAAE,OAAOG,MAAMe,IAAI,CAAClB,GAAGmB,MAAM,CAAC,SAASnB,CAAC,EAACK,CAAC;QAAE,OAAOL,CAAC,CAACK,CAAC,CAAC,EAAE,CAAC,GAACA,CAAC,CAAC,EAAE,EAACL;IAAC,GAAE,CAAC;AAAE,CAAC,GAAEG,MAAMb,SAAS,CAAC8B,EAAE,IAAE,CAACjB,MAAMb,SAAS,CAAC8B,EAAE,GAAC,SAASpB,CAAC;IAAE,IAAIK,IAAEgB,KAAKC,KAAK,CAACtB,MAAI;IAAE,IAAGK,IAAE,KAAG,CAACA,KAAG,IAAI,CAACkB,MAAM,GAAE,CAAC,CAAClB,IAAE,KAAGA,KAAG,IAAI,CAACkB,MAAM,GAAE,OAAO,IAAI,CAAClB,EAAE;AAAA,CAAC,GAAET,OAAO4B,MAAM,IAAE,CAAC5B,OAAO4B,MAAM,GAAC,SAASxB,CAAC,EAACK,CAAC;IAAE,IAAG,QAAML,GAAE,MAAM,IAAIyB,UAAU;IAA8C,OAAO7B,OAAON,SAAS,CAACoC,cAAc,CAACC,IAAI,CAAC/B,OAAOI,IAAGK;AAAE,CAAC,GAAE,cAAauB,OAAK,CAACA,IAAIC,QAAQ,GAAC,SAAS7B,CAAC,EAACK,CAAC;IAAE,IAAG;QAAC,OAAM,CAAC,CAAC,IAAIuB,IAAI5B,GAAEK;IAAE,EAAC,OAAML,GAAE;QAAC,OAAM,CAAC;IAAC;AAAC,CAAC","ignoreList":[0]}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/build/polyfills/process.ts"],"sourcesContent":["module.exports =\n global.process?.env && typeof global.process?.env === 'object'\n ? global.process\n : (require('next/dist/compiled/process') as typeof import('next/dist/compiled/process'))\n"],"names":["global","module","exports","process","env","require"],"mappings":"IACEA,iBAA8BA;AADhCC,OAAOC,OAAO,GACZF,CAAAA,CAAAA,kBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,gBAAgBI,GAAG,KAAI,OAAA,CAAA,CAAOJ,mBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,iBAAgBI,GAAG,MAAK,WAClDJ,yDAAOG,OAAO,GACbE,QAAQ","ignoreList":[0]}},
{"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/constants.ts"],"sourcesContent":["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\nexportLine truncated
{"offset": {"line": 473, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/is-api-route.ts"],"sourcesContent":["export function isAPIRoute(value?: string) {\n return value === '/api' || Boolean(value?.startsWith('/api/'))\n}\n"],"names":["isAPIRoute","value","Boolean","startsWith"],"mappings":";;;+BAAgBA,cAAAA;;;eAAAA;;;AAAT,SAASA,WAAWC,KAAc;IACvC,OAAOA,UAAU,UAAUC,QAAQD,SAAAA,OAAAA,KAAAA,IAAAA,MAAOE,UAAU,CAAC;AACvD","ignoreList":[0]}},
{"offset": {"line": 489, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/is-error.ts"],"sourcesContent":["import { isPlainObject } from '../shared/lib/is-plain-object'\n\n// We allow some additional attached properties for Next.js errors\nexport interface NextError extends Error {\n type?: string\n page?: string\n code?: string | number\n cancelled?: boolean\n digest?: string\n}\n\n/**\n * This is a safe stringify function that handles circular references.\n * We're using a simpler version here to avoid introducing\n * the dependency `safe-stable-stringify` into production bundle.\n *\n * This helper is used both in development and production.\n */\nfunction safeStringifyLite(obj: any) {\n const seen = new WeakSet()\n\n return JSON.stringify(obj, (_key, value) => {\n // If value is an object and already seen, replace with \"[Circular]\"\n if (typeof value === 'object' && value !== null) {\n if (seen.has(value)) {\n return '[Circular]'\n }\n seen.add(value)\n }\n return value\n })\n}\n\n/**\n * Checks whether the given value is a NextError.\n * This can be used to print a more detailed error message with properties like `code` & `digest`.\n */\nexport default function isError(err: unknown): err is NextError {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // provide better error for case where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error(\n 'An undefined error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n\n if (err === null) {\n return new Error(\n 'A null error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n }\n\n return new Error(isPlainObject(err) ? safeStringifyLite(err) : err + '')\n}\n"],"names":["isError","getProperError","safeStringifyLite","obj","seen","WeakSet","JSON","stringify","_key","value","has","add","err","process","env","NODE_ENV","Error","isPlainObject"],"mappings":"AAgDMa,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;;;;;;;;;;;;IAf/B;;;CAGC,GACD,OAIC,EAAA;eAJuBf;;IAMRC,cAAc,EAAA;eAAdA;;;+BA3Cc;AAW9B;;;;;;CAMC,GACD,SAASC,kBAAkBC,GAAQ;IACjC,MAAMC,OAAO,IAAIC;IAEjB,OAAOC,KAAKC,SAAS,CAACJ,KAAK,CAACK,MAAMC;QAChC,oEAAoE;QACpE,IAAI,OAAOA,UAAU,YAAYA,UAAU,MAAM;YAC/C,IAAIL,KAAKM,GAAG,CAACD,QAAQ;gBACnB,OAAO;YACT;YACAL,KAAKO,GAAG,CAACF;QACX;QACA,OAAOA;IACT;AACF;AAMe,SAAST,QAAQY,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASX,eAAeW,GAAY;IACzC,IAAIZ,QAAQY,MAAM;QAChB,OAAOA;IACT;IAEA,wCAA4C;QAC1C,wDAAwD;QACxD,2BAA2B;QAC3B,IAAI,OAAOA,QAAQ,aAAa;YAC9B,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,oCACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;QAEA,IAAIJ,QAAQ,MAAM;YAChB,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,8BACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;IACF;IAEA,OAAO,OAAA,cAAiE,CAAjE,IAAIA,MAAMC,CAAAA,GAAAA,eAAAA,aAAa,EAACL,OAAOV,kBAAkBU,OAAOA,MAAM,KAA9D,qBAAA;eAAA;oBAAA;sBAAA;IAAgE;AACzE","ignoreList":[0]}},
{"offset": {"line": 570, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/require-instrumentation-client.ts"],"sourcesContent":["/**\n * This module imports the configured client instrumentation modules.\n *\n * The `private-next-instrumentation-client` module is automatically aliased to\n * either the user's instrumentation module or a generated module array.\n */\nif (process.env.NODE_ENV === 'development') {\n const measureName = 'Client Instrumentation Hook'\n const startTime = performance.now()\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n const endTime = performance.now()\n const duration = endTime - startTime\n\n // Using 16ms threshold as it represents one frame (1000ms/60fps)\n // This helps identify if the instrumentation hook initialization\n // could potentially cause frame drops during development.\n const THRESHOLD = 16\n if (duration > THRESHOLD) {\n console.log(\n `[${measureName}] Slow execution detected: ${duration.toFixed(0)}ms (Note: Code download overhead is not included in this measurement)`\n )\n }\n} else {\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n}\n"],"names":["process","env","NODE_ENV","measureName","startTime","performance","now","instrumentationClient","require","module","exports","Array","isArray","endTime","duration","THRESHOLD","console","log","toFixed"],"mappings":"AAMIA,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAN7B;;;;;CAKC,GAAA;AACD,wCAA4C;IAC1C,MAAMC,cAAc;IACpB,MAAMC,YAAYC,YAAYC,GAAG;IACjC,+EAA+E;IAC/E,MAAMC,wBAAwBC,QAAQ;IACtCC,OAAOC,OAAO,GAAGC,MAAMC,OAAO,CAACL,yBAC3BA,wBACA;QAACA;KAAsB;IAC3B,MAAMM,UAAUR,YAAYC,GAAG;IAC/B,MAAMQ,WAAWD,UAAUT;IAE3B,iEAAiE;IACjE,iEAAiE;IACjE,0DAA0D;IAC1D,MAAMW,YAAY;IAClB,IAAID,WAAWC,WAAW;QACxBC,QAAQC,GAAG,CACT,CAAC,CAAC,EAAEd,YAAY,2BAA2B,EAAEW,SAASI,OAAO,CAAC,GAAG,qEAAqE,CAAC;IAE3I;AACF,OAAO","ignoreList":[0]}},
{"offset": {"line": 600, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/route-pattern-normalizer.ts"],"sourcesContent":["import type { Token } from 'next/dist/compiled/path-to-regexp'\n\n/**\n * Route pattern normalization utilities for path-to-regexp compatibility.\n *\n * path-to-regexp 6.3.0+ introduced stricter validation that rejects certain\n * patterns commonly used in Next.js interception routes. This module provides\n * normalization functions to make Next.js route patterns compatible with the\n * updated library while preserving all functionality.\n */\n\n/**\n * Internal separator used to normalize adjacent parameter patterns.\n * This unique marker is inserted between adjacent parameters and stripped out\n * during parameter extraction to avoid conflicts with real URL content.\n */\nexport const PARAM_SEPARATOR = '_NEXTSEP_'\n\n/**\n * Detects if a route pattern needs normalization for path-to-regexp compatibility.\n */\nexport function hasAdjacentParameterIssues(route: string): boolean {\n if (typeof route !== 'string') return false\n\n // Check for interception route markers followed immediately by parameters\n // Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.\n // These patterns cause \"Must have text between two parameters\" errors\n if (/\\/\\(\\.{1,3}\\):[^/\\s]+/.test(route)) {\n return true\n }\n\n // Check for basic adjacent parameters without separators\n // Pattern: :param1:param2 (but not :param* or other URL patterns)\n if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {\n return true\n }\n\n return false\n}\n\n/**\n * Normalizes route patterns that have adjacent parameters without text between them.\n * Inserts a unique separator that can be safely stripped out later.\n */\nexport function normalizeAdjacentParameters(route: string): string {\n let normalized = route\n\n // Handle interception route patterns: (.):param -> (.)_NEXTSEP_:param\n normalized = normalized.replace(\n /(\\([^)]*\\)):([^/\\s]+)/g,\n `$1${PARAM_SEPARATOR}:$2`\n )\n\n // Handle other adjacent parameter patterns: :param1:param2 -> :param1_NEXTSEP_:param2\n normalized = normalized.replace(/:([^:/\\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`)\n\n return normalized\n}\n\n/**\n * Normalizes tokens that have repeating modifiers (* or +) but empty prefix and suffix.\n *\n * path-to-regexp 6.3.0+ introduced validation that throws:\n * \"Can not repeat without prefix/suffix\"\n *\n * This occurs when a token has modifier: '*' or '+' with both prefix: '' and suffix: ''\n */\nexport function normalizeTokensForRegexp(tokens: Token[]): Token[] {\n return tokens.map((token) => {\n // Token union type: Token = string | TokenObject\n // Literal path segments are strings, parameters/wildcards are objects\n if (\n typeof token === 'object' &&\n token !== null &&\n // Not all token objects have 'modifier' property (e.g., simple text tokens)\n 'modifier' in token &&\n // Only repeating modifiers (* or +) cause the validation error\n // Other modifiers like '?' (optional) are fine\n (token.modifier === '*' || token.modifier === '+') &&\n // Token objects can have different shapes depending on route pattern\n 'prefix' in token &&\n 'suffix' in token &&\n // Both prefix and suffix must be empty strings\n // This is what causes the validation error in path-to-regexp\n token.prefix === '' &&\n token.suffix === ''\n ) {\n // Add minimal prefix to satisfy path-to-regexp validation\n // We use '/' as it's the most common path delimiter and won't break route matching\n // The prefix gets used in regex generation but doesn't affect parameter extraction\n return {\n ...token,\n prefix: '/',\n }\n }\n return token\n })\n}\n\n/**\n * Strips normalization separators from compiled pathname.\n * This removes separators that were inserted by normalizeAdjacentParameters\n * to satisfy path-to-regexp validation.\n *\n * Only removes separators in the specific contexts where they were inserted:\n * - After interception route markers: (.)_NEXTSEP_ -> (.)\n *\n * This targeted approach ensures we don't accidentally remove the separator\n * from legitimate user content.\n */\nexport function stripNormalizedSeparators(pathname: string): string {\n // Remove separator after interception route markers\n // Pattern: (.)_NEXTSEP_ -> (.), (..)_NEXTSEP_ -> (..), etc.\n // The separator appears after the closing paren of interception markers\n return pathname.replace(new RegExp(`\\\\)${PARAM_SEPARATOR}`, 'g'), ')')\n}\n\n/**\n * Strips normalization separators from extracted route parameters.\n * Used by both server and client code to clean up parameters after route matching.\n */\nexport function stripParameterSeparators(\n params: Record<string, any>\n): Record<string, any> {\n const cleaned: Record<Line truncated
{"offset": {"line": 708, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/forward-logs-shared.ts"],"sourcesContent":["export type LogMethod =\n | 'log'\n | 'info'\n | 'debug'\n | 'table'\n | 'error'\n | 'assert'\n | 'dir'\n | 'dirxml'\n | 'group'\n | 'groupCollapsed'\n | 'groupEnd'\n | 'trace'\n | 'warn'\n\nexport type ConsoleEntry<T> = {\n kind: 'console'\n method: LogMethod\n consoleMethodStack: string | null\n args: Array<\n | {\n kind: 'arg'\n data: T\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string\n }\n >\n}\n\nexport type ConsoleErrorEntry<T> = {\n kind: 'any-logged-error'\n method: 'error'\n consoleErrorStack: string\n args: Array<\n | {\n kind: 'arg'\n data: T\n isRejectionMessage?: boolean\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string | null\n }\n >\n}\n\nexport type FormattedErrorEntry = {\n kind: 'formatted-error'\n prefix: string\n stack: string\n method: 'error'\n}\n\nexport type ClientLogEntry =\n | ConsoleEntry<unknown>\n | ConsoleErrorEntry<unknown>\n | FormattedErrorEntry\nexport type ServerLogEntry =\n | ConsoleEntry<string>\n | ConsoleErrorEntry<string>\n | FormattedErrorEntry\n\nexport const UNDEFINED_MARKER = '__next_tagged_undefined'\n\nconst alreadyLoggedOnServerSymbol = Symbol('nextAlreadyLoggedOnServer')\n\n/**\n * Marks an error that originated on the server and was already logged there.\n * Such errors are also sent to the browser, where they get logged to the\n * browser console and shown in the dev overlay. This marker lets the\n * browser-to-terminal log forwarding skip them, so they aren't replayed back to\n * the CLI as duplicates.\n */\nexport function markErrorAsAlreadyLoggedOnServer(error: object): void {\n Object.defineProperty(error, alreadyLoggedOnServerSymbol, {\n value: true,\n enumerable: false,\n configurable: true,\n })\n}\n\nexport function wasErrorAlreadyLoggedOnServer(value: unknown): boolean {\n return (\n typeof value === 'object' &&\n value !== null &&\n (value as Record<symbol, unknown>)[alreadyLoggedOnServerSymbol] === true\n )\n}\n\n// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248\nexport function patchConsoleMethod<T extends keyof Console>(\n methodName: T,\n wrapper: (\n methodName: T,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) => void\n): () => 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 as Console[T] extends (\n ...args: any[]\n ) => any\n ? Console[T]\n : never\n const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n const wrapperMethod = function (\n this: typeof console,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) {\n wrapper(methodName, ...args)\n\n originalMethod.apply(this, args)\n }\n if (originalName) {\n Object.defineProperty(wrapperMethod, 'name', originalName)\n }\n Object.defineProperty(console, methodName, {\n value: wrapperMethod,\n })\n\n return () => {\n Object.defineProperty(console, methodName, {\n value: originalMethod,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n })\n }\n }\n\n return () => {}\n}\n"],"names":["UNDEFINED_MARKER","markErrorAsAlreadyLoggedOnServer","patchConsoleMethod","wasErrorAlreadyLoggedOnServer","alreadyLoggedOnServerSymbol","Symbol","error","Object","defineProperty","value","enumerable","configurable","methodName","wrapper","descriptor","getOwnPropertyDescriptor","console","writable","originalMethod","originalName","wrapperMethod","args","apply"],"mappings":";;;;;;;;;;;;;;;;IAkEaA,gBAAgB,EAAA;eAAhBA;;IAWGC,gCAAgC,EAAA;eAAhCA;;IAiBAC,kBAAkB,EAAA;eAAlBA;;IATAC,6BAA6B,EAAA;eAA7BA;;;AAnBT,MAAMH,mBAAmB;AAEhC,MAAMI,8BAA8BC,OAAO;AASpC,SAASJ,iCAAiCK,KAAa;IAC5DC,OAAOC,cAAc,CAACF,OAAOF,6BAA6B;QACxDK,OAAO;QACPC,YAAY;QACZC,cAAc;IAChB;AACF;AAEO,SAASR,8BAA8BM,KAAc;IAC1D,OACE,OAAOA,UAAU,YACjBA,UAAU,QACTA,KAAiC,CAACL,4BAA4B,KAAK;AAExE;AAGO,SAASF,mBACdU,UAAa,EACbC,OAGS;IAET,MAAMC,aAAaP,OAAOQ,wBAAwB,CAACC,SAASJ;IAC5D,IACEE,cACCA,CAAAA,WAAWH,YAAY,IAAIG,WAAWG,QAAO,KAC9C,OAAOH,WAAWL,KAAK,KAAK,YAC5B;QACA,MAAMS,iBAAiBJ,WAAWL,KAAK;QAKvC,MAAMU,eAAeZ,OAAOQ,wBAAwB,CAACG,gBAAgB;QACrE,MAAME,gBAAgB,SAEpB,GAAGC,IAAgE;YAEnER,QAAQD,eAAeS;YAEvBH,eAAeI,KAAK,CAAC,IAAI,EAAED;QAC7B;QACA,IAAIF,cAAc;YAChBZ,OAAOC,cAAc,CAACY,eAAe,QAAQD;QAC/C;QACAZ,OAAOC,cAAc,CAACQ,SAASJ,YAAY;YACzCH,OAAOW;QACT;QAEA,OAAO;YACLb,OAAOC,cAAc,CAALine truncated
{"offset": {"line": 785, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/react-18-hydration-error.ts"],"sourcesContent":["import isError from '../../lib/is-error'\n\nexport function isHydrationError(error: unknown): boolean {\n return (\n isError(error) &&\n (error.message ===\n 'Hydration failed because the initial UI does not match what was rendered on the server.' ||\n error.message === 'Text content does not match server-rendered HTML.')\n )\n}\n\nexport function isHydrationWarning(message: unknown): message is string {\n return (\n isHtmlTagsWarning(message) ||\n isTextInTagsMismatchWarning(message) ||\n isTextWarning(message)\n )\n}\n\ntype NullableText = string | null | undefined\n\n// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference\nconst htmlTagsWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',\n 'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s',\n])\nconst textAndTagsMismatchWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching text node for \"%s\" in <%s>.%s',\n 'Warning: Did not expect server HTML to contain the text node \"%s\" in <%s>.%s',\n])\nconst textWarnings = new Set([\n 'Warning: Text content did not match. Server: \"%s\" Client: \"%s\"%s',\n])\n\nexport const getHydrationWarningType = (\n message: NullableText\n): 'tag' | 'text' | 'text-in-tag' => {\n if (typeof message !== 'string') {\n // TODO: Doesn't make sense to treat no message as a hydration error message.\n // We should bail out somewhere earlier.\n return 'text'\n }\n\n const normalizedMessage = message.startsWith('Warning: ')\n ? message\n : `Warning: ${message}`\n\n if (isHtmlTagsWarning(normalizedMessage)) return 'tag'\n if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag'\n\n return 'text'\n}\n\nconst isHtmlTagsWarning = (message: unknown) =>\n typeof message === 'string' && htmlTagsWarnings.has(message)\n\nconst isTextInTagsMismatchWarning = (msg: unknown) =>\n typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg)\n\nconst isTextWarning = (msg: unknown) =>\n typeof msg === 'string' && textWarnings.has(msg)\n"],"names":["getHydrationWarningType","isHydrationError","isHydrationWarning","error","isError","message","isHtmlTagsWarning","isTextInTagsMismatchWarning","isTextWarning","htmlTagsWarnings","Set","textAndTagsMismatchWarnings","textWarnings","normalizedMessage","startsWith","has","msg"],"mappings":";;;;;;;;;;;;;;;IAkCaA,uBAAuB,EAAA;eAAvBA;;IAhCGC,gBAAgB,EAAA;eAAhBA;;IASAC,kBAAkB,EAAA;eAAlBA;;;;kEAXI;AAEb,SAASD,iBAAiBE,KAAc;IAC7C,OACEC,CAAAA,GAAAA,SAAAA,OAAO,EAACD,UACPA,CAAAA,MAAME,OAAO,KACZ,6FACAF,MAAME,OAAO,KAAK,mDAAkD;AAE1E;AAEO,SAASH,mBAAmBG,OAAgB;IACjD,OACEC,kBAAkBD,YAClBE,4BAA4BF,YAC5BG,cAAcH;AAElB;AAIA,iIAAiI;AACjI,MAAMI,mBAAmB,IAAIC,IAAI;IAC/B;IACA;CACD;AACD,MAAMC,8BAA8B,IAAID,IAAI;IAC1C;IACA;CACD;AACD,MAAME,eAAe,IAAIF,IAAI;IAC3B;CACD;AAEM,MAAMV,0BAA0B,CACrCK;IAEA,IAAI,OAAOA,YAAY,UAAU;QAC/B,6EAA6E;QAC7E,wCAAwC;QACxC,OAAO;IACT;IAEA,MAAMQ,oBAAoBR,QAAQS,UAAU,CAAC,eACzCT,UACA,CAAC,SAAS,EAAEA,SAAS;IAEzB,IAAIC,kBAAkBO,oBAAoB,OAAO;IACjD,IAAIN,4BAA4BM,oBAAoB,OAAO;IAE3D,OAAO;AACT;AAEA,MAAMP,oBAAoB,CAACD,UACzB,OAAOA,YAAY,YAAYI,iBAAiBM,GAAG,CAACV;AAEtD,MAAME,8BAA8B,CAACS,MACnC,OAAOA,QAAQ,YAAYL,4BAA4BI,GAAG,CAACC;AAE7D,MAAMR,gBAAgB,CAACQ,MACrB,OAAOA,QAAQ,YAAYJ,aAAaG,GAAG,CAACC","ignoreList":[0]}},
{"offset": {"line": 855, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/react-19-hydration-error.ts"],"sourcesContent":["export const REACT_HYDRATION_ERROR_LINK =\n 'https://react.dev/link/hydration-mismatch'\nexport const NEXTJS_HYDRATION_ERROR_LINK =\n 'https://nextjs.org/docs/messages/react-hydration-error'\n\n/**\n * Only React 19+ contains component stack diff in the error message\n */\nconst errorMessagesWithComponentStackDiff = [\n /^In HTML, (.+?) cannot be a child of <(.+?)>\\.(.*)\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, (.+?) cannot be a descendant of <(.+?)>\\.\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, text nodes cannot be a child of <(.+?)>\\.\\nThis will cause a hydration error\\./,\n /^In HTML, whitespace text nodes cannot be a child of <(.+?)>\\. Make sure you don't have any extra whitespace between tags on each line of your source code\\.\\nThis will cause a hydration error\\./,\n]\n\nexport function isHydrationError(error: Error): boolean {\n return (\n isErrorMessageWithComponentStackDiff(error.message) ||\n /Hydration failed because the server rendered (text|HTML) didn't match the client\\./.test(\n error.message\n ) ||\n /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(\n error.message\n )\n )\n}\n\nexport function isErrorMessageWithComponentStackDiff(msg: string): boolean {\n return errorMessagesWithComponentStackDiff.some((regex) => regex.test(msg))\n}\n\nexport function getHydrationErrorStackInfo(error: Error): {\n message: string | null\n notes: string | null\n diff: string | null\n} {\n const errorMessage = error.message\n if (isErrorMessageWithComponentStackDiff(errorMessage)) {\n const [message, diffLog = ''] = errorMessage.split('\\n\\n')\n const diff = diffLog.trim()\n return {\n message: diff === '' ? errorMessage.trim() : message.trim(),\n diff,\n notes: null,\n }\n }\n\n const [message, maybeComponentStackDiff] = errorMessage.split(\n `${REACT_HYDRATION_ERROR_LINK}`\n )\n const trimmedMessage = message.trim()\n // React built-in hydration diff starts with a newline\n if (\n maybeComponentStackDiff !== undefined &&\n maybeComponentStackDiff.length > 1\n ) {\n const diffs: string[] = []\n maybeComponentStackDiff.split('\\n').forEach((line) => {\n if (line.trim() === '') return\n if (!line.trim().startsWith('at ')) {\n diffs.push(line)\n }\n })\n\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: diffs.join('\\n'),\n notes: notes.join('\\n\\n') || null,\n }\n } else {\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: null,\n notes: notes.join('\\n\\n'),\n }\n }\n}\n"],"names":["NEXTJS_HYDRATION_ERROR_LINK","REACT_HYDRATION_ERROR_LINK","getHydrationErrorStackInfo","isErrorMessageWithComponentStackDiff","isHydrationError","errorMessagesWithComponentStackDiff","error","message","test","msg","some","regex","errorMessage","diffLog","split","diff","trim","notes","maybeComponentStackDiff","trimmedMessage","undefined","length","diffs","forEach","line","startsWith","push","displayedMessage","join"],"mappings":";;;;;;;;;;;;;;;;;IAEaA,2BAA2B,EAAA;eAA3BA;;IAFAC,0BAA0B,EAAA;eAA1BA;;IA+BGC,0BAA0B,EAAA;eAA1BA;;IAJAC,oCAAoC,EAAA;eAApCA;;IAZAC,gBAAgB,EAAA;eAAhBA;;;AAfT,MAAMH,6BACX;AACK,MAAMD,8BACX;AAEF;;CAEC,GACD,MAAMK,sCAAsC;IAC1C;IACA;IACA;IACA;CACD;AAEM,SAASD,iBAAiBE,KAAY;IAC3C,OACEH,qCAAqCG,MAAMC,OAAO,KAClD,qFAAqFC,IAAI,CACvFF,MAAMC,OAAO,KAEf,sGAAsGC,IAAI,CACxGF,MAAMC,OAAO;AAGnB;AAEO,SAASJ,qCAAqCM,GAAW;IAC9D,OAAOJ,oCAAoCK,IAAI,CAAC,CAACC,QAAUA,MAAMH,IAAI,CAACC;AACxE;AAEO,SAASP,2BAA2BI,KAAY;IAKrD,MAAMM,eAAeN,MAAMC,OAAO;IAClC,IAAIJ,qCAAqCS,eAAe;QACtD,MAAM,CAACL,SAASM,UAAU,EAAE,CAAC,GAAGD,aAAaE,KAAK,CAAC;QACnD,MAAMC,OAAOF,QAAQG,IAAI;QACzB,OAAO;YACLT,SAASQ,SAAS,KAAKH,aAAaI,IAAI,KAAKT,QAAQS,IAAI;YACzDD;YACAE,OAAO;QACT;IACF;IAEA,MAAM,CAACV,SAASW,wBAAwB,GAAGN,aAAaE,KAAK,CAC3D,GAAGb,4BAA4B;IAEjC,MAAMkB,iBAAiBZ,QAAQS,IAAI;IACnC,sDAAsD;IACtD,IACEE,4BAA4BE,aAC5BF,wBAAwBG,MAAM,GAAG,GACjC;QACA,MAAMC,QAAkB,EAAE;QAC1BJ,wBAAwBJ,KAAK,CAAC,MAAMS,OAAO,CAAC,CAACC;YAC3C,IAAIA,KAAKR,IAAI,OAAO,IAAI;YACxB,IAAI,CAACQ,KAAKR,IAAI,GAAGS,UAAU,CAAC,QAAQ;gBAClCH,MAAMI,IAAI,CAACF;YACb;QACF;QAEA,MAAM,CAACG,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAMO,MAAMM,IAAI,CAAC;YACjBX,OAAOA,MAAMW,IAAI,CAAC,WAAW;QAC/B;IACF,OAAO;QACL,MAAM,CAACD,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAM;YACNE,OAAOA,MAAMW,IAAI,CAAC;QACpB;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 952, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/stitched-error.ts"],"sourcesContent":["import React from 'react'\nimport isError from '../../../../lib/is-error'\n\nconst ownerStacks = new WeakMap<Error, string | null>()\n\nexport function getOwnerStack(error: Error): string | null | undefined {\n return ownerStacks.get(error)\n}\nexport function setOwnerStack(error: Error, stack: string | null) {\n ownerStacks.set(error, stack)\n}\n\nexport function coerceError(value: unknown): Error {\n return isError(value) ? value : new Error('' + value)\n}\n\nexport function setOwnerStackIfAvailable(error: Error): void {\n // React 18 and prod does not have `captureOwnerStack`\n if ('captureOwnerStack' in React) {\n const ownerStack = React.captureOwnerStack()\n // Only set if we captured a valid owner stack, or if none exists yet.\n // This prevents overwriting a valid owner stack captured earlier\n // (e.g., in onRecoverableError) with null captured later.\n if (ownerStack || !ownerStacks.has(error)) {\n setOwnerStack(error, ownerStack)\n }\n }\n}\n\nexport function decorateDevError(thrownValue: unknown) {\n const error = coerceError(thrownValue)\n setOwnerStackIfAvailable(error)\n return error\n}\n"],"names":["coerceError","decorateDevError","getOwnerStack","setOwnerStack","setOwnerStackIfAvailable","ownerStacks","WeakMap","error","get","stack","set","value","isError","Error","React","ownerStack","captureOwnerStack","has","thrownValue"],"mappings":";;;;;;;;;;;;;;;;;IAYgBA,WAAW,EAAA;eAAXA;;IAiBAC,gBAAgB,EAAA;eAAhBA;;IAxBAC,aAAa,EAAA;eAAbA;;IAGAC,aAAa,EAAA;eAAbA;;IAQAC,wBAAwB,EAAA;eAAxBA;;;;gEAhBE;kEACE;AAEpB,MAAMC,cAAc,IAAIC;AAEjB,SAASJ,cAAcK,KAAY;IACxC,OAAOF,YAAYG,GAAG,CAACD;AACzB;AACO,SAASJ,cAAcI,KAAY,EAAEE,KAAoB;IAC9DJ,YAAYK,GAAG,CAACH,OAAOE;AACzB;AAEO,SAAST,YAAYW,KAAc;IACxC,OAAOC,CAAAA,GAAAA,SAAAA,OAAO,EAACD,SAASA,QAAQ,OAAA,cAAqB,CAArB,IAAIE,MAAM,KAAKF,QAAf,qBAAA;eAAA;oBAAA;sBAAA;IAAoB;AACtD;AAEO,SAASP,yBAAyBG,KAAY;IACnD,sDAAsD;IACtD,IAAI,uBAAuBO,OAAAA,OAAK,EAAE;QAChC,MAAMC,aAAaD,OAAAA,OAAK,CAACE,iBAAiB;QAC1C,sEAAsE;QACtE,iEAAiE;QACjE,0DAA0D;QAC1D,IAAID,cAAc,CAACV,YAAYY,GAAG,CAACV,QAAQ;YACzCJ,cAAcI,OAAOQ;QACvB;IACF;AACF;AAEO,SAASd,iBAAiBiB,WAAoB;IACnD,MAAMX,QAAQP,YAAYkB;IAC1Bd,yBAAyBG;IACzB,OAAOA;AACT","ignoreList":[0]}},
{"offset": {"line": 1030, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs-utils.ts"],"sourcesContent":["import { configure } from 'next/dist/compiled/safe-stable-stringify'\nimport { getTerminalLoggingConfig } from './terminal-logging-config'\nimport { UNDEFINED_MARKER } from '../../shared/forward-logs-shared'\n\nconst terminalLoggingConfig = getTerminalLoggingConfig()\n\nconst PROMISE_MARKER = 'Promise {}'\nconst UNAVAILABLE_MARKER = '[Unable to view]'\n\nconst maximumDepth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.depthLimit\n ? terminalLoggingConfig.depthLimit\n : 5\nconst maximumBreadth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.edgeLimit\n ? terminalLoggingConfig.edgeLimit\n : 100\n\nexport const safeStringifyWithDepth = configure({\n maximumDepth,\n maximumBreadth,\n})\n\n/**\n * allows us to:\n * - revive the undefined log in the server as it would look in the browser\n * - not read/attempt to serialize promises (next will console error if you do that, and will cause this program to infinitely recurse)\n * - if we read a proxy that throws (no way to detect if something is a proxy), explain to the user we can't read this data\n */\nexport function preLogSerializationClone<T>(\n value: T,\n seen = new WeakMap()\n): any {\n if (value === undefined) return UNDEFINED_MARKER\n if (value === null || typeof value !== 'object') return value\n if (seen.has(value as object)) return seen.get(value as object)\n\n try {\n Object.keys(value as object)\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n try {\n if (typeof (value as any).then === 'function') return PROMISE_MARKER\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n if (Array.isArray(value)) {\n const out: any[] = []\n seen.set(value, out)\n for (const item of value) {\n try {\n out.push(preLogSerializationClone(item, seen))\n } catch {\n out.push(UNAVAILABLE_MARKER)\n }\n }\n return out\n }\n\n const proto = Object.getPrototypeOf(value)\n if (proto === Object.prototype || proto === null) {\n const out: Record<string, unknown> = {}\n seen.set(value as object, out)\n for (const key of Object.keys(value as object)) {\n try {\n out[key] = preLogSerializationClone((value as any)[key], seen)\n } catch {\n out[key] = UNAVAILABLE_MARKER\n }\n }\n return out\n }\n\n return Object.prototype.toString.call(value)\n}\n\n// only safe if passed safeClone data\nexport const logStringify = (data: unknown): string => {\n try {\n const result = safeStringifyWithDepth(data)\n return result ?? `\"${UNAVAILABLE_MARKER}\"`\n } catch {\n return `\"${UNAVAILABLE_MARKER}\"`\n }\n}\n"],"names":["logStringify","preLogSerializationClone","safeStringifyWithDepth","terminalLoggingConfig","getTerminalLoggingConfig","PROMISE_MARKER","UNAVAILABLE_MARKER","maximumDepth","depthLimit","maximumBreadth","edgeLimit","configure","value","seen","WeakMap","undefined","UNDEFINED_MARKER","has","get","Object","keys","then","Array","isArray","out","set","item","push","proto","getPrototypeOf","prototype","key","toString","call","data","result"],"mappings":";;;;;;;;;;;;;;;IAgFaA,YAAY,EAAA;eAAZA;;IAnDGC,wBAAwB,EAAA;eAAxBA;;IAXHC,sBAAsB,EAAA;eAAtBA;;;qCAlBa;uCACe;mCACR;AAEjC,MAAMC,wBAAwBC,CAAAA,GAAAA,uBAAAA,wBAAwB;AAEtD,MAAMC,iBAAiB;AACvB,MAAMC,qBAAqB;AAE3B,MAAMC,eACJ,OAAOJ,0BAA0B,YAAYA,sBAAsBK,UAAU,GACzEL,sBAAsBK,UAAU,GAChC;AACN,MAAMC,iBACJ,OAAON,0BAA0B,YAAYA,sBAAsBO,SAAS,GACxEP,sBAAsBO,SAAS,GAC/B;AAEC,MAAMR,yBAAyBS,CAAAA,GAAAA,qBAAAA,SAAS,EAAC;IAC9CJ;IACAE;AACF;AAQO,SAASR,yBACdW,KAAQ,EACRC,OAAO,IAAIC,SAAS;IAEpB,IAAIF,UAAUG,WAAW,OAAOC,mBAAAA,gBAAgB;IAChD,IAAIJ,UAAU,QAAQ,OAAOA,UAAU,UAAU,OAAOA;IACxD,IAAIC,KAAKI,GAAG,CAACL,QAAkB,OAAOC,KAAKK,GAAG,CAACN;IAE/C,IAAI;QACFO,OAAOC,IAAI,CAACR;IACd,EAAE,OAAM;QACN,OAAON;IACT;IAEA,IAAI;QACF,IAAI,OAAQM,MAAcS,IAAI,KAAK,YAAY,OAAOhB;IACxD,EAAE,OAAM;QACN,OAAOC;IACT;IAEA,IAAIgB,MAAMC,OAAO,CAACX,QAAQ;QACxB,MAAMY,MAAa,EAAE;QACrBX,KAAKY,GAAG,CAACb,OAAOY;QAChB,KAAK,MAAME,QAAQd,MAAO;YACxB,IAAI;gBACFY,IAAIG,IAAI,CAAC1B,yBAAyByB,MAAMb;YAC1C,EAAE,OAAM;gBACNW,IAAIG,IAAI,CAACrB;YACX;QACF;QACA,OAAOkB;IACT;IAEA,MAAMI,QAAQT,OAAOU,cAAc,CAACjB;IACpC,IAAIgB,UAAUT,OAAOW,SAAS,IAAIF,UAAU,MAAM;QAChD,MAAMJ,MAA+B,CAAC;QACtCX,KAAKY,GAAG,CAACb,OAAiBY;QAC1B,KAAK,MAAMO,OAAOZ,OAAOC,IAAI,CAACR,OAAkB;YAC9C,IAAI;gBACFY,GAAG,CAACO,IAAI,GAAG9B,yBAA0BW,KAAa,CAACmB,IAAI,EAAElB;YAC3D,EAAE,OAAM;gBACNW,GAAG,CAACO,IAAI,GAAGzB;YACb;QACF;QACA,OAAOkB;IACT;IAEA,OAAOL,OAAOW,SAAS,CAACE,QAAQ,CAACC,IAAI,CAACrB;AACxC;AAGO,MAAMZ,eAAe,CAACkC;IAC3B,IAAI;QACF,MAAMC,SAASjC,uBAAuBgC;QACtC,OAAOC,UAAU,CAAC,CAAC,EAAE7B,mBAAmB,CAAC,CAAC;IAC5C,EAAE,OAAM;QACN,OAAO,CAAC,CAAC,EAAEA,mBAAmB,CAAC,CAAC;IAClC;AACF","ignoreList":[0]}},
{"offset": {"line": 1127, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs.ts"],"sourcesContent":["import { getErrorSource } from '../../../shared/lib/error-source'\nimport { getIsTerminalLoggingEnabled } from './terminal-logging-config'\nimport {\n type ConsoleEntry,\n type ConsoleErrorEntry,\n type FormattedErrorEntry,\n type ClientLogEntry,\n type LogMethod,\n patchConsoleMethod,\n wasErrorAlreadyLoggedOnServer,\n} from '../../shared/forward-logs-shared'\nimport { preLogSerializationClone, logStringify } from './forward-logs-utils'\nimport { getOwnerStack } from './errors/stitched-error'\n\nconst isTerminalLoggingEnabled = getIsTerminalLoggingEnabled()\nconst shouldForwardLogs =\n isTerminalLoggingEnabled || !!process.env.__NEXT_MCP_SERVER\n\nconst methods: Array<LogMethod> = [\n 'log',\n 'info',\n 'warn',\n 'debug',\n 'table',\n 'assert',\n 'dir',\n 'dirxml',\n 'group',\n 'groupCollapsed',\n 'groupEnd',\n 'trace',\n]\n\nconst afterThisFrame = (cb: () => void) => {\n let timeout: ReturnType<typeof setTimeout> | undefined\n\n const rafId = requestAnimationFrame(() => {\n timeout = setTimeout(() => {\n cb()\n })\n })\n\n return () => {\n cancelAnimationFrame(rafId)\n clearTimeout(timeout)\n }\n}\n\nlet isPatched = false\n\nconst serializeEntries = (entries: Array<ClientLogEntry>) =>\n entries.map((clientEntry) => {\n switch (clientEntry.kind) {\n case 'any-logged-error':\n case 'console': {\n return {\n ...clientEntry,\n args: clientEntry.args.map(stringifyUserArg),\n }\n }\n case 'formatted-error': {\n return clientEntry\n }\n default: {\n return null!\n }\n }\n })\n\nconst flushBufferedEntries = (socket: WebSocket) => {\n if (logQueue.entries.length === 0) {\n return\n }\n\n const payload = JSON.stringify({\n event: 'browser-logs',\n entries: serializeEntries(logQueue.entries),\n router: logQueue.router,\n // needed for source mapping, we just assign the sourceType from the last error for the whole batch\n sourceType: logQueue.sourceType,\n })\n\n socket.send(payload)\n logQueue.entries = []\n logQueue.sourceType = undefined\n}\n\n// Combined state and public API\nexport const logQueue: {\n entries: Array<ClientLogEntry>\n onSocketReady: (socket: WebSocket) => void\n flushScheduled: boolean\n socket: WebSocket | null\n cancelFlush: (() => void) | null\n sourceType?: 'server' | 'edge-server'\n router: 'app' | 'pages' | null\n scheduleLogSend: (entry: ClientLogEntry) => void\n} = {\n entries: [],\n flushScheduled: false,\n cancelFlush: null,\n socket: null,\n sourceType: undefined,\n router: null,\n scheduleLogSend: (entry: ClientLogEntry) => {\n logQueue.entries.push(entry)\n if (logQueue.flushScheduled) {\n return\n }\n // safe to deref and use in setTimeout closure since we cancel on new socket\n const socket = logQueue.socket\n if (!socket) {\n return\n }\n\n // we probably dont need this\n logQueue.flushScheduled = true\n\n // non blocking log flush, runs at most once per frame\n logQueue.cancelFlush = afterThisFrame(() => {\n logQueue.flushScheduled = false\n\n // just incase\n try {\n flushBufferedEntries(socket)\n } catch {\n // error (make sure u don't infinite loop)\n /* noop */\n }\n })\n },\n onSocketReady: (socket: WebSocket) => {\n // When MCP or terminal logging is enabled, we enable the socket connection,\n // otherwise it will not proceed.\n if (!shouldForwardLogs) {\n return\n }\n if (socket.readyState !== WebSocket.OPEN) {\n // invariant\n return\n }\n\n // incase an existing timeout was going to run with a stale socket\n logQueue.cancelFlush?.()\n logQueue.socket = socket\n\n try {\n flushBufferedEntries(socket)\n } catch {\n /** noop just incase */\n }\n },\n}\n\nconst stringifyUserArg = (\n arg:\n | {\n kind: 'arg'\n data: unknown\n }\n | {\n kind: 'formatted-error-arg'\n }\n) => {\n if (arg.kind !== 'arg') {\n return arg\n }\n return {\n ...arg,\n data: logStringify(arg.data),\n }\n}\n\nconst createErrorArg = (error: Error) => {\n return {\n kind: 'formatted-error-arg' as const,\n prefix: error.message ? `${error.name}: ${error.message}` : `${error.name}`,\n stack: getErrorStackWithOwnerStack(error),\n }\n}\n\nconst createLogEntry = (level: LogMethod, args: any[]) => {\n if (!shouldForwardLogs) {\n return\n }\n\n // do not abstract this, it implicitly relies on which functions call it. forcing the inlined implementation makes you think about callers\n // error capture stack trace maybe\n const stack = getErrorStack(new Error())\n const stackLines = stack?.split('\\n')\n const cleanStack = stLine truncated
{"offset": {"line": 1490, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/terminal-logging-config.ts"],"sourcesContent":["export function getTerminalLoggingConfig():\n | false\n | boolean\n | {\n depthLimit?: number\n edgeLimit?: number\n showSourceLocation?: boolean\n } {\n try {\n return JSON.parse(\n process.env.__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL || 'false'\n )\n } catch {\n return false\n }\n}\n\nexport function getIsTerminalLoggingEnabled(): boolean {\n const config = getTerminalLoggingConfig()\n return Boolean(config)\n}\n"],"names":["getIsTerminalLoggingEnabled","getTerminalLoggingConfig","JSON","parse","process","env","__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL","config","Boolean"],"mappings":"AAUMI,QAAQC,GAAG,CAACC,qCAAqC;;;;;;;;;;;;;;;;IAOvCN,2BAA2B,EAAA;eAA3BA;;IAjBAC,wBAAwB,EAAA;eAAxBA;;;AAAT,SAASA;IAQd,IAAI;QACF,OAAOC,KAAKC,KAAK,+CACsC;IAEzD,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEO,SAASH;IACd,MAAMO,SAASN;IACf,OAAOO,QAAQD;AACjB","ignoreList":[0]}},
{"offset": {"line": 1535, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/hydration-error-state.ts"],"sourcesContent":["import {\n getHydrationWarningType,\n isHydrationError as isReact18HydrationError,\n isHydrationWarning as isReact18HydrationWarning,\n} from '../../shared/react-18-hydration-error'\nimport {\n isHydrationError as isReact19HydrationError,\n isErrorMessageWithComponentStackDiff as isReact19HydrationWarning,\n} from '../../shared/react-19-hydration-error'\nimport type { HydrationErrorState } from '../../shared/hydration-error'\n\n// We only need this for React 18 or hydration console errors in React 19.\n// Once we surface console.error in the dev overlay in pages router, we should only\n// use this for React 18.\nlet hydrationErrorState: HydrationErrorState = {}\n\nconst squashedHydrationErrorDetails = new WeakMap<Error, HydrationErrorState>()\n\nexport function getSquashedHydrationErrorDetails(\n error: Error\n): HydrationErrorState | null {\n return squashedHydrationErrorDetails.has(error)\n ? squashedHydrationErrorDetails.get(error)!\n : null\n}\n\nexport function attachHydrationErrorState(error: Error) {\n if (!isReact18HydrationError(error) && !isReact19HydrationError(error)) {\n return\n }\n\n let parsedHydrationErrorState: typeof hydrationErrorState = {}\n\n // If there's any extra information in the error message to display,\n // append it to the error message details property\n if (hydrationErrorState.warning) {\n // The patched console.error found hydration errors logged by React\n // Append the logged warning to the error message\n parsedHydrationErrorState = {\n // It contains the warning, component stack, server and client tag names\n ...hydrationErrorState,\n }\n\n // Consume the cached hydration diff.\n // This is only required for now when we still squashed the hydration diff log into hydration error.\n // Once the all error is logged to dev overlay in order, this will go away.\n if (hydrationErrorState.reactOutputComponentDiff) {\n parsedHydrationErrorState.reactOutputComponentDiff =\n hydrationErrorState.reactOutputComponentDiff\n }\n\n squashedHydrationErrorDetails.set(error, parsedHydrationErrorState)\n }\n}\n\n// TODO: Only handle React 18. Once we surface console.error in the dev overlay in pages router,\n// we can use the same behavior as App Router.\nexport function storeHydrationErrorStateFromConsoleArgs(...args: any[]) {\n let [message, firstContent, secondContent, ...rest] = args\n if (isReact18HydrationWarning(message)) {\n // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument\n // when the 3rd argument is not the component stack but an empty string\n // For some warnings, there's only 1 argument for template.\n // The second argument is the diff or component stack.\n if (args.length === 3) {\n secondContent = ''\n }\n\n const warning = message\n .replace(/Warning: /, '')\n .replace('%s', firstContent)\n .replace('%s', secondContent)\n // remove the last %s from the message\n .replace(/%s/g, '')\n\n const lastArg = (rest[rest.length - 1] || '').trim()\n\n hydrationErrorState.reactOutputComponentDiff = generateHydrationDiffReact18(\n message,\n firstContent,\n secondContent,\n lastArg\n )\n\n hydrationErrorState.warning = warning\n } else if (isReact19HydrationWarning(message)) {\n // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument\n // when the 3rd argument is not the component stack but an empty string\n // For some warnings, there's only 1 argument for template.\n // The second argument is the diff or component stack.\n if (args.length === 3) {\n secondContent = ''\n }\n\n const warning = message\n .replace('%s', firstContent)\n .replace('%s', secondContent)\n // remove the last %s from the message\n .replace(/%s/g, '')\n\n const lastArg = (args[args.length - 1] || '').trim()\n\n hydrationErrorState.reactOutputComponentDiff = lastArg\n hydrationErrorState.warning = warning\n }\n}\n\n/*\n * Some hydration errors in React 18 does not have the diff in the error message.\n * Instead it has the error stack trace which is component stack that we can leverage.\n * Will parse the diff from the error stack trace\n * e.g.\n * Warning: Expected server HTML to contain a matching <div> in <p>.\n * at div\n * at p\n * at div\n * at div\n * at Page\n * output:\n * <Page>\n * <div>\n * <p>\n * > <div>\n *\n */\nfunction generateHydrationDiffReact18(\n message: string,\n firstContent: string,\n secondContent: string,\n lastArg: string\n) {\n const componentStack = lastArg\n let firstIndex = -1\n let secondIndex = -1\n const hydrationWarningType = getHydrationWaLine truncated
{"offset": {"line": 1698, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/pages-dev-overlay-error-boundary.tsx"],"sourcesContent":["import React from 'react'\n\ntype PagesDevOverlayErrorBoundaryProps = {\n children?: React.ReactNode\n}\ntype PagesDevOverlayErrorBoundaryState = {\n hasError: boolean\n}\n\nexport class PagesDevOverlayErrorBoundary extends React.PureComponent<\n PagesDevOverlayErrorBoundaryProps,\n PagesDevOverlayErrorBoundaryState\n> {\n state = { hasError: false }\n\n static getDerivedStateFromError(\n _: unknown\n ): Partial<PagesDevOverlayErrorBoundaryState> {\n return { hasError: true }\n }\n\n // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.\n render(): React.ReactNode {\n // The component has to be unmounted or else it would continue to error\n return this.state.hasError ? null : this.props.children\n }\n}\n"],"names":["PagesDevOverlayErrorBoundary","React","PureComponent","getDerivedStateFromError","_","hasError","render","state","props","children"],"mappings":";;;+BASaA,gCAAAA;;;eAAAA;;;;gEATK;AASX,MAAMA,qCAAqCC,OAAAA,OAAK,CAACC,aAAa;IAMnE,OAAOC,yBACLC,CAAU,EACkC;QAC5C,OAAO;YAAEC,UAAU;QAAK;IAC1B;IAEA,yIAAyI;IACzIC,SAA0B;QACxB,uEAAuE;QACvE,OAAO,IAAI,CAACC,KAAK,CAACF,QAAQ,GAAG,OAAO,IAAI,CAACG,KAAK,CAACC,QAAQ;IACzD;;QAhBK,KAAA,IAAA,OAAA,IAAA,CAILF,KAAAA,GAAQ;YAAEF,UAAU;QAAM;;AAa5B","ignoreList":[0]}},
{"offset": {"line": 1737, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/pages-dev-overlay-setup.tsx"],"sourcesContent":["import React from 'react'\nimport { renderPagesDevOverlay } from 'next/dist/compiled/next-devtools'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\nimport {\n attachHydrationErrorState,\n storeHydrationErrorStateFromConsoleArgs,\n} from './hydration-error-state'\nimport { Router } from '../../../client/router'\nimport { getOwnerStack } from '../app/errors/stitched-error'\nimport { isRecoverableError } from '../../../client/react-client-callbacks/on-recoverable-error'\nimport { getSquashedHydrationErrorDetails } from './hydration-error-state'\nimport { PagesDevOverlayErrorBoundary } from './pages-dev-overlay-error-boundary'\nimport {\n initializeDebugLogForwarding,\n forwardUnhandledError,\n logUnhandledRejection,\n forwardErrorLog,\n} from '../app/forward-logs'\n\nconst usePagesDevOverlayBridge = () => {\n React.useInsertionEffect(() => {\n // NDT uses a different React instance so it's not technically a state update\n // scheduled from useInsertionEffect.\n renderPagesDevOverlay(\n getOwnerStack,\n getSquashedHydrationErrorDetails,\n isRecoverableError\n )\n }, [])\n\n React.useEffect(() => {\n const { handleStaticIndicator } =\n require('../../../client/dev/hot-reloader/pages/hot-reloader-pages') as typeof import('../../../client/dev/hot-reloader/pages/hot-reloader-pages')\n\n Router.events.on('routeChangeComplete', handleStaticIndicator)\n\n return function () {\n Router.events.off('routeChangeComplete', handleStaticIndicator)\n }\n }, [])\n}\n\nexport type PagesDevOverlayBridgeType = typeof PagesDevOverlayBridge\n\ninterface PagesDevOverlayBridgeProps {\n children?: React.ReactNode\n}\n\nexport function PagesDevOverlayBridge({\n children,\n}: PagesDevOverlayBridgeProps) {\n usePagesDevOverlayBridge()\n\n return <PagesDevOverlayErrorBoundary>{children}</PagesDevOverlayErrorBoundary>\n}\n\nlet isRegistered = false\n\nfunction handleError(error: unknown) {\n if (!error || !(error instanceof Error) || typeof error.stack !== 'string') {\n // A non-error was thrown, we don't have anything to show. :-(\n return\n }\n\n attachHydrationErrorState(error)\n\n // Skip ModuleBuildError and ModuleNotFoundError, as it will be sent through onBuildError callback.\n // This is to avoid same error as different type showing up on client to cause flashing.\n if (\n error.name !== 'ModuleBuildError' &&\n error.name !== 'ModuleNotFoundError'\n ) {\n dispatcher.onUnhandledError(error)\n }\n}\n\nlet origConsoleError = console.error\nfunction nextJsHandleConsoleError(...args: any[]) {\n // See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78\n const maybeError = process.env.NODE_ENV !== 'production' ? args[1] : args[0]\n storeHydrationErrorStateFromConsoleArgs(...args)\n // TODO: Surfaces non-errors logged via `console.error`.\n handleError(maybeError)\n forwardErrorLog(args)\n origConsoleError.apply(window.console, args)\n}\n\nfunction onUnhandledError(event: ErrorEvent) {\n const error = event?.error\n handleError(error)\n\n if (error) {\n forwardUnhandledError(error as Error)\n }\n}\n\nfunction onUnhandledRejection(ev: PromiseRejectionEvent) {\n const reason = ev?.reason\n if (\n !reason ||\n !(reason instanceof Error) ||\n typeof reason.stack !== 'string'\n ) {\n // A non-error was thrown, we don't have anything to show. :-(\n return\n }\n\n dispatcher.onUnhandledRejection(reason)\n logUnhandledRejection(reason)\n}\n\nexport function register() {\n if (isRegistered) {\n return\n }\n isRegistered = true\n\n try {\n Error.stackTraceLimit = 50\n } catch {}\n\n initializeDebugLogForwarding('pages')\n window.addEventListener('error', onUnhandledError)\n window.addEventListener('unhandledrejection', onUnhandledRejection)\n window.console.error = nextJsHandleConsoleError\n}\n"],"names":["PagesDevOverlayBridge","register","usePagesDevOverlayBridge","React","useInsertionEffect","renderPagesDevOverlay","getOwnerStack","getSquashedHydrationErrorDetails","isRecoverableError","useEffect","handleStaticIndicator","require","Router","events","on","off","children","PagesDevOverlayErrorBoundary","isRegistered","handleError","error","Error","stack","attachHydrationErrorState","name","dispatcher","onUnhandledError","origConsoleError","console","nextJsHandleConsoleError","args","maybeError","process","env","NODE_ENV","storeHydrationErrorStateFromConsoleArgs","forwardErrorLog","apply","window","event","forwardUnhandledError","onUnhandledRejection","ev","reason","logUnhandledRejection","stackTraceLimit","initializeDebugLogForwarding","addEventListener"],"mappings":"AA+EqBgC,QAAQC,GAAG,CAACC,QAAQ,KALine truncated
{"offset": {"line": 1859, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/pages/_error.tsx"],"sourcesContent":["import React from 'react'\nimport Head from '../shared/lib/head'\nimport type { NextPageContext } from '../shared/lib/utils'\n\nconst statusCodes: { [code: number]: string } = {\n 400: 'Bad Request',\n 404: 'This page could not be found',\n 405: 'Method Not Allowed',\n 500: 'Internal Server Error',\n}\n\nexport type ErrorProps = {\n statusCode: number\n hostname?: string\n title?: string\n withDarkMode?: boolean\n}\n\nfunction _getInitialProps({\n req,\n res,\n err,\n}: NextPageContext): Promise<ErrorProps> | ErrorProps {\n const statusCode =\n res && res.statusCode ? res.statusCode : err ? err.statusCode! : 404\n\n let hostname\n\n if (typeof window !== 'undefined') {\n hostname = window.location.hostname\n } else if (req) {\n const { getRequestMeta } =\n // TODO(browser-variant): migrate to a .ts/.browser.ts split so the browser bundle drops the server branch; see scripts/generate-browser-variant-aliases.mjs\n // ast-grep-ignore: no-typeof-window-require-tsx\n require('../server/request-meta') as typeof import('../server/request-meta')\n\n const initUrl = getRequestMeta(req, 'initURL')\n if (initUrl) {\n const url = new URL(initUrl)\n hostname = url.hostname\n }\n }\n\n return { statusCode, hostname }\n}\n\nconst styles: Record<string, React.CSSProperties> = {\n error: {\n // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css#L38-L52\n fontFamily:\n 'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',\n height: '100vh',\n textAlign: 'center',\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n },\n desc: {\n lineHeight: '48px',\n },\n h1: {\n display: 'inline-block',\n margin: '0 20px 0 0',\n paddingRight: 23,\n fontSize: 24,\n fontWeight: 500,\n verticalAlign: 'top',\n },\n h2: {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: '28px',\n },\n wrap: {\n display: 'inline-block',\n },\n}\n\n/**\n * `Error` component used for handling errors.\n */\nexport default class Error<P = {}> extends React.Component<P & ErrorProps> {\n static displayName = 'ErrorPage'\n\n static getInitialProps = _getInitialProps\n static origGetInitialProps = _getInitialProps\n\n render() {\n const { statusCode, withDarkMode = true } = this.props\n const title =\n this.props.title ||\n statusCodes[statusCode] ||\n 'An unexpected error has occurred'\n\n return (\n <div style={styles.error}>\n <Head>\n <title>\n {statusCode\n ? `${statusCode}: ${title}`\n : 'Application error: a client-side exception has occurred'}\n </title>\n </Head>\n <div style={styles.desc}>\n <style\n dangerouslySetInnerHTML={{\n /* CSS minified from\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n\n ${\n withDarkMode\n ? `@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }`\n : ''\n }\n */\n __html: `body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}${\n withDarkMode\n ? '@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}'\n : ''\n }`,\n }}\n />\n\n {statusCode ? (\n <h1 className=\"next-error-h1\" style={styles.h1}>\n {statusCode}\n </h1>\n ) : null}\n <div style={styles.wrap}>\n <h2 style={styles.h2}>\n {this.props.title || statusCode ? (\n title\n ) : (\n <>\n Application error: a client-side exception has occurred{' '}\n {Boolean(this.props.hostname) && (\n <>while loading {this.props.hostname}</>\n )}{' '}\n (see the browser console for more information)\n </>\n )}\n .\n </h2>\n </div>\n </div>\n </div>\n )\n }\n}\n"],"names":["Error","statusCodes","_getInitialProps","req","res","err","statusCode","hostname","window","location","getRequestMeta","require","initUrl","url","URL","Line truncated
{"offset": {"line": 2019, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/api-utils/get-cookie-parser.ts"],"sourcesContent":["import type { NextApiRequestCookies } from '.'\n\n/**\n * Parse cookies from the `headers` of request\n * @param req request object\n */\n\nexport function getCookieParser(headers: {\n [key: string]: string | string[] | null | undefined\n}): () => NextApiRequestCookies {\n return function parseCookie(): NextApiRequestCookies {\n const { cookie } = headers\n\n if (!cookie) {\n return {}\n }\n\n const { parse: parseCookieFn } =\n require('next/dist/compiled/cookie') as typeof import('next/dist/compiled/cookie')\n return parseCookieFn(Array.isArray(cookie) ? cookie.join('; ') : cookie)\n }\n}\n"],"names":["getCookieParser","headers","parseCookie","cookie","parse","parseCookieFn","require","Array","isArray","join"],"mappings":";;;+BAOgBA,mBAAAA;;;eAAAA;;;AAAT,SAASA,gBAAgBC,OAE/B;IACC,OAAO,SAASC;QACd,MAAM,EAAEC,MAAM,EAAE,GAAGF;QAEnB,IAAI,CAACE,QAAQ;YACX,OAAO,CAAC;QACV;QAEA,MAAM,EAAEC,OAAOC,aAAa,EAAE,GAC5BC,QAAQ;QACV,OAAOD,cAAcE,MAAMC,OAAO,CAACL,UAAUA,OAAOM,IAAI,CAAC,QAAQN;IACnE;AACF","ignoreList":[0]}},
{"offset": {"line": 2042, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/dev/hot-reloader-types.ts"],"sourcesContent":["import type { IncomingMessage, ServerResponse } from 'http'\nimport type { UrlObject } from 'url'\nimport type { Duplex } from 'stream'\nimport type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type getBaseWebpackConfig from '../../build/webpack-config'\nimport type { RouteDefinition } from '../route-definitions/route-definition'\nimport type { Project, Update as TurbopackUpdate } from '../../build/swc/types'\nimport type { VersionInfo } from './parse-version-info'\nimport type { DebugInfo } from '../../next-devtools/shared/types'\nimport type { DevIndicatorServerState } from './dev-indicator-server-state'\nimport type {\n CacheIndicatorState,\n ServerCacheStatus,\n} from '../../next-devtools/dev-overlay/cache-indicator'\nimport type { DevToolsConfig } from '../../next-devtools/dev-overlay/shared'\nimport type {\n RequestInsight,\n RequestInsightsSnapshot,\n} from '../../next-devtools/shared/request-insights'\nimport type { ReactDebugChannelForBrowser } from './debug-channel'\nimport type { AnyStream } from '../app-render/stream-ops'\n\nexport const enum HMR_MESSAGE_SENT_TO_BROWSER {\n // JSON messages:\n ADDED_PAGE = 'addedPage',\n REMOVED_PAGE = 'removedPage',\n RELOAD_PAGE = 'reloadPage',\n SERVER_COMPONENT_CHANGES = 'serverComponentChanges',\n STATIC_PARAMS_CHANGED = 'staticParamsChanged',\n MIDDLEWARE_CHANGES = 'middlewareChanges',\n CLIENT_CHANGES = 'clientChanges',\n SERVER_ONLY_CHANGES = 'serverOnlyChanges',\n SYNC = 'sync',\n BUILT = 'built',\n BUILDING = 'building',\n DEV_PAGES_MANIFEST_UPDATE = 'devPagesManifestUpdate',\n TURBOPACK_MESSAGE = 'turbopack-message',\n SERVER_ERROR = 'serverError',\n TURBOPACK_CONNECTED = 'turbopack-connected',\n ISR_MANIFEST = 'isrManifest',\n CACHE_INDICATOR = 'cacheIndicator',\n DEV_INDICATOR = 'devIndicator',\n DEVTOOLS_CONFIG = 'devtoolsConfig',\n REQUEST_CURRENT_ERROR_STATE = 'requestCurrentErrorState',\n REQUEST_PAGE_METADATA = 'requestPageMetadata',\n REQUEST_INSIGHTS_UPDATE = 'requestInsightsUpdate',\n\n // Binary messages:\n REACT_DEBUG_CHUNK = 0,\n ERRORS_TO_SHOW_IN_BROWSER = 1,\n}\n\nexport const enum HMR_MESSAGE_SENT_TO_SERVER {\n // JSON messages:\n MCP_ERROR_STATE_RESPONSE = 'mcp-error-state-response',\n MCP_PAGE_METADATA_RESPONSE = 'mcp-page-metadata-response',\n PING = 'ping',\n}\n\nexport interface ServerErrorMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR\n errorJSON: string\n}\n\nexport interface TurbopackMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE\n data: TurbopackUpdate | TurbopackUpdate[]\n}\n\nexport interface BuildingMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILDING\n}\n\nexport interface CompilationError {\n moduleName?: string\n message: string\n details?: string\n moduleTrace?: Array<{ moduleName?: string }>\n stack?: string\n}\n\nexport interface SyncMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SYNC\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n versionInfo: VersionInfo\n updatedModules?: ReadonlyArray<string>\n debug?: DebugInfo\n devIndicator: DevIndicatorServerState\n devToolsConfig?: DevToolsConfig\n requestInsights?: RequestInsightsSnapshot\n}\n\nexport interface BuiltMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILT\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n updatedModules?: ReadonlyArray<string>\n}\n\nexport interface AddedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE\n data: [page: string | null]\n}\n\nexport interface RemovedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE\n data: [page: string | null]\n}\n\nexport interface ReloadPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE\n data: string\n}\n\nexport interface ServerComponentChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES\n}\n\n/**\n * Sent in dev when a route's set of statically-known params changed, e.g.\n * because `generateStaticParams` was added, removed, or edited.\n */\nexport interface StaticParamsChangedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.STATIC_PARAMS_CHANGED\n}\n\nexport interface MiddlewareChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES\n}\n\nexport interface ClientChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES\n}\n\nexport interface ServerOnlyChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES\n pages: ReadonlyArray<string>\n}\n\nexport interface DevPagesManifestUpdateMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE\n data: [\n {\n devPagesManifest: true\n },\n ]\n}\n\nexport interface TurbopackConnectedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOLine truncated
{"offset": {"line": 2103, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/dev/node-stack-frames.ts"],"sourcesContent":["import { parse } from 'next/dist/compiled/stacktrace-parser'\nimport type { StackFrame } from 'next/dist/compiled/stacktrace-parser'\nimport {\n decorateServerError,\n type ErrorSourceType,\n} from '../../shared/lib/error-source'\n\nfunction getFilesystemFrame(frame: StackFrame): StackFrame {\n const f: StackFrame = { ...frame }\n\n if (typeof f.file === 'string') {\n if (\n // Posix:\n f.file.startsWith('/') ||\n // Win32:\n /^[a-z]:\\\\/i.test(f.file) ||\n // Win32 UNC:\n f.file.startsWith('\\\\\\\\')\n ) {\n f.file = `file://${f.file}`\n }\n }\n\n return f\n}\n\nexport function getServerError(error: Error, type: ErrorSourceType): Error {\n if (error.name === 'TurbopackInternalError') {\n // If this is an internal Turbopack error we shouldn't show internal details\n // to the user. These are written to a log file instead.\n const turbopackInternalError = new Error(\n 'An unexpected Turbopack error occurred. Please see the output of `next dev` for more details.'\n )\n decorateServerError(turbopackInternalError, type)\n return turbopackInternalError\n }\n\n let n: Error\n try {\n throw new Error(error.message)\n } catch (e) {\n n = e as Error\n }\n\n n.name = error.name\n // If present, restore the error code from the original server error.\n const errorCode = (error as any).__NEXT_ERROR_CODE\n if (typeof errorCode === 'string') {\n Object.defineProperty(n, '__NEXT_ERROR_CODE', {\n value: errorCode,\n enumerable: false,\n configurable: true,\n })\n }\n try {\n n.stack = `${n.toString()}\\n${parse(error.stack!)\n .map(getFilesystemFrame)\n .map((f) => {\n let str = ` at ${f.methodName}`\n if (f.file) {\n let loc = f.file\n if (f.lineNumber) {\n loc += `:${f.lineNumber}`\n if (f.column) {\n loc += `:${f.column}`\n }\n }\n str += ` (${loc})`\n }\n return str\n })\n .join('\\n')}`\n } catch {\n n.stack = error.stack\n }\n\n decorateServerError(n, type)\n return n\n}\n"],"names":["getServerError","getFilesystemFrame","frame","f","file","startsWith","test","error","type","name","turbopackInternalError","Error","decorateServerError","n","message","e","errorCode","__NEXT_ERROR_CODE","Object","defineProperty","value","enumerable","configurable","stack","toString","parse","map","str","methodName","loc","lineNumber","column","join"],"mappings":";;;+BA0BgBA,kBAAAA;;;eAAAA;;;kCA1BM;6BAKf;AAEP,SAASC,mBAAmBC,KAAiB;IAC3C,MAAMC,IAAgB;QAAE,GAAGD,KAAK;IAAC;IAEjC,IAAI,OAAOC,EAAEC,IAAI,KAAK,UAAU;QAC9B,IACE,AACAD,EAAEC,IAAI,CAACC,EADE,QACQ,CAAC,QAClB,SAAS;QACT,aAAaC,IAAI,CAACH,EAAEC,IAAI,KACxB,aAAa;QACbD,EAAEC,IAAI,CAACC,UAAU,CAAC,SAClB;YACAF,EAAEC,IAAI,GAAG,CAAC,OAAO,EAAED,EAAEC,IAAI,EAAE;QAC7B;IACF;IAEA,OAAOD;AACT;AAEO,SAASH,eAAeO,KAAY,EAAEC,IAAqB;IAChE,IAAID,MAAME,IAAI,KAAK,0BAA0B;QAC3C,4EAA4E;QAC5E,wDAAwD;QACxD,MAAMC,yBAAyB,OAAA,cAE9B,CAF8B,IAAIC,MACjC,kGAD6B,qBAAA;mBAAA;wBAAA;0BAAA;QAE/B;QACAC,CAAAA,GAAAA,aAAAA,mBAAmB,EAACF,wBAAwBF;QAC5C,OAAOE;IACT;IAEA,IAAIG;IACJ,IAAI;QACF,MAAM,OAAA,cAAwB,CAAxB,IAAIF,MAAMJ,MAAMO,OAAO,GAAvB,qBAAA;mBAAA;wBAAA;0BAAA;QAAuB;IAC/B,EAAE,OAAOC,GAAG;QACVF,IAAIE;IACN;IAEAF,EAAEJ,IAAI,GAAGF,MAAME,IAAI;IACnB,qEAAqE;IACrE,MAAMO,YAAaT,MAAcU,iBAAiB;IAClD,IAAI,OAAOD,cAAc,UAAU;QACjCE,OAAOC,cAAc,CAACN,GAAG,qBAAqB;YAC5CO,OAAOJ;YACPK,YAAY;YACZC,cAAc;QAChB;IACF;IACA,IAAI;QACFT,EAAEU,KAAK,GAAG,GAAGV,EAAEW,QAAQ,GAAG,EAAE,EAAEC,CAAAA,GAAAA,kBAAAA,KAAK,EAAClB,MAAMgB,KAAK,EAC5CG,GAAG,CAACzB,oBACJyB,GAAG,CAAC,CAACvB;YACJ,IAAIwB,MAAM,CAAC,OAAO,EAAExB,EAAEyB,UAAU,EAAE;YAClC,IAAIzB,EAAEC,IAAI,EAAE;gBACV,IAAIyB,MAAM1B,EAAEC,IAAI;gBAChB,IAAID,EAAE2B,UAAU,EAAE;oBAChBD,OAAO,CAAC,CAAC,EAAE1B,EAAE2B,UAAU,EAAE;oBACzB,IAAI3B,EAAE4B,MAAM,EAAE;wBACZF,OAAO,CAAC,CAAC,EAAE1B,EAAE4B,MAAM,EAAE;oBACvB;gBACF;gBACAJ,OAAO,CAAC,EAAE,EAAEE,IAAI,CAAC,CAAC;YACpB;YACA,OAAOF;QACT,GACCK,IAAI,CAAC,OAAO;IACjB,EAAE,OAAM;QACNnB,EAAEU,KAAK,GAAGhB,MAAMgB,KAAK;IACvB;IAEAX,CAAAA,GAAAA,aAAAA,mBAAmB,EAACC,GAAGL;IACvB,OAAOK;AACT","ignoreList":[0]}},
{"offset": {"line": 2184, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/request-meta.ts"],"sourcesContent":["import type { IncomingMessage, ServerResponse } from 'http'\nimport type { ParsedUrlQuery } from 'querystring'\nimport type { UrlWithParsedQuery } from 'url'\nimport type { BaseNextRequest } from './base-http'\nimport type { CloneableBody } from './body-streams'\nimport type { RouteMatch } from './route-matches/route-match'\nimport type { NEXT_RSC_UNION_QUERY } from '../client/components/app-router-headers'\nimport type {\n ResponseCacheEntry,\n ServerComponentsHmrCache,\n} from './response-cache'\nimport type { PagesDevOverlayBridgeType } from '../next-devtools/userspace/pages/pages-dev-overlay-setup'\nimport type { OpaqueFallbackRouteParams } from './request/fallback-params'\nimport type { IncrementalCache } from './lib/incremental-cache'\nimport type { RevalidateFn } from './lib/router-utils/router-server-context'\nimport type { NextRequest } from './web/exports'\n\n// FIXME: (wyattjoh) this is a temporary solution to allow us to pass data between bundled modules\nexport const NEXT_REQUEST_META = Symbol.for('NextInternalRequestMeta')\n\nexport type NextIncomingMessage = (\n | BaseNextRequest\n | IncomingMessage\n | NextRequest\n) & {\n [NEXT_REQUEST_META]?: RequestMeta\n}\n\n/**\n * The callback function to call when a response cache entry was generated or\n * looked up in the cache. When it returns true, the server assumes that the\n * handler has already responded to the request and will not do so itself.\n */\nexport type OnCacheEntryHandler = (\n /**\n * The response cache entry that was generated or looked up in the cache.\n */\n cacheEntry: ResponseCacheEntry,\n\n /**\n * The request metadata.\n */\n requestMeta: {\n /**\n * The URL that was used to make the request.\n */\n url: string | undefined\n }\n) => Promise<boolean | void> | boolean | void\n\nexport interface RequestMeta {\n /**\n * The query that was used to make the request.\n */\n initQuery?: ParsedUrlQuery\n\n /**\n * The URL that was used to make the request.\n */\n initURL?: string\n\n /**\n * The protocol that was used to make the request.\n */\n initProtocol?: string\n\n /**\n * The body that was read from the request. This is used to allow the body to\n * be read multiple times.\n */\n clonableBody?: CloneableBody\n\n /**\n * True when the request matched a locale domain that was configured in the\n * next.config.js file.\n */\n isLocaleDomain?: boolean\n\n /**\n * True when the request had locale information stripped from the pathname\n * part of the URL.\n */\n didStripLocale?: boolean\n\n /**\n * If the request had its URL rewritten, this is the pathname it was rewritten\n * to (not a full URL, just the pathname).\n */\n rewrittenPathname?: string\n\n /**\n * The resolved pathname for the request. Dynamic route params are\n * interpolated, the pathname is decoded, and the trailing slash is removed.\n */\n resolvedPathname?: string\n\n /**\n * The cookies that were added by middleware and were added to the response.\n */\n middlewareCookie?: string[]\n\n /**\n * The match on the request for a given route.\n */\n match?: RouteMatch\n\n /**\n * The incremental cache to use for the request.\n */\n incrementalCache?: IncrementalCache\n\n /**\n * The server components HMR cache, only for dev.\n */\n serverComponentsHmrCache?: ServerComponentsHmrCache\n\n /**\n * The hash of the most recent server component change (dev only), set by the\n * router-server from the hot-reloader. Included in `\"use cache\"` cache keys\n * so that cached entries are revalidated after an edit, for every client,\n * regardless of whether it runs the HMR client.\n */\n hmrRefreshHash?: string\n\n /**\n * Equals the segment path that was used for the prefetch RSC request.\n */\n segmentPrefetchRSCRequest?: string\n\n /**\n * True when the request is for the prefetch flight data.\n */\n isPrefetchRSCRequest?: true\n\n /**\n * True when the request is for the flight data.\n */\n isRSCRequest?: true\n\n /**\n * A search param set by the Next.js client when performing RSC requests.\n * Because some CDNs do not vary their cache entries on our custom headers,\n * this search param represents a hash of the header values. For any cached\n * RSC request, we should verify that the hash matches before responding.\n * Otherwise this can lead to cache poisoning.\n * TODO: Consider not using custom request headers at all, and instead encode\n * everything into the search param.\n */\n cacheBustingSearchParam?: string\n\n /**\n * True when the request is for the `/_next/data` route using the pages\n * router.\n */\n isNextDataReq?: true\n\n /**\n * Postponed state to use for resumption. When absent, the request is not a\n * Line truncated
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,26 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/build/polyfills/polyfill-module.js"],"sourcesContent":["\"trimStart\"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),\"trimEnd\"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),\"description\"in Symbol.prototype||Object.defineProperty(Symbol.prototype,\"description\",{configurable:!0,get:function(){var t=/\\((.*)\\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if(\"function\"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]}),Object.hasOwn||(Object.hasOwn=function(t,r){if(null==t)throw new TypeError(\"Cannot convert undefined or null to object\");return Object.prototype.hasOwnProperty.call(Object(t),r)}),\"canParse\"in URL||(URL.canParse=function(t,r){try{return!!new URL(t,r)}catch(t){return!1}});\n"],"names":["String","prototype","trimStart","trimLeft","trimEnd","trimRight","Symbol","Object","defineProperty","configurable","get","t","exec","toString","Array","flat","r","concat","apply","some","isArray","flatMap","map","Promise","finally","then","n","resolve","fromEntries","from","reduce","at","Math","trunc","length","hasOwn","TypeError","hasOwnProperty","call","URL","canParse"],"mappings":"AAAA,eAAcA,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACC,SAAS,GAACF,OAAOC,SAAS,CAACE,QAAQ,GAAE,aAAYH,OAAOC,SAAS,IAAE,CAACD,OAAOC,SAAS,CAACG,OAAO,GAACJ,OAAOC,SAAS,CAACI,SAAS,GAAE,iBAAgBC,OAAOL,SAAS,IAAEM,OAAOC,cAAc,CAACF,OAAOL,SAAS,EAAC,eAAc;IAACQ,cAAa,CAAC;IAAEC,KAAI;QAAW,IAAIC,IAAE,WAAWC,IAAI,CAAC,IAAI,CAACC,QAAQ;QAAI,OAAOF,IAAEA,CAAC,CAAC,EAAE,GAAC,KAAK;IAAC;AAAC,IAAGG,MAAMb,SAAS,CAACc,IAAI,IAAE,CAACD,MAAMb,SAAS,CAACc,IAAI,GAAC,SAASJ,CAAC,EAACK,CAAC;IAAE,OAAOA,IAAE,IAAI,CAACC,MAAM,CAACC,KAAK,CAAC,EAAE,EAAC,IAAI,GAAEP,IAAE,KAAGK,EAAEG,IAAI,CAACL,MAAMM,OAAO,IAAEJ,EAAED,IAAI,CAACJ,IAAE,KAAGK;AAAC,GAAEF,MAAMb,SAAS,CAACoB,OAAO,GAAC,SAASV,CAAC,EAACK,CAAC;IAAE,OAAO,IAAI,CAACM,GAAG,CAACX,GAAEK,GAAGD,IAAI;AAAE,CAAC,GAAEQ,QAAQtB,SAAS,CAACuB,OAAO,IAAE,CAACD,QAAQtB,SAAS,CAACuB,OAAO,GAAC,SAASb,CAAC;IAAE,IAAG,cAAY,OAAOA,GAAE,OAAO,IAAI,CAACc,IAAI,CAACd,GAAEA;IAAG,IAAIK,IAAE,IAAI,CAAC,WAAW,IAAEO;IAAQ,OAAO,IAAI,CAACE,IAAI,CAAC,SAASC,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,OAAOC;QAAC;IAAE,GAAE,SAASA,CAAC;QAAE,OAAOV,EAAEW,OAAO,CAAChB,KAAKc,IAAI,CAAC;YAAW,MAAMC;QAAC;IAAE;AAAE,CAAC,GAAEnB,OAAOqB,WAAW,IAAE,CAACrB,OAAOqB,WAAW,GAAC,SAASjB,CAAC;IAAE,OAAOG,MAAMe,IAAI,CAAClB,GAAGmB,MAAM,CAAC,SAASnB,CAAC,EAACK,CAAC;QAAE,OAAOL,CAAC,CAACK,CAAC,CAAC,EAAE,CAAC,GAACA,CAAC,CAAC,EAAE,EAACL;IAAC,GAAE,CAAC;AAAE,CAAC,GAAEG,MAAMb,SAAS,CAAC8B,EAAE,IAAE,CAACjB,MAAMb,SAAS,CAAC8B,EAAE,GAAC,SAASpB,CAAC;IAAE,IAAIK,IAAEgB,KAAKC,KAAK,CAACtB,MAAI;IAAE,IAAGK,IAAE,KAAG,CAACA,KAAG,IAAI,CAACkB,MAAM,GAAE,CAAC,CAAClB,IAAE,KAAGA,KAAG,IAAI,CAACkB,MAAM,GAAE,OAAO,IAAI,CAAClB,EAAE;AAAA,CAAC,GAAET,OAAO4B,MAAM,IAAE,CAAC5B,OAAO4B,MAAM,GAAC,SAASxB,CAAC,EAACK,CAAC;IAAE,IAAG,QAAML,GAAE,MAAM,IAAIyB,UAAU;IAA8C,OAAO7B,OAAON,SAAS,CAACoC,cAAc,CAACC,IAAI,CAAC/B,OAAOI,IAAGK;AAAE,CAAC,GAAE,cAAauB,OAAK,CAACA,IAAIC,QAAQ,GAAC,SAAS7B,CAAC,EAACK,CAAC;IAAE,IAAG;QAAC,OAAM,CAAC,CAAC,IAAIuB,IAAI5B,GAAEK;IAAE,EAAC,OAAML,GAAE;QAAC,OAAM,CAAC;IAAC;AAAC,CAAC","ignoreList":[0]}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/build/polyfills/process.ts"],"sourcesContent":["module.exports =\n global.process?.env && typeof global.process?.env === 'object'\n ? global.process\n : (require('next/dist/compiled/process') as typeof import('next/dist/compiled/process'))\n"],"names":["global","module","exports","process","env","require"],"mappings":"IACEA,iBAA8BA;AADhCC,OAAOC,OAAO,GACZF,CAAAA,CAAAA,kBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,gBAAgBI,GAAG,KAAI,OAAA,CAAA,CAAOJ,mBAAAA,yDAAOG,OAAO,KAAA,OAAA,KAAA,IAAdH,iBAAgBI,GAAG,MAAK,WAClDJ,yDAAOG,OAAO,GACbE,QAAQ","ignoreList":[0]}},
{"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/constants.ts"],"sourcesContent":["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\nexportLine truncated
{"offset": {"line": 473, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/is-api-route.ts"],"sourcesContent":["export function isAPIRoute(value?: string) {\n return value === '/api' || Boolean(value?.startsWith('/api/'))\n}\n"],"names":["isAPIRoute","value","Boolean","startsWith"],"mappings":";;;+BAAgBA,cAAAA;;;eAAAA;;;AAAT,SAASA,WAAWC,KAAc;IACvC,OAAOA,UAAU,UAAUC,QAAQD,SAAAA,OAAAA,KAAAA,IAAAA,MAAOE,UAAU,CAAC;AACvD","ignoreList":[0]}},
{"offset": {"line": 489, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/is-error.ts"],"sourcesContent":["import { isPlainObject } from '../shared/lib/is-plain-object'\n\n// We allow some additional attached properties for Next.js errors\nexport interface NextError extends Error {\n type?: string\n page?: string\n code?: string | number\n cancelled?: boolean\n digest?: string\n}\n\n/**\n * This is a safe stringify function that handles circular references.\n * We're using a simpler version here to avoid introducing\n * the dependency `safe-stable-stringify` into production bundle.\n *\n * This helper is used both in development and production.\n */\nfunction safeStringifyLite(obj: any) {\n const seen = new WeakSet()\n\n return JSON.stringify(obj, (_key, value) => {\n // If value is an object and already seen, replace with \"[Circular]\"\n if (typeof value === 'object' && value !== null) {\n if (seen.has(value)) {\n return '[Circular]'\n }\n seen.add(value)\n }\n return value\n })\n}\n\n/**\n * Checks whether the given value is a NextError.\n * This can be used to print a more detailed error message with properties like `code` & `digest`.\n */\nexport default function isError(err: unknown): err is NextError {\n return (\n typeof err === 'object' && err !== null && 'name' in err && 'message' in err\n )\n}\n\nexport function getProperError(err: unknown): Error {\n if (isError(err)) {\n return err\n }\n\n if (process.env.NODE_ENV === 'development') {\n // provide better error for case where `throw undefined`\n // is called in development\n if (typeof err === 'undefined') {\n return new Error(\n 'An undefined error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n\n if (err === null) {\n return new Error(\n 'A null error was thrown, ' +\n 'see here for more info: https://nextjs.org/docs/messages/threw-undefined'\n )\n }\n }\n\n return new Error(isPlainObject(err) ? safeStringifyLite(err) : err + '')\n}\n"],"names":["isError","getProperError","safeStringifyLite","obj","seen","WeakSet","JSON","stringify","_key","value","has","add","err","process","env","NODE_ENV","Error","isPlainObject"],"mappings":"AAgDMa,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;;;;;;;;;;;;IAf/B;;;CAGC,GACD,OAIC,EAAA;eAJuBf;;IAMRC,cAAc,EAAA;eAAdA;;;+BA3Cc;AAW9B;;;;;;CAMC,GACD,SAASC,kBAAkBC,GAAQ;IACjC,MAAMC,OAAO,IAAIC;IAEjB,OAAOC,KAAKC,SAAS,CAACJ,KAAK,CAACK,MAAMC;QAChC,oEAAoE;QACpE,IAAI,OAAOA,UAAU,YAAYA,UAAU,MAAM;YAC/C,IAAIL,KAAKM,GAAG,CAACD,QAAQ;gBACnB,OAAO;YACT;YACAL,KAAKO,GAAG,CAACF;QACX;QACA,OAAOA;IACT;AACF;AAMe,SAAST,QAAQY,GAAY;IAC1C,OACE,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,UAAUA,OAAO,aAAaA;AAE7E;AAEO,SAASX,eAAeW,GAAY;IACzC,IAAIZ,QAAQY,MAAM;QAChB,OAAOA;IACT;IAEA,wCAA4C;QAC1C,wDAAwD;QACxD,2BAA2B;QAC3B,IAAI,OAAOA,QAAQ,aAAa;YAC9B,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,oCACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;QAEA,IAAIJ,QAAQ,MAAM;YAChB,OAAO,OAAA,cAGN,CAHM,IAAII,MACT,8BACE,6EAFG,qBAAA;uBAAA;4BAAA;8BAAA;YAGP;QACF;IACF;IAEA,OAAO,OAAA,cAAiE,CAAjE,IAAIA,MAAMC,CAAAA,GAAAA,eAAAA,aAAa,EAACL,OAAOV,kBAAkBU,OAAOA,MAAM,KAA9D,qBAAA;eAAA;oBAAA;sBAAA;IAAgE;AACzE","ignoreList":[0]}},
{"offset": {"line": 570, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/require-instrumentation-client.ts"],"sourcesContent":["/**\n * This module imports the configured client instrumentation modules.\n *\n * The `private-next-instrumentation-client` module is automatically aliased to\n * either the user's instrumentation module or a generated module array.\n */\nif (process.env.NODE_ENV === 'development') {\n const measureName = 'Client Instrumentation Hook'\n const startTime = performance.now()\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n const endTime = performance.now()\n const duration = endTime - startTime\n\n // Using 16ms threshold as it represents one frame (1000ms/60fps)\n // This helps identify if the instrumentation hook initialization\n // could potentially cause frame drops during development.\n const THRESHOLD = 16\n if (duration > THRESHOLD) {\n console.log(\n `[${measureName}] Slow execution detected: ${duration.toFixed(0)}ms (Note: Code download overhead is not included in this measurement)`\n )\n }\n} else {\n // eslint-disable-next-line @next/internal/typechecked-require -- Not a module.\n const instrumentationClient = require('private-next-instrumentation-client')\n module.exports = Array.isArray(instrumentationClient)\n ? instrumentationClient\n : [instrumentationClient]\n}\n"],"names":["process","env","NODE_ENV","measureName","startTime","performance","now","instrumentationClient","require","module","exports","Array","isArray","endTime","duration","THRESHOLD","console","log","toFixed"],"mappings":"AAMIA,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAN7B;;;;;CAKC,GAAA;AACD,wCAA4C;IAC1C,MAAMC,cAAc;IACpB,MAAMC,YAAYC,YAAYC,GAAG;IACjC,+EAA+E;IAC/E,MAAMC,wBAAwBC,QAAQ;IACtCC,OAAOC,OAAO,GAAGC,MAAMC,OAAO,CAACL,yBAC3BA,wBACA;QAACA;KAAsB;IAC3B,MAAMM,UAAUR,YAAYC,GAAG;IAC/B,MAAMQ,WAAWD,UAAUT;IAE3B,iEAAiE;IACjE,iEAAiE;IACjE,0DAA0D;IAC1D,MAAMW,YAAY;IAClB,IAAID,WAAWC,WAAW;QACxBC,QAAQC,GAAG,CACT,CAAC,CAAC,EAAEd,YAAY,2BAA2B,EAAEW,SAASI,OAAO,CAAC,GAAG,qEAAqE,CAAC;IAE3I;AACF,OAAO","ignoreList":[0]}},
{"offset": {"line": 600, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/lib/route-pattern-normalizer.ts"],"sourcesContent":["import type { Token } from 'next/dist/compiled/path-to-regexp'\n\n/**\n * Route pattern normalization utilities for path-to-regexp compatibility.\n *\n * path-to-regexp 6.3.0+ introduced stricter validation that rejects certain\n * patterns commonly used in Next.js interception routes. This module provides\n * normalization functions to make Next.js route patterns compatible with the\n * updated library while preserving all functionality.\n */\n\n/**\n * Internal separator used to normalize adjacent parameter patterns.\n * This unique marker is inserted between adjacent parameters and stripped out\n * during parameter extraction to avoid conflicts with real URL content.\n */\nexport const PARAM_SEPARATOR = '_NEXTSEP_'\n\n/**\n * Detects if a route pattern needs normalization for path-to-regexp compatibility.\n */\nexport function hasAdjacentParameterIssues(route: string): boolean {\n if (typeof route !== 'string') return false\n\n // Check for interception route markers followed immediately by parameters\n // Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.\n // These patterns cause \"Must have text between two parameters\" errors\n if (/\\/\\(\\.{1,3}\\):[^/\\s]+/.test(route)) {\n return true\n }\n\n // Check for basic adjacent parameters without separators\n // Pattern: :param1:param2 (but not :param* or other URL patterns)\n if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) {\n return true\n }\n\n return false\n}\n\n/**\n * Normalizes route patterns that have adjacent parameters without text between them.\n * Inserts a unique separator that can be safely stripped out later.\n */\nexport function normalizeAdjacentParameters(route: string): string {\n let normalized = route\n\n // Handle interception route patterns: (.):param -> (.)_NEXTSEP_:param\n normalized = normalized.replace(\n /(\\([^)]*\\)):([^/\\s]+)/g,\n `$1${PARAM_SEPARATOR}:$2`\n )\n\n // Handle other adjacent parameter patterns: :param1:param2 -> :param1_NEXTSEP_:param2\n normalized = normalized.replace(/:([^:/\\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`)\n\n return normalized\n}\n\n/**\n * Normalizes tokens that have repeating modifiers (* or +) but empty prefix and suffix.\n *\n * path-to-regexp 6.3.0+ introduced validation that throws:\n * \"Can not repeat without prefix/suffix\"\n *\n * This occurs when a token has modifier: '*' or '+' with both prefix: '' and suffix: ''\n */\nexport function normalizeTokensForRegexp(tokens: Token[]): Token[] {\n return tokens.map((token) => {\n // Token union type: Token = string | TokenObject\n // Literal path segments are strings, parameters/wildcards are objects\n if (\n typeof token === 'object' &&\n token !== null &&\n // Not all token objects have 'modifier' property (e.g., simple text tokens)\n 'modifier' in token &&\n // Only repeating modifiers (* or +) cause the validation error\n // Other modifiers like '?' (optional) are fine\n (token.modifier === '*' || token.modifier === '+') &&\n // Token objects can have different shapes depending on route pattern\n 'prefix' in token &&\n 'suffix' in token &&\n // Both prefix and suffix must be empty strings\n // This is what causes the validation error in path-to-regexp\n token.prefix === '' &&\n token.suffix === ''\n ) {\n // Add minimal prefix to satisfy path-to-regexp validation\n // We use '/' as it's the most common path delimiter and won't break route matching\n // The prefix gets used in regex generation but doesn't affect parameter extraction\n return {\n ...token,\n prefix: '/',\n }\n }\n return token\n })\n}\n\n/**\n * Strips normalization separators from compiled pathname.\n * This removes separators that were inserted by normalizeAdjacentParameters\n * to satisfy path-to-regexp validation.\n *\n * Only removes separators in the specific contexts where they were inserted:\n * - After interception route markers: (.)_NEXTSEP_ -> (.)\n *\n * This targeted approach ensures we don't accidentally remove the separator\n * from legitimate user content.\n */\nexport function stripNormalizedSeparators(pathname: string): string {\n // Remove separator after interception route markers\n // Pattern: (.)_NEXTSEP_ -> (.), (..)_NEXTSEP_ -> (..), etc.\n // The separator appears after the closing paren of interception markers\n return pathname.replace(new RegExp(`\\\\)${PARAM_SEPARATOR}`, 'g'), ')')\n}\n\n/**\n * Strips normalization separators from extracted route parameters.\n * Used by both server and client code to clean up parameters after route matching.\n */\nexport function stripParameterSeparators(\n params: Record<string, any>\n): Record<string, any> {\n const cleaned: Record<Line truncated
{"offset": {"line": 708, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/forward-logs-shared.ts"],"sourcesContent":["export type LogMethod =\n | 'log'\n | 'info'\n | 'debug'\n | 'table'\n | 'error'\n | 'assert'\n | 'dir'\n | 'dirxml'\n | 'group'\n | 'groupCollapsed'\n | 'groupEnd'\n | 'trace'\n | 'warn'\n\nexport type ConsoleEntry<T> = {\n kind: 'console'\n method: LogMethod\n consoleMethodStack: string | null\n args: Array<\n | {\n kind: 'arg'\n data: T\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string\n }\n >\n}\n\nexport type ConsoleErrorEntry<T> = {\n kind: 'any-logged-error'\n method: 'error'\n consoleErrorStack: string\n args: Array<\n | {\n kind: 'arg'\n data: T\n isRejectionMessage?: boolean\n }\n | {\n kind: 'formatted-error-arg'\n prefix: string\n stack: string | null\n }\n >\n}\n\nexport type FormattedErrorEntry = {\n kind: 'formatted-error'\n prefix: string\n stack: string\n method: 'error'\n}\n\nexport type ClientLogEntry =\n | ConsoleEntry<unknown>\n | ConsoleErrorEntry<unknown>\n | FormattedErrorEntry\nexport type ServerLogEntry =\n | ConsoleEntry<string>\n | ConsoleErrorEntry<string>\n | FormattedErrorEntry\n\nexport const UNDEFINED_MARKER = '__next_tagged_undefined'\n\nconst alreadyLoggedOnServerSymbol = Symbol('nextAlreadyLoggedOnServer')\n\n/**\n * Marks an error that originated on the server and was already logged there.\n * Such errors are also sent to the browser, where they get logged to the\n * browser console and shown in the dev overlay. This marker lets the\n * browser-to-terminal log forwarding skip them, so they aren't replayed back to\n * the CLI as duplicates.\n */\nexport function markErrorAsAlreadyLoggedOnServer(error: object): void {\n Object.defineProperty(error, alreadyLoggedOnServerSymbol, {\n value: true,\n enumerable: false,\n configurable: true,\n })\n}\n\nexport function wasErrorAlreadyLoggedOnServer(value: unknown): boolean {\n return (\n typeof value === 'object' &&\n value !== null &&\n (value as Record<symbol, unknown>)[alreadyLoggedOnServerSymbol] === true\n )\n}\n\n// Based on https://github.com/facebook/react/blob/28dc0776be2e1370fe217549d32aee2519f0cf05/packages/react-server/src/ReactFlightServer.js#L248\nexport function patchConsoleMethod<T extends keyof Console>(\n methodName: T,\n wrapper: (\n methodName: T,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) => void\n): () => 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 as Console[T] extends (\n ...args: any[]\n ) => any\n ? Console[T]\n : never\n const originalName = Object.getOwnPropertyDescriptor(originalMethod, 'name')\n const wrapperMethod = function (\n this: typeof console,\n ...args: Console[T] extends (...args: infer P) => any ? P : never[]\n ) {\n wrapper(methodName, ...args)\n\n originalMethod.apply(this, args)\n }\n if (originalName) {\n Object.defineProperty(wrapperMethod, 'name', originalName)\n }\n Object.defineProperty(console, methodName, {\n value: wrapperMethod,\n })\n\n return () => {\n Object.defineProperty(console, methodName, {\n value: originalMethod,\n writable: descriptor.writable,\n configurable: descriptor.configurable,\n })\n }\n }\n\n return () => {}\n}\n"],"names":["UNDEFINED_MARKER","markErrorAsAlreadyLoggedOnServer","patchConsoleMethod","wasErrorAlreadyLoggedOnServer","alreadyLoggedOnServerSymbol","Symbol","error","Object","defineProperty","value","enumerable","configurable","methodName","wrapper","descriptor","getOwnPropertyDescriptor","console","writable","originalMethod","originalName","wrapperMethod","args","apply"],"mappings":";;;;;;;;;;;;;;;;IAkEaA,gBAAgB,EAAA;eAAhBA;;IAWGC,gCAAgC,EAAA;eAAhCA;;IAiBAC,kBAAkB,EAAA;eAAlBA;;IATAC,6BAA6B,EAAA;eAA7BA;;;AAnBT,MAAMH,mBAAmB;AAEhC,MAAMI,8BAA8BC,OAAO;AASpC,SAASJ,iCAAiCK,KAAa;IAC5DC,OAAOC,cAAc,CAACF,OAAOF,6BAA6B;QACxDK,OAAO;QACPC,YAAY;QACZC,cAAc;IAChB;AACF;AAEO,SAASR,8BAA8BM,KAAc;IAC1D,OACE,OAAOA,UAAU,YACjBA,UAAU,QACTA,KAAiC,CAACL,4BAA4B,KAAK;AAExE;AAGO,SAASF,mBACdU,UAAa,EACbC,OAGS;IAET,MAAMC,aAAaP,OAAOQ,wBAAwB,CAACC,SAASJ;IAC5D,IACEE,cACCA,CAAAA,WAAWH,YAAY,IAAIG,WAAWG,QAAO,KAC9C,OAAOH,WAAWL,KAAK,KAAK,YAC5B;QACA,MAAMS,iBAAiBJ,WAAWL,KAAK;QAKvC,MAAMU,eAAeZ,OAAOQ,wBAAwB,CAACG,gBAAgB;QACrE,MAAME,gBAAgB,SAEpB,GAAGC,IAAgE;YAEnER,QAAQD,eAAeS;YAEvBH,eAAeI,KAAK,CAAC,IAAI,EAAED;QAC7B;QACA,IAAIF,cAAc;YAChBZ,OAAOC,cAAc,CAACY,eAAe,QAAQD;QAC/C;QACAZ,OAAOC,cAAc,CAACQ,SAASJ,YAAY;YACzCH,OAAOW;QACT;QAEA,OAAO;YACLb,OAAOC,cAAc,CAALine truncated
{"offset": {"line": 785, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/react-18-hydration-error.ts"],"sourcesContent":["import isError from '../../lib/is-error'\n\nexport function isHydrationError(error: unknown): boolean {\n return (\n isError(error) &&\n (error.message ===\n 'Hydration failed because the initial UI does not match what was rendered on the server.' ||\n error.message === 'Text content does not match server-rendered HTML.')\n )\n}\n\nexport function isHydrationWarning(message: unknown): message is string {\n return (\n isHtmlTagsWarning(message) ||\n isTextInTagsMismatchWarning(message) ||\n isTextWarning(message)\n )\n}\n\ntype NullableText = string | null | undefined\n\n// https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference\nconst htmlTagsWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching <%s> in <%s>.%s',\n 'Warning: Did not expect server HTML to contain a <%s> in <%s>.%s',\n])\nconst textAndTagsMismatchWarnings = new Set([\n 'Warning: Expected server HTML to contain a matching text node for \"%s\" in <%s>.%s',\n 'Warning: Did not expect server HTML to contain the text node \"%s\" in <%s>.%s',\n])\nconst textWarnings = new Set([\n 'Warning: Text content did not match. Server: \"%s\" Client: \"%s\"%s',\n])\n\nexport const getHydrationWarningType = (\n message: NullableText\n): 'tag' | 'text' | 'text-in-tag' => {\n if (typeof message !== 'string') {\n // TODO: Doesn't make sense to treat no message as a hydration error message.\n // We should bail out somewhere earlier.\n return 'text'\n }\n\n const normalizedMessage = message.startsWith('Warning: ')\n ? message\n : `Warning: ${message}`\n\n if (isHtmlTagsWarning(normalizedMessage)) return 'tag'\n if (isTextInTagsMismatchWarning(normalizedMessage)) return 'text-in-tag'\n\n return 'text'\n}\n\nconst isHtmlTagsWarning = (message: unknown) =>\n typeof message === 'string' && htmlTagsWarnings.has(message)\n\nconst isTextInTagsMismatchWarning = (msg: unknown) =>\n typeof msg === 'string' && textAndTagsMismatchWarnings.has(msg)\n\nconst isTextWarning = (msg: unknown) =>\n typeof msg === 'string' && textWarnings.has(msg)\n"],"names":["getHydrationWarningType","isHydrationError","isHydrationWarning","error","isError","message","isHtmlTagsWarning","isTextInTagsMismatchWarning","isTextWarning","htmlTagsWarnings","Set","textAndTagsMismatchWarnings","textWarnings","normalizedMessage","startsWith","has","msg"],"mappings":";;;;;;;;;;;;;;;IAkCaA,uBAAuB,EAAA;eAAvBA;;IAhCGC,gBAAgB,EAAA;eAAhBA;;IASAC,kBAAkB,EAAA;eAAlBA;;;;kEAXI;AAEb,SAASD,iBAAiBE,KAAc;IAC7C,OACEC,CAAAA,GAAAA,SAAAA,OAAO,EAACD,UACPA,CAAAA,MAAME,OAAO,KACZ,6FACAF,MAAME,OAAO,KAAK,mDAAkD;AAE1E;AAEO,SAASH,mBAAmBG,OAAgB;IACjD,OACEC,kBAAkBD,YAClBE,4BAA4BF,YAC5BG,cAAcH;AAElB;AAIA,iIAAiI;AACjI,MAAMI,mBAAmB,IAAIC,IAAI;IAC/B;IACA;CACD;AACD,MAAMC,8BAA8B,IAAID,IAAI;IAC1C;IACA;CACD;AACD,MAAME,eAAe,IAAIF,IAAI;IAC3B;CACD;AAEM,MAAMV,0BAA0B,CACrCK;IAEA,IAAI,OAAOA,YAAY,UAAU;QAC/B,6EAA6E;QAC7E,wCAAwC;QACxC,OAAO;IACT;IAEA,MAAMQ,oBAAoBR,QAAQS,UAAU,CAAC,eACzCT,UACA,CAAC,SAAS,EAAEA,SAAS;IAEzB,IAAIC,kBAAkBO,oBAAoB,OAAO;IACjD,IAAIN,4BAA4BM,oBAAoB,OAAO;IAE3D,OAAO;AACT;AAEA,MAAMP,oBAAoB,CAACD,UACzB,OAAOA,YAAY,YAAYI,iBAAiBM,GAAG,CAACV;AAEtD,MAAME,8BAA8B,CAACS,MACnC,OAAOA,QAAQ,YAAYL,4BAA4BI,GAAG,CAACC;AAE7D,MAAMR,gBAAgB,CAACQ,MACrB,OAAOA,QAAQ,YAAYJ,aAAaG,GAAG,CAACC","ignoreList":[0]}},
{"offset": {"line": 855, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/shared/react-19-hydration-error.ts"],"sourcesContent":["export const REACT_HYDRATION_ERROR_LINK =\n 'https://react.dev/link/hydration-mismatch'\nexport const NEXTJS_HYDRATION_ERROR_LINK =\n 'https://nextjs.org/docs/messages/react-hydration-error'\n\n/**\n * Only React 19+ contains component stack diff in the error message\n */\nconst errorMessagesWithComponentStackDiff = [\n /^In HTML, (.+?) cannot be a child of <(.+?)>\\.(.*)\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, (.+?) cannot be a descendant of <(.+?)>\\.\\nThis will cause a hydration error\\.(.*)/,\n /^In HTML, text nodes cannot be a child of <(.+?)>\\.\\nThis will cause a hydration error\\./,\n /^In HTML, whitespace text nodes cannot be a child of <(.+?)>\\. Make sure you don't have any extra whitespace between tags on each line of your source code\\.\\nThis will cause a hydration error\\./,\n]\n\nexport function isHydrationError(error: Error): boolean {\n return (\n isErrorMessageWithComponentStackDiff(error.message) ||\n /Hydration failed because the server rendered (text|HTML) didn't match the client\\./.test(\n error.message\n ) ||\n /A tree hydrated but some attributes of the server rendered HTML didn't match the client properties./.test(\n error.message\n )\n )\n}\n\nexport function isErrorMessageWithComponentStackDiff(msg: string): boolean {\n return errorMessagesWithComponentStackDiff.some((regex) => regex.test(msg))\n}\n\nexport function getHydrationErrorStackInfo(error: Error): {\n message: string | null\n notes: string | null\n diff: string | null\n} {\n const errorMessage = error.message\n if (isErrorMessageWithComponentStackDiff(errorMessage)) {\n const [message, diffLog = ''] = errorMessage.split('\\n\\n')\n const diff = diffLog.trim()\n return {\n message: diff === '' ? errorMessage.trim() : message.trim(),\n diff,\n notes: null,\n }\n }\n\n const [message, maybeComponentStackDiff] = errorMessage.split(\n `${REACT_HYDRATION_ERROR_LINK}`\n )\n const trimmedMessage = message.trim()\n // React built-in hydration diff starts with a newline\n if (\n maybeComponentStackDiff !== undefined &&\n maybeComponentStackDiff.length > 1\n ) {\n const diffs: string[] = []\n maybeComponentStackDiff.split('\\n').forEach((line) => {\n if (line.trim() === '') return\n if (!line.trim().startsWith('at ')) {\n diffs.push(line)\n }\n })\n\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: diffs.join('\\n'),\n notes: notes.join('\\n\\n') || null,\n }\n } else {\n const [displayedMessage, ...notes] = trimmedMessage.split('\\n\\n')\n return {\n message: displayedMessage,\n diff: null,\n notes: notes.join('\\n\\n'),\n }\n }\n}\n"],"names":["NEXTJS_HYDRATION_ERROR_LINK","REACT_HYDRATION_ERROR_LINK","getHydrationErrorStackInfo","isErrorMessageWithComponentStackDiff","isHydrationError","errorMessagesWithComponentStackDiff","error","message","test","msg","some","regex","errorMessage","diffLog","split","diff","trim","notes","maybeComponentStackDiff","trimmedMessage","undefined","length","diffs","forEach","line","startsWith","push","displayedMessage","join"],"mappings":";;;;;;;;;;;;;;;;;IAEaA,2BAA2B,EAAA;eAA3BA;;IAFAC,0BAA0B,EAAA;eAA1BA;;IA+BGC,0BAA0B,EAAA;eAA1BA;;IAJAC,oCAAoC,EAAA;eAApCA;;IAZAC,gBAAgB,EAAA;eAAhBA;;;AAfT,MAAMH,6BACX;AACK,MAAMD,8BACX;AAEF;;CAEC,GACD,MAAMK,sCAAsC;IAC1C;IACA;IACA;IACA;CACD;AAEM,SAASD,iBAAiBE,KAAY;IAC3C,OACEH,qCAAqCG,MAAMC,OAAO,KAClD,qFAAqFC,IAAI,CACvFF,MAAMC,OAAO,KAEf,sGAAsGC,IAAI,CACxGF,MAAMC,OAAO;AAGnB;AAEO,SAASJ,qCAAqCM,GAAW;IAC9D,OAAOJ,oCAAoCK,IAAI,CAAC,CAACC,QAAUA,MAAMH,IAAI,CAACC;AACxE;AAEO,SAASP,2BAA2BI,KAAY;IAKrD,MAAMM,eAAeN,MAAMC,OAAO;IAClC,IAAIJ,qCAAqCS,eAAe;QACtD,MAAM,CAACL,SAASM,UAAU,EAAE,CAAC,GAAGD,aAAaE,KAAK,CAAC;QACnD,MAAMC,OAAOF,QAAQG,IAAI;QACzB,OAAO;YACLT,SAASQ,SAAS,KAAKH,aAAaI,IAAI,KAAKT,QAAQS,IAAI;YACzDD;YACAE,OAAO;QACT;IACF;IAEA,MAAM,CAACV,SAASW,wBAAwB,GAAGN,aAAaE,KAAK,CAC3D,GAAGb,4BAA4B;IAEjC,MAAMkB,iBAAiBZ,QAAQS,IAAI;IACnC,sDAAsD;IACtD,IACEE,4BAA4BE,aAC5BF,wBAAwBG,MAAM,GAAG,GACjC;QACA,MAAMC,QAAkB,EAAE;QAC1BJ,wBAAwBJ,KAAK,CAAC,MAAMS,OAAO,CAAC,CAACC;YAC3C,IAAIA,KAAKR,IAAI,OAAO,IAAI;YACxB,IAAI,CAACQ,KAAKR,IAAI,GAAGS,UAAU,CAAC,QAAQ;gBAClCH,MAAMI,IAAI,CAACF;YACb;QACF;QAEA,MAAM,CAACG,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAMO,MAAMM,IAAI,CAAC;YACjBX,OAAOA,MAAMW,IAAI,CAAC,WAAW;QAC/B;IACF,OAAO;QACL,MAAM,CAACD,kBAAkB,GAAGV,MAAM,GAAGE,eAAeL,KAAK,CAAC;QAC1D,OAAO;YACLP,SAASoB;YACTZ,MAAM;YACNE,OAAOA,MAAMW,IAAI,CAAC;QACpB;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 952, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/errors/stitched-error.ts"],"sourcesContent":["import React from 'react'\nimport isError from '../../../../lib/is-error'\n\nconst ownerStacks = new WeakMap<Error, string | null>()\n\nexport function getOwnerStack(error: Error): string | null | undefined {\n return ownerStacks.get(error)\n}\nexport function setOwnerStack(error: Error, stack: string | null) {\n ownerStacks.set(error, stack)\n}\n\nexport function coerceError(value: unknown): Error {\n return isError(value) ? value : new Error('' + value)\n}\n\nexport function setOwnerStackIfAvailable(error: Error): void {\n // React 18 and prod does not have `captureOwnerStack`\n if ('captureOwnerStack' in React) {\n const ownerStack = React.captureOwnerStack()\n // Only set if we captured a valid owner stack, or if none exists yet.\n // This prevents overwriting a valid owner stack captured earlier\n // (e.g., in onRecoverableError) with null captured later.\n if (ownerStack || !ownerStacks.has(error)) {\n setOwnerStack(error, ownerStack)\n }\n }\n}\n\nexport function decorateDevError(thrownValue: unknown) {\n const error = coerceError(thrownValue)\n setOwnerStackIfAvailable(error)\n return error\n}\n"],"names":["coerceError","decorateDevError","getOwnerStack","setOwnerStack","setOwnerStackIfAvailable","ownerStacks","WeakMap","error","get","stack","set","value","isError","Error","React","ownerStack","captureOwnerStack","has","thrownValue"],"mappings":";;;;;;;;;;;;;;;;;IAYgBA,WAAW,EAAA;eAAXA;;IAiBAC,gBAAgB,EAAA;eAAhBA;;IAxBAC,aAAa,EAAA;eAAbA;;IAGAC,aAAa,EAAA;eAAbA;;IAQAC,wBAAwB,EAAA;eAAxBA;;;;gEAhBE;kEACE;AAEpB,MAAMC,cAAc,IAAIC;AAEjB,SAASJ,cAAcK,KAAY;IACxC,OAAOF,YAAYG,GAAG,CAACD;AACzB;AACO,SAASJ,cAAcI,KAAY,EAAEE,KAAoB;IAC9DJ,YAAYK,GAAG,CAACH,OAAOE;AACzB;AAEO,SAAST,YAAYW,KAAc;IACxC,OAAOC,CAAAA,GAAAA,SAAAA,OAAO,EAACD,SAASA,QAAQ,OAAA,cAAqB,CAArB,IAAIE,MAAM,KAAKF,QAAf,qBAAA;eAAA;oBAAA;sBAAA;IAAoB;AACtD;AAEO,SAASP,yBAAyBG,KAAY;IACnD,sDAAsD;IACtD,IAAI,uBAAuBO,OAAAA,OAAK,EAAE;QAChC,MAAMC,aAAaD,OAAAA,OAAK,CAACE,iBAAiB;QAC1C,sEAAsE;QACtE,iEAAiE;QACjE,0DAA0D;QAC1D,IAAID,cAAc,CAACV,YAAYY,GAAG,CAACV,QAAQ;YACzCJ,cAAcI,OAAOQ;QACvB;IACF;AACF;AAEO,SAASd,iBAAiBiB,WAAoB;IACnD,MAAMX,QAAQP,YAAYkB;IAC1Bd,yBAAyBG;IACzB,OAAOA;AACT","ignoreList":[0]}},
{"offset": {"line": 1030, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs-utils.ts"],"sourcesContent":["import { configure } from 'next/dist/compiled/safe-stable-stringify'\nimport { getTerminalLoggingConfig } from './terminal-logging-config'\nimport { UNDEFINED_MARKER } from '../../shared/forward-logs-shared'\n\nconst terminalLoggingConfig = getTerminalLoggingConfig()\n\nconst PROMISE_MARKER = 'Promise {}'\nconst UNAVAILABLE_MARKER = '[Unable to view]'\n\nconst maximumDepth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.depthLimit\n ? terminalLoggingConfig.depthLimit\n : 5\nconst maximumBreadth =\n typeof terminalLoggingConfig === 'object' && terminalLoggingConfig.edgeLimit\n ? terminalLoggingConfig.edgeLimit\n : 100\n\nexport const safeStringifyWithDepth = configure({\n maximumDepth,\n maximumBreadth,\n})\n\n/**\n * allows us to:\n * - revive the undefined log in the server as it would look in the browser\n * - not read/attempt to serialize promises (next will console error if you do that, and will cause this program to infinitely recurse)\n * - if we read a proxy that throws (no way to detect if something is a proxy), explain to the user we can't read this data\n */\nexport function preLogSerializationClone<T>(\n value: T,\n seen = new WeakMap()\n): any {\n if (value === undefined) return UNDEFINED_MARKER\n if (value === null || typeof value !== 'object') return value\n if (seen.has(value as object)) return seen.get(value as object)\n\n try {\n Object.keys(value as object)\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n try {\n if (typeof (value as any).then === 'function') return PROMISE_MARKER\n } catch {\n return UNAVAILABLE_MARKER\n }\n\n if (Array.isArray(value)) {\n const out: any[] = []\n seen.set(value, out)\n for (const item of value) {\n try {\n out.push(preLogSerializationClone(item, seen))\n } catch {\n out.push(UNAVAILABLE_MARKER)\n }\n }\n return out\n }\n\n const proto = Object.getPrototypeOf(value)\n if (proto === Object.prototype || proto === null) {\n const out: Record<string, unknown> = {}\n seen.set(value as object, out)\n for (const key of Object.keys(value as object)) {\n try {\n out[key] = preLogSerializationClone((value as any)[key], seen)\n } catch {\n out[key] = UNAVAILABLE_MARKER\n }\n }\n return out\n }\n\n return Object.prototype.toString.call(value)\n}\n\n// only safe if passed safeClone data\nexport const logStringify = (data: unknown): string => {\n try {\n const result = safeStringifyWithDepth(data)\n return result ?? `\"${UNAVAILABLE_MARKER}\"`\n } catch {\n return `\"${UNAVAILABLE_MARKER}\"`\n }\n}\n"],"names":["logStringify","preLogSerializationClone","safeStringifyWithDepth","terminalLoggingConfig","getTerminalLoggingConfig","PROMISE_MARKER","UNAVAILABLE_MARKER","maximumDepth","depthLimit","maximumBreadth","edgeLimit","configure","value","seen","WeakMap","undefined","UNDEFINED_MARKER","has","get","Object","keys","then","Array","isArray","out","set","item","push","proto","getPrototypeOf","prototype","key","toString","call","data","result"],"mappings":";;;;;;;;;;;;;;;IAgFaA,YAAY,EAAA;eAAZA;;IAnDGC,wBAAwB,EAAA;eAAxBA;;IAXHC,sBAAsB,EAAA;eAAtBA;;;qCAlBa;uCACe;mCACR;AAEjC,MAAMC,wBAAwBC,CAAAA,GAAAA,uBAAAA,wBAAwB;AAEtD,MAAMC,iBAAiB;AACvB,MAAMC,qBAAqB;AAE3B,MAAMC,eACJ,OAAOJ,0BAA0B,YAAYA,sBAAsBK,UAAU,GACzEL,sBAAsBK,UAAU,GAChC;AACN,MAAMC,iBACJ,OAAON,0BAA0B,YAAYA,sBAAsBO,SAAS,GACxEP,sBAAsBO,SAAS,GAC/B;AAEC,MAAMR,yBAAyBS,CAAAA,GAAAA,qBAAAA,SAAS,EAAC;IAC9CJ;IACAE;AACF;AAQO,SAASR,yBACdW,KAAQ,EACRC,OAAO,IAAIC,SAAS;IAEpB,IAAIF,UAAUG,WAAW,OAAOC,mBAAAA,gBAAgB;IAChD,IAAIJ,UAAU,QAAQ,OAAOA,UAAU,UAAU,OAAOA;IACxD,IAAIC,KAAKI,GAAG,CAACL,QAAkB,OAAOC,KAAKK,GAAG,CAACN;IAE/C,IAAI;QACFO,OAAOC,IAAI,CAACR;IACd,EAAE,OAAM;QACN,OAAON;IACT;IAEA,IAAI;QACF,IAAI,OAAQM,MAAcS,IAAI,KAAK,YAAY,OAAOhB;IACxD,EAAE,OAAM;QACN,OAAOC;IACT;IAEA,IAAIgB,MAAMC,OAAO,CAACX,QAAQ;QACxB,MAAMY,MAAa,EAAE;QACrBX,KAAKY,GAAG,CAACb,OAAOY;QAChB,KAAK,MAAME,QAAQd,MAAO;YACxB,IAAI;gBACFY,IAAIG,IAAI,CAAC1B,yBAAyByB,MAAMb;YAC1C,EAAE,OAAM;gBACNW,IAAIG,IAAI,CAACrB;YACX;QACF;QACA,OAAOkB;IACT;IAEA,MAAMI,QAAQT,OAAOU,cAAc,CAACjB;IACpC,IAAIgB,UAAUT,OAAOW,SAAS,IAAIF,UAAU,MAAM;QAChD,MAAMJ,MAA+B,CAAC;QACtCX,KAAKY,GAAG,CAACb,OAAiBY;QAC1B,KAAK,MAAMO,OAAOZ,OAAOC,IAAI,CAACR,OAAkB;YAC9C,IAAI;gBACFY,GAAG,CAACO,IAAI,GAAG9B,yBAA0BW,KAAa,CAACmB,IAAI,EAAElB;YAC3D,EAAE,OAAM;gBACNW,GAAG,CAACO,IAAI,GAAGzB;YACb;QACF;QACA,OAAOkB;IACT;IAEA,OAAOL,OAAOW,SAAS,CAACE,QAAQ,CAACC,IAAI,CAACrB;AACxC;AAGO,MAAMZ,eAAe,CAACkC;IAC3B,IAAI;QACF,MAAMC,SAASjC,uBAAuBgC;QACtC,OAAOC,UAAU,CAAC,CAAC,EAAE7B,mBAAmB,CAAC,CAAC;IAC5C,EAAE,OAAM;QACN,OAAO,CAAC,CAAC,EAAEA,mBAAmB,CAAC,CAAC;IAClC;AACF","ignoreList":[0]}},
{"offset": {"line": 1127, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/forward-logs.ts"],"sourcesContent":["import { getErrorSource } from '../../../shared/lib/error-source'\nimport { getIsTerminalLoggingEnabled } from './terminal-logging-config'\nimport {\n type ConsoleEntry,\n type ConsoleErrorEntry,\n type FormattedErrorEntry,\n type ClientLogEntry,\n type LogMethod,\n patchConsoleMethod,\n wasErrorAlreadyLoggedOnServer,\n} from '../../shared/forward-logs-shared'\nimport { preLogSerializationClone, logStringify } from './forward-logs-utils'\nimport { getOwnerStack } from './errors/stitched-error'\n\nconst isTerminalLoggingEnabled = getIsTerminalLoggingEnabled()\nconst shouldForwardLogs =\n isTerminalLoggingEnabled || !!process.env.__NEXT_MCP_SERVER\n\nconst methods: Array<LogMethod> = [\n 'log',\n 'info',\n 'warn',\n 'debug',\n 'table',\n 'assert',\n 'dir',\n 'dirxml',\n 'group',\n 'groupCollapsed',\n 'groupEnd',\n 'trace',\n]\n\nconst afterThisFrame = (cb: () => void) => {\n let timeout: ReturnType<typeof setTimeout> | undefined\n\n const rafId = requestAnimationFrame(() => {\n timeout = setTimeout(() => {\n cb()\n })\n })\n\n return () => {\n cancelAnimationFrame(rafId)\n clearTimeout(timeout)\n }\n}\n\nlet isPatched = false\n\nconst serializeEntries = (entries: Array<ClientLogEntry>) =>\n entries.map((clientEntry) => {\n switch (clientEntry.kind) {\n case 'any-logged-error':\n case 'console': {\n return {\n ...clientEntry,\n args: clientEntry.args.map(stringifyUserArg),\n }\n }\n case 'formatted-error': {\n return clientEntry\n }\n default: {\n return null!\n }\n }\n })\n\nconst flushBufferedEntries = (socket: WebSocket) => {\n if (logQueue.entries.length === 0) {\n return\n }\n\n const payload = JSON.stringify({\n event: 'browser-logs',\n entries: serializeEntries(logQueue.entries),\n router: logQueue.router,\n // needed for source mapping, we just assign the sourceType from the last error for the whole batch\n sourceType: logQueue.sourceType,\n })\n\n socket.send(payload)\n logQueue.entries = []\n logQueue.sourceType = undefined\n}\n\n// Combined state and public API\nexport const logQueue: {\n entries: Array<ClientLogEntry>\n onSocketReady: (socket: WebSocket) => void\n flushScheduled: boolean\n socket: WebSocket | null\n cancelFlush: (() => void) | null\n sourceType?: 'server' | 'edge-server'\n router: 'app' | 'pages' | null\n scheduleLogSend: (entry: ClientLogEntry) => void\n} = {\n entries: [],\n flushScheduled: false,\n cancelFlush: null,\n socket: null,\n sourceType: undefined,\n router: null,\n scheduleLogSend: (entry: ClientLogEntry) => {\n logQueue.entries.push(entry)\n if (logQueue.flushScheduled) {\n return\n }\n // safe to deref and use in setTimeout closure since we cancel on new socket\n const socket = logQueue.socket\n if (!socket) {\n return\n }\n\n // we probably dont need this\n logQueue.flushScheduled = true\n\n // non blocking log flush, runs at most once per frame\n logQueue.cancelFlush = afterThisFrame(() => {\n logQueue.flushScheduled = false\n\n // just incase\n try {\n flushBufferedEntries(socket)\n } catch {\n // error (make sure u don't infinite loop)\n /* noop */\n }\n })\n },\n onSocketReady: (socket: WebSocket) => {\n // When MCP or terminal logging is enabled, we enable the socket connection,\n // otherwise it will not proceed.\n if (!shouldForwardLogs) {\n return\n }\n if (socket.readyState !== WebSocket.OPEN) {\n // invariant\n return\n }\n\n // incase an existing timeout was going to run with a stale socket\n logQueue.cancelFlush?.()\n logQueue.socket = socket\n\n try {\n flushBufferedEntries(socket)\n } catch {\n /** noop just incase */\n }\n },\n}\n\nconst stringifyUserArg = (\n arg:\n | {\n kind: 'arg'\n data: unknown\n }\n | {\n kind: 'formatted-error-arg'\n }\n) => {\n if (arg.kind !== 'arg') {\n return arg\n }\n return {\n ...arg,\n data: logStringify(arg.data),\n }\n}\n\nconst createErrorArg = (error: Error) => {\n return {\n kind: 'formatted-error-arg' as const,\n prefix: error.message ? `${error.name}: ${error.message}` : `${error.name}`,\n stack: getErrorStackWithOwnerStack(error),\n }\n}\n\nconst createLogEntry = (level: LogMethod, args: any[]) => {\n if (!shouldForwardLogs) {\n return\n }\n\n // do not abstract this, it implicitly relies on which functions call it. forcing the inlined implementation makes you think about callers\n // error capture stack trace maybe\n const stack = getErrorStack(new Error())\n const stackLines = stack?.split('\\n')\n const cleanStack = stLine truncated
{"offset": {"line": 1490, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/app/terminal-logging-config.ts"],"sourcesContent":["export function getTerminalLoggingConfig():\n | false\n | boolean\n | {\n depthLimit?: number\n edgeLimit?: number\n showSourceLocation?: boolean\n } {\n try {\n return JSON.parse(\n process.env.__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL || 'false'\n )\n } catch {\n return false\n }\n}\n\nexport function getIsTerminalLoggingEnabled(): boolean {\n const config = getTerminalLoggingConfig()\n return Boolean(config)\n}\n"],"names":["getIsTerminalLoggingEnabled","getTerminalLoggingConfig","JSON","parse","process","env","__NEXT_BROWSER_DEBUG_INFO_IN_TERMINAL","config","Boolean"],"mappings":"AAUMI,QAAQC,GAAG,CAACC,qCAAqC;;;;;;;;;;;;;;;;IAOvCN,2BAA2B,EAAA;eAA3BA;;IAjBAC,wBAAwB,EAAA;eAAxBA;;;AAAT,SAASA;IAQd,IAAI;QACF,OAAOC,KAAKC,KAAK,+CACsC;IAEzD,EAAE,OAAM;QACN,OAAO;IACT;AACF;AAEO,SAASH;IACd,MAAMO,SAASN;IACf,OAAOO,QAAQD;AACjB","ignoreList":[0]}},
{"offset": {"line": 1535, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/hydration-error-state.ts"],"sourcesContent":["import {\n getHydrationWarningType,\n isHydrationError as isReact18HydrationError,\n isHydrationWarning as isReact18HydrationWarning,\n} from '../../shared/react-18-hydration-error'\nimport {\n isHydrationError as isReact19HydrationError,\n isErrorMessageWithComponentStackDiff as isReact19HydrationWarning,\n} from '../../shared/react-19-hydration-error'\nimport type { HydrationErrorState } from '../../shared/hydration-error'\n\n// We only need this for React 18 or hydration console errors in React 19.\n// Once we surface console.error in the dev overlay in pages router, we should only\n// use this for React 18.\nlet hydrationErrorState: HydrationErrorState = {}\n\nconst squashedHydrationErrorDetails = new WeakMap<Error, HydrationErrorState>()\n\nexport function getSquashedHydrationErrorDetails(\n error: Error\n): HydrationErrorState | null {\n return squashedHydrationErrorDetails.has(error)\n ? squashedHydrationErrorDetails.get(error)!\n : null\n}\n\nexport function attachHydrationErrorState(error: Error) {\n if (!isReact18HydrationError(error) && !isReact19HydrationError(error)) {\n return\n }\n\n let parsedHydrationErrorState: typeof hydrationErrorState = {}\n\n // If there's any extra information in the error message to display,\n // append it to the error message details property\n if (hydrationErrorState.warning) {\n // The patched console.error found hydration errors logged by React\n // Append the logged warning to the error message\n parsedHydrationErrorState = {\n // It contains the warning, component stack, server and client tag names\n ...hydrationErrorState,\n }\n\n // Consume the cached hydration diff.\n // This is only required for now when we still squashed the hydration diff log into hydration error.\n // Once the all error is logged to dev overlay in order, this will go away.\n if (hydrationErrorState.reactOutputComponentDiff) {\n parsedHydrationErrorState.reactOutputComponentDiff =\n hydrationErrorState.reactOutputComponentDiff\n }\n\n squashedHydrationErrorDetails.set(error, parsedHydrationErrorState)\n }\n}\n\n// TODO: Only handle React 18. Once we surface console.error in the dev overlay in pages router,\n// we can use the same behavior as App Router.\nexport function storeHydrationErrorStateFromConsoleArgs(...args: any[]) {\n let [message, firstContent, secondContent, ...rest] = args\n if (isReact18HydrationWarning(message)) {\n // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument\n // when the 3rd argument is not the component stack but an empty string\n // For some warnings, there's only 1 argument for template.\n // The second argument is the diff or component stack.\n if (args.length === 3) {\n secondContent = ''\n }\n\n const warning = message\n .replace(/Warning: /, '')\n .replace('%s', firstContent)\n .replace('%s', secondContent)\n // remove the last %s from the message\n .replace(/%s/g, '')\n\n const lastArg = (rest[rest.length - 1] || '').trim()\n\n hydrationErrorState.reactOutputComponentDiff = generateHydrationDiffReact18(\n message,\n firstContent,\n secondContent,\n lastArg\n )\n\n hydrationErrorState.warning = warning\n } else if (isReact19HydrationWarning(message)) {\n // Some hydration warnings has 4 arguments, some has 3, fallback to the last argument\n // when the 3rd argument is not the component stack but an empty string\n // For some warnings, there's only 1 argument for template.\n // The second argument is the diff or component stack.\n if (args.length === 3) {\n secondContent = ''\n }\n\n const warning = message\n .replace('%s', firstContent)\n .replace('%s', secondContent)\n // remove the last %s from the message\n .replace(/%s/g, '')\n\n const lastArg = (args[args.length - 1] || '').trim()\n\n hydrationErrorState.reactOutputComponentDiff = lastArg\n hydrationErrorState.warning = warning\n }\n}\n\n/*\n * Some hydration errors in React 18 does not have the diff in the error message.\n * Instead it has the error stack trace which is component stack that we can leverage.\n * Will parse the diff from the error stack trace\n * e.g.\n * Warning: Expected server HTML to contain a matching <div> in <p>.\n * at div\n * at p\n * at div\n * at div\n * at Page\n * output:\n * <Page>\n * <div>\n * <p>\n * > <div>\n *\n */\nfunction generateHydrationDiffReact18(\n message: string,\n firstContent: string,\n secondContent: string,\n lastArg: string\n) {\n const componentStack = lastArg\n let firstIndex = -1\n let secondIndex = -1\n const hydrationWarningType = getHydrationWaLine truncated
{"offset": {"line": 1698, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/pages-dev-overlay-error-boundary.tsx"],"sourcesContent":["import React from 'react'\n\ntype PagesDevOverlayErrorBoundaryProps = {\n children?: React.ReactNode\n}\ntype PagesDevOverlayErrorBoundaryState = {\n hasError: boolean\n}\n\nexport class PagesDevOverlayErrorBoundary extends React.PureComponent<\n PagesDevOverlayErrorBoundaryProps,\n PagesDevOverlayErrorBoundaryState\n> {\n state = { hasError: false }\n\n static getDerivedStateFromError(\n _: unknown\n ): Partial<PagesDevOverlayErrorBoundaryState> {\n return { hasError: true }\n }\n\n // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.\n render(): React.ReactNode {\n // The component has to be unmounted or else it would continue to error\n return this.state.hasError ? null : this.props.children\n }\n}\n"],"names":["PagesDevOverlayErrorBoundary","React","PureComponent","getDerivedStateFromError","_","hasError","render","state","props","children"],"mappings":";;;+BASaA,gCAAAA;;;eAAAA;;;;gEATK;AASX,MAAMA,qCAAqCC,OAAAA,OAAK,CAACC,aAAa;IAMnE,OAAOC,yBACLC,CAAU,EACkC;QAC5C,OAAO;YAAEC,UAAU;QAAK;IAC1B;IAEA,yIAAyI;IACzIC,SAA0B;QACxB,uEAAuE;QACvE,OAAO,IAAI,CAACC,KAAK,CAACF,QAAQ,GAAG,OAAO,IAAI,CAACG,KAAK,CAACC,QAAQ;IACzD;;QAhBK,KAAA,IAAA,OAAA,IAAA,CAILF,KAAAA,GAAQ;YAAEF,UAAU;QAAM;;AAa5B","ignoreList":[0]}},
{"offset": {"line": 1737, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/next-devtools/userspace/pages/pages-dev-overlay-setup.tsx"],"sourcesContent":["import React from 'react'\nimport { renderPagesDevOverlay } from 'next/dist/compiled/next-devtools'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\nimport {\n attachHydrationErrorState,\n storeHydrationErrorStateFromConsoleArgs,\n} from './hydration-error-state'\nimport { Router } from '../../../client/router'\nimport { getOwnerStack } from '../app/errors/stitched-error'\nimport { isRecoverableError } from '../../../client/react-client-callbacks/on-recoverable-error'\nimport { getSquashedHydrationErrorDetails } from './hydration-error-state'\nimport { PagesDevOverlayErrorBoundary } from './pages-dev-overlay-error-boundary'\nimport {\n initializeDebugLogForwarding,\n forwardUnhandledError,\n logUnhandledRejection,\n forwardErrorLog,\n} from '../app/forward-logs'\n\nconst usePagesDevOverlayBridge = () => {\n React.useInsertionEffect(() => {\n // NDT uses a different React instance so it's not technically a state update\n // scheduled from useInsertionEffect.\n renderPagesDevOverlay(\n getOwnerStack,\n getSquashedHydrationErrorDetails,\n isRecoverableError\n )\n }, [])\n\n React.useEffect(() => {\n const { handleStaticIndicator } =\n require('../../../client/dev/hot-reloader/pages/hot-reloader-pages') as typeof import('../../../client/dev/hot-reloader/pages/hot-reloader-pages')\n\n Router.events.on('routeChangeComplete', handleStaticIndicator)\n\n return function () {\n Router.events.off('routeChangeComplete', handleStaticIndicator)\n }\n }, [])\n}\n\nexport type PagesDevOverlayBridgeType = typeof PagesDevOverlayBridge\n\ninterface PagesDevOverlayBridgeProps {\n children?: React.ReactNode\n}\n\nexport function PagesDevOverlayBridge({\n children,\n}: PagesDevOverlayBridgeProps) {\n usePagesDevOverlayBridge()\n\n return <PagesDevOverlayErrorBoundary>{children}</PagesDevOverlayErrorBoundary>\n}\n\nlet isRegistered = false\n\nfunction handleError(error: unknown) {\n if (!error || !(error instanceof Error) || typeof error.stack !== 'string') {\n // A non-error was thrown, we don't have anything to show. :-(\n return\n }\n\n attachHydrationErrorState(error)\n\n // Skip ModuleBuildError and ModuleNotFoundError, as it will be sent through onBuildError callback.\n // This is to avoid same error as different type showing up on client to cause flashing.\n if (\n error.name !== 'ModuleBuildError' &&\n error.name !== 'ModuleNotFoundError'\n ) {\n dispatcher.onUnhandledError(error)\n }\n}\n\nlet origConsoleError = console.error\nfunction nextJsHandleConsoleError(...args: any[]) {\n // See https://github.com/facebook/react/blob/d50323eb845c5fde0d720cae888bf35dedd05506/packages/react-reconciler/src/ReactFiberErrorLogger.js#L78\n const maybeError = process.env.NODE_ENV !== 'production' ? args[1] : args[0]\n storeHydrationErrorStateFromConsoleArgs(...args)\n // TODO: Surfaces non-errors logged via `console.error`.\n handleError(maybeError)\n forwardErrorLog(args)\n origConsoleError.apply(window.console, args)\n}\n\nfunction onUnhandledError(event: ErrorEvent) {\n const error = event?.error\n handleError(error)\n\n if (error) {\n forwardUnhandledError(error as Error)\n }\n}\n\nfunction onUnhandledRejection(ev: PromiseRejectionEvent) {\n const reason = ev?.reason\n if (\n !reason ||\n !(reason instanceof Error) ||\n typeof reason.stack !== 'string'\n ) {\n // A non-error was thrown, we don't have anything to show. :-(\n return\n }\n\n dispatcher.onUnhandledRejection(reason)\n logUnhandledRejection(reason)\n}\n\nexport function register() {\n if (isRegistered) {\n return\n }\n isRegistered = true\n\n try {\n Error.stackTraceLimit = 50\n } catch {}\n\n initializeDebugLogForwarding('pages')\n window.addEventListener('error', onUnhandledError)\n window.addEventListener('unhandledrejection', onUnhandledRejection)\n window.console.error = nextJsHandleConsoleError\n}\n"],"names":["PagesDevOverlayBridge","register","usePagesDevOverlayBridge","React","useInsertionEffect","renderPagesDevOverlay","getOwnerStack","getSquashedHydrationErrorDetails","isRecoverableError","useEffect","handleStaticIndicator","require","Router","events","on","off","children","PagesDevOverlayErrorBoundary","isRegistered","handleError","error","Error","stack","attachHydrationErrorState","name","dispatcher","onUnhandledError","origConsoleError","console","nextJsHandleConsoleError","args","maybeError","process","env","NODE_ENV","storeHydrationErrorStateFromConsoleArgs","forwardErrorLog","apply","window","event","forwardUnhandledError","onUnhandledRejection","ev","reason","logUnhandledRejection","stackTraceLimit","initializeDebugLogForwarding","addEventListener"],"mappings":"AA+EqBgC,QAAQC,GAAG,CAACC,QAAQ,KALine truncated
{"offset": {"line": 1859, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/pages/_app.tsx"],"sourcesContent":["import React from 'react'\n\nimport type {\n AppContextType,\n AppInitialProps,\n AppPropsType,\n NextWebVitalsMetric,\n AppType,\n} from '../shared/lib/utils'\nimport type { Router } from '../client/router'\n\nimport { loadGetInitialProps } from '../shared/lib/utils'\n\nexport type { AppInitialProps, AppType }\n\nexport type { NextWebVitalsMetric }\n\nexport type AppContext = AppContextType<Router>\n\nexport type AppProps<P = any> = AppPropsType<Router, P>\n\n/**\n * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.\n * This allows for keeping state between navigation, custom error handling, injecting additional data.\n */\nasync function appGetInitialProps({\n Component,\n ctx,\n}: AppContext): Promise<AppInitialProps> {\n const pageProps = await loadGetInitialProps(Component, ctx)\n return { pageProps }\n}\n\nexport default class App<P = any, CP = {}, S = {}> extends React.Component<\n P & AppProps<CP>,\n S\n> {\n static origGetInitialProps = appGetInitialProps\n static getInitialProps = appGetInitialProps\n\n render() {\n const { Component, pageProps } = this.props as AppProps<CP>\n\n return <Component {...pageProps} />\n }\n}\n"],"names":["App","appGetInitialProps","Component","ctx","pageProps","loadGetInitialProps","React","origGetInitialProps","getInitialProps","render","props"],"mappings":";;;+BAiCA,WAAA;;;eAAqBA;;;;;gEAjCH;uBAWkB;AAUpC;;;CAGC,GACD,eAAeC,mBAAmB,EAChCC,SAAS,EACTC,GAAG,EACQ;IACX,MAAMC,YAAY,MAAMC,CAAAA,GAAAA,OAAAA,mBAAmB,EAACH,WAAWC;IACvD,OAAO;QAAEC;IAAU;AACrB;AAEe,MAAMJ,YAAsCM,OAAAA,OAAK,CAACJ,SAAS;;aAIjEK,mBAAAA,GAAsBN;;;aACtBO,eAAAA,GAAkBP;;IAEzBQ,SAAS;QACP,MAAM,EAAEP,SAAS,EAAEE,SAAS,EAAE,GAAG,IAAI,CAACM,KAAK;QAE3C,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACR,WAAAA;YAAW,GAAGE,SAAS;;IACjC;AACF","ignoreList":[0]}},
{"offset": {"line": 1906, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/api-utils/get-cookie-parser.ts"],"sourcesContent":["import type { NextApiRequestCookies } from '.'\n\n/**\n * Parse cookies from the `headers` of request\n * @param req request object\n */\n\nexport function getCookieParser(headers: {\n [key: string]: string | string[] | null | undefined\n}): () => NextApiRequestCookies {\n return function parseCookie(): NextApiRequestCookies {\n const { cookie } = headers\n\n if (!cookie) {\n return {}\n }\n\n const { parse: parseCookieFn } =\n require('next/dist/compiled/cookie') as typeof import('next/dist/compiled/cookie')\n return parseCookieFn(Array.isArray(cookie) ? cookie.join('; ') : cookie)\n }\n}\n"],"names":["getCookieParser","headers","parseCookie","cookie","parse","parseCookieFn","require","Array","isArray","join"],"mappings":";;;+BAOgBA,mBAAAA;;;eAAAA;;;AAAT,SAASA,gBAAgBC,OAE/B;IACC,OAAO,SAASC;QACd,MAAM,EAAEC,MAAM,EAAE,GAAGF;QAEnB,IAAI,CAACE,QAAQ;YACX,OAAO,CAAC;QACV;QAEA,MAAM,EAAEC,OAAOC,aAAa,EAAE,GAC5BC,QAAQ;QACV,OAAOD,cAAcE,MAAMC,OAAO,CAACL,UAAUA,OAAOM,IAAI,CAAC,QAAQN;IACnE;AACF","ignoreList":[0]}},
{"offset": {"line": 1929, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/dev/hot-reloader-types.ts"],"sourcesContent":["import type { IncomingMessage, ServerResponse } from 'http'\nimport type { UrlObject } from 'url'\nimport type { Duplex } from 'stream'\nimport type { webpack } from 'next/dist/compiled/webpack/webpack'\nimport type getBaseWebpackConfig from '../../build/webpack-config'\nimport type { RouteDefinition } from '../route-definitions/route-definition'\nimport type { Project, Update as TurbopackUpdate } from '../../build/swc/types'\nimport type { VersionInfo } from './parse-version-info'\nimport type { DebugInfo } from '../../next-devtools/shared/types'\nimport type { DevIndicatorServerState } from './dev-indicator-server-state'\nimport type {\n CacheIndicatorState,\n ServerCacheStatus,\n} from '../../next-devtools/dev-overlay/cache-indicator'\nimport type { DevToolsConfig } from '../../next-devtools/dev-overlay/shared'\nimport type {\n RequestInsight,\n RequestInsightsSnapshot,\n} from '../../next-devtools/shared/request-insights'\nimport type { ReactDebugChannelForBrowser } from './debug-channel'\nimport type { AnyStream } from '../app-render/stream-ops'\n\nexport const enum HMR_MESSAGE_SENT_TO_BROWSER {\n // JSON messages:\n ADDED_PAGE = 'addedPage',\n REMOVED_PAGE = 'removedPage',\n RELOAD_PAGE = 'reloadPage',\n SERVER_COMPONENT_CHANGES = 'serverComponentChanges',\n STATIC_PARAMS_CHANGED = 'staticParamsChanged',\n MIDDLEWARE_CHANGES = 'middlewareChanges',\n CLIENT_CHANGES = 'clientChanges',\n SERVER_ONLY_CHANGES = 'serverOnlyChanges',\n SYNC = 'sync',\n BUILT = 'built',\n BUILDING = 'building',\n DEV_PAGES_MANIFEST_UPDATE = 'devPagesManifestUpdate',\n TURBOPACK_MESSAGE = 'turbopack-message',\n SERVER_ERROR = 'serverError',\n TURBOPACK_CONNECTED = 'turbopack-connected',\n ISR_MANIFEST = 'isrManifest',\n CACHE_INDICATOR = 'cacheIndicator',\n DEV_INDICATOR = 'devIndicator',\n DEVTOOLS_CONFIG = 'devtoolsConfig',\n REQUEST_CURRENT_ERROR_STATE = 'requestCurrentErrorState',\n REQUEST_PAGE_METADATA = 'requestPageMetadata',\n REQUEST_INSIGHTS_UPDATE = 'requestInsightsUpdate',\n\n // Binary messages:\n REACT_DEBUG_CHUNK = 0,\n ERRORS_TO_SHOW_IN_BROWSER = 1,\n}\n\nexport const enum HMR_MESSAGE_SENT_TO_SERVER {\n // JSON messages:\n MCP_ERROR_STATE_RESPONSE = 'mcp-error-state-response',\n MCP_PAGE_METADATA_RESPONSE = 'mcp-page-metadata-response',\n PING = 'ping',\n}\n\nexport interface ServerErrorMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR\n errorJSON: string\n}\n\nexport interface TurbopackMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE\n data: TurbopackUpdate | TurbopackUpdate[]\n}\n\nexport interface BuildingMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILDING\n}\n\nexport interface CompilationError {\n moduleName?: string\n message: string\n details?: string\n moduleTrace?: Array<{ moduleName?: string }>\n stack?: string\n}\n\nexport interface SyncMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SYNC\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n versionInfo: VersionInfo\n updatedModules?: ReadonlyArray<string>\n debug?: DebugInfo\n devIndicator: DevIndicatorServerState\n devToolsConfig?: DevToolsConfig\n requestInsights?: RequestInsightsSnapshot\n}\n\nexport interface BuiltMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.BUILT\n hash: string\n errors: ReadonlyArray<CompilationError>\n warnings: ReadonlyArray<CompilationError>\n updatedModules?: ReadonlyArray<string>\n}\n\nexport interface AddedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE\n data: [page: string | null]\n}\n\nexport interface RemovedPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE\n data: [page: string | null]\n}\n\nexport interface ReloadPageMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE\n data: string\n}\n\nexport interface ServerComponentChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES\n}\n\n/**\n * Sent in dev when a route's set of statically-known params changed, e.g.\n * because `generateStaticParams` was added, removed, or edited.\n */\nexport interface StaticParamsChangedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.STATIC_PARAMS_CHANGED\n}\n\nexport interface MiddlewareChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES\n}\n\nexport interface ClientChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES\n}\n\nexport interface ServerOnlyChangesMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES\n pages: ReadonlyArray<string>\n}\n\nexport interface DevPagesManifestUpdateMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE\n data: [\n {\n devPagesManifest: true\n },\n ]\n}\n\nexport interface TurbopackConnectedMessage {\n type: HMR_MESSAGE_SENT_TO_BROWSER.TURBOLine truncated
{"offset": {"line": 1990, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/server/dev/node-stack-frames.ts"],"sourcesContent":["import { parse } from 'next/dist/compiled/stacktrace-parser'\nimport type { StackFrame } from 'next/dist/compiled/stacktrace-parser'\nimport {\n decorateServerError,\n type ErrorSourceType,\n} from '../../shared/lib/error-source'\n\nfunction getFilesystemFrame(frame: StackFrame): StackFrame {\n const f: StackFrame = { ...frame }\n\n if (typeof f.file === 'string') {\n if (\n // Posix:\n f.file.startsWith('/') ||\n // Win32:\n /^[a-z]:\\\\/i.test(f.file) ||\n // Win32 UNC:\n f.file.startsWith('\\\\\\\\')\n ) {\n f.file = `file://${f.file}`\n }\n }\n\n return f\n}\n\nexport function getServerError(error: Error, type: ErrorSourceType): Error {\n if (error.name === 'TurbopackInternalError') {\n // If this is an internal Turbopack error we shouldn't show internal details\n // to the user. These are written to a log file instead.\n const turbopackInternalError = new Error(\n 'An unexpected Turbopack error occurred. Please see the output of `next dev` for more details.'\n )\n decorateServerError(turbopackInternalError, type)\n return turbopackInternalError\n }\n\n let n: Error\n try {\n throw new Error(error.message)\n } catch (e) {\n n = e as Error\n }\n\n n.name = error.name\n // If present, restore the error code from the original server error.\n const errorCode = (error as any).__NEXT_ERROR_CODE\n if (typeof errorCode === 'string') {\n Object.defineProperty(n, '__NEXT_ERROR_CODE', {\n value: errorCode,\n enumerable: false,\n configurable: true,\n })\n }\n try {\n n.stack = `${n.toString()}\\n${parse(error.stack!)\n .map(getFilesystemFrame)\n .map((f) => {\n let str = ` at ${f.methodName}`\n if (f.file) {\n let loc = f.file\n if (f.lineNumber) {\n loc += `:${f.lineNumber}`\n if (f.column) {\n loc += `:${f.column}`\n }\n }\n str += ` (${loc})`\n }\n return str\n })\n .join('\\n')}`\n } catch {\n n.stack = error.stack\n }\n\n decorateServerError(n, type)\n return n\n}\n"],"names":["getServerError","getFilesystemFrame","frame","f","file","startsWith","test","error","type","name","turbopackInternalError","Error","decorateServerError","n","message","e","errorCode","__NEXT_ERROR_CODE","Object","defineProperty","value","enumerable","configurable","stack","toString","parse","map","str","methodName","loc","lineNumber","column","join"],"mappings":";;;+BA0BgBA,kBAAAA;;;eAAAA;;;kCA1BM;6BAKf;AAEP,SAASC,mBAAmBC,KAAiB;IAC3C,MAAMC,IAAgB;QAAE,GAAGD,KAAK;IAAC;IAEjC,IAAI,OAAOC,EAAEC,IAAI,KAAK,UAAU;QAC9B,IACE,AACAD,EAAEC,IAAI,CAACC,EADE,QACQ,CAAC,QAClB,SAAS;QACT,aAAaC,IAAI,CAACH,EAAEC,IAAI,KACxB,aAAa;QACbD,EAAEC,IAAI,CAACC,UAAU,CAAC,SAClB;YACAF,EAAEC,IAAI,GAAG,CAAC,OAAO,EAAED,EAAEC,IAAI,EAAE;QAC7B;IACF;IAEA,OAAOD;AACT;AAEO,SAASH,eAAeO,KAAY,EAAEC,IAAqB;IAChE,IAAID,MAAME,IAAI,KAAK,0BAA0B;QAC3C,4EAA4E;QAC5E,wDAAwD;QACxD,MAAMC,yBAAyB,OAAA,cAE9B,CAF8B,IAAIC,MACjC,kGAD6B,qBAAA;mBAAA;wBAAA;0BAAA;QAE/B;QACAC,CAAAA,GAAAA,aAAAA,mBAAmB,EAACF,wBAAwBF;QAC5C,OAAOE;IACT;IAEA,IAAIG;IACJ,IAAI;QACF,MAAM,OAAA,cAAwB,CAAxB,IAAIF,MAAMJ,MAAMO,OAAO,GAAvB,qBAAA;mBAAA;wBAAA;0BAAA;QAAuB;IAC/B,EAAE,OAAOC,GAAG;QACVF,IAAIE;IACN;IAEAF,EAAEJ,IAAI,GAAGF,MAAME,IAAI;IACnB,qEAAqE;IACrE,MAAMO,YAAaT,MAAcU,iBAAiB;IAClD,IAAI,OAAOD,cAAc,UAAU;QACjCE,OAAOC,cAAc,CAACN,GAAG,qBAAqB;YAC5CO,OAAOJ;YACPK,YAAY;YACZC,cAAc;QAChB;IACF;IACA,IAAI;QACFT,EAAEU,KAAK,GAAG,GAAGV,EAAEW,QAAQ,GAAG,EAAE,EAAEC,CAAAA,GAAAA,kBAAAA,KAAK,EAAClB,MAAMgB,KAAK,EAC5CG,GAAG,CAACzB,oBACJyB,GAAG,CAAC,CAACvB;YACJ,IAAIwB,MAAM,CAAC,OAAO,EAAExB,EAAEyB,UAAU,EAAE;YAClC,IAAIzB,EAAEC,IAAI,EAAE;gBACV,IAAIyB,MAAM1B,EAAEC,IAAI;gBAChB,IAAID,EAAE2B,UAAU,EAAE;oBAChBD,OAAO,CAAC,CAAC,EAAE1B,EAAE2B,UAAU,EAAE;oBACzB,IAAI3B,EAAE4B,MAAM,EAAE;wBACZF,OAAO,CAAC,CAAC,EAAE1B,EAAE4B,MAAM,EAAE;oBACvB;gBACF;gBACAJ,OAAO,CAAC,EAAE,EAAEE,IAAI,CAAC,CAAC;YACpB;YACA,OAAOF;QACT,GACCK,IAAI,CAAC,OAAO;IACjB,EAAE,OAAM;QACNnB,EAAEU,KAAK,GAAGhB,MAAMgB,KAAK;IACvB;IAEAX,CAAAA,GAAAA,aAAAA,mBAAmB,EAACC,GAAGL;IACvB,OAAOK;AACT","ignoreList":[0]}}]
}
@@ -0,0 +1 @@
!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof t&&t)||o("object"==typeof t&&t)||function(){return this}()||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b("".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b("".split),R=a(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===E(t)?x(t,""):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A("Can't call method on "+t);return t},k=function(t){return R(j(t))},I="object"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return"function"==typeof t||t===I}:function(t){return"function"==typeof t},M=function(t){return"object"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):"",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\/(\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol("symbol detection");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return"Object"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+" is not a function")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e="__core-js_shared__",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++st+ct,36)},ht=i.Symbol,pt=nt("wks"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt("Symbol."+t)),pt[t]},gt=TypeError,yt=dt("toPrimitive"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e="default"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if("string"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return G(e)?e:e+""},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+" is not an object")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt="enumerable",Ut="configurable",Nt="writable",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Nt in r&&!r[Nt]){var n=Mt(t,e);n&&n[Nt]&&(t[e]=r.value,r={configurable:Ut in r?r[Ut]:n[Ut],enumerable:Lt in r?r[Lt]:n[Lt],writable:!1})}return Tt(t,e,r)}:Tt:function(t,e,r){if(kt(t),e=bt(e),kt(r),Ot)try{return Tt(t,e,r)}catch(tLine truncated
@@ -0,0 +1 @@
{"version":3,"sources":["turbopack:///[project]/node_modules/next/dist/build/polyfills/polyfill-nomodule.js"],"sourcesContent":["!function(){var t=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r,n,o=function(t){return t&&t.Math===Math&&t},i=o(\"object\"==typeof globalThis&&globalThis)||o(\"object\"==typeof window&&window)||o(\"object\"==typeof self&&self)||o(\"object\"==typeof t&&t)||o(\"object\"==typeof t&&t)||function(){return this}()||Function(\"return this\")(),a=function(t){try{return!!t()}catch(t){return!0}},u=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),s=!a(function(){var t=function(){}.bind();return\"function\"!=typeof t||t.hasOwnProperty(\"prototype\")}),c=Function.prototype.call,f=s?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p=h&&!l.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:l,v={f:p},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,y=g.call,m=s&&g.bind.bind(y,y),b=s?m:function(t){return function(){return y.apply(t,arguments)}},w=b({}.toString),S=b(\"\".slice),E=function(t){return S(w(t),8,-1)},O=Object,x=b(\"\".split),R=a(function(){return!O(\"z\").propertyIsEnumerable(0)})?function(t){return\"String\"===E(t)?x(t,\"\"):O(t)}:O,P=function(t){return null==t},A=TypeError,j=function(t){if(P(t))throw new A(\"Can't call method on \"+t);return t},k=function(t){return R(j(t))},I=\"object\"==typeof document&&document.all,T=void 0===I&&void 0!==I?function(t){return\"function\"==typeof t||t===I}:function(t){return\"function\"==typeof t},M=function(t){return\"object\"==typeof t?null!==t:T(t)},L=function(t,e){return arguments.length<2?T(r=i[t])?r:void 0:i[t]&&i[t][e];var r},U=b({}.isPrototypeOf),N=i.navigator,C=N&&N.userAgent,_=C?String(C):\"\",F=i.process,B=i.Deno,D=F&&F.versions||B&&B.version,z=D&&D.v8;z&&(n=(r=z.split(\".\"))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&_&&(!(r=_.match(/Edge\\/(\\d+)/))||r[1]>=74)&&(r=_.match(/Chrome\\/(\\d+)/))&&(n=+r[1]);var W=n,q=i.String,H=!!Object.getOwnPropertySymbols&&!a(function(){var t=Symbol(\"symbol detection\");return!q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41}),$=H&&!Symbol.sham&&\"symbol\"==typeof Symbol.iterator,K=Object,G=$?function(t){return\"symbol\"==typeof t}:function(t){var e=L(\"Symbol\");return T(e)&&U(e.prototype,K(t))},V=String,Y=function(t){try{return V(t)}catch(t){return\"Object\"}},X=TypeError,J=function(t){if(T(t))return t;throw new X(Y(t)+\" is not a function\")},Q=function(t,e){var r=t[e];return P(r)?void 0:J(r)},Z=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(i,t,{value:e,configurable:!0,writable:!0})}catch(r){i[t]=e}return e},rt=e(function(t){var e=\"__core-js_shared__\",r=t.exports=i[e]||et(e,{});(r.versions||(r.versions=[])).push({version:\"3.38.1\",mode:\"global\",copyright:\"© 2014-2024 Denis Pushkarev (zloirock.ru)\",license:\"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE\",source:\"https://github.com/zloirock/core-js\"})}),nt=function(t,e){return rt[t]||(rt[t]=e||{})},ot=Object,it=function(t){return ot(j(t))},at=b({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return at(it(t),e)},st=0,ct=Math.random(),ft=b(1..toString),lt=function(t){return\"Symbol(\"+(void 0===t?\"\":t)+\")_\"+ft(++st+ct,36)},ht=i.Symbol,pt=nt(\"wks\"),vt=$?ht.for||ht:ht&&ht.withoutSetter||lt,dt=function(t){return ut(pt,t)||(pt[t]=H&&ut(ht,t)?ht[t]:vt(\"Symbol.\"+t)),pt[t]},gt=TypeError,yt=dt(\"toPrimitive\"),mt=function(t,e){if(!M(t)||G(t))return t;var r,n=Q(t,yt);if(n){if(void 0===e&&(e=\"default\"),r=f(n,t,e),!M(r)||G(r))return r;throw new gt(\"Can't convert object to primitive value\")}return void 0===e&&(e=\"number\"),function(t,e){var r,n;if(\"string\"===e&&T(r=t.toString)&&!M(n=f(r,t)))return n;if(T(r=t.valueOf)&&!M(n=f(r,t)))return n;if(\"string\"!==e&&T(r=t.toString)&&!M(n=f(r,t)))return n;throw new Z(\"Can't convert object to primitive value\")}(t,e)},bt=function(t){var e=mt(t,\"string\");return G(e)?e:e+\"\"},wt=i.document,St=M(wt)&&M(wt.createElement),Et=function(t){return St?wt.createElement(t):{}},Ot=!u&&!a(function(){return 7!==Object.defineProperty(Et(\"div\"),\"a\",{get:function(){return 7}}).a}),xt=Object.getOwnPropertyDescriptor,Rt={f:u?xt:function(t,e){if(t=k(t),e=bt(e),Ot)try{return xt(t,e)}catch(t){}if(ut(t,e))return d(!f(v.f,t,e),t[e])}},Pt=u&&a(function(){return 42!==Object.defineProperty(function(){},\"prototype\",{value:42,writable:!1}).prototype}),At=String,jt=TypeError,kt=function(t){if(M(t))return t;throw new jt(At(t)+\" is not an object\")},It=TypeError,Tt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Lt=\"enumerable\",Ut=\"configurable\",Nt=\"writable\",Ct={f:u?Pt?function(t,e,r){if(kt(t),e=bt(e),kt(r),\"function\"==typeof t&&\"prototLine truncated
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,105 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/add-base-path.ts"],"sourcesContent":["import { addPathPrefix } from '../shared/lib/router/utils/add-path-prefix'\nimport { normalizePathTrailingSlash } from './normalize-trailing-slash'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function addBasePath(path: string, required?: boolean): string {\n return normalizePathTrailingSlash(\n process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required\n ? path\n : addPathPrefix(path, basePath)\n )\n}\n"],"names":["addBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","required","normalizePathTrailingSlash","__NEXT_MANUAL_CLIENT_BASE_PATH","addPathPrefix"],"mappings":"AAGkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,eAAAA;;;eAAAA;;;+BALc;wCACa;AAE3C,MAAMC,mDAA6D;AAE5D,SAASD,YAAYK,IAAY,EAAEC,QAAkB;IAC1D,OAAOC,CAAAA,GAAAA,wBAAAA,0BAA0B,EAC/BL,QAAQC,GAAG,CAACK,0BACRH,IADsC,IAAI,CAACC,iBAE3CG,CAAAA,GAAAA,eAAAA,aAAa,EAACJ,MAAMJ;AAE5B","ignoreList":[0]}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-bootstrap.ts"],"sourcesContent":["/**\n * Before starting the Next.js runtime and requiring any module, we need to make\n * sure the following scripts are executed in the correct order:\n * - Polyfills\n * - next/script with `beforeInteractive` strategy\n */\n\nimport { getAssetPrefix } from './asset-prefix'\nimport { setAttributesFromProps } from './set-attributes-from-props'\n\nconst version = process.env.__NEXT_VERSION\n\nwindow.next = {\n version,\n appDir: true,\n}\n\nfunction loadScriptsInSequence(\n scripts: [src: string, props: { [prop: string]: any }][],\n hydrate: () => void\n) {\n if (!scripts || !scripts.length) {\n return hydrate()\n }\n\n return scripts\n .reduce((promise, [src, props]) => {\n return promise.then(() => {\n return new Promise<void>((resolve, reject) => {\n const el = document.createElement('script')\n\n if (props) {\n setAttributesFromProps(el, props)\n }\n\n if (src) {\n el.src = src\n el.onload = () => resolve()\n el.onerror = reject\n } else if (props) {\n el.innerHTML = props.children\n setTimeout(resolve)\n }\n\n document.head.appendChild(el)\n })\n })\n }, Promise.resolve())\n .catch((err: Error) => {\n console.error(err)\n // Still try to hydrate even if there's an error.\n })\n .then(() => {\n hydrate()\n })\n}\n\nexport function appBootstrap(hydrate: (assetPrefix: string) => void) {\n const assetPrefix = getAssetPrefix()\n\n loadScriptsInSequence((self as any).__next_s, () => {\n // If the static shell is being debugged, skip hydration if the\n // `__nextppronly` query is present. This is only enabled when the\n // environment variable `__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING` is\n // set to `1`. Otherwise the following is optimized out.\n if (process.env.__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING === '1') {\n const search = new URLSearchParams(window.location.search)\n if (\n search.get('__nextppronly') === 'fallback' ||\n search.get('__nextppronly') === '1'\n ) {\n console.warn(\n `Skipping hydration due to __nextppronly=${search.get('__nextppronly')}`\n )\n return\n }\n }\n\n hydrate(assetPrefix)\n })\n}\n"],"names":["appBootstrap","version","process","env","__NEXT_VERSION","window","next","appDir","loadScriptsInSequence","scripts","hydrate","length","reduce","promise","src","props","then","Promise","resolve","reject","el","document","createElement","setAttributesFromProps","onload","onerror","innerHTML","children","setTimeout","head","appendChild","catch","err","console","error","assetPrefix","getAssetPrefix","self","__next_s","__NEXT_EXPERIMENTAL_STATIC_SHELL_DEBUGGING","search","URLSearchParams","location","get","warn"],"mappings":"AAiEQE,QAAQC,GAAG,CAACoC,0CAA0C,KAAK,KAAK;AAjExE;;;;;CAKC,GAAA;;;;+BAoDevC,gBAAAA;;;eAAAA;;;6BAlDe;wCACQ;AAEvC,MAAMC,UAAUC,QAAQC,GAAG,CAACC,cAAc;AAE1CC,OAAOC,IAAI,GAAG;IACZL;IACAM,QAAQ;AACV;AAEA,SAASC,sBACPC,OAAwD,EACxDC,OAAmB;IAEnB,IAAI,CAACD,WAAW,CAACA,QAAQE,MAAM,EAAE;QAC/B,OAAOD;IACT;IAEA,OAAOD,QACJG,MAAM,CAAC,CAACC,SAAS,CAACC,KAAKC,MAAM;QAC5B,OAAOF,QAAQG,IAAI,CAAC;YAClB,OAAO,IAAIC,QAAc,CAACC,SAASC;gBACjC,MAAMC,KAAKC,SAASC,aAAa,CAAC;gBAElC,IAAIP,OAAO;oBACTQ,CAAAA,GAAAA,wBAAAA,sBAAsB,EAACH,IAAIL;gBAC7B;gBAEA,IAAID,KAAK;oBACPM,GAAGN,GAAG,GAAGA;oBACTM,GAAGI,MAAM,GAAG,IAAMN;oBAClBE,GAAGK,OAAO,GAAGN;gBACf,OAAO,IAAIJ,OAAO;oBAChBK,GAAGM,SAAS,GAAGX,MAAMY,QAAQ;oBAC7BC,WAAWV;gBACb;gBAEAG,SAASQ,IAAI,CAACC,WAAW,CAACV;YAC5B;QACF;IACF,GAAGH,QAAQC,OAAO,IACjBa,KAAK,CAAC,CAACC;QACNC,QAAQC,KAAK,CAACF;IACd,iDAAiD;IACnD,GACChB,IAAI,CAAC;QACJN;IACF;AACJ;AAEO,SAASV,aAAaU,OAAsC;IACjE,MAAMyB,cAAcC,CAAAA,GAAAA,aAAAA,cAAc;IAElC5B,sBAAuB6B,KAAaC,QAAQ,EAAE;QAC5C,+DAA+D;QAC/D,kEAAkE;QAClE,uEAAuE;QACvE,wDAAwD;QACxD;;QAaA5B,QAAQyB;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 107, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-call-server.ts"],"sourcesContent":["import { startTransition } from 'react'\nimport { ACTION_SERVER_ACTION } from './components/router-reducer/router-reducer-types'\nimport { dispatchAppRouterAction } from './components/use-action-queue'\n\nexport async function callServer(actionId: string, actionArgs: any[]) {\n return new Promise((resolve, reject) => {\n startTransition(() => {\n dispatchAppRouterAction({\n type: ACTION_SERVER_ACTION,\n actionId,\n actionArgs,\n resolve,\n reject,\n })\n })\n })\n}\n"],"names":["callServer","actionId","actionArgs","Promise","resolve","reject","startTransition","dispatchAppRouterAction","type","ACTION_SERVER_ACTION"],"mappings":";;;+BAIsBA,cAAAA;;;eAAAA;;;uBAJU;oCACK;gCACG;AAEjC,eAAeA,WAAWC,QAAgB,EAAEC,UAAiB;IAClE,OAAO,IAAIC,QAAQ,CAACC,SAASC;QAC3BC,CAAAA,GAAAA,OAAAA,eAAe,EAAC;YACdC,CAAAA,GAAAA,gBAAAA,uBAAuB,EAAC;gBACtBC,MAAMC,oBAAAA,oBAAoB;gBAC1BR;gBACAC;gBACAE;gBACAC;YACF;QACF;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 143, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-find-source-map-url.ts"],"sourcesContent":["const basePath = process.env.__NEXT_ROUTER_BASEPATH || ''\nconst pathname = `${basePath}/__nextjs_source-map`\n\nexport const findSourceMapURL =\n // Source maps are only served by the dev server.\n process.env.__NEXT_DEV_SERVER\n ? function findSourceMapURL(filename: string): string | null {\n if (filename === '') {\n return null\n }\n\n if (\n filename.startsWith(document.location.origin) &&\n filename.includes('/_next/static')\n ) {\n // This is a request for a client chunk. This can only happen when\n // using Turbopack. In this case, since we control how those source\n // maps are generated, we can safely assume that the sourceMappingURL\n // is relative to the filename, with an added `.map` extension. The\n // browser can just request this file, and it gets served through the\n // normal dev server, without the need to route this through\n // the `/__nextjs_source-map` dev middleware.\n return `${filename}.map`\n }\n\n const url = new URL(pathname, document.location.origin)\n url.searchParams.set('filename', filename)\n\n return url.href\n }\n : undefined\n"],"names":["findSourceMapURL","basePath","process","env","__NEXT_ROUTER_BASEPATH","pathname","__NEXT_DEV_SERVER","filename","startsWith","document","location","origin","includes","url","URL","searchParams","set","href","undefined"],"mappings":"AAAiBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAGtCJ,oBAAAA;;;eAAAA;;;AAHb,MAAMC,mDAAiD;AACvD,MAAMI,WAAW,GAAGJ,SAAS,oBAAoB,CAAC;AAE3C,MAAMD,mBACX,AACAE,QAAQC,GAAG,CAACG,iBAAiB,UACzB,SAASN,CAFoC,gBAEnBO,QAAgB;IACxC,IAAIA,aAAa,IAAI;QACnB,OAAO;IACT;IAEA,IACEA,SAASC,UAAU,CAACC,SAASC,QAAQ,CAACC,MAAM,KAC5CJ,SAASK,QAAQ,CAAC,kBAClB;QACA,kEAAkE;QAClE,mEAAmE;QACnE,qEAAqE;QACrE,mEAAmE;QACnE,qEAAqE;QACrE,4DAA4D;QAC5D,6CAA6C;QAC7C,OAAO,GAAGL,SAAS,IAAI,CAAC;IAC1B;IAEA,MAAMM,MAAM,IAAIC,IAAIT,UAAUI,SAASC,QAAQ,CAACC,MAAM;IACtDE,IAAIE,YAAY,CAACC,GAAG,CAAC,YAAYT;IAEjC,OAAOM,IAAII,IAAI;AACjB,IACAC","ignoreList":[0]}},
{"offset": {"line": 185, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-globals.ts"],"sourcesContent":["// imports polyfill from `@next/polyfill-module` after build.\nimport '../build/polyfills/polyfill-module'\n\n// Only set up devtools for the dev server.\nif (process.env.__NEXT_DEV_SERVER) {\n require('../next-devtools/userspace/app/app-dev-overlay-setup') as typeof import('../next-devtools/userspace/app/app-dev-overlay-setup')\n}\n\n// Start listening for the instant navigation test cookie. The test framework\n// (e.g. Playwright) sets/clears this cookie to control the navigation lock.\n// Browser-only.\nif (process.env.__NEXT_EXPOSE_TESTING_API && typeof window !== 'undefined') {\n const { startListeningForInstantNavigationCookie } =\n // TODO(browser-variant): migrate to a .ts/.browser.ts split so the browser bundle drops the server branch; see scripts/generate-browser-variant-aliases.mjs\n // ast-grep-ignore: no-typeof-window-require\n require('./components/segment-cache/navigation-testing-lock') as typeof import('./components/segment-cache/navigation-testing-lock')\n startListeningForInstantNavigationCookie()\n}\n"],"names":["process","env","__NEXT_DEV_SERVER","require","__NEXT_EXPOSE_TESTING_API","window","startListeningForInstantNavigationCookie"],"mappings":"AAIIA,QAAQC,GAAG,CAACC,iBAAiB;AAJjC,6DAA6D;;;;;;AAG7D,2CAA2C;AAC3C,wCAAmC;;AAEnC;AAEA,6EAA6E;AAC7E,4EAA4E;AAC5E,gBAAgB;AAChB,IAAIF,QAAQC,GAAG,CAACG,yBAAyB,KAAI,OAAOC,WAAW,aAAa;IAC1E,MAAM,EAAEC,wCAAwC,EAAE,GAChD,4JAA4J;IAG9JA;AACF","ignoreList":[0]}},
{"offset": {"line": 214, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-index.tsx"],"sourcesContent":["import './app-globals'\nimport ReactDOMClient from 'react-dom/client'\nimport React from 'react'\n// TODO: Explicitly import from client.browser\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport {\n createFromReadableStream as createFromReadableStreamBrowser,\n createFromFetch as createFromFetchBrowser,\n} from 'react-server-dom-webpack/client'\nimport { HeadManagerContext } from '../shared/lib/head-manager-context.shared-runtime'\nimport { onRecoverableError } from './react-client-callbacks/on-recoverable-error'\nimport {\n onCaughtError,\n onUncaughtError,\n} from './react-client-callbacks/error-boundary-callbacks'\nimport { callServer } from './app-call-server'\nimport { findSourceMapURL } from './app-find-source-map-url'\nimport {\n type AppRouterActionQueue,\n createMutableActionQueue,\n} from './components/app-router-instance'\nimport AppRouter from './components/app-router'\nimport type { InitialRSCPayload } from '../shared/lib/app-router-types'\nimport { createInitialRouterState } from './components/router-reducer/create-initial-router-state'\nimport { MissingSlotContext } from '../shared/lib/app-router-context.shared-runtime'\nimport type { StaticIndicatorState } from './dev/hot-reloader/app/hot-reloader-app'\nimport { createInitialRSCPayloadFromFallbackPrerender } from './flight-data-helpers'\nimport { getDeploymentId } from '../shared/lib/deployment-id'\nimport { setNavigationBuildId } from './navigation-build-id'\nimport type { ClientInstrumentationModules } from './router-transition-types'\nimport { initializeRouterTransitionModules } from './components/router-transition'\n\n/// <reference types=\"react-dom/experimental\" />\n\nconst createFromReadableStream =\n createFromReadableStreamBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromReadableStream']\nconst createFromFetch =\n createFromFetchBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromFetch']\n\nconst appElement: HTMLElement | Document = document\n\n// Instant Navigation Testing API: captured once at module init. When truthy,\n// this is the fetch promise for the static RSC payload (set by an injected\n// <script> tag in the static shell HTML).\nconst instantTestStaticFetch: Promise<Response> | undefined =\n self.__next_instant_test\n ? (self.__next_instant_test as unknown as Promise<Response>)\n : undefined\n\nconst encoder = new TextEncoder()\n\nlet initialServerDataBuffer: (string | Uint8Array)[] | undefined = undefined\nlet initialServerDataWriter: ReadableStreamDefaultController | undefined =\n undefined\nlet initialServerDataLoaded = false\nlet initialServerDataFlushed = false\n\nlet initialFormStateData: null | any = null\n\ntype FlightSegment =\n | [isBootStrap: 0]\n | [isNotBootstrap: 1, responsePartial: string]\n | [isFormState: 2, formState: any]\n | [isBinary: 3, responseBase64Partial: string]\n\ntype NextFlight = Omit<Array<FlightSegment>, 'push'> & {\n push: (seg: FlightSegment) => void\n}\n\ndeclare global {\n // If you're working in a browser environment\n interface Window {\n /**\n * request ID, dev-only\n */\n __next_r?: string\n __next_f: NextFlight\n }\n}\n\nfunction nextServerDataCallback(seg: FlightSegment): void {\n if (seg[0] === 0) {\n initialServerDataBuffer = []\n } else if (seg[0] === 1) {\n if (!initialServerDataBuffer)\n throw new Error('Unexpected server data: missing bootstrap script.')\n\n if (initialServerDataWriter) {\n initialServerDataWriter.enqueue(encoder.encode(seg[1]))\n } else {\n initialServerDataBuffer.push(seg[1])\n }\n } else if (seg[0] === 2) {\n initialFormStateData = seg[1]\n } else if (seg[0] === 3) {\n if (!initialServerDataBuffer)\n throw new Error('Unexpected server data: missing bootstrap script.')\n\n // Decode the base64 string back to binary data.\n const binaryString = atob(seg[1])\n const decodedChunk = new Uint8Array(binaryString.length)\n for (var i = 0; i < binaryString.length; i++) {\n decodedChunk[i] = binaryString.charCodeAt(i)\n }\n\n if (initialServerDataWriter) {\n initialServerDataWriter.enqueue(decodedChunk)\n } else {\n initialServerDataBuffer.push(decodedChunk)\n }\n }\n}\n\nfunction isStreamErrorOrUnfinished(ctr: ReadableStreamDefaultController) {\n // If `desiredSize` is null, it means the stream is closed or errored. If it is lower than 0, the stream is still unfinished.\n return ctr.desiredSize === null || ctr.desiredSize < 0\n}\n\n// There might be race conditions between `nextServerDataRegisterWriter` and\n// `DOMContentLoaded`. The former will be called when React starts to hydrate\n// the root, the latter will be called when the DOM is fully loaded.\n// For streaming, the formeLine truncated
{"offset": {"line": 525, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-link-gc.ts"],"sourcesContent":["export function linkGc() {\n // TODO-APP: Remove this logic when Float has GC built-in in development.\n if (process.env.NODE_ENV !== 'production') {\n const callback = (mutationList: MutationRecord[]) => {\n for (const mutation of mutationList) {\n if (mutation.type === 'childList') {\n for (const node of mutation.addedNodes) {\n if (\n 'tagName' in node &&\n (node as HTMLLinkElement).tagName === 'LINK'\n ) {\n const link = node as HTMLLinkElement\n if (link.dataset.precedence?.startsWith('next')) {\n const href = link.getAttribute('href')\n if (href) {\n const [resource, version] = href.split('?v=', 2)\n if (version) {\n const currentOrigin = window.location.origin\n const allLinks = [\n ...document.querySelectorAll(\n 'link[href^=\"' + resource + '\"]'\n ),\n // It's possible that the resource is a full URL or only pathname,\n // so we need to remove the alternative href as well.\n ...document.querySelectorAll(\n 'link[href^=\"' +\n (resource.startsWith(currentOrigin)\n ? resource.slice(currentOrigin.length)\n : currentOrigin + resource) +\n '\"]'\n ),\n ] as HTMLLinkElement[]\n\n for (const otherLink of allLinks) {\n if (otherLink.dataset.precedence?.startsWith('next')) {\n const otherHref = otherLink.getAttribute('href')\n if (otherHref) {\n const [, otherVersion] = otherHref.split('?v=', 2)\n if (!otherVersion || +otherVersion < +version) {\n // Delay the removal of the stylesheet to avoid FOUC\n // caused by `@font-face` rules, as they seem to be\n // a couple of ticks delayed between the old and new\n // styles being swapped even if the font is cached.\n setTimeout(() => {\n otherLink.remove()\n }, 5)\n const preloadLink = document.querySelector(\n `link[rel=\"preload\"][as=\"style\"][href=\"${otherHref}\"]`\n )\n if (preloadLink) {\n preloadLink.remove()\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n // Create an observer instance linked to the callback function\n const observer = new MutationObserver(callback)\n observer.observe(document.head, {\n childList: true,\n })\n }\n}\n"],"names":["linkGc","process","env","NODE_ENV","callback","mutationList","mutation","type","node","addedNodes","tagName","link","dataset","precedence","startsWith","href","getAttribute","resource","version","split","currentOrigin","window","location","origin","allLinks","document","querySelectorAll","slice","length","otherLink","otherHref","otherVersion","setTimeout","remove","preloadLink","querySelector","observer","MutationObserver","observe","head","childList"],"mappings":"AAEMC,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAFfH,UAAAA;;;eAAAA;;;AAAT,SAASA;IACd,yEAAyE;IACzE,wCAA2C;QACzC,MAAMI,WAAW,CAACC;YAChB,KAAK,MAAMC,YAAYD,aAAc;gBACnC,IAAIC,SAASC,IAAI,KAAK,aAAa;oBACjC,KAAK,MAAMC,QAAQF,SAASG,UAAU,CAAE;wBACtC,IACE,aAAaD,QACZA,KAAyBE,OAAO,KAAK,QACtC;4BACA,MAAMC,OAAOH;4BACb,IAAIG,KAAKC,OAAO,CAACC,UAAU,EAAEC,WAAW,SAAS;gCAC/C,MAAMC,OAAOJ,KAAKK,YAAY,CAAC;gCAC/B,IAAID,MAAM;oCACR,MAAM,CAACE,UAAUC,QAAQ,GAAGH,KAAKI,KAAK,CAAC,OAAO;oCAC9C,IAAID,SAAS;wCACX,MAAME,gBAAgBC,OAAOC,QAAQ,CAACC,MAAM;wCAC5C,MAAMC,WAAW;+CACZC,SAASC,gBAAgB,CAC1B,iBAAiBT,WAAW;4CAE9B,kEAAkE;4CAClE,qDAAqD;+CAClDQ,SAASC,gBAAgB,CAC1B,iBACGT,CAAAA,SAASH,UAAU,CAACM,iBACjBH,SAASU,KAAK,CAACP,cAAcQ,MAAM,IACnCR,gBAAgBH,QAAO,IAC3B;yCAEL;wCAED,KAAK,MAAMY,aAAaL,SAAU;4CAChC,IAAIK,UAAUjB,OAAO,CAACC,UAAU,EAAEC,WAAW,SAAS;gDACpD,MAAMgB,YAAYD,UAAUb,YAAY,CAAC;gDACzC,IAAIc,WAAW;oDACb,MAAM,GAAGC,aAAa,GAAGD,UAAUX,KAAK,CAAC,OAAO;oDAChD,IAAI,CAACY,gBAAgB,CAACA,eAAe,CAACb,SAAS;wDAC7C,oDAAoD;wDACpD,mDAAmD;wDACnD,oDAAoD;wDACpD,mDAAmD;wDACnDc,WAAW;4DACTH,UAAUI,MAAM;wDAClB,GAAG;wDACH,MAAMC,cAAcT,SAASU,aAAa,CACxC,CAAC,sCAAsC,EAAEL,UAAU,EAAE,CAAC;wDAExD,IAAII,aAAa;4DALine truncated
{"offset": {"line": 604, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/app-next-turbopack.ts"],"sourcesContent":["import './register-deployment-id-global'\nimport { appBootstrap } from './app-bootstrap'\nimport { isRecoverableError } from './react-client-callbacks/on-recoverable-error'\n\nwindow.next.turbopack = true\n;(self as any).__webpack_hash__ = ''\n\n// eslint-disable-next-line @next/internal/typechecked-require\nconst instrumentationModules = require('../lib/require-instrumentation-client')\n\nappBootstrap((assetPrefix) => {\n const { hydrate } = require('./app-index') as typeof import('./app-index')\n try {\n hydrate(instrumentationModules, assetPrefix)\n } finally {\n if (process.env.__NEXT_DEV_SERVER) {\n const enableCacheIndicator = process.env.__NEXT_CACHE_COMPONENTS\n const { getOwnerStack } =\n require('../next-devtools/userspace/app/errors/stitched-error') as typeof import('../next-devtools/userspace/app/errors/stitched-error')\n const { renderAppDevOverlay } =\n require('next/dist/compiled/next-devtools') as typeof import('next/dist/compiled/next-devtools')\n renderAppDevOverlay(\n getOwnerStack,\n isRecoverableError,\n enableCacheIndicator\n )\n }\n }\n})\n"],"names":["window","next","turbopack","self","__webpack_hash__","instrumentationModules","require","appBootstrap","assetPrefix","hydrate","process","env","__NEXT_DEV_SERVER","enableCacheIndicator","__NEXT_CACHE_COMPONENTS","getOwnerStack","renderAppDevOverlay","isRecoverableError"],"mappings":"AAeQU,QAAQC,GAAG,CAACC,iBAAiB;;;;;;8BAdR;oCACM;AAEnCZ,OAAOC,IAAI,CAACC,SAAS,GAAG;AACtBC,KAAaC,gBAAgB,GAAG;AAElC,8DAA8D;AAC9D,MAAMC,yBAAyBC,QAAQ;AAEvCC,CAAAA,GAAAA,cAAAA,YAAY,EAAC,CAACC;IACZ,MAAM,EAAEC,OAAO,EAAE,GAAGH,QAAQ;IAC5B,IAAI;QACFG,QAAQJ,wBAAwBG;IAClC,SAAU;QACR,wCAAmC;YACjC,MAAMK,uBAAuBH,QAAQC,GAAG,CAACG,uBAAuB;YAChE,MAAM,EAAEC,aAAa,EAAE,GACrBT,QAAQ;YACV,MAAM,EAAEU,mBAAmB,EAAE,GAC3BV,QAAQ;YACVU,oBACED,eACAE,oBAAAA,kBAAkB,EAClBJ;QAEJ;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 640, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/asset-prefix.ts"],"sourcesContent":["import { InvariantError } from '../shared/lib/invariant-error'\n\nexport function getAssetPrefix() {\n const currentScript = document.currentScript\n\n if (!(currentScript instanceof HTMLScriptElement)) {\n throw new InvariantError(\n `Expected document.currentScript to be a <script> element. Received ${currentScript} instead.`\n )\n }\n\n const { pathname } = new URL(currentScript.src)\n const nextIndex = pathname.indexOf('/_next/')\n\n if (nextIndex === -1) {\n throw new InvariantError(\n `Expected document.currentScript src to contain '/_next/'. Received ${currentScript.src} instead.`\n )\n }\n\n return pathname.slice(0, nextIndex)\n}\n"],"names":["getAssetPrefix","currentScript","document","HTMLScriptElement","InvariantError","pathname","URL","src","nextIndex","indexOf","slice"],"mappings":";;;+BAEgBA,kBAAAA;;;eAAAA;;;gCAFe;AAExB,SAASA;IACd,MAAMC,gBAAgBC,SAASD,aAAa;IAE5C,IAAI,CAAEA,CAAAA,yBAAyBE,iBAAgB,GAAI;QACjD,MAAM,OAAA,cAEL,CAFK,IAAIC,gBAAAA,cAAc,CACtB,CAAC,mEAAmE,EAAEH,cAAc,SAAS,CAAC,GAD1F,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,MAAM,EAAEI,QAAQ,EAAE,GAAG,IAAIC,IAAIL,cAAcM,GAAG;IAC9C,MAAMC,YAAYH,SAASI,OAAO,CAAC;IAEnC,IAAID,cAAc,CAAC,GAAG;QACpB,MAAM,OAAA,cAEL,CAFK,IAAIJ,gBAAAA,cAAc,CACtB,CAAC,mEAAmE,EAAEH,cAAcM,GAAG,CAAC,SAAS,CAAC,GAD9F,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,OAAOF,SAASK,KAAK,CAAC,GAAGF;AAC3B","ignoreList":[0]}},
{"offset": {"line": 681, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/assign-location.ts"],"sourcesContent":["import { addBasePath } from './add-base-path'\n\n/**\n * Function to correctly assign location to URL\n *\n * The method will add basePath, and will also correctly add location (including if it is a relative path)\n * @param location Location that should be added to the url\n * @param url Base URL to which the location should be assigned\n */\nexport function assignLocation(location: string, url: URL): URL {\n if (location.startsWith('.')) {\n const urlBase = url.origin + url.pathname\n return new URL(\n // In order for a relative path to be added to the current url correctly, the current url must end with a slash\n // new URL('./relative', 'https://example.com/subdir').href -> 'https://example.com/relative'\n // new URL('./relative', 'https://example.com/subdir/').href -> 'https://example.com/subdir/relative'\n (urlBase.endsWith('/') ? urlBase : urlBase + '/') + location\n )\n }\n\n return new URL(addBasePath(location), url.href)\n}\n"],"names":["assignLocation","location","url","startsWith","urlBase","origin","pathname","URL","endsWith","addBasePath","href"],"mappings":";;;+BASgBA,kBAAAA;;;eAAAA;;;6BATY;AASrB,SAASA,eAAeC,QAAgB,EAAEC,GAAQ;IACvD,IAAID,SAASE,UAAU,CAAC,MAAM;QAC5B,MAAMC,UAAUF,IAAIG,MAAM,GAAGH,IAAII,QAAQ;QACzC,OAAO,IAAIC,IACT,AAGA,AAFA,6FAA6F,kBADkB;QAE/G,qGAAqG;QACpGH,CAAAA,QAAQI,QAAQ,CAAC,OAAOJ,UAAUA,UAAU,GAAE,IAAKH;IAExD;IAEA,OAAO,IAAIM,IAAIE,CAAAA,GAAAA,aAAAA,WAAW,EAACR,WAAWC,IAAIQ,IAAI;AAChD","ignoreList":[0]}},
{"offset": {"line": 711, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/app-router-announcer.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\nimport type { FlightRouterState } from '../../shared/lib/app-router-types'\n\nconst ANNOUNCER_TYPE = 'next-route-announcer'\nconst ANNOUNCER_ID = '__next-route-announcer__'\n\nfunction getAnnouncerNode() {\n const existingAnnouncer = document.getElementsByName(ANNOUNCER_TYPE)[0]\n if (existingAnnouncer?.shadowRoot?.childNodes[0]) {\n return existingAnnouncer.shadowRoot.childNodes[0] as HTMLElement\n } else {\n const container = document.createElement(ANNOUNCER_TYPE)\n container.style.cssText = 'position:absolute'\n const announcer = document.createElement('div')\n announcer.ariaLive = 'assertive'\n announcer.id = ANNOUNCER_ID\n announcer.role = 'alert'\n announcer.style.cssText =\n 'position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal'\n\n // Use shadow DOM here to avoid any potential CSS bleed\n const shadow = container.attachShadow({ mode: 'open' })\n shadow.appendChild(announcer)\n document.body.appendChild(container)\n return announcer\n }\n}\n\nexport function AppRouterAnnouncer({ tree }: { tree: FlightRouterState }) {\n const [portalNode, setPortalNode] = useState<HTMLElement | null>(null)\n\n useEffect(() => {\n const announcer = getAnnouncerNode()\n setPortalNode(announcer)\n return () => {\n const container = document.getElementsByTagName(ANNOUNCER_TYPE)[0]\n if (container?.isConnected) {\n document.body.removeChild(container)\n }\n }\n }, [])\n\n const [routeAnnouncement, setRouteAnnouncement] = useState('')\n const previousTitle = useRef<string | undefined>(undefined)\n\n useEffect(() => {\n let currentTitle = ''\n if (document.title) {\n currentTitle = document.title\n } else {\n const pageHeader = document.querySelector('h1')\n if (pageHeader) {\n currentTitle = pageHeader.innerText || pageHeader.textContent || ''\n }\n }\n\n // Only announce the title change, but not for the first load because screen\n // readers do that automatically.\n if (\n previousTitle.current !== undefined &&\n previousTitle.current !== currentTitle\n ) {\n setRouteAnnouncement(currentTitle)\n }\n previousTitle.current = currentTitle\n }, [tree])\n\n return portalNode ? createPortal(routeAnnouncement, portalNode) : null\n}\n"],"names":["AppRouterAnnouncer","ANNOUNCER_TYPE","ANNOUNCER_ID","getAnnouncerNode","existingAnnouncer","document","getElementsByName","shadowRoot","childNodes","container","createElement","style","cssText","announcer","ariaLive","id","role","shadow","attachShadow","mode","appendChild","body","tree","portalNode","setPortalNode","useState","useEffect","getElementsByTagName","isConnected","removeChild","routeAnnouncement","setRouteAnnouncement","previousTitle","useRef","undefined","currentTitle","title","pageHeader","querySelector","innerText","textContent","current","createPortal"],"mappings":";;;+BA6BgBA,sBAAAA;;;eAAAA;;;uBA7B4B;0BACf;AAG7B,MAAMC,iBAAiB;AACvB,MAAMC,eAAe;AAErB,SAASC;IACP,MAAMC,oBAAoBC,SAASC,iBAAiB,CAACL,eAAe,CAAC,EAAE;IACvE,IAAIG,mBAAmBG,YAAYC,UAAU,CAAC,EAAE,EAAE;QAChD,OAAOJ,kBAAkBG,UAAU,CAACC,UAAU,CAAC,EAAE;IACnD,OAAO;QACL,MAAMC,YAAYJ,SAASK,aAAa,CAACT;QACzCQ,UAAUE,KAAK,CAACC,OAAO,GAAG;QAC1B,MAAMC,YAAYR,SAASK,aAAa,CAAC;QACzCG,UAAUC,QAAQ,GAAG;QACrBD,UAAUE,EAAE,GAAGb;QACfW,UAAUG,IAAI,GAAG;QACjBH,UAAUF,KAAK,CAACC,OAAO,GACrB;QAEF,uDAAuD;QACvD,MAAMK,SAASR,UAAUS,YAAY,CAAC;YAAEC,MAAM;QAAO;QACrDF,OAAOG,WAAW,CAACP;QACnBR,SAASgB,IAAI,CAACD,WAAW,CAACX;QAC1B,OAAOI;IACT;AACF;AAEO,SAASb,mBAAmB,EAAEsB,IAAI,EAA+B;IACtE,MAAM,CAACC,YAAYC,cAAc,GAAGC,CAAAA,GAAAA,OAAAA,QAAQ,EAAqB;IAEjEC,CAAAA,GAAAA,OAAAA,SAAS,EAAC;QACR,MAAMb,YAAYV;QAClBqB,cAAcX;QACd,OAAO;YACL,MAAMJ,YAAYJ,SAASsB,oBAAoB,CAAC1B,eAAe,CAAC,EAAE;YAClE,IAAIQ,WAAWmB,aAAa;gBAC1BvB,SAASgB,IAAI,CAACQ,WAAW,CAACpB;YAC5B;QACF;IACF,GAAG,EAAE;IAEL,MAAM,CAACqB,mBAAmBC,qBAAqB,GAAGN,CAAAA,GAAAA,OAAAA,QAAQ,EAAC;IAC3D,MAAMO,gBAAgBC,CAAAA,GAAAA,OAAAA,MAAM,EAAqBC;IAEjDR,CAAAA,GAAAA,OAAAA,SAAS,EAAC;QACR,IAAIS,eAAe;QACnB,IAAI9B,SAAS+B,KAAK,EAAE;YAClBD,eAAe9B,SAAS+B,KAAK;QAC/B,OAAO;YACL,MAAMC,aAAahC,SAASiC,aAAa,CAAC;YAC1C,IAAID,YAAY;gBACdF,eAAeE,WAAWE,SAAS,IAAIF,WAAWG,WAAW,IAAI;YACnE;QACF;QAEA,4EAA4E;QAC5E,iCAAiC;QACjC,IACER,cAAcS,OAAO,KAAKP,aAC1BF,cAAcS,OAAO,KAAKN,cAC1B;YACAJ,qBAAqBI;QACvB;QACAH,cAAcS,OAAO,GAAGN;IAC1B,GAAG;QAACb;KAAK;IAET,OAAOC,aAAAA,WAAAA,GAAamB,CAAAA,GAAAA,UAAAA,YAAY,EAACZ,mBAAmBP,cAAc;AACpE","ignoreList":[0]}},
{"offset": {"line": 791, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/app-router-headers.ts"],"sourcesContent":["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"],"names":["ACTION_HEADER","FLIGHT_HEADERS","NEXT_ACTION_NOT_FOUND_HEADER","NEXT_ACTION_REVALIDATED_HEADER","NEXT_DID_POSTPONE_HEADER","NEXT_HMR_REFRESH_HEADER","NEXT_HTML_REQUEST_ID_HEADER","NEXT_INSTANT_TEST_COOKIE","NEXT_IS_PRERENDER_HEADER","NEXT_REQUEST_ID_HEADER","NEXT_REWRITTEN_PATH_HEADER","NEXT_REWRITTEN_QUERY_HEADER","NEXT_ROUTER_PREFETCH_HEADER","NEXT_ROUTER_SEGMENT_PREFETCH_HEADER","NEXT_ROUTER_STALE_TIME_HEADER","NEXT_ROUTER_STATE_TREE_HEADER","NEXT_RSC_UNION_QUERY","NEXT_URL","RSC_CONTENT_TYPE_HEADER","RSC_HEADER"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACaA,aAAa,EAAA;eAAbA;;IAsBAC,cAAc,EAAA;eAAdA;;IAeAC,4BAA4B,EAAA;eAA5BA;;IAKAC,8BAA8B,EAAA;eAA9BA;;IATAC,wBAAwB,EAAA;eAAxBA;;IArBAC,uBAAuB,EAAA;eAAvBA;;IA2BAC,2BAA2B,EAAA;eAA3BA;;IApBAC,wBAAwB,EAAA;eAAxBA;;IAiBAC,wBAAwB,EAAA;eAAxBA;;IAEAC,sBAAsB,EAAA;eAAtBA;;IAJAC,0BAA0B,EAAA;eAA1BA;;IACAC,2BAA2B,EAAA;eAA3BA;;IA9BAC,2BAA2B,EAAA;eAA3BA;;IAKAC,mCAAmC,EAAA;eAAnCA;;IAsBAC,6BAA6B,EAAA;eAA7BA;;IA5BAC,6BAA6B,EAAA;eAA7BA;;IA0BAC,oBAAoB,EAAA;eAApBA;;IAjBAC,QAAQ,EAAA;eAARA;;IACAC,uBAAuB,EAAA;eAAvBA;;IAfAC,UAAU,EAAA;eAAVA;;;AAAN,MAAMA,aAAa;AACnB,MAAMnB,gBAAgB;AAItB,MAAMe,gCAAgC;AACtC,MAAMH,8BAA8B;AAKpC,MAAMC,sCACX;AACK,MAAMR,0BAA0B;AAChC,MAAMY,WAAW;AACjB,MAAMC,0BAA0B;AAKhC,MAAMX,2BACX;AAEK,MAAMN,iBAAiB;IAC5BkB;IACAJ;IACAH;IACAP;IACAQ;CACD;AAEM,MAAMG,uBAAuB;AAE7B,MAAMF,gCAAgC;AACtC,MAAMV,2BAA2B;AACjC,MAAMM,6BAA6B;AACnC,MAAMC,8BAA8B;AACpC,MAAMH,2BAA2B;AACjC,MAAMN,+BAA+B;AACrC,MAAMO,yBAAyB;AAC/B,MAAMH,8BAA8B;AAGpC,MAAMH,iCAAiC","ignoreList":[0]}},
{"offset": {"line": 921, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/app-router-instance.ts"],"sourcesContent":["import {\n type AppRouterState,\n type ReducerActions,\n type ReducerState,\n ACTION_REFRESH,\n ACTION_SERVER_ACTION,\n ACTION_NAVIGATE,\n ACTION_RESTORE,\n type NavigateAction,\n ACTION_HMR_REFRESH,\n PrefetchKind,\n ScrollBehavior,\n type AppHistoryState,\n} from './router-reducer/router-reducer-types'\nimport { reducer } from './router-reducer/router-reducer'\nimport { addTransitionType, startTransition } from 'react'\nimport { isThenable } from '../../shared/lib/is-thenable'\nimport {\n FetchStrategy,\n type PrefetchTaskFetchStrategy,\n} from './segment-cache/types'\nimport { prefetch as prefetchWithSegmentCache } from './segment-cache/prefetch'\nimport { navigate } from './segment-cache/navigation'\nimport {\n dispatchAppRouterAction,\n dispatchGestureState,\n} from './use-action-queue'\nimport { resetKnownRoutes } from './segment-cache/optimistic-routes'\nimport { FreshnessPolicy } from './router-reducer/ppr-navigations'\nimport { addBasePath } from '../add-base-path'\nimport { isExternalURL } from './app-router-utils'\nimport type {\n AppRouterInstance,\n NavigateOptions,\n PrefetchOptions,\n} from '../../shared/lib/app-router-context.shared-runtime'\nimport { setLinkForCurrentNavigation, type LinkInstance } from './links'\nimport type { RouterTransitionPrefetchIntent } from '../router-transition-types'\nimport type { GlobalErrorComponent } from './builtin/global-error'\nimport { isJavaScriptURLString } from '../lib/javascript-url'\nimport { startRouterTransition } from './router-transition'\n\nexport type DispatchStatePromise = React.Dispatch<ReducerState>\n\nexport type AppRouterActionQueue = {\n state: AppRouterState\n dispatch: (payload: ReducerActions, setState: DispatchStatePromise) => void\n action: (state: AppRouterState, action: ReducerActions) => ReducerState\n\n pending: ActionQueueNode | null\n needsRefresh?: boolean\n last: ActionQueueNode | null\n}\n\nexport type GlobalErrorState = [\n GlobalError: GlobalErrorComponent,\n styles: React.ReactNode,\n]\n\nexport type ActionQueueNode = {\n payload: ReducerActions\n next: ActionQueueNode | null\n resolve: (value: ReducerState) => void\n reject: (err: Error) => void\n discarded?: boolean\n}\n\nfunction runRemainingActions(\n actionQueue: AppRouterActionQueue,\n settledAction: ActionQueueNode,\n setState: DispatchStatePromise\n) {\n // Only advance the queue if the settled action is still at its head. If a\n // navigation discarded this action, the navigation took its place and is\n // still in flight — starting the next queued action now would run it\n // against router state that doesn't include the navigation yet.\n if (actionQueue.pending === settledAction) {\n actionQueue.pending = settledAction.next\n if (actionQueue.pending !== null) {\n runAction({\n actionQueue,\n action: actionQueue.pending,\n setState,\n })\n return\n }\n }\n\n if (actionQueue.pending === null && actionQueue.needsRefresh) {\n // The queue is idle; flush the refresh requested by a discarded server\n // action that revalidated data.\n actionQueue.needsRefresh = false\n actionQueue.dispatch({ type: ACTION_REFRESH }, setState)\n }\n}\n\nasync function runAction({\n actionQueue,\n action,\n setState,\n}: {\n actionQueue: AppRouterActionQueue\n action: ActionQueueNode\n setState: DispatchStatePromise\n}) {\n const prevState = actionQueue.state\n\n actionQueue.pending = action\n\n const payload = action.payload\n const actionResult = actionQueue.action(prevState, payload)\n\n function handleResult(nextState: AppRouterState) {\n // if we discarded this action, the state should also be discarded\n if (action.discarded) {\n // Check if the discarded server action revalidated data\n if (\n action.payload.type === ACTION_SERVER_ACTION &&\n action.payload.didRevalidate\n ) {\n // The server action was discarded but it revalidated data,\n // mark that we need to refresh after all actions complete\n actionQueue.needsRefresh = true\n }\n // This can't advance the queue (this action is no longer its head), but\n // if the queue has already drained, it flushes the refresh now.\n runRemainingActions(actionQueue, action, setState)\n return\n }\n\n actionQueue.state = nextState\n\n runRemainingActions(actionQueue, action, setState)\n action.resolve(nextState)\n }\n\n // if the action is a promise, set up a callback to resolve it\n if (isThenable(actionResult)) {\n actionResult.then(handleResult, (err) => {\n runRemainingActions(actionQueue, action, setState)\n action.reject(err)\n })\n } else {\n handleResult(actionResult)\n }\n}\n\nfunction dispatchAction(\n actionLine truncated
{"offset": {"line": 1289, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/app-router-utils.ts"],"sourcesContent":["import { isBot } from '../../shared/lib/router/utils/is-bot'\nimport { addBasePath } from '../add-base-path'\n\nexport function isExternalURL(url: URL) {\n return url.origin !== window.location.origin\n}\n\n/**\n * Given a link href, constructs the URL that should be prefetched. Returns null\n * in cases where prefetching should be disabled, like external URLs, or\n * during development.\n * @param href The href passed to <Link>, router.prefetch(), or similar\n * @returns A URL object to prefetch, or null if prefetching should be disabled\n */\nexport function createPrefetchURL(href: string): URL | null {\n // Don't prefetch for bots as they don't navigate.\n if (isBot(window.navigator.userAgent)) {\n return null\n }\n\n let url: URL\n try {\n url = new URL(addBasePath(href), window.location.href)\n } catch (_) {\n // TODO: Does this need to throw or can we just console.error instead? Does\n // anyone rely on this throwing? (Seems unlikely.)\n throw new Error(\n `Cannot prefetch '${href}' because it cannot be converted to a URL.`\n )\n }\n\n // Don't prefetch during development (improves compilation performance)\n if (process.env.NODE_ENV === 'development') {\n return null\n }\n\n // External urls can't be prefetched in the same way.\n if (isExternalURL(url)) {\n return null\n }\n\n return url\n}\n"],"names":["createPrefetchURL","isExternalURL","url","origin","window","location","href","isBot","navigator","userAgent","URL","addBasePath","_","Error","process","env","NODE_ENV"],"mappings":"AAgCMc,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;;;;;;;;;;;;IAlBfhB,iBAAiB,EAAA;eAAjBA;;IAXAC,aAAa,EAAA;eAAbA;;;uBAHM;6BACM;AAErB,SAASA,cAAcC,GAAQ;IACpC,OAAOA,IAAIC,MAAM,KAAKC,OAAOC,QAAQ,CAACF,MAAM;AAC9C;AASO,SAASH,kBAAkBM,IAAY;IAC5C,kDAAkD;IAClD,IAAIC,CAAAA,GAAAA,OAAAA,KAAK,EAACH,OAAOI,SAAS,CAACC,SAAS,GAAG;QACrC,OAAO;IACT;IAEA,IAAIP;IACJ,IAAI;QACFA,MAAM,IAAIQ,IAAIC,CAAAA,GAAAA,aAAAA,WAAW,EAACL,OAAOF,OAAOC,QAAQ,CAACC,IAAI;IACvD,EAAE,OAAOM,GAAG;QACV,2EAA2E;QAC3E,kDAAkD;QAClD,MAAM,OAAA,cAEL,CAFK,IAAIC,MACR,CAAC,iBAAiB,EAAEP,KAAK,0CAA0C,CAAC,GADhE,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,uEAAuE;IACvE,wCAA4C;QAC1C,OAAO;IACT;;;AAQF","ignoreList":[0]}},
{"offset": {"line": 1352, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/app-router.tsx"],"sourcesContent":["import React, {\n useEffect,\n useMemo,\n startTransition,\n useInsertionEffect,\n useDeferredValue,\n} from 'react'\nimport {\n AppRouterContext,\n LayoutRouterContext,\n GlobalLayoutRouterContext,\n} from '../../shared/lib/app-router-context.shared-runtime'\nimport type { CacheNode } from '../../shared/lib/app-router-types'\nimport { ACTION_RESTORE } from './router-reducer/router-reducer-types'\nimport type {\n AppHistoryState,\n AppRouterState,\n} from './router-reducer/router-reducer-types'\nimport { createHrefFromUrl } from './router-reducer/create-href-from-url'\nimport {\n SearchParamsContext,\n PathnameContext,\n PathParamsContext,\n NavigationPromisesContext,\n type NavigationPromises,\n} from '../../shared/lib/hooks-client-context.shared-runtime'\nimport { dispatchAppRouterAction, useActionQueue } from './use-action-queue'\nimport { setLastCommittedTree } from './router-reducer/reducers/committed-state'\nimport { AppRouterAnnouncer } from './app-router-announcer'\nimport { RedirectBoundary } from './redirect-boundary'\nimport { findHeadInCache } from './router-reducer/reducers/find-head-in-cache'\nimport { unresolvedThenable } from './unresolved-thenable'\nimport { removeBasePath } from '../remove-base-path'\nimport { hasBasePath } from '../has-base-path'\nimport {\n extractSourcePageFromFlightRouterState,\n getSelectedParams,\n} from './router-reducer/compute-changed-path'\nimport { useNavFailureHandler } from './nav-failure-handler'\nimport {\n dispatchTraverseAction,\n publicAppRouterInstance,\n type AppRouterActionQueue,\n type GlobalErrorState,\n} from './app-router-instance'\nimport { getRedirectTypeFromError, getURLFromRedirectError } from './redirect'\nimport { isRedirectError } from './redirect-error'\nimport { pingVisibleLinks } from './links'\nimport RootErrorBoundary from './errors/root-error-boundary'\nimport DefaultGlobalError from './builtin/global-error'\nimport { RootLayoutBoundary } from '../../lib/framework/boundary-components'\nimport type { StaticIndicatorState } from '../dev/hot-reloader/app/hot-reloader-app'\nimport { getAssetTokenQuery } from '../../shared/lib/deployment-id'\n\nconst globalMutable: {\n pendingMpaPath?: string\n} = {}\n\nfunction HistoryUpdater({\n appRouterState,\n}: {\n appRouterState: AppRouterState\n}) {\n useInsertionEffect(() => {\n if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) {\n // clear pending URL as navigation is no longer\n // in flight\n window.next.__pendingUrl = undefined\n }\n\n const { tree, pushRef, canonicalUrl, renderedSearch } = appRouterState\n\n const appHistoryState: AppHistoryState = {\n tree,\n renderedSearch,\n }\n\n // TODO: Use Navigation API if available\n const historyState = {\n ...(pushRef.preserveCustomHistoryState ? window.history.state : {}),\n // Identifier is shortened intentionally.\n // __NA is used to identify if the history entry can be handled by the app-router.\n // __N is used to identify if the history entry can be handled by the old router.\n __NA: true,\n __PRIVATE_NEXTJS_INTERNALS_TREE: appHistoryState,\n }\n if (\n pushRef.pendingPush &&\n // Skip pushing an additional history entry if the canonicalUrl is the same as the current url.\n // This mirrors the browser behavior for normal navigation.\n createHrefFromUrl(new URL(window.location.href)) !== canonicalUrl\n ) {\n // This intentionally mutates React state, pushRef is overwritten to ensure additional push/replace calls do not trigger an additional history entry.\n pushRef.pendingPush = false\n window.history.pushState(historyState, '', canonicalUrl)\n } else {\n window.history.replaceState(historyState, '', canonicalUrl)\n }\n\n setLastCommittedTree(tree)\n }, [appRouterState])\n\n useEffect(() => {\n // The Next-Url and the base tree may affect the result of a prefetch\n // task. Re-prefetch all visible links with the updated values. In most\n // cases, this will not result in any new network requests, only if\n // the prefetch result actually varies on one of these inputs.\n pingVisibleLinks(appRouterState.nextUrl, appRouterState.tree)\n }, [appRouterState.nextUrl, appRouterState.tree])\n\n return null\n}\n\nfunction copyNextJsInternalHistoryState(data: any) {\n if (data == null) data = {}\n const currentState = window.history.state\n const __NA = currentState?.__NA\n if (__NA) {\n data.__NA = __NA\n }\n const __PRIVATE_NEXTJS_INTERNALS_TREE =\n currentState?.__PRIVATE_NEXTJS_INTERNALS_TREE\n if (__PRIVATE_NEXTJS_INTERNALS_TREE) {\n data.__PRIVATE_NEXTJS_INTERNALS_TREE = __PRIVATE_NEXTJS_INTERNALS_TREE\n }\n\n return data\n}\n\nfunction Head({\n headCacheNode,\n}: {\n heLine truncated
{"offset": {"line": 1850, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/builtin/error-styles.tsx"],"sourcesContent":["import React from 'react'\n\nexport const errorStyles = {\n container: {\n fontFamily:\n 'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',\n height: '100vh',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n card: {\n marginTop: '-32px',\n maxWidth: '325px',\n padding: '32px 28px',\n textAlign: 'left' as const,\n },\n icon: {\n marginBottom: '24px',\n },\n title: {\n fontSize: '24px',\n fontWeight: 500,\n letterSpacing: '-0.02em',\n lineHeight: '32px',\n margin: '0 0 12px 0',\n color: 'var(--next-error-title)',\n },\n message: {\n fontSize: '14px',\n fontWeight: 400,\n lineHeight: '21px',\n margin: '0 0 20px 0',\n color: 'var(--next-error-message)',\n },\n form: {\n margin: 0,\n },\n buttonGroup: {\n display: 'flex',\n gap: '8px',\n alignItems: 'center',\n },\n button: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '32px',\n padding: '0 12px',\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '20px',\n borderRadius: '6px',\n cursor: 'pointer',\n color: 'var(--next-error-btn-text)',\n background: 'var(--next-error-btn-bg)',\n border: 'var(--next-error-btn-border)',\n },\n buttonSecondary: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '32px',\n padding: '0 12px',\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '20px',\n borderRadius: '6px',\n cursor: 'pointer',\n color: 'var(--next-error-btn-secondary-text)',\n background: 'var(--next-error-btn-secondary-bg)',\n border: 'var(--next-error-btn-secondary-border)',\n },\n digestFooter: {\n position: 'fixed' as const,\n bottom: '32px',\n left: '0',\n right: '0',\n textAlign: 'center' as const,\n fontFamily:\n 'ui-monospace,SFMono-Regular,\"SF Mono\",Menlo,Consolas,monospace',\n fontSize: '12px',\n lineHeight: '18px',\n fontWeight: 400,\n margin: '0',\n color: 'var(--next-error-digest)',\n },\n} as const\n\nexport const errorThemeCss = `\n:root {\n --next-error-bg: #fff;\n --next-error-text: #171717;\n --next-error-title: #171717;\n --next-error-message: #171717;\n --next-error-digest: #666666;\n --next-error-btn-text: #fff;\n --next-error-btn-bg: #171717;\n --next-error-btn-border: none;\n --next-error-btn-secondary-text: #171717;\n --next-error-btn-secondary-bg: transparent;\n --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --next-error-bg: #0a0a0a;\n --next-error-text: #ededed;\n --next-error-title: #ededed;\n --next-error-message: #ededed;\n --next-error-digest: #a0a0a0;\n --next-error-btn-text: #0a0a0a;\n --next-error-btn-bg: #ededed;\n --next-error-btn-border: none;\n --next-error-btn-secondary-text: #ededed;\n --next-error-btn-secondary-bg: transparent;\n --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);\n }\n}\nbody { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\n`.replace(/\\n\\s*/g, '')\n\nexport function WarningIcon() {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"-0.2 -1.5 32 32\"\n fill=\"none\"\n style={errorStyles.icon}\n >\n <path\n d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\"\n fill=\"var(--next-error-title)\"\n />\n </svg>\n )\n}\n"],"names":["WarningIcon","errorStyles","errorThemeCss","container","fontFamily","height","display","alignItems","justifyContent","card","marginTop","maxWidth","padding","textAlign","icon","marginBottom","title","fontSize","fontWeight","letterSpacing","lineHeight","margin","color","message","form","buttonGroup","gap","button","borderRadius","cursor","background","border","buttonSecondary","digestFooter","position","bottom","left","right","replace","svg","width","viewBox","fill","style","path","d"],"mappings":";;;;;;;;;;;;;;;IAyHgBA,WAAW,EAAA;eAAXA;;IAvHHC,WAAW,EAAA;eAAXA;;IAuFAC,aAAa,EAAA;eAAbA;;;;;gEAzFK;AAEX,MAAMD,cAAc;IACzBE,WAAW;QACTC,YACE;QACFC,QAAQ;QACRC,SAAS;QACTC,YAAY;QACZC,gBAAgB;IAClB;IACAC,MAAM;QACJC,WAAW;QACXC,UAAU;QACVC,SAAS;QALine truncated
{"offset": {"line": 2017, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/builtin/global-error.tsx"],"sourcesContent":["'use client'\n\nimport React from 'react'\nimport { handleISRError } from '../handle-isr-error'\nimport { errorStyles, errorThemeCss, WarningIcon } from './error-styles'\n\nexport type GlobalErrorComponent = React.ComponentType<{\n error: any\n reset: () => void\n retry: () => void\n}>\n\nfunction DefaultGlobalError({ error }: { error: any }) {\n const digest: string | undefined = error?.digest\n const isServerError = !!digest\n\n const message = isServerError\n ? 'A server error occurred. Reload to try again.'\n : 'Reload to try again, or go back.'\n\n handleISRError({ error })\n\n return (\n <html id=\"__next_error__\">\n <head>\n <style dangerouslySetInnerHTML={{ __html: errorThemeCss }} />\n </head>\n <body>\n <div style={errorStyles.container}>\n <div style={errorStyles.card}>\n <WarningIcon />\n <h1 style={errorStyles.title}>This page couldn&#x2019;t load</h1>\n <p style={errorStyles.message}>{message}</p>\n <div style={errorStyles.buttonGroup}>\n <form style={errorStyles.form}>\n <button type=\"submit\" style={errorStyles.button}>\n Reload\n </button>\n </form>\n {!isServerError && (\n <button\n type=\"button\"\n style={errorStyles.buttonSecondary}\n onClick={() => {\n if (window.history.length > 1) {\n window.history.back()\n } else {\n window.location.href = '/'\n }\n }}\n >\n Back\n </button>\n )}\n </div>\n </div>\n </div>\n {digest && <p style={errorStyles.digestFooter}>ERROR {digest}</p>}\n </body>\n </html>\n )\n}\n\n// Exported so that the import signature in the loaders can be identical to user\n// supplied custom global error signatures.\nexport default DefaultGlobalError\n"],"names":["DefaultGlobalError","error","digest","isServerError","message","handleISRError","html","id","head","style","dangerouslySetInnerHTML","__html","errorThemeCss","body","div","errorStyles","container","card","WarningIcon","h1","title","p","buttonGroup","form","button","type","buttonSecondary","onClick","window","history","length","back","location","href","digestFooter"],"mappings":";;;+BAgEA,AADA,2CAC2C,qCADqC;AAEhF,WAAA;;;eAAA;;;;;gEA/DkB;gCACa;6BACyB;AAQxD,SAASA,mBAAmB,EAAEC,KAAK,EAAkB;IACnD,MAAMC,SAA6BD,OAAOC;IAC1C,MAAMC,gBAAgB,CAAC,CAACD;IAExB,MAAME,UAAUD,gBACZ,kDACA;IAEJE,CAAAA,GAAAA,gBAAAA,cAAc,EAAC;QAAEJ;IAAM;IAEvB,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,IAAA,EAACK,QAAAA;QAAKC,IAAG;;0BACP,CAAA,GAAA,YAAA,GAAA,EAACC,QAAAA;0BACC,WAAA,GAAA,CAAA,GAAA,YAAA,GAAA,EAACC,SAAAA;oBAAMC,yBAAyB;wBAAEC,QAAQC,aAAAA,aAAa;oBAAC;;;0BAE1D,CAAA,GAAA,YAAA,IAAA,EAACC,QAAAA;;kCACC,CAAA,GAAA,YAAA,GAAA,EAACC,OAAAA;wBAAIL,OAAOM,aAAAA,WAAW,CAACC,SAAS;kCAC/B,WAAA,GAAA,CAAA,GAAA,YAAA,IAAA,EAACF,OAAAA;4BAAIL,OAAOM,aAAAA,WAAW,CAACE,IAAI;;8CAC1B,CAAA,GAAA,YAAA,GAAA,EAACC,aAAAA,WAAW,EAAA,CAAA;8CACZ,CAAA,GAAA,YAAA,GAAA,EAACC,MAAAA;oCAAGV,OAAOM,aAAAA,WAAW,CAACK,KAAK;8CAAE;;8CAC9B,CAAA,GAAA,YAAA,GAAA,EAACC,KAAAA;oCAAEZ,OAAOM,aAAAA,WAAW,CAACX,OAAO;8CAAGA;;8CAChC,CAAA,GAAA,YAAA,IAAA,EAACU,OAAAA;oCAAIL,OAAOM,aAAAA,WAAW,CAACO,WAAW;;sDACjC,CAAA,GAAA,YAAA,GAAA,EAACC,QAAAA;4CAAKd,OAAOM,aAAAA,WAAW,CAACQ,IAAI;sDAC3B,WAAA,GAAA,CAAA,GAAA,YAAA,GAAA,EAACC,UAAAA;gDAAOC,MAAK;gDAAShB,OAAOM,aAAAA,WAAW,CAACS,MAAM;0DAAE;;;wCAIlD,CAACrB,iBAAAA,WAAAA,GACA,CAAA,GAAA,YAAA,GAAA,EAACqB,UAAAA;4CACCC,MAAK;4CACLhB,OAAOM,aAAAA,WAAW,CAACW,eAAe;4CAClCC,SAAS;gDACP,IAAIC,OAAOC,OAAO,CAACC,MAAM,GAAG,GAAG;oDAC7BF,OAAOC,OAAO,CAACE,IAAI;gDACrB,OAAO;oDACLH,OAAOI,QAAQ,CAACC,IAAI,GAAG;gDACzB;4CACF;sDACD;;;;;;;oBAOR/B,UAAAA,WAAAA,GAAU,CAAA,GAAA,YAAA,IAAA,EAACmB,KAAAA;wBAAEZ,OAAOM,aAAAA,WAAW,CAACmB,YAAY;;4BAAE;4BAAOhC;;;;;;;AAI9D;MAIA,WAAeF","ignoreList":[0]}},
{"offset": {"line": 2117, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/dev-root-http-access-fallback-boundary.tsx"],"sourcesContent":["'use client'\n\nimport React from 'react'\nimport { HTTPAccessFallbackBoundary } from './http-access-fallback/error-boundary'\n\n// TODO: error on using forbidden and unauthorized in root layout\nexport function bailOnRootNotFound() {\n throw new Error('notFound() is not allowed to use in root layout')\n}\n\nfunction NotAllowedRootHTTPFallbackError() {\n bailOnRootNotFound()\n return null\n}\n\nexport function DevRootHTTPAccessFallbackBoundary({\n children,\n}: {\n children: React.ReactNode\n}) {\n return (\n <HTTPAccessFallbackBoundary notFound={<NotAllowedRootHTTPFallbackError />}>\n {children}\n </HTTPAccessFallbackBoundary>\n )\n}\n"],"names":["DevRootHTTPAccessFallbackBoundary","bailOnRootNotFound","Error","NotAllowedRootHTTPFallbackError","children","HTTPAccessFallbackBoundary","notFound"],"mappings":";;;;;;;;;;;;;;IAegBA,iCAAiC,EAAA;eAAjCA;;IATAC,kBAAkB,EAAA;eAAlBA;;;;;gEAJE;+BACyB;AAGpC,SAASA;IACd,MAAM,OAAA,cAA4D,CAA5D,IAAIC,MAAM,oDAAV,qBAAA;eAAA;oBAAA;sBAAA;IAA2D;AACnE;AAEA,SAASC;IACPF;IACA,OAAO;AACT;AAEO,SAASD,kCAAkC,EAChDI,QAAQ,EAGT;IACC,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACC,eAAAA,0BAA0B,EAAA;QAACC,UAAAA,WAAAA,GAAU,CAAA,GAAA,YAAA,GAAA,EAACH,iCAAAA,CAAAA;kBACpCC;;AAGP","ignoreList":[0]}},
{"offset": {"line": 2170, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/error-boundary.tsx"],"sourcesContent":["'use client'\n\nimport React, { startTransition, type JSX } from 'react'\nimport { useUntrackedPathname } from './navigation-untracked'\nimport { isNextRouterError } from './is-next-router-error'\nimport { handleHardNavError } from './nav-failure-handler'\nimport { handleISRError } from './handle-isr-error'\nimport { isBot } from '../../shared/lib/router/utils/is-bot'\nimport {\n AppRouterContext,\n type AppRouterInstance,\n} from '../../shared/lib/app-router-context.shared-runtime'\n\nconst isBotUserAgent =\n typeof window !== 'undefined' && isBot(window.navigator.userAgent)\n\nexport type ErrorInfo = {\n error: unknown\n reset: () => void\n retry: () => void\n}\n\nexport type ErrorComponent = React.ComponentType<ErrorInfo>\n\nexport interface ErrorBoundaryProps {\n children?: React.ReactNode\n errorComponent: ErrorComponent | undefined\n errorStyles?: React.ReactNode | undefined\n errorScripts?: React.ReactNode | undefined\n}\n\ninterface ErrorBoundaryHandlerProps extends ErrorBoundaryProps {\n pathname: string | null\n errorComponent: ErrorComponent\n}\n\ninterface ErrorBoundaryHandlerState {\n error: null | { thrownValue: unknown }\n previousPathname: string | null\n}\n\nexport class ErrorBoundaryHandler extends React.Component<\n ErrorBoundaryHandlerProps,\n ErrorBoundaryHandlerState\n> {\n static contextType = AppRouterContext\n declare context: AppRouterInstance | null\n\n constructor(props: ErrorBoundaryHandlerProps) {\n super(props)\n this.state = {\n error: null,\n previousPathname: this.props.pathname,\n }\n }\n\n static getDerivedStateFromError(\n thrownValue: unknown\n ): Partial<ErrorBoundaryHandlerState> {\n if (isNextRouterError(thrownValue)) {\n // Re-throw if an expected internal Next.js router error occurs\n // this means it should be handled by a different boundary (such as a NotFound boundary in a parent segment)\n throw thrownValue\n }\n\n return { error: { thrownValue } }\n }\n\n static getDerivedStateFromProps(\n props: ErrorBoundaryHandlerProps,\n state: ErrorBoundaryHandlerState\n ): ErrorBoundaryHandlerState | null {\n const { error } = state\n\n // if we encounter an error while\n // a navigation is pending we shouldn't render\n // the error boundary and instead should fallback\n // to a hard navigation to attempt recovering\n if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) {\n if (error && handleHardNavError(error.thrownValue)) {\n // clear error so we don't render anything\n return {\n error: null,\n previousPathname: props.pathname,\n }\n }\n }\n\n /**\n * Handles reset of the error boundary when a navigation happens.\n * Ensures the error boundary does not stay enabled when navigating to a new page.\n * Approach of setState in render is safe as it checks the previous pathname and then overrides\n * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\n if (props.pathname !== state.previousPathname && state.error) {\n return {\n error: null,\n previousPathname: props.pathname,\n }\n }\n return {\n error: state.error,\n previousPathname: props.pathname,\n }\n }\n\n reset = () => {\n this.setState({ error: null })\n }\n\n retry = () => {\n startTransition(() => {\n this.context?.refresh()\n this.reset()\n })\n }\n\n // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.\n render(): React.ReactNode {\n //When it's bot request, segment level error boundary will keep rendering the children,\n // the final error will be caught by the root error boundary and determine wether need to apply graceful degrade.\n if (this.state.error && !isBotUserAgent) {\n const thrownValue = this.state.error.thrownValue\n handleISRError({ error: thrownValue })\n\n return (\n <>\n {this.props.errorStyles}\n {this.props.errorScripts}\n <this.props.errorComponent\n // TODO(NAR-804): Docs say this is an Error object, but we don't guarantee that\n error={thrownValue}\n reset={this.reset}\n retry={this.retry}\n />\n </>\n )\n }\n\n return this.props.children\n }\n}\n\n/**\n * Handles errors through `getDerivedStateFromError`.\n * Renders the provided error component and provides a way to `reset` the error boundary state.\n */\n\n/**\n * Renders error boundary with the provided \"errorComponent\" property as the fallback.\n * If no \"errorComponent\" property is provided it renders the children without an error boundary.Line truncated
{"offset": {"line": 2315, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/errors/graceful-degrade-boundary.tsx"],"sourcesContent":["'use client'\n\nimport { Component, createRef, type ReactNode } from 'react'\n\ninterface ErrorBoundaryProps {\n children: ReactNode\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean\n}\n\nfunction getDomNodeAttributes(node: HTMLElement): Record<string, string> {\n const result: Record<string, string> = {}\n for (let i = 0; i < node.attributes.length; i++) {\n const attr = node.attributes[i]\n result[attr.name] = attr.value\n }\n return result\n}\n\nexport class GracefulDegradeBoundary extends Component<\n ErrorBoundaryProps,\n ErrorBoundaryState\n> {\n private rootHtml: string\n private htmlAttributes: Record<string, string>\n private htmlRef: React.RefObject<HTMLHtmlElement | null>\n\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { hasError: false }\n this.rootHtml = ''\n this.htmlAttributes = {}\n this.htmlRef = createRef<HTMLHtmlElement>()\n }\n\n static getDerivedStateFromError(_: unknown): ErrorBoundaryState {\n return { hasError: true }\n }\n\n componentDidMount() {\n const htmlNode = this.htmlRef.current\n if (this.state.hasError && htmlNode) {\n // Reapply the cached HTML attributes to the root element\n Object.entries(this.htmlAttributes).forEach(([key, value]) => {\n htmlNode.setAttribute(key, value)\n })\n }\n }\n\n render() {\n const { hasError } = this.state\n // Cache the root HTML content on the first render\n if (typeof window !== 'undefined' && !this.rootHtml) {\n this.rootHtml = document.documentElement.innerHTML\n this.htmlAttributes = getDomNodeAttributes(document.documentElement)\n }\n\n if (hasError) {\n // Render the current HTML content without hydration\n return (\n <html\n ref={this.htmlRef}\n suppressHydrationWarning\n dangerouslySetInnerHTML={{\n __html: this.rootHtml,\n }}\n />\n )\n }\n\n return this.props.children\n }\n}\n\nexport default GracefulDegradeBoundary\n"],"names":["GracefulDegradeBoundary","getDomNodeAttributes","node","result","i","attributes","length","attr","name","value","Component","constructor","props","state","hasError","rootHtml","htmlAttributes","htmlRef","createRef","getDerivedStateFromError","_","componentDidMount","htmlNode","current","Object","entries","forEach","key","setAttribute","render","window","document","documentElement","innerHTML","html","ref","suppressHydrationWarning","dangerouslySetInnerHTML","__html","children"],"mappings":";;;;;;;;;;;;;;IAqBaA,uBAAuB,EAAA;eAAvBA;;IAuDb,OAAsC,EAAA;eAAtC;;;;uBA1EqD;AAUrD,SAASC,qBAAqBC,IAAiB;IAC7C,MAAMC,SAAiC,CAAC;IACxC,IAAK,IAAIC,IAAI,GAAGA,IAAIF,KAAKG,UAAU,CAACC,MAAM,EAAEF,IAAK;QAC/C,MAAMG,OAAOL,KAAKG,UAAU,CAACD,EAAE;QAC/BD,MAAM,CAACI,KAAKC,IAAI,CAAC,GAAGD,KAAKE,KAAK;IAChC;IACA,OAAON;AACT;AAEO,MAAMH,gCAAgCU,OAAAA,SAAS;IAQpDC,YAAYC,KAAyB,CAAE;QACrC,KAAK,CAACA;QACN,IAAI,CAACC,KAAK,GAAG;YAAEC,UAAU;QAAM;QAC/B,IAAI,CAACC,QAAQ,GAAG;QAChB,IAAI,CAACC,cAAc,GAAG,CAAC;QACvB,IAAI,CAACC,OAAO,GAAA,WAAA,GAAGC,CAAAA,GAAAA,OAAAA,SAAS;IAC1B;IAEA,OAAOC,yBAAyBC,CAAU,EAAsB;QAC9D,OAAO;YAAEN,UAAU;QAAK;IAC1B;IAEAO,oBAAoB;QAClB,MAAMC,WAAW,IAAI,CAACL,OAAO,CAACM,OAAO;QACrC,IAAI,IAAI,CAACV,KAAK,CAACC,QAAQ,IAAIQ,UAAU;YACnC,yDAAyD;YACzDE,OAAOC,OAAO,CAAC,IAAI,CAACT,cAAc,EAAEU,OAAO,CAAC,CAAC,CAACC,KAAKlB,MAAM;gBACvDa,SAASM,YAAY,CAACD,KAAKlB;YAC7B;QACF;IACF;IAEAoB,SAAS;QACP,MAAM,EAAEf,QAAQ,EAAE,GAAG,IAAI,CAACD,KAAK;QAC/B,kDAAkD;QAClD,IAAI,OAAOiB,WAAW,eAAe,CAAC,IAAI,CAACf,QAAQ,EAAE;YACnD,IAAI,CAACA,QAAQ,GAAGgB,SAASC,eAAe,CAACC,SAAS;YAClD,IAAI,CAACjB,cAAc,GAAGf,qBAAqB8B,SAASC,eAAe;QACrE;QAEA,IAAIlB,UAAU;YACZ,oDAAoD;YACpD,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACoB,QAAAA;gBACCC,KAAK,IAAI,CAAClB,OAAO;gBACjBmB,wBAAwB,EAAA;gBACxBC,yBAAyB;oBACvBC,QAAQ,IAAI,CAACvB,QAAQ;gBACvB;;QAGN;QAEA,OAAO,IAAI,CAACH,KAAK,CAAC2B,QAAQ;IAC5B;AACF;MAEA,WAAevC","ignoreList":[0]}},
{"offset": {"line": 2402, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/errors/root-error-boundary.tsx"],"sourcesContent":["'use client'\n\nimport React, { type JSX } from 'react'\nimport GracefulDegradeBoundary from './graceful-degrade-boundary'\nimport { ErrorBoundary, type ErrorBoundaryProps } from '../error-boundary'\nimport { isBot } from '../../../shared/lib/router/utils/is-bot'\n\nconst isBotUserAgent =\n typeof window !== 'undefined' && isBot(window.navigator.userAgent)\n\nexport default function RootErrorBoundary({\n children,\n errorComponent,\n errorStyles,\n errorScripts,\n}: ErrorBoundaryProps & { children: React.ReactNode }): JSX.Element {\n if (isBotUserAgent) {\n // Preserve existing DOM/HTML for bots to avoid replacing content with an error UI\n // and to keep the original SSR output intact.\n return <GracefulDegradeBoundary>{children}</GracefulDegradeBoundary>\n }\n\n return (\n <ErrorBoundary\n errorComponent={errorComponent}\n errorStyles={errorStyles}\n errorScripts={errorScripts}\n >\n {children}\n </ErrorBoundary>\n )\n}\n"],"names":["RootErrorBoundary","isBotUserAgent","window","isBot","navigator","userAgent","children","errorComponent","errorStyles","errorScripts","GracefulDegradeBoundary","ErrorBoundary"],"mappings":";;;+BAUA,WAAA;;;eAAwBA;;;;;gEARQ;kFACI;+BACmB;uBACjC;AAEtB,MAAMC,iBACJ,OAAOC,WAAW,eAAeC,CAAAA,GAAAA,OAAAA,KAAK,EAACD,OAAOE,SAAS,CAACC,SAAS;AAEpD,SAASL,kBAAkB,EACxCM,QAAQ,EACRC,cAAc,EACdC,WAAW,EACXC,YAAY,EACuC;IACnD,IAAIR,gBAAgB;QAClB,kFAAkF;QAClF,8CAA8C;QAC9C,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACS,yBAAAA,OAAuB,EAAA;sBAAEJ;;IACnC;IAEA,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACK,eAAAA,aAAa,EAAA;QACZJ,gBAAgBA;QAChBC,aAAaA;QACbC,cAAcA;kBAEbH;;AAGP","ignoreList":[0]}},
{"offset": {"line": 2444, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/forbidden.ts"],"sourcesContent":["import {\n HTTP_ERROR_FALLBACK_ERROR_CODE,\n type HTTPAccessFallbackError,\n} from './http-access-fallback/http-access-fallback'\n\n// TODO: Add `forbidden` docs\n/**\n * @experimental\n * This function allows you to render the [forbidden.js file](https://nextjs.org/docs/app/api-reference/file-conventions/forbidden)\n * within a route segment as well as inject a tag.\n *\n * `forbidden()` can be used in\n * [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),\n * [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and\n * [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).\n *\n * Read more: [Next.js Docs: `forbidden`](https://nextjs.org/docs/app/api-reference/functions/forbidden)\n */\n\nconst DIGEST = `${HTTP_ERROR_FALLBACK_ERROR_CODE};403`\n\nexport function forbidden(): never {\n if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {\n throw new Error(\n `\\`forbidden()\\` is experimental and only allowed to be enabled when \\`experimental.authInterrupts\\` is enabled.`\n )\n }\n\n const error = new Error(DIGEST) as HTTPAccessFallbackError\n ;(error as HTTPAccessFallbackError).digest = DIGEST\n throw error\n}\n"],"names":["forbidden","DIGEST","HTTP_ERROR_FALLBACK_ERROR_CODE","process","env","__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS","Error","error","digest"],"mappings":"AAsBOG,QAAQC,GAAG,CAACC,mCAAmC;;;;;+BADtCL,aAAAA;;;eAAAA;;;oCAlBT;AAEP,6BAA6B;AAC7B;;;;;;;;;;;CAWC,GAED,MAAMC,SAAS,GAAGC,oBAAAA,8BAA8B,CAAC,IAAI,CAAC;AAE/C,SAASF;IACd,IAAI,oCAAkD;QACpD,MAAM,OAAA,cAEL,CAFK,IAAIM,MACR,CAAC,+GAA+G,CAAC,GAD7G,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,MAAMC,QAAQ,OAAA,cAAiB,CAAjB,IAAID,MAAML,SAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAgB;IAC5BM,MAAkCC,MAAM,GAAGP;IAC7C,MAAMM;AACR","ignoreList":[0]}},
{"offset": {"line": 2496, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/handle-isr-error.tsx"],"sourcesContent":["import { workAsyncStorage } from './server-async-storage'\n\n// if we are revalidating we want to re-throw the error so the\n// function crashes so we can maintain our previous cache\n// instead of caching the error page\nexport function handleISRError({ error }: { error: any }) {\n if (workAsyncStorage) {\n const store = workAsyncStorage.getStore()\n if (store?.isStaticGeneration) {\n if (error) {\n console.error(error)\n }\n throw error\n }\n }\n}\n"],"names":["handleISRError","error","workAsyncStorage","store","getStore","isStaticGeneration","console"],"mappings":";;;+BAKgBA,kBAAAA;;;eAAAA;;;oCALiB;AAK1B,SAASA,eAAe,EAAEC,KAAK,EAAkB;IACtD,IAAIC,oBAAAA,gBAAgB,EAAE;QACpB,MAAMC,QAAQD,oBAAAA,gBAAgB,CAACE,QAAQ;QACvC,IAAID,OAAOE,oBAAoB;YAC7B,IAAIJ,OAAO;gBACTK,QAAQL,KAAK,CAACA;YAChB;YACA,MAAMA;QACR;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 2528, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/http-access-fallback/error-boundary.tsx"],"sourcesContent":["'use client'\n\n/**\n * HTTPAccessFallbackBoundary is a boundary that catches errors and renders a\n * fallback component for HTTP errors.\n *\n * It receives the status code, and determine if it should render fallbacks for few HTTP 4xx errors.\n *\n * e.g. 404\n * 404 represents not found, and the fallback component pair contains the component and its styles.\n *\n */\n\nimport React, { useContext } from 'react'\nimport { useUntrackedPathname } from '../navigation-untracked'\nimport {\n HTTPAccessErrorStatus,\n getAccessFallbackHTTPStatus,\n getAccessFallbackErrorTypeByStatus,\n isHTTPAccessFallbackError,\n} from './http-access-fallback'\nimport { MissingSlotContext } from '../../../shared/lib/app-router-context.shared-runtime'\n\ninterface HTTPAccessFallbackBoundaryProps {\n notFound?: React.ReactNode\n forbidden?: React.ReactNode\n unauthorized?: React.ReactNode\n // TODO: Make this required once `React.createElement` understands that positional args go into children\n children?: React.ReactNode\n missingSlots?: Set<string>\n}\n\ninterface HTTPAccessFallbackErrorBoundaryProps\n extends HTTPAccessFallbackBoundaryProps {\n pathname: string | null\n missingSlots?: Set<string>\n}\n\ninterface HTTPAccessBoundaryState {\n triggeredStatus: number | undefined\n previousPathname: string | null\n}\n\nclass HTTPAccessFallbackErrorBoundary extends React.Component<\n HTTPAccessFallbackErrorBoundaryProps,\n HTTPAccessBoundaryState\n> {\n constructor(props: HTTPAccessFallbackErrorBoundaryProps) {\n super(props)\n this.state = {\n triggeredStatus: undefined,\n previousPathname: props.pathname,\n }\n }\n\n componentDidCatch(): void {\n if (\n process.env.NODE_ENV === 'development' &&\n this.props.missingSlots &&\n this.props.missingSlots.size > 0 &&\n // A missing children slot is the typical not-found case, so no need to warn\n !this.props.missingSlots.has('children')\n ) {\n const { warnOnce } =\n require('../../../shared/lib/utils/warn-once') as typeof import('../../../shared/lib/utils/warn-once')\n let warningMessage =\n 'No default component was found for a parallel route rendered on this page. Falling back to nearest NotFound boundary.\\n' +\n 'Learn more: https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#defaultjs\\n\\n'\n\n const formattedSlots = Array.from(this.props.missingSlots)\n .sort((a, b) => a.localeCompare(b))\n .map((slot) => `@${slot}`)\n .join(', ')\n\n warningMessage += 'Missing slots: ' + formattedSlots\n\n warnOnce(warningMessage)\n }\n }\n\n static getDerivedStateFromError(error: unknown) {\n if (isHTTPAccessFallbackError(error)) {\n const httpStatus = getAccessFallbackHTTPStatus(error)\n return {\n triggeredStatus: httpStatus,\n }\n }\n // Re-throw if error is not for 404\n throw error\n }\n\n static getDerivedStateFromProps(\n props: HTTPAccessFallbackErrorBoundaryProps,\n state: HTTPAccessBoundaryState\n ): HTTPAccessBoundaryState | null {\n /**\n * Handles reset of the error boundary when a navigation happens.\n * Ensures the error boundary does not stay enabled when navigating to a new page.\n * Approach of setState in render is safe as it checks the previous pathname and then overrides\n * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\n if (props.pathname !== state.previousPathname && state.triggeredStatus) {\n return {\n triggeredStatus: undefined,\n previousPathname: props.pathname,\n }\n }\n return {\n triggeredStatus: state.triggeredStatus,\n previousPathname: props.pathname,\n }\n }\n\n render() {\n const { notFound, forbidden, unauthorized, children } = this.props\n const { triggeredStatus } = this.state\n const errorComponents = {\n [HTTPAccessErrorStatus.NOT_FOUND]: notFound,\n [HTTPAccessErrorStatus.FORBIDDEN]: forbidden,\n [HTTPAccessErrorStatus.UNAUTHORIZED]: unauthorized,\n }\n\n if (triggeredStatus) {\n const isNotFound =\n triggeredStatus === HTTPAccessErrorStatus.NOT_FOUND && notFound\n const isForbidden =\n triggeredStatus === HTTPAccessErrorStatus.FORBIDDEN && forbidden\n const isUnauthorized =\n triggeredStatus === HTTPAccessErrorStatus.UNAUTHORIZED && unauthorized\n\n // If there's no matched boundary in this layer, keep throwing the error by rendering the children\n if (!(isNotFound || isForbidden || isUnauthorized)) {\n return children\n }\n\n return (\n <>\n <meta name=\"robots\" content=\"noindex\" />\n Line truncated
{"offset": {"line": 2657, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/http-access-fallback/http-access-fallback.ts"],"sourcesContent":["export const HTTPAccessErrorStatus = {\n NOT_FOUND: 404,\n FORBIDDEN: 403,\n UNAUTHORIZED: 401,\n}\n\nconst ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus))\n\nexport const HTTP_ERROR_FALLBACK_ERROR_CODE = 'NEXT_HTTP_ERROR_FALLBACK'\n\nexport type HTTPAccessFallbackError = Error & {\n digest: `${typeof HTTP_ERROR_FALLBACK_ERROR_CODE};${string}`\n}\n\n/**\n * Checks an error to determine if it's an error generated by\n * the HTTP navigation APIs `notFound()`, `forbidden()` or `unauthorized()`.\n *\n * @param error the error that may reference a HTTP access error\n * @returns true if the error is a HTTP access error\n */\nexport function isHTTPAccessFallbackError(\n error: unknown\n): error is HTTPAccessFallbackError {\n if (\n typeof error !== 'object' ||\n error === null ||\n !('digest' in error) ||\n typeof error.digest !== 'string'\n ) {\n return false\n }\n const [prefix, httpStatus] = error.digest.split(';')\n\n return (\n prefix === HTTP_ERROR_FALLBACK_ERROR_CODE &&\n ALLOWED_CODES.has(Number(httpStatus))\n )\n}\n\nexport function getAccessFallbackHTTPStatus(\n error: HTTPAccessFallbackError\n): number {\n const httpStatus = error.digest.split(';')[1]\n return Number(httpStatus)\n}\n\nexport function getAccessFallbackErrorTypeByStatus(\n status: number\n): 'not-found' | 'forbidden' | 'unauthorized' | undefined {\n switch (status) {\n case 401:\n return 'unauthorized'\n case 403:\n return 'forbidden'\n case 404:\n return 'not-found'\n default:\n return\n }\n}\n"],"names":["HTTPAccessErrorStatus","HTTP_ERROR_FALLBACK_ERROR_CODE","getAccessFallbackErrorTypeByStatus","getAccessFallbackHTTPStatus","isHTTPAccessFallbackError","NOT_FOUND","FORBIDDEN","UNAUTHORIZED","ALLOWED_CODES","Set","Object","values","error","digest","prefix","httpStatus","split","has","Number","status"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,qBAAqB,EAAA;eAArBA;;IAQAC,8BAA8B,EAAA;eAA9BA;;IAuCGC,kCAAkC,EAAA;eAAlCA;;IAPAC,2BAA2B,EAAA;eAA3BA;;IAnBAC,yBAAyB,EAAA;eAAzBA;;;AArBT,MAAMJ,wBAAwB;IACnCK,WAAW;IACXC,WAAW;IACXC,cAAc;AAChB;AAEA,MAAMC,gBAAgB,IAAIC,IAAIC,OAAOC,MAAM,CAACX;AAErC,MAAMC,iCAAiC;AAavC,SAASG,0BACdQ,KAAc;IAEd,IACE,OAAOA,UAAU,YACjBA,UAAU,QACV,CAAE,CAAA,YAAYA,KAAI,KAClB,OAAOA,MAAMC,MAAM,KAAK,UACxB;QACA,OAAO;IACT;IACA,MAAM,CAACC,QAAQC,WAAW,GAAGH,MAAMC,MAAM,CAACG,KAAK,CAAC;IAEhD,OACEF,WAAWb,kCACXO,cAAcS,GAAG,CAACC,OAAOH;AAE7B;AAEO,SAASZ,4BACdS,KAA8B;IAE9B,MAAMG,aAAaH,MAAMC,MAAM,CAACG,KAAK,CAAC,IAAI,CAAC,EAAE;IAC7C,OAAOE,OAAOH;AAChB;AAEO,SAASb,mCACdiB,MAAc;IAEd,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT;YACE;IACJ;AACF","ignoreList":[0]}},
{"offset": {"line": 2731, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/is-next-router-error.ts"],"sourcesContent":["import {\n isHTTPAccessFallbackError,\n type HTTPAccessFallbackError,\n} from './http-access-fallback/http-access-fallback'\nimport { isRedirectError, type RedirectError } from './redirect-error'\n\n/**\n * Returns true if the error is a navigation signal error. These errors are\n * thrown by user code to perform navigation operations and interrupt the React\n * render.\n */\nexport function isNextRouterError(\n error: unknown\n): error is RedirectError | HTTPAccessFallbackError {\n return isRedirectError(error) || isHTTPAccessFallbackError(error)\n}\n"],"names":["isNextRouterError","error","isRedirectError","isHTTPAccessFallbackError"],"mappings":";;;+BAWgBA,qBAAAA;;;eAAAA;;;oCART;+BAC6C;AAO7C,SAASA,kBACdC,KAAc;IAEd,OAAOC,CAAAA,GAAAA,eAAAA,eAAe,EAACD,UAAUE,CAAAA,GAAAA,oBAAAA,yBAAyB,EAACF;AAC7D","ignoreList":[0]}},
{"offset": {"line": 2756, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/links.ts"],"sourcesContent":["import type { FlightRouterState } from '../../shared/lib/app-router-types'\nimport type { AppRouterInstance } from '../../shared/lib/app-router-context.shared-runtime'\nimport {\n FetchStrategy,\n type PrefetchTaskFetchStrategy,\n PrefetchPriority,\n} from './segment-cache/types'\nimport { createCacheKey } from './segment-cache/cache-key'\nimport {\n type PrefetchTask,\n schedulePrefetchTask as scheduleSegmentPrefetchTask,\n cancelPrefetchTask,\n reschedulePrefetchTask,\n isPrefetchTaskDirty,\n} from './segment-cache/scheduler'\nimport { startTransition } from 'react'\n\ntype LinkElement = HTMLAnchorElement | SVGAElement\n\ntype Element = LinkElement | HTMLFormElement\n\n// Properties that are shared between Link and Form instances. We use the same\n// shape for both to prevent a polymorphic de-opt in the VM.\ntype LinkOrFormInstanceShared = {\n router: AppRouterInstance\n fetchStrategy: PrefetchTaskFetchStrategy\n\n isVisible: boolean\n\n // The most recently initiated prefetch task. It may or may not have\n // already completed. The same prefetch task object can be reused across\n // multiple prefetches of the same link.\n prefetchTask: PrefetchTask | null\n}\n\nexport type FormInstance = LinkOrFormInstanceShared & {\n prefetchHref: string\n setOptimisticLinkStatus: null\n}\n\ntype PrefetchableLinkInstance = LinkOrFormInstanceShared & {\n // In dev, the Owner Stack captured at the time this Link was rendered, for\n // configurations where a warning might later fire.\n // `undefined` means we opted out of capturing the stack.\n // If you issue a warning, handle the `undefined` case separately\n // so it's clear in the logs when a warning is missing its source location.\n // A warning with an undefined ownerStack is considered a bug though so make\n // sure reaching the log site is a subset of codepaths that lead to capturing\n // the stack\n ownerStack: string | null | undefined\n prefetchHref: string\n setOptimisticLinkStatus: (status: { pending: boolean }) => void\n}\n\ntype NonPrefetchableLinkInstance = LinkOrFormInstanceShared & {\n ownerStack: string | null | undefined\n prefetchHref: null\n setOptimisticLinkStatus: (status: { pending: boolean }) => void\n}\n\ntype PrefetchableInstance = PrefetchableLinkInstance | FormInstance\n\nexport type LinkInstance =\n | PrefetchableLinkInstance\n | NonPrefetchableLinkInstance\n\n// Tracks the most recently navigated link instance. When null, indicates\n// the current navigation was not initiated by a link click.\nlet linkForMostRecentNavigation: LinkInstance | null = null\n\n// Status object indicating link is pending\nexport const PENDING_LINK_STATUS = { pending: true }\n\n// Status object indicating link is idle\nexport const IDLE_LINK_STATUS = { pending: false }\n\n// Updates the loading state when navigating between links\n// - Resets the previous link's loading state\n// - Sets the new link's loading state\n// - Updates tracking of current navigation\nexport function setLinkForCurrentNavigation(link: LinkInstance | null) {\n startTransition(() => {\n linkForMostRecentNavigation?.setOptimisticLinkStatus(IDLE_LINK_STATUS)\n link?.setOptimisticLinkStatus(PENDING_LINK_STATUS)\n linkForMostRecentNavigation = link\n })\n}\n\n// Unmounts the current link instance from navigation tracking\nexport function unmountLinkForCurrentNavigation(link: LinkInstance) {\n if (linkForMostRecentNavigation === link) {\n linkForMostRecentNavigation = null\n }\n}\n\n/**\n * Returns the link instance that initiated the most recent navigation.\n * Returns null if the navigation was not initiated by a link click.\n *\n * Used by the Instant Navigation Testing API in dev mode to match the\n * fetch strategy of the link during cache-miss navigations.\n */\nexport function getLinkForCurrentNavigation(): LinkInstance | null {\n return linkForMostRecentNavigation\n}\n\n// Use a WeakMap to associate a Link instance with its DOM element. This is\n// used by the IntersectionObserver to track the link's visibility.\nconst prefetchable:\n | WeakMap<Element, PrefetchableInstance>\n | Map<Element, PrefetchableInstance> =\n typeof WeakMap === 'function' ? new WeakMap() : new Map()\n\n// A Set of the currently visible links. We re-prefetch visible links after a\n// cache invalidation, or when the current URL changes. It's a separate data\n// structure from the WeakMap above because only the visible links need to\n// be enumerated.\nconst prefetchableAndVisible: Set<PrefetchableInstance> = new Set()\n\n// A single IntersectionObserver instance shared by all <Link> components.\nconst observer: IntersectionObserver | null =\n typeof IntersectionObserver === 'function'\n ? new IntersectionObserver(handleIntersect, {\n rootMargin: '200px',\n })\n : nLine truncated
{"offset": {"line": 3062, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/match-segments.ts"],"sourcesContent":["import type { Segment } from '../../shared/lib/app-router-types'\n\nexport const matchSegment = (\n existingSegment: Segment,\n segment: Segment\n): boolean => {\n // segment is either Array or string\n if (typeof existingSegment === 'string') {\n if (typeof segment === 'string') {\n // Common case: segment is just a string\n return existingSegment === segment\n }\n return false\n }\n\n if (typeof segment === 'string') {\n return false\n }\n return existingSegment[0] === segment[0] && existingSegment[1] === segment[1]\n}\n"],"names":["matchSegment","existingSegment","segment"],"mappings":";;;+BAEaA,gBAAAA;;;eAAAA;;;AAAN,MAAMA,eAAe,CAC1BC,iBACAC;IAEA,oCAAoC;IACpC,IAAI,OAAOD,oBAAoB,UAAU;QACvC,IAAI,OAAOC,YAAY,UAAU;YAC/B,wCAAwC;YACxC,OAAOD,oBAAoBC;QAC7B;QACA,OAAO;IACT;IAEA,IAAI,OAAOA,YAAY,UAAU;QAC/B,OAAO;IACT;IACA,OAAOD,eAAe,CAAC,EAAE,KAAKC,OAAO,CAAC,EAAE,IAAID,eAAe,CAAC,EAAE,KAAKC,OAAO,CAAC,EAAE;AAC/E","ignoreList":[0]}},
{"offset": {"line": 3096, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/nav-failure-handler.ts"],"sourcesContent":["import { useEffect } from 'react'\nimport { createHrefFromUrl } from './router-reducer/create-href-from-url'\n\nexport function handleHardNavError(error: unknown): boolean {\n if (\n typeof window !== 'undefined' &&\n window.next.__pendingUrl &&\n createHrefFromUrl(new URL(window.location.href)) !==\n createHrefFromUrl(window.next.__pendingUrl)\n ) {\n console.error(\n `Error occurred during navigation, falling back to hard navigation`,\n error\n )\n window.location.href = window.next.__pendingUrl.toString()\n return true\n }\n return false\n}\n\nexport function useNavFailureHandler() {\n if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) {\n // this if is only for DCE of the feature flag not conditional\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n const uncaughtExceptionHandler = (\n evt: ErrorEvent | PromiseRejectionEvent\n ) => {\n const error = 'reason' in evt ? evt.reason : evt.error\n // if we have an unhandled exception/rejection during\n // a navigation we fall back to a hard navigation to\n // attempt recovering to a good state\n handleHardNavError(error)\n }\n window.addEventListener('unhandledrejection', uncaughtExceptionHandler)\n window.addEventListener('error', uncaughtExceptionHandler)\n return () => {\n window.removeEventListener('error', uncaughtExceptionHandler)\n window.removeEventListener(\n 'unhandledrejection',\n uncaughtExceptionHandler\n )\n }\n }, [])\n }\n}\n"],"names":["handleHardNavError","useNavFailureHandler","error","window","next","__pendingUrl","createHrefFromUrl","URL","location","href","console","toString","process","env","__NEXT_APP_NAV_FAIL_HANDLING","useEffect","uncaughtExceptionHandler","evt","reason","addEventListener","removeEventListener"],"mappings":"AAqBMY,QAAQC,GAAG,CAACC,4BAA4B,EAAE;;;;;;;;;;;;;;;;IAlBhCd,kBAAkB,EAAA;eAAlBA;;IAiBAC,oBAAoB,EAAA;eAApBA;;;uBApBU;mCACQ;AAE3B,SAASD,mBAAmBE,KAAc;IAC/C,IACE,OAAOC,WAAW,eAClBA,OAAOC,IAAI,CAACC,YAAY,IACxBC,CAAAA,GAAAA,mBAAAA,iBAAiB,EAAC,IAAIC,IAAIJ,OAAOK,QAAQ,CAACC,IAAI,OAC5CH,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACH,OAAOC,IAAI,CAACC,YAAY,GAC5C;QACAK,QAAQR,KAAK,CACX,CAAC,iEAAiE,CAAC,EACnEA;QAEFC,OAAOK,QAAQ,CAACC,IAAI,GAAGN,OAAOC,IAAI,CAACC,YAAY,CAACM,QAAQ;QACxD,OAAO;IACT;IACA,OAAO;AACT;AAEO,SAASV;IACd;;AAwBF","ignoreList":[0]}},
{"offset": {"line": 3144, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/navigation-devtools.ts"],"sourcesContent":["import type { FlightRouterState } from '../../shared/lib/app-router-types'\nimport type { Params } from '../../server/request/params'\nimport {\n createDevToolsInstrumentedPromise,\n ReadonlyURLSearchParams,\n type InstrumentedPromise,\n type NavigationPromises,\n} from '../../shared/lib/hooks-client-context.shared-runtime'\nimport {\n computeSelectedLayoutSegment,\n getSelectedLayoutSegmentPath,\n} from '../../shared/lib/segment'\n\n/**\n * Promises are cached by tree to ensure stability across suspense retries.\n */\ntype LayoutSegmentPromisesCache = {\n selectedLayoutSegmentPromises: Map<string, InstrumentedPromise<string | null>>\n selectedLayoutSegmentsPromises: Map<string, InstrumentedPromise<string[]>>\n}\n\nconst layoutSegmentPromisesCache = new WeakMap<\n FlightRouterState,\n LayoutSegmentPromisesCache\n>()\n\n/**\n * Creates instrumented promises for layout segment hooks at a given tree level.\n * This is dev-only code for React Suspense DevTools instrumentation.\n */\nfunction createLayoutSegmentPromises(\n tree: FlightRouterState\n): LayoutSegmentPromisesCache | null {\n if (process.env.NODE_ENV === 'production') {\n return null\n }\n\n // Check if we already have cached promises for this tree\n const cached = layoutSegmentPromisesCache.get(tree)\n if (cached) {\n return cached\n }\n\n // Create new promises and cache them\n const segmentPromises = new Map<string, InstrumentedPromise<string | null>>()\n const segmentsPromises = new Map<string, InstrumentedPromise<string[]>>()\n\n const parallelRoutes = tree[1]\n for (const parallelRouteKey of Object.keys(parallelRoutes)) {\n const segments = getSelectedLayoutSegmentPath(tree, parallelRouteKey)\n\n // Use the shared logic to compute the segment value\n const segment = computeSelectedLayoutSegment(segments, parallelRouteKey)\n\n segmentPromises.set(\n parallelRouteKey,\n createDevToolsInstrumentedPromise('useSelectedLayoutSegment', segment)\n )\n segmentsPromises.set(\n parallelRouteKey,\n createDevToolsInstrumentedPromise('useSelectedLayoutSegments', segments)\n )\n }\n\n const result: LayoutSegmentPromisesCache = {\n selectedLayoutSegmentPromises: segmentPromises,\n selectedLayoutSegmentsPromises: segmentsPromises,\n }\n\n // Cache the result for future renders\n layoutSegmentPromisesCache.set(tree, result)\n\n return result\n}\n\nconst rootNavigationPromisesCache = new WeakMap<\n FlightRouterState,\n Map<string, NavigationPromises>\n>()\n\n/**\n * Creates instrumented navigation promises for the root app-router.\n */\nexport function createRootNavigationPromises(\n tree: FlightRouterState,\n pathname: string,\n searchParams: URLSearchParams,\n pathParams: Params\n): NavigationPromises | null {\n if (process.env.NODE_ENV === 'production') {\n return null\n }\n\n // Create stable cache keys from the values\n const searchParamsString = searchParams.toString()\n const pathParamsString = JSON.stringify(pathParams)\n const cacheKey = `${pathname}:${searchParamsString}:${pathParamsString}`\n\n // Get or create the cache for this tree\n let treeCache = rootNavigationPromisesCache.get(tree)\n if (!treeCache) {\n treeCache = new Map<string, NavigationPromises>()\n rootNavigationPromisesCache.set(tree, treeCache)\n }\n\n // Check if we have cached promises for this combination\n const cached = treeCache.get(cacheKey)\n if (cached) {\n return cached\n }\n\n const readonlySearchParams = new ReadonlyURLSearchParams(searchParams)\n\n const layoutSegmentPromises = createLayoutSegmentPromises(tree)\n\n const promises: NavigationPromises = {\n pathname: createDevToolsInstrumentedPromise('usePathname', pathname),\n searchParams: createDevToolsInstrumentedPromise(\n 'useSearchParams',\n readonlySearchParams\n ),\n params: createDevToolsInstrumentedPromise('useParams', pathParams),\n ...layoutSegmentPromises,\n }\n\n treeCache.set(cacheKey, promises)\n\n return promises\n}\n\nconst nestedLayoutPromisesCache = new WeakMap<\n FlightRouterState,\n Map<NavigationPromises | null, NavigationPromises>\n>()\n\n/**\n * Creates merged navigation promises for nested layouts.\n * Merges parent promises with layout-specific segment promises.\n */\nexport function createNestedLayoutNavigationPromises(\n tree: FlightRouterState,\n parentNavPromises: NavigationPromises | null\n): NavigationPromises | null {\n if (process.env.NODE_ENV === 'production') {\n return null\n }\n\n const parallelRoutes = tree[1]\n const parallelRouteKeys = Object.keys(parallelRoutes)\n\n // Only create promises if there are parallel routes at this level\n if (parallelRouteKeys.length === 0) {\n return null\n }\n\n // Get or create the cache for this Line truncated
{"offset": {"line": 3271, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/navigation-dynamic-rendering.browser.ts"],"sourcesContent":["// Browser variant of `./navigation-dynamic-rendering`. The dynamic-rendering\n// hooks only run on the server; callers use optional calls, so these are\n// `undefined` in the browser.\nexport const useDynamicRouteParams = undefined\nexport const useDynamicSearchParams = undefined\n"],"names":["useDynamicRouteParams","useDynamicSearchParams","undefined"],"mappings":"AAAA,6EAA6E;AAC7E,yEAAyE;AACzE,8BAA8B;;;;;;;;;;;;;;;IACjBA,qBAAqB,EAAA;eAArBA;;IACAC,sBAAsB,EAAA;eAAtBA;;;AADN,MAAMD,wBAAwBE;AAC9B,MAAMD,yBAAyBC","ignoreList":[0]}},
{"offset": {"line": 3308, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/navigation-untracked.ts"],"sourcesContent":["import { useContext } from 'react'\nimport { PathnameContext } from '../../shared/lib/hooks-client-context.shared-runtime'\nimport { workUnitAsyncStorage } from './server-async-storage'\n\n/**\n * This checks to see if the current render has any unknown route parameters that\n * would cause the pathname to be dynamic. It's used to trigger a different\n * render path in the error boundary.\n *\n * @returns true if there are any unknown route parameters, false otherwise\n */\nfunction hasFallbackRouteParams(): boolean {\n // The AsyncLocalStorage module is kept out of the client bundle via the\n // `./server-async-storage` browser alias; the guard ensures the stub is never\n // dereferenced in the browser.\n if (typeof window === 'undefined') {\n const workUnitStore = workUnitAsyncStorage.getStore()\n if (!workUnitStore) return false\n\n switch (workUnitStore.type) {\n case 'prerender':\n case 'prerender-client':\n case 'prerender-ppr':\n case 'validation-client':\n const fallbackParams = workUnitStore.fallbackRouteParams\n return fallbackParams ? fallbackParams.size > 0 : false\n case 'prerender-legacy':\n case 'request':\n case 'prerender-runtime':\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 return false\n }\n\n return false\n}\n\n/**\n * This returns a `null` value if there are any unknown route parameters, and\n * otherwise returns the pathname from the context. This is an alternative to\n * `usePathname` that is used in the error boundary to avoid rendering the\n * error boundary when there are unknown route parameters. This doesn't throw\n * when accessed with unknown route parameters.\n *\n * @returns\n *\n * @internal\n */\nexport function useUntrackedPathname(): string | null {\n // If there are any unknown route parameters we would typically throw\n // an error, but this internal method allows us to return a null value instead\n // for components that do not propagate the pathname to the static shell (like\n // the error boundary).\n if (hasFallbackRouteParams()) {\n return null\n }\n\n // This shouldn't cause any issues related to conditional rendering because\n // the environment will be consistent for the render.\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useContext(PathnameContext)\n}\n"],"names":["useUntrackedPathname","hasFallbackRouteParams","window","workUnitStore","workUnitAsyncStorage","getStore","type","fallbackParams","fallbackRouteParams","size","useContext","PathnameContext"],"mappings":";;;+BAuDgBA,wBAAAA;;;eAAAA;;;uBAvDW;iDACK;oCACK;AAErC;;;;;;CAMC,GACD,SAASC;IACP,wEAAwE;IACxE,8EAA8E;IAC9E,+BAA+B;IAC/B,IAAI,OAAOC,WAAW,aAAa;QACjC,MAAMC,gBAAgBC,oBAAAA,oBAAoB,CAACC,QAAQ;QACnD,IAAI,CAACF,eAAe,OAAO;QAE3B,OAAQA,cAAcG,IAAI;YACxB,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;gBACH,MAAMC,iBAAiBJ,cAAcK,mBAAmB;gBACxD,OAAOD,iBAAiBA,eAAeE,IAAI,GAAG,IAAI;YACpD,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;YACL,KAAK;gBACH;YACF;gBACEN;QACJ;QAEA,OAAO;IACT;IAEA,OAAO;AACT;AAaO,SAASH;IACd,qEAAqE;IACrE,8EAA8E;IAC9E,8EAA8E;IAC9E,uBAAuB;IACvB,IAAIC,0BAA0B;QAC5B,OAAO;IACT;IAEA,2EAA2E;IAC3E,qDAAqD;IACrD,sDAAsD;IACtD,OAAOS,CAAAA,GAAAA,OAAAA,UAAU,EAACC,iCAAAA,eAAe;AACnC","ignoreList":[0]}},
{"offset": {"line": 3379, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/navigation.ts"],"sourcesContent":["import type { Params } from '../../server/request/params'\n\nimport React, { useContext, useMemo, use } from 'react'\nimport {\n AppRouterContext,\n LayoutRouterContext,\n type AppRouterInstance,\n} from '../../shared/lib/app-router-context.shared-runtime'\nimport {\n SearchParamsContext,\n PathnameContext,\n PathParamsContext,\n NavigationPromisesContext,\n ReadonlyURLSearchParams,\n} from '../../shared/lib/hooks-client-context.shared-runtime'\nimport {\n computeSelectedLayoutSegment,\n getSelectedLayoutSegmentPath,\n} from '../../shared/lib/segment'\n\nimport {\n useDynamicRouteParams,\n useDynamicSearchParams,\n} from './navigation-dynamic-rendering'\n\nconst {\n instrumentParamsForClientValidation,\n instrumentSearchParamsForClientValidation,\n expectCompleteParamsInClientValidation,\n} = process.env.__NEXT_CACHE_COMPONENTS\n ? (require('./instant-samples') as typeof import('./instant-samples'))\n : {}\n\n/**\n * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook\n * that lets you *read* the current URL's search parameters.\n *\n * Learn more about [`URLSearchParams` on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)\n *\n * @example\n * ```ts\n * \"use client\"\n * import { useSearchParams } from 'next/navigation'\n *\n * export default function Page() {\n * const searchParams = useSearchParams()\n * searchParams.get('foo') // returns 'bar' when ?foo=bar\n * // ...\n * }\n * ```\n *\n * Read more: [Next.js Docs: `useSearchParams`](https://nextjs.org/docs/app/api-reference/functions/use-search-params)\n */\n// Client components API\nexport function useSearchParams(): ReadonlyURLSearchParams {\n useDynamicSearchParams?.('useSearchParams()')\n\n const searchParams = useContext(SearchParamsContext)\n\n // In the case where this is `null`, the compat types added in\n // `next-env.d.ts` will add a new overload that changes the return type to\n // include `null`.\n const readonlySearchParams = useMemo((): ReadonlyURLSearchParams => {\n if (!searchParams) {\n // When the router is not ready in pages, we won't have the search params\n // available.\n return null!\n }\n\n return new ReadonlyURLSearchParams(searchParams)\n }, [searchParams])\n\n // During build-time instant validation, wrap with an proxy\n // so that accessing undeclared search params throws an error.\n if (\n typeof window === 'undefined' &&\n process.env.__NEXT_CACHE_COMPONENTS &&\n readonlySearchParams\n ) {\n return instrumentSearchParamsForClientValidation!(readonlySearchParams)\n }\n\n // Instrument with Suspense DevTools (dev-only)\n if (process.env.NODE_ENV !== 'production' && 'use' in React) {\n const navigationPromises = use(NavigationPromisesContext)\n if (navigationPromises) {\n return use(navigationPromises.searchParams)\n }\n }\n\n return readonlySearchParams\n}\n\n/**\n * A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook\n * that lets you read the current URL's pathname.\n *\n * @example\n * ```ts\n * \"use client\"\n * import { usePathname } from 'next/navigation'\n *\n * export default function Page() {\n * const pathname = usePathname() // returns \"/dashboard\" on /dashboard?foo=bar\n * // ...\n * }\n * ```\n *\n * Read more: [Next.js Docs: `usePathname`](https://nextjs.org/docs/app/api-reference/functions/use-pathname)\n */\n// Client components API\nexport function usePathname(): string {\n useDynamicRouteParams?.('usePathname()')\n\n // In the case where this is `null`, the compat types added in `next-env.d.ts`\n // will add a new overload that changes the return type to include `null`.\n const pathname = useContext(PathnameContext) as string\n\n // During build-time instant validation, error if fallback params exist\n // because usePathname() can't return a sensible value without all params.\n if (\n typeof window === 'undefined' &&\n process.env.__NEXT_CACHE_COMPONENTS &&\n pathname\n ) {\n expectCompleteParamsInClientValidation!('usePathname()')\n return pathname\n }\n\n // Instrument with Suspense DevTools (dev-only)\n if (process.env.NODE_ENV !== 'production' && 'use' in React) {\n const navigationPromises = use(NavigationPromisesContext)\n if (navigationPromises) {\n return use(navigationPromises.pathname)\n }\n }\n\n return pathname\n}\n\n// Client components API\nexport {\n ServerInsertedHTMLContext,\n useServerInsertedHTML,\n} from '../../shared/lib/server-inserted-html.shared-runtime'\n\n/**\n *\n * This hook allows you to programmatically change routes inside [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components).\n *Line truncated
{"offset": {"line": 3623, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/navigation.react-server.ts"],"sourcesContent":["import { ReadonlyURLSearchParams } from './readonly-url-search-params'\n\nexport function unstable_isUnrecognizedActionError(): boolean {\n throw new Error(\n '`unstable_isUnrecognizedActionError` can only be used on the client.'\n )\n}\n\nexport { redirect, permanentRedirect } from './redirect'\nexport { notFound } from './not-found'\nexport { forbidden } from './forbidden'\nexport { unauthorized } from './unauthorized'\nexport { unstable_rethrow } from './unstable-rethrow'\nexport { ReadonlyURLSearchParams }\n\nexport const RedirectType = {\n push: 'push',\n replace: 'replace',\n} as const\n"],"names":["ReadonlyURLSearchParams","RedirectType","forbidden","notFound","permanentRedirect","redirect","unauthorized","unstable_isUnrecognizedActionError","unstable_rethrow","Error","push","replace"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAaSA,uBAAuB,EAAA;eAAvBA,yBAAAA,uBAAuB;;IAEnBC,YAAY,EAAA;eAAZA;;IALJC,SAAS,EAAA;eAATA,WAAAA,SAAS;;IADTC,QAAQ,EAAA;eAARA,UAAAA,QAAQ;;IADEC,iBAAiB,EAAA;eAAjBA,UAAAA,iBAAiB;;IAA3BC,QAAQ,EAAA;eAARA,UAAAA,QAAQ;;IAGRC,YAAY,EAAA;eAAZA,cAAAA,YAAY;;IATLC,kCAAkC,EAAA;eAAlCA;;IAUPC,gBAAgB,EAAA;eAAhBA,iBAAAA,gBAAgB;;;yCAZe;0BAQI;0BACnB;2BACC;8BACG;iCACI;AAV1B,SAASD;IACd,MAAM,OAAA,cAEL,CAFK,IAAIE,MACR,yEADI,qBAAA;eAAA;oBAAA;sBAAA;IAEN;AACF;AASO,MAAMR,eAAe;IAC1BS,MAAM;IACNC,SAAS;AACX","ignoreList":[0]}},
{"offset": {"line": 3700, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/not-found.ts"],"sourcesContent":["import {\n HTTP_ERROR_FALLBACK_ERROR_CODE,\n type HTTPAccessFallbackError,\n} from './http-access-fallback/http-access-fallback'\n\n/**\n * This function allows you to render the [not-found.js file](https://nextjs.org/docs/app/api-reference/file-conventions/not-found)\n * within a route segment as well as inject a tag.\n *\n * `notFound()` can be used in\n * [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),\n * [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and\n * [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).\n *\n * - In a Server Component, this will insert a `<meta name=\"robots\" content=\"noindex\" />` meta tag and set the status code to 404.\n * - In a Route Handler or Server Action, it will serve a 404 to the caller.\n *\n * Read more: [Next.js Docs: `notFound`](https://nextjs.org/docs/app/api-reference/functions/not-found)\n */\n\nconst DIGEST = `${HTTP_ERROR_FALLBACK_ERROR_CODE};404`\n\nexport function notFound(): never {\n const error = new Error(DIGEST) as HTTPAccessFallbackError\n ;(error as HTTPAccessFallbackError).digest = DIGEST\n\n throw error\n}\n"],"names":["notFound","DIGEST","HTTP_ERROR_FALLBACK_ERROR_CODE","error","Error","digest"],"mappings":";;;+BAsBgBA,YAAAA;;;eAAAA;;;oCAnBT;AAEP;;;;;;;;;;;;;CAaC,GAED,MAAMC,SAAS,GAAGC,oBAAAA,8BAA8B,CAAC,IAAI,CAAC;AAE/C,SAASF;IACd,MAAMG,QAAQ,OAAA,cAAiB,CAAjB,IAAIC,MAAMH,SAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAgB;IAC5BE,MAAkCE,MAAM,GAAGJ;IAE7C,MAAME;AACR","ignoreList":[0]}},
{"offset": {"line": 3744, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/readonly-url-search-params.ts"],"sourcesContent":["/**\n * ReadonlyURLSearchParams implementation shared between client and server.\n * This file is intentionally not marked as 'use client' or 'use server'\n * so it can be imported by both environments.\n */\n\n/** @internal */\nclass ReadonlyURLSearchParamsError extends Error {\n constructor() {\n super(\n 'Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams'\n )\n }\n}\n\n/**\n * A read-only version of URLSearchParams that throws errors when mutation methods are called.\n * This ensures that the URLSearchParams returned by useSearchParams() cannot be mutated.\n */\nexport class ReadonlyURLSearchParams extends URLSearchParams {\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n append() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n delete() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n set() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n sort() {\n throw new ReadonlyURLSearchParamsError()\n }\n}\n"],"names":["ReadonlyURLSearchParams","ReadonlyURLSearchParamsError","Error","constructor","URLSearchParams","append","delete","set","sort"],"mappings":"AAAA;;;;CAIC,GAED,cAAc;;;+BAaDA,2BAAAA;;;eAAAA;;;AAZb,MAAMC,qCAAqCC;IACzCC,aAAc;QACZ,KAAK,CACH;QADF,OAAA,cAEC,CAFD,IAEC,EAFD,qBAAA;mBAAA;wBAAA;0BAAA;QAEA;IACF;AACF;AAMO,MAAMH,gCAAgCI;IAC3C,wKAAwK,GACxKC,SAAS;QACP,MAAM,IAAIJ;IACZ;IACA,wKAAwK,GACxKK,SAAS;QACP,MAAM,IAAIL;IACZ;IACA,wKAAwK,GACxKM,MAAM;QACJ,MAAM,IAAIN;IACZ;IACA,wKAAwK,GACxKO,OAAO;QACL,MAAM,IAAIP;IACZ;AACF","ignoreList":[0]}},
{"offset": {"line": 3792, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect-boundary.tsx"],"sourcesContent":["'use client'\nimport React, { useEffect } from 'react'\nimport type { AppRouterInstance } from '../../shared/lib/app-router-context.shared-runtime'\nimport { useRouter } from './navigation'\nimport { getRedirectTypeFromError, getURLFromRedirectError } from './redirect'\nimport { type RedirectType, isRedirectError } from './redirect-error'\n\ninterface RedirectBoundaryProps {\n router: AppRouterInstance\n children: React.ReactNode\n}\n\nfunction HandleRedirect({\n redirect,\n reset,\n redirectType,\n}: {\n redirect: string\n redirectType: RedirectType\n reset: () => void\n}) {\n const router = useRouter()\n\n useEffect(() => {\n React.startTransition(() => {\n if (redirectType === 'push') {\n router.push(redirect, {})\n } else {\n router.replace(redirect, {})\n }\n reset()\n })\n }, [redirect, redirectType, reset, router])\n\n return null\n}\n\nexport class RedirectErrorBoundary extends React.Component<\n RedirectBoundaryProps,\n { redirect: string | null; redirectType: RedirectType | null }\n> {\n constructor(props: RedirectBoundaryProps) {\n super(props)\n this.state = { redirect: null, redirectType: null }\n }\n\n static getDerivedStateFromError(error: unknown) {\n if (isRedirectError(error)) {\n const url = getURLFromRedirectError(error)\n const redirectType = getRedirectTypeFromError(error)\n if ('handled' in error) {\n // The redirect was already handled. We'll still catch the redirect error\n // so that we can remount the subtree, but we don't actually need to trigger the\n // router.push.\n return { redirect: null, redirectType: null }\n }\n\n return { redirect: url, redirectType }\n }\n // Re-throw if error is not for redirect\n throw error\n }\n\n // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.\n render(): React.ReactNode {\n const { redirect, redirectType } = this.state\n if (redirect !== null && redirectType !== null) {\n return (\n <HandleRedirect\n redirect={redirect}\n redirectType={redirectType}\n reset={() => this.setState({ redirect: null })}\n />\n )\n }\n\n return this.props.children\n }\n}\n\nexport function RedirectBoundary({ children }: { children: React.ReactNode }) {\n const router = useRouter()\n return (\n <RedirectErrorBoundary router={router}>{children}</RedirectErrorBoundary>\n )\n}\n"],"names":["RedirectBoundary","RedirectErrorBoundary","HandleRedirect","redirect","reset","redirectType","router","useRouter","useEffect","React","startTransition","push","replace","Component","constructor","props","state","getDerivedStateFromError","error","isRedirectError","url","getURLFromRedirectError","getRedirectTypeFromError","render","setState","children"],"mappings":";;;;;;;;;;;;;;IAgFgBA,gBAAgB,EAAA;eAAhBA;;IA3CHC,qBAAqB,EAAA;eAArBA;;;;;iEApCoB;4BAEP;0BACwC;+BACf;AAOnD,SAASC,eAAe,EACtBC,QAAQ,EACRC,KAAK,EACLC,YAAY,EAKb;IACC,MAAMC,SAASC,CAAAA,GAAAA,YAAAA,SAAS;IAExBC,CAAAA,GAAAA,OAAAA,SAAS,EAAC;QACRC,OAAAA,OAAK,CAACC,eAAe,CAAC;YACpB,IAAIL,iBAAiB,QAAQ;gBAC3BC,OAAOK,IAAI,CAACR,UAAU,CAAC;YACzB,OAAO;gBACLG,OAAOM,OAAO,CAACT,UAAU,CAAC;YAC5B;YACAC;QACF;IACF,GAAG;QAACD;QAAUE;QAAcD;QAAOE;KAAO;IAE1C,OAAO;AACT;AAEO,MAAML,8BAA8BQ,OAAAA,OAAK,CAACI,SAAS;IAIxDC,YAAYC,KAA4B,CAAE;QACxC,KAAK,CAACA;QACN,IAAI,CAACC,KAAK,GAAG;YAAEb,UAAU;YAAME,cAAc;QAAK;IACpD;IAEA,OAAOY,yBAAyBC,KAAc,EAAE;QAC9C,IAAIC,CAAAA,GAAAA,eAAAA,eAAe,EAACD,QAAQ;YAC1B,MAAME,MAAMC,CAAAA,GAAAA,UAAAA,uBAAuB,EAACH;YACpC,MAAMb,eAAeiB,CAAAA,GAAAA,UAAAA,wBAAwB,EAACJ;YAC9C,IAAI,aAAaA,OAAO;gBACtB,yEAAyE;gBACzE,gFAAgF;gBAChF,eAAe;gBACf,OAAO;oBAAEf,UAAU;oBAAME,cAAc;gBAAK;YAC9C;YAEA,OAAO;gBAAEF,UAAUiB;gBAAKf;YAAa;QACvC;QACA,wCAAwC;QACxC,MAAMa;IACR;IAEA,yIAAyI;IACzIK,SAA0B;QACxB,MAAM,EAAEpB,QAAQ,EAAEE,YAAY,EAAE,GAAG,IAAI,CAACW,KAAK;QAC7C,IAAIb,aAAa,QAAQE,iBAAiB,MAAM;YAC9C,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACH,gBAAAA;gBACCC,UAAUA;gBACVE,cAAcA;gBACdD,OAAO,IAAM,IAAI,CAACoB,QAAQ,CAAC;wBAAErB,UAAU;oBAAK;;QAGlD;QAEA,OAAO,IAAI,CAACY,KAAK,CAACU,QAAQ;IAC5B;AACF;AAEO,SAASzB,iBAAiB,EAAEyB,QAAQ,EAAiC;IAC1E,MAAMnB,SAASC,CAAAA,GAAAA,YAAAA,SAAS;IACxB,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACN,uBAAAA;QAAsBK,QAAQA;kBAASmB;;AAE5C","ignoreList":[0]}},
{"offset": {"line": 3900, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect-error.ts"],"sourcesContent":["import { RedirectStatusCode } from './redirect-status-code'\n\nexport const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT'\n\nexport type RedirectType = 'push' | 'replace'\n\nexport type RedirectError = Error & {\n digest: `${typeof REDIRECT_ERROR_CODE};${RedirectType};${string};${RedirectStatusCode};`\n}\n\n/**\n * Checks an error to determine if it's an error generated by the\n * `redirect(url)` helper.\n *\n * @param error the error that may reference a redirect error\n * @returns true if the error is a redirect error\n */\nexport function isRedirectError(error: unknown): error is RedirectError {\n if (\n typeof error !== 'object' ||\n error === null ||\n !('digest' in error) ||\n typeof error.digest !== 'string'\n ) {\n return false\n }\n\n const digest = error.digest.split(';')\n const [errorCode, type] = digest\n const destination = digest.slice(2, -2).join(';')\n const status = digest.at(-2)\n\n const statusCode = Number(status)\n\n return (\n errorCode === REDIRECT_ERROR_CODE &&\n (type === 'replace' || type === 'push') &&\n typeof destination === 'string' &&\n !isNaN(statusCode) &&\n statusCode in RedirectStatusCode\n )\n}\n"],"names":["REDIRECT_ERROR_CODE","isRedirectError","error","digest","split","errorCode","type","destination","slice","join","status","at","statusCode","Number","isNaN","RedirectStatusCode"],"mappings":";;;;;;;;;;;;;;IAEaA,mBAAmB,EAAA;eAAnBA;;IAeGC,eAAe,EAAA;eAAfA;;;oCAjBmB;AAE5B,MAAMD,sBAAsB;AAe5B,SAASC,gBAAgBC,KAAc;IAC5C,IACE,OAAOA,UAAU,YACjBA,UAAU,QACV,CAAE,CAAA,YAAYA,KAAI,KAClB,OAAOA,MAAMC,MAAM,KAAK,UACxB;QACA,OAAO;IACT;IAEA,MAAMA,SAASD,MAAMC,MAAM,CAACC,KAAK,CAAC;IAClC,MAAM,CAACC,WAAWC,KAAK,GAAGH;IAC1B,MAAMI,cAAcJ,OAAOK,KAAK,CAAC,GAAG,CAAC,GAAGC,IAAI,CAAC;IAC7C,MAAMC,SAASP,OAAOQ,EAAE,CAAC,CAAC;IAE1B,MAAMC,aAAaC,OAAOH;IAE1B,OACEL,cAAcL,uBACbM,CAAAA,SAAS,aAAaA,SAAS,MAAK,KACrC,OAAOC,gBAAgB,YACvB,CAACO,MAAMF,eACPA,cAAcG,oBAAAA,kBAAkB;AAEpC","ignoreList":[0]}},
{"offset": {"line": 3945, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect-status-code.ts"],"sourcesContent":["export enum RedirectStatusCode {\n SeeOther = 303,\n TemporaryRedirect = 307,\n PermanentRedirect = 308,\n}\n"],"names":["RedirectStatusCode"],"mappings":";;;+BAAYA,sBAAAA;;;eAAAA;;;AAAL,IAAKA,qBAAAA,WAAAA,GAAAA,SAAAA,kBAAAA;;;;WAAAA","ignoreList":[0]}},
{"offset": {"line": 3971, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect.ts"],"sourcesContent":["import { RedirectStatusCode } from './redirect-status-code'\nimport {\n type RedirectType,\n type RedirectError,\n isRedirectError,\n REDIRECT_ERROR_CODE,\n} from './redirect-error'\nimport { actionAsyncStorage } from './server-async-storage'\n\nexport function getRedirectError(\n url: string,\n type: RedirectType,\n statusCode: RedirectStatusCode = RedirectStatusCode.TemporaryRedirect\n): RedirectError {\n const error = new Error(REDIRECT_ERROR_CODE) as RedirectError\n error.digest = `${REDIRECT_ERROR_CODE};${type};${url};${statusCode};`\n return error\n}\n\n/**\n * This function allows you to redirect the user to another URL. It can be used in\n * [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),\n * [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and\n * [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).\n *\n * - In a Server Component, this will insert a meta tag to redirect the user to the target page.\n * - In a Route Handler, it will serve a 307 to the caller.\n * - In a Server Action, it will perform a client-side navigation when JavaScript is available or serve a 303 for a progressive enhancement form submission.\n * - In a Server Action, type defaults to 'push' and 'replace' elsewhere.\n *\n * Read more: [Next.js Docs: `redirect`](https://nextjs.org/docs/app/api-reference/functions/redirect)\n */\nexport function redirect(\n /** The URL to redirect to */\n url: string,\n type?: RedirectType\n): never {\n type ??= actionAsyncStorage?.getStore()?.isAction ? 'push' : 'replace'\n\n throw getRedirectError(url, type, RedirectStatusCode.TemporaryRedirect)\n}\n\n/**\n * This function allows you to redirect the user to another URL. It can be used in\n * [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),\n * [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and\n * [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).\n *\n * - In a Server Component, this will insert a meta tag to redirect the user to the target page.\n * - In a Route Handler, it will serve a 308 to the caller.\n * - In a Server Action, it will perform a client-side navigation when JavaScript is available or serve a 303 for a progressive enhancement form submission.\n *\n * Read more: [Next.js Docs: `redirect`](https://nextjs.org/docs/app/api-reference/functions/redirect)\n */\nexport function permanentRedirect(\n /** The URL to redirect to */\n url: string,\n type: RedirectType = 'replace'\n): never {\n throw getRedirectError(url, type, RedirectStatusCode.PermanentRedirect)\n}\n\n/**\n * Returns the encoded URL from the error if it's a RedirectError, null\n * otherwise. Note that this does not validate the URL returned.\n *\n * @param error the error that may be a redirect error\n * @return the url if the error was a redirect error\n */\nexport function getURLFromRedirectError(error: RedirectError): string\nexport function getURLFromRedirectError(error: unknown): string | null {\n if (!isRedirectError(error)) return null\n\n // Slices off the beginning of the digest that contains the code and the\n // separating ';'.\n return error.digest.split(';').slice(2, -2).join(';')\n}\n\nexport function getRedirectTypeFromError(error: RedirectError): RedirectType {\n if (!isRedirectError(error)) {\n throw new Error('Not a redirect error')\n }\n\n return error.digest.split(';', 2)[1] as RedirectType\n}\n\nexport function getRedirectStatusCodeFromError(error: RedirectError): number {\n if (!isRedirectError(error)) {\n throw new Error('Not a redirect error')\n }\n\n return Number(error.digest.split(';').at(-2))\n}\n"],"names":["getRedirectError","getRedirectStatusCodeFromError","getRedirectTypeFromError","getURLFromRedirectError","permanentRedirect","redirect","url","type","statusCode","RedirectStatusCode","TemporaryRedirect","error","Error","REDIRECT_ERROR_CODE","digest","actionAsyncStorage","getStore","isAction","PermanentRedirect","isRedirectError","split","slice","join","Number","at"],"mappings":";;;;;;;;;;;;;;;;;;IASgBA,gBAAgB,EAAA;eAAhBA;;IA6EAC,8BAA8B,EAAA;eAA9BA;;IARAC,wBAAwB,EAAA;eAAxBA;;IARAC,uBAAuB,EAAA;eAAvBA;;IAhBAC,iBAAiB,EAAA;eAAjBA;;IAtBAC,QAAQ,EAAA;eAARA;;;oCAhCmB;+BAM5B;oCAC4B;AAE5B,SAASL,iBACdM,GAAW,EACXC,IAAkB,EAClBC,aAAiCC,oBAAAA,kBAAkB,CAACC,iBAAiB;IAErE,MAAMC,QAAQ,OAAA,cAA8B,CAA9B,IAAIC,MAAMC,eAAAA,mBAAmB,GAA7B,qBAAA;eAAA;oBAAA;sBAAA;IAA6B;IAC3CF,MAAMG,MAAM,GAAG,GAAGD,eAAAA,mBAAmB,CAAC,CAAC,EAAEN,KAAK,CAAC,EAAED,IAAI,CAAC,EAAEE,WAAW,CAAC,CAAC;IACrE,OAAOG;AACT;AAeO,SAASN,SACd,2BAA2B,GAC3BC,Line truncated
{"offset": {"line": 4064, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/compute-changed-path.ts"],"sourcesContent":["import type {\n FlightRouterState,\n Segment,\n} from '../../../shared/lib/app-router-types'\nimport { INTERCEPTION_ROUTE_MARKERS } from '../../../shared/lib/router/utils/interception-routes'\nimport type { Params } from '../../../server/request/params'\nimport {\n isGroupSegment,\n DEFAULT_SEGMENT_KEY,\n PAGE_SEGMENT_KEY,\n} from '../../../shared/lib/segment'\nimport { matchSegment } from '../match-segments'\n\nconst removeLeadingSlash = (segment: string): string => {\n return segment[0] === '/' ? segment.slice(1) : segment\n}\n\nconst segmentToPathname = (segment: Segment): string => {\n if (typeof segment === 'string') {\n // 'children' is not a valid path -- it's technically a parallel route that corresponds with the current segment's page\n // if we don't skip it, then the computed pathname might be something like `/children` which doesn't make sense.\n if (segment === 'children') return ''\n\n return segment\n }\n\n return segment[1]\n}\n\nexport const segmentToSourcePagePathname = (segment: Segment): string => {\n if (typeof segment === 'string') {\n if (segment === 'children') return ''\n if (segment.startsWith(PAGE_SEGMENT_KEY)) return 'page'\n return segment\n }\n\n const [paramName, , dynamicParamType] = segment\n\n switch (dynamicParamType) {\n case 'c':\n return `[...${paramName}]`\n case 'ci(..)(..)':\n return `(..)(..)[...${paramName}]`\n case 'ci(.)':\n return `(.)[...${paramName}]`\n case 'ci(..)':\n return `(..)[...${paramName}]`\n case 'ci(...)':\n return `(...)[...${paramName}]`\n case 'oc':\n return `[[...${paramName}]]`\n case 'd':\n return `[${paramName}]`\n case 'di(..)(..)':\n return `(..)(..)[${paramName}]`\n case 'di(.)':\n return `(.)[${paramName}]`\n case 'di(..)':\n return `(..)[${paramName}]`\n case 'di(...)':\n return `(...)[${paramName}]`\n default:\n dynamicParamType satisfies never\n return `[${paramName}]`\n }\n}\n\nfunction normalizeSegments(segments: string[]): string {\n return (\n segments.reduce((acc, segment) => {\n segment = removeLeadingSlash(segment)\n if (segment === '' || isGroupSegment(segment)) {\n return acc\n }\n\n return `${acc}/${segment}`\n }, '') || '/'\n )\n}\n\nexport function extractPathFromFlightRouterState(\n flightRouterState: FlightRouterState\n): string | undefined {\n const segment = Array.isArray(flightRouterState[0])\n ? flightRouterState[0][1]\n : flightRouterState[0]\n\n if (\n segment === DEFAULT_SEGMENT_KEY ||\n INTERCEPTION_ROUTE_MARKERS.some((m) => segment.startsWith(m))\n )\n return undefined\n\n if (segment.startsWith(PAGE_SEGMENT_KEY)) return ''\n\n const segments = [segmentToPathname(segment)]\n const parallelRoutes = flightRouterState[1] ?? {}\n\n const childrenPath = parallelRoutes.children\n ? extractPathFromFlightRouterState(parallelRoutes.children)\n : undefined\n\n if (childrenPath !== undefined) {\n segments.push(childrenPath)\n } else {\n for (const [key, value] of Object.entries(parallelRoutes)) {\n if (key === 'children') continue\n\n const childPath = extractPathFromFlightRouterState(value)\n\n if (childPath !== undefined) {\n segments.push(childPath)\n }\n }\n }\n\n return normalizeSegments(segments)\n}\n\nfunction extractSourcePageSegmentsFromFlightRouterState(\n flightRouterState: FlightRouterState\n): string[] | undefined {\n const segment = segmentToSourcePagePathname(flightRouterState[0])\n\n if (segment === DEFAULT_SEGMENT_KEY) {\n return undefined\n }\n\n if (segment === 'page') {\n return [segment]\n }\n\n const parallelRoutes = flightRouterState[1] ?? {}\n\n const childrenPath = parallelRoutes.children\n ? extractSourcePageSegmentsFromFlightRouterState(parallelRoutes.children)\n : undefined\n\n if (childrenPath !== undefined) {\n return segment === ''\n ? childrenPath\n : [removeLeadingSlash(segment), ...childrenPath]\n }\n\n for (const [key, value] of Object.entries(parallelRoutes)) {\n if (key === 'children') continue\n\n const childPath = extractSourcePageSegmentsFromFlightRouterState(value)\n\n if (childPath !== undefined) {\n return segment === ''\n ? childPath\n : [removeLeadingSlash(segment), ...childPath]\n }\n }\n\n return undefined\n}\n\nexport function extractSourcePageFromFlightRouterState(\n flightRouterState: FlightRouterState\n): string | undefined {\n const sourcePageSegments =\n extractSourcePageSegmentsFromFlightRouterState(flightRouterState)\n\n return sourcePageSegments ? `/${sourcePageSegments.join('/')}` : undefined\n}\n\nfunction computeChangedPathImpl(\n treeA: FlightLine truncated
{"offset": {"line": 4271, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/create-href-from-url.ts"],"sourcesContent":["export function createHrefFromUrl(\n url: Pick<URL, 'pathname' | 'search' | 'hash'>,\n includeHash: boolean = true\n): string {\n return url.pathname + url.search + (includeHash ? url.hash : '')\n}\n"],"names":["createHrefFromUrl","url","includeHash","pathname","search","hash"],"mappings":";;;+BAAgBA,qBAAAA;;;eAAAA;;;AAAT,SAASA,kBACdC,GAA8C,EAC9CC,cAAuB,IAAI;IAE3B,OAAOD,IAAIE,QAAQ,GAAGF,IAAIG,MAAM,GAAIF,CAAAA,cAAcD,IAAII,IAAI,GAAG,EAAC;AAChE","ignoreList":[0]}},
{"offset": {"line": 4294, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/create-initial-router-state.ts"],"sourcesContent":["import type { InitialRSCPayload } from '../../../shared/lib/app-router-types'\n\nimport { createHrefFromUrl } from './create-href-from-url'\nimport { extractPathFromFlightRouterState } from './compute-changed-path'\n\nimport type { AppRouterState } from './router-reducer-types'\nimport { getFlightDataPartsFromPath } from '../../flight-data-helpers'\nimport { createInitialCacheNodeForHydration } from './ppr-navigations'\nimport {\n convertRootFlightRouterStateToRouteTree,\n resolveStaleAt,\n processRuntimePrefetchStream,\n writeDynamicRenderResponseIntoCache,\n writePrerenderResponseIntoCache,\n} from '../segment-cache/cache'\nimport { FetchStrategy } from '../segment-cache/types'\nimport {\n UnknownDynamicStaleTime,\n computeDynamicStaleAt,\n} from '../segment-cache/bfcache'\nimport { decodeStageUntilBoundary } from './fetch-server-response'\nimport { discoverKnownRoute } from '../segment-cache/optimistic-routes'\nimport type { NormalizedSearch } from '../segment-cache/cache-key'\n\nexport interface InitialRouterStateParameters {\n navigatedAt: number\n initialRSCPayload: InitialRSCPayload\n initialFlightStreamForCache?: ReadableStream<Uint8Array> | null\n location: Location | null\n}\n\nexport function createInitialRouterState({\n navigatedAt,\n initialRSCPayload,\n initialFlightStreamForCache,\n location,\n}: InitialRouterStateParameters): AppRouterState {\n const {\n c: initialCanonicalUrlParts,\n f: initialFlightData,\n q: initialRenderedSearch,\n i: initialCouldBeIntercepted,\n S: initialSupportsPerSegmentPrefetching,\n s: initialStaleTime,\n l: initialStaticStageByteLength,\n h: initialHeadVaryParams,\n r: initialRootVaryParams,\n p: initialRuntimePrefetchStream,\n d: initialDynamicStaleTimeSeconds,\n } = initialRSCPayload\n\n // When initialized on the server, the canonical URL is provided as an array of parts.\n // This is to ensure that when the RSC payload streamed to the client, crawlers don't interpret it\n // as a URL that should be crawled.\n const initialCanonicalUrl = initialCanonicalUrlParts.join('/')\n\n const normalizedFlightData = getFlightDataPartsFromPath(initialFlightData[0])\n const {\n tree: initialTree,\n seedData: initialSeedData,\n head: initialHead,\n } = normalizedFlightData\n // For the SSR render, seed data should always be available (we only send back a `null` response\n // in the case of a `loading` segment, pre-PPR.)\n\n const canonicalUrl =\n // location.href is read as the initial value for canonicalUrl in the browser\n // This is safe to do as canonicalUrl can't be rendered, it's only used to control the history updates in the useEffect further down in this file.\n location\n ? // window.location does not have the same type as URL but has all the fields createHrefFromUrl needs.\n createHrefFromUrl(location)\n : initialCanonicalUrl\n\n // Convert the initial FlightRouterState into the RouteTree type.\n // NOTE: The metadataVaryPath isn't used for anything currently because the\n // head is embedded into the CacheNode tree, but eventually we'll lift it out\n // and store it on the top-level state object.\n //\n // For statically-generated-at-build-time HTML pages, the FlightRouterState\n // baked into the initial RSC payload won't have the correct segment inlining\n // hints because those are computed after the pre-render. The server marks\n // these trees with InliningHintsStale, which causes the route cache entry\n // to be immediately expired. The next prefetch will re-fetch the tree with\n // correct hints from the /_tree response.\n const acc = { metadataVaryPath: null }\n const initialRouteTree = convertRootFlightRouterStateToRouteTree(\n initialTree,\n initialRenderedSearch as NormalizedSearch,\n acc\n )\n const metadataVaryPath = acc.metadataVaryPath\n const initialTask = createInitialCacheNodeForHydration(\n navigatedAt,\n initialRouteTree,\n initialSeedData,\n initialHead,\n computeDynamicStaleAt(\n navigatedAt,\n initialDynamicStaleTimeSeconds ?? UnknownDynamicStaleTime\n )\n )\n\n // The following only applies in the browser (location !== null) since neither\n // route learning nor segment cache state persists from SSR to client.\n if (location !== null && metadataVaryPath !== null) {\n // Learn the route pattern so we can predict it for future navigations.\n discoverKnownRoute(\n Date.now(),\n location.pathname,\n location.search as NormalizedSearch,\n null, // nextUrl — initial render is never an interception\n null, // No pending entry\n initialRouteTree,\n metadataVaryPath,\n initialCouldBeIntercepted,\n canonicalUrl,\n initialSuppoLine truncated
{"offset": {"line": 4454, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/create-router-cache-key.ts"],"sourcesContent":["import type { Segment } from '../../../shared/lib/app-router-types'\nimport { PAGE_SEGMENT_KEY } from '../../../shared/lib/segment'\n\nexport function createRouterCacheKey(\n segment: Segment,\n withoutSearchParameters: boolean = false\n) {\n // if the segment is an array, it means it's a dynamic segment\n // for example, ['lang', 'en', 'd']. We need to convert it to a string to store it as a cache node key.\n if (Array.isArray(segment)) {\n return `${segment[0]}|${segment[1]}|${segment[2]}`\n }\n\n // Page segments might have search parameters, ie __PAGE__?foo=bar\n // When `withoutSearchParameters` is true, we only want to return the page segment\n if (withoutSearchParameters && segment.startsWith(PAGE_SEGMENT_KEY)) {\n return PAGE_SEGMENT_KEY\n }\n\n return segment\n}\n"],"names":["createRouterCacheKey","segment","withoutSearchParameters","Array","isArray","startsWith","PAGE_SEGMENT_KEY"],"mappings":";;;+BAGgBA,wBAAAA;;;eAAAA;;;yBAFiB;AAE1B,SAASA,qBACdC,OAAgB,EAChBC,0BAAmC,KAAK;IAExC,8DAA8D;IAC9D,uGAAuG;IACvG,IAAIC,MAAMC,OAAO,CAACH,UAAU;QAC1B,OAAO,GAAGA,OAAO,CAAC,EAAE,CAAC,CAAC,EAAEA,OAAO,CAAC,EAAE,CAAC,CAAC,EAAEA,OAAO,CAAC,EAAE,EAAE;IACpD;IAEA,kEAAkE;IAClE,kFAAkF;IAClF,IAAIC,2BAA2BD,QAAQI,UAAU,CAACC,SAAAA,gBAAgB,GAAG;QACnE,OAAOA,SAAAA,gBAAgB;IACzB;IAEA,OAAOL;AACT","ignoreList":[0]}},
{"offset": {"line": 4488, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/fetch-server-response.ts"],"sourcesContent":["'use client'\n\n// TODO: Explicitly import from client.browser\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport {\n createFromReadableStream as createFromReadableStreamBrowser,\n createFromFetch as createFromFetchBrowser,\n} from 'react-server-dom-webpack/client'\n\nimport { InvariantError } from '../../../shared/lib/invariant-error'\nimport { fetch } from '../segment-cache/fetch'\nimport type {\n FlightRouterState,\n InitialRSCPayload,\n NavigationFlightResponse,\n} from '../../../shared/lib/app-router-types'\n\nimport {\n type NEXT_ROUTER_PREFETCH_HEADER,\n type NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,\n NEXT_ROUTER_STATE_TREE_HEADER,\n NEXT_RSC_UNION_QUERY,\n NEXT_URL,\n RSC_HEADER,\n RSC_CONTENT_TYPE_HEADER,\n NEXT_HMR_REFRESH_HEADER,\n NEXT_DID_POSTPONE_HEADER,\n NEXT_HTML_REQUEST_ID_HEADER,\n NEXT_REQUEST_ID_HEADER,\n} from '../app-router-headers'\nimport { callServer } from '../../app-call-server'\nimport { findSourceMapURL } from '../../app-find-source-map-url'\nimport {\n normalizeFlightData,\n prepareFlightRouterStateForRequest,\n type NormalizedFlightData,\n} from '../../flight-data-helpers'\nimport { setCacheBustingSearchParam } from './set-cache-busting-search-param'\nimport { urlToUrlWithoutFlightMarker } from '../../route-params'\nimport type { NormalizedSearch } from '../segment-cache/cache-key'\nimport { getDeploymentId } from '../../../shared/lib/deployment-id'\nimport { getNavigationBuildId } from '../../navigation-build-id'\nimport { NEXT_NAV_DEPLOYMENT_ID_HEADER } from '../../../lib/constants'\nimport {\n stripIsPartialByte,\n createNonTaskyPrefetchResponseStream,\n} from '../segment-cache/cache'\nimport { UnknownDynamicStaleTime } from '../segment-cache/bfcache'\n\nconst createFromReadableStream =\n createFromReadableStreamBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromReadableStream']\nconst createFromFetch =\n createFromFetchBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromFetch']\n\nlet createDebugChannel:\n | typeof import('../../dev/debug-channel').createDebugChannel\n | undefined\n\nif (process.env.__NEXT_DEV_SERVER && process.env.__NEXT_REACT_DEBUG_CHANNEL) {\n createDebugChannel = (\n require('../../dev/debug-channel') as typeof import('../../dev/debug-channel')\n ).createDebugChannel\n}\n\nexport interface FetchServerResponseOptions {\n readonly flightRouterState: FlightRouterState\n readonly nextUrl: string | null\n readonly isHmrRefresh?: boolean\n readonly signal?: AbortSignal\n}\n\nexport type StaticStageData<\n T extends\n | NavigationFlightResponse\n | InitialRSCPayload = NavigationFlightResponse,\n> = {\n readonly response: T\n readonly isResponsePartial: boolean\n}\n\ntype SpaFetchServerResponseResult = {\n flightData: NormalizedFlightData[]\n canonicalUrl: URL\n renderedSearch: NormalizedSearch\n couldBeIntercepted: boolean\n supportsPerSegmentPrefetching: boolean\n postponed: boolean\n dynamicStaleTime: number\n staticStageData: StaticStageData | null\n runtimePrefetchStream: ReadableStream<Uint8Array> | null\n responseHeaders: Headers\n debugInfo: Array<any> | null\n /**\n * Dev only: resolves once the server has flushed the shell-stage content to\n * the stream (or earlier, on a cache miss). The navigation defers revealing\n * the response (resolving its deferred RSCs) until this settles, so React\n * doesn't render a boundary's children before their row has been decoded and\n * commit a premature Suspense fallback. `null` outside the streaming dev\n * render.\n */\n revealAfter: Promise<void> | null\n}\n\ntype MpaFetchServerResponseResult = string\n\nexport type FetchServerResponseResult =\n | MpaFetchServerResponseResult\n | SpaFetchServerResponseResult\n\nexport type RequestHeaders = {\n [RSC_HEADER]?: '1'\n [NEXT_ROUTER_STATE_TREE_HEADER]?: string\n [NEXT_URL]?: string\n [NEXT_ROUTER_PREFETCH_HEADER]?: '1' | '2' | '3'\n [NEXT_ROUTER_SEGMENT_PREFETCH_HEADER]?: string\n 'x-deployment-id'?: string\n [NEXT_HMR_REFRESH_HEADER]?: '1'\n // A header that is only added in test mode to assert on fetch priority\n 'Next-Test-Fetch-Priority'?: RequestInit['priority']\n [NEXT_HTML_REQUEST_ID_HEADER]?: string // dev-only\n [NEXT_REQUEST_ID_HEADER]?: string // dev-only\n}\n\nfunction doMpaNavigation(url: string): FetchServerResponseResult {\n return urlToUrlWithoutFlightMarker(new URL(url, location.origin)).toString()\n}\n\nlet isPageUnloading = false\n\nif (typeof window !== 'undefined') {\n // Track when the page is unloading, e.g. due to reloading the page or\n // performing hard navigations. This allows us to suppress error logging when\n // the browser cancels in-flight requests during page uLine truncated
{"offset": {"line": 5021, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/is-navigating-to-new-root-layout.ts"],"sourcesContent":["import type { FlightRouterState } from '../../../shared/lib/app-router-types'\nimport { PrefetchHint } from '../../../shared/lib/app-router-types'\nimport type { RouteTree } from '../segment-cache/cache'\n\nexport function isNavigatingToNewRootLayout(\n currentTree: FlightRouterState,\n nextTree: RouteTree\n): boolean {\n // Decides whether navigating from currentTree to nextTree crosses into a\n // different root layout, which requires a full-page (MPA-style) navigation.\n //\n // The \"root layout\" is the highest-level layout in the tree. The segments at\n // or above it form the \"root layout prefix\", which the server marks with the\n // IsRootLayoutOrAbove hint. Two routes share a root layout iff their root\n // layout prefixes are structurally identical — same segments (ignoring\n // dynamic param *values*) for the same depth. So we walk the prefix in\n // lockstep and report a change as soon as the prefixes diverge.\n const currentInPrefix =\n ((currentTree[4] ?? 0) & PrefetchHint.IsRootLayoutOrAbove) !== 0\n const nextInPrefix =\n (nextTree.prefetchHints & PrefetchHint.IsRootLayoutOrAbove) !== 0\n\n // Both trees have descended past the root layout with everything above\n // matching — same root layout.\n if (!currentInPrefix && !nextInPrefix) {\n return false\n }\n\n // One tree's root layout prefix is deeper than the other's, so the root\n // layout boundary moved — it must have changed.\n // E.g. /[lang]/layout.js -> /[lang]/[region]/layout.js\n if (currentInPrefix !== nextInPrefix) {\n return true\n }\n\n // Both segments are still inside the root layout prefix. They must match.\n // Compare dynamic param name and type but ignore the value: different values\n // (e.g. /[name] for slug1 vs slug2) still resolve to the same /[name]/layout.\n // E.g. /same/(group1)/layout.js -> /same/(group2)/layout.js: (group1) changed\n // to (group2) inside the prefix, so the root layout changed.\n const currentTreeSegment = currentTree[0]\n const nextTreeSegment = nextTree.segment\n if (Array.isArray(currentTreeSegment) && Array.isArray(nextTreeSegment)) {\n if (\n currentTreeSegment[0] !== nextTreeSegment[0] ||\n currentTreeSegment[2] !== nextTreeSegment[2]\n ) {\n return true\n }\n } else if (currentTreeSegment !== nextTreeSegment) {\n return true\n }\n\n // Keep walking the prefix. (Above the root layout there is only a `children`\n // slot, but we traverse all slots defensively.)\n const slots = nextTree.slots\n const currentTreeChildren = currentTree[1]\n if (slots !== null) {\n for (const [slot, nextTreeChild] of slots) {\n const currentTreeChild = currentTreeChildren[slot]\n if (\n currentTreeChild === undefined ||\n isNavigatingToNewRootLayout(currentTreeChild, nextTreeChild)\n ) {\n return true\n }\n }\n }\n return false\n}\n"],"names":["isNavigatingToNewRootLayout","currentTree","nextTree","currentInPrefix","PrefetchHint","IsRootLayoutOrAbove","nextInPrefix","prefetchHints","currentTreeSegment","nextTreeSegment","segment","Array","isArray","slots","currentTreeChildren","slot","nextTreeChild","currentTreeChild","undefined"],"mappings":";;;+BAIgBA,+BAAAA;;;eAAAA;;;gCAHa;AAGtB,SAASA,4BACdC,WAA8B,EAC9BC,QAAmB;IAEnB,yEAAyE;IACzE,4EAA4E;IAC5E,EAAE;IACF,6EAA6E;IAC7E,6EAA6E;IAC7E,0EAA0E;IAC1E,uEAAuE;IACvE,uEAAuE;IACvE,gEAAgE;IAChE,MAAMC,kBACH,CAACF,CAAAA,WAAW,CAAC,EAAE,IAAI,CAAA,IAAKG,gBAAAA,YAAY,CAACC,mBAAkB,MAAO;IACjE,MAAMC,eACHJ,CAAAA,SAASK,aAAa,GAAGH,gBAAAA,YAAY,CAACC,mBAAkB,MAAO;IAElE,uEAAuE;IACvE,+BAA+B;IAC/B,IAAI,CAACF,mBAAmB,CAACG,cAAc;QACrC,OAAO;IACT;IAEA,wEAAwE;IACxE,gDAAgD;IAChD,uDAAuD;IACvD,IAAIH,oBAAoBG,cAAc;QACpC,OAAO;IACT;IAEA,0EAA0E;IAC1E,6EAA6E;IAC7E,8EAA8E;IAC9E,8EAA8E;IAC9E,6DAA6D;IAC7D,MAAME,qBAAqBP,WAAW,CAAC,EAAE;IACzC,MAAMQ,kBAAkBP,SAASQ,OAAO;IACxC,IAAIC,MAAMC,OAAO,CAACJ,uBAAuBG,MAAMC,OAAO,CAACH,kBAAkB;QACvE,IACED,kBAAkB,CAAC,EAAE,KAAKC,eAAe,CAAC,EAAE,IAC5CD,kBAAkB,CAAC,EAAE,KAAKC,eAAe,CAAC,EAAE,EAC5C;YACA,OAAO;QACT;IACF,OAAO,IAAID,uBAAuBC,iBAAiB;QACjD,OAAO;IACT;IAEA,6EAA6E;IAC7E,gDAAgD;IAChD,MAAMI,QAAQX,SAASW,KAAK;IAC5B,MAAMC,sBAAsBb,WAAW,CAAC,EAAE;IAC1C,IAAIY,UAAU,MAAM;QAClB,KAAK,MAAM,CAACE,MAAMC,cAAc,IAAIH,MAAO;YACzC,MAAMI,mBAAmBH,mBAAmB,CAACC,KAAK;YAClD,IACEE,qBAAqBC,aACrBlB,4BAA4BiB,kBAAkBD,gBAC9C;gBACA,OAAO;YACT;QACF;IACF;IACA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 5093, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/ppr-navigations.ts"],"sourcesContent":["import type {\n CacheNodeSeedData,\n FlightRouterState,\n Segment,\n} from '../../../shared/lib/app-router-types'\nimport type { CacheNode } from '../../../shared/lib/app-router-types'\nimport type { HeadData, ScrollRef } from '../../../shared/lib/app-router-types'\nimport { PrefetchHint } from '../../../shared/lib/app-router-types'\nimport {\n PAGE_SEGMENT_KEY,\n DEFAULT_SEGMENT_KEY,\n NOT_FOUND_SEGMENT_KEY,\n} from '../../../shared/lib/segment'\nimport { matchSegment } from '../match-segments'\nimport { createHrefFromUrl } from './create-href-from-url'\nimport { fetchServerResponse } from './fetch-server-response'\nimport { dispatchAppRouterAction } from '../use-action-queue'\nimport {\n ACTION_SERVER_PATCH,\n type ServerPatchAction,\n} from './router-reducer-types'\nimport { isNavigatingToNewRootLayout } from './is-navigating-to-new-root-layout'\nimport { getLastCommittedTree } from './reducers/committed-state'\nimport {\n convertServerPatchToFullTree,\n type NavigationSeed,\n} from '../segment-cache/navigation'\nimport {\n type RouteTree,\n type RefreshState,\n type FulfilledRouteCacheEntry,\n convertReusedFlightRouterStateToRouteTree,\n readSegmentCacheEntryForNavigation,\n waitForSegmentCacheEntry,\n markRouteEntryAsDynamicRewrite,\n invalidateRouteCacheEntries,\n resolveStaleAt,\n writePrerenderResponseIntoCache,\n processRuntimePrefetchStream,\n writeDynamicRenderResponseIntoCache,\n EntryStatus,\n} from '../segment-cache/cache'\nimport { FetchStrategy } from '../segment-cache/types'\nimport { discoverKnownRoute } from '../segment-cache/optimistic-routes'\nimport { NEXT_NAV_DEPLOYMENT_ID_HEADER } from '../../../lib/constants'\nimport { urlSearchParamsToParsedUrlQuery } from '../../route-params'\nimport type { NormalizedSearch } from '../segment-cache/cache-key'\nimport {\n getRenderedSearchFromVaryPath,\n type PageVaryPath,\n} from '../segment-cache/vary-path'\nimport {\n readFromBFCache,\n readFromBFCacheDuringRegularNavigation,\n writeToBFCache,\n writeHeadToBFCache,\n updateBFCacheEntryStaleAt,\n computeDynamicStaleAt,\n} from '../segment-cache/bfcache'\n\n// This is yet another tree type that is used to track pending promises that\n// need to be fulfilled once the dynamic data is received. The terminal nodes of\n// this tree represent the new Cache Node trees that were created during this\n// request. We can't use the Cache Node tree or Route State tree directly\n// because those include reused nodes, too. This tree is discarded as soon as\n// the navigation response is received.\nexport type NavigationTask = {\n status: NavigationTaskStatus\n // The router state that corresponds to the tree that this Task represents.\n route: FlightRouterState\n // The CacheNode that corresponds to the tree that this Task represents.\n node: CacheNode\n // The tree sent to the server during the dynamic request. If all the segments\n // are static, then this will be null, and no server request is required.\n // Otherwise, this is the same as `route`, except with the `refetch` marker\n // set on the top-most segment that needs to be fetched.\n dynamicRequestTree: FlightRouterState | null\n // The URL that should be used to fetch the dynamic data. This is only set\n // when the segment cannot be refetched from the current route, because it's\n // part of a \"default\" parallel slot that was reused during a navigation.\n refreshState: RefreshState | null\n children: Map<string, NavigationTask> | null\n}\n\nexport const enum FreshnessPolicy {\n Default,\n Hydration,\n HistoryTraversal,\n RefreshAll,\n HMRRefresh,\n Gesture,\n}\n\nconst enum NavigationTaskStatus {\n Pending,\n Fulfilled,\n Rejected,\n}\n\n/**\n * When a NavigationTask finishes, there may or may not be data still missing,\n * necessitating a retry.\n */\nconst enum NavigationTaskExitStatus {\n /**\n * The request was superseded by a newer navigation and aborted. No retry is\n * needed; the newer request owns the tree from here.\n */\n Canceled = -1,\n /**\n * No additional navigation is required.\n */\n Done = 0,\n /**\n * Some data failed to load, presumably due to a route tree mismatch. Perform\n * a soft retry to reload the entire tree (re-fetching the dynamic data).\n */\n SoftRetry = 1,\n /**\n * Some data failed to load in an unrecoverable way, e.g. in an inactive\n * parallel route. Fall back to a hard (MPA-style) retry.\n */\n HardRetry = 2,\n /**\n * The route tree matched, but the request was redirected, so the navigation\n * committed the wrong canonical URL. The route cache is no longer reliable\n * (the redirect implies a server change the prediction couldn't account for),\n * so we re-resolve the route — but the data we already received Line truncated
{"offset": {"line": 6553, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/committed-state.ts"],"sourcesContent":["import type { FlightRouterState } from '../../../../shared/lib/app-router-types'\n\n// The tree from the last state that was committed to the browser history\n// (i.e., the last state for which HistoryUpdater's useInsertionEffect ran).\n// This lets the server-patch reducer distinguish between retrying a\n// navigation that already pushed a history entry vs one whose transition\n// suspended and never committed.\n//\n// Currently only used by the server-patch retry logic, but this module is a\n// stepping stone toward a broader refactor of the navigation queue. The\n// existing AppRouter action queue will eventually be replaced by a more\n// reactive model that explicitly tracks pending vs committed navigation\n// state. This file will likely evolve into (or be subsumed by) that new\n// implementation.\nlet lastCommittedTree: FlightRouterState | null = null\n\nexport function getLastCommittedTree(): FlightRouterState | null {\n return lastCommittedTree\n}\n\nexport function setLastCommittedTree(tree: FlightRouterState): void {\n lastCommittedTree = tree\n}\n"],"names":["getLastCommittedTree","setLastCommittedTree","lastCommittedTree","tree"],"mappings":";;;;;;;;;;;;;;IAgBgBA,oBAAoB,EAAA;eAApBA;;IAIAC,oBAAoB,EAAA;eAApBA;;;AAlBhB,yEAAyE;AACzE,4EAA4E;AAC5E,oEAAoE;AACpE,yEAAyE;AACzE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,kBAAkB;AAClB,IAAIC,oBAA8C;AAE3C,SAASF;IACd,OAAOE;AACT;AAEO,SAASD,qBAAqBE,IAAuB;IAC1DD,oBAAoBC;AACtB","ignoreList":[0]}},
{"offset": {"line": 6604, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/find-head-in-cache.ts"],"sourcesContent":["import type {\n FlightRouterState,\n CacheNode,\n} from '../../../../shared/lib/app-router-types'\nimport { DEFAULT_SEGMENT_KEY } from '../../../../shared/lib/segment'\nimport { createRouterCacheKey } from '../create-router-cache-key'\n\nexport function findHeadInCache(\n cache: CacheNode,\n parallelRoutes: FlightRouterState[1]\n): [CacheNode, string, string] | null {\n return findHeadInCacheImpl(cache, parallelRoutes, '', '')\n}\n\nfunction findHeadInCacheImpl(\n cache: CacheNode,\n parallelRoutes: FlightRouterState[1],\n keyPrefix: string,\n keyPrefixWithoutSearchParams: string\n): [CacheNode, string, string] | null {\n const isLastItem = Object.keys(parallelRoutes).length === 0\n if (isLastItem) {\n // Returns the entire Cache Node of the segment whose head we will render.\n return [cache, keyPrefix, keyPrefixWithoutSearchParams]\n }\n\n // First try the 'children' parallel route if it exists\n // when starting from the \"root\", this corresponds with the main page component\n const parallelRoutesKeys = Object.keys(parallelRoutes).filter(\n (key) => key !== 'children'\n )\n\n // if we are at the root, we need to check the children slot first\n if ('children' in parallelRoutes) {\n parallelRoutesKeys.unshift('children')\n }\n\n const slots = cache.slots\n if (slots !== null) {\n for (const key of parallelRoutesKeys) {\n const [segment, childParallelRoutes] = parallelRoutes[key]\n // If the parallel is not matched and using the default segment,\n // skip searching the head from it.\n if (segment === DEFAULT_SEGMENT_KEY) {\n continue\n }\n\n const childCacheNode = slots[key]\n if (!childCacheNode) {\n continue\n }\n\n const cacheKey = createRouterCacheKey(segment)\n const cacheKeyWithoutSearchParams = createRouterCacheKey(segment, true)\n\n const item = findHeadInCacheImpl(\n childCacheNode,\n childParallelRoutes,\n keyPrefix + '/' + cacheKey,\n keyPrefix + '/' + cacheKeyWithoutSearchParams\n )\n\n if (item) {\n return item\n }\n }\n }\n\n return null\n}\n"],"names":["findHeadInCache","cache","parallelRoutes","findHeadInCacheImpl","keyPrefix","keyPrefixWithoutSearchParams","isLastItem","Object","keys","length","parallelRoutesKeys","filter","key","unshift","slots","segment","childParallelRoutes","DEFAULT_SEGMENT_KEY","childCacheNode","cacheKey","createRouterCacheKey","cacheKeyWithoutSearchParams","item"],"mappings":";;;+BAOgBA,mBAAAA;;;eAAAA;;;yBAHoB;sCACC;AAE9B,SAASA,gBACdC,KAAgB,EAChBC,cAAoC;IAEpC,OAAOC,oBAAoBF,OAAOC,gBAAgB,IAAI;AACxD;AAEA,SAASC,oBACPF,KAAgB,EAChBC,cAAoC,EACpCE,SAAiB,EACjBC,4BAAoC;IAEpC,MAAMC,aAAaC,OAAOC,IAAI,CAACN,gBAAgBO,MAAM,KAAK;IAC1D,IAAIH,YAAY;QACd,0EAA0E;QAC1E,OAAO;YAACL;YAAOG;YAAWC;SAA6B;IACzD;IAEA,uDAAuD;IACvD,+EAA+E;IAC/E,MAAMK,qBAAqBH,OAAOC,IAAI,CAACN,gBAAgBS,MAAM,CAC3D,CAACC,MAAQA,QAAQ;IAGnB,kEAAkE;IAClE,IAAI,cAAcV,gBAAgB;QAChCQ,mBAAmBG,OAAO,CAAC;IAC7B;IAEA,MAAMC,QAAQb,MAAMa,KAAK;IACzB,IAAIA,UAAU,MAAM;QAClB,KAAK,MAAMF,OAAOF,mBAAoB;YACpC,MAAM,CAACK,SAASC,oBAAoB,GAAGd,cAAc,CAACU,IAAI;YAC1D,gEAAgE;YAChE,mCAAmC;YACnC,IAAIG,YAAYE,SAAAA,mBAAmB,EAAE;gBACnC;YACF;YAEA,MAAMC,iBAAiBJ,KAAK,CAACF,IAAI;YACjC,IAAI,CAACM,gBAAgB;gBACnB;YACF;YAEA,MAAMC,WAAWC,CAAAA,GAAAA,sBAAAA,oBAAoB,EAACL;YACtC,MAAMM,8BAA8BD,CAAAA,GAAAA,sBAAAA,oBAAoB,EAACL,SAAS;YAElE,MAAMO,OAAOnB,oBACXe,gBACAF,qBACAZ,YAAY,MAAMe,UAClBf,YAAY,MAAMiB;YAGpB,IAAIC,MAAM;gBACR,OAAOA;YACT;QACF;IACF;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 6669, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/has-interception-route-in-current-tree.ts"],"sourcesContent":["import type { FlightRouterState } from '../../../../shared/lib/app-router-types'\nimport { isInterceptionRouteAppPath } from '../../../../shared/lib/router/utils/interception-routes'\n\nexport function hasInterceptionRouteInCurrentTree([\n segment,\n parallelRoutes,\n]: FlightRouterState): boolean {\n // If we have a dynamic segment, it's marked as an interception route by the presence of the `i` suffix.\n if (\n Array.isArray(segment) &&\n (segment[2] === 'di(..)(..)' ||\n segment[2] === 'ci(..)(..)' ||\n segment[2] === 'di(.)' ||\n segment[2] === 'ci(.)' ||\n segment[2] === 'di(..)' ||\n segment[2] === 'ci(..)' ||\n segment[2] === 'di(...)' ||\n segment[2] === 'ci(...)')\n ) {\n return true\n }\n\n // If segment is not an array, apply the existing string-based check\n if (typeof segment === 'string' && isInterceptionRouteAppPath(segment)) {\n return true\n }\n\n // Iterate through parallelRoutes if they exist\n if (parallelRoutes) {\n for (const key in parallelRoutes) {\n if (hasInterceptionRouteInCurrentTree(parallelRoutes[key])) {\n return true\n }\n }\n }\n\n return false\n}\n"],"names":["hasInterceptionRouteInCurrentTree","segment","parallelRoutes","Array","isArray","isInterceptionRouteAppPath","key"],"mappings":";;;+BAGgBA,qCAAAA;;;eAAAA;;;oCAF2B;AAEpC,SAASA,kCAAkC,CAChDC,SACAC,eACkB;IAClB,wGAAwG;IACxG,IACEC,MAAMC,OAAO,CAACH,YACbA,CAAAA,OAAO,CAAC,EAAE,KAAK,gBACdA,OAAO,CAAC,EAAE,KAAK,gBACfA,OAAO,CAAC,EAAE,KAAK,WACfA,OAAO,CAAC,EAAE,KAAK,WACfA,OAAO,CAAC,EAAE,KAAK,YACfA,OAAO,CAAC,EAAE,KAAK,YACfA,OAAO,CAAC,EAAE,KAAK,aACfA,OAAO,CAAC,EAAE,KAAK,SAAQ,GACzB;QACA,OAAO;IACT;IAEA,oEAAoE;IACpE,IAAI,OAAOA,YAAY,YAAYI,CAAAA,GAAAA,oBAAAA,0BAA0B,EAACJ,UAAU;QACtE,OAAO;IACT;IAEA,+CAA+C;IAC/C,IAAIC,gBAAgB;QAClB,IAAK,MAAMI,OAAOJ,eAAgB;YAChC,IAAIF,kCAAkCE,cAAc,CAACI,IAAI,GAAG;gBAC1D,OAAO;YACT;QACF;IACF;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 6709, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/hmr-refresh-reducer.ts"],"sourcesContent":["import type {\n HmrRefreshAction,\n ReadonlyReducerState,\n ReducerState,\n} from '../router-reducer-types'\nimport { refreshDynamicData } from './refresh-reducer'\nimport { FreshnessPolicy } from '../ppr-navigations'\n\nexport function hmrRefreshReducer(\n state: ReadonlyReducerState,\n action: HmrRefreshAction\n): ReducerState {\n // HMR actions may wait behind a Server Action in the router queue. If a newer\n // generation superseded this one before it started, don't install a refresh\n // tree whose request is already canceled.\n if (action.signal?.aborted) {\n return state\n }\n\n return refreshDynamicData(state, FreshnessPolicy.HMRRefresh, action.signal)\n}\n"],"names":["hmrRefreshReducer","state","action","signal","aborted","refreshDynamicData","FreshnessPolicy","HMRRefresh"],"mappings":";;;+BAQgBA,qBAAAA;;;eAAAA;;;gCAHmB;gCACH;AAEzB,SAASA,kBACdC,KAA2B,EAC3BC,MAAwB;IAExB,8EAA8E;IAC9E,4EAA4E;IAC5E,0CAA0C;IAC1C,IAAIA,OAAOC,MAAM,EAAEC,SAAS;QAC1B,OAAOH;IACT;IAEA,OAAOI,CAAAA,GAAAA,gBAAAA,kBAAkB,EAACJ,OAAOK,gBAAAA,eAAe,CAACC,UAAU,EAAEL,OAAOC,MAAM;AAC5E","ignoreList":[0]}},
{"offset": {"line": 6740, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/navigate-reducer.ts"],"sourcesContent":["import type {\n NavigateAction,\n ReadonlyReducerState,\n ReducerState,\n} from '../router-reducer-types'\n\nimport {\n completeHardNavigation,\n navigate as navigateUsingSegmentCache,\n} from '../../segment-cache/navigation'\nimport { getStaleTimeMs } from '../../segment-cache/cache'\nimport { FreshnessPolicy } from '../ppr-navigations'\n\n// These values are set by `define-env-plugin` (based on `nextConfig.experimental.staleTimes`)\n// and default to 5 minutes (static) / 0 seconds (dynamic)\nexport const DYNAMIC_STALETIME_MS =\n Number(process.env.__NEXT_CLIENT_ROUTER_DYNAMIC_STALETIME) * 1000\n\nexport const STATIC_STALETIME_MS = getStaleTimeMs(\n Number(process.env.__NEXT_CLIENT_ROUTER_STATIC_STALETIME)\n)\n\nexport function navigateReducer(\n state: ReadonlyReducerState,\n action: NavigateAction\n): ReducerState {\n const { url, isExternalUrl, navigateType, scrollBehavior } = action\n\n if (isExternalUrl) {\n return completeHardNavigation(state, url, navigateType)\n }\n\n // Handles case where `<meta http-equiv=\"refresh\">` tag is present,\n // which will trigger an MPA navigation.\n if (document.getElementById('__next-page-redirect')) {\n return completeHardNavigation(state, url, navigateType)\n }\n\n // Temporary glue code between the router reducer and the new navigation\n // implementation. Eventually we'll rewrite the router reducer to a\n // state machine.\n const currentUrl = new URL(state.canonicalUrl, location.origin)\n const currentRenderedSearch = state.renderedSearch\n return navigateUsingSegmentCache(\n state,\n url,\n currentUrl,\n currentRenderedSearch,\n state.cache,\n state.tree,\n state.nextUrl,\n FreshnessPolicy.Default,\n scrollBehavior,\n navigateType\n )\n}\n"],"names":["DYNAMIC_STALETIME_MS","STATIC_STALETIME_MS","navigateReducer","Number","process","env","__NEXT_CLIENT_ROUTER_DYNAMIC_STALETIME","getStaleTimeMs","__NEXT_CLIENT_ROUTER_STATIC_STALETIME","state","action","url","isExternalUrl","navigateType","scrollBehavior","completeHardNavigation","document","getElementById","currentUrl","URL","canonicalUrl","location","origin","currentRenderedSearch","renderedSearch","navigateUsingSegmentCache","cache","tree","nextUrl","FreshnessPolicy","Default"],"mappings":"AAgBSI,QAAQC,GAAG,CAACC,sCAAsC;;;;;;;;;;;;;;;;;IAD9CN,oBAAoB,EAAA;eAApBA;;IAGAC,mBAAmB,EAAA;eAAnBA;;IAIGC,eAAe,EAAA;eAAfA;;;4BAbT;uBACwB;gCACC;AAIzB,MAAMF,uBACXG,gDAA6D;AAExD,MAAMF,sBAAsBM,CAAAA,GAAAA,OAAAA,cAAc,EAC/CJ,OAAOC,QAAQC,GAAG,CAACG,qCAAqC;AAGnD,SAASN,gBACdO,KAA2B,EAC3BC,MAAsB;IAEtB,MAAM,EAAEC,GAAG,EAAEC,aAAa,EAAEC,YAAY,EAAEC,cAAc,EAAE,GAAGJ;IAE7D,IAAIE,eAAe;QACjB,OAAOG,CAAAA,GAAAA,YAAAA,sBAAsB,EAACN,OAAOE,KAAKE;IAC5C;IAEA,mEAAmE;IACnE,wCAAwC;IACxC,IAAIG,SAASC,cAAc,CAAC,yBAAyB;QACnD,OAAOF,CAAAA,GAAAA,YAAAA,sBAAsB,EAACN,OAAOE,KAAKE;IAC5C;IAEA,wEAAwE;IACxE,mEAAmE;IACnE,iBAAiB;IACjB,MAAMK,aAAa,IAAIC,IAAIV,MAAMW,YAAY,EAAEC,SAASC,MAAM;IAC9D,MAAMC,wBAAwBd,MAAMe,cAAc;IAClD,OAAOC,CAAAA,GAAAA,YAAAA,QAAyB,EAC9BhB,OACAE,KACAO,YACAK,uBACAd,MAAMiB,KAAK,EACXjB,MAAMkB,IAAI,EACVlB,MAAMmB,OAAO,EACbC,gBAAAA,eAAe,CAACC,OAAO,EACvBhB,gBACAD;AAEJ","ignoreList":[0]}},
{"offset": {"line": 6800, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/refresh-reducer.ts"],"sourcesContent":["import type {\n ReadonlyReducerState,\n ReducerState,\n RefreshAction,\n} from '../router-reducer-types'\nimport { ScrollBehavior } from '../router-reducer-types'\nimport {\n convertServerPatchToFullTree,\n navigateToKnownRoute,\n} from '../../segment-cache/navigation'\nimport { invalidateSegmentCacheEntries } from '../../segment-cache/cache'\nimport { hasInterceptionRouteInCurrentTree } from './has-interception-route-in-current-tree'\nimport { FreshnessPolicy, getCurrentNavigationLock } from '../ppr-navigations'\nimport {\n invalidateBfCache,\n UnknownDynamicStaleTime,\n} from '../../segment-cache/bfcache'\n\nexport function refreshReducer(\n state: ReadonlyReducerState,\n action: RefreshAction\n): ReducerState {\n // During a refresh, we invalidate the segment cache but not the route cache.\n // The route cache contains the tree structure (which segments exist at a\n // given URL) which doesn't change during a refresh. The segment cache\n // contains the actual RSC data which needs to be re-fetched.\n //\n // The Instant Navigation Testing API can bypass cache invalidation to\n // preserve prefetched data when refreshing after an MPA navigation. This is\n // only used for testing and is not exposed in production builds by default.\n const bypassCacheInvalidation =\n process.env.__NEXT_EXPOSE_TESTING_API && action.bypassCacheInvalidation\n if (!bypassCacheInvalidation) {\n const currentNextUrl = state.nextUrl\n const currentRouterState = state.tree\n invalidateSegmentCacheEntries(currentNextUrl, currentRouterState)\n }\n // A full refresh has no HMR generation to cancel.\n return refreshDynamicData(state, FreshnessPolicy.RefreshAll, undefined)\n}\n\nexport function refreshDynamicData(\n state: ReadonlyReducerState,\n freshnessPolicy: FreshnessPolicy.RefreshAll | FreshnessPolicy.HMRRefresh,\n signal: AbortSignal | undefined\n): ReducerState {\n // During a refresh, invalidate the BFCache, which may contain dynamic data.\n invalidateBfCache()\n\n const currentNextUrl = state.nextUrl\n\n // We always send the last next-url, not the current when performing a dynamic\n // request. This is because we update the next-url after a navigation, but we\n // want the same interception route to be matched that used the last next-url.\n const nextUrlForRefresh = hasInterceptionRouteInCurrentTree(state.tree)\n ? state.previousNextUrl || currentNextUrl\n : null\n\n // A refresh is modeled as a navigation to the current URL, but where any\n // existing dynamic data (including in shared layouts) is re-fetched.\n const currentCanonicalUrl = state.canonicalUrl\n const currentUrl = new URL(currentCanonicalUrl, location.origin)\n const currentRenderedSearch = state.renderedSearch\n const currentFlightRouterState = state.tree\n const scrollBehavior = ScrollBehavior.NoScroll\n const navigationLock = getCurrentNavigationLock()\n\n // Create a NavigationSeed from the current FlightRouterState.\n // TODO: Eventually we will store this type directly on the state object\n // instead of reconstructing it on demand. Part of a larger series of\n // refactors to unify the various tree types that the client deals with.\n const now = Date.now()\n // TODO: Store the dynamic stale time on the top-level state so it's known\n // during restores and refreshes.\n const refreshSeed = convertServerPatchToFullTree(\n now,\n currentFlightRouterState,\n null,\n currentRenderedSearch,\n UnknownDynamicStaleTime\n )\n\n // If the previous navigation hasn't pushed its history entry yet (React\n // hasn't committed its state), this refresh may commit in its place, so it\n // takes over the push. If the navigation does commit first, HistoryUpdater\n // sees that the URL already matches and replaces instead.\n const navigateType = state.pushRef.pendingPush ? 'push' : 'replace'\n return navigateToKnownRoute(\n now,\n state,\n currentUrl,\n currentCanonicalUrl,\n refreshSeed,\n currentUrl,\n currentRenderedSearch,\n state.cache,\n currentFlightRouterState,\n freshnessPolicy,\n nextUrlForRefresh,\n scrollBehavior,\n navigateType,\n navigationLock,\n null,\n // Refresh navigations don't use route prediction, so there's no route\n // cache entry to mark as having a dynamic rewrite on mismatch. If a\n // mismatch occurs, the retry handler will traverse the known route tree\n // to find and mark the entry.\n null,\n signal\n )\n}\n"],"names":["refreshDynamicData","refreshReducer","state","action","bypassCacheInvalidation","process","env","__NEXT_EXPOSE_TESTING_API","currentNextUrl","nextUrl","currentRouterState","tree","invalidateSegmentCacheEntries","FreshnessPolicy","RefreshAll","undefined","freshnesLine truncated
{"offset": {"line": 6892, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/restore-reducer.ts"],"sourcesContent":["import type {\n ReadonlyReducerState,\n ReducerState,\n RestoreAction,\n} from '../router-reducer-types'\nimport { extractPathFromFlightRouterState } from '../compute-changed-path'\nimport {\n FreshnessPolicy,\n resetNavigationLockToPending,\n spawnDynamicRequests,\n startPPRNavigation,\n type NavigationRequestAccumulation,\n} from '../ppr-navigations'\nimport type { FlightRouterState } from '../../../../shared/lib/app-router-types'\nimport {\n completeHardNavigation,\n completeTraverseNavigation,\n convertServerPatchToFullTree,\n} from '../../segment-cache/navigation'\nimport { UnknownDynamicStaleTime } from '../../segment-cache/bfcache'\n\nexport function restoreReducer(\n state: ReadonlyReducerState,\n action: RestoreAction\n): ReducerState {\n // This action is used to restore the router state from the history state.\n // However, it's possible that the history state no longer contains the `FlightRouterState`.\n // We will copy over the internal state on pushState/replaceState events, but if a history entry\n // occurred before hydration, or if the user navigated to a hash using a regular anchor link,\n // the history state will not contain the `FlightRouterState`.\n // In this case, we'll continue to use the existing tree so the router doesn't get into an invalid state.\n let treeToRestore: FlightRouterState | undefined\n let renderedSearch: string | undefined\n const historyState = action.historyState\n if (historyState) {\n treeToRestore = historyState.tree\n renderedSearch = historyState.renderedSearch\n } else {\n treeToRestore = state.tree\n renderedSearch = state.renderedSearch\n }\n\n const currentUrl = new URL(state.canonicalUrl, location.origin)\n const restoredUrl = action.url\n const restoredNextUrl =\n extractPathFromFlightRouterState(treeToRestore) ?? restoredUrl.pathname\n\n const now = Date.now()\n // TODO: Store the dynamic stale time on the top-level state so it's known\n // during restores and refreshes.\n const accumulation: NavigationRequestAccumulation = {\n separateRefreshUrls: null,\n scrollRef: null,\n }\n const restoreSeed = convertServerPatchToFullTree(\n now,\n treeToRestore,\n null,\n renderedSearch,\n UnknownDynamicStaleTime\n )\n const task = startPPRNavigation(\n now,\n currentUrl,\n state.renderedSearch,\n state.cache,\n state.tree,\n restoreSeed.routeTree,\n restoreSeed.metadataVaryPath,\n FreshnessPolicy.HistoryTraversal,\n null,\n null,\n restoreSeed.dynamicStaleAt,\n false,\n accumulation,\n // A history-traversal restore never restricts to the shell.\n false\n )\n\n if (task === null) {\n return completeHardNavigation(state, restoredUrl, 'replace')\n }\n spawnDynamicRequests(\n task,\n restoredUrl,\n restoredNextUrl,\n FreshnessPolicy.HistoryTraversal,\n accumulation,\n // History traversal doesn't use route prediction, so there's no route\n // cache entry to mark as having a dynamic rewrite on mismatch. If a\n // mismatch occurs, the retry handler will traverse the known route tree\n // to find and mark the entry.\n null,\n // History traversal always uses 'replace'.\n 'replace',\n // Instant Navigation Testing API: a traversal is not a capture. Spawn its\n // dynamic requests ungated (null lock) so they render from cache or fetch\n // normally rather than being withheld behind the lock.\n null,\n // Not an HMR refresh, so there's no request generation to cancel.\n undefined\n )\n // Instant Navigation Testing API: a traversal resets the lock to a fresh\n // pending scope — releasing any data withheld by prior forward navigations and\n // returning the panel to \"awaiting\" — without ending the testing session.\n // No-op when the testing API is disabled or no lock is held.\n resetNavigationLockToPending()\n return completeTraverseNavigation(\n state,\n restoredUrl,\n renderedSearch,\n task.node,\n task.route,\n restoredNextUrl\n )\n}\n"],"names":["restoreReducer","state","action","treeToRestore","renderedSearch","historyState","tree","currentUrl","URL","canonicalUrl","location","origin","restoredUrl","url","restoredNextUrl","extractPathFromFlightRouterState","pathname","now","Date","accumulation","separateRefreshUrls","scrollRef","restoreSeed","convertServerPatchToFullTree","UnknownDynamicStaleTime","task","startPPRNavigation","cache","routeTree","metadataVaryPath","FreshnessPolicy","HistoryTraversal","dynamicStaleAt","completeHardNavigation","spawnDynamicRequests","undefined","resetNavigationLockToPending","completeTraverseNavigation","node","route"],"mappings":";;;+BAqBgBA,kBAAAA;;;eAAAA;;;oCAhBiC;gCAO1C;4BAMA;yBACiC;AAEjC,SAASA,eACdC,KAA2B,EALine truncated
{"offset": {"line": 6961, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/server-action-reducer.ts"],"sourcesContent":["import type {\n ActionFlightResponse,\n ActionResult,\n} from '../../../../shared/lib/app-router-types'\nimport { callServer } from '../../../app-call-server'\nimport { findSourceMapURL } from '../../../app-find-source-map-url'\nimport {\n ACTION_HEADER,\n NEXT_ACTION_NOT_FOUND_HEADER,\n NEXT_IS_PRERENDER_HEADER,\n NEXT_HTML_REQUEST_ID_HEADER,\n NEXT_ROUTER_STATE_TREE_HEADER,\n NEXT_URL,\n RSC_CONTENT_TYPE_HEADER,\n NEXT_REQUEST_ID_HEADER,\n} from '../../app-router-headers'\nimport { UnrecognizedActionError } from '../../unrecognized-action-error'\nimport { fetch } from '../../segment-cache/fetch'\n\n// TODO: Explicitly import from client.browser\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport {\n createFromFetch as createFromFetchBrowser,\n createTemporaryReferenceSet,\n encodeReply,\n} from 'react-server-dom-webpack/client'\n\nimport type {\n ReadonlyReducerState,\n ReducerState,\n ServerActionAction,\n} from '../router-reducer-types'\nimport { ScrollBehavior } from '../router-reducer-types'\nimport { assignLocation } from '../../../assign-location'\nimport { createHrefFromUrl } from '../create-href-from-url'\nimport { hasInterceptionRouteInCurrentTree } from './has-interception-route-in-current-tree'\nimport {\n normalizeFlightData,\n prepareFlightRouterStateForRequest,\n type NormalizedFlightData,\n} from '../../../flight-data-helpers'\nimport { getRedirectError } from '../../redirect'\nimport type { RedirectType } from '../../redirect-error'\nimport { removeBasePath } from '../../../remove-base-path'\nimport { hasBasePath } from '../../../has-base-path'\nimport {\n extractInfoFromServerReferenceId,\n omitUnusedArgs,\n} from '../../../../shared/lib/server-reference-info'\nimport { invalidateEntirePrefetchCache } from '../../segment-cache/cache'\nimport { startRevalidationCooldown } from '../../segment-cache/scheduler'\nimport { getDeploymentId } from '../../../../shared/lib/deployment-id'\nimport { getNavigationBuildId } from '../../../navigation-build-id'\nimport { NEXT_NAV_DEPLOYMENT_ID_HEADER } from '../../../../lib/constants'\nimport {\n completeHardNavigation,\n convertServerPatchToFullTree,\n navigateToKnownRoute,\n navigate,\n} from '../../segment-cache/navigation'\nimport { discoverKnownRoute } from '../../segment-cache/optimistic-routes'\nimport type { NormalizedSearch } from '../../segment-cache/cache-key'\nimport {\n ActionDidNotRevalidate,\n ActionDidRevalidateDynamicOnly,\n ActionDidRevalidateStaticAndDynamic,\n type ActionRevalidationKind,\n} from '../../../../shared/lib/action-revalidation-kind'\nimport { isExternalURL } from '../../app-router-utils'\nimport { FreshnessPolicy, getCurrentNavigationLock } from '../ppr-navigations'\nimport { processFetch } from '../fetch-server-response'\nimport {\n invalidateBfCache,\n UnknownDynamicStaleTime,\n} from '../../segment-cache/bfcache'\n\nconst createFromFetch =\n createFromFetchBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromFetch']\n\nlet createDebugChannel:\n | typeof import('../../../dev/debug-channel').createDebugChannel\n | undefined\n\nif (process.env.__NEXT_DEV_SERVER && process.env.__NEXT_REACT_DEBUG_CHANNEL) {\n createDebugChannel = (\n require('../../../dev/debug-channel') as typeof import('../../../dev/debug-channel')\n ).createDebugChannel\n}\n\n// TODO: Refactor to be a discriminated union. Or just get rid of it;\n// fetchServerAction only has one caller, no reason this intermediate type has\n// to exist.\ntype FetchServerActionResult = {\n redirectLocation: URL | undefined\n redirectType: RedirectType | undefined\n revalidationKind: ActionRevalidationKind\n actionResult: ActionResult | undefined\n actionFlightData: NormalizedFlightData[] | string | undefined\n actionFlightDataRenderedSearch: NormalizedSearch | undefined\n isPrerender: boolean\n couldBeIntercepted: boolean\n}\n\nasync function fetchServerAction(\n state: ReadonlyReducerState,\n nextUrl: ReadonlyReducerState['nextUrl'],\n action: ServerActionAction\n): Promise<FetchServerActionResult> {\n const { actionId, actionArgs } = action\n const temporaryReferences = createTemporaryReferenceSet()\n const info = extractInfoFromServerReferenceId(actionId)\n const usedArgs = omitUnusedArgs(actionArgs, info)\n const body = await encodeReply(usedArgs, { temporaryReferences })\n\n const headers: Record<string, string> = {\n Accept: RSC_CONTENT_TYPE_HEADER,\n [ACTION_HEADER]: actionId,\n [NEXT_ROUTER_STATE_TREE_HEADER]: prepareFlightRouterStateForRequest(\n state.tree\n ),\n }\n\n const deploymentId = getDeploymentId()\n if (deploymentId) {\n headers['x-deployment-id'] = deploymentId\n }\n\n if (nextUrl) {\n headers[NEXT_URLLine truncated
{"offset": {"line": 7296, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/reducers/server-patch-reducer.ts"],"sourcesContent":["import { createHrefFromUrl } from '../create-href-from-url'\nimport {\n ACTION_REFRESH,\n type ServerPatchAction,\n type ReducerState,\n type ReadonlyReducerState,\n ScrollBehavior,\n} from '../router-reducer-types'\nimport {\n completeHardNavigation,\n navigateToKnownRoute,\n} from '../../segment-cache/navigation'\nimport { refreshReducer } from './refresh-reducer'\nimport { getCurrentNavigationLock } from '../ppr-navigations'\n\nexport function serverPatchReducer(\n state: ReadonlyReducerState,\n action: ServerPatchAction\n): ReducerState {\n // A \"retry\" is a navigation that happens due to a route mismatch. It's\n // similar to a refresh, because we will omit any existing dynamic data on\n // the page. But we seed the retry navigation with the exact tree that the\n // server just responded with.\n const retryMpa = action.mpa\n const retryUrl = new URL(action.url, location.origin)\n const retrySeed = action.seed\n const navigateType = action.navigateType\n if (retryMpa || retrySeed === null) {\n // If the server did not send back data during the mismatch, fall back to\n // an MPA navigation.\n return completeHardNavigation(state, retryUrl, navigateType)\n }\n const currentUrl = new URL(state.canonicalUrl, location.origin)\n const currentRenderedSearch = state.renderedSearch\n if (action.previousTree !== state.tree) {\n // There was another, more recent navigation since the once that\n // mismatched. We can abort the retry, but we still need to refresh the\n // page to evict any stale dynamic data.\n return refreshReducer(state, { type: ACTION_REFRESH })\n }\n // There have been no new navigations since the mismatched one. Refresh,\n // using the tree we just received from the server.\n //\n // The freshness policy comes from the action: a genuine tree mismatch\n // re-fetches the dynamic data (`RefreshAll`), whereas a redirect that only\n // changed the canonical URL reuses the data already in the tree\n // (`HistoryTraversal`), since the data we received is correct.\n const retryCanonicalUrl = createHrefFromUrl(retryUrl)\n const retryNextUrl = action.nextUrl\n const scrollBehavior = ScrollBehavior.Default\n const navigationLock = getCurrentNavigationLock()\n const now = Date.now()\n return navigateToKnownRoute(\n now,\n state,\n retryUrl,\n retryCanonicalUrl,\n retrySeed,\n currentUrl,\n currentRenderedSearch,\n state.cache,\n state.tree,\n action.freshnessPolicy,\n retryNextUrl,\n scrollBehavior,\n navigateType,\n navigationLock,\n null,\n // Server patch (retry) navigations don't use route prediction. This is\n // typically a retry after a previous mismatch, so the route was already\n // marked as having a dynamic rewrite when the mismatch was detected.\n null,\n // Not an HMR refresh, so there's no request generation to cancel.\n undefined\n )\n}\n"],"names":["serverPatchReducer","state","action","retryMpa","mpa","retryUrl","URL","url","location","origin","retrySeed","seed","navigateType","completeHardNavigation","currentUrl","canonicalUrl","currentRenderedSearch","renderedSearch","previousTree","tree","refreshReducer","type","ACTION_REFRESH","retryCanonicalUrl","createHrefFromUrl","retryNextUrl","nextUrl","scrollBehavior","ScrollBehavior","Default","navigationLock","getCurrentNavigationLock","now","Date","navigateToKnownRoute","cache","freshnessPolicy","undefined"],"mappings":";;;+BAegBA,sBAAAA;;;eAAAA;;;mCAfkB;oCAO3B;4BAIA;gCACwB;gCACU;AAElC,SAASA,mBACdC,KAA2B,EAC3BC,MAAyB;IAEzB,uEAAuE;IACvE,0EAA0E;IAC1E,0EAA0E;IAC1E,8BAA8B;IAC9B,MAAMC,WAAWD,OAAOE,GAAG;IAC3B,MAAMC,WAAW,IAAIC,IAAIJ,OAAOK,GAAG,EAAEC,SAASC,MAAM;IACpD,MAAMC,YAAYR,OAAOS,IAAI;IAC7B,MAAMC,eAAeV,OAAOU,YAAY;IACxC,IAAIT,YAAYO,cAAc,MAAM;QAClC,yEAAyE;QACzE,qBAAqB;QACrB,OAAOG,CAAAA,GAAAA,YAAAA,sBAAsB,EAACZ,OAAOI,UAAUO;IACjD;IACA,MAAME,aAAa,IAAIR,IAAIL,MAAMc,YAAY,EAAEP,SAASC,MAAM;IAC9D,MAAMO,wBAAwBf,MAAMgB,cAAc;IAClD,IAAIf,OAAOgB,YAAY,KAAKjB,MAAMkB,IAAI,EAAE;QACtC,gEAAgE;QAChE,uEAAuE;QACvE,wCAAwC;QACxC,OAAOC,CAAAA,GAAAA,gBAAAA,cAAc,EAACnB,OAAO;YAAEoB,MAAMC,oBAAAA,cAAc;QAAC;IACtD;IACA,wEAAwE;IACxE,mDAAmD;IACnD,EAAE;IACF,sEAAsE;IACtE,2EAA2E;IAC3E,gEAAgE;IAChE,+DAA+D;IAC/D,MAAMC,oBAAoBC,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACnB;IAC5C,MAAMoB,eAAevB,OAAOwB,OAAO;IACnC,MAAMC,iBAAiBC,oBAAAA,cAAc,CAACC,OAAO;IAC7C,MAAMC,iBAAiBC,CAAAA,GAAAA,gBAAAA,wBAAwB;IAC/C,MAAMC,MAAMC,KAAKD,GAAG;IACpB,OAAOE,CAAAA,GAAAA,YAAAA,oBAAoB,EACzBF,KACA/B,OACAI,UACAkB,mBACAb,WACAI,YACAE,uBACAf,MAAMkC,KAAK,EACXlC,MAAMkB,IAAI,EACVjB,OAAOkC,eAAe,EACtBX,cACAE,gBACAf,cACAkB,gBACA,MACA,AACA,uEADuE,CACC;IACxE,qEAAqE;IACrE,MACA,AACAO,kEADkE;AAGtE","ignoreList":[0]}},
{"offset": {"line": 7361, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/router-reducer-types.ts"],"sourcesContent":["import type { CacheNode, ScrollRef } from '../../../shared/lib/app-router-types'\nimport type { FlightRouterState } from '../../../shared/lib/app-router-types'\nimport type { NavigationSeed } from '../segment-cache/navigation'\nimport type { FetchServerResponseResult } from './fetch-server-response'\nimport type { FreshnessPolicy } from './ppr-navigations'\n\nexport const ACTION_REFRESH = 'refresh'\nexport const ACTION_NAVIGATE = 'navigate'\nexport const ACTION_RESTORE = 'restore'\nexport const ACTION_SERVER_PATCH = 'server-patch'\nexport const ACTION_HMR_REFRESH = 'hmr-refresh'\nexport const ACTION_SERVER_ACTION = 'server-action'\n\nexport type RouterChangeByServerResponse = ({\n navigatedAt,\n previousTree,\n serverResponse,\n}: {\n navigatedAt: number\n previousTree: FlightRouterState\n serverResponse: FetchServerResponseResult\n}) => void\n\n/**\n * Refresh triggers a refresh of the full page data.\n * - fetches the Flight data and fills rsc at the root of the cache.\n * - The router state is updated at the root.\n */\nexport interface RefreshAction {\n type: typeof ACTION_REFRESH\n /**\n * Bypass invalidating the segment cache. Used by the Instant Navigation\n * Testing API to preserve prefetched data when refreshing after an MPA\n * navigation. Not exposed in production builds by default.\n */\n bypassCacheInvalidation?: boolean\n}\n\nexport interface HmrRefreshAction {\n type: typeof ACTION_HMR_REFRESH\n signal?: AbortSignal\n}\n\nexport type ServerActionDispatcher = (\n args: Omit<\n ServerActionAction,\n 'type' | 'mutable' | 'navigate' | 'changeByServerResponse' | 'cache'\n >\n) => void\n\nexport interface ServerActionAction {\n type: typeof ACTION_SERVER_ACTION\n actionId: string\n actionArgs: any[]\n resolve: (value: any) => void\n reject: (reason?: any) => void\n didRevalidate?: boolean\n}\n\n/**\n * Navigate triggers a navigation to the provided url. It supports two types: `push` and `replace`.\n *\n * `navigateType`:\n * - `push` - pushes a new history entry in the browser history\n * - `replace` - replaces the current history entry in the browser history\n *\n * Navigate has multiple cache heuristics:\n * - page was prefetched\n * - Apply router state tree from prefetch\n * - Apply Flight data from prefetch to the cache\n * - If Flight data is a string, it's a redirect and the state is updated to trigger a redirect\n * - Check if hard navigation is needed\n * - Hard navigation happens when a dynamic parameter below the common layout changed\n * - When hard navigation is needed the cache is invalidated below the flightSegmentPath\n * - The missing cache nodes of the page will be fetched in layout-router and trigger the SERVER_PATCH action\n * - If hard navigation is not needed\n * - The cache is reused\n * - If any cache nodes are missing they'll be fetched in layout-router and trigger the SERVER_PATCH action\n * - page was not prefetched\n * - The navigate was called from `next/router` (`router.push()` / `router.replace()`) / `next/link` without prefetched data available (e.g. the prefetch didn't come back from the server before clicking the link)\n * - Flight data is fetched in the reducer (suspends the reducer)\n * - Router state tree is created based on Flight data\n * - Cache is filled based on the Flight data\n *\n * Above steps explain 3 cases:\n * - `soft` - Reuses the existing cache and fetches missing nodes in layout-router.\n * - `hard` - Creates a new cache where cache nodes are removed below the common layout and fetches missing nodes in layout-router.\n * - `optimistic` (explicit no prefetch) - Creates a new cache and kicks off the data fetch in the reducer. The data fetch is awaited in the layout-router.\n */\nexport interface NavigateAction {\n type: typeof ACTION_NAVIGATE\n url: URL\n isExternalUrl: boolean\n locationSearch: Location['search']\n navigateType: 'push' | 'replace'\n scrollBehavior: ScrollBehavior\n}\n\n/**\n * Restore applies the provided router state.\n * - Used for `popstate` (back/forward navigation) where a known router state has to be applied.\n * - Also used when syncing the router state with `pushState`/`replaceState` calls.\n * - Router state is applied as-is from the history state, if available.\n * - If the history state does not contain the router state, the existing router state is used.\n * - If any cache node is missing it will be fetched in layout-router during rendering and the server-patch case.\n * - If existing cache nodes match these are used.\n */\nexport interface RestoreAction {\n type: typeof ACTION_RESTORE\n url: URL\n historyState: AppHistoryState | undefined\n}\n\nexport type AppHistoryState = {\n tree: FlightRouterState\n renderedSearch: string\n}\n\n/Line truncated
{"offset": {"line": 7433, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/router-reducer.ts"],"sourcesContent":["import {\n ACTION_NAVIGATE,\n ACTION_SERVER_PATCH,\n ACTION_RESTORE,\n ACTION_REFRESH,\n ACTION_HMR_REFRESH,\n ACTION_SERVER_ACTION,\n} from './router-reducer-types'\nimport type {\n ReducerActions,\n ReducerState,\n ReadonlyReducerState,\n} from './router-reducer-types'\nimport { navigateReducer } from './reducers/navigate-reducer'\nimport { serverPatchReducer } from './reducers/server-patch-reducer'\nimport { restoreReducer } from './reducers/restore-reducer'\nimport { refreshReducer } from './reducers/refresh-reducer'\nimport { serverActionReducer } from './reducers/server-action-reducer'\n\n/**\n * Reducer that handles the app-router state updates.\n */\nfunction clientReducer(\n state: ReadonlyReducerState,\n action: ReducerActions\n): ReducerState {\n switch (action.type) {\n case ACTION_NAVIGATE: {\n return navigateReducer(state, action)\n }\n case ACTION_SERVER_PATCH: {\n return serverPatchReducer(state, action)\n }\n case ACTION_RESTORE: {\n return restoreReducer(state, action)\n }\n case ACTION_REFRESH: {\n return refreshReducer(state, action)\n }\n case ACTION_HMR_REFRESH: {\n if (process.env.NODE_ENV === 'development') {\n const { hmrRefreshReducer } =\n require('./reducers/hmr-refresh-reducer') as typeof import('./reducers/hmr-refresh-reducer')\n return hmrRefreshReducer(state, action)\n } else {\n throw new Error(\n 'hmrRefresh can only be used in development mode. Please use refresh instead.'\n )\n }\n }\n case ACTION_SERVER_ACTION: {\n return serverActionReducer(state, action)\n }\n // This case should never be hit as dispatch is strongly typed.\n default:\n throw new Error('Unknown action')\n }\n}\n\nfunction serverReducer(\n state: ReadonlyReducerState,\n _action: ReducerActions\n): ReducerState {\n return state\n}\n\n// we don't run the client reducer on the server, so we use a noop function for better tree shaking\nexport const reducer =\n typeof window === 'undefined' ? serverReducer : clientReducer\n"],"names":["reducer","clientReducer","state","action","type","ACTION_NAVIGATE","navigateReducer","ACTION_SERVER_PATCH","serverPatchReducer","ACTION_RESTORE","restoreReducer","ACTION_REFRESH","refreshReducer","ACTION_HMR_REFRESH","process","env","NODE_ENV","hmrRefreshReducer","require","Error","ACTION_SERVER_ACTION","serverActionReducer","serverReducer","_action","window"],"mappings":"AAwCUc,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BA2BtBhB,WAAAA;;;eAAAA;;;oCA5DN;iCAMyB;oCACG;gCACJ;gCACA;qCACK;AAEpC;;CAEC,GACD,SAASC,cACPC,KAA2B,EAC3BC,MAAsB;IAEtB,OAAQA,OAAOC,IAAI;QACjB,KAAKC,oBAAAA,eAAe;YAAE;gBACpB,OAAOC,CAAAA,GAAAA,iBAAAA,eAAe,EAACJ,OAAOC;YAChC;QACA,KAAKI,oBAAAA,mBAAmB;YAAE;gBACxB,OAAOC,CAAAA,GAAAA,oBAAAA,kBAAkB,EAACN,OAAOC;YACnC;QACA,KAAKM,oBAAAA,cAAc;YAAE;gBACnB,OAAOC,CAAAA,GAAAA,gBAAAA,cAAc,EAACR,OAAOC;YAC/B;QACA,KAAKQ,oBAAAA,cAAc;YAAE;gBACnB,OAAOC,CAAAA,GAAAA,gBAAAA,cAAc,EAACV,OAAOC;YAC/B;QACA,KAAKU,oBAAAA,kBAAkB;YAAE;gBACvB,wCAA4C;oBAC1C,MAAM,EAAEI,iBAAiB,EAAE,GACzBC,QAAQ;oBACV,OAAOD,kBAAkBf,OAAOC;gBAClC,OAAO;;YAKT;QACA,KAAKiB,oBAAAA,oBAAoB;YAAE;gBACzB,OAAOC,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACnB,OAAOC;YACpC;QACA,+DAA+D;QAC/D;YACE,MAAM,OAAA,cAA2B,CAA3B,IAAIgB,MAAM,mBAAV,qBAAA;uBAAA;4BAAA;8BAAA;YAA0B;IACpC;AACF;AAEA,SAASG,cACPpB,KAA2B,EAC3BqB,OAAuB;IAEvB,OAAOrB;AACT;AAGO,MAAMF,UACX,OAAOwB,WAAW,cAAcF,gBAAgBrB","ignoreList":[0]}},
{"offset": {"line": 7506, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-reducer/set-cache-busting-search-param.ts"],"sourcesContent":["'use client'\n\nimport {\n computeCacheBustingSearchParam,\n computeLegacyCacheBustingSearchParam,\n} from '../../../shared/lib/router/utils/cache-busting-search-param'\nimport {\n NEXT_ROUTER_PREFETCH_HEADER,\n NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,\n NEXT_ROUTER_STATE_TREE_HEADER,\n NEXT_URL,\n NEXT_RSC_UNION_QUERY,\n} from '../app-router-headers'\nimport type { RequestHeaders } from './fetch-server-response'\n\nasync function computeClientCacheBustingSearchParam(\n headers: RequestHeaders\n): Promise<string> {\n if (typeof globalThis.crypto?.subtle?.digest === 'function') {\n return computeCacheBustingSearchParam(\n headers[NEXT_ROUTER_PREFETCH_HEADER],\n headers[NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],\n headers[NEXT_ROUTER_STATE_TREE_HEADER],\n headers[NEXT_URL]\n )\n }\n\n return computeLegacyCacheBustingSearchParam(\n headers[NEXT_ROUTER_PREFETCH_HEADER],\n headers[NEXT_ROUTER_SEGMENT_PREFETCH_HEADER],\n headers[NEXT_ROUTER_STATE_TREE_HEADER],\n headers[NEXT_URL]\n )\n}\n\n/**\n * Mutates the provided URL by adding a cache-busting search parameter for CDNs that don't\n * support custom headers. This helps avoid caching conflicts by making each request unique.\n *\n * Rather than relying on the Vary header which some CDNs ignore, we append a search param\n * to create a unique URL that forces a fresh request.\n *\n * Example:\n * URL before: https://example.com/path?query=1\n * URL after: https://example.com/path?query=1&_rsc=abc123\n *\n * Note: This function mutates the input URL directly and resolves once the\n * cache-busting value has been computed and applied.\n *\n * TODO: Since we need to use a search param anyway, we could simplify by removing the custom\n * headers approach entirely and just use search params.\n */\nexport const setCacheBustingSearchParam = async (\n url: URL,\n headers: RequestHeaders\n): Promise<void> => {\n const uniqueCacheKey = await computeClientCacheBustingSearchParam(headers)\n setCacheBustingSearchParamWithHash(url, uniqueCacheKey)\n}\n\n/**\n * Sets a cache-busting search parameter on a URL using a provided hash value.\n *\n * This function performs the same logic as `setCacheBustingSearchParam` but accepts\n * a pre-computed hash instead of computing it from headers.\n *\n * Example:\n * URL before: https://example.com/path?query=1\n * hash: \"abc123\"\n * URL after: https://example.com/path?query=1&_rsc=abc123\n *\n * If the hash is empty, we will set `_rsc` search param without a value.\n * Like this: https://example.com/path?query=1&_rsc\n *\n * Note: This function mutates the input URL directly and does not return anything.\n */\nexport const setCacheBustingSearchParamWithHash = (\n url: URL,\n hash: string\n): void => {\n /**\n * Note that we intentionally do not use `url.searchParams.set` here:\n *\n * const url = new URL('https://example.com/search?q=custom%20spacing');\n * url.searchParams.set('_rsc', 'abc123');\n * console.log(url.toString()); // Outputs: https://example.com/search?q=custom+spacing&_rsc=abc123\n * ^ <--- this is causing confusion\n * This is in fact intended based on https://url.spec.whatwg.org/#interface-urlsearchparams, but\n * we want to preserve the %20 as %20 if that's what the user passed in, hence the custom\n * logic below.\n */\n const existingSearch = url.search\n const rawQuery = existingSearch.startsWith('?')\n ? existingSearch.slice(1)\n : existingSearch\n\n // Always remove any existing cache busting param and add a fresh one to ensure\n // we have the correct value based on current request headers\n const pairs = rawQuery\n .split('&')\n .filter((pair) => pair && !pair.startsWith(`${NEXT_RSC_UNION_QUERY}=`))\n\n if (hash.length > 0) {\n pairs.push(`${NEXT_RSC_UNION_QUERY}=${hash}`)\n } else {\n pairs.push(`${NEXT_RSC_UNION_QUERY}`)\n }\n url.search = pairs.length ? `?${pairs.join('&')}` : ''\n}\n"],"names":["setCacheBustingSearchParam","setCacheBustingSearchParamWithHash","computeClientCacheBustingSearchParam","headers","globalThis","crypto","subtle","digest","computeCacheBustingSearchParam","NEXT_ROUTER_PREFETCH_HEADER","NEXT_ROUTER_SEGMENT_PREFETCH_HEADER","NEXT_ROUTER_STATE_TREE_HEADER","NEXT_URL","computeLegacyCacheBustingSearchParam","url","uniqueCacheKey","hash","existingSearch","search","rawQuery","startsWith","slice","pairs","split","filter","pair","NEXT_RSC_UNION_QUERY","length","push","join"],"mappings":";;;;;;;;;;;;;;IAoDaA,0BAA0B,EAAA;eAA1BA;;IAwBAC,kCAAkC,EAAA;eAAlCA;;;yCAvEN;kCAOA;AAGP,eAAeC,qCACbC,OAAuB;IAEvB,IAAI,OAAOC,WAAWC,MAAM,EAAEC,QAAQC,WAAW,YAAY;QAC3D,OAAOC,CAAAA,GAAAA,yBAAAA,8BAA8B,EACnCL,OAAO,CAACM,kBAAAA,2BLine truncated
{"offset": {"line": 7573, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/router-transition.ts"],"sourcesContent":["import type {\n FlightRouterState,\n Segment,\n} from '../../shared/lib/app-router-types'\nimport {\n DEFAULT_SEGMENT_KEY,\n isGroupSegment,\n NOT_FOUND_SEGMENT_KEY,\n} from '../../shared/lib/segment'\nimport { segmentToSourcePagePathname } from './router-reducer/compute-changed-path'\nimport type {\n ClientInstrumentationHooks,\n ClientInstrumentationModules,\n RouterTransitionPrefetchIntent,\n RouterTransitionType,\n} from '../router-transition-types'\n\nlet instrumentationModules: readonly ClientInstrumentationHooks[] = []\nlet nextTransitionId = 0\n\nexport function initializeRouterTransitionModules(\n modules: ClientInstrumentationModules\n): void {\n instrumentationModules = modules.filter(\n (module): module is ClientInstrumentationHooks => module != null\n )\n}\n\nfunction callHooks(invoke: (hooks: ClientInstrumentationHooks) => void): void {\n for (const hooks of instrumentationModules) {\n try {\n invoke(hooks)\n } catch (error) {\n console.error(\n 'An instrumentation-client router transition hook failed',\n error\n )\n }\n }\n}\n\nfunction timestamp(): number {\n return performance.timeOrigin + performance.now()\n}\n\nexport function startRouterTransition(\n url: string,\n type: RouterTransitionType,\n fromTree: FlightRouterState,\n prefetchIntent: RouterTransitionPrefetchIntent | null\n): void {\n // Positive flag check so the instrumentation-only path is removed by DCE when disabled.\n if (process.env.__NEXT_INSTRUMENTATION_CLIENT_ROUTER_TRANSITION_EVENTS) {\n if (\n !instrumentationModules.some(\n (hooks) => typeof hooks.onRouterTransitionStart === 'function'\n )\n ) {\n return\n }\n\n const id = `${Date.now().toString(36)}-${(++nextTransitionId).toString(36)}`\n\n callHooks((hooks) =>\n hooks.onRouterTransitionStart?.(url, type, {\n id,\n timestamp: timestamp(),\n fromRoutes: getActiveRoutePaths(fromTree),\n prefetchIntent,\n })\n )\n } else {\n callHooks((hooks) => hooks.onRouterTransitionStart?.(url, type, null))\n }\n}\n\nfunction classifySegment(segment: Segment): {\n path: string | null\n isPage: boolean\n} {\n const sourceSegment = segmentToSourcePagePathname(segment)\n if (sourceSegment === 'page') {\n return { path: null, isPage: true }\n }\n if (\n sourceSegment === '' ||\n sourceSegment === '(__SLOT__)' ||\n isGroupSegment(sourceSegment)\n ) {\n return { path: null, isPage: false }\n }\n if (sourceSegment === DEFAULT_SEGMENT_KEY) {\n return { path: 'default', isPage: false }\n }\n if (sourceSegment === NOT_FOUND_SEGMENT_KEY) {\n return { path: '_not-found', isPage: false }\n }\n return { path: sourceSegment, isPage: false }\n}\n\nfunction getActiveRoutePaths(tree: FlightRouterState): string[] {\n const routes: Array<{ path: string; primary: boolean }> = []\n\n function visit(\n node: FlightRouterState,\n segments: string[],\n primary: boolean\n ): void {\n const segment = classifySegment(node[0])\n const nextSegments =\n segment.path === null ? segments : [...segments, segment.path]\n const parallelRoutes = node[1]\n const keys = Object.keys(parallelRoutes)\n\n if (keys.length === 0 || segment.isPage) {\n routes.push({\n path: `/${nextSegments.join('/')}`,\n primary,\n })\n return\n }\n\n if (parallelRoutes.children !== undefined) {\n visit(parallelRoutes.children, nextSegments, primary)\n }\n\n for (const key of keys.sort()) {\n if (key === 'children') {\n continue\n }\n visit(parallelRoutes[key], [...nextSegments, `@${key}`], false)\n }\n }\n\n visit(tree, [], true)\n return routes\n .sort((a, b) => {\n if (a.primary !== b.primary) {\n return a.primary ? -1 : 1\n }\n return a.path.localeCompare(b.path)\n })\n .map((route) => route.path)\n}\n"],"names":["initializeRouterTransitionModules","startRouterTransition","instrumentationModules","nextTransitionId","modules","filter","module","callHooks","invoke","hooks","error","console","timestamp","performance","timeOrigin","now","url","type","fromTree","prefetchIntent","process","env","__NEXT_INSTRUMENTATION_CLIENT_ROUTER_TRANSITION_EVENTS","some","onRouterTransitionStart","id","Date","toString","fromRoutes","getActiveRoutePaths","classifySegment","segment","sourceSegment","segmentToSourcePagePathname","path","isPage","isGroupSegment","DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","tree","routes","visit","node","segments","primary","nextSegments","parallelRoutes","keys","Object","length","push","join","children","undefined","key","sort","a","b","localeCompare","map","route"],"mappings":"AAoDMoB,QAAQC,GAAG,CAACC,sDAAsD,EAAE;;;;;;;;;;;;Line truncated
{"offset": {"line": 7703, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/bfcache.ts"],"sourcesContent":["import { DYNAMIC_STALETIME_MS } from '../router-reducer/reducers/navigate-reducer'\nimport type { SegmentVaryPath } from './vary-path'\n\n/**\n * Sentinel value indicating that no per-page dynamic stale time was provided.\n * When this is the dynamicStaleTime, the default DYNAMIC_STALETIME_MS is used.\n */\nexport const UnknownDynamicStaleTime = -1\n\n/**\n * Converts a dynamic stale time (in seconds, as sent by the server in the `d`\n * field of the Flight response) to an absolute staleAt timestamp. When the\n * value is unknown, falls back to the global DYNAMIC_STALETIME_MS.\n */\nexport function computeDynamicStaleAt(\n now: number,\n dynamicStaleTimeSeconds: number\n): number {\n return dynamicStaleTimeSeconds !== UnknownDynamicStaleTime\n ? now + dynamicStaleTimeSeconds * 1000\n : now + DYNAMIC_STALETIME_MS\n}\nimport {\n setInCacheMap,\n getFromCacheMap,\n EntryStatus,\n type UnknownMapEntry,\n type CacheMap,\n createCacheMap,\n} from './cache-map'\n\nexport type BFCacheEntry = {\n rsc: React.ReactNode | null\n prefetchRsc: React.ReactNode | null\n head: React.ReactNode | null\n prefetchHead: React.ReactNode | null\n\n // The bfcacheId of the CacheNode that wrote this entry. Restored on\n // history-traversal navigations so that `useRouter().bfcacheId` is stable\n // across back/forward, even without `cacheComponents` Activity preservation.\n bfcacheId: number\n\n ref: UnknownMapEntry | null\n size: number\n // The time at which this data was received. Used to compute the stale time\n // for dynamic prefetches (which use STATIC_STALETIME_MS instead of\n // DYNAMIC_STALETIME_MS). Stored explicitly because staleAt may be\n // overridden by a per-page unstable_dynamicStaleTime, which would break\n // any reverse calculation from staleAt.\n navigatedAt: number\n staleAt: number\n version: number\n // A BFCacheEntry always represents a completed navigation, so the status is\n // always Fulfilled. The field exists so that BFCacheEntry conforms to the\n // MapValue protocol.\n status: EntryStatus.Fulfilled\n}\n\nconst bfcacheMap: CacheMap<BFCacheEntry> = createCacheMap()\n\nlet currentBfCacheVersion = 0\n\nexport function invalidateBfCache(): void {\n if (typeof window === 'undefined') {\n return\n }\n currentBfCacheVersion++\n}\n\nexport function writeToBFCache(\n now: number,\n varyPath: SegmentVaryPath,\n rsc: React.ReactNode,\n prefetchRsc: React.ReactNode,\n head: React.ReactNode,\n prefetchHead: React.ReactNode,\n dynamicStaleAt: number,\n bfcacheId: number\n): void {\n if (typeof window === 'undefined') {\n return\n }\n\n const entry: BFCacheEntry = {\n rsc,\n prefetchRsc,\n\n // TODO: These fields will be removed from both BFCacheEntry and\n // SegmentCacheEntry. The head has its own separate cache entry.\n head,\n prefetchHead,\n\n bfcacheId,\n\n ref: null,\n // TODO: This is just a heuristic. Getting the actual size of the segment\n // isn't feasible because it's part of a larger streaming response. The\n // LRU will still evict it, we just won't have a fully accurate total\n // LRU size. However, we'll probably remove the size tracking from the LRU\n // entirely and use memory pressure events instead.\n size: 100,\n\n navigatedAt: now,\n\n // A back/forward navigation will disregard the stale time. This field is\n // only relevant when staleTimes.dynamic is enabled or unstable_dynamicStaleTime\n // is exported by a page.\n staleAt: dynamicStaleAt,\n version: currentBfCacheVersion,\n status: EntryStatus.Fulfilled,\n }\n const isRevalidation = false\n setInCacheMap(bfcacheMap, varyPath, entry, isRevalidation)\n}\n\nexport function writeHeadToBFCache(\n now: number,\n varyPath: SegmentVaryPath,\n head: React.ReactNode,\n prefetchHead: React.ReactNode,\n dynamicStaleAt: number,\n bfcacheId: number\n): void {\n // Read the special \"segment\" that represents the head data.\n writeToBFCache(\n now,\n varyPath,\n head,\n prefetchHead,\n null,\n null,\n dynamicStaleAt,\n bfcacheId\n )\n}\n\n/**\n * Update the staleAt of an existing BFCache entry. Used after a dynamic\n * response arrives with a per-page stale time from `unstable_dynamicStaleTime`.\n * The per-page value is authoritative — it overrides whatever staleAt was set\n * by the default DYNAMIC_STALETIME_MS.\n */\nexport function updateBFCacheEntryStaleAt(\n varyPath: SegmentVaryPath,\n newStaleAt: number\n): void {\n if (typeof window === 'undefined') {\n return\n }\n const isRevalidation = false\n // Read with staleness bypass (-1) so we can update even stale entries\n const entry = getFromCacheMap(\n -1,\n currentBfCacheVersion,\n bfcacheMap,\n varyPath,\n isRevalidatLine truncated
{"offset": {"line": 7834, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/cache-key.ts"],"sourcesContent":["// TypeScript trick to simulate opaque types, like in Flow.\ntype Opaque<K, T> = T & { __brand: K }\n\n// Only functions in this module should be allowed to create CacheKeys.\nexport type NormalizedPathname = Opaque<'NormalizedPathname', string>\nexport type NormalizedSearch = Opaque<'NormalizedSearch', string>\nexport type NormalizedNextUrl = Opaque<'NormalizedNextUrl', string>\n\nexport type RouteCacheKey = Opaque<\n 'RouteCacheKey',\n {\n pathname: NormalizedPathname\n search: NormalizedSearch\n nextUrl: NormalizedNextUrl | null\n\n // TODO: Eventually the dynamic params will be added here, too.\n }\n>\n\nexport function createCacheKey(\n originalHref: string,\n nextUrl: string | null\n): RouteCacheKey {\n const originalUrl = new URL(originalHref)\n const cacheKey = {\n pathname: originalUrl.pathname as NormalizedPathname,\n search: originalUrl.search as NormalizedSearch,\n nextUrl: nextUrl as NormalizedNextUrl | null,\n } as RouteCacheKey\n return cacheKey\n}\n\n/**\n * Splits a pathname into its non-empty parts. Equivalent to\n * `pathname.split('/').filter((p) => p !== '')` — empty tokens produced by\n * leading, trailing, or consecutive slashes are skipped.\n *\n * We use a manual loop instead of `split` + `filter` because\n * `String.prototype.split` can return arrays with either the packed or holey\n * elements kind depending on internal fast paths, and `filter`/`slice`\n * propagate the kind. Mixing holey and packed arrays at the same call sites\n * makes downstream array method loads (`slice`, `join`, `length`) polymorphic\n * and causes repeated \"wrong map\" deoptimizations in hot route-matching code.\n * Pushing into an array literal guarantees a packed elements kind.\n */\nexport function splitPathnameIntoParts(pathname: string): Array<string> {\n const parts: Array<string> = []\n let start = 0\n for (let i = 0; i < pathname.length; i++) {\n if (pathname.charCodeAt(i) === 47 /* '/' */) {\n if (i > start) {\n parts.push(pathname.slice(start, i))\n }\n start = i + 1\n }\n }\n if (start < pathname.length) {\n parts.push(pathname.slice(start))\n }\n return parts\n}\n"],"names":["createCacheKey","splitPathnameIntoParts","originalHref","nextUrl","originalUrl","URL","cacheKey","pathname","search","parts","start","i","length","charCodeAt","push","slice"],"mappings":"AAAA,2DAA2D;;;;;;;;;;;;;;;IAmB3CA,cAAc,EAAA;eAAdA;;IA0BAC,sBAAsB,EAAA;eAAtBA;;;AA1BT,SAASD,eACdE,YAAoB,EACpBC,OAAsB;IAEtB,MAAMC,cAAc,IAAIC,IAAIH;IAC5B,MAAMI,WAAW;QACfC,UAAUH,YAAYG,QAAQ;QAC9BC,QAAQJ,YAAYI,MAAM;QAC1BL,SAASA;IACX;IACA,OAAOG;AACT;AAeO,SAASL,uBAAuBM,QAAgB;IACrD,MAAME,QAAuB,EAAE;IAC/B,IAAIC,QAAQ;IACZ,IAAK,IAAIC,IAAI,GAAGA,IAAIJ,SAASK,MAAM,EAAED,IAAK;QACxC,IAAIJ,SAASM,UAAU,CAACF,OAAO,GAAG,OAAO,KAAI;YAC3C,IAAIA,IAAID,OAAO;gBACbD,MAAMK,IAAI,CAACP,SAASQ,KAAK,CAACL,OAAOC;YACnC;YACAD,QAAQC,IAAI;QACd;IACF;IACA,IAAID,QAAQH,SAASK,MAAM,EAAE;QAC3BH,MAAMK,IAAI,CAACP,SAASQ,KAAK,CAACL;IAC5B;IACA,OAAOD;AACT","ignoreList":[0]}},
{"offset": {"line": 7892, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/cache-map.ts"],"sourcesContent":["import type { VaryPath } from './vary-path'\nimport { lruPut, updateLruSize, deleteFromLru } from './lru'\n\n/**\n * A specialized data type for storing multi-key cache entries.\n *\n * The basic structure is a map whose keys are tuples, called the keypath.\n * When querying the cache, keypaths are compared per-element.\n *\n * Example:\n * set(map, ['https://localhost', 'foo/bar/baz'], 'yay');\n * get(map, ['https://localhost', 'foo/bar/baz']) -> 'yay'\n *\n * NOTE: Array syntax is used in these examples for illustration purposes, but\n * in reality the paths are lists.\n * \n * The parts of the keypath represent the different inputs that contribute\n * to the entry value. To illustrate, if you were to use this data type to store\n * HTTP responses, the keypath would include the URL and everything listed by\n * the Vary header.\n * \n * See vary-path.ts for more details.\n *\n * The order of elements in a keypath must be consistent between lookups to\n * be considered the same, but besides that, the order of the keys is not\n * semantically meaningful.\n *\n * Keypaths may include a special kind of key called Fallback. When an entry is\n * stored with Fallback as part of its keypath, it means that the entry does not\n * vary by that key. When querying the cache, if an exact match is not found for\n * a keypath, the cache will check for a Fallback match instead. Each element of\n * the keypath may have a Fallback, so retrieval is an O(n ^ 2) operation, but\n * it's expected that keypaths are relatively short.\n *\n * Example:\n * set(cacheMap, ['store', 'product', 1], PRODUCT_PAGE_1);\n * set(cacheMap, ['store', 'product', Fallback], GENERIC_PRODUCT_PAGE);\n *\n * // Exact match\n * get(cacheMap, ['store', 'product', 1]) -> PRODUCT_PAGE_1\n *\n * // Fallback match\n * get(cacheMap, ['store', 'product', 2]) -> GENERIC_PRODUCT_PAGE\n *\n * Because we have the Fallback mechanism, we can impose a constraint that\n * regular JS maps do not have: a value cannot be stored at multiple keypaths\n * simultaneously. These cases should be expressed with Fallback keys instead.\n *\n * Additionally, because values only exist at a single keypath at a time, we\n * can optimize successive lookups by caching the internal map entry on the\n * value itself, using the `ref` field. This is especially useful because it\n * lets us skip the O(n ^ 2) lookup that occurs when Fallback entries\n * are present.\n *\n\n * How to decide if stuff belongs in here, or in cache.ts?\n * -------------------------------------------------------\n * \n * Anything to do with retrival, lifetimes, or eviction needs to go in this\n * module because it affects the fallback algorithm. For example, when\n * performing a lookup, if an entry is stale, it needs to be treated as\n * semantically equivalent to if the entry was not present at all.\n * \n * If there's logic that's not related to the fallback algorithm, though, we\n * should prefer to put it in cache.ts.\n */\n\n/**\n * Tracks the status of a cache entry as it progresses from no data (Empty),\n * waiting for server data (Pending), and finished (either Fulfilled or\n * Rejected depending on the response from the server.\n *\n * This is defined here, rather than in cache.ts, because cache-map.ts needs to\n * inspect the status when performing a `onlyMatchFulfilled` lookup.\n */\nexport const enum EntryStatus {\n Empty = 0,\n Pending = 1,\n Fulfilled = 2,\n Rejected = 3,\n}\n\n// The protocol that values must implement. In practice, the only types that\n// we ever actually deal with in this module are RouteCacheEntry,\n// SegmentCacheEntry, and BFCacheEntry; this is just to keep track of the\n// coupling so we don't leak concerns between the modules unnecessarily.\nexport interface MapValue {\n ref: UnknownMapEntry | null\n size: number\n staleAt: number\n version: number\n status: EntryStatus\n}\n\n/**\n * Represents a node in the cache map and LRU.\n * MapEntry<V> structurally satisfies this interface for any V extends MapValue.\n *\n * The LRU can contain entries of different value types\n * (e.g., both RouteCacheEntry and SegmentCacheEntry). This interface captures\n * the common structure needed for cache map and LRU operations without\n * requiring knowledge of the specific value type.\n */\nexport interface MapEntry<V extends MapValue> {\n // Cache map structure fields\n parent: MapEntry<V> | null\n key: unknown\n map: Map<unknown, MapEntry<V>> | null\n value: V | null\n\n // LRU linked list fields\n prev: MapEntry<V> | null\n next: MapEntry<V> | null\n size: number\n}\n\n/**\n * A looser type for MapEntry\n * This allows the LRU to work with entries of different\n * value types while still providing type safety.\n *\n * The `map` field lets Map<unknown, MapLine truncated
{"offset": {"line": 8219, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/cache.ts"],"sourcesContent":["import type {\n TreePrefetch,\n RootTreePrefetch,\n SegmentPrefetchResponse,\n} from '../../../server/app-render/collect-segment-data'\nimport type {\n CacheNodeSeedData,\n FlightData,\n Segment as FlightRouterStateSegment,\n} from '../../../shared/lib/app-router-types'\nimport { PrefetchHint } from '../../../shared/lib/app-router-types'\nimport {\n readVaryParams,\n type VaryParams,\n type VaryParamsIterable,\n} from '../../../shared/lib/segment-cache/vary-params-decoding'\nimport {\n NEXT_DID_POSTPONE_HEADER,\n NEXT_ROUTER_PREFETCH_HEADER,\n NEXT_ROUTER_SEGMENT_PREFETCH_HEADER,\n NEXT_ROUTER_STALE_TIME_HEADER,\n NEXT_ROUTER_STATE_TREE_HEADER,\n NEXT_URL,\n RSC_CONTENT_TYPE_HEADER,\n RSC_HEADER,\n} from '../app-router-headers'\nimport {\n createFetch,\n createFromNextReadableStream,\n decodeBufferedStage,\n resolveShellStageData,\n type RSCResponse,\n type RequestHeaders,\n} from '../router-reducer/fetch-server-response'\nimport { fetch } from './fetch'\nimport {\n pingPrefetchTask,\n isPrefetchTaskDirty,\n type PrefetchTask,\n type PrefetchSubtaskResult,\n} from './scheduler'\nimport type { NavigationLockPrefetch } from './navigation-testing-lock'\nimport {\n type RouteVaryPath,\n type SegmentVaryPath,\n type PartialSegmentVaryPath,\n getRouteVaryPath,\n getFulfilledRouteVaryPath,\n getFulfilledSegmentVaryPath,\n getSegmentVaryPathForRequest,\n getShellSegmentVaryPath,\n appendLayoutVaryPath,\n finalizeLayoutVaryPath,\n finalizePageVaryPath,\n clonePageVaryPathWithNewSearchParams,\n type PageVaryPath,\n type LayoutVaryPath,\n finalizeMetadataVaryPath,\n getPartialPageVaryPath,\n getPartialLayoutVaryPath,\n getRenderedSearchFromVaryPath,\n} from './vary-path'\nimport { createHrefFromUrl } from '../router-reducer/create-href-from-url'\nimport type {\n NormalizedPathname,\n NormalizedSearch,\n NormalizedNextUrl,\n RouteCacheKey,\n} from './cache-key'\nimport { createCacheKey as createPrefetchRequestKey } from './cache-key'\nimport { splitPathnameIntoParts } from './cache-key'\nimport {\n doesStaticSegmentAppearInURL,\n getCacheKeyForDynamicParam,\n getRenderedPathname,\n getRenderedSearch,\n parseDynamicParamFromURLPart,\n} from '../../route-params'\nimport {\n createCacheMap,\n getFromCacheMap,\n setInCacheMap,\n setSizeInCacheMap,\n deleteFromCacheMap,\n isValueExpired,\n EntryStatus,\n type CacheMap,\n type UnknownMapEntry,\n} from './cache-map'\nexport { EntryStatus } from './cache-map'\nimport {\n appendSegmentRequestKeyPart,\n convertSegmentPathToStaticExportFilename,\n createSegmentRequestKeyPart,\n HEAD_REQUEST_KEY,\n ROOT_SEGMENT_REQUEST_KEY,\n type SegmentRequestKey,\n} from '../../../shared/lib/segment-cache/segment-value-encoding'\nimport type {\n FlightRouterState,\n NavigationFlightResponse,\n} from '../../../shared/lib/app-router-types'\nimport {\n type NormalizedFlightData,\n normalizeFlightData,\n prepareFlightRouterStateForRequest,\n} from '../../flight-data-helpers'\nimport { STATIC_STALETIME_MS } from '../router-reducer/reducers/navigate-reducer'\nimport { pingVisibleLinks } from '../links'\nimport { PAGE_SEGMENT_KEY } from '../../../shared/lib/segment'\nimport { FetchStrategy } from './types'\nimport { createPromiseWithResolvers } from '../../../shared/lib/promise-with-resolvers'\nimport { readFromBFCache, UnknownDynamicStaleTime } from './bfcache'\nimport { discoverKnownRoute, matchKnownRoute } from './optimistic-routes'\nimport { convertServerPatchToFullTree, type NavigationSeed } from './navigation'\nimport { getNavigationBuildId } from '../../navigation-build-id'\nimport { NEXT_NAV_DEPLOYMENT_ID_HEADER } from '../../../lib/constants'\n\n/**\n * Ensures a minimum stale time of 30s to avoid issues where the server sends a too\n * short-lived stale time, which would prevent anything from being prefetched.\n */\nexport function getStaleTimeMs(staleTimeSeconds: number): number {\n return Math.max(staleTimeSeconds, 30) * 1000\n}\n\n// A note on async/await when working in the prefetch cache:\n//\n// Most async operations in the prefetch cache should *not* use async/await,\n// Instead, spawn a subtask that writes the results to a cache entry, and attach\n// a \"ping\" listener to notify the prefetch queue to try again.\n//\n// The reason is we need to be able to access the segment cache and traverse its\n// data structures synchronously. For example, if there's a synchronous update\n// we can take an immediate snapshot of the cache to produce something we can\n// render. Limiting the use of async/await also makes it easier to avoid race\n// conditions, which is especially important because is cache is mutable.\n//\n// Another reason is that while we're performing async work, it's possible for\n// existing entries to becomLine truncated
{"offset": {"line": 10833, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/fetch.ts"],"sourcesContent":["import { getPreLockFetch } from './navigation-testing-lock'\n\n/**\n * Internal `fetch` used by the Next.js client router.\n *\n * When the Instant Navigation Testing API is enabled, the navigation lock may\n * install a blocking override on `window.fetch` for the duration of a lock\n * scope. To let internal fetches bypass the lock, callers go through a wrapper\n * that falls back to the pre-lock fetch captured at lock-acquire time.\n *\n * When the testing API is not enabled, this calls window.fetch directly.\n */\nfunction fetchInternal(\n input: RequestInfo | URL,\n init?: RequestInit\n): Promise<Response> {\n if (process.env.__NEXT_EXPOSE_TESTING_API) {\n const preLockFetch = getPreLockFetch()\n if (preLockFetch !== null) {\n return preLockFetch(input, init)\n }\n }\n return fetch(input, init)\n}\n\nexport { fetchInternal as fetch }\n"],"names":["fetch","fetchInternal","input","init","process","env","__NEXT_EXPOSE_TESTING_API","preLockFetch","getPreLockFetch"],"mappings":"AAgBMI,QAAQC,GAAG,CAACC,yBAAyB;;;;;+BASjBN,SAAAA;;;eAAjBC;;;uCAzBuB;AAEhC;;;;;;;;;CASC,GACD,SAASA,cACPC,KAAwB,EACxBC,IAAkB;IAElB,wCAA2C;QACzC,MAAMI,eAAeC,CAAAA,GAAAA,uBAAAA,eAAe;QACpC,IAAID,iBAAiB,MAAM;YACzB,OAAOA,aAAaL,OAAOC;QAC7B;IACF;IACA,OAAOH,MAAME,OAAOC;AACtB","ignoreList":[0]}},
{"offset": {"line": 10874, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/lru.ts"],"sourcesContent":["import { deleteMapEntry } from './cache-map'\nimport type { UnknownMapEntry } from './cache-map'\nimport { pingPrefetchScheduler } from './scheduler'\n\n// We use an LRU for memory management. We must update this whenever we add or\n// remove a new cache entry, or when an entry changes size.\n\nlet head: UnknownMapEntry | null = null\nlet lruSize: number = 0\n\n// TODO: I chose the max size somewhat arbitrarily. Consider setting this based\n// on navigator.deviceMemory, or some other heuristic. We should make this\n// customizable via the Next.js config, too.\nconst maxLruSize = 50 * 1024 * 1024 // 50 MB\n\nexport function lruPut(node: UnknownMapEntry) {\n if (head === node) {\n // Already at the head\n return\n }\n const prev = node.prev\n const next = node.next\n if (next === null || prev === null) {\n // This is an insertion\n lruSize += node.size\n // Whenever we add an entry, we need to check if we've exceeded the\n // max size. We don't evict entries immediately; they're evicted later in\n // an asynchronous task.\n ensureCleanupIsScheduled()\n } else {\n // This is a move. Remove from its current position.\n prev.next = next\n next.prev = prev\n }\n\n // Move to the front of the list\n if (head === null) {\n // This is the first entry\n node.prev = node\n node.next = node\n } else {\n // Add to the front of the list\n const tail = head.prev\n node.prev = tail\n // In practice, this is never null, but that isn't encoded in the type\n if (tail !== null) {\n tail.next = node\n }\n node.next = head\n head.prev = node\n }\n head = node\n}\n\nexport function updateLruSize(node: UnknownMapEntry, newNodeSize: number) {\n // This is a separate function from `put` so that we can resize the entry\n // regardless of whether it's currently being tracked by the LRU.\n const prevNodeSize = node.size\n node.size = newNodeSize\n if (node.next === null) {\n // This entry is not currently being tracked by the LRU.\n return\n }\n // Update the total LRU size\n lruSize = lruSize - prevNodeSize + newNodeSize\n ensureCleanupIsScheduled()\n}\n\nexport function deleteFromLru(deleted: UnknownMapEntry) {\n const next = deleted.next\n const prev = deleted.prev\n if (next !== null && prev !== null) {\n lruSize -= deleted.size\n\n deleted.next = null\n deleted.prev = null\n\n // Remove from the list\n if (head === deleted) {\n // Update the head\n if (next === head) {\n // This was the last entry\n head = null\n } else {\n head = next\n prev.next = next\n next.prev = prev\n }\n } else {\n prev.next = next\n next.prev = prev\n }\n } else {\n // Already deleted\n }\n}\n\nfunction ensureCleanupIsScheduled() {\n if (lruSize <= maxLruSize) {\n return\n }\n\n // To schedule cleanup, ping the prefetch scheduler. At the end of its work\n // loop, once there are no queued tasks and no in-progress requests, it will\n // call cleanup().\n pingPrefetchScheduler()\n}\n\nexport function cleanup() {\n if (lruSize <= maxLruSize) {\n return\n }\n\n // Evict entries until we're at 90% capacity. We can assume this won't\n // infinite loop because even if `maxLruSize` were 0, eventually\n // `deleteFromLru` sets `head` to `null` when we run out entries.\n const ninetyPercentMax = maxLruSize * 0.9\n while (lruSize > ninetyPercentMax && head !== null) {\n const tail = head.prev\n // In practice, this is never null, but that isn't encoded in the type\n if (tail !== null) {\n // Delete the entry from the map. In turn, this will remove it from\n // the LRU.\n deleteMapEntry(tail)\n }\n }\n}\n"],"names":["cleanup","deleteFromLru","lruPut","updateLruSize","head","lruSize","maxLruSize","node","prev","next","size","ensureCleanupIsScheduled","tail","newNodeSize","prevNodeSize","deleted","pingPrefetchScheduler","ninetyPercentMax","deleteMapEntry"],"mappings":";;;;;;;;;;;;;;;;IA4GgBA,OAAO,EAAA;eAAPA;;IAxCAC,aAAa,EAAA;eAAbA;;IArDAC,MAAM,EAAA;eAANA;;IAuCAC,aAAa,EAAA;eAAbA;;;0BAtDe;2BAEO;AAEtC,8EAA8E;AAC9E,2DAA2D;AAE3D,IAAIC,OAA+B;AACnC,IAAIC,UAAkB;AAEtB,+EAA+E;AAC/E,0EAA0E;AAC1E,4CAA4C;AAC5C,MAAMC,aAAa,KAAK,OAAO,KAAK,QAAQ;;AAErC,SAASJ,OAAOK,IAAqB;IAC1C,IAAIH,SAASG,MAAM;QACjB,sBAAsB;QACtB;IACF;IACA,MAAMC,OAAOD,KAAKC,IAAI;IACtB,MAAMC,OAAOF,KAAKE,IAAI;IACtB,IAAIA,SAAS,QAAQD,SAAS,MAAM;QAClC,uBAAuB;QACvBH,WAAWE,KAAKG,IAAI;QACpB,mEAAmE;QACnE,yEAAyE;QACzE,wBAAwB;QACxBC;IACF,OAAO;QACL,oDAAoD;QACpDH,KAAKC,IAAI,GAAGA;QACZA,KAAKD,IAAI,GAAGA;IACd;IAEA,gCAAgC;IAChC,IAAIJ,SAAS,MAAM;QACjB,0BAA0B;QAC1BG,KAAKC,IAAI,GAAGD;QACZA,KAAKE,IAAI,GAAGF;IACd,OAAO;QACL,+BAA+B;QAC/B,MAAMK,OAAOR,KAAKI,IAAI;QACtBD,KAAKC,IAAI,GAAGI;QACZ,sEAAsE;QACtE,IAAIA,SAAS,MAAM;Line truncated
{"offset": {"line": 11028, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/navigation-testing-lock.ts"],"sourcesContent":["/**\n * Navigation lock for the Instant Navigation Testing API.\n *\n * Manages the in-memory lock (a promise) that gates dynamic data writes\n * during instant navigation captures, and owns all cookie state\n * transitions (pending → captured-MPA, pending → captured-SPA).\n *\n * External actors (Playwright, devtools) set [0] to start a lock scope\n * and delete the cookie to end one. Next.js writes captured values.\n * The CookieStore handler distinguishes them by value: pending = external,\n * captured = self-write (ignored).\n *\n * This module assumes the Instant Navigation Testing API is enabled. When it\n * is disabled, the bundler resolves this module to\n * `./navigation-testing-lock.disabled` instead (see\n * `create-compiler-aliases.ts` for webpack and\n * `crates/next-core/src/next_import_map.rs` for Turbopack), so none of this\n * code ships in the browser bundle.\n */\n\nimport {\n PrefetchHint,\n type FlightRouterState,\n type InstantCookie,\n} from '../../../shared/lib/app-router-types'\nimport { NEXT_INSTANT_TEST_COOKIE } from '../app-router-headers'\nimport { refreshOnInstantNavigationUnlock } from '../use-action-queue'\nimport { subtreeHasSpeculativePrefetch } from './scheduler'\nimport {\n waitForSegmentCacheEntry,\n type PendingSegmentCacheEntry,\n type SegmentCacheEntry,\n} from './cache'\nimport type { FetchStrategy } from './types'\n\ntype InstantNavCookieState = 'empty' | 'pending' | 'mpa' | 'spa'\n\nfunction parseCookieValue(raw: string): InstantNavCookieState {\n if (raw === '') {\n return 'empty'\n }\n try {\n const parsed = JSON.parse(raw)\n if (Array.isArray(parsed)) {\n if (parsed.length >= 3) {\n const rawState = parsed[2]\n return rawState === null ? 'mpa' : 'spa'\n }\n }\n } catch {}\n return 'pending'\n}\n\nfunction writeDocumentCookie(\n value: InstantCookie,\n options: { domain?: string | null; path?: string | null }\n): void {\n if (typeof document === 'undefined') {\n return\n }\n let cookie = `${NEXT_INSTANT_TEST_COOKIE}=${JSON.stringify(value)}; Path=${\n options.path ?? '/'\n }`\n if (options.domain) {\n cookie += `; Domain=${options.domain}`\n }\n document.cookie = cookie\n}\n\nfunction writeCookieValue(value: InstantCookie): void {\n if (typeof cookieStore === 'undefined') {\n return\n }\n // Read the existing cookie to preserve its attributes (domain, path), then\n // write back with the new value. This updates the same cookie entry that the\n // external actor created, regardless of how it was scoped. The read goes\n // through `cookieStore.get` because `document.cookie` exposes only names and\n // values, not the domain/path we need to preserve. The write goes through\n // document.cookie because WebKit exposes Cookie Store on localhost but does\n // not commit cookies written through cookieStore.set() there.\n //\n // Capture the current lockState and compare it in the callback so we only\n // write if the lock we observed at call time is still held. This guards\n // against two races: (a) the scope ended between get and set (lockState is\n // now null), and (b) the scope ended and a new one was acquired in the same\n // gap (lockState is a different object). In either case we must not write —\n // doing so would leak stale state into the next scope or outlive the current\n // one. It cannot close one window, though: the callback can run after an\n // external delete but before the deleted-event handler nulls lockState, so\n // the guard still passes and we resurrect the cookie. The deleted handler\n // clears any such entry once the lock is released (see the `event.deleted`\n // loop below).\n const lockAtCall = lockState\n cookieStore.get(NEXT_INSTANT_TEST_COOKIE).then((existing: any) => {\n if (existing && lockState === lockAtCall && lockAtCall !== null) {\n writeDocumentCookie(value, existing)\n }\n })\n}\n\n/**\n * The \"wait for the locked navigation's prefetch to fulfill\" state for a single\n * locked navigation. `promise` resolves once that prefetch has spawned every\n * request and all of them have fulfilled, so the navigation reads present data\n * rather than a still-in-flight entry. Owned by the prefetch task (one per\n * navigation, so successive navigations in a scope resolve independently) and\n * also tracked in `NavigationLockState.activePrefetches` so the lock can\n * force-resolve any that are still pending when it's released.\n *\n * `pendingCount` holds one reference for the scheduler while it is still\n * spawning, plus one per in-flight entry; `promise` resolves when it drains to\n * 0. `trackedEntries` dedupes entry registration.\n */\nexport type NavigationLockPrefetch = {\n promise: Promise<void>\n resolve: () Line truncated
{"offset": {"line": 11485, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/navigation.ts"],"sourcesContent":["import type {\n CacheNodeSeedData,\n FlightRouterState,\n FlightSegmentPath,\n ScrollRef,\n} from '../../../shared/lib/app-router-types'\nimport type { CacheNode } from '../../../shared/lib/app-router-types'\nimport type { HeadData } from '../../../shared/lib/app-router-types'\nimport {\n PrefetchHint,\n SubtreePrefetchHints,\n propagateSubtreeBits,\n} from '../../../shared/lib/app-router-types'\nimport type { NormalizedFlightData } from '../../flight-data-helpers'\nimport { fetchServerResponse } from '../router-reducer/fetch-server-response'\nimport {\n startPPRNavigation,\n spawnDynamicRequests,\n FreshnessPolicy,\n beginLockedNavigation,\n type NavigationLock,\n type NavigationRequestAccumulation,\n} from '../router-reducer/ppr-navigations'\nimport { createHrefFromUrl } from '../router-reducer/create-href-from-url'\nimport { NEXT_NAV_DEPLOYMENT_ID_HEADER } from '../../../lib/constants'\nimport {\n EntryStatus,\n readRouteCacheEntry,\n deprecated_requestOptimisticRouteCacheEntry,\n convertRootFlightRouterStateToRouteTree,\n resolveStaleAt,\n writePrerenderResponseIntoCache,\n processRuntimePrefetchStream,\n writeDynamicRenderResponseIntoCache,\n type RouteTree,\n type FulfilledRouteCacheEntry,\n} from './cache'\nimport { discoverKnownRoute } from './optimistic-routes'\nimport { createCacheKey, type NormalizedSearch } from './cache-key'\nimport { schedulePrefetchTask } from './scheduler'\nimport { PrefetchPriority, FetchStrategy } from './types'\nimport { getLinkForCurrentNavigation } from '../links'\nimport type { PageVaryPath } from './vary-path'\nimport type { AppRouterState } from '../router-reducer/router-reducer-types'\nimport { ScrollBehavior } from '../router-reducer/router-reducer-types'\nimport { computeChangedPath } from '../router-reducer/compute-changed-path'\nimport { isJavaScriptURLString } from '../../lib/javascript-url'\nimport { UnknownDynamicStaleTime, computeDynamicStaleAt } from './bfcache'\nimport { createLinkPrefetchPartialError } from '../../../shared/lib/instant-messages'\n\n/**\n * Navigate to a new URL, using the Segment Cache to construct a response.\n *\n * To allow for synchronous navigations whenever possible, this is not an async\n * function. It returns a promise only if there's no matching prefetch in\n * the cache. Otherwise it returns an immediate result and uses Suspense/RSC to\n * stream in any missing data.\n */\nexport function navigate(\n state: AppRouterState,\n url: URL,\n currentUrl: URL,\n currentRenderedSearch: string,\n currentCacheNode: CacheNode | null,\n currentFlightRouterState: FlightRouterState,\n nextUrl: string | null,\n freshnessPolicy: FreshnessPolicy,\n scrollBehavior: ScrollBehavior,\n navigateType: 'push' | 'replace'\n): AppRouterState | Promise<AppRouterState> {\n let navigationLock: NavigationLock | null = null\n\n // Instant Navigation Testing API: when the lock is active, ensure a\n // prefetch task has been initiated before proceeding with the navigation.\n // This guarantees that segment data requests are at least pending, even\n // for routes that already have a cached route tree. Without this, the\n // shell might be incomplete because some segments were never\n // requested.\n if (process.env.__NEXT_EXPOSE_TESTING_API) {\n const { isNavigationLocked } =\n require('./navigation-testing-lock') as typeof import('./navigation-testing-lock')\n if (isNavigationLocked()) {\n // Signal that a new locked navigation is starting. This force-resolves the\n // previous locked navigation's withheld data (so a reused shared segment\n // no longer carries a pending deferred rsc) and returns this navigation's\n // own withheld-data gate.\n navigationLock = beginLockedNavigation()\n return ensurePrefetchThenNavigate(\n state,\n url,\n currentUrl,\n currentRenderedSearch,\n currentCacheNode,\n currentFlightRouterState,\n nextUrl,\n freshnessPolicy,\n scrollBehavior,\n navigateType,\n navigationLock\n )\n }\n }\n\n return navigateImpl(\n state,\n url,\n currentUrl,\n currentRenderedSearch,\n currentCacheNode,\n currentFlightRouterState,\n nextUrl,\n freshnessPolicy,\n scrollBehavior,\n navigateType,\n navigationLock\n )\n}\n\nfunction navigateImpl(\n state: AppRouterState,\n url: URL,\n currentUrl: URL,\n currentRenderedSearch: string,\n currentCacheNode: CacheNode | null,\n currentFlightRouterState: FlightRouterState,\n nextUrl: string | null,\n freshnessPolicy: FreshnessPolicy,\n scrollBehavior: ScrollBehavior,\n navigateType: 'push' | 'replace',\n navigationLock: NavigationLock | null\n): AppRouterState | Promise<AppRouterState> {\n const now Line truncated
{"offset": {"line": 12126, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/optimistic-routes.ts"],"sourcesContent":["/**\n * Optimistic Routing (Known Routes)\n *\n * This module enables the client to predict route structure for URLs that\n * haven't been prefetched yet, based on previously learned route patterns.\n * When successful, this allows skipping the route tree prefetch request\n * entirely.\n *\n * The core idea is that many URLs map to the same route structure. For example,\n * /blog/post-1 and /blog/post-2 both resolve to /blog/[slug]. Once we've\n * prefetched one, we can predict the structure of the other.\n *\n * However, we can't always make this prediction. Static siblings (like\n * /blog/featured alongside /blog/[slug]) have different route structures.\n * When we learn a dynamic route, we also learn its static siblings so we\n * know when NOT to apply the prediction.\n *\n * Main entry points:\n *\n * 1. discoverKnownRoute: Called after receiving a route tree from the server.\n * Traverses the route tree, compares URL parts to segments, and populates\n * the known route tree if they match. Routes are always inserted into the\n * cache.\n *\n * 2. matchKnownRoute: Called when looking up a route with no cache entry.\n * Matches the candidate URL against learned patterns. Returns a synthetic\n * cache entry if successful, or null to fall back to server resolution.\n *\n * Rewrite detection happens during traversal: if a URL path part doesn't match\n * the corresponding route segment, we stop populating the known route tree\n * (since the mapping is incorrect) but still insert the route into the cache.\n *\n * The known route tree is append-only with no eviction. Route patterns are\n * derived from the filesystem, so they don't become stale within a session.\n * Cache invalidation on deploy clears everything anyway.\n *\n * Current limitations (deopt to server resolution):\n * - Rewrites: Detected during traversal (tree not populated, but route cached)\n * - Intercepted routes: The route tree varies by referrer (Next-Url header),\n * so we can't predict the correct structure from the URL alone. Patterns are\n * still stored during discovery (so the trie stays populated for non-\n * intercepted siblings), but matching bails out when the pattern is marked\n * as interceptable.\n */\n\nimport type { DynamicParamTypesShort } from '../../../shared/lib/app-router-types'\nimport { PrefetchHint } from '../../../shared/lib/app-router-types'\nimport type { RouteTree, FulfilledRouteCacheEntry } from './cache'\nimport {\n EntryStatus,\n writeRouteIntoCache,\n fulfillRouteCacheEntry,\n getCurrentRouteCacheVersion,\n type PendingRouteCacheEntry,\n createMetadataRouteTree,\n} from './cache'\nimport { isValueExpired } from './cache-map'\nimport { doesStaticSegmentAppearInURL } from '../../route-params'\nimport type { NormalizedPathname, NormalizedSearch } from './cache-key'\nimport { splitPathnameIntoParts } from './cache-key'\nimport {\n appendLayoutVaryPath,\n finalizeLayoutVaryPath,\n finalizePageVaryPath,\n finalizeMetadataVaryPath,\n getShellSegmentVaryPath,\n type PartialSegmentVaryPath,\n type PageVaryPath,\n} from './vary-path'\n\n/**\n * The known route tree is analogous to a route table. A different routing\n * implementation might use regexes or URLPattern; ours uses a trie indexed\n * by URL path segments.\n *\n * Each node (KnownRoutePart) represents a position in the URL and can have:\n * - staticChildren: Map of literal segments to child nodes\n * - dynamicChild: A single dynamic segment node ([slug], [...params], etc.)\n * - pattern: A cache entry template for routes that terminate here\n *\n * This tree only contains segments that correspond to actual filesystem routes.\n * Route groups like (marketing) and parallel routes like @modal are not\n * included since they don't appear in URLs. Similarly, if a URL is rewritten\n * to a different filesystem path, the original URL segments don't appear here\n * — only the resolved filesystem route structure is stored.\n *\n * Example tree after learning /blog/[slug], /blog/featured, and /about:\n *\n * ├── about\n * └── blog\n * ├── featured\n * └── [slug]\n *\n * When matching /blog/hello:\n * 1. \"blog\" matches static child\n * 2. \"hello\" doesn't match \"featured\", falls through to [slug]\n * 3. Returns [slug]'s pattern with resolved param { slug: \"hello\" }\n */\ntype KnownRoutePartBase = {\n // Known static paths at this level. The null vs Map distinction is\n // semantically meaningful:\n // - null: Static siblings are UNKNOWN at this level (e.g., webpack dev mode\n // where routes are compiled on-demand). If there's a dynamicChild, we\n // can't safely match it because the URL might be an unknown static sibling.\n // - Map (even if empty): Static siblingLine truncated
{"offset": {"line": 12720, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/prefetch.ts"],"sourcesContent":["import type { FlightRouterState } from '../../../shared/lib/app-router-types'\nimport { createPrefetchURL } from '../app-router-utils'\nimport { createCacheKey } from './cache-key'\nimport { schedulePrefetchTask } from './scheduler'\nimport { PrefetchPriority, type PrefetchTaskFetchStrategy } from './types'\n\n/**\n * Entrypoint for prefetching a URL into the Segment Cache.\n * @param href - The URL to prefetch. Typically this will come from a <Link>,\n * or router.prefetch. It must be validated before we attempt to prefetch it.\n * @param nextUrl - A special header used by the server for interception routes.\n * Roughly corresponds to the current URL.\n * @param treeAtTimeOfPrefetch - The FlightRouterState at the time the prefetch\n * was requested. This is only used when PPR is disabled.\n * @param fetchStrategy - Whether to prefetch dynamic data, in addition to\n * static data. This is used by `<Link prefetch={true}>`.\n * @param onInvalidate - A callback that will be called when the prefetch cache\n * When called, it signals to the listener that the data associated with the\n * prefetch may have been invalidated from the cache. This is not a live\n * subscription — it's called at most once per `prefetch` call. The only\n * supported use case is to trigger a new prefetch inside the listener, if\n * desired. It also may be called even in cases where the associated data is\n * still cached. Prefetching is a poll-based (pull) operation, not an event-\n * based (push) one. Rather than subscribe to specific cache entries, you\n * occasionally poll the prefetch cache to check if anything is missing.\n */\nexport function prefetch(\n href: string,\n nextUrl: string | null,\n treeAtTimeOfPrefetch: FlightRouterState,\n fetchStrategy: PrefetchTaskFetchStrategy,\n onInvalidate: null | (() => void)\n) {\n const url = createPrefetchURL(href)\n if (url === null) {\n // This href should not be prefetched.\n return\n }\n const cacheKey = createCacheKey(url.href, nextUrl)\n schedulePrefetchTask(\n cacheKey,\n treeAtTimeOfPrefetch,\n fetchStrategy,\n PrefetchPriority.Default,\n onInvalidate,\n null // navigationLockPrefetch\n )\n}\n"],"names":["prefetch","href","nextUrl","treeAtTimeOfPrefetch","fetchStrategy","onInvalidate","url","createPrefetchURL","cacheKey","createCacheKey","schedulePrefetchTask","PrefetchPriority","Default"],"mappings":";;;+BA0BgBA,YAAAA;;;eAAAA;;;gCAzBkB;0BACH;2BACM;uBAC4B;AAsB1D,SAASA,SACdC,IAAY,EACZC,OAAsB,EACtBC,oBAAuC,EACvCC,aAAwC,EACxCC,YAAiC;IAEjC,MAAMC,MAAMC,CAAAA,GAAAA,gBAAAA,iBAAiB,EAACN;IAC9B,IAAIK,QAAQ,MAAM;QAChB,sCAAsC;QACtC;IACF;IACA,MAAME,WAAWC,CAAAA,GAAAA,UAAAA,cAAc,EAACH,IAAIL,IAAI,EAAEC;IAC1CQ,CAAAA,GAAAA,WAAAA,oBAAoB,EAClBF,UACAL,sBACAC,eACAO,OAAAA,gBAAgB,CAACC,OAAO,EACxBP,cACA,KAAK,yBAAyB;;AAElC","ignoreList":[0]}},
{"offset": {"line": 12754, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/scheduler.ts"],"sourcesContent":["import type {\n FlightRouterState,\n Segment as FlightRouterStateSegment,\n Segment,\n} from '../../../shared/lib/app-router-types'\nimport {\n PrefetchHint,\n StaticPrefetchDisabled,\n} from '../../../shared/lib/app-router-types'\nimport { matchSegment } from '../match-segments'\nimport {\n readOrCreateRouteCacheEntry,\n readRouteCacheEntry,\n readOrCreateSegmentCacheEntry,\n fetchRouteOnCacheMiss,\n fetchSegmentsOnCacheMiss,\n EntryStatus,\n type FulfilledRouteCacheEntry,\n type RouteCacheEntry,\n type RouteTree,\n fetchSegmentPrefetchesUsingDynamicRequest,\n type PendingSegmentCacheEntry,\n type SegmentCacheEntry,\n type SegmentBundle,\n convertRouteTreeToFlightRouterState,\n readOrCreateRevalidatingSegmentEntry,\n upgradeToPendingSegment,\n overwriteRevalidatingSegmentCacheEntry,\n canNewFetchStrategyProvideMoreContent,\n attemptToFulfillDynamicSegmentFromBFCache,\n attemptToUpgradeSegmentFromBFCache,\n} from './cache'\nimport type { RouteCacheKey } from './cache-key'\nimport { createCacheKey } from './cache-key'\nimport { urlSearchParamsToParsedUrlQuery } from '../../route-params'\nimport {\n FetchStrategy,\n type PrefetchTaskFetchStrategy,\n PrefetchPriority,\n} from './types'\nimport {\n getCurrentRouteCacheVersion,\n getCurrentSegmentCacheVersion,\n} from './cache'\nimport type { NavigationLockPrefetch } from './navigation-testing-lock'\nimport {\n addSearchParamsIfPageSegment,\n PAGE_SEGMENT_KEY,\n} from '../../../shared/lib/segment'\nimport type { SegmentRequestKey } from '../../../shared/lib/segment-cache/segment-value-encoding'\nimport { cleanup } from './lru'\n\nconst scheduleMicrotask =\n typeof queueMicrotask === 'function'\n ? queueMicrotask\n : (fn: () => unknown) =>\n Promise.resolve()\n .then(fn)\n .catch((error) =>\n setTimeout(() => {\n throw error\n })\n )\n\nexport type PrefetchTask = {\n key: RouteCacheKey\n\n /**\n * The FlightRouterState at the time the task was initiated. This is needed\n * when falling back to the non-PPR behavior, which only prefetches up to\n * the first loading boundary.\n */\n treeAtTimeOfPrefetch: FlightRouterState\n\n /**\n * The cache versions at the time the task was initiated. Used to determine\n * if the cache was invalidated since the task was initiated. Route and\n * segment caches have separate versions so they can be invalidated\n * independently.\n */\n routeCacheVersion: number\n segmentCacheVersion: number\n\n /**\n * Whether to prefetch dynamic data, in addition to static data. This is\n * used by `<Link prefetch={true}>`.\n *\n * Note that a task with `FetchStrategy.PPR` might need to use\n * `FetchStrategy.LoadingBoundary` instead if we find out that a route\n * does not support PPR after doing the initial route prefetch.\n */\n fetchStrategy: PrefetchTaskFetchStrategy\n\n /**\n * sortId is an incrementing counter\n *\n * Newer prefetches are prioritized over older ones, so that as new links\n * enter the viewport, they are not starved by older links that are no\n * longer relevant. In the future, we can add additional prioritization\n * heuristics, like removing prefetches once a link leaves the viewport.\n *\n * The sortId is assigned when the prefetch is initiated, and reassigned if\n * the same task is prefetched again (effectively bumping it to the top of\n * the queue).\n *\n * TODO: We can add additional fields here to indicate what kind of prefetch\n * it is. For example, was it initiated by a link? Or was it an imperative\n * call? If it was initiated by a link, we can remove it from the queue when\n * the link leaves the viewport, but if it was an imperative call, then we\n * should keep it in the queue until it's fulfilled.\n *\n * We can also add priority levels. For example, hovering over a link could\n * increase the priority of its prefetch.\n */\n sortId: number\n\n /**\n * The priority of the task. Like sortId, this affects the task's position in\n * the queue, so it must never be updated without resifting the heap.\n */\n priority: PrefetchPriority\n\n /**\n * The phase of the task. Tasks are split into multiple phases so that their\n * priority can be adjusted based on what kind of work they're doing.\n * Concretely, prefetching the route tree is higher priority than prefetching\n * segment data.\n */\n phase: PrefetchPhase\n\n /**\n * These fields are temporary state for tracking the currently running task.\n * They are reset after each iteration of the task queue.\n */\n hasBackgroundWork: boolean\n /**\n * Set during a pass when the task spawned a segment request, or encountered\n * one that was alreadyLine truncated
{"offset": {"line": 14490, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/types.ts"],"sourcesContent":["/**\n * Shared types and constants for the Segment Cache.\n */\n\nexport const enum NavigationResultTag {\n MPA,\n Success,\n NoOp,\n Async,\n}\n\n/**\n * The priority of the prefetch task. Higher numbers are higher priority.\n */\nexport const enum PrefetchPriority {\n /**\n * Assigned to the most recently hovered/touched link. Special network\n * bandwidth is reserved for this task only. There's only ever one Intent-\n * priority task at a time; when a new Intent task is scheduled, the previous\n * one is bumped down to Default.\n */\n Intent = 2,\n /**\n * The default priority for prefetch tasks.\n */\n Default = 1,\n /**\n * Assigned to tasks when they spawn non-blocking background work, like\n * revalidating a partially cached entry to see if more data is available.\n */\n Background = 0,\n}\n\nexport const enum FetchStrategy {\n // Deliberately ordered so we can easily compare two segments\n // and determine if one segment is \"more specific\" than another\n // (i.e. if it's likely that it contains more data). See\n // canNewFetchStrategyProvideMoreContent in cache.ts for what each tier can\n // contain relative to the others.\n //\n // These numeric values are client-internal and never cross the wire — the\n // `next-router-prefetch` request header values are mapped explicitly in\n // fetchSegmentPrefetchesUsingDynamicRequest (cache.ts) — so the members can\n // be renumbered freely as long as the relative order is preserved.\n LoadingBoundary = 0,\n // The App Shell variant extracted from a static per-segment prefetch\n // response: every segment's param-dependent content is reduced to pending\n // references that render as the param fallback. Less complete than\n // RuntimeShell — a static response can't include content that depends on\n // session data (cookies, headers) — and less complete than PPR at concrete\n // paths, which includes prerendered param-dependent content.\n StaticShell = 1,\n RuntimeShell = 2,\n PPR = 3,\n PPRRuntime = 4,\n Full = 5,\n}\n\n/**\n * A subset of fetch strategies used for prefetch tasks.\n * A prefetch task can't know if it should use `PPR` or `LoadingBoundary`\n * until we complete the initial tree prefetch request, so we use `PPR` to signal both cases\n * and adjust it based on the route when actually fetching.\n * */\nexport type PrefetchTaskFetchStrategy =\n | FetchStrategy.PPR\n | FetchStrategy.PPRRuntime\n | FetchStrategy.Full\n"],"names":["FetchStrategy","NavigationResultTag","PrefetchPriority"],"mappings":"AAAA;;CAEC;;;;;;;;;;;;;;;IA+BiBA,aAAa,EAAA;eAAbA;;IA7BAC,mBAAmB,EAAA;eAAnBA;;IAUAC,gBAAgB,EAAA;eAAhBA;;;AAVX,IAAWD,sBAAAA,WAAAA,GAAAA,SAAAA,mBAAAA;;;;;WAAAA;;AAUX,IAAWC,mBAAAA,WAAAA,GAAAA,SAAAA,gBAAAA;IAChB;;;;;GAKC,GAAA,gBAAA,CAAA,gBAAA,CAAA,SAAA,GAAA,EAAA,GAAA;IAED;;GAEC,GAAA,gBAAA,CAAA,gBAAA,CAAA,UAAA,GAAA,EAAA,GAAA;IAED;;;GAGC,GAAA,gBAAA,CAAA,gBAAA,CAAA,aAAA,GAAA,EAAA,GAAA;WAfeA;;AAmBX,IAAWF,gBAAAA,WAAAA,GAAAA,SAAAA,aAAAA;IAChB,6DAA6D;IAC7D,+DAA+D;IAC/D,wDAAwD;IACxD,2EAA2E;IAC3E,kCAAkC;IAClC,EAAE;IACF,0EAA0E;IAC1E,wEAAwE;IACxE,4EAA4E;IAC5E,mEAAmE;;IAEnE,qEAAqE;IACrE,0EAA0E;IAC1E,mEAAmE;IACnE,yEAAyE;IACzE,2EAA2E;IAC3E,6DAA6D;;;;;;WAjB7CA","ignoreList":[0]}},
{"offset": {"line": 14576, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/segment-cache/vary-path.ts"],"sourcesContent":["import { FetchStrategy } from './types'\nimport type {\n NormalizedPathname,\n NormalizedSearch,\n NormalizedNextUrl,\n} from './cache-key'\nimport type { RouteTree } from './cache'\nimport { Fallback, type FallbackType } from './cache-map'\nimport { HEAD_REQUEST_KEY } from '../../../shared/lib/segment-cache/segment-value-encoding'\n\ntype Opaque<T, K> = T & { __brand: K }\n\n/**\n * A linked-list of all the params (or other param-like) inputs that a cache\n * entry may vary by. This is used by the CacheMap module to reuse cache entries\n * across different param values. If a param has a value of Fallback, it means\n * the cache entry is reusable for all possible values of that param. See\n * cache-map.ts for details.\n *\n * A segment's vary path is a pure function of a segment's position in a\n * particular route tree and the (post-rewrite) URL that is being queried. More\n * concretely, successive queries of the cache for the same segment always use\n * the same vary path.\n *\n * A route's vary path is simpler: it's comprised of the pathname, search\n * string, and Next-URL header.\n */\nexport type VaryPath = {\n /**\n * Identifies which param this vary path node corresponds to. Used by\n * getFulfilledSegmentVaryPath to determine which params to replace with\n * Fallback based on the varyParams set from the server.\n *\n * - For path params: the param name (e.g., 'slug')\n * - For search params: '?'\n * - For non-param nodes (request keys, etc.): null\n */\n id: string | null\n value: string | null | FallbackType\n /**\n * Whether this node corresponds to a root param — a path param at or above\n * the application's root layout. Root params may appear in the App Shell, so\n * the shell vary path keeps their concrete value instead of replacing it with\n * Fallback. See getShellSegmentVaryPath. Only ever true on path param nodes;\n * false for structural and search param nodes.\n *\n * Always a boolean (never undefined) so that every VaryPath node shares a\n * single hidden class, keeping the cache hot paths monomorphic.\n */\n isRootParam: boolean\n parent: VaryPath | null\n}\n\n// Because it's so important for vary paths to line up across cache accesses,\n// we use opaque type aliases to ensure these are only created within\n// this module.\n\n// requestKey -> searchParams -> nextUrl\nexport type RouteVaryPath = Opaque<\n {\n id: null\n value: NormalizedPathname\n isRootParam: false\n parent: {\n id: '?'\n value: NormalizedSearch\n isRootParam: false\n parent: {\n id: null\n value: NormalizedNextUrl | null | FallbackType\n isRootParam: false\n parent: null\n }\n }\n },\n 'RouteVaryPath'\n>\n\n// requestKey -> pathParams\nexport type LayoutVaryPath = Opaque<\n {\n id: null\n value: string\n isRootParam: false\n parent: PartialSegmentVaryPath | null\n },\n 'LayoutVaryPath'\n>\n\n// requestKey -> searchParams -> pathParams\nexport type PageVaryPath = Opaque<\n {\n id: null\n value: string\n isRootParam: false\n parent: {\n id: '?'\n value: NormalizedSearch | FallbackType\n isRootParam: false\n parent: PartialSegmentVaryPath | null\n }\n },\n 'PageVaryPath'\n>\n\nexport type SegmentVaryPath = LayoutVaryPath | PageVaryPath\n\n// Intermediate type used when building a vary path during a recursive traversal\n// of the route tree.\nexport type PartialSegmentVaryPath = Opaque<VaryPath, 'PartialSegmentVaryPath'>\n\nexport function getRouteVaryPath(\n pathname: NormalizedPathname,\n search: NormalizedSearch,\n nextUrl: NormalizedNextUrl | null\n): RouteVaryPath {\n // requestKey -> searchParams -> nextUrl\n const varyPath: VaryPath = {\n id: null,\n value: pathname,\n isRootParam: false,\n parent: {\n id: '?',\n value: search,\n isRootParam: false,\n parent: {\n id: null,\n value: nextUrl,\n isRootParam: false,\n parent: null,\n },\n },\n }\n return varyPath as RouteVaryPath\n}\n\nexport function getFulfilledRouteVaryPath(\n pathname: NormalizedPathname,\n search: NormalizedSearch,\n nextUrl: NormalizedNextUrl | null,\n couldBeIntercepted: boolean\n): RouteVaryPath {\n // This is called when a route's data is fulfilled. The cache entry will be\n // re-keyed based on which inputs the response varies by.\n // requestKey -> searchParams -> nextUrl\n const varyPath: VaryPath = {\n id: null,\n value: pathname,\n isRootParam: false,\n parent: {\n id: '?',\n value: search,\n isRootParam: false,\n parent: {\n id: null,\n value: couldBeIntercepted ? nextUrl : Fallback,\n isRootParam: false,\n parent: null,\n }Line truncated
{"offset": {"line": 14904, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/server-async-storage.browser.ts"],"sourcesContent":["// Browser variant of `./server-async-storage`. The server-only async-storage\n// singletons don't exist in the browser, so these are `undefined`. Consumers\n// guard usage behind `typeof window === 'undefined'`, so the stubs are never\n// dereferenced.\nexport const actionAsyncStorage = undefined\nexport const workAsyncStorage = undefined\nexport const workUnitAsyncStorage = undefined\n"],"names":["actionAsyncStorage","workAsyncStorage","workUnitAsyncStorage","undefined"],"mappings":"AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,6EAA6E;AAC7E,gBAAgB;;;;;;;;;;;;;;;;IACHA,kBAAkB,EAAA;eAAlBA;;IACAC,gBAAgB,EAAA;eAAhBA;;IACAC,oBAAoB,EAAA;eAApBA;;;AAFN,MAAMF,qBAAqBG;AAC3B,MAAMF,mBAAmBE;AACzB,MAAMD,uBAAuBC","ignoreList":[0]}},
{"offset": {"line": 14947, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/unauthorized.ts"],"sourcesContent":["import {\n HTTP_ERROR_FALLBACK_ERROR_CODE,\n type HTTPAccessFallbackError,\n} from './http-access-fallback/http-access-fallback'\n\n// TODO: Add `unauthorized` docs\n/**\n * @experimental\n * This function allows you to render the [unauthorized.js file](https://nextjs.org/docs/app/api-reference/file-conventions/unauthorized)\n * within a route segment as well as inject a tag.\n *\n * `unauthorized()` can be used in\n * [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),\n * [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and\n * [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).\n *\n *\n * Read more: [Next.js Docs: `unauthorized`](https://nextjs.org/docs/app/api-reference/functions/unauthorized)\n */\n\nconst DIGEST = `${HTTP_ERROR_FALLBACK_ERROR_CODE};401`\n\nexport function unauthorized(): never {\n if (!process.env.__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS) {\n throw new Error(\n `\\`unauthorized()\\` is experimental and only allowed to be used when \\`experimental.authInterrupts\\` is enabled.`\n )\n }\n\n const error = new Error(DIGEST) as HTTPAccessFallbackError\n ;(error as HTTPAccessFallbackError).digest = DIGEST\n throw error\n}\n"],"names":["unauthorized","DIGEST","HTTP_ERROR_FALLBACK_ERROR_CODE","process","env","__NEXT_EXPERIMENTAL_AUTH_INTERRUPTS","Error","error","digest"],"mappings":"AAuBOG,QAAQC,GAAG,CAACC,mCAAmC;;;;;+BADtCL,gBAAAA;;;eAAAA;;;oCAnBT;AAEP,gCAAgC;AAChC;;;;;;;;;;;;CAYC,GAED,MAAMC,SAAS,GAAGC,oBAAAA,8BAA8B,CAAC,IAAI,CAAC;AAE/C,SAASF;IACd,IAAI,oCAAkD;QACpD,MAAM,OAAA,cAEL,CAFK,IAAIM,MACR,CAAC,+GAA+G,CAAC,GAD7G,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEA,MAAMC,QAAQ,OAAA,cAAiB,CAAjB,IAAID,MAAML,SAAV,qBAAA;eAAA;oBAAA;sBAAA;IAAgB;IAC5BM,MAAkCC,MAAM,GAAGP;IAC7C,MAAMM;AACR","ignoreList":[0]}},
{"offset": {"line": 15000, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/unrecognized-action-error.ts"],"sourcesContent":["export class UnrecognizedActionError extends Error {\n constructor(...args: ConstructorParameters<typeof Error>) {\n super(...args)\n this.name = 'UnrecognizedActionError'\n }\n}\n\n/**\n * Check whether a server action call failed because the server action was not recognized by the server.\n * This can happen if the client and the server are not from the same deployment.\n *\n * Example usage:\n * ```ts\n * try {\n * await myServerAction();\n * } catch (err) {\n * if (unstable_isUnrecognizedActionError(err)) {\n * // The client is from a different deployment than the server.\n * // Reloading the page will fix this mismatch.\n * window.alert(\"Please refresh the page and try again\");\n * return;\n * }\n * }\n * ```\n * */\nexport function unstable_isUnrecognizedActionError(\n error: unknown\n): error is UnrecognizedActionError {\n return !!(\n error &&\n typeof error === 'object' &&\n error instanceof UnrecognizedActionError\n )\n}\n"],"names":["UnrecognizedActionError","unstable_isUnrecognizedActionError","Error","constructor","args","name","error"],"mappings":";;;;;;;;;;;;;;IAAaA,uBAAuB,EAAA;eAAvBA;;IAyBGC,kCAAkC,EAAA;eAAlCA;;;AAzBT,MAAMD,gCAAgCE;IAC3CC,YAAY,GAAGC,IAAyC,CAAE;QACxD,KAAK,IAAIA;QACT,IAAI,CAACC,IAAI,GAAG;IACd;AACF;AAoBO,SAASJ,mCACdK,KAAc;IAEd,OAAO,CAAC,CACNA,CAAAA,SACA,OAAOA,UAAU,YACjBA,iBAAiBN,uBAAsB;AAE3C","ignoreList":[0]}},
{"offset": {"line": 15041, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/unresolved-thenable.ts"],"sourcesContent":["/**\n * Create a \"Thenable\" that does not resolve. This is used to suspend indefinitely when data is not available yet.\n */\nexport const unresolvedThenable = {\n then: () => {},\n} as PromiseLike<void>\n"],"names":["unresolvedThenable","then"],"mappings":"AAAA;;CAEC;;;+BACYA,sBAAAA;;;eAAAA;;;AAAN,MAAMA,qBAAqB;IAChCC,MAAM,KAAO;AACf","ignoreList":[0]}},
{"offset": {"line": 15066, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/unstable-rethrow.browser.ts"],"sourcesContent":["import { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'\nimport { isNextRouterError } from './is-next-router-error'\n\nexport function unstable_rethrow(error: unknown): void {\n if (isNextRouterError(error) || isBailoutToCSRError(error)) {\n throw error\n }\n\n if (error instanceof Error && 'cause' in error) {\n unstable_rethrow(error.cause)\n }\n}\n"],"names":["unstable_rethrow","error","isNextRouterError","isBailoutToCSRError","Error","cause"],"mappings":";;;+BAGgBA,oBAAAA;;;eAAAA;;;8BAHoB;mCACF;AAE3B,SAASA,iBAAiBC,KAAc;IAC7C,IAAIC,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACD,UAAUE,CAAAA,GAAAA,cAAAA,mBAAmB,EAACF,QAAQ;QAC1D,MAAMA;IACR;IAEA,IAAIA,iBAAiBG,SAAS,WAAWH,OAAO;QAC9CD,iBAAiBC,MAAMI,KAAK;IAC9B;AACF","ignoreList":[0]}},
{"offset": {"line": 15096, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/use-action-queue.ts"],"sourcesContent":["import type { Dispatch } from 'react'\nimport React, { use, useMemo, useOptimistic } from 'react'\nimport { isThenable } from '../../shared/lib/is-thenable'\nimport type { AppRouterActionQueue } from './app-router-instance'\nimport {\n ACTION_REFRESH,\n type AppRouterState,\n type ReducerActions,\n type ReducerState,\n} from './router-reducer/router-reducer-types'\n\n// The app router state lives outside of React, so we can import the dispatch\n// method directly wherever we need it, rather than passing it around via props\n// or context.\nlet dispatch: Dispatch<ReducerActions> | null = null\n\n/**\n * Called when the instant navigation test lock is released. If the router\n * is initialized, dispatches a soft refresh to fetch dynamic data. If not\n * (e.g. the lock was released before hydration finished), falls back to a\n * hard reload.\n */\nexport function refreshOnInstantNavigationUnlock() {\n if (process.env.__NEXT_EXPOSE_TESTING_API) {\n if (dispatch !== null) {\n dispatch({ type: ACTION_REFRESH, bypassCacheInvalidation: true })\n } else {\n window.location.reload()\n }\n }\n}\n\nexport function dispatchAppRouterAction(action: ReducerActions) {\n if (dispatch === null) {\n throw new Error(\n 'Internal Next.js error: Router action dispatched before initialization.'\n )\n }\n dispatch(action)\n}\n\n// Optimistic state setter for experimental_gesturePush. Only should be used\n// during a gesture transition.\nlet setGestureRouterState: ((state: ReducerState) => void) | null = null\n\nexport function dispatchGestureState(state: ReducerState) {\n if (setGestureRouterState === null) {\n throw new Error(\n 'Internal Next.js error: Router action dispatched before initialization.'\n )\n }\n setGestureRouterState(state)\n}\n\nconst __DEV__ = process.env.NODE_ENV !== 'production'\nconst promisesWithDebugInfo: WeakMap<\n Promise<AppRouterState>,\n Promise<AppRouterState> & { _debugInfo?: Array<unknown> }\n> = __DEV__ ? new WeakMap() : (null as any)\n\nexport function useActionQueue(\n actionQueue: AppRouterActionQueue\n): AppRouterState {\n const [canonicalState, setState] = React.useState<ReducerState>(\n actionQueue.state\n )\n\n // Wrap the canonical state in useOptimistic to support\n // experimental_gesturePush. During a gesture transition, this returns a fork\n // of the router state that represents the eventual target if/when the gesture\n // completes. Otherwise it returns the canonical state.\n const [state, setGesture] = useOptimistic(canonicalState)\n if (typeof window !== 'undefined') {\n setGestureRouterState = setGesture\n }\n\n // Because of a known issue that requires to decode Flight streams inside the\n // render phase, we have to be a bit clever and assign the dispatch method to\n // a module-level variable upon initialization. The useState hook in this\n // module only exists to synchronize state that lives outside of React.\n // Ideally, what we'd do instead is pass the state as a prop to root.render;\n // this is conceptually how we're modeling the app router state, despite the\n // weird implementation details.\n let nextDispatch: Dispatch<ReducerActions>\n\n if (process.env.NODE_ENV !== 'production') {\n const { useAppDevRenderingIndicator } =\n require('../../next-devtools/userspace/use-app-dev-rendering-indicator') as typeof import('../../next-devtools/userspace/use-app-dev-rendering-indicator')\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const appDevRenderingIndicator = useAppDevRenderingIndicator()\n\n nextDispatch = (action: ReducerActions) => {\n appDevRenderingIndicator(() => {\n actionQueue.dispatch(action, setState)\n })\n }\n } else {\n nextDispatch = (action: ReducerActions) =>\n actionQueue.dispatch(action, setState)\n }\n\n if (typeof window !== 'undefined') {\n dispatch = nextDispatch\n }\n\n // When navigating to a non-prefetched route, then App Router state will be\n // blocked until the server responds. We need to transfer the `_debugInfo`\n // from the underlying Flight response onto the top-level promise that is\n // passed to React (via `use`) so that the latency is accurately represented\n // in the React DevTools.\n const stateWithDebugInfo = useMemo(() => {\n if (!__DEV__) {\n return state\n }\n\n if (isThenable(state)) {\n // useMemo can't be used to cache a Promise since the memoized value is thrown\n // away when we suspend. So we use a WeakMap to cache the Promise with debug info.\n let promiseWithDebugInfo = promisesWithDebugInfo.get(state)\n if (promiseWithDebugInfo === undefined) {\n const debugInfo: Array<unknown> = []\n promiseWithDebugInfo = Promise.resolve(state).thLine truncated
{"offset": {"line": 15246, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/debug-channel.ts"],"sourcesContent":["import { NEXT_REQUEST_ID_HEADER } from '../components/app-router-headers'\nimport { InvariantError } from '../../shared/lib/invariant-error'\n\nexport interface DebugChannelReadableWriterPair {\n /**\n * The remaining, not-yet-handed-out copy of the request's debug stream. A\n * request can be decoded more than once (the primary decode plus any stage\n * extractions that re-parse a slice of the same response, see\n * `decodeStageUntilBoundary`), and each decode needs its own reader. Every\n * time a consumer asks for the readable we tee it and reassign this field to\n * the remainder, so each consumer gets an independent branch. The remainder\n * is only ever tee'd again, never read directly, so it retains every chunk\n * from the start and replays the full stream into each new branch.\n */\n readable: ReadableStream<Uint8Array>\n readonly writer: WritableStreamDefaultWriter<Uint8Array>\n}\n\nconst pairs = new Map<string, DebugChannelReadableWriterPair>()\n\n/**\n * Upper bound on the number of in-memory debug-channel pairs we retain, evicted\n * least-recently-used, bounding the live per-request map.\n *\n * A pair must outlive its stream's close so a late decode of the same response\n * (the primary decode plus stage extractions via `decodeStageUntilBoundary`,\n * which can run after the channel closed over the WebSocket) still finds the\n * buffered data. The cap only needs to exceed the pairs live or recently closed\n * at once (bounded by how many prefetch/navigation requests are in flight\n * together), so a few dozen leaves ample headroom even for the segment-heavy\n * bursts the Instant Navs DevTools capture can produce.\n */\nconst MAX_DEBUG_CHANNEL_PAIRS = 64\n\nconst DB_NAME = '__next_debug_channel'\nconst STORE_NAME = 'channels'\nconst CREATED_AT_INDEX = 'createdAt'\n/**\n * Upper bound on persisted document debug channels in IndexedDB (one per\n * document, kept for HTTP-cache restore), evicted oldest-first.\n */\nconst MAX_PERSISTED_DOCUMENT_CHANNELS = 10\n\ninterface DebugChannelEntry {\n readonly requestId: string\n readonly createdAt: number\n readonly chunks: Uint8Array[]\n}\n\nfunction openDebugChannelDB(): Promise<IDBDatabase> {\n return new Promise((resolve, reject) => {\n const openRequest = indexedDB.open(DB_NAME, 1)\n openRequest.onupgradeneeded = () => {\n const store = openRequest.result.createObjectStore(STORE_NAME, {\n keyPath: 'requestId',\n })\n store.createIndex(CREATED_AT_INDEX, 'createdAt')\n }\n openRequest.onsuccess = () => resolve(openRequest.result)\n openRequest.onerror = () => reject(openRequest.error)\n openRequest.onblocked = () => reject(openRequest.error)\n })\n}\n\n/**\n * Resolves on the next idle period via `requestIdleCallback`, falling back to a\n * `setTimeout` where `requestIdleCallback` is unavailable.\n */\nfunction whenIdle(): Promise<void> {\n return new Promise((resolve) => {\n if (typeof requestIdleCallback === 'function') {\n requestIdleCallback(() => resolve())\n } else {\n setTimeout(resolve, 0)\n }\n })\n}\n\nasync function persistDebugChannelToIndexedDB(\n requestId: string,\n chunks: Uint8Array[]\n): Promise<void> {\n let db: IDBDatabase\n try {\n db = await openDebugChannelDB()\n } catch (error) {\n console.debug('Failed to open debug channel IndexedDB for write', error)\n return\n }\n\n try {\n await new Promise<void>((resolve, reject) => {\n const transaction = db.transaction(STORE_NAME, 'readwrite')\n const store = transaction.objectStore(STORE_NAME)\n\n store.put({\n requestId,\n createdAt: Date.now(),\n chunks,\n } satisfies DebugChannelEntry)\n\n // Prune oldest entries beyond the cap to bound storage growth across tabs\n // and/or page loads. The createdAt index gives ordered traversal without\n // scanning, and the cursor deletes commit atomically with the put above.\n const countReq = store.count()\n countReq.onsuccess = () => {\n let entriesToDelete = countReq.result - MAX_PERSISTED_DOCUMENT_CHANNELS\n if (entriesToDelete <= 0) {\n return\n }\n const cursorReq = store.index(CREATED_AT_INDEX).openCursor()\n cursorReq.onsuccess = () => {\n const cursor = cursorReq.result\n if (!cursor || entriesToDelete === 0) {\n return\n }\n cursor.delete()\n entriesToDelete--\n cursor.continue()\n }\n }\n\n transaction.oncomplete = () => {\n if (process.env.__NEXT_TEST_MODE) {\n // Test-only flag, set once this document's debug channel entry is\n // durably committed. Persistence is deferred to an idle callback and\n // the IndexedDB write isLine truncated
{"offset": {"line": 15668, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/app/hot-reloader-app.tsx"],"sourcesContent":["/// <reference types=\"webpack/module.d.ts\" />\n\nimport type { ReactNode } from 'react'\nimport { useEffect, startTransition } from 'react'\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\nimport formatWebpackMessages from '../../../../shared/lib/format-webpack-messages'\nimport {\n REACT_REFRESH_FULL_RELOAD,\n REACT_REFRESH_FULL_RELOAD_FROM_ERROR,\n} from '../shared'\nimport {\n dispatcher,\n getSerializedOverlayState,\n getSegmentTrieData,\n} from 'next/dist/compiled/next-devtools'\nimport { ReplaySsrOnlyErrors } from '../../../../next-devtools/userspace/app/errors/replay-ssr-only-errors'\nimport { AppDevOverlayErrorBoundary } from '../../../../next-devtools/userspace/app/app-dev-overlay-error-boundary'\nimport { useErrorHandler } from '../../../../next-devtools/userspace/app/errors/use-error-handler'\nimport { RuntimeErrorHandler } from '../../runtime-error-handler'\nimport { useWebSocketPing } from './web-socket'\nimport {\n HMR_MESSAGE_SENT_TO_BROWSER,\n HMR_MESSAGE_SENT_TO_SERVER,\n} from '../../../../server/dev/hot-reloader-types'\nimport type {\n HmrMessageSentToBrowser,\n TurbopackMessageSentToBrowser,\n} from '../../../../server/dev/hot-reloader-types'\nimport type { McpErrorStateResponse } from '../../../../shared/lib/mcp-error-types'\nimport type { McpPageMetadataResponse } from '../../../../shared/lib/mcp-page-metadata-types'\nimport { useUntrackedPathname } from '../../../components/navigation-untracked'\nimport reportHmrLatency from '../../report-hmr-latency'\nimport { TurbopackHmr } from '../turbopack-hot-reloader-common'\nimport {\n publicAppRouterInstance,\n type GlobalErrorState,\n} from '../../../components/app-router-instance'\nimport { InvariantError } from '../../../../shared/lib/invariant-error'\nimport { markErrorAsAlreadyLoggedOnServer } from '../../../../next-devtools/shared/forward-logs-shared'\nimport { getOrCreateDebugChannelReadableWriterPair } from '../../debug-channel'\n// TODO: Explicitly import from client.browser (doesn't work with Webpack).\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport { createFromReadableStream as createFromReadableStreamBrowser } from 'react-server-dom-webpack/client'\nimport { findSourceMapURL } from '../../../app-find-source-map-url'\n\nexport interface StaticIndicatorState {\n pathname: string | null\n appIsrManifest: Record<string, boolean> | null\n}\n\nconst createFromReadableStream =\n createFromReadableStreamBrowser as (typeof import('react-server-dom-webpack/client.browser'))['createFromReadableStream']\n\nlet mostRecentCompilationHash: any = null\n// The dev client id is only read by the browser-side HMR websocket connection.\n// Compute it only in the browser: there is no client during SSR, and calling\n// `Math.random()`/`Date.now()` at module scope would be tracked as sync IO by\n// Cache Components and advance the render stage.\nlet __nextDevClientId =\n typeof window !== 'undefined'\n ? Math.round(Math.random() * 100 + Date.now())\n : 0\nlet reloading = false\nlet webpackStartMsSinceEpoch: number | null = null\nconst turbopackHmr: TurbopackHmr | null = process.env.TURBOPACK\n ? new TurbopackHmr()\n : null\n\nlet pendingHotUpdateWebpack = Promise.resolve()\nlet resolvePendingHotUpdateWebpack: () => void = () => {}\nfunction setPendingHotUpdateWebpack() {\n pendingHotUpdateWebpack = new Promise((resolve) => {\n resolvePendingHotUpdateWebpack = () => {\n resolve()\n }\n })\n}\n\nexport function waitForWebpackRuntimeHotUpdate() {\n return pendingHotUpdateWebpack\n}\n\n// There is a newer version of the code available.\nfunction handleAvailableHash(hash: string) {\n // Update last known compilation hash.\n mostRecentCompilationHash = hash\n}\n\n/**\n * Is there a newer version of this code available?\n * For webpack: Check if the hash changed compared to __webpack_hash__\n * For Turbopack: Always true because it doesn't have __webpack_hash__\n */\nfunction isUpdateAvailable() {\n if (process.env.TURBOPACK) {\n return true\n }\n\n /* globals __webpack_hash__ */\n // __webpack_hash__ is the hash of the current compilation.\n // It's a global variable injected by Webpack.\n return mostRecentCompilationHash !== __webpack_hash__\n}\n\n// Webpack disallows updates in other states.\nfunction canApplyUpdates() {\n return module.hot.status() === 'idle'\n}\nfunction afterApplyUpdates(fn: any) {\n if (canApplyUpdates()) {\n fn()\n } else {\n function handler(status: any) {\n if (status === 'idle') {\n module.hot.removeStatusHandler(handler)\n fn()\n }\n }\n module.hot.addStatusHandler(handler)\n }\n}\n\nexport function performFullReload(\n err: any,\n sendMessage: (data: string) => void\n) {\n const stackTrace =\n err &&\n Line truncated
{"offset": {"line": 16196, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/app/web-socket.ts"],"sourcesContent":["import { useContext, useEffect } from 'react'\nimport { GlobalLayoutRouterContext } from '../../../../shared/lib/app-router-context.shared-runtime'\nimport { getSocketUrl } from '../get-socket-url'\nimport {\n HMR_MESSAGE_SENT_TO_BROWSER,\n type HmrMessageSentToBrowser,\n type TurbopackMessageSentToBrowser,\n} from '../../../../server/dev/hot-reloader-types'\nimport { reportInvalidHmrMessage } from '../shared'\nimport {\n performFullReload,\n processMessage,\n type StaticIndicatorState,\n} from './hot-reloader-app'\nimport { logQueue } from '../../../../next-devtools/userspace/app/forward-logs'\nimport { InvariantError } from '../../../../shared/lib/invariant-error'\nimport { WEB_SOCKET_MAX_RECONNECTIONS } from '../../../../lib/constants'\n\nlet reconnections = 0\nlet reloading = false\nlet serverSessionId: number | null = null\nlet mostRecentCompilationHash: string | null = null\n\nexport function createWebSocket(\n assetPrefix: string,\n staticIndicatorState: StaticIndicatorState\n) {\n if (!self.__next_r) {\n throw new InvariantError(\n `Expected a request ID to be defined for the document via self.__next_r.`\n )\n }\n\n let webSocket: WebSocket\n let timer: ReturnType<typeof setTimeout>\n\n const sendMessage = (data: string) => {\n if (webSocket && webSocket.readyState === webSocket.OPEN) {\n webSocket.send(data)\n }\n }\n\n const processTurbopackMessage = createProcessTurbopackMessage(sendMessage)\n\n function init() {\n if (webSocket) {\n webSocket.close()\n }\n\n const newWebSocket = new window.WebSocket(\n `${getSocketUrl(assetPrefix)}/_next/hmr?id=${self.__next_r}`\n )\n\n newWebSocket.binaryType = 'arraybuffer'\n\n function handleOnline() {\n logQueue.onSocketReady(newWebSocket)\n\n reconnections = 0\n window.console.log('[HMR] connected')\n }\n\n function handleMessage(event: MessageEvent) {\n // While the page is reloading, don't respond to any more messages.\n if (reloading) {\n return\n }\n\n try {\n const message: HmrMessageSentToBrowser =\n event.data instanceof ArrayBuffer\n ? parseBinaryMessage(event.data)\n : JSON.parse(event.data)\n\n // Check for server restart in Turbopack mode\n if (message.type === HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED) {\n if (\n serverSessionId !== null &&\n serverSessionId !== message.data.sessionId\n ) {\n // Either the server's session id has changed and it's a new server, or\n // it's been too long since we disconnected and we should reload the page.\n window.location.reload()\n reloading = true\n return\n }\n serverSessionId = message.data.sessionId\n }\n\n // Track webpack compilation hash for server restart detection\n if (\n message.type === HMR_MESSAGE_SENT_TO_BROWSER.SYNC &&\n 'hash' in message\n ) {\n // If we had previously reconnected and the hash changed, the server may have restarted\n if (\n mostRecentCompilationHash !== null &&\n mostRecentCompilationHash !== message.hash\n ) {\n window.location.reload()\n reloading = true\n return\n }\n mostRecentCompilationHash = message.hash\n }\n\n processMessage(\n message,\n sendMessage,\n processTurbopackMessage,\n staticIndicatorState\n )\n } catch (err: unknown) {\n reportInvalidHmrMessage(event, err)\n }\n }\n\n function handleDisconnect() {\n newWebSocket.onerror = null\n newWebSocket.onclose = null\n newWebSocket.close()\n reconnections++\n\n // After WEB_SOCKET_MAX_RECONNECTIONS reconnects we'll want to reload the page as it indicates the dev server is no longer running.\n if (reconnections > WEB_SOCKET_MAX_RECONNECTIONS) {\n reloading = true\n window.location.reload()\n return\n }\n\n clearTimeout(timer)\n // Try again after 5 seconds\n timer = setTimeout(init, reconnections > 5 ? 5000 : 1000)\n }\n\n newWebSocket.onopen = handleOnline\n newWebSocket.onerror = handleDisconnect\n newWebSocket.onclose = handleDisconnect\n newWebSocket.onmessage = handleMessage\n\n webSocket = newWebSocket\n return newWebSocket\n }\n\n function handleVisibilityChange() {\n if (\n document.visibilityState === 'visible' &&\n webSocket.readyState !== WebSocket.OPEN\n ) {\n reconnections = 0\n clearTimeout(timer)\n init()\n }\n }\n\n function handleOnlineEvent() {\n if (webSocket.readyState !Line truncated
{"offset": {"line": 16445, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/get-socket-url.ts"],"sourcesContent":["import { normalizedAssetPrefix } from '../../../shared/lib/normalized-asset-prefix'\n\nfunction getSocketProtocol(assetPrefix: string): string {\n let protocol = window.location.protocol\n\n try {\n // assetPrefix is a url\n protocol = new URL(assetPrefix).protocol\n } catch {}\n\n return protocol === 'http:' ? 'ws:' : 'wss:'\n}\n\nexport function getSocketUrl(assetPrefix: string | undefined): string {\n const prefix = normalizedAssetPrefix(assetPrefix)\n const protocol = getSocketProtocol(assetPrefix || '')\n\n if (URL.canParse(prefix)) {\n // since normalized asset prefix is ensured to be a URL format,\n // we can safely replace the protocol\n return prefix.replace(/^http/, 'ws')\n }\n\n const { hostname, port } = window.location\n return `${protocol}//${hostname}${port ? `:${port}` : ''}${prefix}`\n}\n"],"names":["getSocketUrl","getSocketProtocol","assetPrefix","protocol","window","location","URL","prefix","normalizedAssetPrefix","canParse","replace","hostname","port"],"mappings":";;;+BAagBA,gBAAAA;;;eAAAA;;;uCAbsB;AAEtC,SAASC,kBAAkBC,WAAmB;IAC5C,IAAIC,WAAWC,OAAOC,QAAQ,CAACF,QAAQ;IAEvC,IAAI;QACF,uBAAuB;QACvBA,WAAW,IAAIG,IAAIJ,aAAaC,QAAQ;IAC1C,EAAE,OAAM,CAAC;IAET,OAAOA,aAAa,UAAU,QAAQ;AACxC;AAEO,SAASH,aAAaE,WAA+B;IAC1D,MAAMK,SAASC,CAAAA,GAAAA,uBAAAA,qBAAqB,EAACN;IACrC,MAAMC,WAAWF,kBAAkBC,eAAe;IAElD,IAAII,IAAIG,QAAQ,CAACF,SAAS;QACxB,+DAA+D;QAC/D,qCAAqC;QACrC,OAAOA,OAAOG,OAAO,CAAC,SAAS;IACjC;IAEA,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGR,OAAOC,QAAQ;IAC1C,OAAO,GAAGF,SAAS,EAAE,EAAEQ,WAAWC,OAAO,CAAC,CAAC,EAAEA,MAAM,GAAG,KAAKL,QAAQ;AACrE","ignoreList":[0]}},
{"offset": {"line": 16485, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/shared.ts"],"sourcesContent":["import type { HmrMessageSentToBrowser } from '../../../server/dev/hot-reloader-types'\n\nexport const REACT_REFRESH_FULL_RELOAD =\n '[Fast Refresh] performing full reload\\n\\n' +\n \"Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\\n\" +\n 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\\n' +\n 'Consider migrating the non-React component export to a separate file and importing it into both files.\\n\\n' +\n 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\\n' +\n 'Fast Refresh requires at least one parent function component in your React tree.'\n\nexport const REACT_REFRESH_FULL_RELOAD_FROM_ERROR =\n '[Fast Refresh] performing full reload because your application had an unrecoverable error'\n\nexport function reportInvalidHmrMessage(\n message: HmrMessageSentToBrowser | MessageEvent<unknown>,\n err: unknown\n) {\n console.warn(\n '[HMR] Invalid message: ' +\n JSON.stringify(message) +\n '\\n' +\n ((err instanceof Error && err?.stack) || '')\n )\n}\n"],"names":["REACT_REFRESH_FULL_RELOAD","REACT_REFRESH_FULL_RELOAD_FROM_ERROR","reportInvalidHmrMessage","message","err","console","warn","JSON","stringify","Error","stack"],"mappings":";;;;;;;;;;;;;;;IAEaA,yBAAyB,EAAA;eAAzBA;;IAQAC,oCAAoC,EAAA;eAApCA;;IAGGC,uBAAuB,EAAA;eAAvBA;;;AAXT,MAAMF,4BACX,8CACA,mIACA,qIACA,+GACA,8HACA;AAEK,MAAMC,uCACX;AAEK,SAASC,wBACdC,OAAwD,EACxDC,GAAY;IAEZC,QAAQC,IAAI,CACV,4BACEC,KAAKC,SAAS,CAACL,WACf,OACC,CAACC,eAAeK,SAASL,KAAKM,SAAU,EAAC;AAEhD","ignoreList":[0]}},
{"offset": {"line": 16526, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/turbopack-hot-reloader-common.ts"],"sourcesContent":["import type { TurbopackMessage } from '../../../server/dev/hot-reloader-types'\nimport type { Update as TurbopackUpdate } from '../../../build/swc/types'\nimport { DeferredEmit } from '../../../shared/lib/turbopack/deferred-emit'\n\ndeclare global {\n interface Window {\n __NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS: boolean | undefined\n }\n}\n\n// How long to wait before reporting the HMR start, used to suppress irrelevant\n// `BUILDING` events. Does not impact reported latency.\nconst TURBOPACK_HMR_START_DELAY_MS = 100\n\ninterface HmrUpdate {\n hasUpdates: boolean\n updatedModules: Set<string>\n startMsSinceEpoch: number\n endMsSinceEpoch: number\n}\n\nexport class TurbopackHmr {\n #updatedModules: Set<string>\n #startMsSinceEpoch: number | undefined\n #lastUpdateMsSinceEpoch: number | undefined\n // HACK: Turbopack tends to generate a lot of irrelevant \"BUILDING\" actions,\n // as it reports *any* compilation, including fully no-op/cached compilations\n // and those unrelated to HMR. Fixing this would require significant\n // architectural changes.\n //\n // Work around this by deferring the `[Fast Refresh] rebuilding` message by\n // 100ms. If we get a BUILT event within that threshold and nothing has\n // changed, just suppress the message entirely. (The dev server applies the\n // same defer to the BUILDING HMR message itself; see `DeferredEmit` usage in\n // hot-reloader-turbopack.ts.)\n #deferredReportHmrStart: DeferredEmit\n #reportedHmrStart: boolean\n\n constructor() {\n this.#updatedModules = new Set()\n this.#deferredReportHmrStart = new DeferredEmit()\n this.#reportedHmrStart = false\n }\n\n onBuilding() {\n this.#lastUpdateMsSinceEpoch = undefined\n this.#deferredReportHmrStart.cancel()\n this.#startMsSinceEpoch = Date.now()\n\n // report the HMR start after a short delay\n this.#deferredReportHmrStart.schedule(\n // debugging feature: don't defer/suppress noisy no-op HMR update messages\n self.__NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS\n ? 0\n : TURBOPACK_HMR_START_DELAY_MS,\n () => {\n console.log('[Fast Refresh] rebuilding')\n this.#reportedHmrStart = true\n }\n )\n }\n\n /** Helper for other `onEvent` methods. */\n #onUpdate() {\n this.#deferredReportHmrStart.flush()\n this.#lastUpdateMsSinceEpoch = Date.now()\n }\n\n onTurbopackMessage(msg: TurbopackMessage) {\n this.#onUpdate()\n const updatedModules = extractModulesFromTurbopackMessage(msg.data)\n for (const module of updatedModules) {\n this.#updatedModules.add(module)\n }\n }\n\n onServerComponentChanges() {\n this.#onUpdate()\n }\n\n onReloadPage() {\n this.#onUpdate()\n }\n\n onPageAddRemove() {\n this.#onUpdate()\n }\n\n /**\n * @returns `null` if the caller should ignore the update entirely. Returns an\n * object with `hasUpdates: false` if the caller should report the end of\n * the HMR in the browser console, but the HMR was a no-op.\n */\n onBuilt(): HmrUpdate | null {\n // Check that we got *any* `TurbopackMessage`, even if\n // `updatedModules` is empty (not everything gets recorded there).\n //\n // There's also a case where `onBuilt` gets called before `onBuilding`,\n // which can happen during initial page load. Ignore that too!\n const hasUpdates =\n this.#lastUpdateMsSinceEpoch != null && this.#startMsSinceEpoch != null\n if (!hasUpdates && !this.#reportedHmrStart) {\n // suppress the update entirely\n this.#deferredReportHmrStart.cancel()\n return null\n }\n this.#deferredReportHmrStart.flush()\n\n const result = {\n hasUpdates,\n updatedModules: this.#updatedModules,\n startMsSinceEpoch: this.#startMsSinceEpoch!,\n endMsSinceEpoch: this.#lastUpdateMsSinceEpoch ?? Date.now(),\n }\n this.#updatedModules = new Set()\n this.#reportedHmrStart = false\n return result\n }\n}\n\nfunction extractModulesFromTurbopackMessage(\n data: TurbopackUpdate | TurbopackUpdate[]\n): Set<string> {\n const updatedModules: Set<string> = new Set()\n\n const updates = Array.isArray(data) ? data : [data]\n for (const update of updates) {\n // TODO this won't capture changes to CSS since they don't result in a \"merged\" update\n if (\n update.type !== 'partial' ||\n update.instruction.type !== 'ChunkListUpdate' ||\n update.instruction.merged === undefined\n ) {\n continue\n }\n\n for (const mergedUpdate of update.instruction.merged) {\n if (!mergedUpdate.entries) continue\n for (const name of Object.keys(mergedUpdate.entries)) {\n const res = /(.*)\\s+[([].*/.exec(name)\n if (res === null) {\n continue\n }\n\nLine truncated
{"offset": {"line": 16652, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/report-hmr-latency.ts"],"sourcesContent":["declare global {\n interface Window {\n __NEXT_HMR_LATENCY_CB: ((latencyMs: number) => void) | undefined\n }\n}\n\n/**\n * Logs information about a completed HMR to the console, the server (via a\n * `client-hmr-latency` event), and to `self.__NEXT_HMR_LATENCY_CB` (a debugging\n * hook).\n *\n * @param hasUpdate Set this to `false` to avoid reporting the HMR event via a\n * `client-hmr-latency` event or to `self.__NEXT_HMR_LATENCY_CB`. Used by\n * turbopack when we must report a message to the browser console (because we\n * already logged a \"rebuilding\" message), but it's not a real HMR, so we\n * don't want to impact our telemetry.\n */\nexport default function reportHmrLatency(\n sendMessage: (message: string) => void,\n updatedModules: ReadonlyArray<string | number>,\n startMsSinceEpoch: number,\n endMsSinceEpoch: number,\n hasUpdate: boolean = true\n) {\n const latencyMs = endMsSinceEpoch - startMsSinceEpoch\n console.log(`[Fast Refresh] done in ${latencyMs}ms`)\n if (!hasUpdate) {\n return\n }\n sendMessage(\n JSON.stringify({\n event: 'client-hmr-latency',\n id: window.__nextDevClientId,\n startTime: startMsSinceEpoch,\n endTime: endMsSinceEpoch,\n page: window.location.pathname,\n updatedModules,\n // Whether the page (tab) was hidden at the time the event occurred.\n // This can impact the accuracy of the event's timing.\n isPageHidden: document.visibilityState === 'hidden',\n })\n )\n if (self.__NEXT_HMR_LATENCY_CB) {\n self.__NEXT_HMR_LATENCY_CB(latencyMs)\n }\n}\n"],"names":["reportHmrLatency","sendMessage","updatedModules","startMsSinceEpoch","endMsSinceEpoch","hasUpdate","latencyMs","console","log","JSON","stringify","event","id","window","__nextDevClientId","startTime","endTime","page","location","pathname","isPageHidden","document","visibilityState","self","__NEXT_HMR_LATENCY_CB"],"mappings":";;;+BAMA;;;;;;;;;;CAUC,GACD,WAAA;;;eAAwBA;;;AAAT,SAASA,iBACtBC,WAAsC,EACtCC,cAA8C,EAC9CC,iBAAyB,EACzBC,eAAuB,EACvBC,YAAqB,IAAI;IAEzB,MAAMC,YAAYF,kBAAkBD;IACpCI,QAAQC,GAAG,CAAC,CAAC,uBAAuB,EAAEF,UAAU,EAAE,CAAC;IACnD,IAAI,CAACD,WAAW;QACd;IACF;IACAJ,YACEQ,KAAKC,SAAS,CAAC;QACbC,OAAO;QACPC,IAAIC,OAAOC,iBAAiB;QAC5BC,WAAWZ;QACXa,SAASZ;QACTa,MAAMJ,OAAOK,QAAQ,CAACC,QAAQ;QAC9BjB;QACA,oEAAoE;QACpE,sDAAsD;QACtDkB,cAAcC,SAASC,eAAe,KAAK;IAC7C;IAEF,IAAIC,KAAKC,qBAAqB,EAAE;QAC9BD,KAAKC,qBAAqB,CAAClB;IAC7B;AACF","ignoreList":[0]}},
{"offset": {"line": 16703, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/runtime-error-handler.ts"],"sourcesContent":["export const RuntimeErrorHandler = {\n hadRuntimeError: false,\n}\n"],"names":["RuntimeErrorHandler","hadRuntimeError"],"mappings":";;;+BAAaA,uBAAAA;;;eAAAA;;;AAAN,MAAMA,sBAAsB;IACjCC,iBAAiB;AACnB","ignoreList":[0]}},
{"offset": {"line": 16726, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/flight-data-helpers.ts"],"sourcesContent":["import type {\n CacheNodeSeedData,\n FlightData,\n FlightDataPath,\n FlightRouterState,\n FlightSegmentPath,\n Segment,\n HeadData,\n InitialRSCPayload,\n} from '../shared/lib/app-router-types'\nimport { PAGE_SEGMENT_KEY } from '../shared/lib/segment'\nimport type { NormalizedSearch } from './components/segment-cache/cache-key'\nimport {\n getCacheKeyForDynamicParam,\n parseDynamicParamFromURLPart,\n doesStaticSegmentAppearInURL,\n getRenderedPathname,\n getRenderedSearch,\n} from './route-params'\nimport { createHrefFromUrl } from './components/router-reducer/create-href-from-url'\n\nexport type NormalizedFlightData = {\n /**\n * The full `FlightSegmentPath` inclusive of the final `Segment`\n */\n segmentPath: FlightSegmentPath\n /**\n * The `FlightSegmentPath` exclusive of the final `Segment`\n */\n pathToSegment: FlightSegmentPath\n segment: Segment\n tree: FlightRouterState\n seedData: CacheNodeSeedData | null\n head: HeadData\n isHeadPartial: boolean\n isRootRender: boolean\n}\n\n// TODO: We should only have to export `normalizeFlightData`, however because the initial flight data\n// that gets passed to `createInitialRouterState` doesn't conform to the `FlightDataPath` type (it's missing the root segment)\n// we're currently exporting it so we can use it directly. This should be fixed as part of the unification of\n// the different ways we express `FlightSegmentPath`.\nexport function getFlightDataPartsFromPath(\n flightDataPath: FlightDataPath\n): NormalizedFlightData {\n // Pick the last 4 items from the `FlightDataPath` to get the [tree, seedData, viewport, isHeadPartial].\n const flightDataPathLength = 4\n // tree, seedData, and head are *always* the last three items in the `FlightDataPath`.\n const [tree, seedData, head, isHeadPartial] =\n flightDataPath.slice(-flightDataPathLength)\n // The `FlightSegmentPath` is everything except the last three items. For a root render, it won't be present.\n const segmentPath = flightDataPath.slice(0, -flightDataPathLength)\n\n return {\n // TODO: Unify these two segment path helpers. We are inconsistently pushing an empty segment (\"\")\n // to the start of the segment path in some places which makes it hard to use solely the segment path.\n // Look for \"// TODO-APP: remove ''\" in the codebase.\n pathToSegment: segmentPath.slice(0, -1),\n segmentPath,\n // if the `FlightDataPath` corresponds with the root, there'll be no segment path,\n // in which case we default to ''.\n segment: segmentPath[segmentPath.length - 1] ?? '',\n tree,\n seedData,\n head,\n isHeadPartial,\n isRootRender: flightDataPath.length === flightDataPathLength,\n }\n}\n\nexport function createInitialRSCPayloadFromFallbackPrerender(\n response: Response,\n fallbackInitialRSCPayload: InitialRSCPayload\n): InitialRSCPayload {\n // This is a static fallback page. In order to hydrate the page, we need to\n // parse the client params from the URL, but to account for the possibility\n // that the page was rewritten, we need to check the response headers\n // for x-nextjs-rewritten-path or x-nextjs-rewritten-query headers. Since\n // we can't access the headers of the initial document response, the client\n // performs a fetch request to the current location. Since it's possible that\n // the fetch request will be dynamically rewritten to a different path than\n // the initial document, this fetch request delivers _all_ the hydration data\n // for the page; it was not inlined into the document, like it normally\n // would be.\n //\n // TODO: Consider treating the case where fetch is rewritten to a different\n // path from the document as a special deopt case. We should optimistically\n // assume this won't happen, inline the data into the document, and perform\n // a minimal request (like a HEAD or range request) to verify that the\n // response matches. Tricky to get right because we need to account for\n // all the different deployment environments we support, like output:\n // \"export\" mode, where we currently don't assume that custom response\n // headers are present.\n\n // Patch the Flight data sent by the server with the correct params parsed\n // from the URL + response object.\n const renderedPathname = getRenderedPathname(response)\n const renderedSearch = getRenderedSearch(response)\n const canonicalUrl = createHrefFromUrl(new URL(location.href))\n const originalFlightDataPath = fallbackInitialRSCPayload.f[0]\n const originalFlightRouterState = originalFlightDataPath[0]\n const payload: InitialRSCPayload = {\n c: canonicalUrl.split('/'),\n q: renderedSearch,\n i: fallbackInitialRSCPayload.i,\n f: [\n [\n fillInFallbackFlightRouterState(\n originalFlightRoutLine truncated
{"offset": {"line": 16963, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/has-base-path.ts"],"sourcesContent":["import { pathHasPrefix } from '../shared/lib/router/utils/path-has-prefix'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function hasBasePath(path: string): boolean {\n return pathHasPrefix(path, basePath)\n}\n"],"names":["hasBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","pathHasPrefix"],"mappings":"AAEkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,eAAAA;;;eAAAA;;;+BAJc;AAE9B,MAAMC,mDAA6D;AAE5D,SAASD,YAAYK,IAAY;IACtC,OAAOC,CAAAA,GAAAA,eAAAA,aAAa,EAACD,MAAMJ;AAC7B","ignoreList":[0]}},
{"offset": {"line": 16990, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/lib/console.ts"],"sourcesContent":["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"],"names":["formatConsoleArgs","parseConsoleArgs","formatObject","arg","depth","Array","isArray","result","i","length","Object","prototype","hasOwnProperty","call","Error","keys","key","desc","getOwnPropertyDescriptor","get","set","jsonKey","JSON","stringify","value","String","args","message","idx","startQuote","char","code","parseInt","parseFloat","startsWith","environmentName","maybeError","trim","error","isError"],"mappings":";;;;;;;;;;;;;;IA6DgBA,iBAAiB,EAAA;eAAjBA;;IA2DAC,gBAAgB,EAAA;eAAhBA;;;;kEAxHI;AAEpB,SAASC,aAAaC,GAAY,EAAEC,KAAa;IAC/C,OAAQ,OAAOD;QACb,KAAK;YACH,IAAIA,QAAQ,MAAM;gBAChB,OAAO;YACT,OAAO,IAAIE,MAAMLine truncated
{"offset": {"line": 17169, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/lib/javascript-url.ts"],"sourcesContent":["// Adapted from React's sanitizeURL function found here: https://github.com/facebook/react/blob/b565373afd0cc1988497e1107106e851e8cfb261/packages/react-dom-bindings/src/shared/sanitizeURL.js\n\n// A javascript: URL can contain leading C0 control or \\u0020 SPACE,\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\nconst isJavaScriptProtocol =\n // eslint-disable-next-line no-control-regex\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i\n\nexport function isJavaScriptURLString(url: string): boolean {\n return isJavaScriptProtocol.test('' + (url as unknown as string))\n}\n"],"names":["isJavaScriptURLString","isJavaScriptProtocol","url","test"],"mappings":"AAAA,8LAA8L;AAE9L,oEAAoE;AACpE,6EAA6E;AAC7E,2CAA2C;AAC3C,wCAAwC;AACxC,sDAAsD;AACtD,kEAAkE;AAClE,wCAAwC;AACxC,qDAAqD;;;;+BAMrCA,yBAAAA;;;eAAAA;;;AAJhB,MAAMC,uBACJ,AACA,4CAD4C;AAGvC,SAASD,sBAAsBE,GAAW;IAC/C,OAAOD,qBAAqBE,IAAI,CAAC,KAAMD;AACzC","ignoreList":[0]}},
{"offset": {"line": 17202, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/navigation-build-id.ts"],"sourcesContent":["// This gets assigned as a side-effect during app initialization. Because it\n// represents the build used to create the JS bundle, it should never change\n// after being set, so we store it in a global variable.\n//\n// When performing RSC requests, if the incoming data has a different build ID,\n// we perform an MPA navigation/refresh to load the updated build and ensure\n// that the client and server in sync.\n//\n// Starts as an empty string. In practice, because setNavigationBuildId is called during initialization\n// before hydration starts, this will always get reassigned to the actual ID before it's ever needed\n// by a navigation. If for some reasons it didn't, due to a bug or race condition, then on\n// navigation the build comparision would fail and trigger an MPA navigation.\n//\n// Note that this can also be initialized with the deployment id instead (if available). So it's not\n// the same as \"the build id\", but we are running out of alternative names for \"build id or\n// deployment id\".\nlet globalBuildId: string = ''\n\nexport function setNavigationBuildId(buildId: string) {\n globalBuildId = buildId\n}\n\nexport function getNavigationBuildId(): string {\n return globalBuildId\n}\n"],"names":["getNavigationBuildId","setNavigationBuildId","globalBuildId","buildId"],"mappings":"AAAA,4EAA4E;AAC5E,4EAA4E;AAC5E,wDAAwD;AACxD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,sCAAsC;AACtC,EAAE;AACF,uGAAuG;AACvG,oGAAoG;AACpG,0FAA0F;AAC1F,6EAA6E;AAC7E,EAAE;AACF,oGAAoG;AACpG,2FAA2F;AAC3F,kBAAkB;;;;;;;;;;;;;;;IAOFA,oBAAoB,EAAA;eAApBA;;IAJAC,oBAAoB,EAAA;eAApBA;;;AAFhB,IAAIC,gBAAwB;AAErB,SAASD,qBAAqBE,OAAe;IAClDD,gBAAgBC;AAClB;AAEO,SAASH;IACd,OAAOE;AACT","ignoreList":[0]}},
{"offset": {"line": 17257, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/normalize-trailing-slash.ts"],"sourcesContent":["import { removeTrailingSlash } from '../shared/lib/router/utils/remove-trailing-slash'\nimport { parsePath } from '../shared/lib/router/utils/parse-path'\n\n/**\n * Normalizes the trailing slash of a path according to the `trailingSlash` option\n * in `next.config.js`.\n */\nexport const normalizePathTrailingSlash = (path: string) => {\n // 47 is the char code for '/'\n if (path.charCodeAt(0) !== 47 || process.env.__NEXT_MANUAL_TRAILING_SLASH) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n if (process.env.__NEXT_TRAILING_SLASH) {\n if (/\\.[^/]+\\/?$/.test(pathname)) {\n return `${removeTrailingSlash(pathname)}${query}${hash}`\n } else if (pathname.endsWith('/')) {\n return `${pathname}${query}${hash}`\n } else {\n return `${pathname}/${query}${hash}`\n }\n }\n\n return `${removeTrailingSlash(pathname)}${query}${hash}`\n}\n"],"names":["normalizePathTrailingSlash","path","charCodeAt","process","env","__NEXT_MANUAL_TRAILING_SLASH","pathname","query","hash","parsePath","__NEXT_TRAILING_SLASH","test","removeTrailingSlash","endsWith"],"mappings":"AASmCG,QAAQC,GAAG,CAACC,4BAA4B;;;;;+BAF9DL,8BAAAA;;;eAAAA;;;qCAPuB;2BACV;AAMnB,MAAMA,6BAA6B,CAACC;IACzC,8BAA8B;IAC9B,IAAIA,KAAKC,UAAU,CAAC,OAAO,gDAAgD;QACzE,OAAOD;IACT;IAEA,MAAM,EAAEK,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACR;IAC5C,IAAIE,QAAQC,GAAG,CAACM,qBAAqB,EAAE;;IAUvC,OAAO,GAAGE,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACN,YAAYC,QAAQC,MAAM;AAC1D","ignoreList":[0]}},
{"offset": {"line": 17291, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/react-client-callbacks/error-boundary-callbacks.ts"],"sourcesContent":["// This file is only used in app router due to the specific error state handling.\n\nimport type { ErrorInfo } from 'react'\nimport { isNextRouterError } from '../components/is-next-router-error'\nimport { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'\nimport { reportGlobalError } from './report-global-error'\nimport { ErrorBoundaryHandler } from '../components/error-boundary'\nimport DefaultErrorBoundary from '../components/builtin/global-error'\n\nconst devToolErrorMod: typeof import('../../next-devtools/userspace/app/errors') =\n process.env.NODE_ENV !== 'production'\n ? (require('../../next-devtools/userspace/app/errors') as typeof import('../../next-devtools/userspace/app/errors'))\n : {\n decorateDevError: (error: unknown) => error as Error,\n handleClientError: () => {},\n originConsoleError: console.error.bind(console),\n }\n\nexport function onCaughtError(\n thrownValue: unknown,\n errorInfo: ErrorInfo & { errorBoundary?: React.Component }\n) {\n const errorBoundaryComponent = errorInfo.errorBoundary?.constructor\n\n let isImplicitErrorBoundary\n\n if (process.env.NODE_ENV !== 'production') {\n const { AppDevOverlayErrorBoundary } =\n require('../../next-devtools/userspace/app/app-dev-overlay-error-boundary') as typeof import('../../next-devtools/userspace/app/app-dev-overlay-error-boundary')\n\n isImplicitErrorBoundary =\n errorBoundaryComponent === AppDevOverlayErrorBoundary\n }\n\n isImplicitErrorBoundary =\n isImplicitErrorBoundary ||\n (errorBoundaryComponent === ErrorBoundaryHandler &&\n (errorInfo.errorBoundary! as InstanceType<typeof ErrorBoundaryHandler>)\n .props.errorComponent === DefaultErrorBoundary)\n\n // Skip the segment explorer triggered error\n if (process.env.NODE_ENV !== 'production') {\n const { SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE } =\n require('../../next-devtools/userspace/app/segment-explorer-node') as typeof import('../../next-devtools/userspace/app/segment-explorer-node')\n if (\n thrownValue instanceof Error &&\n thrownValue.message === SEGMENT_EXPLORER_SIMULATED_ERROR_MESSAGE\n ) {\n return\n }\n }\n\n if (isImplicitErrorBoundary) {\n // We don't consider errors caught unless they're caught by an explicit error\n // boundary. The built-in ones are considered implicit.\n // This mimics how the same app would behave without Next.js.\n return onUncaughtError(thrownValue)\n }\n\n // Skip certain custom errors which are not expected to be reported on client\n if (isBailoutToCSRError(thrownValue) || isNextRouterError(thrownValue)) return\n\n if (process.env.NODE_ENV !== 'production') {\n const errorBoundaryName =\n // read react component displayName\n (errorBoundaryComponent as any)?.displayName ||\n errorBoundaryComponent?.name ||\n 'Unknown'\n\n const componentThatErroredFrame = errorInfo?.componentStack?.split('\\n')[1]\n\n // Match chrome or safari stack trace\n const matches =\n // regex to match the function name in the stack trace\n // example 1: at Page (http://localhost:3000/_next/static/chunks/pages/index.js?ts=1631600000000:2:1)\n // example 2: Page@http://localhost:3000/_next/static/chunks/pages/index.js?ts=1631600000000:2:1\n componentThatErroredFrame?.match(/\\s+at (\\w+)\\s+|(\\w+)@/) ?? []\n const componentThatErroredName = matches[1] || matches[2] || 'Unknown'\n\n // Create error location with errored component and error boundary, to match the behavior of default React onCaughtError handler.\n const errorBoundaryMessage = `It was handled by the <${errorBoundaryName}> error boundary.`\n const componentErrorMessage = componentThatErroredName\n ? `The above error occurred in the <${componentThatErroredName}> component.`\n : `The above error occurred in one of your components.`\n\n const errorLocation = `${componentErrorMessage} ${errorBoundaryMessage}`\n const error = devToolErrorMod.decorateDevError(thrownValue)\n\n // Log and report the error with location but without modifying the error stack\n devToolErrorMod.originConsoleError('%o\\n\\n%s', thrownValue, errorLocation)\n\n devToolErrorMod.handleClientError(error)\n } else {\n devToolErrorMod.originConsoleError(thrownValue)\n }\n}\n\nexport function onUncaughtError(thrownValue: unknown) {\n // Skip certain custom errors which are not expected to be reported on client\n if (isBailoutToCSRError(thrownValue) || isNextRouterError(thrownValue)) return\n\n if (process.env.NODE_ENV !== 'production') {\n const error = devToolErrorMod.decorateDevError(thrownValue)\n\n // TODO: Add an adendum to the overlay telling people about custom error boundarLine truncated
{"offset": {"line": 17385, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/react-client-callbacks/on-recoverable-error.ts"],"sourcesContent":["// This module can be shared between both pages router and app router\n\nimport type { HydrationOptions } from 'react-dom/client'\nimport { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'\nimport isError from '../../lib/is-error'\nimport { reportGlobalError } from './report-global-error'\n\nconst recoverableErrors = new WeakSet<Error>()\n\nconst isInstantTest =\n process.env.__NEXT_EXPOSE_TESTING_API &&\n typeof self !== 'undefined' &&\n !!self.__next_instant_test\n\nexport function isRecoverableError(error: Error): boolean {\n return recoverableErrors.has(error)\n}\n\nexport const onRecoverableError: HydrationOptions['onRecoverableError'] = (\n error\n) => {\n // x-ref: https://github.com/facebook/react/pull/28736\n let cause = isError(error) && 'cause' in error ? error.cause : error\n // Skip certain custom errors which are not expected to be reported on client\n if (isBailoutToCSRError(cause)) return\n\n // Instant Navigation Testing API: suppress \"server could not finish this\n // Suspense boundary\" errors (React error #419) during instant test mode.\n // The static shell intentionally has incomplete Suspense boundaries — React\n // correctly falls back to client rendering, which is expected.\n if (isInstantTest) {\n if (isError(cause)) {\n if (process.env.NODE_ENV === 'production') {\n if (cause.message.includes('#419')) return\n } else {\n if (cause.message.includes('could not finish this Suspense boundary'))\n return\n }\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n const { decorateDevError } =\n require('../../next-devtools/userspace/app/errors/stitched-error') as typeof import('../../next-devtools/userspace/app/errors/stitched-error')\n const causeError = decorateDevError(cause)\n recoverableErrors.add(causeError)\n cause = causeError\n }\n\n reportGlobalError(cause)\n}\n"],"names":["isRecoverableError","onRecoverableError","recoverableErrors","WeakSet","isInstantTest","process","env","__NEXT_EXPOSE_TESTING_API","self","__next_instant_test","error","has","cause","isError","isBailoutToCSRError","NODE_ENV","message","includes","decorateDevError","require","causeError","add","reportGlobalError"],"mappings":"AAgCUK,QAAQC,GAAG,CAACS,QAAQ,KAAK,cAAc;AAhCjD,qEAAqE;;;;;;;;;;;;;;;;IAcrDf,kBAAkB,EAAA;eAAlBA;;IAIHC,kBAAkB,EAAA;eAAlBA;;;;8BAfuB;kEAChB;mCACc;AAElC,MAAMC,oBAAoB,IAAIC;AAE9B,MAAMC,gBACJC,QAAQC,GAAG,CAACC,yBAAyB,KACrC,OAAOC,SAAS,eAChB,CAAC,CAACA,KAAKC,mBAAmB;AAErB,SAAST,mBAAmBU,KAAY;IAC7C,OAAOR,kBAAkBS,GAAG,CAACD;AAC/B;AAEO,MAAMT,qBAA6D,CACxES;IAEA,sDAAsD;IACtD,IAAIE,QAAQC,CAAAA,GAAAA,SAAAA,OAAO,EAACH,UAAU,WAAWA,QAAQA,MAAME,KAAK,GAAGF;IAC/D,6EAA6E;IAC7E,IAAII,CAAAA,GAAAA,cAAAA,mBAAmB,EAACF,QAAQ;IAEhC,yEAAyE;IACzE,yEAAyE;IACzE,4EAA4E;IAC5E,+DAA+D;IAC/D,IAAIR,eAAe;QACjB,IAAIS,CAAAA,GAAAA,SAAAA,OAAO,EAACD,QAAQ;YAClB;;iBAEO;gBACL,IAAIA,MAAMI,OAAO,CAACC,QAAQ,CAAC,4CACzB;YACJ;QACF;IACF;IAEA,IAAIZ,QAAQC,GAAG,CAACS,QAAQ,KAAK,WAAc;QACzC,MAAM,EAAEG,gBAAgB,EAAE,GACxBC,QAAQ;QACV,MAAMC,aAAaF,iBAAiBN;QACpCV,kBAAkBmB,GAAG,CAACD;QACtBR,QAAQQ;IACV;IAEAE,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACV;AACpB","ignoreList":[0]}},
{"offset": {"line": 17455, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/react-client-callbacks/report-global-error.ts"],"sourcesContent":["export const reportGlobalError =\n typeof reportError === 'function'\n ? // In modern browsers, reportError will dispatch an error event,\n // emulating an uncaught JavaScript error.\n reportError\n : (error: unknown) => {\n // TODO: Dispatch error event\n globalThis.console.error(error)\n }\n"],"names":["reportGlobalError","reportError","error","globalThis","console"],"mappings":";;;+BAAaA,qBAAAA;;;eAAAA;;;AAAN,MAAMA,oBACX,OAAOC,gBAAgB,aAEnB,AACAA,cACA,CAACC,2BAFyC;IAGxC,6BAA6B;IAC7BC,WAAWC,OAAO,CAACF,KAAK,CAACA;AAC3B","ignoreList":[0]}},
{"offset": {"line": 17479, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/register-deployment-id-global.ts"],"sourcesContent":["import { getDeploymentId } from '../shared/lib/deployment-id'\n\nconst deploymentId = getDeploymentId()\n;(globalThis as any).NEXT_DEPLOYMENT_ID = deploymentId\n"],"names":["deploymentId","getDeploymentId","globalThis","NEXT_DEPLOYMENT_ID"],"mappings":";;;8BAAgC;AAEhC,MAAMA,eAAeC,CAAAA,GAAAA,cAAAA,eAAe;AAClCC,WAAmBC,kBAAkB,GAAGH","ignoreList":[0]}},
{"offset": {"line": 17496, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/remove-base-path.ts"],"sourcesContent":["import { hasBasePath } from './has-base-path'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function removeBasePath(path: string): string {\n if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {\n if (!hasBasePath(path)) {\n return path\n }\n }\n\n // Can't trim the basePath if it has zero length!\n if (basePath.length === 0) return path\n\n path = path.slice(basePath.length)\n if (!path.startsWith('/')) path = `/${path}`\n return path\n}\n"],"names":["removeBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","__NEXT_MANUAL_CLIENT_BASE_PATH","hasBasePath","length","slice","startsWith"],"mappings":"AAEkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,kBAAAA;;;eAAAA;;;6BAJY;AAE5B,MAAMC,mDAA6D;AAE5D,SAASD,eAAeK,IAAY;IACzC,IAAIH,QAAQC,GAAG,CAACG,8BAA8B,EAAE;;IAMhD,iDAAiD;IACjD,IAAIL,SAASO,MAAM,KAAK,GAAG,OAAOH;IAElCA,OAAOA,KAAKI,KAAK,CAACR,SAASO,MAAM;IACjC,IAAI,CAACH,KAAKK,UAAU,CAAC,MAAML,OAAO,CAAC,CAAC,EAAEA,MAAM;IAC5C,OAAOA;AACT","ignoreList":[0]}},
{"offset": {"line": 17529, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/route-params.ts"],"sourcesContent":["import type { DynamicParamTypesShort } from '../shared/lib/app-router-types'\nimport {\n addSearchParamsIfPageSegment,\n DEFAULT_SEGMENT_KEY,\n PAGE_SEGMENT_KEY,\n} from '../shared/lib/segment'\nimport { ROOT_SEGMENT_REQUEST_KEY } from '../shared/lib/segment-cache/segment-value-encoding'\nimport {\n NEXT_REWRITTEN_PATH_HEADER,\n NEXT_REWRITTEN_QUERY_HEADER,\n NEXT_RSC_UNION_QUERY,\n} from './components/app-router-headers'\nimport { hasBasePath } from './has-base-path'\nimport { removeBasePath } from './remove-base-path'\nimport type {\n NormalizedPathname,\n NormalizedSearch,\n} from './components/segment-cache/cache-key'\nimport type { RSCResponse } from './components/router-reducer/fetch-server-response'\nimport type { ParsedUrlQuery } from 'querystring'\n\nexport type RouteParamValue = string | Array<string> | null\n\nexport function getRenderedSearch(\n response: RSCResponse<unknown> | Response\n): NormalizedSearch {\n // If the server performed a rewrite, the search params used to render the\n // page will be different from the params in the request URL. In this case,\n // the response will include a header that gives the rewritten search query.\n const rewrittenQuery = response.headers.get(NEXT_REWRITTEN_QUERY_HEADER)\n if (rewrittenQuery !== null) {\n return (\n rewrittenQuery === '' ? '' : '?' + rewrittenQuery\n ) as NormalizedSearch\n }\n // If the header is not present, there was no rewrite, so we use the search\n // query of the response URL.\n return urlToUrlWithoutFlightMarker(new URL(response.url))\n .search as NormalizedSearch\n}\n\nexport function getRenderedPathname(\n response: RSCResponse<unknown> | Response\n): NormalizedPathname {\n // If the server performed a rewrite, the pathname used to render the\n // page will be different from the pathname in the request URL. In this case,\n // the response will include a header that gives the rewritten pathname.\n const rewrittenPath = response.headers.get(NEXT_REWRITTEN_PATH_HEADER)\n if (rewrittenPath !== null) {\n return rewrittenPath as NormalizedPathname\n }\n\n const pathname = urlToUrlWithoutFlightMarker(new URL(response.url)).pathname\n return (\n hasBasePath(pathname) ? removeBasePath(pathname) : pathname\n ) as NormalizedPathname\n}\n\n// Pathname parts come from `URL.pathname.split('/')`, so they are already\n// in the encoded form the URL parser produces. The server-side equivalent\n// (`get-dynamic-param.ts`) starts from a decoded param value and applies\n// `encodeURIComponent` once. The two encodings are not the same — for\n// example, the URL parser leaves `,` and `:` untouched while\n// `encodeURIComponent` percent-encodes them. To produce the same canonical\n// form on the client (and avoid double-encoding `%xx` sequences such as\n// `%2F` → `%252F`), we decode the URL part first and re-encode it.\nfunction canonicalizeURLPart(part: string): string {\n try {\n return encodeURIComponent(decodeURIComponent(part))\n } catch {\n // `decodeURIComponent` throws on malformed sequences. Fall back to the\n // already-encoded form rather than failing the navigation.\n return part\n }\n}\n\nexport function parseDynamicParamFromURLPart(\n paramType: DynamicParamTypesShort,\n pathnameParts: Array<string>,\n partIndex: number\n): RouteParamValue {\n // This needs to match the behavior in get-dynamic-param.ts.\n switch (paramType) {\n // Catchalls\n case 'c': {\n // Catchalls receive all the remaining URL parts. If there are no\n // remaining pathname parts, return an empty array.\n return partIndex < pathnameParts.length\n ? pathnameParts.slice(partIndex).map((s) => canonicalizeURLPart(s))\n : []\n }\n // Catchall intercepted\n case 'ci(..)(..)':\n case 'ci(.)':\n case 'ci(..)':\n case 'ci(...)': {\n const prefix = paramType.length - 2\n return partIndex < pathnameParts.length\n ? pathnameParts.slice(partIndex).map((s, i) => {\n if (i === 0) {\n return canonicalizeURLPart(s.slice(prefix))\n }\n\n return canonicalizeURLPart(s)\n })\n : []\n }\n // Optional catchalls\n case 'oc': {\n // Optional catchalls receive all the remaining URL parts, unless this is\n // the end of the pathname, in which case they return null.\n return partIndex < pathnameParts.length\n ? pathnameParts.slice(partIndex).map((s) => canonicalizeURLPart(s))\n : null\n }\n // Dynamic\n case 'd': {\n if (partIndex >= pathnameParts.length) {\n // The route tree expected there to be more parts in the URL than there\n // actually are. This could happen if the x-nextjs-rewritten-path header\n // is incorrectly set, or potentiallyLine truncated
{"offset": {"line": 17780, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/set-attributes-from-props.ts"],"sourcesContent":["const DOMAttributeNames: Record<string, string> = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv',\n noModule: 'noModule',\n}\n\nconst ignoreProps = [\n 'onLoad',\n 'onReady',\n 'dangerouslySetInnerHTML',\n 'children',\n 'onError',\n 'strategy',\n 'stylesheets',\n]\n\nfunction isBooleanScriptAttribute(\n attr: string\n): attr is 'async' | 'defer' | 'noModule' {\n return ['async', 'defer', 'noModule'].includes(attr)\n}\n\nexport function setAttributesFromProps(el: HTMLElement, props: object) {\n for (const [p, value] of Object.entries(props)) {\n if (!props.hasOwnProperty(p)) continue\n if (ignoreProps.includes(p)) continue\n\n // we don't render undefined props to the DOM\n if (value === undefined) {\n continue\n }\n\n const attr = DOMAttributeNames[p] || p.toLowerCase()\n\n if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {\n // Correctly assign boolean script attributes\n // https://github.com/vercel/next.js/pull/20748\n ;(el as HTMLScriptElement)[attr] = !!value\n } else {\n el.setAttribute(attr, String(value))\n }\n\n // Remove falsy non-zero boolean attributes so they are correctly interpreted\n // (e.g. if we set them to false, this coerces to the string \"false\", which the browser interprets as true)\n if (\n value === false ||\n (el.tagName === 'SCRIPT' &&\n isBooleanScriptAttribute(attr) &&\n (!value || value === 'false'))\n ) {\n // Call setAttribute before, as we need to set and unset the attribute to override force async:\n // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async\n el.setAttribute(attr, '')\n el.removeAttribute(attr)\n }\n }\n}\n"],"names":["setAttributesFromProps","DOMAttributeNames","acceptCharset","className","htmlFor","httpEquiv","noModule","ignoreProps","isBooleanScriptAttribute","attr","includes","el","props","p","value","Object","entries","hasOwnProperty","undefined","toLowerCase","tagName","setAttribute","String","removeAttribute"],"mappings":";;;+BAwBgBA,0BAAAA;;;eAAAA;;;AAxBhB,MAAMC,oBAA4C;IAChDC,eAAe;IACfC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,UAAU;AACZ;AAEA,MAAMC,cAAc;IAClB;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,SAASC,yBACPC,IAAY;IAEZ,OAAO;QAAC;QAAS;QAAS;KAAW,CAACC,QAAQ,CAACD;AACjD;AAEO,SAAST,uBAAuBW,EAAe,EAAEC,KAAa;IACnE,KAAK,MAAM,CAACC,GAAGC,MAAM,IAAIC,OAAOC,OAAO,CAACJ,OAAQ;QAC9C,IAAI,CAACA,MAAMK,cAAc,CAACJ,IAAI;QAC9B,IAAIN,YAAYG,QAAQ,CAACG,IAAI;QAE7B,6CAA6C;QAC7C,IAAIC,UAAUI,WAAW;YACvB;QACF;QAEA,MAAMT,OAAOR,iBAAiB,CAACY,EAAE,IAAIA,EAAEM,WAAW;QAElD,IAAIR,GAAGS,OAAO,KAAK,YAAYZ,yBAAyBC,OAAO;YAC7D,6CAA6C;YAC7C,+CAA+C;;YAC7CE,EAAwB,CAACF,KAAK,GAAG,CAAC,CAACK;QACvC,OAAO;YACLH,GAAGU,YAAY,CAACZ,MAAMa,OAAOR;QAC/B;QAEA,6EAA6E;QAC7E,2GAA2G;QAC3G,IACEA,UAAU,SACTH,GAAGS,OAAO,KAAK,YACdZ,yBAAyBC,SACxB,CAAA,CAACK,SAASA,UAAU,OAAM,GAC7B;YACA,+FAA+F;YAC/F,2EAA2E;YAC3EH,GAAGU,YAAY,CAACZ,MAAM;YACtBE,GAAGY,eAAe,CAACd;QACrB;IACF;AACF","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,49 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/add-base-path.ts"],"sourcesContent":["import { addPathPrefix } from '../shared/lib/router/utils/add-path-prefix'\nimport { normalizePathTrailingSlash } from './normalize-trailing-slash'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function addBasePath(path: string, required?: boolean): string {\n return normalizePathTrailingSlash(\n process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required\n ? path\n : addPathPrefix(path, basePath)\n )\n}\n"],"names":["addBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","required","normalizePathTrailingSlash","__NEXT_MANUAL_CLIENT_BASE_PATH","addPathPrefix"],"mappings":"AAGkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,eAAAA;;;eAAAA;;;+BALc;wCACa;AAE3C,MAAMC,mDAA6D;AAE5D,SAASD,YAAYK,IAAY,EAAEC,QAAkB;IAC1D,OAAOC,CAAAA,GAAAA,wBAAAA,0BAA0B,EAC/BL,QAAQC,GAAG,CAACK,0BACRH,IADsC,IAAI,CAACC,iBAE3CG,CAAAA,GAAAA,eAAAA,aAAa,EAACJ,MAAMJ;AAE5B","ignoreList":[0]}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/add-locale.ts"],"sourcesContent":["import type { addLocale as Fn } from '../shared/lib/router/utils/add-locale'\nimport { normalizePathTrailingSlash } from './normalize-trailing-slash'\n\nexport const addLocale: typeof Fn = (path, ...args) => {\n if (process.env.__NEXT_I18N_SUPPORT) {\n return normalizePathTrailingSlash(\n (\n require('../shared/lib/router/utils/add-locale') as typeof import('../shared/lib/router/utils/add-locale')\n ).addLocale(path, ...args)\n )\n }\n return path\n}\n"],"names":["addLocale","path","args","process","env","__NEXT_I18N_SUPPORT","normalizePathTrailingSlash","require"],"mappings":"AAIMG,QAAQC,GAAG,CAACC,mBAAmB,EAAE;;;;;+BAD1BL,aAAAA;;;eAAAA;;;wCAF8B;AAEpC,MAAMA,YAAuB,CAACC,MAAM,GAAGC;IAC5C;;IAOA,OAAOD;AACT","ignoreList":[0]}},
{"offset": {"line": 60, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/http-access-fallback/http-access-fallback.ts"],"sourcesContent":["export const HTTPAccessErrorStatus = {\n NOT_FOUND: 404,\n FORBIDDEN: 403,\n UNAUTHORIZED: 401,\n}\n\nconst ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus))\n\nexport const HTTP_ERROR_FALLBACK_ERROR_CODE = 'NEXT_HTTP_ERROR_FALLBACK'\n\nexport type HTTPAccessFallbackError = Error & {\n digest: `${typeof HTTP_ERROR_FALLBACK_ERROR_CODE};${string}`\n}\n\n/**\n * Checks an error to determine if it's an error generated by\n * the HTTP navigation APIs `notFound()`, `forbidden()` or `unauthorized()`.\n *\n * @param error the error that may reference a HTTP access error\n * @returns true if the error is a HTTP access error\n */\nexport function isHTTPAccessFallbackError(\n error: unknown\n): error is HTTPAccessFallbackError {\n if (\n typeof error !== 'object' ||\n error === null ||\n !('digest' in error) ||\n typeof error.digest !== 'string'\n ) {\n return false\n }\n const [prefix, httpStatus] = error.digest.split(';')\n\n return (\n prefix === HTTP_ERROR_FALLBACK_ERROR_CODE &&\n ALLOWED_CODES.has(Number(httpStatus))\n )\n}\n\nexport function getAccessFallbackHTTPStatus(\n error: HTTPAccessFallbackError\n): number {\n const httpStatus = error.digest.split(';')[1]\n return Number(httpStatus)\n}\n\nexport function getAccessFallbackErrorTypeByStatus(\n status: number\n): 'not-found' | 'forbidden' | 'unauthorized' | undefined {\n switch (status) {\n case 401:\n return 'unauthorized'\n case 403:\n return 'forbidden'\n case 404:\n return 'not-found'\n default:\n return\n }\n}\n"],"names":["HTTPAccessErrorStatus","HTTP_ERROR_FALLBACK_ERROR_CODE","getAccessFallbackErrorTypeByStatus","getAccessFallbackHTTPStatus","isHTTPAccessFallbackError","NOT_FOUND","FORBIDDEN","UNAUTHORIZED","ALLOWED_CODES","Set","Object","values","error","digest","prefix","httpStatus","split","has","Number","status"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,qBAAqB,EAAA;eAArBA;;IAQAC,8BAA8B,EAAA;eAA9BA;;IAuCGC,kCAAkC,EAAA;eAAlCA;;IAPAC,2BAA2B,EAAA;eAA3BA;;IAnBAC,yBAAyB,EAAA;eAAzBA;;;AArBT,MAAMJ,wBAAwB;IACnCK,WAAW;IACXC,WAAW;IACXC,cAAc;AAChB;AAEA,MAAMC,gBAAgB,IAAIC,IAAIC,OAAOC,MAAM,CAACX;AAErC,MAAMC,iCAAiC;AAavC,SAASG,0BACdQ,KAAc;IAEd,IACE,OAAOA,UAAU,YACjBA,UAAU,QACV,CAAE,CAAA,YAAYA,KAAI,KAClB,OAAOA,MAAMC,MAAM,KAAK,UACxB;QACA,OAAO;IACT;IACA,MAAM,CAACC,QAAQC,WAAW,GAAGH,MAAMC,MAAM,CAACG,KAAK,CAAC;IAEhD,OACEF,WAAWb,kCACXO,cAAcS,GAAG,CAACC,OAAOH;AAE7B;AAEO,SAASZ,4BACdS,KAA8B;IAE9B,MAAMG,aAAaH,MAAMC,MAAM,CAACG,KAAK,CAAC,IAAI,CAAC,EAAE;IAC7C,OAAOE,OAAOH;AAChB;AAEO,SAASb,mCACdiB,MAAc;IAEd,OAAQA;QACN,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT,KAAK;YACH,OAAO;QACT;YACE;IACJ;AACF","ignoreList":[0]}},
{"offset": {"line": 134, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/is-next-router-error.ts"],"sourcesContent":["import {\n isHTTPAccessFallbackError,\n type HTTPAccessFallbackError,\n} from './http-access-fallback/http-access-fallback'\nimport { isRedirectError, type RedirectError } from './redirect-error'\n\n/**\n * Returns true if the error is a navigation signal error. These errors are\n * thrown by user code to perform navigation operations and interrupt the React\n * render.\n */\nexport function isNextRouterError(\n error: unknown\n): error is RedirectError | HTTPAccessFallbackError {\n return isRedirectError(error) || isHTTPAccessFallbackError(error)\n}\n"],"names":["isNextRouterError","error","isRedirectError","isHTTPAccessFallbackError"],"mappings":";;;+BAWgBA,qBAAAA;;;eAAAA;;;oCART;+BAC6C;AAO7C,SAASA,kBACdC,KAAc;IAEd,OAAOC,CAAAA,GAAAA,eAAAA,eAAe,EAACD,UAAUE,CAAAA,GAAAA,oBAAAA,yBAAyB,EAACF;AAC7D","ignoreList":[0]}},
{"offset": {"line": 159, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/readonly-url-search-params.ts"],"sourcesContent":["/**\n * ReadonlyURLSearchParams implementation shared between client and server.\n * This file is intentionally not marked as 'use client' or 'use server'\n * so it can be imported by both environments.\n */\n\n/** @internal */\nclass ReadonlyURLSearchParamsError extends Error {\n constructor() {\n super(\n 'Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams'\n )\n }\n}\n\n/**\n * A read-only version of URLSearchParams that throws errors when mutation methods are called.\n * This ensures that the URLSearchParams returned by useSearchParams() cannot be mutated.\n */\nexport class ReadonlyURLSearchParams extends URLSearchParams {\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n append() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n delete() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n set() {\n throw new ReadonlyURLSearchParamsError()\n }\n /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */\n sort() {\n throw new ReadonlyURLSearchParamsError()\n }\n}\n"],"names":["ReadonlyURLSearchParams","ReadonlyURLSearchParamsError","Error","constructor","URLSearchParams","append","delete","set","sort"],"mappings":"AAAA;;;;CAIC,GAED,cAAc;;;+BAaDA,2BAAAA;;;eAAAA;;;AAZb,MAAMC,qCAAqCC;IACzCC,aAAc;QACZ,KAAK,CACH;QADF,OAAA,cAEC,CAFD,IAEC,EAFD,qBAAA;mBAAA;wBAAA;0BAAA;QAEA;IACF;AACF;AAMO,MAAMH,gCAAgCI;IAC3C,wKAAwK,GACxKC,SAAS;QACP,MAAM,IAAIJ;IACZ;IACA,wKAAwK,GACxKK,SAAS;QACP,MAAM,IAAIL;IACZ;IACA,wKAAwK,GACxKM,MAAM;QACJ,MAAM,IAAIN;IACZ;IACA,wKAAwK,GACxKO,OAAO;QACL,MAAM,IAAIP;IACZ;AACF","ignoreList":[0]}},
{"offset": {"line": 207, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect-error.ts"],"sourcesContent":["import { RedirectStatusCode } from './redirect-status-code'\n\nexport const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT'\n\nexport type RedirectType = 'push' | 'replace'\n\nexport type RedirectError = Error & {\n digest: `${typeof REDIRECT_ERROR_CODE};${RedirectType};${string};${RedirectStatusCode};`\n}\n\n/**\n * Checks an error to determine if it's an error generated by the\n * `redirect(url)` helper.\n *\n * @param error the error that may reference a redirect error\n * @returns true if the error is a redirect error\n */\nexport function isRedirectError(error: unknown): error is RedirectError {\n if (\n typeof error !== 'object' ||\n error === null ||\n !('digest' in error) ||\n typeof error.digest !== 'string'\n ) {\n return false\n }\n\n const digest = error.digest.split(';')\n const [errorCode, type] = digest\n const destination = digest.slice(2, -2).join(';')\n const status = digest.at(-2)\n\n const statusCode = Number(status)\n\n return (\n errorCode === REDIRECT_ERROR_CODE &&\n (type === 'replace' || type === 'push') &&\n typeof destination === 'string' &&\n !isNaN(statusCode) &&\n statusCode in RedirectStatusCode\n )\n}\n"],"names":["REDIRECT_ERROR_CODE","isRedirectError","error","digest","split","errorCode","type","destination","slice","join","status","at","statusCode","Number","isNaN","RedirectStatusCode"],"mappings":";;;;;;;;;;;;;;IAEaA,mBAAmB,EAAA;eAAnBA;;IAeGC,eAAe,EAAA;eAAfA;;;oCAjBmB;AAE5B,MAAMD,sBAAsB;AAe5B,SAASC,gBAAgBC,KAAc;IAC5C,IACE,OAAOA,UAAU,YACjBA,UAAU,QACV,CAAE,CAAA,YAAYA,KAAI,KAClB,OAAOA,MAAMC,MAAM,KAAK,UACxB;QACA,OAAO;IACT;IAEA,MAAMA,SAASD,MAAMC,MAAM,CAACC,KAAK,CAAC;IAClC,MAAM,CAACC,WAAWC,KAAK,GAAGH;IAC1B,MAAMI,cAAcJ,OAAOK,KAAK,CAAC,GAAG,CAAC,GAAGC,IAAI,CAAC;IAC7C,MAAMC,SAASP,OAAOQ,EAAE,CAAC,CAAC;IAE1B,MAAMC,aAAaC,OAAOH;IAE1B,OACEL,cAAcL,uBACbM,CAAAA,SAAS,aAAaA,SAAS,MAAK,KACrC,OAAOC,gBAAgB,YACvB,CAACO,MAAMF,eACPA,cAAcG,oBAAAA,kBAAkB;AAEpC","ignoreList":[0]}},
{"offset": {"line": 252, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/components/redirect-status-code.ts"],"sourcesContent":["export enum RedirectStatusCode {\n SeeOther = 303,\n TemporaryRedirect = 307,\n PermanentRedirect = 308,\n}\n"],"names":["RedirectStatusCode"],"mappings":";;;+BAAYA,sBAAAA;;;eAAAA;;;AAAL,IAAKA,qBAAAA,WAAAA,GAAAA,SAAAA,kBAAAA;;;;WAAAA","ignoreList":[0]}},
{"offset": {"line": 278, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/detect-domain-locale.ts"],"sourcesContent":["import type { detectDomainLocale as Fn } from '../shared/lib/i18n/detect-domain-locale'\n\nexport const detectDomainLocale: typeof Fn = (...args) => {\n if (process.env.__NEXT_I18N_SUPPORT) {\n return (\n require('../shared/lib/i18n/detect-domain-locale') as typeof import('../shared/lib/i18n/detect-domain-locale')\n ).detectDomainLocale(...args)\n }\n}\n"],"names":["detectDomainLocale","args","process","env","__NEXT_I18N_SUPPORT","require"],"mappings":"AAGME,QAAQC,GAAG,CAACC,mBAAmB,EAAE;;;;;+BAD1BJ,sBAAAA;;;eAAAA;;;AAAN,MAAMA,qBAAgC,CAAC,GAAGC;IAC/C;;AAKF","ignoreList":[0]}},
{"offset": {"line": 304, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/fouc.ts"],"sourcesContent":["// This wrapper function is used to safely select the best available function\n// to schedule removal of the no-FOUC styles workaround. requestAnimationFrame\n// is the ideal choice, but when used in iframes, there are no guarantees that\n// the callback will actually be called, which could stall the promise returned\n// from displayContent.\n//\n// See: https://www.vector-logic.com/blog/posts/on-request-animation-frame-and-embedded-iframes\nconst safeCallbackQueue = (callback: () => void) => {\n if (window.requestAnimationFrame && window.self === window.top) {\n window.requestAnimationFrame(callback)\n } else {\n window.setTimeout(callback)\n }\n}\n\n// This function is used to remove Next.js' no-FOUC styles workaround for using\n// `style-loader` in development. It must be called before hydration, or else\n// rendering won't have the correct computed values in effects.\nexport function displayContent(): Promise<void> {\n return new Promise((resolve) => {\n safeCallbackQueue(function () {\n for (\n var x = document.querySelectorAll('[data-next-hide-fouc]'),\n i = x.length;\n i--;\n\n ) {\n x[i].parentNode!.removeChild(x[i])\n }\n resolve()\n })\n })\n}\n"],"names":["displayContent","safeCallbackQueue","callback","window","requestAnimationFrame","self","top","setTimeout","Promise","resolve","x","document","querySelectorAll","i","length","parentNode","removeChild"],"mappings":"AAAA,6EAA6E;AAC7E,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,uBAAuB;AACvB,EAAE;AACF,+FAA+F;;;;+BAY/EA,kBAAAA;;;eAAAA;;;AAXhB,MAAMC,oBAAoB,CAACC;IACzB,IAAIC,OAAOC,qBAAqB,IAAID,OAAOE,IAAI,KAAKF,OAAOG,GAAG,EAAE;QAC9DH,OAAOC,qBAAqB,CAACF;IAC/B,OAAO;QACLC,OAAOI,UAAU,CAACL;IACpB;AACF;AAKO,SAASF;IACd,OAAO,IAAIQ,QAAQ,CAACC;QAClBR,kBAAkB;YAChB,IACE,IAAIS,IAAIC,SAASC,gBAAgB,CAAC,0BAChCC,IAAIH,EAAEI,MAAM,EACdD,KAEA;gBACAH,CAAC,CAACG,EAAE,CAACE,UAAU,CAAEC,WAAW,CAACN,CAAC,CAACG,EAAE;YACnC;YACAJ;QACF;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 348, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-middleware-client.ts"],"sourcesContent":["import { HMR_MESSAGE_SENT_TO_BROWSER } from '../../server/dev/hot-reloader-types'\nimport type {\n NextRouter,\n PrivateRouteInfo,\n} from '../../shared/lib/router/router'\nimport connect from './hot-reloader/pages/hot-reloader-pages'\nimport { sendMessage } from './hot-reloader/pages/websocket'\n\n// Define a local type for the window.next object\ninterface NextWindow {\n next?: {\n router?: NextRouter & {\n components: { [pathname: string]: PrivateRouteInfo }\n }\n }\n __nextDevClientId?: string\n location: Location\n}\n\ndeclare const window: NextWindow\n\nlet reloading = false\n\nexport default () => {\n const devClient = connect()\n\n devClient.subscribeToHmrEvent((message) => {\n if (reloading) return\n\n // Retrieve the router if it's available\n const router = window.next?.router\n\n // Determine if we're on an error page or the router is not initialized\n const isOnErrorPage =\n !router || router.pathname === '/404' || router.pathname === '/_error'\n\n switch (message.type) {\n case HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE: {\n sendMessage(\n JSON.stringify({\n event: 'client-reload-page',\n clientId: window.__nextDevClientId,\n })\n )\n reloading = true\n return window.location.reload()\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE: {\n const [page] = message.data\n\n // Check if the removed page is the current page\n const isCurrentPage = page === router?.pathname\n\n // We enter here if the removed page is currently being viewed\n // or if we happen to be on an error page.\n if (isCurrentPage || isOnErrorPage) {\n sendMessage(\n JSON.stringify({\n event: 'client-removed-page',\n clientId: window.__nextDevClientId,\n page,\n })\n )\n return window.location.reload()\n }\n return\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE: {\n const [page] = message.data\n\n // Check if the added page is the current page\n const isCurrentPage = page === router?.pathname\n\n // Check if the page component is not yet loaded\n const isPageNotLoaded =\n page !== null && typeof router?.components?.[page] === 'undefined'\n\n // We enter this block if the newly added page is the one currently being viewed\n // but hasn't been loaded yet, or if we're on an error page.\n if ((isCurrentPage && isPageNotLoaded) || isOnErrorPage) {\n sendMessage(\n JSON.stringify({\n event: 'client-added-page',\n clientId: window.__nextDevClientId,\n page,\n })\n )\n return window.location.reload()\n }\n return\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE: {\n return\n }\n default: {\n message satisfies never\n }\n }\n })\n\n return devClient\n}\n"],"names":["reloading","devClient","connect","subscribeToHmrEvent","message","router","window","next","isOnErrorPage","pathname","type","HMR_MESSAGE_SENT_TO_BROWSER","RELOAD_PAGE","sendMessage","JSON","stringify","event","clientId","__nextDevClientId","location","reload","REMOVED_PAGE","page","data","isCurrentPage","ADDED_PAGE","isPageNotLoaded","components","DEV_PAGES_MANIFEST_UPDATE"],"mappings":";;;+BAuBA,WAAA;;;eAAA;;;;kCAvB4C;2EAKxB;2BACQ;AAe5B,IAAIA,YAAY;MAEhB,WAAe;IACb,MAAMC,YAAYC,CAAAA,GAAAA,kBAAAA,OAAO;IAEzBD,UAAUE,mBAAmB,CAAC,CAACC;QAC7B,IAAIJ,WAAW;QAEf,wCAAwC;QACxC,MAAMK,SAASC,OAAOC,IAAI,EAAEF;QAE5B,uEAAuE;QACvE,MAAMG,gBACJ,CAACH,UAAUA,OAAOI,QAAQ,KAAK,UAAUJ,OAAOI,QAAQ,KAAK;QAE/D,OAAQL,QAAQM,IAAI;YAClB,KAAKC,kBAAAA,2BAA2B,CAACC,WAAW;gBAAE;oBAC5CC,CAAAA,GAAAA,WAAAA,WAAW,EACTC,KAAKC,SAAS,CAAC;wBACbC,OAAO;wBACPC,UAAUX,OAAOY,iBAAiB;oBACpC;oBAEFlB,YAAY;oBACZ,OAAOM,OAAOa,QAAQ,CAACC,MAAM;gBAC/B;YACA,KAAKT,kBAAAA,2BAA2B,CAACU,YAAY;gBAAE;oBAC7C,MAAM,CAACC,KAAK,GAAGlB,QAAQmB,IAAI;oBAE3B,gDAAgD;oBAChD,MAAMC,gBAAgBF,SAASjB,QAAQI;oBAEvC,8DAA8D;oBAC9D,0CAA0C;oBAC1C,IAAIe,iBAAiBhB,eAAe;wBAClCK,CAAAA,GAAAA,WAAAA,WAAW,EACTC,KAAKC,SAAS,CAAC;4BACbC,OAAO;4BACPC,UAAUX,OAAOY,iBAAiB;4BAClCI;wBACF;wBAEF,OAAOhB,OAAOa,QAAQ,CAACC,MAAM;oBAC/B;oBACA;gBACF;YACA,KAAKT,kBAAAA,2BAA2B,CAACc,UAAU;gBAAE;oBAC3C,MAAM,CAACH,KAAK,GAAGlB,QAAQmB,IAAI;oBAE3B,8CAA8C;oBAC9C,MAAMC,gBAAgBF,SAASjB,QAAQI;oBAEvC,gDAAgD;oBAChD,MAAMiB,kBACJJ,SAAS,QAAQ,OAAOjB,QAAQsB,YAAY,CAACL,KAAK,KAAK;oBAEzD,gFAAgF;oBAChF,4DAA4D;oBAC5D,IAAKE,iBAAiBE,mBAAoBlB,eAAe;wBACvDK,CAAAA,GAAAA,WAAAA,WAAW,EACTC,KAAKC,SAAS,CAAC;4BACbC,OAAO;4BACPC,UAAUX,OAAOY,iBAAiB;4BAClCI;wBACF;wBAEF,OAAOhB,OAAOa,QAAQ,CAACC,MAAM;oBAC/B;oBACA;gBACF;YACA,KAAKT,kBAAAA,2BAA2B,CAACiB,yBAAyLine truncated
{"offset": {"line": 439, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/get-socket-url.ts"],"sourcesContent":["import { normalizedAssetPrefix } from '../../../shared/lib/normalized-asset-prefix'\n\nfunction getSocketProtocol(assetPrefix: string): string {\n let protocol = window.location.protocol\n\n try {\n // assetPrefix is a url\n protocol = new URL(assetPrefix).protocol\n } catch {}\n\n return protocol === 'http:' ? 'ws:' : 'wss:'\n}\n\nexport function getSocketUrl(assetPrefix: string | undefined): string {\n const prefix = normalizedAssetPrefix(assetPrefix)\n const protocol = getSocketProtocol(assetPrefix || '')\n\n if (URL.canParse(prefix)) {\n // since normalized asset prefix is ensured to be a URL format,\n // we can safely replace the protocol\n return prefix.replace(/^http/, 'ws')\n }\n\n const { hostname, port } = window.location\n return `${protocol}//${hostname}${port ? `:${port}` : ''}${prefix}`\n}\n"],"names":["getSocketUrl","getSocketProtocol","assetPrefix","protocol","window","location","URL","prefix","normalizedAssetPrefix","canParse","replace","hostname","port"],"mappings":";;;+BAagBA,gBAAAA;;;eAAAA;;;uCAbsB;AAEtC,SAASC,kBAAkBC,WAAmB;IAC5C,IAAIC,WAAWC,OAAOC,QAAQ,CAACF,QAAQ;IAEvC,IAAI;QACF,uBAAuB;QACvBA,WAAW,IAAIG,IAAIJ,aAAaC,QAAQ;IAC1C,EAAE,OAAM,CAAC;IAET,OAAOA,aAAa,UAAU,QAAQ;AACxC;AAEO,SAASH,aAAaE,WAA+B;IAC1D,MAAMK,SAASC,CAAAA,GAAAA,uBAAAA,qBAAqB,EAACN;IACrC,MAAMC,WAAWF,kBAAkBC,eAAe;IAElD,IAAII,IAAIG,QAAQ,CAACF,SAAS;QACxB,+DAA+D;QAC/D,qCAAqC;QACrC,OAAOA,OAAOG,OAAO,CAAC,SAAS;IACjC;IAEA,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAE,GAAGR,OAAOC,QAAQ;IAC1C,OAAO,GAAGF,SAAS,EAAE,EAAEQ,WAAWC,OAAO,CAAC,CAAC,EAAEA,MAAM,GAAG,KAAKL,QAAQ;AACrE","ignoreList":[0]}},
{"offset": {"line": 479, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/pages/hot-reloader-pages.ts"],"sourcesContent":["// TODO: Remove use of `any` type.\n/**\n * MIT License\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\n\n/// <reference types=\"webpack/module.d.ts\" />\n\n// This file is a modified version of the Create React App HMR dev client that\n// can be found here:\n// https://github.com/facebook/create-react-app/blob/v3.4.1/packages/react-dev-utils/webpackHotDevClient.js\n\n/// <reference types=\"webpack/module.d.ts\" />\n\nimport {\n dispatcher,\n getSerializedOverlayState,\n getSegmentTrieData,\n} from 'next/dist/compiled/next-devtools'\nimport { register } from '../../../../next-devtools/userspace/pages/pages-dev-overlay-setup'\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\nimport { addMessageListener, sendMessage } from './websocket'\nimport formatWebpackMessages from '../../../../shared/lib/format-webpack-messages'\nimport type { McpPageMetadataResponse } from '../../../../shared/lib/mcp-page-metadata-types'\nimport {\n HMR_MESSAGE_SENT_TO_BROWSER,\n HMR_MESSAGE_SENT_TO_SERVER,\n} from '../../../../server/dev/hot-reloader-types'\nimport type {\n AddedPageMessage,\n DevPagesManifestUpdateMessage,\n HmrMessageSentToBrowser,\n ReloadPageMessage,\n RemovedPageMessage,\n TurbopackMessageSentToBrowser,\n} from '../../../../server/dev/hot-reloader-types'\nimport {\n REACT_REFRESH_FULL_RELOAD,\n REACT_REFRESH_FULL_RELOAD_FROM_ERROR,\n reportInvalidHmrMessage,\n} from '../shared'\nimport { RuntimeErrorHandler } from '../../runtime-error-handler'\nimport reportHmrLatency from '../../report-hmr-latency'\nimport { TurbopackHmr } from '../turbopack-hot-reloader-common'\n\n// This alternative WebpackDevServer combines the functionality of:\n// https://github.com/webpack/webpack-dev-server/blob/webpack-1/client/index.js\n// https://github.com/webpack/webpack/blob/webpack-1/hot/dev-server.js\n\n// It only supports their simplest configuration (hot updates on same server).\n// It makes some opinionated choices on top, like adding a syntax error overlay\n// that looks similar to our console output. The error overlay is inspired by:\n// https://github.com/glenjamin/webpack-hot-middleware\n\ndeclare global {\n interface Window {\n __nextDevClientId: number\n }\n}\n\ntype CustomHmrEventHandler = (\n message:\n | AddedPageMessage\n | RemovedPageMessage\n | ReloadPageMessage\n | DevPagesManifestUpdateMessage\n) => void\n\nwindow.__nextDevClientId = Math.round(Math.random() * 100 + Date.now())\n\nlet customHmrEventHandler: CustomHmrEventHandler | undefined\n\nlet turbopackMessageListeners: ((\n message: TurbopackMessageSentToBrowser\n) => void)[] = []\nexport default function connect() {\n register()\n\n addMessageListener((message) => {\n try {\n processMessage(message)\n } catch (err: unknown) {\n reportInvalidHmrMessage(message, err)\n }\n })\n\n return {\n subscribeToHmrEvent(handler: CustomHmrEventHandler) {\n customHmrEventHandler = handler\n },\n onUnrecoverableError() {\n RuntimeErrorHandler.hadRuntimeError = true\n },\n addTurbopackMessageListener(\n cb: (msg: TurbopackMessageSentToBrowser) => void\n ) {\n turbopackMessageListeners.push(cb)\n },\n sendTurbopackMessage(msg: string) {\n sendMessage(msg)\n },\n handleUpdateError(err: unknown) {\n performFullReload(err)\n },\n }\n}\n\n// Remember some state related to hot module replacement.\nvar isFirstCompilation = true\nvar mostRecentCompilationHash: string | null = null\nvar hasCompileErrors = false\n\nfunction clearOutdatedErrors() {\n // Clean up outdated compile errors, if any.\n if (typeof console !== 'undefined' && typeof console.clear === 'function'Line truncated
{"offset": {"line": 920, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/pages/websocket.ts"],"sourcesContent":["import { logQueue } from '../../../../next-devtools/userspace/app/forward-logs'\nimport {\n HMR_MESSAGE_SENT_TO_BROWSER,\n type HmrMessageSentToBrowser,\n} from '../../../../server/dev/hot-reloader-types'\nimport { getSocketUrl } from '../get-socket-url'\nimport { WEB_SOCKET_MAX_RECONNECTIONS } from '../../../../lib/constants'\n\nlet source: WebSocket\n\ntype MessageCallback = (message: HmrMessageSentToBrowser) => void\n\nconst messageCallbacks: Array<MessageCallback> = []\n\nexport function addMessageListener(callback: MessageCallback) {\n messageCallbacks.push(callback)\n}\n\nexport function sendMessage(data: string) {\n if (!source || source.readyState !== source.OPEN) return\n return source.send(data)\n}\n\nlet reconnections = 0\nlet reloading = false\nlet serverSessionId: number | null = null\n\nexport function connectHMR(options: { path: string; assetPrefix: string }) {\n let timer: ReturnType<typeof setTimeout>\n\n function init() {\n if (source) source.close()\n\n function handleOnline() {\n logQueue.onSocketReady(source)\n reconnections = 0\n window.console.log('[HMR] connected')\n }\n\n function handleMessage(event: MessageEvent<string>) {\n // While the page is reloading, don't respond to any more messages.\n // On reconnect, the server may send an empty list of changes if it was restarted.\n if (reloading) {\n return\n }\n\n const message: HmrMessageSentToBrowser = JSON.parse(event.data)\n\n if (message.type === HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED) {\n if (\n serverSessionId !== null &&\n serverSessionId !== message.data.sessionId\n ) {\n // Either the server's session id has changed and it's a new server, or\n // it's been too long since we disconnected and we should reload the page.\n // There could be 1) unhandled server errors and/or 2) stale content.\n // Perform a hard reload of the page.\n window.location.reload()\n\n reloading = true\n return\n }\n\n serverSessionId = message.data.sessionId\n }\n\n for (const messageCallback of messageCallbacks) {\n messageCallback(message)\n }\n }\n\n function handleDisconnect() {\n source.onerror = null\n source.onclose = null\n source.close()\n reconnections++\n // After WEB_SOCKET_MAX_RECONNECTIONS reconnects we'll want to reload the page as it indicates the dev server is no longer running.\n if (reconnections > WEB_SOCKET_MAX_RECONNECTIONS) {\n reloading = true\n window.location.reload()\n return\n }\n\n clearTimeout(timer)\n // Try again after 5 seconds\n timer = setTimeout(init, reconnections > 5 ? 5000 : 1000)\n }\n\n const url = getSocketUrl(options.assetPrefix)\n\n source = new window.WebSocket(`${url}${options.path}`)\n source.onopen = handleOnline\n source.onerror = handleDisconnect\n source.onclose = handleDisconnect\n source.onmessage = handleMessage\n }\n\n function handleVisibilityChange() {\n if (\n document.visibilityState === 'visible' &&\n source.readyState !== WebSocket.OPEN\n ) {\n reconnections = 0\n clearTimeout(timer)\n init()\n }\n }\n\n function handleOnlineEvent() {\n if (source.readyState !== WebSocket.OPEN) {\n reconnections = 0\n clearTimeout(timer)\n init()\n }\n }\n\n document.addEventListener('visibilitychange', handleVisibilityChange)\n window.addEventListener('online', handleOnlineEvent)\n\n init()\n}\n"],"names":["addMessageListener","connectHMR","sendMessage","source","messageCallbacks","callback","push","data","readyState","OPEN","send","reconnections","reloading","serverSessionId","options","timer","init","close","handleOnline","logQueue","onSocketReady","window","console","log","handleMessage","event","message","JSON","parse","type","HMR_MESSAGE_SENT_TO_BROWSER","TURBOPACK_CONNECTED","sessionId","location","reload","messageCallback","handleDisconnect","onerror","onclose","WEB_SOCKET_MAX_RECONNECTIONS","clearTimeout","setTimeout","url","getSocketUrl","assetPrefix","WebSocket","path","onopen","onmessage","handleVisibilityChange","document","visibilityState","handleOnlineEvent","addEventListener"],"mappings":";;;;;;;;;;;;;;;IAcgBA,kBAAkB,EAAA;eAAlBA;;IAaAC,UAAU,EAAA;eAAVA;;IATAC,WAAW,EAAA;eAAXA;;;6BAlBS;kCAIlB;8BACsB;2BACgB;AAE7C,IAAIC;AAIJ,MAAMC,mBAA2C,EAAE;AAE5C,SAASJ,mBAAmBK,QAAyB;IAC1DD,iBAAiBE,IAAI,CAACD;AACxB;AAEO,SAASH,YAAYK,IAAY;IACtC,IAAI,CAACJ,UAAUA,OAAOK,UAAU,KAAKL,OAAOM,IAAI,EAAE;IAClD,OAAON,OAAOO,IAAI,CAACH;AACrB;AAEA,IAAII,gBAAgB;AACpB,IAAIC,YAAY;AAChB,IAAIC,kBAAiC;AAE9B,SAASZ,WAAWa,OAA8C;IACvE,IAAIC;IAEJ,SAASC;QACP,IAAIb,QAAQA,OAAOc,KAAK;Line truncated
{"offset": {"line": 1044, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/shared.ts"],"sourcesContent":["import type { HmrMessageSentToBrowser } from '../../../server/dev/hot-reloader-types'\n\nexport const REACT_REFRESH_FULL_RELOAD =\n '[Fast Refresh] performing full reload\\n\\n' +\n \"Fast Refresh will perform a full reload when you edit a file that's imported by modules outside of the React rendering tree.\\n\" +\n 'You might have a file which exports a React component but also exports a value that is imported by a non-React component file.\\n' +\n 'Consider migrating the non-React component export to a separate file and importing it into both files.\\n\\n' +\n 'It is also possible the parent component of the component you edited is a class component, which disables Fast Refresh.\\n' +\n 'Fast Refresh requires at least one parent function component in your React tree.'\n\nexport const REACT_REFRESH_FULL_RELOAD_FROM_ERROR =\n '[Fast Refresh] performing full reload because your application had an unrecoverable error'\n\nexport function reportInvalidHmrMessage(\n message: HmrMessageSentToBrowser | MessageEvent<unknown>,\n err: unknown\n) {\n console.warn(\n '[HMR] Invalid message: ' +\n JSON.stringify(message) +\n '\\n' +\n ((err instanceof Error && err?.stack) || '')\n )\n}\n"],"names":["REACT_REFRESH_FULL_RELOAD","REACT_REFRESH_FULL_RELOAD_FROM_ERROR","reportInvalidHmrMessage","message","err","console","warn","JSON","stringify","Error","stack"],"mappings":";;;;;;;;;;;;;;;IAEaA,yBAAyB,EAAA;eAAzBA;;IAQAC,oCAAoC,EAAA;eAApCA;;IAGGC,uBAAuB,EAAA;eAAvBA;;;AAXT,MAAMF,4BACX,8CACA,mIACA,qIACA,+GACA,8HACA;AAEK,MAAMC,uCACX;AAEK,SAASC,wBACdC,OAAwD,EACxDC,GAAY;IAEZC,QAAQC,IAAI,CACV,4BACEC,KAAKC,SAAS,CAACL,WACf,OACC,CAACC,eAAeK,SAASL,KAAKM,SAAU,EAAC;AAEhD","ignoreList":[0]}},
{"offset": {"line": 1085, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/hot-reloader/turbopack-hot-reloader-common.ts"],"sourcesContent":["import type { TurbopackMessage } from '../../../server/dev/hot-reloader-types'\nimport type { Update as TurbopackUpdate } from '../../../build/swc/types'\nimport { DeferredEmit } from '../../../shared/lib/turbopack/deferred-emit'\n\ndeclare global {\n interface Window {\n __NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS: boolean | undefined\n }\n}\n\n// How long to wait before reporting the HMR start, used to suppress irrelevant\n// `BUILDING` events. Does not impact reported latency.\nconst TURBOPACK_HMR_START_DELAY_MS = 100\n\ninterface HmrUpdate {\n hasUpdates: boolean\n updatedModules: Set<string>\n startMsSinceEpoch: number\n endMsSinceEpoch: number\n}\n\nexport class TurbopackHmr {\n #updatedModules: Set<string>\n #startMsSinceEpoch: number | undefined\n #lastUpdateMsSinceEpoch: number | undefined\n // HACK: Turbopack tends to generate a lot of irrelevant \"BUILDING\" actions,\n // as it reports *any* compilation, including fully no-op/cached compilations\n // and those unrelated to HMR. Fixing this would require significant\n // architectural changes.\n //\n // Work around this by deferring the `[Fast Refresh] rebuilding` message by\n // 100ms. If we get a BUILT event within that threshold and nothing has\n // changed, just suppress the message entirely. (The dev server applies the\n // same defer to the BUILDING HMR message itself; see `DeferredEmit` usage in\n // hot-reloader-turbopack.ts.)\n #deferredReportHmrStart: DeferredEmit\n #reportedHmrStart: boolean\n\n constructor() {\n this.#updatedModules = new Set()\n this.#deferredReportHmrStart = new DeferredEmit()\n this.#reportedHmrStart = false\n }\n\n onBuilding() {\n this.#lastUpdateMsSinceEpoch = undefined\n this.#deferredReportHmrStart.cancel()\n this.#startMsSinceEpoch = Date.now()\n\n // report the HMR start after a short delay\n this.#deferredReportHmrStart.schedule(\n // debugging feature: don't defer/suppress noisy no-op HMR update messages\n self.__NEXT_HMR_TURBOPACK_REPORT_NOISY_NOOP_EVENTS\n ? 0\n : TURBOPACK_HMR_START_DELAY_MS,\n () => {\n console.log('[Fast Refresh] rebuilding')\n this.#reportedHmrStart = true\n }\n )\n }\n\n /** Helper for other `onEvent` methods. */\n #onUpdate() {\n this.#deferredReportHmrStart.flush()\n this.#lastUpdateMsSinceEpoch = Date.now()\n }\n\n onTurbopackMessage(msg: TurbopackMessage) {\n this.#onUpdate()\n const updatedModules = extractModulesFromTurbopackMessage(msg.data)\n for (const module of updatedModules) {\n this.#updatedModules.add(module)\n }\n }\n\n onServerComponentChanges() {\n this.#onUpdate()\n }\n\n onReloadPage() {\n this.#onUpdate()\n }\n\n onPageAddRemove() {\n this.#onUpdate()\n }\n\n /**\n * @returns `null` if the caller should ignore the update entirely. Returns an\n * object with `hasUpdates: false` if the caller should report the end of\n * the HMR in the browser console, but the HMR was a no-op.\n */\n onBuilt(): HmrUpdate | null {\n // Check that we got *any* `TurbopackMessage`, even if\n // `updatedModules` is empty (not everything gets recorded there).\n //\n // There's also a case where `onBuilt` gets called before `onBuilding`,\n // which can happen during initial page load. Ignore that too!\n const hasUpdates =\n this.#lastUpdateMsSinceEpoch != null && this.#startMsSinceEpoch != null\n if (!hasUpdates && !this.#reportedHmrStart) {\n // suppress the update entirely\n this.#deferredReportHmrStart.cancel()\n return null\n }\n this.#deferredReportHmrStart.flush()\n\n const result = {\n hasUpdates,\n updatedModules: this.#updatedModules,\n startMsSinceEpoch: this.#startMsSinceEpoch!,\n endMsSinceEpoch: this.#lastUpdateMsSinceEpoch ?? Date.now(),\n }\n this.#updatedModules = new Set()\n this.#reportedHmrStart = false\n return result\n }\n}\n\nfunction extractModulesFromTurbopackMessage(\n data: TurbopackUpdate | TurbopackUpdate[]\n): Set<string> {\n const updatedModules: Set<string> = new Set()\n\n const updates = Array.isArray(data) ? data : [data]\n for (const update of updates) {\n // TODO this won't capture changes to CSS since they don't result in a \"merged\" update\n if (\n update.type !== 'partial' ||\n update.instruction.type !== 'ChunkListUpdate' ||\n update.instruction.merged === undefined\n ) {\n continue\n }\n\n for (const mergedUpdate of update.instruction.merged) {\n if (!mergedUpdate.entries) continue\n for (const name of Object.keys(mergedUpdate.entries)) {\n const res = /(.*)\\s+[([].*/.exec(name)\n if (res === null) {\n continue\n }\n\n Line truncated
{"offset": {"line": 1211, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/on-demand-entries-client.ts"],"sourcesContent":["import Router from '../router'\nimport { sendMessage } from './hot-reloader/pages/websocket'\n\nexport default async () => {\n // Never send pings when using Turbopack as it's not used.\n // Pings were originally used to keep track of active routes in on-demand-entries with webpack.\n if (process.env.TURBOPACK) {\n return\n }\n\n Router.ready(() => {\n setInterval(() => {\n // when notFound: true is returned we should use the notFoundPage\n // as the Router.pathname will point to the 404 page but we want\n // to ping the source page that returned notFound: true instead\n const notFoundSrcPage = self.__NEXT_DATA__.notFoundSrcPage\n const pathname =\n (Router.pathname === '/404' || Router.pathname === '/_error') &&\n notFoundSrcPage\n ? notFoundSrcPage\n : Router.pathname\n\n sendMessage(JSON.stringify({ event: 'ping', page: pathname }))\n }, 2500)\n })\n}\n"],"names":["process","env","TURBOPACK","Router","ready","setInterval","notFoundSrcPage","self","__NEXT_DATA__","pathname","sendMessage","JSON","stringify","event","page"],"mappings":"AAMMA,QAAQC,GAAG,CAACC,SAAS;;;;;+BAH3B,WAAA;;;eAAA;;;;iEAHmB;2BACS;MAE5B,WAAe;IACb,0DAA0D;IAC1D,+FAA+F;IAC/F,wCAA2B;QACzB;IACF;;;AAiBF","ignoreList":[0]}},
{"offset": {"line": 1245, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/report-hmr-latency.ts"],"sourcesContent":["declare global {\n interface Window {\n __NEXT_HMR_LATENCY_CB: ((latencyMs: number) => void) | undefined\n }\n}\n\n/**\n * Logs information about a completed HMR to the console, the server (via a\n * `client-hmr-latency` event), and to `self.__NEXT_HMR_LATENCY_CB` (a debugging\n * hook).\n *\n * @param hasUpdate Set this to `false` to avoid reporting the HMR event via a\n * `client-hmr-latency` event or to `self.__NEXT_HMR_LATENCY_CB`. Used by\n * turbopack when we must report a message to the browser console (because we\n * already logged a \"rebuilding\" message), but it's not a real HMR, so we\n * don't want to impact our telemetry.\n */\nexport default function reportHmrLatency(\n sendMessage: (message: string) => void,\n updatedModules: ReadonlyArray<string | number>,\n startMsSinceEpoch: number,\n endMsSinceEpoch: number,\n hasUpdate: boolean = true\n) {\n const latencyMs = endMsSinceEpoch - startMsSinceEpoch\n console.log(`[Fast Refresh] done in ${latencyMs}ms`)\n if (!hasUpdate) {\n return\n }\n sendMessage(\n JSON.stringify({\n event: 'client-hmr-latency',\n id: window.__nextDevClientId,\n startTime: startMsSinceEpoch,\n endTime: endMsSinceEpoch,\n page: window.location.pathname,\n updatedModules,\n // Whether the page (tab) was hidden at the time the event occurred.\n // This can impact the accuracy of the event's timing.\n isPageHidden: document.visibilityState === 'hidden',\n })\n )\n if (self.__NEXT_HMR_LATENCY_CB) {\n self.__NEXT_HMR_LATENCY_CB(latencyMs)\n }\n}\n"],"names":["reportHmrLatency","sendMessage","updatedModules","startMsSinceEpoch","endMsSinceEpoch","hasUpdate","latencyMs","console","log","JSON","stringify","event","id","window","__nextDevClientId","startTime","endTime","page","location","pathname","isPageHidden","document","visibilityState","self","__NEXT_HMR_LATENCY_CB"],"mappings":";;;+BAMA;;;;;;;;;;CAUC,GACD,WAAA;;;eAAwBA;;;AAAT,SAASA,iBACtBC,WAAsC,EACtCC,cAA8C,EAC9CC,iBAAyB,EACzBC,eAAuB,EACvBC,YAAqB,IAAI;IAEzB,MAAMC,YAAYF,kBAAkBD;IACpCI,QAAQC,GAAG,CAAC,CAAC,uBAAuB,EAAEF,UAAU,EAAE,CAAC;IACnD,IAAI,CAACD,WAAW;QACd;IACF;IACAJ,YACEQ,KAAKC,SAAS,CAAC;QACbC,OAAO;QACPC,IAAIC,OAAOC,iBAAiB;QAC5BC,WAAWZ;QACXa,SAASZ;QACTa,MAAMJ,OAAOK,QAAQ,CAACC,QAAQ;QAC9BjB;QACA,oEAAoE;QACpE,sDAAsD;QACtDkB,cAAcC,SAASC,eAAe,KAAK;IAC7C;IAEF,IAAIC,KAAKC,qBAAqB,EAAE;QAC9BD,KAAKC,qBAAqB,CAAClB;IAC7B;AACF","ignoreList":[0]}},
{"offset": {"line": 1296, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/dev/runtime-error-handler.ts"],"sourcesContent":["export const RuntimeErrorHandler = {\n hadRuntimeError: false,\n}\n"],"names":["RuntimeErrorHandler","hadRuntimeError"],"mappings":";;;+BAAaA,uBAAAA;;;eAAAA;;;AAAN,MAAMA,sBAAsB;IACjCC,iBAAiB;AACnB","ignoreList":[0]}},
{"offset": {"line": 1319, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/has-base-path.ts"],"sourcesContent":["import { pathHasPrefix } from '../shared/lib/router/utils/path-has-prefix'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function hasBasePath(path: string): boolean {\n return pathHasPrefix(path, basePath)\n}\n"],"names":["hasBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","pathHasPrefix"],"mappings":"AAEkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,eAAAA;;;eAAAA;;;+BAJc;AAE9B,MAAMC,mDAA6D;AAE5D,SAASD,YAAYK,IAAY;IACtC,OAAOC,CAAAA,GAAAA,eAAAA,aAAa,EAACD,MAAMJ;AAC7B","ignoreList":[0]}},
{"offset": {"line": 1346, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/head-manager.ts"],"sourcesContent":["import { setAttributesFromProps } from './set-attributes-from-props'\n\nimport type { JSX } from 'react'\n\nfunction reactElementToDOM({ type, props }: JSX.Element): HTMLElement {\n const el: HTMLElement = document.createElement(type)\n setAttributesFromProps(el, props)\n\n const { children, dangerouslySetInnerHTML } = props\n if (dangerouslySetInnerHTML) {\n el.innerHTML = dangerouslySetInnerHTML.__html || ''\n } else if (children) {\n el.textContent =\n typeof children === 'string'\n ? children\n : Array.isArray(children)\n ? children.join('')\n : ''\n }\n return el\n}\n\n/**\n * When a `nonce` is present on an element, browsers such as Chrome and Firefox strip it out of the\n * actual HTML attributes for security reasons *when the element is added to the document*. Thus,\n * given two equivalent elements that have nonces, `Element,isEqualNode()` will return false if one\n * of those elements gets added to the document. Although the `element.nonce` property will be the\n * same for both elements, the one that was added to the document will return an empty string for\n * its nonce HTML attribute value.\n *\n * This custom `isEqualNode()` function therefore removes the nonce value from the `newTag` before\n * comparing it to `oldTag`, restoring it afterwards.\n *\n * For more information, see:\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1211471#c12\n */\nexport function isEqualNode(oldTag: Element, newTag: Element) {\n if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {\n const nonce = newTag.getAttribute('nonce')\n // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not\n // be stripped if there is no content security policy response header that includes a nonce.\n if (nonce && !oldTag.getAttribute('nonce')) {\n const cloneTag = newTag.cloneNode(true) as typeof newTag\n cloneTag.setAttribute('nonce', '')\n cloneTag.nonce = nonce\n return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag)\n }\n }\n\n return oldTag.isEqualNode(newTag)\n}\n\nfunction updateElements(type: string, components: JSX.Element[]) {\n const headEl = document.querySelector('head')\n if (!headEl) return\n\n const oldTags = new Set(headEl.querySelectorAll(`${type}[data-next-head]`))\n\n if (type === 'meta') {\n const metaCharset = headEl.querySelector('meta[charset]')\n if (metaCharset !== null) {\n oldTags.add(metaCharset)\n }\n }\n\n const newTags: Element[] = []\n for (let i = 0; i < components.length; i++) {\n const component = components[i]\n const newTag = reactElementToDOM(component)\n newTag.setAttribute('data-next-head', '')\n\n let isNew = true\n for (const oldTag of oldTags) {\n if (isEqualNode(oldTag, newTag)) {\n oldTags.delete(oldTag)\n isNew = false\n break\n }\n }\n\n if (isNew) {\n newTags.push(newTag)\n }\n }\n\n for (const oldTag of oldTags) {\n oldTag.parentNode?.removeChild(oldTag)\n }\n\n for (const newTag of newTags) {\n // meta[charset] must be first element so special case\n if (\n newTag.tagName.toLowerCase() === 'meta' &&\n newTag.getAttribute('charset') !== null\n ) {\n headEl.prepend(newTag)\n }\n headEl.appendChild(newTag)\n }\n}\n\nexport default function initHeadManager(): {\n mountedInstances: Set<unknown>\n updateHead: (head: JSX.Element[]) => void\n} {\n return {\n mountedInstances: new Set(),\n updateHead: (head: JSX.Element[]) => {\n const tags: Record<string, JSX.Element[]> = {}\n\n head.forEach((h) => {\n if (\n // If the font tag is loaded only on client navigation\n // it won't be inlined. In this case revert to the original behavior\n h.type === 'link' &&\n h.props['data-optimized-fonts']\n ) {\n if (\n document.querySelector(`style[data-href=\"${h.props['data-href']}\"]`)\n ) {\n return\n } else {\n h.props.href = h.props['data-href']\n h.props['data-href'] = undefined\n }\n }\n\n const components = tags[h.type] || []\n components.push(h)\n tags[h.type] = components\n })\n\n const titleComponent = tags.title ? tags.title[0] : null\n let title = ''\n if (titleComponent) {\n const { children } = titleComponent.props\n title =\n typeof children === 'string'\n ? children\n : Array.isArray(children)\n ? children.join('')\n : ''\n }\n if (title !== document.title) document.title = title\n ;['meta', 'base', 'link', 'style', 'script'].forEach((type) => {\n updateElLine truncated
{"offset": {"line": 1480, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/index.tsx"],"sourcesContent":["/* global location */\n// imports polyfill from `@next/polyfill-module` after build.\nimport '../build/polyfills/polyfill-module'\nimport type Router from '../shared/lib/router/router'\nimport type {\n AppComponent,\n AppProps,\n PrivateRouteInfo,\n} from '../shared/lib/router/router'\n\nimport React, { type JSX } from 'react'\nimport ReactDOM from 'react-dom/client'\nimport { HeadManagerContext } from '../shared/lib/head-manager-context.shared-runtime'\nimport mitt from '../shared/lib/mitt'\nimport type { MittEmitter } from '../shared/lib/mitt'\nimport { RouterContext } from '../shared/lib/router-context.shared-runtime'\nimport { disableSmoothScrollDuringRouteTransition } from '../shared/lib/router/utils/disable-smooth-scroll'\nimport { isDynamicRoute } from '../shared/lib/router/utils/is-dynamic'\nimport {\n urlQueryToSearchParams,\n assign,\n} from '../shared/lib/router/utils/querystring'\nimport { getURL, loadGetInitialProps, ST } from '../shared/lib/utils'\nimport type { NextWebVitalsMetric, NEXT_DATA } from '../shared/lib/utils'\nimport { Portal } from './portal'\nimport initHeadManager from './head-manager'\nimport PageLoader from './page-loader'\nimport type { StyleSheetTuple } from './page-loader'\nimport { RouteAnnouncer } from './route-announcer'\nimport { createRouter, makePublicRouterInstance } from './router'\nimport { getProperError } from '../lib/is-error'\nimport { ImageConfigContext } from '../shared/lib/image-config-context.shared-runtime'\nimport type { ImageConfigComplete } from '../shared/lib/image-config'\nimport { removeBasePath } from './remove-base-path'\nimport { hasBasePath } from './has-base-path'\nimport { AppRouterContext } from '../shared/lib/app-router-context.shared-runtime'\nimport {\n adaptForAppRouterInstance,\n adaptForPathParams,\n adaptForSearchParams,\n PathnameContextProviderAdapter,\n} from '../shared/lib/router/adapters'\nimport {\n SearchParamsContext,\n PathParamsContext,\n} from '../shared/lib/hooks-client-context.shared-runtime'\nimport { onRecoverableError } from './react-client-callbacks/on-recoverable-error'\nimport tracer from './tracing/tracer'\nimport { isNextRouterError } from './components/is-next-router-error'\n\n/// <reference types=\"react-dom/experimental\" />\n\ndeclare global {\n interface Window {\n /* test fns */\n __NEXT_HYDRATED?: boolean\n __NEXT_HYDRATED_AT?: number\n __NEXT_HYDRATED_CB?: () => void\n\n /* prod */\n __NEXT_DATA__: NEXT_DATA\n __NEXT_P: any[]\n }\n}\ntype RenderRouteInfo = PrivateRouteInfo & {\n App: AppComponent\n scroll?: { x: number; y: number } | null\n isHydratePass?: boolean\n}\ntype RenderErrorProps = Omit<RenderRouteInfo, 'Component' | 'styleSheets'>\ntype RegisterFn = (input: [string, () => void]) => void\n\nexport const version = process.env.__NEXT_VERSION\nexport let router: Router\nexport const emitter: MittEmitter<string> = mitt()\n\nconst looseToArray = <T extends {}>(input: any): T[] => [].slice.call(input)\n\nlet initialData: NEXT_DATA\nlet defaultLocale: string | undefined = undefined\nlet asPath: string\nlet pageLoader: PageLoader\nlet appElement: HTMLElement | null\nlet headManager: {\n mountedInstances: Set<unknown>\n updateHead: (head: JSX.Element[]) => void\n getIsSsr?: () => boolean\n}\nlet initialMatchesMiddleware = false\nlet lastAppProps: AppProps\n\nlet lastRenderReject: (() => void) | null\nlet devClient: any\n\nlet CachedApp: AppComponent, onPerfEntry: (metric: any) => void\nlet CachedComponent: React.ComponentType\n\nclass Container extends React.Component<{\n children?: React.ReactNode\n fn: (err: Error, info?: any) => void\n}> {\n componentDidCatch(componentErr: Error, info: any) {\n this.props.fn(componentErr, info)\n }\n\n componentDidMount() {\n this.scrollToHash()\n\n // We need to replace the router state if:\n // - the page was (auto) exported and has a query string or search (hash)\n // - it was auto exported and is a dynamic route (to provide params)\n // - if it is a client-side skeleton (fallback render)\n // - if middleware matches the current page (may have rewrite params)\n // - if rewrites in next.config.js match (may have rewrite params)\n if (\n router.isSsr &&\n (initialData.isFallback ||\n (initialData.nextExport &&\n (isDynamicRoute(router.pathname) ||\n location.search ||\n process.env.__NEXT_HAS_REWRITES ||\n initialMatchesMiddleware)) ||\n (initialData.props &&\n initialData.props.__N_SSG &&\n (location.search ||\n process.env.__NEXT_HAS_REWRITES ||\n initialMatchesMiddleware)))\n ) {\n // update query on mount for exported pages\n router\n .replace(\n router.pathname +\n '?' +\n Line truncated
{"offset": {"line": 2141, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/lib/javascript-url.ts"],"sourcesContent":["// Adapted from React's sanitizeURL function found here: https://github.com/facebook/react/blob/b565373afd0cc1988497e1107106e851e8cfb261/packages/react-dom-bindings/src/shared/sanitizeURL.js\n\n// A javascript: URL can contain leading C0 control or \\u0020 SPACE,\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\nconst isJavaScriptProtocol =\n // eslint-disable-next-line no-control-regex\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i\n\nexport function isJavaScriptURLString(url: string): boolean {\n return isJavaScriptProtocol.test('' + (url as unknown as string))\n}\n"],"names":["isJavaScriptURLString","isJavaScriptProtocol","url","test"],"mappings":"AAAA,8LAA8L;AAE9L,oEAAoE;AACpE,6EAA6E;AAC7E,2CAA2C;AAC3C,wCAAwC;AACxC,sDAAsD;AACtD,kEAAkE;AAClE,wCAAwC;AACxC,qDAAqD;;;;+BAMrCA,yBAAAA;;;eAAAA;;;AAJhB,MAAMC,uBACJ,AACA,4CAD4C;AAGvC,SAASD,sBAAsBE,GAAW;IAC/C,OAAOD,qBAAqBE,IAAI,CAAC,KAAMD;AACzC","ignoreList":[0]}},
{"offset": {"line": 2174, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/lib/promise.ts"],"sourcesContent":["import { requestIdleCallback } from '../request-idle-callback'\n\n// 3.8s was arbitrarily chosen as it's what https://web.dev/interactive\n// considers as \"Good\" time-to-interactive. We must assume something went\n// wrong beyond this point, and then fall-back to a full page transition to\n// show the user something of value.\nconst MS_MAX_IDLE_DELAY = 3800\n\n/** Resolve a promise that times out after given amount of milliseconds. */\nexport function resolvePromiseWithTimeout<T>(\n p: Promise<T>,\n err: Error,\n devPromise: Promise<void> | undefined\n): Promise<T> {\n return new Promise((resolve, reject) => {\n let cancelled = false\n\n p.then((r) => {\n // Resolved, cancel the timeout\n cancelled = true\n resolve(r)\n }).catch(reject)\n\n // We wrap these checks separately for better dead-code elimination in\n // production bundles.\n if (process.env.NODE_ENV === 'development') {\n ;(devPromise || Promise.resolve()).then(() => {\n requestIdleCallback(() =>\n setTimeout(() => {\n if (!cancelled) {\n reject(err)\n }\n }, MS_MAX_IDLE_DELAY)\n )\n })\n }\n\n if (process.env.NODE_ENV !== 'development') {\n requestIdleCallback(() =>\n setTimeout(() => {\n if (!cancelled) {\n reject(err)\n }\n }, MS_MAX_IDLE_DELAY)\n )\n }\n })\n}\n"],"names":["resolvePromiseWithTimeout","MS_MAX_IDLE_DELAY","p","err","devPromise","Promise","resolve","reject","cancelled","then","r","catch","process","env","NODE_ENV","requestIdleCallback","setTimeout"],"mappings":"AAyBQY,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAhBjBd,6BAAAA;;;eAAAA;;;qCAToB;AAEpC,uEAAuE;AACvE,yEAAyE;AACzE,2EAA2E;AAC3E,oCAAoC;AACpC,MAAMC,oBAAoB;AAGnB,SAASD,0BACdE,CAAa,EACbC,GAAU,EACVC,UAAqC;IAErC,OAAO,IAAIC,QAAQ,CAACC,SAASC;QAC3B,IAAIC,YAAY;QAEhBN,EAAEO,IAAI,CAAC,CAACC;YACN,+BAA+B;YAC/BF,YAAY;YACZF,QAAQI;QACV,GAAGC,KAAK,CAACJ;QAET,sEAAsE;QACtE,sBAAsB;QACtB,wCAA4C;;YACxCH,CAAAA,cAAcC,QAAQC,OAAO,EAAC,EAAGG,IAAI,CAAC;gBACtCM,CAAAA,GAAAA,qBAAAA,mBAAmB,EAAC,IAClBC,WAAW;wBACT,IAAI,CAACR,WAAW;4BACdD,OAAOJ;wBACT;oBACF,GAAGF;YAEP;QACF;QAEA,IAAIW,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;;IAS9C;AACF","ignoreList":[0]}},
{"offset": {"line": 2226, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/next-dev-turbopack.ts"],"sourcesContent":["// TODO: Remove use of `any` type.\nimport './register-deployment-id-global'\nimport { initialize, version, router, emitter } from './'\nimport initHMR from './dev/hot-middleware-client'\n\nimport { pageBootstrap } from './page-bootstrap'\n//@ts-expect-error requires \"moduleResolution\": \"node16\" in tsconfig.json and not .ts extension\nimport { connect } from '@vercel/turbopack-ecmascript-runtime/browser/dev/hmr-client/hmr-client.ts'\nimport type { TurbopackMessageSentToBrowser } from '../server/dev/hot-reloader-types'\n\nwindow.next = {\n version,\n turbopack: true,\n // router is initialized later so it has to be live-binded\n get router() {\n return router\n },\n emitter,\n}\n;(self as any).__next_set_public_path__ = () => {}\n;(self as any).__webpack_hash__ = ''\n\n// for the page loader\ndeclare let __turbopack_load__: any\n\nconst devClient = initHMR()\ninitialize({\n devClient,\n})\n .then(({ assetPrefix }) => {\n // for the page loader\n ;(self as any).__turbopack_load_page_chunks__ = (\n page: string,\n chunksData: any\n ) => {\n const chunkPromises = chunksData.map((c: unknown) =>\n __turbopack_load__(c)\n )\n\n Promise.all(chunkPromises).catch((err) =>\n console.error('failed to load chunks for page ' + page, err)\n )\n }\n\n connect({\n addMessageListener(cb: (message: TurbopackMessageSentToBrowser) => void) {\n devClient.addTurbopackMessageListener(cb)\n },\n sendMessage: devClient.sendTurbopackMessage,\n onUpdateError: devClient.handleUpdateError,\n })\n\n return pageBootstrap(assetPrefix)\n })\n .catch((err) => {\n console.error('Error was not caught', err)\n })\n"],"names":["window","next","version","turbopack","router","emitter","self","__next_set_public_path__","__webpack_hash__","devClient","initHMR","initialize","then","assetPrefix","__turbopack_load_page_chunks__","page","chunksData","chunkPromises","map","c","__turbopack_load__","Promise","all","catch","err","console","error","connect","addMessageListener","cb","addTurbopackMessageListener","sendMessage","sendTurbopackMessage","onUpdateError","handleUpdateError","pageBootstrap"],"mappings":"AAAA,kCAAkC;;;;;;kBAEmB;8EACjC;+BAEU;6BAEN;AAGxBA,OAAOC,IAAI,GAAG;IACZC,SAAAA,EAAAA,OAAO;IACPC,WAAW;IACX,0DAA0D;IAC1D,IAAIC,UAAS;QACX,OAAOA,EAAAA,MAAM;IACf;IACAC,SAAAA,EAAAA,OAAO;AACT;AACEC,KAAaC,wBAAwB,GAAG,KAAO;AAC/CD,KAAaE,gBAAgB,GAAG;AAKlC,MAAMC,YAAYC,CAAAA,GAAAA,qBAAAA,OAAO;AACzBC,CAAAA,GAAAA,EAAAA,UAAU,EAAC;IACTF;AACF,GACGG,IAAI,CAAC,CAAC,EAAEC,WAAW,EAAE;IACpB,sBAAsB;;IACpBP,KAAaQ,8BAA8B,GAAG,CAC9CC,MACAC;QAEA,MAAMC,gBAAgBD,WAAWE,GAAG,CAAC,CAACC,IACpCC,yDAAmBD;QAGrBE,QAAQC,GAAG,CAACL,eAAeM,KAAK,CAAC,CAACC,MAChCC,QAAQC,KAAK,CAAC,oCAAoCX,MAAMS;IAE5D;IAEAG,CAAAA,GAAAA,aAAAA,OAAO,EAAC;QACNC,oBAAmBC,EAAoD;YACrEpB,UAAUqB,2BAA2B,CAACD;QACxC;QACAE,aAAatB,UAAUuB,oBAAoB;QAC3CC,eAAexB,UAAUyB,iBAAiB;IAC5C;IAEA,OAAOC,CAAAA,GAAAA,eAAAA,aAAa,EAACtB;AACvB,GACCU,KAAK,CAAC,CAACC;IACNC,QAAQC,KAAK,CAAC,wBAAwBF;AACxC","ignoreList":[0]}},
{"offset": {"line": 2279, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/normalize-trailing-slash.ts"],"sourcesContent":["import { removeTrailingSlash } from '../shared/lib/router/utils/remove-trailing-slash'\nimport { parsePath } from '../shared/lib/router/utils/parse-path'\n\n/**\n * Normalizes the trailing slash of a path according to the `trailingSlash` option\n * in `next.config.js`.\n */\nexport const normalizePathTrailingSlash = (path: string) => {\n // 47 is the char code for '/'\n if (path.charCodeAt(0) !== 47 || process.env.__NEXT_MANUAL_TRAILING_SLASH) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n if (process.env.__NEXT_TRAILING_SLASH) {\n if (/\\.[^/]+\\/?$/.test(pathname)) {\n return `${removeTrailingSlash(pathname)}${query}${hash}`\n } else if (pathname.endsWith('/')) {\n return `${pathname}${query}${hash}`\n } else {\n return `${pathname}/${query}${hash}`\n }\n }\n\n return `${removeTrailingSlash(pathname)}${query}${hash}`\n}\n"],"names":["normalizePathTrailingSlash","path","charCodeAt","process","env","__NEXT_MANUAL_TRAILING_SLASH","pathname","query","hash","parsePath","__NEXT_TRAILING_SLASH","test","removeTrailingSlash","endsWith"],"mappings":"AASmCG,QAAQC,GAAG,CAACC,4BAA4B;;;;;+BAF9DL,8BAAAA;;;eAAAA;;;qCAPuB;2BACV;AAMnB,MAAMA,6BAA6B,CAACC;IACzC,8BAA8B;IAC9B,IAAIA,KAAKC,UAAU,CAAC,OAAO,gDAAgD;QACzE,OAAOD;IACT;IAEA,MAAM,EAAEK,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACR;IAC5C,IAAIE,QAAQC,GAAG,CAACM,qBAAqB,EAAE;;IAUvC,OAAO,GAAGE,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACN,YAAYC,QAAQC,MAAM;AAC1D","ignoreList":[0]}},
{"offset": {"line": 2313, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/page-bootstrap.ts"],"sourcesContent":["import '../lib/require-instrumentation-client'\nimport { hydrate, router } from './'\nimport initOnDemandEntries from './dev/on-demand-entries-client'\nimport { displayContent } from './dev/fouc'\nimport {\n connectHMR,\n addMessageListener,\n} from './dev/hot-reloader/pages/websocket'\nimport {\n assign,\n urlQueryToSearchParams,\n} from '../shared/lib/router/utils/querystring'\nimport { HMR_MESSAGE_SENT_TO_BROWSER } from '../server/dev/hot-reloader-types'\nimport { RuntimeErrorHandler } from './dev/runtime-error-handler'\nimport { REACT_REFRESH_FULL_RELOAD_FROM_ERROR } from './dev/hot-reloader/shared'\nimport { performFullReload } from './dev/hot-reloader/pages/hot-reloader-pages'\nimport { dispatcher } from 'next/dist/compiled/next-devtools'\n\nexport function pageBootstrap(assetPrefix: string) {\n connectHMR({ assetPrefix, path: '/_next/hmr' })\n\n return hydrate({ beforeRender: displayContent }).then(() => {\n initOnDemandEntries()\n\n let reloading = false\n\n addMessageListener((message) => {\n if (reloading) return\n\n switch (message.type) {\n case HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ERROR: {\n const errorObject = JSON.parse(message.errorJSON)\n const error = new Error(errorObject.message)\n error.stack = errorObject.stack\n throw error\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.RELOAD_PAGE: {\n reloading = true\n window.location.reload()\n break\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.DEV_PAGES_MANIFEST_UPDATE: {\n fetch(\n `${assetPrefix}/_next/static/development/_devPagesManifest.json`\n )\n .then((res) => res.json())\n .then((manifest) => {\n window.__DEV_PAGES_MANIFEST = manifest\n })\n .catch((err) => {\n console.log(`Failed to fetch devPagesManifest`, err)\n })\n break\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.MIDDLEWARE_CHANGES: {\n return window.location.reload()\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.CLIENT_CHANGES: {\n // This is used in `../server/dev/turbopack-utils.ts`.\n const isOnErrorPage = window.next.router.pathname === '/_error'\n // On the error page we want to reload the page when a page was changed\n if (isOnErrorPage) {\n if (RuntimeErrorHandler.hadRuntimeError) {\n console.warn(REACT_REFRESH_FULL_RELOAD_FROM_ERROR)\n }\n reloading = true\n performFullReload(null)\n }\n break\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.SERVER_ONLY_CHANGES: {\n if (RuntimeErrorHandler.hadRuntimeError) {\n console.warn(REACT_REFRESH_FULL_RELOAD_FROM_ERROR)\n performFullReload(null)\n }\n\n const { pages } = message\n\n // Make sure to reload when the dev-overlay is showing for an\n // API route\n // TODO: Fix `__NEXT_PAGE` type\n if (pages.includes(router.query.__NEXT_PAGE as string)) {\n return window.location.reload()\n }\n\n if (!router.clc && pages.includes(router.pathname)) {\n console.log('Refreshing page data due to server-side change')\n dispatcher.buildingIndicatorShow()\n const clearIndicator = dispatcher.buildingIndicatorHide\n\n router\n .replace(\n router.pathname +\n '?' +\n String(\n assign(\n urlQueryToSearchParams(router.query),\n new URLSearchParams(location.search)\n )\n ),\n router.asPath,\n { scroll: false }\n )\n .catch(() => {\n // trigger hard reload when failing to refresh data\n // to show error overlay properly\n location.reload()\n })\n .finally(clearIndicator)\n }\n break\n }\n case HMR_MESSAGE_SENT_TO_BROWSER.ADDED_PAGE:\n case HMR_MESSAGE_SENT_TO_BROWSER.REMOVED_PAGE:\n case HMR_MESSAGE_SENT_TO_BROWSER.SERVER_COMPONENT_CHANGES:\n case HMR_MESSAGE_SENT_TO_BROWSER.STATIC_PARAMS_CHANGED:\n case HMR_MESSAGE_SENT_TO_BROWSER.SYNC:\n case HMR_MESSAGE_SENT_TO_BROWSER.BUILT:\n case HMR_MESSAGE_SENT_TO_BROWSER.BUILDING:\n case HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_MESSAGE:\n case HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED:\n case HMR_MESSAGE_SENT_TO_BROWSER.ISR_MANIFEST:\n case HMR_MESSAGE_SENT_TO_BROWSER.DEVTOOLS_CONFIG:\n case HMR_MESSAGE_SENT_TO_BROWSER.REACT_DLine truncated
{"offset": {"line": 2453, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/page-loader.ts"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { RouteLoader } from './route-loader'\nimport type { ProxyMatcher } from '../build/analysis/get-page-static-info'\nimport { addBasePath } from './add-base-path'\nimport { interpolateAs } from '../shared/lib/router/utils/interpolate-as'\nimport getAssetPathFromRoute from '../shared/lib/router/utils/get-asset-path-from-route'\nimport { addLocale } from './add-locale'\nimport { isDynamicRoute } from '../shared/lib/router/utils/is-dynamic'\nimport { parseRelativeUrl } from '../shared/lib/router/utils/parse-relative-url'\nimport { removeTrailingSlash } from '../shared/lib/router/utils/remove-trailing-slash'\nimport {\n createRouteLoader,\n getClientBuildManifest,\n markAssetError,\n} from './route-loader'\nimport {\n DEV_CLIENT_PAGES_MANIFEST,\n DEV_CLIENT_MIDDLEWARE_MANIFEST,\n} from '../shared/lib/constants'\nimport { resolvePromiseWithTimeout } from './lib/promise'\n\ndeclare global {\n interface Window {\n __DEV_MIDDLEWARE_MATCHERS?: ProxyMatcher[]\n __DEV_PAGES_MANIFEST?: { pages: string[] }\n __SSG_MANIFEST_CB?: () => void\n __SSG_MANIFEST?: Set<string>\n }\n}\n\nexport type StyleSheetTuple = { href: string; text: string }\nexport type GoodPageCache = {\n page: ComponentType\n mod: any\n styleSheets: StyleSheetTuple[]\n}\n\nexport default class PageLoader {\n private buildId: string\n private assetPrefix: string\n private promisedSsgManifest: Promise<Set<string>>\n private promisedDevPagesManifest?: Promise<string[]>\n private promisedMiddlewareMatchers?: Promise<ProxyMatcher[]>\n\n public routeLoader: RouteLoader\n\n constructor(buildId: string, assetPrefix: string) {\n this.routeLoader = createRouteLoader(assetPrefix)\n\n this.buildId = buildId\n this.assetPrefix = assetPrefix\n\n this.promisedSsgManifest = new Promise((resolve) => {\n if (window.__SSG_MANIFEST) {\n resolve(window.__SSG_MANIFEST)\n } else {\n window.__SSG_MANIFEST_CB = () => {\n resolve(window.__SSG_MANIFEST!)\n }\n }\n })\n }\n\n getPageList() {\n if (process.env.NODE_ENV === 'production') {\n return getClientBuildManifest().then((manifest) => manifest.sortedPages)\n } else {\n if (window.__DEV_PAGES_MANIFEST) {\n return window.__DEV_PAGES_MANIFEST.pages\n } else {\n this.promisedDevPagesManifest ||= fetch(\n `${this.assetPrefix}/_next/static/development/${DEV_CLIENT_PAGES_MANIFEST}`,\n { credentials: 'same-origin' }\n )\n .then((res) => res.json())\n .then((manifest: { pages: string[] }) => {\n window.__DEV_PAGES_MANIFEST = manifest\n return manifest.pages\n })\n .catch((err) => {\n console.log(`Failed to fetch devPagesManifest:`, err)\n throw new Error(\n `Failed to fetch _devPagesManifest.json. Is something blocking that network request?\\n` +\n 'Read more: https://nextjs.org/docs/messages/failed-to-fetch-devpagesmanifest'\n )\n })\n return this.promisedDevPagesManifest\n }\n }\n }\n\n getMiddleware() {\n // Webpack production\n if (\n process.env.NODE_ENV === 'production' &&\n process.env.__NEXT_MIDDLEWARE_MATCHERS\n ) {\n const middlewareMatchers = process.env.__NEXT_MIDDLEWARE_MATCHERS\n window.__MIDDLEWARE_MATCHERS = middlewareMatchers\n ? (middlewareMatchers as any as ProxyMatcher[])\n : undefined\n return window.__MIDDLEWARE_MATCHERS\n // Turbopack production\n } else if (process.env.NODE_ENV === 'production') {\n if (window.__MIDDLEWARE_MATCHERS) {\n return window.__MIDDLEWARE_MATCHERS\n } else {\n const onClientMiddlewareManifest = new Promise<ProxyMatcher[]>(\n (resolve) => {\n // Mandatory because this is not concurrent safe:\n const cb = self.__MIDDLEWARE_MATCHERS_CB\n self.__MIDDLEWARE_MATCHERS_CB = () => {\n resolve(self.__MIDDLEWARE_MATCHERS!)\n cb && cb()\n }\n }\n )\n\n return resolvePromiseWithTimeout(\n onClientMiddlewareManifest,\n markAssetError(\n new Error('Failed to load client middleware manifest')\n ),\n undefined\n )\n }\n // Development both Turbopack and Webpack\n } else {\n if (window.__DEV_MIDDLEWARE_MATCHERS) {\n return window.__DEV_MIDDLEWARE_MATCHERS\n } else {\n if (!this.promisedMiddlewareMatchers) {\n // TODO: Decide what should happen when fetching fails instead of asserting\n // @ts-ignore\n this.promisedMiddlewareMatchers = fetch(\n `${this.assetPrefix}/_next/static/${Line truncated
{"offset": {"line": 2592, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/portal/index.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\ntype PortalProps = {\n children: React.ReactNode\n type: string\n}\n\nexport const Portal = ({ children, type }: PortalProps) => {\n const [portalNode, setPortalNode] = useState<HTMLElement | null>(null)\n\n useEffect(() => {\n const element = document.createElement(type)\n document.body.appendChild(element)\n setPortalNode(element)\n return () => {\n document.body.removeChild(element)\n }\n }, [type])\n\n return portalNode ? createPortal(children, portalNode) : null\n}\n"],"names":["Portal","children","type","portalNode","setPortalNode","useState","useEffect","element","document","createElement","body","appendChild","removeChild","createPortal"],"mappings":";;;+BAQaA,UAAAA;;;eAAAA;;;uBARuB;0BACP;AAOtB,MAAMA,SAAS,CAAC,EAAEC,QAAQ,EAAEC,IAAI,EAAe;IACpD,MAAM,CAACC,YAAYC,cAAc,GAAGC,CAAAA,GAAAA,OAAAA,QAAQ,EAAqB;IAEjEC,CAAAA,GAAAA,OAAAA,SAAS,EAAC;QACR,MAAMC,UAAUC,SAASC,aAAa,CAACP;QACvCM,SAASE,IAAI,CAACC,WAAW,CAACJ;QAC1BH,cAAcG;QACd,OAAO;YACLC,SAASE,IAAI,CAACE,WAAW,CAACL;QAC5B;IACF,GAAG;QAACL;KAAK;IAET,OAAOC,aAAAA,WAAAA,GAAaU,CAAAA,GAAAA,UAAAA,YAAY,EAACZ,UAAUE,cAAc;AAC3D","ignoreList":[0]}},
{"offset": {"line": 2628, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/react-client-callbacks/on-recoverable-error.ts"],"sourcesContent":["// This module can be shared between both pages router and app router\n\nimport type { HydrationOptions } from 'react-dom/client'\nimport { isBailoutToCSRError } from '../../shared/lib/lazy-dynamic/bailout-to-csr'\nimport isError from '../../lib/is-error'\nimport { reportGlobalError } from './report-global-error'\n\nconst recoverableErrors = new WeakSet<Error>()\n\nconst isInstantTest =\n process.env.__NEXT_EXPOSE_TESTING_API &&\n typeof self !== 'undefined' &&\n !!self.__next_instant_test\n\nexport function isRecoverableError(error: Error): boolean {\n return recoverableErrors.has(error)\n}\n\nexport const onRecoverableError: HydrationOptions['onRecoverableError'] = (\n error\n) => {\n // x-ref: https://github.com/facebook/react/pull/28736\n let cause = isError(error) && 'cause' in error ? error.cause : error\n // Skip certain custom errors which are not expected to be reported on client\n if (isBailoutToCSRError(cause)) return\n\n // Instant Navigation Testing API: suppress \"server could not finish this\n // Suspense boundary\" errors (React error #419) during instant test mode.\n // The static shell intentionally has incomplete Suspense boundaries — React\n // correctly falls back to client rendering, which is expected.\n if (isInstantTest) {\n if (isError(cause)) {\n if (process.env.NODE_ENV === 'production') {\n if (cause.message.includes('#419')) return\n } else {\n if (cause.message.includes('could not finish this Suspense boundary'))\n return\n }\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n const { decorateDevError } =\n require('../../next-devtools/userspace/app/errors/stitched-error') as typeof import('../../next-devtools/userspace/app/errors/stitched-error')\n const causeError = decorateDevError(cause)\n recoverableErrors.add(causeError)\n cause = causeError\n }\n\n reportGlobalError(cause)\n}\n"],"names":["isRecoverableError","onRecoverableError","recoverableErrors","WeakSet","isInstantTest","process","env","__NEXT_EXPOSE_TESTING_API","self","__next_instant_test","error","has","cause","isError","isBailoutToCSRError","NODE_ENV","message","includes","decorateDevError","require","causeError","add","reportGlobalError"],"mappings":"AAgCUK,QAAQC,GAAG,CAACS,QAAQ,KAAK,cAAc;AAhCjD,qEAAqE;;;;;;;;;;;;;;;;IAcrDf,kBAAkB,EAAA;eAAlBA;;IAIHC,kBAAkB,EAAA;eAAlBA;;;;8BAfuB;kEAChB;mCACc;AAElC,MAAMC,oBAAoB,IAAIC;AAE9B,MAAMC,gBACJC,QAAQC,GAAG,CAACC,yBAAyB,KACrC,OAAOC,SAAS,eAChB,CAAC,CAACA,KAAKC,mBAAmB;AAErB,SAAST,mBAAmBU,KAAY;IAC7C,OAAOR,kBAAkBS,GAAG,CAACD;AAC/B;AAEO,MAAMT,qBAA6D,CACxES;IAEA,sDAAsD;IACtD,IAAIE,QAAQC,CAAAA,GAAAA,SAAAA,OAAO,EAACH,UAAU,WAAWA,QAAQA,MAAME,KAAK,GAAGF;IAC/D,6EAA6E;IAC7E,IAAII,CAAAA,GAAAA,cAAAA,mBAAmB,EAACF,QAAQ;IAEhC,yEAAyE;IACzE,yEAAyE;IACzE,4EAA4E;IAC5E,+DAA+D;IAC/D,IAAIR,eAAe;QACjB,IAAIS,CAAAA,GAAAA,SAAAA,OAAO,EAACD,QAAQ;YAClB;;iBAEO;gBACL,IAAIA,MAAMI,OAAO,CAACC,QAAQ,CAAC,4CACzB;YACJ;QACF;IACF;IAEA,IAAIZ,QAAQC,GAAG,CAACS,QAAQ,KAAK,WAAc;QACzC,MAAM,EAAEG,gBAAgB,EAAE,GACxBC,QAAQ;QACV,MAAMC,aAAaF,iBAAiBN;QACpCV,kBAAkBmB,GAAG,CAACD;QACtBR,QAAQQ;IACV;IAEAE,CAAAA,GAAAA,mBAAAA,iBAAiB,EAACV;AACpB","ignoreList":[0]}},
{"offset": {"line": 2698, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/react-client-callbacks/report-global-error.ts"],"sourcesContent":["export const reportGlobalError =\n typeof reportError === 'function'\n ? // In modern browsers, reportError will dispatch an error event,\n // emulating an uncaught JavaScript error.\n reportError\n : (error: unknown) => {\n // TODO: Dispatch error event\n globalThis.console.error(error)\n }\n"],"names":["reportGlobalError","reportError","error","globalThis","console"],"mappings":";;;+BAAaA,qBAAAA;;;eAAAA;;;AAAN,MAAMA,oBACX,OAAOC,gBAAgB,aAEnB,AACAA,cACA,CAACC,2BAFyC;IAGxC,6BAA6B;IAC7BC,WAAWC,OAAO,CAACF,KAAK,CAACA;AAC3B","ignoreList":[0]}},
{"offset": {"line": 2722, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/register-deployment-id-global.ts"],"sourcesContent":["import { getDeploymentId } from '../shared/lib/deployment-id'\n\nconst deploymentId = getDeploymentId()\n;(globalThis as any).NEXT_DEPLOYMENT_ID = deploymentId\n"],"names":["deploymentId","getDeploymentId","globalThis","NEXT_DEPLOYMENT_ID"],"mappings":";;;8BAAgC;AAEhC,MAAMA,eAAeC,CAAAA,GAAAA,cAAAA,eAAe;AAClCC,WAAmBC,kBAAkB,GAAGH","ignoreList":[0]}},
{"offset": {"line": 2739, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/remove-base-path.ts"],"sourcesContent":["import { hasBasePath } from './has-base-path'\n\nconst basePath = (process.env.__NEXT_ROUTER_BASEPATH as string) || ''\n\nexport function removeBasePath(path: string): string {\n if (process.env.__NEXT_MANUAL_CLIENT_BASE_PATH) {\n if (!hasBasePath(path)) {\n return path\n }\n }\n\n // Can't trim the basePath if it has zero length!\n if (basePath.length === 0) return path\n\n path = path.slice(basePath.length)\n if (!path.startsWith('/')) path = `/${path}`\n return path\n}\n"],"names":["removeBasePath","basePath","process","env","__NEXT_ROUTER_BASEPATH","path","__NEXT_MANUAL_CLIENT_BASE_PATH","hasBasePath","length","slice","startsWith"],"mappings":"AAEkBE,QAAQC,GAAG,CAACC,sBAAsB;;;;;+BAEpCJ,kBAAAA;;;eAAAA;;;6BAJY;AAE5B,MAAMC,mDAA6D;AAE5D,SAASD,eAAeK,IAAY;IACzC,IAAIH,QAAQC,GAAG,CAACG,8BAA8B,EAAE;;IAMhD,iDAAiD;IACjD,IAAIL,SAASO,MAAM,KAAK,GAAG,OAAOH;IAElCA,OAAOA,KAAKI,KAAK,CAACR,SAASO,MAAM;IACjC,IAAI,CAACH,KAAKK,UAAU,CAAC,MAAML,OAAO,CAAC,CAAC,EAAEA,MAAM;IAC5C,OAAOA;AACT","ignoreList":[0]}},
{"offset": {"line": 2772, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/remove-locale.ts"],"sourcesContent":["import { parsePath } from '../shared/lib/router/utils/parse-path'\n\nexport function removeLocale(path: string, locale?: string) {\n if (process.env.__NEXT_I18N_SUPPORT) {\n const { pathname } = parsePath(path)\n const pathLower = pathname.toLowerCase()\n const localeLower = locale?.toLowerCase()\n\n return locale &&\n (pathLower.startsWith(`/${localeLower}/`) ||\n pathLower === `/${localeLower}`)\n ? `${pathname.length === locale.length + 1 ? `/` : ``}${path.slice(\n locale.length + 1\n )}`\n : path\n }\n return path\n}\n"],"names":["removeLocale","path","locale","process","env","__NEXT_I18N_SUPPORT","pathname","parsePath","pathLower","toLowerCase","localeLower","startsWith","length","slice"],"mappings":"AAGMG,QAAQC,GAAG,CAACC,mBAAmB,EAAE;;;;;+BADvBL,gBAAAA;;;eAAAA;;;2BAFU;AAEnB,SAASA,aAAaC,IAAY,EAAEC,MAAe;IACxD;;IAaA,OAAOD;AACT","ignoreList":[0]}},
{"offset": {"line": 2800, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/request-idle-callback.ts"],"sourcesContent":["export const requestIdleCallback =\n (typeof self !== 'undefined' &&\n self.requestIdleCallback &&\n self.requestIdleCallback.bind(window)) ||\n function (cb: IdleRequestCallback): number {\n let start = Date.now()\n return self.setTimeout(function () {\n cb({\n didTimeout: false,\n timeRemaining: function () {\n return Math.max(0, 50 - (Date.now() - start))\n },\n })\n }, 1)\n }\n\nexport const cancelIdleCallback =\n (typeof self !== 'undefined' &&\n self.cancelIdleCallback &&\n self.cancelIdleCallback.bind(window)) ||\n function (id: number) {\n return clearTimeout(id)\n }\n"],"names":["cancelIdleCallback","requestIdleCallback","self","bind","window","cb","start","Date","now","setTimeout","didTimeout","timeRemaining","Math","max","id","clearTimeout"],"mappings":";;;;;;;;;;;;;;IAgBaA,kBAAkB,EAAA;eAAlBA;;IAhBAC,mBAAmB,EAAA;eAAnBA;;;AAAN,MAAMA,sBACV,OAAOC,SAAS,eACfA,KAAKD,mBAAmB,IACxBC,KAAKD,mBAAmB,CAACE,IAAI,CAACC,WAChC,SAAUC,EAAuB;IAC/B,IAAIC,QAAQC,KAAKC,GAAG;IACpB,OAAON,KAAKO,UAAU,CAAC;QACrBJ,GAAG;YACDK,YAAY;YACZC,eAAe;gBACb,OAAOC,KAAKC,GAAG,CAAC,GAAG,KAAMN,CAAAA,KAAKC,GAAG,KAAKF,KAAI;YAC5C;QACF;IACF,GAAG;AACL;AAEK,MAAMN,qBACV,OAAOE,SAAS,eACfA,KAAKF,kBAAkB,IACvBE,KAAKF,kBAAkB,CAACG,IAAI,CAACC,WAC/B,SAAUU,EAAU;IAClB,OAAOC,aAAaD;AACtB","ignoreList":[0]}},
{"offset": {"line": 2846, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/resolve-href.ts"],"sourcesContent":["import type { NextRouter, Url } from '../shared/lib/router/router'\n\nimport { searchParamsToUrlQuery } from '../shared/lib/router/utils/querystring'\nimport { formatWithValidation } from '../shared/lib/router/utils/format-url'\nimport { omit } from '../shared/lib/router/utils/omit'\nimport { normalizeRepeatedSlashes } from '../shared/lib/utils'\nimport { normalizePathTrailingSlash } from './normalize-trailing-slash'\nimport { isLocalURL } from '../shared/lib/router/utils/is-local-url'\nimport { isDynamicRoute } from '../shared/lib/router/utils'\nimport { interpolateAs } from '../shared/lib/router/utils/interpolate-as'\nimport { getRouteRegex } from '../shared/lib/router/utils/route-regex'\nimport { getRouteMatcher } from '../shared/lib/router/utils/route-matcher'\n\n/**\n * Resolves a given hyperlink with a certain router state (basePath not included).\n * Preserves absolute urls.\n */\nexport function resolveHref(\n router: NextRouter,\n href: Url,\n resolveAs: true\n): [string, string] | [string]\nexport function resolveHref(\n router: NextRouter,\n href: Url,\n resolveAs?: false\n): string\nexport function resolveHref(\n router: NextRouter,\n href: Url,\n resolveAs?: boolean\n): [string, string] | [string] | string {\n // we use a dummy base url for relative urls\n let base: URL\n let urlAsString = typeof href === 'string' ? href : formatWithValidation(href)\n\n // repeated slashes and backslashes in the URL are considered\n // invalid and will never match a Next.js page/file\n // https://www.rfc-editor.org/rfc/rfc3986.html#section-3.1\n const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\\/\\//i)\n const urlAsStringNoProto = urlProtoMatch\n ? urlAsString.slice(urlProtoMatch[0].length)\n : urlAsString\n\n const urlParts = urlAsStringNoProto.split('?', 1)\n\n if ((urlParts[0] || '').match(/(\\/\\/|\\\\)/)) {\n console.error(\n `Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\\\ are not valid in the href.`\n )\n const normalizedUrl = normalizeRepeatedSlashes(urlAsStringNoProto)\n urlAsString = (urlProtoMatch ? urlProtoMatch[0] : '') + normalizedUrl\n }\n\n // Return because it cannot be routed by the Next.js router\n if (!isLocalURL(urlAsString)) {\n return (resolveAs ? [urlAsString] : urlAsString) as string\n }\n\n try {\n let baseBase = urlAsString.startsWith('#') ? router.asPath : router.pathname\n\n // If the provided href is only a query string, it is safer to use the asPath\n // considering rewrites.\n if (urlAsString.startsWith('?')) {\n baseBase = router.asPath\n\n // However, if is a dynamic route, we need to use the pathname to preserve the\n // query interpolation and rewrites (router.pathname will look like \"/[slug]\").\n if (isDynamicRoute(router.pathname)) {\n baseBase = router.pathname\n\n const routeRegex = getRouteRegex(router.pathname)\n const match = getRouteMatcher(routeRegex)(router.asPath)\n\n // For dynamic routes, if asPath doesn't match the pathname regex, it is a rewritten path.\n // In this case, should use asPath to preserve the current URL.\n if (!match) {\n baseBase = router.asPath\n }\n\n // Note: There is an edge case where the pathname is dynamic, and also a rewrite path to the same segment.\n // E.g. in \"/[slug]\" path, rewrite \"/foo\" -> \"/bar\"\n\n // In this case, it will be treated as a non-rewritten path and possibly interpolate the query string.\n // E.g., \"/any?slug=foo\" will become the content of \"/foo\", not rewritten as \"/bar\"\n\n // This is currently a trade-off of not resolving rewrite paths on every Router/Link call,\n // but using a lighter route regex pattern check.\n }\n }\n\n base = new URL(baseBase, 'http://n')\n } catch (_) {\n // fallback to / for invalid asPath values e.g. //\n base = new URL('/', 'http://n')\n }\n\n try {\n const finalUrl = new URL(urlAsString, base)\n finalUrl.pathname = normalizePathTrailingSlash(finalUrl.pathname)\n let interpolatedAs = ''\n\n if (\n isDynamicRoute(finalUrl.pathname) &&\n finalUrl.searchParams &&\n resolveAs\n ) {\n const query = searchParamsToUrlQuery(finalUrl.searchParams)\n\n const { result, params } = interpolateAs(\n finalUrl.pathname,\n finalUrl.pathname,\n query\n )\n\n if (result) {\n interpolatedAs = formatWithValidation({\n pathname: result,\n hash: finalUrl.hash,\n query: omit(query, params),\n })\n }\n }\n\n // if the origin didn't change, it means we received a relative href\n const resolvedHref =\n Line truncated
{"offset": {"line": 2954, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/route-announcer.tsx"],"sourcesContent":["import React from 'react'\nimport { useRouter } from './router'\n\nconst nextjsRouteAnnouncerStyles: React.CSSProperties = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n top: 0,\n width: '1px',\n\n // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n}\n\nexport const RouteAnnouncer = () => {\n const { asPath } = useRouter()\n const [routeAnnouncement, setRouteAnnouncement] = React.useState('')\n\n // Only announce the path change, but not for the first load because screen\n // reader will do that automatically.\n const previouslyLoadedPath = React.useRef(asPath)\n\n // Every time the path changes, announce the new page’s title following this\n // priority: first the document title (from head), otherwise the first h1, or\n // if none of these exist, then the pathname from the URL. This methodology is\n // inspired by Marcy Sutton’s accessible client routing user testing. More\n // information can be found here:\n // https://www.gatsbyjs.com/blog/2019-07-11-user-testing-accessible-client-routing/\n React.useEffect(\n () => {\n // If the path hasn't change, we do nothing.\n if (previouslyLoadedPath.current === asPath) return\n previouslyLoadedPath.current = asPath\n\n if (document.title) {\n setRouteAnnouncement(document.title)\n } else {\n const pageHeader = document.querySelector('h1')\n const content = pageHeader?.innerText ?? pageHeader?.textContent\n\n setRouteAnnouncement(content || asPath)\n }\n },\n // TODO: switch to pathname + query object of dynamic route requirements\n [asPath]\n )\n\n return (\n <p\n aria-live=\"assertive\" // Make the announcement immediately.\n id=\"__next-route-announcer__\"\n role=\"alert\"\n style={nextjsRouteAnnouncerStyles}\n >\n {routeAnnouncement}\n </p>\n )\n}\n\nexport default RouteAnnouncer\n"],"names":["RouteAnnouncer","nextjsRouteAnnouncerStyles","border","clip","height","margin","overflow","padding","position","top","width","whiteSpace","wordWrap","asPath","useRouter","routeAnnouncement","setRouteAnnouncement","React","useState","previouslyLoadedPath","useRef","useEffect","current","document","title","pageHeader","querySelector","content","innerText","textContent","p","aria-live","id","role","style"],"mappings":";;;;;;;;;;;;;;IAmBaA,cAAc,EAAA;eAAdA;;IA6Cb,OAA6B,EAAA;eAA7B;;;;;gEAhEkB;wBACQ;AAE1B,MAAMC,6BAAkD;IACtDC,QAAQ;IACRC,MAAM;IACNC,QAAQ;IACRC,QAAQ;IACRC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,KAAK;IACLC,OAAO;IAEP,wFAAwF;IACxFC,YAAY;IACZC,UAAU;AACZ;AAEO,MAAMZ,iBAAiB;IAC5B,MAAM,EAAEa,MAAM,EAAE,GAAGC,CAAAA,GAAAA,QAAAA,SAAS;IAC5B,MAAM,CAACC,mBAAmBC,qBAAqB,GAAGC,OAAAA,OAAK,CAACC,QAAQ,CAAC;IAEjE,2EAA2E;IAC3E,qCAAqC;IACrC,MAAMC,uBAAuBF,OAAAA,OAAK,CAACG,MAAM,CAACP;IAE1C,4EAA4E;IAC5E,6EAA6E;IAC7E,8EAA8E;IAC9E,0EAA0E;IAC1E,iCAAiC;IACjC,mFAAmF;IACnFI,OAAAA,OAAK,CAACI,SAAS;oCACb;YACE,4CAA4C;YAC5C,IAAIF,qBAAqBG,OAAO,KAAKT,QAAQ;YAC7CM,qBAAqBG,OAAO,GAAGT;YAE/B,IAAIU,SAASC,KAAK,EAAE;gBAClBR,qBAAqBO,SAASC,KAAK;YACrC,OAAO;gBACL,MAAMC,aAAaF,SAASG,aAAa,CAAC;gBAC1C,MAAMC,UAAUF,YAAYG,aAAaH,YAAYI;gBAErDb,qBAAqBW,WAAWd;YAClC;QACF,GACA,wEAAwE;mCACxE;QAACA;KAAO;IAGV,OAAA,WAAA,GACE,CAAA,GAAA,YAAA,GAAA,EAACiB,KAAAA;QACCC,aAAU,YAAY,qCAAqC;;QAC3DC,IAAG;QACHC,MAAK;QACLC,OAAOjC;kBAENc;;AAGP;MAEA,WAAef","ignoreList":[0]}},
{"offset": {"line": 3042, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/route-loader.ts"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { ProxyMatcher } from '../build/analysis/get-page-static-info'\nimport type { RequiredServerFilesManifest } from '../build'\nimport getAssetPathFromRoute from '../shared/lib/router/utils/get-asset-path-from-route'\nimport { __unsafeCreateTrustedScriptURL } from './trusted-types'\nimport { requestIdleCallback } from './request-idle-callback'\nimport { getAssetTokenQuery } from '../shared/lib/deployment-id'\nimport { encodeURIPath } from '../shared/lib/encode-uri-path'\nimport { resolvePromiseWithTimeout } from './lib/promise'\n\ndeclare global {\n interface Window {\n __BUILD_MANIFEST?: Record<string, string[]>\n __BUILD_MANIFEST_CB?: Function\n __TURBOPACK_PAGE_BOOTSTRAP?: Record<string, unknown>\n __TURBOPACK_CHUNK_LOADING_GLOBAL?: string\n __SERVER_FILES_MANIFEST?: RequiredServerFilesManifest\n __MIDDLEWARE_MATCHERS?: ProxyMatcher[]\n __MIDDLEWARE_MATCHERS_CB?: Function\n __REACT_LOADABLE_MANIFEST?: any\n __DYNAMIC_CSS_MANIFEST?: any\n __RSC_MANIFEST?: any\n __RSC_SERVER_MANIFEST?: any\n __NEXT_FONT_MANIFEST?: any\n __SUBRESOURCE_INTEGRITY_MANIFEST?: string\n __INTERCEPTION_ROUTE_REWRITE_MANIFEST?: string\n }\n}\n\ninterface LoadedEntrypointSuccess {\n component: ComponentType\n exports: any\n}\ninterface LoadedEntrypointFailure {\n error: unknown\n}\ntype RouteEntrypoint = LoadedEntrypointSuccess | LoadedEntrypointFailure\n\ninterface RouteStyleSheet {\n href: string\n content: string\n}\n\ninterface LoadedRouteSuccess extends LoadedEntrypointSuccess {\n styles: RouteStyleSheet[]\n}\ninterface LoadedRouteFailure {\n error: unknown\n}\ntype RouteLoaderEntry = LoadedRouteSuccess | LoadedRouteFailure\n\ninterface Future<V> {\n resolve: (entrypoint: V) => void\n future: Promise<V>\n}\nfunction withFuture<T extends object>(\n key: string,\n map: Map<string, Future<T> | T>,\n generator?: () => Promise<T>\n): Promise<T> {\n let entry = map.get(key)\n if (entry) {\n if ('future' in entry) {\n return entry.future\n }\n return Promise.resolve(entry)\n }\n let resolver: (entrypoint: T) => void\n const prom: Promise<T> = new Promise<T>((resolve) => {\n resolver = resolve\n })\n map.set(key, { resolve: resolver!, future: prom })\n return generator\n ? generator()\n .then((value) => {\n resolver(value)\n return value\n })\n .catch((err) => {\n map.delete(key)\n throw err\n })\n : prom\n}\n\nexport interface RouteLoader {\n whenEntrypoint(route: string): Promise<RouteEntrypoint>\n onEntrypoint(route: string, execute: () => unknown): void\n loadRoute(route: string, prefetch?: boolean): Promise<RouteLoaderEntry>\n prefetch(route: string): Promise<void>\n}\n\nconst ASSET_LOAD_ERROR = Symbol('ASSET_LOAD_ERROR')\n// TODO: unexport\nexport function markAssetError(err: Error): Error {\n return Object.defineProperty(err, ASSET_LOAD_ERROR, {})\n}\n\nexport function isAssetError(err?: Error): boolean | undefined {\n return err && ASSET_LOAD_ERROR in err\n}\n\nfunction hasPrefetch(link?: HTMLLinkElement): boolean {\n try {\n link = document.createElement('link')\n return (\n // detect IE11 since it supports prefetch but isn't detected\n // with relList.support\n (!!window.MSInputMethodContext && !!(document as any).documentMode) ||\n link.relList.supports('prefetch')\n )\n } catch {\n return false\n }\n}\n\nconst canPrefetch: boolean = hasPrefetch()\n\nfunction prefetchViaDom(\n href: string,\n as: string,\n link?: HTMLLinkElement\n): Promise<any> {\n return new Promise<void>((resolve, reject) => {\n const selector = `\n link[rel=\"prefetch\"][href^=\"${href}\"],\n link[rel=\"preload\"][href^=\"${href}\"],\n script[src^=\"${href}\"]`\n if (document.querySelector(selector)) {\n return resolve()\n }\n\n link = document.createElement('link')\n\n // The order of property assignment here is intentional:\n if (as) link!.as = as\n link!.rel = `prefetch`\n link!.crossOrigin = process.env.__NEXT_CROSS_ORIGIN!\n link!.onload = resolve as any\n link!.onerror = () =>\n reject(markAssetError(new Error(`Failed to prefetch: ${href}`)))\n\n // `href` should always be last:\n link!.href = href\n\n document.head.appendChild(link)\n })\n}\n\nfunction appendScript(\n src: TrustedScriptURL | string,\n script?: HTMLScriptElement\n): Promise<unknown> {\n return new Promise((resolve, reject) => {\n script = document.createElement('script')\n\n // The order of property assignment here is intentional.\n // 1. Setup success/failure hooks in case the browser synchronously\n // executes when `src` is set.\n script.onload = resolve\n script.onerroLine truncated
{"offset": {"line": 3349, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/router.ts"],"sourcesContent":["/* global window */\nimport React from 'react'\nimport Router from '../shared/lib/router/router'\nimport type { NextRouter } from '../shared/lib/router/router'\nimport { RouterContext } from '../shared/lib/router-context.shared-runtime'\nimport isError from '../lib/is-error'\n\ntype SingletonRouterBase = {\n router: Router | null\n readyCallbacks: Array<() => any>\n ready(cb: () => any): void\n}\n\nexport { Router }\n\nexport type { NextRouter }\n\nexport type SingletonRouter = SingletonRouterBase & NextRouter\n\nconst singletonRouter: SingletonRouterBase = {\n router: null, // holds the actual router instance\n readyCallbacks: [],\n ready(callback: () => void) {\n if (this.router) return callback()\n if (typeof window !== 'undefined') {\n this.readyCallbacks.push(callback)\n }\n },\n}\n\n// Create public properties and methods of the router in the singletonRouter\nconst urlPropertyFields = [\n 'pathname',\n 'route',\n 'query',\n 'asPath',\n 'components',\n 'isFallback',\n 'basePath',\n 'locale',\n 'locales',\n 'defaultLocale',\n 'isReady',\n 'isPreview',\n 'isLocaleDomain',\n 'domainLocales',\n] as const\nconst routerEvents = [\n 'routeChangeStart',\n 'beforeHistoryChange',\n 'routeChangeComplete',\n 'routeChangeError',\n 'hashChangeStart',\n 'hashChangeComplete',\n] as const\nexport type RouterEvent = (typeof routerEvents)[number]\n\nconst coreMethodFields = [\n 'push',\n 'replace',\n 'reload',\n 'back',\n 'prefetch',\n 'beforePopState',\n] as const\n\n// Events is a static property on the router, the router doesn't have to be initialized to use it\nObject.defineProperty(singletonRouter, 'events', {\n get() {\n return Router.events\n },\n})\n\nfunction getRouter(): Router {\n if (!singletonRouter.router) {\n const message =\n 'No router instance found.\\n' +\n 'You should only use \"next/router\" on the client side of your app.\\n'\n throw new Error(message)\n }\n return singletonRouter.router\n}\n\nurlPropertyFields.forEach((field) => {\n // Here we need to use Object.defineProperty because we need to return\n // the property assigned to the actual router\n // The value might get changed as we change routes and this is the\n // proper way to access it\n Object.defineProperty(singletonRouter, field, {\n get() {\n const router = getRouter()\n return router[field] as string\n },\n })\n})\n\ncoreMethodFields.forEach((field) => {\n // We don't really know the types here, so we add them later instead\n ;(singletonRouter as any)[field] = (...args: any[]) => {\n const router = getRouter() as any\n return router[field](...args)\n }\n})\n\nrouterEvents.forEach((event) => {\n singletonRouter.ready(() => {\n Router.events.on(event, (...args) => {\n const eventField = `on${event.charAt(0).toUpperCase()}${event.substring(\n 1\n )}`\n const _singletonRouter = singletonRouter as any\n if (_singletonRouter[eventField]) {\n try {\n _singletonRouter[eventField](...args)\n } catch (err) {\n console.error(`Error when running the Router event: ${eventField}`)\n console.error(\n isError(err) ? `${err.message}\\n${err.stack}` : err + ''\n )\n }\n }\n })\n })\n})\n\n// Export the singletonRouter and this is the public API.\nexport default singletonRouter as SingletonRouter\n\n// Reexport the withRouter HOC\nexport { default as withRouter } from './with-router'\n\n/**\n * This hook gives access the [router object](https://nextjs.org/docs/pages/api-reference/functions/use-router#router-object)\n * inside the [Pages Router](https://nextjs.org/docs/pages/building-your-application).\n *\n * Read more: [Next.js Docs: `useRouter`](https://nextjs.org/docs/pages/api-reference/functions/use-router)\n */\nexport function useRouter(): NextRouter {\n const router = React.useContext(RouterContext)\n if (!router) {\n throw new Error(\n 'NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted'\n )\n }\n\n return router\n}\n\n/**\n * Create a router and assign it as the singleton instance.\n * This is used in client side when we are initializing the app.\n * This should **not** be used inside the server.\n * @internal\n */\nexport function createRouter(\n ...args: ConstructorParameters<typeof Router>\n): Router {\n singletonRouter.router = new Router(...args)\n singletonRouter.readyCallbacks.forEach((cb) => cb())\n singletonRouter.readyCallbacks = []\n\n return singletonRouter.router\n}\n\n/**\n * This function is used to create the `withRouter` router instance\n * @internal\n */\nexport function makePublicRouterInstance(router: Router): NextRouter {\n const scopedRouter = router as any\n const instance = {} as any\n\Line truncated
{"offset": {"line": 3538, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/script.tsx"],"sourcesContent":["'use client'\n\nimport ReactDOM from 'react-dom'\nimport React, { useEffect, useContext, useRef, type JSX } from 'react'\nimport type { ScriptHTMLAttributes } from 'react'\nimport { HeadManagerContext } from '../shared/lib/head-manager-context.shared-runtime'\nimport { setAttributesFromProps } from './set-attributes-from-props'\nimport { requestIdleCallback } from './request-idle-callback'\nimport { htmlEscapeJsonString } from '../shared/lib/htmlescape'\n\nconst ScriptCache = new Map()\nconst LoadCache = new Set()\n\nexport interface ScriptProps extends ScriptHTMLAttributes<HTMLScriptElement> {\n strategy?: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive' | 'worker'\n id?: string\n onLoad?: (e: any) => void\n onReady?: () => void | null\n onError?: (e: any) => void\n children?: React.ReactNode\n stylesheets?: string[]\n}\n\n/**\n * @deprecated Use `ScriptProps` instead.\n */\nexport type Props = ScriptProps\n\nconst insertStylesheets = (stylesheets: string[]) => {\n // Case 1: Styles for afterInteractive/lazyOnload with appDir injected via handleClientScriptLoad\n //\n // Using ReactDOM.preinit to feature detect appDir and inject styles\n // Stylesheets might have already been loaded if initialized with Script component\n // Re-inject styles here to handle scripts loaded via handleClientScriptLoad\n // ReactDOM.preinit handles dedup and ensures the styles are loaded only once\n if (ReactDOM.preinit) {\n stylesheets.forEach((stylesheet: string) => {\n ReactDOM.preinit(stylesheet, { as: 'style' })\n })\n\n return\n }\n\n // Case 2: Styles for afterInteractive/lazyOnload with pages injected via handleClientScriptLoad\n //\n // We use this function to load styles when appdir is not detected\n // TODO: Use React float APIs to load styles once available for pages dir\n if (typeof window !== 'undefined') {\n let head = document.head\n stylesheets.forEach((stylesheet: string) => {\n let link = document.createElement('link')\n\n link.type = 'text/css'\n link.rel = 'stylesheet'\n link.href = stylesheet\n\n head.appendChild(link)\n })\n }\n}\n\nconst loadScript = (props: ScriptProps): void => {\n const {\n src,\n id,\n onLoad = () => {},\n onReady = null,\n dangerouslySetInnerHTML,\n children = '',\n strategy = 'afterInteractive',\n onError,\n stylesheets,\n } = props\n\n const cacheKey = id || src\n\n // Script has already loaded\n if (cacheKey && LoadCache.has(cacheKey)) {\n return\n }\n\n // Contents of this script are already loading/loaded\n if (ScriptCache.has(src)) {\n LoadCache.add(cacheKey)\n // It is possible that multiple `next/script` components all have same \"src\", but has different \"onLoad\"\n // This is to make sure the same remote script will only load once, but \"onLoad\" are executed in order\n ScriptCache.get(src).then(onLoad, onError)\n return\n }\n\n /** Execute after the script first loaded */\n const afterLoad = () => {\n // Run onReady for the first time after load event\n if (onReady) {\n onReady()\n }\n // add cacheKey to LoadCache when load successfully\n LoadCache.add(cacheKey)\n }\n\n const el = document.createElement('script')\n\n const loadPromise = new Promise<void>((resolve, reject) => {\n el.addEventListener('load', function (e) {\n resolve()\n if (onLoad) {\n onLoad.call(this, e)\n }\n afterLoad()\n })\n el.addEventListener('error', function (e) {\n reject(e)\n })\n }).catch(function (e) {\n if (onError) {\n onError(e)\n }\n })\n\n if (dangerouslySetInnerHTML) {\n // Casting since lib.dom.d.ts doesn't have TrustedHTML yet.\n el.innerHTML = (dangerouslySetInnerHTML.__html as string) || ''\n\n afterLoad()\n } else if (children) {\n el.textContent =\n typeof children === 'string'\n ? children\n : Array.isArray(children)\n ? children.join('')\n : ''\n\n afterLoad()\n } else if (src) {\n el.src = src\n // do not add cacheKey into LoadCache for remote script here\n // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above)\n\n ScriptCache.set(src, loadPromise)\n }\n\n setAttributesFromProps(el, props)\n\n if (strategy === 'worker') {\n el.setAttribute('type', 'text/partytown')\n }\n\n el.setAttribute('data-nscript', strategy)\n\n // Load styles associated with this script\n if (stylesheets) {\n insertStylesheets(stylesheets)\n }\n\n document.body.appendChild(el)\n}\n\nexport function handleClientScriptLoad(props: ScriptProps) {\n const { strategy = 'afterInteractive' } = props\n if (strategy === 'lazyOnload') {\n window.addEventListener('load', () => {\n requestIdleCallback(() => loadSLine truncated
{"offset": {"line": 3887, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/set-attributes-from-props.ts"],"sourcesContent":["const DOMAttributeNames: Record<string, string> = {\n acceptCharset: 'accept-charset',\n className: 'class',\n htmlFor: 'for',\n httpEquiv: 'http-equiv',\n noModule: 'noModule',\n}\n\nconst ignoreProps = [\n 'onLoad',\n 'onReady',\n 'dangerouslySetInnerHTML',\n 'children',\n 'onError',\n 'strategy',\n 'stylesheets',\n]\n\nfunction isBooleanScriptAttribute(\n attr: string\n): attr is 'async' | 'defer' | 'noModule' {\n return ['async', 'defer', 'noModule'].includes(attr)\n}\n\nexport function setAttributesFromProps(el: HTMLElement, props: object) {\n for (const [p, value] of Object.entries(props)) {\n if (!props.hasOwnProperty(p)) continue\n if (ignoreProps.includes(p)) continue\n\n // we don't render undefined props to the DOM\n if (value === undefined) {\n continue\n }\n\n const attr = DOMAttributeNames[p] || p.toLowerCase()\n\n if (el.tagName === 'SCRIPT' && isBooleanScriptAttribute(attr)) {\n // Correctly assign boolean script attributes\n // https://github.com/vercel/next.js/pull/20748\n ;(el as HTMLScriptElement)[attr] = !!value\n } else {\n el.setAttribute(attr, String(value))\n }\n\n // Remove falsy non-zero boolean attributes so they are correctly interpreted\n // (e.g. if we set them to false, this coerces to the string \"false\", which the browser interprets as true)\n if (\n value === false ||\n (el.tagName === 'SCRIPT' &&\n isBooleanScriptAttribute(attr) &&\n (!value || value === 'false'))\n ) {\n // Call setAttribute before, as we need to set and unset the attribute to override force async:\n // https://html.spec.whatwg.org/multipage/scripting.html#script-force-async\n el.setAttribute(attr, '')\n el.removeAttribute(attr)\n }\n }\n}\n"],"names":["setAttributesFromProps","DOMAttributeNames","acceptCharset","className","htmlFor","httpEquiv","noModule","ignoreProps","isBooleanScriptAttribute","attr","includes","el","props","p","value","Object","entries","hasOwnProperty","undefined","toLowerCase","tagName","setAttribute","String","removeAttribute"],"mappings":";;;+BAwBgBA,0BAAAA;;;eAAAA;;;AAxBhB,MAAMC,oBAA4C;IAChDC,eAAe;IACfC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,UAAU;AACZ;AAEA,MAAMC,cAAc;IAClB;IACA;IACA;IACA;IACA;IACA;IACA;CACD;AAED,SAASC,yBACPC,IAAY;IAEZ,OAAO;QAAC;QAAS;QAAS;KAAW,CAACC,QAAQ,CAACD;AACjD;AAEO,SAAST,uBAAuBW,EAAe,EAAEC,KAAa;IACnE,KAAK,MAAM,CAACC,GAAGC,MAAM,IAAIC,OAAOC,OAAO,CAACJ,OAAQ;QAC9C,IAAI,CAACA,MAAMK,cAAc,CAACJ,IAAI;QAC9B,IAAIN,YAAYG,QAAQ,CAACG,IAAI;QAE7B,6CAA6C;QAC7C,IAAIC,UAAUI,WAAW;YACvB;QACF;QAEA,MAAMT,OAAOR,iBAAiB,CAACY,EAAE,IAAIA,EAAEM,WAAW;QAElD,IAAIR,GAAGS,OAAO,KAAK,YAAYZ,yBAAyBC,OAAO;YAC7D,6CAA6C;YAC7C,+CAA+C;;YAC7CE,EAAwB,CAACF,KAAK,GAAG,CAAC,CAACK;QACvC,OAAO;YACLH,GAAGU,YAAY,CAACZ,MAAMa,OAAOR;QAC/B;QAEA,6EAA6E;QAC7E,2GAA2G;QAC3G,IACEA,UAAU,SACTH,GAAGS,OAAO,KAAK,YACdZ,yBAAyBC,SACxB,CAAA,CAACK,SAASA,UAAU,OAAM,GAC7B;YACA,+FAA+F;YAC/F,2EAA2E;YAC3EH,GAAGU,YAAY,CAACZ,MAAM;YACtBE,GAAGY,eAAe,CAACd;QACrB;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 3957, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/tracing/report-to-socket.ts"],"sourcesContent":["import { sendMessage } from '../dev/hot-reloader/pages/websocket'\nimport type { Span } from './tracer'\n\nexport default function reportToSocket(span: Span) {\n if (span.state.state !== 'ended') {\n throw new Error('Expected span to be ended')\n }\n\n sendMessage(\n JSON.stringify({\n event: 'span-end',\n startTime: span.startTime,\n endTime: span.state.endTime,\n spanName: span.name,\n attributes: span.attributes,\n })\n )\n}\n"],"names":["reportToSocket","span","state","Error","sendMessage","JSON","stringify","event","startTime","endTime","spanName","name","attributes"],"mappings":";;;+BAGA,WAAA;;;eAAwBA;;;2BAHI;AAGb,SAASA,eAAeC,IAAU;IAC/C,IAAIA,KAAKC,KAAK,CAACA,KAAK,KAAK,SAAS;QAChC,MAAM,OAAA,cAAsC,CAAtC,IAAIC,MAAM,8BAAV,qBAAA;mBAAA;wBAAA;0BAAA;QAAqC;IAC7C;IAEAC,CAAAA,GAAAA,WAAAA,WAAW,EACTC,KAAKC,SAAS,CAAC;QACbC,OAAO;QACPC,WAAWP,KAAKO,SAAS;QACzBC,SAASR,KAAKC,KAAK,CAACO,OAAO;QAC3BC,UAAUT,KAAKU,IAAI;QACnBC,YAAYX,KAAKW,UAAU;IAC7B;AAEJ","ignoreList":[0]}},
{"offset": {"line": 3994, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/tracing/tracer.ts"],"sourcesContent":["import mitt from '../../shared/lib/mitt'\nimport type { MittEmitter } from '../../shared/lib/mitt'\n\nexport type SpanOptions = {\n startTime?: number\n attributes?: Record<string, unknown>\n}\n\nexport type SpanState =\n | {\n state: 'inprogress'\n }\n | {\n state: 'ended'\n endTime: number\n }\n\ninterface ISpan {\n name: string\n startTime: number\n attributes: Record<string, unknown>\n state: SpanState\n end(endTime?: number): void\n}\n\nclass Span implements ISpan {\n name: string\n startTime: number\n onSpanEnd: (span: Span) => void\n state: SpanState\n attributes: Record<string, unknown>\n\n constructor(\n name: string,\n options: SpanOptions,\n onSpanEnd: (span: Span) => void\n ) {\n this.name = name\n this.attributes = options.attributes ?? {}\n this.startTime = options.startTime ?? Date.now()\n this.onSpanEnd = onSpanEnd\n this.state = { state: 'inprogress' }\n }\n\n end(endTime?: number) {\n if (this.state.state === 'ended') {\n throw new Error('Span has already ended')\n }\n\n this.state = {\n state: 'ended',\n endTime: endTime ?? Date.now(),\n }\n\n this.onSpanEnd(this)\n }\n}\n\nclass Tracer {\n _emitter: MittEmitter<string> = mitt()\n\n private handleSpanEnd = (span: Span) => {\n this._emitter.emit('spanend', span)\n }\n\n startSpan(name: string, options: SpanOptions) {\n return new Span(name, options, this.handleSpanEnd)\n }\n\n onSpanEnd(cb: (span: ISpan) => void): () => void {\n this._emitter.on('spanend', cb)\n return () => {\n this._emitter.off('spanend', cb)\n }\n }\n}\n\nexport type { ISpan as Span }\nexport default new Tracer()\n"],"names":["Span","constructor","name","options","onSpanEnd","attributes","startTime","Date","now","state","end","endTime","Error","Tracer","startSpan","handleSpanEnd","cb","_emitter","on","off","mitt","span","emit"],"mappings":";;;+BA8EA,WAAA;;;eAAA;;;;+DA9EiB;AAyBjB,MAAMA;IAOJC,YACEC,IAAY,EACZC,OAAoB,EACpBC,SAA+B,CAC/B;QACA,IAAI,CAACF,IAAI,GAAGA;QACZ,IAAI,CAACG,UAAU,GAAGF,QAAQE,UAAU,IAAI,CAAC;QACzC,IAAI,CAACC,SAAS,GAAGH,QAAQG,SAAS,IAAIC,KAAKC,GAAG;QAC9C,IAAI,CAACJ,SAAS,GAAGA;QACjB,IAAI,CAACK,KAAK,GAAG;YAAEA,OAAO;QAAa;IACrC;IAEAC,IAAIC,OAAgB,EAAE;QACpB,IAAI,IAAI,CAACF,KAAK,CAACA,KAAK,KAAK,SAAS;YAChC,MAAM,OAAA,cAAmC,CAAnC,IAAIG,MAAM,2BAAV,qBAAA;uBAAA;4BAAA;8BAAA;YAAkC;QAC1C;QAEA,IAAI,CAACH,KAAK,GAAG;YACXA,OAAO;YACPE,SAASA,WAAWJ,KAAKC,GAAG;QAC9B;QAEA,IAAI,CAACJ,SAAS,CAAC,IAAI;IACrB;AACF;AAEA,MAAMS;IAOJC,UAAUZ,IAAY,EAAEC,OAAoB,EAAE;QAC5C,OAAO,IAAIH,KAAKE,MAAMC,SAAS,IAAI,CAACY,aAAa;IACnD;IAEAX,UAAUY,EAAyB,EAAc;QAC/C,IAAI,CAACC,QAAQ,CAACC,EAAE,CAAC,WAAWF;QAC5B,OAAO;YACL,IAAI,CAACC,QAAQ,CAACE,GAAG,CAAC,WAAWH;QAC/B;IACF;;aAfAC,QAAAA,GAAgCG,CAAAA,GAAAA,MAAAA,OAAI;aAE5BL,aAAAA,GAAgB,CAACM;YACvB,IAAI,CAACJ,QAAQ,CAACK,IAAI,CAAC,WAAWD;QAChC;;AAYF;MAGA,WAAe,IAAIR","ignoreList":[0]}},
{"offset": {"line": 4059, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/trusted-types.ts"],"sourcesContent":["/**\n * Stores the Trusted Types Policy. Starts as undefined and can be set to null\n * if Trusted Types is not supported in the browser.\n */\nlet policy: TrustedTypePolicy | null | undefined\n\n/**\n * Getter for the Trusted Types Policy. If it is undefined, it is instantiated\n * here or set to null if Trusted Types is not supported in the browser.\n */\nfunction getPolicy() {\n if (typeof policy === 'undefined' && typeof window !== 'undefined') {\n policy =\n window.trustedTypes?.createPolicy('nextjs', {\n createHTML: (input) => input,\n createScript: (input) => input,\n createScriptURL: (input) => input,\n }) || null\n }\n\n return policy\n}\n\n/**\n * Unsafely promote a string to a TrustedScriptURL, falling back to strings\n * when Trusted Types are not available.\n * This is a security-sensitive function; any use of this function\n * must go through security review. In particular, it must be assured that the\n * provided string will never cause an XSS vulnerability if used in a context\n * that will cause a browser to load and execute a resource, e.g. when\n * assigning to script.src.\n */\nexport function __unsafeCreateTrustedScriptURL(\n url: string\n): TrustedScriptURL | string {\n return getPolicy()?.createScriptURL(url) || url\n}\n"],"names":["__unsafeCreateTrustedScriptURL","policy","getPolicy","window","trustedTypes","createPolicy","createHTML","input","createScript","createScriptURL","url"],"mappings":"AAAA;;;CAGC;;;+BA6BeA,kCAAAA;;;eAAAA;;;AA5BhB,IAAIC;AAEJ;;;CAGC,GACD,SAASC;IACP,IAAI,OAAOD,WAAW,eAAe,OAAOE,WAAW,aAAa;QAClEF,SACEE,OAAOC,YAAY,EAAEC,aAAa,UAAU;YAC1CC,YAAY,CAACC,QAAUA;YACvBC,cAAc,CAACD,QAAUA;YACzBE,iBAAiB,CAACF,QAAUA;QAC9B,MAAM;IACV;IAEA,OAAON;AACT;AAWO,SAASD,+BACdU,GAAW;IAEX,OAAOR,aAAaO,gBAAgBC,QAAQA;AAC9C","ignoreList":[0]}},
{"offset": {"line": 4099, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/client/with-router.tsx"],"sourcesContent":["import React, { type JSX } from 'react'\nimport type {\n BaseContext,\n NextComponentType,\n NextPageContext,\n} from '../shared/lib/utils'\nimport type { NextRouter } from './router'\nimport { useRouter } from './router'\n\nexport type WithRouterProps = {\n router: NextRouter\n}\n\nexport type ExcludeRouterProps<P> = Pick<\n P,\n Exclude<keyof P, keyof WithRouterProps>\n>\n\nexport default function withRouter<\n P extends WithRouterProps,\n C extends BaseContext = NextPageContext,\n>(\n ComposedComponent: NextComponentType<C, any, P>\n): React.ComponentType<ExcludeRouterProps<P>> {\n function WithRouterWrapper(props: any): JSX.Element {\n return <ComposedComponent router={useRouter()} {...props} />\n }\n\n WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps\n // This is needed to allow checking for custom getInitialProps in _app\n ;(WithRouterWrapper as any).origGetInitialProps = (\n ComposedComponent as any\n ).origGetInitialProps\n if (process.env.NODE_ENV !== 'production') {\n const name =\n ComposedComponent.displayName || ComposedComponent.name || 'Unknown'\n WithRouterWrapper.displayName = `withRouter(${name})`\n }\n\n return WithRouterWrapper\n}\n"],"names":["withRouter","ComposedComponent","WithRouterWrapper","props","router","useRouter","getInitialProps","origGetInitialProps","process","env","NODE_ENV","name","displayName"],"mappings":"AAiCMQ,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAf/B,WAAA;;;eAAwBV;;;;;gEAlBQ;wBAON;AAWX,SAASA,WAItBC,iBAA+C;IAE/C,SAASC,kBAAkBC,KAAU;QACnC,OAAA,WAAA,GAAO,CAAA,GAAA,YAAA,GAAA,EAACF,mBAAAA;YAAkBG,QAAQC,CAAAA,GAAAA,QAAAA,SAAS;YAAK,GAAGF,KAAK;;IAC1D;IAEAD,kBAAkBI,eAAe,GAAGL,kBAAkBK,eAAe;IAEnEJ,kBAA0BK,mBAAmB,GAC7CN,kBACAM,mBAAmB;IACrB,wCAA2C;QACzC,MAAMI,OACJV,kBAAkBW,WAAW,IAAIX,kBAAkBU,IAAI,IAAI;QAC7DT,kBAAkBU,WAAW,GAAG,CAAC,WAAW,EAAED,KAAK,CAAC,CAAC;IACvD;IAEA,OAAOT;AACT","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,18 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js","sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/@next/react-refresh-utils/internal/helpers.ts"],"sourcesContent":["unable to read source [project]/node_modules/next/dist/compiled/@next/react-refresh-utils/internal/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;;AAEH,+EAA+E;AAC/E,2BAA2B;AAC3B,EAAE;AACF,8HAA8H;AAE9H,MAAA,YAAA,kDAAkD;AAsBlD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,AACL,GAAG,KAAK,YAAY,IACpB,GAAG,KAAK,SAAS,IACjB,GAAG,KAAK,SAAS,IACjB,qEAAqE;IACrE,GAAG,KAAK,QAAQ,CACjB,CAAA;AACH,CAAC;AAED,SAAS,8BAA8B,CACrC,aAAsB,EACtB,QAAgB;IAEhB,UAAA,OAAc,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAA;IAC/D,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,+CAA+C;QAC/C,OAAM;IACR,CAAC;IACD,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YAEP,SAAQ;QACV,CAAC;QACD,IAAI,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,GAAG,CAAA;QAC3C,UAAA,OAAc,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;IAC9C,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAAC,aAAsB;IACzD,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,SAAS,CAAC,IAAI,CAAC,UAAA,OAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAA;IAC7D,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,+CAA+C;QAC/C,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YAEP,SAAQ;QACV,CAAC;QACD,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACnB,SAAS,CAAC,IAAI,CAAC,UAAA,OAAc,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAA;IAC7D,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAS,sBAAsB,CAAC,aAAsB;IACpD,IAAI,UAAA,OAAc,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,CAAC;QACxD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,UAAU,GAAG,KAAK,CAAA;IACtB,IAAI,uBAAuB,GAAG,IAAI,CAAA;IAClC,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,UAAU,GAAG,IAAI,CAAA;QACjB,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YACP,+CAA+C;YAC/C,OAAO,KAAK,CAAA;QACd,CAAC;QACD,IAAI,CAAC,UAAA,OAAc,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,CAAC;YACvD,uBAAuB,GAAG,KAAK,CAAA;QACjC,CAAC;IACH,CAAC;IACD,OAAO,UAAU,IAAI,uBAAuB,CAAA;AAC9C,CAAC;AAED,SAAS,oCAAoC,CAC3C,aAAwB,EACxB,aAAwB;IAExB,IAAI,aAAa,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE,CAAC;QAClD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,CAAE,CAAC;QAC9C,IAAI,aAAa,CAAC,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,IAAI,iBAAiB,GAAY,KAAK,CAAA;AACtC,2FAA2F;AAC3F,SAAS,cAAc;IACrB,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAM;IACR,CAAC;IACD,iBAAiB,GAAG,IAAI,CAAA;IAExB,SAAS,cAAc,CAAC,MAAuB;QAC7C,OAAO,MAAM,KAAK,MAAM,CAAA;IAC1B,CAAC;IAED,SAAS,WAAW;QAClB,iBAAiB,GAAG,KAAK,CAAA;QACzB,IAAI,CAAC;YACH,UAAA,OAAc,CAAC,mBAAmB,EAAE,CAAA;QACtC,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CACV,+EAA+E,GAC7E,GAAG,CACN,CAAA;QACH,CAAC;IACH,CAAC;IAED,IAAI,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;QACxC,iCAAiC;QACjC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YAC1B,WAAW,EAAE,CAAA;QACf,CAAC,CAAC,CAAA;QACF,OAAM;IACR,CAAC;IAED,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,EAAE;QAC/B,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;YAC7C,WAAW,EAAE,CAAA;QACf,CAAC;IACH,CAAC,CAAA;IAED,sDAAsD;IACtD,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC;AAED,mCAAmC;AACnC,QAAA,OAAA,GAAe;IACb,8BAA8B,EAAE,8BAA8B;IAC9D,sBAAsB,EAAE,sBAAsB;IAC9C,oCAAoC,EAAE,oCAAoC;IAC1E,2BAA2B,EAAE,2BAA2B;IACxD,cAAc,EAAE,cAAc;CAC/B,CAAA"}},
{"offset": {"line": 169, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js","sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/@next/react-refresh-utils/runtime.ts"],"sourcesContent":["unable to read source [project]/node_modules/next/dist/compiled/@next/react-refresh-utils/runtime.ts"],"names":[],"mappings":";;;;;;;;AAAA,MAAA,YAAA,kDAAkD;AAClD,MAAA,YAAA,+CAA+C;AAW/C,oCAAoC;AACpC,UAAA,OAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAEzC,0BAA0B;AAC1B,IAAI,CAAC,gBAAgB,GAAG,UAAA,OAAc,CAAA;AAEtC,sDAAsD;AACtD,IAAI,CAAC,iCAAiC,GAAG,SAAU,eAAe;IAChE,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IACtC,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IAEtC,IAAI,CAAC,YAAY,GAAG,SAAU,IAAI,EAAE,EAAE;QACpC,UAAA,OAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,EAAE,CAAC,CAAA;IAC3D,CAAC,CAAA;IACD,IAAI,CAAC,YAAY,GAAG,UAAA,OAAc,CAAC,mCAAmC,CAAA;IAEtE,6CAA6C;IAC7C,kFAAkF;IAClF,OAAO;QACL,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;IACpC,CAAC,CAAA;AACH,CAAC,CAAA"}},
{"offset": {"line": 201, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/cookie/index.js"],"sourcesContent":["(()=>{\"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})();"],"names":["__nccwpck_require__","ab","e","r","parse","serialize","i","decodeURIComponent","t","encodeURIComponent","a","n","TypeError","o","split","s","decode","p","length","f","u","indexOf","v","substr","trim","c","slice","undefined","tryDecode","encode","test","maxAge","isNaN","isFinite","Math","floor","domain","path","expires","toUTCString","httpOnly","secure","sameSite","toLowerCase","module","exports"],"mappings":"AAAA,CAAC;IAAK;IAAa,IAAG,OAAOA,wBAAsB,aAAYA,oBAAoBC,EAAE,GAAC,mFAAU;IAAI,IAAIC,IAAE,CAAC;IAAE,CAAC;QAAK,IAAIC,IAAED;QACzH;;;;;CAKC,GAAEC,EAAEC,KAAK,GAACA;QAAMD,EAAEE,SAAS,GAACA;QAAU,IAAIC,IAAEC;QAAmB,IAAIC,IAAEC;QAAmB,IAAIC,IAAE;QAAM,IAAIC,IAAE;QAAwC,SAASP,MAAMF,CAAC,EAACC,CAAC;YAAE,IAAG,OAAOD,MAAI,UAAS;gBAAC,MAAM,IAAIU,UAAU;YAAgC;YAAC,IAAIJ,IAAE,CAAC;YAAE,IAAIG,IAAER,KAAG,CAAC;YAAE,IAAIU,IAAEX,EAAEY,KAAK,CAACJ;YAAG,IAAIK,IAAEJ,EAAEK,MAAM,IAAEV;YAAE,IAAI,IAAIW,IAAE,GAAEA,IAAEJ,EAAEK,MAAM,EAACD,IAAI;gBAAC,IAAIE,IAAEN,CAAC,CAACI,EAAE;gBAAC,IAAIG,IAAED,EAAEE,OAAO,CAAC;gBAAK,IAAGD,IAAE,GAAE;oBAAC;gBAAQ;gBAAC,IAAIE,IAAEH,EAAEI,MAAM,CAAC,GAAEH,GAAGI,IAAI;gBAAG,IAAIC,IAAEN,EAAEI,MAAM,CAAC,EAAEH,GAAED,EAAED,MAAM,EAAEM,IAAI;gBAAG,IAAG,OAAKC,CAAC,CAAC,EAAE,EAAC;oBAACA,IAAEA,EAAEC,KAAK,CAAC,GAAE,CAAC;gBAAE;gBAAC,IAAGC,aAAWnB,CAAC,CAACc,EAAE,EAAC;oBAACd,CAAC,CAACc,EAAE,GAACM,UAAUH,GAAEV;gBAAE;YAAC;YAAC,OAAOP;QAAC;QAAC,SAASH,UAAUH,CAAC,EAACC,CAAC,EAACG,CAAC;YAAE,IAAII,IAAEJ,KAAG,CAAC;YAAE,IAAIO,IAAEH,EAAEmB,MAAM,IAAErB;YAAE,IAAG,OAAOK,MAAI,YAAW;gBAAC,MAAM,IAAID,UAAU;YAA2B;YAAC,IAAG,CAACD,EAAEmB,IAAI,CAAC5B,IAAG;gBAAC,MAAM,IAAIU,UAAU;YAA2B;YAAC,IAAIG,IAAEF,EAAEV;YAAG,IAAGY,KAAG,CAACJ,EAAEmB,IAAI,CAACf,IAAG;gBAAC,MAAM,IAAIH,UAAU;YAA0B;YAAC,IAAIK,IAAEf,IAAE,MAAIa;YAAE,IAAG,QAAML,EAAEqB,MAAM,EAAC;gBAAC,IAAIZ,IAAET,EAAEqB,MAAM,GAAC;gBAAE,IAAGC,MAAMb,MAAI,CAACc,SAASd,IAAG;oBAAC,MAAM,IAAIP,UAAU;gBAA2B;gBAACK,KAAG,eAAaiB,KAAKC,KAAK,CAAChB;YAAE;YAAC,IAAGT,EAAE0B,MAAM,EAAC;gBAAC,IAAG,CAACzB,EAAEmB,IAAI,CAACpB,EAAE0B,MAAM,GAAE;oBAAC,MAAM,IAAIxB,UAAU;gBAA2B;gBAACK,KAAG,cAAYP,EAAE0B,MAAM;YAAA;YAAC,IAAG1B,EAAE2B,IAAI,EAAC;gBAAC,IAAG,CAAC1B,EAAEmB,IAAI,CAACpB,EAAE2B,IAAI,GAAE;oBAAC,MAAM,IAAIzB,UAAU;gBAAyB;gBAACK,KAAG,YAAUP,EAAE2B,IAAI;YAAA;YAAC,IAAG3B,EAAE4B,OAAO,EAAC;gBAAC,IAAG,OAAO5B,EAAE4B,OAAO,CAACC,WAAW,KAAG,YAAW;oBAAC,MAAM,IAAI3B,UAAU;gBAA4B;gBAACK,KAAG,eAAaP,EAAE4B,OAAO,CAACC,WAAW;YAAE;YAAC,IAAG7B,EAAE8B,QAAQ,EAAC;gBAACvB,KAAG;YAAY;YAAC,IAAGP,EAAE+B,MAAM,EAAC;gBAACxB,KAAG;YAAU;YAAC,IAAGP,EAAEgC,QAAQ,EAAC;gBAAC,IAAItB,IAAE,OAAOV,EAAEgC,QAAQ,KAAG,WAAShC,EAAEgC,QAAQ,CAACC,WAAW,KAAGjC,EAAEgC,QAAQ;gBAAC,OAAOtB;oBAAG,KAAK;wBAAKH,KAAG;wBAAoB;oBAAM,KAAI;wBAAMA,KAAG;wBAAiB;oBAAM,KAAI;wBAASA,KAAG;wBAAoB;oBAAM,KAAI;wBAAOA,KAAG;wBAAkB;oBAAM;wBAAQ,MAAM,IAAIL,UAAU;gBAA6B;YAAC;YAAC,OAAOK;QAAC;QAAC,SAASW,UAAU1B,Line truncated
{"offset": {"line": 322, "column": 0}, "map": {"version":3,"sources":["webpack://next/./src/next-devtools/dev-overlay/components/devtools-indicator/devtools-indicator.css","webpack://next/./src/next-devtools/dev-overlay/components/devtools-panel/resize/resize-handle.css","webpack://next/./src/next-devtools/dev-overlay/components/instant-navs/instant-navs-panel.css","webpack://next/./src/next-devtools/dev-overlay/components/overview/segment-boundary-trigger.css","webpack://next/./src/next-devtools/dev-overlay/components/overview/segment-explorer.css","webpack://next/./src/next-devtools/dev-overlay/components/request-insights/request-insights-panel.css","webpack://next/./src/next-devtools/dev-overlay/components/toast/style.css","webpack://next/./src/next-devtools/dev-overlay/components/tooltip/tooltip.css","webpack://next/./src/next-devtools/dev-overlay/global.css","webpack://next/./src/next-devtools/dev-overlay/menu/panel-router.css","webpack://next/./src/next-devtools/dev-overlay/normalize.css","webpack://next/./src/next-devtools/dev-overlay/panel/dynamic-panel.css","webpack://next/./src/next-devtools/dev-overlay/styles/colors.css","webpack://next/./src/next-devtools/dev-overlay/styles/dark-theme.css","webpack://next/./src/next-devtools/dev-overlay/styles/default-theme.css","webpack://next/../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d_53af518c711840c14a35db06bfca95b1/node_modules/css-loader/dist/runtime/api.js","webpack://next/../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d_53af518c711840c14a35db06bfca95b1/node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://next/./dist/compiled/anser/index.js","webpack://next/./dist/compiled/react-dom/cjs/react-dom-client.production.js","webpack://next/./dist/compiled/react-dom/cjs/react-dom.production.js","webpack://next/./dist/compiled/react-dom/client.js","webpack://next/./dist/compiled/react-dom/index.js","webpack://next/./dist/compiled/react/cjs/react-compiler-runtime.production.js","webpack://next/./dist/compiled/react/cjs/react-jsx-runtime.production.js","webpack://next/./dist/compiled/react/cjs/react.production.js","webpack://next/./dist/compiled/react/compiler-runtime.js","webpack://next/./dist/compiled/react/index.js","webpack://next/./dist/compiled/react/jsx-runtime.js","webpack://next/./dist/compiled/scheduler/cjs/scheduler.production.js","webpack://next/./dist/compiled/scheduler/index.js","webpack://next/./dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","webpack://next/./dist/compiled/strip-ansi/index.js","webpack://next/./src/build/webpack/loaders/devtool/devtool-style-inject.js","webpack://next/./src/next-devtools/dev-overlay/components/devtools-indicator/status-indicator.tsx","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/utils/styleHookMapping.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/utils/popupStateMapping.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/composite/list/useCompositeListItem.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/menu/checkbox-item/MenuCheckboxItemDataAttributes.js","webpack://next/./src/next-devtools/dev-overlay/global.css?29ce","webpack://next/./src/next-devtools/dev-overlay/components/toast/style.css?ed91","webpack://next/./src/next-devtools/dev-overlay/font/font-styles.tsx","webpack://Line truncated
{"offset": {"line": 5309, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/path-to-regexp/index.js"],"sourcesContent":["(()=>{\"use strict\";if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var e={};(()=>{var n=e;Object.defineProperty(n,\"__esModule\",{value:true});n.pathToRegexp=n.tokensToRegexp=n.regexpToFunction=n.match=n.tokensToFunction=n.compile=n.parse=void 0;function lexer(e){var n=[];var r=0;while(r<e.length){var t=e[r];if(t===\"*\"||t===\"+\"||t===\"?\"){n.push({type:\"MODIFIER\",index:r,value:e[r++]});continue}if(t===\"\\\\\"){n.push({type:\"ESCAPED_CHAR\",index:r++,value:e[r++]});continue}if(t===\"{\"){n.push({type:\"OPEN\",index:r,value:e[r++]});continue}if(t===\"}\"){n.push({type:\"CLOSE\",index:r,value:e[r++]});continue}if(t===\":\"){var a=\"\";var i=r+1;while(i<e.length){var o=e.charCodeAt(i);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){a+=e[i++];continue}break}if(!a)throw new TypeError(\"Missing parameter name at \".concat(r));n.push({type:\"NAME\",index:r,value:a});r=i;continue}if(t===\"(\"){var c=1;var f=\"\";var i=r+1;if(e[i]===\"?\"){throw new TypeError('Pattern cannot start with \"?\" at '.concat(i))}while(i<e.length){if(e[i]===\"\\\\\"){f+=e[i++]+e[i++];continue}if(e[i]===\")\"){c--;if(c===0){i++;break}}else if(e[i]===\"(\"){c++;if(e[i+1]!==\"?\"){throw new TypeError(\"Capturing groups are not allowed at \".concat(i))}}f+=e[i++]}if(c)throw new TypeError(\"Unbalanced pattern at \".concat(r));if(!f)throw new TypeError(\"Missing pattern at \".concat(r));n.push({type:\"PATTERN\",index:r,value:f});r=i;continue}n.push({type:\"CHAR\",index:r,value:e[r++]})}n.push({type:\"END\",index:r,value:\"\"});return n}function parse(e,n){if(n===void 0){n={}}var r=lexer(e);var t=n.prefixes,a=t===void 0?\"./\":t,i=n.delimiter,o=i===void 0?\"/#?\":i;var c=[];var f=0;var u=0;var p=\"\";var tryConsume=function(e){if(u<r.length&&r[u].type===e)return r[u++].value};var mustConsume=function(e){var n=tryConsume(e);if(n!==undefined)return n;var t=r[u],a=t.type,i=t.index;throw new TypeError(\"Unexpected \".concat(a,\" at \").concat(i,\", expected \").concat(e))};var consumeText=function(){var e=\"\";var n;while(n=tryConsume(\"CHAR\")||tryConsume(\"ESCAPED_CHAR\")){e+=n}return e};var isSafe=function(e){for(var n=0,r=o;n<r.length;n++){var t=r[n];if(e.indexOf(t)>-1)return true}return false};var safePattern=function(e){var n=c[c.length-1];var r=e||(n&&typeof n===\"string\"?n:\"\");if(n&&!r){throw new TypeError('Must have text between two parameters, missing text after \"'.concat(n.name,'\"'))}if(!r||isSafe(r))return\"[^\".concat(escapeString(o),\"]+?\");return\"(?:(?!\".concat(escapeString(r),\")[^\").concat(escapeString(o),\"])+?\")};while(u<r.length){var v=tryConsume(\"CHAR\");var s=tryConsume(\"NAME\");var d=tryConsume(\"PATTERN\");if(s||d){var g=v||\"\";if(a.indexOf(g)===-1){p+=g;g=\"\"}if(p){c.push(p);p=\"\"}c.push({name:s||f++,prefix:g,suffix:\"\",pattern:d||safePattern(g),modifier:tryConsume(\"MODIFIER\")||\"\"});continue}var x=v||tryConsume(\"ESCAPED_CHAR\");if(x){p+=x;continue}if(p){c.push(p);p=\"\"}var h=tryConsume(\"OPEN\");if(h){var g=consumeText();var l=tryConsume(\"NAME\")||\"\";var m=tryConsume(\"PATTERN\")||\"\";var T=consumeText();mustConsume(\"CLOSE\");c.push({name:l||(m?f++:\"\"),pattern:l&&!m?safePattern(g):m,prefix:g,suffix:T,modifier:tryConsume(\"MODIFIER\")||\"\"});continue}mustConsume(\"END\")}return c}n.parse=parse;function compile(e,n){return tokensToFunction(parse(e,n),n)}n.compile=compile;function tokensToFunction(e,n){if(n===void 0){n={}}var r=flags(n);var t=n.encode,a=t===void 0?function(e){return e}:t,i=n.validate,o=i===void 0?true:i;var c=e.map((function(e){if(typeof e===\"object\"){return new RegExp(\"^(?:\".concat(e.pattern,\")$\"),r)}}));return function(n){var r=\"\";for(var t=0;t<e.length;t++){var i=e[t];if(typeof i===\"string\"){r+=i;continue}var f=n?n[i.name]:undefined;var u=i.modifier===\"?\"||i.modifier===\"*\";var p=i.modifier===\"*\"||i.modifier===\"+\";if(Array.isArray(f)){if(!p){throw new TypeError('Expected \"'.concat(i.name,'\" to not repeat, but got an array'))}if(f.length===0){if(u)continue;throw new TypeError('Expected \"'.concat(i.name,'\" to not be empty'))}for(var v=0;v<f.length;v++){var s=a(f[v],i);if(o&&!c[t].test(s)){throw new TypeError('Expected all \"'.concat(i.name,'\" to match \"').concat(i.pattern,'\", but got \"').concat(s,'\"'))}r+=i.prefix+s+i.suffix}continue}if(typeof f===\"string\"||typeof f===\"number\"){var s=a(String(f),i);if(o&&!c[t].test(s)){throw new TypeError('Expected \"'.concat(i.name,'\" to match \"').concat(i.pattern,'\", but got \"').concat(s,'\"'))}r+=i.prefix+s+i.suffix;continue}if(u)continue;var d=p?\"an array\":\"a string\";throw new TypeError('Expected \"'.concat(i.name,'\" to be ').concat(d))}return r}}n.tokensToFunction=tokensToFunction;function match(e,n){var r=[];var t=pathToRegexp(e,r,n);return regexpToFunction(t,r,n)}Line truncated
{"offset": {"line": 5719, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/process/browser.js"],"sourcesContent":["(function(){var e={156:function(e){var t=e.exports={};var r;var n;function defaultSetTimout(){throw new Error(\"setTimeout has not been defined\")}function defaultClearTimeout(){throw new Error(\"clearTimeout has not been defined\")}(function(){try{if(typeof setTimeout===\"function\"){r=setTimeout}else{r=defaultSetTimout}}catch(e){r=defaultSetTimout}try{if(typeof clearTimeout===\"function\"){n=clearTimeout}else{n=defaultClearTimeout}}catch(e){n=defaultClearTimeout}})();function runTimeout(e){if(r===setTimeout){return setTimeout(e,0)}if((r===defaultSetTimout||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function runClearTimeout(e){if(n===clearTimeout){return clearTimeout(e)}if((n===defaultClearTimeout||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var i=[];var o=false;var u;var a=-1;function cleanUpNextTick(){if(!o||!u){return}o=false;if(u.length){i=u.concat(i)}else{a=-1}if(i.length){drainQueue()}}function drainQueue(){if(o){return}var e=runTimeout(cleanUpNextTick);o=true;var t=i.length;while(t){u=i;i=[];while(++a<t){if(u){u[a].run()}}a=-1;t=i.length}u=null;o=false;runClearTimeout(e)}t.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}i.push(new Item(e,t));if(i.length===1&&!o){runTimeout(drainQueue)}};function Item(e,t){this.fun=e;this.array=t}Item.prototype.run=function(){this.fun.apply(null,this.array)};t.title=\"browser\";t.browser=true;t.env={};t.argv=[];t.version=\"\";t.versions={};function noop(){}t.on=noop;t.addListener=noop;t.once=noop;t.off=noop;t.removeListener=noop;t.removeAllListeners=noop;t.emit=noop;t.prependListener=noop;t.prependOnceListener=noop;t.listeners=function(e){return[]};t.binding=function(e){throw new Error(\"process.binding is not supported\")};t.cwd=function(){return\"/\"};t.chdir=function(e){throw new Error(\"process.chdir is not supported\")};t.umask=function(){return 0}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var r=__nccwpck_require__(156);module.exports=r})();"],"names":["e","t","exports","r","n","defaultSetTimout","Error","defaultClearTimeout","setTimeout","clearTimeout","runTimeout","call","runClearTimeout","i","o","u","a","cleanUpNextTick","length","concat","drainQueue","run","nextTick","Array","arguments","push","Item","fun","array","prototype","apply","title","browser","env","argv","version","versions","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","umask","__nccwpck_require__","undefined","ab","module"],"mappings":"AAAA,CAAC;IAAW,IAAIA,IAAE;QAAC,KAAI,SAASA,CAAC;YAAE,IAAIC,IAAED,EAAEE,OAAO,GAAC,CAAC;YAAE,IAAIC;YAAE,IAAIC;YAAE,SAASC;gBAAmB,MAAM,IAAIC,MAAM;YAAkC;YAAC,SAASC;gBAAsB,MAAM,IAAID,MAAM;YAAoC;YAAC,CAAC;gBAAW,IAAG;oBAAC,IAAG,OAAOE,eAAa,YAAW;wBAACL,IAAEK;oBAAU,OAAK;wBAACL,IAAEE;oBAAgB;gBAAC,EAAC,OAAML,GAAE;oBAACG,IAAEE;gBAAgB;gBAAC,IAAG;oBAAC,IAAG,OAAOI,iBAAe,YAAW;wBAACL,IAAEK;oBAAY,OAAK;wBAACL,IAAEG;oBAAmB;gBAAC,EAAC,OAAMP,GAAE;oBAACI,IAAEG;gBAAmB;YAAC,CAAC;YAAI,SAASG,WAAWV,CAAC;gBAAE,IAAGG,MAAIK,YAAW;oBAAC,OAAOA,WAAWR,GAAE;gBAAE;gBAAC,IAAG,CAACG,MAAIE,oBAAkB,CAACF,CAAC,KAAGK,YAAW;oBAACL,IAAEK;oBAAW,OAAOA,WAAWR,GAAE;gBAAE;gBAAC,IAAG;oBAAC,OAAOG,EAAEH,GAAE;gBAAE,EAAC,OAAMC,GAAE;oBAAC,IAAG;wBAAC,OAAOE,EAAEQ,IAAI,CAAC,MAAKX,GAAE;oBAAE,EAAC,OAAMC,GAAE;wBAAC,OAAOE,EAAEQ,IAAI,CAAC,IAAI,EAACX,GAAE;oBAAE;gBAAC;YAAC;YAAC,SAASY,gBAAgBZ,CAAC;gBAAE,IAAGI,MAAIK,cAAa;oBAAC,OAAOA,aAAaT;gBAAE;gBAAC,IAAG,CAACI,MAAIG,uBAAqB,CAACH,CAAC,KAAGK,cAAa;oBAACL,IAAEK;oBAAa,OAAOA,aAAaT;gBAAE;gBAAC,IAAG;oBAAC,OAAOI,EAAEJ;gBAAE,EAAC,OAAMC,GAAE;oBAAC,IAAG;wBAAC,OAAOG,EAAEO,IAAI,CAAC,MAAKX;oBAAE,EAAC,OAAMC,GAAE;wBAAC,OAAOG,EAAEO,IAAI,CAAC,IAAI,EAACX;oBAAE;gBAAC;YAAC;YAAC,IAAIa,IAAE,EAAE;YAAC,IAAIC,IAAE;YAAM,IAAIC;YAAE,IAAIC,IAAE,CAAC;YAAE,SAASC;gBAAkB,IAAG,CAACH,KAAG,CAACC,GAAE;oBAAC;gBAAM;gBAACD,IAAE;gBAAM,IAAGC,EAAEG,MAAM,EAAC;oBAACL,IAAEE,EAAEI,MAAM,CAACN;gBAAE,OAAK;oBAACG,IAAE,CAAC;gBAAC;gBAAC,IAAGH,EAAEK,MAAM,EAAC;oBAACE;gBAAY;YAAC;YAAC,SAASA;gBAAa,IAAGN,GAAE;oBAAC;gBAAM;gBAAC,IAAId,IAAEU,WAAWO;gBAAiBH,IAAE;gBAAK,IAAIb,IAAEY,EAAEK,MAAM;gBAAC,MAAMjB,EAAE;oBAACc,IAAEF;oBAAEA,IAAE,EAAE;oBAAC,MAAM,EAAEG,IAAEf,EAAE;wBAAC,IAAGc,GAAE;4BAACA,CAAC,CAACC,EAAE,CAACK,GAAG;wBAAE;oBAAC;oBAACL,IAAE,CAAC;oBAAEf,IAAEY,EAAEK,MAAM;gBAAA;gBAACH,IAAE;gBAAKD,IAAE;gBAAMF,gBAAgBZ;YAAE;YAACC,Line truncated
{"offset": {"line": 5905, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js"],"sourcesContent":["/**\n * @license React\n * react-is.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 typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var 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_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n type === REACT_VIEW_TRANSITION_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === RELine truncated
{"offset": {"line": 6005, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-is/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 6016, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its 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\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\n\nvar PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.\n// It's OK to reference families, but use WeakMap/Set for types.\n\nvar allFamiliesByID = new Map();\nvar allFamiliesByType = new PossiblyWeakMap();\nvar allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families\n// that have actually been edited here. This keeps checks fast.\n// $FlowIssue\n\nvar updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.\n// It is an array of [Family, NextType] tuples.\n\nvar pendingUpdates = []; // This is injected by the renderer via DevTools global hook.\n\nvar helpersByRendererID = new Map();\nvar helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.\n\nvar mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.\n\nvar failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.\n// It needs to be weak because we do this even for roots that failed to mount.\n// If there is no WeakMap, we won't attempt to do retrying.\n// $FlowIssue\n\nvar rootElements = // $FlowIssue\ntypeof WeakMap === 'function' ? new WeakMap() : null;\nvar isPerformingRefresh = false;\n\nfunction computeFullKey(signature) {\n if (signature.fullKey !== null) {\n return signature.fullKey;\n }\n\n var fullKey = signature.ownKey;\n var hooks;\n\n try {\n hooks = signature.getCustomHooks();\n } catch (err) {\n // This can happen in an edge case, e.g. if expression like Foo.useSomething\n // depends on Foo which is lazily initialized during rendering.\n // In that case just assume we'll have to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n\n if (typeof hook !== 'function') {\n // Something's wrong. Assume we need to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n var nestedHookSignature = allSignaturesByType.get(hook);\n\n if (nestedHookSignature === undefined) {\n // No signature means Hook wasn't in the source code, e.g. in a library.\n // We'll skip it because we can assume it won't change during this session.\n continue;\n }\n\n var nestedHookKey = computeFullKey(nestedHookSignature);\n\n if (nestedHookSignature.forceReset) {\n signature.forceReset = true;\n }\n\n fullKey += '\\n---\\n' + nestedHookKey;\n }\n\n signature.fullKey = fullKey;\n return fullKey;\n}\n\nfunction haveEqualSignatures(prevType, nextType) {\n var prevSignature = allSignaturesByType.get(prevType);\n var nextSignature = allSignaturesByType.get(nextType);\n\n if (prevSignature === undefined && nextSignature === undefined) {\n return true;\n }\n\n if (prevSignature === undefined || nextSignature === undefined) {\n return false;\n }\n\n if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {\n return false;\n }\n\n if (nextSignature.forceReset) {\n return false;\n }\n\n return true;\n}\n\nfunction isReactClass(type) {\n return type.prototype && type.prototype.isReactComponent;\n}\n\nfunction canPreserveStateBetween(prevType, nextType) {\n if (isReactClass(prevType) || isReactClass(nextType)) {\n return false;\n }\n\n if (haveEqualSignatures(prevType, nextType)) {\n return true;\n }\n\n return false;\n}\n\nfunction resolveFamily(type) {\n // Only check updated types to keep lookups fast.\n return updatedFamiliesByType.get(type);\n} // If we didn't care about IE11, we could use new Map/Set(iterable).\n\n\nfunction cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n}\n\nfunction cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n} // This is a safety mechanism to protect against rogue getters and Proxies.\n\n\nfunction getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {\n // Intentionally ignore.\n retuLine truncated
{"offset": {"line": 6561, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-refresh/runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-refresh-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-refresh-runtime.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 6571, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/safe-stable-stringify/index.js"],"sourcesContent":["(function(){\"use strict\";var e={450:function(e,t){const{hasOwnProperty:n}=Object.prototype;const r=configure();r.configure=configure;r.stringify=r;r.default=r;t.stringify=r;t.configure=configure;e.exports=r;const i=/[\\u0000-\\u001f\\u0022\\u005c\\ud800-\\udfff]/;function strEscape(e){if(e.length<5e3&&!i.test(e)){return`\"${e}\"`}return JSON.stringify(e)}function sort(e,t){if(e.length>200||t){return e.sort(t)}for(let t=1;t<e.length;t++){const n=e[t];let r=t;while(r!==0&&e[r-1]>n){e[r]=e[r-1];r--}e[r]=n}return e}const f=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function isTypedArrayWithEntries(e){return f.call(e)!==undefined&&e.length!==0}function stringifyTypedArray(e,t,n){if(e.length<n){n=e.length}const r=t===\",\"?\"\":\" \";let i=`\"0\":${r}${e[0]}`;for(let f=1;f<n;f++){i+=`${t}\"${f}\":${r}${e[f]}`}return i}function getCircularValueOption(e){if(n.call(e,\"circularValue\")){const t=e.circularValue;if(typeof t===\"string\"){return`\"${t}\"`}if(t==null){return t}if(t===Error||t===TypeError){return{toString(){throw new TypeError(\"Converting circular structure to JSON\")}}}throw new TypeError('The \"circularValue\" argument must be of type string or the value null or undefined')}return'\"[Circular]\"'}function getDeterministicOption(e){let t;if(n.call(e,\"deterministic\")){t=e.deterministic;if(typeof t!==\"boolean\"&&typeof t!==\"function\"){throw new TypeError('The \"deterministic\" argument must be of type boolean or comparator function')}}return t===undefined?true:t}function getBooleanOption(e,t){let r;if(n.call(e,t)){r=e[t];if(typeof r!==\"boolean\"){throw new TypeError(`The \"${t}\" argument must be of type boolean`)}}return r===undefined?true:r}function getPositiveIntegerOption(e,t){let r;if(n.call(e,t)){r=e[t];if(typeof r!==\"number\"){throw new TypeError(`The \"${t}\" argument must be of type number`)}if(!Number.isInteger(r)){throw new TypeError(`The \"${t}\" argument must be an integer`)}if(r<1){throw new RangeError(`The \"${t}\" argument must be >= 1`)}}return r===undefined?Infinity:r}function getItemCount(e){if(e===1){return\"1 item\"}return`${e} items`}function getUniqueReplacerSet(e){const t=new Set;for(const n of e){if(typeof n===\"string\"||typeof n===\"number\"){t.add(String(n))}}return t}function getStrictOption(e){if(n.call(e,\"strict\")){const t=e.strict;if(typeof t!==\"boolean\"){throw new TypeError('The \"strict\" argument must be of type boolean')}if(t){return e=>{let t=`Object can not safely be stringified. Received type ${typeof e}`;if(typeof e!==\"function\")t+=` (${e.toString()})`;throw new Error(t)}}}}function configure(e){e={...e};const t=getStrictOption(e);if(t){if(e.bigint===undefined){e.bigint=false}if(!(\"circularValue\"in e)){e.circularValue=Error}}const n=getCircularValueOption(e);const r=getBooleanOption(e,\"bigint\");const i=getDeterministicOption(e);const f=typeof i===\"function\"?i:undefined;const u=getPositiveIntegerOption(e,\"maximumDepth\");const o=getPositiveIntegerOption(e,\"maximumBreadth\");function stringifyFnReplacer(e,s,l,c,a,g){let p=s[e];if(typeof p===\"object\"&&p!==null&&typeof p.toJSON===\"function\"){p=p.toJSON(e)}p=c.call(s,e,p);switch(typeof p){case\"string\":return strEscape(p);case\"object\":{if(p===null){return\"null\"}if(l.indexOf(p)!==-1){return n}let e=\"\";let t=\",\";const r=g;if(Array.isArray(p)){if(p.length===0){return\"[]\"}if(u<l.length+1){return'\"[Array]\"'}l.push(p);if(a!==\"\"){g+=a;e+=`\\n${g}`;t=`,\\n${g}`}const n=Math.min(p.length,o);let i=0;for(;i<n-1;i++){const n=stringifyFnReplacer(String(i),p,l,c,a,g);e+=n!==undefined?n:\"null\";e+=t}const f=stringifyFnReplacer(String(i),p,l,c,a,g);e+=f!==undefined?f:\"null\";if(p.length-1>o){const n=p.length-o-1;e+=`${t}\"... ${getItemCount(n)} not stringified\"`}if(a!==\"\"){e+=`\\n${r}`}l.pop();return`[${e}]`}let s=Object.keys(p);const y=s.length;if(y===0){return\"{}\"}if(u<l.length+1){return'\"[Object]\"'}let d=\"\";let h=\"\";if(a!==\"\"){g+=a;t=`,\\n${g}`;d=\" \"}const $=Math.min(y,o);if(i&&!isTypedArrayWithEntries(p)){s=sort(s,f)}l.push(p);for(let n=0;n<$;n++){const r=s[n];const i=stringifyFnReplacer(r,p,l,c,a,g);if(i!==undefined){e+=`${h}${strEscape(r)}:${d}${i}`;h=t}}if(y>o){const n=y-o;e+=`${h}\"...\":${d}\"${getItemCount(n)} not stringified\"`;h=t}if(a!==\"\"&&h.length>1){e=`\\n${g}${e}\\n${r}`}l.pop();return`{${e}}`}case\"number\":return isFinite(p)?String(p):t?t(p):\"null\";case\"boolean\":return p===true?\"true\":\"false\";case\"undefined\":return undefined;case\"bigint\":if(r){return String(p)}default:return t?t(p):undefined}}function stringifyArrayReplacer(e,i,f,s,l,c){if(typeof i===\"object\"&&i!==null&&typeof i.toJSON===\"function\"){i=i.toJSON(e)}switch(typeof i){case\"string\":return strEscape(i);case\"objeLine truncated
{"offset": {"line": 7170, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js"],"sourcesContent":["(()=>{\"use strict\";if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var e={};(()=>{var r=e;Object.defineProperty(r,\"__esModule\",{value:true});var n=\"<unknown>\";function parse(e){var r=e.split(\"\\n\");return r.reduce((function(e,r){var n=parseChrome(r)||parseWinjs(r)||parseGecko(r)||parseNode(r)||parseJSC(r);if(n){e.push(n)}return e}),[])}var a=/^\\s*at (.*?) ?\\(((?:file|https?|blob|chrome-extension|native|eval|webpack|webpack-internal|rsc|about|turbopack|<anonymous>|\\/|[a-z]:\\\\|\\\\\\\\).*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;var u=/\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;function parseChrome(e){var r=a.exec(e);if(!r){return null}var l=r[2]&&r[2].indexOf(\"native\")===0;var t=r[2]&&r[2].indexOf(\"eval\")===0;var i=u.exec(r[2]);if(t&&i!=null){r[2]=i[1];r[3]=i[2];r[4]=i[3]}return{file:!l?r[2]:null,methodName:r[1]||n,arguments:l?[r[2]]:[],lineNumber:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}var l=/^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:file|ms-appx|https?|webpack|webpack-internal|rsc|about|turbopack|blob):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;function parseWinjs(e){var r=l.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}var t=/^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)((?:file|https?|blob|chrome|webpack|webpack-internal|rsc|about|turbopack|resource|\\[native).*?|[^@]*bundle)(?::(\\d+))?(?::(\\d+))?\\s*$/i;var i=/(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;function parseGecko(e){var r=t.exec(e);if(!r){return null}var a=r[3]&&r[3].indexOf(\" > eval\")>-1;var u=i.exec(r[3]);if(a&&u!=null){r[3]=u[1];r[4]=u[2];r[5]=null}return{file:r[3],methodName:r[1]||n,arguments:r[2]?r[2].split(\",\"):[],lineNumber:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}var o=/^\\s*(?:([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i;function parseJSC(e){var r=o.exec(e);if(!r){return null}return{file:r[3],methodName:r[1]||n,arguments:[],lineNumber:+r[4],column:r[5]?+r[5]:null}}var s=/^\\s*at (?:((?:\\[object object\\])?[^\\\\/]+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;function parseNode(e){var r=s.exec(e);if(!r){return null}return{file:r[2],methodName:r[1]||n,arguments:[],lineNumber:+r[3],column:r[4]?+r[4]:null}}r.parse=parse})();module.exports=e})();"],"names":["__nccwpck_require__","ab","e","r","Object","defineProperty","value","n","parse","split","reduce","parseChrome","parseWinjs","parseGecko","parseNode","parseJSC","push","a","u","exec","l","indexOf","t","i","file","methodName","arguments","lineNumber","column","o","s","module","exports"],"mappings":"AAAA,CAAC;IAAK;IAAa,IAAG,OAAOA,wBAAsB,aAAYA,oBAAoBC,EAAE,GAAC,8FAAU;IAAI,IAAIC,IAAE,CAAC;IAAE,CAAC;QAAK,IAAIC,IAAED;QAAEE,OAAOC,cAAc,CAACF,GAAE,cAAa;YAACG,OAAM;QAAI;QAAG,IAAIC,IAAE;QAAY,SAASC,MAAMN,CAAC;YAAE,IAAIC,IAAED,EAAEO,KAAK,CAAC;YAAM,OAAON,EAAEO,MAAM,CAAE,SAASR,CAAC,EAACC,CAAC;gBAAE,IAAII,IAAEI,YAAYR,MAAIS,WAAWT,MAAIU,WAAWV,MAAIW,UAAUX,MAAIY,SAASZ;gBAAG,IAAGI,GAAE;oBAACL,EAAEc,IAAI,CAACT;gBAAE;gBAAC,OAAOL;YAAC,GAAG,EAAE;QAAC;QAAC,IAAIe,IAAE;QAAiL,IAAIC,IAAE;QAAgC,SAASP,YAAYT,CAAC;YAAE,IAAIC,IAAEc,EAAEE,IAAI,CAACjB;YAAG,IAAG,CAACC,GAAE;gBAAC,OAAO;YAAI;YAAC,IAAIiB,IAAEjB,CAAC,CAAC,EAAE,IAAEA,CAAC,CAAC,EAAE,CAACkB,OAAO,CAAC,cAAY;YAAE,IAAIC,IAAEnB,CAAC,CAAC,EAAE,IAAEA,CAAC,CAAC,EAAE,CAACkB,OAAO,CAAC,YAAU;YAAE,IAAIE,IAAEL,EAAEC,IAAI,CAAChB,CAAC,CAAC,EAAE;YAAE,IAAGmB,KAAGC,KAAG,MAAK;gBAACpB,CAAC,CAAC,EAAE,GAACoB,CAAC,CAAC,EAAE;gBAACpB,CAAC,CAAC,EAAE,GAACoB,CAAC,CAAC,EAAE;gBAACpB,CAAC,CAAC,EAAE,GAACoB,CAAC,CAAC,EAAE;YAAA;YAAC,OAAM;gBAACC,MAAK,CAACJ,IAAEjB,CAAC,CAAC,EAAE,GAAC;gBAAKsB,YAAWtB,CAAC,CAAC,EAAE,IAAEI;gBAAEmB,WAAUN,IAAE;oBAACjB,CAAC,CAAC,EAAE;iBAAC,GAAC,EAAE;gBAACwB,YAAWxB,CAAC,CAAC,EAAE,GAAC,CAACA,CAAC,CAAC,EAAE,GAAC;gBAAKyB,QAAOzB,CAAC,CAAC,EAAE,GAAC,CAACA,CAAC,CAAC,EAAE,GAAC;YAAI;QAAC;QAAC,IAAIiB,IAAE;QAAqJ,SAASR,WAAWV,CAAC;YAAE,IAAIC,IAAEiB,EAAED,IAAI,CAACjB;YAAG,IAAG,CAACC,GAAE;gBAAC,OAAO;YAAI;YAAC,OAAM;gBAACqB,MAAKrB,CAAC,CAAC,EAAE;gBAACsB,YAAWtB,CAAC,CAAC,EAAE,IAAEI;gBAAEmB,WAAU,EAAE;gBAACC,YAAW,CAACxB,CAAC,CAAC,EAAE;gBAACyB,QAAOzB,CAAC,CAAC,EAAE,GAAC,CAACA,CAAC,CAAC,EAAE,GAAC;YAAI;QAAC;QAAC,IAAImB,IAAE;QAAuK,IAAIC,IAAE;QAAgD,SAASV,WAAWX,CAAC;YAAE,IAAIC,IAAEmB,EAAEH,IAAI,CAACjB;YAAG,IAAG,CAACC,GAAE;gBAAC,OAAO;YAAI;YAAC,IAAIc,IAAEd,CAAC,CAAC,EAAE,IAAEA,CAAC,CAAC,EAAE,CAACkB,OAAO,CAAC,aAAW,CAAC;YAAE,IAAIH,IAAEK,EAAEJ,IAAI,CAAChB,CAAC,CAAC,EAAE;YAAE,IAAGc,KAAGC,KAAG,MAAK;gBAACf,CAAC,CAAC,EAAE,GAACe,CAAC,CAAC,EAAE;gBAACf,CAAC,CAAC,EAAE,GAACe,CAAC,CAAC,EAAE;gBAACf,CAAC,CAAC,EAAE,GAAC;YAAI;YAAC,OAAM;gBAACqB,MAAKrB,CAAC,CAAC,EAAE;gBAACsB,YAAWtB,CAAC,CAAC,EAAE,IAAEI;gBAAEmB,WAAUvB,CAAC,CAAC,EAAE,GAACA,CAAC,CAAC,EAAE,CAACM,KAAK,CAAC,OAAK,EAAE;gBAACkB,YAAWxB,CAAC,CAAC,EAAE,GAAC,CAACA,CAAC,CAAC,EAAE,GAAC;gBAAKyB,QAAOzB,CAAC,CAAC,EAAE,GLine truncated
{"offset": {"line": 7286, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/strip-ansi/index.js"],"sourcesContent":["(()=>{\"use strict\";var e={371:e=>{e.exports=({onlyFirst:e=false}={})=>{const r=[\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");return new RegExp(r,e?undefined:\"g\")}},173:(e,r,_)=>{const t=_(371);e.exports=e=>typeof e===\"string\"?e.replace(t(),\"\"):e}};var r={};function __nccwpck_require__(_){var t=r[_];if(t!==undefined){return t.exports}var a=r[_]={exports:{}};var n=true;try{e[_](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[_]}return a.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var _=__nccwpck_require__(173);module.exports=_})();"],"names":["e","exports","onlyFirst","r","join","RegExp","undefined","_","t","replace","__nccwpck_require__","a","n","ab","module"],"mappings":"AAAA,CAAC;IAAK;IAAa,IAAIA,IAAE;QAAC,KAAIA,CAAAA;YAAIA,EAAEC,OAAO,GAAC,CAAC,EAACC,WAAUF,IAAE,KAAK,EAAC,GAAC,CAAC,CAAC;gBAAI,MAAMG,IAAE;oBAAC;oBAA+H;iBAA2D,CAACC,IAAI,CAAC;gBAAK,OAAO,IAAIC,OAAOF,GAAEH,IAAEM,YAAU;YAAI;QAAC;QAAE,KAAI,CAACN,GAAEG,GAAEI;YAAK,MAAMC,IAAED,EAAE;YAAKP,EAAEC,OAAO,GAACD,CAAAA,IAAG,OAAOA,MAAI,WAASA,EAAES,OAAO,CAACD,KAAI,MAAIR;QAAC;IAAC;IAAE,IAAIG,IAAE,CAAC;IAAE,SAASO,oBAAoBH,CAAC;QAAE,IAAIC,IAAEL,CAAC,CAACI,EAAE;QAAC,IAAGC,MAAIF,WAAU;YAAC,OAAOE,EAAEP,OAAO;QAAA;QAAC,IAAIU,IAAER,CAAC,CAACI,EAAE,GAAC;YAACN,SAAQ,CAAC;QAAC;QAAE,IAAIW,IAAE;QAAK,IAAG;YAACZ,CAAC,CAACO,EAAE,CAACI,GAAEA,EAAEV,OAAO,EAACS;YAAqBE,IAAE;QAAK,SAAQ;YAAC,IAAGA,GAAE,OAAOT,CAAC,CAACI,EAAE;QAAA;QAAC,OAAOI,EAAEV,OAAO;IAAA;IAAC,IAAG,OAAOS,wBAAsB,aAAYA,oBAAoBG,EAAE,GAAC,uFAAU;IAAI,IAAIN,IAAEG,oBAAoB;IAAKI,OAAOb,OAAO,GAACM;AAAC,CAAC","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,18 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/internal/helpers.js","sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/@next/react-refresh-utils/internal/helpers.ts"],"sourcesContent":["unable to read source [project]/node_modules/next/dist/compiled/@next/react-refresh-utils/internal/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;;AAEH,+EAA+E;AAC/E,2BAA2B;AAC3B,EAAE;AACF,8HAA8H;AAE9H,MAAA,YAAA,kDAAkD;AAsBlD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,AACL,GAAG,KAAK,YAAY,IACpB,GAAG,KAAK,SAAS,IACjB,GAAG,KAAK,SAAS,IACjB,qEAAqE;IACrE,GAAG,KAAK,QAAQ,CACjB,CAAA;AACH,CAAC;AAED,SAAS,8BAA8B,CACrC,aAAsB,EACtB,QAAgB;IAEhB,UAAA,OAAc,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAA;IAC/D,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,+CAA+C;QAC/C,OAAM;IACR,CAAC;IACD,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YAEP,SAAQ;QACV,CAAC;QACD,IAAI,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,GAAG,CAAA;QAC3C,UAAA,OAAc,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;IAC9C,CAAC;AACH,CAAC;AAED,SAAS,2BAA2B,CAAC,aAAsB;IACzD,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,SAAS,CAAC,IAAI,CAAC,UAAA,OAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC,CAAA;IAC7D,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,+CAA+C;QAC/C,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YAEP,SAAQ;QACV,CAAC;QACD,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACnB,SAAS,CAAC,IAAI,CAAC,UAAA,OAAc,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAA;IAC7D,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED,SAAS,sBAAsB,CAAC,aAAsB;IACpD,IAAI,UAAA,OAAc,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,CAAC;QACxD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QAC/D,yCAAyC;QACzC,OAAO,KAAK,CAAA;IACd,CAAC;IACD,IAAI,UAAU,GAAG,KAAK,CAAA;IACtB,IAAI,uBAAuB,GAAG,IAAI,CAAA;IAClC,IAAK,IAAI,GAAG,IAAI,aAAa,CAAE,CAAC;QAC9B,UAAU,GAAG,IAAI,CAAA;QACjB,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,SAAQ;QACV,CAAC;QACD,IAAI,CAAC;YACH,IAAI,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;QACtC,CAAC,CAAC,OAAA,IAAM,CAAC;YACP,+CAA+C;YAC/C,OAAO,KAAK,CAAA;QACd,CAAC;QACD,IAAI,CAAC,UAAA,OAAc,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,CAAC;YACvD,uBAAuB,GAAG,KAAK,CAAA;QACjC,CAAC;IACH,CAAC;IACD,OAAO,UAAU,IAAI,uBAAuB,CAAA;AAC9C,CAAC;AAED,SAAS,oCAAoC,CAC3C,aAAwB,EACxB,aAAwB;IAExB,IAAI,aAAa,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE,CAAC;QAClD,OAAO,IAAI,CAAA;IACb,CAAC;IACD,IAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,CAAE,CAAC;QAC9C,IAAI,aAAa,CAAC,CAAC,CAAC,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC;AAED,IAAI,iBAAiB,GAAY,KAAK,CAAA;AACtC,2FAA2F;AAC3F,SAAS,cAAc;IACrB,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAM;IACR,CAAC;IACD,iBAAiB,GAAG,IAAI,CAAA;IAExB,SAAS,cAAc,CAAC,MAAuB;QAC7C,OAAO,MAAM,KAAK,MAAM,CAAA;IAC1B,CAAC;IAED,SAAS,WAAW;QAClB,iBAAiB,GAAG,KAAK,CAAA;QACzB,IAAI,CAAC;YACH,UAAA,OAAc,CAAC,mBAAmB,EAAE,CAAA;QACtC,CAAC,CAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CACV,+EAA+E,GAC7E,GAAG,CACN,CAAA;QACH,CAAC;IACH,CAAC;IAED,IAAI,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;QACxC,iCAAiC;QACjC,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE;YAC1B,WAAW,EAAE,CAAA;QACf,CAAC,CAAC,CAAA;QACF,OAAM;IACR,CAAC;IAED,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,EAAE;QAC/B,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,GAAG,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;YAC7C,WAAW,EAAE,CAAA;QACf,CAAC;IACH,CAAC,CAAA;IAED,sDAAsD;IACtD,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC;AAED,mCAAmC;AACnC,QAAA,OAAA,GAAe;IACb,8BAA8B,EAAE,8BAA8B;IAC9D,sBAAsB,EAAE,sBAAsB;IAC9C,oCAAoC,EAAE,oCAAoC;IAC1E,2BAA2B,EAAE,2BAA2B;IACxD,cAAc,EAAE,cAAc;CAC/B,CAAA"}},
{"offset": {"line": 169, "column": 0}, "map": {"version":3,"file":"turbopack:///[project]/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/runtime.js","sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/@next/react-refresh-utils/runtime.ts"],"sourcesContent":["unable to read source [project]/node_modules/next/dist/compiled/@next/react-refresh-utils/runtime.ts"],"names":[],"mappings":";;;;;;;;AAAA,MAAA,YAAA,kDAAkD;AAClD,MAAA,YAAA,+CAA+C;AAW/C,oCAAoC;AACpC,UAAA,OAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAEzC,0BAA0B;AAC1B,IAAI,CAAC,gBAAgB,GAAG,UAAA,OAAc,CAAA;AAEtC,sDAAsD;AACtD,IAAI,CAAC,iCAAiC,GAAG,SAAU,eAAe;IAChE,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IACtC,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IAEtC,IAAI,CAAC,YAAY,GAAG,SAAU,IAAI,EAAE,EAAE;QACpC,UAAA,OAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,EAAE,CAAC,CAAA;IAC3D,CAAC,CAAA;IACD,IAAI,CAAC,YAAY,GAAG,UAAA,OAAc,CAAC,mCAAmC,CAAA;IAEtE,6CAA6C;IAC7C,kFAAkF;IAClF,OAAO;QACL,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;IACpC,CAAC,CAAA;AACH,CAAC,CAAA"}},
{"offset": {"line": 201, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/process/browser.js"],"sourcesContent":["(function(){var e={156:function(e){var t=e.exports={};var r;var n;function defaultSetTimout(){throw new Error(\"setTimeout has not been defined\")}function defaultClearTimeout(){throw new Error(\"clearTimeout has not been defined\")}(function(){try{if(typeof setTimeout===\"function\"){r=setTimeout}else{r=defaultSetTimout}}catch(e){r=defaultSetTimout}try{if(typeof clearTimeout===\"function\"){n=clearTimeout}else{n=defaultClearTimeout}}catch(e){n=defaultClearTimeout}})();function runTimeout(e){if(r===setTimeout){return setTimeout(e,0)}if((r===defaultSetTimout||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function runClearTimeout(e){if(n===clearTimeout){return clearTimeout(e)}if((n===defaultClearTimeout||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var i=[];var o=false;var u;var a=-1;function cleanUpNextTick(){if(!o||!u){return}o=false;if(u.length){i=u.concat(i)}else{a=-1}if(i.length){drainQueue()}}function drainQueue(){if(o){return}var e=runTimeout(cleanUpNextTick);o=true;var t=i.length;while(t){u=i;i=[];while(++a<t){if(u){u[a].run()}}a=-1;t=i.length}u=null;o=false;runClearTimeout(e)}t.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1){for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}}i.push(new Item(e,t));if(i.length===1&&!o){runTimeout(drainQueue)}};function Item(e,t){this.fun=e;this.array=t}Item.prototype.run=function(){this.fun.apply(null,this.array)};t.title=\"browser\";t.browser=true;t.env={};t.argv=[];t.version=\"\";t.versions={};function noop(){}t.on=noop;t.addListener=noop;t.once=noop;t.off=noop;t.removeListener=noop;t.removeAllListeners=noop;t.emit=noop;t.prependListener=noop;t.prependOnceListener=noop;t.listeners=function(e){return[]};t.binding=function(e){throw new Error(\"process.binding is not supported\")};t.cwd=function(){return\"/\"};t.chdir=function(e){throw new Error(\"process.chdir is not supported\")};t.umask=function(){return 0}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var r=__nccwpck_require__(156);module.exports=r})();"],"names":["e","t","exports","r","n","defaultSetTimout","Error","defaultClearTimeout","setTimeout","clearTimeout","runTimeout","call","runClearTimeout","i","o","u","a","cleanUpNextTick","length","concat","drainQueue","run","nextTick","Array","arguments","push","Item","fun","array","prototype","apply","title","browser","env","argv","version","versions","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","umask","__nccwpck_require__","undefined","ab","module"],"mappings":"AAAA,CAAC;IAAW,IAAIA,IAAE;QAAC,KAAI,SAASA,CAAC;YAAE,IAAIC,IAAED,EAAEE,OAAO,GAAC,CAAC;YAAE,IAAIC;YAAE,IAAIC;YAAE,SAASC;gBAAmB,MAAM,IAAIC,MAAM;YAAkC;YAAC,SAASC;gBAAsB,MAAM,IAAID,MAAM;YAAoC;YAAC,CAAC;gBAAW,IAAG;oBAAC,IAAG,OAAOE,eAAa,YAAW;wBAACL,IAAEK;oBAAU,OAAK;wBAACL,IAAEE;oBAAgB;gBAAC,EAAC,OAAML,GAAE;oBAACG,IAAEE;gBAAgB;gBAAC,IAAG;oBAAC,IAAG,OAAOI,iBAAe,YAAW;wBAACL,IAAEK;oBAAY,OAAK;wBAACL,IAAEG;oBAAmB;gBAAC,EAAC,OAAMP,GAAE;oBAACI,IAAEG;gBAAmB;YAAC,CAAC;YAAI,SAASG,WAAWV,CAAC;gBAAE,IAAGG,MAAIK,YAAW;oBAAC,OAAOA,WAAWR,GAAE;gBAAE;gBAAC,IAAG,CAACG,MAAIE,oBAAkB,CAACF,CAAC,KAAGK,YAAW;oBAACL,IAAEK;oBAAW,OAAOA,WAAWR,GAAE;gBAAE;gBAAC,IAAG;oBAAC,OAAOG,EAAEH,GAAE;gBAAE,EAAC,OAAMC,GAAE;oBAAC,IAAG;wBAAC,OAAOE,EAAEQ,IAAI,CAAC,MAAKX,GAAE;oBAAE,EAAC,OAAMC,GAAE;wBAAC,OAAOE,EAAEQ,IAAI,CAAC,IAAI,EAACX,GAAE;oBAAE;gBAAC;YAAC;YAAC,SAASY,gBAAgBZ,CAAC;gBAAE,IAAGI,MAAIK,cAAa;oBAAC,OAAOA,aAAaT;gBAAE;gBAAC,IAAG,CAACI,MAAIG,uBAAqB,CAACH,CAAC,KAAGK,cAAa;oBAACL,IAAEK;oBAAa,OAAOA,aAAaT;gBAAE;gBAAC,IAAG;oBAAC,OAAOI,EAAEJ;gBAAE,EAAC,OAAMC,GAAE;oBAAC,IAAG;wBAAC,OAAOG,EAAEO,IAAI,CAAC,MAAKX;oBAAE,EAAC,OAAMC,GAAE;wBAAC,OAAOG,EAAEO,IAAI,CAAC,IAAI,EAACX;oBAAE;gBAAC;YAAC;YAAC,IAAIa,IAAE,EAAE;YAAC,IAAIC,IAAE;YAAM,IAAIC;YAAE,IAAIC,IAAE,CAAC;YAAE,SAASC;gBAAkB,IAAG,CAACH,KAAG,CAACC,GAAE;oBAAC;gBAAM;gBAACD,IAAE;gBAAM,IAAGC,EAAEG,MAAM,EAAC;oBAACL,IAAEE,EAAEI,MAAM,CAACN;gBAAE,OAAK;oBAACG,IAAE,CAAC;gBAAC;gBAAC,IAAGH,EAAEK,MAAM,EAAC;oBAACE;gBAAY;YAAC;YAAC,SAASA;gBAAa,IAAGN,GAAE;oBAAC;gBAAM;gBAAC,IAAId,IAAEU,WAAWO;gBAAiBH,IAAE;gBAAK,IAAIb,IAAEY,EAAEK,MAAM;gBAAC,MAAMjB,EAAE;oBAACc,IAAEF;oBAAEA,IAAE,EAAE;oBAAC,MAAM,EAAEG,IAAEf,EAAE;wBAAC,IAAGc,GAAE;4BAACA,CAAC,CAACC,EAAE,CAACK,GAAG;wBAAE;oBAAC;oBAACL,IAAE,CAAC;oBAAEf,IAAEY,EAAEK,MAAM;gBAAA;gBAACH,IAAE;gBAAKD,IAAE;gBAAMF,gBAAgBZ;YAAE;YAACC,ELine truncated
{"offset": {"line": 387, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-refresh-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its 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\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\n\nvar PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; // We never remove these associations.\n// It's OK to reference families, but use WeakMap/Set for types.\n\nvar allFamiliesByID = new Map();\nvar allFamiliesByType = new PossiblyWeakMap();\nvar allSignaturesByType = new PossiblyWeakMap(); // This WeakMap is read by React, so we only put families\n// that have actually been edited here. This keeps checks fast.\n// $FlowIssue\n\nvar updatedFamiliesByType = new PossiblyWeakMap(); // This is cleared on every performReactRefresh() call.\n// It is an array of [Family, NextType] tuples.\n\nvar pendingUpdates = []; // This is injected by the renderer via DevTools global hook.\n\nvar helpersByRendererID = new Map();\nvar helpersByRoot = new Map(); // We keep track of mounted roots so we can schedule updates.\n\nvar mountedRoots = new Set(); // If a root captures an error, we remember it so we can retry on edit.\n\nvar failedRoots = new Set(); // In environments that support WeakMap, we also remember the last element for every root.\n// It needs to be weak because we do this even for roots that failed to mount.\n// If there is no WeakMap, we won't attempt to do retrying.\n// $FlowIssue\n\nvar rootElements = // $FlowIssue\ntypeof WeakMap === 'function' ? new WeakMap() : null;\nvar isPerformingRefresh = false;\n\nfunction computeFullKey(signature) {\n if (signature.fullKey !== null) {\n return signature.fullKey;\n }\n\n var fullKey = signature.ownKey;\n var hooks;\n\n try {\n hooks = signature.getCustomHooks();\n } catch (err) {\n // This can happen in an edge case, e.g. if expression like Foo.useSomething\n // depends on Foo which is lazily initialized during rendering.\n // In that case just assume we'll have to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n for (var i = 0; i < hooks.length; i++) {\n var hook = hooks[i];\n\n if (typeof hook !== 'function') {\n // Something's wrong. Assume we need to remount.\n signature.forceReset = true;\n signature.fullKey = fullKey;\n return fullKey;\n }\n\n var nestedHookSignature = allSignaturesByType.get(hook);\n\n if (nestedHookSignature === undefined) {\n // No signature means Hook wasn't in the source code, e.g. in a library.\n // We'll skip it because we can assume it won't change during this session.\n continue;\n }\n\n var nestedHookKey = computeFullKey(nestedHookSignature);\n\n if (nestedHookSignature.forceReset) {\n signature.forceReset = true;\n }\n\n fullKey += '\\n---\\n' + nestedHookKey;\n }\n\n signature.fullKey = fullKey;\n return fullKey;\n}\n\nfunction haveEqualSignatures(prevType, nextType) {\n var prevSignature = allSignaturesByType.get(prevType);\n var nextSignature = allSignaturesByType.get(nextType);\n\n if (prevSignature === undefined && nextSignature === undefined) {\n return true;\n }\n\n if (prevSignature === undefined || nextSignature === undefined) {\n return false;\n }\n\n if (computeFullKey(prevSignature) !== computeFullKey(nextSignature)) {\n return false;\n }\n\n if (nextSignature.forceReset) {\n return false;\n }\n\n return true;\n}\n\nfunction isReactClass(type) {\n return type.prototype && type.prototype.isReactComponent;\n}\n\nfunction canPreserveStateBetween(prevType, nextType) {\n if (isReactClass(prevType) || isReactClass(nextType)) {\n return false;\n }\n\n if (haveEqualSignatures(prevType, nextType)) {\n return true;\n }\n\n return false;\n}\n\nfunction resolveFamily(type) {\n // Only check updated types to keep lookups fast.\n return updatedFamiliesByType.get(type);\n} // If we didn't care about IE11, we could use new Map/Set(iterable).\n\n\nfunction cloneMap(map) {\n var clone = new Map();\n map.forEach(function (value, key) {\n clone.set(key, value);\n });\n return clone;\n}\n\nfunction cloneSet(set) {\n var clone = new Set();\n set.forEach(function (value) {\n clone.add(value);\n });\n return clone;\n} // This is a safety mechanism to protect against rogue getters and Proxies.\n\n\nfunction getProperty(object, property) {\n try {\n return object[property];\n } catch (err) {\n // Intentionally ignore.\n returLine truncated
{"offset": {"line": 932, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-refresh/runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-refresh-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-refresh-runtime.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 943, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.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 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 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 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 Line truncated
{"offset": {"line": 1169, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/cjs/react.development.js"],"sourcesContent":["/**\n * @license React\n * react.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 defineDeprecationWarning(methodName, info) {\n Object.defineProperty(Component.prototype, methodName, {\n get: function () {\n console.warn(\n \"%s(...) is deprecated in plain JavaScript React classes. %s\",\n info[0],\n info[1]\n );\n }\n });\n }\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 warnNoop(publicInstance, callerName) {\n publicInstance =\n ((publicInstance = publicInstance.constructor) &&\n (publicInstance.displayName || publicInstance.name)) ||\n \"ReactClass\";\n var warningKey = publicInstance + \".\" + callerName;\n didWarnStateUpdateForUnmountedComponent[warningKey] ||\n (console.error(\n \"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.\",\n callerName,\n publicInstance\n ),\n (didWarnStateUpdateForUnmountedComponent[warningKey] = !0));\n }\n function Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function ComponentDummy() {}\n function PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n }\n function noop() {}\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;\nLine truncated
{"offset": {"line": 1994, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 2005, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 2015, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/safe-stable-stringify/index.js"],"sourcesContent":["(function(){\"use strict\";var e={450:function(e,t){const{hasOwnProperty:n}=Object.prototype;const r=configure();r.configure=configure;r.stringify=r;r.default=r;t.stringify=r;t.configure=configure;e.exports=r;const i=/[\\u0000-\\u001f\\u0022\\u005c\\ud800-\\udfff]/;function strEscape(e){if(e.length<5e3&&!i.test(e)){return`\"${e}\"`}return JSON.stringify(e)}function sort(e,t){if(e.length>200||t){return e.sort(t)}for(let t=1;t<e.length;t++){const n=e[t];let r=t;while(r!==0&&e[r-1]>n){e[r]=e[r-1];r--}e[r]=n}return e}const f=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function isTypedArrayWithEntries(e){return f.call(e)!==undefined&&e.length!==0}function stringifyTypedArray(e,t,n){if(e.length<n){n=e.length}const r=t===\",\"?\"\":\" \";let i=`\"0\":${r}${e[0]}`;for(let f=1;f<n;f++){i+=`${t}\"${f}\":${r}${e[f]}`}return i}function getCircularValueOption(e){if(n.call(e,\"circularValue\")){const t=e.circularValue;if(typeof t===\"string\"){return`\"${t}\"`}if(t==null){return t}if(t===Error||t===TypeError){return{toString(){throw new TypeError(\"Converting circular structure to JSON\")}}}throw new TypeError('The \"circularValue\" argument must be of type string or the value null or undefined')}return'\"[Circular]\"'}function getDeterministicOption(e){let t;if(n.call(e,\"deterministic\")){t=e.deterministic;if(typeof t!==\"boolean\"&&typeof t!==\"function\"){throw new TypeError('The \"deterministic\" argument must be of type boolean or comparator function')}}return t===undefined?true:t}function getBooleanOption(e,t){let r;if(n.call(e,t)){r=e[t];if(typeof r!==\"boolean\"){throw new TypeError(`The \"${t}\" argument must be of type boolean`)}}return r===undefined?true:r}function getPositiveIntegerOption(e,t){let r;if(n.call(e,t)){r=e[t];if(typeof r!==\"number\"){throw new TypeError(`The \"${t}\" argument must be of type number`)}if(!Number.isInteger(r)){throw new TypeError(`The \"${t}\" argument must be an integer`)}if(r<1){throw new RangeError(`The \"${t}\" argument must be >= 1`)}}return r===undefined?Infinity:r}function getItemCount(e){if(e===1){return\"1 item\"}return`${e} items`}function getUniqueReplacerSet(e){const t=new Set;for(const n of e){if(typeof n===\"string\"||typeof n===\"number\"){t.add(String(n))}}return t}function getStrictOption(e){if(n.call(e,\"strict\")){const t=e.strict;if(typeof t!==\"boolean\"){throw new TypeError('The \"strict\" argument must be of type boolean')}if(t){return e=>{let t=`Object can not safely be stringified. Received type ${typeof e}`;if(typeof e!==\"function\")t+=` (${e.toString()})`;throw new Error(t)}}}}function configure(e){e={...e};const t=getStrictOption(e);if(t){if(e.bigint===undefined){e.bigint=false}if(!(\"circularValue\"in e)){e.circularValue=Error}}const n=getCircularValueOption(e);const r=getBooleanOption(e,\"bigint\");const i=getDeterministicOption(e);const f=typeof i===\"function\"?i:undefined;const u=getPositiveIntegerOption(e,\"maximumDepth\");const o=getPositiveIntegerOption(e,\"maximumBreadth\");function stringifyFnReplacer(e,s,l,c,a,g){let p=s[e];if(typeof p===\"object\"&&p!==null&&typeof p.toJSON===\"function\"){p=p.toJSON(e)}p=c.call(s,e,p);switch(typeof p){case\"string\":return strEscape(p);case\"object\":{if(p===null){return\"null\"}if(l.indexOf(p)!==-1){return n}let e=\"\";let t=\",\";const r=g;if(Array.isArray(p)){if(p.length===0){return\"[]\"}if(u<l.length+1){return'\"[Array]\"'}l.push(p);if(a!==\"\"){g+=a;e+=`\\n${g}`;t=`,\\n${g}`}const n=Math.min(p.length,o);let i=0;for(;i<n-1;i++){const n=stringifyFnReplacer(String(i),p,l,c,a,g);e+=n!==undefined?n:\"null\";e+=t}const f=stringifyFnReplacer(String(i),p,l,c,a,g);e+=f!==undefined?f:\"null\";if(p.length-1>o){const n=p.length-o-1;e+=`${t}\"... ${getItemCount(n)} not stringified\"`}if(a!==\"\"){e+=`\\n${r}`}l.pop();return`[${e}]`}let s=Object.keys(p);const y=s.length;if(y===0){return\"{}\"}if(u<l.length+1){return'\"[Object]\"'}let d=\"\";let h=\"\";if(a!==\"\"){g+=a;t=`,\\n${g}`;d=\" \"}const $=Math.min(y,o);if(i&&!isTypedArrayWithEntries(p)){s=sort(s,f)}l.push(p);for(let n=0;n<$;n++){const r=s[n];const i=stringifyFnReplacer(r,p,l,c,a,g);if(i!==undefined){e+=`${h}${strEscape(r)}:${d}${i}`;h=t}}if(y>o){const n=y-o;e+=`${h}\"...\":${d}\"${getItemCount(n)} not stringified\"`;h=t}if(a!==\"\"&&h.length>1){e=`\\n${g}${e}\\n${r}`}l.pop();return`{${e}}`}case\"number\":return isFinite(p)?String(p):t?t(p):\"null\";case\"boolean\":return p===true?\"true\":\"false\";case\"undefined\":return undefined;case\"bigint\":if(r){return String(p)}default:return t?t(p):undefined}}function stringifyArrayReplacer(e,i,f,s,l,c){if(typeof i===\"object\"&&i!==null&&typeof i.toJSON===\"function\"){i=i.toJSON(e)}switch(typeof i){case\"string\":return strEscape(i);case\"objeLine truncated
{"offset": {"line": 2615, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/scheduler/cjs/scheduler.development.js"],"sourcesContent":["/**\n * @license React\n * scheduler.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 performWorkUntilDeadline() {\n needsPaint = !1;\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime &&\n shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n }\n function push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node),\n (heap[index] = parent),\n (index = parentIndex);\n else break a;\n }\n }\n function peek(heap) {\n return 0 === heap.length ? null : heap[0];\n }\n function pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex);\n else break a;\n }\n }\n return first;\n }\n function compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n }\n function advanceTimers(currLine truncated
{"offset": {"line": 2863, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/scheduler/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 2873, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/strip-ansi/index.js"],"sourcesContent":["(()=>{\"use strict\";var e={371:e=>{e.exports=({onlyFirst:e=false}={})=>{const r=[\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");return new RegExp(r,e?undefined:\"g\")}},173:(e,r,_)=>{const t=_(371);e.exports=e=>typeof e===\"string\"?e.replace(t(),\"\"):e}};var r={};function __nccwpck_require__(_){var t=r[_];if(t!==undefined){return t.exports}var a=r[_]={exports:{}};var n=true;try{e[_](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete r[_]}return a.exports}if(typeof __nccwpck_require__!==\"undefined\")__nccwpck_require__.ab=__dirname+\"/\";var _=__nccwpck_require__(173);module.exports=_})();"],"names":["e","exports","onlyFirst","r","join","RegExp","undefined","_","t","replace","__nccwpck_require__","a","n","ab","module"],"mappings":"AAAA,CAAC;IAAK;IAAa,IAAIA,IAAE;QAAC,KAAIA,CAAAA;YAAIA,EAAEC,OAAO,GAAC,CAAC,EAACC,WAAUF,IAAE,KAAK,EAAC,GAAC,CAAC,CAAC;gBAAI,MAAMG,IAAE;oBAAC;oBAA+H;iBAA2D,CAACC,IAAI,CAAC;gBAAK,OAAO,IAAIC,OAAOF,GAAEH,IAAEM,YAAU;YAAI;QAAC;QAAE,KAAI,CAACN,GAAEG,GAAEI;YAAK,MAAMC,IAAED,EAAE;YAAKP,EAAEC,OAAO,GAACD,CAAAA,IAAG,OAAOA,MAAI,WAASA,EAAES,OAAO,CAACD,KAAI,MAAIR;QAAC;IAAC;IAAE,IAAIG,IAAE,CAAC;IAAE,SAASO,oBAAoBH,CAAC;QAAE,IAAIC,IAAEL,CAAC,CAACI,EAAE;QAAC,IAAGC,MAAIF,WAAU;YAAC,OAAOE,EAAEP,OAAO;QAAA;QAAC,IAAIU,IAAER,CAAC,CAACI,EAAE,GAAC;YAACN,SAAQ,CAAC;QAAC;QAAE,IAAIW,IAAE;QAAK,IAAG;YAACZ,CAAC,CAACO,EAAE,CAACI,GAAEA,EAAEV,OAAO,EAACS;YAAqBE,IAAE;QAAK,SAAQ;YAAC,IAAGA,GAAE,OAAOT,CAAC,CAACI,EAAE;QAAA;QAAC,OAAOI,EAAEV,OAAO;IAAA;IAAC,IAAG,OAAOS,wBAAsB,aAAYA,oBAAoBG,EAAE,GAAC,uFAAU;IAAI,IAAIN,IAAEG,oBAAoB;IAAKI,OAAOb,OAAO,GAACM;AAAC,CAAC","ignoreList":[0]}}]
}
@@ -0,0 +1,6 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 3, "column": 0}, "map": {"version":3,"sources":["webpack://next/./src/next-devtools/dev-overlay/components/devtools-indicator/devtools-indicator.css","webpack://next/./src/next-devtools/dev-overlay/components/devtools-panel/resize/resize-handle.css","webpack://next/./src/next-devtools/dev-overlay/components/instant-navs/instant-navs-panel.css","webpack://next/./src/next-devtools/dev-overlay/components/overview/segment-boundary-trigger.css","webpack://next/./src/next-devtools/dev-overlay/components/overview/segment-explorer.css","webpack://next/./src/next-devtools/dev-overlay/components/request-insights/request-insights-panel.css","webpack://next/./src/next-devtools/dev-overlay/components/toast/style.css","webpack://next/./src/next-devtools/dev-overlay/components/tooltip/tooltip.css","webpack://next/./src/next-devtools/dev-overlay/global.css","webpack://next/./src/next-devtools/dev-overlay/menu/panel-router.css","webpack://next/./src/next-devtools/dev-overlay/normalize.css","webpack://next/./src/next-devtools/dev-overlay/panel/dynamic-panel.css","webpack://next/./src/next-devtools/dev-overlay/styles/colors.css","webpack://next/./src/next-devtools/dev-overlay/styles/dark-theme.css","webpack://next/./src/next-devtools/dev-overlay/styles/default-theme.css","webpack://next/../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d_53af518c711840c14a35db06bfca95b1/node_modules/css-loader/dist/runtime/api.js","webpack://next/../../node_modules/.pnpm/css-loader@7.1.2_@rspack+core@1.6.7_patch_hash=4cf28ea116b0e27c7c80b09035905f9d16a7b18d_53af518c711840c14a35db06bfca95b1/node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://next/../../node_modules/.pnpm/style-loader@4.0.0_webpack@5.98.0_@swc+core@1.11.24_@swc+helpers@0.5.15__esbuild@0.25.9_/node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://next/./dist/compiled/anser/index.js","webpack://next/./dist/compiled/react-dom/cjs/react-dom-client.production.js","webpack://next/./dist/compiled/react-dom/cjs/react-dom.production.js","webpack://next/./dist/compiled/react-dom/client.js","webpack://next/./dist/compiled/react-dom/index.js","webpack://next/./dist/compiled/react/cjs/react-compiler-runtime.production.js","webpack://next/./dist/compiled/react/cjs/react-jsx-runtime.production.js","webpack://next/./dist/compiled/react/cjs/react.production.js","webpack://next/./dist/compiled/react/compiler-runtime.js","webpack://next/./dist/compiled/react/index.js","webpack://next/./dist/compiled/react/jsx-runtime.js","webpack://next/./dist/compiled/scheduler/cjs/scheduler.production.js","webpack://next/./dist/compiled/scheduler/index.js","webpack://next/./dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","webpack://next/./dist/compiled/strip-ansi/index.js","webpack://next/./src/build/webpack/loaders/devtool/devtool-style-inject.js","webpack://next/./src/next-devtools/dev-overlay/components/devtools-indicator/status-indicator.tsx","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/utils/styleHookMapping.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/utils/popupStateMapping.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/composite/list/useCompositeListItem.js","webpack://next/../../node_modules/.pnpm/@base-ui-components+react@1.0.0-beta.2_@types+react@19.2.18_react-dom@19.3.0-canary-cbb_290fc49d6392fca5d8aca9873ffd5a59/node_modules/@base-ui-components/react/esm/menu/checkbox-item/MenuCheckboxItemDataAttributes.js","webpack://next/./src/next-devtools/dev-overlay/global.css?29ce","webpack://next/./src/next-devtools/dev-overlay/components/toast/style.css?ed91","webpack://next/./src/next-devtools/dev-overlay/font/font-styles.tsx","webpack://neLine truncated
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,9 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-dom/cjs/react-dom-client.development.js"],"sourcesContent":["/**\n * @license React\n * react-dom-client.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/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function findHook(fiber, id) {\n for (fiber = fiber.memoizedState; null !== fiber && 0 < id; )\n (fiber = fiber.next), id--;\n return fiber;\n }\n function copyWithSetImpl(obj, path, index, value) {\n if (index >= path.length) return value;\n var key = path[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);\n return updated;\n }\n function copyWithRename(obj, oldPath, newPath) {\n if (oldPath.length !== newPath.length)\n console.warn(\"copyWithRename() expects paths of the same length\");\n else {\n for (var i = 0; i < newPath.length - 1; i++)\n if (oldPath[i] !== newPath[i]) {\n console.warn(\n \"copyWithRename() expects paths to be the same except for the deepest key\"\n );\n return;\n }\n return copyWithRenameImpl(obj, oldPath, newPath, 0);\n }\n }\n function copyWithRenameImpl(obj, oldPath, newPath, index) {\n var oldKey = oldPath[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n index + 1 === oldPath.length\n ? ((updated[newPath[index]] = updated[oldKey]),\n isArrayImpl(updated)\n ? updated.splice(oldKey, 1)\n : delete updated[oldKey])\n : (updated[oldKey] = copyWithRenameImpl(\n obj[oldKey],\n oldPath,\n newPath,\n index + 1\n ));\n return updated;\n }\n function copyWithDeleteImpl(obj, path, index) {\n var key = path[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n if (index + 1 === path.length)\n return (\n isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key],\n updated\n );\n updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);\n return updated;\n }\n function shouldSuspendImpl() {\n return !1;\n }\n function shouldErrorImpl() {\n return null;\n }\n function warnInvalidHookAccess() {\n console.error(\n \"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"\n );\n }\n function warnInvalidContextAccess() {\n console.error(\n \"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"\n );\n }\n function noop() {}\n function warnForMissingKey() {}\n function setToSortedString(set) {\n var array = [];\n set.forEach(function (value) {\n array.push(value);\n });\n return array.sort().join(\", \");\n }\n function createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n }\n function scheduleRoot(root, element) {\n root.context === emptyContextObject &&\n (updateContainerImpl(root.current, 2, element, root, null, null),\n flushSyncWork$1());\n }\n function scheduleRefresh(root, update) {\n if (null !== resolveFamily) {\n var staleFamilies = update.staleFamilies;\n update = update.updatedFamilies;\n flushPendingEffects();\n scheduleFibersWithFamiliesRecursively(\n root.current,\n update,\n staleFamilies\n );\n flushSyncWork$1();\n }\n }\n function setRefreshHandler(handler) {\n resolveFamily = handler;\n }\n function isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n }\n function getNearestMountedFiber(fiber) {\n for (var node = fiber, nextNode = node; nextNode && !nextNode.alternate; )\n (node = nextNode),\n 0 !== (node.flags & 4098) && (fiber = node.return),\n (nextNode = node.return);\n for (; node.return; ) node = node.return;\n return 3 === node.tag ? fiber : null;\n }\n function getSuspenseInstanceFromFiber(fiber) {\n if (13 === fiber.Line truncated
{"offset": {"line": 16606, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-dom/cjs/react-dom.development.js"],"sourcesContent":["/**\n * @license React\n * react-dom.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 testStringCoercion(value) {\n return \"\" + value;\n }\n function createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n if (null == key) key = null;\n else if (key === REACT_OPTIMISTIC_KEY) key = REACT_OPTIMISTIC_KEY;\n else {\n try {\n testStringCoercion(key);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n JSCompiler_inline_result &&\n (console.error(\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n key[Symbol.toStringTag]) ||\n key.constructor.name ||\n \"Object\"\n ),\n testStringCoercion(key));\n key = \"\" + key;\n }\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n }\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 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 \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\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 REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_RECOVERABLE_TYPE = Symbol.for(\"react.recoverable\"),\n REACT_OPTIMISTIC_KEY = Symbol.for(\"react.optimistic_key\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\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_UPGRADLine truncated
{"offset": {"line": 16799, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-dom/client.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom-client.production.js');\n} else {\n module.exports = require('./cjs/react-dom-client.development.js');\n}\n"],"names":["checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","Error","err","console","error","module","exports"],"mappings":"AA8BI;AA9BJ;AAEA,SAASA;IACP,yCAAyC,GACzC,IACE,OAAOC,mCAAmC,eAC1C,OAAOA,+BAA+BD,QAAQ,KAAK,YACnD;QACA;IACF;IACA,wCAA2C;QACzC,kEAAkE;QAClE,gEAAgE;QAChE,sEAAsE;QACtE,oBAAoB;QACpB,wEAAwE;QACxE,0EAA0E;QAC1E,oBAAoB;QACpB,MAAM,IAAIE,MAAM;IAClB;IACA,IAAI;QACF,oEAAoE;QACpED,+BAA+BD,QAAQ,CAACA;IAC1C,EAAE,OAAOG,KAAK;QACZ,kDAAkD;QAClD,qDAAqD;QACrDC,QAAQC,KAAK,CAACF;IAChB;AACF;AAEA;;KAKO;IACLG,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 16833, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-dom/index.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"names":["checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","Error","err","console","error","module","exports"],"mappings":"AA8BI;AA9BJ;AAEA,SAASA;IACP,yCAAyC,GACzC,IACE,OAAOC,mCAAmC,eAC1C,OAAOA,+BAA+BD,QAAQ,KAAK,YACnD;QACA;IACF;IACA,wCAA2C;QACzC,kEAAkE;QAClE,gEAAgE;QAChE,sEAAsE;QACtE,oBAAoB;QACpB,wEAAwE;QACxE,0EAA0E;QAC1E,oBAAoB;QACpB,MAAM,IAAIE,MAAM;IAClB;IACA,IAAI;QACF,oEAAoE;QACpED,+BAA+BD,QAAQ,CAACA;IAC1C,EAAE,OAAOG,KAAK;QACZ,kDAAkD;QAClD,qDAAqD;QACrDC,QAAQC,KAAK,CAACF;IAChB;AACF;AAEA;;KAKO;IACLG,OAAOC,OAAO;AAChB","ignoreList":[0]}}]
}
@@ -0,0 +1,8 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js"],"sourcesContent":["/**\n * @license React\n * react-server-dom-turbopack-client.browser.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 checkEvalAvailabilityOnceDev() {\n if (!hasConfirmedEval) {\n hasConfirmedEval = !0;\n try {\n (0, eval)(\"null\");\n } catch ($jscomp$unused$catch) {\n console.error(\n \"eval() is not supported in this environment. If this page was served with a `Content-Security-Policy` header, make sure that `unsafe-eval` is included. React requires eval() in development mode for various debugging features like reconstructing callstacks from a different environment.\\nReact will never use eval() in production mode\"\n );\n }\n }\n }\n function resolveClientReference(bundlerConfig, metadata) {\n if (bundlerConfig) {\n var moduleExports = bundlerConfig[metadata[0]];\n if ((bundlerConfig = moduleExports && moduleExports[metadata[2]]))\n moduleExports = bundlerConfig.name;\n else {\n bundlerConfig = moduleExports && moduleExports[\"*\"];\n if (!bundlerConfig)\n throw Error(\n 'Could not find the module \"' +\n metadata[0] +\n '\" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.'\n );\n moduleExports = metadata[2];\n }\n return 4 === metadata.length\n ? [bundlerConfig.id, bundlerConfig.chunks, moduleExports, 1]\n : [bundlerConfig.id, bundlerConfig.chunks, moduleExports];\n }\n return metadata;\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 = __turbopack_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 = __turbopack_load_by_url__(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 = __turbopack_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 getIteratorFn(maybeIterable) {\n ifLine truncated
{"offset": {"line": 2902, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-server-dom-turbopack/client.browser.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-server-dom-turbopack-client.browser.production.js');\n} else {\n module.exports = require('./cjs/react-server-dom-turbopack-client.browser.development.js');\n}\n"],"names":["module","exports"],"mappings":"AAEI;AAFJ;AAEA;;KAEO;IACLA,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 2913, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/dist/compiled/react-server-dom-turbopack/client.js"],"sourcesContent":["'use strict';\n\nmodule.exports = require('./client.browser');\n"],"names":["module","exports"],"mappings":"AAEAA,OAAOC,OAAO","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,76 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/app-router-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport type {\n FocusAndScrollRef,\n PrefetchKind,\n} from '../../client/components/router-reducer/router-reducer-types'\nimport type { Params } from '../../server/request/params'\nimport type {\n FlightRouterState,\n FlightSegmentPath,\n CacheNode,\n LoadingModuleData,\n} from './app-router-types'\nimport React from 'react'\n\nexport interface NavigateOptions {\n scroll?: boolean\n /**\n * Transition types to apply when navigating. These types are passed to\n * [`React.addTransitionType`](https://react.dev/reference/react/addTransitionType)\n * inside the navigation transition, enabling\n * [`<ViewTransition>`](https://react.dev/reference/react/ViewTransition) components\n * to apply different animations based on the type of navigation.\n */\n transitionTypes?: string[]\n}\n\nexport interface PrefetchOptions {\n kind: PrefetchKind\n onInvalidate?: () => void\n}\n\nexport interface AppRouterInstance {\n /**\n * Navigate to the previous history entry.\n */\n back(): void\n /**\n * Navigate to the next history entry.\n */\n forward(): void\n /**\n * Refresh the current page.\n */\n refresh(): void\n /**\n * Refresh the current page. Use in development only.\n * @internal\n */\n hmrRefresh(): void\n /**\n * Navigate to the provided href.\n * Pushes a new history entry.\n */\n push(href: string, options?: NavigateOptions): void\n /**\n * Navigate to the provided href.\n * Replaces the current history entry.\n */\n replace(href: string, options?: NavigateOptions): void\n /**\n * Prefetch the provided href.\n */\n prefetch(href: string, options?: PrefetchOptions): void\n /**\n * Perform a gesture navigation using prefetched data.\n * Only available when experimental.gestureTransition is enabled.\n * @experimental\n */\n experimental_gesturePush?(href: string, options?: NavigateOptions): void\n /**\n * An opaque string identifier scoped to the current route segment.\n *\n * Changes when the surrounding segment is freshly created by a push or\n * replace navigation. Stays the same for back/forward navigations,\n * `router.refresh()`, and search-param/hash-only changes.\n *\n * Intended to be passed to a React `key` to opt out of state preservation\n * on fresh navigations:\n *\n * ```tsx\n * <form key={useRouter().bfcacheId}>\n * ```\n *\n * In most cases, prefer resetting state explicitly in an event handler, or\n * deriving a key from your data (e.g. a draft id from the server). Use\n * `bfcacheId` only when those patterns aren't a fit.\n */\n bfcacheId: string\n}\n\nexport const AppRouterContext = React.createContext<AppRouterInstance | null>(\n null\n)\nexport const LayoutRouterContext = React.createContext<{\n parentTree: FlightRouterState\n parentCacheNode: CacheNode\n parentSegmentPath: FlightSegmentPath | null\n parentParams: Params\n parentLoadingData: LoadingModuleData | null\n debugNameContext: string\n url: string\n isActive: boolean\n} | null>(null)\n\nexport const GlobalLayoutRouterContext = React.createContext<{\n tree: FlightRouterState\n focusAndScrollRef: FocusAndScrollRef\n nextUrl: string | null\n previousNextUrl: string | null\n}>(null as any)\n\nexport const TemplateContext = React.createContext<React.ReactNode>(null as any)\n\nif (process.env.NODE_ENV !== 'production') {\n AppRouterContext.displayName = 'AppRouterContext'\n LayoutRouterContext.displayName = 'LayoutRouterContext'\n GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext'\n TemplateContext.displayName = 'TemplateContext'\n}\n\nexport const MissingSlotContext = React.createContext<Set<string>>(new Set())\n"],"names":["AppRouterContext","GlobalLayoutRouterContext","LayoutRouterContext","MissingSlotContext","TemplateContext","React","createContext","process","env","NODE_ENV","displayName","Set"],"mappings":"AAkHIO,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAlH7B;;;;;;;;;;;;;;;;;;;IA2FaT,gBAAgB,EAAA;eAAhBA;;IAcAC,yBAAyB,EAAA;eAAzBA;;IAXAC,mBAAmB,EAAA;eAAnBA;;IA2BAC,kBAAkB,EAAA;eAAlBA;;IATAC,eAAe,EAAA;eAAfA;;;;gEAnGK;AA8EX,MAAMJ,mBAAmBK,OAAAA,OAAK,CAACC,aAAa,CACjD;AAEK,MAAMJ,sBAAsBG,OAAAA,OAAK,CAACC,aAAa,CAS5C;AAEH,MAAML,4BAA4BI,OAAAA,OAAK,CAACC,aAAa,CAKzD;AAEI,MAAMF,kBAAkBC,OAAAA,OAAK,CAACC,aAAa,CAAkB;AAEpE,wCAA2C;IACzCN,iBAAiBU,WAAW,GAAG;IAC/BR,oBAAoBQ,WAAW,GAAG;IAClCT,0BAA0BS,WAAW,GAAG;IACxCN,gBAAgBM,WAAW,GAAG;AAChC;AAEO,MAAMP,qBAAqBE,OAAAA,OAAK,CAACC,aAAa,CAAc,IAAIK","ignoreList":[0]}},
{"offset": {"line": 57, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/bloom-filter.ts"],"sourcesContent":["// minimal implementation MurmurHash2 hash function\nfunction murmurhash2(str: string) {\n let h = 0\n for (let i = 0; i < str.length; i++) {\n const c = str.charCodeAt(i)\n h = Math.imul(h ^ c, 0x5bd1e995)\n h ^= h >>> 13\n h = Math.imul(h, 0x5bd1e995)\n }\n return h >>> 0\n}\n\n// default to 0.01% error rate as the filter compresses very well\nconst DEFAULT_ERROR_RATE = 0.0001\n\nexport class BloomFilter {\n numItems: number\n errorRate: number\n numBits: number\n numHashes: number\n bitArray: number[]\n\n constructor(numItems: number, errorRate: number = DEFAULT_ERROR_RATE) {\n this.numItems = numItems\n this.errorRate = errorRate\n this.numBits = Math.ceil(\n -(numItems * Math.log(errorRate)) / (Math.log(2) * Math.log(2))\n )\n this.numHashes = Math.ceil((this.numBits / numItems) * Math.log(2))\n this.bitArray = new Array(this.numBits).fill(0)\n }\n\n static from(items: string[], errorRate = DEFAULT_ERROR_RATE) {\n const filter = new BloomFilter(items.length, errorRate)\n\n for (const item of items) {\n filter.add(item)\n }\n return filter\n }\n\n export() {\n const data = {\n numItems: this.numItems,\n errorRate: this.errorRate,\n numBits: this.numBits,\n numHashes: this.numHashes,\n bitArray: this.bitArray,\n }\n\n if (process.env.NEXT_RUNTIME === 'nodejs') {\n if (this.errorRate < DEFAULT_ERROR_RATE) {\n const filterData = JSON.stringify(data)\n const gzipSize = (\n require('next/dist/compiled/gzip-size') as typeof import('next/dist/compiled/gzip-size')\n ).sync(filterData)\n\n if (gzipSize > 1024) {\n console.warn(\n `Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)`\n )\n }\n }\n }\n\n return data\n }\n\n import(data: ReturnType<(typeof this)['export']>) {\n this.numItems = data.numItems\n this.errorRate = data.errorRate\n this.numBits = data.numBits\n this.numHashes = data.numHashes\n this.bitArray = data.bitArray\n }\n\n add(item: string) {\n const hashValues = this.getHashValues(item)\n hashValues.forEach((hash) => {\n this.bitArray[hash] = 1\n })\n }\n\n contains(item: string) {\n const hashValues = this.getHashValues(item)\n return hashValues.every((hash) => this.bitArray[hash])\n }\n\n getHashValues(item: string) {\n const hashValues = []\n for (let i = 1; i <= this.numHashes; i++) {\n const hash = murmurhash2(`${item}${i}`) % this.numBits\n hashValues.push(hash)\n }\n return hashValues\n }\n}\n"],"names":["BloomFilter","murmurhash2","str","h","i","length","c","charCodeAt","Math","imul","DEFAULT_ERROR_RATE","constructor","numItems","errorRate","numBits","ceil","log","numHashes","bitArray","Array","fill","from","items","filter","item","add","export","data","process","env","NEXT_RUNTIME","filterData","JSON","stringify","gzipSize","require","sync","console","warn","import","hashValues","getHashValues","forEach","hash","contains","every","push"],"mappings":"AAkDQ4B,QAAQC,GAAG,CAACC,YAAY,KAAK,UAAU;AAlD/C,mDAAmD;;;;;+BAetC9B,eAAAA;;;eAAAA;;;AAdb,SAASC,YAAYC,GAAW;IAC9B,IAAIC,IAAI;IACR,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,MAAME,IAAIJ,IAAIK,UAAU,CAACH;QACzBD,IAAIK,KAAKC,IAAI,CAACN,IAAIG,GAAG;QACrBH,KAAKA,MAAM;QACXA,IAAIK,KAAKC,IAAI,CAACN,GAAG;IACnB;IACA,OAAOA,MAAM;AACf;AAEA,iEAAiE;AACjE,MAAMO,qBAAqB;AAEpB,MAAMV;IAOXW,YAAYC,QAAgB,EAAEC,YAAoBH,kBAAkB,CAAE;QACpE,IAAI,CAACE,QAAQ,GAAGA;QAChB,IAAI,CAACC,SAAS,GAAGA;QACjB,IAAI,CAACC,OAAO,GAAGN,KAAKO,IAAI,CACtB,CAAEH,CAAAA,WAAWJ,KAAKQ,GAAG,CAACH,UAAS,IAAML,CAAAA,KAAKQ,GAAG,CAAC,KAAKR,KAAKQ,GAAG,CAAC,EAAC;QAE/D,IAAI,CAACC,SAAS,GAAGT,KAAKO,IAAI,CAAE,IAAI,CAACD,OAAO,GAAGF,WAAYJ,KAAKQ,GAAG,CAAC;QAChE,IAAI,CAACE,QAAQ,GAAG,IAAIC,MAAM,IAAI,CAACL,OAAO,EAAEM,IAAI,CAAC;IAC/C;IAEA,OAAOC,KAAKC,KAAe,EAAET,YAAYH,kBAAkB,EAAE;QAC3D,MAAMa,SAAS,IAAIvB,YAAYsB,MAAMjB,MAAM,EAAEQ;QAE7C,KAAK,MAAMW,QAAQF,MAAO;YACxBC,OAAOE,GAAG,CAACD;QACb;QACA,OAAOD;IACT;IAEAG,SAAS;QACP,MAAMC,OAAO;YACXf,UAAU,IAAI,CAACA,QAAQ;YACvBC,WAAW,IAAI,CAACA,SAAS;YACzBC,SAAS,IAAI,CAACA,OAAO;YACrBG,WAAW,IAAI,CAACA,SAAS;YACzBC,UAAU,IAAI,CAACA,QAAQ;QACzB;QAEA;;QAeA,OAAOS;IACT;IAEAY,OAAOZ,IAAyC,EAAE;QAChD,IAAI,CAACf,QAAQ,GAAGe,KAAKf,QAAQ;QAC7B,IAAI,CAACC,SAAS,GAAGc,KAAKd,SAAS;QAC/B,IAAI,CAACC,OAAO,GAAGa,KAAKb,OAAO;QAC3B,IAAI,CAACG,SAAS,GAAGU,KAAKV,SAAS;QAC/B,IAAI,CAACC,QAAQ,GAAGS,KAAKT,QAAQ;IAC/B;IAEAO,IAAID,IAAY,EAAE;QAChB,MAAMgB,aAAa,IAAI,CAACC,aAAa,CAACjB;QACtCgB,WAAWE,OAAO,CAAC,CAACC;YAClB,IAAI,CAACzB,QAAQ,CAACyB,KAAK,GAAG;QACxB;IACF;IAEAC,SAASpB,IAAY,EAAE;QACrB,MAAMgB,aAAa,IAAI,CAACC,aAAa,CAACjB;Line truncated
{"offset": {"line": 138, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/constants.ts"],"sourcesContent":["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-mLine truncated
{"offset": {"line": 595, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/deployment-id.ts"],"sourcesContent":["let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return process.env.NEXT_SUPPORTS_IMMUTABLE_ASSETS\n ? undefined\n : process.env.NEXT_DEPLOYMENT_ID\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n"],"names":["getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","window","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_SUPPORTS_IMMUTABLE_ASSETS"],"mappings":"AAUiBU,QAAQC,GAAG,CAACC,kBAAkB;;;;;;;;;;;;;;;;;;IAe/BZ,aAAa,EAAA;eAAbA;;IAMAC,kBAAkB,EAAA;eAAlBA;;IAlBAC,eAAe,EAAA;eAAfA;;IAIAC,oBAAoB,EAAA;eAApBA;;;AAjBhB,IAAIC;AAEJ,IAAI,OAAOC,WAAW,aAAa;IACjCD,eAAeE,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;IACrD,gGAAgG;IAChG,8CAA8C;IAC9C,OAAOH,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;AAC/C,OAAO;IACL,2DAA2D;IAC3D,2EAA2E;IAC3EL,0DAAiDS;AACnD;AAEO,SAASX;IACd,OAAOE;AACT;AAEO,SAASD,qBAAqBW,YAAY,KAAK;IACpD,IAAIC,KAAKb;IACT,IAAIa,IAAI;QACN,OAAO,GAAGD,YAAY,MAAM,IAAI,IAAI,EAAEC,IAAI;IAC5C;IACA,OAAO;AACT;AAEO,SAASf;IACd,OAAOU,QAAQC,GAAG,CAACK,0BACfH,IAD6C,QAE7CH,QAAQC,GAAG,CAACC,kBAAkB;AACpC;AAEO,SAASX,mBAAmBa,YAAY,KAAK;IAClD,IAAIC,KAAKf;IACT,IAAIe,IAAI;;IAGR,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 660, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/encode-uri-path.ts"],"sourcesContent":["export function encodeURIPath(file: string) {\n return file\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')\n}\n"],"names":["encodeURIPath","file","split","map","p","encodeURIComponent","join"],"mappings":";;;+BAAgBA,iBAAAA;;;eAAAA;;;AAAT,SAASA,cAAcC,IAAY;IACxC,OAAOA,KACJC,KAAK,CAAC,KACNC,GAAG,CAAC,CAACC,IAAMC,mBAAmBD,IAC9BE,IAAI,CAAC;AACV","ignoreList":[0]}},
{"offset": {"line": 676, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/entry-constants.ts"],"sourcesContent":["export const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found'\nexport const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = `${UNDERSCORE_NOT_FOUND_ROUTE}/page`\nexport const UNDERSCORE_GLOBAL_ERROR_ROUTE = '/_global-error'\nexport const UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY = `${UNDERSCORE_GLOBAL_ERROR_ROUTE}/page`\n"],"names":["UNDERSCORE_GLOBAL_ERROR_ROUTE","UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY","UNDERSCORE_NOT_FOUND_ROUTE","UNDERSCORE_NOT_FOUND_ROUTE_ENTRY"],"mappings":";;;;;;;;;;;;;;;;IAEaA,6BAA6B,EAAA;eAA7BA;;IACAC,mCAAmC,EAAA;eAAnCA;;IAHAC,0BAA0B,EAAA;eAA1BA;;IACAC,gCAAgC,EAAA;eAAhCA;;;AADN,MAAMD,6BAA6B;AACnC,MAAMC,mCAAmC,GAAGD,2BAA2B,KAAK,CAAC;AAC7E,MAAMF,gCAAgC;AACtC,MAAMC,sCAAsC,GAAGD,8BAA8B,KAAK,CAAC","ignoreList":[0]}},
{"offset": {"line": 713, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/error-source.ts"],"sourcesContent":["const symbolError = Symbol.for('NextjsError')\n\nexport function getErrorSource(error: Error): 'server' | 'edge-server' | null {\n return (error as any)[symbolError] || null\n}\n\nexport type ErrorSourceType = 'edge-server' | 'server'\n\nexport function decorateServerError(error: Error, type: ErrorSourceType) {\n Object.defineProperty(error, symbolError, {\n writable: false,\n enumerable: false,\n configurable: false,\n value: type,\n })\n}\n"],"names":["decorateServerError","getErrorSource","symbolError","Symbol","for","error","type","Object","defineProperty","writable","enumerable","configurable","value"],"mappings":";;;;;;;;;;;;;;IAQgBA,mBAAmB,EAAA;eAAnBA;;IANAC,cAAc,EAAA;eAAdA;;;AAFhB,MAAMC,cAAcC,OAAOC,GAAG,CAAC;AAExB,SAASH,eAAeI,KAAY;IACzC,OAAQA,KAAa,CAACH,YAAY,IAAI;AACxC;AAIO,SAASF,oBAAoBK,KAAY,EAAEC,IAAqB;IACrEC,OAAOC,cAAc,CAACH,OAAOH,aAAa;QACxCO,UAAU;QACVC,YAAY;QACZC,cAAc;QACdC,OAAON;IACT;AACF","ignoreList":[0]}},
{"offset": {"line": 750, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/escape-regexp.ts"],"sourcesContent":["// regexp is based on https://github.com/sindresorhus/escape-string-regexp\nconst reHasRegExp = /[|\\\\{}()[\\]^$+*?.-]/\nconst reReplaceRegExp = /[|\\\\{}()[\\]^$+*?.-]/g\n\nexport function escapeStringRegexp(str: string) {\n // see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23\n if (reHasRegExp.test(str)) {\n return str.replace(reReplaceRegExp, '\\\\$&')\n }\n return str\n}\n"],"names":["escapeStringRegexp","reHasRegExp","reReplaceRegExp","str","test","replace"],"mappings":"AAAA,0EAA0E;;;;+BAI1DA,sBAAAA;;;eAAAA;;;AAHhB,MAAMC,cAAc;AACpB,MAAMC,kBAAkB;AAEjB,SAASF,mBAAmBG,GAAW;IAC5C,+GAA+G;IAC/G,IAAIF,YAAYG,IAAI,CAACD,MAAM;QACzB,OAAOA,IAAIE,OAAO,CAACH,iBAAiB;IACtC;IACA,OAAOC;AACT","ignoreList":[0]}},
{"offset": {"line": 773, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/format-webpack-messages.ts"],"sourcesContent":["/**\nMIT License\n\nCopyright (c) 2015-present, Facebook, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\n// This file is based on https://github.com/facebook/create-react-app/blob/7b1a32be6ec9f99a6c9a3c66813f3ac09c4736b9/packages/react-dev-utils/formatWebpackMessages.js\n// It's been edited to remove chalk and CRA-specific logic\n\nconst friendlySyntaxErrorLabel = 'Syntax error:'\n\nconst WEBPACK_BREAKING_CHANGE_POLYFILLS =\n '\\n\\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.'\n\nfunction isLikelyASyntaxError(message: string) {\n return stripAnsi(message).includes(friendlySyntaxErrorLabel)\n}\n\nlet hadMissingSassError = false\n\n// Cleans up webpack error messages.\nfunction formatMessage(\n message: any,\n verbose?: boolean,\n importTraceNote?: boolean\n) {\n // TODO: Replace this once webpack 5 is stable\n if (typeof message === 'object' && message.message) {\n let filteredModuleTrace =\n message.moduleTrace &&\n message.moduleTrace.filter(\n (trace: any) =>\n !/next-(middleware|client-pages|route|edge-function)-loader\\.js/.test(\n trace.originName\n )\n )\n\n let body = message.message\n const breakingChangeIndex = body.indexOf(WEBPACK_BREAKING_CHANGE_POLYFILLS)\n if (breakingChangeIndex >= 0) {\n body = body.slice(0, breakingChangeIndex)\n }\n\n // TODO: Rspack currently doesn't populate moduleName correctly in some cases,\n // fall back to moduleIdentifier as a workaround\n if (\n process.env.NEXT_RSPACK &&\n !message.moduleName &&\n !message.file &&\n message.moduleIdentifier\n ) {\n const parts = message.moduleIdentifier.split('!')\n message.moduleName = parts[parts.length - 1]\n }\n\n message =\n (message.moduleName ? stripAnsi(message.moduleName) + '\\n' : '') +\n (message.file ? stripAnsi(message.file) + '\\n' : '') +\n body +\n (message.details && verbose ? '\\n' + message.details : '') +\n (filteredModuleTrace && filteredModuleTrace.length\n ? (importTraceNote || '\\n\\nImport trace for requested module:') +\n filteredModuleTrace\n .map((trace: any) => `\\n${trace.moduleName}`)\n .join('')\n : '') +\n (message.stack && verbose ? '\\n' + message.stack : '')\n }\n let lines = message.split('\\n')\n\n // Extract loader paths from Webpack-added headers and move them to end.\n // Original format: \"Module build failed (from ./loaders/foo-loader.js):\"\n // The header line is removed and the path is appended at the end as:\n // \" (from ./loaders/foo-loader.js)\"\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n const loaderPaths: string[] = []\n lines = lines.filter((line: string) => {\n const match = /Module [A-z ]+\\(from (.+)\\):?\\s*$/.exec(line)\n if (match) {\n loaderPaths.push(match[1])\n return false\n }\n return true\n })\n\n // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n lines = lines.map((line: string) => {\n const parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(\n line\n )\n if (!parsingError) {\n return line\n }\n const [, errorLine, errorColumn, errorMessage] = parsingError\n return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`\n })\n\n message = lines.join('\\n')\n // Smoosh syntax errors (commonly found in CSS)\n message = message.replace(\n /SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g,\n `${friendlySyntaxErrorLabel} $3 ($1:$2)\\n`\n )\n // Clean up export errors\n message = message.replace(\n /^.*eLine truncated
{"offset": {"line": 960, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/head-manager-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\n\nexport const HeadManagerContext: React.Context<{\n updateHead?: (state: any) => void\n mountedInstances?: any\n updateScripts?: (state: any) => void\n scripts?: any\n getIsSsr?: () => boolean\n\n // Used in app directory, to render script tags as server components.\n appDir?: boolean\n nonce?: string\n}> = React.createContext({})\n\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext'\n}\n"],"names":["HeadManagerContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAcIG,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAZhBL,sBAAAA;;;eAAAA;;;;gEAFK;AAEX,MAAMA,qBAURC,OAAAA,OAAK,CAACC,aAAa,CAAC,CAAC;AAE1B,wCAA2C;IACzCF,mBAAmBM,WAAW,GAAG;AACnC","ignoreList":[0]}},
{"offset": {"line": 981, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/hooks-client-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport { createContext } from 'react'\nimport type { Params } from '../../server/request/params'\nimport { ReadonlyURLSearchParams } from '../../client/components/readonly-url-search-params'\n\nexport const SearchParamsContext = createContext<URLSearchParams | null>(null)\nexport const PathnameContext = createContext<string | null>(null)\nexport const PathParamsContext = createContext<Params | null>(null)\n\n// Dev-only context for Suspense DevTools instrumentation\n// These promises are used to track navigation hook usage in React DevTools\nexport type InstrumentedPromise<T> = Promise<T> & {\n status: 'fulfilled'\n value: T\n displayName: string\n}\n\nexport type NavigationPromises = {\n pathname: InstrumentedPromise<string>\n searchParams: InstrumentedPromise<ReadonlyURLSearchParams>\n params: InstrumentedPromise<Params>\n // Layout segment hooks (updated at each layout boundary)\n selectedLayoutSegmentPromises?: Map<\n string,\n InstrumentedPromise<string | null>\n >\n selectedLayoutSegmentsPromises?: Map<string, InstrumentedPromise<string[]>>\n}\n\nexport const NavigationPromisesContext =\n createContext<NavigationPromises | null>(null)\n\n// Creates an instrumented promise for Suspense DevTools\n// These promises are always fulfilled and exist purely for\n// tracking in React's Suspense DevTools.\nexport function createDevToolsInstrumentedPromise<T>(\n displayName: string,\n value: T\n): InstrumentedPromise<T> {\n const promise = Promise.resolve(value) as InstrumentedPromise<T>\n promise.status = 'fulfilled'\n promise.value = value\n promise.displayName = `${displayName} (SSR)`\n return promise\n}\n\nexport { ReadonlyURLSearchParams }\n\nif (process.env.NODE_ENV !== 'production') {\n SearchParamsContext.displayName = 'SearchParamsContext'\n PathnameContext.displayName = 'PathnameContext'\n PathParamsContext.displayName = 'PathParamsContext'\n NavigationPromisesContext.displayName = 'NavigationPromisesContext'\n}\n"],"names":["NavigationPromisesContext","PathParamsContext","PathnameContext","ReadonlyURLSearchParams","SearchParamsContext","createDevToolsInstrumentedPromise","createContext","displayName","value","promise","Promise","resolve","status","process","env","NODE_ENV"],"mappings":"AAiDIa,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAjD7B;;;;;;;;;;;;;;;;;;;;IA8Baf,yBAAyB,EAAA;eAAzBA;;IAtBAC,iBAAiB,EAAA;eAAjBA;;IADAC,eAAe,EAAA;eAAfA;;IAwCJC,uBAAuB,EAAA;eAAvBA,yBAAAA,uBAAuB;;IAzCnBC,mBAAmB,EAAA;eAAnBA;;IA8BGC,iCAAiC,EAAA;eAAjCA;;;uBAlCc;yCAEU;AAEjC,MAAMD,sBAAsBE,CAAAA,GAAAA,OAAAA,aAAa,EAAyB;AAClE,MAAMJ,kBAAkBI,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AACrD,MAAML,oBAAoBK,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AAsBvD,MAAMN,4BACXM,CAAAA,GAAAA,OAAAA,aAAa,EAA4B;AAKpC,SAASD,kCACdE,WAAmB,EACnBC,KAAQ;IAER,MAAMC,UAAUC,QAAQC,OAAO,CAACH;IAChCC,QAAQG,MAAM,GAAG;IACjBH,QAAQD,KAAK,GAAGA;IAChBC,QAAQF,WAAW,GAAG,GAAGA,YAAY,MAAM,CAAC;IAC5C,OAAOE;AACT;AAIA,wCAA2C;IACzCL,oBAAoBG,WAAW,GAAG;IAClCL,gBAAgBK,WAAW,GAAG;IAC9BN,kBAAkBM,WAAW,GAAG;IAChCP,0BAA0BO,WAAW,GAAG;AAC1C","ignoreList":[0]}},
{"offset": {"line": 1044, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/htmlescape.ts"],"sourcesContent":["// This utility is based on https://github.com/zertosh/htmlescape\n// License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE\n\nconst ESCAPE_LOOKUP: { [match: string]: string } = {\n '&': '\\\\u0026',\n '>': '\\\\u003e',\n '<': '\\\\u003c',\n '\\u2028': '\\\\u2028',\n '\\u2029': '\\\\u2029',\n}\n\nexport const ESCAPE_REGEX = /[&><\\u2028\\u2029]/g\n\nconst ATTRIBUTE_ESCAPE_LOOKUP: { [match: string]: string } = {\n '&': '&amp;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '<': '&lt;',\n '>': '&gt;',\n}\n\nconst ATTRIBUTE_ESCAPE_REGEX = /[&\"'<>]/g\n\nexport function htmlEscapeJsonString(str: string): string {\n return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match])\n}\n\nexport function htmlEscapeAttributeString(str: string): string {\n return str.replace(\n ATTRIBUTE_ESCAPE_REGEX,\n (match) => ATTRIBUTE_ESCAPE_LOOKUP[match]\n )\n}\n"],"names":["ESCAPE_REGEX","htmlEscapeAttributeString","htmlEscapeJsonString","ESCAPE_LOOKUP","ATTRIBUTE_ESCAPE_LOOKUP","ATTRIBUTE_ESCAPE_REGEX","str","replace","match"],"mappings":"AAAA,iEAAiE;AACjE,uGAAuG;;;;;;;;;;;;;;;;IAU1FA,YAAY,EAAA;eAAZA;;IAgBGC,yBAAyB,EAAA;eAAzBA;;IAJAC,oBAAoB,EAAA;eAApBA;;;AApBhB,MAAMC,gBAA6C;IACjD,KAAK;IACL,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;AACZ;AAEO,MAAMH,eAAe;AAE5B,MAAMI,0BAAuD;IAC3D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAEA,MAAMC,yBAAyB;AAExB,SAASH,qBAAqBI,GAAW;IAC9C,OAAOA,IAAIC,OAAO,CAACP,cAAc,CAACQ,QAAUL,aAAa,CAACK,MAAM;AAClE;AAEO,SAASP,0BAA0BK,GAAW;IACnD,OAAOA,IAAIC,OAAO,CAChBF,wBACA,CAACG,QAAUJ,uBAAuB,CAACI,MAAM;AAE7C","ignoreList":[0]}},
{"offset": {"line": 1097, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/i18n/normalize-locale-path.ts"],"sourcesContent":["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"],"names":["normalizeLocalePath","cache","WeakMap","pathname","locales","lowercasedLocales","get","map","locale","toLowerCase","set","detectedLocale","segments","split","segment","index","indexOf","slice","length"],"mappings":";;;+BAqBgBA,uBAAAA;;;eAAAA;;;AAhBhB;;;;CAIC,GACD,MAAMC,QAAQ,IAAIC;AAWX,SAASF,oBACdG,QAAgB,EAChBC,OAA2B;IAE3B,sDAAsD;IACtD,IAAI,CAACA,SAAS,OAAO;QAAED;IAAS;IAEhC,iEAAiE;IACjE,IAAIE,oBAAoBJ,MAAMK,GAAG,CAACF;IAClC,IAAI,CAACC,mBAAmB;QACtBA,oBAAoBD,QAAQG,GAAG,CAAC,CAACC,SAAWA,OAAOC,WAAW;QAC9DR,MAAMS,GAAG,CAACN,SAASC;IACrB;IAEA,IAAIM;IAEJ,oEAAoE;IACpE,yEAAyE;IACzE,MAAMC,WAAWT,SAASU,KAAK,CAAC,KAAK;IAErC,0EAA0E;IAC1E,UAAU;IACV,IAAI,CAACD,QAAQ,CAAC,EAAE,EAAE,OAAO;QAAET;IAAS;IAEpC,0DAA0D;IAC1D,MAAMW,UAAUF,QAAQ,CAAC,EAAE,CAACH,WAAW;IAEvC,yEAAyE;IACzE,mCAAmC;IACnC,MAAMM,QAAQV,kBAAkBW,OAAO,CAACF;IACxC,IAAIC,QAAQ,GAAG,OAAO;QAAEZ;IAAS;IAEjC,oCAAoC;IACpCQ,iBAAiBP,OAAO,CAACW,MAAM;IAE/B,gDAAgD;IAChDZ,WAAWA,SAASc,KAAK,CAACN,eAAeO,MAAM,GAAG,MAAM;IAExD,OAAO;QAAEf;QAAUQ;IAAe;AACpC","ignoreList":[0]}},
{"offset": {"line": 1152, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/image-config-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\nimport type { ImageConfigComplete } from './image-config'\nimport { imageConfigDefault } from './image-config'\n\nexport const ImageConfigContext =\n React.createContext<ImageConfigComplete>(imageConfigDefault)\n\nif (process.env.NODE_ENV !== 'production') {\n ImageConfigContext.displayName = 'ImageConfigContext'\n}\n"],"names":["ImageConfigContext","React","createContext","imageConfigDefault","process","env","NODE_ENV","displayName"],"mappings":"AAOII,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAHhBN,sBAAAA;;;eAAAA;;;;gEAJK;6BAEiB;AAE5B,MAAMA,qBACXC,OAAAA,OAAK,CAACC,aAAa,CAAsBC,aAAAA,kBAAkB;AAE7D,wCAA2C;IACzCH,mBAAmBO,WAAW,GAAG;AACnC","ignoreList":[0]}},
{"offset": {"line": 1174, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/image-config.ts"],"sourcesContent":["export const VALID_LOADERS = [\n 'default',\n 'imgix',\n 'cloudinary',\n 'akamai',\n 'custom',\n] as const\n\nexport type LoaderValue = (typeof VALID_LOADERS)[number]\n\nexport type ImageLoaderProps = {\n src: string\n width: number\n quality?: number\n}\n\nexport type ImageLoaderPropsWithConfig = ImageLoaderProps & {\n config: Readonly<ImageConfig>\n}\n\nexport type LocalPattern = {\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single path segment.\n * Double `**` matches any number of path segments.\n */\n pathname?: string\n\n /**\n * Can be literal query string such as `?v=1` or\n * empty string meaning no query string.\n */\n search?: string\n}\n\nexport type RemotePattern = {\n /**\n * Must be `http` or `https`.\n */\n protocol?: 'http' | 'https'\n\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single subdomain.\n * Double `**` matches any number of subdomains.\n */\n hostname: string\n\n /**\n * Can be literal port such as `8080` or empty string\n * meaning no port.\n */\n port?: string\n\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single path segment.\n * Double `**` matches any number of path segments.\n */\n pathname?: string\n\n /**\n * Can be literal query string such as `?v=1` or\n * empty string meaning no query string.\n */\n search?: string\n}\n\ntype ImageFormat = 'image/avif' | 'image/webp'\n\n/**\n * Image configurations\n *\n * @see [Image configuration options](https://nextjs.org/docs/api-reference/next/image#configuration-options)\n */\nexport type ImageConfigComplete = {\n /** @see [Device sizes documentation](https://nextjs.org/docs/api-reference/next/image#device-sizes) */\n deviceSizes: number[]\n\n /** @see [Image sizing documentation](https://nextjs.org/docs/app/building-your-application/optimizing/images#image-sizing) */\n imageSizes: number[]\n\n /** @see [Image loaders configuration](https://nextjs.org/docs/api-reference/next/legacy/image#loader) */\n loader: LoaderValue\n\n /** @see [Image loader configuration](https://nextjs.org/docs/app/api-reference/components/image#path) */\n path: string\n\n /** @see [Image loader configuration](https://nextjs.org/docs/api-reference/next/image#loader-configuration) */\n loaderFile: string\n\n /**\n * @deprecated Use `remotePatterns` instead.\n */\n domains: string[]\n\n /** @see [Disable static image import configuration](https://nextjs.org/docs/api-reference/next/image#disable-static-imports) */\n disableStaticImages: boolean\n\n /** @see [Cache behavior](https://nextjs.org/docs/api-reference/next/image#caching-behavior) */\n minimumCacheTTL: number\n\n /** @see [Acceptable formats](https://nextjs.org/docs/api-reference/next/image#acceptable-formats) */\n formats: ImageFormat[]\n\n /** @see [Maximum Disk Cache Size (in bytes)](https://nextjs.org/docs/api-reference/next/image#maximumdiskcachesize) */\n maximumDiskCacheSize: number | undefined\n\n /** @see [Maximum Redirects](https://nextjs.org/docs/api-reference/next/image#maximumredirects) */\n maximumRedirects: number\n\n /** @see [Maximum Response Body](https://nextjs.org/docs/api-reference/next/image#maximumresponsebody) */\n maximumResponseBody: number\n\n /** @see [Dangerously Allow Local IP](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-local-ip) */\n dangerouslyAllowLocalIP: boolean\n\n /** @see [Dangerously Allow SVG](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-svg) */\n dangerouslyAllowSVG: boolean\n\n /** @see [Content Security Policy](https://nextjs.org/docs/api-reference/next/image#contentsecuritypolicy) */\n contentSecurityPolicy: string\n\n /** @see [Content Disposition Type](https://nextjs.org/docs/api-reference/next/image#contentdispositiontype) */\n contentDispositionType: 'inline' | 'attachment'\n\n /** @see [Remote Patterns](https://nextjs.org/docs/api-reference/next/image#remotepatterns) */\n remotePatterns: Array<URL | RemotePattern>\n\n /** @see [Local Patterns](https://nextjs.org/docs/api-reference/next/image#localPatterns) */\n localPatterns: LocalPattern[] | undefined\n\n /** @see [Qualities](https://nextjs.org/docs/api-reference/next/image#qualities) */\n qualities: number[] | undefined\n\n /** @see [Unoptimized](https://nextjs.org/docs/api-reference/next/image#unoptimized) */\n unoptimized: boolean\n\n /**\n * When true, the `cacheHandler` configured in next.config.js will also be used\n * for caching optimized images. When false, images use the default filesystem cache.\n * @see [Image Optimization Caching](https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheHandler#image-optimization-caching)\n */\n customCacheHandler: boolean\n}\n\nexport type Line truncated
{"offset": {"line": 1252, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/invariant-error.ts"],"sourcesContent":["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"],"names":["InvariantError","Error","constructor","message","options","endsWith","name"],"mappings":";;;+BAAaA,kBAAAA;;;eAAAA;;;AAAN,MAAMA,uBAAuBC;IAClCC,YAAYC,OAAe,EAAEC,OAAsB,CAAE;QACnD,KAAK,CACH,CAAC,WAAW,EAAED,QAAQE,QAAQ,CAAC,OAAOF,UAAUA,UAAU,IAAI,0BAA0B,CAAC,EACzFC;QAFF,OAAA,cAGC,CAHD,IAGC,EAHD,qBAAA;mBAAA;wBAAA;0BAAA;QAGA;QACA,IAAI,CAACE,IAAI,GAAG;IACd;AACF","ignoreList":[0]}},
{"offset": {"line": 1276, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/is-plain-object.ts"],"sourcesContent":["export function getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nexport function isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n"],"names":["getObjectClassLabel","isPlainObject","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty"],"mappings":";;;;;;;;;;;;;;IAAgBA,mBAAmB,EAAA;eAAnBA;;IAIAC,aAAa,EAAA;eAAbA;;;AAJT,SAASD,oBAAoBE,KAAU;IAC5C,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEO,SAASD,cAAcC,KAAU;IACtC,IAAIF,oBAAoBE,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD","ignoreList":[0]}},
{"offset": {"line": 1319, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts"],"sourcesContent":["// This has to be a shared module which is shared between client component error boundary and dynamic component\nconst BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING'\n\n/** An error that should be thrown when we want to bail out to client-side rendering. */\nexport class BailoutToCSRError extends Error {\n public readonly digest = BAILOUT_TO_CSR\n\n constructor(public readonly reason: string) {\n super(`Bail out to client-side rendering: ${reason}`)\n }\n}\n\n/** Checks if a passed argument is an error that is thrown if we want to bail out to client-side rendering. */\nexport function isBailoutToCSRError(err: unknown): err is BailoutToCSRError {\n if (typeof err !== 'object' || err === null || !('digest' in err)) {\n return false\n }\n\n return err.digest === BAILOUT_TO_CSR\n}\n"],"names":["BailoutToCSRError","isBailoutToCSRError","BAILOUT_TO_CSR","Error","constructor","reason","digest","err"],"mappings":"AAAA,+GAA+G;;;;;;;;;;;;;;;IAIlGA,iBAAiB,EAAA;eAAjBA;;IASGC,mBAAmB,EAAA;eAAnBA;;;AAZhB,MAAMC,iBAAiB;AAGhB,MAAMF,0BAA0BG;IAGrCC,YAA4BC,MAAc,CAAE;QAC1C,KAAK,CAAC,CAAC,mCAAmC,EAAEA,QAAQ,GAAA,IAAA,CAD1BA,MAAAA,GAAAA,QAAAA,IAAAA,CAFZC,MAAAA,GAASJ;IAIzB;AACF;AAGO,SAASD,oBAAoBM,GAAY;IAC9C,IAAI,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,CAAE,CAAA,YAAYA,GAAE,GAAI;QACjE,OAAO;IACT;IAEA,OAAOA,IAAID,MAAM,KAAKJ;AACxB","ignoreList":[0]}},
{"offset": {"line": 1357, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/mitt.ts"],"sourcesContent":["/*\nMIT License\n\nCopyright (c) Jason Miller (https://jasonformat.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n// This file is based on https://github.com/developit/mitt/blob/v1.1.3/src/index.js\n// It's been edited for the needs of this script\n// See the LICENSE at the top of the file\n\ntype Handler = (...evts: any[]) => void\n\nexport type MittEmitter<T> = {\n on(type: T, handler: Handler): void\n off(type: T, handler: Handler): void\n emit(type: T, ...evts: any[]): void\n}\n\nexport default function mitt(): MittEmitter<string> {\n const all: { [s: string]: Handler[] } = Object.create(null)\n\n return {\n on(type: string, handler: Handler) {\n ;(all[type] || (all[type] = [])).push(handler)\n },\n\n off(type: string, handler: Handler) {\n if (all[type]) {\n all[type].splice(all[type].indexOf(handler) >>> 0, 1)\n }\n },\n\n emit(type: string, ...evts: any[]) {\n // eslint-disable-next-line array-callback-return\n ;(all[type] || []).slice().map((handler: Handler) => {\n handler(...evts)\n })\n },\n }\n}\n"],"names":["mitt","all","Object","create","on","type","handler","push","off","splice","indexOf","emit","evts","slice","map"],"mappings":"AAAA;;;;;;;;;;AAUA,GAEA,mFAAmF;AACnF,gDAAgD;AAChD,yCAAyC;;;;+BAUzC,WAAA;;;eAAwBA;;;AAAT,SAASA;IACtB,MAAMC,MAAkCC,OAAOC,MAAM,CAAC;IAEtD,OAAO;QACLC,IAAGC,IAAY,EAAEC,OAAgB;;YAC7BL,CAAAA,GAAG,CAACI,KAAK,IAAKJ,CAAAA,GAAG,CAACI,KAAK,GAAG,EAAC,CAAC,EAAGE,IAAI,CAACD;QACxC;QAEAE,KAAIH,IAAY,EAAEC,OAAgB;YAChC,IAAIL,GAAG,CAACI,KAAK,EAAE;gBACbJ,GAAG,CAACI,KAAK,CAACI,MAAM,CAACR,GAAG,CAACI,KAAK,CAACK,OAAO,CAACJ,aAAa,GAAG;YACrD;QACF;QAEAK,MAAKN,IAAY,EAAE,GAAGO,IAAW;YAC/B,iDAAiD;;YAC/CX,CAAAA,GAAG,CAACI,KAAK,IAAI,EAAC,EAAGQ,KAAK,GAAGC,GAAG,CAAC,CAACR;gBAC9BA,WAAWM;YACb;QACF;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 1404, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/modern-browserslist-target.js"],"sourcesContent":["// 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"],"names":["MODERN_BROWSERSLIST_TARGET","module","exports"],"mappings":"AAAA,oFAAoF;AACpF,kEAAkE;AAElE;;;CAGC,GACD,MAAMA,6BAA6B;IACjC;IACA;IACA;IACA;CACD;AAEDC,OAAOC,OAAO,GAAGF","ignoreList":[0]}},
{"offset": {"line": 1420, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/normalized-asset-prefix.ts"],"sourcesContent":["export function normalizedAssetPrefix(assetPrefix: string | undefined): string {\n // remove all leading slashes and trailing slashes\n const escapedAssetPrefix = assetPrefix?.replace(/^\\/+|\\/+$/g, '') || false\n\n // if an assetPrefix was '/', we return empty string\n // because it could be an unnecessary trailing slash\n if (!escapedAssetPrefix) {\n return ''\n }\n\n if (URL.canParse(escapedAssetPrefix)) {\n const url = new URL(escapedAssetPrefix).toString()\n return url.endsWith('/') ? url.slice(0, -1) : url\n }\n\n // assuming assetPrefix here is a pathname-style,\n // restore the leading slash\n return `/${escapedAssetPrefix}`\n}\n"],"names":["normalizedAssetPrefix","assetPrefix","escapedAssetPrefix","replace","URL","canParse","url","toString","endsWith","slice"],"mappings":";;;+BAAgBA,yBAAAA;;;eAAAA;;;AAAT,SAASA,sBAAsBC,WAA+B;IACnE,kDAAkD;IAClD,MAAMC,qBAAqBD,aAAaE,QAAQ,cAAc,OAAO;IAErE,oDAAoD;IACpD,oDAAoD;IACpD,IAAI,CAACD,oBAAoB;QACvB,OAAO;IACT;IAEA,IAAIE,IAAIC,QAAQ,CAACH,qBAAqB;QACpC,MAAMI,MAAM,IAAIF,IAAIF,oBAAoBK,QAAQ;QAChD,OAAOD,IAAIE,QAAQ,CAAC,OAAOF,IAAIG,KAAK,CAAC,GAAG,CAAC,KAAKH;IAChD;IAEA,iDAAiD;IACjD,4BAA4B;IAC5B,OAAO,CAAC,CAAC,EAAEJ,oBAAoB;AACjC","ignoreList":[0]}},
{"offset": {"line": 1449, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/denormalize-page-path.ts"],"sourcesContent":["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"],"names":["denormalizePagePath","page","_page","normalizePathSep","startsWith","isDynamicRoute","slice"],"mappings":";;;+BAWgBA,uBAAAA;;;eAAAA;;;uBAXe;kCACE;AAU1B,SAASA,oBAAoBC,IAAY;IAC9C,IAAIC,QAAQC,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACF;IAC7B,OAAOC,MAAME,UAAU,CAAC,cAAc,CAACC,CAAAA,GAAAA,OAAAA,cAAc,EAACH,SAClDA,MAAMI,KAAK,CAAC,KACZJ,UAAU,WACRA,QACA;AACR","ignoreList":[0]}},
{"offset": {"line": 1468, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/ensure-leading-slash.ts"],"sourcesContent":["/**\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"],"names":["ensureLeadingSlash","path","startsWith"],"mappings":"AAAA;;;CAGC;;;+BACeA,sBAAAA;;;eAAAA;;;AAAT,SAASA,mBAAmBC,IAAY;IAC7C,OAAOA,KAAKC,UAAU,CAAC,OAAOD,OAAO,CAAC,CAAC,EAAEA,MAAM;AACjD","ignoreList":[0]}},
{"offset": {"line": 1487, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/normalize-path-sep.ts"],"sourcesContent":["/**\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"],"names":["normalizePathSep","path","replace"],"mappings":"AAAA;;;;CAIC;;;+BACeA,oBAAAA;;;eAAAA;;;AAAT,SAASA,iBAAiBC,IAAY;IAC3C,OAAOA,KAAKC,OAAO,CAAC,OAAO;AAC7B","ignoreList":[0]}},
{"offset": {"line": 1507, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\nimport type { NextRouter } from './router/router'\n\nexport const RouterContext = React.createContext<NextRouter | null>(null)\n\nif (process.env.NODE_ENV !== 'production') {\n RouterContext.displayName = 'RouterContext'\n}\n"],"names":["RouterContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAKIG,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAFhBL,iBAAAA;;;eAAAA;;;;gEAHK;AAGX,MAAMA,gBAAgBC,OAAAA,OAAK,CAACC,aAAa,CAAoB;AAEpE,wCAA2C;IACzCF,cAAcM,WAAW,GAAG;AAC9B","ignoreList":[0]}},
{"offset": {"line": 1528, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/adapters.tsx"],"sourcesContent":["import type { AppRouterInstance } from '../app-router-context.shared-runtime'\nimport type { Params } from '../../../server/request/params'\nimport type { NextRouter } from './router'\n\nimport React, { useMemo, useRef } from 'react'\nimport { PathnameContext } from '../hooks-client-context.shared-runtime'\nimport { isDynamicRoute } from './utils'\nimport { asPathToSearchParams } from './utils/as-path-to-search-params'\nimport { getRouteRegex } from './utils/route-regex'\n\n/** It adapts a Pages Router (`NextRouter`) to the App Router Instance. */\nexport function adaptForAppRouterInstance(\n pagesRouter: NextRouter\n): AppRouterInstance {\n return {\n back() {\n pagesRouter.back()\n },\n forward() {\n pagesRouter.forward()\n },\n refresh() {\n pagesRouter.reload()\n },\n hmrRefresh() {},\n push(href, { scroll } = {}) {\n void pagesRouter.push(href, undefined, { scroll })\n },\n replace(href, { scroll } = {}) {\n void pagesRouter.replace(href, undefined, { scroll })\n },\n prefetch(href) {\n void pagesRouter.prefetch(href)\n },\n // The bfcacheId concept is App Router-only. Surfaced as a stable\n // placeholder so consumers using this adapter don't crash.\n bfcacheId: '0',\n }\n}\n\n/**\n * adaptForSearchParams transforms the ParsedURLQuery into URLSearchParams.\n *\n * @param router the router that contains the query.\n * @returns the search params in the URLSearchParams format\n */\nexport function adaptForSearchParams(\n router: Pick<NextRouter, 'isReady' | 'query' | 'asPath'>\n): URLSearchParams {\n if (!router.isReady || !router.query) {\n return new URLSearchParams()\n }\n\n return asPathToSearchParams(router.asPath)\n}\n\nexport function adaptForPathParams(\n router: Pick<NextRouter, 'isReady' | 'pathname' | 'query' | 'asPath'>\n): Params | null {\n if (!router.isReady || !router.query) {\n return null\n }\n const pathParams: Params = {}\n const routeRegex = getRouteRegex(router.pathname)\n const keys = Object.keys(routeRegex.groups)\n for (const key of keys) {\n pathParams[key] = router.query[key]!\n }\n return pathParams\n}\n\nexport function PathnameContextProviderAdapter({\n children,\n router,\n ...props\n}: React.PropsWithChildren<{\n router: Pick<NextRouter, 'pathname' | 'asPath' | 'isReady' | 'isFallback'>\n isAutoExport: boolean\n}>) {\n const ref = useRef(props.isAutoExport)\n const value = useMemo(() => {\n // isAutoExport is only ever `true` on the first render from the server,\n // so reset it to `false` after we read it for the first time as `true`. If\n // we don't use the value, then we don't need it.\n const isAutoExport = ref.current\n if (isAutoExport) {\n ref.current = false\n }\n\n // When the route is a dynamic route, we need to do more processing to\n // determine if we need to stop showing the pathname.\n if (isDynamicRoute(router.pathname)) {\n // When the router is rendering the fallback page, it can't possibly know\n // the path, so return `null` here. Read more about fallback pages over\n // at:\n // https://nextjs.org/docs/api-reference/data-fetching/get-static-paths#fallback-pages\n if (router.isFallback) {\n return null\n }\n\n // When `isAutoExport` is true, meaning this is a page page has been\n // automatically statically optimized, and the router is not ready, then\n // we can't know the pathname yet. Read more about automatic static\n // optimization at:\n // https://nextjs.org/docs/advanced-features/automatic-static-optimization\n if (isAutoExport && !router.isReady) {\n return null\n }\n }\n\n // The `router.asPath` contains the pathname seen by the browser (including\n // any query strings), so it should have that stripped. Read more about the\n // `asPath` option over at:\n // https://nextjs.org/docs/api-reference/next/router#router-object\n let url: URL\n try {\n url = new URL(router.asPath, 'http://f')\n } catch (_) {\n // fallback to / for invalid asPath values e.g. //\n return '/'\n }\n\n return url.pathname\n }, [router.asPath, router.isFallback, router.isReady, router.pathname])\n\n return (\n <PathnameContext.Provider value={value}>\n {children}\n </PathnameContext.Provider>\n )\n}\n"],"names":["PathnameContextProviderAdapter","adaptForAppRouterInstance","adaptForPathParams","adaptForSearchParams","pagesRouter","back","forward","refresh","reload","hmrRefresh","push","href","scroll","undefined","replace","prefetch","bfcacheId","router","isReady","query","URLSearchParams","asPathToSearchParams","asPath","pathParams","routeRegex","getRouteRegex","pathname","keys","Object","groups","key","children"Line truncated
{"offset": {"line": 1668, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/router.ts"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { DomainLocale } from '../../../server/config'\nimport type { MittEmitter } from '../mitt'\nimport type { ParsedUrlQuery } from 'querystring'\nimport type { RouterEvent } from '../../../client/router'\nimport type { StyleSheetTuple } from '../../../client/page-loader'\nimport type { UrlObject } from 'url'\nimport type PageLoader from '../../../client/page-loader'\nimport type { AppContextType, NextPageContext, NEXT_DATA } from '../utils'\nimport { removeTrailingSlash } from './utils/remove-trailing-slash'\nimport {\n getClientBuildManifest,\n isAssetError,\n markAssetError,\n} from '../../../client/route-loader'\nimport { handleClientScriptLoad } from '../../../client/script'\nimport isError, { getProperError } from '../../../lib/is-error'\nimport { denormalizePagePath } from '../page-path/denormalize-page-path'\nimport { normalizeLocalePath } from '../i18n/normalize-locale-path'\nimport mitt from '../mitt'\nimport { getLocationOrigin, getURL, loadGetInitialProps, ST } from '../utils'\nimport { isDynamicRoute } from './utils/is-dynamic'\nimport { parseRelativeUrl } from './utils/parse-relative-url'\nimport { getRouteMatcher } from './utils/route-matcher'\nimport { getRouteRegex } from './utils/route-regex'\nimport { hasDynamicFilterCandidate } from './utils/dynamic-filter-pattern'\nimport { formatWithValidation } from './utils/format-url'\nimport { detectDomainLocale } from '../../../client/detect-domain-locale'\nimport { parsePath } from './utils/parse-path'\nimport { addLocale } from '../../../client/add-locale'\nimport { removeLocale } from '../../../client/remove-locale'\nimport { removeBasePath } from '../../../client/remove-base-path'\nimport { addBasePath } from '../../../client/add-base-path'\nimport { hasBasePath } from '../../../client/has-base-path'\nimport { resolveHref } from '../../../client/resolve-href'\nimport { isAPIRoute } from '../../../lib/is-api-route'\nimport { getNextPathnameInfo } from './utils/get-next-pathname-info'\nimport { formatNextPathnameInfo } from './utils/format-next-pathname-info'\nimport { compareRouterStates } from './utils/compare-states'\nimport { isLocalURL } from './utils/is-local-url'\nimport { isBot } from './utils/is-bot'\nimport { omit } from './utils/omit'\nimport { interpolateAs } from './utils/interpolate-as'\nimport { disableSmoothScrollDuringRouteTransition } from './utils/disable-smooth-scroll'\nimport type { Params } from '../../../server/request/params'\nimport {\n MATCHED_PATH_HEADER,\n NEXT_NAV_DEPLOYMENT_ID_HEADER,\n} from '../../../lib/constants'\nimport { getDeploymentId } from '../deployment-id'\nimport { isJavaScriptURLString } from '../../../client/lib/javascript-url'\n\nlet resolveRewrites: typeof import('./utils/resolve-rewrites').default\nif (process.env.__NEXT_HAS_REWRITES) {\n resolveRewrites = (\n require('./utils/resolve-rewrites') as typeof import('./utils/resolve-rewrites')\n ).default\n}\n\ndeclare global {\n interface Window {\n /* prod */\n __NEXT_DATA__: NEXT_DATA\n }\n}\n\ninterface RouteProperties {\n shallow: boolean\n}\n\ninterface TransitionOptions {\n shallow?: boolean\n locale?: string | false\n scroll?: boolean\n unstable_skipClientCache?: boolean\n}\n\ninterface NextHistoryState {\n url: string\n as: string\n options: TransitionOptions\n}\n\nexport type HistoryState =\n | null\n | { __NA: true; __N?: false }\n | { __N: false; __NA?: false }\n | ({ __NA?: false; __N: true; key: string } & NextHistoryState)\n\nfunction buildCancellationError() {\n return Object.assign(new Error('Route Cancelled'), {\n cancelled: true,\n })\n}\n\ninterface MiddlewareEffectParams<T extends FetchDataOutput> {\n fetchData?: () => Promise<T>\n locale?: string\n asPath: string\n router: Router\n}\n\nexport async function matchesMiddleware<T extends FetchDataOutput>(\n options: MiddlewareEffectParams<T>\n): Promise<boolean> {\n const matchers = await Promise.resolve(\n options.router.pageLoader.getMiddleware()\n )\n if (!matchers) return false\n\n const { pathname: asPathname } = parsePath(options.asPath)\n // remove basePath first since path prefix has to be in the order of `/${basePath}/${locale}`\n const cleanedAs = hasBasePath(asPathname)\n ? removeBasePath(asPathname)\n : asPathname\n const asWithBasePathAndLocale = addBasePath(\n addLocale(cleanedAs, options.locale)\n )\n\n // Check only path match on client. Matching \"has\" should be done on server\n // where we can access more info such as headers, HttpOnly cookie, etc.\n return matchers.some((m) =>\n new RegExp(m.regexp).test(asWithBasePathAndLocale)\n )\n}\n\nfunction stripOrigin(url: string) {\n const origin = getLocationOrigin()\n\n return url.startsWith(origin) ? url.substring(oriLine truncated
{"offset": {"line": 3300, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/routes/app.ts"],"sourcesContent":["import { InvariantError } from '../../invariant-error'\nimport { getSegmentParam, type SegmentParam } from '../utils/get-segment-param'\nimport {\n INTERCEPTION_ROUTE_MARKERS,\n type InterceptionMarker,\n} from '../utils/interception-routes'\n\nexport type RouteGroupAppRouteSegment = {\n type: 'route-group'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type ParallelRouteAppRouteSegment = {\n type: 'parallel-route'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type StaticAppRouteSegment = {\n type: 'static'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type DynamicAppRouteSegment = {\n type: 'dynamic'\n name: string\n param: SegmentParam\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\n/**\n * Represents a single segment in a route path.\n * Can be either static (e.g., \"blog\") or dynamic (e.g., \"[slug]\").\n */\nexport type AppRouteSegment =\n | StaticAppRouteSegment\n | DynamicAppRouteSegment\n | RouteGroupAppRouteSegment\n | ParallelRouteAppRouteSegment\n\nexport type NormalizedAppRouteSegment =\n | StaticAppRouteSegment\n | DynamicAppRouteSegment\n\nfunction normalizeEncodedDynamicPlaceholder(segment: string): string {\n if (!/%5b|%5d/i.test(segment)) {\n return segment\n }\n\n try {\n const decodedSegment = decodeURIComponent(segment)\n return getSegmentParam(decodedSegment) ? decodedSegment : segment\n } catch {\n return segment\n }\n}\n\nexport function parseAppRouteSegment(segment: string): AppRouteSegment | null {\n if (segment === '') {\n return null\n }\n\n // Check if the segment starts with an interception marker\n const interceptionMarker = INTERCEPTION_ROUTE_MARKERS.find((m) =>\n segment.startsWith(m)\n )\n\n const param = getSegmentParam(segment)\n if (param) {\n return {\n type: 'dynamic',\n name: segment,\n param,\n interceptionMarker,\n }\n } else if (segment.startsWith('(') && segment.endsWith(')')) {\n return {\n type: 'route-group',\n name: segment,\n interceptionMarker,\n }\n } else if (segment.startsWith('@')) {\n return {\n type: 'parallel-route',\n name: segment,\n interceptionMarker,\n }\n } else {\n return {\n type: 'static',\n name: segment,\n interceptionMarker,\n }\n }\n}\n\nexport type AppRoute = {\n normalized: boolean\n pathname: string\n segments: AppRouteSegment[]\n dynamicSegments: DynamicAppRouteSegment[]\n interceptionMarker: InterceptionMarker | undefined\n interceptingRoute: AppRoute | undefined\n interceptedRoute: AppRoute | undefined\n}\n\nexport type NormalizedAppRoute = Omit<AppRoute, 'normalized' | 'segments'> & {\n normalized: true\n segments: NormalizedAppRouteSegment[]\n}\n\nexport function isNormalizedAppRoute(\n route: InterceptionAppRoute\n): route is NormalizedInterceptionAppRoute\nexport function isNormalizedAppRoute(\n route: AppRoute | InterceptionAppRoute\n): route is NormalizedAppRoute {\n return route.normalized\n}\n\nexport type InterceptionAppRoute = Omit<\n AppRoute,\n 'interceptionMarker' | 'interceptingRoute' | 'interceptedRoute'\n> & {\n interceptionMarker: InterceptionMarker\n interceptingRoute: AppRoute\n interceptedRoute: AppRoute\n}\n\nexport type NormalizedInterceptionAppRoute = Omit<\n InterceptionAppRoute,\n | 'normalized'\n | 'segments'\n | 'interceptionMarker'\n | 'interceptingRoute'\n | 'interceptedRoute'\n> & {\n normalized: true\n segments: NormalizedAppRouteSegment[]\n interceptionMarker: InterceptionMarker\n interceptingRoute: NormalizedAppRoute\n interceptedRoute: NormalizedAppRoute\n}\n\nexport function isInterceptionAppRoute(\n route: NormalizedAppRoute\n): route is NormalizedInterceptionAppRoute\nexport function isInterceptionAppRoute(\n route: AppRoute\n): route is InterceptionAppRoute {\n return (\n route.interceptionMarker !== undefined &&\n route.interceptingRoute !== undefined &&\n route.interceptedRoute !== undefined\n )\n}\n\n// Bitmask for which non-URL segment types to allow during parsing.\n// By default, route groups and parallel routes are rejected because\n// they should have been stripped by normalizeAppPath. These flags\n// let callers opt in to allowing specific types.\nconst OnlyRoutableSegments = /* */ 0b00\nconst AllowParallelSegments = /* */ 0b01\nconst AllowGroupSegments = /* */ 0b10\n\nfunction parseAppRouteImpl(\Line truncated
{"offset": {"line": 3459, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-locale.ts"],"sourcesContent":["import { addPathPrefix } from './add-path-prefix'\nimport { pathHasPrefix } from './path-has-prefix'\n\n/**\n * For a given path and a locale, if the locale is given, it will prefix the\n * locale. The path shouldn't be an API path. If a default locale is given the\n * prefix will be omitted if the locale is already the default locale.\n */\nexport function addLocale(\n path: string,\n locale?: string | false,\n defaultLocale?: string,\n ignorePrefix?: boolean\n) {\n // If no locale was given or the locale is the default locale, we don't need\n // to prefix the path.\n if (!locale || locale === defaultLocale) return path\n\n const lower = path.toLowerCase()\n\n // If the path is an API path or the path already has the locale prefix, we\n // don't need to prefix the path.\n if (!ignorePrefix) {\n if (pathHasPrefix(lower, '/api')) return path\n if (pathHasPrefix(lower, `/${locale.toLowerCase()}`)) return path\n }\n\n // Add the locale prefix to the path.\n return addPathPrefix(path, `/${locale}`)\n}\n"],"names":["addLocale","path","locale","defaultLocale","ignorePrefix","lower","toLowerCase","pathHasPrefix","addPathPrefix"],"mappings":";;;+BAQgBA,aAAAA;;;eAAAA;;;+BARc;+BACA;AAOvB,SAASA,UACdC,IAAY,EACZC,MAAuB,EACvBC,aAAsB,EACtBC,YAAsB;IAEtB,4EAA4E;IAC5E,sBAAsB;IACtB,IAAI,CAACF,UAAUA,WAAWC,eAAe,OAAOF;IAEhD,MAAMI,QAAQJ,KAAKK,WAAW;IAE9B,2EAA2E;IAC3E,iCAAiC;IACjC,IAAI,CAACF,cAAc;QACjB,IAAIG,CAAAA,GAAAA,eAAAA,aAAa,EAACF,OAAO,SAAS,OAAOJ;QACzC,IAAIM,CAAAA,GAAAA,eAAAA,aAAa,EAACF,OAAO,CAAC,CAAC,EAAEH,OAAOI,WAAW,IAAI,GAAG,OAAOL;IAC/D;IAEA,qCAAqC;IACrC,OAAOO,CAAAA,GAAAA,eAAAA,aAAa,EAACP,MAAM,CAAC,CAAC,EAAEC,QAAQ;AACzC","ignoreList":[0]}},
{"offset": {"line": 3488, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-path-prefix.ts"],"sourcesContent":["import { parsePath } from './parse-path'\n\n/**\n * Adds the provided prefix to the given path. It first ensures that the path\n * is indeed starting with a slash.\n */\nexport function addPathPrefix(path: string, prefix?: string) {\n if (!path.startsWith('/') || !prefix) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n return `${prefix}${pathname}${query}${hash}`\n}\n"],"names":["addPathPrefix","path","prefix","startsWith","pathname","query","hash","parsePath"],"mappings":";;;+BAMgBA,iBAAAA;;;eAAAA;;;2BANU;AAMnB,SAASA,cAAcC,IAAY,EAAEC,MAAe;IACzD,IAAI,CAACD,KAAKE,UAAU,CAAC,QAAQ,CAACD,QAAQ;QACpC,OAAOD;IACT;IAEA,MAAM,EAAEG,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACN;IAC5C,OAAO,GAAGC,SAASE,WAAWC,QAAQC,MAAM;AAC9C","ignoreList":[0]}},
{"offset": {"line": 3509, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-path-suffix.ts"],"sourcesContent":["import { parsePath } from './parse-path'\n\n/**\n * Similarly to `addPathPrefix`, this function adds a suffix at the end on the\n * provided path. It also works only for paths ensuring the argument starts\n * with a slash.\n */\nexport function addPathSuffix(path: string, suffix?: string) {\n if (!path.startsWith('/') || !suffix) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n return `${pathname}${suffix}${query}${hash}`\n}\n"],"names":["addPathSuffix","path","suffix","startsWith","pathname","query","hash","parsePath"],"mappings":";;;+BAOgBA,iBAAAA;;;eAAAA;;;2BAPU;AAOnB,SAASA,cAAcC,IAAY,EAAEC,MAAe;IACzD,IAAI,CAACD,KAAKE,UAAU,CAAC,QAAQ,CAACD,QAAQ;QACpC,OAAOD;IACT;IAEA,MAAM,EAAEG,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACN;IAC5C,OAAO,GAAGG,WAAWF,SAASG,QAAQC,MAAM;AAC9C","ignoreList":[0]}},
{"offset": {"line": 3530, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/app-paths.ts"],"sourcesContent":["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"],"names":["compareAppPaths","normalizeAppPath","normalizeRscURL","route","ensureLeadingSlash","split","reduce","pathname","segment","index","segments","isGroupSegment","length","a","b","aHasSlot","includes","bHasSlot","localeCompare","url","replace"],"mappings":";;;;;;;;;;;;;;;IA+DgBA,eAAe,EAAA;eAAfA;;IAzCAC,gBAAgB,EAAA;eAAhBA;;IAqDAC,eAAe,EAAA;eAAfA;;;oCA3EmB;yBACJ;AAqBxB,SAASD,iBAAiBE,KAAa;IAC5C,OAAOC,CAAAA,GAAAA,oBAAAA,kBAAkB,EACvBD,MAAME,KAAK,CAAC,KAAKC,MAAM,CAAC,CAACC,UAAUC,SAASC,OAAOC;QACjD,8BAA8B;QAC9B,IAAI,CAACF,SAAS;YACZ,OAAOD;QACT;QAEA,sBAAsB;QACtB,IAAII,CAAAA,GAAAA,SAAAA,cAAc,EAACH,UAAU;YAC3B,OAAOD;QACT;QAEA,iCAAiC;QACjC,IAAIC,OAAO,CAAC,EAAE,KAAK,KAAK;YACtB,OAAOD;QACT;QAEA,uDAAuD;QACvD,IACGC,CAAAA,YAAY,UAAUA,YAAY,OAAM,KACzCC,UAAUC,SAASE,MAAM,GAAG,GAC5B;YACA,OAAOL;QACT;QAEA,OAAO,GAAGA,SAAS,CAAC,EAAEC,SAAS;IACjC,GAAG;AAEP;AAYO,SAASR,gBAAgBa,CAAS,EAAEC,CAAS;IAClD,MAAMC,WAAWF,EAAEG,QAAQ,CAAC;IAC5B,MAAMC,WAAWH,EAAEE,QAAQ,CAAC;IAC5B,IAAID,YAAY,CAACE,UAAU,OAAO,CAAC;IACnC,IAAI,CAACF,YAAYE,UAAU,OAAO;IAClC,OAAOJ,EAAEK,aAAa,CAACJ;AACzB;AAMO,SAASZ,gBAAgBiB,GAAW;IACzC,OAAOA,IAAIC,OAAO,CAChB,eACA,AACA,8BAD8B;AAGlC","ignoreList":[0]}},
{"offset": {"line": 3592, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/as-path-to-search-params.ts"],"sourcesContent":["// Convert router.asPath to a URLSearchParams object\n// example: /dynamic/[slug]?foo=bar -> { foo: 'bar' }\nexport function asPathToSearchParams(asPath: string): URLSearchParams {\n return new URL(asPath, 'http://n').searchParams\n}\n"],"names":["asPathToSearchParams","asPath","URL","searchParams"],"mappings":"AAAA,oDAAoD;AACpD,qDAAqD;;;;+BACrCA,wBAAAA;;;eAAAA;;;AAAT,SAASA,qBAAqBC,MAAc;IACjD,OAAO,IAAIC,IAAID,QAAQ,YAAYE,YAAY;AACjD","ignoreList":[0]}},
{"offset": {"line": 3610, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/compare-states.ts"],"sourcesContent":["import type { default as Router } from '../router'\n\nexport function compareRouterStates(a: Router['state'], b: Router['state']) {\n const stateKeys = Object.keys(a)\n if (stateKeys.length !== Object.keys(b).length) return false\n\n for (let i = stateKeys.length; i--; ) {\n const key = stateKeys[i]\n if (key === 'query') {\n const queryKeys = Object.keys(a.query)\n if (queryKeys.length !== Object.keys(b.query).length) {\n return false\n }\n for (let j = queryKeys.length; j--; ) {\n const queryKey = queryKeys[j]\n if (\n !b.query.hasOwnProperty(queryKey) ||\n a.query[queryKey] !== b.query[queryKey]\n ) {\n return false\n }\n }\n } else if (\n !b.hasOwnProperty(key) ||\n a[key as keyof Router['state']] !== b[key as keyof Router['state']]\n ) {\n return false\n }\n }\n\n return true\n}\n"],"names":["compareRouterStates","a","b","stateKeys","Object","keys","length","i","key","queryKeys","query","j","queryKey","hasOwnProperty"],"mappings":";;;+BAEgBA,uBAAAA;;;eAAAA;;;AAAT,SAASA,oBAAoBC,CAAkB,EAAEC,CAAkB;IACxE,MAAMC,YAAYC,OAAOC,IAAI,CAACJ;IAC9B,IAAIE,UAAUG,MAAM,KAAKF,OAAOC,IAAI,CAACH,GAAGI,MAAM,EAAE,OAAO;IAEvD,IAAK,IAAIC,IAAIJ,UAAUG,MAAM,EAAEC,KAAO;QACpC,MAAMC,MAAML,SAAS,CAACI,EAAE;QACxB,IAAIC,QAAQ,SAAS;YACnB,MAAMC,YAAYL,OAAOC,IAAI,CAACJ,EAAES,KAAK;YACrC,IAAID,UAAUH,MAAM,KAAKF,OAAOC,IAAI,CAACH,EAAEQ,KAAK,EAAEJ,MAAM,EAAE;gBACpD,OAAO;YACT;YACA,IAAK,IAAIK,IAAIF,UAAUH,MAAM,EAAEK,KAAO;gBACpC,MAAMC,WAAWH,SAAS,CAACE,EAAE;gBAC7B,IACE,CAACT,EAAEQ,KAAK,CAACG,cAAc,CAACD,aACxBX,EAAES,KAAK,CAACE,SAAS,KAAKV,EAAEQ,KAAK,CAACE,SAAS,EACvC;oBACA,OAAO;gBACT;YACF;QACF,OAAO,IACL,CAACV,EAAEW,cAAc,CAACL,QAClBP,CAAC,CAACO,IAA6B,KAAKN,CAAC,CAACM,IAA6B,EACnE;YACA,OAAO;QACT;IACF;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 3645, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/disable-smooth-scroll.ts"],"sourcesContent":["/**\n * Run function with `scroll-behavior: auto` applied to `<html/>`.\n * This css change will be reverted after the function finishes.\n */\nexport function disableSmoothScrollDuringRouteTransition(\n fn: () => void,\n options: { dontForceLayout?: boolean; onlyHashChange?: boolean } = {}\n) {\n // if only the hash is changed, we don't need to disable smooth scrolling\n // we only care to prevent smooth scrolling when navigating to a new page to avoid jarring UX\n if (options.onlyHashChange) {\n fn()\n return\n }\n\n const htmlElement = document.documentElement\n const hasDataAttribute = htmlElement.dataset.scrollBehavior === 'smooth'\n\n if (!hasDataAttribute) {\n // Warn if smooth scrolling is detected but no data attribute is present\n if (\n process.env.NODE_ENV === 'development' &&\n getComputedStyle(htmlElement).scrollBehavior === 'smooth'\n ) {\n const { warnOnce } =\n require('../../utils/warn-once') as typeof import('../../utils/warn-once')\n warnOnce(\n 'Detected `scroll-behavior: smooth` on the `<html>` element. To disable smooth scrolling during route transitions, ' +\n 'add `data-scroll-behavior=\"smooth\"` to your <html> element. ' +\n 'Learn more: https://nextjs.org/docs/messages/missing-data-scroll-behavior'\n )\n }\n // No smooth scrolling configured, run directly without style manipulation\n fn()\n return\n }\n\n // Proceed with temporarily disabling smooth scrolling\n const existing = htmlElement.style.scrollBehavior\n htmlElement.style.scrollBehavior = 'auto'\n if (!options.dontForceLayout) {\n // In Chrome-based browsers we need to force reflow before calling `scrollTo`.\n // Otherwise it will not pickup the change in scrollBehavior\n // More info here: https://github.com/vercel/next.js/issues/40719#issuecomment-1336248042\n htmlElement.getClientRects()\n }\n fn()\n htmlElement.style.scrollBehavior = existing\n}\n"],"names":["disableSmoothScrollDuringRouteTransition","fn","options","onlyHashChange","htmlElement","document","documentElement","hasDataAttribute","dataset","scrollBehavior","process","env","NODE_ENV","getComputedStyle","warnOnce","require","existing","style","dontForceLayout","getClientRects"],"mappings":"AAqBMU,QAAQC,GAAG,CAACC,QAAQ;AArB1B;;;CAGC,GAAA;;;;+BACeZ,4CAAAA;;;eAAAA;;;AAAT,SAASA,yCACdC,EAAc,EACdC,UAAmE,CAAC,CAAC;IAErE,yEAAyE;IACzE,6FAA6F;IAC7F,IAAIA,QAAQC,cAAc,EAAE;QAC1BF;QACA;IACF;IAEA,MAAMG,cAAcC,SAASC,eAAe;IAC5C,MAAMC,mBAAmBH,YAAYI,OAAO,CAACC,cAAc,KAAK;IAEhE,IAAI,CAACF,kBAAkB;QACrB,wEAAwE;QACxE,wDAC2B,iBACzBM,iBAAiBT,aAAaK,cAAc,KAAK,UACjD;YACA,MAAM,EAAEK,QAAQ,EAAE,GAChBC,QAAQ;YACVD,SACE,uHACE,iEACA;QAEN;QACA,0EAA0E;QAC1Eb;QACA;IACF;IAEA,sDAAsD;IACtD,MAAMe,WAAWZ,YAAYa,KAAK,CAACR,cAAc;IACjDL,YAAYa,KAAK,CAACR,cAAc,GAAG;IACnC,IAAI,CAACP,QAAQgB,eAAe,EAAE;QAC5B,8EAA8E;QAC9E,4DAA4D;QAC5D,yFAAyF;QACzFd,YAAYe,cAAc;IAC5B;IACAlB;IACAG,YAAYa,KAAK,CAACR,cAAc,GAAGO;AACrC","ignoreList":[0]}},
{"offset": {"line": 3694, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/dynamic-filter-pattern.ts"],"sourcesContent":["// The client router filter handles app routes that begin with a dynamic segment\n// (e.g. `/[locale]/about`). Such routes have no static prefix to anchor the\n// prefix-based dynamic filter on, so the build-time producer\n// (`createClientRouterFilter`) stores them as a normalized pattern with dynamic\n// segments replaced by the placeholder token below, and the pages router\n// reconstructs matching candidates from the route it resolved a navigation to.\n\n/**\n * A token that can never collide with a real path segment (dynamic segments are\n * always `[name]`, `[...name]`, or `[[...name]]`, and static segments never\n * equal `[]`). Shared with the builder's `normalizeRouteToFilterPattern`.\n */\nexport const DYNAMIC_FILTER_PLACEHOLDER = '[]'\n\n/**\n * Beyond this many dynamic segments the 2^n candidate set is skipped. Real\n * routes never approach this; the cap only guards against pathological input.\n */\nconst MAX_DYNAMIC_SEGMENTS = 8\n\n/**\n * Test whether any app route that could shadow the resolved pages route passes\n * `test` (typically a dynamic-filter membership check). An app route can only\n * win over a matching pages route by turning some of that route's dynamic\n * positions into static segments, so we enumerate keeping each such position\n * either literal (static in the app route) or a placeholder (still dynamic in\n * the app route) and return as soon as one passes.\n *\n * A static route segment pins its position to that literal; every other\n * concrete position is dynamic and thus a candidate for a placeholder. That\n * includes the tail a trailing catch-all (`[...slug]`/`[[...slug]]`) absorbs,\n * which is why a catch-all route legitimately has fewer segments than the path\n * it matched.\n *\n * Order is irrelevant: any match means the path is shadowed, and resolution is\n * handed to the server via a hard navigation regardless of which candidate\n * matched.\n */\nexport function hasDynamicFilterCandidate(\n routePattern: string,\n concretePathname: string,\n test: (candidate: string) => boolean\n): boolean {\n const routeSegments = routePattern.split('/')\n const concreteSegments = concretePathname.split('/')\n\n const lastSegment = routeSegments[routeSegments.length - 1] ?? ''\n const hasCatchAll =\n lastSegment.startsWith('[...') || lastSegment.startsWith('[[...')\n\n // A non-catch-all route always has the same segment count as the path it\n // matched; a mismatch there means the inputs don't line up. A catch-all route\n // legitimately differs because its final param absorbs the remaining\n // segments.\n if (!hasCatchAll && routeSegments.length !== concreteSegments.length) {\n return false\n }\n\n // Collect the concrete positions that are dynamic in the matched route: any\n // position without a static route segment (a dynamic param, or one absorbed\n // by the trailing catch-all).\n const dynamicIndices: number[] = []\n for (let i = 1; i < concreteSegments.length; i++) {\n // An empty concrete segment is not a real path segment (splitting `/`\n // yields a trailing `''`). A trailing optional catch-all matches it by\n // absorbing nothing, so it must not be treated as a dynamic position:\n // otherwise `/` would reconstruct the `/[]` candidate and spuriously match\n // a root-level dynamic app route such as `/[lang]`, which does not own `/`.\n if (concreteSegments[i] === '') {\n continue\n }\n const routeSegment = routeSegments[i]\n const isStaticSegment =\n routeSegment !== undefined && !routeSegment.startsWith('[')\n if (!isStaticSegment) {\n dynamicIndices.push(i)\n }\n }\n\n if (\n dynamicIndices.length === 0 ||\n dynamicIndices.length > MAX_DYNAMIC_SEGMENTS\n ) {\n return false\n }\n\n // Enumerate the keep-literal/placeholder combinations as a bitmask over those\n // positions (a set bit keeps the concrete value, an unset bit is a\n // placeholder). The all-literal combination is skipped: a fully concrete path\n // is a static route, already covered by the static filter and the early\n // prefix check, so it can never appear in the dynamic filter as a pattern.\n const allLiteral = (1 << dynamicIndices.length) - 1\n for (let mask = 0; mask < allLiteral; mask++) {\n const segments = concreteSegments.slice()\n for (let bit = 0; bit < dynamicIndices.length; bit++) {\n if ((mask & (1 << bit)) === 0) {\n segments[dynamicIndices[bit]] = DYNAMIC_FILTER_PLACEHOLDER\n }\n }\n if (test(segments.join('/'))) {\n return true\n }\n }\n\n return false\n}\n"],"names":["DYNAMIC_FILTER_PLACEHOLDER","hasDynamicFilterCandidate","MAX_DYNAMIC_SEGMENTS","routePattern","concretePathname","test","routeSegments","split","concreteSegments","lastSegment","lengtLine truncated
{"offset": {"line": 3787, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/format-next-pathname-info.ts"],"sourcesContent":["import type { NextPathnameInfo } from './get-next-pathname-info'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { addPathPrefix } from './add-path-prefix'\nimport { addPathSuffix } from './add-path-suffix'\nimport { addLocale } from './add-locale'\n\ninterface ExtendedInfo extends NextPathnameInfo {\n defaultLocale?: string\n ignorePrefix?: boolean\n}\n\nexport function formatNextPathnameInfo(info: ExtendedInfo) {\n let pathname = addLocale(\n info.pathname,\n info.locale,\n info.buildId ? undefined : info.defaultLocale,\n info.ignorePrefix\n )\n\n if (info.buildId || !info.trailingSlash) {\n pathname = removeTrailingSlash(pathname)\n }\n\n if (info.buildId) {\n pathname = addPathSuffix(\n addPathPrefix(pathname, `/_next/data/${info.buildId}`),\n info.pathname === '/' ? 'index.json' : '.json'\n )\n }\n\n pathname = addPathPrefix(pathname, info.basePath)\n return !info.buildId && info.trailingSlash\n ? !pathname.endsWith('/')\n ? addPathSuffix(pathname, '/')\n : pathname\n : removeTrailingSlash(pathname)\n}\n"],"names":["formatNextPathnameInfo","info","pathname","addLocale","locale","buildId","undefined","defaultLocale","ignorePrefix","trailingSlash","removeTrailingSlash","addPathSuffix","addPathPrefix","basePath","endsWith"],"mappings":";;;+BAWgBA,0BAAAA;;;eAAAA;;;qCAVoB;+BACN;+BACA;2BACJ;AAOnB,SAASA,uBAAuBC,IAAkB;IACvD,IAAIC,WAAWC,CAAAA,GAAAA,WAAAA,SAAS,EACtBF,KAAKC,QAAQ,EACbD,KAAKG,MAAM,EACXH,KAAKI,OAAO,GAAGC,YAAYL,KAAKM,aAAa,EAC7CN,KAAKO,YAAY;IAGnB,IAAIP,KAAKI,OAAO,IAAI,CAACJ,KAAKQ,aAAa,EAAE;QACvCP,WAAWQ,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACR;IACjC;IAEA,IAAID,KAAKI,OAAO,EAAE;QAChBH,WAAWS,CAAAA,GAAAA,eAAAA,aAAa,EACtBC,CAAAA,GAAAA,eAAAA,aAAa,EAACV,UAAU,CAAC,YAAY,EAAED,KAAKI,OAAO,EAAE,GACrDJ,KAAKC,QAAQ,KAAK,MAAM,eAAe;IAE3C;IAEAA,WAAWU,CAAAA,GAAAA,eAAAA,aAAa,EAACV,UAAUD,KAAKY,QAAQ;IAChD,OAAO,CAACZ,KAAKI,OAAO,IAAIJ,KAAKQ,aAAa,GACtC,CAACP,SAASY,QAAQ,CAAC,OACjBH,CAAAA,GAAAA,eAAAA,aAAa,EAACT,UAAU,OACxBA,WACFQ,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACR;AAC1B","ignoreList":[0]}},
{"offset": {"line": 3815, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/format-url.ts"],"sourcesContent":["// Format function modified from nodejs\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { UrlObject } from 'url'\nimport type { ParsedUrlQuery } from 'querystring'\nimport * as querystring from './querystring'\n\nconst slashedProtocols = /https?|ftp|gopher|file/\n\nexport function formatUrl(urlObj: UrlObject) {\n let { auth, hostname } = urlObj\n let protocol = urlObj.protocol || ''\n let pathname = urlObj.pathname || ''\n let hash = urlObj.hash || ''\n let query = urlObj.query || ''\n let host: string | false = false\n\n auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : ''\n\n if (urlObj.host) {\n host = auth + urlObj.host\n } else if (hostname) {\n host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname)\n if (urlObj.port) {\n host += ':' + urlObj.port\n }\n }\n\n if (query && typeof query === 'object') {\n query = String(querystring.urlQueryToSearchParams(query as ParsedUrlQuery))\n }\n\n let search = urlObj.search || (query && `?${query}`) || ''\n\n if (protocol && !protocol.endsWith(':')) protocol += ':'\n\n if (\n urlObj.slashes ||\n ((!protocol || slashedProtocols.test(protocol)) && host !== false)\n ) {\n host = '//' + (host || '')\n if (pathname && pathname[0] !== '/') pathname = '/' + pathname\n } else if (!host) {\n host = ''\n }\n\n if (hash && hash[0] !== '#') hash = '#' + hash\n if (search && search[0] !== '?') search = '?' + search\n\n pathname = pathname.replace(/[?#]/g, encodeURIComponent)\n search = search.replace('#', '%23')\n\n return `${protocol}${host}${pathname}${search}${hash}`\n}\n\nexport const urlObjectKeys = [\n 'auth',\n 'hash',\n 'host',\n 'hostname',\n 'href',\n 'path',\n 'pathname',\n 'port',\n 'protocol',\n 'query',\n 'search',\n 'slashes',\n]\n\nexport function formatWithValidation(url: UrlObject): string {\n if (process.env.NODE_ENV === 'development') {\n if (url !== null && typeof url === 'object') {\n Object.keys(url).forEach((key) => {\n if (!urlObjectKeys.includes(key)) {\n console.warn(\n `Unknown key passed via urlObject into url.format: ${key}`\n )\n }\n })\n }\n }\n\n return formatUrl(url)\n}\n"],"names":["formatUrl","formatWithValidation","urlObjectKeys","slashedProtocols","urlObj","auth","hostname","protocol","pathname","hash","query","host","encodeURIComponent","replace","indexOf","port","String","querystring","urlQueryToSearchParams","search","endsWith","slashes","test","url","process","env","NODE_ENV","Object","keys","forEach","key","includes","console","warn"],"mappings":"AA0FMwB,QAAQC,GAAG,CAACC,QAAQ,KAAK;AA1F/B,uCAAuC;AACvC,sDAAsD;AACtD,EAAE;AACF,0EAA0E;AAC1E,gEAAgE;AAChE,sEAAsE;AACtE,sEAAsE;AACtE,4EAA4E;AAC5E,qEAAqE;AACrE,wBAAwB;AACxB,EAAE;AACF,0EAA0E;AAC1E,yDAAyD;AACzD,EAAE;AACF,0EAA0E;AAC1E,6DAA6D;AAC7D,4EAA4E;AAC5E,2EAA2E;AAC3E,wEAAwE;AACxE,4EAA4E;AAC5E,yCAAyC;;;;;;;;;;;;;;;;;IAQzB1B,SAAS,EAAA;eAATA;;IA6DAC,oBAAoB,EAAA;eAApBA;;IAfHC,aAAa,EAAA;eAAbA;;;;uEAlDgB;AAE7B,MAAMC,mBAAmB;AAElB,SAASH,UAAUI,MAAiB;IACzC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGF;IACzB,IAAIG,WAAWH,OAAOG,QAAQ,IAAI;IAClC,IAAIC,WAAWJ,OAAOI,QAAQ,IAAI;IAClC,IAAIC,OAAOL,OAAOK,IAAI,IAAI;IAC1B,IAAIC,QAAQN,OAAOM,KAAK,IAAI;IAC5B,IAAIC,OAAuB;IAE3BN,OAAOA,OAAOO,mBAAmBP,MAAMQ,OAAO,CAAC,QAAQ,OAAO,MAAM;IAEpE,IAAIT,OAAOO,IAAI,EAAE;QACfA,OAAON,OAAOD,OAAOO,IAAI;IAC3B,OAAO,IAAIL,UAAU;QACnBK,OAAON,OAAQ,CAAA,CAACC,SAASQ,OAAO,CAAC,OAAO,CAAC,CAAC,EAAER,SAAS,CAAC,CAAC,GAAGA,QAAO;QACjE,IAAIF,OAAOW,IAAI,EAAE;YACfJ,QAAQ,MAAMP,OAAOW,IAAI;QAC3B;IACF;IAEA,IAAIL,SAAS,OAAOA,UAAU,UAAU;QACtCA,QAAQM,OAAOC,aAAYC,sBAAsB,CAACR;IACpD;IAEA,IAAIS,SAASf,OAAOe,MAAM,IAAKT,SAAS,CALine truncated
{"offset": {"line": 3929, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-asset-path-from-route.ts"],"sourcesContent":["// Translates a logical route into its pages asset path (relative from a common prefix)\n// \"asset path\" being its javascript file, data file, prerendered html,...\nexport default function getAssetPathFromRoute(\n route: string,\n ext: string = ''\n): string {\n const path =\n route === '/'\n ? '/index'\n : /^\\/index(\\/|$)/.test(route)\n ? `/index${route}`\n : route\n return path + ext\n}\n"],"names":["getAssetPathFromRoute","route","ext","path","test"],"mappings":"AAAA,uFAAuF;AACvF,0EAA0E;;;;+BAC1E,WAAA;;;eAAwBA;;;AAAT,SAASA,sBACtBC,KAAa,EACbC,MAAc,EAAE;IAEhB,MAAMC,OACJF,UAAU,MACN,WACA,iBAAiBG,IAAI,CAACH,SACpB,CAAC,MAAM,EAAEA,OAAO,GAChBA;IACR,OAAOE,OAAOD;AAChB","ignoreList":[0]}},
{"offset": {"line": 3948, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-dynamic-param.ts"],"sourcesContent":["import type { DynamicParam } from '../../../../server/app-render/app-render'\nimport type { LoaderTree } from '../../../../server/lib/app-dir-module'\nimport type { OpaqueFallbackRouteParams } from '../../../../server/request/fallback-params'\nimport type { Params } from '../../../../server/request/params'\nimport type { DynamicParamTypesShort } from '../../app-router-types'\nimport { InvariantError } from '../../invariant-error'\nimport { parseLoaderTree } from './parse-loader-tree'\nimport { parseNormalizedAppRoute, parseAppRouteSegment } from '../routes/app'\nimport { resolveParamValue } from './resolve-param-value'\n\n/**\n * Gets the value of a param from the params object. This correctly handles the\n * case where the param is a fallback route param and encodes the resulting\n * value.\n *\n * @param interpolatedParams - The params object.\n * @param segmentKey - The key of the segment.\n * @param fallbackRouteParams - The fallback route params.\n * @returns The value of the param.\n */\nfunction getParamValue(\n interpolatedParams: Params,\n segmentKey: string,\n fallbackRouteParams: OpaqueFallbackRouteParams | null\n) {\n let value = interpolatedParams[segmentKey]\n\n if (fallbackRouteParams?.has(segmentKey)) {\n // We know that the fallback route params has the segment key because we\n // checked that above.\n const [searchValue] = fallbackRouteParams.get(segmentKey)!\n value = searchValue\n } else if (Array.isArray(value)) {\n value = value.map((i) => encodeURIComponent(i))\n } else if (typeof value === 'string') {\n value = encodeURIComponent(value)\n }\n\n return value\n}\n\nexport function interpolateParallelRouteParams(\n loaderTree: LoaderTree,\n params: Params,\n pagePath: string,\n fallbackRouteParams: OpaqueFallbackRouteParams | null\n): Params {\n const interpolated = structuredClone(params)\n\n // Stack-based traversal with depth tracking\n const stack: Array<{ tree: LoaderTree; depth: number }> = [\n { tree: loaderTree, depth: 0 },\n ]\n\n // Parse the route from the provided page path.\n const route = parseNormalizedAppRoute(pagePath)\n\n while (stack.length > 0) {\n const { tree, depth } = stack.pop()!\n const { segment, parallelRoutes } = parseLoaderTree(tree)\n\n const appSegment = parseAppRouteSegment(segment)\n\n if (\n appSegment?.type === 'dynamic' &&\n !interpolated.hasOwnProperty(appSegment.param.paramName) &&\n // If the param is in the fallback route params, we don't need to\n // interpolate it because it's already marked as being unknown.\n !fallbackRouteParams?.has(appSegment.param.paramName)\n ) {\n const { paramName, paramType } = appSegment.param\n\n const paramValue = resolveParamValue(\n paramName,\n paramType,\n depth,\n route,\n interpolated\n )\n\n if (paramValue !== undefined) {\n interpolated[paramName] = paramValue\n } else if (paramType !== 'optional-catchall') {\n throw new InvariantError(\n `Could not resolve param value for segment: ${paramName}`\n )\n }\n }\n\n // Calculate next depth - increment if this is not a route group and not empty\n let nextDepth = depth\n if (\n appSegment &&\n appSegment.type !== 'route-group' &&\n appSegment.type !== 'parallel-route'\n ) {\n nextDepth++\n }\n\n // Add all parallel routes to the stack for processing\n for (const parallelRoute of Object.values(parallelRoutes)) {\n stack.push({ tree: parallelRoute, depth: nextDepth })\n }\n }\n\n return interpolated\n}\n\n/**\n *\n * Shared logic on client and server for creating a dynamic param value.\n *\n * This code needs to be shared with the client so it can extract dynamic route\n * params from the URL without a server request.\n *\n * Because everything in this module is sent to the client, we should aim to\n * keep this code as simple as possible. The special case handling for catchall\n * and optional is, alas, unfortunate.\n */\nexport function getDynamicParam(\n interpolatedParams: Params,\n segmentKey: string,\n dynamicParamType: DynamicParamTypesShort,\n fallbackRouteParams: OpaqueFallbackRouteParams | null,\n staticSiblings: readonly string[] | null\n): DynamicParam {\n let value: string | string[] | undefined = getParamValue(\n interpolatedParams,\n segmentKey,\n fallbackRouteParams\n )\n\n // handle the case where an optional catchall does not have a value,\n // e.g. `/dashboard/[[...slug]]` when requesting `/dashboard`\n if (!value || value.length === 0) {\n if (dynamicParamType === 'oc') {\n return {\n param: segmentKey,\n value: null,\n type: dynamicParamType,\n treeSegment: [segmentKLine truncated
{"offset": {"line": 4123, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-next-pathname-info.ts"],"sourcesContent":["import { normalizeLocalePath } from '../../i18n/normalize-locale-path'\nimport { removePathPrefix } from './remove-path-prefix'\nimport { pathHasPrefix } from './path-has-prefix'\nimport type { I18NProvider } from '../../../../server/lib/i18n-provider'\n\nexport interface NextPathnameInfo {\n /**\n * The base path in case the pathname included it.\n */\n basePath?: string\n /**\n * The buildId for when the parsed URL is a data URL. Parsing it can be\n * disabled with the `parseData` option.\n */\n buildId?: string\n /**\n * If there was a locale in the pathname, this will hold its value.\n */\n locale?: string\n /**\n * The processed pathname without a base path, locale, or data URL elements\n * when parsing it is enabled.\n */\n pathname: string\n /**\n * A boolean telling if the pathname had a trailingSlash. This can be only\n * true if trailingSlash is enabled.\n */\n trailingSlash?: boolean\n}\n\ninterface Options {\n /**\n * When passed to true, this function will also parse Nextjs data URLs.\n */\n parseData?: boolean\n /**\n * A partial of the Next.js configuration to parse the URL.\n */\n nextConfig?: {\n basePath?: string\n i18n?: { locales?: readonly string[] } | null\n trailingSlash?: boolean\n }\n\n /**\n * If provided, this normalizer will be used to detect the locale instead of\n * the default locale detection.\n */\n i18nProvider?: I18NProvider\n}\n\nexport function getNextPathnameInfo(\n pathname: string,\n options: Options\n): NextPathnameInfo {\n const { basePath, i18n, trailingSlash } = options.nextConfig ?? {}\n const info: NextPathnameInfo = {\n pathname,\n trailingSlash: pathname !== '/' ? pathname.endsWith('/') : trailingSlash,\n }\n\n if (basePath && pathHasPrefix(info.pathname, basePath)) {\n info.pathname = removePathPrefix(info.pathname, basePath)\n info.basePath = basePath\n }\n let pathnameNoDataPrefix = info.pathname\n\n if (\n info.pathname.startsWith('/_next/data/') &&\n info.pathname.endsWith('.json')\n ) {\n const paths = info.pathname\n .replace(/^\\/_next\\/data\\//, '')\n .replace(/\\.json$/, '')\n .split('/')\n\n const buildId = paths[0]\n info.buildId = buildId\n pathnameNoDataPrefix =\n paths[1] !== 'index' ? `/${paths.slice(1).join('/')}` : '/'\n\n // update pathname with normalized if enabled although\n // we use normalized to populate locale info still\n if (options.parseData === true) {\n info.pathname = pathnameNoDataPrefix\n }\n }\n\n // If provided, use the locale route normalizer to detect the locale instead\n // of the function below.\n if (i18n) {\n let result = options.i18nProvider\n ? options.i18nProvider.analyze(info.pathname)\n : normalizeLocalePath(info.pathname, i18n.locales)\n\n info.locale = result.detectedLocale\n info.pathname = result.pathname ?? info.pathname\n\n if (!result.detectedLocale && info.buildId) {\n result = options.i18nProvider\n ? options.i18nProvider.analyze(pathnameNoDataPrefix)\n : normalizeLocalePath(pathnameNoDataPrefix, i18n.locales)\n\n if (result.detectedLocale) {\n info.locale = result.detectedLocale\n }\n }\n }\n return info\n}\n"],"names":["getNextPathnameInfo","pathname","options","basePath","i18n","trailingSlash","nextConfig","info","endsWith","pathHasPrefix","removePathPrefix","pathnameNoDataPrefix","startsWith","paths","replace","split","buildId","slice","join","parseData","result","i18nProvider","analyze","normalizeLocalePath","locales","locale","detectedLocale"],"mappings":";;;+BAoDgBA,uBAAAA;;;eAAAA;;;qCApDoB;kCACH;+BACH;AAkDvB,SAASA,oBACdC,QAAgB,EAChBC,OAAgB;IAEhB,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,aAAa,EAAE,GAAGH,QAAQI,UAAU,IAAI,CAAC;IACjE,MAAMC,OAAyB;QAC7BN;QACAI,eAAeJ,aAAa,MAAMA,SAASO,QAAQ,CAAC,OAAOH;IAC7D;IAEA,IAAIF,YAAYM,CAAAA,GAAAA,eAAAA,aAAa,EAACF,KAAKN,QAAQ,EAAEE,WAAW;QACtDI,KAAKN,QAAQ,GAAGS,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACH,KAAKN,QAAQ,EAAEE;QAChDI,KAAKJ,QAAQ,GAAGA;IAClB;IACA,IAAIQ,uBAAuBJ,KAAKN,QAAQ;IAExC,IACEM,KAAKN,QAAQ,CAACW,UAAU,CAAC,mBACzBL,KAAKN,QAAQ,CAACO,QAAQ,CAAC,UACvB;QACA,MAAMK,QAAQN,KAAKN,QAAQ,CACxBa,OAAO,CAAC,oBAAoB,IAC5BA,OAAO,CAAC,WAAW,IACnBC,KAAK,CAAC;QAET,MAAMC,UAAUH,KAAK,CAAC,EAAE;QACxBN,KAAKS,OAAO,GAAGA;QACfL,uBACEE,KAAK,CAAC,EAAE,KAAK,UAAU,CAAC,CAAC,EAAEA,MAAMI,KAAK,CAAC,GAAGC,IAAI,CAAC,MAAM,GAAG;QAE1D,sDAAsD;QACtD,kDAAkD;QAClD,IAAIhB,QAAQiB,SAAS,KAAK,MAAM;YAC9BZ,KAAKN,QAAQ,GAAGU;QAClB;IACF;IAEA,4EAA4E;IAC5E,yBAAyB;IACzB,IAAIP,MAAM;QACR,IAAIgB,SAASlB,QAAQmB,YAAY,GAC7BnB,QAAQmB,YAAY,CAACC,OAAO,CAACf,KAAKN,QAAQ,IAC1CsB,CAAAA,GAAAA,qBAAAA,mBAAmB,EAAChB,KAAKN,QAAQ,EAAEG,KAAKoB,OAAO;QAEnDjB,KAAKkB,MAAM,GAAGL,OAAOM,cAAc;QACnCnB,KAAKN,QAAQ,GAAGmB,OAAOnB,QAAQ,IAAIM,KAAKN,QAAQ;QAEhD,IAAI,CLine truncated
{"offset": {"line": 4176, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-segment-param.tsx"],"sourcesContent":["import { INTERCEPTION_ROUTE_MARKERS } from './interception-routes'\nimport type { DynamicParamTypes } from '../../app-router-types'\n\nexport type SegmentParam = {\n paramName: string\n paramType: DynamicParamTypes\n}\n\n/**\n * Parse dynamic route segment to type of parameter\n */\nexport function getSegmentParam(segment: string): SegmentParam | null {\n const interceptionMarker = INTERCEPTION_ROUTE_MARKERS.find((marker) =>\n segment.startsWith(marker)\n )\n\n // if an interception marker is part of the path segment, we need to jump ahead\n // to the relevant portion for param parsing\n if (interceptionMarker) {\n segment = segment.slice(interceptionMarker.length)\n }\n\n if (segment.startsWith('[[...') && segment.endsWith(']]')) {\n return {\n // TODO-APP: Optional catchall does not currently work with parallel routes,\n // so for now aren't handling a potential interception marker.\n paramType: 'optional-catchall',\n paramName: segment.slice(5, -2),\n }\n }\n\n if (segment.startsWith('[...') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker\n ? `catchall-intercepted-${interceptionMarker}`\n : 'catchall',\n paramName: segment.slice(4, -1),\n }\n }\n\n if (segment.startsWith('[') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker\n ? `dynamic-intercepted-${interceptionMarker}`\n : 'dynamic',\n paramName: segment.slice(1, -1),\n }\n }\n\n return null\n}\n\nexport function isCatchAll(\n type: DynamicParamTypes\n): type is\n | 'catchall'\n | 'catchall-intercepted-(..)(..)'\n | 'catchall-intercepted-(.)'\n | 'catchall-intercepted-(..)'\n | 'catchall-intercepted-(...)'\n | 'optional-catchall' {\n return (\n type === 'catchall' ||\n type === 'catchall-intercepted-(..)(..)' ||\n type === 'catchall-intercepted-(.)' ||\n type === 'catchall-intercepted-(..)' ||\n type === 'catchall-intercepted-(...)' ||\n type === 'optional-catchall'\n )\n}\n\nexport function getParamProperties(paramType: DynamicParamTypes): {\n repeat: boolean\n optional: boolean\n} {\n let repeat = false\n let optional = false\n\n switch (paramType) {\n case 'catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n repeat = true\n break\n case 'optional-catchall':\n repeat = true\n optional = true\n break\n case 'dynamic':\n case 'dynamic-intercepted-(..)(..)':\n case 'dynamic-intercepted-(.)':\n case 'dynamic-intercepted-(..)':\n case 'dynamic-intercepted-(...)':\n break\n default:\n paramType satisfies never\n }\n\n return { repeat, optional }\n}\n"],"names":["getParamProperties","getSegmentParam","isCatchAll","segment","interceptionMarker","INTERCEPTION_ROUTE_MARKERS","find","marker","startsWith","slice","length","endsWith","paramType","paramName","type","repeat","optional"],"mappings":";;;;;;;;;;;;;;;IAuEgBA,kBAAkB,EAAA;eAAlBA;;IA5DAC,eAAe,EAAA;eAAfA;;IAyCAC,UAAU,EAAA;eAAVA;;;oCApD2B;AAWpC,SAASD,gBAAgBE,OAAe;IAC7C,MAAMC,qBAAqBC,oBAAAA,0BAA0B,CAACC,IAAI,CAAC,CAACC,SAC1DJ,QAAQK,UAAU,CAACD;IAGrB,+EAA+E;IAC/E,4CAA4C;IAC5C,IAAIH,oBAAoB;QACtBD,UAAUA,QAAQM,KAAK,CAACL,mBAAmBM,MAAM;IACnD;IAEA,IAAIP,QAAQK,UAAU,CAAC,YAAYL,QAAQQ,QAAQ,CAAC,OAAO;QACzD,OAAO;YACL,4EAA4E;YAC5E,8DAA8D;YAC9DC,WAAW;YACXC,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,IAAIN,QAAQK,UAAU,CAAC,WAAWL,QAAQQ,QAAQ,CAAC,MAAM;QACvD,OAAO;YACLC,WAAWR,qBACP,CAAC,qBAAqB,EAAEA,oBAAoB,GAC5C;YACJS,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,IAAIN,QAAQK,UAAU,CAAC,QAAQL,QAAQQ,QAAQ,CAAC,MAAM;QACpD,OAAO;YACLC,WAAWR,qBACP,CAAC,oBAAoB,EAAEA,oBAAoB,GAC3C;YACJS,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,OAAO;AACT;AAEO,SAASP,WACdY,IAAuB;IAQvB,OACEA,SAAS,cACTA,SAAS,mCACTA,SAAS,8BACTA,SAAS,+BACTA,SAAS,gCACTA,SAAS;AAEb;AAEO,SAASd,mBAAmBY,SAA4B;IAI7D,IAAIG,SAAS;IACb,IAAIC,WAAW;IAEf,OAAQJ;QACN,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACHG,SAAS;YACT;QACF,KAAK;YACHA,SAAS;YACTC,WAAW;YACX;QACF,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACH;QACF;YACEJ;IACJ;IAEA,OAAO;QAAEG;QAAQC;IAAS;AAC5B","ignoreList":[0]}},
{"offset": {"line": 4267, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/html-bots.ts"],"sourcesContent":["// This regex contains the bots that we need to do a blocking render for and can't safely stream the response\n// due to how they parse the DOM. For example, they might explicitly check for metadata in the `head` tag, so we can't stream metadata tags after the `head` was sent.\n// Note: The pattern [\\w-]+-Google captures all Google crawlers with \"-Google\" suffix (e.g., Mediapartners-Google, AdsBot-Google, Storebot-Google)\n// as well as crawlers starting with \"Google-\" (e.g., Google-PageRenderer, Google-InspectionTool)\nexport const HTML_LIMITED_BOT_UA_RE =\n /[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i\n"],"names":["HTML_LIMITED_BOT_UA_RE"],"mappings":"AAAA,6GAA6G;AAC7G,sKAAsK;AACtK,kJAAkJ;AAClJ,iGAAiG;;;;+BACpFA,0BAAAA;;;eAAAA;;;AAAN,MAAMA,yBACX","ignoreList":[0]}},
{"offset": {"line": 4285, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/index.ts"],"sourcesContent":["export { getSortedRoutes, getSortedRouteObjects } from './sorted-routes'\nexport { isDynamicRoute } from './is-dynamic'\n"],"names":["getSortedRouteObjects","getSortedRoutes","isDynamicRoute"],"mappings":";;;;;;;;;;;;;;;IAA0BA,qBAAqB,EAAA;eAArBA,cAAAA,qBAAqB;;IAAtCC,eAAe,EAAA;eAAfA,cAAAA,eAAe;;IACfC,cAAc,EAAA;eAAdA,WAAAA,cAAc;;;8BADgC;2BACxB","ignoreList":[0]}},
{"offset": {"line": 4316, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interception-prefix-from-param-type.ts"],"sourcesContent":["import type { DynamicParamTypes } from '../../app-router-types'\n\nexport function interceptionPrefixFromParamType(\n paramType: DynamicParamTypes\n): string | null {\n switch (paramType) {\n case 'catchall-intercepted-(..)(..)':\n case 'dynamic-intercepted-(..)(..)':\n return '(..)(..)'\n case 'catchall-intercepted-(.)':\n case 'dynamic-intercepted-(.)':\n return '(.)'\n case 'catchall-intercepted-(..)':\n case 'dynamic-intercepted-(..)':\n return '(..)'\n case 'catchall-intercepted-(...)':\n case 'dynamic-intercepted-(...)':\n return '(...)'\n case 'catchall':\n case 'dynamic':\n case 'optional-catchall':\n default:\n return null\n }\n}\n"],"names":["interceptionPrefixFromParamType","paramType"],"mappings":";;;+BAEgBA,mCAAAA;;;eAAAA;;;AAAT,SAASA,gCACdC,SAA4B;IAE5B,OAAQA;QACN,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;QACL,KAAK;QACL;YACE,OAAO;IACX;AACF","ignoreList":[0]}},
{"offset": {"line": 4350, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interception-routes.ts"],"sourcesContent":["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"],"names":["INTERCEPTION_ROUTE_MARKERS","extractInterceptionRouteInformation","isInterceptionRouteAppPath","path","split","find","segment","m","startsWith","undefined","interceptingRoute","marker","interceptedRoute","Error","normalizeAppPath","slice","concat","join","splitInterceptingRoute","length"],"mappings":";;;;;;;;;;;;;;;IAGaA,0BAA0B,EAAA;eAA1BA;;IAmCGC,mCAAmC,EAAA;eAAnCA;;IA1BAC,0BAA0B,EAAA;eAA1BA;;;0BAZiB;AAG1B,MAAMF,6BAA6B;IACxC;IACA;IACA;IACA;CACD;AAIM,SAASE,2BAA2BC,IAAY;IACrD,wCAAwC;IACxC,OACEA,KACGC,KAAK,CAAC,KACNC,IAAI,CAAC,CAACC,UACLN,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD,SACtDE;AAEZ;AAiBO,SAASR,oCACdE,IAAY;IAEZ,IAAIO;IACJ,IAAIC;IACJ,IAAIC;IAEJ,KAAK,MAAMN,WAAWH,KAAKC,KAAK,CAAC,KAAM;QACrCO,SAASX,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD;QACnE,IAAII,QAAQ;;YACT,CAACD,mBAAmBE,iBAAiB,GAAGT,KAAKC,KAAK,CAACO,QAAQ;YAC5D;QACF;IACF;IAEA,IAAI,CAACD,qBAAqB,CAACC,UAAU,CAACC,kBAAkB;QACtD,MAAM,OAAA,cAEL,CAFK,IAAIC,MACR,CAAC,4BAA4B,EAAEV,KAAK,iFAAiF,CAAC,GADlH,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEAO,oBAAoBI,CAAAA,GAAAA,UAAAA,gBAAgB,EAACJ,mBAAmB,iDAAiD;;IAEzG,OAAQC;QACN,KAAK;YACH,oIAAoI;YACpI,IALine truncated
{"offset": {"line": 4459, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interpolate-as.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nimport { getRouteMatcher } from './route-matcher'\nimport { getRouteRegex } from './route-regex'\n\nexport function interpolateAs(\n route: string,\n asPathname: string,\n query: ParsedUrlQuery\n) {\n let interpolatedRoute = ''\n\n const dynamicRegex = getRouteRegex(route)\n const dynamicGroups = dynamicRegex.groups\n const dynamicMatches =\n // Try to match the dynamic route against the asPath\n (asPathname !== route ? getRouteMatcher(dynamicRegex)(asPathname) : '') ||\n // Fall back to reading the values from the href\n // TODO: should this take priority; also need to change in the router.\n query\n\n interpolatedRoute = route\n const params = Object.keys(dynamicGroups)\n\n if (\n !params.every((param) => {\n let value = dynamicMatches[param] || ''\n const { repeat, optional } = dynamicGroups[param]\n\n // support single-level catch-all\n // TODO: more robust handling for user-error (passing `/`)\n let replaced = `[${repeat ? '...' : ''}${param}]`\n if (optional) {\n replaced = `${!value ? '/' : ''}[${replaced}]`\n }\n if (repeat && !Array.isArray(value)) value = [value]\n\n return (\n (optional || param in dynamicMatches) &&\n // Interpolate group into data URL if present\n (interpolatedRoute =\n interpolatedRoute!.replace(\n replaced,\n repeat\n ? (value as string[])\n .map(\n // these values should be fully encoded instead of just\n // path delimiter escaped since they are being inserted\n // into the URL and we expect URL encoded segments\n // when parsing dynamic route params\n (segment) => encodeURIComponent(segment)\n )\n .join('/')\n : encodeURIComponent(value as string)\n ) || '/')\n )\n })\n ) {\n interpolatedRoute = '' // did not satisfy all requirements\n\n // n.b. We ignore this error because we handle warning for this case in\n // development in the `<Link>` component directly.\n }\n return {\n params,\n result: interpolatedRoute,\n }\n}\n"],"names":["interpolateAs","route","asPathname","query","interpolatedRoute","dynamicRegex","getRouteRegex","dynamicGroups","groups","dynamicMatches","getRouteMatcher","params","Object","keys","every","param","value","repeat","optional","replaced","Array","isArray","replace","map","segment","encodeURIComponent","join","result"],"mappings":";;;+BAKgBA,iBAAAA;;;eAAAA;;;8BAHgB;4BACF;AAEvB,SAASA,cACdC,KAAa,EACbC,UAAkB,EAClBC,KAAqB;IAErB,IAAIC,oBAAoB;IAExB,MAAMC,eAAeC,CAAAA,GAAAA,YAAAA,aAAa,EAACL;IACnC,MAAMM,gBAAgBF,aAAaG,MAAM;IACzC,MAAMC,iBAEJ,AADA,AACCP,CAAAA,eAAeD,QAAQS,CAAAA,GAAAA,cAAAA,UAD4B,KACb,EAACL,cAAcH,cAAc,EAAC,KACrE,gDAAgD;IAChD,sEAAsE;IACtEC;IAEFC,oBAAoBH;IACpB,MAAMU,SAASC,OAAOC,IAAI,CAACN;IAE3B,IACE,CAACI,OAAOG,KAAK,CAAC,CAACC;QACb,IAAIC,QAAQP,cAAc,CAACM,MAAM,IAAI;QACrC,MAAM,EAAEE,MAAM,EAAEC,QAAQ,EAAE,GAAGX,aAAa,CAACQ,MAAM;QAEjD,iCAAiC;QACjC,0DAA0D;QAC1D,IAAII,WAAW,CAAC,CAAC,EAAEF,SAAS,QAAQ,KAAKF,MAAM,CAAC,CAAC;QACjD,IAAIG,UAAU;YACZC,WAAW,GAAG,CAACH,QAAQ,MAAM,GAAG,CAAC,EAAEG,SAAS,CAAC,CAAC;QAChD;QACA,IAAIF,UAAU,CAACG,MAAMC,OAAO,CAACL,QAAQA,QAAQ;YAACA;SAAM;QAEpD,OACGE,CAAAA,YAAYH,SAASN,cAAa,KACnC,6CAA6C;QAC5CL,CAAAA,oBACCA,kBAAmBkB,OAAO,CACxBH,UACAF,SACKD,MACEO,GAAG,CACF,AACA,uDADuD,AACA;QACvD,kDAAkD;QAClD,oCAAoC;QACpC,CAACC,UAAYC,mBAAmBD,UAEjCE,IAAI,CAAC,OACRD,mBAAmBT,WACpB,GAAE;IAEb,IACA;QACAZ,oBAAoB,GAAG,mCAAmC;;IAE1D,uEAAuE;IACvE,kDAAkD;IACpD;IACA,OAAO;QACLO;QACAgB,QAAQvB;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 4511, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-bot.ts"],"sourcesContent":["import { HTML_LIMITED_BOT_UA_RE } from './html-bots'\n\n// Bot crawler that will spin up a headless browser and execute JS.\n// Only the main Googlebot search crawler executes JavaScript, not other Google crawlers.\n// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers\n// This regex specifically matches \"Googlebot\" but NOT \"Mediapartners-Google\", \"AdsBot-Google\", etc.\nconst HEADLESS_BROWSER_BOT_UA_RE = /Googlebot(?!-)|Googlebot$/i\n\nexport const HTML_LIMITED_BOT_UA_RE_STRING = HTML_LIMITED_BOT_UA_RE.source\n\nexport { HTML_LIMITED_BOT_UA_RE }\n\nfunction isDomBotUA(userAgent: string) {\n return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent)\n}\n\nfunction isHtmlLimitedBotUA(userAgent: string) {\n return HTML_LIMITED_BOT_UA_RE.test(userAgent)\n}\n\nexport function isBot(userAgent: string): boolean {\n return isDomBotUA(userAgent) || isHtmlLimitedBotUA(userAgent)\n}\n\nexport function getBotType(userAgent: string): 'dom' | 'html' | undefined {\n if (isDomBotUA(userAgent)) {\n return 'dom'\n }\n if (isHtmlLimitedBotUA(userAgent)) {\n return 'html'\n }\n return undefined\n}\n"],"names":["HTML_LIMITED_BOT_UA_RE","HTML_LIMITED_BOT_UA_RE_STRING","getBotType","isBot","HEADLESS_BROWSER_BOT_UA_RE","source","isDomBotUA","userAgent","test","isHtmlLimitedBotUA","undefined"],"mappings":";;;;;;;;;;;;;;;;IAUSA,sBAAsB,EAAA;eAAtBA,UAAAA,sBAAsB;;IAFlBC,6BAA6B,EAAA;eAA7BA;;IAgBGC,UAAU,EAAA;eAAVA;;IAJAC,KAAK,EAAA;eAALA;;;0BApBuB;AAEvC,mEAAmE;AACnE,yFAAyF;AACzF,4FAA4F;AAC5F,oGAAoG;AACpG,MAAMC,6BAA6B;AAE5B,MAAMH,gCAAgCD,UAAAA,sBAAsB,CAACK,MAAM;AAI1E,SAASC,WAAWC,SAAiB;IACnC,OAAOH,2BAA2BI,IAAI,CAACD;AACzC;AAEA,SAASE,mBAAmBF,SAAiB;IAC3C,OAAOP,UAAAA,sBAAsB,CAACQ,IAAI,CAACD;AACrC;AAEO,SAASJ,MAAMI,SAAiB;IACrC,OAAOD,WAAWC,cAAcE,mBAAmBF;AACrD;AAEO,SAASL,WAAWK,SAAiB;IAC1C,IAAID,WAAWC,YAAY;QACzB,OAAO;IACT;IACA,IAAIE,mBAAmBF,YAAY;QACjC,OAAO;IACT;IACA,OAAOG;AACT","ignoreList":[0]}},
{"offset": {"line": 4569, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-dynamic.ts"],"sourcesContent":["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"],"names":["isDynamicRoute","TEST_ROUTE","TEST_STRICT_ROUTE","route","strict","isInterceptionRouteAppPath","extractInterceptionRouteInformation","interceptedRoute","test"],"mappings":";;;+BAkBgBA,kBAAAA;;;eAAAA;;;oCAfT;AAEP,yCAAyC;AACzC,MAAMC,aAAa;AAEnB,qCAAqC;AACrC,MAAMC,oBAAoB;AASnB,SAASF,eAAeG,KAAa,EAAEC,SAAkB,IAAI;IAClE,IAAIC,CAAAA,GAAAA,oBAAAA,0BAA0B,EAACF,QAAQ;QACrCA,QAAQG,CAAAA,GAAAA,oBAAAA,mCAAmC,EAACH,OAAOI,gBAAgB;IACrE;IAEA,IAAIH,QAAQ;QACV,OAAOF,kBAAkBM,IAAI,CAACL;IAChC;IAEA,OAAOF,WAAWO,IAAI,CAACL;AACzB","ignoreList":[0]}},
{"offset": {"line": 4596, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-local-url.ts"],"sourcesContent":["import { isAbsoluteUrl, getLocationOrigin } from '../../utils'\nimport { hasBasePath } from '../../../../client/has-base-path'\n\n/**\n * Detects whether a given url is routable by the Next.js router (browser only).\n */\nexport function isLocalURL(url: string): boolean {\n // prevent a hydration mismatch on href for url with anchor refs\n if (!isAbsoluteUrl(url)) return true\n try {\n // absolute urls can be local if they are on the same origin\n const locationOrigin = getLocationOrigin()\n const resolved = new URL(url, locationOrigin)\n return resolved.origin === locationOrigin && hasBasePath(resolved.pathname)\n } catch (_) {\n return false\n }\n}\n"],"names":["isLocalURL","url","isAbsoluteUrl","locationOrigin","getLocationOrigin","resolved","URL","origin","hasBasePath","pathname","_"],"mappings":";;;+BAMgBA,cAAAA;;;eAAAA;;;uBANiC;6BACrB;AAKrB,SAASA,WAAWC,GAAW;IACpC,gEAAgE;IAChE,IAAI,CAACC,CAAAA,GAAAA,OAAAA,aAAa,EAACD,MAAM,OAAO;IAChC,IAAI;QACF,4DAA4D;QAC5D,MAAME,iBAAiBC,CAAAA,GAAAA,OAAAA,iBAAiB;QACxC,MAAMC,WAAW,IAAIC,IAAIL,KAAKE;QAC9B,OAAOE,SAASE,MAAM,KAAKJ,kBAAkBK,CAAAA,GAAAA,aAAAA,WAAW,EAACH,SAASI,QAAQ;IAC5E,EAAE,OAAOC,GAAG;QACV,OAAO;IACT;AACF","ignoreList":[0]}},
{"offset": {"line": 4623, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/omit.ts"],"sourcesContent":["export function omit<T extends { [key: string]: unknown }, K extends keyof T>(\n object: T,\n keys: K[]\n): Omit<T, K> {\n const omitted: { [key: string]: unknown } = {}\n Object.keys(object).forEach((key) => {\n if (!keys.includes(key as K)) {\n omitted[key] = object[key]\n }\n })\n return omitted as Omit<T, K>\n}\n"],"names":["omit","object","keys","omitted","Object","forEach","key","includes"],"mappings":";;;+BAAgBA,QAAAA;;;eAAAA;;;AAAT,SAASA,KACdC,MAAS,EACTC,IAAS;IAET,MAAMC,UAAsC,CAAC;IAC7CC,OAAOF,IAAI,CAACD,QAAQI,OAAO,CAAC,CAACC;QAC3B,IAAI,CAACJ,KAAKK,QAAQ,CAACD,MAAW;YAC5BH,OAAO,CAACG,IAAI,GAAGL,MAAM,CAACK,IAAI;QAC5B;IACF;IACA,OAAOH;AACT","ignoreList":[0]}},
{"offset": {"line": 4645, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-loader-tree.ts"],"sourcesContent":["import { DEFAULT_SEGMENT_KEY } from '../../segment'\nimport type { LoaderTree } from '../../../../server/lib/app-dir-module'\n\nexport function parseLoaderTree(tree: LoaderTree) {\n const [segment, parallelRoutes, modules, staticSiblings] = tree\n const { layout, template } = modules\n let { page } = modules\n // a __DEFAULT__ segment means that this route didn't match any of the\n // segments in the route, so we should use the default page\n page = segment === DEFAULT_SEGMENT_KEY ? modules.defaultPage : page\n\n const conventionPath = layout?.[1] || template?.[1] || page?.[1]\n\n return {\n page,\n segment,\n modules,\n /* it can be either layout / template / page */\n conventionPath,\n parallelRoutes,\n staticSiblings,\n }\n}\n"],"names":["parseLoaderTree","tree","segment","parallelRoutes","modules","staticSiblings","layout","template","page","DEFAULT_SEGMENT_KEY","defaultPage","conventionPath"],"mappings":";;;+BAGgBA,mBAAAA;;;eAAAA;;;yBAHoB;AAG7B,SAASA,gBAAgBC,IAAgB;IAC9C,MAAM,CAACC,SAASC,gBAAgBC,SAASC,eAAe,GAAGJ;IAC3D,MAAM,EAAEK,MAAM,EAAEC,QAAQ,EAAE,GAAGH;IAC7B,IAAI,EAAEI,IAAI,EAAE,GAAGJ;IACf,sEAAsE;IACtE,2DAA2D;IAC3DI,OAAON,YAAYO,SAAAA,mBAAmB,GAAGL,QAAQM,WAAW,GAAGF;IAE/D,MAAMG,iBAAiBL,QAAQ,CAAC,EAAE,IAAIC,UAAU,CAAC,EAAE,IAAIC,MAAM,CAAC,EAAE;IAEhE,OAAO;QACLA;QACAN;QACAE;QACA,6CAA6C,GAC7CO;QACAR;QACAE;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 4676, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-path.ts"],"sourcesContent":["/**\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"],"names":["parsePath","path","hashIndex","indexOf","queryIndex","hasQuery","pathname","substring","query","undefined","hash","slice"],"mappings":"AAAA;;;;CAIC;;;+BACeA,aAAAA;;;eAAAA;;;AAAT,SAASA,UAAUC,IAAY;IACpC,MAAMC,YAAYD,KAAKE,OAAO,CAAC;IAC/B,MAAMC,aAAaH,KAAKE,OAAO,CAAC;IAChC,MAAME,WAAWD,aAAa,CAAC,KAAMF,CAAAA,YAAY,KAAKE,aAAaF,SAAQ;IAE3E,IAAIG,YAAYH,YAAY,CAAC,GAAG;QAC9B,OAAO;YACLI,UAAUL,KAAKM,SAAS,CAAC,GAAGF,WAAWD,aAAaF;YACpDM,OAAOH,WACHJ,KAAKM,SAAS,CAACH,YAAYF,YAAY,CAAC,IAAIA,YAAYO,aACxD;YACJC,MAAMR,YAAY,CAAC,IAAID,KAAKU,KAAK,CAACT,aAAa;QACjD;IACF;IAEA,OAAO;QAAEI,UAAUL;QAAMO,OAAO;QAAIE,MAAM;IAAG;AAC/C","ignoreList":[0]}},
{"offset": {"line": 4710, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-relative-url.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\nimport { getLocationOrigin } from '../../utils'\nimport { searchParamsToUrlQuery } from './querystring'\n\nexport interface ParsedRelativeUrl {\n auth: string | null\n hash: string\n host: string | null\n hostname: string | null\n href: string\n pathname: string\n port: string | null\n protocol: string | null\n query: ParsedUrlQuery\n search: string\n slashes: null\n}\n\n/**\n * Parses path-relative urls (e.g. `/hello/world?foo=bar`). If url isn't path-relative\n * (e.g. `./hello`) then at least base must be.\n * Absolute urls are rejected with one exception, in the browser, absolute urls that are on\n * the current origin will be parsed as relative\n */\nexport function parseRelativeUrl(\n url: string,\n base?: string,\n parseQuery?: true\n): ParsedRelativeUrl\nexport function parseRelativeUrl(\n url: string,\n base: string | undefined,\n parseQuery: false\n): Omit<ParsedRelativeUrl, 'query'>\nexport function parseRelativeUrl(\n url: string,\n base?: string,\n parseQuery = true\n): ParsedRelativeUrl | Omit<ParsedRelativeUrl, 'query'> {\n const globalBase = new URL(\n typeof window === 'undefined' ? 'http://n' : getLocationOrigin()\n )\n\n const resolvedBase = base\n ? new URL(base, globalBase)\n : url.startsWith('.')\n ? new URL(\n typeof window === 'undefined' ? 'http://n' : window.location.href\n )\n : globalBase\n\n const { pathname, searchParams, search, hash, href, origin } = url.startsWith(\n '/'\n )\n ? // 'http://localhost:3000///' would be received as '///' in Node.js' IncomingMessage\n // See https://nodejs.org/api/http.html#messageurl\n // Not using `origin` to support other protocols\n new URL(`${resolvedBase.protocol}//${resolvedBase.host}${url}`)\n : new URL(url, resolvedBase)\n\n if (origin !== globalBase.origin) {\n throw new Error(`invariant: invalid relative URL, router received ${url}`)\n }\n\n return {\n auth: null,\n host: null,\n hostname: null,\n pathname,\n port: null,\n protocol: null,\n query: parseQuery ? searchParamsToUrlQuery(searchParams) : undefined,\n search,\n hash,\n href: href.slice(origin.length),\n // We don't know for relative URLs at this point since we set a custom, internal\n // base that isn't surfaced to users.\n slashes: null,\n }\n}\n"],"names":["parseRelativeUrl","url","base","parseQuery","globalBase","URL","window","getLocationOrigin","resolvedBase","startsWith","location","href","pathname","searchParams","search","hash","origin","protocol","host","Error","auth","hostname","port","query","searchParamsToUrlQuery","undefined","slice","length","slashes"],"mappings":";;;+BAkCgBA,oBAAAA;;;eAAAA;;;uBAjCkB;6BACK;AAgChC,SAASA,iBACdC,GAAW,EACXC,IAAa,EACbC,aAAa,IAAI;IAEjB,MAAMC,aAAa,IAAIC,IACrB,OAAOC,WAAW,cAAc,aAAaC,CAAAA,GAAAA,OAAAA,iBAAiB;IAGhE,MAAMC,eAAeN,OACjB,IAAIG,IAAIH,MAAME,cACdH,IAAIQ,UAAU,CAAC,OACb,IAAIJ,IACF,OAAOC,WAAW,cAAc,aAAaA,OAAOI,QAAQ,CAACC,IAAI,IAEnEP;IAEN,MAAM,EAAEQ,QAAQ,EAAEC,YAAY,EAAEC,MAAM,EAAEC,IAAI,EAAEJ,IAAI,EAAEK,MAAM,EAAE,GAAGf,IAAIQ,UAAU,CAC3E,OAGE,AACA,gDAAgD,EADE;IAElD,IAAIJ,IAAI,GAAGG,aAAaS,QAAQ,CAAC,EAAE,EAAET,aAAaU,IAAI,GAAGjB,KAAK,IAC9D,IAAII,IAAIJ,KAAKO;IAEjB,IAAIQ,WAAWZ,WAAWY,MAAM,EAAE;QAChC,MAAM,OAAA,cAAoE,CAApE,IAAIG,MAAM,CAAC,iDAAiD,EAAElB,KAAK,GAAnE,qBAAA;mBAAA;wBAAA;0BAAA;QAAmE;IAC3E;IAEA,OAAO;QACLmB,MAAM;QACNF,MAAM;QACNG,UAAU;QACVT;QACAU,MAAM;QACNL,UAAU;QACVM,OAAOpB,aAAaqB,CAAAA,GAAAA,aAAAA,sBAAsB,EAACX,gBAAgBY;QAC3DX;QACAC;QACAJ,MAAMA,KAAKe,KAAK,CAACV,OAAOW,MAAM;QAC9B,gFAAgF;QAChF,qCAAqC;QACrCC,SAAS;IACX;AACF","ignoreList":[0]}},
{"offset": {"line": 4753, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-url.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nimport { searchParamsToUrlQuery } from './querystring'\nimport { parseRelativeUrl } from './parse-relative-url'\n\nexport interface ParsedUrl {\n auth: string | null\n hash: string\n hostname: string | null\n href: string\n origin?: string | null\n pathname: string\n port: string | null\n protocol: string | null\n query: ParsedUrlQuery\n search: string\n slashes: boolean | null\n}\n\nexport function parseUrl(url: string): ParsedUrl {\n if (url.startsWith('/')) {\n return parseRelativeUrl(url)\n }\n\n const parsedURL = new URL(url)\n const username = parsedURL.username\n const password = parsedURL.password\n const auth = username\n ? password\n ? `${username}:${password}`\n : username\n : null\n const pathname = parsedURL.pathname\n const search = parsedURL.search\n return {\n auth,\n hash: parsedURL.hash,\n hostname: parsedURL.hostname,\n href: parsedURL.href,\n pathname,\n port: parsedURL.port,\n protocol: parsedURL.protocol,\n query: searchParamsToUrlQuery(parsedURL.searchParams),\n search,\n origin: parsedURL.origin,\n slashes:\n parsedURL.href.slice(\n parsedURL.protocol.length,\n parsedURL.protocol.length + 2\n ) === '//',\n }\n}\n"],"names":["parseUrl","url","startsWith","parseRelativeUrl","parsedURL","URL","username","password","auth","pathname","search","hash","hostname","href","port","protocol","query","searchParamsToUrlQuery","searchParams","origin","slashes","slice","length"],"mappings":";;;+BAmBgBA,YAAAA;;;eAAAA;;;6BAjBuB;kCACN;AAgB1B,SAASA,SAASC,GAAW;IAClC,IAAIA,IAAIC,UAAU,CAAC,MAAM;QACvB,OAAOC,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACF;IAC1B;IAEA,MAAMG,YAAY,IAAIC,IAAIJ;IAC1B,MAAMK,WAAWF,UAAUE,QAAQ;IACnC,MAAMC,WAAWH,UAAUG,QAAQ;IACnC,MAAMC,OAAOF,WACTC,WACE,GAAGD,SAAS,CAAC,EAAEC,UAAU,GACzBD,WACF;IACJ,MAAMG,WAAWL,UAAUK,QAAQ;IACnC,MAAMC,SAASN,UAAUM,MAAM;IAC/B,OAAO;QACLF;QACAG,MAAMP,UAAUO,IAAI;QACpBC,UAAUR,UAAUQ,QAAQ;QAC5BC,MAAMT,UAAUS,IAAI;QACpBJ;QACAK,MAAMV,UAAUU,IAAI;QACpBC,UAAUX,UAAUW,QAAQ;QAC5BC,OAAOC,CAAAA,GAAAA,aAAAA,sBAAsB,EAACb,UAAUc,YAAY;QACpDR;QACAS,QAAQf,UAAUe,MAAM;QACxBC,SACEhB,UAAUS,IAAI,CAACQ,KAAK,CAClBjB,UAAUW,QAAQ,CAACO,MAAM,EACzBlB,UAAUW,QAAQ,CAACO,MAAM,GAAG,OACxB;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 4792, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/path-has-prefix.ts"],"sourcesContent":["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"],"names":["pathHasPrefix","path","prefix","pathname","parsePath","startsWith"],"mappings":";;;+BASgBA,iBAAAA;;;eAAAA;;;2BATU;AASnB,SAASA,cAAcC,IAAY,EAAEC,MAAc;IACxD,IAAI,OAAOD,SAAS,UAAU;QAC5B,OAAO;IACT;IAEA,MAAM,EAAEE,QAAQ,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACH;IAC/B,OAAOE,aAAaD,UAAUC,SAASE,UAAU,CAACH,SAAS;AAC7D","ignoreList":[0]}},
{"offset": {"line": 4813, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/path-match.ts"],"sourcesContent":["import type { Key } from 'next/dist/compiled/path-to-regexp'\nimport { regexpToFunction } from 'next/dist/compiled/path-to-regexp'\nimport { pathToRegexp } from 'next/dist/compiled/path-to-regexp'\n\ninterface Options {\n /**\n * A transformer function that will be applied to the regexp generated\n * from the provided path and path-to-regexp.\n */\n regexModifier?: (regex: string) => string\n /**\n * When true the function will remove all unnamed parameters\n * from the matched parameters.\n */\n removeUnnamedParams?: boolean\n /**\n * When true the regexp won't allow an optional trailing delimiter\n * to match.\n */\n strict?: boolean\n\n /**\n * When true the matcher will be case-sensitive, defaults to false\n */\n sensitive?: boolean\n}\n\nexport type PatchMatcher = (\n pathname: string,\n params?: Record<string, any>\n) => Record<string, any> | false\n\n/**\n * Generates a path matcher function for a given path and options based on\n * path-to-regexp. By default the match will be case insensitive, non strict\n * and delimited by `/`.\n */\nexport function getPathMatch(path: string, options?: Options): PatchMatcher {\n const keys: Key[] = []\n const regexp = pathToRegexp(path, keys, {\n delimiter: '/',\n sensitive:\n typeof options?.sensitive === 'boolean' ? options.sensitive : false,\n strict: options?.strict,\n })\n\n const matcher = regexpToFunction<Record<string, any>>(\n options?.regexModifier\n ? new RegExp(options.regexModifier(regexp.source), regexp.flags)\n : regexp,\n keys\n )\n\n /**\n * A matcher function that will check if a given pathname matches the path\n * given in the builder function. When the path does not match it will return\n * `false` but if it does it will return an object with the matched params\n * merged with the params provided in the second argument.\n */\n return (pathname, params) => {\n // If no pathname is provided it's not a match.\n if (typeof pathname !== 'string') return false\n\n const match = matcher(pathname)\n\n // If the path did not match `false` will be returned.\n if (!match) return false\n\n /**\n * If unnamed params are not allowed they must be removed from\n * the matched parameters. path-to-regexp uses \"string\" for named and\n * \"number\" for unnamed parameters.\n */\n if (options?.removeUnnamedParams) {\n for (const key of keys) {\n if (typeof key.name === 'number') {\n delete match.params[key.name]\n }\n }\n }\n\n return { ...params, ...match.params }\n }\n}\n"],"names":["getPathMatch","path","options","keys","regexp","pathToRegexp","delimiter","sensitive","strict","matcher","regexpToFunction","regexModifier","RegExp","source","flags","pathname","params","match","removeUnnamedParams","key","name"],"mappings":";;;+BAqCgBA,gBAAAA;;;eAAAA;;;8BApCiB;AAoC1B,SAASA,aAAaC,IAAY,EAAEC,OAAiB;IAC1D,MAAMC,OAAc,EAAE;IACtB,MAAMC,SAASC,CAAAA,GAAAA,cAAAA,YAAY,EAACJ,MAAME,MAAM;QACtCG,WAAW;QACXC,WACE,OAAOL,SAASK,cAAc,YAAYL,QAAQK,SAAS,GAAG;QAChEC,QAAQN,SAASM;IACnB;IAEA,MAAMC,UAAUC,CAAAA,GAAAA,cAAAA,gBAAgB,EAC9BR,SAASS,gBACL,IAAIC,OAAOV,QAAQS,aAAa,CAACP,OAAOS,MAAM,GAAGT,OAAOU,KAAK,IAC7DV,QACJD;IAGF;;;;;GAKC,GACD,OAAO,CAACY,UAAUC;QAChB,+CAA+C;QAC/C,IAAI,OAAOD,aAAa,UAAU,OAAO;QAEzC,MAAME,QAAQR,QAAQM;QAEtB,sDAAsD;QACtD,IAAI,CAACE,OAAO,OAAO;QAEnB;;;;KAIC,GACD,IAAIf,SAASgB,qBAAqB;YAChC,KAAK,MAAMC,OAAOhB,KAAM;gBACtB,IAAI,OAAOgB,IAAIC,IAAI,KAAK,UAAU;oBAChC,OAAOH,MAAMD,MAAM,CAACG,IAAIC,IAAI,CAAC;gBAC/B;YACF;QACF;QAEA,OAAO;YAAE,GAAGJ,MAAM;YAAE,GAAGC,MAAMD,MAAM;QAAC;IACtC;AACF","ignoreList":[0]}},
{"offset": {"line": 4863, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/prepare-destination.ts"],"sourcesContent":["import type { IncomingMessage } from 'http'\nimport type { Key } from 'next/dist/compiled/path-to-regexp'\nimport type { NextParsedUrlQuery } from '../../../../server/request-meta'\nimport type { RouteHas } from '../../../../lib/load-custom-routes'\nimport type { BaseNextRequest } from '../../../../server/base-http'\n\nimport { escapeStringRegexp } from '../../escape-regexp'\nimport { parseUrl, type ParsedUrl } from './parse-url'\nimport {\n INTERCEPTION_ROUTE_MARKERS,\n isInterceptionRouteAppPath,\n} from './interception-routes'\nimport { getCookieParser } from '../../../../server/api-utils/get-cookie-parser'\nimport type { Params } from '../../../../server/request/params'\nimport { safePathToRegexp, safeCompile } from './route-match-utils'\n\n/**\n * Ensure only a-zA-Z are used for param names for proper interpolating\n * with path-to-regexp\n */\nfunction getSafeParamName(paramName: string) {\n let newParamName = ''\n\n for (let i = 0; i < paramName.length; i++) {\n const charCode = paramName.charCodeAt(i)\n\n if (\n (charCode > 64 && charCode < 91) || // A-Z\n (charCode > 96 && charCode < 123) // a-z\n ) {\n newParamName += paramName[i]\n }\n }\n return newParamName\n}\n\nfunction escapeSegment(str: string, segmentName: string) {\n return str.replace(\n new RegExp(`:${escapeStringRegexp(segmentName)}`, 'g'),\n `__ESC_COLON_${segmentName}`\n )\n}\n\nfunction unescapeSegments(str: string) {\n return str.replace(/__ESC_COLON_/gi, ':')\n}\n\nexport function matchHas(\n req: BaseNextRequest | IncomingMessage,\n query: Params,\n has: RouteHas[] = [],\n missing: RouteHas[] = []\n): false | Params {\n const params: Params = {}\n\n const hasMatch = (hasItem: RouteHas) => {\n let value\n let key = hasItem.key\n\n switch (hasItem.type) {\n case 'header': {\n key = key!.toLowerCase()\n value = req.headers[key] as string\n break\n }\n case 'cookie': {\n if ('cookies' in req) {\n value = req.cookies[hasItem.key]\n } else {\n const cookies = getCookieParser(req.headers)()\n value = cookies[hasItem.key]\n }\n\n break\n }\n case 'query': {\n value = query[key!]\n break\n }\n case 'host': {\n const { host } = req?.headers || {}\n // remove port from host if present\n const hostname = host?.split(':', 1)[0].toLowerCase()\n value = hostname\n break\n }\n default: {\n break\n }\n }\n\n if (!hasItem.value && value) {\n params[getSafeParamName(key!)] = value\n return true\n } else if (value) {\n const matcher = new RegExp(`^${hasItem.value}$`)\n const matches = Array.isArray(value)\n ? value.slice(-1)[0].match(matcher)\n : value.match(matcher)\n\n if (matches) {\n if (Array.isArray(matches)) {\n if (matches.groups) {\n Object.keys(matches.groups).forEach((groupKey) => {\n params[groupKey] = matches.groups![groupKey]\n })\n } else if (hasItem.type === 'host' && matches[0]) {\n params.host = matches[0]\n }\n }\n return true\n }\n }\n return false\n }\n\n const allMatch =\n has.every((item) => hasMatch(item)) &&\n !missing.some((item) => hasMatch(item))\n\n if (allMatch) {\n return params\n }\n return false\n}\n\nexport function compileNonPath(value: string, params: Params): string {\n if (!value.includes(':')) {\n return value\n }\n\n for (const key of Object.keys(params)) {\n if (value.includes(`:${key}`)) {\n value = value\n .replace(\n new RegExp(`:${key}\\\\*`, 'g'),\n `:${key}--ESCAPED_PARAM_ASTERISKS`\n )\n .replace(\n new RegExp(`:${key}\\\\?`, 'g'),\n `:${key}--ESCAPED_PARAM_QUESTION`\n )\n .replace(new RegExp(`:${key}\\\\+`, 'g'), `:${key}--ESCAPED_PARAM_PLUS`)\n .replace(\n new RegExp(`:${key}(?!\\\\w)`, 'g'),\n `--ESCAPED_PARAM_COLON${key}`\n )\n }\n }\n value = value\n .replace(/(:|\\*|\\?|\\+|\\(|\\)|\\{|\\})/g, '\\\\$1')\n .replace(/--ESCAPED_PARAM_PLUS/g, '+')\n .replace(/--ESCAPED_PARAM_COLON/g, ':')\n .replace(/--ESCAPED_PARAM_QUESTION/g, '?')\n .replace(/--ESCAPED_PARAM_ASTERISKS/g, '*')\n\n // the value needs to start with a forward-slash to be compiled\n // correctly\n return safeCompile(`/${value}`, { validate: false })(params).slice(1)\n}\n\nexport function parseDestination(args: {\n destination: string\n params: Readonly<Params>\n query: Readonly<NextParsedUrlQuery>\n}): ParsedUrl {\n let escaped = args.destination\n for (const param of Object.keys({ ...args.paramLine truncated
{"offset": {"line": 5156, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/querystring.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nexport function searchParamsToUrlQuery(\n searchParams: URLSearchParams\n): ParsedUrlQuery {\n const query: ParsedUrlQuery = {}\n for (const [key, value] of searchParams.entries()) {\n const existing = query[key]\n if (typeof existing === 'undefined') {\n query[key] = value\n } else if (Array.isArray(existing)) {\n existing.push(value)\n } else {\n query[key] = [existing, value]\n }\n }\n return query\n}\n\nfunction stringifyUrlQueryParam(param: unknown): string {\n if (typeof param === 'string') {\n return param\n }\n\n if (\n (typeof param === 'number' && !isNaN(param)) ||\n typeof param === 'boolean'\n ) {\n return String(param)\n } else {\n return ''\n }\n}\n\nexport function urlQueryToSearchParams(query: ParsedUrlQuery): URLSearchParams {\n const searchParams = new URLSearchParams()\n for (const [key, value] of Object.entries(query)) {\n if (Array.isArray(value)) {\n for (const item of value) {\n searchParams.append(key, stringifyUrlQueryParam(item))\n }\n } else {\n searchParams.set(key, stringifyUrlQueryParam(value))\n }\n }\n return searchParams\n}\n\nexport function assign(\n target: URLSearchParams,\n ...searchParamsList: URLSearchParams[]\n): URLSearchParams {\n for (const searchParams of searchParamsList) {\n for (const key of searchParams.keys()) {\n target.delete(key)\n }\n\n for (const [key, value] of searchParams.entries()) {\n target.append(key, value)\n }\n }\n\n return target\n}\n"],"names":["assign","searchParamsToUrlQuery","urlQueryToSearchParams","searchParams","query","key","value","entries","existing","Array","isArray","push","stringifyUrlQueryParam","param","isNaN","String","URLSearchParams","Object","item","append","set","target","searchParamsList","keys","delete"],"mappings":";;;;;;;;;;;;;;;IAgDgBA,MAAM,EAAA;eAANA;;IA9CAC,sBAAsB,EAAA;eAAtBA;;IAgCAC,sBAAsB,EAAA;eAAtBA;;;AAhCT,SAASD,uBACdE,YAA6B;IAE7B,MAAMC,QAAwB,CAAC;IAC/B,KAAK,MAAM,CAACC,KAAKC,MAAM,IAAIH,aAAaI,OAAO,GAAI;QACjD,MAAMC,WAAWJ,KAAK,CAACC,IAAI;QAC3B,IAAI,OAAOG,aAAa,aAAa;YACnCJ,KAAK,CAACC,IAAI,GAAGC;QACf,OAAO,IAAIG,MAAMC,OAAO,CAACF,WAAW;YAClCA,SAASG,IAAI,CAACL;QAChB,OAAO;YACLF,KAAK,CAACC,IAAI,GAAG;gBAACG;gBAAUF;aAAM;QAChC;IACF;IACA,OAAOF;AACT;AAEA,SAASQ,uBAAuBC,KAAc;IAC5C,IAAI,OAAOA,UAAU,UAAU;QAC7B,OAAOA;IACT;IAEA,IACG,OAAOA,UAAU,YAAY,CAACC,MAAMD,UACrC,OAAOA,UAAU,WACjB;QACA,OAAOE,OAAOF;IAChB,OAAO;QACL,OAAO;IACT;AACF;AAEO,SAASX,uBAAuBE,KAAqB;IAC1D,MAAMD,eAAe,IAAIa;IACzB,KAAK,MAAM,CAACX,KAAKC,MAAM,IAAIW,OAAOV,OAAO,CAACH,OAAQ;QAChD,IAAIK,MAAMC,OAAO,CAACJ,QAAQ;YACxB,KAAK,MAAMY,QAAQZ,MAAO;gBACxBH,aAAagB,MAAM,CAACd,KAAKO,uBAAuBM;YAClD;QACF,OAAO;YACLf,aAAaiB,GAAG,CAACf,KAAKO,uBAAuBN;QAC/C;IACF;IACA,OAAOH;AACT;AAEO,SAASH,OACdqB,MAAuB,EACvB,GAAGC,gBAAmC;IAEtC,KAAK,MAAMnB,gBAAgBmB,iBAAkB;QAC3C,KAAK,MAAMjB,OAAOF,aAAaoB,IAAI,GAAI;YACrCF,OAAOG,MAAM,CAACnB;QAChB;QAEA,KAAK,MAAM,CAACA,KAAKC,MAAM,IAAIH,aAAaI,OAAO,GAAI;YACjDc,OAAOF,MAAM,CAACd,KAAKC;QACrB;IACF;IAEA,OAAOe;AACT","ignoreList":[0]}},
{"offset": {"line": 5236, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/remove-path-prefix.ts"],"sourcesContent":["import { pathHasPrefix } from './path-has-prefix'\n\n/**\n * Given a path and a prefix it will remove the prefix when it exists in the\n * given path. It ensures it matches exactly without containing extra chars\n * and if the prefix is not there it will be noop.\n *\n * @param path The path to remove the prefix from.\n * @param prefix The prefix to be removed.\n */\nexport function removePathPrefix(path: string, prefix: string): string {\n // If the path doesn't start with the prefix we can return it as is. This\n // protects us from situations where the prefix is a substring of the path\n // prefix such as:\n //\n // For prefix: /blog\n //\n // /blog -> true\n // /blog/ -> true\n // /blog/1 -> true\n // /blogging -> false\n // /blogging/ -> false\n // /blogging/1 -> false\n if (!pathHasPrefix(path, prefix)) {\n return path\n }\n\n // Remove the prefix from the path via slicing.\n const withoutPrefix = path.slice(prefix.length)\n\n // If the path without the prefix starts with a `/` we can return it as is.\n if (withoutPrefix.startsWith('/')) {\n return withoutPrefix\n }\n\n // If the path without the prefix doesn't start with a `/` we need to add it\n // back to the path to make sure it's a valid path.\n return `/${withoutPrefix}`\n}\n"],"names":["removePathPrefix","path","prefix","pathHasPrefix","withoutPrefix","slice","length","startsWith"],"mappings":";;;+BAUgBA,oBAAAA;;;eAAAA;;;+BAVc;AAUvB,SAASA,iBAAiBC,IAAY,EAAEC,MAAc;IAC3D,yEAAyE;IACzE,0EAA0E;IAC1E,kBAAkB;IAClB,EAAE;IACF,oBAAoB;IACpB,EAAE;IACF,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,IAAI,CAACC,CAAAA,GAAAA,eAAAA,aAAa,EAACF,MAAMC,SAAS;QAChC,OAAOD;IACT;IAEA,+CAA+C;IAC/C,MAAMG,gBAAgBH,KAAKI,KAAK,CAACH,OAAOI,MAAM;IAE9C,2EAA2E;IAC3E,IAAIF,cAAcG,UAAU,CAAC,MAAM;QACjC,OAAOH;IACT;IAEA,4EAA4E;IAC5E,mDAAmD;IACnD,OAAO,CAAC,CAAC,EAAEA,eAAe;AAC5B","ignoreList":[0]}},
{"offset": {"line": 5276, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/remove-trailing-slash.ts"],"sourcesContent":["/**\n * Removes the trailing slash for a given route or page path. Examples:\n * - `/foo/bar/` -> `/foo/bar`\n * - `/foo/bar` -> `/foo/bar`\n *\n * Uses charCodeAt (47 === '/') instead of regex to avoid the overhead of\n * compiling and executing a RegExp on every call (~3-5x faster).\n */\nexport function removeTrailingSlash(route: string) {\n return route.charCodeAt(route.length - 1) === 47 && route.length > 1\n ? route.slice(0, -1)\n : route\n}\n"],"names":["removeTrailingSlash","route","charCodeAt","length","slice"],"mappings":"AAAA;;;;;;;CAOC;;;+BACeA,uBAAAA;;;eAAAA;;;AAAT,SAASA,oBAAoBC,KAAa;IAC/C,OAAOA,MAAMC,UAAU,CAACD,MAAME,MAAM,GAAG,OAAO,MAAMF,MAAME,MAAM,GAAG,IAC/DF,MAAMG,KAAK,CAAC,GAAG,CAAC,KAChBH;AACN","ignoreList":[0]}},
{"offset": {"line": 5299, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/resolve-param-value.ts"],"sourcesContent":["import type { Params } from '../../../../server/request/params'\nimport type { DynamicParamTypes } from '../../app-router-types'\nimport { InvariantError } from '../../invariant-error'\nimport type {\n NormalizedAppRoute,\n NormalizedAppRouteSegment,\n} from '../routes/app'\nimport { interceptionPrefixFromParamType } from './interception-prefix-from-param-type'\n\n/**\n * Extracts the param value from a path segment, handling interception markers\n * based on the expected param type.\n *\n * @param pathSegment - The path segment to extract the value from\n * @param params - The current params object for resolving dynamic param references\n * @param paramType - The expected param type which may include interception marker info\n * @returns The extracted param value\n */\nfunction getParamValueFromSegment(\n pathSegment: NormalizedAppRouteSegment,\n params: Params,\n paramType: DynamicParamTypes\n): string {\n // If the segment is dynamic, resolve it from the params object\n if (pathSegment.type === 'dynamic') {\n return params[pathSegment.param.paramName] as string\n }\n\n // If the paramType indicates this is an intercepted param, strip the marker\n // that matches the interception marker in the param type\n const interceptionPrefix = interceptionPrefixFromParamType(paramType)\n if (interceptionPrefix === pathSegment.interceptionMarker) {\n return pathSegment.name.replace(pathSegment.interceptionMarker, '')\n }\n\n // For static segments, use the name\n return pathSegment.name\n}\n\n/**\n * Resolves a route parameter value from the route segments at the given depth.\n * This shared logic is used by both extractPathnameRouteParamSegmentsFromLoaderTree\n * and resolveRouteParamsFromTree.\n *\n * @param paramName - The parameter name to resolve\n * @param paramType - The parameter type (dynamic, catchall, etc.)\n * @param depth - The current depth in the route tree\n * @param route - The normalized route containing segments\n * @param params - The current params object (used to resolve embedded param references)\n * @param options - Configuration options\n * @returns The resolved parameter value, or undefined if it cannot be resolved\n */\nexport function resolveParamValue(\n paramName: string,\n paramType: DynamicParamTypes,\n depth: number,\n route: NormalizedAppRoute,\n params: Params\n): string | string[] | undefined {\n switch (paramType) {\n case 'catchall':\n case 'optional-catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n // For catchall routes, derive from pathname using depth to determine\n // which segments to use\n const processedSegments: string[] = []\n\n // Process segments to handle any embedded dynamic params\n for (let index = depth; index < route.segments.length; index++) {\n const pathSegment = route.segments[index]\n\n if (pathSegment.type === 'static') {\n let value = pathSegment.name\n\n // For intercepted catch-all params, strip the marker from the first segment\n const interceptionPrefix = interceptionPrefixFromParamType(paramType)\n if (\n interceptionPrefix &&\n index === depth &&\n interceptionPrefix === pathSegment.interceptionMarker\n ) {\n // Strip the interception marker from the value\n value = value.replace(pathSegment.interceptionMarker, '')\n }\n\n processedSegments.push(value)\n } else {\n // If the segment is a param placeholder, check if we have its value\n if (!params.hasOwnProperty(pathSegment.param.paramName)) {\n // If the segment is an optional catchall, we can break out of the\n // loop because it's optional!\n if (pathSegment.param.paramType === 'optional-catchall') {\n break\n }\n\n // Unknown param placeholder in pathname - can't derive full value\n return undefined\n }\n\n // If the segment matches a param, use the param value\n // We don't encode values here as that's handled during retrieval.\n const paramValue = params[pathSegment.param.paramName]\n if (Array.isArray(paramValue)) {\n processedSegments.push(...paramValue)\n } else {\n processedSegments.push(paramValue as string)\n }\n }\n }\n\n if (processedSegments.length > 0) {\n return processedSegments\n } else if (paramType === 'optional-catchall') {\n return undefined\n } else {\n // We shouldn't be able to match a catchall segment without any path\n // segLine truncated
{"offset": {"line": 5416, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/resolve-rewrites.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\nimport type { Rewrite } from '../../../../lib/load-custom-routes'\nimport { getPathMatch } from './path-match'\nimport { matchHas, prepareDestination } from './prepare-destination'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { normalizeLocalePath } from '../../i18n/normalize-locale-path'\nimport { removeBasePath } from '../../../../client/remove-base-path'\nimport { parseRelativeUrl, type ParsedRelativeUrl } from './parse-relative-url'\nimport type { ParsedUrl } from './parse-url'\n\ntype ParsedAs = ParsedRelativeUrl | ParsedUrl\nexport default function resolveRewrites(\n asPath: string,\n pages: string[],\n rewrites: {\n beforeFiles: Rewrite[]\n afterFiles: Rewrite[]\n fallback: Rewrite[]\n },\n query: ParsedUrlQuery,\n resolveHref: (path: string) => string,\n locales?: readonly string[]\n): {\n matchedPage: boolean\n parsedAs: ParsedAs\n asPath: string\n resolvedHref?: string\n externalDest?: boolean\n} {\n let matchedPage = false\n let externalDest = false\n let parsedAs: ParsedAs = parseRelativeUrl(asPath)\n let fsPathname = removeTrailingSlash(\n normalizeLocalePath(removeBasePath(parsedAs.pathname), locales).pathname\n )\n let resolvedHref\n\n const handleRewrite = (rewrite: Rewrite) => {\n const matcher = getPathMatch(\n rewrite.source + (process.env.__NEXT_TRAILING_SLASH ? '(/)?' : ''),\n {\n removeUnnamedParams: true,\n strict: true,\n }\n )\n\n let params = matcher(parsedAs.pathname)\n\n if ((rewrite.has || rewrite.missing) && params) {\n const hasParams = matchHas(\n {\n headers: {\n host: document.location.hostname,\n 'user-agent': navigator.userAgent,\n },\n cookies: document.cookie\n .split('; ')\n .reduce<Record<string, string>>((acc, item) => {\n const [key, ...value] = item.split('=')\n acc[key] = value.join('=')\n return acc\n }, {}),\n } as any,\n parsedAs.query,\n rewrite.has,\n rewrite.missing\n )\n\n if (hasParams) {\n Object.assign(params, hasParams)\n } else {\n params = false\n }\n }\n\n if (params) {\n if (!rewrite.destination) {\n // this is a proxied rewrite which isn't handled on the client\n externalDest = true\n return true\n }\n const destRes = prepareDestination({\n appendParamsToQuery: true,\n destination: rewrite.destination,\n params: params,\n query: query,\n })\n parsedAs = destRes.parsedDestination\n asPath = destRes.newUrl\n Object.assign(query, destRes.parsedDestination.query)\n\n fsPathname = removeTrailingSlash(\n normalizeLocalePath(removeBasePath(asPath), locales).pathname\n )\n\n if (pages.includes(fsPathname)) {\n // check if we now match a page as this means we are done\n // resolving the rewrites\n matchedPage = true\n resolvedHref = fsPathname\n return true\n }\n\n // check if we match a dynamic-route, if so we break the rewrites chain\n resolvedHref = resolveHref(fsPathname)\n\n if (resolvedHref !== asPath && pages.includes(resolvedHref)) {\n matchedPage = true\n return true\n }\n }\n }\n let finished = false\n\n for (let i = 0; i < rewrites.beforeFiles.length; i++) {\n // we don't end after match in beforeFiles to allow\n // continuing through all beforeFiles rewrites\n handleRewrite(rewrites.beforeFiles[i])\n }\n matchedPage = pages.includes(fsPathname)\n\n if (!matchedPage) {\n if (!finished) {\n for (let i = 0; i < rewrites.afterFiles.length; i++) {\n if (handleRewrite(rewrites.afterFiles[i])) {\n finished = true\n break\n }\n }\n }\n\n // check dynamic route before processing fallback rewrites\n if (!finished) {\n resolvedHref = resolveHref(fsPathname)\n matchedPage = pages.includes(resolvedHref)\n finished = matchedPage\n }\n\n if (!finished) {\n for (let i = 0; i < rewrites.fallback.length; i++) {\n if (handleRewrite(rewrites.fallback[i])) {\n finished = true\n break\n }\n }\n }\n }\n\n return {\n asPath,\n parsedAs,\n matchedPage,\n resolvedHref,\n externalDest,\n }\n}\n"],"names":["resolveRewrites","asPath","pages","rewrites","query","resolveHref","locales","matchedPage","externalDest","parsedAs","parseRelativeUrl","fsPathname","removeTrailingSlash","normalizeLocalePath","removeBasePath","pathname","resolvedHref","handleRewrite","rewrite","matcher","getPathMatch","source","proLine truncated
{"offset": {"line": 5537, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-match-utils.ts"],"sourcesContent":["/**\n * Client-safe utilities for route matching that don't import server-side\n * utilities to avoid bundling issues with Turbopack\n */\n\nimport type {\n Key,\n TokensToRegexpOptions,\n ParseOptions,\n TokensToFunctionOptions,\n} from 'next/dist/compiled/path-to-regexp'\nimport {\n pathToRegexp,\n compile,\n regexpToFunction,\n} from 'next/dist/compiled/path-to-regexp'\nimport {\n hasAdjacentParameterIssues,\n normalizeAdjacentParameters,\n stripParameterSeparators,\n stripNormalizedSeparators,\n} from '../../../../lib/route-pattern-normalizer'\n\n/**\n * Client-safe wrapper around pathToRegexp that handles path-to-regexp 6.3.0+ validation errors.\n * This includes both \"Can not repeat without prefix/suffix\" and \"Must have text between parameters\" errors.\n */\nexport function safePathToRegexp(\n route: string | RegExp | Array<string | RegExp>,\n keys?: Key[],\n options?: TokensToRegexpOptions & ParseOptions\n): RegExp {\n if (typeof route !== 'string') {\n return pathToRegexp(route, keys, options)\n }\n\n // Check if normalization is needed and cache the result\n const needsNormalization = hasAdjacentParameterIssues(route)\n const routeToUse = needsNormalization\n ? normalizeAdjacentParameters(route)\n : route\n\n try {\n return pathToRegexp(routeToUse, keys, options)\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = normalizeAdjacentParameters(route)\n return pathToRegexp(normalizedRoute, keys, options)\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error\n }\n }\n throw error\n }\n}\n\n/**\n * Client-safe wrapper around compile that handles path-to-regexp 6.3.0+ validation errors.\n * No server-side error reporting to avoid bundling issues.\n * When normalization is applied, the returned compiler function automatically strips\n * the internal separator from the output URL.\n */\nexport function safeCompile(\n route: string,\n options?: TokensToFunctionOptions & ParseOptions\n) {\n // Check if normalization is needed and cache the result\n const needsNormalization = hasAdjacentParameterIssues(route)\n const routeToUse = needsNormalization\n ? normalizeAdjacentParameters(route)\n : route\n\n try {\n const compiler = compile(routeToUse, options)\n\n // If we normalized the route, wrap the compiler to strip separators from output\n // The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy\n // path-to-regexp validation, but we don't want it in the final compiled URL\n if (needsNormalization) {\n return (params: any) => {\n return stripNormalizedSeparators(compiler(params))\n }\n }\n\n return compiler\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = normalizeAdjacentParameters(route)\n const compiler = compile(normalizedRoute, options)\n\n // Wrap the compiler to strip separators from output\n return (params: any) => {\n return stripNormalizedSeparators(compiler(params))\n }\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error\n }\n }\n throw error\n }\n}\n\n/**\n * Client-safe wrapper around regexpToFunction that automatically cleans parameters.\n */\nexport function safeRegexpToFunction<\n T extends Record<string, any> = Record<string, any>,\n>(regexp: RegExp, keys?: Key[]): (pathname: string) => { params: T } | false {\n const originalMatcher = regexpToFunction<T>(regexp, keys || [])\n\n return (pathname: string) => {\n const result = originalMatcher(pathname)\n if (!result) return false\n\n // Clean parameters before returning\n return {\n ...result,\n params: stripParameterSeparators(result.params as any) as T,\n }\n }\n}\n\n/**\n * Safe wrapper for route matcher functions that automatically cleans parameters.\n * This is client-safe and doesn't import path-to-regexp.\n */\nexport function safeRouteMatcher<T extends Record<string, any>>(\n matcherFn: (pathname: string) => false | T\n): (pathname: string) => false | T {\n return (pathname: string) => {\n const result = matcherFn(pathname)\n if (!result) return false\n\n // Clean parameters before returning\n return stripParameterSeparators(result) as T\n }\n}\n"],"names":["safeCompile","safePathToRegexp","safeRegexpToFunction","safeRouteMatcher","route","keys","options","pathToRegexp","needsNormalization","hasAdjacentParameterIssues","routeToUse","normalizeAdjacentParameters","error","normaliLine truncated
{"offset": {"line": 5651, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-matcher.ts"],"sourcesContent":["import type { Group } from './route-regex'\nimport { DecodeError } from '../../utils'\nimport type { Params } from '../../../../server/request/params'\nimport { safeRouteMatcher } from './route-match-utils'\n\nexport interface RouteMatchFn {\n (pathname: string): false | Params\n}\n\ntype RouteMatcherOptions = {\n // We only use the exec method of the RegExp object. This helps us avoid using\n // type assertions that the passed in properties are of the correct type.\n re: Pick<RegExp, 'exec'>\n groups: Record<string, Group>\n}\n\nexport function getRouteMatcher({\n re,\n groups,\n}: RouteMatcherOptions): RouteMatchFn {\n const rawMatcher = (pathname: string) => {\n const routeMatch = re.exec(pathname)\n if (!routeMatch) return false\n\n const decode = (param: string) => {\n try {\n return decodeURIComponent(param)\n } catch {\n throw new DecodeError('failed to decode param')\n }\n }\n\n const params: Params = {}\n for (const [key, group] of Object.entries(groups)) {\n const match = routeMatch[group.pos]\n if (match !== undefined) {\n if (group.repeat) {\n params[key] = match.split('/').map((entry) => decode(entry))\n } else {\n params[key] = decode(match)\n }\n }\n }\n\n return params\n }\n\n // Wrap with safe matcher to handle parameter cleaning\n return safeRouteMatcher(rawMatcher)\n}\n"],"names":["getRouteMatcher","re","groups","rawMatcher","pathname","routeMatch","exec","decode","param","decodeURIComponent","DecodeError","params","key","group","Object","entries","match","pos","undefined","repeat","split","map","entry","safeRouteMatcher"],"mappings":";;;+BAgBgBA,mBAAAA;;;eAAAA;;;uBAfY;iCAEK;AAa1B,SAASA,gBAAgB,EAC9BC,EAAE,EACFC,MAAM,EACc;IACpB,MAAMC,aAAa,CAACC;QAClB,MAAMC,aAAaJ,GAAGK,IAAI,CAACF;QAC3B,IAAI,CAACC,YAAY,OAAO;QAExB,MAAME,SAAS,CAACC;YACd,IAAI;gBACF,OAAOC,mBAAmBD;YAC5B,EAAE,OAAM;gBACN,MAAM,OAAA,cAAyC,CAAzC,IAAIE,OAAAA,WAAW,CAAC,2BAAhB,qBAAA;2BAAA;gCAAA;kCAAA;gBAAwC;YAChD;QACF;QAEA,MAAMC,SAAiB,CAAC;QACxB,KAAK,MAAM,CAACC,KAAKC,MAAM,IAAIC,OAAOC,OAAO,CAACb,QAAS;YACjD,MAAMc,QAAQX,UAAU,CAACQ,MAAMI,GAAG,CAAC;YACnC,IAAID,UAAUE,WAAW;gBACvB,IAAIL,MAAMM,MAAM,EAAE;oBAChBR,MAAM,CAACC,IAAI,GAAGI,MAAMI,KAAK,CAAC,KAAKC,GAAG,CAAC,CAACC,QAAUf,OAAOe;gBACvD,OAAO;oBACLX,MAAM,CAACC,IAAI,GAAGL,OAAOS;gBACvB;YACF;QACF;QAEA,OAAOL;IACT;IAEA,sDAAsD;IACtD,OAAOY,CAAAA,GAAAA,iBAAAA,gBAAgB,EAACpB;AAC1B","ignoreList":[0]}},
{"offset": {"line": 5697, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-regex.ts"],"sourcesContent":["import {\n NEXT_INTERCEPTION_MARKER_PREFIX,\n NEXT_QUERY_PARAM_PREFIX,\n} from '../../../../lib/constants'\nimport { INTERCEPTION_ROUTE_MARKERS } from './interception-routes'\nimport { escapeStringRegexp } from '../../escape-regexp'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { PARAMETER_PATTERN, parseMatchedParameter } from './get-dynamic-param'\n\nexport interface Group {\n pos: number\n repeat: boolean\n optional: boolean\n}\n\nexport interface RouteRegex {\n groups: { [groupName: string]: Group }\n re: RegExp\n}\n\nexport type RegexReference = {\n names: Record<string, string>\n intercepted: Record<string, string>\n}\n\ntype GetNamedRouteRegexOptions = {\n /**\n * Whether to prefix the route keys with the NEXT_INTERCEPTION_MARKER_PREFIX\n * or NEXT_QUERY_PARAM_PREFIX. This is only relevant when creating the\n * routes-manifest during the build.\n */\n prefixRouteKeys: boolean\n\n /**\n * Whether to include the suffix in the route regex. This means that when you\n * have something like `/[...slug].json` the `.json` part will be included\n * in the regex, yielding `/(.*).json` as the regex.\n */\n includeSuffix?: boolean\n\n /**\n * Whether to include the prefix in the route regex. This means that when you\n * have something like `/[...slug].json` the `/` part will be included\n * in the regex, yielding `^/(.*).json$` as the regex.\n *\n * Note that interception markers will already be included without the need\n */\n includePrefix?: boolean\n\n /**\n * Whether to exclude the optional trailing slash from the route regex.\n */\n excludeOptionalTrailingSlash?: boolean\n\n /**\n * Whether to backtrack duplicate keys. This is only relevant when creating\n * the routes-manifest during the build.\n */\n backreferenceDuplicateKeys?: boolean\n\n /**\n * If provided, this will be used as the reference for the dynamic parameter\n * keys instead of generating them in context. This is currently only used for\n * interception routes.\n */\n reference?: RegexReference\n}\n\ntype GetRouteRegexOptions = {\n /**\n * Whether to include extra parts in the route regex. This means that when you\n * have something like `/[...slug].json` the `.json` part will be included\n * in the regex, yielding `/(.*).json` as the regex.\n */\n includeSuffix?: boolean\n\n /**\n * Whether to include the prefix in the route regex. This means that when you\n * have something like `/[...slug].json` the `/` part will be included\n * in the regex, yielding `^/(.*).json$` as the regex.\n *\n * Note that interception markers will already be included without the need\n * of adding this option.\n */\n includePrefix?: boolean\n\n /**\n * Whether to exclude the optional trailing slash from the route regex.\n */\n excludeOptionalTrailingSlash?: boolean\n}\n\nfunction getParametrizedRoute(\n route: string,\n includeSuffix: boolean,\n includePrefix: boolean\n) {\n const groups: { [groupName: string]: Group } = {}\n let groupIndex = 1\n\n const segments: string[] = []\n for (const segment of removeTrailingSlash(route).slice(1).split('/')) {\n const markerMatch = INTERCEPTION_ROUTE_MARKERS.find((m) =>\n segment.startsWith(m)\n )\n const paramMatches = segment.match(PARAMETER_PATTERN) // Check for parameters\n\n if (markerMatch && paramMatches && paramMatches[2]) {\n const { key, optional, repeat } = parseMatchedParameter(paramMatches[2])\n groups[key] = { pos: groupIndex++, repeat, optional }\n segments.push(`/${escapeStringRegexp(markerMatch)}([^/]+?)`)\n } else if (paramMatches && paramMatches[2]) {\n const { key, repeat, optional } = parseMatchedParameter(paramMatches[2])\n groups[key] = { pos: groupIndex++, repeat, optional }\n\n if (includePrefix && paramMatches[1]) {\n segments.push(`/${escapeStringRegexp(paramMatches[1])}`)\n }\n\n let s = repeat ? (optional ? '(?:/(.+?))?' : '/(.+?)') : '/([^/]+?)'\n\n // Remove the leading slash if includePrefix already added it.\n if (includePrefix && paramMatches[1]) {\n s = s.substring(1)\n }\n\n segments.push(s)\n } else {\n segments.push(`/${escapeStringRegexp(segment)}`)\n }\n\n // If there's a suffix, add it to the segments if it's enabled.\n if (includeSuffix && paramMatches && paramMatches[3]) {\n segments.push(escapeStringRegexp(paramMatches[3]))\n }\n }\n\n return {\n parameterizedRoute: segments.join(''),\n groups,\n }\n}\n\n/**\n * From a normalized route this function generates a regular expression and\n * a corresponding groups object intended to be used to store matching groups\n * from the regular expression.\n */\nexport function getRouteRegex(\n nLine truncated
{"offset": {"line": 5954, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/sorted-routes.ts"],"sourcesContent":["class UrlNode {\n placeholder: boolean = true\n children: Map<string, UrlNode> = new Map()\n slugName: string | null = null\n restSlugName: string | null = null\n optionalRestSlugName: string | null = null\n\n insert(urlPath: string): void {\n this._insert(urlPath.split('/').filter(Boolean), [], false)\n }\n\n smoosh(): string[] {\n return this._smoosh()\n }\n\n private _smoosh(prefix: string = '/'): string[] {\n const childrenPaths = [...this.children.keys()].sort()\n if (this.slugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[]'), 1)\n }\n if (this.restSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[...]'), 1)\n }\n if (this.optionalRestSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1)\n }\n\n const routes = childrenPaths\n .map((c) => this.children.get(c)!._smoosh(`${prefix}${c}/`))\n .reduce((prev, curr) => [...prev, ...curr], [])\n\n if (this.slugName !== null) {\n routes.push(\n ...this.children.get('[]')!._smoosh(`${prefix}[${this.slugName}]/`)\n )\n }\n\n if (!this.placeholder) {\n const r = prefix === '/' ? '/' : prefix.slice(0, -1)\n if (this.optionalRestSlugName != null) {\n throw new Error(\n `You cannot define a route with the same specificity as a optional catch-all route (\"${r}\" and \"${r}[[...${this.optionalRestSlugName}]]\").`\n )\n }\n\n routes.unshift(r)\n }\n\n if (this.restSlugName !== null) {\n routes.push(\n ...this.children\n .get('[...]')!\n ._smoosh(`${prefix}[...${this.restSlugName}]/`)\n )\n }\n\n if (this.optionalRestSlugName !== null) {\n routes.push(\n ...this.children\n .get('[[...]]')!\n ._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`)\n )\n }\n\n return routes\n }\n\n private _insert(\n urlPaths: string[],\n slugNames: string[],\n isCatchAll: boolean\n ): void {\n if (urlPaths.length === 0) {\n this.placeholder = false\n return\n }\n\n if (isCatchAll) {\n throw new Error(`Catch-all must be the last part of the URL.`)\n }\n\n // The next segment in the urlPaths list\n let nextSegment = urlPaths[0]\n\n // Check if the segment matches `[something]`\n if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) {\n // Strip `[` and `]`, leaving only `something`\n let segmentName = nextSegment.slice(1, -1)\n\n let isOptional = false\n if (segmentName.startsWith('[') && segmentName.endsWith(']')) {\n // Strip optional `[` and `]`, leaving only `something`\n segmentName = segmentName.slice(1, -1)\n isOptional = true\n }\n\n if (segmentName.startsWith('…')) {\n throw new Error(\n `Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`\n )\n }\n\n if (segmentName.startsWith('...')) {\n // Strip `...`, leaving only `something`\n segmentName = segmentName.substring(3)\n isCatchAll = true\n }\n\n if (segmentName.startsWith('[') || segmentName.endsWith(']')) {\n throw new Error(\n `Segment names may not start or end with extra brackets ('${segmentName}').`\n )\n }\n\n if (segmentName.startsWith('.')) {\n throw new Error(\n `Segment names may not start with erroneous periods ('${segmentName}').`\n )\n }\n\n function handleSlug(previousSlug: string | null, nextSlug: string) {\n if (previousSlug !== null) {\n // If the specific segment already has a slug but the slug is not `something`\n // This prevents collisions like:\n // pages/[post]/index.js\n // pages/[id]/index.js\n // Because currently multiple dynamic params on the same segment level are not supported\n if (previousSlug !== nextSlug) {\n // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.\n throw new Error(\n `You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`\n )\n }\n }\n\n slugNames.forEach((slug) => {\n if (slug === nextSlug) {\n throw new Error(\n `You cannot have the same slug name \"${nextSlug}\" repeat within a single dynamic path`\n )\n }\n\n if (slug.replace(/\\W/g, '') === nextSegment.replace(/\\W/g, '')) {\n throw new Error(\n `You cannot have the slug names \"${slug}\" and \"${nextSlug}\" differ only by non-word symbols within a single dLine truncated
{"offset": {"line": 6199, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/segment.ts"],"sourcesContent":["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"],"names":["DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","PAGE_SEGMENT_KEY","addSearchParamsIfPageSegment","computeSelectedLayoutSegment","getSegmentValue","getSelectedLayoutSegmentPath","isGroupSegment","isParallelRouteSegment","segment","Array","isArray","endsWith","startsWith","searchParams","isPageSegment","includes","stringifiedQuery","JSON","stringify","segments","parallelRouteKey","length","rawSegment","tree","first","segmentPath","node","parallelRoutes","children","Object","values","segmentValue","push"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAuFaA,mBAAmB,EAAA;eAAnBA;;IACAC,qBAAqB,EAAA;eAArBA;;IAFAC,gBAAgB,EAAA;eAAhBA;;IAvEGC,4BAA4B,EAAA;eAA5BA;;IAgBAC,4BAA4B,EAAA;eAA5BA;;IA7BAC,eAAe,EAAA;eAAfA;;IAiDAC,4BAA4B,EAAA;eAA5BA;;IA7CAC,cAAc,EAAA;eAAdA;;IAKAC,sBAAsB,EAAA;eAAtBA;;;AATT,SAASH,gBAAgBI,OAAgB;IAC9C,OAAOC,MAAMC,OAAO,CAACF,WAAWA,OAAO,CAAC,EAAE,GAAGA;AAC/C;AAEO,SAASF,eAAeE,OAAe;IAC5C,sCAAsC;IACtC,OAAOA,OAAO,CAAC,EAAE,KAAK,OAAOA,QAAQG,QAAQ,CAAC;AAChD;AAEO,SAASJ,uBAAuBC,OAAe;IACpD,OAAOA,QAAQI,UAAU,CAAC,QAAQJ,YAAY;AAChD;AAEO,SAASN,6BACdM,OAAgB,EAChBK,YAA2D;IAE3D,MAAMC,gBAAgBN,QAAQO,QAAQ,CAACd;IAEvC,IAAIa,eAAe;QACjB,MAAME,mBAAmBC,KAAKC,SAAS,CAACL;QACxC,OAAOG,qBAAqB,OACxBf,mBAAmB,MAAMe,mBACzBf;IACN;IAEA,OAAOO;AACT;AAEO,SAASL,6BACdgB,QAAyB,EACzBC,gBAAwB;IAExB,IAAI,CAACD,YAAYA,SAASE,MAAM,KAAK,GAAG;QACtC,OAAO;IACT;IAEA,iFAAiF;IACjF,MAAMC,aACJF,qBAAqB,aACjBD,QAAQ,CAAC,EAAE,GACXA,QAAQ,CAACA,SAASE,MAAM,GAAG,EAAE;IAEnC,sGAAsG;IACtG,oEAAoE;IACpE,OAAOC,eAAevB,sBAAsB,OAAOuB;AACrD;AAGO,SAASjB,6BACdkB,IAAuB,EACvBH,gBAAwB,EACxBI,QAAQ,IAAI,EACZC,cAAwB,EAAE;IAE1B,IAAIC;IACJ,IAAIF,OAAO;QACT,kEAAkE;QAClEE,OAAOH,IAAI,CAAC,EAAE,CAACH,iBAAiB;IAClC,OAAO;QACL,oGAAoG;QACpG,MAAMO,iBAAiBJ,IAAI,CAAC,EAAE;QAC9BG,OAAOC,eAAeC,QAAQ,IAAIC,OAAOC,MAAM,CAACH,eAAe,CAAC,EAAE;IACpE;IAEA,IAAI,CAACD,MAAM,OAAOD;IAClB,MAAMjB,UAAUkB,IAAI,CAAC,EAAE;IAEvB,IAAIK,eAAe3B,gBAAgBI;IAEnC,IAAI,CAACuB,gBAAgBA,aAAanB,UAAU,CAACX,mBAAmB;QAC9D,OAAOwB;IACT;IAEAA,YAAYO,IAAI,CAACD;IAEjB,OAAO1B,6BACLqB,MACAN,kBACA,OACAK;AAEJ;AAEO,MAAMxB,mBAAmB;AACzB,MAAMF,sBAAsB;AAC5B,MAAMC,wBAAwB","ignoreList":[0]}},
{"offset": {"line": 6302, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/turbopack/deferred-emit.ts"],"sourcesContent":["/**\n * Fires a callback after a delay unless it's cancelled or flushed first.\n *\n * `schedule()` replaces any still-pending emit.\n */\nexport class DeferredEmit {\n #timer: ReturnType<typeof setTimeout> | undefined\n #fn: (() => void) | undefined\n\n /**\n * Arm `fn` to run after `delayMs`, replacing any still-pending emit.\n *\n * @param delayMs The delay in milliseconds before the callback is fired.\n * @param fn The callback function to be executed after the delay.\n */\n schedule(delayMs: number, scheduledFn: () => void): void {\n this.cancel()\n this.#fn = scheduledFn\n this.#timer = setTimeout(() => {\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }, delayMs)\n }\n\n /**\n * If an emit is pending, run it now instead of waiting for the delay.\n */\n flush(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }\n\n /**\n * Cancel a pending emit without running it.\n */\n cancel(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n this.#fn = undefined\n }\n\n get isPending(): boolean {\n return this.#timer !== undefined\n }\n}\n"],"names":["DeferredEmit","schedule","delayMs","scheduledFn","cancel","setTimeout","undefined","fn","flush","clearTimeout","isPending"],"mappings":"AAAA;;;;CAIC;;;+BACYA,gBAAAA;;;eAAAA;;;AAAN,MAAMA;KACX,CAAA,IAAM,CAA2C;KACjD,CAAA,CAAG,CAA0B;IAE7B;;;;;GAKC,GACDC,SAASC,OAAe,EAAEC,WAAuB,EAAQ;QACvD,IAAI,CAACC,MAAM;QACX,IAAI,EAAC,CAAA,CAAG,GAAGD;QACX,IAAI,EAAC,CAAA,IAAM,GAAGE,WAAW;YACvB,IAAI,EAAC,CAAA,IAAM,GAAGC;YACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;YACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;YACXC;QACF,GAAGL;IACL;IAEA;;GAEC,GACDM,QAAc;QACZ,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKF,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;QACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;QACXC;IACF;IAEA;;GAEC,GACDH,SAAe;QACb,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKE,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,IAAI,EAAC,CAAA,CAAG,GAAGA;IACb;IAEA,IAAII,YAAqB;QACvB,OAAO,IAAI,EAAC,CAAA,IAAM,KAAKJ;IACzB;AACF","ignoreList":[0]}},
{"offset": {"line": 6363, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils.ts"],"sourcesContent":["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 typLine truncated
{"offset": {"line": 6582, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils/warn-once.ts"],"sourcesContent":["let warnOnce = (_: string) => {}\nif (process.env.NODE_ENV !== 'production') {\n const warnings = new Set<string>()\n warnOnce = (msg: string) => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\nexport { warnOnce }\n"],"names":["warnOnce","_","process","env","NODE_ENV","warnings","Set","msg","has","console","warn","add"],"mappings":"AACIE,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAUpBJ,YAAAA;;;eAAAA;;;AAXT,IAAIA,WAAW,CAACC,KAAe;AAC/B,wCAA2C;IACzC,MAAMI,WAAW,IAAIC;IACrBN,WAAW,CAACO;QACV,IAAI,CAACF,SAASG,GAAG,CAACD,MAAM;YACtBE,QAAQC,IAAI,CAACH;QACf;QACAF,SAASM,GAAG,CAACJ;IACf;AACF","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,78 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/app-router-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport type {\n FocusAndScrollRef,\n PrefetchKind,\n} from '../../client/components/router-reducer/router-reducer-types'\nimport type { Params } from '../../server/request/params'\nimport type {\n FlightRouterState,\n FlightSegmentPath,\n CacheNode,\n LoadingModuleData,\n} from './app-router-types'\nimport React from 'react'\n\nexport interface NavigateOptions {\n scroll?: boolean\n /**\n * Transition types to apply when navigating. These types are passed to\n * [`React.addTransitionType`](https://react.dev/reference/react/addTransitionType)\n * inside the navigation transition, enabling\n * [`<ViewTransition>`](https://react.dev/reference/react/ViewTransition) components\n * to apply different animations based on the type of navigation.\n */\n transitionTypes?: string[]\n}\n\nexport interface PrefetchOptions {\n kind: PrefetchKind\n onInvalidate?: () => void\n}\n\nexport interface AppRouterInstance {\n /**\n * Navigate to the previous history entry.\n */\n back(): void\n /**\n * Navigate to the next history entry.\n */\n forward(): void\n /**\n * Refresh the current page.\n */\n refresh(): void\n /**\n * Refresh the current page. Use in development only.\n * @internal\n */\n hmrRefresh(): void\n /**\n * Navigate to the provided href.\n * Pushes a new history entry.\n */\n push(href: string, options?: NavigateOptions): void\n /**\n * Navigate to the provided href.\n * Replaces the current history entry.\n */\n replace(href: string, options?: NavigateOptions): void\n /**\n * Prefetch the provided href.\n */\n prefetch(href: string, options?: PrefetchOptions): void\n /**\n * Perform a gesture navigation using prefetched data.\n * Only available when experimental.gestureTransition is enabled.\n * @experimental\n */\n experimental_gesturePush?(href: string, options?: NavigateOptions): void\n /**\n * An opaque string identifier scoped to the current route segment.\n *\n * Changes when the surrounding segment is freshly created by a push or\n * replace navigation. Stays the same for back/forward navigations,\n * `router.refresh()`, and search-param/hash-only changes.\n *\n * Intended to be passed to a React `key` to opt out of state preservation\n * on fresh navigations:\n *\n * ```tsx\n * <form key={useRouter().bfcacheId}>\n * ```\n *\n * In most cases, prefer resetting state explicitly in an event handler, or\n * deriving a key from your data (e.g. a draft id from the server). Use\n * `bfcacheId` only when those patterns aren't a fit.\n */\n bfcacheId: string\n}\n\nexport const AppRouterContext = React.createContext<AppRouterInstance | null>(\n null\n)\nexport const LayoutRouterContext = React.createContext<{\n parentTree: FlightRouterState\n parentCacheNode: CacheNode\n parentSegmentPath: FlightSegmentPath | null\n parentParams: Params\n parentLoadingData: LoadingModuleData | null\n debugNameContext: string\n url: string\n isActive: boolean\n} | null>(null)\n\nexport const GlobalLayoutRouterContext = React.createContext<{\n tree: FlightRouterState\n focusAndScrollRef: FocusAndScrollRef\n nextUrl: string | null\n previousNextUrl: string | null\n}>(null as any)\n\nexport const TemplateContext = React.createContext<React.ReactNode>(null as any)\n\nif (process.env.NODE_ENV !== 'production') {\n AppRouterContext.displayName = 'AppRouterContext'\n LayoutRouterContext.displayName = 'LayoutRouterContext'\n GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext'\n TemplateContext.displayName = 'TemplateContext'\n}\n\nexport const MissingSlotContext = React.createContext<Set<string>>(new Set())\n"],"names":["AppRouterContext","GlobalLayoutRouterContext","LayoutRouterContext","MissingSlotContext","TemplateContext","React","createContext","process","env","NODE_ENV","displayName","Set"],"mappings":"AAkHIO,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAlH7B;;;;;;;;;;;;;;;;;;;IA2FaT,gBAAgB,EAAA;eAAhBA;;IAcAC,yBAAyB,EAAA;eAAzBA;;IAXAC,mBAAmB,EAAA;eAAnBA;;IA2BAC,kBAAkB,EAAA;eAAlBA;;IATAC,eAAe,EAAA;eAAfA;;;;gEAnGK;AA8EX,MAAMJ,mBAAmBK,OAAAA,OAAK,CAACC,aAAa,CACjD;AAEK,MAAMJ,sBAAsBG,OAAAA,OAAK,CAACC,aAAa,CAS5C;AAEH,MAAML,4BAA4BI,OAAAA,OAAK,CAACC,aAAa,CAKzD;AAEI,MAAMF,kBAAkBC,OAAAA,OAAK,CAACC,aAAa,CAAkB;AAEpE,wCAA2C;IACzCN,iBAAiBU,WAAW,GAAG;IAC/BR,oBAAoBQ,WAAW,GAAG;IAClCT,0BAA0BS,WAAW,GAAG;IACxCN,gBAAgBM,WAAW,GAAG;AAChC;AAEO,MAAMP,qBAAqBE,OAAAA,OAAK,CAACC,aAAa,CAAc,IAAIK","ignoreList":[0]}},
{"offset": {"line": 57, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/bloom-filter.ts"],"sourcesContent":["// minimal implementation MurmurHash2 hash function\nfunction murmurhash2(str: string) {\n let h = 0\n for (let i = 0; i < str.length; i++) {\n const c = str.charCodeAt(i)\n h = Math.imul(h ^ c, 0x5bd1e995)\n h ^= h >>> 13\n h = Math.imul(h, 0x5bd1e995)\n }\n return h >>> 0\n}\n\n// default to 0.01% error rate as the filter compresses very well\nconst DEFAULT_ERROR_RATE = 0.0001\n\nexport class BloomFilter {\n numItems: number\n errorRate: number\n numBits: number\n numHashes: number\n bitArray: number[]\n\n constructor(numItems: number, errorRate: number = DEFAULT_ERROR_RATE) {\n this.numItems = numItems\n this.errorRate = errorRate\n this.numBits = Math.ceil(\n -(numItems * Math.log(errorRate)) / (Math.log(2) * Math.log(2))\n )\n this.numHashes = Math.ceil((this.numBits / numItems) * Math.log(2))\n this.bitArray = new Array(this.numBits).fill(0)\n }\n\n static from(items: string[], errorRate = DEFAULT_ERROR_RATE) {\n const filter = new BloomFilter(items.length, errorRate)\n\n for (const item of items) {\n filter.add(item)\n }\n return filter\n }\n\n export() {\n const data = {\n numItems: this.numItems,\n errorRate: this.errorRate,\n numBits: this.numBits,\n numHashes: this.numHashes,\n bitArray: this.bitArray,\n }\n\n if (process.env.NEXT_RUNTIME === 'nodejs') {\n if (this.errorRate < DEFAULT_ERROR_RATE) {\n const filterData = JSON.stringify(data)\n const gzipSize = (\n require('next/dist/compiled/gzip-size') as typeof import('next/dist/compiled/gzip-size')\n ).sync(filterData)\n\n if (gzipSize > 1024) {\n console.warn(\n `Creating filter with error rate less than 0.1% (0.001) can increase the size dramatically proceed with caution. Received error rate ${this.errorRate} resulted in size ${filterData.length} bytes, ${gzipSize} bytes (gzip)`\n )\n }\n }\n }\n\n return data\n }\n\n import(data: ReturnType<(typeof this)['export']>) {\n this.numItems = data.numItems\n this.errorRate = data.errorRate\n this.numBits = data.numBits\n this.numHashes = data.numHashes\n this.bitArray = data.bitArray\n }\n\n add(item: string) {\n const hashValues = this.getHashValues(item)\n hashValues.forEach((hash) => {\n this.bitArray[hash] = 1\n })\n }\n\n contains(item: string) {\n const hashValues = this.getHashValues(item)\n return hashValues.every((hash) => this.bitArray[hash])\n }\n\n getHashValues(item: string) {\n const hashValues = []\n for (let i = 1; i <= this.numHashes; i++) {\n const hash = murmurhash2(`${item}${i}`) % this.numBits\n hashValues.push(hash)\n }\n return hashValues\n }\n}\n"],"names":["BloomFilter","murmurhash2","str","h","i","length","c","charCodeAt","Math","imul","DEFAULT_ERROR_RATE","constructor","numItems","errorRate","numBits","ceil","log","numHashes","bitArray","Array","fill","from","items","filter","item","add","export","data","process","env","NEXT_RUNTIME","filterData","JSON","stringify","gzipSize","require","sync","console","warn","import","hashValues","getHashValues","forEach","hash","contains","every","push"],"mappings":"AAkDQ4B,QAAQC,GAAG,CAACC,YAAY,KAAK,UAAU;AAlD/C,mDAAmD;;;;;+BAetC9B,eAAAA;;;eAAAA;;;AAdb,SAASC,YAAYC,GAAW;IAC9B,IAAIC,IAAI;IACR,IAAK,IAAIC,IAAI,GAAGA,IAAIF,IAAIG,MAAM,EAAED,IAAK;QACnC,MAAME,IAAIJ,IAAIK,UAAU,CAACH;QACzBD,IAAIK,KAAKC,IAAI,CAACN,IAAIG,GAAG;QACrBH,KAAKA,MAAM;QACXA,IAAIK,KAAKC,IAAI,CAACN,GAAG;IACnB;IACA,OAAOA,MAAM;AACf;AAEA,iEAAiE;AACjE,MAAMO,qBAAqB;AAEpB,MAAMV;IAOXW,YAAYC,QAAgB,EAAEC,YAAoBH,kBAAkB,CAAE;QACpE,IAAI,CAACE,QAAQ,GAAGA;QAChB,IAAI,CAACC,SAAS,GAAGA;QACjB,IAAI,CAACC,OAAO,GAAGN,KAAKO,IAAI,CACtB,CAAEH,CAAAA,WAAWJ,KAAKQ,GAAG,CAACH,UAAS,IAAML,CAAAA,KAAKQ,GAAG,CAAC,KAAKR,KAAKQ,GAAG,CAAC,EAAC;QAE/D,IAAI,CAACC,SAAS,GAAGT,KAAKO,IAAI,CAAE,IAAI,CAACD,OAAO,GAAGF,WAAYJ,KAAKQ,GAAG,CAAC;QAChE,IAAI,CAACE,QAAQ,GAAG,IAAIC,MAAM,IAAI,CAACL,OAAO,EAAEM,IAAI,CAAC;IAC/C;IAEA,OAAOC,KAAKC,KAAe,EAAET,YAAYH,kBAAkB,EAAE;QAC3D,MAAMa,SAAS,IAAIvB,YAAYsB,MAAMjB,MAAM,EAAEQ;QAE7C,KAAK,MAAMW,QAAQF,MAAO;YACxBC,OAAOE,GAAG,CAACD;QACb;QACA,OAAOD;IACT;IAEAG,SAAS;QACP,MAAMC,OAAO;YACXf,UAAU,IAAI,CAACA,QAAQ;YACvBC,WAAW,IAAI,CAACA,SAAS;YACzBC,SAAS,IAAI,CAACA,OAAO;YACrBG,WAAW,IAAI,CAACA,SAAS;YACzBC,UAAU,IAAI,CAACA,QAAQ;QACzB;QAEA;;QAeA,OAAOS;IACT;IAEAY,OAAOZ,IAAyC,EAAE;QAChD,IAAI,CAACf,QAAQ,GAAGe,KAAKf,QAAQ;QAC7B,IAAI,CAACC,SAAS,GAAGc,KAAKd,SAAS;QAC/B,IAAI,CAACC,OAAO,GAAGa,KAAKb,OAAO;QAC3B,IAAI,CAACG,SAAS,GAAGU,KAAKV,SAAS;QAC/B,IAAI,CAACC,QAAQ,GAAGS,KAAKT,QAAQ;IAC/B;IAEAO,IAAID,IAAY,EAAE;QAChB,MAAMgB,aAAa,IAAI,CAACC,aAAa,CAACjB;QACtCgB,WAAWE,OAAO,CAAC,CAACC;YAClB,IAAI,CAACzB,QAAQ,CAACyB,KAAK,GAAG;QACxB;IACF;IAEAC,SAASpB,IAAY,EAAE;QACrB,MAAMgB,aAAa,IAAI,CAACC,aAAa,CAACjB;Line truncated
{"offset": {"line": 138, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/constants.ts"],"sourcesContent":["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-mLine truncated
{"offset": {"line": 595, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/deployment-id.ts"],"sourcesContent":["let deploymentId: string | undefined\n\nif (typeof window !== 'undefined') {\n deploymentId = document.documentElement.dataset.dplId\n // Immediately remove the attribute to prevent hydration errors (the dplId was inserted into the\n // HTML only), React isn't aware of it at all.\n delete document.documentElement.dataset.dplId\n} else {\n // Client side: replaced with globalThis.NEXT_DEPLOYMENT_ID\n // Server side: left as is or replaced with a string or replaced with false\n deploymentId = process.env.NEXT_DEPLOYMENT_ID || undefined\n}\n\nexport function getDeploymentId(): string | undefined {\n return deploymentId\n}\n\nexport function getDeploymentIdQuery(ampersand = false): string {\n let id = getDeploymentId()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n\nexport function getAssetToken(): string | undefined {\n return process.env.NEXT_SUPPORTS_IMMUTABLE_ASSETS\n ? undefined\n : process.env.NEXT_DEPLOYMENT_ID\n}\n\nexport function getAssetTokenQuery(ampersand = false): string {\n let id = getAssetToken()\n if (id) {\n return `${ampersand ? '&' : '?'}dpl=${id}`\n }\n return ''\n}\n"],"names":["getAssetToken","getAssetTokenQuery","getDeploymentId","getDeploymentIdQuery","deploymentId","window","document","documentElement","dataset","dplId","process","env","NEXT_DEPLOYMENT_ID","undefined","ampersand","id","NEXT_SUPPORTS_IMMUTABLE_ASSETS"],"mappings":"AAUiBU,QAAQC,GAAG,CAACC,kBAAkB;;;;;;;;;;;;;;;;;;IAe/BZ,aAAa,EAAA;eAAbA;;IAMAC,kBAAkB,EAAA;eAAlBA;;IAlBAC,eAAe,EAAA;eAAfA;;IAIAC,oBAAoB,EAAA;eAApBA;;;AAjBhB,IAAIC;AAEJ,IAAI,OAAOC,WAAW,aAAa;IACjCD,eAAeE,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;IACrD,gGAAgG;IAChG,8CAA8C;IAC9C,OAAOH,SAASC,eAAe,CAACC,OAAO,CAACC,KAAK;AAC/C,OAAO;IACL,2DAA2D;IAC3D,2EAA2E;IAC3EL,0DAAiDS;AACnD;AAEO,SAASX;IACd,OAAOE;AACT;AAEO,SAASD,qBAAqBW,YAAY,KAAK;IACpD,IAAIC,KAAKb;IACT,IAAIa,IAAI;QACN,OAAO,GAAGD,YAAY,MAAM,IAAI,IAAI,EAAEC,IAAI;IAC5C;IACA,OAAO;AACT;AAEO,SAASf;IACd,OAAOU,QAAQC,GAAG,CAACK,0BACfH,IAD6C,QAE7CH,QAAQC,GAAG,CAACC,kBAAkB;AACpC;AAEO,SAASX,mBAAmBa,YAAY,KAAK;IAClD,IAAIC,KAAKf;IACT,IAAIe,IAAI;;IAGR,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 660, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/encode-uri-path.ts"],"sourcesContent":["export function encodeURIPath(file: string) {\n return file\n .split('/')\n .map((p) => encodeURIComponent(p))\n .join('/')\n}\n"],"names":["encodeURIPath","file","split","map","p","encodeURIComponent","join"],"mappings":";;;+BAAgBA,iBAAAA;;;eAAAA;;;AAAT,SAASA,cAAcC,IAAY;IACxC,OAAOA,KACJC,KAAK,CAAC,KACNC,GAAG,CAAC,CAACC,IAAMC,mBAAmBD,IAC9BE,IAAI,CAAC;AACV","ignoreList":[0]}},
{"offset": {"line": 676, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/entry-constants.ts"],"sourcesContent":["export const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found'\nexport const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = `${UNDERSCORE_NOT_FOUND_ROUTE}/page`\nexport const UNDERSCORE_GLOBAL_ERROR_ROUTE = '/_global-error'\nexport const UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY = `${UNDERSCORE_GLOBAL_ERROR_ROUTE}/page`\n"],"names":["UNDERSCORE_GLOBAL_ERROR_ROUTE","UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY","UNDERSCORE_NOT_FOUND_ROUTE","UNDERSCORE_NOT_FOUND_ROUTE_ENTRY"],"mappings":";;;;;;;;;;;;;;;;IAEaA,6BAA6B,EAAA;eAA7BA;;IACAC,mCAAmC,EAAA;eAAnCA;;IAHAC,0BAA0B,EAAA;eAA1BA;;IACAC,gCAAgC,EAAA;eAAhCA;;;AADN,MAAMD,6BAA6B;AACnC,MAAMC,mCAAmC,GAAGD,2BAA2B,KAAK,CAAC;AAC7E,MAAMF,gCAAgC;AACtC,MAAMC,sCAAsC,GAAGD,8BAA8B,KAAK,CAAC","ignoreList":[0]}},
{"offset": {"line": 713, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/error-source.ts"],"sourcesContent":["const symbolError = Symbol.for('NextjsError')\n\nexport function getErrorSource(error: Error): 'server' | 'edge-server' | null {\n return (error as any)[symbolError] || null\n}\n\nexport type ErrorSourceType = 'edge-server' | 'server'\n\nexport function decorateServerError(error: Error, type: ErrorSourceType) {\n Object.defineProperty(error, symbolError, {\n writable: false,\n enumerable: false,\n configurable: false,\n value: type,\n })\n}\n"],"names":["decorateServerError","getErrorSource","symbolError","Symbol","for","error","type","Object","defineProperty","writable","enumerable","configurable","value"],"mappings":";;;;;;;;;;;;;;IAQgBA,mBAAmB,EAAA;eAAnBA;;IANAC,cAAc,EAAA;eAAdA;;;AAFhB,MAAMC,cAAcC,OAAOC,GAAG,CAAC;AAExB,SAASH,eAAeI,KAAY;IACzC,OAAQA,KAAa,CAACH,YAAY,IAAI;AACxC;AAIO,SAASF,oBAAoBK,KAAY,EAAEC,IAAqB;IACrEC,OAAOC,cAAc,CAACH,OAAOH,aAAa;QACxCO,UAAU;QACVC,YAAY;QACZC,cAAc;QACdC,OAAON;IACT;AACF","ignoreList":[0]}},
{"offset": {"line": 750, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/escape-regexp.ts"],"sourcesContent":["// regexp is based on https://github.com/sindresorhus/escape-string-regexp\nconst reHasRegExp = /[|\\\\{}()[\\]^$+*?.-]/\nconst reReplaceRegExp = /[|\\\\{}()[\\]^$+*?.-]/g\n\nexport function escapeStringRegexp(str: string) {\n // see also: https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/escapeRegExp.js#L23\n if (reHasRegExp.test(str)) {\n return str.replace(reReplaceRegExp, '\\\\$&')\n }\n return str\n}\n"],"names":["escapeStringRegexp","reHasRegExp","reReplaceRegExp","str","test","replace"],"mappings":"AAAA,0EAA0E;;;;+BAI1DA,sBAAAA;;;eAAAA;;;AAHhB,MAAMC,cAAc;AACpB,MAAMC,kBAAkB;AAEjB,SAASF,mBAAmBG,GAAW;IAC5C,+GAA+G;IAC/G,IAAIF,YAAYG,IAAI,CAACD,MAAM;QACzB,OAAOA,IAAIE,OAAO,CAACH,iBAAiB;IACtC;IACA,OAAOC;AACT","ignoreList":[0]}},
{"offset": {"line": 773, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/format-webpack-messages.ts"],"sourcesContent":["/**\nMIT License\n\nCopyright (c) 2015-present, Facebook, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\nimport stripAnsi from 'next/dist/compiled/strip-ansi'\n// This file is based on https://github.com/facebook/create-react-app/blob/7b1a32be6ec9f99a6c9a3c66813f3ac09c4736b9/packages/react-dev-utils/formatWebpackMessages.js\n// It's been edited to remove chalk and CRA-specific logic\n\nconst friendlySyntaxErrorLabel = 'Syntax error:'\n\nconst WEBPACK_BREAKING_CHANGE_POLYFILLS =\n '\\n\\nBREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.'\n\nfunction isLikelyASyntaxError(message: string) {\n return stripAnsi(message).includes(friendlySyntaxErrorLabel)\n}\n\nlet hadMissingSassError = false\n\n// Cleans up webpack error messages.\nfunction formatMessage(\n message: any,\n verbose?: boolean,\n importTraceNote?: boolean\n) {\n // TODO: Replace this once webpack 5 is stable\n if (typeof message === 'object' && message.message) {\n let filteredModuleTrace =\n message.moduleTrace &&\n message.moduleTrace.filter(\n (trace: any) =>\n !/next-(middleware|client-pages|route|edge-function)-loader\\.js/.test(\n trace.originName\n )\n )\n\n let body = message.message\n const breakingChangeIndex = body.indexOf(WEBPACK_BREAKING_CHANGE_POLYFILLS)\n if (breakingChangeIndex >= 0) {\n body = body.slice(0, breakingChangeIndex)\n }\n\n // TODO: Rspack currently doesn't populate moduleName correctly in some cases,\n // fall back to moduleIdentifier as a workaround\n if (\n process.env.NEXT_RSPACK &&\n !message.moduleName &&\n !message.file &&\n message.moduleIdentifier\n ) {\n const parts = message.moduleIdentifier.split('!')\n message.moduleName = parts[parts.length - 1]\n }\n\n message =\n (message.moduleName ? stripAnsi(message.moduleName) + '\\n' : '') +\n (message.file ? stripAnsi(message.file) + '\\n' : '') +\n body +\n (message.details && verbose ? '\\n' + message.details : '') +\n (filteredModuleTrace && filteredModuleTrace.length\n ? (importTraceNote || '\\n\\nImport trace for requested module:') +\n filteredModuleTrace\n .map((trace: any) => `\\n${trace.moduleName}`)\n .join('')\n : '') +\n (message.stack && verbose ? '\\n' + message.stack : '')\n }\n let lines = message.split('\\n')\n\n // Extract loader paths from Webpack-added headers and move them to end.\n // Original format: \"Module build failed (from ./loaders/foo-loader.js):\"\n // The header line is removed and the path is appended at the end as:\n // \" (from ./loaders/foo-loader.js)\"\n // https://github.com/webpack/webpack/blob/master/lib/ModuleError.js\n const loaderPaths: string[] = []\n lines = lines.filter((line: string) => {\n const match = /Module [A-z ]+\\(from (.+)\\):?\\s*$/.exec(line)\n if (match) {\n loaderPaths.push(match[1])\n return false\n }\n return true\n })\n\n // Transform parsing error into syntax error\n // TODO: move this to our ESLint formatter?\n lines = lines.map((line: string) => {\n const parsingError = /Line (\\d+):(?:(\\d+):)?\\s*Parsing error: (.+)$/.exec(\n line\n )\n if (!parsingError) {\n return line\n }\n const [, errorLine, errorColumn, errorMessage] = parsingError\n return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`\n })\n\n message = lines.join('\\n')\n // Smoosh syntax errors (commonly found in CSS)\n message = message.replace(\n /SyntaxError\\s+\\((\\d+):(\\d+)\\)\\s*(.+?)\\n/g,\n `${friendlySyntaxErrorLabel} $3 ($1:$2)\\n`\n )\n // Clean up export errors\n message = message.replace(\n /^.*eLine truncated
{"offset": {"line": 960, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/head-manager-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\n\nexport const HeadManagerContext: React.Context<{\n updateHead?: (state: any) => void\n mountedInstances?: any\n updateScripts?: (state: any) => void\n scripts?: any\n getIsSsr?: () => boolean\n\n // Used in app directory, to render script tags as server components.\n appDir?: boolean\n nonce?: string\n}> = React.createContext({})\n\nif (process.env.NODE_ENV !== 'production') {\n HeadManagerContext.displayName = 'HeadManagerContext'\n}\n"],"names":["HeadManagerContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAcIG,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAZhBL,sBAAAA;;;eAAAA;;;;gEAFK;AAEX,MAAMA,qBAURC,OAAAA,OAAK,CAACC,aAAa,CAAC,CAAC;AAE1B,wCAA2C;IACzCF,mBAAmBM,WAAW,GAAG;AACnC","ignoreList":[0]}},
{"offset": {"line": 981, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/head.tsx"],"sourcesContent":["'use client'\n\nimport React, { useContext, type JSX } from 'react'\nimport Effect from './side-effect'\nimport { HeadManagerContext } from './head-manager-context.shared-runtime'\n\nexport function defaultHead(): JSX.Element[] {\n const head = [\n <meta charSet=\"utf-8\" key=\"charset\" />,\n <meta name=\"viewport\" content=\"width=device-width\" key=\"viewport\" />,\n ]\n return head\n}\n\nfunction onlyReactElement(\n list: Array<React.ReactElement<any>>,\n child: React.ReactElement | number | string\n): Array<React.ReactElement<any>> {\n // React children can be \"string\" or \"number\" in this case we ignore them for backwards compat\n if (typeof child === 'string' || typeof child === 'number') {\n return list\n }\n // Adds support for React.Fragment\n if (child.type === React.Fragment) {\n return list.concat(\n // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]\n React.Children.toArray(child.props.children).reduce(\n // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]\n (\n fragmentList: Array<React.ReactElement<any>>,\n fragmentChild: React.ReactElement | number | string\n ): Array<React.ReactElement<any>> => {\n if (\n typeof fragmentChild === 'string' ||\n typeof fragmentChild === 'number'\n ) {\n return fragmentList\n }\n return fragmentList.concat(fragmentChild)\n },\n []\n )\n )\n }\n return list.concat(child)\n}\n\nconst METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp']\n\n/*\n returns a function for filtering head child elements\n which shouldn't be duplicated, like <title/>\n Also adds support for deduplicated `key` properties\n*/\nfunction unique() {\n const keys = new Set()\n const tags = new Set()\n const metaTypes = new Set()\n const metaCategories: { [metatype: string]: Set<string> } = {}\n\n return (h: React.ReactElement<any>) => {\n let isUnique = true\n let hasKey = false\n\n if (h.key && typeof h.key !== 'number' && h.key.indexOf('$') > 0) {\n hasKey = true\n const key = h.key.slice(h.key.indexOf('$') + 1)\n if (keys.has(key)) {\n isUnique = false\n } else {\n keys.add(key)\n }\n }\n\n switch (h.type) {\n case 'title':\n case 'base':\n if (tags.has(h.type)) {\n isUnique = false\n } else {\n tags.add(h.type)\n }\n break\n case 'meta':\n for (let i = 0, len = METATYPES.length; i < len; i++) {\n const metatype = METATYPES[i]\n if (!h.props.hasOwnProperty(metatype)) continue\n\n if (metatype === 'charSet') {\n if (metaTypes.has(metatype)) {\n isUnique = false\n } else {\n metaTypes.add(metatype)\n }\n } else {\n const category = h.props[metatype]\n const categories = metaCategories[metatype] || new Set()\n if ((metatype !== 'name' || !hasKey) && categories.has(category)) {\n isUnique = false\n } else {\n categories.add(category)\n metaCategories[metatype] = categories\n }\n }\n }\n break\n default:\n break\n }\n\n return isUnique\n }\n}\n\n/**\n *\n * @param headChildrenElements List of children of <Head>\n */\nfunction reduceComponents(\n headChildrenElements: Array<React.ReactElement<any>>\n) {\n return headChildrenElements\n .reduce(onlyReactElement, [])\n .reverse()\n .concat(defaultHead().reverse())\n .filter(unique())\n .reverse()\n .map((c: React.ReactElement<any>, i: number) => {\n const key = c.key || i\n if (process.env.NODE_ENV === 'development') {\n const { warnOnce } =\n require('./utils/warn-once') as typeof import('./utils/warn-once')\n // omit JSON-LD structured data snippets from the warning\n if (c.type === 'script' && c.props['type'] !== 'application/ld+json') {\n const srcMessage = c.props['src']\n ? `<script> tag with src=\"${c.props['src']}\"`\n : `inline <script>`\n warnOnce(\n `Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead. \\nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`\n )\n } else if (c.type === 'link' && c.props['rel'] === 'stylesheet') {\n warnOnce(\n `Do not add stylesheets using next/head (see <link rel=\"stylesheet\"> tag with href=\"${c.props['href']}\"). Use Document instead. \\nSee more info here: https://nextjs.org/docs/messages/no-stylesheeLine truncated
{"offset": {"line": 1147, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/hooks-client-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport { createContext } from 'react'\nimport type { Params } from '../../server/request/params'\nimport { ReadonlyURLSearchParams } from '../../client/components/readonly-url-search-params'\n\nexport const SearchParamsContext = createContext<URLSearchParams | null>(null)\nexport const PathnameContext = createContext<string | null>(null)\nexport const PathParamsContext = createContext<Params | null>(null)\n\n// Dev-only context for Suspense DevTools instrumentation\n// These promises are used to track navigation hook usage in React DevTools\nexport type InstrumentedPromise<T> = Promise<T> & {\n status: 'fulfilled'\n value: T\n displayName: string\n}\n\nexport type NavigationPromises = {\n pathname: InstrumentedPromise<string>\n searchParams: InstrumentedPromise<ReadonlyURLSearchParams>\n params: InstrumentedPromise<Params>\n // Layout segment hooks (updated at each layout boundary)\n selectedLayoutSegmentPromises?: Map<\n string,\n InstrumentedPromise<string | null>\n >\n selectedLayoutSegmentsPromises?: Map<string, InstrumentedPromise<string[]>>\n}\n\nexport const NavigationPromisesContext =\n createContext<NavigationPromises | null>(null)\n\n// Creates an instrumented promise for Suspense DevTools\n// These promises are always fulfilled and exist purely for\n// tracking in React's Suspense DevTools.\nexport function createDevToolsInstrumentedPromise<T>(\n displayName: string,\n value: T\n): InstrumentedPromise<T> {\n const promise = Promise.resolve(value) as InstrumentedPromise<T>\n promise.status = 'fulfilled'\n promise.value = value\n promise.displayName = `${displayName} (SSR)`\n return promise\n}\n\nexport { ReadonlyURLSearchParams }\n\nif (process.env.NODE_ENV !== 'production') {\n SearchParamsContext.displayName = 'SearchParamsContext'\n PathnameContext.displayName = 'PathnameContext'\n PathParamsContext.displayName = 'PathParamsContext'\n NavigationPromisesContext.displayName = 'NavigationPromisesContext'\n}\n"],"names":["NavigationPromisesContext","PathParamsContext","PathnameContext","ReadonlyURLSearchParams","SearchParamsContext","createDevToolsInstrumentedPromise","createContext","displayName","value","promise","Promise","resolve","status","process","env","NODE_ENV"],"mappings":"AAiDIa,QAAQC,GAAG,CAACC,QAAQ,KAAK;AAjD7B;;;;;;;;;;;;;;;;;;;;IA8Baf,yBAAyB,EAAA;eAAzBA;;IAtBAC,iBAAiB,EAAA;eAAjBA;;IADAC,eAAe,EAAA;eAAfA;;IAwCJC,uBAAuB,EAAA;eAAvBA,yBAAAA,uBAAuB;;IAzCnBC,mBAAmB,EAAA;eAAnBA;;IA8BGC,iCAAiC,EAAA;eAAjCA;;;uBAlCc;yCAEU;AAEjC,MAAMD,sBAAsBE,CAAAA,GAAAA,OAAAA,aAAa,EAAyB;AAClE,MAAMJ,kBAAkBI,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AACrD,MAAML,oBAAoBK,CAAAA,GAAAA,OAAAA,aAAa,EAAgB;AAsBvD,MAAMN,4BACXM,CAAAA,GAAAA,OAAAA,aAAa,EAA4B;AAKpC,SAASD,kCACdE,WAAmB,EACnBC,KAAQ;IAER,MAAMC,UAAUC,QAAQC,OAAO,CAACH;IAChCC,QAAQG,MAAM,GAAG;IACjBH,QAAQD,KAAK,GAAGA;IAChBC,QAAQF,WAAW,GAAG,GAAGA,YAAY,MAAM,CAAC;IAC5C,OAAOE;AACT;AAIA,wCAA2C;IACzCL,oBAAoBG,WAAW,GAAG;IAClCL,gBAAgBK,WAAW,GAAG;IAC9BN,kBAAkBM,WAAW,GAAG;IAChCP,0BAA0BO,WAAW,GAAG;AAC1C","ignoreList":[0]}},
{"offset": {"line": 1210, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/htmlescape.ts"],"sourcesContent":["// This utility is based on https://github.com/zertosh/htmlescape\n// License: https://github.com/zertosh/htmlescape/blob/0527ca7156a524d256101bb310a9f970f63078ad/LICENSE\n\nconst ESCAPE_LOOKUP: { [match: string]: string } = {\n '&': '\\\\u0026',\n '>': '\\\\u003e',\n '<': '\\\\u003c',\n '\\u2028': '\\\\u2028',\n '\\u2029': '\\\\u2029',\n}\n\nexport const ESCAPE_REGEX = /[&><\\u2028\\u2029]/g\n\nconst ATTRIBUTE_ESCAPE_LOOKUP: { [match: string]: string } = {\n '&': '&amp;',\n '\"': '&quot;',\n \"'\": '&#39;',\n '<': '&lt;',\n '>': '&gt;',\n}\n\nconst ATTRIBUTE_ESCAPE_REGEX = /[&\"'<>]/g\n\nexport function htmlEscapeJsonString(str: string): string {\n return str.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match])\n}\n\nexport function htmlEscapeAttributeString(str: string): string {\n return str.replace(\n ATTRIBUTE_ESCAPE_REGEX,\n (match) => ATTRIBUTE_ESCAPE_LOOKUP[match]\n )\n}\n"],"names":["ESCAPE_REGEX","htmlEscapeAttributeString","htmlEscapeJsonString","ESCAPE_LOOKUP","ATTRIBUTE_ESCAPE_LOOKUP","ATTRIBUTE_ESCAPE_REGEX","str","replace","match"],"mappings":"AAAA,iEAAiE;AACjE,uGAAuG;;;;;;;;;;;;;;;;IAU1FA,YAAY,EAAA;eAAZA;;IAgBGC,yBAAyB,EAAA;eAAzBA;;IAJAC,oBAAoB,EAAA;eAApBA;;;AApBhB,MAAMC,gBAA6C;IACjD,KAAK;IACL,KAAK;IACL,KAAK;IACL,UAAU;IACV,UAAU;AACZ;AAEO,MAAMH,eAAe;AAE5B,MAAMI,0BAAuD;IAC3D,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACP;AAEA,MAAMC,yBAAyB;AAExB,SAASH,qBAAqBI,GAAW;IAC9C,OAAOA,IAAIC,OAAO,CAACP,cAAc,CAACQ,QAAUL,aAAa,CAACK,MAAM;AAClE;AAEO,SAASP,0BAA0BK,GAAW;IACnD,OAAOA,IAAIC,OAAO,CAChBF,wBACA,CAACG,QAAUJ,uBAAuB,CAACI,MAAM;AAE7C","ignoreList":[0]}},
{"offset": {"line": 1263, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/i18n/normalize-locale-path.ts"],"sourcesContent":["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"],"names":["normalizeLocalePath","cache","WeakMap","pathname","locales","lowercasedLocales","get","map","locale","toLowerCase","set","detectedLocale","segments","split","segment","index","indexOf","slice","length"],"mappings":";;;+BAqBgBA,uBAAAA;;;eAAAA;;;AAhBhB;;;;CAIC,GACD,MAAMC,QAAQ,IAAIC;AAWX,SAASF,oBACdG,QAAgB,EAChBC,OAA2B;IAE3B,sDAAsD;IACtD,IAAI,CAACA,SAAS,OAAO;QAAED;IAAS;IAEhC,iEAAiE;IACjE,IAAIE,oBAAoBJ,MAAMK,GAAG,CAACF;IAClC,IAAI,CAACC,mBAAmB;QACtBA,oBAAoBD,QAAQG,GAAG,CAAC,CAACC,SAAWA,OAAOC,WAAW;QAC9DR,MAAMS,GAAG,CAACN,SAASC;IACrB;IAEA,IAAIM;IAEJ,oEAAoE;IACpE,yEAAyE;IACzE,MAAMC,WAAWT,SAASU,KAAK,CAAC,KAAK;IAErC,0EAA0E;IAC1E,UAAU;IACV,IAAI,CAACD,QAAQ,CAAC,EAAE,EAAE,OAAO;QAAET;IAAS;IAEpC,0DAA0D;IAC1D,MAAMW,UAAUF,QAAQ,CAAC,EAAE,CAACH,WAAW;IAEvC,yEAAyE;IACzE,mCAAmC;IACnC,MAAMM,QAAQV,kBAAkBW,OAAO,CAACF;IACxC,IAAIC,QAAQ,GAAG,OAAO;QAAEZ;IAAS;IAEjC,oCAAoC;IACpCQ,iBAAiBP,OAAO,CAACW,MAAM;IAE/B,gDAAgD;IAChDZ,WAAWA,SAASc,KAAK,CAACN,eAAeO,MAAM,GAAG,MAAM;IAExD,OAAO;QAAEf;QAAUQ;IAAe;AACpC","ignoreList":[0]}},
{"offset": {"line": 1318, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/image-config-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\nimport type { ImageConfigComplete } from './image-config'\nimport { imageConfigDefault } from './image-config'\n\nexport const ImageConfigContext =\n React.createContext<ImageConfigComplete>(imageConfigDefault)\n\nif (process.env.NODE_ENV !== 'production') {\n ImageConfigContext.displayName = 'ImageConfigContext'\n}\n"],"names":["ImageConfigContext","React","createContext","imageConfigDefault","process","env","NODE_ENV","displayName"],"mappings":"AAOII,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAHhBN,sBAAAA;;;eAAAA;;;;gEAJK;6BAEiB;AAE5B,MAAMA,qBACXC,OAAAA,OAAK,CAACC,aAAa,CAAsBC,aAAAA,kBAAkB;AAE7D,wCAA2C;IACzCH,mBAAmBO,WAAW,GAAG;AACnC","ignoreList":[0]}},
{"offset": {"line": 1340, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/image-config.ts"],"sourcesContent":["export const VALID_LOADERS = [\n 'default',\n 'imgix',\n 'cloudinary',\n 'akamai',\n 'custom',\n] as const\n\nexport type LoaderValue = (typeof VALID_LOADERS)[number]\n\nexport type ImageLoaderProps = {\n src: string\n width: number\n quality?: number\n}\n\nexport type ImageLoaderPropsWithConfig = ImageLoaderProps & {\n config: Readonly<ImageConfig>\n}\n\nexport type LocalPattern = {\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single path segment.\n * Double `**` matches any number of path segments.\n */\n pathname?: string\n\n /**\n * Can be literal query string such as `?v=1` or\n * empty string meaning no query string.\n */\n search?: string\n}\n\nexport type RemotePattern = {\n /**\n * Must be `http` or `https`.\n */\n protocol?: 'http' | 'https'\n\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single subdomain.\n * Double `**` matches any number of subdomains.\n */\n hostname: string\n\n /**\n * Can be literal port such as `8080` or empty string\n * meaning no port.\n */\n port?: string\n\n /**\n * Can be literal or wildcard.\n * Single `*` matches a single path segment.\n * Double `**` matches any number of path segments.\n */\n pathname?: string\n\n /**\n * Can be literal query string such as `?v=1` or\n * empty string meaning no query string.\n */\n search?: string\n}\n\ntype ImageFormat = 'image/avif' | 'image/webp'\n\n/**\n * Image configurations\n *\n * @see [Image configuration options](https://nextjs.org/docs/api-reference/next/image#configuration-options)\n */\nexport type ImageConfigComplete = {\n /** @see [Device sizes documentation](https://nextjs.org/docs/api-reference/next/image#device-sizes) */\n deviceSizes: number[]\n\n /** @see [Image sizing documentation](https://nextjs.org/docs/app/building-your-application/optimizing/images#image-sizing) */\n imageSizes: number[]\n\n /** @see [Image loaders configuration](https://nextjs.org/docs/api-reference/next/legacy/image#loader) */\n loader: LoaderValue\n\n /** @see [Image loader configuration](https://nextjs.org/docs/app/api-reference/components/image#path) */\n path: string\n\n /** @see [Image loader configuration](https://nextjs.org/docs/api-reference/next/image#loader-configuration) */\n loaderFile: string\n\n /**\n * @deprecated Use `remotePatterns` instead.\n */\n domains: string[]\n\n /** @see [Disable static image import configuration](https://nextjs.org/docs/api-reference/next/image#disable-static-imports) */\n disableStaticImages: boolean\n\n /** @see [Cache behavior](https://nextjs.org/docs/api-reference/next/image#caching-behavior) */\n minimumCacheTTL: number\n\n /** @see [Acceptable formats](https://nextjs.org/docs/api-reference/next/image#acceptable-formats) */\n formats: ImageFormat[]\n\n /** @see [Maximum Disk Cache Size (in bytes)](https://nextjs.org/docs/api-reference/next/image#maximumdiskcachesize) */\n maximumDiskCacheSize: number | undefined\n\n /** @see [Maximum Redirects](https://nextjs.org/docs/api-reference/next/image#maximumredirects) */\n maximumRedirects: number\n\n /** @see [Maximum Response Body](https://nextjs.org/docs/api-reference/next/image#maximumresponsebody) */\n maximumResponseBody: number\n\n /** @see [Dangerously Allow Local IP](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-local-ip) */\n dangerouslyAllowLocalIP: boolean\n\n /** @see [Dangerously Allow SVG](https://nextjs.org/docs/api-reference/next/image#dangerously-allow-svg) */\n dangerouslyAllowSVG: boolean\n\n /** @see [Content Security Policy](https://nextjs.org/docs/api-reference/next/image#contentsecuritypolicy) */\n contentSecurityPolicy: string\n\n /** @see [Content Disposition Type](https://nextjs.org/docs/api-reference/next/image#contentdispositiontype) */\n contentDispositionType: 'inline' | 'attachment'\n\n /** @see [Remote Patterns](https://nextjs.org/docs/api-reference/next/image#remotepatterns) */\n remotePatterns: Array<URL | RemotePattern>\n\n /** @see [Local Patterns](https://nextjs.org/docs/api-reference/next/image#localPatterns) */\n localPatterns: LocalPattern[] | undefined\n\n /** @see [Qualities](https://nextjs.org/docs/api-reference/next/image#qualities) */\n qualities: number[] | undefined\n\n /** @see [Unoptimized](https://nextjs.org/docs/api-reference/next/image#unoptimized) */\n unoptimized: boolean\n\n /**\n * When true, the `cacheHandler` configured in next.config.js will also be used\n * for caching optimized images. When false, images use the default filesystem cache.\n * @see [Image Optimization Caching](https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheHandler#image-optimization-caching)\n */\n customCacheHandler: boolean\n}\n\nexport type Line truncated
{"offset": {"line": 1418, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/invariant-error.ts"],"sourcesContent":["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"],"names":["InvariantError","Error","constructor","message","options","endsWith","name"],"mappings":";;;+BAAaA,kBAAAA;;;eAAAA;;;AAAN,MAAMA,uBAAuBC;IAClCC,YAAYC,OAAe,EAAEC,OAAsB,CAAE;QACnD,KAAK,CACH,CAAC,WAAW,EAAED,QAAQE,QAAQ,CAAC,OAAOF,UAAUA,UAAU,IAAI,0BAA0B,CAAC,EACzFC;QAFF,OAAA,cAGC,CAHD,IAGC,EAHD,qBAAA;mBAAA;wBAAA;0BAAA;QAGA;QACA,IAAI,CAACE,IAAI,GAAG;IACd;AACF","ignoreList":[0]}},
{"offset": {"line": 1442, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/is-plain-object.ts"],"sourcesContent":["export function getObjectClassLabel(value: any): string {\n return Object.prototype.toString.call(value)\n}\n\nexport function isPlainObject(value: any): boolean {\n if (getObjectClassLabel(value) !== '[object Object]') {\n return false\n }\n\n const prototype = Object.getPrototypeOf(value)\n\n /**\n * this used to be previously:\n *\n * `return prototype === null || prototype === Object.prototype`\n *\n * but Edge Runtime expose Object from vm, being that kind of type-checking wrongly fail.\n *\n * It was changed to the current implementation since it's resilient to serialization.\n */\n return prototype === null || prototype.hasOwnProperty('isPrototypeOf')\n}\n"],"names":["getObjectClassLabel","isPlainObject","value","Object","prototype","toString","call","getPrototypeOf","hasOwnProperty"],"mappings":";;;;;;;;;;;;;;IAAgBA,mBAAmB,EAAA;eAAnBA;;IAIAC,aAAa,EAAA;eAAbA;;;AAJT,SAASD,oBAAoBE,KAAU;IAC5C,OAAOC,OAAOC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ;AACxC;AAEO,SAASD,cAAcC,KAAU;IACtC,IAAIF,oBAAoBE,WAAW,mBAAmB;QACpD,OAAO;IACT;IAEA,MAAME,YAAYD,OAAOI,cAAc,CAACL;IAExC;;;;;;;;GAQC,GACD,OAAOE,cAAc,QAAQA,UAAUI,cAAc,CAAC;AACxD","ignoreList":[0]}},
{"offset": {"line": 1485, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/lazy-dynamic/bailout-to-csr.ts"],"sourcesContent":["// This has to be a shared module which is shared between client component error boundary and dynamic component\nconst BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING'\n\n/** An error that should be thrown when we want to bail out to client-side rendering. */\nexport class BailoutToCSRError extends Error {\n public readonly digest = BAILOUT_TO_CSR\n\n constructor(public readonly reason: string) {\n super(`Bail out to client-side rendering: ${reason}`)\n }\n}\n\n/** Checks if a passed argument is an error that is thrown if we want to bail out to client-side rendering. */\nexport function isBailoutToCSRError(err: unknown): err is BailoutToCSRError {\n if (typeof err !== 'object' || err === null || !('digest' in err)) {\n return false\n }\n\n return err.digest === BAILOUT_TO_CSR\n}\n"],"names":["BailoutToCSRError","isBailoutToCSRError","BAILOUT_TO_CSR","Error","constructor","reason","digest","err"],"mappings":"AAAA,+GAA+G;;;;;;;;;;;;;;;IAIlGA,iBAAiB,EAAA;eAAjBA;;IASGC,mBAAmB,EAAA;eAAnBA;;;AAZhB,MAAMC,iBAAiB;AAGhB,MAAMF,0BAA0BG;IAGrCC,YAA4BC,MAAc,CAAE;QAC1C,KAAK,CAAC,CAAC,mCAAmC,EAAEA,QAAQ,GAAA,IAAA,CAD1BA,MAAAA,GAAAA,QAAAA,IAAAA,CAFZC,MAAAA,GAASJ;IAIzB;AACF;AAGO,SAASD,oBAAoBM,GAAY;IAC9C,IAAI,OAAOA,QAAQ,YAAYA,QAAQ,QAAQ,CAAE,CAAA,YAAYA,GAAE,GAAI;QACjE,OAAO;IACT;IAEA,OAAOA,IAAID,MAAM,KAAKJ;AACxB","ignoreList":[0]}},
{"offset": {"line": 1523, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/mitt.ts"],"sourcesContent":["/*\nMIT License\n\nCopyright (c) Jason Miller (https://jasonformat.com/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n*/\n\n// This file is based on https://github.com/developit/mitt/blob/v1.1.3/src/index.js\n// It's been edited for the needs of this script\n// See the LICENSE at the top of the file\n\ntype Handler = (...evts: any[]) => void\n\nexport type MittEmitter<T> = {\n on(type: T, handler: Handler): void\n off(type: T, handler: Handler): void\n emit(type: T, ...evts: any[]): void\n}\n\nexport default function mitt(): MittEmitter<string> {\n const all: { [s: string]: Handler[] } = Object.create(null)\n\n return {\n on(type: string, handler: Handler) {\n ;(all[type] || (all[type] = [])).push(handler)\n },\n\n off(type: string, handler: Handler) {\n if (all[type]) {\n all[type].splice(all[type].indexOf(handler) >>> 0, 1)\n }\n },\n\n emit(type: string, ...evts: any[]) {\n // eslint-disable-next-line array-callback-return\n ;(all[type] || []).slice().map((handler: Handler) => {\n handler(...evts)\n })\n },\n }\n}\n"],"names":["mitt","all","Object","create","on","type","handler","push","off","splice","indexOf","emit","evts","slice","map"],"mappings":"AAAA;;;;;;;;;;AAUA,GAEA,mFAAmF;AACnF,gDAAgD;AAChD,yCAAyC;;;;+BAUzC,WAAA;;;eAAwBA;;;AAAT,SAASA;IACtB,MAAMC,MAAkCC,OAAOC,MAAM,CAAC;IAEtD,OAAO;QACLC,IAAGC,IAAY,EAAEC,OAAgB;;YAC7BL,CAAAA,GAAG,CAACI,KAAK,IAAKJ,CAAAA,GAAG,CAACI,KAAK,GAAG,EAAC,CAAC,EAAGE,IAAI,CAACD;QACxC;QAEAE,KAAIH,IAAY,EAAEC,OAAgB;YAChC,IAAIL,GAAG,CAACI,KAAK,EAAE;gBACbJ,GAAG,CAACI,KAAK,CAACI,MAAM,CAACR,GAAG,CAACI,KAAK,CAACK,OAAO,CAACJ,aAAa,GAAG;YACrD;QACF;QAEAK,MAAKN,IAAY,EAAE,GAAGO,IAAW;YAC/B,iDAAiD;;YAC/CX,CAAAA,GAAG,CAACI,KAAK,IAAI,EAAC,EAAGQ,KAAK,GAAGC,GAAG,CAAC,CAACR;gBAC9BA,WAAWM;YACb;QACF;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 1570, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/modern-browserslist-target.js"],"sourcesContent":["// 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"],"names":["MODERN_BROWSERSLIST_TARGET","module","exports"],"mappings":"AAAA,oFAAoF;AACpF,kEAAkE;AAElE;;;CAGC,GACD,MAAMA,6BAA6B;IACjC;IACA;IACA;IACA;CACD;AAEDC,OAAOC,OAAO,GAAGF","ignoreList":[0]}},
{"offset": {"line": 1586, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/normalized-asset-prefix.ts"],"sourcesContent":["export function normalizedAssetPrefix(assetPrefix: string | undefined): string {\n // remove all leading slashes and trailing slashes\n const escapedAssetPrefix = assetPrefix?.replace(/^\\/+|\\/+$/g, '') || false\n\n // if an assetPrefix was '/', we return empty string\n // because it could be an unnecessary trailing slash\n if (!escapedAssetPrefix) {\n return ''\n }\n\n if (URL.canParse(escapedAssetPrefix)) {\n const url = new URL(escapedAssetPrefix).toString()\n return url.endsWith('/') ? url.slice(0, -1) : url\n }\n\n // assuming assetPrefix here is a pathname-style,\n // restore the leading slash\n return `/${escapedAssetPrefix}`\n}\n"],"names":["normalizedAssetPrefix","assetPrefix","escapedAssetPrefix","replace","URL","canParse","url","toString","endsWith","slice"],"mappings":";;;+BAAgBA,yBAAAA;;;eAAAA;;;AAAT,SAASA,sBAAsBC,WAA+B;IACnE,kDAAkD;IAClD,MAAMC,qBAAqBD,aAAaE,QAAQ,cAAc,OAAO;IAErE,oDAAoD;IACpD,oDAAoD;IACpD,IAAI,CAACD,oBAAoB;QACvB,OAAO;IACT;IAEA,IAAIE,IAAIC,QAAQ,CAACH,qBAAqB;QACpC,MAAMI,MAAM,IAAIF,IAAIF,oBAAoBK,QAAQ;QAChD,OAAOD,IAAIE,QAAQ,CAAC,OAAOF,IAAIG,KAAK,CAAC,GAAG,CAAC,KAAKH;IAChD;IAEA,iDAAiD;IACjD,4BAA4B;IAC5B,OAAO,CAAC,CAAC,EAAEJ,oBAAoB;AACjC","ignoreList":[0]}},
{"offset": {"line": 1615, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/denormalize-page-path.ts"],"sourcesContent":["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"],"names":["denormalizePagePath","page","_page","normalizePathSep","startsWith","isDynamicRoute","slice"],"mappings":";;;+BAWgBA,uBAAAA;;;eAAAA;;;uBAXe;kCACE;AAU1B,SAASA,oBAAoBC,IAAY;IAC9C,IAAIC,QAAQC,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACF;IAC7B,OAAOC,MAAME,UAAU,CAAC,cAAc,CAACC,CAAAA,GAAAA,OAAAA,cAAc,EAACH,SAClDA,MAAMI,KAAK,CAAC,KACZJ,UAAU,WACRA,QACA;AACR","ignoreList":[0]}},
{"offset": {"line": 1634, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/ensure-leading-slash.ts"],"sourcesContent":["/**\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"],"names":["ensureLeadingSlash","path","startsWith"],"mappings":"AAAA;;;CAGC;;;+BACeA,sBAAAA;;;eAAAA;;;AAAT,SAASA,mBAAmBC,IAAY;IAC7C,OAAOA,KAAKC,UAAU,CAAC,OAAOD,OAAO,CAAC,CAAC,EAAEA,MAAM;AACjD","ignoreList":[0]}},
{"offset": {"line": 1653, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/page-path/normalize-path-sep.ts"],"sourcesContent":["/**\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"],"names":["normalizePathSep","path","replace"],"mappings":"AAAA;;;;CAIC;;;+BACeA,oBAAAA;;;eAAAA;;;AAAT,SAASA,iBAAiBC,IAAY;IAC3C,OAAOA,KAAKC,OAAO,CAAC,OAAO;AAC7B","ignoreList":[0]}},
{"offset": {"line": 1673, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router-context.shared-runtime.ts"],"sourcesContent":["import React from 'react'\nimport type { NextRouter } from './router/router'\n\nexport const RouterContext = React.createContext<NextRouter | null>(null)\n\nif (process.env.NODE_ENV !== 'production') {\n RouterContext.displayName = 'RouterContext'\n}\n"],"names":["RouterContext","React","createContext","process","env","NODE_ENV","displayName"],"mappings":"AAKIG,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAFhBL,iBAAAA;;;eAAAA;;;;gEAHK;AAGX,MAAMA,gBAAgBC,OAAAA,OAAK,CAACC,aAAa,CAAoB;AAEpE,wCAA2C;IACzCF,cAAcM,WAAW,GAAG;AAC9B","ignoreList":[0]}},
{"offset": {"line": 1694, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/adapters.tsx"],"sourcesContent":["import type { AppRouterInstance } from '../app-router-context.shared-runtime'\nimport type { Params } from '../../../server/request/params'\nimport type { NextRouter } from './router'\n\nimport React, { useMemo, useRef } from 'react'\nimport { PathnameContext } from '../hooks-client-context.shared-runtime'\nimport { isDynamicRoute } from './utils'\nimport { asPathToSearchParams } from './utils/as-path-to-search-params'\nimport { getRouteRegex } from './utils/route-regex'\n\n/** It adapts a Pages Router (`NextRouter`) to the App Router Instance. */\nexport function adaptForAppRouterInstance(\n pagesRouter: NextRouter\n): AppRouterInstance {\n return {\n back() {\n pagesRouter.back()\n },\n forward() {\n pagesRouter.forward()\n },\n refresh() {\n pagesRouter.reload()\n },\n hmrRefresh() {},\n push(href, { scroll } = {}) {\n void pagesRouter.push(href, undefined, { scroll })\n },\n replace(href, { scroll } = {}) {\n void pagesRouter.replace(href, undefined, { scroll })\n },\n prefetch(href) {\n void pagesRouter.prefetch(href)\n },\n // The bfcacheId concept is App Router-only. Surfaced as a stable\n // placeholder so consumers using this adapter don't crash.\n bfcacheId: '0',\n }\n}\n\n/**\n * adaptForSearchParams transforms the ParsedURLQuery into URLSearchParams.\n *\n * @param router the router that contains the query.\n * @returns the search params in the URLSearchParams format\n */\nexport function adaptForSearchParams(\n router: Pick<NextRouter, 'isReady' | 'query' | 'asPath'>\n): URLSearchParams {\n if (!router.isReady || !router.query) {\n return new URLSearchParams()\n }\n\n return asPathToSearchParams(router.asPath)\n}\n\nexport function adaptForPathParams(\n router: Pick<NextRouter, 'isReady' | 'pathname' | 'query' | 'asPath'>\n): Params | null {\n if (!router.isReady || !router.query) {\n return null\n }\n const pathParams: Params = {}\n const routeRegex = getRouteRegex(router.pathname)\n const keys = Object.keys(routeRegex.groups)\n for (const key of keys) {\n pathParams[key] = router.query[key]!\n }\n return pathParams\n}\n\nexport function PathnameContextProviderAdapter({\n children,\n router,\n ...props\n}: React.PropsWithChildren<{\n router: Pick<NextRouter, 'pathname' | 'asPath' | 'isReady' | 'isFallback'>\n isAutoExport: boolean\n}>) {\n const ref = useRef(props.isAutoExport)\n const value = useMemo(() => {\n // isAutoExport is only ever `true` on the first render from the server,\n // so reset it to `false` after we read it for the first time as `true`. If\n // we don't use the value, then we don't need it.\n const isAutoExport = ref.current\n if (isAutoExport) {\n ref.current = false\n }\n\n // When the route is a dynamic route, we need to do more processing to\n // determine if we need to stop showing the pathname.\n if (isDynamicRoute(router.pathname)) {\n // When the router is rendering the fallback page, it can't possibly know\n // the path, so return `null` here. Read more about fallback pages over\n // at:\n // https://nextjs.org/docs/api-reference/data-fetching/get-static-paths#fallback-pages\n if (router.isFallback) {\n return null\n }\n\n // When `isAutoExport` is true, meaning this is a page page has been\n // automatically statically optimized, and the router is not ready, then\n // we can't know the pathname yet. Read more about automatic static\n // optimization at:\n // https://nextjs.org/docs/advanced-features/automatic-static-optimization\n if (isAutoExport && !router.isReady) {\n return null\n }\n }\n\n // The `router.asPath` contains the pathname seen by the browser (including\n // any query strings), so it should have that stripped. Read more about the\n // `asPath` option over at:\n // https://nextjs.org/docs/api-reference/next/router#router-object\n let url: URL\n try {\n url = new URL(router.asPath, 'http://f')\n } catch (_) {\n // fallback to / for invalid asPath values e.g. //\n return '/'\n }\n\n return url.pathname\n }, [router.asPath, router.isFallback, router.isReady, router.pathname])\n\n return (\n <PathnameContext.Provider value={value}>\n {children}\n </PathnameContext.Provider>\n )\n}\n"],"names":["PathnameContextProviderAdapter","adaptForAppRouterInstance","adaptForPathParams","adaptForSearchParams","pagesRouter","back","forward","refresh","reload","hmrRefresh","push","href","scroll","undefined","replace","prefetch","bfcacheId","router","isReady","query","URLSearchParams","asPathToSearchParams","asPath","pathParams","routeRegex","getRouteRegex","pathname","keys","Object","groups","key","children"Line truncated
{"offset": {"line": 1834, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/router.ts"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { DomainLocale } from '../../../server/config'\nimport type { MittEmitter } from '../mitt'\nimport type { ParsedUrlQuery } from 'querystring'\nimport type { RouterEvent } from '../../../client/router'\nimport type { StyleSheetTuple } from '../../../client/page-loader'\nimport type { UrlObject } from 'url'\nimport type PageLoader from '../../../client/page-loader'\nimport type { AppContextType, NextPageContext, NEXT_DATA } from '../utils'\nimport { removeTrailingSlash } from './utils/remove-trailing-slash'\nimport {\n getClientBuildManifest,\n isAssetError,\n markAssetError,\n} from '../../../client/route-loader'\nimport { handleClientScriptLoad } from '../../../client/script'\nimport isError, { getProperError } from '../../../lib/is-error'\nimport { denormalizePagePath } from '../page-path/denormalize-page-path'\nimport { normalizeLocalePath } from '../i18n/normalize-locale-path'\nimport mitt from '../mitt'\nimport { getLocationOrigin, getURL, loadGetInitialProps, ST } from '../utils'\nimport { isDynamicRoute } from './utils/is-dynamic'\nimport { parseRelativeUrl } from './utils/parse-relative-url'\nimport { getRouteMatcher } from './utils/route-matcher'\nimport { getRouteRegex } from './utils/route-regex'\nimport { hasDynamicFilterCandidate } from './utils/dynamic-filter-pattern'\nimport { formatWithValidation } from './utils/format-url'\nimport { detectDomainLocale } from '../../../client/detect-domain-locale'\nimport { parsePath } from './utils/parse-path'\nimport { addLocale } from '../../../client/add-locale'\nimport { removeLocale } from '../../../client/remove-locale'\nimport { removeBasePath } from '../../../client/remove-base-path'\nimport { addBasePath } from '../../../client/add-base-path'\nimport { hasBasePath } from '../../../client/has-base-path'\nimport { resolveHref } from '../../../client/resolve-href'\nimport { isAPIRoute } from '../../../lib/is-api-route'\nimport { getNextPathnameInfo } from './utils/get-next-pathname-info'\nimport { formatNextPathnameInfo } from './utils/format-next-pathname-info'\nimport { compareRouterStates } from './utils/compare-states'\nimport { isLocalURL } from './utils/is-local-url'\nimport { isBot } from './utils/is-bot'\nimport { omit } from './utils/omit'\nimport { interpolateAs } from './utils/interpolate-as'\nimport { disableSmoothScrollDuringRouteTransition } from './utils/disable-smooth-scroll'\nimport type { Params } from '../../../server/request/params'\nimport {\n MATCHED_PATH_HEADER,\n NEXT_NAV_DEPLOYMENT_ID_HEADER,\n} from '../../../lib/constants'\nimport { getDeploymentId } from '../deployment-id'\nimport { isJavaScriptURLString } from '../../../client/lib/javascript-url'\n\nlet resolveRewrites: typeof import('./utils/resolve-rewrites').default\nif (process.env.__NEXT_HAS_REWRITES) {\n resolveRewrites = (\n require('./utils/resolve-rewrites') as typeof import('./utils/resolve-rewrites')\n ).default\n}\n\ndeclare global {\n interface Window {\n /* prod */\n __NEXT_DATA__: NEXT_DATA\n }\n}\n\ninterface RouteProperties {\n shallow: boolean\n}\n\ninterface TransitionOptions {\n shallow?: boolean\n locale?: string | false\n scroll?: boolean\n unstable_skipClientCache?: boolean\n}\n\ninterface NextHistoryState {\n url: string\n as: string\n options: TransitionOptions\n}\n\nexport type HistoryState =\n | null\n | { __NA: true; __N?: false }\n | { __N: false; __NA?: false }\n | ({ __NA?: false; __N: true; key: string } & NextHistoryState)\n\nfunction buildCancellationError() {\n return Object.assign(new Error('Route Cancelled'), {\n cancelled: true,\n })\n}\n\ninterface MiddlewareEffectParams<T extends FetchDataOutput> {\n fetchData?: () => Promise<T>\n locale?: string\n asPath: string\n router: Router\n}\n\nexport async function matchesMiddleware<T extends FetchDataOutput>(\n options: MiddlewareEffectParams<T>\n): Promise<boolean> {\n const matchers = await Promise.resolve(\n options.router.pageLoader.getMiddleware()\n )\n if (!matchers) return false\n\n const { pathname: asPathname } = parsePath(options.asPath)\n // remove basePath first since path prefix has to be in the order of `/${basePath}/${locale}`\n const cleanedAs = hasBasePath(asPathname)\n ? removeBasePath(asPathname)\n : asPathname\n const asWithBasePathAndLocale = addBasePath(\n addLocale(cleanedAs, options.locale)\n )\n\n // Check only path match on client. Matching \"has\" should be done on server\n // where we can access more info such as headers, HttpOnly cookie, etc.\n return matchers.some((m) =>\n new RegExp(m.regexp).test(asWithBasePathAndLocale)\n )\n}\n\nfunction stripOrigin(url: string) {\n const origin = getLocationOrigin()\n\n return url.startsWith(origin) ? url.substring(oriLine truncated
{"offset": {"line": 3466, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/routes/app.ts"],"sourcesContent":["import { InvariantError } from '../../invariant-error'\nimport { getSegmentParam, type SegmentParam } from '../utils/get-segment-param'\nimport {\n INTERCEPTION_ROUTE_MARKERS,\n type InterceptionMarker,\n} from '../utils/interception-routes'\n\nexport type RouteGroupAppRouteSegment = {\n type: 'route-group'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type ParallelRouteAppRouteSegment = {\n type: 'parallel-route'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type StaticAppRouteSegment = {\n type: 'static'\n name: string\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\nexport type DynamicAppRouteSegment = {\n type: 'dynamic'\n name: string\n param: SegmentParam\n\n /**\n * If present, this segment has an interception marker prefixing it.\n */\n interceptionMarker?: InterceptionMarker\n}\n\n/**\n * Represents a single segment in a route path.\n * Can be either static (e.g., \"blog\") or dynamic (e.g., \"[slug]\").\n */\nexport type AppRouteSegment =\n | StaticAppRouteSegment\n | DynamicAppRouteSegment\n | RouteGroupAppRouteSegment\n | ParallelRouteAppRouteSegment\n\nexport type NormalizedAppRouteSegment =\n | StaticAppRouteSegment\n | DynamicAppRouteSegment\n\nfunction normalizeEncodedDynamicPlaceholder(segment: string): string {\n if (!/%5b|%5d/i.test(segment)) {\n return segment\n }\n\n try {\n const decodedSegment = decodeURIComponent(segment)\n return getSegmentParam(decodedSegment) ? decodedSegment : segment\n } catch {\n return segment\n }\n}\n\nexport function parseAppRouteSegment(segment: string): AppRouteSegment | null {\n if (segment === '') {\n return null\n }\n\n // Check if the segment starts with an interception marker\n const interceptionMarker = INTERCEPTION_ROUTE_MARKERS.find((m) =>\n segment.startsWith(m)\n )\n\n const param = getSegmentParam(segment)\n if (param) {\n return {\n type: 'dynamic',\n name: segment,\n param,\n interceptionMarker,\n }\n } else if (segment.startsWith('(') && segment.endsWith(')')) {\n return {\n type: 'route-group',\n name: segment,\n interceptionMarker,\n }\n } else if (segment.startsWith('@')) {\n return {\n type: 'parallel-route',\n name: segment,\n interceptionMarker,\n }\n } else {\n return {\n type: 'static',\n name: segment,\n interceptionMarker,\n }\n }\n}\n\nexport type AppRoute = {\n normalized: boolean\n pathname: string\n segments: AppRouteSegment[]\n dynamicSegments: DynamicAppRouteSegment[]\n interceptionMarker: InterceptionMarker | undefined\n interceptingRoute: AppRoute | undefined\n interceptedRoute: AppRoute | undefined\n}\n\nexport type NormalizedAppRoute = Omit<AppRoute, 'normalized' | 'segments'> & {\n normalized: true\n segments: NormalizedAppRouteSegment[]\n}\n\nexport function isNormalizedAppRoute(\n route: InterceptionAppRoute\n): route is NormalizedInterceptionAppRoute\nexport function isNormalizedAppRoute(\n route: AppRoute | InterceptionAppRoute\n): route is NormalizedAppRoute {\n return route.normalized\n}\n\nexport type InterceptionAppRoute = Omit<\n AppRoute,\n 'interceptionMarker' | 'interceptingRoute' | 'interceptedRoute'\n> & {\n interceptionMarker: InterceptionMarker\n interceptingRoute: AppRoute\n interceptedRoute: AppRoute\n}\n\nexport type NormalizedInterceptionAppRoute = Omit<\n InterceptionAppRoute,\n | 'normalized'\n | 'segments'\n | 'interceptionMarker'\n | 'interceptingRoute'\n | 'interceptedRoute'\n> & {\n normalized: true\n segments: NormalizedAppRouteSegment[]\n interceptionMarker: InterceptionMarker\n interceptingRoute: NormalizedAppRoute\n interceptedRoute: NormalizedAppRoute\n}\n\nexport function isInterceptionAppRoute(\n route: NormalizedAppRoute\n): route is NormalizedInterceptionAppRoute\nexport function isInterceptionAppRoute(\n route: AppRoute\n): route is InterceptionAppRoute {\n return (\n route.interceptionMarker !== undefined &&\n route.interceptingRoute !== undefined &&\n route.interceptedRoute !== undefined\n )\n}\n\n// Bitmask for which non-URL segment types to allow during parsing.\n// By default, route groups and parallel routes are rejected because\n// they should have been stripped by normalizeAppPath. These flags\n// let callers opt in to allowing specific types.\nconst OnlyRoutableSegments = /* */ 0b00\nconst AllowParallelSegments = /* */ 0b01\nconst AllowGroupSegments = /* */ 0b10\n\nfunction parseAppRouteImpl(\Line truncated
{"offset": {"line": 3625, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-locale.ts"],"sourcesContent":["import { addPathPrefix } from './add-path-prefix'\nimport { pathHasPrefix } from './path-has-prefix'\n\n/**\n * For a given path and a locale, if the locale is given, it will prefix the\n * locale. The path shouldn't be an API path. If a default locale is given the\n * prefix will be omitted if the locale is already the default locale.\n */\nexport function addLocale(\n path: string,\n locale?: string | false,\n defaultLocale?: string,\n ignorePrefix?: boolean\n) {\n // If no locale was given or the locale is the default locale, we don't need\n // to prefix the path.\n if (!locale || locale === defaultLocale) return path\n\n const lower = path.toLowerCase()\n\n // If the path is an API path or the path already has the locale prefix, we\n // don't need to prefix the path.\n if (!ignorePrefix) {\n if (pathHasPrefix(lower, '/api')) return path\n if (pathHasPrefix(lower, `/${locale.toLowerCase()}`)) return path\n }\n\n // Add the locale prefix to the path.\n return addPathPrefix(path, `/${locale}`)\n}\n"],"names":["addLocale","path","locale","defaultLocale","ignorePrefix","lower","toLowerCase","pathHasPrefix","addPathPrefix"],"mappings":";;;+BAQgBA,aAAAA;;;eAAAA;;;+BARc;+BACA;AAOvB,SAASA,UACdC,IAAY,EACZC,MAAuB,EACvBC,aAAsB,EACtBC,YAAsB;IAEtB,4EAA4E;IAC5E,sBAAsB;IACtB,IAAI,CAACF,UAAUA,WAAWC,eAAe,OAAOF;IAEhD,MAAMI,QAAQJ,KAAKK,WAAW;IAE9B,2EAA2E;IAC3E,iCAAiC;IACjC,IAAI,CAACF,cAAc;QACjB,IAAIG,CAAAA,GAAAA,eAAAA,aAAa,EAACF,OAAO,SAAS,OAAOJ;QACzC,IAAIM,CAAAA,GAAAA,eAAAA,aAAa,EAACF,OAAO,CAAC,CAAC,EAAEH,OAAOI,WAAW,IAAI,GAAG,OAAOL;IAC/D;IAEA,qCAAqC;IACrC,OAAOO,CAAAA,GAAAA,eAAAA,aAAa,EAACP,MAAM,CAAC,CAAC,EAAEC,QAAQ;AACzC","ignoreList":[0]}},
{"offset": {"line": 3654, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-path-prefix.ts"],"sourcesContent":["import { parsePath } from './parse-path'\n\n/**\n * Adds the provided prefix to the given path. It first ensures that the path\n * is indeed starting with a slash.\n */\nexport function addPathPrefix(path: string, prefix?: string) {\n if (!path.startsWith('/') || !prefix) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n return `${prefix}${pathname}${query}${hash}`\n}\n"],"names":["addPathPrefix","path","prefix","startsWith","pathname","query","hash","parsePath"],"mappings":";;;+BAMgBA,iBAAAA;;;eAAAA;;;2BANU;AAMnB,SAASA,cAAcC,IAAY,EAAEC,MAAe;IACzD,IAAI,CAACD,KAAKE,UAAU,CAAC,QAAQ,CAACD,QAAQ;QACpC,OAAOD;IACT;IAEA,MAAM,EAAEG,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACN;IAC5C,OAAO,GAAGC,SAASE,WAAWC,QAAQC,MAAM;AAC9C","ignoreList":[0]}},
{"offset": {"line": 3675, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/add-path-suffix.ts"],"sourcesContent":["import { parsePath } from './parse-path'\n\n/**\n * Similarly to `addPathPrefix`, this function adds a suffix at the end on the\n * provided path. It also works only for paths ensuring the argument starts\n * with a slash.\n */\nexport function addPathSuffix(path: string, suffix?: string) {\n if (!path.startsWith('/') || !suffix) {\n return path\n }\n\n const { pathname, query, hash } = parsePath(path)\n return `${pathname}${suffix}${query}${hash}`\n}\n"],"names":["addPathSuffix","path","suffix","startsWith","pathname","query","hash","parsePath"],"mappings":";;;+BAOgBA,iBAAAA;;;eAAAA;;;2BAPU;AAOnB,SAASA,cAAcC,IAAY,EAAEC,MAAe;IACzD,IAAI,CAACD,KAAKE,UAAU,CAAC,QAAQ,CAACD,QAAQ;QACpC,OAAOD;IACT;IAEA,MAAM,EAAEG,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACN;IAC5C,OAAO,GAAGG,WAAWF,SAASG,QAAQC,MAAM;AAC9C","ignoreList":[0]}},
{"offset": {"line": 3696, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/app-paths.ts"],"sourcesContent":["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"],"names":["compareAppPaths","normalizeAppPath","normalizeRscURL","route","ensureLeadingSlash","split","reduce","pathname","segment","index","segments","isGroupSegment","length","a","b","aHasSlot","includes","bHasSlot","localeCompare","url","replace"],"mappings":";;;;;;;;;;;;;;;IA+DgBA,eAAe,EAAA;eAAfA;;IAzCAC,gBAAgB,EAAA;eAAhBA;;IAqDAC,eAAe,EAAA;eAAfA;;;oCA3EmB;yBACJ;AAqBxB,SAASD,iBAAiBE,KAAa;IAC5C,OAAOC,CAAAA,GAAAA,oBAAAA,kBAAkB,EACvBD,MAAME,KAAK,CAAC,KAAKC,MAAM,CAAC,CAACC,UAAUC,SAASC,OAAOC;QACjD,8BAA8B;QAC9B,IAAI,CAACF,SAAS;YACZ,OAAOD;QACT;QAEA,sBAAsB;QACtB,IAAII,CAAAA,GAAAA,SAAAA,cAAc,EAACH,UAAU;YAC3B,OAAOD;QACT;QAEA,iCAAiC;QACjC,IAAIC,OAAO,CAAC,EAAE,KAAK,KAAK;YACtB,OAAOD;QACT;QAEA,uDAAuD;QACvD,IACGC,CAAAA,YAAY,UAAUA,YAAY,OAAM,KACzCC,UAAUC,SAASE,MAAM,GAAG,GAC5B;YACA,OAAOL;QACT;QAEA,OAAO,GAAGA,SAAS,CAAC,EAAEC,SAAS;IACjC,GAAG;AAEP;AAYO,SAASR,gBAAgBa,CAAS,EAAEC,CAAS;IAClD,MAAMC,WAAWF,EAAEG,QAAQ,CAAC;IAC5B,MAAMC,WAAWH,EAAEE,QAAQ,CAAC;IAC5B,IAAID,YAAY,CAACE,UAAU,OAAO,CAAC;IACnC,IAAI,CAACF,YAAYE,UAAU,OAAO;IAClC,OAAOJ,EAAEK,aAAa,CAACJ;AACzB;AAMO,SAASZ,gBAAgBiB,GAAW;IACzC,OAAOA,IAAIC,OAAO,CAChB,eACA,AACA,8BAD8B;AAGlC","ignoreList":[0]}},
{"offset": {"line": 3758, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/as-path-to-search-params.ts"],"sourcesContent":["// Convert router.asPath to a URLSearchParams object\n// example: /dynamic/[slug]?foo=bar -> { foo: 'bar' }\nexport function asPathToSearchParams(asPath: string): URLSearchParams {\n return new URL(asPath, 'http://n').searchParams\n}\n"],"names":["asPathToSearchParams","asPath","URL","searchParams"],"mappings":"AAAA,oDAAoD;AACpD,qDAAqD;;;;+BACrCA,wBAAAA;;;eAAAA;;;AAAT,SAASA,qBAAqBC,MAAc;IACjD,OAAO,IAAIC,IAAID,QAAQ,YAAYE,YAAY;AACjD","ignoreList":[0]}},
{"offset": {"line": 3776, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/compare-states.ts"],"sourcesContent":["import type { default as Router } from '../router'\n\nexport function compareRouterStates(a: Router['state'], b: Router['state']) {\n const stateKeys = Object.keys(a)\n if (stateKeys.length !== Object.keys(b).length) return false\n\n for (let i = stateKeys.length; i--; ) {\n const key = stateKeys[i]\n if (key === 'query') {\n const queryKeys = Object.keys(a.query)\n if (queryKeys.length !== Object.keys(b.query).length) {\n return false\n }\n for (let j = queryKeys.length; j--; ) {\n const queryKey = queryKeys[j]\n if (\n !b.query.hasOwnProperty(queryKey) ||\n a.query[queryKey] !== b.query[queryKey]\n ) {\n return false\n }\n }\n } else if (\n !b.hasOwnProperty(key) ||\n a[key as keyof Router['state']] !== b[key as keyof Router['state']]\n ) {\n return false\n }\n }\n\n return true\n}\n"],"names":["compareRouterStates","a","b","stateKeys","Object","keys","length","i","key","queryKeys","query","j","queryKey","hasOwnProperty"],"mappings":";;;+BAEgBA,uBAAAA;;;eAAAA;;;AAAT,SAASA,oBAAoBC,CAAkB,EAAEC,CAAkB;IACxE,MAAMC,YAAYC,OAAOC,IAAI,CAACJ;IAC9B,IAAIE,UAAUG,MAAM,KAAKF,OAAOC,IAAI,CAACH,GAAGI,MAAM,EAAE,OAAO;IAEvD,IAAK,IAAIC,IAAIJ,UAAUG,MAAM,EAAEC,KAAO;QACpC,MAAMC,MAAML,SAAS,CAACI,EAAE;QACxB,IAAIC,QAAQ,SAAS;YACnB,MAAMC,YAAYL,OAAOC,IAAI,CAACJ,EAAES,KAAK;YACrC,IAAID,UAAUH,MAAM,KAAKF,OAAOC,IAAI,CAACH,EAAEQ,KAAK,EAAEJ,MAAM,EAAE;gBACpD,OAAO;YACT;YACA,IAAK,IAAIK,IAAIF,UAAUH,MAAM,EAAEK,KAAO;gBACpC,MAAMC,WAAWH,SAAS,CAACE,EAAE;gBAC7B,IACE,CAACT,EAAEQ,KAAK,CAACG,cAAc,CAACD,aACxBX,EAAES,KAAK,CAACE,SAAS,KAAKV,EAAEQ,KAAK,CAACE,SAAS,EACvC;oBACA,OAAO;gBACT;YACF;QACF,OAAO,IACL,CAACV,EAAEW,cAAc,CAACL,QAClBP,CAAC,CAACO,IAA6B,KAAKN,CAAC,CAACM,IAA6B,EACnE;YACA,OAAO;QACT;IACF;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 3811, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/disable-smooth-scroll.ts"],"sourcesContent":["/**\n * Run function with `scroll-behavior: auto` applied to `<html/>`.\n * This css change will be reverted after the function finishes.\n */\nexport function disableSmoothScrollDuringRouteTransition(\n fn: () => void,\n options: { dontForceLayout?: boolean; onlyHashChange?: boolean } = {}\n) {\n // if only the hash is changed, we don't need to disable smooth scrolling\n // we only care to prevent smooth scrolling when navigating to a new page to avoid jarring UX\n if (options.onlyHashChange) {\n fn()\n return\n }\n\n const htmlElement = document.documentElement\n const hasDataAttribute = htmlElement.dataset.scrollBehavior === 'smooth'\n\n if (!hasDataAttribute) {\n // Warn if smooth scrolling is detected but no data attribute is present\n if (\n process.env.NODE_ENV === 'development' &&\n getComputedStyle(htmlElement).scrollBehavior === 'smooth'\n ) {\n const { warnOnce } =\n require('../../utils/warn-once') as typeof import('../../utils/warn-once')\n warnOnce(\n 'Detected `scroll-behavior: smooth` on the `<html>` element. To disable smooth scrolling during route transitions, ' +\n 'add `data-scroll-behavior=\"smooth\"` to your <html> element. ' +\n 'Learn more: https://nextjs.org/docs/messages/missing-data-scroll-behavior'\n )\n }\n // No smooth scrolling configured, run directly without style manipulation\n fn()\n return\n }\n\n // Proceed with temporarily disabling smooth scrolling\n const existing = htmlElement.style.scrollBehavior\n htmlElement.style.scrollBehavior = 'auto'\n if (!options.dontForceLayout) {\n // In Chrome-based browsers we need to force reflow before calling `scrollTo`.\n // Otherwise it will not pickup the change in scrollBehavior\n // More info here: https://github.com/vercel/next.js/issues/40719#issuecomment-1336248042\n htmlElement.getClientRects()\n }\n fn()\n htmlElement.style.scrollBehavior = existing\n}\n"],"names":["disableSmoothScrollDuringRouteTransition","fn","options","onlyHashChange","htmlElement","document","documentElement","hasDataAttribute","dataset","scrollBehavior","process","env","NODE_ENV","getComputedStyle","warnOnce","require","existing","style","dontForceLayout","getClientRects"],"mappings":"AAqBMU,QAAQC,GAAG,CAACC,QAAQ;AArB1B;;;CAGC,GAAA;;;;+BACeZ,4CAAAA;;;eAAAA;;;AAAT,SAASA,yCACdC,EAAc,EACdC,UAAmE,CAAC,CAAC;IAErE,yEAAyE;IACzE,6FAA6F;IAC7F,IAAIA,QAAQC,cAAc,EAAE;QAC1BF;QACA;IACF;IAEA,MAAMG,cAAcC,SAASC,eAAe;IAC5C,MAAMC,mBAAmBH,YAAYI,OAAO,CAACC,cAAc,KAAK;IAEhE,IAAI,CAACF,kBAAkB;QACrB,wEAAwE;QACxE,wDAC2B,iBACzBM,iBAAiBT,aAAaK,cAAc,KAAK,UACjD;YACA,MAAM,EAAEK,QAAQ,EAAE,GAChBC,QAAQ;YACVD,SACE,uHACE,iEACA;QAEN;QACA,0EAA0E;QAC1Eb;QACA;IACF;IAEA,sDAAsD;IACtD,MAAMe,WAAWZ,YAAYa,KAAK,CAACR,cAAc;IACjDL,YAAYa,KAAK,CAACR,cAAc,GAAG;IACnC,IAAI,CAACP,QAAQgB,eAAe,EAAE;QAC5B,8EAA8E;QAC9E,4DAA4D;QAC5D,yFAAyF;QACzFd,YAAYe,cAAc;IAC5B;IACAlB;IACAG,YAAYa,KAAK,CAACR,cAAc,GAAGO;AACrC","ignoreList":[0]}},
{"offset": {"line": 3860, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/dynamic-filter-pattern.ts"],"sourcesContent":["// The client router filter handles app routes that begin with a dynamic segment\n// (e.g. `/[locale]/about`). Such routes have no static prefix to anchor the\n// prefix-based dynamic filter on, so the build-time producer\n// (`createClientRouterFilter`) stores them as a normalized pattern with dynamic\n// segments replaced by the placeholder token below, and the pages router\n// reconstructs matching candidates from the route it resolved a navigation to.\n\n/**\n * A token that can never collide with a real path segment (dynamic segments are\n * always `[name]`, `[...name]`, or `[[...name]]`, and static segments never\n * equal `[]`). Shared with the builder's `normalizeRouteToFilterPattern`.\n */\nexport const DYNAMIC_FILTER_PLACEHOLDER = '[]'\n\n/**\n * Beyond this many dynamic segments the 2^n candidate set is skipped. Real\n * routes never approach this; the cap only guards against pathological input.\n */\nconst MAX_DYNAMIC_SEGMENTS = 8\n\n/**\n * Test whether any app route that could shadow the resolved pages route passes\n * `test` (typically a dynamic-filter membership check). An app route can only\n * win over a matching pages route by turning some of that route's dynamic\n * positions into static segments, so we enumerate keeping each such position\n * either literal (static in the app route) or a placeholder (still dynamic in\n * the app route) and return as soon as one passes.\n *\n * A static route segment pins its position to that literal; every other\n * concrete position is dynamic and thus a candidate for a placeholder. That\n * includes the tail a trailing catch-all (`[...slug]`/`[[...slug]]`) absorbs,\n * which is why a catch-all route legitimately has fewer segments than the path\n * it matched.\n *\n * Order is irrelevant: any match means the path is shadowed, and resolution is\n * handed to the server via a hard navigation regardless of which candidate\n * matched.\n */\nexport function hasDynamicFilterCandidate(\n routePattern: string,\n concretePathname: string,\n test: (candidate: string) => boolean\n): boolean {\n const routeSegments = routePattern.split('/')\n const concreteSegments = concretePathname.split('/')\n\n const lastSegment = routeSegments[routeSegments.length - 1] ?? ''\n const hasCatchAll =\n lastSegment.startsWith('[...') || lastSegment.startsWith('[[...')\n\n // A non-catch-all route always has the same segment count as the path it\n // matched; a mismatch there means the inputs don't line up. A catch-all route\n // legitimately differs because its final param absorbs the remaining\n // segments.\n if (!hasCatchAll && routeSegments.length !== concreteSegments.length) {\n return false\n }\n\n // Collect the concrete positions that are dynamic in the matched route: any\n // position without a static route segment (a dynamic param, or one absorbed\n // by the trailing catch-all).\n const dynamicIndices: number[] = []\n for (let i = 1; i < concreteSegments.length; i++) {\n // An empty concrete segment is not a real path segment (splitting `/`\n // yields a trailing `''`). A trailing optional catch-all matches it by\n // absorbing nothing, so it must not be treated as a dynamic position:\n // otherwise `/` would reconstruct the `/[]` candidate and spuriously match\n // a root-level dynamic app route such as `/[lang]`, which does not own `/`.\n if (concreteSegments[i] === '') {\n continue\n }\n const routeSegment = routeSegments[i]\n const isStaticSegment =\n routeSegment !== undefined && !routeSegment.startsWith('[')\n if (!isStaticSegment) {\n dynamicIndices.push(i)\n }\n }\n\n if (\n dynamicIndices.length === 0 ||\n dynamicIndices.length > MAX_DYNAMIC_SEGMENTS\n ) {\n return false\n }\n\n // Enumerate the keep-literal/placeholder combinations as a bitmask over those\n // positions (a set bit keeps the concrete value, an unset bit is a\n // placeholder). The all-literal combination is skipped: a fully concrete path\n // is a static route, already covered by the static filter and the early\n // prefix check, so it can never appear in the dynamic filter as a pattern.\n const allLiteral = (1 << dynamicIndices.length) - 1\n for (let mask = 0; mask < allLiteral; mask++) {\n const segments = concreteSegments.slice()\n for (let bit = 0; bit < dynamicIndices.length; bit++) {\n if ((mask & (1 << bit)) === 0) {\n segments[dynamicIndices[bit]] = DYNAMIC_FILTER_PLACEHOLDER\n }\n }\n if (test(segments.join('/'))) {\n return true\n }\n }\n\n return false\n}\n"],"names":["DYNAMIC_FILTER_PLACEHOLDER","hasDynamicFilterCandidate","MAX_DYNAMIC_SEGMENTS","routePattern","concretePathname","test","routeSegments","split","concreteSegments","lastSegment","lengtLine truncated
{"offset": {"line": 3953, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/format-next-pathname-info.ts"],"sourcesContent":["import type { NextPathnameInfo } from './get-next-pathname-info'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { addPathPrefix } from './add-path-prefix'\nimport { addPathSuffix } from './add-path-suffix'\nimport { addLocale } from './add-locale'\n\ninterface ExtendedInfo extends NextPathnameInfo {\n defaultLocale?: string\n ignorePrefix?: boolean\n}\n\nexport function formatNextPathnameInfo(info: ExtendedInfo) {\n let pathname = addLocale(\n info.pathname,\n info.locale,\n info.buildId ? undefined : info.defaultLocale,\n info.ignorePrefix\n )\n\n if (info.buildId || !info.trailingSlash) {\n pathname = removeTrailingSlash(pathname)\n }\n\n if (info.buildId) {\n pathname = addPathSuffix(\n addPathPrefix(pathname, `/_next/data/${info.buildId}`),\n info.pathname === '/' ? 'index.json' : '.json'\n )\n }\n\n pathname = addPathPrefix(pathname, info.basePath)\n return !info.buildId && info.trailingSlash\n ? !pathname.endsWith('/')\n ? addPathSuffix(pathname, '/')\n : pathname\n : removeTrailingSlash(pathname)\n}\n"],"names":["formatNextPathnameInfo","info","pathname","addLocale","locale","buildId","undefined","defaultLocale","ignorePrefix","trailingSlash","removeTrailingSlash","addPathSuffix","addPathPrefix","basePath","endsWith"],"mappings":";;;+BAWgBA,0BAAAA;;;eAAAA;;;qCAVoB;+BACN;+BACA;2BACJ;AAOnB,SAASA,uBAAuBC,IAAkB;IACvD,IAAIC,WAAWC,CAAAA,GAAAA,WAAAA,SAAS,EACtBF,KAAKC,QAAQ,EACbD,KAAKG,MAAM,EACXH,KAAKI,OAAO,GAAGC,YAAYL,KAAKM,aAAa,EAC7CN,KAAKO,YAAY;IAGnB,IAAIP,KAAKI,OAAO,IAAI,CAACJ,KAAKQ,aAAa,EAAE;QACvCP,WAAWQ,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACR;IACjC;IAEA,IAAID,KAAKI,OAAO,EAAE;QAChBH,WAAWS,CAAAA,GAAAA,eAAAA,aAAa,EACtBC,CAAAA,GAAAA,eAAAA,aAAa,EAACV,UAAU,CAAC,YAAY,EAAED,KAAKI,OAAO,EAAE,GACrDJ,KAAKC,QAAQ,KAAK,MAAM,eAAe;IAE3C;IAEAA,WAAWU,CAAAA,GAAAA,eAAAA,aAAa,EAACV,UAAUD,KAAKY,QAAQ;IAChD,OAAO,CAACZ,KAAKI,OAAO,IAAIJ,KAAKQ,aAAa,GACtC,CAACP,SAASY,QAAQ,CAAC,OACjBH,CAAAA,GAAAA,eAAAA,aAAa,EAACT,UAAU,OACxBA,WACFQ,CAAAA,GAAAA,qBAAAA,mBAAmB,EAACR;AAC1B","ignoreList":[0]}},
{"offset": {"line": 3981, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/format-url.ts"],"sourcesContent":["// Format function modified from nodejs\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { UrlObject } from 'url'\nimport type { ParsedUrlQuery } from 'querystring'\nimport * as querystring from './querystring'\n\nconst slashedProtocols = /https?|ftp|gopher|file/\n\nexport function formatUrl(urlObj: UrlObject) {\n let { auth, hostname } = urlObj\n let protocol = urlObj.protocol || ''\n let pathname = urlObj.pathname || ''\n let hash = urlObj.hash || ''\n let query = urlObj.query || ''\n let host: string | false = false\n\n auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : ''\n\n if (urlObj.host) {\n host = auth + urlObj.host\n } else if (hostname) {\n host = auth + (~hostname.indexOf(':') ? `[${hostname}]` : hostname)\n if (urlObj.port) {\n host += ':' + urlObj.port\n }\n }\n\n if (query && typeof query === 'object') {\n query = String(querystring.urlQueryToSearchParams(query as ParsedUrlQuery))\n }\n\n let search = urlObj.search || (query && `?${query}`) || ''\n\n if (protocol && !protocol.endsWith(':')) protocol += ':'\n\n if (\n urlObj.slashes ||\n ((!protocol || slashedProtocols.test(protocol)) && host !== false)\n ) {\n host = '//' + (host || '')\n if (pathname && pathname[0] !== '/') pathname = '/' + pathname\n } else if (!host) {\n host = ''\n }\n\n if (hash && hash[0] !== '#') hash = '#' + hash\n if (search && search[0] !== '?') search = '?' + search\n\n pathname = pathname.replace(/[?#]/g, encodeURIComponent)\n search = search.replace('#', '%23')\n\n return `${protocol}${host}${pathname}${search}${hash}`\n}\n\nexport const urlObjectKeys = [\n 'auth',\n 'hash',\n 'host',\n 'hostname',\n 'href',\n 'path',\n 'pathname',\n 'port',\n 'protocol',\n 'query',\n 'search',\n 'slashes',\n]\n\nexport function formatWithValidation(url: UrlObject): string {\n if (process.env.NODE_ENV === 'development') {\n if (url !== null && typeof url === 'object') {\n Object.keys(url).forEach((key) => {\n if (!urlObjectKeys.includes(key)) {\n console.warn(\n `Unknown key passed via urlObject into url.format: ${key}`\n )\n }\n })\n }\n }\n\n return formatUrl(url)\n}\n"],"names":["formatUrl","formatWithValidation","urlObjectKeys","slashedProtocols","urlObj","auth","hostname","protocol","pathname","hash","query","host","encodeURIComponent","replace","indexOf","port","String","querystring","urlQueryToSearchParams","search","endsWith","slashes","test","url","process","env","NODE_ENV","Object","keys","forEach","key","includes","console","warn"],"mappings":"AA0FMwB,QAAQC,GAAG,CAACC,QAAQ,KAAK;AA1F/B,uCAAuC;AACvC,sDAAsD;AACtD,EAAE;AACF,0EAA0E;AAC1E,gEAAgE;AAChE,sEAAsE;AACtE,sEAAsE;AACtE,4EAA4E;AAC5E,qEAAqE;AACrE,wBAAwB;AACxB,EAAE;AACF,0EAA0E;AAC1E,yDAAyD;AACzD,EAAE;AACF,0EAA0E;AAC1E,6DAA6D;AAC7D,4EAA4E;AAC5E,2EAA2E;AAC3E,wEAAwE;AACxE,4EAA4E;AAC5E,yCAAyC;;;;;;;;;;;;;;;;;IAQzB1B,SAAS,EAAA;eAATA;;IA6DAC,oBAAoB,EAAA;eAApBA;;IAfHC,aAAa,EAAA;eAAbA;;;;uEAlDgB;AAE7B,MAAMC,mBAAmB;AAElB,SAASH,UAAUI,MAAiB;IACzC,IAAI,EAAEC,IAAI,EAAEC,QAAQ,EAAE,GAAGF;IACzB,IAAIG,WAAWH,OAAOG,QAAQ,IAAI;IAClC,IAAIC,WAAWJ,OAAOI,QAAQ,IAAI;IAClC,IAAIC,OAAOL,OAAOK,IAAI,IAAI;IAC1B,IAAIC,QAAQN,OAAOM,KAAK,IAAI;IAC5B,IAAIC,OAAuB;IAE3BN,OAAOA,OAAOO,mBAAmBP,MAAMQ,OAAO,CAAC,QAAQ,OAAO,MAAM;IAEpE,IAAIT,OAAOO,IAAI,EAAE;QACfA,OAAON,OAAOD,OAAOO,IAAI;IAC3B,OAAO,IAAIL,UAAU;QACnBK,OAAON,OAAQ,CAAA,CAACC,SAASQ,OAAO,CAAC,OAAO,CAAC,CAAC,EAAER,SAAS,CAAC,CAAC,GAAGA,QAAO;QACjE,IAAIF,OAAOW,IAAI,EAAE;YACfJ,QAAQ,MAAMP,OAAOW,IAAI;QAC3B;IACF;IAEA,IAAIL,SAAS,OAAOA,UAAU,UAAU;QACtCA,QAAQM,OAAOC,aAAYC,sBAAsB,CAACR;IACpD;IAEA,IAAIS,SAASf,OAAOe,MAAM,IAAKT,SAAS,CALine truncated
{"offset": {"line": 4095, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-asset-path-from-route.ts"],"sourcesContent":["// Translates a logical route into its pages asset path (relative from a common prefix)\n// \"asset path\" being its javascript file, data file, prerendered html,...\nexport default function getAssetPathFromRoute(\n route: string,\n ext: string = ''\n): string {\n const path =\n route === '/'\n ? '/index'\n : /^\\/index(\\/|$)/.test(route)\n ? `/index${route}`\n : route\n return path + ext\n}\n"],"names":["getAssetPathFromRoute","route","ext","path","test"],"mappings":"AAAA,uFAAuF;AACvF,0EAA0E;;;;+BAC1E,WAAA;;;eAAwBA;;;AAAT,SAASA,sBACtBC,KAAa,EACbC,MAAc,EAAE;IAEhB,MAAMC,OACJF,UAAU,MACN,WACA,iBAAiBG,IAAI,CAACH,SACpB,CAAC,MAAM,EAAEA,OAAO,GAChBA;IACR,OAAOE,OAAOD;AAChB","ignoreList":[0]}},
{"offset": {"line": 4114, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-dynamic-param.ts"],"sourcesContent":["import type { DynamicParam } from '../../../../server/app-render/app-render'\nimport type { LoaderTree } from '../../../../server/lib/app-dir-module'\nimport type { OpaqueFallbackRouteParams } from '../../../../server/request/fallback-params'\nimport type { Params } from '../../../../server/request/params'\nimport type { DynamicParamTypesShort } from '../../app-router-types'\nimport { InvariantError } from '../../invariant-error'\nimport { parseLoaderTree } from './parse-loader-tree'\nimport { parseNormalizedAppRoute, parseAppRouteSegment } from '../routes/app'\nimport { resolveParamValue } from './resolve-param-value'\n\n/**\n * Gets the value of a param from the params object. This correctly handles the\n * case where the param is a fallback route param and encodes the resulting\n * value.\n *\n * @param interpolatedParams - The params object.\n * @param segmentKey - The key of the segment.\n * @param fallbackRouteParams - The fallback route params.\n * @returns The value of the param.\n */\nfunction getParamValue(\n interpolatedParams: Params,\n segmentKey: string,\n fallbackRouteParams: OpaqueFallbackRouteParams | null\n) {\n let value = interpolatedParams[segmentKey]\n\n if (fallbackRouteParams?.has(segmentKey)) {\n // We know that the fallback route params has the segment key because we\n // checked that above.\n const [searchValue] = fallbackRouteParams.get(segmentKey)!\n value = searchValue\n } else if (Array.isArray(value)) {\n value = value.map((i) => encodeURIComponent(i))\n } else if (typeof value === 'string') {\n value = encodeURIComponent(value)\n }\n\n return value\n}\n\nexport function interpolateParallelRouteParams(\n loaderTree: LoaderTree,\n params: Params,\n pagePath: string,\n fallbackRouteParams: OpaqueFallbackRouteParams | null\n): Params {\n const interpolated = structuredClone(params)\n\n // Stack-based traversal with depth tracking\n const stack: Array<{ tree: LoaderTree; depth: number }> = [\n { tree: loaderTree, depth: 0 },\n ]\n\n // Parse the route from the provided page path.\n const route = parseNormalizedAppRoute(pagePath)\n\n while (stack.length > 0) {\n const { tree, depth } = stack.pop()!\n const { segment, parallelRoutes } = parseLoaderTree(tree)\n\n const appSegment = parseAppRouteSegment(segment)\n\n if (\n appSegment?.type === 'dynamic' &&\n !interpolated.hasOwnProperty(appSegment.param.paramName) &&\n // If the param is in the fallback route params, we don't need to\n // interpolate it because it's already marked as being unknown.\n !fallbackRouteParams?.has(appSegment.param.paramName)\n ) {\n const { paramName, paramType } = appSegment.param\n\n const paramValue = resolveParamValue(\n paramName,\n paramType,\n depth,\n route,\n interpolated\n )\n\n if (paramValue !== undefined) {\n interpolated[paramName] = paramValue\n } else if (paramType !== 'optional-catchall') {\n throw new InvariantError(\n `Could not resolve param value for segment: ${paramName}`\n )\n }\n }\n\n // Calculate next depth - increment if this is not a route group and not empty\n let nextDepth = depth\n if (\n appSegment &&\n appSegment.type !== 'route-group' &&\n appSegment.type !== 'parallel-route'\n ) {\n nextDepth++\n }\n\n // Add all parallel routes to the stack for processing\n for (const parallelRoute of Object.values(parallelRoutes)) {\n stack.push({ tree: parallelRoute, depth: nextDepth })\n }\n }\n\n return interpolated\n}\n\n/**\n *\n * Shared logic on client and server for creating a dynamic param value.\n *\n * This code needs to be shared with the client so it can extract dynamic route\n * params from the URL without a server request.\n *\n * Because everything in this module is sent to the client, we should aim to\n * keep this code as simple as possible. The special case handling for catchall\n * and optional is, alas, unfortunate.\n */\nexport function getDynamicParam(\n interpolatedParams: Params,\n segmentKey: string,\n dynamicParamType: DynamicParamTypesShort,\n fallbackRouteParams: OpaqueFallbackRouteParams | null,\n staticSiblings: readonly string[] | null\n): DynamicParam {\n let value: string | string[] | undefined = getParamValue(\n interpolatedParams,\n segmentKey,\n fallbackRouteParams\n )\n\n // handle the case where an optional catchall does not have a value,\n // e.g. `/dashboard/[[...slug]]` when requesting `/dashboard`\n if (!value || value.length === 0) {\n if (dynamicParamType === 'oc') {\n return {\n param: segmentKey,\n value: null,\n type: dynamicParamType,\n treeSegment: [segmentKLine truncated
{"offset": {"line": 4289, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-next-pathname-info.ts"],"sourcesContent":["import { normalizeLocalePath } from '../../i18n/normalize-locale-path'\nimport { removePathPrefix } from './remove-path-prefix'\nimport { pathHasPrefix } from './path-has-prefix'\nimport type { I18NProvider } from '../../../../server/lib/i18n-provider'\n\nexport interface NextPathnameInfo {\n /**\n * The base path in case the pathname included it.\n */\n basePath?: string\n /**\n * The buildId for when the parsed URL is a data URL. Parsing it can be\n * disabled with the `parseData` option.\n */\n buildId?: string\n /**\n * If there was a locale in the pathname, this will hold its value.\n */\n locale?: string\n /**\n * The processed pathname without a base path, locale, or data URL elements\n * when parsing it is enabled.\n */\n pathname: string\n /**\n * A boolean telling if the pathname had a trailingSlash. This can be only\n * true if trailingSlash is enabled.\n */\n trailingSlash?: boolean\n}\n\ninterface Options {\n /**\n * When passed to true, this function will also parse Nextjs data URLs.\n */\n parseData?: boolean\n /**\n * A partial of the Next.js configuration to parse the URL.\n */\n nextConfig?: {\n basePath?: string\n i18n?: { locales?: readonly string[] } | null\n trailingSlash?: boolean\n }\n\n /**\n * If provided, this normalizer will be used to detect the locale instead of\n * the default locale detection.\n */\n i18nProvider?: I18NProvider\n}\n\nexport function getNextPathnameInfo(\n pathname: string,\n options: Options\n): NextPathnameInfo {\n const { basePath, i18n, trailingSlash } = options.nextConfig ?? {}\n const info: NextPathnameInfo = {\n pathname,\n trailingSlash: pathname !== '/' ? pathname.endsWith('/') : trailingSlash,\n }\n\n if (basePath && pathHasPrefix(info.pathname, basePath)) {\n info.pathname = removePathPrefix(info.pathname, basePath)\n info.basePath = basePath\n }\n let pathnameNoDataPrefix = info.pathname\n\n if (\n info.pathname.startsWith('/_next/data/') &&\n info.pathname.endsWith('.json')\n ) {\n const paths = info.pathname\n .replace(/^\\/_next\\/data\\//, '')\n .replace(/\\.json$/, '')\n .split('/')\n\n const buildId = paths[0]\n info.buildId = buildId\n pathnameNoDataPrefix =\n paths[1] !== 'index' ? `/${paths.slice(1).join('/')}` : '/'\n\n // update pathname with normalized if enabled although\n // we use normalized to populate locale info still\n if (options.parseData === true) {\n info.pathname = pathnameNoDataPrefix\n }\n }\n\n // If provided, use the locale route normalizer to detect the locale instead\n // of the function below.\n if (i18n) {\n let result = options.i18nProvider\n ? options.i18nProvider.analyze(info.pathname)\n : normalizeLocalePath(info.pathname, i18n.locales)\n\n info.locale = result.detectedLocale\n info.pathname = result.pathname ?? info.pathname\n\n if (!result.detectedLocale && info.buildId) {\n result = options.i18nProvider\n ? options.i18nProvider.analyze(pathnameNoDataPrefix)\n : normalizeLocalePath(pathnameNoDataPrefix, i18n.locales)\n\n if (result.detectedLocale) {\n info.locale = result.detectedLocale\n }\n }\n }\n return info\n}\n"],"names":["getNextPathnameInfo","pathname","options","basePath","i18n","trailingSlash","nextConfig","info","endsWith","pathHasPrefix","removePathPrefix","pathnameNoDataPrefix","startsWith","paths","replace","split","buildId","slice","join","parseData","result","i18nProvider","analyze","normalizeLocalePath","locales","locale","detectedLocale"],"mappings":";;;+BAoDgBA,uBAAAA;;;eAAAA;;;qCApDoB;kCACH;+BACH;AAkDvB,SAASA,oBACdC,QAAgB,EAChBC,OAAgB;IAEhB,MAAM,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,aAAa,EAAE,GAAGH,QAAQI,UAAU,IAAI,CAAC;IACjE,MAAMC,OAAyB;QAC7BN;QACAI,eAAeJ,aAAa,MAAMA,SAASO,QAAQ,CAAC,OAAOH;IAC7D;IAEA,IAAIF,YAAYM,CAAAA,GAAAA,eAAAA,aAAa,EAACF,KAAKN,QAAQ,EAAEE,WAAW;QACtDI,KAAKN,QAAQ,GAAGS,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACH,KAAKN,QAAQ,EAAEE;QAChDI,KAAKJ,QAAQ,GAAGA;IAClB;IACA,IAAIQ,uBAAuBJ,KAAKN,QAAQ;IAExC,IACEM,KAAKN,QAAQ,CAACW,UAAU,CAAC,mBACzBL,KAAKN,QAAQ,CAACO,QAAQ,CAAC,UACvB;QACA,MAAMK,QAAQN,KAAKN,QAAQ,CACxBa,OAAO,CAAC,oBAAoB,IAC5BA,OAAO,CAAC,WAAW,IACnBC,KAAK,CAAC;QAET,MAAMC,UAAUH,KAAK,CAAC,EAAE;QACxBN,KAAKS,OAAO,GAAGA;QACfL,uBACEE,KAAK,CAAC,EAAE,KAAK,UAAU,CAAC,CAAC,EAAEA,MAAMI,KAAK,CAAC,GAAGC,IAAI,CAAC,MAAM,GAAG;QAE1D,sDAAsD;QACtD,kDAAkD;QAClD,IAAIhB,QAAQiB,SAAS,KAAK,MAAM;YAC9BZ,KAAKN,QAAQ,GAAGU;QAClB;IACF;IAEA,4EAA4E;IAC5E,yBAAyB;IACzB,IAAIP,MAAM;QACR,IAAIgB,SAASlB,QAAQmB,YAAY,GAC7BnB,QAAQmB,YAAY,CAACC,OAAO,CAACf,KAAKN,QAAQ,IAC1CsB,CAAAA,GAAAA,qBAAAA,mBAAmB,EAAChB,KAAKN,QAAQ,EAAEG,KAAKoB,OAAO;QAEnDjB,KAAKkB,MAAM,GAAGL,OAAOM,cAAc;QACnCnB,KAAKN,QAAQ,GAAGmB,OAAOnB,QAAQ,IAAIM,KAAKN,QAAQ;QAEhD,IAAI,CLine truncated
{"offset": {"line": 4342, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/get-segment-param.tsx"],"sourcesContent":["import { INTERCEPTION_ROUTE_MARKERS } from './interception-routes'\nimport type { DynamicParamTypes } from '../../app-router-types'\n\nexport type SegmentParam = {\n paramName: string\n paramType: DynamicParamTypes\n}\n\n/**\n * Parse dynamic route segment to type of parameter\n */\nexport function getSegmentParam(segment: string): SegmentParam | null {\n const interceptionMarker = INTERCEPTION_ROUTE_MARKERS.find((marker) =>\n segment.startsWith(marker)\n )\n\n // if an interception marker is part of the path segment, we need to jump ahead\n // to the relevant portion for param parsing\n if (interceptionMarker) {\n segment = segment.slice(interceptionMarker.length)\n }\n\n if (segment.startsWith('[[...') && segment.endsWith(']]')) {\n return {\n // TODO-APP: Optional catchall does not currently work with parallel routes,\n // so for now aren't handling a potential interception marker.\n paramType: 'optional-catchall',\n paramName: segment.slice(5, -2),\n }\n }\n\n if (segment.startsWith('[...') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker\n ? `catchall-intercepted-${interceptionMarker}`\n : 'catchall',\n paramName: segment.slice(4, -1),\n }\n }\n\n if (segment.startsWith('[') && segment.endsWith(']')) {\n return {\n paramType: interceptionMarker\n ? `dynamic-intercepted-${interceptionMarker}`\n : 'dynamic',\n paramName: segment.slice(1, -1),\n }\n }\n\n return null\n}\n\nexport function isCatchAll(\n type: DynamicParamTypes\n): type is\n | 'catchall'\n | 'catchall-intercepted-(..)(..)'\n | 'catchall-intercepted-(.)'\n | 'catchall-intercepted-(..)'\n | 'catchall-intercepted-(...)'\n | 'optional-catchall' {\n return (\n type === 'catchall' ||\n type === 'catchall-intercepted-(..)(..)' ||\n type === 'catchall-intercepted-(.)' ||\n type === 'catchall-intercepted-(..)' ||\n type === 'catchall-intercepted-(...)' ||\n type === 'optional-catchall'\n )\n}\n\nexport function getParamProperties(paramType: DynamicParamTypes): {\n repeat: boolean\n optional: boolean\n} {\n let repeat = false\n let optional = false\n\n switch (paramType) {\n case 'catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n repeat = true\n break\n case 'optional-catchall':\n repeat = true\n optional = true\n break\n case 'dynamic':\n case 'dynamic-intercepted-(..)(..)':\n case 'dynamic-intercepted-(.)':\n case 'dynamic-intercepted-(..)':\n case 'dynamic-intercepted-(...)':\n break\n default:\n paramType satisfies never\n }\n\n return { repeat, optional }\n}\n"],"names":["getParamProperties","getSegmentParam","isCatchAll","segment","interceptionMarker","INTERCEPTION_ROUTE_MARKERS","find","marker","startsWith","slice","length","endsWith","paramType","paramName","type","repeat","optional"],"mappings":";;;;;;;;;;;;;;;IAuEgBA,kBAAkB,EAAA;eAAlBA;;IA5DAC,eAAe,EAAA;eAAfA;;IAyCAC,UAAU,EAAA;eAAVA;;;oCApD2B;AAWpC,SAASD,gBAAgBE,OAAe;IAC7C,MAAMC,qBAAqBC,oBAAAA,0BAA0B,CAACC,IAAI,CAAC,CAACC,SAC1DJ,QAAQK,UAAU,CAACD;IAGrB,+EAA+E;IAC/E,4CAA4C;IAC5C,IAAIH,oBAAoB;QACtBD,UAAUA,QAAQM,KAAK,CAACL,mBAAmBM,MAAM;IACnD;IAEA,IAAIP,QAAQK,UAAU,CAAC,YAAYL,QAAQQ,QAAQ,CAAC,OAAO;QACzD,OAAO;YACL,4EAA4E;YAC5E,8DAA8D;YAC9DC,WAAW;YACXC,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,IAAIN,QAAQK,UAAU,CAAC,WAAWL,QAAQQ,QAAQ,CAAC,MAAM;QACvD,OAAO;YACLC,WAAWR,qBACP,CAAC,qBAAqB,EAAEA,oBAAoB,GAC5C;YACJS,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,IAAIN,QAAQK,UAAU,CAAC,QAAQL,QAAQQ,QAAQ,CAAC,MAAM;QACpD,OAAO;YACLC,WAAWR,qBACP,CAAC,oBAAoB,EAAEA,oBAAoB,GAC3C;YACJS,WAAWV,QAAQM,KAAK,CAAC,GAAG,CAAC;QAC/B;IACF;IAEA,OAAO;AACT;AAEO,SAASP,WACdY,IAAuB;IAQvB,OACEA,SAAS,cACTA,SAAS,mCACTA,SAAS,8BACTA,SAAS,+BACTA,SAAS,gCACTA,SAAS;AAEb;AAEO,SAASd,mBAAmBY,SAA4B;IAI7D,IAAIG,SAAS;IACb,IAAIC,WAAW;IAEf,OAAQJ;QACN,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACHG,SAAS;YACT;QACF,KAAK;YACHA,SAAS;YACTC,WAAW;YACX;QACF,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACH;QACF;YACEJ;IACJ;IAEA,OAAO;QAAEG;QAAQC;IAAS;AAC5B","ignoreList":[0]}},
{"offset": {"line": 4433, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/html-bots.ts"],"sourcesContent":["// This regex contains the bots that we need to do a blocking render for and can't safely stream the response\n// due to how they parse the DOM. For example, they might explicitly check for metadata in the `head` tag, so we can't stream metadata tags after the `head` was sent.\n// Note: The pattern [\\w-]+-Google captures all Google crawlers with \"-Google\" suffix (e.g., Mediapartners-Google, AdsBot-Google, Storebot-Google)\n// as well as crawlers starting with \"Google-\" (e.g., Google-PageRenderer, Google-InspectionTool)\nexport const HTML_LIMITED_BOT_UA_RE =\n /[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i\n"],"names":["HTML_LIMITED_BOT_UA_RE"],"mappings":"AAAA,6GAA6G;AAC7G,sKAAsK;AACtK,kJAAkJ;AAClJ,iGAAiG;;;;+BACpFA,0BAAAA;;;eAAAA;;;AAAN,MAAMA,yBACX","ignoreList":[0]}},
{"offset": {"line": 4451, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/index.ts"],"sourcesContent":["export { getSortedRoutes, getSortedRouteObjects } from './sorted-routes'\nexport { isDynamicRoute } from './is-dynamic'\n"],"names":["getSortedRouteObjects","getSortedRoutes","isDynamicRoute"],"mappings":";;;;;;;;;;;;;;;IAA0BA,qBAAqB,EAAA;eAArBA,cAAAA,qBAAqB;;IAAtCC,eAAe,EAAA;eAAfA,cAAAA,eAAe;;IACfC,cAAc,EAAA;eAAdA,WAAAA,cAAc;;;8BADgC;2BACxB","ignoreList":[0]}},
{"offset": {"line": 4482, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interception-prefix-from-param-type.ts"],"sourcesContent":["import type { DynamicParamTypes } from '../../app-router-types'\n\nexport function interceptionPrefixFromParamType(\n paramType: DynamicParamTypes\n): string | null {\n switch (paramType) {\n case 'catchall-intercepted-(..)(..)':\n case 'dynamic-intercepted-(..)(..)':\n return '(..)(..)'\n case 'catchall-intercepted-(.)':\n case 'dynamic-intercepted-(.)':\n return '(.)'\n case 'catchall-intercepted-(..)':\n case 'dynamic-intercepted-(..)':\n return '(..)'\n case 'catchall-intercepted-(...)':\n case 'dynamic-intercepted-(...)':\n return '(...)'\n case 'catchall':\n case 'dynamic':\n case 'optional-catchall':\n default:\n return null\n }\n}\n"],"names":["interceptionPrefixFromParamType","paramType"],"mappings":";;;+BAEgBA,mCAAAA;;;eAAAA;;;AAAT,SAASA,gCACdC,SAA4B;IAE5B,OAAQA;QACN,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;YACH,OAAO;QACT,KAAK;QACL,KAAK;QACL,KAAK;QACL;YACE,OAAO;IACX;AACF","ignoreList":[0]}},
{"offset": {"line": 4516, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interception-routes.ts"],"sourcesContent":["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"],"names":["INTERCEPTION_ROUTE_MARKERS","extractInterceptionRouteInformation","isInterceptionRouteAppPath","path","split","find","segment","m","startsWith","undefined","interceptingRoute","marker","interceptedRoute","Error","normalizeAppPath","slice","concat","join","splitInterceptingRoute","length"],"mappings":";;;;;;;;;;;;;;;IAGaA,0BAA0B,EAAA;eAA1BA;;IAmCGC,mCAAmC,EAAA;eAAnCA;;IA1BAC,0BAA0B,EAAA;eAA1BA;;;0BAZiB;AAG1B,MAAMF,6BAA6B;IACxC;IACA;IACA;IACA;CACD;AAIM,SAASE,2BAA2BC,IAAY;IACrD,wCAAwC;IACxC,OACEA,KACGC,KAAK,CAAC,KACNC,IAAI,CAAC,CAACC,UACLN,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD,SACtDE;AAEZ;AAiBO,SAASR,oCACdE,IAAY;IAEZ,IAAIO;IACJ,IAAIC;IACJ,IAAIC;IAEJ,KAAK,MAAMN,WAAWH,KAAKC,KAAK,CAAC,KAAM;QACrCO,SAASX,2BAA2BK,IAAI,CAAC,CAACE,IAAMD,QAAQE,UAAU,CAACD;QACnE,IAAII,QAAQ;;YACT,CAACD,mBAAmBE,iBAAiB,GAAGT,KAAKC,KAAK,CAACO,QAAQ;YAC5D;QACF;IACF;IAEA,IAAI,CAACD,qBAAqB,CAACC,UAAU,CAACC,kBAAkB;QACtD,MAAM,OAAA,cAEL,CAFK,IAAIC,MACR,CAAC,4BAA4B,EAAEV,KAAK,iFAAiF,CAAC,GADlH,qBAAA;mBAAA;wBAAA;0BAAA;QAEN;IACF;IAEAO,oBAAoBI,CAAAA,GAAAA,UAAAA,gBAAgB,EAACJ,mBAAmB,iDAAiD;;IAEzG,OAAQC;QACN,KAAK;YACH,oIAAoI;YACpI,IALine truncated
{"offset": {"line": 4625, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/interpolate-as.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nimport { getRouteMatcher } from './route-matcher'\nimport { getRouteRegex } from './route-regex'\n\nexport function interpolateAs(\n route: string,\n asPathname: string,\n query: ParsedUrlQuery\n) {\n let interpolatedRoute = ''\n\n const dynamicRegex = getRouteRegex(route)\n const dynamicGroups = dynamicRegex.groups\n const dynamicMatches =\n // Try to match the dynamic route against the asPath\n (asPathname !== route ? getRouteMatcher(dynamicRegex)(asPathname) : '') ||\n // Fall back to reading the values from the href\n // TODO: should this take priority; also need to change in the router.\n query\n\n interpolatedRoute = route\n const params = Object.keys(dynamicGroups)\n\n if (\n !params.every((param) => {\n let value = dynamicMatches[param] || ''\n const { repeat, optional } = dynamicGroups[param]\n\n // support single-level catch-all\n // TODO: more robust handling for user-error (passing `/`)\n let replaced = `[${repeat ? '...' : ''}${param}]`\n if (optional) {\n replaced = `${!value ? '/' : ''}[${replaced}]`\n }\n if (repeat && !Array.isArray(value)) value = [value]\n\n return (\n (optional || param in dynamicMatches) &&\n // Interpolate group into data URL if present\n (interpolatedRoute =\n interpolatedRoute!.replace(\n replaced,\n repeat\n ? (value as string[])\n .map(\n // these values should be fully encoded instead of just\n // path delimiter escaped since they are being inserted\n // into the URL and we expect URL encoded segments\n // when parsing dynamic route params\n (segment) => encodeURIComponent(segment)\n )\n .join('/')\n : encodeURIComponent(value as string)\n ) || '/')\n )\n })\n ) {\n interpolatedRoute = '' // did not satisfy all requirements\n\n // n.b. We ignore this error because we handle warning for this case in\n // development in the `<Link>` component directly.\n }\n return {\n params,\n result: interpolatedRoute,\n }\n}\n"],"names":["interpolateAs","route","asPathname","query","interpolatedRoute","dynamicRegex","getRouteRegex","dynamicGroups","groups","dynamicMatches","getRouteMatcher","params","Object","keys","every","param","value","repeat","optional","replaced","Array","isArray","replace","map","segment","encodeURIComponent","join","result"],"mappings":";;;+BAKgBA,iBAAAA;;;eAAAA;;;8BAHgB;4BACF;AAEvB,SAASA,cACdC,KAAa,EACbC,UAAkB,EAClBC,KAAqB;IAErB,IAAIC,oBAAoB;IAExB,MAAMC,eAAeC,CAAAA,GAAAA,YAAAA,aAAa,EAACL;IACnC,MAAMM,gBAAgBF,aAAaG,MAAM;IACzC,MAAMC,iBAEJ,AADA,AACCP,CAAAA,eAAeD,QAAQS,CAAAA,GAAAA,cAAAA,UAD4B,KACb,EAACL,cAAcH,cAAc,EAAC,KACrE,gDAAgD;IAChD,sEAAsE;IACtEC;IAEFC,oBAAoBH;IACpB,MAAMU,SAASC,OAAOC,IAAI,CAACN;IAE3B,IACE,CAACI,OAAOG,KAAK,CAAC,CAACC;QACb,IAAIC,QAAQP,cAAc,CAACM,MAAM,IAAI;QACrC,MAAM,EAAEE,MAAM,EAAEC,QAAQ,EAAE,GAAGX,aAAa,CAACQ,MAAM;QAEjD,iCAAiC;QACjC,0DAA0D;QAC1D,IAAII,WAAW,CAAC,CAAC,EAAEF,SAAS,QAAQ,KAAKF,MAAM,CAAC,CAAC;QACjD,IAAIG,UAAU;YACZC,WAAW,GAAG,CAACH,QAAQ,MAAM,GAAG,CAAC,EAAEG,SAAS,CAAC,CAAC;QAChD;QACA,IAAIF,UAAU,CAACG,MAAMC,OAAO,CAACL,QAAQA,QAAQ;YAACA;SAAM;QAEpD,OACGE,CAAAA,YAAYH,SAASN,cAAa,KACnC,6CAA6C;QAC5CL,CAAAA,oBACCA,kBAAmBkB,OAAO,CACxBH,UACAF,SACKD,MACEO,GAAG,CACF,AACA,uDADuD,AACA;QACvD,kDAAkD;QAClD,oCAAoC;QACpC,CAACC,UAAYC,mBAAmBD,UAEjCE,IAAI,CAAC,OACRD,mBAAmBT,WACpB,GAAE;IAEb,IACA;QACAZ,oBAAoB,GAAG,mCAAmC;;IAE1D,uEAAuE;IACvE,kDAAkD;IACpD;IACA,OAAO;QACLO;QACAgB,QAAQvB;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 4677, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-bot.ts"],"sourcesContent":["import { HTML_LIMITED_BOT_UA_RE } from './html-bots'\n\n// Bot crawler that will spin up a headless browser and execute JS.\n// Only the main Googlebot search crawler executes JavaScript, not other Google crawlers.\n// x-ref: https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers\n// This regex specifically matches \"Googlebot\" but NOT \"Mediapartners-Google\", \"AdsBot-Google\", etc.\nconst HEADLESS_BROWSER_BOT_UA_RE = /Googlebot(?!-)|Googlebot$/i\n\nexport const HTML_LIMITED_BOT_UA_RE_STRING = HTML_LIMITED_BOT_UA_RE.source\n\nexport { HTML_LIMITED_BOT_UA_RE }\n\nfunction isDomBotUA(userAgent: string) {\n return HEADLESS_BROWSER_BOT_UA_RE.test(userAgent)\n}\n\nfunction isHtmlLimitedBotUA(userAgent: string) {\n return HTML_LIMITED_BOT_UA_RE.test(userAgent)\n}\n\nexport function isBot(userAgent: string): boolean {\n return isDomBotUA(userAgent) || isHtmlLimitedBotUA(userAgent)\n}\n\nexport function getBotType(userAgent: string): 'dom' | 'html' | undefined {\n if (isDomBotUA(userAgent)) {\n return 'dom'\n }\n if (isHtmlLimitedBotUA(userAgent)) {\n return 'html'\n }\n return undefined\n}\n"],"names":["HTML_LIMITED_BOT_UA_RE","HTML_LIMITED_BOT_UA_RE_STRING","getBotType","isBot","HEADLESS_BROWSER_BOT_UA_RE","source","isDomBotUA","userAgent","test","isHtmlLimitedBotUA","undefined"],"mappings":";;;;;;;;;;;;;;;;IAUSA,sBAAsB,EAAA;eAAtBA,UAAAA,sBAAsB;;IAFlBC,6BAA6B,EAAA;eAA7BA;;IAgBGC,UAAU,EAAA;eAAVA;;IAJAC,KAAK,EAAA;eAALA;;;0BApBuB;AAEvC,mEAAmE;AACnE,yFAAyF;AACzF,4FAA4F;AAC5F,oGAAoG;AACpG,MAAMC,6BAA6B;AAE5B,MAAMH,gCAAgCD,UAAAA,sBAAsB,CAACK,MAAM;AAI1E,SAASC,WAAWC,SAAiB;IACnC,OAAOH,2BAA2BI,IAAI,CAACD;AACzC;AAEA,SAASE,mBAAmBF,SAAiB;IAC3C,OAAOP,UAAAA,sBAAsB,CAACQ,IAAI,CAACD;AACrC;AAEO,SAASJ,MAAMI,SAAiB;IACrC,OAAOD,WAAWC,cAAcE,mBAAmBF;AACrD;AAEO,SAASL,WAAWK,SAAiB;IAC1C,IAAID,WAAWC,YAAY;QACzB,OAAO;IACT;IACA,IAAIE,mBAAmBF,YAAY;QACjC,OAAO;IACT;IACA,OAAOG;AACT","ignoreList":[0]}},
{"offset": {"line": 4735, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-dynamic.ts"],"sourcesContent":["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"],"names":["isDynamicRoute","TEST_ROUTE","TEST_STRICT_ROUTE","route","strict","isInterceptionRouteAppPath","extractInterceptionRouteInformation","interceptedRoute","test"],"mappings":";;;+BAkBgBA,kBAAAA;;;eAAAA;;;oCAfT;AAEP,yCAAyC;AACzC,MAAMC,aAAa;AAEnB,qCAAqC;AACrC,MAAMC,oBAAoB;AASnB,SAASF,eAAeG,KAAa,EAAEC,SAAkB,IAAI;IAClE,IAAIC,CAAAA,GAAAA,oBAAAA,0BAA0B,EAACF,QAAQ;QACrCA,QAAQG,CAAAA,GAAAA,oBAAAA,mCAAmC,EAACH,OAAOI,gBAAgB;IACrE;IAEA,IAAIH,QAAQ;QACV,OAAOF,kBAAkBM,IAAI,CAACL;IAChC;IAEA,OAAOF,WAAWO,IAAI,CAACL;AACzB","ignoreList":[0]}},
{"offset": {"line": 4762, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/is-local-url.ts"],"sourcesContent":["import { isAbsoluteUrl, getLocationOrigin } from '../../utils'\nimport { hasBasePath } from '../../../../client/has-base-path'\n\n/**\n * Detects whether a given url is routable by the Next.js router (browser only).\n */\nexport function isLocalURL(url: string): boolean {\n // prevent a hydration mismatch on href for url with anchor refs\n if (!isAbsoluteUrl(url)) return true\n try {\n // absolute urls can be local if they are on the same origin\n const locationOrigin = getLocationOrigin()\n const resolved = new URL(url, locationOrigin)\n return resolved.origin === locationOrigin && hasBasePath(resolved.pathname)\n } catch (_) {\n return false\n }\n}\n"],"names":["isLocalURL","url","isAbsoluteUrl","locationOrigin","getLocationOrigin","resolved","URL","origin","hasBasePath","pathname","_"],"mappings":";;;+BAMgBA,cAAAA;;;eAAAA;;;uBANiC;6BACrB;AAKrB,SAASA,WAAWC,GAAW;IACpC,gEAAgE;IAChE,IAAI,CAACC,CAAAA,GAAAA,OAAAA,aAAa,EAACD,MAAM,OAAO;IAChC,IAAI;QACF,4DAA4D;QAC5D,MAAME,iBAAiBC,CAAAA,GAAAA,OAAAA,iBAAiB;QACxC,MAAMC,WAAW,IAAIC,IAAIL,KAAKE;QAC9B,OAAOE,SAASE,MAAM,KAAKJ,kBAAkBK,CAAAA,GAAAA,aAAAA,WAAW,EAACH,SAASI,QAAQ;IAC5E,EAAE,OAAOC,GAAG;QACV,OAAO;IACT;AACF","ignoreList":[0]}},
{"offset": {"line": 4789, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/omit.ts"],"sourcesContent":["export function omit<T extends { [key: string]: unknown }, K extends keyof T>(\n object: T,\n keys: K[]\n): Omit<T, K> {\n const omitted: { [key: string]: unknown } = {}\n Object.keys(object).forEach((key) => {\n if (!keys.includes(key as K)) {\n omitted[key] = object[key]\n }\n })\n return omitted as Omit<T, K>\n}\n"],"names":["omit","object","keys","omitted","Object","forEach","key","includes"],"mappings":";;;+BAAgBA,QAAAA;;;eAAAA;;;AAAT,SAASA,KACdC,MAAS,EACTC,IAAS;IAET,MAAMC,UAAsC,CAAC;IAC7CC,OAAOF,IAAI,CAACD,QAAQI,OAAO,CAAC,CAACC;QAC3B,IAAI,CAACJ,KAAKK,QAAQ,CAACD,MAAW;YAC5BH,OAAO,CAACG,IAAI,GAAGL,MAAM,CAACK,IAAI;QAC5B;IACF;IACA,OAAOH;AACT","ignoreList":[0]}},
{"offset": {"line": 4811, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-loader-tree.ts"],"sourcesContent":["import { DEFAULT_SEGMENT_KEY } from '../../segment'\nimport type { LoaderTree } from '../../../../server/lib/app-dir-module'\n\nexport function parseLoaderTree(tree: LoaderTree) {\n const [segment, parallelRoutes, modules, staticSiblings] = tree\n const { layout, template } = modules\n let { page } = modules\n // a __DEFAULT__ segment means that this route didn't match any of the\n // segments in the route, so we should use the default page\n page = segment === DEFAULT_SEGMENT_KEY ? modules.defaultPage : page\n\n const conventionPath = layout?.[1] || template?.[1] || page?.[1]\n\n return {\n page,\n segment,\n modules,\n /* it can be either layout / template / page */\n conventionPath,\n parallelRoutes,\n staticSiblings,\n }\n}\n"],"names":["parseLoaderTree","tree","segment","parallelRoutes","modules","staticSiblings","layout","template","page","DEFAULT_SEGMENT_KEY","defaultPage","conventionPath"],"mappings":";;;+BAGgBA,mBAAAA;;;eAAAA;;;yBAHoB;AAG7B,SAASA,gBAAgBC,IAAgB;IAC9C,MAAM,CAACC,SAASC,gBAAgBC,SAASC,eAAe,GAAGJ;IAC3D,MAAM,EAAEK,MAAM,EAAEC,QAAQ,EAAE,GAAGH;IAC7B,IAAI,EAAEI,IAAI,EAAE,GAAGJ;IACf,sEAAsE;IACtE,2DAA2D;IAC3DI,OAAON,YAAYO,SAAAA,mBAAmB,GAAGL,QAAQM,WAAW,GAAGF;IAE/D,MAAMG,iBAAiBL,QAAQ,CAAC,EAAE,IAAIC,UAAU,CAAC,EAAE,IAAIC,MAAM,CAAC,EAAE;IAEhE,OAAO;QACLA;QACAN;QACAE;QACA,6CAA6C,GAC7CO;QACAR;QACAE;IACF;AACF","ignoreList":[0]}},
{"offset": {"line": 4842, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-path.ts"],"sourcesContent":["/**\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"],"names":["parsePath","path","hashIndex","indexOf","queryIndex","hasQuery","pathname","substring","query","undefined","hash","slice"],"mappings":"AAAA;;;;CAIC;;;+BACeA,aAAAA;;;eAAAA;;;AAAT,SAASA,UAAUC,IAAY;IACpC,MAAMC,YAAYD,KAAKE,OAAO,CAAC;IAC/B,MAAMC,aAAaH,KAAKE,OAAO,CAAC;IAChC,MAAME,WAAWD,aAAa,CAAC,KAAMF,CAAAA,YAAY,KAAKE,aAAaF,SAAQ;IAE3E,IAAIG,YAAYH,YAAY,CAAC,GAAG;QAC9B,OAAO;YACLI,UAAUL,KAAKM,SAAS,CAAC,GAAGF,WAAWD,aAAaF;YACpDM,OAAOH,WACHJ,KAAKM,SAAS,CAACH,YAAYF,YAAY,CAAC,IAAIA,YAAYO,aACxD;YACJC,MAAMR,YAAY,CAAC,IAAID,KAAKU,KAAK,CAACT,aAAa;QACjD;IACF;IAEA,OAAO;QAAEI,UAAUL;QAAMO,OAAO;QAAIE,MAAM;IAAG;AAC/C","ignoreList":[0]}},
{"offset": {"line": 4876, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-relative-url.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\nimport { getLocationOrigin } from '../../utils'\nimport { searchParamsToUrlQuery } from './querystring'\n\nexport interface ParsedRelativeUrl {\n auth: string | null\n hash: string\n host: string | null\n hostname: string | null\n href: string\n pathname: string\n port: string | null\n protocol: string | null\n query: ParsedUrlQuery\n search: string\n slashes: null\n}\n\n/**\n * Parses path-relative urls (e.g. `/hello/world?foo=bar`). If url isn't path-relative\n * (e.g. `./hello`) then at least base must be.\n * Absolute urls are rejected with one exception, in the browser, absolute urls that are on\n * the current origin will be parsed as relative\n */\nexport function parseRelativeUrl(\n url: string,\n base?: string,\n parseQuery?: true\n): ParsedRelativeUrl\nexport function parseRelativeUrl(\n url: string,\n base: string | undefined,\n parseQuery: false\n): Omit<ParsedRelativeUrl, 'query'>\nexport function parseRelativeUrl(\n url: string,\n base?: string,\n parseQuery = true\n): ParsedRelativeUrl | Omit<ParsedRelativeUrl, 'query'> {\n const globalBase = new URL(\n typeof window === 'undefined' ? 'http://n' : getLocationOrigin()\n )\n\n const resolvedBase = base\n ? new URL(base, globalBase)\n : url.startsWith('.')\n ? new URL(\n typeof window === 'undefined' ? 'http://n' : window.location.href\n )\n : globalBase\n\n const { pathname, searchParams, search, hash, href, origin } = url.startsWith(\n '/'\n )\n ? // 'http://localhost:3000///' would be received as '///' in Node.js' IncomingMessage\n // See https://nodejs.org/api/http.html#messageurl\n // Not using `origin` to support other protocols\n new URL(`${resolvedBase.protocol}//${resolvedBase.host}${url}`)\n : new URL(url, resolvedBase)\n\n if (origin !== globalBase.origin) {\n throw new Error(`invariant: invalid relative URL, router received ${url}`)\n }\n\n return {\n auth: null,\n host: null,\n hostname: null,\n pathname,\n port: null,\n protocol: null,\n query: parseQuery ? searchParamsToUrlQuery(searchParams) : undefined,\n search,\n hash,\n href: href.slice(origin.length),\n // We don't know for relative URLs at this point since we set a custom, internal\n // base that isn't surfaced to users.\n slashes: null,\n }\n}\n"],"names":["parseRelativeUrl","url","base","parseQuery","globalBase","URL","window","getLocationOrigin","resolvedBase","startsWith","location","href","pathname","searchParams","search","hash","origin","protocol","host","Error","auth","hostname","port","query","searchParamsToUrlQuery","undefined","slice","length","slashes"],"mappings":";;;+BAkCgBA,oBAAAA;;;eAAAA;;;uBAjCkB;6BACK;AAgChC,SAASA,iBACdC,GAAW,EACXC,IAAa,EACbC,aAAa,IAAI;IAEjB,MAAMC,aAAa,IAAIC,IACrB,OAAOC,WAAW,cAAc,aAAaC,CAAAA,GAAAA,OAAAA,iBAAiB;IAGhE,MAAMC,eAAeN,OACjB,IAAIG,IAAIH,MAAME,cACdH,IAAIQ,UAAU,CAAC,OACb,IAAIJ,IACF,OAAOC,WAAW,cAAc,aAAaA,OAAOI,QAAQ,CAACC,IAAI,IAEnEP;IAEN,MAAM,EAAEQ,QAAQ,EAAEC,YAAY,EAAEC,MAAM,EAAEC,IAAI,EAAEJ,IAAI,EAAEK,MAAM,EAAE,GAAGf,IAAIQ,UAAU,CAC3E,OAGE,AACA,gDAAgD,EADE;IAElD,IAAIJ,IAAI,GAAGG,aAAaS,QAAQ,CAAC,EAAE,EAAET,aAAaU,IAAI,GAAGjB,KAAK,IAC9D,IAAII,IAAIJ,KAAKO;IAEjB,IAAIQ,WAAWZ,WAAWY,MAAM,EAAE;QAChC,MAAM,OAAA,cAAoE,CAApE,IAAIG,MAAM,CAAC,iDAAiD,EAAElB,KAAK,GAAnE,qBAAA;mBAAA;wBAAA;0BAAA;QAAmE;IAC3E;IAEA,OAAO;QACLmB,MAAM;QACNF,MAAM;QACNG,UAAU;QACVT;QACAU,MAAM;QACNL,UAAU;QACVM,OAAOpB,aAAaqB,CAAAA,GAAAA,aAAAA,sBAAsB,EAACX,gBAAgBY;QAC3DX;QACAC;QACAJ,MAAMA,KAAKe,KAAK,CAACV,OAAOW,MAAM;QAC9B,gFAAgF;QAChF,qCAAqC;QACrCC,SAAS;IACX;AACF","ignoreList":[0]}},
{"offset": {"line": 4919, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/parse-url.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nimport { searchParamsToUrlQuery } from './querystring'\nimport { parseRelativeUrl } from './parse-relative-url'\n\nexport interface ParsedUrl {\n auth: string | null\n hash: string\n hostname: string | null\n href: string\n origin?: string | null\n pathname: string\n port: string | null\n protocol: string | null\n query: ParsedUrlQuery\n search: string\n slashes: boolean | null\n}\n\nexport function parseUrl(url: string): ParsedUrl {\n if (url.startsWith('/')) {\n return parseRelativeUrl(url)\n }\n\n const parsedURL = new URL(url)\n const username = parsedURL.username\n const password = parsedURL.password\n const auth = username\n ? password\n ? `${username}:${password}`\n : username\n : null\n const pathname = parsedURL.pathname\n const search = parsedURL.search\n return {\n auth,\n hash: parsedURL.hash,\n hostname: parsedURL.hostname,\n href: parsedURL.href,\n pathname,\n port: parsedURL.port,\n protocol: parsedURL.protocol,\n query: searchParamsToUrlQuery(parsedURL.searchParams),\n search,\n origin: parsedURL.origin,\n slashes:\n parsedURL.href.slice(\n parsedURL.protocol.length,\n parsedURL.protocol.length + 2\n ) === '//',\n }\n}\n"],"names":["parseUrl","url","startsWith","parseRelativeUrl","parsedURL","URL","username","password","auth","pathname","search","hash","hostname","href","port","protocol","query","searchParamsToUrlQuery","searchParams","origin","slashes","slice","length"],"mappings":";;;+BAmBgBA,YAAAA;;;eAAAA;;;6BAjBuB;kCACN;AAgB1B,SAASA,SAASC,GAAW;IAClC,IAAIA,IAAIC,UAAU,CAAC,MAAM;QACvB,OAAOC,CAAAA,GAAAA,kBAAAA,gBAAgB,EAACF;IAC1B;IAEA,MAAMG,YAAY,IAAIC,IAAIJ;IAC1B,MAAMK,WAAWF,UAAUE,QAAQ;IACnC,MAAMC,WAAWH,UAAUG,QAAQ;IACnC,MAAMC,OAAOF,WACTC,WACE,GAAGD,SAAS,CAAC,EAAEC,UAAU,GACzBD,WACF;IACJ,MAAMG,WAAWL,UAAUK,QAAQ;IACnC,MAAMC,SAASN,UAAUM,MAAM;IAC/B,OAAO;QACLF;QACAG,MAAMP,UAAUO,IAAI;QACpBC,UAAUR,UAAUQ,QAAQ;QAC5BC,MAAMT,UAAUS,IAAI;QACpBJ;QACAK,MAAMV,UAAUU,IAAI;QACpBC,UAAUX,UAAUW,QAAQ;QAC5BC,OAAOC,CAAAA,GAAAA,aAAAA,sBAAsB,EAACb,UAAUc,YAAY;QACpDR;QACAS,QAAQf,UAAUe,MAAM;QACxBC,SACEhB,UAAUS,IAAI,CAACQ,KAAK,CAClBjB,UAAUW,QAAQ,CAACO,MAAM,EACzBlB,UAAUW,QAAQ,CAACO,MAAM,GAAG,OACxB;IACV;AACF","ignoreList":[0]}},
{"offset": {"line": 4958, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/path-has-prefix.ts"],"sourcesContent":["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"],"names":["pathHasPrefix","path","prefix","pathname","parsePath","startsWith"],"mappings":";;;+BASgBA,iBAAAA;;;eAAAA;;;2BATU;AASnB,SAASA,cAAcC,IAAY,EAAEC,MAAc;IACxD,IAAI,OAAOD,SAAS,UAAU;QAC5B,OAAO;IACT;IAEA,MAAM,EAAEE,QAAQ,EAAE,GAAGC,CAAAA,GAAAA,WAAAA,SAAS,EAACH;IAC/B,OAAOE,aAAaD,UAAUC,SAASE,UAAU,CAACH,SAAS;AAC7D","ignoreList":[0]}},
{"offset": {"line": 4979, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/path-match.ts"],"sourcesContent":["import type { Key } from 'next/dist/compiled/path-to-regexp'\nimport { regexpToFunction } from 'next/dist/compiled/path-to-regexp'\nimport { pathToRegexp } from 'next/dist/compiled/path-to-regexp'\n\ninterface Options {\n /**\n * A transformer function that will be applied to the regexp generated\n * from the provided path and path-to-regexp.\n */\n regexModifier?: (regex: string) => string\n /**\n * When true the function will remove all unnamed parameters\n * from the matched parameters.\n */\n removeUnnamedParams?: boolean\n /**\n * When true the regexp won't allow an optional trailing delimiter\n * to match.\n */\n strict?: boolean\n\n /**\n * When true the matcher will be case-sensitive, defaults to false\n */\n sensitive?: boolean\n}\n\nexport type PatchMatcher = (\n pathname: string,\n params?: Record<string, any>\n) => Record<string, any> | false\n\n/**\n * Generates a path matcher function for a given path and options based on\n * path-to-regexp. By default the match will be case insensitive, non strict\n * and delimited by `/`.\n */\nexport function getPathMatch(path: string, options?: Options): PatchMatcher {\n const keys: Key[] = []\n const regexp = pathToRegexp(path, keys, {\n delimiter: '/',\n sensitive:\n typeof options?.sensitive === 'boolean' ? options.sensitive : false,\n strict: options?.strict,\n })\n\n const matcher = regexpToFunction<Record<string, any>>(\n options?.regexModifier\n ? new RegExp(options.regexModifier(regexp.source), regexp.flags)\n : regexp,\n keys\n )\n\n /**\n * A matcher function that will check if a given pathname matches the path\n * given in the builder function. When the path does not match it will return\n * `false` but if it does it will return an object with the matched params\n * merged with the params provided in the second argument.\n */\n return (pathname, params) => {\n // If no pathname is provided it's not a match.\n if (typeof pathname !== 'string') return false\n\n const match = matcher(pathname)\n\n // If the path did not match `false` will be returned.\n if (!match) return false\n\n /**\n * If unnamed params are not allowed they must be removed from\n * the matched parameters. path-to-regexp uses \"string\" for named and\n * \"number\" for unnamed parameters.\n */\n if (options?.removeUnnamedParams) {\n for (const key of keys) {\n if (typeof key.name === 'number') {\n delete match.params[key.name]\n }\n }\n }\n\n return { ...params, ...match.params }\n }\n}\n"],"names":["getPathMatch","path","options","keys","regexp","pathToRegexp","delimiter","sensitive","strict","matcher","regexpToFunction","regexModifier","RegExp","source","flags","pathname","params","match","removeUnnamedParams","key","name"],"mappings":";;;+BAqCgBA,gBAAAA;;;eAAAA;;;8BApCiB;AAoC1B,SAASA,aAAaC,IAAY,EAAEC,OAAiB;IAC1D,MAAMC,OAAc,EAAE;IACtB,MAAMC,SAASC,CAAAA,GAAAA,cAAAA,YAAY,EAACJ,MAAME,MAAM;QACtCG,WAAW;QACXC,WACE,OAAOL,SAASK,cAAc,YAAYL,QAAQK,SAAS,GAAG;QAChEC,QAAQN,SAASM;IACnB;IAEA,MAAMC,UAAUC,CAAAA,GAAAA,cAAAA,gBAAgB,EAC9BR,SAASS,gBACL,IAAIC,OAAOV,QAAQS,aAAa,CAACP,OAAOS,MAAM,GAAGT,OAAOU,KAAK,IAC7DV,QACJD;IAGF;;;;;GAKC,GACD,OAAO,CAACY,UAAUC;QAChB,+CAA+C;QAC/C,IAAI,OAAOD,aAAa,UAAU,OAAO;QAEzC,MAAME,QAAQR,QAAQM;QAEtB,sDAAsD;QACtD,IAAI,CAACE,OAAO,OAAO;QAEnB;;;;KAIC,GACD,IAAIf,SAASgB,qBAAqB;YAChC,KAAK,MAAMC,OAAOhB,KAAM;gBACtB,IAAI,OAAOgB,IAAIC,IAAI,KAAK,UAAU;oBAChC,OAAOH,MAAMD,MAAM,CAACG,IAAIC,IAAI,CAAC;gBAC/B;YACF;QACF;QAEA,OAAO;YAAE,GAAGJ,MAAM;YAAE,GAAGC,MAAMD,MAAM;QAAC;IACtC;AACF","ignoreList":[0]}},
{"offset": {"line": 5029, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/prepare-destination.ts"],"sourcesContent":["import type { IncomingMessage } from 'http'\nimport type { Key } from 'next/dist/compiled/path-to-regexp'\nimport type { NextParsedUrlQuery } from '../../../../server/request-meta'\nimport type { RouteHas } from '../../../../lib/load-custom-routes'\nimport type { BaseNextRequest } from '../../../../server/base-http'\n\nimport { escapeStringRegexp } from '../../escape-regexp'\nimport { parseUrl, type ParsedUrl } from './parse-url'\nimport {\n INTERCEPTION_ROUTE_MARKERS,\n isInterceptionRouteAppPath,\n} from './interception-routes'\nimport { getCookieParser } from '../../../../server/api-utils/get-cookie-parser'\nimport type { Params } from '../../../../server/request/params'\nimport { safePathToRegexp, safeCompile } from './route-match-utils'\n\n/**\n * Ensure only a-zA-Z are used for param names for proper interpolating\n * with path-to-regexp\n */\nfunction getSafeParamName(paramName: string) {\n let newParamName = ''\n\n for (let i = 0; i < paramName.length; i++) {\n const charCode = paramName.charCodeAt(i)\n\n if (\n (charCode > 64 && charCode < 91) || // A-Z\n (charCode > 96 && charCode < 123) // a-z\n ) {\n newParamName += paramName[i]\n }\n }\n return newParamName\n}\n\nfunction escapeSegment(str: string, segmentName: string) {\n return str.replace(\n new RegExp(`:${escapeStringRegexp(segmentName)}`, 'g'),\n `__ESC_COLON_${segmentName}`\n )\n}\n\nfunction unescapeSegments(str: string) {\n return str.replace(/__ESC_COLON_/gi, ':')\n}\n\nexport function matchHas(\n req: BaseNextRequest | IncomingMessage,\n query: Params,\n has: RouteHas[] = [],\n missing: RouteHas[] = []\n): false | Params {\n const params: Params = {}\n\n const hasMatch = (hasItem: RouteHas) => {\n let value\n let key = hasItem.key\n\n switch (hasItem.type) {\n case 'header': {\n key = key!.toLowerCase()\n value = req.headers[key] as string\n break\n }\n case 'cookie': {\n if ('cookies' in req) {\n value = req.cookies[hasItem.key]\n } else {\n const cookies = getCookieParser(req.headers)()\n value = cookies[hasItem.key]\n }\n\n break\n }\n case 'query': {\n value = query[key!]\n break\n }\n case 'host': {\n const { host } = req?.headers || {}\n // remove port from host if present\n const hostname = host?.split(':', 1)[0].toLowerCase()\n value = hostname\n break\n }\n default: {\n break\n }\n }\n\n if (!hasItem.value && value) {\n params[getSafeParamName(key!)] = value\n return true\n } else if (value) {\n const matcher = new RegExp(`^${hasItem.value}$`)\n const matches = Array.isArray(value)\n ? value.slice(-1)[0].match(matcher)\n : value.match(matcher)\n\n if (matches) {\n if (Array.isArray(matches)) {\n if (matches.groups) {\n Object.keys(matches.groups).forEach((groupKey) => {\n params[groupKey] = matches.groups![groupKey]\n })\n } else if (hasItem.type === 'host' && matches[0]) {\n params.host = matches[0]\n }\n }\n return true\n }\n }\n return false\n }\n\n const allMatch =\n has.every((item) => hasMatch(item)) &&\n !missing.some((item) => hasMatch(item))\n\n if (allMatch) {\n return params\n }\n return false\n}\n\nexport function compileNonPath(value: string, params: Params): string {\n if (!value.includes(':')) {\n return value\n }\n\n for (const key of Object.keys(params)) {\n if (value.includes(`:${key}`)) {\n value = value\n .replace(\n new RegExp(`:${key}\\\\*`, 'g'),\n `:${key}--ESCAPED_PARAM_ASTERISKS`\n )\n .replace(\n new RegExp(`:${key}\\\\?`, 'g'),\n `:${key}--ESCAPED_PARAM_QUESTION`\n )\n .replace(new RegExp(`:${key}\\\\+`, 'g'), `:${key}--ESCAPED_PARAM_PLUS`)\n .replace(\n new RegExp(`:${key}(?!\\\\w)`, 'g'),\n `--ESCAPED_PARAM_COLON${key}`\n )\n }\n }\n value = value\n .replace(/(:|\\*|\\?|\\+|\\(|\\)|\\{|\\})/g, '\\\\$1')\n .replace(/--ESCAPED_PARAM_PLUS/g, '+')\n .replace(/--ESCAPED_PARAM_COLON/g, ':')\n .replace(/--ESCAPED_PARAM_QUESTION/g, '?')\n .replace(/--ESCAPED_PARAM_ASTERISKS/g, '*')\n\n // the value needs to start with a forward-slash to be compiled\n // correctly\n return safeCompile(`/${value}`, { validate: false })(params).slice(1)\n}\n\nexport function parseDestination(args: {\n destination: string\n params: Readonly<Params>\n query: Readonly<NextParsedUrlQuery>\n}): ParsedUrl {\n let escaped = args.destination\n for (const param of Object.keys({ ...args.paramLine truncated
{"offset": {"line": 5322, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/querystring.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\n\nexport function searchParamsToUrlQuery(\n searchParams: URLSearchParams\n): ParsedUrlQuery {\n const query: ParsedUrlQuery = {}\n for (const [key, value] of searchParams.entries()) {\n const existing = query[key]\n if (typeof existing === 'undefined') {\n query[key] = value\n } else if (Array.isArray(existing)) {\n existing.push(value)\n } else {\n query[key] = [existing, value]\n }\n }\n return query\n}\n\nfunction stringifyUrlQueryParam(param: unknown): string {\n if (typeof param === 'string') {\n return param\n }\n\n if (\n (typeof param === 'number' && !isNaN(param)) ||\n typeof param === 'boolean'\n ) {\n return String(param)\n } else {\n return ''\n }\n}\n\nexport function urlQueryToSearchParams(query: ParsedUrlQuery): URLSearchParams {\n const searchParams = new URLSearchParams()\n for (const [key, value] of Object.entries(query)) {\n if (Array.isArray(value)) {\n for (const item of value) {\n searchParams.append(key, stringifyUrlQueryParam(item))\n }\n } else {\n searchParams.set(key, stringifyUrlQueryParam(value))\n }\n }\n return searchParams\n}\n\nexport function assign(\n target: URLSearchParams,\n ...searchParamsList: URLSearchParams[]\n): URLSearchParams {\n for (const searchParams of searchParamsList) {\n for (const key of searchParams.keys()) {\n target.delete(key)\n }\n\n for (const [key, value] of searchParams.entries()) {\n target.append(key, value)\n }\n }\n\n return target\n}\n"],"names":["assign","searchParamsToUrlQuery","urlQueryToSearchParams","searchParams","query","key","value","entries","existing","Array","isArray","push","stringifyUrlQueryParam","param","isNaN","String","URLSearchParams","Object","item","append","set","target","searchParamsList","keys","delete"],"mappings":";;;;;;;;;;;;;;;IAgDgBA,MAAM,EAAA;eAANA;;IA9CAC,sBAAsB,EAAA;eAAtBA;;IAgCAC,sBAAsB,EAAA;eAAtBA;;;AAhCT,SAASD,uBACdE,YAA6B;IAE7B,MAAMC,QAAwB,CAAC;IAC/B,KAAK,MAAM,CAACC,KAAKC,MAAM,IAAIH,aAAaI,OAAO,GAAI;QACjD,MAAMC,WAAWJ,KAAK,CAACC,IAAI;QAC3B,IAAI,OAAOG,aAAa,aAAa;YACnCJ,KAAK,CAACC,IAAI,GAAGC;QACf,OAAO,IAAIG,MAAMC,OAAO,CAACF,WAAW;YAClCA,SAASG,IAAI,CAACL;QAChB,OAAO;YACLF,KAAK,CAACC,IAAI,GAAG;gBAACG;gBAAUF;aAAM;QAChC;IACF;IACA,OAAOF;AACT;AAEA,SAASQ,uBAAuBC,KAAc;IAC5C,IAAI,OAAOA,UAAU,UAAU;QAC7B,OAAOA;IACT;IAEA,IACG,OAAOA,UAAU,YAAY,CAACC,MAAMD,UACrC,OAAOA,UAAU,WACjB;QACA,OAAOE,OAAOF;IAChB,OAAO;QACL,OAAO;IACT;AACF;AAEO,SAASX,uBAAuBE,KAAqB;IAC1D,MAAMD,eAAe,IAAIa;IACzB,KAAK,MAAM,CAACX,KAAKC,MAAM,IAAIW,OAAOV,OAAO,CAACH,OAAQ;QAChD,IAAIK,MAAMC,OAAO,CAACJ,QAAQ;YACxB,KAAK,MAAMY,QAAQZ,MAAO;gBACxBH,aAAagB,MAAM,CAACd,KAAKO,uBAAuBM;YAClD;QACF,OAAO;YACLf,aAAaiB,GAAG,CAACf,KAAKO,uBAAuBN;QAC/C;IACF;IACA,OAAOH;AACT;AAEO,SAASH,OACdqB,MAAuB,EACvB,GAAGC,gBAAmC;IAEtC,KAAK,MAAMnB,gBAAgBmB,iBAAkB;QAC3C,KAAK,MAAMjB,OAAOF,aAAaoB,IAAI,GAAI;YACrCF,OAAOG,MAAM,CAACnB;QAChB;QAEA,KAAK,MAAM,CAACA,KAAKC,MAAM,IAAIH,aAAaI,OAAO,GAAI;YACjDc,OAAOF,MAAM,CAACd,KAAKC;QACrB;IACF;IAEA,OAAOe;AACT","ignoreList":[0]}},
{"offset": {"line": 5402, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/remove-path-prefix.ts"],"sourcesContent":["import { pathHasPrefix } from './path-has-prefix'\n\n/**\n * Given a path and a prefix it will remove the prefix when it exists in the\n * given path. It ensures it matches exactly without containing extra chars\n * and if the prefix is not there it will be noop.\n *\n * @param path The path to remove the prefix from.\n * @param prefix The prefix to be removed.\n */\nexport function removePathPrefix(path: string, prefix: string): string {\n // If the path doesn't start with the prefix we can return it as is. This\n // protects us from situations where the prefix is a substring of the path\n // prefix such as:\n //\n // For prefix: /blog\n //\n // /blog -> true\n // /blog/ -> true\n // /blog/1 -> true\n // /blogging -> false\n // /blogging/ -> false\n // /blogging/1 -> false\n if (!pathHasPrefix(path, prefix)) {\n return path\n }\n\n // Remove the prefix from the path via slicing.\n const withoutPrefix = path.slice(prefix.length)\n\n // If the path without the prefix starts with a `/` we can return it as is.\n if (withoutPrefix.startsWith('/')) {\n return withoutPrefix\n }\n\n // If the path without the prefix doesn't start with a `/` we need to add it\n // back to the path to make sure it's a valid path.\n return `/${withoutPrefix}`\n}\n"],"names":["removePathPrefix","path","prefix","pathHasPrefix","withoutPrefix","slice","length","startsWith"],"mappings":";;;+BAUgBA,oBAAAA;;;eAAAA;;;+BAVc;AAUvB,SAASA,iBAAiBC,IAAY,EAAEC,MAAc;IAC3D,yEAAyE;IACzE,0EAA0E;IAC1E,kBAAkB;IAClB,EAAE;IACF,oBAAoB;IACpB,EAAE;IACF,kBAAkB;IAClB,mBAAmB;IACnB,oBAAoB;IACpB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,IAAI,CAACC,CAAAA,GAAAA,eAAAA,aAAa,EAACF,MAAMC,SAAS;QAChC,OAAOD;IACT;IAEA,+CAA+C;IAC/C,MAAMG,gBAAgBH,KAAKI,KAAK,CAACH,OAAOI,MAAM;IAE9C,2EAA2E;IAC3E,IAAIF,cAAcG,UAAU,CAAC,MAAM;QACjC,OAAOH;IACT;IAEA,4EAA4E;IAC5E,mDAAmD;IACnD,OAAO,CAAC,CAAC,EAAEA,eAAe;AAC5B","ignoreList":[0]}},
{"offset": {"line": 5442, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/remove-trailing-slash.ts"],"sourcesContent":["/**\n * Removes the trailing slash for a given route or page path. Examples:\n * - `/foo/bar/` -> `/foo/bar`\n * - `/foo/bar` -> `/foo/bar`\n *\n * Uses charCodeAt (47 === '/') instead of regex to avoid the overhead of\n * compiling and executing a RegExp on every call (~3-5x faster).\n */\nexport function removeTrailingSlash(route: string) {\n return route.charCodeAt(route.length - 1) === 47 && route.length > 1\n ? route.slice(0, -1)\n : route\n}\n"],"names":["removeTrailingSlash","route","charCodeAt","length","slice"],"mappings":"AAAA;;;;;;;CAOC;;;+BACeA,uBAAAA;;;eAAAA;;;AAAT,SAASA,oBAAoBC,KAAa;IAC/C,OAAOA,MAAMC,UAAU,CAACD,MAAME,MAAM,GAAG,OAAO,MAAMF,MAAME,MAAM,GAAG,IAC/DF,MAAMG,KAAK,CAAC,GAAG,CAAC,KAChBH;AACN","ignoreList":[0]}},
{"offset": {"line": 5465, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/resolve-param-value.ts"],"sourcesContent":["import type { Params } from '../../../../server/request/params'\nimport type { DynamicParamTypes } from '../../app-router-types'\nimport { InvariantError } from '../../invariant-error'\nimport type {\n NormalizedAppRoute,\n NormalizedAppRouteSegment,\n} from '../routes/app'\nimport { interceptionPrefixFromParamType } from './interception-prefix-from-param-type'\n\n/**\n * Extracts the param value from a path segment, handling interception markers\n * based on the expected param type.\n *\n * @param pathSegment - The path segment to extract the value from\n * @param params - The current params object for resolving dynamic param references\n * @param paramType - The expected param type which may include interception marker info\n * @returns The extracted param value\n */\nfunction getParamValueFromSegment(\n pathSegment: NormalizedAppRouteSegment,\n params: Params,\n paramType: DynamicParamTypes\n): string {\n // If the segment is dynamic, resolve it from the params object\n if (pathSegment.type === 'dynamic') {\n return params[pathSegment.param.paramName] as string\n }\n\n // If the paramType indicates this is an intercepted param, strip the marker\n // that matches the interception marker in the param type\n const interceptionPrefix = interceptionPrefixFromParamType(paramType)\n if (interceptionPrefix === pathSegment.interceptionMarker) {\n return pathSegment.name.replace(pathSegment.interceptionMarker, '')\n }\n\n // For static segments, use the name\n return pathSegment.name\n}\n\n/**\n * Resolves a route parameter value from the route segments at the given depth.\n * This shared logic is used by both extractPathnameRouteParamSegmentsFromLoaderTree\n * and resolveRouteParamsFromTree.\n *\n * @param paramName - The parameter name to resolve\n * @param paramType - The parameter type (dynamic, catchall, etc.)\n * @param depth - The current depth in the route tree\n * @param route - The normalized route containing segments\n * @param params - The current params object (used to resolve embedded param references)\n * @param options - Configuration options\n * @returns The resolved parameter value, or undefined if it cannot be resolved\n */\nexport function resolveParamValue(\n paramName: string,\n paramType: DynamicParamTypes,\n depth: number,\n route: NormalizedAppRoute,\n params: Params\n): string | string[] | undefined {\n switch (paramType) {\n case 'catchall':\n case 'optional-catchall':\n case 'catchall-intercepted-(..)(..)':\n case 'catchall-intercepted-(.)':\n case 'catchall-intercepted-(..)':\n case 'catchall-intercepted-(...)':\n // For catchall routes, derive from pathname using depth to determine\n // which segments to use\n const processedSegments: string[] = []\n\n // Process segments to handle any embedded dynamic params\n for (let index = depth; index < route.segments.length; index++) {\n const pathSegment = route.segments[index]\n\n if (pathSegment.type === 'static') {\n let value = pathSegment.name\n\n // For intercepted catch-all params, strip the marker from the first segment\n const interceptionPrefix = interceptionPrefixFromParamType(paramType)\n if (\n interceptionPrefix &&\n index === depth &&\n interceptionPrefix === pathSegment.interceptionMarker\n ) {\n // Strip the interception marker from the value\n value = value.replace(pathSegment.interceptionMarker, '')\n }\n\n processedSegments.push(value)\n } else {\n // If the segment is a param placeholder, check if we have its value\n if (!params.hasOwnProperty(pathSegment.param.paramName)) {\n // If the segment is an optional catchall, we can break out of the\n // loop because it's optional!\n if (pathSegment.param.paramType === 'optional-catchall') {\n break\n }\n\n // Unknown param placeholder in pathname - can't derive full value\n return undefined\n }\n\n // If the segment matches a param, use the param value\n // We don't encode values here as that's handled during retrieval.\n const paramValue = params[pathSegment.param.paramName]\n if (Array.isArray(paramValue)) {\n processedSegments.push(...paramValue)\n } else {\n processedSegments.push(paramValue as string)\n }\n }\n }\n\n if (processedSegments.length > 0) {\n return processedSegments\n } else if (paramType === 'optional-catchall') {\n return undefined\n } else {\n // We shouldn't be able to match a catchall segment without any path\n // segLine truncated
{"offset": {"line": 5582, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/resolve-rewrites.ts"],"sourcesContent":["import type { ParsedUrlQuery } from 'querystring'\nimport type { Rewrite } from '../../../../lib/load-custom-routes'\nimport { getPathMatch } from './path-match'\nimport { matchHas, prepareDestination } from './prepare-destination'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { normalizeLocalePath } from '../../i18n/normalize-locale-path'\nimport { removeBasePath } from '../../../../client/remove-base-path'\nimport { parseRelativeUrl, type ParsedRelativeUrl } from './parse-relative-url'\nimport type { ParsedUrl } from './parse-url'\n\ntype ParsedAs = ParsedRelativeUrl | ParsedUrl\nexport default function resolveRewrites(\n asPath: string,\n pages: string[],\n rewrites: {\n beforeFiles: Rewrite[]\n afterFiles: Rewrite[]\n fallback: Rewrite[]\n },\n query: ParsedUrlQuery,\n resolveHref: (path: string) => string,\n locales?: readonly string[]\n): {\n matchedPage: boolean\n parsedAs: ParsedAs\n asPath: string\n resolvedHref?: string\n externalDest?: boolean\n} {\n let matchedPage = false\n let externalDest = false\n let parsedAs: ParsedAs = parseRelativeUrl(asPath)\n let fsPathname = removeTrailingSlash(\n normalizeLocalePath(removeBasePath(parsedAs.pathname), locales).pathname\n )\n let resolvedHref\n\n const handleRewrite = (rewrite: Rewrite) => {\n const matcher = getPathMatch(\n rewrite.source + (process.env.__NEXT_TRAILING_SLASH ? '(/)?' : ''),\n {\n removeUnnamedParams: true,\n strict: true,\n }\n )\n\n let params = matcher(parsedAs.pathname)\n\n if ((rewrite.has || rewrite.missing) && params) {\n const hasParams = matchHas(\n {\n headers: {\n host: document.location.hostname,\n 'user-agent': navigator.userAgent,\n },\n cookies: document.cookie\n .split('; ')\n .reduce<Record<string, string>>((acc, item) => {\n const [key, ...value] = item.split('=')\n acc[key] = value.join('=')\n return acc\n }, {}),\n } as any,\n parsedAs.query,\n rewrite.has,\n rewrite.missing\n )\n\n if (hasParams) {\n Object.assign(params, hasParams)\n } else {\n params = false\n }\n }\n\n if (params) {\n if (!rewrite.destination) {\n // this is a proxied rewrite which isn't handled on the client\n externalDest = true\n return true\n }\n const destRes = prepareDestination({\n appendParamsToQuery: true,\n destination: rewrite.destination,\n params: params,\n query: query,\n })\n parsedAs = destRes.parsedDestination\n asPath = destRes.newUrl\n Object.assign(query, destRes.parsedDestination.query)\n\n fsPathname = removeTrailingSlash(\n normalizeLocalePath(removeBasePath(asPath), locales).pathname\n )\n\n if (pages.includes(fsPathname)) {\n // check if we now match a page as this means we are done\n // resolving the rewrites\n matchedPage = true\n resolvedHref = fsPathname\n return true\n }\n\n // check if we match a dynamic-route, if so we break the rewrites chain\n resolvedHref = resolveHref(fsPathname)\n\n if (resolvedHref !== asPath && pages.includes(resolvedHref)) {\n matchedPage = true\n return true\n }\n }\n }\n let finished = false\n\n for (let i = 0; i < rewrites.beforeFiles.length; i++) {\n // we don't end after match in beforeFiles to allow\n // continuing through all beforeFiles rewrites\n handleRewrite(rewrites.beforeFiles[i])\n }\n matchedPage = pages.includes(fsPathname)\n\n if (!matchedPage) {\n if (!finished) {\n for (let i = 0; i < rewrites.afterFiles.length; i++) {\n if (handleRewrite(rewrites.afterFiles[i])) {\n finished = true\n break\n }\n }\n }\n\n // check dynamic route before processing fallback rewrites\n if (!finished) {\n resolvedHref = resolveHref(fsPathname)\n matchedPage = pages.includes(resolvedHref)\n finished = matchedPage\n }\n\n if (!finished) {\n for (let i = 0; i < rewrites.fallback.length; i++) {\n if (handleRewrite(rewrites.fallback[i])) {\n finished = true\n break\n }\n }\n }\n }\n\n return {\n asPath,\n parsedAs,\n matchedPage,\n resolvedHref,\n externalDest,\n }\n}\n"],"names":["resolveRewrites","asPath","pages","rewrites","query","resolveHref","locales","matchedPage","externalDest","parsedAs","parseRelativeUrl","fsPathname","removeTrailingSlash","normalizeLocalePath","removeBasePath","pathname","resolvedHref","handleRewrite","rewrite","matcher","getPathMatch","source","proLine truncated
{"offset": {"line": 5703, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-match-utils.ts"],"sourcesContent":["/**\n * Client-safe utilities for route matching that don't import server-side\n * utilities to avoid bundling issues with Turbopack\n */\n\nimport type {\n Key,\n TokensToRegexpOptions,\n ParseOptions,\n TokensToFunctionOptions,\n} from 'next/dist/compiled/path-to-regexp'\nimport {\n pathToRegexp,\n compile,\n regexpToFunction,\n} from 'next/dist/compiled/path-to-regexp'\nimport {\n hasAdjacentParameterIssues,\n normalizeAdjacentParameters,\n stripParameterSeparators,\n stripNormalizedSeparators,\n} from '../../../../lib/route-pattern-normalizer'\n\n/**\n * Client-safe wrapper around pathToRegexp that handles path-to-regexp 6.3.0+ validation errors.\n * This includes both \"Can not repeat without prefix/suffix\" and \"Must have text between parameters\" errors.\n */\nexport function safePathToRegexp(\n route: string | RegExp | Array<string | RegExp>,\n keys?: Key[],\n options?: TokensToRegexpOptions & ParseOptions\n): RegExp {\n if (typeof route !== 'string') {\n return pathToRegexp(route, keys, options)\n }\n\n // Check if normalization is needed and cache the result\n const needsNormalization = hasAdjacentParameterIssues(route)\n const routeToUse = needsNormalization\n ? normalizeAdjacentParameters(route)\n : route\n\n try {\n return pathToRegexp(routeToUse, keys, options)\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = normalizeAdjacentParameters(route)\n return pathToRegexp(normalizedRoute, keys, options)\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error\n }\n }\n throw error\n }\n}\n\n/**\n * Client-safe wrapper around compile that handles path-to-regexp 6.3.0+ validation errors.\n * No server-side error reporting to avoid bundling issues.\n * When normalization is applied, the returned compiler function automatically strips\n * the internal separator from the output URL.\n */\nexport function safeCompile(\n route: string,\n options?: TokensToFunctionOptions & ParseOptions\n) {\n // Check if normalization is needed and cache the result\n const needsNormalization = hasAdjacentParameterIssues(route)\n const routeToUse = needsNormalization\n ? normalizeAdjacentParameters(route)\n : route\n\n try {\n const compiler = compile(routeToUse, options)\n\n // If we normalized the route, wrap the compiler to strip separators from output\n // The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy\n // path-to-regexp validation, but we don't want it in the final compiled URL\n if (needsNormalization) {\n return (params: any) => {\n return stripNormalizedSeparators(compiler(params))\n }\n }\n\n return compiler\n } catch (error) {\n // Only try normalization if we haven't already normalized\n if (!needsNormalization) {\n try {\n const normalizedRoute = normalizeAdjacentParameters(route)\n const compiler = compile(normalizedRoute, options)\n\n // Wrap the compiler to strip separators from output\n return (params: any) => {\n return stripNormalizedSeparators(compiler(params))\n }\n } catch (retryError) {\n // If that doesn't work, fall back to original error\n throw error\n }\n }\n throw error\n }\n}\n\n/**\n * Client-safe wrapper around regexpToFunction that automatically cleans parameters.\n */\nexport function safeRegexpToFunction<\n T extends Record<string, any> = Record<string, any>,\n>(regexp: RegExp, keys?: Key[]): (pathname: string) => { params: T } | false {\n const originalMatcher = regexpToFunction<T>(regexp, keys || [])\n\n return (pathname: string) => {\n const result = originalMatcher(pathname)\n if (!result) return false\n\n // Clean parameters before returning\n return {\n ...result,\n params: stripParameterSeparators(result.params as any) as T,\n }\n }\n}\n\n/**\n * Safe wrapper for route matcher functions that automatically cleans parameters.\n * This is client-safe and doesn't import path-to-regexp.\n */\nexport function safeRouteMatcher<T extends Record<string, any>>(\n matcherFn: (pathname: string) => false | T\n): (pathname: string) => false | T {\n return (pathname: string) => {\n const result = matcherFn(pathname)\n if (!result) return false\n\n // Clean parameters before returning\n return stripParameterSeparators(result) as T\n }\n}\n"],"names":["safeCompile","safePathToRegexp","safeRegexpToFunction","safeRouteMatcher","route","keys","options","pathToRegexp","needsNormalization","hasAdjacentParameterIssues","routeToUse","normalizeAdjacentParameters","error","normaliLine truncated
{"offset": {"line": 5817, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-matcher.ts"],"sourcesContent":["import type { Group } from './route-regex'\nimport { DecodeError } from '../../utils'\nimport type { Params } from '../../../../server/request/params'\nimport { safeRouteMatcher } from './route-match-utils'\n\nexport interface RouteMatchFn {\n (pathname: string): false | Params\n}\n\ntype RouteMatcherOptions = {\n // We only use the exec method of the RegExp object. This helps us avoid using\n // type assertions that the passed in properties are of the correct type.\n re: Pick<RegExp, 'exec'>\n groups: Record<string, Group>\n}\n\nexport function getRouteMatcher({\n re,\n groups,\n}: RouteMatcherOptions): RouteMatchFn {\n const rawMatcher = (pathname: string) => {\n const routeMatch = re.exec(pathname)\n if (!routeMatch) return false\n\n const decode = (param: string) => {\n try {\n return decodeURIComponent(param)\n } catch {\n throw new DecodeError('failed to decode param')\n }\n }\n\n const params: Params = {}\n for (const [key, group] of Object.entries(groups)) {\n const match = routeMatch[group.pos]\n if (match !== undefined) {\n if (group.repeat) {\n params[key] = match.split('/').map((entry) => decode(entry))\n } else {\n params[key] = decode(match)\n }\n }\n }\n\n return params\n }\n\n // Wrap with safe matcher to handle parameter cleaning\n return safeRouteMatcher(rawMatcher)\n}\n"],"names":["getRouteMatcher","re","groups","rawMatcher","pathname","routeMatch","exec","decode","param","decodeURIComponent","DecodeError","params","key","group","Object","entries","match","pos","undefined","repeat","split","map","entry","safeRouteMatcher"],"mappings":";;;+BAgBgBA,mBAAAA;;;eAAAA;;;uBAfY;iCAEK;AAa1B,SAASA,gBAAgB,EAC9BC,EAAE,EACFC,MAAM,EACc;IACpB,MAAMC,aAAa,CAACC;QAClB,MAAMC,aAAaJ,GAAGK,IAAI,CAACF;QAC3B,IAAI,CAACC,YAAY,OAAO;QAExB,MAAME,SAAS,CAACC;YACd,IAAI;gBACF,OAAOC,mBAAmBD;YAC5B,EAAE,OAAM;gBACN,MAAM,OAAA,cAAyC,CAAzC,IAAIE,OAAAA,WAAW,CAAC,2BAAhB,qBAAA;2BAAA;gCAAA;kCAAA;gBAAwC;YAChD;QACF;QAEA,MAAMC,SAAiB,CAAC;QACxB,KAAK,MAAM,CAACC,KAAKC,MAAM,IAAIC,OAAOC,OAAO,CAACb,QAAS;YACjD,MAAMc,QAAQX,UAAU,CAACQ,MAAMI,GAAG,CAAC;YACnC,IAAID,UAAUE,WAAW;gBACvB,IAAIL,MAAMM,MAAM,EAAE;oBAChBR,MAAM,CAACC,IAAI,GAAGI,MAAMI,KAAK,CAAC,KAAKC,GAAG,CAAC,CAACC,QAAUf,OAAOe;gBACvD,OAAO;oBACLX,MAAM,CAACC,IAAI,GAAGL,OAAOS;gBACvB;YACF;QACF;QAEA,OAAOL;IACT;IAEA,sDAAsD;IACtD,OAAOY,CAAAA,GAAAA,iBAAAA,gBAAgB,EAACpB;AAC1B","ignoreList":[0]}},
{"offset": {"line": 5863, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/route-regex.ts"],"sourcesContent":["import {\n NEXT_INTERCEPTION_MARKER_PREFIX,\n NEXT_QUERY_PARAM_PREFIX,\n} from '../../../../lib/constants'\nimport { INTERCEPTION_ROUTE_MARKERS } from './interception-routes'\nimport { escapeStringRegexp } from '../../escape-regexp'\nimport { removeTrailingSlash } from './remove-trailing-slash'\nimport { PARAMETER_PATTERN, parseMatchedParameter } from './get-dynamic-param'\n\nexport interface Group {\n pos: number\n repeat: boolean\n optional: boolean\n}\n\nexport interface RouteRegex {\n groups: { [groupName: string]: Group }\n re: RegExp\n}\n\nexport type RegexReference = {\n names: Record<string, string>\n intercepted: Record<string, string>\n}\n\ntype GetNamedRouteRegexOptions = {\n /**\n * Whether to prefix the route keys with the NEXT_INTERCEPTION_MARKER_PREFIX\n * or NEXT_QUERY_PARAM_PREFIX. This is only relevant when creating the\n * routes-manifest during the build.\n */\n prefixRouteKeys: boolean\n\n /**\n * Whether to include the suffix in the route regex. This means that when you\n * have something like `/[...slug].json` the `.json` part will be included\n * in the regex, yielding `/(.*).json` as the regex.\n */\n includeSuffix?: boolean\n\n /**\n * Whether to include the prefix in the route regex. This means that when you\n * have something like `/[...slug].json` the `/` part will be included\n * in the regex, yielding `^/(.*).json$` as the regex.\n *\n * Note that interception markers will already be included without the need\n */\n includePrefix?: boolean\n\n /**\n * Whether to exclude the optional trailing slash from the route regex.\n */\n excludeOptionalTrailingSlash?: boolean\n\n /**\n * Whether to backtrack duplicate keys. This is only relevant when creating\n * the routes-manifest during the build.\n */\n backreferenceDuplicateKeys?: boolean\n\n /**\n * If provided, this will be used as the reference for the dynamic parameter\n * keys instead of generating them in context. This is currently only used for\n * interception routes.\n */\n reference?: RegexReference\n}\n\ntype GetRouteRegexOptions = {\n /**\n * Whether to include extra parts in the route regex. This means that when you\n * have something like `/[...slug].json` the `.json` part will be included\n * in the regex, yielding `/(.*).json` as the regex.\n */\n includeSuffix?: boolean\n\n /**\n * Whether to include the prefix in the route regex. This means that when you\n * have something like `/[...slug].json` the `/` part will be included\n * in the regex, yielding `^/(.*).json$` as the regex.\n *\n * Note that interception markers will already be included without the need\n * of adding this option.\n */\n includePrefix?: boolean\n\n /**\n * Whether to exclude the optional trailing slash from the route regex.\n */\n excludeOptionalTrailingSlash?: boolean\n}\n\nfunction getParametrizedRoute(\n route: string,\n includeSuffix: boolean,\n includePrefix: boolean\n) {\n const groups: { [groupName: string]: Group } = {}\n let groupIndex = 1\n\n const segments: string[] = []\n for (const segment of removeTrailingSlash(route).slice(1).split('/')) {\n const markerMatch = INTERCEPTION_ROUTE_MARKERS.find((m) =>\n segment.startsWith(m)\n )\n const paramMatches = segment.match(PARAMETER_PATTERN) // Check for parameters\n\n if (markerMatch && paramMatches && paramMatches[2]) {\n const { key, optional, repeat } = parseMatchedParameter(paramMatches[2])\n groups[key] = { pos: groupIndex++, repeat, optional }\n segments.push(`/${escapeStringRegexp(markerMatch)}([^/]+?)`)\n } else if (paramMatches && paramMatches[2]) {\n const { key, repeat, optional } = parseMatchedParameter(paramMatches[2])\n groups[key] = { pos: groupIndex++, repeat, optional }\n\n if (includePrefix && paramMatches[1]) {\n segments.push(`/${escapeStringRegexp(paramMatches[1])}`)\n }\n\n let s = repeat ? (optional ? '(?:/(.+?))?' : '/(.+?)') : '/([^/]+?)'\n\n // Remove the leading slash if includePrefix already added it.\n if (includePrefix && paramMatches[1]) {\n s = s.substring(1)\n }\n\n segments.push(s)\n } else {\n segments.push(`/${escapeStringRegexp(segment)}`)\n }\n\n // If there's a suffix, add it to the segments if it's enabled.\n if (includeSuffix && paramMatches && paramMatches[3]) {\n segments.push(escapeStringRegexp(paramMatches[3]))\n }\n }\n\n return {\n parameterizedRoute: segments.join(''),\n groups,\n }\n}\n\n/**\n * From a normalized route this function generates a regular expression and\n * a corresponding groups object intended to be used to store matching groups\n * from the regular expression.\n */\nexport function getRouteRegex(\n nLine truncated
{"offset": {"line": 6120, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/router/utils/sorted-routes.ts"],"sourcesContent":["class UrlNode {\n placeholder: boolean = true\n children: Map<string, UrlNode> = new Map()\n slugName: string | null = null\n restSlugName: string | null = null\n optionalRestSlugName: string | null = null\n\n insert(urlPath: string): void {\n this._insert(urlPath.split('/').filter(Boolean), [], false)\n }\n\n smoosh(): string[] {\n return this._smoosh()\n }\n\n private _smoosh(prefix: string = '/'): string[] {\n const childrenPaths = [...this.children.keys()].sort()\n if (this.slugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[]'), 1)\n }\n if (this.restSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[...]'), 1)\n }\n if (this.optionalRestSlugName !== null) {\n childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1)\n }\n\n const routes = childrenPaths\n .map((c) => this.children.get(c)!._smoosh(`${prefix}${c}/`))\n .reduce((prev, curr) => [...prev, ...curr], [])\n\n if (this.slugName !== null) {\n routes.push(\n ...this.children.get('[]')!._smoosh(`${prefix}[${this.slugName}]/`)\n )\n }\n\n if (!this.placeholder) {\n const r = prefix === '/' ? '/' : prefix.slice(0, -1)\n if (this.optionalRestSlugName != null) {\n throw new Error(\n `You cannot define a route with the same specificity as a optional catch-all route (\"${r}\" and \"${r}[[...${this.optionalRestSlugName}]]\").`\n )\n }\n\n routes.unshift(r)\n }\n\n if (this.restSlugName !== null) {\n routes.push(\n ...this.children\n .get('[...]')!\n ._smoosh(`${prefix}[...${this.restSlugName}]/`)\n )\n }\n\n if (this.optionalRestSlugName !== null) {\n routes.push(\n ...this.children\n .get('[[...]]')!\n ._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`)\n )\n }\n\n return routes\n }\n\n private _insert(\n urlPaths: string[],\n slugNames: string[],\n isCatchAll: boolean\n ): void {\n if (urlPaths.length === 0) {\n this.placeholder = false\n return\n }\n\n if (isCatchAll) {\n throw new Error(`Catch-all must be the last part of the URL.`)\n }\n\n // The next segment in the urlPaths list\n let nextSegment = urlPaths[0]\n\n // Check if the segment matches `[something]`\n if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) {\n // Strip `[` and `]`, leaving only `something`\n let segmentName = nextSegment.slice(1, -1)\n\n let isOptional = false\n if (segmentName.startsWith('[') && segmentName.endsWith(']')) {\n // Strip optional `[` and `]`, leaving only `something`\n segmentName = segmentName.slice(1, -1)\n isOptional = true\n }\n\n if (segmentName.startsWith('…')) {\n throw new Error(\n `Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`\n )\n }\n\n if (segmentName.startsWith('...')) {\n // Strip `...`, leaving only `something`\n segmentName = segmentName.substring(3)\n isCatchAll = true\n }\n\n if (segmentName.startsWith('[') || segmentName.endsWith(']')) {\n throw new Error(\n `Segment names may not start or end with extra brackets ('${segmentName}').`\n )\n }\n\n if (segmentName.startsWith('.')) {\n throw new Error(\n `Segment names may not start with erroneous periods ('${segmentName}').`\n )\n }\n\n function handleSlug(previousSlug: string | null, nextSlug: string) {\n if (previousSlug !== null) {\n // If the specific segment already has a slug but the slug is not `something`\n // This prevents collisions like:\n // pages/[post]/index.js\n // pages/[id]/index.js\n // Because currently multiple dynamic params on the same segment level are not supported\n if (previousSlug !== nextSlug) {\n // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.\n throw new Error(\n `You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`\n )\n }\n }\n\n slugNames.forEach((slug) => {\n if (slug === nextSlug) {\n throw new Error(\n `You cannot have the same slug name \"${nextSlug}\" repeat within a single dynamic path`\n )\n }\n\n if (slug.replace(/\\W/g, '') === nextSegment.replace(/\\W/g, '')) {\n throw new Error(\n `You cannot have the slug names \"${slug}\" and \"${nextSlug}\" differ only by non-word symbols within a single dLine truncated
{"offset": {"line": 6365, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/segment.ts"],"sourcesContent":["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"],"names":["DEFAULT_SEGMENT_KEY","NOT_FOUND_SEGMENT_KEY","PAGE_SEGMENT_KEY","addSearchParamsIfPageSegment","computeSelectedLayoutSegment","getSegmentValue","getSelectedLayoutSegmentPath","isGroupSegment","isParallelRouteSegment","segment","Array","isArray","endsWith","startsWith","searchParams","isPageSegment","includes","stringifiedQuery","JSON","stringify","segments","parallelRouteKey","length","rawSegment","tree","first","segmentPath","node","parallelRoutes","children","Object","values","segmentValue","push"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAuFaA,mBAAmB,EAAA;eAAnBA;;IACAC,qBAAqB,EAAA;eAArBA;;IAFAC,gBAAgB,EAAA;eAAhBA;;IAvEGC,4BAA4B,EAAA;eAA5BA;;IAgBAC,4BAA4B,EAAA;eAA5BA;;IA7BAC,eAAe,EAAA;eAAfA;;IAiDAC,4BAA4B,EAAA;eAA5BA;;IA7CAC,cAAc,EAAA;eAAdA;;IAKAC,sBAAsB,EAAA;eAAtBA;;;AATT,SAASH,gBAAgBI,OAAgB;IAC9C,OAAOC,MAAMC,OAAO,CAACF,WAAWA,OAAO,CAAC,EAAE,GAAGA;AAC/C;AAEO,SAASF,eAAeE,OAAe;IAC5C,sCAAsC;IACtC,OAAOA,OAAO,CAAC,EAAE,KAAK,OAAOA,QAAQG,QAAQ,CAAC;AAChD;AAEO,SAASJ,uBAAuBC,OAAe;IACpD,OAAOA,QAAQI,UAAU,CAAC,QAAQJ,YAAY;AAChD;AAEO,SAASN,6BACdM,OAAgB,EAChBK,YAA2D;IAE3D,MAAMC,gBAAgBN,QAAQO,QAAQ,CAACd;IAEvC,IAAIa,eAAe;QACjB,MAAME,mBAAmBC,KAAKC,SAAS,CAACL;QACxC,OAAOG,qBAAqB,OACxBf,mBAAmB,MAAMe,mBACzBf;IACN;IAEA,OAAOO;AACT;AAEO,SAASL,6BACdgB,QAAyB,EACzBC,gBAAwB;IAExB,IAAI,CAACD,YAAYA,SAASE,MAAM,KAAK,GAAG;QACtC,OAAO;IACT;IAEA,iFAAiF;IACjF,MAAMC,aACJF,qBAAqB,aACjBD,QAAQ,CAAC,EAAE,GACXA,QAAQ,CAACA,SAASE,MAAM,GAAG,EAAE;IAEnC,sGAAsG;IACtG,oEAAoE;IACpE,OAAOC,eAAevB,sBAAsB,OAAOuB;AACrD;AAGO,SAASjB,6BACdkB,IAAuB,EACvBH,gBAAwB,EACxBI,QAAQ,IAAI,EACZC,cAAwB,EAAE;IAE1B,IAAIC;IACJ,IAAIF,OAAO;QACT,kEAAkE;QAClEE,OAAOH,IAAI,CAAC,EAAE,CAACH,iBAAiB;IAClC,OAAO;QACL,oGAAoG;QACpG,MAAMO,iBAAiBJ,IAAI,CAAC,EAAE;QAC9BG,OAAOC,eAAeC,QAAQ,IAAIC,OAAOC,MAAM,CAACH,eAAe,CAAC,EAAE;IACpE;IAEA,IAAI,CAACD,MAAM,OAAOD;IAClB,MAAMjB,UAAUkB,IAAI,CAAC,EAAE;IAEvB,IAAIK,eAAe3B,gBAAgBI;IAEnC,IAAI,CAACuB,gBAAgBA,aAAanB,UAAU,CAACX,mBAAmB;QAC9D,OAAOwB;IACT;IAEAA,YAAYO,IAAI,CAACD;IAEjB,OAAO1B,6BACLqB,MACAN,kBACA,OACAK;AAEJ;AAEO,MAAMxB,mBAAmB;AACzB,MAAMF,sBAAsB;AAC5B,MAAMC,wBAAwB","ignoreList":[0]}},
{"offset": {"line": 6468, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/side-effect.tsx"],"sourcesContent":["import type React from 'react'\nimport { Children, useEffect, useLayoutEffect, type JSX } from 'react'\n\ntype State = JSX.Element[] | undefined\n\nexport type SideEffectProps = {\n reduceComponentsToState: (components: Array<React.ReactElement<any>>) => State\n handleStateChange?: (state: State) => void\n headManager: any\n children: React.ReactNode\n}\n\nconst isServer = typeof window === 'undefined'\nconst useClientOnlyLayoutEffect = isServer ? () => {} : useLayoutEffect\nconst useClientOnlyEffect = isServer ? () => {} : useEffect\n\nexport default function SideEffect(props: SideEffectProps) {\n const { headManager, reduceComponentsToState } = props\n\n function emitChange() {\n if (headManager && headManager.mountedInstances) {\n const headElements = Children.toArray(\n Array.from(headManager.mountedInstances as Set<React.ReactNode>).filter(\n Boolean\n )\n ) as React.ReactElement[]\n headManager.updateHead(reduceComponentsToState(headElements))\n }\n }\n\n if (isServer) {\n headManager?.mountedInstances?.add(props.children)\n emitChange()\n }\n\n useClientOnlyLayoutEffect(() => {\n headManager?.mountedInstances?.add(props.children)\n return () => {\n headManager?.mountedInstances?.delete(props.children)\n }\n })\n\n // We need to call `updateHead` method whenever the `SideEffect` is trigger in all\n // life-cycles: mount, update, unmount. However, if there are multiple `SideEffect`s\n // being rendered, we only trigger the method from the last one.\n // This is ensured by keeping the last unflushed `updateHead` in the `_pendingUpdate`\n // singleton in the layout effect pass, and actually trigger it in the effect pass.\n useClientOnlyLayoutEffect(() => {\n if (headManager) {\n headManager._pendingUpdate = emitChange\n }\n return () => {\n if (headManager) {\n headManager._pendingUpdate = emitChange\n }\n }\n })\n\n useClientOnlyEffect(() => {\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate()\n headManager._pendingUpdate = null\n }\n return () => {\n if (headManager && headManager._pendingUpdate) {\n headManager._pendingUpdate()\n headManager._pendingUpdate = null\n }\n }\n })\n\n return null\n}\n"],"names":["SideEffect","isServer","window","useClientOnlyLayoutEffect","useLayoutEffect","useClientOnlyEffect","useEffect","props","headManager","reduceComponentsToState","emitChange","mountedInstances","headElements","Children","toArray","Array","from","filter","Boolean","updateHead","add","children","delete","_pendingUpdate"],"mappings":";;;+BAgBA,WAAA;;;eAAwBA;;;uBAfuC;AAW/D,MAAMC,WAAW,OAAOC,WAAW;AACnC,MAAMC,4BAA4BF,WAAW,KAAO,IAAIG,OAAAA,eAAe;AACvE,MAAMC,sBAAsBJ,WAAW,KAAO,IAAIK,OAAAA,SAAS;AAE5C,SAASN,WAAWO,KAAsB;IACvD,MAAM,EAAEC,WAAW,EAAEC,uBAAuB,EAAE,GAAGF;IAEjD,SAASG;QACP,IAAIF,eAAeA,YAAYG,gBAAgB,EAAE;YAC/C,MAAMC,eAAeC,OAAAA,QAAQ,CAACC,OAAO,CACnCC,MAAMC,IAAI,CAACR,YAAYG,gBAAgB,EAA0BM,MAAM,CACrEC;YAGJV,YAAYW,UAAU,CAACV,wBAAwBG;QACjD;IACF;IAEA,IAAIX,UAAU;QACZO,aAAaG,kBAAkBS,IAAIb,MAAMc,QAAQ;QACjDX;IACF;IAEAP;gDAA0B;YACxBK,aAAaG,kBAAkBS,IAAIb,MAAMc,QAAQ;YACjD;wDAAO;oBACLb,aAAaG,kBAAkBW,OAAOf,MAAMc,QAAQ;gBACtD;;QACF;;IAEA,kFAAkF;IAClF,oFAAoF;IACpF,gEAAgE;IAChE,qFAAqF;IACrF,mFAAmF;IACnFlB;gDAA0B;YACxB,IAAIK,aAAa;gBACfA,YAAYe,cAAc,GAAGb;YAC/B;YACA;wDAAO;oBACL,IAAIF,aAAa;wBACfA,YAAYe,cAAc,GAAGb;oBAC/B;gBACF;;QACF;;IAEAL;0CAAoB;YAClB,IAAIG,eAAeA,YAAYe,cAAc,EAAE;gBAC7Cf,YAAYe,cAAc;gBAC1Bf,YAAYe,cAAc,GAAG;YAC/B;YACA;kDAAO;oBACL,IAAIf,eAAeA,YAAYe,cAAc,EAAE;wBAC7Cf,YAAYe,cAAc;wBAC1Bf,YAAYe,cAAc,GAAG;oBAC/B;gBACF;;QACF;;IAEA,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 6544, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/turbopack/deferred-emit.ts"],"sourcesContent":["/**\n * Fires a callback after a delay unless it's cancelled or flushed first.\n *\n * `schedule()` replaces any still-pending emit.\n */\nexport class DeferredEmit {\n #timer: ReturnType<typeof setTimeout> | undefined\n #fn: (() => void) | undefined\n\n /**\n * Arm `fn` to run after `delayMs`, replacing any still-pending emit.\n *\n * @param delayMs The delay in milliseconds before the callback is fired.\n * @param fn The callback function to be executed after the delay.\n */\n schedule(delayMs: number, scheduledFn: () => void): void {\n this.cancel()\n this.#fn = scheduledFn\n this.#timer = setTimeout(() => {\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }, delayMs)\n }\n\n /**\n * If an emit is pending, run it now instead of waiting for the delay.\n */\n flush(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n const fn = this.#fn\n this.#fn = undefined\n fn?.()\n }\n\n /**\n * Cancel a pending emit without running it.\n */\n cancel(): void {\n if (this.#timer === undefined) {\n return\n }\n clearTimeout(this.#timer)\n this.#timer = undefined\n this.#fn = undefined\n }\n\n get isPending(): boolean {\n return this.#timer !== undefined\n }\n}\n"],"names":["DeferredEmit","schedule","delayMs","scheduledFn","cancel","setTimeout","undefined","fn","flush","clearTimeout","isPending"],"mappings":"AAAA;;;;CAIC;;;+BACYA,gBAAAA;;;eAAAA;;;AAAN,MAAMA;KACX,CAAA,IAAM,CAA2C;KACjD,CAAA,CAAG,CAA0B;IAE7B;;;;;GAKC,GACDC,SAASC,OAAe,EAAEC,WAAuB,EAAQ;QACvD,IAAI,CAACC,MAAM;QACX,IAAI,EAAC,CAAA,CAAG,GAAGD;QACX,IAAI,EAAC,CAAA,IAAM,GAAGE,WAAW;YACvB,IAAI,EAAC,CAAA,IAAM,GAAGC;YACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;YACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;YACXC;QACF,GAAGL;IACL;IAEA;;GAEC,GACDM,QAAc;QACZ,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKF,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,MAAMC,KAAK,IAAI,EAAC,CAAA,CAAG;QACnB,IAAI,EAAC,CAAA,CAAG,GAAGD;QACXC;IACF;IAEA;;GAEC,GACDH,SAAe;QACb,IAAI,IAAI,EAAC,CAAA,IAAM,KAAKE,WAAW;YAC7B;QACF;QACAG,aAAa,IAAI,EAAC,CAAA,IAAM;QACxB,IAAI,EAAC,CAAA,IAAM,GAAGH;QACd,IAAI,EAAC,CAAA,CAAG,GAAGA;IACb;IAEA,IAAII,YAAqB;QACvB,OAAO,IAAI,EAAC,CAAA,IAAM,KAAKJ;IACzB;AACF","ignoreList":[0]}},
{"offset": {"line": 6605, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils.ts"],"sourcesContent":["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 typLine truncated
{"offset": {"line": 6824, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/next/src/shared/lib/utils/warn-once.ts"],"sourcesContent":["let warnOnce = (_: string) => {}\nif (process.env.NODE_ENV !== 'production') {\n const warnings = new Set<string>()\n warnOnce = (msg: string) => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\nexport { warnOnce }\n"],"names":["warnOnce","_","process","env","NODE_ENV","warnings","Set","msg","has","console","warn","add"],"mappings":"AACIE,QAAQC,GAAG,CAACC,QAAQ,KAAK;;;;;+BAUpBJ,YAAAA;;;eAAAA;;;AAXT,IAAIA,WAAW,CAACC,KAAe;AAC/B,wCAA2C;IACzC,MAAMI,WAAW,IAAIC;IACrBN,WAAW,CAACO;QACV,IAAI,CAACF,SAASG,GAAG,CAACD,MAAM;YACtBE,QAAQC,IAAI,CAACH;QACf;QACAF,SAASM,GAAG,CAACJ;IACf;AACF","ignoreList":[0]}}]
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,9 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-dom/cjs/react-dom-client.development.js"],"sourcesContent":["/**\n * @license React\n * react-dom-client.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/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function findHook(fiber, id) {\n for (fiber = fiber.memoizedState; null !== fiber && 0 < id; )\n (fiber = fiber.next), id--;\n return fiber;\n }\n function copyWithSetImpl(obj, path, index, value) {\n if (index >= path.length) return value;\n var key = path[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n updated[key] = copyWithSetImpl(obj[key], path, index + 1, value);\n return updated;\n }\n function copyWithRename(obj, oldPath, newPath) {\n if (oldPath.length !== newPath.length)\n console.warn(\"copyWithRename() expects paths of the same length\");\n else {\n for (var i = 0; i < newPath.length - 1; i++)\n if (oldPath[i] !== newPath[i]) {\n console.warn(\n \"copyWithRename() expects paths to be the same except for the deepest key\"\n );\n return;\n }\n return copyWithRenameImpl(obj, oldPath, newPath, 0);\n }\n }\n function copyWithRenameImpl(obj, oldPath, newPath, index) {\n var oldKey = oldPath[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n index + 1 === oldPath.length\n ? ((updated[newPath[index]] = updated[oldKey]),\n isArrayImpl(updated)\n ? updated.splice(oldKey, 1)\n : delete updated[oldKey])\n : (updated[oldKey] = copyWithRenameImpl(\n obj[oldKey],\n oldPath,\n newPath,\n index + 1\n ));\n return updated;\n }\n function copyWithDeleteImpl(obj, path, index) {\n var key = path[index],\n updated = isArrayImpl(obj) ? obj.slice() : assign({}, obj);\n if (index + 1 === path.length)\n return (\n isArrayImpl(updated) ? updated.splice(key, 1) : delete updated[key],\n updated\n );\n updated[key] = copyWithDeleteImpl(obj[key], path, index + 1);\n return updated;\n }\n function shouldSuspendImpl() {\n return !1;\n }\n function shouldErrorImpl() {\n return null;\n }\n function warnInvalidHookAccess() {\n console.error(\n \"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks\"\n );\n }\n function warnInvalidContextAccess() {\n console.error(\n \"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\"\n );\n }\n function noop() {}\n function warnForMissingKey() {}\n function setToSortedString(set) {\n var array = [];\n set.forEach(function (value) {\n array.push(value);\n });\n return array.sort().join(\", \");\n }\n function createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n }\n function scheduleRoot(root, element) {\n root.context === emptyContextObject &&\n (updateContainerImpl(root.current, 2, element, root, null, null),\n flushSyncWork$1());\n }\n function scheduleRefresh(root, update) {\n if (null !== resolveFamily) {\n var staleFamilies = update.staleFamilies;\n update = update.updatedFamilies;\n flushPendingEffects();\n scheduleFibersWithFamiliesRecursively(\n root.current,\n update,\n staleFamilies\n );\n flushSyncWork$1();\n }\n }\n function setRefreshHandler(handler) {\n resolveFamily = handler;\n }\n function isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n }\n function getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.flags & 4098) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n Line truncated
{"offset": {"line": 15135, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-dom/cjs/react-dom.development.js"],"sourcesContent":["/**\n * @license React\n * react-dom.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 testStringCoercion(value) {\n return \"\" + value;\n }\n function createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n try {\n testStringCoercion(key);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n JSCompiler_inline_result &&\n (console.error(\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n key[Symbol.toStringTag]) ||\n key.constructor.name ||\n \"Object\"\n ),\n testStringCoercion(key));\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n }\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 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 \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"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 REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\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.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n Line truncated
{"offset": {"line": 15313, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-dom/client.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom-client.production.js');\n} else {\n module.exports = require('./cjs/react-dom-client.development.js');\n}\n"],"names":["checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","Error","err","console","error","module","exports"],"mappings":"AA8BI;AA9BJ;AAEA,SAASA;IACP,yCAAyC,GACzC,IACE,OAAOC,mCAAmC,eAC1C,OAAOA,+BAA+BD,QAAQ,KAAK,YACnD;QACA;IACF;IACA,wCAA2C;QACzC,kEAAkE;QAClE,gEAAgE;QAChE,sEAAsE;QACtE,oBAAoB;QACpB,wEAAwE;QACxE,0EAA0E;QAC1E,oBAAoB;QACpB,MAAM,IAAIE,MAAM;IAClB;IACA,IAAI;QACF,oEAAoE;QACpED,+BAA+BD,QAAQ,CAACA;IAC1C,EAAE,OAAOG,KAAK;QACZ,kDAAkD;QAClD,qDAAqD;QACrDC,QAAQC,KAAK,CAACF;IAChB;AACF;AAEA;;KAKO;IACLG,OAAOC,OAAO;AAChB","ignoreList":[0]}},
{"offset": {"line": 15347, "column": 0}, "map": {"version":3,"sources":["file:///Users/home/Projects/forumlify/node_modules/react-dom/index.js"],"sourcesContent":["'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n"],"names":["checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","Error","err","console","error","module","exports"],"mappings":"AA8BI;AA9BJ;AAEA,SAASA;IACP,yCAAyC,GACzC,IACE,OAAOC,mCAAmC,eAC1C,OAAOA,+BAA+BD,QAAQ,KAAK,YACnD;QACA;IACF;IACA,wCAA2C;QACzC,kEAAkE;QAClE,gEAAgE;QAChE,sEAAsE;QACtE,oBAAoB;QACpB,wEAAwE;QACxE,0EAA0E;QAC1E,oBAAoB;QACpB,MAAM,IAAIE,MAAM;IAClB;IACA,IAAI;QACF,oEAAoE;QACpED,+BAA+BD,QAAQ,CAACA;IAC1C,EAAE,OAAOG,KAAK;QACZ,kDAAkD;QAClD,qDAAqD;QACrDC,QAAQC,KAAK,CAACF;IAChB;AACF;AAEA;;KAKO;IACLG,OAAOC,OAAO;AAChB","ignoreList":[0]}}]
}
+13
View File
@@ -0,0 +1,13 @@
__turbopack_load_page_chunks__("/_app", [
"static/chunks/node_modules_next_dist_compiled_199if1i._.js",
"static/chunks/node_modules_next_dist_shared_lib_0c-iiom._.js",
"static/chunks/node_modules_next_dist_client_16lnmlo._.js",
"static/chunks/node_modules_next_dist_20ud_8w._.js",
"static/chunks/node_modules_next_app_0yrdk3r.js",
"static/chunks/[next]_entry_page-loader_ts_0z3haqk._.js",
"static/chunks/node_modules_react-dom_0kla17-._.js",
"static/chunks/node_modules_10e2-xo._.js",
"static/chunks/[root-of-the-server]__0l4r13l._.js",
"static/chunks/pages__app_0du2_q-._.js",
"static/chunks/turbopack-pages__app_1s2hdfk._.js"
])
+12
View File
@@ -0,0 +1,12 @@
__turbopack_load_page_chunks__("/_error", [
"static/chunks/node_modules_next_dist_compiled_199if1i._.js",
"static/chunks/node_modules_next_dist_shared_lib_1-1urvf._.js",
"static/chunks/node_modules_next_dist_client_16lnmlo._.js",
"static/chunks/node_modules_next_dist_1wf0dq6._.js",
"static/chunks/[next]_entry_page-loader_ts_1aoli7m._.js",
"static/chunks/node_modules_react-dom_0kla17-._.js",
"static/chunks/node_modules_10e2-xo._.js",
"static/chunks/[root-of-the-server]__02sxxph._.js",
"static/chunks/pages__error_0du2_q-._.js",
"static/chunks/turbopack-pages__error_061knaw._.js"
])
@@ -0,0 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/node_modules_next_dist_compiled_199if1i._.js","static/chunks/node_modules_next_dist_shared_lib_0c-iiom._.js","static/chunks/node_modules_next_dist_client_16lnmlo._.js","static/chunks/node_modules_next_dist_20ud_8w._.js","static/chunks/node_modules_next_app_0yrdk3r.js","static/chunks/[next]_entry_page-loader_ts_0z3haqk._.js","static/chunks/node_modules_react-dom_0kla17-._.js","static/chunks/node_modules_10e2-xo._.js","static/chunks/[root-of-the-server]__0l4r13l._.js"],
source: "entry"
});
@@ -0,0 +1,12 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/runtime-utils.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * TurboPack ECMAScript runtimes.\n *\n * It will be prepended to the runtime code of each runtime.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./async-module.ts\" />\n\ntype EsmNamespaceObject = Record<string, any>\n\n/**\n * Describes why a module was instantiated.\n * Shared between browser and Node.js runtimes.\n */\nenum SourceType {\n /**\n * The module was instantiated because it was included in an evaluated chunk's\n * runtime.\n * SourceData is a ChunkPath.\n */\n Runtime = 0,\n /**\n * The module was instantiated because a parent module imported it.\n * SourceData is a ModuleId.\n */\n Parent = 1,\n /**\n * The module was instantiated because it was included in a chunk's hot module\n * update.\n * SourceData is an array of ModuleIds or undefined.\n */\n Update = 2,\n}\n\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\n\n// @ts-ignore Defined in `dev-base.ts`\ndeclare function getOrInstantiateModuleFromParent<M>(\n id: ModuleId,\n sourceModule: M\n): M\n\n// @ts-ignore Defined in `hmr-runtime.ts` (dev mode only)\ndeclare let devModuleCache: Record<ModuleId, any> | undefined\n\n/**\n * Flag indicating which module object type to create when a module is merged. Set to `true`\n * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,\n * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it\n * uses plain Module objects.\n */\nlet createModuleWithDirectionFlag = false\n\nconst REEXPORTED_OBJECTS = new WeakMap<Module, ReexportedObjects>()\n\n/**\n * Constructs the `__turbopack_context__` object for a module.\n */\nfunction Context(\n this: TurbopackBaseContext<Module>,\n module: Module,\n exports: Exports\n) {\n this.m = module\n // We need to store this here instead of accessing it from the module object to:\n // 1. Make it available to factories directly, since we rewrite `this` to\n // `__turbopack_context__.e` in CJS modules.\n // 2. Support async modules which rewrite `module.exports` to a promise, so we\n // can still access the original exports object from functions like\n // `esmExport`\n // Ideally we could find a new approach for async modules and drop this property altogether.\n this.e = exports\n}\nconst contextPrototype = Context.prototype as TurbopackBaseContext<Module>\n\ntype ModuleContextMap = Record<ModuleId, ModuleContextEntry>\n\ninterface ModuleContextEntry {\n id: () => ModuleId\n module: () => any\n}\n\ninterface ModuleContext {\n // require call\n (moduleId: string): Exports | EsmNamespaceObject\n\n // async import call\n import(moduleId: string): Promise<Exports | EsmNamespaceObject>\n\n keys(): ModuleId[]\n\n resolve(moduleId: string): ModuleId\n}\n\ntype GetOrInstantiateModuleFromParent<M extends Module> = (\n moduleId: M['id'],\n parentModule: M\n) => M\n\ndeclare function getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\n\nfunction defineProp(\n obj: any,\n name: PropertyKey,\n options: PropertyDescriptor & ThisType<any>\n) {\n if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\n}\n\nfunction getOverwrittenModule(\n moduleCache: ModuleCache<Module>,\n id: ModuleId\n): Module {\n let module = moduleCache[id]\n if (!module) {\n if (createModuleWithDirectionFlag) {\n // set in development modes for hmr support\n module = createModuleWithDirection(id)\n } else {\n module = createModuleObject(id)\n }\n moduleCache[id] = module\n }\n return module\n}\n\n/**\n * Creates the module object. Only done here to ensure all module objects have the same shape.\n */\nfunction createModuleObject(id: ModuleId): Module {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n }\n}\n\nfunction createModuleWithDirection(id: ModuleId): ModuleWithDirection {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n parents: [],\n children: [],\n }\n}\n\ntype BindingTag = 0\nconst BindingTag_Value = 0 as BindingTag\n\n// an arbitrary sequence of bindings as\n// - a prop name\n// - BindingTag_Value, a value to be bound directly, or\n// - 1 or 2 functions to bind as getters and sdetters\ntype EsmBindings = Array<\n string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown\n>\n\n/**\n * Adds the getters to the exports object.\n */\nfunction esm(exports: Exports, bindings: EsmBindings, dynamic?: booleaLine truncated
{"offset": {"line": 543, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/async-module.ts"],"sourcesContent":["/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./runtime-utils.ts\" />\n\n/**\n * Top-level-await / async-module machinery. This is only included in the runtime\n * when the module graph actually contains an async module (a module with\n * top-level await, or one that transitively depends on one). When no async\n * module is present, the chunk items never reference `__turbopack_context__.a`,\n * so this whole file can be omitted.\n *\n * everything below is adapted from webpack\n * https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\n */\n\nconst turbopackQueues = Symbol('turbopack queues')\nconst turbopackExports = Symbol('turbopack exports')\nconst turbopackError = Symbol('turbopack error')\n\nconst enum QueueStatus {\n Unknown = -1,\n Unresolved = 0,\n Resolved = 1,\n}\n\ntype AsyncQueueFn = (() => void) & { queueCount: number }\ntype AsyncQueue = AsyncQueueFn[] & {\n status: QueueStatus\n}\n\ntype Dep = Exports | AsyncModulePromise | Promise<Exports>\n\ntype AsyncModuleExt = {\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\n [turbopackExports]: Exports\n [turbopackError]?: any\n}\n\ntype AsyncModulePromise<T = Exports> = Promise<T> & AsyncModuleExt\n\nfunction isPromise<T = any>(maybePromise: any): maybePromise is Promise<T> {\n return (\n maybePromise != null &&\n typeof maybePromise === 'object' &&\n 'then' in maybePromise &&\n typeof maybePromise.then === 'function'\n )\n}\n\nfunction isAsyncModuleExt<T extends {}>(obj: T): obj is AsyncModuleExt & T {\n return turbopackQueues in obj\n}\n\nfunction createPromise<T>() {\n let resolve: (value: T | PromiseLike<T>) => void\n let reject: (reason?: any) => void\n\n const promise = new Promise<T>((res, rej) => {\n reject = rej\n resolve = res\n })\n\n return {\n promise,\n resolve: resolve!,\n reject: reject!,\n }\n}\n\nfunction resolveQueue(queue?: AsyncQueue) {\n if (queue && queue.status !== QueueStatus.Resolved) {\n queue.status = QueueStatus.Resolved\n queue.forEach((fn) => fn.queueCount--)\n queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\n }\n}\n\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\n return deps.map((dep): AsyncModuleExt => {\n if (dep !== null && typeof dep === 'object') {\n if (isAsyncModuleExt(dep)) return dep\n if (isPromise(dep)) {\n const queue: AsyncQueue = Object.assign([], {\n status: QueueStatus.Unresolved,\n })\n\n const obj: AsyncModuleExt = {\n [turbopackExports]: {},\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\n }\n\n dep.then(\n (res) => {\n obj[turbopackExports] = res\n resolveQueue(queue)\n },\n (err) => {\n obj[turbopackError] = err\n resolveQueue(queue)\n }\n )\n\n return obj\n }\n }\n\n return {\n [turbopackExports]: dep,\n [turbopackQueues]: () => {},\n }\n })\n}\n\nfunction asyncModule(\n this: TurbopackBaseContext<Module>,\n body: (\n handleAsyncDependencies: (\n deps: Dep[]\n ) => Exports[] | Promise<() => Exports[]>,\n asyncResult: (err?: any) => void\n ) => void,\n hasAwait: boolean\n) {\n const module = this.m\n const queue: AsyncQueue | undefined = hasAwait\n ? Object.assign([], { status: QueueStatus.Unknown })\n : undefined\n\n const depQueues: Set<AsyncQueue> = new Set()\n\n const { resolve, reject, promise: rawPromise } = createPromise<Exports>()\n\n const promise: AsyncModulePromise = Object.assign(rawPromise, {\n [turbopackExports]: module.exports,\n [turbopackQueues]: (fn) => {\n queue && fn(queue)\n depQueues.forEach(fn)\n promise['catch'](() => {})\n },\n } satisfies AsyncModuleExt)\n\n const attributes: PropertyDescriptor = {\n get(): any {\n return promise\n },\n set(v: any) {\n // Calling `esmExport` leads to this.\n if (v !== promise) {\n promise[turbopackExports] = v\n }\n },\n }\n\n Object.defineProperty(module, 'exports', attributes)\n Object.defineProperty(module, 'namespaceObject', attributes)\n\n function handleAsyncDependencies(deps: Dep[]) {\n const currentDeps = wrapDeps(deps)\n\n const getResult = () =>\n currentDeps.map((d) => {\n if (d[turbopackError]) throw d[turbopackError]\n return d[turbopackExports]\n })\n\n const { promise, resolve } = createPromise<() => Exports[]>()\n\n const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\n queueCount: 0,\n })\n\n function fnQueue(q: AsyncQueue) {\n if (q !== queue && !depQueues.has(q)) {\n depQueues.add(q)\n if (q && q.sLine truncated
{"offset": {"line": 675, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-utils.ts\" />\n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var CHUNK_LOAD_RETRY_MAX_ATTEMPTS: number\ndeclare var CHUNK_LOAD_RETRY_BASE_DELAY_MS: number\ndeclare var CHUNK_LOAD_RETRY_MAX_JITTER_MS: number\ndeclare const SUPPORT_COMPONENT_CHUNKS: boolean\n\ninterface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext<unknown>\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n /**\n * Registers a chunk. `chunk` is `undefined` for an inlined entry-only registration\n * (no source chunk): the params' other chunks are loaded and its runtime modules run\n * with no self chunk identity.\n */\n registerChunk: (\n chunk: ChunkPath | ChunkScript | undefined,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise<void>\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map<ModuleId, Promise<any> | true> = new Map()\n\nconst availableModuleChunks: Map<ChunkPath, Promise<any> | true> = new Map()\n\n// Registry mapping a merged chunk's path to its constituent component chunk paths.\nconst chunkComponents: Map<ChunkPath, ChunkPath[]> = new Map()\n\n// Registry mapping a component chunk's path to its size in bytes, used by the\n// split-vs-whole cost heuristic.\nconst componentChunkSizes: Map<ChunkPath, number> = new Map()\n\nfunction registerComponentChunkSizes(\n componentChunks: ChunkPath[],\n sizes: number[]\n): void {\n for (let i = 0; i < componentChunks.length; i++) {\n const size = sizes[i]\n if (size !== undefined) {\n componentChunkSizes.set(componentChunks[i], size)\n }\n }\n}\n\ntype ChunkUrlOrMerged = ChunkUrl | [ChunkUrl, ChunkPath[], number[]]\n\n// Memoizes the composite promise returned for a merged chunk loaded by URL, keyed by URL.\nconst splitChunkPromises: Map<ChunkUrl, Promise<any>> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext<Module>,\n chunkData: ChunkData\n): Promise<void> {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\n// `chunkPath` is the source chunk; it is `undefined` for entry-only registrations,\n// which have no self chunk.\nfunction loadInitialChunk(\n chunkPath: ChunkPath | undefined,\n chunkData: ChunkData\n) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise<void> {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skLine truncated
{"offset": {"line": 1028, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/hmr-runtime.ts"],"sourcesContent":["/// <reference path=\"./runtime-utils.ts\" />\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./dev-extensions.ts\" />\n/// <reference path=\"./dev-protocol.d.ts\" />\n\ntype HotModuleFactoryFunction = ModuleFactoryFunction<\n HotModule,\n TurbopackBaseContext<HotModule>\n>\n\n/**\n * Shared HMR (Hot Module Replacement) implementation.\n *\n * This file contains the complete HMR implementation that's shared between\n * browser and Node.js runtimes. It manages module hot state, dependency\n * tracking, the module.hot API, and the full HMR update flow.\n */\n\n/**\n * The development module cache shared across the runtime.\n * Browser runtime declares this directly.\n * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this.\n */\nlet devModuleCache: Record<ModuleId, any>\n\n/**\n * Module IDs that are instantiated as part of the runtime of a chunk.\n */\nlet runtimeModules: Set<ModuleId>\n\n/**\n * Maps module IDs to persisted data between executions of their hot module\n * implementation (`hot.data`).\n */\nconst moduleHotData: Map<ModuleId, HotData> = new Map()\n\n/**\n * Maps module instances to their hot module state.\n * Uses WeakMap so it works with both HotModule and ModuleWithDirection.\n */\nconst moduleHotState: WeakMap<any, HotState> = new WeakMap()\n\n/**\n * Modules that call `module.hot.invalidate()` (while being updated).\n */\nconst queuedInvalidatedModules: Set<ModuleId> = new Set()\n\nclass UpdateApplyError extends Error {\n name = 'UpdateApplyError'\n\n dependencyChain: ModuleId[]\n\n constructor(message: string, dependencyChain: ModuleId[]) {\n super(message)\n this.dependencyChain = dependencyChain\n }\n}\n\ntype ModuleEffect =\n | {\n type: 'unaccepted'\n dependencyChain: ModuleId[]\n }\n | {\n type: 'self-declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n }\n | {\n type: 'declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n parentId: ModuleId\n }\n | {\n type: 'accepted'\n moduleId: ModuleId\n outdatedModules: Set<ModuleId>\n outdatedDependencies: Map<ModuleId, Set<ModuleId>>\n }\n\n/**\n * Records parent-child relationship when a module imports another.\n * Should be called during module instantiation.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction trackModuleImport(\n parentModule: ModuleWithDirection,\n childModuleId: ModuleId,\n childModule: ModuleWithDirection | undefined\n): void {\n // Record that parent imports child\n if (parentModule.children.indexOf(childModuleId) === -1) {\n parentModule.children.push(childModuleId)\n }\n\n // Record that child is imported by parent\n if (childModule && childModule.parents.indexOf(parentModule.id) === -1) {\n childModule.parents.push(parentModule.id)\n }\n}\n\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\n return `Dependency chain: ${dependencyChain.join(' -> ')}`\n}\n\n/**\n * Walks the dependency tree to find all modules affected by a change.\n * Returns information about whether the update can be accepted and which\n * modules need to be invalidated.\n *\n * @param moduleId - The module that changed\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept().\n * This is used for server-side HMR where pages auto-accept at the top level.\n */\nfunction getAffectedModuleEffects(\n moduleId: ModuleId,\n autoAcceptRootModules: boolean\n): ModuleEffect {\n const outdatedModules: Set<ModuleId> = new Set()\n const outdatedDependencies: Map<ModuleId, Set<ModuleId>> = new Map()\n\n type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\n\n const queue: Array<QueueItem | undefined> = [\n {\n moduleId,\n dependencyChain: [],\n },\n ]\n\n let queueIndex = 0\n while (queueIndex < queue.length) {\n const { moduleId, dependencyChain } = queue[queueIndex]!\n // Release copied dependency chains as soon as their queue item is consumed.\n queue[queueIndex++] = undefined\n\n if (moduleId != null) {\n if (outdatedModules.has(moduleId)) {\n // Avoid infinite loops caused by cycles between modules in the dependency chain.\n continue\n }\n\n outdatedModules.add(moduleId)\n }\n\n // We've arrived at the runtime of the chunk, which means that nothing\n // else above can accept this update.\n if (moduleId === undefined) {\n if (autoAcceptRootModules) {\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n }\n return {\n type: 'unaccepted',\n dependencyChain,\n }\n }\n\n const module = devModuleCacLine truncated
{"offset": {"line": 1724, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext<HotModule> {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in `<reference>`d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map<ModuleId, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map<ChunkPath, Set<ModuleId>> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set<ChunkListPath> = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map<ChunkListPath, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map<ChunkPath, Set<ChunkListPath>> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath | undefined,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n Line truncated
{"offset": {"line": 2148, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../../../browser/runtime/base/runtime-base.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n retryAttempts: number\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise<any>\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n // `chunk` is `undefined` for an inlined entry-only registration, which has no source chunk.\n let chunkPath: ChunkPath | undefined\n if (chunk != null) {\n chunkPath = getPathFromScript(chunk)\n const resolver = getOrCreateResolver(getUrlFromScript(chunk))\n resolver.resolve()\n }\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise<void>((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n retryAttempts: 0,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Rejects a chunk resolver and drops it from the cache.\n * We don't want to cache failed chunk loads: a later\n * request for the same chunk should try again.\n */\n function rejectChunkResolver(\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error\n ) {\n if (chunkResolvers.get(chunkUrl) === resolver) {\n chunkResolvers.delete(chunkUrl)\n }\n resolver.reject(error)\n }\n\n function getChunkLoadRetryDelayMs() {\n const jitter = Math.floor(\n Math.random() * (CHUNK_LOAD_RETRY_MAX_JITTER_MS + 1)\n )\n return CHUNK_LOAD_RETRY_BASE_DELAY_MS + jitter\n }\n\n function isRetryableChunkLoadError(error?: Error): boolean {\n return (\n error == null ||\n (error instanceof DOMException && error.name === 'NetworkError')\n )\n }\n\n /**\n * Handles a failed chunk load: retries the load once after a short delay.\n */\n function onChunkLoadError(\n sourceType: SourceType,\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error,\n reload?: () => void\n ) {\n if (\n !isRetryableChunkLoadError(error) ||\n resolver.retryAttempts >= CHUNK_LOAD_RETRY_MAX_ATTEMPTS ||\n chunkResolvers.get(chunkUrl) !== resolver\n ) {\n rejectChunkResolver(chunkUrl, resolver, error)\n return\n }\n\n resolver.retryAttempts++\n setTimeout(() => {\n // if this chunk is being fetched multiple times, and one of those\n // attempts succeeds. or, if this chunk has another resolver\n // mapped to it - it's safe to skip retrying.\n if (resolver.resolved || chunkResolvers.get(chuLine truncated
{"offset": {"line": 2366, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/runtime-base.ts\" />\n/// <reference path=\"../base/dev-base.ts\" />\n/// <reference path=\"./runtime-backend-dom.ts\" />\n/// <reference path=\"../../../shared/require-type.d.ts\" />\n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise<void>((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a <link rel=preload> exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loadeLine truncated
}
@@ -0,0 +1,12 @@
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/runtime-utils.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * TurboPack ECMAScript runtimes.\n *\n * It will be prepended to the runtime code of each runtime.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./async-module.ts\" />\n\ntype EsmNamespaceObject = Record<string, any>\n\n/**\n * Describes why a module was instantiated.\n * Shared between browser and Node.js runtimes.\n */\nenum SourceType {\n /**\n * The module was instantiated because it was included in an evaluated chunk's\n * runtime.\n * SourceData is a ChunkPath.\n */\n Runtime = 0,\n /**\n * The module was instantiated because a parent module imported it.\n * SourceData is a ModuleId.\n */\n Parent = 1,\n /**\n * The module was instantiated because it was included in a chunk's hot module\n * update.\n * SourceData is an array of ModuleIds or undefined.\n */\n Update = 2,\n}\n\ntype SourceData = ChunkPath | ModuleId | ModuleId[] | undefined\n\n// @ts-ignore Defined in `dev-base.ts`\ndeclare function getOrInstantiateModuleFromParent<M>(\n id: ModuleId,\n sourceModule: M\n): M\n\n// @ts-ignore Defined in `hmr-runtime.ts` (dev mode only)\ndeclare let devModuleCache: Record<ModuleId, any> | undefined\n\n/**\n * Flag indicating which module object type to create when a module is merged. Set to `true`\n * by each runtime that uses ModuleWithDirection (browser dev-base.ts, nodejs dev-base.ts,\n * nodejs build-base.ts). Browser production (build-base.ts) leaves it as `false` since it\n * uses plain Module objects.\n */\nlet createModuleWithDirectionFlag = false\n\nconst REEXPORTED_OBJECTS = new WeakMap<Module, ReexportedObjects>()\n\n/**\n * Constructs the `__turbopack_context__` object for a module.\n */\nfunction Context(\n this: TurbopackBaseContext<Module>,\n module: Module,\n exports: Exports\n) {\n this.m = module\n // We need to store this here instead of accessing it from the module object to:\n // 1. Make it available to factories directly, since we rewrite `this` to\n // `__turbopack_context__.e` in CJS modules.\n // 2. Support async modules which rewrite `module.exports` to a promise, so we\n // can still access the original exports object from functions like\n // `esmExport`\n // Ideally we could find a new approach for async modules and drop this property altogether.\n this.e = exports\n}\nconst contextPrototype = Context.prototype as TurbopackBaseContext<Module>\n\ntype ModuleContextMap = Record<ModuleId, ModuleContextEntry>\n\ninterface ModuleContextEntry {\n id: () => ModuleId\n module: () => any\n}\n\ninterface ModuleContext {\n // require call\n (moduleId: string): Exports | EsmNamespaceObject\n\n // async import call\n import(moduleId: string): Promise<Exports | EsmNamespaceObject>\n\n keys(): ModuleId[]\n\n resolve(moduleId: string): ModuleId\n}\n\ntype GetOrInstantiateModuleFromParent<M extends Module> = (\n moduleId: M['id'],\n parentModule: M\n) => M\n\ndeclare function getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath,\n moduleId: ModuleId\n): Module\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty\nconst toStringTag = typeof Symbol !== 'undefined' && Symbol.toStringTag\n\nfunction defineProp(\n obj: any,\n name: PropertyKey,\n options: PropertyDescriptor & ThisType<any>\n) {\n if (!hasOwnProperty.call(obj, name)) Object.defineProperty(obj, name, options)\n}\n\nfunction getOverwrittenModule(\n moduleCache: ModuleCache<Module>,\n id: ModuleId\n): Module {\n let module = moduleCache[id]\n if (!module) {\n if (createModuleWithDirectionFlag) {\n // set in development modes for hmr support\n module = createModuleWithDirection(id)\n } else {\n module = createModuleObject(id)\n }\n moduleCache[id] = module\n }\n return module\n}\n\n/**\n * Creates the module object. Only done here to ensure all module objects have the same shape.\n */\nfunction createModuleObject(id: ModuleId): Module {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n }\n}\n\nfunction createModuleWithDirection(id: ModuleId): ModuleWithDirection {\n return {\n exports: {},\n error: undefined,\n id,\n namespaceObject: undefined,\n parents: [],\n children: [],\n }\n}\n\ntype BindingTag = 0\nconst BindingTag_Value = 0 as BindingTag\n\n// an arbitrary sequence of bindings as\n// - a prop name\n// - BindingTag_Value, a value to be bound directly, or\n// - 1 or 2 functions to bind as getters and sdetters\ntype EsmBindings = Array<\n string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown\n>\n\n/**\n * Adds the getters to the exports object.\n */\nfunction esm(exports: Exports, bindings: EsmBindings, dynamic?: booleaLine truncated
{"offset": {"line": 543, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/async-module.ts"],"sourcesContent":["/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./runtime-utils.ts\" />\n\n/**\n * Top-level-await / async-module machinery. This is only included in the runtime\n * when the module graph actually contains an async module (a module with\n * top-level await, or one that transitively depends on one). When no async\n * module is present, the chunk items never reference `__turbopack_context__.a`,\n * so this whole file can be omitted.\n *\n * everything below is adapted from webpack\n * https://github.com/webpack/webpack/blob/6be4065ade1e252c1d8dcba4af0f43e32af1bdc1/lib/runtime/AsyncModuleRuntimeModule.js#L13\n */\n\nconst turbopackQueues = Symbol('turbopack queues')\nconst turbopackExports = Symbol('turbopack exports')\nconst turbopackError = Symbol('turbopack error')\n\nconst enum QueueStatus {\n Unknown = -1,\n Unresolved = 0,\n Resolved = 1,\n}\n\ntype AsyncQueueFn = (() => void) & { queueCount: number }\ntype AsyncQueue = AsyncQueueFn[] & {\n status: QueueStatus\n}\n\ntype Dep = Exports | AsyncModulePromise | Promise<Exports>\n\ntype AsyncModuleExt = {\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => void\n [turbopackExports]: Exports\n [turbopackError]?: any\n}\n\ntype AsyncModulePromise<T = Exports> = Promise<T> & AsyncModuleExt\n\nfunction isPromise<T = any>(maybePromise: any): maybePromise is Promise<T> {\n return (\n maybePromise != null &&\n typeof maybePromise === 'object' &&\n 'then' in maybePromise &&\n typeof maybePromise.then === 'function'\n )\n}\n\nfunction isAsyncModuleExt<T extends {}>(obj: T): obj is AsyncModuleExt & T {\n return turbopackQueues in obj\n}\n\nfunction createPromise<T>() {\n let resolve: (value: T | PromiseLike<T>) => void\n let reject: (reason?: any) => void\n\n const promise = new Promise<T>((res, rej) => {\n reject = rej\n resolve = res\n })\n\n return {\n promise,\n resolve: resolve!,\n reject: reject!,\n }\n}\n\nfunction resolveQueue(queue?: AsyncQueue) {\n if (queue && queue.status !== QueueStatus.Resolved) {\n queue.status = QueueStatus.Resolved\n queue.forEach((fn) => fn.queueCount--)\n queue.forEach((fn) => (fn.queueCount-- ? fn.queueCount++ : fn()))\n }\n}\n\nfunction wrapDeps(deps: Dep[]): AsyncModuleExt[] {\n return deps.map((dep): AsyncModuleExt => {\n if (dep !== null && typeof dep === 'object') {\n if (isAsyncModuleExt(dep)) return dep\n if (isPromise(dep)) {\n const queue: AsyncQueue = Object.assign([], {\n status: QueueStatus.Unresolved,\n })\n\n const obj: AsyncModuleExt = {\n [turbopackExports]: {},\n [turbopackQueues]: (fn: (queue: AsyncQueue) => void) => fn(queue),\n }\n\n dep.then(\n (res) => {\n obj[turbopackExports] = res\n resolveQueue(queue)\n },\n (err) => {\n obj[turbopackError] = err\n resolveQueue(queue)\n }\n )\n\n return obj\n }\n }\n\n return {\n [turbopackExports]: dep,\n [turbopackQueues]: () => {},\n }\n })\n}\n\nfunction asyncModule(\n this: TurbopackBaseContext<Module>,\n body: (\n handleAsyncDependencies: (\n deps: Dep[]\n ) => Exports[] | Promise<() => Exports[]>,\n asyncResult: (err?: any) => void\n ) => void,\n hasAwait: boolean\n) {\n const module = this.m\n const queue: AsyncQueue | undefined = hasAwait\n ? Object.assign([], { status: QueueStatus.Unknown })\n : undefined\n\n const depQueues: Set<AsyncQueue> = new Set()\n\n const { resolve, reject, promise: rawPromise } = createPromise<Exports>()\n\n const promise: AsyncModulePromise = Object.assign(rawPromise, {\n [turbopackExports]: module.exports,\n [turbopackQueues]: (fn) => {\n queue && fn(queue)\n depQueues.forEach(fn)\n promise['catch'](() => {})\n },\n } satisfies AsyncModuleExt)\n\n const attributes: PropertyDescriptor = {\n get(): any {\n return promise\n },\n set(v: any) {\n // Calling `esmExport` leads to this.\n if (v !== promise) {\n promise[turbopackExports] = v\n }\n },\n }\n\n Object.defineProperty(module, 'exports', attributes)\n Object.defineProperty(module, 'namespaceObject', attributes)\n\n function handleAsyncDependencies(deps: Dep[]) {\n const currentDeps = wrapDeps(deps)\n\n const getResult = () =>\n currentDeps.map((d) => {\n if (d[turbopackError]) throw d[turbopackError]\n return d[turbopackExports]\n })\n\n const { promise, resolve } = createPromise<() => Exports[]>()\n\n const fn: AsyncQueueFn = Object.assign(() => resolve(getResult), {\n queueCount: 0,\n })\n\n function fnQueue(q: AsyncQueue) {\n if (q !== queue && !depQueues.has(q)) {\n depQueues.add(q)\n if (q && q.sLine truncated
{"offset": {"line": 675, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/runtime-base.ts"],"sourcesContent":["/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *browser* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-utils.ts\" />\n\n// Used in WebWorkers to tell the runtime about the chunk suffix\ndeclare var TURBOPACK_ASSET_SUFFIX: string\n// Used in WebWorkers to tell the runtime about the current chunk url since it\n// can't be detected via `document.currentScript`. Note it's stored in reversed\n// order to use `push` and `pop`\ndeclare var TURBOPACK_NEXT_CHUNK_URLS: ChunkUrl[] | undefined\n\n// Injected by rust code\ndeclare var CHUNK_BASE_PATH: string\ndeclare var ASSET_SUFFIX: string\ndeclare var CROSS_ORIGIN: 'anonymous' | 'use-credentials' | null\ndeclare var CHUNK_LOAD_RETRY_MAX_ATTEMPTS: number\ndeclare var CHUNK_LOAD_RETRY_BASE_DELAY_MS: number\ndeclare var CHUNK_LOAD_RETRY_MAX_JITTER_MS: number\ndeclare const SUPPORT_COMPONENT_CHUNKS: boolean\n\ninterface TurbopackBrowserBaseContext<M> extends TurbopackBaseContext<M> {\n R: ResolvePathFromModule\n}\n\nconst browserContextPrototype =\n Context.prototype as TurbopackBrowserBaseContext<unknown>\n\n// Provided by build or dev base\ndeclare function instantiateModule(\n id: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module\n\ntype RuntimeParams = {\n otherChunks: ChunkData[]\n runtimeModuleIds: ModuleId[]\n}\n\ntype ChunkRegistrationChunk =\n | ChunkPath\n | { getAttribute: (name: string) => string | null }\n | undefined\n\ntype ChunkRegistration = [\n chunkPath: ChunkRegistrationChunk,\n ...([RuntimeParams] | CompressedModuleFactories),\n]\n\ntype ChunkList = {\n script: ChunkRegistrationChunk\n chunks: ChunkData[]\n source: 'entry' | 'dynamic'\n}\n\ninterface RuntimeBackend {\n /**\n * Registers a chunk. `chunk` is `undefined` for an inlined entry-only registration\n * (no source chunk): the params' other chunks are loaded and its runtime modules run\n * with no self chunk identity.\n */\n registerChunk: (\n chunk: ChunkPath | ChunkScript | undefined,\n params?: RuntimeParams\n ) => void\n /**\n * Returns the same Promise for the same chunk URL.\n */\n loadChunkCached: (sourceType: SourceType, chunkUrl: ChunkUrl) => Promise<void>\n}\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\nconst moduleFactories: ModuleFactories = new Map()\ncontextPrototype.M = moduleFactories\n\nconst availableModules: Map<ModuleId, Promise<any> | true> = new Map()\n\nconst availableModuleChunks: Map<ChunkPath, Promise<any> | true> = new Map()\n\n// Registry mapping a merged chunk's path to its constituent component chunk paths.\nconst chunkComponents: Map<ChunkPath, ChunkPath[]> = new Map()\n\n// Registry mapping a component chunk's path to its size in bytes, used by the\n// split-vs-whole cost heuristic.\nconst componentChunkSizes: Map<ChunkPath, number> = new Map()\n\nfunction registerComponentChunkSizes(\n componentChunks: ChunkPath[],\n sizes: number[]\n): void {\n for (let i = 0; i < componentChunks.length; i++) {\n const size = sizes[i]\n if (size !== undefined) {\n componentChunkSizes.set(componentChunks[i], size)\n }\n }\n}\n\ntype ChunkUrlOrMerged = ChunkUrl | [ChunkUrl, ChunkPath[], number[]]\n\n// Memoizes the composite promise returned for a merged chunk loaded by URL, keyed by URL.\nconst splitChunkPromises: Map<ChunkUrl, Promise<any>> = new Map()\n\nfunction loadChunk(\n this: TurbopackBrowserBaseContext<Module>,\n chunkData: ChunkData\n): Promise<void> {\n return loadChunkInternal(SourceType.Parent, this.m.id, chunkData)\n}\nbrowserContextPrototype.l = loadChunk\n\n// `chunkPath` is the source chunk; it is `undefined` for entry-only registrations,\n// which have no self chunk.\nfunction loadInitialChunk(\n chunkPath: ChunkPath | undefined,\n chunkData: ChunkData\n) {\n return loadChunkInternal(SourceType.Runtime, chunkPath, chunkData)\n}\n\nasync function loadChunkInternal(\n sourceType: SourceType,\n sourceData: SourceData,\n chunkData: ChunkData\n): Promise<void> {\n if (typeof chunkData === 'string') {\n return loadChunkPath(sourceType, sourceData, chunkData)\n }\n\n const includedList = chunkData.included || []\n const modulesPromises = includedList.map((included) => {\n if (moduleFactories.has(included)) return true\n return availableModules.get(included)\n })\n if (modulesPromises.length > 0 && modulesPromises.every((p) => p)) {\n // When all included items are already loaded or loading, we can skLine truncated
{"offset": {"line": 1028, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/shared/runtime/hmr-runtime.ts"],"sourcesContent":["/// <reference path=\"./runtime-utils.ts\" />\n/// <reference path=\"./runtime-types.d.ts\" />\n/// <reference path=\"./dev-extensions.ts\" />\n/// <reference path=\"./dev-protocol.d.ts\" />\n\ntype HotModuleFactoryFunction = ModuleFactoryFunction<\n HotModule,\n TurbopackBaseContext<HotModule>\n>\n\n/**\n * Shared HMR (Hot Module Replacement) implementation.\n *\n * This file contains the complete HMR implementation that's shared between\n * browser and Node.js runtimes. It manages module hot state, dependency\n * tracking, the module.hot API, and the full HMR update flow.\n */\n\n/**\n * The development module cache shared across the runtime.\n * Browser runtime declares this directly.\n * Node.js runtime assigns globalThis.__turbopack_module_cache__ to this.\n */\nlet devModuleCache: Record<ModuleId, any>\n\n/**\n * Module IDs that are instantiated as part of the runtime of a chunk.\n */\nlet runtimeModules: Set<ModuleId>\n\n/**\n * Maps module IDs to persisted data between executions of their hot module\n * implementation (`hot.data`).\n */\nconst moduleHotData: Map<ModuleId, HotData> = new Map()\n\n/**\n * Maps module instances to their hot module state.\n * Uses WeakMap so it works with both HotModule and ModuleWithDirection.\n */\nconst moduleHotState: WeakMap<any, HotState> = new WeakMap()\n\n/**\n * Modules that call `module.hot.invalidate()` (while being updated).\n */\nconst queuedInvalidatedModules: Set<ModuleId> = new Set()\n\nclass UpdateApplyError extends Error {\n name = 'UpdateApplyError'\n\n dependencyChain: ModuleId[]\n\n constructor(message: string, dependencyChain: ModuleId[]) {\n super(message)\n this.dependencyChain = dependencyChain\n }\n}\n\ntype ModuleEffect =\n | {\n type: 'unaccepted'\n dependencyChain: ModuleId[]\n }\n | {\n type: 'self-declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n }\n | {\n type: 'declined'\n dependencyChain: ModuleId[]\n moduleId: ModuleId\n parentId: ModuleId\n }\n | {\n type: 'accepted'\n moduleId: ModuleId\n outdatedModules: Set<ModuleId>\n outdatedDependencies: Map<ModuleId, Set<ModuleId>>\n }\n\n/**\n * Records parent-child relationship when a module imports another.\n * Should be called during module instantiation.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction trackModuleImport(\n parentModule: ModuleWithDirection,\n childModuleId: ModuleId,\n childModule: ModuleWithDirection | undefined\n): void {\n // Record that parent imports child\n if (parentModule.children.indexOf(childModuleId) === -1) {\n parentModule.children.push(childModuleId)\n }\n\n // Record that child is imported by parent\n if (childModule && childModule.parents.indexOf(parentModule.id) === -1) {\n childModule.parents.push(parentModule.id)\n }\n}\n\nfunction formatDependencyChain(dependencyChain: ModuleId[]): string {\n return `Dependency chain: ${dependencyChain.join(' -> ')}`\n}\n\n/**\n * Walks the dependency tree to find all modules affected by a change.\n * Returns information about whether the update can be accepted and which\n * modules need to be invalidated.\n *\n * @param moduleId - The module that changed\n * @param autoAcceptRootModules - If true, root modules auto-accept updates without explicit module.hot.accept().\n * This is used for server-side HMR where pages auto-accept at the top level.\n */\nfunction getAffectedModuleEffects(\n moduleId: ModuleId,\n autoAcceptRootModules: boolean\n): ModuleEffect {\n const outdatedModules: Set<ModuleId> = new Set()\n const outdatedDependencies: Map<ModuleId, Set<ModuleId>> = new Map()\n\n type QueueItem = { moduleId?: ModuleId; dependencyChain: ModuleId[] }\n\n const queue: Array<QueueItem | undefined> = [\n {\n moduleId,\n dependencyChain: [],\n },\n ]\n\n let queueIndex = 0\n while (queueIndex < queue.length) {\n const { moduleId, dependencyChain } = queue[queueIndex]!\n // Release copied dependency chains as soon as their queue item is consumed.\n queue[queueIndex++] = undefined\n\n if (moduleId != null) {\n if (outdatedModules.has(moduleId)) {\n // Avoid infinite loops caused by cycles between modules in the dependency chain.\n continue\n }\n\n outdatedModules.add(moduleId)\n }\n\n // We've arrived at the runtime of the chunk, which means that nothing\n // else above can accept this update.\n if (moduleId === undefined) {\n if (autoAcceptRootModules) {\n return {\n type: 'accepted',\n moduleId,\n outdatedModules,\n outdatedDependencies,\n }\n }\n return {\n type: 'unaccepted',\n dependencyChain,\n }\n }\n\n const module = devModuleCacLine truncated
{"offset": {"line": 1724, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/base/dev-base.ts"],"sourcesContent":["/// <reference path=\"../../../shared/runtime/dev-globals.d.ts\" />\n/// <reference path=\"../../../shared/runtime/dev-protocol.d.ts\" />\n\ninterface TurbopackDevContext extends TurbopackBrowserBaseContext<HotModule> {\n k: RefreshContext\n}\n\nconst devContextPrototype = Context.prototype as TurbopackDevContext\n\n/**\n * This file contains runtime types and functions that are shared between all\n * Turbopack *development* ECMAScript runtimes.\n *\n * It will be appended to the runtime code of each runtime right after the\n * shared runtime utils.\n */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n// Assign browser's module cache and runtime modules to shared HMR state\ndevModuleCache = Object.create(null)\ndevContextPrototype.c = devModuleCache\nruntimeModules = new Set()\n\n// Set flag to indicate we use ModuleWithDirection\ncreateModuleWithDirectionFlag = true\n\n// This file must not use `import` and `export` statements. Otherwise, it\n// becomes impossible to augment interfaces declared in `<reference>`d files\n// (e.g. `Module`). Hence, the need for `import()` here.\ntype RefreshRuntimeGlobals =\n import('@next/react-refresh-utils/dist/runtime').RefreshRuntimeGlobals\n\ndeclare var $RefreshHelpers$: RefreshRuntimeGlobals['$RefreshHelpers$']\ndeclare var $RefreshReg$: RefreshRuntimeGlobals['$RefreshReg$']\ndeclare var $RefreshSig$: RefreshRuntimeGlobals['$RefreshSig$']\ndeclare var $RefreshInterceptModuleExecution$: RefreshRuntimeGlobals['$RefreshInterceptModuleExecution$']\n\ntype RefreshContext = {\n register: RefreshRuntimeGlobals['$RefreshReg$']\n signature: RefreshRuntimeGlobals['$RefreshSig$']\n registerExports: typeof registerExportsAndSetupBoundaryForReactRefresh\n}\n\ntype RefreshHelpers = RefreshRuntimeGlobals['$RefreshHelpers$']\n\ntype ModuleFactory = (\n this: Module['exports'],\n context: TurbopackDevContext\n) => unknown\n\ninterface DevRuntimeBackend {\n reloadChunk?: (chunkUrl: ChunkUrl) => Promise<void>\n unloadChunk?: (chunkUrl: ChunkUrl) => void\n restart: () => void\n}\n\n/**\n * Map from module ID to the chunks that contain this module.\n *\n * In HMR, we need to keep track of which modules are contained in which so\n * chunks. This is so we don't eagerly dispose of a module when it is removed\n * from chunk A, but still exists in chunk B.\n */\nconst moduleChunksMap: Map<ModuleId, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to all modules it contains.\n */\nconst chunkModulesMap: Map<ChunkPath, Set<ModuleId>> = new Map()\n/**\n * Chunk lists that contain a runtime. When these chunk lists receive an update\n * that can't be reconciled with the current state of the page, we need to\n * reload the runtime entirely.\n */\nconst runtimeChunkLists: Set<ChunkListPath> = new Set()\n/**\n * Map from a chunk list to the chunk paths it contains.\n */\nconst chunkListChunksMap: Map<ChunkListPath, Set<ChunkPath>> = new Map()\n/**\n * Map from a chunk path to the chunk lists it belongs to.\n */\nconst chunkChunkListsMap: Map<ChunkPath, Set<ChunkListPath>> = new Map()\n\n/**\n * Gets or instantiates a runtime module.\n */\n// @ts-ignore\nfunction getOrInstantiateRuntimeModule(\n chunkPath: ChunkPath | undefined,\n moduleId: ModuleId\n): Module {\n const module = devModuleCache[moduleId]\n if (module) {\n if (module.error) {\n throw module.error\n }\n return module\n }\n\n // @ts-ignore\n return instantiateModule(moduleId, SourceType.Runtime, chunkPath)\n}\n\n/**\n * Retrieves a module from the cache, or instantiate it if it is not cached.\n */\n// @ts-ignore Defined in `runtime-utils.ts`\nconst getOrInstantiateModuleFromParent: GetOrInstantiateModuleFromParent<\n HotModule\n> = (id, sourceModule) => {\n if (!sourceModule.hot.active) {\n console.warn(\n `Unexpected import of module ${id} from module ${sourceModule.id}, which was deleted by an HMR update`\n )\n }\n\n const module = devModuleCache[id]\n\n if (sourceModule.children.indexOf(id) === -1) {\n sourceModule.children.push(id)\n }\n\n if (module) {\n if (module.error) {\n throw module.error\n }\n\n if (module.parents.indexOf(sourceModule.id) === -1) {\n module.parents.push(sourceModule.id)\n }\n\n return module\n }\n\n return instantiateModule(id, SourceType.Parent, sourceModule.id)\n}\n\nfunction DevContext(\n this: TurbopackDevContext,\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n) {\n Context.call(this, module, exports)\n this.k = refresh\n}\nDevContext.prototype = Context.prototype\n\ntype DevContextConstructor = {\n new (\n module: HotModule,\n exports: Exports,\n refresh: RefreshContext\n ): TurbopackDevContext\n}\n\nfunction instantiateModule(\n moduleId: ModuleId,\n sourceType: SourceType,\n sourceData: SourceData\n): Module {\n Line truncated
{"offset": {"line": 2148, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/runtime-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack ECMAScript DOM runtime.\n *\n * It will be appended to the base runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../../../browser/runtime/base/runtime-base.ts\" />\n/// <reference path=\"../../../shared/runtime/runtime-types.d.ts\" />\n\nfunction getAssetSuffixFromScriptSrc() {\n // TURBOPACK_ASSET_SUFFIX is set in web workers\n if (self.TURBOPACK_ASSET_SUFFIX != null) return self.TURBOPACK_ASSET_SUFFIX\n const src = document?.currentScript?.getAttribute?.('src') ?? ''\n const qi = src.indexOf('?')\n return qi >= 0 ? src.slice(qi) : ''\n}\n\ntype ChunkResolver = {\n resolved: boolean\n loadingStarted: boolean\n retryAttempts: number\n resolve: () => void\n reject: (error?: Error) => void\n promise: Promise<any>\n}\n\nlet BACKEND: RuntimeBackend\n\n/**\n * Maps chunk paths to the corresponding resolver.\n */\nconst chunkResolvers: Map<ChunkUrl, ChunkResolver> = new Map()\n\n;(() => {\n BACKEND = {\n async registerChunk(chunk, params) {\n // `chunk` is `undefined` for an inlined entry-only registration, which has no source chunk.\n let chunkPath: ChunkPath | undefined\n if (chunk != null) {\n chunkPath = getPathFromScript(chunk)\n const resolver = getOrCreateResolver(getUrlFromScript(chunk))\n resolver.resolve()\n }\n\n if (params == null) {\n return\n }\n\n for (const otherChunkData of params.otherChunks) {\n const otherChunkPath = getChunkPath(otherChunkData)\n const otherChunkUrl = getChunkRelativeUrl(otherChunkPath)\n\n // Chunk might have started loading, so we want to avoid triggering another load.\n getOrCreateResolver(otherChunkUrl)\n }\n\n // This waits for chunks to be loaded, but also marks included items as available.\n await Promise.all(\n params.otherChunks.map((otherChunkData) =>\n loadInitialChunk(chunkPath, otherChunkData)\n )\n )\n\n if (params.runtimeModuleIds.length > 0) {\n for (const moduleId of params.runtimeModuleIds) {\n getOrInstantiateRuntimeModule(chunkPath, moduleId)\n }\n }\n },\n\n /**\n * Loads the given chunk, and returns a promise that resolves once the chunk\n * has been loaded.\n */\n loadChunkCached(sourceType: SourceType, chunkUrl: ChunkUrl) {\n return doLoadChunk(sourceType, chunkUrl)\n },\n }\n\n function getOrCreateResolver(chunkUrl: ChunkUrl): ChunkResolver {\n let resolver = chunkResolvers.get(chunkUrl)\n if (!resolver) {\n let resolve: () => void\n let reject: (error?: Error) => void\n const promise = new Promise<void>((innerResolve, innerReject) => {\n resolve = innerResolve\n reject = innerReject\n })\n resolver = {\n resolved: false,\n loadingStarted: false,\n retryAttempts: 0,\n promise,\n resolve: () => {\n resolver!.resolved = true\n resolve()\n },\n reject: reject!,\n }\n chunkResolvers.set(chunkUrl, resolver)\n }\n return resolver\n }\n\n /**\n * Rejects a chunk resolver and drops it from the cache.\n * We don't want to cache failed chunk loads: a later\n * request for the same chunk should try again.\n */\n function rejectChunkResolver(\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error\n ) {\n if (chunkResolvers.get(chunkUrl) === resolver) {\n chunkResolvers.delete(chunkUrl)\n }\n resolver.reject(error)\n }\n\n function getChunkLoadRetryDelayMs() {\n const jitter = Math.floor(\n Math.random() * (CHUNK_LOAD_RETRY_MAX_JITTER_MS + 1)\n )\n return CHUNK_LOAD_RETRY_BASE_DELAY_MS + jitter\n }\n\n function isRetryableChunkLoadError(error?: Error): boolean {\n return (\n error == null ||\n (error instanceof DOMException && error.name === 'NetworkError')\n )\n }\n\n /**\n * Handles a failed chunk load: retries the load once after a short delay.\n */\n function onChunkLoadError(\n sourceType: SourceType,\n chunkUrl: ChunkUrl,\n resolver: ChunkResolver,\n error?: Error,\n reload?: () => void\n ) {\n if (\n !isRetryableChunkLoadError(error) ||\n resolver.retryAttempts >= CHUNK_LOAD_RETRY_MAX_ATTEMPTS ||\n chunkResolvers.get(chunkUrl) !== resolver\n ) {\n rejectChunkResolver(chunkUrl, resolver, error)\n return\n }\n\n resolver.retryAttempts++\n setTimeout(() => {\n // if this chunk is being fetched multiple times, and one of those\n // attempts succeeds. or, if this chunk has another resolver\n // mapped to it - it's safe to skip retrying.\n if (resolver.resolved || chunkResolvers.get(chuLine truncated
{"offset": {"line": 2366, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack]/browser/runtime/dom/dev-backend-dom.ts"],"sourcesContent":["/**\n * This file contains the runtime code specific to the Turbopack development\n * ECMAScript DOM runtime.\n *\n * It will be appended to the base development runtime code.\n */\n\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n/// <reference path=\"../base/runtime-base.ts\" />\n/// <reference path=\"../base/dev-base.ts\" />\n/// <reference path=\"./runtime-backend-dom.ts\" />\n/// <reference path=\"../../../shared/require-type.d.ts\" />\n\nlet DEV_BACKEND: DevRuntimeBackend\n;(() => {\n DEV_BACKEND = {\n unloadChunk(chunkUrl) {\n deleteResolver(chunkUrl)\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n // TODO(PACK-2140): remove this once all filenames are guaranteed to be escaped.\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n\n if (isCss(chunkUrl)) {\n const links = document.querySelectorAll(\n `link[href=\"${baseChunkUrl}\"],link[href^=\"${baseChunkUrl}?\"],link[href=\"${decodedBaseChunkUrl}\"],link[href^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const link of Array.from(links)) {\n link.remove()\n }\n } else if (isJs(chunkUrl)) {\n // Unloading a JS chunk would have no effect, as it lives in the JS\n // runtime once evaluated.\n // However, we still want to remove the script tag from the DOM to keep\n // the HTML somewhat consistent from the user's perspective.\n const scripts = document.querySelectorAll(\n `script[src=\"${baseChunkUrl}\"],script[src^=\"${baseChunkUrl}?\"],script[src=\"${decodedBaseChunkUrl}\"],script[src^=\"${decodedBaseChunkUrl}?\"]`\n )\n for (const script of Array.from(scripts)) {\n script.remove()\n }\n } else {\n throw new Error(`can't infer type of chunk from URL ${chunkUrl}`)\n }\n },\n\n reloadChunk(chunkUrl) {\n return new Promise<void>((resolve, reject) => {\n if (!isCss(chunkUrl)) {\n reject(new Error('The DOM backend can only reload CSS chunks'))\n return\n }\n\n // Strip query string so we match links regardless of cache-busting\n // params (e.g. ?ts=) that may differ between HMR updates.\n const baseChunkUrl = chunkUrl.split('?')[0]\n const decodedBaseChunkUrl = decodeURI(baseChunkUrl)\n const previousLinks = document.querySelectorAll(\n `link[rel=stylesheet][href=\"${baseChunkUrl}\"],link[rel=stylesheet][href^=\"${baseChunkUrl}?\"],link[rel=stylesheet][href=\"${decodedBaseChunkUrl}\"],link[rel=stylesheet][href^=\"${decodedBaseChunkUrl}?\"]`\n )\n\n if (previousLinks.length === 0) {\n reject(new Error(`No link element found for chunk ${chunkUrl}`))\n return\n }\n\n const link = document.createElement('link')\n link.rel = 'stylesheet'\n link.crossOrigin = CROSS_ORIGIN\n\n if (\n navigator.userAgent.includes('Firefox') ||\n (navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome') &&\n !navigator.userAgent.includes('Chromium'))\n ) {\n // Firefox won't reload CSS files that were previously loaded on the\n // current page: https://bugzilla.mozilla.org/show_bug.cgi?id=1037506\n //\n // Safari serves cached CSS when a <link rel=preload> exists for the\n // same URL: https://bugs.webkit.org/show_bug.cgi?id=187726\n //\n // Replace or add a fresh `ts` cache-busting param without\n // discarding other query parameters that may already be present.\n const url = new URL(chunkUrl, location.origin)\n // Reduced timer precision in some browers could lead to an update getting dropped\n // in Firefox if it happens fast enough (in firefox precision is sometimes 100ms!).\n // So trust that the server is only updating us when it is important and use a\n // random number to bust the cache.\n url.searchParams.set('ts', `${Date.now()}.${Math.random()}`)\n link.href = url.pathname + url.search\n } else {\n link.href = chunkUrl\n }\n\n link.onerror = () => {\n reject()\n }\n link.onload = () => {\n // First load the new CSS, then remove the old ones. This prevents visible\n // flickering that would happen in-between removing the previous CSS and\n // loading the new one.\n for (const previousLink of Array.from(previousLinks))\n previousLink.remove()\n\n // CSS chunks do not register themselves, and as such must be marked as\n // loadeLine truncated
}
@@ -0,0 +1,5 @@
(globalThis["TURBOPACK_CHUNK_LISTS"] || (globalThis["TURBOPACK_CHUNK_LISTS"] = [])).push({
script: typeof document === "object" ? document.currentScript : undefined,
chunks: ["static/chunks/node_modules_next_dist_compiled_199if1i._.js","static/chunks/node_modules_next_dist_shared_lib_1-1urvf._.js","static/chunks/node_modules_next_dist_client_16lnmlo._.js","static/chunks/node_modules_next_dist_1wf0dq6._.js","static/chunks/[next]_entry_page-loader_ts_1aoli7m._.js","static/chunks/node_modules_react-dom_0kla17-._.js","static/chunks/node_modules_10e2-xo._.js","static/chunks/[root-of-the-server]__02sxxph._.js"],
source: "entry"
});
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,19 @@
self.__BUILD_MANIFEST = {
"/_error": [
"static/chunks/pages/_error.js"
],
"__rewrites": {
"afterFiles": [
{
"source": "/uploads/:name",
"destination": "/api/uploads/:name"
}
],
"beforeFiles": [],
"fallback": []
},
"sortedPages": [
"/_app",
"/_error"
]
};self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
@@ -0,0 +1 @@
self.__MIDDLEWARE_MATCHERS = [];self.__MIDDLEWARE_MATCHERS_CB && self.__MIDDLEWARE_MATCHERS_CB()
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set;self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()