From c761fc6c1722be024c3d45571743dae9ef1fe5a1 Mon Sep 17 00:00:00 2001 From: Thomas Durieux <5577568+tdurieux@users.noreply.github.com> Date: Sun, 29 Nov 2026 09:28:53 +0000 Subject: [PATCH 1/3] fix: log each failed file request once, expected outcomes at info A streamer error such as repo_not_found produced three warnings: the streamer's handleError, the API's streamer_fetch_failed and the API's handleError. Expected client outcomes (repo_not_found, repository_expired, file_not_found, github_app_access_required, ...) were all logged at warn, which filled the admin Errors page. - handleError picks the level with errorLogLevel: codes in EXPECTED_CLIENT_ERRORS with a 4xx status log at info; other 4xx (rate limits, token_expired, validation) stay warn and 5xx stay error. - The streamer passes { internal: true }: expected outcomes drop to debug there because the API logs the request's end state. Faults keep their level and the streamer-side stack. Its direct 400 replies now go through handleError so they are logged too. - The API no longer logs streamer_fetch_failed or streamer_zip_fetch_failed. The relayed error carries upstreamStatus, and when the streamer's coded reply shows it already logged the failure, the API logs it at info. Every record keeps requestId, so the chain can still be found by request. Co-Authored-By: Claude Opus 5.5 --- src/core/AnonymizedFile.ts | 40 +++----- src/core/AnonymousError.ts | 4 + src/core/logger.ts | 2 + src/server/routes/repository-public.ts | 34 +++---- src/server/routes/route-utils.ts | 59 ++++++++---- src/streamer/route.ts | 19 ++-- test/error-log-level.test.js | 122 +++++++++++++++++++++++++ 7 files changed, 209 insertions(+), 71 deletions(-) create mode 100644 test/error-log-level.test.js diff --git a/src/core/AnonymizedFile.ts b/src/core/AnonymizedFile.ts index 6f9acca..f9ee60f 100644 --- a/src/core/AnonymizedFile.ts +++ b/src/core/AnonymizedFile.ts @@ -59,14 +59,16 @@ function defaultMaskCandidateRegex(value: string): RegExp { // generic 404. Without this, a corrupt cache, a 5xx from the streamer, an // LFS pointer issue, and a missing file all surface to the user as the // same `file_not_found` — which makes incidents impossible to triage. +// The request's handleError logs the result once. When the streamer answered, +// it already logged its side under the same requestId. function streamerErrorToAnonymous( - err: Error & { response?: { statusCode?: number; body?: unknown } }, - context: { repoId: string; filePath: string } + err: Error & { response?: { statusCode?: number; body?: unknown } } ): { error: AnonymousError; upstreamStatus?: number; upstreamBody?: string } { const upstreamStatus = err?.response?.statusCode; let errCode = "file_not_found"; let httpStatus = 404; let upstreamBody: string | undefined; + let streamerCode = false; if (err?.response?.body != null) { try { @@ -84,6 +86,7 @@ function streamerErrorToAnonymous( const parsed = JSON.parse(upstreamBody); if (parsed && typeof parsed.error === "string") { errCode = parsed.error; + streamerCode = true; } } catch { // body wasn't JSON — keep the default code @@ -105,27 +108,14 @@ function streamerErrorToAnonymous( httpStatus = 502; } - logger.warn("streamer fetch failed", { - code: errCode, + const error = new AnonymousError(errCode, { httpStatus, - repoId: context.repoId, - filePath: context.filePath, - upstreamStatus, - upstreamBody: upstreamBody?.slice(0, 500), - url: config.STREAMER_ENTRYPOINT - ? join(config.STREAMER_ENTRYPOINT, "api") - : undefined, - err: serializeError(err), + cause: err, }); - - return { - error: new AnonymousError(errCode, { - httpStatus, - cause: err, - }), - upstreamStatus, - upstreamBody, - }; + error.upstreamStatus = upstreamStatus; + // A coded body comes from the streamer's handleError, which logged it. + error.upstreamLogged = streamerCode && typeof upstreamStatus === "number"; + return { error, upstreamStatus, upstreamBody }; } /** @@ -434,7 +424,7 @@ export default class AnonymizedFile { }, })); content.on("error", err => { - const { error } = streamerErrorToAnonymous(err, { repoId: this.repository.repoId, filePath: this.anonymizedPath }); + const { error } = streamerErrorToAnonymous(err); void notifyOwnerAccessProblem(this.repository.owner.id, error, { kind: "repository", id: String(this.repository.model._id) }); }); return content; @@ -493,7 +483,7 @@ export default class AnonymizedFile { headersDone(true); const { error } = streamerErrorToAnonymous(err as Error & { response?: { statusCode?: number; body?: unknown }; - }, { repoId: this.repository.repoId, filePath: this.anonymizedPath }); + }); void notifyOwnerAccessProblem(this.repository.owner.id, error, { kind: "repository", id: String(this.repository.model._id) }); error.value = this; throw error; @@ -540,10 +530,6 @@ export default class AnonymizedFile { const { error } = streamerErrorToAnonymous( err as Error & { response?: { statusCode?: number; body?: unknown }; - }, - { - repoId: this.repository.repoId, - filePath: this.anonymizedPath, } ); void notifyOwnerAccessProblem(this.repository.owner.id, error, { kind: "repository", id: String(this.repository.model._id) }); diff --git a/src/core/AnonymousError.ts b/src/core/AnonymousError.ts index b1a7ab7..a80a621 100644 --- a/src/core/AnonymousError.ts +++ b/src/core/AnonymousError.ts @@ -12,6 +12,10 @@ export default class AnonymousError extends CustomError { value?: unknown; httpStatus?: number; cause?: Error; + /** Status of the internal service response this error relays. */ + upstreamStatus?: number; + /** The internal service that answered already logged this failure. */ + upstreamLogged?: boolean; private explicitUrl?: string; constructor( diff --git a/src/core/logger.ts b/src/core/logger.ts index 1d0a990..d260442 100644 --- a/src/core/logger.ts +++ b/src/core/logger.ts @@ -325,6 +325,7 @@ type ErrorLike = { stack?: string; status?: number; httpStatus?: number; + upstreamStatus?: number; code?: string | number; cause?: unknown; request?: { url?: string; method?: string }; @@ -353,6 +354,7 @@ export function serializeError(err: unknown, seen = new WeakSet(), depth // AnonymousError carries an httpStatus and an inner cause. if (typeof e.httpStatus === "number") out.httpStatus = e.httpStatus; + if (typeof e.upstreamStatus === "number") out.upstreamStatus = e.upstreamStatus; // Octokit's deprecated `code` getter emits a stack on every read. Only // inspect data properties so logging never invokes that getter. const code = Object.getOwnPropertyDescriptor(e, "code")?.value; diff --git a/src/server/routes/repository-public.ts b/src/server/routes/repository-public.ts index 5c8a61f..32ac343 100644 --- a/src/server/routes/repository-public.ts +++ b/src/server/routes/repository-public.ts @@ -17,13 +17,10 @@ import { RepositoryStatus } from "../../core/types"; import User from "../../core/User"; import { streamAnonymizedZip } from "../../core/zipStream"; import FileModel from "../../core/model/files/files.model"; -import { createLogger, serializeError } from "../../core/logger"; import { githubTokenForStreamer } from "../../core/github-token-context"; import gh = require("parse-github-url"); import { requestHeaders, startStage } from "../../core/request-monitoring"; -const logger = createLogger("repository-public"); - const router = express.Router(); router.get( @@ -94,6 +91,7 @@ router.get( headersDone(true); const upstreamStatus = err?.response?.statusCode; let upstreamBody: string | undefined; + let streamerCode = false; let errCode = "zip_not_available"; let httpStatus = 502; if (err?.response?.body != null) { @@ -112,6 +110,7 @@ router.get( const parsed = JSON.parse(upstreamBody); if (parsed && typeof parsed.error === "string") { errCode = parsed.error; + streamerCode = true; } } catch { /* not JSON */ @@ -121,26 +120,17 @@ router.get( if (typeof upstreamStatus === "number") { httpStatus = upstreamStatus >= 500 ? 502 : upstreamStatus; } - logger.warn("streamer zip fetch failed", { - code: errCode, - httpStatus, - repoId: repo.repoId, - upstreamStatus, - upstreamBody: upstreamBody?.slice(0, 500), - url: config.STREAMER_ENTRYPOINT - ? join(config.STREAMER_ENTRYPOINT, "api/download") - : undefined, - err: serializeError(err), - }); const streaming = res.headersSent; - handleError( - new AnonymousError(errCode, { - url: req.originalUrl, - httpStatus, - cause: err, - }), - res - ); + const error = new AnonymousError(errCode, { + url: req.originalUrl, + httpStatus, + cause: err, + }); + error.upstreamStatus = upstreamStatus; + // A coded body comes from the streamer's handleError, which + // already logged this failure under the same requestId. + error.upstreamLogged = streamerCode && typeof upstreamStatus === "number"; + handleError(error, res); // Once ZIP bytes have been sent, handleError cannot send JSON. // Terminate the truncated response so the client reports failure // instead of waiting forever for the ZIP's central directory. diff --git a/src/server/routes/route-utils.ts b/src/server/routes/route-utils.ts index 9010635..db90661 100644 --- a/src/server/routes/route-utils.ts +++ b/src/server/routes/route-utils.ts @@ -184,8 +184,44 @@ export function explicitErrorStatus(error: unknown): number | undefined { .find(status => Number.isInteger(status) && status! >= 400 && status! <= 599); } +// Request end states that need no operator action: the visitor asked for +// something that is gone, expired, unsupported or not theirs. They are logged +// at info so the admin Errors page (warn and error) keeps to faults. Rate +// limits, expired owner tokens and upstream failures are left out on purpose. +export const EXPECTED_CLIENT_ERRORS: ReadonlySet = new Set([ + "repo_not_found", "repository_not_found", "commit_not_found", "branch_not_found", + "file_not_found", "folder_not_supported", "file_not_supported", "file_too_big", + "readme_not_available", "submodule_not_available", + "repository_expired", "repository_archived", "repository_not_ready", "is_removed", + "github_app_access_required", "not_connected", "not_authorized", + "page_not_activated", "page_not_supported_on_different_branch", "download_not_enabled", + "gist_not_found", "gist_expired", "gist_not_ready", + "pull_request_not_found", "pull_request_expired", "pull_request_not_ready", + "conf_not_found", "conference_not_found", "repoId_already_used", "invalid_repoId", +]); + +export type ErrorLogOptions = { + /** The reply goes to another service that logs the request's end state. */ + internal?: boolean; +}; + +type LogLevel = "debug" | "info" | "warn" | "error"; + +/** One record per failed request, at a level that matches who has to act. */ +export function errorLogLevel(error: unknown, options: ErrorLogOptions = {}): LogLevel { + const status = explicitErrorStatus(error); + let level: LogLevel = status !== undefined && status < 500 ? "warn" : "error"; + if (error instanceof AnonymousError) { + // The internal service that answered logged the failure at its own level. + if (error.upstreamLogged) level = "info"; + else if (level === "warn" && EXPECTED_CLIENT_ERRORS.has(error.message)) level = "info"; + } + return level === "info" && options.internal ? "debug" : level; +} + // eslint-disable-next-line @typescript-eslint/no-explicit-any -function printError(error: any, req?: express.Request) { +function printError(error: any, req?: express.Request, options: ErrorLogOptions = {}) { + const level = errorLogLevel(error, options); if (error instanceof AnonymousError) { if (req?.originalUrl === "/api/repo/undefined/options") return; const payload: Record = serializeError(error); @@ -194,20 +230,11 @@ function printError(error: any, req?: express.Request) { // Errors page surfaces something meaningful (e.g. "repoId_already_used") // instead of a generic "anonymous error" wrapper. const summary = error.message || error.name || "AnonymousError"; - // 4xx are expected client errors (not_found, expired, not_connected) — - // route them to warn so the admin Errors page can split server faults - // (5xx) from client misuse (4xx) cleanly. - const status = explicitErrorStatus(error); - if (typeof status === "number" && status >= 400 && status < 500) { - logger.warn(summary, payload); - } else { - logger.error(summary, payload); - } + logger[level](summary, payload); } else if (error instanceof HTTPError) { const payload: Record = serializeError(error); ensureUrl(payload, req); - const status = explicitErrorStatus(error); - logger[status && status < 500 ? "warn" : "error"](error.code || error.name || "HTTPError", payload); + logger[level](error.code || error.name || "HTTPError", payload); } else { // Unhandled errors: use the error class name (SyntaxError, TypeError, // RangeError, ...) as the summary so the admin page shows @@ -225,8 +252,7 @@ function printError(error: any, req?: express.Request) { ((error as { name?: string }).name || (error as { message?: string }).message)) || "UnhandledError"; - const status = explicitErrorStatus(error); - logger[status && status < 500 ? "warn" : "error"](summary, serialized); + logger[level](summary, serialized); } } @@ -234,10 +260,11 @@ export function handleError( // eslint-disable-next-line @typescript-eslint/no-explicit-any error: any, res?: express.Response, - req?: express.Request + req?: express.Request, + options?: ErrorLogOptions ) { if (isResponseCancellation(error, res)) return; - printError(error, req); + printError(error, req, options); let errorCode = error; if (error instanceof Error) { errorCode = error.message; diff --git a/src/streamer/route.ts b/src/streamer/route.ts index 19e14ed..c5dd0ca 100644 --- a/src/streamer/route.ts +++ b/src/streamer/route.ts @@ -6,10 +6,17 @@ import { AnonymizeTransformer, isTextFile, } from "../core/anonymize-utils"; +import AnonymousError from "../core/AnonymousError"; import { handleError } from "../server/routes/route-utils"; import { lookup } from "mime-types"; import { streamAnonymizedZip } from "../core/zipStream"; +// The API relays these replies and logs each request's end state, so expected +// outcomes are only debug here. Faults keep their level and streamer stack. +function replyError(error: unknown, res: express.Response) { + handleError(error, res, undefined, { internal: true }); +} + export const router = express.Router(); router.post( @@ -18,7 +25,7 @@ router.post( req.body = req.body || {}; const token: string = req.body.token; if (typeof req.body.repoFullName !== "string" || typeof token !== "string") { - return res.status(400).json({ error: "invalid_request" }); + return replyError(new AnonymousError("invalid_request", { httpStatus: 400 }), res); } const repoFullName = req.body.repoFullName.split("/"); const repoId = req.body.repoId; @@ -42,7 +49,7 @@ router.post( ); } catch (error) { const streaming = res.headersSent; - handleError(error, res); + replyError(error, res); if (streaming && !res.writableEnded) res.destroy(); } } @@ -51,7 +58,7 @@ router.post("/", async (req: express.Request, res: express.Response) => { req.body = req.body || {}; const token: string = req.body.token; if (typeof req.body.repoFullName !== "string" || typeof token !== "string") { - return res.status(400).json({ error: "invalid_request" }); + return replyError(new AnonymousError("invalid_request", { httpStatus: 400 }), res); } const repoFullName = req.body.repoFullName.split("/"); const repoId = req.body.repoId; @@ -77,7 +84,7 @@ router.post("/", async (req: express.Request, res: express.Response) => { .split(/[\\/]/) .some((segment) => segment === ".." || segment === "") ) { - return res.status(400).json({ error: "invalid_file_path" }); + return replyError(new AnonymousError("invalid_file_path", { httpStatus: 400 }), res); } const source = new GitHubStream({ @@ -123,7 +130,7 @@ router.post("/", async (req: express.Request, res: express.Response) => { content.destroy(); } const streaming = res.headersSent; - handleError(error, res); + replyError(error, res); if (streaming && !res.writableEnded) res.destroy(); anonymizer.destroy(); } @@ -146,7 +153,7 @@ router.post("/", async (req: express.Request, res: express.Response) => { res.status(409).end(); return; } - handleError(error, res); + replyError(error, res); } }); diff --git a/test/error-log-level.test.js b/test/error-log-level.test.js new file mode 100644 index 0000000..59a0a4a --- /dev/null +++ b/test/error-log-level.test.js @@ -0,0 +1,122 @@ +const { strict: assert } = require("node:assert"); +const { setTimeout } = require("node:timers"); +const express = require("express"); +require("ts-node/register/transpile-only"); +const config = require("../src/config").default; +const AnonymousError = require("../src/core/AnonymousError").default; +const File = require("../src/core/AnonymizedFile").default; +const GitHubStream = require("../src/core/source/GitHubStream").default; +const { AnonymizeTransformer } = require("../src/core/anonymize-utils"); +const { errorLogLevel, handleError } = require("../src/server/routes/route-utils"); +const streamer = require("../src/streamer/route").default; +const got = require("got"); + +const error = (code, httpStatus, extra = {}) => Object.assign(new AnonymousError(code, { httpStatus }), extra); +const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); + +/** Collect the structured records written to stdout while `run` executes. */ +async function captureLogs(run) { + const records = []; + const write = process.stdout.write; + process.stdout.write = function (chunk, ...rest) { + for (const line of String(chunk).split("\n")) { + try { const record = JSON.parse(line); if (record && record.severity) { records.push(record); continue; } } catch { /* not a record */ } + if (line) write.call(process.stdout, line + "\n"); + } + const callback = rest.find((arg) => typeof arg === "function"); + if (callback) callback(); + return true; + }; + try { await run(); } finally { process.stdout.write = write; } + return records; +} + +describe("error log levels", () => { + it("logs expected client outcomes at info and faults at warn or error", () => { + for (const [code, status] of [["repo_not_found", 404], ["repository_expired", 410], ["file_not_found", 404], + ["github_app_access_required", 403], ["repository_archived", 410], ["folder_not_supported", 404], ["is_removed", 410]]) { + assert.equal(errorLogLevel(error(code, status)), "info", code); + } + assert.equal(errorLogLevel(error("token_expired", 401)), "warn"); + assert.equal(errorLogLevel(error("rate_limited", 429)), "warn"); + assert.equal(errorLogLevel(error("github_rate_limit_exceeded", 429)), "warn"); + assert.equal(errorLogLevel(error("invalid_file_path", 400)), "warn"); + assert.equal(errorLogLevel(error("upstream_error", 502)), "error"); + assert.equal(errorLogLevel(error("streamer_unreachable", 502)), "error"); + assert.equal(errorLogLevel(new Error("boom")), "error"); + // A known code with a server status is still a fault. + assert.equal(errorLogLevel(error("file_not_found", 500)), "error"); + }); + + it("leaves a relayed failure to the service that logged it", () => { + assert.equal(errorLogLevel(error("upstream_error", 502, { upstreamStatus: 502, upstreamLogged: true })), "info"); + assert.equal(errorLogLevel(error("streamer_upstream_error", 502, { upstreamStatus: 502 })), "error"); + }); + + it("drops expected outcomes to debug when another service logs the end state", () => { + assert.equal(errorLogLevel(error("repo_not_found", 404), { internal: true }), "debug"); + assert.equal(errorLogLevel(error("token_expired", 401), { internal: true }), "warn"); + assert.equal(errorLogLevel(error("upstream_error", 502), { internal: true }), "error"); + }); +}); + +describe("streamer file failures", function () { + this.timeout(10000); + let old, original, streamerServer, apiServer, base; + beforeEach(async () => { + old = { ...config }; + original = GitHubStream.prototype.getFileContentCache; + const streamerApp = express(); streamerApp.use(express.json()); streamerApp.use("/api", streamer); + streamerServer = await new Promise((resolve) => { const s = streamerApp.listen(0, "127.0.0.1", () => resolve(s)); }); + Object.assign(config, { STREAMER_ENTRYPOINT: `http://127.0.0.1:${streamerServer.address().port}/`, SHARED_CACHE_ENABLED: false }); + const api = express(); + api.get("/file", async (req, res) => { + const file = new File({ repository: { + repoId: "anon", owner: { id: "507f1f77bcf86cd799439011" }, options: { terms: [] }, + model: { _id: "507f1f77bcf86cd799439012", source: { repositoryName: "owner/gone" } }, + getToken: async () => "token", + generateAnonymizeTransformer: (filePath) => new AnonymizeTransformer({ terms: [], filePath }), + }, anonymizedPath: "README.md" }); + file._file = { name: "README.md", path: "", sha: "sha", size: 10 }; + try { await file.send(res); } catch (failure) { handleError(failure, res, req); } + }); + apiServer = await new Promise((resolve) => { const s = api.listen(0, "127.0.0.1", () => resolve(s)); }); + base = `http://127.0.0.1:${apiServer.address().port}`; + }); + afterEach(async () => { + GitHubStream.prototype.getFileContentCache = original; + await new Promise((resolve) => apiServer.close(resolve)); + await new Promise((resolve) => streamerServer.close(resolve)); + Object.assign(config, old); + }); + + const request = async (failure) => { + GitHubStream.prototype.getFileContentCache = async () => { throw failure; }; + let response; + const records = await captureLogs(async () => { + response = await got(`${base}/file`, { throwHttpErrors: false, retry: 0 }); + await wait(50); + }); + return { response, records: records.filter((record) => record.severity !== "debug") }; + }; + + it("logs a missing source repository once, at info", async () => { + const { response, records } = await request(new AnonymousError("repo_not_found", { httpStatus: 404 })); + assert.equal(response.statusCode, 404); + assert.equal(records.length, 1, JSON.stringify(records)); + assert.equal(records[0].severity, "info"); + assert.equal(records[0].errorCode, "repo_not_found"); + assert.equal(records[0].upstreamStatus, 404); + }); + + it("keeps a single fault record from the streamer", async () => { + const { response, records } = await request(new AnonymousError("upstream_error", { httpStatus: 502 })); + assert.equal(response.statusCode, 502); + const faults = records.filter((record) => record.severity === "warn" || record.severity === "error"); + assert.equal(faults.length, 1, JSON.stringify(records)); + assert.equal(faults[0].errorCode, "upstream_error"); + // The streamer's own record, not the API relay (which carries upstreamStatus). + assert.equal(faults[0].upstreamStatus, undefined); + assert.equal(records.filter((record) => record.upstreamStatus === 502).length, 1); + }); +}); From 0a0b579c13d875df1035b1b9d492af7e66d9078e Mon Sep 17 00:00:00 2001 From: Thomas Durieux <5577568+tdurieux@users.noreply.github.com> Date: Sun, 29 Nov 2026 11:47:06 +0000 Subject: [PATCH 2/3] fix(logging): keep uncoded streamer 4xx replies on the Errors page An uncoded 4xx comes from something in front of the streamer (body-size limit, ingress, wrong entrypoint), so it is now streamer_unexpected_response (502, error) rather than an info-level file_not_found. The streamer's catch-all route gets its own code so a misrouted call logs at warn. Co-Authored-By: Claude Opus 5.5 --- deploy/logging/sanitize.vrl | 4 ++-- src/core/AnonymizedFile.ts | 6 ++++++ src/core/log-diagnostic-schema.ts | 16 +++++++++++----- src/streamer/index.ts | 3 ++- test/error-log-level.test.js | 21 +++++++++++++++++++++ 5 files changed, 42 insertions(+), 8 deletions(-) diff --git a/deploy/logging/sanitize.vrl b/deploy/logging/sanitize.vrl index 9ec8bd6..9334a02 100644 --- a/deploy/logging/sanitize.vrl +++ b/deploy/logging/sanitize.vrl @@ -42,7 +42,7 @@ if service == "mongodb" { if includes(["quota_denied", "deployment", "account_removed", "application_log", "billing_maintenance_failed", "billing_reconciliation_deferred", "billing_requires_attention", "billing_worker_failed", "blob_api_failed_falling_back_to_raw_url", "branch_not_found", "cache_removal_failed", "cache_removed", "checking_repository_status_and_unused_repositories", "cleared_lock_for_active_job", "conference_expire_failed", "content_expiration_failed", "daily_stats_snapshot_failed", "daily_stats_snapshot_stored", "download_completed", "download_start", "downloaded", "downloadfile_failed", "downloading_file", "downloading_gist", "downloading_pull_request", "downloading_via_raw_url_lfs", "duplicate_stripe_customer_requires_review", "ensuretodaysnapshot_failed", "error_log_redis_connect_failed", "expired_repository_cleanup_failed", "failed_removal_recovery_failed", "failed_to_persist_error_status", "failed_to_record_repository_removal_error", "gettoken", "github_primary_rate_limit_hit", "github_secondary_rate_limit_hit", "grant_revocation_failed", "initial_repository_status_check_failed", "job_completed", "job_failed", "job_stalled", "job_started", "lastusedat_update_failed", "login_token_failed", "login_token_req_login_failed", "logout_after_account_removal_failed", "logout_failed", "lookup_failed", "markerrorifinflight_failed", "markerrorifremoving_failed", "metadata_cleanup_complete", "metadata_cleanup_deferred", "owner_access_alert_reset_unavailable", "owner_access_email_accepted", "owner_access_email_audit_unavailable", "owner_access_email_claim_cleanup_unavailable", "owner_access_email_deferred_recovery_unavailable", "owner_access_email_delivery_failed", "owner_access_email_preparation_cleanup_unavailable", "owner_access_email_recovery_recorded", "owner_access_email_recovery_unavailable", "owner_access_email_result_reconciliation_required", "owner_access_email_unavailable", "pr_comments_404_continuing_without_them", "process_fatal_error", "process_heartbeat", "process_started", "progress", "queue_heartbeat", "queued_for_download", "rate_limit_gate_active_delaying_job_before_work", "rate_limit_gate_set", "rate_limited_delaying_job", "recover_failed", "recovered_expired_repository_cleanup", "recovered_file_from_truncated_tree", "recovered_file_invalidation_failed", "recovered_stuck_repo", "recoverstuckpreparing_failed", "recoverstuckremoving_failed", "redis_client_error", "redis_rate_limit_gate_written", "rejected_upstream_download_destination", "removal_failed", "removal_recovery_failed", "removecache_save_failed", "removed_cache_for_unused_repository", "removing_cache", "removing_repository", "repo_claimed", "repository_cache_removal_failed", "repository_expiration_failed", "repository_expired", "repository_removal_failed", "repository_removed", "request_cancelled", "request_completed", "request_slow", "requeued_failed_removal", "requeued_interrupted_removal", "reset", "retired_tree_cleanup_deferred", "retired_tree_cleanup_failed", "running_daily_stats_snapshot", "s3_body_stream_error", "send_failed", "server_started", "source_stream_failed_cache_write_discarded", "staged_tree_cleanup_failed", "staged_tree_completion_deferred", "streamer_fetch_failed", "streamer_started", "streamer_startup_failed", "streamer_zip_fetch_failed", "temporary_storage_cleanup_deferred", "token_refresh_failed_backing_off", "up_to_date", "update_queued", "verify_failed", "waiting_for_rate_limit_gate", "webhook_log", "webhook_processing_failed", "write_failed", "zip_stream_failed"], record.event) { out.event = record.event } if is_string(record.release) && match(string!(record.release), r'^[a-f0-9]{7,40}$') { out.release = record.release } if is_string(record.instance) && match(string!(record.instance), r'^[a-f0-9-]{36}$') { out.instance = record.instance } - if includes(["repo_renamed", "preparation_interrupted", "commit_not_found", "zip_not_available", "ABORT_ERR", "ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EPIPE", "ETIMEDOUT", "billing_address_missing", "billing_city_missing", "billing_country_missing", "billing_email_missing", "billing_missing", "billing_name_missing", "billing_zip_missing", "branch_not_found", "branch_not_specified", "cache_busy", "cache_miss", "cannot_coauthor_self", "commit_not_specified", "conf_end_date_invalid", "conf_end_date_missing", "conf_id_missing", "conf_id_used", "conf_name_missing", "conf_not_activated", "conf_not_found", "conf_start_date_invalid", "conf_start_date_missing", "conference_not_found", "connection_changed", "download_not_enabled", "expiration_limit_reached", "file_listing_too_large", "file_not_accessible", "file_not_found", "file_not_supported", "file_too_big", "folder_not_supported", "gistId_already_used", "gistId_not_specified", "gist_expired", "gist_not_found", "gist_not_ready", "github_app_access_required", "github_app_reconnect_required", "github_identity_mismatch", "github_rate_limit_exceeded", "github_token_invalid", "github_user_not_found", "invalid_commit_format", "invalid_cursor", "invalid_file_path", "invalid_gistId", "invalid_path", "invalid_plan", "invalid_preserve_files_format", "invalid_project_name", "invalid_pullRequestId", "invalid_repo", "invalid_repoId", "invalid_request", "invalid_settings", "invalid_signature", "invalid_sort", "invalid_status", "invalid_terms_format", "invalid_token_id", "invalid_token_options", "is_removed", "not_authorized", "not_connected", "options_not_provided", "page_not_activated", "page_not_supported_on_different_branch", "path_not_defined", "path_not_specified", "pullRequestId_already_used", "pullRequestId_is_not_a_number", "pullRequestId_not_specified", "pull_request_expired", "pull_request_not_found", "pull_request_not_ready", "token_refresh_failed", "anonymized_output_too_large", "anonymization_memory_budget_exceeded", "anonymization_queue_full", "anonymization_queue_timeout", "anonymization_cancelled", "anonymization_worker_exited", "anonymization_deadline_exceeded", "anonymization_spool_budget_exceeded", "anonymization_worker_failed", "anonymization_storage_full", "anonymization_io_failed", "zip_unsafe_entry_path", "quota_exceeded", "quota_repository_limit", "quota_storage_limit", "rate_limited", "readme_not_available", "repoId_already_used", "repoId_not_defined", "repoUrl_not_defined", "repo_access_limited", "repo_empty", "repo_not_accessible", "repo_not_found", "repo_saml_enforcement", "repository_archived", "repository_changed", "repository_expired", "repository_job_cancelled", "repository_not_found", "repository_not_ready", "repository_not_specified", "repository_tree_incomplete", "repository_tree_too_large", "s3_config_not_provided", "source_not_provided", "storage_delete_failed", "storage_write_size_mismatch", "submodule_not_available", "terms_not_specified", "token_expired", "token_limit_reached", "unable_to_connect_user", "unable_to_download", "upstream_error", "upstream_timeout", "user_not_found", "username_not_defined", "webhook_processing_failed", "another_login_required", "billing_already_paid", "billing_busy", "billing_checkout_disabled", "billing_checkout_in_progress", "billing_customer_mismatch", "billing_draft_not_found", "billing_invalid_conference", "billing_invalid_draft", "billing_invalid_purchase", "billing_invalid_repository_size", "billing_invalid_review_window", "billing_plan_change_not_supported", "billing_plan_unavailable", "billing_price_misconfigured", "billing_recovery_required", "billing_review_window_locked", "billing_subscription_exists", "billing_unavailable", "conference_payment_required", "gist_not_available", "github_app_authorization_cancelled", "github_app_disabled", "github_app_permissions_invalid", "github_app_refresh_busy", "github_grant_revocation_failed", "github_oauth_required", "github_unavailable", "invalid_auth_state", "invalid_billing_expiration", "invalid_connection", "invalid_github_path", "not_owner", "oauth_resources_remaining", "pull_request_not_available", "repository_busy", "repository_not_accessible", "streamer_unreachable", "streamer_upstream_error", "subscription_required_for_never_expiration", "user_banned"], record.errorCode) { out.errorCode = record.errorCode } + if includes(["repo_renamed", "preparation_interrupted", "commit_not_found", "zip_not_available", "ABORT_ERR", "ECONNREFUSED", "ECONNRESET", "ENOTFOUND", "EPIPE", "ETIMEDOUT", "billing_address_missing", "billing_city_missing", "billing_country_missing", "billing_email_missing", "billing_missing", "billing_name_missing", "billing_zip_missing", "branch_not_found", "branch_not_specified", "cache_busy", "cache_miss", "cannot_coauthor_self", "commit_not_specified", "conf_end_date_invalid", "conf_end_date_missing", "conf_id_missing", "conf_id_used", "conf_name_missing", "conf_not_activated", "conf_not_found", "conf_start_date_invalid", "conf_start_date_missing", "conference_not_found", "connection_changed", "download_not_enabled", "expiration_limit_reached", "file_listing_too_large", "file_not_accessible", "file_not_found", "file_not_supported", "file_too_big", "folder_not_supported", "gistId_already_used", "gistId_not_specified", "gist_expired", "gist_not_found", "gist_not_ready", "github_app_access_required", "github_app_reconnect_required", "github_identity_mismatch", "github_rate_limit_exceeded", "github_token_invalid", "github_user_not_found", "invalid_commit_format", "invalid_cursor", "invalid_file_path", "invalid_gistId", "invalid_path", "invalid_plan", "invalid_preserve_files_format", "invalid_project_name", "invalid_pullRequestId", "invalid_repo", "invalid_repoId", "invalid_request", "invalid_settings", "invalid_signature", "invalid_sort", "invalid_status", "invalid_terms_format", "invalid_token_id", "invalid_token_options", "is_removed", "not_authorized", "not_connected", "options_not_provided", "page_not_activated", "page_not_supported_on_different_branch", "path_not_defined", "path_not_specified", "pullRequestId_already_used", "pullRequestId_is_not_a_number", "pullRequestId_not_specified", "pull_request_expired", "pull_request_not_found", "pull_request_not_ready", "token_refresh_failed", "anonymized_output_too_large", "anonymization_memory_budget_exceeded", "anonymization_queue_full", "anonymization_queue_timeout", "anonymization_cancelled", "anonymization_worker_exited", "anonymization_deadline_exceeded", "anonymization_spool_budget_exceeded", "anonymization_worker_failed", "anonymization_storage_full", "anonymization_io_failed", "zip_unsafe_entry_path", "quota_exceeded", "quota_repository_limit", "quota_storage_limit", "rate_limited", "readme_not_available", "repoId_already_used", "repoId_not_defined", "repoUrl_not_defined", "repo_access_limited", "repo_empty", "repo_not_accessible", "repo_not_found", "repo_saml_enforcement", "repository_archived", "repository_changed", "repository_expired", "repository_job_cancelled", "repository_not_found", "repository_not_ready", "repository_not_specified", "repository_tree_incomplete", "repository_tree_too_large", "s3_config_not_provided", "source_not_provided", "storage_delete_failed", "storage_write_size_mismatch", "submodule_not_available", "terms_not_specified", "token_expired", "token_limit_reached", "unable_to_connect_user", "unable_to_download", "upstream_error", "upstream_timeout", "user_not_found", "username_not_defined", "webhook_processing_failed", "another_login_required", "billing_already_paid", "billing_busy", "billing_checkout_disabled", "billing_checkout_in_progress", "billing_customer_mismatch", "billing_draft_not_found", "billing_invalid_conference", "billing_invalid_draft", "billing_invalid_purchase", "billing_invalid_repository_size", "billing_invalid_review_window", "billing_plan_change_not_supported", "billing_plan_unavailable", "billing_price_misconfigured", "billing_recovery_required", "billing_review_window_locked", "billing_subscription_exists", "billing_unavailable", "conference_payment_required", "gist_not_available", "github_app_authorization_cancelled", "github_app_disabled", "github_app_permissions_invalid", "github_app_refresh_busy", "github_grant_revocation_failed", "github_oauth_required", "github_unavailable", "invalid_auth_state", "invalid_billing_expiration", "invalid_connection", "invalid_github_path", "not_owner", "oauth_resources_remaining", "pull_request_not_available", "repository_busy", "repository_not_accessible", "streamer_unreachable", "streamer_upstream_error", "subscription_required_for_never_expiration", "user_banned", "streamer_route_not_found", "streamer_unexpected_response"], record.errorCode) { out.errorCode = record.errorCode } if includes(["admin", "anonymized-file", "auth", "billing", "dailyStats", "file-tree", "fs", "gh-stream", "gist", "github", "github-app-webhook", "owner-notifications", "process", "pull-request", "queue", "queue:cache", "queue:download", "queue:remove", "repository", "repository-public", "requests", "route", "route:repo", "s3", "schedule", "server", "streamer", "temporary-storage", "token-auth", "user", "zip-stream"], record.module) { out.module = record.module } if includes(["protocol", "credentials", "port", "host"], record.reason) { out.reason = record.reason } if includes(["parse", "find_grant_owners", "reconcile_grant", "persist_installation_block", "reconcile_installation"], record.phase) { out.phase = record.phase } @@ -81,7 +81,7 @@ if includes(["/", "other", "/dashboard", "/anonymize", "/healthcheck", "/api/hea } } # BEGIN GENERATED DIAGNOSTICS -source_functions = {"src/cli/index.ts":["","generateRandomFileName","main"],"build/cli/index.js":["","generateRandomFileName","main"],"src/config.ts":[""],"build/config.js":[""],"src/core/AnonymizedFile.ts":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"build/core/AnonymizedFile.js":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"src/core/AnonymousError.ts":["","detail","toString","url"],"build/core/AnonymousError.js":["","detail","toString","url"],"src/core/Conference.ts":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"build/core/Conference.js":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"src/core/Gist.ts":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/Gist.js":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/GitHubUtils.ts":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"build/core/GitHubUtils.js":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"src/core/PullRequest.ts":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/PullRequest.js":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/Repository.ts":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"build/core/Repository.js":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"src/core/User.ts":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"build/core/User.js":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"src/core/anonymization-errors.ts":["","anonymizationErrorCode","data"],"build/core/anonymization-errors.js":["","anonymizationErrorCode","data"],"src/core/anonymization-pool.ts":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"build/core/anonymization-pool.js":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"src/core/anonymization.worker.ts":[""],"build/core/anonymization.worker.js":[""],"src/core/anonymize-utils.ts":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"build/core/anonymize-utils.js":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"src/core/archive-entry.ts":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"build/core/archive-entry.js":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"src/core/async-cache.ts":["","clear","get","prune"],"build/core/async-cache.js":["","clear","get","prune"],"src/core/billing/config.ts":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"build/core/billing/config.js":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"src/core/billing/drafts.ts":["","getBillingDraft","saveBillingDraft","validDraftPath"],"build/core/billing/drafts.js":["","getBillingDraft","saveBillingDraft","validDraftPath"],"src/core/billing/events.ts":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"build/core/billing/events.js":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"src/core/billing/expiration.ts":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"build/core/billing/expiration.js":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"src/core/billing/maintenance.ts":["","events","reconcile","startBillingMaintenance"],"build/core/billing/maintenance.js":["","events","reconcile","startBillingMaintenance"],"src/core/billing/models.ts":[""],"build/core/billing/models.js":[""],"src/core/billing/quotas.ts":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"build/core/billing/quotas.js":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"src/core/billing/reconciliation.ts":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"build/core/billing/reconciliation.js":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"src/core/billing/report.ts":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"build/core/billing/report.js":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"src/core/billing/stripe.ts":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"build/core/billing/stripe.js":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"src/core/blob-cache.ts":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"build/core/blob-cache.js":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"src/core/bounded-zip.ts":["","boundedZip","cleanup","push","stop"],"build/core/bounded-zip.js":["","boundedZip","cleanup","push","stop"],"src/core/cache-coordination.ts":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"build/core/cache-coordination.js":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"src/core/cache-observability.ts":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"build/core/cache-observability.js":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"src/core/cached-repository-access.ts":["","canReadCachedRepository"],"build/core/cached-repository-access.js":["","canReadCachedRepository"],"src/core/cached-response.ts":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"build/core/cached-response.js":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"src/core/content-expiration.ts":["","expireEmbeddedContent"],"build/core/content-expiration.js":["","expireEmbeddedContent"],"src/core/content-generation.ts":["","contentGenerationPrefix","contentRetirementMarker"],"build/core/content-generation.js":["","contentGenerationPrefix","contentRetirementMarker"],"src/core/credential-crypto.ts":["","aad","createTokenCipher","decode","decrypt","encrypt"],"build/core/credential-crypto.js":["","aad","createTokenCipher","decode","decrypt","encrypt"],"src/core/credential-validation.ts":["","check","validate"],"build/core/credential-validation.js":["","check","validate"],"src/core/credentials.ts":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"build/core/credentials.js":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"src/core/database-timing.ts":["","installDatabaseTiming"],"build/core/database-timing.js":["","installDatabaseTiming"],"src/core/email-history.ts":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"build/core/email-history.js":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"src/core/expiring-map.ts":["","get","set"],"build/core/expiring-map.js":["","get","set"],"src/core/file-submodules.ts":["","hasVisibleSubmodules"],"build/core/file-submodules.js":["","hasVisibleSubmodules"],"src/core/file-tree.ts":["","clearStagedRowsInBatches","deleteRowsInBatches"],"build/core/file-tree.js":["","clearStagedRowsInBatches","deleteRowsInBatches"],"src/core/folder-counts.ts":["","aggregate","folderCounts"],"build/core/folder-counts.js":["","aggregate","folderCounts"],"src/core/github-app.ts":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"build/core/github-app.js":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"src/core/github-rate-limit.ts":["","isGitHubRateLimitError"],"build/core/github-rate-limit.js":["","isGitHubRateLimitError"],"src/core/github-repository-picker.ts":["","repositoryPickerPage"],"build/core/github-repository-picker.js":["","repositoryPickerPage"],"src/core/github-token-context.ts":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"build/core/github-token-context.js":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"src/core/invalid-credential-backoff.ts":["","run"],"build/core/invalid-credential-backoff.js":["","run"],"src/core/legacy-token-refresh.ts":["","refresh","refreshLegacyToken"],"build/core/legacy-token-refresh.js":["","refresh","refreshLegacyToken"],"src/core/log-context.ts":["","jobTrace","validTraceId"],"build/core/log-context.js":["","jobTrace","validTraceId"],"src/core/log-diagnostics.ts":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"build/core/log-diagnostics.js":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"src/core/log-memory.ts":["","logMemory","memoryBreakdown"],"build/core/log-memory.js":["","logMemory","memoryBreakdown"],"src/core/log-record.ts":["","allowed","logRecord"],"build/core/log-record.js":["","allowed","logRecord"],"src/core/log-reproduction.ts":["","requestReproduction","safeReproductionPath"],"build/core/log-reproduction.js":["","requestReproduction","safeReproductionPath"],"src/core/log-schema.ts":[""],"build/core/log-schema.js":[""],"src/core/logger.ts":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"build/core/logger.js":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"src/core/migrate-credentials.ts":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"build/core/migrate-credentials.js":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"src/core/model/anonymized-path.ts":[""],"build/core/model/anonymized-path.js":[""],"src/core/model/anonymizedGists/anonymizedGists.model.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.model.js":[""],"src/core/model/anonymizedGists/anonymizedGists.schema.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.schema.js":[""],"src/core/model/anonymizedGists/anonymizedGists.types.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.types.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.model.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.model.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.types.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.types.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.model.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.model.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.schema.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.schema.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.types.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.types.js":[""],"src/core/model/conference/conferences.model.ts":[""],"build/core/model/conference/conferences.model.js":[""],"src/core/model/conference/conferences.schema.ts":[""],"build/core/model/conference/conferences.schema.js":[""],"src/core/model/conference/conferences.types.ts":[""],"build/core/model/conference/conferences.types.js":[""],"src/core/model/credentials/credentials.model.ts":[""],"build/core/model/credentials/credentials.model.js":[""],"src/core/model/dailyStats/dailyStats.model.ts":[""],"build/core/model/dailyStats/dailyStats.model.js":[""],"src/core/model/dailyStats/dailyStats.schema.ts":[""],"build/core/model/dailyStats/dailyStats.schema.js":[""],"src/core/model/dailyStats/dailyStats.types.ts":[""],"build/core/model/dailyStats/dailyStats.types.js":[""],"src/core/model/dashboard-name.ts":[""],"build/core/model/dashboard-name.js":[""],"src/core/model/files/files.model.ts":[""],"build/core/model/files/files.model.js":[""],"src/core/model/files/files.schema.ts":[""],"build/core/model/files/files.schema.js":[""],"src/core/model/files/files.types.ts":[""],"build/core/model/files/files.types.js":[""],"src/core/model/github-installation.ts":[""],"build/core/model/github-installation.js":[""],"src/core/model/owner-alert-lifecycle.schema.ts":["","begin","finish","ownerAlertLifecycle"],"build/core/model/owner-alert-lifecycle.schema.js":["","begin","finish","ownerAlertLifecycle"],"src/core/model/repositories/repositories.model.ts":[""],"build/core/model/repositories/repositories.model.js":[""],"src/core/model/repositories/repositories.schema.ts":[""],"build/core/model/repositories/repositories.schema.js":[""],"src/core/model/repositories/repositories.types.ts":[""],"build/core/model/repositories/repositories.types.js":[""],"src/core/model/repository-access.schema.ts":[""],"build/core/model/repository-access.schema.js":[""],"src/core/model/users/users.model.ts":[""],"build/core/model/users/users.model.js":[""],"src/core/model/users/users.schema.ts":[""],"build/core/model/users/users.schema.js":[""],"src/core/model/users/users.types.ts":[""],"build/core/model/users/users.types.js":[""],"src/core/owner-notifications.ts":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"build/core/owner-notifications.js":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"src/core/performance-monitoring.ts":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"build/core/performance-monitoring.js":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"src/core/preserve-files.ts":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"build/core/preserve-files.js":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"src/core/process-monitoring.ts":["","installFatalErrorLogging","report"],"build/core/process-monitoring.js":["","installFatalErrorLogging","report"],"src/core/recover-owner-credential.ts":["","createOwnerCredentialRecovery","lookup"],"build/core/recover-owner-credential.js":["","createOwnerCredentialRecovery","lookup"],"src/core/recover-repository-owners.ts":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"build/core/recover-repository-owners.js":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"src/core/redact-secrets.ts":["","redactSecrets"],"build/core/redact-secrets.js":["","redactSecrets"],"src/core/registration-email.ts":["","saveRegistrationEmail","usableEmail"],"build/core/registration-email.js":["","saveRegistrationEmail","usableEmail"],"src/core/repository-access.types.ts":[""],"build/core/repository-access.types.js":[""],"src/core/repository-expiration-email.ts":["","notifyRepositoryExpired"],"build/core/repository-expiration-email.js":["","notifyRepositoryExpired"],"src/core/repository-failure-status.ts":["","isQuotaFailure","repositoryFailureStatus"],"build/core/repository-failure-status.js":["","isQuotaFailure","repositoryFailureStatus"],"src/core/repository-id.ts":[""],"build/core/repository-id.js":[""],"src/core/request-evidence.ts":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"build/core/request-evidence.js":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"src/core/request-monitoring.ts":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"build/core/request-monitoring.js":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"src/core/response-cancellation.ts":["","isResponseCancellation"],"build/core/response-cancellation.js":["","isResponseCancellation"],"src/core/response-stream.ts":["","cleanup","done","failed","streamResponse","upstreamFailed"],"build/core/response-stream.js":["","cleanup","done","failed","streamResponse","upstreamFailed"],"src/core/source/GitHubBase.ts":["","classifyGitHubMissError","getFileContent","getFiles"],"build/core/source/GitHubBase.js":["","classifyGitHubMissError","getFileContent","getFiles"],"src/core/source/GitHubDownload.ts":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"build/core/source/GitHubDownload.js":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"src/core/source/GitHubRepository.ts":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"build/core/source/GitHubRepository.js":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"src/core/source/GitHubStream.ts":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"build/core/source/GitHubStream.js":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"src/core/source/Source.ts":["","sourceStorageSize"],"build/core/source/Source.js":["","sourceStorageSize"],"src/core/source/Zip.ts":["","getFileContent","getFiles","toJSON"],"build/core/source/Zip.js":["","getFileContent","getFiles","toJSON"],"src/core/source/github-content-miss.ts":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"build/core/source/github-content-miss.js":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"src/core/source/github-submodules.ts":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"build/core/source/github-submodules.js":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"src/core/source-file-list.ts":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"build/core/source-file-list.js":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"src/core/storage/FileSystem.ts":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"build/core/storage/FileSystem.js":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"src/core/storage/S3.ts":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"build/core/storage/S3.js":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"src/core/storage/Storage.ts":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"build/core/storage/Storage.js":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"src/core/storage.ts":[""],"build/core/storage.js":[""],"src/core/streamer-cache-probe.ts":["","abort","probeStreamerCache"],"build/core/streamer-cache-probe.js":["","abort","probeStreamerCache"],"src/core/streamer-response.ts":["","rejectStreamerRedirects"],"build/core/streamer-response.js":["","rejectStreamerRedirects"],"src/core/temporary-storage.ts":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"build/core/temporary-storage.js":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"src/core/term-hints.ts":["","escapeTermLine","termHints"],"build/core/term-hints.js":["","escapeTermLine","termHints"],"src/core/term-matching.ts":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"build/core/term-matching.js":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"src/core/term-presence.ts":["","candidates","firstCharacters","overlap"],"build/core/term-presence.js":["","candidates","firstCharacters","overlap"],"src/core/transformed-cache.ts":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"build/core/transformed-cache.js":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"src/core/types.ts":[""],"build/core/types.js":[""],"src/core/url-utils.ts":["","joinUrl"],"build/core/url-utils.js":["","joinUrl"],"src/core/zipStream.ts":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"build/core/zipStream.js":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"src/markdown-diagrams.ts":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"build/markdown-diagrams.js":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"src/markdown.ts":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"build/markdown.js":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"src/queue/index.ts":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"build/queue/index.js":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"src/queue/log-job.ts":["","loggedJob"],"build/queue/log-job.js":["","loggedJob"],"src/queue/processes/downloadRepository.ts":["","updateProgress"],"build/queue/processes/downloadRepository.js":["","updateProgress"],"src/queue/processes/removeCache.ts":["","createRemoveCacheProcessor","processRemoveCache"],"build/queue/processes/removeCache.js":["","createRemoveCacheProcessor","processRemoveCache"],"src/queue/processes/removeRepository.ts":["","createRemoveRepositoryProcessor","processRemoveRepository"],"build/queue/processes/removeRepository.js":["","createRemoveRepositoryProcessor","processRemoveRepository"],"src/queue/queueMetrics.ts":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"build/queue/queueMetrics.js":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"src/queue/worker-path.ts":["","resolveWorkerProcessorPath"],"build/queue/worker-path.js":["","resolveWorkerProcessorPath"],"src/scripts/billing-operations.ts":["","main"],"build/scripts/billing-operations.js":["","main"],"src/scripts/check-github-app-key.ts":["","checkGitHubAppKey"],"build/scripts/check-github-app-key.js":["","checkGitHubAppKey"],"src/scripts/create-performance-indexes.ts":["","main"],"build/scripts/create-performance-indexes.js":["","main"],"src/scripts/migrate-credentials.ts":["","main"],"build/scripts/migrate-credentials.js":["","main"],"src/scripts/purge-legacy-sessions.ts":["","main"],"build/scripts/purge-legacy-sessions.js":["","main"],"src/scripts/reconcile-legacy-owner-alerts.ts":["","main"],"build/scripts/reconcile-legacy-owner-alerts.js":["","main"],"src/scripts/recover-repository-owners.ts":["","main"],"build/scripts/recover-repository-owners.js":["","main"],"src/scripts/retire-file-indexes.ts":["","main","retireFileIndexes"],"build/scripts/retire-file-indexes.js":["","main","retireFileIndexes"],"src/server/admin-log-investigation.ts":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"build/server/admin-log-investigation.js":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"src/server/dailyStatsSnapshot.ts":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"build/server/dailyStatsSnapshot.js":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"src/server/database.ts":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"build/server/database.js":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"src/server/index.ts":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"build/server/index.js":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"src/server/rate-limit-key.ts":["","requestRateLimitKey"],"build/server/rate-limit-key.js":["","requestRateLimitKey"],"src/server/request-rate-limit.ts":["","sendRequestRateLimit"],"build/server/request-rate-limit.js":["","sendRequestRateLimit"],"src/server/review-consent-page.ts":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"build/server/review-consent-page.js":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"src/server/routes/admin-billing.ts":["","usernames"],"build/server/routes/admin-billing.js":["","usernames"],"src/server/routes/admin-emails.ts":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"build/server/routes/admin-emails.js":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"src/server/routes/admin-tokens.ts":[""],"build/server/routes/admin-tokens.js":[""],"src/server/routes/admin.ts":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"build/server/routes/admin.js":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"src/server/routes/anonymize-preview.ts":[""],"build/server/routes/anonymize-preview.js":[""],"src/server/routes/auth-utils.ts":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"build/server/routes/auth-utils.js":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"src/server/routes/billing.ts":["","displayedPrice","purchaseHistory","state","until"],"build/server/routes/billing.js":["","displayedPrice","purchaseHistory","state","until"],"src/server/routes/conference.ts":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"build/server/routes/conference.js":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"src/server/routes/connection.ts":["","ensureAuthenticated","initSession","verify"],"build/server/routes/connection.js":["","ensureAuthenticated","initSession","verify"],"src/server/routes/dashboard-names.ts":["","ensureDashboardNames","invalidateDashboardNames"],"build/server/routes/dashboard-names.js":["","ensureDashboardNames","invalidateDashboardNames"],"src/server/routes/dashboard-summary.ts":["","dashboardPipeline","dashboardSummary","project"],"build/server/routes/dashboard-summary.js":["","dashboardPipeline","dashboardSummary","project"],"src/server/routes/file-etag.ts":["","fileETag"],"build/server/routes/file-etag.js":["","fileETag"],"src/server/routes/file.ts":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"build/server/routes/file.js":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"src/server/routes/gist-private.ts":["","updateGistModel","validateNewGist"],"build/server/routes/gist-private.js":["","updateGistModel","validateNewGist"],"src/server/routes/gist-public.ts":[""],"build/server/routes/gist-public.js":[""],"src/server/routes/github-app.ts":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"build/server/routes/github-app.js":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"src/server/routes/index.ts":[""],"build/server/routes/index.js":[""],"src/server/routes/maintenance-limits.ts":[""],"build/server/routes/maintenance-limits.js":[""],"src/server/routes/maintenance-tokens.ts":[""],"build/server/routes/maintenance-tokens.js":[""],"src/server/routes/maintenance.ts":["","invalid","maintenanceSettings"],"build/server/routes/maintenance.js":["","invalid","maintenanceSettings"],"src/server/routes/option.ts":[""],"build/server/routes/option.js":[""],"src/server/routes/project-names.ts":["","projectNameKey","saveProjectName"],"build/server/routes/project-names.js":["","projectNameKey","saveProjectName"],"src/server/routes/pullRequest-private.ts":["","updatePullRequestModel","validateNewPullRequest"],"build/server/routes/pullRequest-private.js":["","updatePullRequestModel","validateNewPullRequest"],"src/server/routes/pullRequest-public.ts":[""],"build/server/routes/pullRequest-public.js":[""],"src/server/routes/repository-private.ts":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"build/server/routes/repository-private.js":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"src/server/routes/repository-public.ts":["","addCount"],"build/server/routes/repository-public.js":["","addCount"],"src/server/routes/route-utils.ts":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"build/server/routes/route-utils.js":["","ensureUrl","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"src/server/routes/token-auth.ts":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"build/server/routes/token-auth.js":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"src/server/routes/user.ts":["","getAllRepositories"],"build/server/routes/user.js":["","getAllRepositories"],"src/server/routes/webview.ts":["","escapeHtml","webView"],"build/server/routes/webview.js":["","escapeHtml","webView"],"src/server/schedule.ts":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"build/server/schedule.js":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"src/server/server-options.ts":["","serverOptions"],"build/server/server-options.js":["","serverOptions"],"src/server/service/review-callbacks.ts":["","createReviewCallbacks","invalid","resolve"],"build/server/service/review-callbacks.js":["","createReviewCallbacks","invalid","resolve"],"src/server/service/review-capabilities.ts":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"build/server/service/review-capabilities.js":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"src/server/service/review-completion-http.ts":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"build/server/service/review-completion-http.js":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"src/server/service/review-consent-http.ts":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"build/server/service/review-consent-http.js":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"src/server/service/review-intent-client.ts":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"build/server/service/review-intent-client.js":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"src/server/service/review-json.ts":["","decodeReviewJSON","invalid","space","string","walk"],"build/server/service/review-json.js":["","decodeReviewJSON","invalid","space","string","walk"],"src/server/service/review-owner-consent.ts":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"build/server/service/review-owner-consent.js":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"src/server/service/review-service-auth.ts":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"build/server/service/review-service-auth.js":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"src/server/trustProxy.ts":["","isCloudflareIP","resolveTrustProxy"],"build/server/trustProxy.js":["","isCloudflareIP","resolveTrustProxy"],"src/server/website-rate-limit.ts":["","createWebsiteRateLimiter"],"build/server/website-rate-limit.js":["","createWebsiteRateLimiter"],"src/streamer/index.ts":["","start"],"build/streamer/index.js":["","start"],"src/streamer/route.ts":["","handleStreamError"],"build/streamer/route.js":["","handleStreamError"]} +source_functions = {"src/cli/index.ts":["","generateRandomFileName","main"],"build/cli/index.js":["","generateRandomFileName","main"],"src/config.ts":[""],"build/config.js":[""],"src/core/AnonymizedFile.ts":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"build/core/AnonymizedFile.js":["","anonymizedContent","assertContentFile","cancel","content","defaultMaskCandidateRegex","escapeRegex","extension","forwardHeaders","getFileInfo","handleStreamError","isFileSupported","isImage","originalPath","probe","recoverTruncatedFile","send","sha","size","streamerErrorToAnonymous","visibleFile"],"src/core/AnonymousError.ts":["","detail","toString","url"],"build/core/AnonymousError.js":["","detail","toString","url"],"src/core/Conference.ts":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"build/core/Conference.js":["","expire","isExpired","remove","repositories","toJSON","updateStatus"],"src/core/Gist.ts":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/Gist.js":["","anonymize","check","conference","content","countView","download","downloadContent","downloadWithAccess","expire","getAccess","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/GitHubUtils.ts":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"build/core/GitHubUtils.js":["","abortableGateLookup","cancelled","checkToken","ensureRedisGateClient","getRedisGateResetAt","getToken","getTokenGateResetAt","octokit","ownerGitHubAccessRequired","rateLimitDetail","resolveRepositoryToken","run","setRedisGate","setRedisGateFromWorker","setTokenGate","waitForTokenGate"],"src/core/PullRequest.ts":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"build/core/PullRequest.js":["","anonymize","check","conference","content","countView","download","downloadContent","expire","getToken","markExpired","remove","resetSate","toJSON","updateIfNeeded","updateStatus"],"src/core/Repository.ts":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"build/core/Repository.js":["","anonymize","anonymizeTreeRecursive","anonymizedFiles","assertNotArchived","buildPathIndex","check","checkRefreshWrite","cleanupRetiredFileTrees","cleanupStagedFileTree","clearRows","completeRecoveredFileMetadata","computeSize","conference","countView","current","ensureFileTree","expire","fileSnapshotFilter","files","findAnonymizedPath","generateAnonymizeTransformer","getToken","hasEmptyTree","indexPaths","insertBatch","invalidateFileMetadata","isReady","markCachePresent","markExpired","pathKey","readFiles","refresh","refreshFilter","refreshIfNeeded","remove","removeCache","resetSate","searchFiles","snapshotValue","submoduleMounts","toJSON","updateIfNeeded","updateProgressMessage","updateRetiringPathIndex","updateStatus","zip"],"src/core/User.ts":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"build/core/User.js":["","getAccessToken","getGists","getGitHubRepositories","getPullRequests","getRepositories","markListExpired","quotaRepositories","repositoryMembership","toJSON"],"src/core/anonymization-errors.ts":["","anonymizationErrorCode","data"],"build/core/anonymization-errors.js":["","anonymizationErrorCode","data"],"src/core/anonymization-pool.ts":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"build/core/anonymization-pool.js":["","anonymizeOnWorker","cancel","exited","failed","finish","getAnonymizationPoolStats","message","pump","release","releaseSpool","removeWaiting","reserveSpool"],"src/core/anonymization.worker.ts":[""],"build/core/anonymization.worker.js":[""],"src/core/anonymize-utils.ts":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"build/core/anonymize-utils.js":["","_destroy","_flush","_read","_transform","anonymize","anonymizePath","anonymizePathCompiled","asciiWordAt","cb","classifyByName","compileTerms","compiledTermPlan","escapeRegex","hasCatastrophicBacktracking","hasCustomTermReplacement","isTextFile","isTextualMime","produce","removeImage","removeLink","replace","replaceGitHubSelfLinks","replaceTerm","replaceTerms","requiredPrefix","runWithAnonymizationDeadline","spoolChunk","streamToString"],"src/core/archive-entry.ts":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"build/core/archive-entry.js":["","appendArchiveEntry","cleanup","closed","done","fail","zipEntryOptions"],"src/core/async-cache.ts":["","clear","get","prune"],"build/core/async-cache.js":["","clear","get","prune"],"src/core/billing/config.ts":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"build/core/billing/config.js":["","billingError","billingOrigin","billingPlans","isConferencePlan","legacyPricePlans","requireBilling"],"src/core/billing/drafts.ts":["","getBillingDraft","saveBillingDraft","validDraftPath"],"build/core/billing/drafts.js":["","getBillingDraft","saveBillingDraft","validDraftPath"],"src/core/billing/events.ts":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"build/core/billing/events.js":["","billingFailure","billingHealth","processBillingInbox","receiveBillingEvent","ref"],"src/core/billing/expiration.ts":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"build/core/billing/expiration.js":["","addMonths","authorGrants","freeExpirationLimit","hasAutomaticUpdates","hasRepositoryGrant","maximumExpiration","neverExpirationDeadline","reconcileNeverExpiration","validateBillingExpiration"],"src/core/billing/maintenance.ts":["","events","reconcile","startBillingMaintenance"],"build/core/billing/maintenance.js":["","events","reconcile","startBillingMaintenance"],"src/core/billing/models.ts":[""],"build/core/billing/models.js":[""],"src/core/billing/quotas.ts":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"build/core/billing/quotas.js":["","allocationExpression","allowance","assertConferenceAdmission","reserveFileExpansion","reserveRepository","sumExpansions","usableGrant"],"src/core/billing/reconciliation.ts":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"build/core/billing/reconciliation.js":["","discoverBillingCustomers","reconcileBillingAccount","reconcileBillingAccounts"],"src/core/billing/report.ts":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"build/core/billing/report.js":["","add","billingGrants","billingSummary","billingWebhookHealth","bucketFor","clearPriceCache","count","ends","fillSeries","grantFilter","missing","money","monthlyAmount","nextBucket","of","periodStart","planFamily","planRows","resolvePrices","revenueAvailable","roundMoney","rows","saleStages","sum","truncate","word"],"src/core/billing/stripe.ts":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"build/core/billing/stripe.js":["","cancelAccountBilling","createCheckout","fulfillCheckout","objectId","outcomeUrl","planForPrice","processBillingEvent","rememberConfiguredPrices","stripeClient","syncSubscription","untilFor","withBillingLock"],"src/core/blob-cache.ts":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"build/core/blob-cache.js":["","accessed","cacheError","changes","close","closeBlobCaches","decision","evictTo","expire","fill","getOrFill","isCacheContention","lookup","loseLease","maintain","metric","open","openReader","path","release","releaseDisk","releaseFill","reservations","reserveDisk","resultBlobCache","saveDecision","sharedBlobCache","stats","transaction","trim","usage","validDigest","walk"],"src/core/bounded-zip.ts":["","boundedZip","cleanup","push","stop"],"build/core/bounded-zip.js":["","boundedZip","cleanup","push","stop"],"src/core/cache-coordination.ts":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"build/core/cache-coordination.js":["","cacheCommand","cacheRedis","closeCacheRedis","coordinatedFill"],"src/core/cache-observability.ts":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"build/core/cache-observability.js":["","cacheMetricsReport","closeCacheMetrics","connection","flushCacheMetrics","observeCache"],"src/core/cached-repository-access.ts":["","canReadCachedRepository"],"build/core/cached-repository-access.js":["","canReadCachedRepository"],"src/core/cached-response.ts":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"build/core/cached-response.js":["","abort","assertActive","decisionKey","localFailure","send","sendCached","sendSharedContent"],"src/core/content-expiration.ts":["","expireEmbeddedContent"],"build/core/content-expiration.js":["","expireEmbeddedContent"],"src/core/content-generation.ts":["","contentGenerationPrefix","contentRetirementMarker"],"build/core/content-generation.js":["","contentGenerationPrefix","contentRetirementMarker"],"src/core/credential-crypto.ts":["","aad","createTokenCipher","decode","decrypt","encrypt"],"build/core/credential-crypto.js":["","aad","createTokenCipher","decode","decrypt","encrypt"],"src/core/credential-validation.ts":["","check","validate"],"build/core/credential-validation.js":["","check","validate"],"src/core/credentials.ts":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"build/core/credentials.js":["","credentialCipher","getCredential","getCredentialToken","replaceCredential","setCredential"],"src/core/database-timing.ts":["","installDatabaseTiming"],"build/core/database-timing.js":["","installDatabaseTiming"],"src/core/email-history.ts":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"build/core/email-history.js":["","complete","emailHistoryCollection","ensureEmailHistoryIndexes","sendTrackedEmail"],"src/core/expiring-map.ts":["","get","set"],"build/core/expiring-map.js":["","get","set"],"src/core/file-submodules.ts":["","hasVisibleSubmodules"],"build/core/file-submodules.js":["","hasVisibleSubmodules"],"src/core/file-tree.ts":["","clearStagedRowsInBatches","deleteRowsInBatches"],"build/core/file-tree.js":["","clearStagedRowsInBatches","deleteRowsInBatches"],"src/core/folder-counts.ts":["","aggregate","folderCounts"],"build/core/folder-counts.js":["","aggregate","folderCounts"],"src/core/github-app.ts":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"build/core/github-app.js":["","appError","appJWT","appRepositories","appUserToken","boundAppToken","clearAppTokenCache","encode","exchangeAppToken","githubRequest","installationToken","installationURL","reconcileAppGrant","reconcileInstallation","renew","saveAppGrant","selectRepositoryAccess","tokenFields","userInstallations"],"src/core/github-rate-limit.ts":["","isGitHubRateLimitError"],"build/core/github-rate-limit.js":["","isGitHubRateLimitError"],"src/core/github-repository-picker.ts":["","repositoryPickerPage"],"build/core/github-repository-picker.js":["","repositoryPickerPage"],"src/core/github-token-context.ts":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"build/core/github-token-context.js":["","githubQuotaKey","githubTokenContext","githubTokenForStreamer","registerGitHubToken"],"src/core/invalid-credential-backoff.ts":["","run"],"build/core/invalid-credential-backoff.js":["","run"],"src/core/legacy-token-refresh.ts":["","refresh","refreshLegacyToken"],"build/core/legacy-token-refresh.js":["","refresh","refreshLegacyToken"],"src/core/log-context.ts":["","jobTrace","validTraceId"],"build/core/log-context.js":["","jobTrace","validTraceId"],"src/core/log-diagnostics.ts":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"build/core/log-diagnostics.js":["","data","errorDiagnostics","frame","safeDiagnosticFields"],"src/core/log-memory.ts":["","logMemory","memoryBreakdown"],"build/core/log-memory.js":["","logMemory","memoryBreakdown"],"src/core/log-record.ts":["","allowed","logRecord"],"build/core/log-record.js":["","allowed","logRecord"],"src/core/log-reproduction.ts":["","requestReproduction","safeReproductionPath"],"build/core/log-reproduction.js":["","requestReproduction","safeReproductionPath"],"src/core/log-schema.ts":[""],"build/core/log-schema.js":[""],"src/core/logger.ts":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"build/core/logger.js":["","bucketFor","clampPayload","createLogger","emit","getDroppedOutput","getInProcessDropped","getRedis","hourKey","persistError","reportOutputDrops","resolveThreshold","serializeError","trimErrorLike","trimRawArg","trimStack"],"src/core/migrate-credentials.ts":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"build/core/migrate-credentials.js":["","enforceCredentialStorage","inspect","issue","migrateCredentials","processOwner","verifyCredentials"],"src/core/model/anonymized-path.ts":[""],"build/core/model/anonymized-path.js":[""],"src/core/model/anonymizedGists/anonymizedGists.model.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.model.js":[""],"src/core/model/anonymizedGists/anonymizedGists.schema.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.schema.js":[""],"src/core/model/anonymizedGists/anonymizedGists.types.ts":[""],"build/core/model/anonymizedGists/anonymizedGists.types.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.model.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.model.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.schema.js":[""],"src/core/model/anonymizedPullRequests/anonymizedPullRequests.types.ts":[""],"build/core/model/anonymizedPullRequests/anonymizedPullRequests.types.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.model.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.model.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.schema.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.schema.js":[""],"src/core/model/anonymizedRepositories/anonymizedRepositories.types.ts":[""],"build/core/model/anonymizedRepositories/anonymizedRepositories.types.js":[""],"src/core/model/conference/conferences.model.ts":[""],"build/core/model/conference/conferences.model.js":[""],"src/core/model/conference/conferences.schema.ts":[""],"build/core/model/conference/conferences.schema.js":[""],"src/core/model/conference/conferences.types.ts":[""],"build/core/model/conference/conferences.types.js":[""],"src/core/model/credentials/credentials.model.ts":[""],"build/core/model/credentials/credentials.model.js":[""],"src/core/model/dailyStats/dailyStats.model.ts":[""],"build/core/model/dailyStats/dailyStats.model.js":[""],"src/core/model/dailyStats/dailyStats.schema.ts":[""],"build/core/model/dailyStats/dailyStats.schema.js":[""],"src/core/model/dailyStats/dailyStats.types.ts":[""],"build/core/model/dailyStats/dailyStats.types.js":[""],"src/core/model/dashboard-name.ts":[""],"build/core/model/dashboard-name.js":[""],"src/core/model/files/files.model.ts":[""],"build/core/model/files/files.model.js":[""],"src/core/model/files/files.schema.ts":[""],"build/core/model/files/files.schema.js":[""],"src/core/model/files/files.types.ts":[""],"build/core/model/files/files.types.js":[""],"src/core/model/github-installation.ts":[""],"build/core/model/github-installation.js":[""],"src/core/model/owner-alert-lifecycle.schema.ts":["","begin","finish","ownerAlertLifecycle"],"build/core/model/owner-alert-lifecycle.schema.js":["","begin","finish","ownerAlertLifecycle"],"src/core/model/repositories/repositories.model.ts":[""],"build/core/model/repositories/repositories.model.js":[""],"src/core/model/repositories/repositories.schema.ts":[""],"build/core/model/repositories/repositories.schema.js":[""],"src/core/model/repositories/repositories.types.ts":[""],"build/core/model/repositories/repositories.types.js":[""],"src/core/model/repository-access.schema.ts":[""],"build/core/model/repository-access.schema.js":[""],"src/core/model/users/users.model.ts":[""],"build/core/model/users/users.model.js":[""],"src/core/model/users/users.schema.ts":[""],"build/core/model/users/users.schema.js":[""],"src/core/model/users/users.types.ts":[""],"build/core/model/users/users.types.js":[""],"src/core/owner-notifications.ts":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"build/core/owner-notifications.js":["","alertCollection","applyDeferredRecoveries","bindingHash","clearOwnerDispatch","commitOwnerRevision","completeRecovery","deferRecoveryUntil","expiredPending","expiredPreparation","generationFilter","initializeOwnerAccessAlerts","isAccessFailure","normalizeEmail","notificationEmail","notifyOwnerAccessProblem","prepareLegacyOwnerAlertMigration","prepareOwnerDispatch","recipientAlertKey","reconcileCompletedSend","reconcileCompletedSends","reconcileUnsentAlerts","releaseUnsentAlert","resetOwnerAccessAlerts","retryAlertWrite","revisionFilter","saveDeliveries","saveProgress","withOwnerAccessRecovery"],"src/core/performance-monitoring.ts":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"build/core/performance-monitoring.js":["","containerMemoryLimit","emptyMetric","flush","flushPerformanceMetrics","percentileUpperBound","performanceReport","redisDeadline","socketSnapshot","startPerformanceMonitoring"],"src/core/preserve-files.ts":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"build/core/preserve-files.js":["","compilePreserveMatcher","dedupePreservePatterns","isPreservedPath","normalizePreserveFiles","parsePattern"],"src/core/process-monitoring.ts":["","installFatalErrorLogging","report"],"build/core/process-monitoring.js":["","installFatalErrorLogging","report"],"src/core/recover-owner-credential.ts":["","createOwnerCredentialRecovery","lookup"],"build/core/recover-owner-credential.js":["","createOwnerCredentialRecovery","lookup"],"src/core/recover-repository-owners.ts":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"build/core/recover-repository-owners.js":["","archive","cleanup","fail","identifyGitHubToken","lookup","processRow","recoverRepositoryOwners","safeRepoId","unchanged"],"src/core/redact-secrets.ts":["","redactSecrets"],"build/core/redact-secrets.js":["","redactSecrets"],"src/core/registration-email.ts":["","saveRegistrationEmail","usableEmail"],"build/core/registration-email.js":["","saveRegistrationEmail","usableEmail"],"src/core/repository-access.types.ts":[""],"build/core/repository-access.types.js":[""],"src/core/repository-expiration-email.ts":["","notifyRepositoryExpired"],"build/core/repository-expiration-email.js":["","notifyRepositoryExpired"],"src/core/repository-failure-status.ts":["","isQuotaFailure","repositoryFailureStatus"],"build/core/repository-failure-status.js":["","isQuotaFailure","repositoryFailureStatus"],"src/core/repository-id.ts":[""],"build/core/repository-id.js":[""],"src/core/request-evidence.ts":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"build/core/request-evidence.js":["","expectedResponseBytes","recordResponseFailure","recordUpstreamFailure","responseEvidence"],"src/core/request-monitoring.ts":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"build/core/request-monitoring.js":["","activeRequestCount","advance","cacheTraffic","count","done","drain","finish","measureStage","monitorRequests","observe","recordCacheHit","requestHeaders","requestRoute","start","startStage"],"src/core/response-cancellation.ts":["","isResponseCancellation","watchClientClose"],"build/core/response-cancellation.js":["","isResponseCancellation","watchClientClose"],"src/core/response-stream.ts":["","cleanup","done","failed","streamResponse","upstreamFailed"],"build/core/response-stream.js":["","cleanup","done","failed","streamResponse","upstreamFailed"],"src/core/source/GitHubBase.ts":["","classifyGitHubMissError","getFileContent","getFiles"],"build/core/source/GitHubBase.js":["","classifyGitHubMissError","getFileContent","getFiles"],"src/core/source/GitHubDownload.ts":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"build/core/source/GitHubDownload.js":["","download","getFileContent","getFiles","getZipUrl","humanFileSize","isCacheComplete"],"src/core/source/GitHubRepository.ts":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"build/core/source/GitHubRepository.js":["","branches","getCommitInfo","getRepositoryFromGitHub","readme","toJSON"],"src/core/source/GitHubStream.ts":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"build/core/source/GitHubStream.js":["","admitResolvedBytes","assertActive","assertDownloadUrl","assertHost","cached","confirmOwnerAccess","deferredRawDownload","download","downloadError","downloadFile","downloadFileViaRaw","downloadRaw","downloadViaJsDelivr","downloadWithFallback","fallbackToRaw","fetchContent","fetchFileInfoFromPath","fetchFileMetadata","getFileContent","getFileContentCache","getFiles","getGHTree","githubRawFileUrl","iterateFiles","iterateTreeBatches","jsDelivrFileUrl","lfsPointerGuard","normalize","pMap","produce","rejectLfsPointer","resolve","resolveLfsPointer","stopSourceOnDestroy","transform","tree2Tree","verify","worker"],"src/core/source/Source.ts":["","sourceStorageSize"],"build/core/source/Source.js":["","sourceStorageSize"],"src/core/source/Zip.ts":["","getFileContent","getFiles","toJSON"],"build/core/source/Zip.js":["","getFileContent","getFiles","toJSON"],"src/core/source/github-content-miss.ts":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"build/core/source/github-content-miss.js":["","cachedContentMiss","classifyContentMiss","missKey","probeError"],"src/core/source/github-submodules.ts":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"build/core/source/github-submodules.js":["","expandSubmodules","safeRepositoryPath","submoduleRepository","validUpstream","validateMounts"],"src/core/source-file-list.ts":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"build/core/source-file-list.js":["","isSafeSourcePath","sourceFileContent","sourceFileList"],"src/core/storage/FileSystem.ts":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"build/core/storage/FileSystem.js":["","archive","exists","extractZip","fileInfo","finish","listFiles","mk","read","removeLegacyContent","rm","send","write"],"src/core/storage/S3.ts":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"build/core/storage/S3.js":["","archive","client","exists","extractZip","fileInfo","flush","listFiles","mk","read","removeLegacyContent","removeMatching","rm","send","transform","write"],"src/core/storage/Storage.ts":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"build/core/storage/Storage.js":["","archive","assertSafePath","exists","extractZip","fileInfo","listFiles","mk","read","removeLegacyContent","repoPath","rm","sanitizeZipEntryName","send","write"],"src/core/storage.ts":[""],"build/core/storage.js":[""],"src/core/streamer-cache-probe.ts":["","abort","probeStreamerCache"],"build/core/streamer-cache-probe.js":["","abort","probeStreamerCache"],"src/core/streamer-response.ts":["","rejectStreamerRedirects"],"build/core/streamer-response.js":["","rejectStreamerRedirects"],"src/core/temporary-storage.ts":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"build/core/temporary-storage.js":["","maintainTextSpools","removeStaleTextSpools","run","startTemporaryStorageMaintenance"],"src/core/term-hints.ts":["","escapeTermLine","termHints"],"build/core/term-hints.js":["","escapeTermLine","termHints"],"src/core/term-matching.ts":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"build/core/term-matching.js":["","diacriticInsensitive","isWord","parseTermSpec","stripDiacritics","termVariants","withWordBoundaries"],"src/core/term-presence.ts":["","candidates","firstCharacters","overlap"],"build/core/term-presence.js":["","candidates","firstCharacters","overlap"],"src/core/transformed-cache.ts":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"build/core/transformed-cache.js":["","assertActive","assertTransformScopeActive","copyCached","produceActive","pruneTransformedCache","read","removeEntry","removeTransformedRepositoryCache","scopeActive","transformedFile"],"src/core/types.ts":[""],"build/core/types.js":[""],"src/core/url-utils.ts":["","joinUrl"],"build/core/url-utils.js":["","joinUrl"],"src/core/zipStream.ts":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"build/core/zipStream.js":["","fail","final","isEntryAllowed","onArchived","resumeParser","startArchive","stop","streamAnonymizedZip","transform","write","written"],"src/markdown-diagrams.ts":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"build/markdown-diagrams.js":["","arcs","array","geometry","inspect","object","orientPolygons","position","positions","renderDiagram","stlPaths","validateMap"],"src/markdown.ts":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"build/markdown.js":["","code","escapeHtml","link","math","processAllTokens","renderMarkdown","resolveUrl","sanitizeMarkdownHtml","tokenizer","trusted","url"],"src/queue/index.ts":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"build/queue/index.js":["","addRemovalJob","markErrorIfInFlight","markErrorIfRemoving","recoverStuckPreparing","recoverStuckRemoving","startWorker"],"src/queue/log-job.ts":["","loggedJob"],"build/queue/log-job.js":["","loggedJob"],"src/queue/processes/downloadRepository.ts":["","updateProgress"],"build/queue/processes/downloadRepository.js":["","updateProgress"],"src/queue/processes/removeCache.ts":["","createRemoveCacheProcessor","processRemoveCache"],"build/queue/processes/removeCache.js":["","createRemoveCacheProcessor","processRemoveCache"],"src/queue/processes/removeRepository.ts":["","createRemoveRepositoryProcessor","processRemoveRepository"],"build/queue/processes/removeRepository.js":["","createRemoveRepositoryProcessor","processRemoveRepository"],"src/queue/queueMetrics.ts":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"build/queue/queueMetrics.js":["","getClient","key","minuteTs","queryMetrics","recordMetric"],"src/queue/worker-path.ts":["","resolveWorkerProcessorPath"],"build/queue/worker-path.js":["","resolveWorkerProcessorPath"],"src/scripts/billing-operations.ts":["","main"],"build/scripts/billing-operations.js":["","main"],"src/scripts/check-github-app-key.ts":["","checkGitHubAppKey"],"build/scripts/check-github-app-key.js":["","checkGitHubAppKey"],"src/scripts/create-performance-indexes.ts":["","main"],"build/scripts/create-performance-indexes.js":["","main"],"src/scripts/migrate-credentials.ts":["","main"],"build/scripts/migrate-credentials.js":["","main"],"src/scripts/purge-legacy-sessions.ts":["","main"],"build/scripts/purge-legacy-sessions.js":["","main"],"src/scripts/reconcile-legacy-owner-alerts.ts":["","main"],"build/scripts/reconcile-legacy-owner-alerts.js":["","main"],"src/scripts/recover-repository-owners.ts":["","main"],"build/scripts/recover-repository-owners.js":["","main"],"src/scripts/retire-file-indexes.ts":["","main","retireFileIndexes"],"build/scripts/retire-file-indexes.js":["","main","retireFileIndexes"],"src/server/admin-log-investigation.ts":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"build/server/admin-log-investigation.js":["","collector","endpoint","grafana","incidentGroups","investigateLogs","logOptions","range","read","rows","safeRedisLog","safeRow","signature","timestampKey"],"src/server/dailyStatsSnapshot.ts":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"build/server/dailyStatsSnapshot.js":["","clearStatsCache","computeAndStoreDailyStats","computeStats","ensureTodaySnapshot","getCurrentStats","getStatsHistory","mergeCurrentStatsIntoHistory","read","utcMidnight"],"src/server/database.ts":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"build/server/database.js":["","connect","getGist","getMongoUrl","getPullRequest","getRepository"],"src/server/index.ts":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"build/server/index.js":["","apiRateKey","asset","getIndexHtml","indexResponse","setHeaders","start"],"src/server/rate-limit-key.ts":["","requestRateLimitKey"],"build/server/rate-limit-key.js":["","requestRateLimitKey"],"src/server/request-rate-limit.ts":["","sendRequestRateLimit"],"build/server/request-rate-limit.js":["","sendRequestRateLimit"],"src/server/review-consent-page.ts":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"build/server/review-consent-page.js":["","asset","createReviewConsentPage","isReviewConsentPagePath"],"src/server/routes/admin-billing.ts":["","usernames"],"build/server/routes/admin-billing.js":["","usernames"],"src/server/routes/admin-emails.ts":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"build/server/routes/admin-emails.js":["","emailHistoryPeriod","emailHistoryQuery","emailHistorySummary","emptyCounts"],"src/server/routes/admin-tokens.ts":[""],"build/server/routes/admin-tokens.js":[""],"src/server/routes/admin.ts":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"build/server/routes/admin.js":["","csvEscape","dashboardCache","escapeRegex","getErrorLogClient","hourKey","isSafeSortField","matches","parseDateRange","parseSort","pickQueue","queueStats","sendCsv"],"src/server/routes/anonymize-preview.ts":[""],"build/server/routes/anonymize-preview.js":[""],"src/server/routes/auth-utils.ts":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"build/server/routes/auth-utils.js":["","getLoginToken","isDisabledAccount","safeAuthReturnTo"],"src/server/routes/billing.ts":["","displayedPrice","purchaseHistory","state","until"],"build/server/routes/billing.js":["","displayedPrice","purchaseHistory","state","until"],"src/server/routes/conference.ts":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"build/server/routes/conference.js":["","applyConferenceForm","conferencePlans","offeredConferencePlans","validateConferenceForm"],"src/server/routes/connection.ts":["","ensureAuthenticated","initSession","verify"],"build/server/routes/connection.js":["","ensureAuthenticated","initSession","verify"],"src/server/routes/dashboard-names.ts":["","ensureDashboardNames","invalidateDashboardNames"],"build/server/routes/dashboard-names.js":["","ensureDashboardNames","invalidateDashboardNames"],"src/server/routes/dashboard-summary.ts":["","dashboardPipeline","dashboardSummary","project"],"build/server/routes/dashboard-summary.js":["","dashboardPipeline","dashboardSummary","project"],"src/server/routes/file-etag.ts":["","fileETag"],"build/server/routes/file-etag.js":["","fileETag"],"src/server/routes/file.ts":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"build/server/routes/file.js":["","decodePathSegment","filePathFromRequestUrl","isScriptableDocument"],"src/server/routes/gist-private.ts":["","updateGistModel","validateNewGist"],"build/server/routes/gist-private.js":["","updateGistModel","validateNewGist"],"src/server/routes/gist-public.ts":[""],"build/server/routes/gist-public.js":[""],"src/server/routes/github-app.ts":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"build/server/routes/github-app.js":["","connectionCSRF","consumeFlow","enabled","newFlow","revokeGrant","safeReturnTo","saveSession","validWebhookSignature"],"src/server/routes/index.ts":[""],"build/server/routes/index.js":[""],"src/server/routes/maintenance-limits.ts":[""],"build/server/routes/maintenance-limits.js":[""],"src/server/routes/maintenance-tokens.ts":[""],"build/server/routes/maintenance-tokens.js":[""],"src/server/routes/maintenance.ts":["","invalid","maintenanceSettings"],"build/server/routes/maintenance.js":["","invalid","maintenanceSettings"],"src/server/routes/option.ts":[""],"build/server/routes/option.js":[""],"src/server/routes/project-names.ts":["","projectNameKey","saveProjectName"],"build/server/routes/project-names.js":["","projectNameKey","saveProjectName"],"src/server/routes/pullRequest-private.ts":["","updatePullRequestModel","validateNewPullRequest"],"build/server/routes/pullRequest-private.js":["","updatePullRequestModel","validateNewPullRequest"],"src/server/routes/pullRequest-public.ts":[""],"build/server/routes/pullRequest-public.js":[""],"src/server/routes/repository-private.ts":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"build/server/routes/repository-private.js":["","enqueueSavedSnapshot","hasRepositorySourceChanged","previewToken","removeRepoFromConference","shouldReactivateInactiveRepository","updateRepoModel","validateNewRepo"],"src/server/routes/repository-public.ts":["","addCount"],"build/server/routes/repository-public.js":["","addCount"],"src/server/routes/route-utils.ts":["","ensureUrl","errorLogLevel","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"build/server/routes/route-utils.js":["","ensureUrl","errorLogLevel","explicitErrorStatus","extendExpirationDate","getGist","getPullRequest","getRepo","getUser","handleError","isCoauthor","isOwnerCoauthorOrAdmin","isOwnerOrAdmin","notConnected","originFromStack","printError"],"src/server/routes/token-auth.ts":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"build/server/routes/token-auth.js":["","bearerTokenAuth","generateToken","hashToken","maintenanceTokenAllows"],"src/server/routes/user.ts":["","getAllRepositories"],"build/server/routes/user.js":["","getAllRepositories"],"src/server/routes/webview.ts":["","escapeHtml","webView"],"build/server/routes/webview.js":["","escapeHtml","webView"],"src/server/schedule.ts":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"build/server/schedule.js":["","conferenceStatusCheck","contentMaintenanceQuery","dailyStatsSnapshot","expireContent","flushBatch","repositoryMaintenanceQuery","repositoryStatusCheck","runRepositoryStatusCheck"],"src/server/server-options.ts":["","serverOptions"],"build/server/server-options.js":["","serverOptions"],"src/server/service/review-callbacks.ts":["","createReviewCallbacks","invalid","resolve"],"build/server/service/review-callbacks.js":["","createReviewCallbacks","invalid","resolve"],"src/server/service/review-capabilities.ts":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"build/server/service/review-capabilities.js":["","createReviewCapabilities","fail","invalid","one","record","registry","timestamp"],"src/server/service/review-completion-http.ts":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"build/server/service/review-completion-http.js":["","abort","cleanup","close","createReviewCompletionService","data","end","exact","fail","receipt"],"src/server/service/review-consent-http.ts":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"build/server/service/review-consent-http.js":["","createReviewConsentRouter","csrf","current","done","fields","reject"],"src/server/service/review-intent-client.ts":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"build/server/service/review-intent-client.js":["","abort","consume","createReviewIntentConsumer","decode","fail","finish","id","instant","intent","object"],"src/server/service/review-json.ts":["","decodeReviewJSON","invalid","space","string","walk"],"build/server/service/review-json.js":["","decodeReviewJSON","invalid","space","string","walk"],"src/server/service/review-owner-consent.ts":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"build/server/service/review-owner-consent.js":["","completion","completionCode","confirm","createReviewOwnerConsent","decode","deny","exchange","handoff","hash","objectId","preview","principal","read","receipt","signature","transaction"],"src/server/service/review-service-auth.ts":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"build/server/service/review-service-auth.js":["","authenticate","createReviewServiceAuth","date","fields","invalid","singleReviewHeader","valid"],"src/server/trustProxy.ts":["","isCloudflareIP","resolveTrustProxy"],"build/server/trustProxy.js":["","isCloudflareIP","resolveTrustProxy"],"src/server/website-rate-limit.ts":["","createWebsiteRateLimiter"],"build/server/website-rate-limit.js":["","createWebsiteRateLimiter"],"src/streamer/index.ts":["","start"],"build/streamer/index.js":["","start"],"src/streamer/route.ts":["","handleStreamError","replyError"],"build/streamer/route.js":["","handleStreamError","replyError"]} for_each(["errorType", "causeType"]) -> |_index, key| { value = get(record, [key]) ?? null if includes(["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AnonymousError","HTTPError","RequestError","MongoServerError","MongoNetworkError","MongoServerSelectionError","ValidationError","TimeoutError","AbortError","UnknownError"], value) { out = set!(out, [key], value) } diff --git a/src/core/AnonymizedFile.ts b/src/core/AnonymizedFile.ts index f9ee60f..fb549c3 100644 --- a/src/core/AnonymizedFile.ts +++ b/src/core/AnonymizedFile.ts @@ -100,6 +100,12 @@ function streamerErrorToAnonymous( httpStatus = upstreamStatus >= 500 ? 502 : upstreamStatus; if (upstreamStatus >= 500 && errCode === "file_not_found") { errCode = "streamer_upstream_error"; + } else if (!streamerCode) { + // The streamer's handleError always sends a code. An uncoded 4xx came + // from something in front of it (body-size limit, ingress, wrong + // entrypoint), which is a fault, not a missing file. + errCode = "streamer_unexpected_response"; + httpStatus = 502; } } else if (errCode === "file_not_found") { // No HTTP response at all (connection refused, timeout, DNS) — that's diff --git a/src/core/log-diagnostic-schema.ts b/src/core/log-diagnostic-schema.ts index d2ec712..cb2f3d4 100644 --- a/src/core/log-diagnostic-schema.ts +++ b/src/core/log-diagnostic-schema.ts @@ -1572,11 +1572,13 @@ export const LOG_SOURCE_FUNCTIONS: Record = { ], "src/core/response-cancellation.ts": [ "", - "isResponseCancellation" + "isResponseCancellation", + "watchClientClose" ], "build/core/response-cancellation.js": [ "", - "isResponseCancellation" + "isResponseCancellation", + "watchClientClose" ], "src/core/response-stream.ts": [ "", @@ -2635,6 +2637,7 @@ export const LOG_SOURCE_FUNCTIONS: Record = { "src/server/routes/route-utils.ts": [ "", "ensureUrl", + "errorLogLevel", "explicitErrorStatus", "extendExpirationDate", "getGist", @@ -2652,6 +2655,7 @@ export const LOG_SOURCE_FUNCTIONS: Record = { "build/server/routes/route-utils.js": [ "", "ensureUrl", + "errorLogLevel", "explicitErrorStatus", "extendExpirationDate", "getGist", @@ -2930,13 +2934,15 @@ export const LOG_SOURCE_FUNCTIONS: Record = { ], "src/streamer/route.ts": [ "", - "handleStreamError" + "handleStreamError", + "replyError" ], "build/streamer/route.js": [ "", - "handleStreamError" + "handleStreamError", + "replyError" ] }; export const LOG_ERROR_TYPES = ["Error","TypeError","RangeError","ReferenceError","SyntaxError","URIError","EvalError","AggregateError","AnonymousError","HTTPError","RequestError","MongoServerError","MongoNetworkError","MongoServerSelectionError","ValidationError","TimeoutError","AbortError","UnknownError"]; export const LOG_ROUTES = ["/","other","/dashboard","/anonymize","/healthcheck","/api/healthcheck","/api","/api/download","/api/stat","/api/stat/history","/api/options","/api/message","/api/user","/api/user/quota","/api/user/dashboard","/api/repo","/api/anonymize-preview","/api/admin/overview","/api/admin/performance","/api/admin/errors","/api/admin/errors/stats","/api/admin/queues","/api/admin/queues/metrics","/github/app/webhook","/api/repo/:repoId","/api/repo/:repoId/file/:path","/api/repo/:repoId/files","/api/repo/:repoId/files/counts","/api/repo/:repoId/files/search","/api/repo/:repoId/zip","/api/repo/:repoId/options","/api/repo/:repoId/refresh","/api/repo/:repoId/coauthors","/api/repo/:repoId/extend","/api/repo/:owner/:repo","/api/repo/:owner/:repo/tree","/api/repo/:owner/:repo/file","/api/repo/:owner/:repo/readme","/api/repo/:owner/:repo/branches","/w/:repoId/:path","/r/:repoId/:path","/api/pr/:id/:path","/api/gist/:id/:path","/assets/:path","/github/:action","/api/admin/:action","/api/user/:action","/api/repo/:id/file/:path","/api/repo/:id/files/counts","/api/repo/:id/files/search","/api/repo/:id/files","/api/repo/:id/zip","/api/repo/:id","/viewer/:id/:path","/api/billing","/api/billing/draft","/api/billing/draft/:id","/api/billing/checkout","/api/billing/portal","/api/billing/refresh","/api/billing/webhook","/api/conferences/plans","/profile","/conference/:id"]; -export const LOG_THROWN_ERROR_CODES = ["another_login_required","billing_address_missing","billing_already_paid","billing_busy","billing_checkout_disabled","billing_checkout_in_progress","billing_city_missing","billing_country_missing","billing_customer_mismatch","billing_draft_not_found","billing_email_missing","billing_invalid_conference","billing_invalid_draft","billing_invalid_purchase","billing_invalid_repository_size","billing_invalid_review_window","billing_missing","billing_name_missing","billing_plan_change_not_supported","billing_plan_unavailable","billing_price_misconfigured","billing_recovery_required","billing_review_window_locked","billing_subscription_exists","billing_unavailable","billing_zip_missing","branch_not_found","branch_not_specified","cache_busy","cache_miss","cannot_coauthor_self","commit_not_found","commit_not_specified","conf_end_date_invalid","conf_end_date_missing","conf_id_missing","conf_id_used","conf_name_missing","conf_not_activated","conf_not_found","conf_start_date_invalid","conf_start_date_missing","conference_not_found","conference_payment_required","connection_changed","download_not_enabled","expiration_limit_reached","file_listing_too_large","file_not_accessible","file_not_found","file_not_supported","file_too_big","folder_not_supported","gistId_already_used","gistId_not_specified","gist_expired","gist_not_available","gist_not_found","gist_not_ready","github_app_access_required","github_app_authorization_cancelled","github_app_disabled","github_app_permissions_invalid","github_app_reconnect_required","github_app_refresh_busy","github_grant_revocation_failed","github_identity_mismatch","github_oauth_required","github_rate_limit_exceeded","github_unavailable","github_user_not_found","invalid_auth_state","invalid_billing_expiration","invalid_commit_format","invalid_connection","invalid_cursor","invalid_gistId","invalid_github_path","invalid_path","invalid_plan","invalid_preserve_files_format","invalid_project_name","invalid_pullRequestId","invalid_repo","invalid_repoId","invalid_request","invalid_settings","invalid_sort","invalid_status","invalid_terms_format","invalid_token_id","invalid_token_options","is_removed","not_authorized","not_connected","not_owner","oauth_resources_remaining","options_not_provided","page_not_activated","page_not_supported_on_different_branch","path_not_defined","path_not_specified","pullRequestId_already_used","pullRequestId_is_not_a_number","pullRequestId_not_specified","pull_request_expired","pull_request_not_available","pull_request_not_found","pull_request_not_ready","quota_exceeded","quota_repository_limit","quota_storage_limit","rate_limited","readme_not_available","repoId_already_used","repoId_not_defined","repoUrl_not_defined","repo_access_limited","repo_empty","repo_not_accessible","repo_not_found","repo_saml_enforcement","repository_archived","repository_busy","repository_changed","repository_expired","repository_job_cancelled","repository_not_accessible","repository_not_ready","repository_not_specified","repository_tree_incomplete","repository_tree_too_large","s3_config_not_provided","source_not_provided","storage_delete_failed","storage_write_size_mismatch","streamer_unreachable","streamer_upstream_error","submodule_not_available","subscription_required_for_never_expiration","terms_not_specified","token_expired","token_limit_reached","unable_to_connect_user","unable_to_download","upstream_error","user_banned","user_not_found","username_not_defined","zip_not_available","zip_unsafe_entry_path"]; +export const LOG_THROWN_ERROR_CODES = ["another_login_required","billing_address_missing","billing_already_paid","billing_busy","billing_checkout_disabled","billing_checkout_in_progress","billing_city_missing","billing_country_missing","billing_customer_mismatch","billing_draft_not_found","billing_email_missing","billing_invalid_conference","billing_invalid_draft","billing_invalid_purchase","billing_invalid_repository_size","billing_invalid_review_window","billing_missing","billing_name_missing","billing_plan_change_not_supported","billing_plan_unavailable","billing_price_misconfigured","billing_recovery_required","billing_review_window_locked","billing_subscription_exists","billing_unavailable","billing_zip_missing","branch_not_found","branch_not_specified","cache_busy","cache_miss","cannot_coauthor_self","commit_not_found","commit_not_specified","conf_end_date_invalid","conf_end_date_missing","conf_id_missing","conf_id_used","conf_name_missing","conf_not_activated","conf_not_found","conf_start_date_invalid","conf_start_date_missing","conference_not_found","conference_payment_required","connection_changed","download_not_enabled","expiration_limit_reached","file_listing_too_large","file_not_accessible","file_not_found","file_not_supported","file_too_big","folder_not_supported","gistId_already_used","gistId_not_specified","gist_expired","gist_not_available","gist_not_found","gist_not_ready","github_app_access_required","github_app_authorization_cancelled","github_app_disabled","github_app_permissions_invalid","github_app_reconnect_required","github_app_refresh_busy","github_grant_revocation_failed","github_identity_mismatch","github_oauth_required","github_rate_limit_exceeded","github_unavailable","github_user_not_found","invalid_auth_state","invalid_billing_expiration","invalid_commit_format","invalid_connection","invalid_cursor","invalid_file_path","invalid_gistId","invalid_github_path","invalid_path","invalid_plan","invalid_preserve_files_format","invalid_project_name","invalid_pullRequestId","invalid_repo","invalid_repoId","invalid_request","invalid_settings","invalid_sort","invalid_status","invalid_terms_format","invalid_token_id","invalid_token_options","is_removed","not_authorized","not_connected","not_owner","oauth_resources_remaining","options_not_provided","page_not_activated","page_not_supported_on_different_branch","path_not_defined","path_not_specified","pullRequestId_already_used","pullRequestId_is_not_a_number","pullRequestId_not_specified","pull_request_expired","pull_request_not_available","pull_request_not_found","pull_request_not_ready","quota_exceeded","quota_repository_limit","quota_storage_limit","rate_limited","readme_not_available","repoId_already_used","repoId_not_defined","repoUrl_not_defined","repo_access_limited","repo_empty","repo_not_accessible","repo_not_found","repo_saml_enforcement","repository_archived","repository_busy","repository_changed","repository_expired","repository_job_cancelled","repository_not_accessible","repository_not_ready","repository_not_specified","repository_tree_incomplete","repository_tree_too_large","s3_config_not_provided","source_not_provided","storage_delete_failed","storage_write_size_mismatch","streamer_route_not_found","streamer_unexpected_response","streamer_unreachable","streamer_upstream_error","submodule_not_available","subscription_required_for_never_expiration","terms_not_specified","token_expired","token_limit_reached","unable_to_connect_user","unable_to_download","upstream_error","user_banned","user_not_found","username_not_defined","zip_not_available","zip_unsafe_entry_path"]; diff --git a/src/streamer/index.ts b/src/streamer/index.ts index 8e80c7f..3eabee7 100644 --- a/src/streamer/index.ts +++ b/src/streamer/index.ts @@ -43,7 +43,8 @@ app.get("/healthcheck", async (_, res) => { app.all("/{*path}", (req, res) => { handleError( - new AnonymousError("file_not_found", { + // Callers only use known routes; reaching here is a misconfiguration. + new AnonymousError("streamer_route_not_found", { httpStatus: 404, url: req.originalUrl, }), diff --git a/test/error-log-level.test.js b/test/error-log-level.test.js index 59a0a4a..fe9d79a 100644 --- a/test/error-log-level.test.js +++ b/test/error-log-level.test.js @@ -119,4 +119,25 @@ describe("streamer file failures", function () { assert.equal(faults[0].upstreamStatus, undefined); assert.equal(records.filter((record) => record.upstreamStatus === 502).length, 1); }); + + it("reports an uncoded 4xx from in front of the streamer as a fault", async () => { + // e.g. a body-size limit or an ingress 404: nothing logged it upstream. + const proxy = await new Promise((resolve) => { + const s = require("node:http").createServer((req, res) => { + req.resume(); + res.writeHead(413, { "content-type": "text/html" }).end("

