import { DEPTH_PREFIX, INSPECT_HINT } from "#configuration/strings/report.strings"; export const WALK_MAIN = "main"; export const WALK_NESTED = "nested"; export const CELLS_ID = "hexcells"; export const NESTED_SUFFIX = ".nested"; export const HTML_SUFFIX = ".html"; export const GENERATED_PAGE_SUFFIX = ".generated.html"; export const SVG_SUFFIX = ".generated.svg"; export const SLUG_JOIN = "__"; export const ROOT_PAGE = "code"; export const MODULE_SCOPE = "root"; export const INLINE_THRESHOLD = 2500; export const FALLBACK_STATE = "declare"; export const HIGH_SEVERITY = "high"; export const MEDIUM_SEVERITY = "medium"; export const ARTIFACT_SUFFIXES: readonly string[] = [".html", ".json"]; export const HEAL_ATTEMPTS = 4; export const CACHE_NAME = "hex-modules"; export const BAR_MIN = 2; export const BAR_FULL = 100; export const REPORT_SCRIPT = `(function(){var b=document.createElement("div");b.className="hexbar";b.textContent="${INSPECT_HINT}";document.body.appendChild(b);var raw=document.getElementById("${CELLS_ID}");var cells=raw?JSON.parse(raw.textContent||"{}"):{};function tip(f,ref){var packed=cells[f.getAttribute("data-walk")];var row=packed?packed.rows[parseInt(ref,36)]:null;if(!row){return ""}return (row[3]?row[3]+":"+row[4]:"${DEPTH_PREFIX}"+row[1])+" \\u00b7 "+row[2]+" \\u00b7 "+row[6]}var figs=document.querySelectorAll("figure");for(var k=0;k