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OH,YAAY,CACxCQ,EAAMP,YAAY,CAAGE,EAAOF,YAAY,CACjCO,CACT,EAAE","sources":["webpack://_N_E/?5a3a","webpack://_N_E/./sentry.client.config.js","webpack://_N_E/./util/gen-git.js","webpack://_N_E/./util/logger.js"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/client-page.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/client-segment.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/error-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/layout-router.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/client/components/render-from-template-context.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src644217717/src/hangman/game/node_modules/.pnpm/next@15.1.4_@babel+core@7.26.0_@opentelemetry+api@1.9.0_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/lib/metadata/metadata-boundary.js\");\n","// This file configures the initialization of Sentry on the client.\n// The config you add here will be used whenever a users loads a page in their browser.\n// https://docs.sentry.io/platforms/javascript/guides/nextjs/\n\n;globalThis[\"_sentryRewritesTunnelPath\"] = \"/monitoring\";globalThis[\"SENTRY_RELEASE\"] = {\"id\":\"691ea96176272b24c5007a67ac2336fad1a66e65\"};globalThis[\"_sentryBasePath\"] = undefined;globalThis[\"_sentryRewriteFramesAssetPrefixPath\"] = \"\";import * as Sentry from \"@sentry/nextjs\";\nimport {getHistory} from \"./util/logger\";\n\nconst formatLogs = (logs) =>\n logs\n .map(\n ({level, message, meta}) =>\n `[${level}] ${message} {${JSON.stringify(meta)}}`,\n )\n .join(\"\\n\");\n\nSentry.init({\n dsn: \"https://c37e933484069c41635cfcc5a80cade8@o4506419591184384.ingest.us.sentry.io/4506419592626176\",\n\n // Add optional integrations for additional features\n integrations: [Sentry.replayIntegration()],\n\n // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.\n tracesSampleRate: 0.1,\n\n // Define how likely Replay events are sampled.\n // This sets the sample rate to be 10%. You may want this to be 100% while\n // in development and sample at a lower rate in production\n replaysSessionSampleRate: 0.01,\n\n // Define how likely Replay events are sampled when an error occurs.\n replaysOnErrorSampleRate: 0.5,\n\n // Setting this option to true will print useful information to the console while you're setting up Sentry.\n debug: false,\n\n beforeSend: (event, hint) => {\n if (!hint.attachments) {\n hint.attachments = [];\n }\n\n hint.attachments.push({\n filename: \"logs.txt\",\n data: formatLogs(getHistory()),\n contentType: \"text/plain\",\n });\n\n return event;\n },\n});\n","export const GIT_BRANCH = \"HEAD\";\nexport const GIT_REV = \"691ea961\";\n","import {datadogLogs} from \"@datadog/browser-logs\";\nimport {GIT_BRANCH, GIT_REV} from \"./gen-git\";\n\ndatadogLogs.init({\n clientToken: process.env.NEXT_PUBLIC_DATADOG_CLIENT_TOKEN,\n site: \"us5.datadoghq.com\",\n forwardErrorsToLogs: true,\n sessionSampleRate: 100,\n env: process.env.NEXT_PUBLIC_ENV,\n service: \"hangman-game\",\n version: `${GIT_BRANCH}/${GIT_REV}`,\n telemetrySampleRate: 100,\n});\n\nconst dtf = new Intl.DateTimeFormat(\"en-US\", {\n timeZone: \"America/Chicago\",\n hour12: false,\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\",\n fractionalSecondDigits: 3,\n});\nconst format = (category, message, ...replacements) => {\n const meta = {};\n const uniqueTokens = [];\n\n let results;\n while ((results = _tokenSub.exec(message)) !== null) {\n const tokenName = results[1];\n const index = uniqueTokens.indexOf(tokenName);\n if (index === -1) {\n uniqueTokens.push(tokenName);\n\n const replacement = replacements[uniqueTokens.length - 1];\n meta[tokenName] = replacement;\n }\n }\n\n // replace\n for (const [key, value] of Object.entries(meta)) {\n let stringValue;\n if (!value) {\n stringValue = \"null\";\n } else if (typeof value === \"string\") {\n stringValue = value;\n } else if (typeof value === \"object\") {\n stringValue = JSON.stringify(value);\n } else if (typeof value === \"function\") {\n stringValue = `${value.name}()` || \"anonymous()\";\n } else {\n stringValue = value.toString();\n }\n\n message = message.replaceAll(`@${key}`, stringValue);\n }\n\n if (category) {\n message = `[${category}] ${message}`;\n }\n\n // timestamp\n const now = new Date();\n const timestamp = dtf.format(now);\n meta[\"timestamp\"] = timestamp;\n\n return [message, meta];\n};\n\nconst _tokenSub = /@([a-zA-Z0-9_]+)/g;\nconst _logHistory = [];\nconst _logHistoryMax = 100;\n\nconst addToHistory = (level, message, meta) => {\n _logHistory.push({level, message, meta});\n\n while (_logHistory.length > _logHistoryMax) {\n _logHistory.shift();\n }\n};\n\nconst createLogger = (category) => {\n const instance = {\n consoleLevel: 4,\n dataDogLevel: 4,\n debug: (message, ...replacements) => {\n const [formattedMessage, meta] = format(\n category,\n message,\n ...replacements,\n );\n\n if (instance.consoleLevel >= 4) {\n console.debug(`[${meta[\"timestamp\"]}] ${formattedMessage}`, meta);\n }\n\n if (instance.dataDogLevel >= 4) {\n datadogLogs.logger.debug(formattedMessage, meta);\n }\n\n addToHistory(\"debug\", formattedMessage, meta);\n },\n info: (message, ...replacements) => {\n const [formattedMessage, meta] = format(\n category,\n message,\n ...replacements,\n );\n\n if (instance.consoleLevel >= 3) {\n console.info(`[${meta[\"timestamp\"]}] ${formattedMessage}`, meta);\n }\n\n if (instance.dataDogLevel >= 3) {\n datadogLogs.logger.info(formattedMessage, meta);\n }\n\n addToHistory(\"info\", formattedMessage, meta);\n },\n warn: (message, ...replacements) => {\n const [formattedMessage, meta] = format(\n category,\n message,\n ...replacements,\n );\n\n if (instance.consoleLevel >= 2) {\n console.warn(`[${meta[\"timestamp\"]}] ${formattedMessage}`, meta);\n }\n\n if (instance.dataDogLevel >= 2) {\n datadogLogs.logger.warn(formattedMessage, meta);\n }\n\n addToHistory(\"warn\", formattedMessage, meta);\n },\n error: (message, ...replacements) => {\n const [formattedMessage, meta] = format(\n category,\n message,\n ...replacements,\n );\n\n if (instance.consoleLevel >= 1) {\n console.error(`[${meta[\"timestamp\"]}] ${formattedMessage}`, meta);\n }\n\n if (instance.dataDogLevel >= 1) {\n datadogLogs.logger.error(category, formattedMessage, meta);\n }\n\n addToHistory(\"error\", formattedMessage, meta);\n },\n };\n\n return instance;\n};\n\nexport const getHistory = () => _logHistory;\nexport const logger = createLogger();\nlogger.consoleLevel = process.env.NEXT_PUBLIC_ENV === \"production\" ? 2 : 4;\n\nexport const childLogger = (name) => {\n const child = createLogger(name);\n child.consoleLevel = logger.consoleLevel;\n child.dataDogLevel = logger.dataDogLevel;\n return child;\n};\n"],"names":["globalThis","undefined","formatLogs","logs","map","level","message","meta","JSON","stringify","join","Sentry","dsn","integrations","tracesSampleRate","replaysSessionSampleRate","replaysOnErrorSampleRate","debug","beforeSend","event","hint","attachments","push","filename","data","getHistory","contentType","GIT_BRANCH","datadogLogs","init","clientToken","process","site","forwardErrorsToLogs","sessionSampleRate","env","service","version","GIT_REV","telemetrySampleRate","dtf","Intl","DateTimeFormat","timeZone","hour12","hour","minute","second","fractionalSecondDigits","format","category","results","replacements","uniqueTokens","_tokenSub","exec","tokenName","index","indexOf","replacement","length","key","value","Object","entries","stringValue","name","toString","replaceAll","now","Date","timestamp","_logHistory","addToHistory","_logHistoryMax","shift","createLogger","instance","consoleLevel","dataDogLevel","formattedMessage","logger","info","warn","error","childLogger","child"],"sourceRoot":"","ignoreList":[]}