Payload Too Large

"); + }).listen(0, "127.0.0.1", () => resolve(s)); + }); + config.STREAMER_ENTRYPOINT = `http://127.0.0.1:${proxy.address().port}/`; + try { + const { response, records } = await request(new Error("unused")); + assert.equal(response.statusCode, 502); + assert.equal(records.length, 1, JSON.stringify(records)); + assert.equal(records[0].severity, "error"); + assert.equal(records[0].errorCode, "streamer_unexpected_response"); + assert.equal(records[0].upstreamStatus, 413); + } finally { + await new Promise((resolve) => proxy.close(resolve)); + } + }); }); From ef2a1b8eccae18d5c1e0821b371676dab73d7da1 Mon Sep 17 00:00:00 2001 From: Thomas Durieux <5577568+tdurieux@users.noreply.github.com> Date: Sun, 29 Nov 2026 11:55:44 +0000 Subject: [PATCH 3/3] fix(i18n): translate the new streamer error codes Co-Authored-By: Claude Opus 5.5 --- public/asset-manifest.json | 2 +- public/i18n/locale-en.json | 2 ++ public/script/vendor.min.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 779ca85..bee0c47 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,6 @@ { "core.min.js": "core.d23af1c652.min.js", - "vendor.min.js": "vendor.6e1ae166a7.min.js", + "vendor.min.js": "vendor.c2d6962239.min.js", "mermaid.min.js": "mermaid.a7356d5ed1.min.js", "all.min.css": "all.4ee5a5bea6.min.css", "markdown.min.js": "markdown.6c8dfb7b1d.min.js", diff --git a/public/i18n/locale-en.json b/public/i18n/locale-en.json index 88c13fc..0591105 100644 --- a/public/i18n/locale-en.json +++ b/public/i18n/locale-en.json @@ -146,6 +146,8 @@ "upstream_error": "A temporary error occurred while fetching from GitHub — please try again.", "streamer_upstream_error": "The file server received an unexpected response — please try again.", "streamer_unreachable": "The file server is temporarily unreachable — please try again.", + "streamer_unexpected_response": "The file server received an unexpected response — please try again.", + "streamer_route_not_found": "The file server could not handle this request — please try again later.", "token_expired": "The repository owner needs to renew their GitHub connection before this content can be loaded.", "job_is_active": "This job is currently running — wait for it to finish or remove it first.", "github_app_access_required": "Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.", diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index 22fa07d..4833b61 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -18,7 +18,7 @@ while being at `)},_a=class{constructor(t){nt(this,"gen");nt(this,"threads",[]);nt(this,"match",!1);nt(this,"runs",[]);nt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},vc=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&vc(i.state,s.state))),uc=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),mo,jn,$a,Fa,Hs=class{constructor(t,s,i){$e(this,jn);nt(this,"dots");nt(this,"dotStart");$e(this,mo);this.dots=t,this.dotStart=s,ze(this,mo,i)}state(){return new _a(++re(this,mo).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(La.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!Fe(this,jn,$a).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!Fe(this,jn,$a).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;Fe(this,jn,Fa).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:Fe(this,jn,Fa).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&vc(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":za(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};mo=new WeakMap,jn=new WeakSet,$a=function(t,s){let{seen:i}=re(this,mo);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Fa=function(t,s){let{has:i}=re(this,mo);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var yc=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${yc(i.state)})`);return`${t}|${s.sort().join("|")}`},dv=1<<18,jo,Go,Fn,ho,Un,Bn,zn,sn,Ba,ar,bc,Ua=class{constructor(t,s){$e(this,sn);$e(this,jo);$e(this,Go,new Map);$e(this,Fn,0);$e(this,ho);$e(this,Un);$e(this,Bn);$e(this,zn);ze(this,jo,t),ze(this,Bn,new Hs(!1,!1,s)),ze(this,zn,new Hs(!1,!0,s))}start(t){if(t){if(re(this,Un))return re(this,Un);let i=re(this,zn).state();return re(this,zn).add(i,re(this,jo),0,!0),ze(this,Un,Fe(this,sn,Ba).call(this,re(this,zn).done(i)))}if(re(this,ho))return re(this,ho);let s=re(this,Bn).state();return re(this,Bn).add(s,re(this,jo),0,!0),ze(this,ho,Fe(this,sn,ar).call(this,re(this,Bn).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===re(this,Un)?Fe(this,sn,ar).call(this,re(this,zn).step(t.state,s,0,!0)):Fe(this,sn,ar).call(this,re(this,Bn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),ze(this,Fn,re(this,Fn)+128)),t.ascii[i]=r):t.next.set(s,r),pl(this,Fn)._++,r}};jo=new WeakMap,Go=new WeakMap,Fn=new WeakMap,ho=new WeakMap,Un=new WeakMap,Bn=new WeakMap,zn=new WeakMap,sn=new WeakSet,Ba=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},ar=function(t){let s=yc(t),i=re(this,Go).get(s);if(i)return i;re(this,Fn)>dv&&Fe(this,sn,bc).call(this);let o=Fe(this,sn,Ba).call(this,t);return re(this,Go).set(s,o),ze(this,Fn,re(this,Fn)+(s.length+1)),o},bc=function(){re(this,Go).clear(),ze(this,Fn,0),ze(this,ho,void 0),ze(this,Un,void 0)};var uv=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},cv=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r{let t=0,s=0;for(let i of e){let[o,r]=pv(i);t+=o,s+=r}return[t,s]},pv=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(wc),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},cc=(e,t,s)=>{for(let i=0;imv.test(e)?[...e]:e,pc=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},Hn,Wo,go,lr,vo,Gs,dr,yo,Ws,Ks,Ys,On,wn,Ko,Yo,Js,ur,on,bo,zs,js=class{constructor(t,s={}){$e(this,bo);nt(this,"pattern");nt(this,"options");$e(this,Hn);$e(this,Wo);$e(this,go);$e(this,lr);$e(this,vo);$e(this,Gs,!1);$e(this,dr);$e(this,yo);$e(this,Ws,!1);$e(this,Ks,0);$e(this,Ys,1/0);$e(this,On,[]);$e(this,wn,[]);$e(this,Ko);$e(this,Yo);$e(this,Js,!1);$e(this,ur);$e(this,on);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:o=!1,normalize:r}=s;ze(this,on,r===!0?"NFC":r||void 0);let u=/^[?*+@]\(\)$/.test(t),p=iv(t,i,o||u,re(this,on)),[c]=hc(p,rv(p),0,p.length,!0);re(this,on)&&(c=gc(c,re(this,on)));let[v,h]=av(c,i);if(ze(this,Hn,v),ze(this,Wo,h),c.every(y=>y.t==="lit"))ze(this,vo,c.map(y=>y.ch).join("")),ze(this,Gs,i);else{let y=w=>w.t!=="lit"?void 0:i?{ch:w.ch,re:mc(w.ch)}:{ch:w.ch};for(let w of c){let C=y(w);if(!C)break;re(this,On).push(C)}for(let w=c.length-1;w>=0;w--){let C=y(c[w]);if(!C)break;re(this,wn).unshift(C)}ze(this,Js,!!(re(this,On).length||re(this,wn).length)),i||(ze(this,Ko,re(this,On).map(w=>w.ch).join("")),ze(this,Yo,re(this,wn).map(w=>w.ch).join(""))),ze(this,yo,uv(re(this,Hn))?.slice(re(this,On).length,-re(this,wn).length||void 0)),ze(this,Ws,!!re(this,yo)?.every(w=>w.t==="star"||w.t==="any"));let[g,k]=wc(c);ze(this,Ks,g),ze(this,Ys,k)}}test(t){return re(this,on)?(pc(t),Fe(this,bo,zs).call(this,t.normalize(re(this,on)))):fv.test(t)?(pc(t),Fe(this,bo,zs).call(this,t,[...t])):Fe(this,bo,zs).call(this,t,t)}testUnchecked(t){return Fe(this,bo,zs).call(this,re(this,on)?t.normalize(re(this,on)):t)}toString(){return lv(re(this,Hn))}};Hn=new WeakMap,Wo=new WeakMap,go=new WeakMap,lr=new WeakMap,vo=new WeakMap,Gs=new WeakMap,dr=new WeakMap,yo=new WeakMap,Ws=new WeakMap,Ks=new WeakMap,Ys=new WeakMap,On=new WeakMap,wn=new WeakMap,Ko=new WeakMap,Yo=new WeakMap,Js=new WeakMap,ur=new WeakMap,on=new WeakMap,bo=new WeakSet,zs=function(t,s){if(re(this,vo)!==void 0)return re(this,Gs)?(re(this,dr)??ze(this,dr,fc(re(this,vo)))).test(t):t===re(this,vo);let i=re(this,Ks),o=re(this,Ys);if(s===void 0){let h=t.length,y=h+1>>1;if(ho)return!1;(yo)&&(s=rr(t))}if(s!==void 0&&(s.lengtho))return!1;let r=re(this,On).length;if(re(this,Js))if(re(this,Ko)!==void 0&&re(this,Yo)!==void 0){if(!t.startsWith(re(this,Ko))||!t.endsWith(re(this,Yo)))return!1}else{s??(s=rr(t));let h=s.length-re(this,wn).length;if(!cc(re(this,On),s,0)||!cc(re(this,wn),s,h))return!1}let u=!this.options.dot&&t.startsWith(".");if(re(this,yo)){if(t==="."||t===".."||u&&!r)return!1;if(re(this,Ws))return!0;s??(s=rr(t));let h=s.length-re(this,wn).length;return cv(re(this,yo),s,r,h)}if(s??(s=rr(t)),t==="."||t===".."){re(this,go)??ze(this,go,uc(re(this,Wo)));let h=re(this,lr)??ze(this,lr,new Hs(!0,!1,re(this,go))),y=h.state();h.add(y,re(this,Hn),0,!0);let g=h.done(y);for(let k=0;k{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var Gn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var wo=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var zt=(e,t,s={})=>(Xs(t),!s.nocomment&&t.charAt(0)==="#"?!1:gv(t,s).match(e)),Jo=new Map,hv=256,gv=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=Jo.get(s);return i?Jo.delete(s):(i=new ko(e,{...t}),Jo.size>=hv&&Jo.delete(Jo.keys().next().value)),Jo.set(s,i),i},Rc=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",kc={win32:{sep:"\\"},posix:{sep:"/"}},vv=Rc==="win32"?kc.win32.sep:kc.posix.sep;zt.sep=vv;var vt=Symbol("globstar **");zt.GLOBSTAR=vt;var yv=(e,t={})=>s=>zt(s,e,t);zt.filter=yv;var Mn=(e,t={})=>Object.assign({},e,t),bv=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return zt;let t=zt;return Object.assign((i,o,r={})=>t(i,o,Mn(e,r)),{Minimatch:class extends t.Minimatch{constructor(o,r={}){super(o,Mn(e,r))}static defaults(o){return t.defaults(Mn(e,o)).Minimatch}},unescape:(i,o={})=>t.unescape(i,Mn(e,o)),escape:(i,o={})=>t.escape(i,Mn(e,o)),filter:(i,o={})=>t.filter(i,Mn(e,o)),defaults:i=>t.defaults(Mn(e,i)),braceExpand:(i,o={})=>t.braceExpand(i,Mn(e,o)),match:(i,o,r={})=>t.match(i,o,Mn(e,r)),sep:t.sep,GLOBSTAR:vt})};zt.defaults=bv;var Tc=(e,t={})=>(Xs(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:lc(e,{max:t.braceExpandMax}));zt.braceExpand=Tc;var wv=(e,t,s={})=>{let i=new ko(t,s);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};zt.match=wv;var Cc=/[?*]|[+@!]\(.*?\)|\[|\]/,Pc=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),Ec=(e,t,s,i,o)=>Wn(e,t)?s:i!==void 0&&Wn(e,i)?o:-1,Ka=e=>e==="."||e==="..",ja=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),pr=e=>typeof e=="string"&&/^unc$/i.test(e),Ga=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:pr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==vt&&i!==void 0&&i!==""&&i!==vt?t:-1},cr=(e,t)=>!Ka(e)&&(t||!e.startsWith(".")),Qs=(e,t,s,i,o)=>{for(let r=t;r=s||mr(e.charCodeAt(p),o))return!0}let u=Ya(e,r,o);if(u===-1)return!1;for(r=u+1;rt==="/"?e===47:t==="\\"?e===92:e===47||e===92,Ya=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),o=e.indexOf("\\",t);return i===-1?o:o===-1?i:Math.min(i,o)},Nc=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),Wa={},Kn,Qo,Yn,Vn,Zo,xo,Jn,xs,es,ei,Ue,fr,Zs,Dc,Ac,Ic,Oc,Mc,Vc,Ja,qc,Lc,Xa,Xo,Qa,ko=class{constructor(t,s={}){$e(this,Ue);nt(this,"options");nt(this,"set");nt(this,"pattern");nt(this,"windowsPathsNoEscape");nt(this,"nonegate");nt(this,"negate");nt(this,"comment");nt(this,"empty");nt(this,"preserveMultipleSlashes");nt(this,"partial");nt(this,"globSet");nt(this,"globParts");nt(this,"nocase");nt(this,"isWindows");nt(this,"platform");nt(this,"windowsNoMagicRoot");nt(this,"maxGlobstarRecursion");$e(this,Kn);$e(this,Qo);$e(this,Yn);$e(this,Vn);$e(this,Zo,[]);$e(this,xo,[]);$e(this,Jn,[]);$e(this,xs,new Map);$e(this,es,!1);$e(this,ei,new WeakMap);Xs(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||Rc,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],ze(this,Kn,!this.preserveMultipleSlashes),ze(this,Yn,(s.optimizationLevel??1)>=2);let o=s.normalize;ze(this,Vn,o===!0?"NFC":o||void 0),this.make();let r=this.set.map(u=>Fe(this,Ue,Zs).call(this,u));ze(this,Jn,this.set.map((u,p)=>re(this,Kn)&&u.length-1>r[p])),ze(this,Zo,this.set.map((u,p)=>{let c=re(this,Jn)[p]?u.length-1:u.length,v=u.slice(r[p]+1,c).filter(h=>typeof h=="string"&&!!h);return[...new Set(v)]})),ze(this,Qo,re(this,Zo).some(u=>u.length)),ze(this,xo,this.set.map((u,p)=>{let[c,v,h]=u;if(re(this,Jn)[p]&&u.length===2&&c===vt&&v!==vt)return"tail";if(re(this,Jn)[p]&&s.matchBase&&u.length===1&&c!==vt&&c!=="")return"base";if(!(!re(this,Kn)||r[p]!==-1)){if(u.length===3&&c===vt&&h===vt&&v!==vt&&v!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&v===vt&&c!==vt&&c!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(r=>Fe(this,Ue,Qa).call(this,r));this.globParts=this.preprocess(i),ze(this,es,!0);let o=this.globParts.map((r,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&pr(r[3])?6:4,v=r[0]===""&&r[1]===""&&(r[2]==="?"||!Cc.test(r[2]))&&r.slice(3,c).every(y=>!Cc.test(y)),h=/^[a-z]:/i.test(r[0]);if(v)return[...r.slice(0,c).map(y=>Fe(this,Ue,fr).call(this,y)),...r.slice(c).map(y=>this.parse(y))];if(h)return[Fe(this,Ue,fr).call(this,r[0]),...r.slice(1).map(y=>this.parse(y))]}return r.map(c=>this.parse(c))});if(this.set=o.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof js||u[i]===Wa)||!Cv(this.globParts[p][i]))return;let c=[...this.globParts[p]];c[i]="";let v=`${u.length}/${c.join("/")}`,h=o.get(v);h?h.push(p):o.set(v,[p])});let r=new Set;for(let u of o.values()){if(u.length<2)continue;let[p,...c]=u,h=`@(${u.map(y=>this.globParts[y][i]).join("|")})`;this.globParts[p][i]=h,this.set[p][i]=this.parse(h);for(let y of c)r.add(y)}r.size&&(t=!0,this.set=this.set.filter((u,p)=>!r.has(p)),this.globParts=this.globParts.filter((u,p)=>!r.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let o=0;o=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let o=i;for(;s[o+1]==="**";)o++;o!==i&&s.splice(i,o-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=Fe(this,Ue,Zs).call(this,s)+1;return s=s.reduce((o,r)=>{let u=o[o.length-1];return r==="**"&&u==="**"?o:r===".."&&o.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(r),o)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let o of t){let r=-1;for(;(r=o.indexOf("**",r+1))!==-1;){let c=r;for(;o[c+1]==="**";)c++;c>r&&o.splice(r+1,c-r);let v=o[r+1],h=o[r+2],y=o[r+3];if(v!==".."||!h||h==="."||h===".."||!y||y==="."||y===".."||t.length>=s)continue;i=!0,o.splice(r,1);let g=o.slice(0);g[r]="**",t.push(g),r--}if(!this.preserveMultipleSlashes){for(let c=1;c1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let o=0,r=0,u=[],p="";for(;o=0;v--)c=r[v];for(let v=0;v=0){let b=C;for(;b>0&&mr(t.charCodeAt(b-1),s);)b--;p=b===0?0:Nc(t,b-1,s)+1,u=t.slice(p,b)}let N=re(this,Yn)&&(Ka(o)||o===""&&u!==void 0&&Ka(u));i=N?-1:1,g=!N}let k=-1;if(g&&typeof y=="string"&&(k=Ec(y,o,r,u,p),k===-1))continue;if(re(this,Qo)){for(let C of re(this,Zo)[v])if(!t.includes(C))continue e}if(g&&typeof y=="object"&&(k=Ec(y,o,r,u,p),k===-1))continue;let w=re(this,xo)[v];if(w==="base"&&g)return"yes";if(w==="tail"&&g){if(re(this,Yn)&&Qs(t,0,k,!0,s))return"maybe";if(!Qs(t,0,k,c,s))return"yes";continue}if(w==="mid"||w==="head"){let C=Fe(this,Ue,Ic).call(this,t,h,w==="head",c,s);if(C!=="no")return C;continue}return"maybe"}return"no"},Ac=function(t,s,i){let o=!!this.options.dot,r=t.length;if(i==="head"){if(r<2||!Wn(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,c)))&&!Qs(t,v,t.length,o,r))return"yes";if(i||Qs(t,p,v,o,r))return"no";p=v}return"no"},Oc=function(t){let s=Ha;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===re(this,Vn)?s:void 0},Mc=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,o=Fe(this,Ue,Qa).call(this,s?t.split("\\").join("/"):t),r=re(this,Vn);return r&&(o=o.map(u=>u.normalize(r))),Ha={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:r,parts:o},Ha},Vc=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let y=t.length-c.length;if(Fe(this,Ue,Xo).call(this,t,c,i,y,0))h=c.length;else{if(t[t.length-1]!==""||o+c.length===t.length||(y--,!Fe(this,Ue,Xo).call(this,t,c,i,y,0)))return!1;h=c.length+1}}if(!p.length){let y=!!h;for(let g=o;g{b[1]=w-C[T]});let N={head:v,body:h,tail:y,segments:g};return o[r]=N,N},Xa=function(t,s,i,o,r,u,p,c,v){let h=s[r];if(!h){if(u)return o>=i||o===i-1&&t[o]==="";for(let w=o;we.lastIndexOf(t)===s)}function xa(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:o,directoryOnly:r,body:u}=Sv(s);return{negated:i,directoryOnly:r,matcher:new ko(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!o&&!u.includes("/")})}});return(s,i=!1)=>{let o=(s||"").replace(/^\/+/,"");if(!o)return!1;let r=o.split("/"),u=r.slice(0,-1).map((c,v)=>r.slice(0,v+1).join("/")),p=i;for(let c of t){if(c.negated?!p:p)continue;(c.directoryOnly?u:[...u,o]).some(h=>c.matcher.match(h))&&(p=!c.negated)}return p}}var cse=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function el(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var _c=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function $c(e){let t=[];return String(e||"").split(` `).forEach((s,i)=>{let{term:o}=el(s.trim());if(!o)return;let r=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,o=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||o>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function hr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(Xn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var gr="XXXX",Nv=e=>{gr=e||"XXXX"},Rv=(e=gr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Uc=(e,t=gr)=>{let s=Rv(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);for(let u of r){let p=u.nodeValue,c=u.parentElement;if(!p.includes(t)||!c||c.closest("script, style, mark.redaction, .mermaid"))continue;let v=c.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let h=i.createDocumentFragment(),y=0;for(let g of p.matchAll(s)){h.append(p.slice(y,g.index));let k=i.createElement("mark");k.className="redaction",k.title="Redacted by Anonymous GitHub",k.textContent=g[0],h.append(k),y=g.index+g[0].length}h.append(p.slice(y)),u.replaceWith(h)}},ti=/\bXXXX-\d+\b/g,Fs=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)ti.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&ti.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let o of i){ti.lastIndex=0;let r=t.createDocumentFragment(),u=0,p,c=o.nodeValue;for(;p=ti.exec(c);){r.appendChild(t.createTextNode(c.slice(u,p.index)));let v=t.createElement("mark");v.className="redact-chip",v.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let h=p[0].slice(5);v.textContent="";let y=t.createElement("i");y.textContent=h,v.appendChild(y),v.dataset.term=p[0],v.setAttribute("aria-label","Redacted term "+h);let g=/^[.,;:!?)\]]+/.exec(c.slice(p.index+p[0].length));if(g){let k=t.createElement("span");k.className="redact-glue",k.appendChild(v),k.appendChild(t.createTextNode(g[0])),r.appendChild(k),u=p.index+p[0].length+g[0].length}else r.appendChild(v),u=p.index+p[0].length}r.appendChild(t.createTextNode(c.slice(u))),o.parentNode.replaceChild(r,o)}return t.body.firstChild.innerHTML},Bc=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{Uc(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let o=t.ownerDocument.createElement("i");o.textContent=s[1],t.appendChild(o)})}),window.Prism.redactionHook=!0)},zc=(e,t=gr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return Uc(s.body,t),s.body.innerHTML};async function tl(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Tv(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var Hc=function(e,t,s,i){e.previewTabKeydown=Tv,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let o=N=>{e.headerShowSupport=!(N?.grants||[]).some(T=>["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());let b=(N?.grants||[]).some(T=>["author_monthly","author_annual"].includes(T.planId)&&["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());e.headerCanUpgrade=!!N?.enabled&&N.checkoutEnabled!==!1&&!b&&(N.plans||[]).some(T=>["author_monthly","author_annual"].includes(T.id))};e.on("billing:updated",(N,b)=>o(b)),e.on("billing:pending",(N,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let r=Bt(),u=bt(),p=!1,c=()=>{p=!1;let N=document.querySelector("nav.navbar.navbar-expand-lg");if(!N||(N.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=N.querySelector(".navbar-collapse"),T=()=>N.scrollWidth>N.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;T()&&N.classList.add("nav-fit-1"),T()&&N.classList.add("nav-fit-2")},v=()=>{p||(p=!0,We(()=>u.timeout(c,0)))};r(window,"resize",v),e.on("routeChange",v),e.on("billing:updated",v),document.fonts?.ready&&document.fonts.ready.then(v).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(N){let b=e.toasts.indexOf(N);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(N){return e.toasts.push(N),i(function(){e.removeToast(N)},8e3),N};let h=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path()),e.darkMode=function(N){localStorage.setItem("darkMode",N),e.isDarkMode=N;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),N)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let T=document.createElement("link");T.href=b,T.rel="stylesheet",document.head.append(T)}e.emit("dark-mode",N)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let y;e.respondToEmailPrompt=async N=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:N,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});N==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,y?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function g(){t.get("/api/user").then(N=>{N&&(e.user=N.data),v(),e.user?.username?Zi(t).then(b=>o(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(y=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}g();function k(){t.get("/api/options").then(N=>{N&&(e.site_options=N.data),Nv(N?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}k();function w(){t.get("/api/message").then(N=>{N&&(e.generalMessage=N.data)},()=>{e.generalMessage=null})}w();function C(N,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path())}e.on("routeChange",C),e.on("routeUpdate",C)},jc=function(e,t){let s=Bt(),i=bt();e.faqQuery="",e.faqResults=0;let o=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=o(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(c=>{let v=0;c.querySelectorAll(":scope > .panel").forEach(g=>{let k=g.dataset.faqText||(g.dataset.faqText=o(g.textContent)),w=u.every(C=>k.includes(C));g.classList.toggle("faq-hit",u.length>0&&w),g.hidden=u.length>0&&!w,w&&v++});let h=u.length>0&&v===0;c.hidden=h;let y=c.previousElementSibling;y?.classList.contains("faq-cat")&&(y.hidden=h),p+=v}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let r=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let c=document.getElementById(p.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(r,0)),s(window,"hashchange",r),i.timeout(r,0)},Gc=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(h=>["author_monthly","author_annual"].includes(h.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,We(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(h=>["author_monthly","author_annual"].includes(h.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(h=>h.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(h=>Qi(h.id)).sort((h,y)=>+(y.id==="repo_pack")-+(h.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(h=>h.status!=="removed"),e.openProfileAddon=h=>{h&&(e.profileAddonId=h),e.showRepositoryPass=!0,e.billingRepository="",We(()=>{let y=document.getElementById("settings-addons-title");y?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),y?.focus?.({preventScroll:!0})})};let r=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(h=>h.id!=="repo_pack").sort((h,y)=>r.indexOf(h.id)-r.indexOf(y.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(h=>h.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((h,y)=>(h.amount??1/0)-(y.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((h,y)=>+(h.interval==="year")-+(y.interval==="year")),e.profilePackSummary=h=>h.parts.map(y=>y.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(y)} until ${e.billingDate(y.until)}`).join(" \xB7 "),e.profileAddonFeatures=h=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[h]||[],e.profileAddonBlurb=h=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[h]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(h=>h.recurring&&["active","overdue"].includes(h.status)),e.profileRepositoryExpiry=h=>h.status==="expired"?"expired":h.expirationMode==="never"?"never expires":h.expirationDate?"expires "+e.billingDate(h.expirationDate):"no date",e.profileAnnualSavings=()=>{let h=e.profileAuthorPlans().find(g=>g.interval==="month")?.amount,y=e.profileAuthorPlans().find(g=>g.interval==="year")?.amount;return h&&y&&y(e.billing?.purchases||[]).filter(y=>["active","overdue"].includes(y.status)===h),e.profilePurchaseStatus=h=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[h.status]||h.status,e.profilePurchaseTerm=h=>{let y=h.status&&!["active","overdue"].includes(h.status);if(h.recurring)return y?h.until?"Ended "+e.billingDate(h.until):"":(h.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(h.until);if(h.planId==="repo_pack"){let g=h.parts.map(k=>k.until).filter(Boolean).map(k=>new Date(k).getTime());return y||!g.length?"":"Until "+e.billingDate(new Date(Math.max(...g)))}return h.until?(y||new Date(h.until).getTime()e.profileAddonPlans().find(h=>h.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(h=>["author_monthly","author_annual"].includes(h.planId)&&["active","paid","past_due"].includes(h.status)&&new Date(h.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(h=>["conference_workshop","conference","conference_large"].includes(h.id)&&h.amount!=null).sort((h,y)=>h.amount-y.amount)[0],e.profileGrantName=h=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[h.planId]||h.planId,xi(e,t,()=>o.load().then(h=>{e.quota=h},console.error),{portalMessage:()=>{let h=e.profileAuthorGrant();return h?h.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(h.until)}.`:`Your subscription renews on ${e.billingDate(h.until)}.`:"Your billing details are up to date."}}),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let h=await t.get("/github/connections/email");e.accountEmail=h.data.notificationEmail||"",u=h.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let h=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=h.data.notificationEmail,e.user&&(e.user.notificationEmail=h.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),o.load().then(h=>{e.quota=h},console.error);let p=Ea(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function c(){t.get("/api/user/default").then(h=>{let y=h.data||{};y.terms&&(e.terms=y.terms.join(` +`)}var Xn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",cache_miss:"This file is not cached yet. Please try again.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",invalid_preserve_files_format:"Unredacted files must be repository paths or patterns, at most 200 of them.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",zip_unsafe_entry_path:"This repository contains a filename that cannot be safely included in a ZIP archive. Rename filenames containing backslashes or unsafe path components in the source repository and update the anonymization.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",submodule_not_available:"This public submodule file is no longer available at its recorded commit.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",repository_tree_too_large:"The repository has too many pending folders to process safely. Share a smaller repository.",file_listing_too_large:"This folder has too many entries to list. Open a more specific folder or use file search.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed. If you own it, open My work and select Removed to review its settings and available recovery options.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",conference_payment_required:"This conference's review package is full or not paid. Ask the organizer, or host the repository yourself.",billing_plan_change_not_supported:"This conference plan cannot be changed.",billing_invalid_review_window:"Conference packages cover up to 180 days and must end in the future. Check the review dates.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",token_attempts_rate_limited:"Too many token authentication attempts. Wait before trying again.",refresh_rate_limited:"A refresh was already requested for this repository. Wait one minute before trying again.",session_required:"Sign in through your browser to manage maintenance tokens.",invalid_token_options:"Provide a token name, 1 to 20 repository IDs, and an expiration of 1 to 90 days.",token_limit_reached:"You have reached the limit of 50 API tokens. Revoke an unused token before creating another.",invalid_token_id:"The token ID is invalid.",invalid_settings:"Provide supported settings with boolean values, or a list of anonymization terms.",token_scope_forbidden:"This token does not allow this operation or repository.",authentication_unavailable:"Authentication is temporarily unavailable. Try again later.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",streamer_upstream_error:"The file server received an unexpected response \u2014 please try again.",streamer_unreachable:"The file server is temporarily unreachable \u2014 please try again.",streamer_unexpected_response:"The file server received an unexpected response \u2014 please try again.",streamer_route_not_found:"The file server could not handle this request \u2014 please try again later.",token_expired:"The repository owner needs to renew their GitHub connection before this content can be loaded.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid.",repository_tree_incomplete:"The repository file tree is incomplete. Reduce its size and refresh before downloading.",billing_environment_mismatch:"The payment event does not match this billing environment.",billing_unavailable:"Payments are not available. Please try again later.",invalid_billing_signature:"The payment notification could not be verified.",billing_webhook_failed:"The payment notification could not be processed.",billing_customer_not_found:"No billing account was found.",subscription_required_for_never_expiration:"Never-expiring repositories require the owner\u2019s active monthly or annual author subscription. Choose a dated expiration or upgrade in Plans and billing.",invalid_billing_expiration:"Choose an earlier expiration date. Free repositories can be scheduled 5 months ahead. Buy Extended expiration or Never expire for this repository in Plans and billing to keep it longer.",quota_exceeded:"This repository exceeds the hosting allowance. Check repository and storage usage in your account, then retry.",quota_repository_limit:"The repository-count limit for this hosting allowance has been reached. Remove a repository you no longer need or choose a plan with more capacity.",quota_storage_limit:"This repository would exceed the total source-file storage allowance. Updating an existing repository can increase storage usage. Reduce the source size, remove unused repositories, or choose a plan with more storage.",expiration_limit_reached:"This repository is already at its latest allowed expiration date. Buy Extended expiration or Never expire for it in Plans and billing to keep it longer.",pending_payment:"Awaiting payment"},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"Some submodule contents could not be included. Only direct public GitHub submodules within the size limits are supported. Private, external, nested, or unavailable submodules appear as empty folders."},VIEWER_LOADING:{loading:"Loading file\u2026",receiving:"Receiving file\u2026",slow:"Still loading. You can select another file while you wait."}};typeof window<"u"&&window.document?.addEventListener&&window.document.addEventListener("error",e=>{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,o=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||o>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function hr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(Xn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var gr="XXXX",Nv=e=>{gr=e||"XXXX"},Rv=(e=gr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Uc=(e,t=gr)=>{let s=Rv(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);for(let u of r){let p=u.nodeValue,c=u.parentElement;if(!p.includes(t)||!c||c.closest("script, style, mark.redaction, .mermaid"))continue;let v=c.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let h=i.createDocumentFragment(),y=0;for(let g of p.matchAll(s)){h.append(p.slice(y,g.index));let k=i.createElement("mark");k.className="redaction",k.title="Redacted by Anonymous GitHub",k.textContent=g[0],h.append(k),y=g.index+g[0].length}h.append(p.slice(y)),u.replaceWith(h)}},ti=/\bXXXX-\d+\b/g,Fs=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)ti.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&ti.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let o of i){ti.lastIndex=0;let r=t.createDocumentFragment(),u=0,p,c=o.nodeValue;for(;p=ti.exec(c);){r.appendChild(t.createTextNode(c.slice(u,p.index)));let v=t.createElement("mark");v.className="redact-chip",v.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let h=p[0].slice(5);v.textContent="";let y=t.createElement("i");y.textContent=h,v.appendChild(y),v.dataset.term=p[0],v.setAttribute("aria-label","Redacted term "+h);let g=/^[.,;:!?)\]]+/.exec(c.slice(p.index+p[0].length));if(g){let k=t.createElement("span");k.className="redact-glue",k.appendChild(v),k.appendChild(t.createTextNode(g[0])),r.appendChild(k),u=p.index+p[0].length+g[0].length}else r.appendChild(v),u=p.index+p[0].length}r.appendChild(t.createTextNode(c.slice(u))),o.parentNode.replaceChild(r,o)}return t.body.firstChild.innerHTML},Bc=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{Uc(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let o=t.ownerDocument.createElement("i");o.textContent=s[1],t.appendChild(o)})}),window.Prism.redactionHook=!0)},zc=(e,t=gr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return Uc(s.body,t),s.body.innerHTML};async function tl(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Tv(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var Hc=function(e,t,s,i){e.previewTabKeydown=Tv,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let o=N=>{e.headerShowSupport=!(N?.grants||[]).some(T=>["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());let b=(N?.grants||[]).some(T=>["author_monthly","author_annual"].includes(T.planId)&&["active","paid","past_due"].includes(T.status)&&new Date(T.until).getTime()>Date.now());e.headerCanUpgrade=!!N?.enabled&&N.checkoutEnabled!==!1&&!b&&(N.plans||[]).some(T=>["author_monthly","author_annual"].includes(T.id))};e.on("billing:updated",(N,b)=>o(b)),e.on("billing:pending",(N,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let r=Bt(),u=bt(),p=!1,c=()=>{p=!1;let N=document.querySelector("nav.navbar.navbar-expand-lg");if(!N||(N.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=N.querySelector(".navbar-collapse"),T=()=>N.scrollWidth>N.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;T()&&N.classList.add("nav-fit-1"),T()&&N.classList.add("nav-fit-2")},v=()=>{p||(p=!0,We(()=>u.timeout(c,0)))};r(window,"resize",v),e.on("routeChange",v),e.on("billing:updated",v),document.fonts?.ready&&document.fonts.ready.then(v).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(N){let b=e.toasts.indexOf(N);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(N){return e.toasts.push(N),i(function(){e.removeToast(N)},8e3),N};let h=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path()),e.darkMode=function(N){localStorage.setItem("darkMode",N),e.isDarkMode=N;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),N)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let T=document.createElement("link");T.href=b,T.rel="stylesheet",document.head.append(T)}e.emit("dark-mode",N)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let y;e.respondToEmailPrompt=async N=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:N,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});N==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,y?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function g(){t.get("/api/user").then(N=>{N&&(e.user=N.data),v(),e.user?.username?Zi(t).then(b=>o(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(y=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}g();function k(){t.get("/api/options").then(N=>{N&&(e.site_options=N.data),Nv(N?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}k();function w(){t.get("/api/message").then(N=>{N&&(e.generalMessage=N.data)},()=>{e.generalMessage=null})}w();function C(N,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=h.test(s.path())}e.on("routeChange",C),e.on("routeUpdate",C)},jc=function(e,t){let s=Bt(),i=bt();e.faqQuery="",e.faqResults=0;let o=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=o(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(c=>{let v=0;c.querySelectorAll(":scope > .panel").forEach(g=>{let k=g.dataset.faqText||(g.dataset.faqText=o(g.textContent)),w=u.every(C=>k.includes(C));g.classList.toggle("faq-hit",u.length>0&&w),g.hidden=u.length>0&&!w,w&&v++});let h=u.length>0&&v===0;c.hidden=h;let y=c.previousElementSibling;y?.classList.contains("faq-cat")&&(y.hidden=h),p+=v}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let r=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let c=document.getElementById(p.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(r,0)),s(window,"hashchange",r),i.timeout(r,0)},Gc=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(h=>["author_monthly","author_annual"].includes(h.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,We(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(h=>["author_monthly","author_annual"].includes(h.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(h=>h.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(h=>Qi(h.id)).sort((h,y)=>+(y.id==="repo_pack")-+(h.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(h=>h.status!=="removed"),e.openProfileAddon=h=>{h&&(e.profileAddonId=h),e.showRepositoryPass=!0,e.billingRepository="",We(()=>{let y=document.getElementById("settings-addons-title");y?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),y?.focus?.({preventScroll:!0})})};let r=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(h=>h.id!=="repo_pack").sort((h,y)=>r.indexOf(h.id)-r.indexOf(y.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(h=>h.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((h,y)=>(h.amount??1/0)-(y.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((h,y)=>+(h.interval==="year")-+(y.interval==="year")),e.profilePackSummary=h=>h.parts.map(y=>y.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(y)} until ${e.billingDate(y.until)}`).join(" \xB7 "),e.profileAddonFeatures=h=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[h]||[],e.profileAddonBlurb=h=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[h]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(h=>h.recurring&&["active","overdue"].includes(h.status)),e.profileRepositoryExpiry=h=>h.status==="expired"?"expired":h.expirationMode==="never"?"never expires":h.expirationDate?"expires "+e.billingDate(h.expirationDate):"no date",e.profileAnnualSavings=()=>{let h=e.profileAuthorPlans().find(g=>g.interval==="month")?.amount,y=e.profileAuthorPlans().find(g=>g.interval==="year")?.amount;return h&&y&&y(e.billing?.purchases||[]).filter(y=>["active","overdue"].includes(y.status)===h),e.profilePurchaseStatus=h=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[h.status]||h.status,e.profilePurchaseTerm=h=>{let y=h.status&&!["active","overdue"].includes(h.status);if(h.recurring)return y?h.until?"Ended "+e.billingDate(h.until):"":(h.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(h.until);if(h.planId==="repo_pack"){let g=h.parts.map(k=>k.until).filter(Boolean).map(k=>new Date(k).getTime());return y||!g.length?"":"Until "+e.billingDate(new Date(Math.max(...g)))}return h.until?(y||new Date(h.until).getTime()e.profileAddonPlans().find(h=>h.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(h=>["author_monthly","author_annual"].includes(h.planId)&&["active","paid","past_due"].includes(h.status)&&new Date(h.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(h=>["conference_workshop","conference","conference_large"].includes(h.id)&&h.amount!=null).sort((h,y)=>h.amount-y.amount)[0],e.profileGrantName=h=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[h.planId]||h.planId,xi(e,t,()=>o.load().then(h=>{e.quota=h},console.error),{portalMessage:()=>{let h=e.profileAuthorGrant();return h?h.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(h.until)}.`:`Your subscription renews on ${e.billingDate(h.until)}.`:"Your billing details are up to date."}}),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let h=await t.get("/github/connections/email");e.accountEmail=h.data.notificationEmail||"",u=h.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let h=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=h.data.notificationEmail,e.user&&(e.user.notificationEmail=h.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),o.load().then(h=>{e.quota=h},console.error);let p=Ea(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function c(){t.get("/api/user/default").then(h=>{let y=h.data||{};y.terms&&(e.terms=y.terms.join(` `)),e.options=Object.assign({},e.options,y.options),p.restore()})}c();let v=null;e.saveDefault=h=>{if(h&&h.preventDefault&&h.preventDefault(),e.saving)return;let y=p.checkpoint(),g={terms:e.terms.split(` `).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",g).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",v&&i.cancel(v),v=i(()=>{e.message=null},2500)},k=>{e.saving=!1;let w=k&&k.data&&k.data.error,C="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+w),s("ERRORS.unknown_error")]).then(([N,b])=>{e.error=w&&N!==b?N:C},()=>{e.error=C})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Wc=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Kc=function(e,t,s,i,o){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,c){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(v===void 0)return;p.preventDefault();let h=e.features.length,y=v==="first"?0:v==="last"?h-1:(c+v+h)%h;e.feature=e.features[y].key,o(()=>{let g=i.document.getElementById("feature-tab-"+e.feature);g&&g.focus()})},e.demoText=`# DeepLearnUtils Developed by Jane Smith at MIT CSAIL.